6178a944cbb8aef62a77b2d1ee345cd376a44a59
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="mutt.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-dependency-tracking Speeds up one-time builds
853   --enable-dependency-tracking  Do not reject slow dependency extractors
854   --disable-pgp              Disable PGP support
855   --disable-smime            Disable SMIME support
856   --enable-external-dotlock  Force use of an external dotlock program
857   --enable-pop               Enable POP3 support
858   --enable-imap              Enable IMAP support
859   --enable-nntp              Enable NNTP support
860   --enable-debug             Enable debugging support
861   --enable-flock             Use flock() to lock files
862   --disable-fcntl            Do NOT use fcntl() to lock files
863   --disable-inodesort        Do NOT read files in maildir folders sorted by inode.
864   --disable-warnings         Turn off compiler warnings (not recommended)
865   --enable-nfs-fix           Work around an NFS with broken attributes caching
866   --enable-buffy-size        Use file size attribute instead of access time
867   --enable-mailtool          Enable Sun mailtool attachments support
868   --enable-compressed        Enable compressed folders support
869   --enable-locales-fix       The result of isprint() is unreliable
870   --enable-exact-address     Enable regeneration of email addresses
871   --enable-hcache            Enable header caching
872   --disable-iconv            Disable iconv support
873   --disable-nls              Do not use Native Language Support
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-mixmaster=PATH    Include Mixmaster support
879   --with-slang=DIR         Use S-Lang instead of ncurses
880   --with-curses=DIR          Where ncurses is installed
881   --with-regex               Use the GNU regex library
882   --with-homespool=FILE    File in user's directory where new mail is spooled
883   --with-mailpath=DIR        Directory where spool mailboxes are located
884   --with-docdir=PATH         Specify where to put the documentation
885   --with-domain=DOMAIN       Specify your DNS domain name
886   --with-gss=PFX           Compile in GSSAPI authentication for IMAP
887   --with-ssl=PFX           Compile in SSL support for POP/IMAP
888   --with-gnutls=PFX        Compile in GNU TLS support for POP/IMAP
889   --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
890   --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
891   --with-sasl2=PFX         Use Cyrus SASL library version 2 for POP/IMAP authentication
892   --with-idn=PFX           Use GNU libidn for domain names
893   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
894   --without-gdbm             Get rid of gdbm even if it is available
895   --with-bdb=DIR           Use BerkeleyDB4 if gdbm is not available
896   --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
897   --with-included-gettext    Use the GNU gettext library included here
898   --without-wc-funcs         Do not use the system's wchar_t functions
899   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
900
901 Some influential environment variables:
902   CC          C compiler command
903   CFLAGS      C compiler flags
904   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
905               nonstandard directory <lib dir>
906   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
907               headers in a nonstandard directory <include dir>
908   CPP         C preprocessor
909
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
912
913 _ACEOF
914 fi
915
916 if test "$ac_init_help" = "recursive"; then
917   # If there are subdirs, report their specific --help.
918   ac_popdir=`pwd`
919   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920     test -d $ac_dir || continue
921     ac_builddir=.
922
923 if test "$ac_dir" != .; then
924   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925   # A "../" for each directory in $ac_dir_suffix.
926   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
927 else
928   ac_dir_suffix= ac_top_builddir=
929 fi
930
931 case $srcdir in
932   .)  # No --srcdir option.  We are building in place.
933     ac_srcdir=.
934     if test -z "$ac_top_builddir"; then
935        ac_top_srcdir=.
936     else
937        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
938     fi ;;
939   [\\/]* | ?:[\\/]* )  # Absolute path.
940     ac_srcdir=$srcdir$ac_dir_suffix;
941     ac_top_srcdir=$srcdir ;;
942   *) # Relative path.
943     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944     ac_top_srcdir=$ac_top_builddir$srcdir ;;
945 esac
946
947 # Do not use `cd foo && pwd` to compute absolute paths, because
948 # the directories may not exist.
949 case `pwd` in
950 .) ac_abs_builddir="$ac_dir";;
951 *)
952   case "$ac_dir" in
953   .) ac_abs_builddir=`pwd`;;
954   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
955   *) ac_abs_builddir=`pwd`/"$ac_dir";;
956   esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
960 *)
961   case ${ac_top_builddir}. in
962   .) ac_abs_top_builddir=$ac_abs_builddir;;
963   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
964   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
965   esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_srcdir=$ac_srcdir;;
969 *)
970   case $ac_srcdir in
971   .) ac_abs_srcdir=$ac_abs_builddir;;
972   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
973   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
978 *)
979   case $ac_top_srcdir in
980   .) ac_abs_top_srcdir=$ac_abs_builddir;;
981   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
982   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
983   esac;;
984 esac
985
986     cd $ac_dir
987     # Check for guested configure; otherwise get Cygnus style configure.
988     if test -f $ac_srcdir/configure.gnu; then
989       echo
990       $SHELL $ac_srcdir/configure.gnu  --help=recursive
991     elif test -f $ac_srcdir/configure; then
992       echo
993       $SHELL $ac_srcdir/configure  --help=recursive
994     elif test -f $ac_srcdir/configure.ac ||
995            test -f $ac_srcdir/configure.in; then
996       echo
997       $ac_configure --help
998     else
999       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000     fi
1001     cd "$ac_popdir"
1002   done
1003 fi
1004
1005 test -n "$ac_init_help" && exit 0
1006 if $ac_init_version; then
1007   cat <<\_ACEOF
1008
1009 Copyright (C) 2003 Free Software Foundation, Inc.
1010 This configure script is free software; the Free Software Foundation
1011 gives unlimited permission to copy, distribute and modify it.
1012 _ACEOF
1013   exit 0
1014 fi
1015 exec 5>config.log
1016 cat >&5 <<_ACEOF
1017 This file contains any messages produced by compilers while
1018 running configure, to aid debugging if configure makes a mistake.
1019
1020 It was created by $as_me, which was
1021 generated by GNU Autoconf 2.59.  Invocation command line was
1022
1023   $ $0 $@
1024
1025 _ACEOF
1026 {
1027 cat <<_ASUNAME
1028 ## --------- ##
1029 ## Platform. ##
1030 ## --------- ##
1031
1032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1037
1038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1039 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1040
1041 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1042 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1044 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1045 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1046 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1047 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1048
1049 _ASUNAME
1050
1051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1052 for as_dir in $PATH
1053 do
1054   IFS=$as_save_IFS
1055   test -z "$as_dir" && as_dir=.
1056   echo "PATH: $as_dir"
1057 done
1058
1059 } >&5
1060
1061 cat >&5 <<_ACEOF
1062
1063
1064 ## ----------- ##
1065 ## Core tests. ##
1066 ## ----------- ##
1067
1068 _ACEOF
1069
1070
1071 # Keep a trace of the command line.
1072 # Strip out --no-create and --no-recursion so they do not pile up.
1073 # Strip out --silent because we don't want to record it for future runs.
1074 # Also quote any args containing shell meta-characters.
1075 # Make two passes to allow for proper duplicate-argument suppression.
1076 ac_configure_args=
1077 ac_configure_args0=
1078 ac_configure_args1=
1079 ac_sep=
1080 ac_must_keep_next=false
1081 for ac_pass in 1 2
1082 do
1083   for ac_arg
1084   do
1085     case $ac_arg in
1086     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1087     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088     | -silent | --silent | --silen | --sile | --sil)
1089       continue ;;
1090     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1091       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1092     esac
1093     case $ac_pass in
1094     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1095     2)
1096       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1097       if test $ac_must_keep_next = true; then
1098         ac_must_keep_next=false # Got value, back to normal.
1099       else
1100         case $ac_arg in
1101           *=* | --config-cache | -C | -disable-* | --disable-* \
1102           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1103           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1104           | -with-* | --with-* | -without-* | --without-* | --x)
1105             case "$ac_configure_args0 " in
1106               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1107             esac
1108             ;;
1109           -* ) ac_must_keep_next=true ;;
1110         esac
1111       fi
1112       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1113       # Get rid of the leading space.
1114       ac_sep=" "
1115       ;;
1116     esac
1117   done
1118 done
1119 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1120 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1121
1122 # When interrupted or exit'd, cleanup temporary files, and complete
1123 # config.log.  We remove comments because anyway the quotes in there
1124 # would cause problems or look ugly.
1125 # WARNING: Be sure not to use single quotes in there, as some shells,
1126 # such as our DU 5.0 friend, will then `close' the trap.
1127 trap 'exit_status=$?
1128   # Save into config.log some information that might help in debugging.
1129   {
1130     echo
1131
1132     cat <<\_ASBOX
1133 ## ---------------- ##
1134 ## Cache variables. ##
1135 ## ---------------- ##
1136 _ASBOX
1137     echo
1138     # The following way of writing the cache mishandles newlines in values,
1139 {
1140   (set) 2>&1 |
1141     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1142     *ac_space=\ *)
1143       sed -n \
1144         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1145           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1146       ;;
1147     *)
1148       sed -n \
1149         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1150       ;;
1151     esac;
1152 }
1153     echo
1154
1155     cat <<\_ASBOX
1156 ## ----------------- ##
1157 ## Output variables. ##
1158 ## ----------------- ##
1159 _ASBOX
1160     echo
1161     for ac_var in $ac_subst_vars
1162     do
1163       eval ac_val=$`echo $ac_var`
1164       echo "$ac_var='"'"'$ac_val'"'"'"
1165     done | sort
1166     echo
1167
1168     if test -n "$ac_subst_files"; then
1169       cat <<\_ASBOX
1170 ## ------------- ##
1171 ## Output files. ##
1172 ## ------------- ##
1173 _ASBOX
1174       echo
1175       for ac_var in $ac_subst_files
1176       do
1177         eval ac_val=$`echo $ac_var`
1178         echo "$ac_var='"'"'$ac_val'"'"'"
1179       done | sort
1180       echo
1181     fi
1182
1183     if test -s confdefs.h; then
1184       cat <<\_ASBOX
1185 ## ----------- ##
1186 ## confdefs.h. ##
1187 ## ----------- ##
1188 _ASBOX
1189       echo
1190       sed "/^$/d" confdefs.h | sort
1191       echo
1192     fi
1193     test "$ac_signal" != 0 &&
1194       echo "$as_me: caught signal $ac_signal"
1195     echo "$as_me: exit $exit_status"
1196   } >&5
1197   rm -f core *.core &&
1198   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1199     exit $exit_status
1200      ' 0
1201 for ac_signal in 1 2 13 15; do
1202   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1203 done
1204 ac_signal=0
1205
1206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1207 rm -rf conftest* confdefs.h
1208 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1209 echo >confdefs.h
1210
1211 # Predefined preprocessor variables.
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_NAME "$PACKAGE_NAME"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1225 _ACEOF
1226
1227
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_STRING "$PACKAGE_STRING"
1230 _ACEOF
1231
1232
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1235 _ACEOF
1236
1237
1238 # Let the site file select an alternate cache file if it wants to.
1239 # Prefer explicitly selected file to automatically selected ones.
1240 if test -z "$CONFIG_SITE"; then
1241   if test "x$prefix" != xNONE; then
1242     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1243   else
1244     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1245   fi
1246 fi
1247 for ac_site_file in $CONFIG_SITE; do
1248   if test -r "$ac_site_file"; then
1249     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1250 echo "$as_me: loading site script $ac_site_file" >&6;}
1251     sed 's/^/| /' "$ac_site_file" >&5
1252     . "$ac_site_file"
1253   fi
1254 done
1255
1256 if test -r "$cache_file"; then
1257   # Some versions of bash will fail to source /dev/null (special
1258   # files actually), so we avoid doing that.
1259   if test -f "$cache_file"; then
1260     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1261 echo "$as_me: loading cache $cache_file" >&6;}
1262     case $cache_file in
1263       [\\/]* | ?:[\\/]* ) . $cache_file;;
1264       *)                      . ./$cache_file;;
1265     esac
1266   fi
1267 else
1268   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1269 echo "$as_me: creating cache $cache_file" >&6;}
1270   >$cache_file
1271 fi
1272
1273 # Check that the precious variables saved in the cache have kept the same
1274 # value.
1275 ac_cache_corrupted=false
1276 for ac_var in `(set) 2>&1 |
1277                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1278   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1279   eval ac_new_set=\$ac_env_${ac_var}_set
1280   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1281   eval ac_new_val="\$ac_env_${ac_var}_value"
1282   case $ac_old_set,$ac_new_set in
1283     set,)
1284       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1285 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1286       ac_cache_corrupted=: ;;
1287     ,set)
1288       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1290       ac_cache_corrupted=: ;;
1291     ,);;
1292     *)
1293       if test "x$ac_old_val" != "x$ac_new_val"; then
1294         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1295 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1296         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1297 echo "$as_me:   former value:  $ac_old_val" >&2;}
1298         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1299 echo "$as_me:   current value: $ac_new_val" >&2;}
1300         ac_cache_corrupted=:
1301       fi;;
1302   esac
1303   # Pass precious variables to config.status.
1304   if test "$ac_new_set" = set; then
1305     case $ac_new_val in
1306     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1307       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1308     *) ac_arg=$ac_var=$ac_new_val ;;
1309     esac
1310     case " $ac_configure_args " in
1311       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1312       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1313     esac
1314   fi
1315 done
1316 if $ac_cache_corrupted; then
1317   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1318 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1319   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1320 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1321    { (exit 1); exit 1; }; }
1322 fi
1323
1324 ac_ext=c
1325 ac_cpp='$CPP $CPPFLAGS'
1326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348           ac_config_headers="$ac_config_headers config.h"
1349
1350
1351 mutt_cv_version=`cat $srcdir/VERSION`
1352
1353
1354 am__api_version="1.7"
1355 ac_aux_dir=
1356 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1357   if test -f $ac_dir/install-sh; then
1358     ac_aux_dir=$ac_dir
1359     ac_install_sh="$ac_aux_dir/install-sh -c"
1360     break
1361   elif test -f $ac_dir/install.sh; then
1362     ac_aux_dir=$ac_dir
1363     ac_install_sh="$ac_aux_dir/install.sh -c"
1364     break
1365   elif test -f $ac_dir/shtool; then
1366     ac_aux_dir=$ac_dir
1367     ac_install_sh="$ac_aux_dir/shtool install -c"
1368     break
1369   fi
1370 done
1371 if test -z "$ac_aux_dir"; then
1372   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1373 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1374    { (exit 1); exit 1; }; }
1375 fi
1376 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1377 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1378 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1379
1380 # Find a good install program.  We prefer a C program (faster),
1381 # so one script is as good as another.  But avoid the broken or
1382 # incompatible versions:
1383 # SysV /etc/install, /usr/sbin/install
1384 # SunOS /usr/etc/install
1385 # IRIX /sbin/install
1386 # AIX /bin/install
1387 # AmigaOS /C/install, which installs bootblocks on floppy discs
1388 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1391 # OS/2's system install, which has a completely different semantic
1392 # ./install, which can be erroneously created by make from ./install.sh.
1393 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1394 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1395 if test -z "$INSTALL"; then
1396 if test "${ac_cv_path_install+set}" = set; then
1397   echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 for as_dir in $PATH
1401 do
1402   IFS=$as_save_IFS
1403   test -z "$as_dir" && as_dir=.
1404   # Account for people who put trailing slashes in PATH elements.
1405 case $as_dir/ in
1406   ./ | .// | /cC/* | \
1407   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1408   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1409   /usr/ucb/* ) ;;
1410   *)
1411     # OSF1 and SCO ODT 3.0 have their own names for install.
1412     # Don't use installbsd from OSF since it installs stuff as root
1413     # by default.
1414     for ac_prog in ginstall scoinst install; do
1415       for ac_exec_ext in '' $ac_executable_extensions; do
1416         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1417           if test $ac_prog = install &&
1418             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1419             # AIX install.  It has an incompatible calling convention.
1420             :
1421           elif test $ac_prog = install &&
1422             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423             # program-specific install script used by HP pwplus--don't use.
1424             :
1425           else
1426             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1427             break 3
1428           fi
1429         fi
1430       done
1431     done
1432     ;;
1433 esac
1434 done
1435
1436
1437 fi
1438   if test "${ac_cv_path_install+set}" = set; then
1439     INSTALL=$ac_cv_path_install
1440   else
1441     # As a last resort, use the slow shell script.  We don't cache a
1442     # path for INSTALL within a source directory, because that will
1443     # break other packages using the cache if that directory is
1444     # removed, or if the path is relative.
1445     INSTALL=$ac_install_sh
1446   fi
1447 fi
1448 echo "$as_me:$LINENO: result: $INSTALL" >&5
1449 echo "${ECHO_T}$INSTALL" >&6
1450
1451 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1452 # It thinks the first close brace ends the variable substitution.
1453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1454
1455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1456
1457 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1458
1459 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1460 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1461 # Just in case
1462 sleep 1
1463 echo timestamp > conftest.file
1464 # Do `set' in a subshell so we don't clobber the current shell's
1465 # arguments.  Must try -L first in case configure is actually a
1466 # symlink; some systems play weird games with the mod time of symlinks
1467 # (eg FreeBSD returns the mod time of the symlink's containing
1468 # directory).
1469 if (
1470    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1471    if test "$*" = "X"; then
1472       # -L didn't work.
1473       set X `ls -t $srcdir/configure conftest.file`
1474    fi
1475    rm -f conftest.file
1476    if test "$*" != "X $srcdir/configure conftest.file" \
1477       && test "$*" != "X conftest.file $srcdir/configure"; then
1478
1479       # If neither matched, then we have a broken ls.  This can happen
1480       # if, for instance, CONFIG_SHELL is bash and it inherits a
1481       # broken ls alias from the environment.  This has actually
1482       # happened.  Such a system could not be considered "sane".
1483       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1484 alias in your environment" >&5
1485 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1486 alias in your environment" >&2;}
1487    { (exit 1); exit 1; }; }
1488    fi
1489
1490    test "$2" = conftest.file
1491    )
1492 then
1493    # Ok.
1494    :
1495 else
1496    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1497 Check your system clock" >&5
1498 echo "$as_me: error: newly created file is older than distributed files!
1499 Check your system clock" >&2;}
1500    { (exit 1); exit 1; }; }
1501 fi
1502 echo "$as_me:$LINENO: result: yes" >&5
1503 echo "${ECHO_T}yes" >&6
1504 test "$program_prefix" != NONE &&
1505   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1506 # Use a double $ so make ignores it.
1507 test "$program_suffix" != NONE &&
1508   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1509 # Double any \ or $.  echo might interpret backslashes.
1510 # By default was `s,x,x', remove it if useless.
1511 cat <<\_ACEOF >conftest.sed
1512 s/[\\$]/&&/g;s/;s,x,x,$//
1513 _ACEOF
1514 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1515 rm conftest.sed
1516
1517
1518 # expand $ac_aux_dir to an absolute path
1519 am_aux_dir=`cd $ac_aux_dir && pwd`
1520
1521 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1522 # Use eval to expand $SHELL
1523 if eval "$MISSING --run true"; then
1524   am_missing_run="$MISSING --run "
1525 else
1526   am_missing_run=
1527   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1528 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1529 fi
1530
1531 for ac_prog in gawk mawk nawk awk
1532 do
1533   # Extract the first word of "$ac_prog", so it can be a program name with args.
1534 set dummy $ac_prog; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_AWK+set}" = set; then
1538   echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540   if test -n "$AWK"; then
1541   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
1547   test -z "$as_dir" && as_dir=.
1548   for ac_exec_ext in '' $ac_executable_extensions; do
1549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550     ac_cv_prog_AWK="$ac_prog"
1551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552     break 2
1553   fi
1554 done
1555 done
1556
1557 fi
1558 fi
1559 AWK=$ac_cv_prog_AWK
1560 if test -n "$AWK"; then
1561   echo "$as_me:$LINENO: result: $AWK" >&5
1562 echo "${ECHO_T}$AWK" >&6
1563 else
1564   echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1566 fi
1567
1568   test -n "$AWK" && break
1569 done
1570
1571 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1574 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1575   echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577   cat >conftest.make <<\_ACEOF
1578 all:
1579         @echo 'ac_maketemp="$(MAKE)"'
1580 _ACEOF
1581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1582 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1583 if test -n "$ac_maketemp"; then
1584   eval ac_cv_prog_make_${ac_make}_set=yes
1585 else
1586   eval ac_cv_prog_make_${ac_make}_set=no
1587 fi
1588 rm -f conftest.make
1589 fi
1590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1591   echo "$as_me:$LINENO: result: yes" >&5
1592 echo "${ECHO_T}yes" >&6
1593   SET_MAKE=
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597   SET_MAKE="MAKE=${MAKE-make}"
1598 fi
1599
1600 rm -rf .tst 2>/dev/null
1601 mkdir .tst 2>/dev/null
1602 if test -d .tst; then
1603   am__leading_dot=.
1604 else
1605   am__leading_dot=_
1606 fi
1607 rmdir .tst 2>/dev/null
1608
1609  # test to see if srcdir already configured
1610 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1611    test -f $srcdir/config.status; then
1612   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1613 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1614    { (exit 1); exit 1; }; }
1615 fi
1616
1617 # test whether we have cygpath
1618 if test -z "$CYGPATH_W"; then
1619   if (cygpath --version) >/dev/null 2>/dev/null; then
1620     CYGPATH_W='cygpath -w'
1621   else
1622     CYGPATH_W=echo
1623   fi
1624 fi
1625
1626
1627 # Define the identity of the package.
1628  PACKAGE=muttng
1629  VERSION=$mutt_cv_version
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE "$PACKAGE"
1634 _ACEOF
1635
1636
1637 cat >>confdefs.h <<_ACEOF
1638 #define VERSION "$VERSION"
1639 _ACEOF
1640
1641 # Some tools Automake needs.
1642
1643 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1644
1645
1646 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1647
1648
1649 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1650
1651
1652 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1653
1654
1655 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1656
1657
1658 AMTAR=${AMTAR-"${am_missing_run}tar"}
1659
1660 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1661
1662 # Installed binaries are usually stripped using `strip' when the user
1663 # run `make install-strip'.  However `strip' might not be the right
1664 # tool to use in cross-compilation environments, therefore Automake
1665 # will honor the `STRIP' environment variable to overrule this program.
1666 if test "$cross_compiling" != no; then
1667   if test -n "$ac_tool_prefix"; then
1668   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1669 set dummy ${ac_tool_prefix}strip; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_STRIP+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   if test -n "$STRIP"; then
1676   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1677 else
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   for ac_exec_ext in '' $ac_executable_extensions; do
1684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687     break 2
1688   fi
1689 done
1690 done
1691
1692 fi
1693 fi
1694 STRIP=$ac_cv_prog_STRIP
1695 if test -n "$STRIP"; then
1696   echo "$as_me:$LINENO: result: $STRIP" >&5
1697 echo "${ECHO_T}$STRIP" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703 fi
1704 if test -z "$ac_cv_prog_STRIP"; then
1705   ac_ct_STRIP=$STRIP
1706   # Extract the first word of "strip", so it can be a program name with args.
1707 set dummy strip; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   if test -n "$ac_ct_STRIP"; then
1714   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719   IFS=$as_save_IFS
1720   test -z "$as_dir" && as_dir=.
1721   for ac_exec_ext in '' $ac_executable_extensions; do
1722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723     ac_cv_prog_ac_ct_STRIP="strip"
1724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725     break 2
1726   fi
1727 done
1728 done
1729
1730   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1731 fi
1732 fi
1733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1734 if test -n "$ac_ct_STRIP"; then
1735   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1736 echo "${ECHO_T}$ac_ct_STRIP" >&6
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742   STRIP=$ac_ct_STRIP
1743 else
1744   STRIP="$ac_cv_prog_STRIP"
1745 fi
1746
1747 fi
1748 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1749
1750 # We need awk for the "check" target.  The system "awk" is bad on
1751 # some platforms.
1752
1753
1754
1755
1756
1757
1758 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"
1759
1760 # Make sure we can run config.sub.
1761 $ac_config_sub sun4 >/dev/null 2>&1 ||
1762   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1763 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1764    { (exit 1); exit 1; }; }
1765
1766 echo "$as_me:$LINENO: checking build system type" >&5
1767 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1768 if test "${ac_cv_build+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   ac_cv_build_alias=$build_alias
1772 test -z "$ac_cv_build_alias" &&
1773   ac_cv_build_alias=`$ac_config_guess`
1774 test -z "$ac_cv_build_alias" &&
1775   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1776 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1777    { (exit 1); exit 1; }; }
1778 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1779   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1780 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 fi
1784 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1785 echo "${ECHO_T}$ac_cv_build" >&6
1786 build=$ac_cv_build
1787 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1790
1791
1792 echo "$as_me:$LINENO: checking host system type" >&5
1793 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1794 if test "${ac_cv_host+set}" = set; then
1795   echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797   ac_cv_host_alias=$host_alias
1798 test -z "$ac_cv_host_alias" &&
1799   ac_cv_host_alias=$ac_cv_build_alias
1800 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1801   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1802 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1803    { (exit 1); exit 1; }; }
1804
1805 fi
1806 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1807 echo "${ECHO_T}$ac_cv_host" >&6
1808 host=$ac_cv_host
1809 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1810 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1811 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1812
1813
1814
1815 echo "$as_me:$LINENO: checking for prefix" >&5
1816 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1817 if test x$prefix = xNONE; then
1818         mutt_cv_prefix=$ac_default_prefix
1819 else
1820         mutt_cv_prefix=$prefix
1821 fi
1822 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1823 echo "${ECHO_T}$mutt_cv_prefix" >&6
1824
1825 ac_ext=c
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 if test -n "$ac_tool_prefix"; then
1831   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836   echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838   if test -n "$CC"; then
1839   ac_cv_prog_CC="$CC" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844   IFS=$as_save_IFS
1845   test -z "$as_dir" && as_dir=.
1846   for ac_exec_ext in '' $ac_executable_extensions; do
1847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850     break 2
1851   fi
1852 done
1853 done
1854
1855 fi
1856 fi
1857 CC=$ac_cv_prog_CC
1858 if test -n "$CC"; then
1859   echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1861 else
1862   echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 fi
1865
1866 fi
1867 if test -z "$ac_cv_prog_CC"; then
1868   ac_ct_CC=$CC
1869   # Extract the first word of "gcc", so it can be a program name with args.
1870 set dummy gcc; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   if test -n "$ac_ct_CC"; then
1877   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886     ac_cv_prog_ac_ct_CC="gcc"
1887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888     break 2
1889   fi
1890 done
1891 done
1892
1893 fi
1894 fi
1895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1896 if test -n "$ac_ct_CC"; then
1897   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1898 echo "${ECHO_T}$ac_ct_CC" >&6
1899 else
1900   echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1902 fi
1903
1904   CC=$ac_ct_CC
1905 else
1906   CC="$ac_cv_prog_CC"
1907 fi
1908
1909 if test -z "$CC"; then
1910   if test -n "$ac_tool_prefix"; then
1911   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1912 set dummy ${ac_tool_prefix}cc; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_CC+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   if test -n "$CC"; then
1919   ac_cv_prog_CC="$CC" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928     ac_cv_prog_CC="${ac_tool_prefix}cc"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1934
1935 fi
1936 fi
1937 CC=$ac_cv_prog_CC
1938 if test -n "$CC"; then
1939   echo "$as_me:$LINENO: result: $CC" >&5
1940 echo "${ECHO_T}$CC" >&6
1941 else
1942   echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944 fi
1945
1946 fi
1947 if test -z "$ac_cv_prog_CC"; then
1948   ac_ct_CC=$CC
1949   # Extract the first word of "cc", so it can be a program name with args.
1950 set dummy cc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1954   echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956   if test -n "$ac_ct_CC"; then
1957   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1961 do
1962   IFS=$as_save_IFS
1963   test -z "$as_dir" && as_dir=.
1964   for ac_exec_ext in '' $ac_executable_extensions; do
1965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966     ac_cv_prog_ac_ct_CC="cc"
1967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968     break 2
1969   fi
1970 done
1971 done
1972
1973 fi
1974 fi
1975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1976 if test -n "$ac_ct_CC"; then
1977   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1978 echo "${ECHO_T}$ac_ct_CC" >&6
1979 else
1980   echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1982 fi
1983
1984   CC=$ac_ct_CC
1985 else
1986   CC="$ac_cv_prog_CC"
1987 fi
1988
1989 fi
1990 if test -z "$CC"; then
1991   # Extract the first word of "cc", so it can be a program name with args.
1992 set dummy cc; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   if test -n "$CC"; then
1999   ac_cv_prog_CC="$CC" # Let the user override the test.
2000 else
2001   ac_prog_rejected=no
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2010        ac_prog_rejected=yes
2011        continue
2012      fi
2013     ac_cv_prog_CC="cc"
2014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015     break 2
2016   fi
2017 done
2018 done
2019
2020 if test $ac_prog_rejected = yes; then
2021   # We found a bogon in the path, so make sure we never use it.
2022   set dummy $ac_cv_prog_CC
2023   shift
2024   if test $# != 0; then
2025     # We chose a different compiler from the bogus one.
2026     # However, it has the same basename, so the bogon will be chosen
2027     # first if we set CC to just the basename; use the full file name.
2028     shift
2029     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2030   fi
2031 fi
2032 fi
2033 fi
2034 CC=$ac_cv_prog_CC
2035 if test -n "$CC"; then
2036   echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 fi
2044 if test -z "$CC"; then
2045   if test -n "$ac_tool_prefix"; then
2046   for ac_prog in cl
2047   do
2048     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   if test -n "$CC"; then
2056   ac_cv_prog_CC="$CC" # Let the user override the test.
2057 else
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061   IFS=$as_save_IFS
2062   test -z "$as_dir" && as_dir=.
2063   for ac_exec_ext in '' $ac_executable_extensions; do
2064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067     break 2
2068   fi
2069 done
2070 done
2071
2072 fi
2073 fi
2074 CC=$ac_cv_prog_CC
2075 if test -n "$CC"; then
2076   echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6
2078 else
2079   echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2081 fi
2082
2083     test -n "$CC" && break
2084   done
2085 fi
2086 if test -z "$CC"; then
2087   ac_ct_CC=$CC
2088   for ac_prog in cl
2089 do
2090   # Extract the first word of "$ac_prog", so it can be a program name with args.
2091 set dummy $ac_prog; ac_word=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   if test -n "$ac_ct_CC"; then
2098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   for ac_exec_ext in '' $ac_executable_extensions; do
2106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107     ac_cv_prog_ac_ct_CC="$ac_prog"
2108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109     break 2
2110   fi
2111 done
2112 done
2113
2114 fi
2115 fi
2116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2117 if test -n "$ac_ct_CC"; then
2118   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2119 echo "${ECHO_T}$ac_ct_CC" >&6
2120 else
2121   echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2123 fi
2124
2125   test -n "$ac_ct_CC" && break
2126 done
2127
2128   CC=$ac_ct_CC
2129 fi
2130
2131 fi
2132
2133
2134 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&2;}
2138    { (exit 1); exit 1; }; }
2139
2140 # Provide some information about the compiler.
2141 echo "$as_me:$LINENO:" \
2142      "checking for C compiler version" >&5
2143 ac_compiler=`set X $ac_compile; echo $2`
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2145   (eval $ac_compiler --version </dev/null >&5) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2150   (eval $ac_compiler -v </dev/null >&5) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2155   (eval $ac_compiler -V </dev/null >&5) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }
2159
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h.  */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h.  */
2166
2167 int
2168 main ()
2169 {
2170
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 ac_clean_files_save=$ac_clean_files
2176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177 # Try to create an executable without -o first, disregard a.out.
2178 # It will help us diagnose broken compilers, and finding out an intuition
2179 # of exeext.
2180 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2184   (eval $ac_link_default) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; then
2188   # Find the output, starting from the most likely.  This scheme is
2189 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2190 # resort.
2191
2192 # Be careful to initialize this variable, since it used to be cached.
2193 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2194 ac_cv_exeext=
2195 # b.out is created by i960 compilers.
2196 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2197 do
2198   test -f "$ac_file" || continue
2199   case $ac_file in
2200     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2201         ;;
2202     conftest.$ac_ext )
2203         # This is the source file.
2204         ;;
2205     [ab].out )
2206         # We found the default executable, but exeext='' is most
2207         # certainly right.
2208         break;;
2209     *.* )
2210         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211         # FIXME: I believe we export ac_cv_exeext for Libtool,
2212         # but it would be cool to find out if it's true.  Does anybody
2213         # maintain Libtool? --akim.
2214         export ac_cv_exeext
2215         break;;
2216     * )
2217         break;;
2218   esac
2219 done
2220 else
2221   echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228    { (exit 77); exit 77; }; }
2229 fi
2230
2231 ac_exeext=$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6
2234
2235 # Check the compiler produces executables we can run.  If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242   if { ac_try='./$ac_file'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248     cross_compiling=no
2249   else
2250     if test "$cross_compiling" = maybe; then
2251         cross_compiling=yes
2252     else
2253         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260     fi
2261   fi
2262 fi
2263 echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6
2265
2266 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2267 ac_clean_files=$ac_clean_files_save
2268 # Check the compiler produces executables we can run.  If not, either
2269 # the compiler is broken, or we cross compile.
2270 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2271 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2272 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2273 echo "${ECHO_T}$cross_compiling" >&6
2274
2275 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2276 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2278   (eval $ac_link) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; then
2282   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2283 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2284 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 # `rm'.
2286 for ac_file in conftest.exe conftest conftest.*; do
2287   test -f "$ac_file" || continue
2288   case $ac_file in
2289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2290     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2291           export ac_cv_exeext
2292           break;;
2293     * ) break;;
2294   esac
2295 done
2296 else
2297   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&2;}
2301    { (exit 1); exit 1; }; }
2302 fi
2303
2304 rm -f conftest$ac_cv_exeext
2305 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2306 echo "${ECHO_T}$ac_cv_exeext" >&6
2307
2308 rm -f conftest.$ac_ext
2309 EXEEXT=$ac_cv_exeext
2310 ac_exeext=$EXEEXT
2311 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2312 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2313 if test "${ac_cv_objext+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h.  */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h.  */
2322
2323 int
2324 main ()
2325 {
2326
2327   ;
2328   return 0;
2329 }
2330 _ACEOF
2331 rm -f conftest.o conftest.obj
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333   (eval $ac_compile) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; then
2337   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2340     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2341        break;;
2342   esac
2343 done
2344 else
2345   echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&2;}
2352    { (exit 1); exit 1; }; }
2353 fi
2354
2355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356 fi
2357 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358 echo "${ECHO_T}$ac_cv_objext" >&6
2359 OBJEXT=$ac_cv_objext
2360 ac_objext=$OBJEXT
2361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376 #ifndef __GNUC__
2377        choke me
2378 #endif
2379
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 rm -f conftest.$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386   (eval $ac_compile) 2>conftest.er1
2387   ac_status=$?
2388   grep -v '^ *+' conftest.er1 >conftest.err
2389   rm -f conftest.er1
2390   cat conftest.err >&5
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); } &&
2393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; } &&
2399          { ac_try='test -s conftest.$ac_objext'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   ac_compiler_gnu=yes
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 ac_compiler_gnu=no
2411 fi
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414
2415 fi
2416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2418 GCC=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CFLAGS=${CFLAGS+set}
2420 ac_save_CFLAGS=$CFLAGS
2421 CFLAGS="-g"
2422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h.  */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h.  */
2433
2434 int
2435 main ()
2436 {
2437
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444   (eval $ac_compile) 2>conftest.er1
2445   ac_status=$?
2446   grep -v '^ *+' conftest.er1 >conftest.err
2447   rm -f conftest.er1
2448   cat conftest.err >&5
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); } &&
2451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453   (eval $ac_try) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; } &&
2457          { ac_try='test -s conftest.$ac_objext'
2458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459   (eval $ac_try) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; }; then
2463   ac_cv_prog_cc_g=yes
2464 else
2465   echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2467
2468 ac_cv_prog_cc_g=no
2469 fi
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 fi
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2474 if test "$ac_test_CFLAGS" = set; then
2475   CFLAGS=$ac_save_CFLAGS
2476 elif test $ac_cv_prog_cc_g = yes; then
2477   if test "$GCC" = yes; then
2478     CFLAGS="-g -O2"
2479   else
2480     CFLAGS="-g"
2481   fi
2482 else
2483   if test "$GCC" = yes; then
2484     CFLAGS="-O2"
2485   else
2486     CFLAGS=
2487   fi
2488 fi
2489 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2490 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   ac_cv_prog_cc_stdc=no
2495 ac_save_CC=$CC
2496 cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502 #include <stdarg.h>
2503 #include <stdio.h>
2504 #include <sys/types.h>
2505 #include <sys/stat.h>
2506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2507 struct buf { int x; };
2508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2509 static char *e (p, i)
2510      char **p;
2511      int i;
2512 {
2513   return p[i];
2514 }
2515 static char *f (char * (*g) (char **, int), char **p, ...)
2516 {
2517   char *s;
2518   va_list v;
2519   va_start (v,p);
2520   s = g (p, va_arg (v,int));
2521   va_end (v);
2522   return s;
2523 }
2524
2525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2526    function prototypes and stuff, but not '\xHH' hex character constants.
2527    These don't provoke an error unfortunately, instead are silently treated
2528    as 'x'.  The following induces an error, until -std1 is added to get
2529    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2530    array size at least.  It's necessary to write '\x00'==0 to get something
2531    that's true only with -std1.  */
2532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2533
2534 int test (int i, double x);
2535 struct s1 {int (*f) (int a);};
2536 struct s2 {int (*f) (double a);};
2537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2538 int argc;
2539 char **argv;
2540 int
2541 main ()
2542 {
2543 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 # Don't try gcc -ansi; that turns off useful extensions and
2549 # breaks some systems' header files.
2550 # AIX                   -qlanglvl=ansi
2551 # Ultrix and OSF/1      -std1
2552 # HP-UX 10.20 and later -Ae
2553 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2554 # SVR4                  -Xc -D__EXTENSIONS__
2555 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2556 do
2557   CC="$ac_save_CC $ac_arg"
2558   rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560   (eval $ac_compile) 2>conftest.er1
2561   ac_status=$?
2562   grep -v '^ *+' conftest.er1 >conftest.err
2563   rm -f conftest.er1
2564   cat conftest.err >&5
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } &&
2567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575   (eval $ac_try) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   ac_cv_prog_cc_stdc=$ac_arg
2580 break
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 fi
2586 rm -f conftest.err conftest.$ac_objext
2587 done
2588 rm -f conftest.$ac_ext conftest.$ac_objext
2589 CC=$ac_save_CC
2590
2591 fi
2592
2593 case "x$ac_cv_prog_cc_stdc" in
2594   x|xno)
2595     echo "$as_me:$LINENO: result: none needed" >&5
2596 echo "${ECHO_T}none needed" >&6 ;;
2597   *)
2598     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2600     CC="$CC $ac_cv_prog_cc_stdc" ;;
2601 esac
2602
2603 # Some people use a C++ compiler to compile C.  Since we use `exit',
2604 # in C++ we need to declare it.  In case someone uses the same compiler
2605 # for both compiling C and C++ we need to have the C++ compiler decide
2606 # the declaration of exit, since it's the most demanding environment.
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #ifndef __cplusplus
2609   choke me
2610 #endif
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>conftest.er1
2615   ac_status=$?
2616   grep -v '^ *+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
2618   cat conftest.err >&5
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; } &&
2627          { ac_try='test -s conftest.$ac_objext'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633   for ac_declaration in \
2634    '' \
2635    'extern "C" void std::exit (int) throw (); using std::exit;' \
2636    'extern "C" void std::exit (int); using std::exit;' \
2637    'extern "C" void exit (int) throw ();' \
2638    'extern "C" void exit (int);' \
2639    'void exit (int);'
2640 do
2641   cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647 $ac_declaration
2648 #include <stdlib.h>
2649 int
2650 main ()
2651 {
2652 exit (42);
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } &&
2666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; } &&
2672          { ac_try='test -s conftest.$ac_objext'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; }; then
2678   :
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 continue
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686   cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 $ac_declaration
2693 int
2694 main ()
2695 {
2696 exit (42);
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703   (eval $ac_compile) 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   break
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 fi
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 done
2730 rm -f conftest*
2731 if test -n "$ac_declaration"; then
2732   echo '#ifdef __cplusplus' >>confdefs.h
2733   echo $ac_declaration      >>confdefs.h
2734   echo '#endif'             >>confdefs.h
2735 fi
2736
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 fi
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 DEPDIR="${am__leading_dot}deps"
2749
2750           ac_config_commands="$ac_config_commands depfiles"
2751
2752
2753 am_make=${MAKE-make}
2754 cat > confinc << 'END'
2755 am__doit:
2756         @echo done
2757 .PHONY: am__doit
2758 END
2759 # If we don't find an include directive, just comment out the code.
2760 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2761 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2762 am__include="#"
2763 am__quote=
2764 _am_result=none
2765 # First try GNU make style include.
2766 echo "include confinc" > confmf
2767 # We grep out `Entering directory' and `Leaving directory'
2768 # messages which can occur if `w' ends up in MAKEFLAGS.
2769 # In particular we don't look at `^make:' because GNU make might
2770 # be invoked under some other name (usually "gmake"), in which
2771 # case it prints its new name instead of `make'.
2772 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2773    am__include=include
2774    am__quote=
2775    _am_result=GNU
2776 fi
2777 # Now try BSD make style include.
2778 if test "$am__include" = "#"; then
2779    echo '.include "confinc"' > confmf
2780    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2781       am__include=.include
2782       am__quote="\""
2783       _am_result=BSD
2784    fi
2785 fi
2786
2787
2788 echo "$as_me:$LINENO: result: $_am_result" >&5
2789 echo "${ECHO_T}$_am_result" >&6
2790 rm -f confinc confmf
2791
2792 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2793 if test "${enable_dependency_tracking+set}" = set; then
2794   enableval="$enable_dependency_tracking"
2795
2796 fi;
2797 if test "x$enable_dependency_tracking" != xno; then
2798   am_depcomp="$ac_aux_dir/depcomp"
2799   AMDEPBACKSLASH='\'
2800 fi
2801
2802
2803 if test "x$enable_dependency_tracking" != xno; then
2804   AMDEP_TRUE=
2805   AMDEP_FALSE='#'
2806 else
2807   AMDEP_TRUE='#'
2808   AMDEP_FALSE=
2809 fi
2810
2811
2812
2813
2814 depcc="$CC"   am_compiler_list=
2815
2816 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2817 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2818 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2822   # We make a subdir and do the tests there.  Otherwise we can end up
2823   # making bogus files that we don't know about and never remove.  For
2824   # instance it was reported that on HP-UX the gcc test will end up
2825   # making a dummy file named `D' -- because `-MD' means `put the output
2826   # in D'.
2827   mkdir conftest.dir
2828   # Copy depcomp to subdir because otherwise we won't find it if we're
2829   # using a relative directory.
2830   cp "$am_depcomp" conftest.dir
2831   cd conftest.dir
2832   # We will build objects and dependencies in a subdirectory because
2833   # it helps to detect inapplicable dependency modes.  For instance
2834   # both Tru64's cc and ICC support -MD to output dependencies as a
2835   # side effect of compilation, but ICC will put the dependencies in
2836   # the current directory while Tru64 will put them in the object
2837   # directory.
2838   mkdir sub
2839
2840   am_cv_CC_dependencies_compiler_type=none
2841   if test "$am_compiler_list" = ""; then
2842      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2843   fi
2844   for depmode in $am_compiler_list; do
2845     # Setup a source with many dependencies, because some compilers
2846     # like to wrap large dependency lists on column 80 (with \), and
2847     # we should not choose a depcomp mode which is confused by this.
2848     #
2849     # We need to recreate these files for each test, as the compiler may
2850     # overwrite some of them when testing with obscure command lines.
2851     # This happens at least with the AIX C compiler.
2852     : > sub/conftest.c
2853     for i in 1 2 3 4 5 6; do
2854       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2855       : > sub/conftst$i.h
2856     done
2857     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2858
2859     case $depmode in
2860     nosideeffect)
2861       # after this tag, mechanisms are not by side-effect, so they'll
2862       # only be used when explicitly requested
2863       if test "x$enable_dependency_tracking" = xyes; then
2864         continue
2865       else
2866         break
2867       fi
2868       ;;
2869     none) break ;;
2870     esac
2871     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2872     # mode.  It turns out that the SunPro C++ compiler does not properly
2873     # handle `-M -o', and we need to detect this.
2874     if depmode=$depmode \
2875        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2876        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2877        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2878          >/dev/null 2>conftest.err &&
2879        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2880        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2881        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2882       # icc doesn't choke on unknown options, it will just issue warnings
2883       # (even with -Werror).  So we grep stderr for any message
2884       # that says an option was ignored.
2885       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2886         am_cv_CC_dependencies_compiler_type=$depmode
2887         break
2888       fi
2889     fi
2890   done
2891
2892   cd ..
2893   rm -rf conftest.dir
2894 else
2895   am_cv_CC_dependencies_compiler_type=none
2896 fi
2897
2898 fi
2899 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2900 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2901 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2902
2903
2904
2905 if
2906   test "x$enable_dependency_tracking" != xno \
2907   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2908   am__fastdepCC_TRUE=
2909   am__fastdepCC_FALSE='#'
2910 else
2911   am__fastdepCC_TRUE='#'
2912   am__fastdepCC_FALSE=
2913 fi
2914
2915
2916
2917
2918         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2919 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2920 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   ac_check_lib_save_LIBS=$LIBS
2924 LIBS="-lcposix  $LIBS"
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 /* Override any gcc2 internal prototype to avoid an error.  */
2933 #ifdef __cplusplus
2934 extern "C"
2935 #endif
2936 /* We use char because int might match the return type of a gcc2
2937    builtin and then its argument prototype would still apply.  */
2938 char strerror ();
2939 int
2940 main ()
2941 {
2942 strerror ();
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext conftest$ac_exeext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949   (eval $ac_link) 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } &&
2956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest$ac_exeext'
2963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964   (eval $ac_try) 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; }; then
2968   ac_cv_lib_cposix_strerror=yes
2969 else
2970   echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973 ac_cv_lib_cposix_strerror=no
2974 fi
2975 rm -f conftest.err conftest.$ac_objext \
2976       conftest$ac_exeext conftest.$ac_ext
2977 LIBS=$ac_check_lib_save_LIBS
2978 fi
2979 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2980 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2981 if test $ac_cv_lib_cposix_strerror = yes; then
2982   LIBS="$LIBS -lcposix"
2983 fi
2984
2985
2986
2987
2988
2989
2990 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2991 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2992 if test "${am_cv_prog_cc_stdc+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   am_cv_prog_cc_stdc=no
2996 ac_save_CC="$CC"
2997 # Don't try gcc -ansi; that turns off useful extensions and
2998 # breaks some systems' header files.
2999 # AIX                   -qlanglvl=ansi
3000 # Ultrix and OSF/1      -std1
3001 # HP-UX 10.20 and later -Ae
3002 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3003 # SVR4                  -Xc -D__EXTENSIONS__
3004 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3005 do
3006   CC="$ac_save_CC $ac_arg"
3007   cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013 #include <stdarg.h>
3014 #include <stdio.h>
3015 #include <sys/types.h>
3016 #include <sys/stat.h>
3017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3018 struct buf { int x; };
3019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3020 static char *e (p, i)
3021      char **p;
3022      int i;
3023 {
3024   return p[i];
3025 }
3026 static char *f (char * (*g) (char **, int), char **p, ...)
3027 {
3028   char *s;
3029   va_list v;
3030   va_start (v,p);
3031   s = g (p, va_arg (v,int));
3032   va_end (v);
3033   return s;
3034 }
3035 int test (int i, double x);
3036 struct s1 {int (*f) (int a);};
3037 struct s2 {int (*f) (double a);};
3038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3039 int argc;
3040 char **argv;
3041
3042 int
3043 main ()
3044 {
3045
3046 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3047
3048   ;
3049   return 0;
3050 }
3051 _ACEOF
3052 rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054   (eval $ac_compile) 2>conftest.er1
3055   ac_status=$?
3056   grep -v '^ *+' conftest.er1 >conftest.err
3057   rm -f conftest.er1
3058   cat conftest.err >&5
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } &&
3061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063   (eval $ac_try) 2>&5
3064   ac_status=$?
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); }; } &&
3067          { ac_try='test -s conftest.$ac_objext'
3068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069   (eval $ac_try) 2>&5
3070   ac_status=$?
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); }; }; then
3073   am_cv_prog_cc_stdc="$ac_arg"; break
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 fi
3079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080 done
3081 CC="$ac_save_CC"
3082
3083 fi
3084
3085 if test -z "$am_cv_prog_cc_stdc"; then
3086   echo "$as_me:$LINENO: result: none needed" >&5
3087 echo "${ECHO_T}none needed" >&6
3088 else
3089   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3090 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3091 fi
3092 case "x$am_cv_prog_cc_stdc" in
3093   x|xno) ;;
3094   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3095 esac
3096
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3103 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3104 # On Suns, sometimes $CPP names a directory.
3105 if test -n "$CPP" && test -d "$CPP"; then
3106   CPP=
3107 fi
3108 if test -z "$CPP"; then
3109   if test "${ac_cv_prog_CPP+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112       # Double quotes because CPP needs to be expanded
3113     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3114     do
3115       ac_preproc_ok=false
3116 for ac_c_preproc_warn_flag in '' yes
3117 do
3118   # Use a header file that comes with gcc, so configuring glibc
3119   # with a fresh cross-compiler works.
3120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121   # <limits.h> exists even on freestanding compilers.
3122   # On the NeXT, cc -E runs the code through the compiler's parser,
3123   # not just through cpp. "Syntax error" is here to catch this case.
3124   cat >conftest.$ac_ext <<_ACEOF
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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3148   else
3149     ac_cpp_err=
3150   fi
3151 else
3152   ac_cpp_err=yes
3153 fi
3154 if test -z "$ac_cpp_err"; then
3155   :
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160   # Broken: fails on valid input.
3161 continue
3162 fi
3163 rm -f conftest.err conftest.$ac_ext
3164
3165   # OK, works on sane cases.  Now check whether non-existent headers
3166   # can be detected and how.
3167   cat >conftest.$ac_ext <<_ACEOF
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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3186   else
3187     ac_cpp_err=
3188   fi
3189 else
3190   ac_cpp_err=yes
3191 fi
3192 if test -z "$ac_cpp_err"; then
3193   # Broken: success on invalid input.
3194 continue
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199   # Passes both tests.
3200 ac_preproc_ok=:
3201 break
3202 fi
3203 rm -f conftest.err conftest.$ac_ext
3204
3205 done
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3209   break
3210 fi
3211
3212     done
3213     ac_cv_prog_CPP=$CPP
3214
3215 fi
3216   CPP=$ac_cv_prog_CPP
3217 else
3218   ac_cv_prog_CPP=$CPP
3219 fi
3220 echo "$as_me:$LINENO: result: $CPP" >&5
3221 echo "${ECHO_T}$CPP" >&6
3222 ac_preproc_ok=false
3223 for ac_c_preproc_warn_flag in '' yes
3224 do
3225   # Use a header file that comes with gcc, so configuring glibc
3226   # with a fresh cross-compiler works.
3227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228   # <limits.h> exists even on freestanding compilers.
3229   # On the NeXT, cc -E runs the code through the compiler's parser,
3230   # not just through cpp. "Syntax error" is here to catch this case.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #ifdef __STDC__
3238 # include <limits.h>
3239 #else
3240 # include <assert.h>
3241 #endif
3242                      Syntax error
3243 _ACEOF
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246   ac_status=$?
3247   grep -v '^ *+' conftest.er1 >conftest.err
3248   rm -f conftest.er1
3249   cat conftest.err >&5
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } >/dev/null; then
3252   if test -s conftest.err; then
3253     ac_cpp_err=$ac_c_preproc_warn_flag
3254     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255   else
3256     ac_cpp_err=
3257   fi
3258 else
3259   ac_cpp_err=yes
3260 fi
3261 if test -z "$ac_cpp_err"; then
3262   :
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267   # Broken: fails on valid input.
3268 continue
3269 fi
3270 rm -f conftest.err conftest.$ac_ext
3271
3272   # OK, works on sane cases.  Now check whether non-existent headers
3273   # can be detected and how.
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <ac_nonexistent.h>
3281 _ACEOF
3282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3283   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3284   ac_status=$?
3285   grep -v '^ *+' conftest.er1 >conftest.err
3286   rm -f conftest.er1
3287   cat conftest.err >&5
3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289   (exit $ac_status); } >/dev/null; then
3290   if test -s conftest.err; then
3291     ac_cpp_err=$ac_c_preproc_warn_flag
3292     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293   else
3294     ac_cpp_err=
3295   fi
3296 else
3297   ac_cpp_err=yes
3298 fi
3299 if test -z "$ac_cpp_err"; then
3300   # Broken: success on invalid input.
3301 continue
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306   # Passes both tests.
3307 ac_preproc_ok=:
3308 break
3309 fi
3310 rm -f conftest.err conftest.$ac_ext
3311
3312 done
3313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3314 rm -f conftest.err conftest.$ac_ext
3315 if $ac_preproc_ok; then
3316   :
3317 else
3318   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&2;}
3322    { (exit 1); exit 1; }; }
3323 fi
3324
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330
3331
3332 echo "$as_me:$LINENO: checking for egrep" >&5
3333 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3334 if test "${ac_cv_prog_egrep+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3338     then ac_cv_prog_egrep='grep -E'
3339     else ac_cv_prog_egrep='egrep'
3340     fi
3341 fi
3342 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3343 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3344  EGREP=$ac_cv_prog_egrep
3345
3346
3347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3358                   inttypes.h stdint.h unistd.h
3359 do
3360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3361 echo "$as_me:$LINENO: checking for $ac_header" >&5
3362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3364   echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 $ac_includes_default
3373
3374 #include <$ac_header>
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378   (eval $ac_compile) 2>conftest.er1
3379   ac_status=$?
3380   grep -v '^ *+' conftest.er1 >conftest.err
3381   rm -f conftest.er1
3382   cat conftest.err >&5
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } &&
3385          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; } &&
3391          { ac_try='test -s conftest.$ac_objext'
3392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393   (eval $ac_try) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; }; then
3397   eval "$as_ac_Header=yes"
3398 else
3399   echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 eval "$as_ac_Header=no"
3403 fi
3404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3405 fi
3406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3409   cat >>confdefs.h <<_ACEOF
3410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3411 _ACEOF
3412
3413 fi
3414
3415 done
3416
3417
3418
3419
3420 echo "$as_me:$LINENO: checking for function prototypes" >&5
3421 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3422 if test "$am_cv_prog_cc_stdc" != no; then
3423   echo "$as_me:$LINENO: result: yes" >&5
3424 echo "${ECHO_T}yes" >&6
3425
3426 cat >>confdefs.h <<\_ACEOF
3427 #define PROTOTYPES 1
3428 _ACEOF
3429
3430   U= ANSI2KNR=
3431 else
3432   echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3434   U=_ ANSI2KNR=./ansi2knr
3435 fi
3436 # Ensure some checks needed by ansi2knr itself.
3437 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3438 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3439 if test "${ac_cv_header_stdc+set}" = set; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442   cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448 #include <stdlib.h>
3449 #include <stdarg.h>
3450 #include <string.h>
3451 #include <float.h>
3452
3453 int
3454 main ()
3455 {
3456
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463   (eval $ac_compile) 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } &&
3470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472   (eval $ac_try) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; } &&
3476          { ac_try='test -s conftest.$ac_objext'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; }; then
3482   ac_cv_header_stdc=yes
3483 else
3484   echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 ac_cv_header_stdc=no
3488 fi
3489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3490
3491 if test $ac_cv_header_stdc = yes; then
3492   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3493   cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h.  */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h.  */
3499 #include <string.h>
3500
3501 _ACEOF
3502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503   $EGREP "memchr" >/dev/null 2>&1; then
3504   :
3505 else
3506   ac_cv_header_stdc=no
3507 fi
3508 rm -f conftest*
3509
3510 fi
3511
3512 if test $ac_cv_header_stdc = yes; then
3513   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3514   cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520 #include <stdlib.h>
3521
3522 _ACEOF
3523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3524   $EGREP "free" >/dev/null 2>&1; then
3525   :
3526 else
3527   ac_cv_header_stdc=no
3528 fi
3529 rm -f conftest*
3530
3531 fi
3532
3533 if test $ac_cv_header_stdc = yes; then
3534   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3535   if test "$cross_compiling" = yes; then
3536   :
3537 else
3538   cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 #include <ctype.h>
3545 #if ((' ' & 0x0FF) == 0x020)
3546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3548 #else
3549 # define ISLOWER(c) \
3550                    (('a' <= (c) && (c) <= 'i') \
3551                      || ('j' <= (c) && (c) <= 'r') \
3552                      || ('s' <= (c) && (c) <= 'z'))
3553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3554 #endif
3555
3556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3557 int
3558 main ()
3559 {
3560   int i;
3561   for (i = 0; i < 256; i++)
3562     if (XOR (islower (i), ISLOWER (i))
3563         || toupper (i) != TOUPPER (i))
3564       exit(2);
3565   exit (0);
3566 }
3567 _ACEOF
3568 rm -f conftest$ac_exeext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3570   (eval $ac_link) 2>&5
3571   ac_status=$?
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575   (eval $ac_try) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }; }; then
3579   :
3580 else
3581   echo "$as_me: program exited with status $ac_status" >&5
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 ( exit $ac_status )
3586 ac_cv_header_stdc=no
3587 fi
3588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 fi
3591 fi
3592 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3593 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3594 if test $ac_cv_header_stdc = yes; then
3595
3596 cat >>confdefs.h <<\_ACEOF
3597 #define STDC_HEADERS 1
3598 _ACEOF
3599
3600 fi
3601
3602
3603 for ac_header in string.h
3604 do
3605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607   echo "$as_me:$LINENO: checking for $ac_header" >&5
3608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 fi
3612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3614 else
3615   # Is the header compilable?
3616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624 $ac_includes_default
3625 #include <$ac_header>
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629   (eval $ac_compile) 2>conftest.er1
3630   ac_status=$?
3631   grep -v '^ *+' conftest.er1 >conftest.err
3632   rm -f conftest.er1
3633   cat conftest.err >&5
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } &&
3636          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638   (eval $ac_try) 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); }; } &&
3642          { ac_try='test -s conftest.$ac_objext'
3643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644   (eval $ac_try) 2>&5
3645   ac_status=$?
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); }; }; then
3648   ac_header_compiler=yes
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 ac_header_compiler=no
3654 fi
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3657 echo "${ECHO_T}$ac_header_compiler" >&6
3658
3659 # Is the header present?
3660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #include <$ac_header>
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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3681   else
3682     ac_cpp_err=
3683   fi
3684 else
3685   ac_cpp_err=yes
3686 fi
3687 if test -z "$ac_cpp_err"; then
3688   ac_header_preproc=yes
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693   ac_header_preproc=no
3694 fi
3695 rm -f conftest.err conftest.$ac_ext
3696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3697 echo "${ECHO_T}$ac_header_preproc" >&6
3698
3699 # So?  What about this header?
3700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3701   yes:no: )
3702     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3706     ac_header_preproc=yes
3707     ;;
3708   no:yes:* )
3709     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3712 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3713     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3715     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3716 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3719     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3721     (
3722       cat <<\_ASBOX
3723 ## ------------------------------------------ ##
3724 ## Report this to the AC_PACKAGE_NAME lists.  ##
3725 ## ------------------------------------------ ##
3726 _ASBOX
3727     ) |
3728       sed "s/^/$as_me: WARNING:     /" >&2
3729     ;;
3730 esac
3731 echo "$as_me:$LINENO: checking for $ac_header" >&5
3732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   eval "$as_ac_Header=\$ac_header_preproc"
3737 fi
3738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3740
3741 fi
3742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3743   cat >>confdefs.h <<_ACEOF
3744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3745 _ACEOF
3746
3747 fi
3748
3749 done
3750
3751
3752 if test "x$U" != "x"; then
3753   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3754 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3755    { (exit 1); exit 1; }; }
3756 fi
3757 ac_ext=c
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3763 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3764 # On Suns, sometimes $CPP names a directory.
3765 if test -n "$CPP" && test -d "$CPP"; then
3766   CPP=
3767 fi
3768 if test -z "$CPP"; then
3769   if test "${ac_cv_prog_CPP+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772       # Double quotes because CPP needs to be expanded
3773     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3774     do
3775       ac_preproc_ok=false
3776 for ac_c_preproc_warn_flag in '' yes
3777 do
3778   # Use a header file that comes with gcc, so configuring glibc
3779   # with a fresh cross-compiler works.
3780   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781   # <limits.h> exists even on freestanding compilers.
3782   # On the NeXT, cc -E runs the code through the compiler's parser,
3783   # not just through cpp. "Syntax error" is here to catch this case.
3784   cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h.  */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h.  */
3790 #ifdef __STDC__
3791 # include <limits.h>
3792 #else
3793 # include <assert.h>
3794 #endif
3795                      Syntax error
3796 _ACEOF
3797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3799   ac_status=$?
3800   grep -v '^ *+' conftest.er1 >conftest.err
3801   rm -f conftest.er1
3802   cat conftest.err >&5
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); } >/dev/null; then
3805   if test -s conftest.err; then
3806     ac_cpp_err=$ac_c_preproc_warn_flag
3807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3808   else
3809     ac_cpp_err=
3810   fi
3811 else
3812   ac_cpp_err=yes
3813 fi
3814 if test -z "$ac_cpp_err"; then
3815   :
3816 else
3817   echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820   # Broken: fails on valid input.
3821 continue
3822 fi
3823 rm -f conftest.err conftest.$ac_ext
3824
3825   # OK, works on sane cases.  Now check whether non-existent headers
3826   # can be detected and how.
3827   cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h.  */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h.  */
3833 #include <ac_nonexistent.h>
3834 _ACEOF
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3837   ac_status=$?
3838   grep -v '^ *+' conftest.er1 >conftest.err
3839   rm -f conftest.er1
3840   cat conftest.err >&5
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); } >/dev/null; then
3843   if test -s conftest.err; then
3844     ac_cpp_err=$ac_c_preproc_warn_flag
3845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3846   else
3847     ac_cpp_err=
3848   fi
3849 else
3850   ac_cpp_err=yes
3851 fi
3852 if test -z "$ac_cpp_err"; then
3853   # Broken: success on invalid input.
3854 continue
3855 else
3856   echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859   # Passes both tests.
3860 ac_preproc_ok=:
3861 break
3862 fi
3863 rm -f conftest.err conftest.$ac_ext
3864
3865 done
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then
3869   break
3870 fi
3871
3872     done
3873     ac_cv_prog_CPP=$CPP
3874
3875 fi
3876   CPP=$ac_cv_prog_CPP
3877 else
3878   ac_cv_prog_CPP=$CPP
3879 fi
3880 echo "$as_me:$LINENO: result: $CPP" >&5
3881 echo "${ECHO_T}$CPP" >&6
3882 ac_preproc_ok=false
3883 for ac_c_preproc_warn_flag in '' yes
3884 do
3885   # Use a header file that comes with gcc, so configuring glibc
3886   # with a fresh cross-compiler works.
3887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888   # <limits.h> exists even on freestanding compilers.
3889   # On the NeXT, cc -E runs the code through the compiler's parser,
3890   # not just through cpp. "Syntax error" is here to catch this case.
3891   cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 #ifdef __STDC__
3898 # include <limits.h>
3899 #else
3900 # include <assert.h>
3901 #endif
3902                      Syntax error
3903 _ACEOF
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3906   ac_status=$?
3907   grep -v '^ *+' conftest.er1 >conftest.err
3908   rm -f conftest.er1
3909   cat conftest.err >&5
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); } >/dev/null; then
3912   if test -s conftest.err; then
3913     ac_cpp_err=$ac_c_preproc_warn_flag
3914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3915   else
3916     ac_cpp_err=
3917   fi
3918 else
3919   ac_cpp_err=yes
3920 fi
3921 if test -z "$ac_cpp_err"; then
3922   :
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927   # Broken: fails on valid input.
3928 continue
3929 fi
3930 rm -f conftest.err conftest.$ac_ext
3931
3932   # OK, works on sane cases.  Now check whether non-existent headers
3933   # can be detected and how.
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940 #include <ac_nonexistent.h>
3941 _ACEOF
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
3947   cat conftest.err >&5
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } >/dev/null; then
3950   if test -s conftest.err; then
3951     ac_cpp_err=$ac_c_preproc_warn_flag
3952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3953   else
3954     ac_cpp_err=
3955   fi
3956 else
3957   ac_cpp_err=yes
3958 fi
3959 if test -z "$ac_cpp_err"; then
3960   # Broken: success on invalid input.
3961 continue
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966   # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3969 fi
3970 rm -f conftest.err conftest.$ac_ext
3971
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then
3976   :
3977 else
3978   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3979 See \`config.log' for more details." >&5
3980 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." >&2;}
3982    { (exit 1); exit 1; }; }
3983 fi
3984
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990
3991 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3992 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3993 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3994 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   cat >conftest.make <<\_ACEOF
3998 all:
3999         @echo 'ac_maketemp="$(MAKE)"'
4000 _ACEOF
4001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4002 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4003 if test -n "$ac_maketemp"; then
4004   eval ac_cv_prog_make_${ac_make}_set=yes
4005 else
4006   eval ac_cv_prog_make_${ac_make}_set=no
4007 fi
4008 rm -f conftest.make
4009 fi
4010 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4011   echo "$as_me:$LINENO: result: yes" >&5
4012 echo "${ECHO_T}yes" >&6
4013   SET_MAKE=
4014 else
4015   echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4017   SET_MAKE="MAKE=${MAKE-make}"
4018 fi
4019
4020 # Find a good install program.  We prefer a C program (faster),
4021 # so one script is as good as another.  But avoid the broken or
4022 # incompatible versions:
4023 # SysV /etc/install, /usr/sbin/install
4024 # SunOS /usr/etc/install
4025 # IRIX /sbin/install
4026 # AIX /bin/install
4027 # AmigaOS /C/install, which installs bootblocks on floppy discs
4028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4031 # OS/2's system install, which has a completely different semantic
4032 # ./install, which can be erroneously created by make from ./install.sh.
4033 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4034 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4035 if test -z "$INSTALL"; then
4036 if test "${ac_cv_path_install+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044   # Account for people who put trailing slashes in PATH elements.
4045 case $as_dir/ in
4046   ./ | .// | /cC/* | \
4047   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4048   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4049   /usr/ucb/* ) ;;
4050   *)
4051     # OSF1 and SCO ODT 3.0 have their own names for install.
4052     # Don't use installbsd from OSF since it installs stuff as root
4053     # by default.
4054     for ac_prog in ginstall scoinst install; do
4055       for ac_exec_ext in '' $ac_executable_extensions; do
4056         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4057           if test $ac_prog = install &&
4058             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4059             # AIX install.  It has an incompatible calling convention.
4060             :
4061           elif test $ac_prog = install &&
4062             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4063             # program-specific install script used by HP pwplus--don't use.
4064             :
4065           else
4066             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4067             break 3
4068           fi
4069         fi
4070       done
4071     done
4072     ;;
4073 esac
4074 done
4075
4076
4077 fi
4078   if test "${ac_cv_path_install+set}" = set; then
4079     INSTALL=$ac_cv_path_install
4080   else
4081     # As a last resort, use the slow shell script.  We don't cache a
4082     # path for INSTALL within a source directory, because that will
4083     # break other packages using the cache if that directory is
4084     # removed, or if the path is relative.
4085     INSTALL=$ac_install_sh
4086   fi
4087 fi
4088 echo "$as_me:$LINENO: result: $INSTALL" >&5
4089 echo "${ECHO_T}$INSTALL" >&6
4090
4091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4092 # It thinks the first close brace ends the variable substitution.
4093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4094
4095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4096
4097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4098
4099 if test -n "$ac_tool_prefix"; then
4100   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_RANLIB+set}" = set; then
4105   echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107   if test -n "$RANLIB"; then
4108   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115   for ac_exec_ext in '' $ac_executable_extensions; do
4116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122 done
4123
4124 fi
4125 fi
4126 RANLIB=$ac_cv_prog_RANLIB
4127 if test -n "$RANLIB"; then
4128   echo "$as_me:$LINENO: result: $RANLIB" >&5
4129 echo "${ECHO_T}$RANLIB" >&6
4130 else
4131   echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4133 fi
4134
4135 fi
4136 if test -z "$ac_cv_prog_RANLIB"; then
4137   ac_ct_RANLIB=$RANLIB
4138   # Extract the first word of "ranlib", so it can be a program name with args.
4139 set dummy ranlib; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   if test -n "$ac_ct_RANLIB"; then
4146   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151   IFS=$as_save_IFS
4152   test -z "$as_dir" && as_dir=.
4153   for ac_exec_ext in '' $ac_executable_extensions; do
4154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155     ac_cv_prog_ac_ct_RANLIB="ranlib"
4156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157     break 2
4158   fi
4159 done
4160 done
4161
4162   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4163 fi
4164 fi
4165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4166 if test -n "$ac_ct_RANLIB"; then
4167   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4168 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4169 else
4170   echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174   RANLIB=$ac_ct_RANLIB
4175 else
4176   RANLIB="$ac_cv_prog_RANLIB"
4177 fi
4178
4179 if test -n "$ac_tool_prefix"; then
4180   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}ar; ac_word=$2
4182 echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4184 if test "${ac_cv_prog_AR+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   if test -n "$AR"; then
4188   ac_cv_prog_AR="$AR" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     ac_cv_prog_AR="${ac_tool_prefix}ar"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203
4204 fi
4205 fi
4206 AR=$ac_cv_prog_AR
4207 if test -n "$AR"; then
4208   echo "$as_me:$LINENO: result: $AR" >&5
4209 echo "${ECHO_T}$AR" >&6
4210 else
4211   echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4213 fi
4214
4215 fi
4216 if test -z "$ac_cv_prog_AR"; then
4217   ac_ct_AR=$AR
4218   # Extract the first word of "ar", so it can be a program name with args.
4219 set dummy ar; ac_word=$2
4220 echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   if test -n "$ac_ct_AR"; then
4226   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235     ac_cv_prog_ac_ct_AR="ar"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241
4242   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4243 fi
4244 fi
4245 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4246 if test -n "$ac_ct_AR"; then
4247   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4248 echo "${ECHO_T}$ac_ct_AR" >&6
4249 else
4250   echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4252 fi
4253
4254   AR=$ac_ct_AR
4255 else
4256   AR="$ac_cv_prog_AR"
4257 fi
4258
4259
4260 echo "$as_me:$LINENO: checking for inline" >&5
4261 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4262 if test "${ac_cv_c_inline+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   ac_cv_c_inline=no
4266 for ac_kw in inline __inline__ __inline; do
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 #ifndef __cplusplus
4274 typedef int foo_t;
4275 static $ac_kw foo_t static_foo () {return 0; }
4276 $ac_kw foo_t foo () {return 0; }
4277 #endif
4278
4279 _ACEOF
4280 rm -f conftest.$ac_objext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282   (eval $ac_compile) 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } &&
4289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291   (eval $ac_try) 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; } &&
4295          { ac_try='test -s conftest.$ac_objext'
4296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297   (eval $ac_try) 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); }; }; then
4301   ac_cv_c_inline=$ac_kw; break
4302 else
4303   echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306 fi
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 done
4309
4310 fi
4311 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4312 echo "${ECHO_T}$ac_cv_c_inline" >&6
4313
4314
4315 case $ac_cv_c_inline in
4316   inline | yes) ;;
4317   *)
4318     case $ac_cv_c_inline in
4319       no) ac_val=;;
4320       *) ac_val=$ac_cv_c_inline;;
4321     esac
4322     cat >>confdefs.h <<_ACEOF
4323 #ifndef __cplusplus
4324 #define inline $ac_val
4325 #endif
4326 _ACEOF
4327     ;;
4328 esac
4329
4330 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4331 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4332 if test "${ac_cv_c_const+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341
4342 int
4343 main ()
4344 {
4345 /* FIXME: Include the comments suggested by Paul. */
4346 #ifndef __cplusplus
4347   /* Ultrix mips cc rejects this.  */
4348   typedef int charset[2];
4349   const charset x;
4350   /* SunOS 4.1.1 cc rejects this.  */
4351   char const *const *ccp;
4352   char **p;
4353   /* NEC SVR4.0.2 mips cc rejects this.  */
4354   struct point {int x, y;};
4355   static struct point const zero = {0,0};
4356   /* AIX XL C 1.02.0.0 rejects this.
4357      It does not let you subtract one const X* pointer from another in
4358      an arm of an if-expression whose if-part is not a constant
4359      expression */
4360   const char *g = "string";
4361   ccp = &g + (g ? g-g : 0);
4362   /* HPUX 7.0 cc rejects these. */
4363   ++ccp;
4364   p = (char**) ccp;
4365   ccp = (char const *const *) p;
4366   { /* SCO 3.2v4 cc rejects this.  */
4367     char *t;
4368     char const *s = 0 ? (char *) 0 : (char const *) 0;
4369
4370     *t++ = 0;
4371   }
4372   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4373     int x[] = {25, 17};
4374     const int *foo = &x[0];
4375     ++foo;
4376   }
4377   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4378     typedef const int *iptr;
4379     iptr p = 0;
4380     ++p;
4381   }
4382   { /* AIX XL C 1.02.0.0 rejects this saying
4383        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4384     struct s { int j; const int *ap[3]; };
4385     struct s *b; b->j = 5;
4386   }
4387   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4388     const int foo = 10;
4389   }
4390 #endif
4391
4392   ;
4393   return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398   (eval $ac_compile) 2>conftest.er1
4399   ac_status=$?
4400   grep -v '^ *+' conftest.er1 >conftest.err
4401   rm -f conftest.er1
4402   cat conftest.err >&5
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } &&
4405          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407   (eval $ac_try) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; } &&
4411          { ac_try='test -s conftest.$ac_objext'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   ac_cv_c_const=yes
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 ac_cv_c_const=no
4423 fi
4424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4425 fi
4426 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4427 echo "${ECHO_T}$ac_cv_c_const" >&6
4428 if test $ac_cv_c_const = no; then
4429
4430 cat >>confdefs.h <<\_ACEOF
4431 #define const
4432 _ACEOF
4433
4434 fi
4435
4436
4437 # Extract the first word of "dbx", so it can be a program name with args.
4438 set dummy dbx; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_path_DBX+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   case $DBX in
4445   [\\/]* | ?:[\\/]*)
4446   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4447   ;;
4448   *)
4449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454   for ac_exec_ext in '' $ac_executable_extensions; do
4455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461 done
4462
4463   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4464   ;;
4465 esac
4466 fi
4467 DBX=$ac_cv_path_DBX
4468
4469 if test -n "$DBX"; then
4470   echo "$as_me:$LINENO: result: $DBX" >&5
4471 echo "${ECHO_T}$DBX" >&6
4472 else
4473   echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6
4475 fi
4476
4477 # Extract the first word of "gdb", so it can be a program name with args.
4478 set dummy gdb; ac_word=$2
4479 echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481 if test "${ac_cv_path_GDB+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   case $GDB in
4485   [\\/]* | ?:[\\/]*)
4486   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4487   ;;
4488   *)
4489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492   IFS=$as_save_IFS
4493   test -z "$as_dir" && as_dir=.
4494   for ac_exec_ext in '' $ac_executable_extensions; do
4495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498     break 2
4499   fi
4500 done
4501 done
4502
4503   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4504   ;;
4505 esac
4506 fi
4507 GDB=$ac_cv_path_GDB
4508
4509 if test -n "$GDB"; then
4510   echo "$as_me:$LINENO: result: $GDB" >&5
4511 echo "${ECHO_T}$GDB" >&6
4512 else
4513   echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517 # Extract the first word of "sdb", so it can be a program name with args.
4518 set dummy sdb; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_SDB+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   case $SDB in
4525   [\\/]* | ?:[\\/]*)
4526   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4527   ;;
4528   *)
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   for ac_exec_ext in '' $ac_executable_extensions; do
4535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542
4543   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4544   ;;
4545 esac
4546 fi
4547 SDB=$ac_cv_path_SDB
4548
4549 if test -n "$SDB"; then
4550   echo "$as_me:$LINENO: result: $SDB" >&5
4551 echo "${ECHO_T}$SDB" >&6
4552 else
4553   echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4555 fi
4556
4557
4558 if test $GDB != no ; then
4559         DEBUGGER=$GDB
4560 elif test $DBX != no ; then
4561         DEBUGGER=$DBX
4562 elif test $SDB != no ; then
4563         DEBUGGER=$SDB
4564 else
4565         DEBUGGER=no
4566 fi
4567
4568
4569
4570 # The following templates should be used with newer automakes
4571 # instead of acconfig.h
4572 #
4573 #AH_TEMPLATE([sig_atomic_t],
4574 #            [/* Define to `int' if <signal.h> doesn't define.])
4575 #AH_TEMPLATE([HAVE_START_COLOR],
4576 #            [Define if you have start_color, as a function or macro.])
4577 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4578 #            [Define if you have typeahead, as a function or macro.])
4579 #AH_TEMPLATE([HAVE_BKGDSET],
4580 #            [Define if you have bkgdset, as a function or macro.])
4581 #AH_TEMPLATE([HAVE_CURS_SET],
4582 #            [Define if you have curs_set, as a function or macro.])
4583 #AH_TEMPLATE([HAVE_META],
4584 #            [Define if you have meta, as a function or macro.])
4585 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4586 #            [Define if you have use_default_colors, as a function or macro.])
4587 #AH_TEMPLATE([HAVE_RESIZETERM],
4588 #            [Define if you have resizeterm, as a function or macro.])
4589 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4590 #            [Some systems declare sig_atomic_t as volatile, some others -- no.
4591 #             This define will have value `sig_atomic_t' or
4592 #             `volatile sig_atomic_t' accordingly.])
4593 #AH_TEMPLATE([ICONV_NONTRANS],
4594 #            [Define as 1 if iconv() only converts exactly and we should treat
4595 #             all return values other than (size_t)(-1) as equivalent.])
4596
4597
4598 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4599 # Extract the first word of "sendmail", so it can be a program name with args.
4600 set dummy sendmail; ac_word=$2
4601 echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4603 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   case $SENDMAIL in
4607   [\\/]* | ?:[\\/]*)
4608   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4609   ;;
4610   *)
4611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 as_dummy="$PATH:$ac_aux_path_sendmail"
4613 for as_dir in $as_dummy
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625
4626   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4627   ;;
4628 esac
4629 fi
4630 SENDMAIL=$ac_cv_path_SENDMAIL
4631
4632 if test -n "$SENDMAIL"; then
4633   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4634 echo "${ECHO_T}$SENDMAIL" >&6
4635 else
4636   echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638 fi
4639
4640
4641 cat >>confdefs.h <<_ACEOF
4642 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4643 _ACEOF
4644
4645
4646 OPS='$(srcdir)/OPS'
4647 if test -f $srcdir/EXPORTABLE ; then
4648         SUBVERSION="us"
4649 else
4650         SUBVERSION="i"
4651
4652         # Check whether --enable-pgp or --disable-pgp was given.
4653 if test "${enable_pgp+set}" = set; then
4654   enableval="$enable_pgp"
4655          if test x$enableval = xno ; then
4656                         have_pgp=no
4657                 fi
4658
4659 fi;
4660
4661         if test x$have_pgp != xno ; then
4662
4663 cat >>confdefs.h <<\_ACEOF
4664 #define CRYPT_BACKEND_CLASSIC_PGP 1
4665 _ACEOF
4666
4667                 PGPAUX_TARGET="pgpring pgpewrap"
4668                 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"
4669         fi
4670
4671         # Check whether --enable-smime or --disable-smime was given.
4672 if test "${enable_smime+set}" = set; then
4673   enableval="$enable_smime"
4674         if test x$enableval = xno ; then
4675                         have_smime=no
4676                 fi
4677
4678 fi;
4679
4680         if test x$have_smime != xno ; then
4681
4682 cat >>confdefs.h <<\_ACEOF
4683 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4684 _ACEOF
4685
4686                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
4687                 SMIMEAUX_TARGET="smime_keys"
4688         fi
4689
4690
4691 # Check whether --with-mixmaster or --without-mixmaster was given.
4692 if test "${with_mixmaster+set}" = set; then
4693   withval="$with_mixmaster"
4694   if test -x "$withval" ; then
4695                         MIXMASTER="$withval"
4696                  else
4697                         MIXMASTER="mixmaster"
4698                  fi
4699                  OPS="$OPS \$(srcdir)/OPS.MIX"
4700                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4701
4702 cat >>confdefs.h <<_ACEOF
4703 #define MIXMASTER "$MIXMASTER"
4704 _ACEOF
4705
4706
4707 fi;
4708
4709 fi
4710 # We now require all OPS
4711 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4712
4713
4714
4715
4716
4717
4718
4719 cat >>confdefs.h <<_ACEOF
4720 #define SUBVERSION "$SUBVERSION"
4721 _ACEOF
4722
4723
4724
4725 # Extract the first word of "ispell", so it can be a program name with args.
4726 set dummy ispell; ac_word=$2
4727 echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729 if test "${ac_cv_path_ISPELL+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   case $ISPELL in
4733   [\\/]* | ?:[\\/]*)
4734   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4735   ;;
4736   *)
4737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742   for ac_exec_ext in '' $ac_executable_extensions; do
4743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749 done
4750
4751   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4752   ;;
4753 esac
4754 fi
4755 ISPELL=$ac_cv_path_ISPELL
4756
4757 if test -n "$ISPELL"; then
4758   echo "$as_me:$LINENO: result: $ISPELL" >&5
4759 echo "${ECHO_T}$ISPELL" >&6
4760 else
4761   echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4763 fi
4764
4765 if test $ISPELL != no; then
4766
4767 cat >>confdefs.h <<_ACEOF
4768 #define ISPELL "$ISPELL"
4769 _ACEOF
4770
4771 fi
4772
4773
4774 # Check whether --with-slang or --without-slang was given.
4775 if test "${with_slang+set}" = set; then
4776   withval="$with_slang"
4777   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4778 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4779 if test "${mutt_cv_bsdish+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   if test "$cross_compiling" = yes; then
4783   mutt_cv_bsdish=no
4784 else
4785   cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h.  */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h.  */
4791 #include <sys/param.h>
4792
4793 main ()
4794 {
4795 #ifdef BSD
4796         exit (0);
4797 #else
4798         exit (1);
4799 #endif
4800 }
4801 _ACEOF
4802 rm -f conftest$ac_exeext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4804   (eval $ac_link) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   mutt_cv_bsdish=yes
4814 else
4815   echo "$as_me: program exited with status $ac_status" >&5
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 ( exit $ac_status )
4820 mutt_cv_bsdish=no
4821 fi
4822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4823 fi
4824 fi
4825 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4826 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4827
4828         echo "$as_me:$LINENO: checking for S-Lang" >&5
4829 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4830         if test $withval = yes; then
4831                 if test -d $srcdir/../slang; then
4832                         mutt_cv_slang=$srcdir/../slang/src
4833                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4834                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4835                 else
4836                         if test -d $mutt_cv_prefix/include/slang; then
4837                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4838                         elif test -d /usr/include/slang; then
4839                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4840                         fi
4841                         mutt_cv_slang=yes
4842                 fi
4843         else
4844                                 if test -f $withval/src/slang.h; then
4845                         mutt_cv_slang=$withval/src
4846                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4847                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4848                 else
4849                                                 mutt_cv_slang=$withval
4850                         if test -d $withval/include/slang; then
4851                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4852                         elif test -d $withval/include; then
4853                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4854                         fi
4855                         LDFLAGS="$LDFLAGS -L${withval}/lib"
4856                 fi
4857         fi
4858         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4859 echo "${ECHO_T}$mutt_cv_slang" >&6
4860         if test $mutt_cv_bsdish = yes; then
4861
4862 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4863 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4864 if test "${ac_cv_lib_termlib_main+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   ac_check_lib_save_LIBS=$LIBS
4868 LIBS="-ltermlib  $LIBS"
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h.  */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h.  */
4875
4876
4877 int
4878 main ()
4879 {
4880 main ();
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 rm -f conftest.$ac_objext conftest$ac_exeext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887   (eval $ac_link) 2>conftest.er1
4888   ac_status=$?
4889   grep -v '^ *+' conftest.er1 >conftest.err
4890   rm -f conftest.er1
4891   cat conftest.err >&5
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); } &&
4894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; } &&
4900          { ac_try='test -s conftest$ac_exeext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   ac_cv_lib_termlib_main=yes
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 ac_cv_lib_termlib_main=no
4912 fi
4913 rm -f conftest.err conftest.$ac_objext \
4914       conftest$ac_exeext conftest.$ac_ext
4915 LIBS=$ac_check_lib_save_LIBS
4916 fi
4917 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4918 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4919 if test $ac_cv_lib_termlib_main = yes; then
4920   cat >>confdefs.h <<_ACEOF
4921 #define HAVE_LIBTERMLIB 1
4922 _ACEOF
4923
4924   LIBS="-ltermlib $LIBS"
4925
4926 fi
4927
4928         fi
4929
4930 cat >>confdefs.h <<\_ACEOF
4931 #define USE_SLANG_CURSES 1
4932 _ACEOF
4933
4934
4935 cat >>confdefs.h <<\_ACEOF
4936 #define HAVE_COLOR 1
4937 _ACEOF
4938
4939         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4940
4941
4942         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4943 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4944 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947   ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-lslang -lm $LIBS"
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955
4956 /* Override any gcc2 internal prototype to avoid an error.  */
4957 #ifdef __cplusplus
4958 extern "C"
4959 #endif
4960 /* We use char because int might match the return type of a gcc2
4961    builtin and then its argument prototype would still apply.  */
4962 char SLtt_get_terminfo ();
4963 int
4964 main ()
4965 {
4966 SLtt_get_terminfo ();
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973   (eval $ac_link) 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } &&
4980          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; } &&
4986          { ac_try='test -s conftest$ac_exeext'
4987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988   (eval $ac_try) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   ac_cv_lib_slang_SLtt_get_terminfo=yes
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 ac_cv_lib_slang_SLtt_get_terminfo=no
4998 fi
4999 rm -f conftest.err conftest.$ac_objext \
5000       conftest$ac_exeext conftest.$ac_ext
5001 LIBS=$ac_check_lib_save_LIBS
5002 fi
5003 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
5004 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
5005 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
5006   MUTTLIBS="$MUTTLIBS -lslang -lm"
5007 else
5008   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
5009 echo "$as_me: error: unable to compile.  check config.log" >&2;}
5010    { (exit 1); exit 1; }; }
5011 fi
5012
5013
5014
5015 else
5016   mutt_cv_curses=/usr
5017
5018 # Check whether --with-curses or --without-curses was given.
5019 if test "${with_curses+set}" = set; then
5020   withval="$with_curses"
5021   if test $withval != yes; then
5022                         mutt_cv_curses=$withval
5023                 fi
5024                 if test x$mutt_cv_curses != x/usr; then
5025                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
5026                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
5027                 fi
5028 fi;
5029
5030         echo "$as_me:$LINENO: checking for initscr" >&5
5031 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5032 if test "${ac_cv_func_initscr+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
5042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5043 #define initscr innocuous_initscr
5044
5045 /* System header to define __stub macros and hopefully few prototypes,
5046     which can conflict with char initscr (); below.
5047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048     <limits.h> exists even on freestanding compilers.  */
5049
5050 #ifdef __STDC__
5051 # include <limits.h>
5052 #else
5053 # include <assert.h>
5054 #endif
5055
5056 #undef initscr
5057
5058 /* Override any gcc2 internal prototype to avoid an error.  */
5059 #ifdef __cplusplus
5060 extern "C"
5061 {
5062 #endif
5063 /* We use char because int might match the return type of a gcc2
5064    builtin and then its argument prototype would still apply.  */
5065 char initscr ();
5066 /* The GNU C library defines this for functions which it implements
5067     to always fail with ENOSYS.  Some functions are actually named
5068     something starting with __ and the normal name is an alias.  */
5069 #if defined (__stub_initscr) || defined (__stub___initscr)
5070 choke me
5071 #else
5072 char (*f) () = initscr;
5073 #endif
5074 #ifdef __cplusplus
5075 }
5076 #endif
5077
5078 int
5079 main ()
5080 {
5081 return f != initscr;
5082   ;
5083   return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088   (eval $ac_link) 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; } &&
5101          { ac_try='test -s conftest$ac_exeext'
5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103   (eval $ac_try) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   ac_cv_func_initscr=yes
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_cv_func_initscr=no
5113 fi
5114 rm -f conftest.err conftest.$ac_objext \
5115       conftest$ac_exeext conftest.$ac_ext
5116 fi
5117 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5118 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5119 if test $ac_cv_func_initscr = yes; then
5120   :
5121 else
5122
5123         cf_ncurses="ncurses"
5124         for lib in ncurses ncursesw
5125         do
5126                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
5127 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
5128 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
5129 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5130   echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132   ac_check_lib_save_LIBS=$LIBS
5133 LIBS="-l$lib  $LIBS"
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140
5141 /* Override any gcc2 internal prototype to avoid an error.  */
5142 #ifdef __cplusplus
5143 extern "C"
5144 #endif
5145 /* We use char because int might match the return type of a gcc2
5146    builtin and then its argument prototype would still apply.  */
5147 char waddnwstr ();
5148 int
5149 main ()
5150 {
5151 waddnwstr ();
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158   (eval $ac_link) 2>conftest.er1
5159   ac_status=$?
5160   grep -v '^ *+' conftest.er1 >conftest.err
5161   rm -f conftest.er1
5162   cat conftest.err >&5
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } &&
5165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; } &&
5171          { ac_try='test -s conftest$ac_exeext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   eval "$as_ac_Lib=yes"
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 eval "$as_ac_Lib=no"
5183 fi
5184 rm -f conftest.err conftest.$ac_objext \
5185       conftest$ac_exeext conftest.$ac_ext
5186 LIBS=$ac_check_lib_save_LIBS
5187 fi
5188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5189 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5190 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5191   cf_ncurses="$lib"; break
5192 fi
5193
5194         done
5195         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
5196 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
5197 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5198 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   ac_check_lib_save_LIBS=$LIBS
5202 LIBS="-l$cf_ncurses  $LIBS"
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209
5210 /* Override any gcc2 internal prototype to avoid an error.  */
5211 #ifdef __cplusplus
5212 extern "C"
5213 #endif
5214 /* We use char because int might match the return type of a gcc2
5215    builtin and then its argument prototype would still apply.  */
5216 char initscr ();
5217 int
5218 main ()
5219 {
5220 initscr ();
5221   ;
5222   return 0;
5223 }
5224 _ACEOF
5225 rm -f conftest.$ac_objext conftest$ac_exeext
5226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5227   (eval $ac_link) 2>conftest.er1
5228   ac_status=$?
5229   grep -v '^ *+' conftest.er1 >conftest.err
5230   rm -f conftest.er1
5231   cat conftest.err >&5
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); } &&
5234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236   (eval $ac_try) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }; } &&
5240          { ac_try='test -s conftest$ac_exeext'
5241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242   (eval $ac_try) 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); }; }; then
5246   eval "$as_ac_Lib=yes"
5247 else
5248   echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5250
5251 eval "$as_ac_Lib=no"
5252 fi
5253 rm -f conftest.err conftest.$ac_objext \
5254       conftest$ac_exeext conftest.$ac_ext
5255 LIBS=$ac_check_lib_save_LIBS
5256 fi
5257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5258 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5259 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5260   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5261                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5262                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5263                 fi
5264
5265                 if test "$cf_ncurses" = ncursesw; then
5266
5267 for ac_header in ncursesw/ncurses.h
5268 do
5269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5271   echo "$as_me:$LINENO: checking for $ac_header" >&5
5272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 fi
5276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5278 else
5279   # Is the header compilable?
5280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h.  */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h.  */
5288 $ac_includes_default
5289 #include <$ac_header>
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293   (eval $ac_compile) 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; } &&
5306          { ac_try='test -s conftest.$ac_objext'
5307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308   (eval $ac_try) 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }; }; then
5312   ac_header_compiler=yes
5313 else
5314   echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 ac_header_compiler=no
5318 fi
5319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5321 echo "${ECHO_T}$ac_header_compiler" >&6
5322
5323 # Is the header present?
5324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332 #include <$ac_header>
5333 _ACEOF
5334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5336   ac_status=$?
5337   grep -v '^ *+' conftest.er1 >conftest.err
5338   rm -f conftest.er1
5339   cat conftest.err >&5
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } >/dev/null; then
5342   if test -s conftest.err; then
5343     ac_cpp_err=$ac_c_preproc_warn_flag
5344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5345   else
5346     ac_cpp_err=
5347   fi
5348 else
5349   ac_cpp_err=yes
5350 fi
5351 if test -z "$ac_cpp_err"; then
5352   ac_header_preproc=yes
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357   ac_header_preproc=no
5358 fi
5359 rm -f conftest.err conftest.$ac_ext
5360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5361 echo "${ECHO_T}$ac_header_preproc" >&6
5362
5363 # So?  What about this header?
5364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5365   yes:no: )
5366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5370     ac_header_preproc=yes
5371     ;;
5372   no:yes:* )
5373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5385     (
5386       cat <<\_ASBOX
5387 ## ------------------------------------------ ##
5388 ## Report this to the AC_PACKAGE_NAME lists.  ##
5389 ## ------------------------------------------ ##
5390 _ASBOX
5391     ) |
5392       sed "s/^/$as_me: WARNING:     /" >&2
5393     ;;
5394 esac
5395 echo "$as_me:$LINENO: checking for $ac_header" >&5
5396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   eval "$as_ac_Header=\$ac_header_preproc"
5401 fi
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404
5405 fi
5406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5407   cat >>confdefs.h <<_ACEOF
5408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5409 _ACEOF
5410  cf_cv_ncurses_header="ncursesw/ncurses.h"
5411 fi
5412
5413 done
5414
5415                 else
5416
5417 for ac_header in ncurses.h
5418 do
5419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5421   echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 fi
5426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5428 else
5429   # Is the header compilable?
5430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 $ac_includes_default
5439 #include <$ac_header>
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443   (eval $ac_compile) 2>conftest.er1
5444   ac_status=$?
5445   grep -v '^ *+' conftest.er1 >conftest.err
5446   rm -f conftest.er1
5447   cat conftest.err >&5
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; } &&
5456          { ac_try='test -s conftest.$ac_objext'
5457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; }; then
5462   ac_header_compiler=yes
5463 else
5464   echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 ac_header_compiler=no
5468 fi
5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5471 echo "${ECHO_T}$ac_header_compiler" >&6
5472
5473 # Is the header present?
5474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482 #include <$ac_header>
5483 _ACEOF
5484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } >/dev/null; then
5492   if test -s conftest.err; then
5493     ac_cpp_err=$ac_c_preproc_warn_flag
5494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5495   else
5496     ac_cpp_err=
5497   fi
5498 else
5499   ac_cpp_err=yes
5500 fi
5501 if test -z "$ac_cpp_err"; then
5502   ac_header_preproc=yes
5503 else
5504   echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507   ac_header_preproc=no
5508 fi
5509 rm -f conftest.err conftest.$ac_ext
5510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5511 echo "${ECHO_T}$ac_header_preproc" >&6
5512
5513 # So?  What about this header?
5514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5515   yes:no: )
5516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5520     ac_header_preproc=yes
5521     ;;
5522   no:yes:* )
5523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5535     (
5536       cat <<\_ASBOX
5537 ## ------------------------------------------ ##
5538 ## Report this to the AC_PACKAGE_NAME lists.  ##
5539 ## ------------------------------------------ ##
5540 _ASBOX
5541     ) |
5542       sed "s/^/$as_me: WARNING:     /" >&2
5543     ;;
5544 esac
5545 echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550   eval "$as_ac_Header=\$ac_header_preproc"
5551 fi
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554
5555 fi
5556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5557   cat >>confdefs.h <<_ACEOF
5558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559 _ACEOF
5560  cf_cv_ncurses_header="ncurses.h"
5561 fi
5562
5563 done
5564
5565                 fi
5566 else
5567
5568 echo "$as_me:$LINENO: checking for initscr" >&5
5569 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5570 if test "${ac_cv_func_initscr+set}" = set; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
5580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5581 #define initscr innocuous_initscr
5582
5583 /* System header to define __stub macros and hopefully few prototypes,
5584     which can conflict with char initscr (); below.
5585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586     <limits.h> exists even on freestanding compilers.  */
5587
5588 #ifdef __STDC__
5589 # include <limits.h>
5590 #else
5591 # include <assert.h>
5592 #endif
5593
5594 #undef initscr
5595
5596 /* Override any gcc2 internal prototype to avoid an error.  */
5597 #ifdef __cplusplus
5598 extern "C"
5599 {
5600 #endif
5601 /* We use char because int might match the return type of a gcc2
5602    builtin and then its argument prototype would still apply.  */
5603 char initscr ();
5604 /* The GNU C library defines this for functions which it implements
5605     to always fail with ENOSYS.  Some functions are actually named
5606     something starting with __ and the normal name is an alias.  */
5607 #if defined (__stub_initscr) || defined (__stub___initscr)
5608 choke me
5609 #else
5610 char (*f) () = initscr;
5611 #endif
5612 #ifdef __cplusplus
5613 }
5614 #endif
5615
5616 int
5617 main ()
5618 {
5619 return f != initscr;
5620   ;
5621   return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626   (eval $ac_link) 2>conftest.er1
5627   ac_status=$?
5628   grep -v '^ *+' conftest.er1 >conftest.err
5629   rm -f conftest.er1
5630   cat conftest.err >&5
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } &&
5633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; } &&
5639          { ac_try='test -s conftest$ac_exeext'
5640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641   (eval $ac_try) 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); }; }; then
5645   ac_cv_func_initscr=yes
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 ac_cv_func_initscr=no
5651 fi
5652 rm -f conftest.err conftest.$ac_objext \
5653       conftest$ac_exeext conftest.$ac_ext
5654 fi
5655 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5656 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5657 if test $ac_cv_func_initscr = yes; then
5658   :
5659 else
5660
5661 case $host_os in #(vi
5662 freebsd*) #(vi
5663         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5664 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5665 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   ac_check_lib_save_LIBS=$LIBS
5669 LIBS="-lmytinfo  $LIBS"
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h.  */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h.  */
5676
5677 /* Override any gcc2 internal prototype to avoid an error.  */
5678 #ifdef __cplusplus
5679 extern "C"
5680 #endif
5681 /* We use char because int might match the return type of a gcc2
5682    builtin and then its argument prototype would still apply.  */
5683 char tgoto ();
5684 int
5685 main ()
5686 {
5687 tgoto ();
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694   (eval $ac_link) 2>conftest.er1
5695   ac_status=$?
5696   grep -v '^ *+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
5698   cat conftest.err >&5
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } &&
5701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703   (eval $ac_try) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; } &&
5707          { ac_try='test -s conftest$ac_exeext'
5708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709   (eval $ac_try) 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); }; }; then
5713   ac_cv_lib_mytinfo_tgoto=yes
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 ac_cv_lib_mytinfo_tgoto=no
5719 fi
5720 rm -f conftest.err conftest.$ac_objext \
5721       conftest$ac_exeext conftest.$ac_ext
5722 LIBS=$ac_check_lib_save_LIBS
5723 fi
5724 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5725 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5726 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5727   LIBS="-lmytinfo $LIBS"
5728 fi
5729
5730         ;;
5731 hpux10.*|hpux11.*)
5732         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5733 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5734 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   ac_check_lib_save_LIBS=$LIBS
5738 LIBS="-lcur_colr  $LIBS"
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h.  */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h.  */
5745
5746 /* Override any gcc2 internal prototype to avoid an error.  */
5747 #ifdef __cplusplus
5748 extern "C"
5749 #endif
5750 /* We use char because int might match the return type of a gcc2
5751    builtin and then its argument prototype would still apply.  */
5752 char initscr ();
5753 int
5754 main ()
5755 {
5756 initscr ();
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5763   (eval $ac_link) 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } &&
5770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; } &&
5776          { ac_try='test -s conftest$ac_exeext'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   ac_cv_lib_cur_colr_initscr=yes
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 ac_cv_lib_cur_colr_initscr=no
5788 fi
5789 rm -f conftest.err conftest.$ac_objext \
5790       conftest$ac_exeext conftest.$ac_ext
5791 LIBS=$ac_check_lib_save_LIBS
5792 fi
5793 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5794 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5795 if test $ac_cv_lib_cur_colr_initscr = yes; then
5796
5797                 LIBS="-lcur_colr $LIBS"
5798                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5799                 ac_cv_func_initscr=yes
5800
5801 else
5802
5803         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5804 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5805 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   ac_check_lib_save_LIBS=$LIBS
5809 LIBS="-lHcurses  $LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h.  */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h.  */
5816
5817 /* Override any gcc2 internal prototype to avoid an error.  */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 /* We use char because int might match the return type of a gcc2
5822    builtin and then its argument prototype would still apply.  */
5823 char initscr ();
5824 int
5825 main ()
5826 {
5827 initscr ();
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834   (eval $ac_link) 2>conftest.er1
5835   ac_status=$?
5836   grep -v '^ *+' conftest.er1 >conftest.err
5837   rm -f conftest.er1
5838   cat conftest.err >&5
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } &&
5841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; } &&
5847          { ac_try='test -s conftest$ac_exeext'
5848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849   (eval $ac_try) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); }; }; then
5853   ac_cv_lib_Hcurses_initscr=yes
5854 else
5855   echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 ac_cv_lib_Hcurses_initscr=no
5859 fi
5860 rm -f conftest.err conftest.$ac_objext \
5861       conftest$ac_exeext conftest.$ac_ext
5862 LIBS=$ac_check_lib_save_LIBS
5863 fi
5864 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5865 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5866 if test $ac_cv_lib_Hcurses_initscr = yes; then
5867
5868                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5869                 LIBS="-lHcurses $LIBS"
5870                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5871                 ac_cv_func_initscr=yes
5872
5873 fi
5874
5875 fi
5876
5877         ;;
5878 linux*) # Suse Linux does not follow /usr/lib convention
5879         LIBS="$LIBS -L/lib"
5880         ;;
5881 esac
5882
5883 if test ".$With5lib" != ".no" ; then
5884 if test -d /usr/5lib ; then
5885         # SunOS 3.x or 4.x
5886         CPPFLAGS="$CPPFLAGS -I/usr/5include"
5887         LIBS="$LIBS -L/usr/5lib"
5888 fi
5889 fi
5890
5891 if test ".$ac_cv_func_initscr" != .yes ; then
5892         cf_save_LIBS="$LIBS"
5893         cf_term_lib=""
5894         cf_curs_lib=""
5895
5896         # Check for library containing tgoto.  Do this before curses library
5897         # because it may be needed to link the test-case for initscr.
5898         echo "$as_me:$LINENO: checking for tgoto" >&5
5899 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5900 if test "${ac_cv_func_tgoto+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
5910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5911 #define tgoto innocuous_tgoto
5912
5913 /* System header to define __stub macros and hopefully few prototypes,
5914     which can conflict with char tgoto (); below.
5915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5916     <limits.h> exists even on freestanding compilers.  */
5917
5918 #ifdef __STDC__
5919 # include <limits.h>
5920 #else
5921 # include <assert.h>
5922 #endif
5923
5924 #undef tgoto
5925
5926 /* Override any gcc2 internal prototype to avoid an error.  */
5927 #ifdef __cplusplus
5928 extern "C"
5929 {
5930 #endif
5931 /* We use char because int might match the return type of a gcc2
5932    builtin and then its argument prototype would still apply.  */
5933 char tgoto ();
5934 /* The GNU C library defines this for functions which it implements
5935     to always fail with ENOSYS.  Some functions are actually named
5936     something starting with __ and the normal name is an alias.  */
5937 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5938 choke me
5939 #else
5940 char (*f) () = tgoto;
5941 #endif
5942 #ifdef __cplusplus
5943 }
5944 #endif
5945
5946 int
5947 main ()
5948 {
5949 return f != tgoto;
5950   ;
5951   return 0;
5952 }
5953 _ACEOF
5954 rm -f conftest.$ac_objext conftest$ac_exeext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956   (eval $ac_link) 2>conftest.er1
5957   ac_status=$?
5958   grep -v '^ *+' conftest.er1 >conftest.err
5959   rm -f conftest.er1
5960   cat conftest.err >&5
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } &&
5963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965   (eval $ac_try) 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; } &&
5969          { ac_try='test -s conftest$ac_exeext'
5970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971   (eval $ac_try) 2>&5
5972   ac_status=$?
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); }; }; then
5975   ac_cv_func_tgoto=yes
5976 else
5977   echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5979
5980 ac_cv_func_tgoto=no
5981 fi
5982 rm -f conftest.err conftest.$ac_objext \
5983       conftest$ac_exeext conftest.$ac_ext
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5986 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5987 if test $ac_cv_func_tgoto = yes; then
5988   cf_term_lib=predefined
5989 else
5990
5991                 for cf_term_lib in termcap termlib unknown
5992                 do
5993                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5995 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   ac_check_lib_save_LIBS=$LIBS
6000 LIBS="-l$cf_term_lib  $LIBS"
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007
6008 /* Override any gcc2 internal prototype to avoid an error.  */
6009 #ifdef __cplusplus
6010 extern "C"
6011 #endif
6012 /* We use char because int might match the return type of a gcc2
6013    builtin and then its argument prototype would still apply.  */
6014 char tgoto ();
6015 int
6016 main ()
6017 {
6018 tgoto ();
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025   (eval $ac_link) 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } &&
6032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; } &&
6038          { ac_try='test -s conftest$ac_exeext'
6039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040   (eval $ac_try) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; }; then
6044   eval "$as_ac_Lib=yes"
6045 else
6046   echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049 eval "$as_ac_Lib=no"
6050 fi
6051 rm -f conftest.err conftest.$ac_objext \
6052       conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6054 fi
6055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6056 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6057 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6058   break
6059 fi
6060
6061                 done
6062
6063 fi
6064
6065
6066         # Check for library containing initscr
6067         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
6068         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
6069         do
6070                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
6071 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
6072 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
6073 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   ac_check_lib_save_LIBS=$LIBS
6077 LIBS="-l$cf_curs_lib  $LIBS"
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084
6085 /* Override any gcc2 internal prototype to avoid an error.  */
6086 #ifdef __cplusplus
6087 extern "C"
6088 #endif
6089 /* We use char because int might match the return type of a gcc2
6090    builtin and then its argument prototype would still apply.  */
6091 char initscr ();
6092 int
6093 main ()
6094 {
6095 initscr ();
6096   ;
6097   return 0;
6098 }
6099 _ACEOF
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6102   (eval $ac_link) 2>conftest.er1
6103   ac_status=$?
6104   grep -v '^ *+' conftest.er1 >conftest.err
6105   rm -f conftest.er1
6106   cat conftest.err >&5
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } &&
6109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111   (eval $ac_try) 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); }; } &&
6115          { ac_try='test -s conftest$ac_exeext'
6116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117   (eval $ac_try) 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); }; }; then
6121   eval "$as_ac_Lib=yes"
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 eval "$as_ac_Lib=no"
6127 fi
6128 rm -f conftest.err conftest.$ac_objext \
6129       conftest$ac_exeext conftest.$ac_ext
6130 LIBS=$ac_check_lib_save_LIBS
6131 fi
6132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6133 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6134 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6135   break
6136 fi
6137
6138         done
6139         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
6140 echo "$as_me: error: no curses library found" >&2;}
6141    { (exit 1); exit 1; }; }
6142
6143         LIBS="-l$cf_curs_lib $cf_save_LIBS"
6144         if test "$cf_term_lib" = unknown ; then
6145                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
6146 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
6147                 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #include <${cf_cv_ncurses_header-curses.h}>
6154 int
6155 main ()
6156 {
6157 initscr()
6158   ;
6159   return 0;
6160 }
6161 _ACEOF
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164   (eval $ac_link) 2>conftest.er1
6165   ac_status=$?
6166   grep -v '^ *+' conftest.er1 >conftest.err
6167   rm -f conftest.er1
6168   cat conftest.err >&5
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); } &&
6171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173   (eval $ac_try) 2>&5
6174   ac_status=$?
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); }; } &&
6177          { ac_try='test -s conftest$ac_exeext'
6178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179   (eval $ac_try) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }; }; then
6183   cf_result=yes
6184 else
6185   echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6187
6188 cf_result=no
6189 fi
6190 rm -f conftest.err conftest.$ac_objext \
6191       conftest$ac_exeext conftest.$ac_ext
6192                 echo "$as_me:$LINENO: result: $cf_result" >&5
6193 echo "${ECHO_T}$cf_result" >&6
6194                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
6195 echo "$as_me: error: Cannot link curses library" >&2;}
6196    { (exit 1); exit 1; }; }
6197         elif test "$cf_term_lib" != predefined ; then
6198                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6199 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6200                 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 #include <${cf_cv_ncurses_header-curses.h}>
6207 int
6208 main ()
6209 {
6210 initscr(); tgoto((char *)0, 0, 0);
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217   (eval $ac_link) 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } &&
6224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; } &&
6230          { ac_try='test -s conftest$ac_exeext'
6231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232   (eval $ac_try) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; }; then
6236   cf_result=no
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241
6242                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6243                         cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6249 #include <${cf_cv_ncurses_header-curses.h}>
6250 int
6251 main ()
6252 {
6253 initscr()
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260   (eval $ac_link) 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; } &&
6273          { ac_try='test -s conftest$ac_exeext'
6274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275   (eval $ac_try) 2>&5
6276   ac_status=$?
6277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); }; }; then
6279   cf_result=yes
6280 else
6281   echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 cf_result=error
6285 fi
6286 rm -f conftest.err conftest.$ac_objext \
6287       conftest$ac_exeext conftest.$ac_ext
6288
6289 fi
6290 rm -f conftest.err conftest.$ac_objext \
6291       conftest$ac_exeext conftest.$ac_ext
6292                 echo "$as_me:$LINENO: result: $cf_result" >&5
6293 echo "${ECHO_T}$cf_result" >&6
6294         fi
6295 fi
6296
6297
6298 fi
6299
6300 fi
6301
6302
6303 fi
6304
6305
6306         old_LIBS="$LIBS"
6307         LIBS="$LIBS $MUTTLIBS"
6308         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
6309 do
6310
6311 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
6312 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
6313 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322 #include <${cf_cv_ncurses_header-curses.h}>
6323 int
6324 main ()
6325 {
6326 #ifndef ${ac_func}
6327 extern  int     ${ac_func}();
6328 #endif
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335   (eval $ac_compile) 2>conftest.er1
6336   ac_status=$?
6337   grep -v '^ *+' conftest.er1 >conftest.err
6338   rm -f conftest.er1
6339   cat conftest.err >&5
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; } &&
6348          { ac_try='test -s conftest.$ac_objext'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; }; then
6354
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361 #include <${cf_cv_ncurses_header-curses.h}>
6362 int
6363 main ()
6364 {
6365 #ifndef ${ac_func}
6366 int     (*p)() = ${ac_func};
6367 #endif
6368   ;
6369   return 0;
6370 }
6371 _ACEOF
6372 rm -f conftest.$ac_objext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374   (eval $ac_compile) 2>conftest.er1
6375   ac_status=$?
6376   grep -v '^ *+' conftest.er1 >conftest.err
6377   rm -f conftest.er1
6378   cat conftest.err >&5
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); } &&
6381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383   (eval $ac_try) 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; } &&
6387          { ac_try='test -s conftest.$ac_objext'
6388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389   (eval $ac_try) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; }; then
6393
6394 eval "ac_cv_func_decl_$ac_func=yes"
6395 else
6396   echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399
6400 eval "ac_cv_func_decl_$ac_func=no"
6401 fi
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6403 else
6404   echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407
6408 eval "ac_cv_func_decl_$ac_func=yes"
6409 fi
6410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6411 fi
6412
6413 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6414   echo "$as_me:$LINENO: result: yes" >&5
6415 echo "${ECHO_T}yes" >&6
6416
6417
6418 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6419
6420   cat >>confdefs.h <<_ACEOF
6421 #define $ac_tr_func 1
6422 _ACEOF
6423
6424 else
6425   echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6
6427 fi
6428 done
6429
6430         if test "$ac_cv_func_decl_start_color" = yes; then
6431
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_COLOR 1
6434 _ACEOF
6435
6436         fi
6437         if test "$ac_cv_func_decl_resizeterm" = yes; then
6438                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6439         fi
6440         LIBS="$old_LIBS"
6441
6442 fi;
6443
6444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6446 if test "${ac_cv_header_stdc+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 #include <stdlib.h>
6456 #include <stdarg.h>
6457 #include <string.h>
6458 #include <float.h>
6459
6460 int
6461 main ()
6462 {
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6470   (eval $ac_compile) 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479   (eval $ac_try) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; } &&
6483          { ac_try='test -s conftest.$ac_objext'
6484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485   (eval $ac_try) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; }; then
6489   ac_cv_header_stdc=yes
6490 else
6491   echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6493
6494 ac_cv_header_stdc=no
6495 fi
6496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6497
6498 if test $ac_cv_header_stdc = yes; then
6499   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6500   cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h.  */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h.  */
6506 #include <string.h>
6507
6508 _ACEOF
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510   $EGREP "memchr" >/dev/null 2>&1; then
6511   :
6512 else
6513   ac_cv_header_stdc=no
6514 fi
6515 rm -f conftest*
6516
6517 fi
6518
6519 if test $ac_cv_header_stdc = yes; then
6520   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6521   cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h.  */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h.  */
6527 #include <stdlib.h>
6528
6529 _ACEOF
6530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6531   $EGREP "free" >/dev/null 2>&1; then
6532   :
6533 else
6534   ac_cv_header_stdc=no
6535 fi
6536 rm -f conftest*
6537
6538 fi
6539
6540 if test $ac_cv_header_stdc = yes; then
6541   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6542   if test "$cross_compiling" = yes; then
6543   :
6544 else
6545   cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h.  */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h.  */
6551 #include <ctype.h>
6552 #if ((' ' & 0x0FF) == 0x020)
6553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6555 #else
6556 # define ISLOWER(c) \
6557                    (('a' <= (c) && (c) <= 'i') \
6558                      || ('j' <= (c) && (c) <= 'r') \
6559                      || ('s' <= (c) && (c) <= 'z'))
6560 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6561 #endif
6562
6563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6564 int
6565 main ()
6566 {
6567   int i;
6568   for (i = 0; i < 256; i++)
6569     if (XOR (islower (i), ISLOWER (i))
6570         || toupper (i) != TOUPPER (i))
6571       exit(2);
6572   exit (0);
6573 }
6574 _ACEOF
6575 rm -f conftest$ac_exeext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577   (eval $ac_link) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; }; then
6586   :
6587 else
6588   echo "$as_me: program exited with status $ac_status" >&5
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 ( exit $ac_status )
6593 ac_cv_header_stdc=no
6594 fi
6595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 fi
6598 fi
6599 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6600 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6601 if test $ac_cv_header_stdc = yes; then
6602
6603 cat >>confdefs.h <<\_ACEOF
6604 #define STDC_HEADERS 1
6605 _ACEOF
6606
6607 fi
6608
6609
6610
6611
6612
6613
6614 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6615 do
6616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6618   echo "$as_me:$LINENO: checking for $ac_header" >&5
6619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 fi
6623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6625 else
6626   # Is the header compilable?
6627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h.  */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h.  */
6635 $ac_includes_default
6636 #include <$ac_header>
6637 _ACEOF
6638 rm -f conftest.$ac_objext
6639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6640   (eval $ac_compile) 2>conftest.er1
6641   ac_status=$?
6642   grep -v '^ *+' conftest.er1 >conftest.err
6643   rm -f conftest.er1
6644   cat conftest.err >&5
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } &&
6647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; } &&
6653          { ac_try='test -s conftest.$ac_objext'
6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655   (eval $ac_try) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; }; then
6659   ac_header_compiler=yes
6660 else
6661   echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 ac_header_compiler=no
6665 fi
6666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6668 echo "${ECHO_T}$ac_header_compiler" >&6
6669
6670 # Is the header present?
6671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h.  */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h.  */
6679 #include <$ac_header>
6680 _ACEOF
6681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } >/dev/null; then
6689   if test -s conftest.err; then
6690     ac_cpp_err=$ac_c_preproc_warn_flag
6691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6692   else
6693     ac_cpp_err=
6694   fi
6695 else
6696   ac_cpp_err=yes
6697 fi
6698 if test -z "$ac_cpp_err"; then
6699   ac_header_preproc=yes
6700 else
6701   echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6703
6704   ac_header_preproc=no
6705 fi
6706 rm -f conftest.err conftest.$ac_ext
6707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6708 echo "${ECHO_T}$ac_header_preproc" >&6
6709
6710 # So?  What about this header?
6711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6712   yes:no: )
6713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6717     ac_header_preproc=yes
6718     ;;
6719   no:yes:* )
6720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6732     (
6733       cat <<\_ASBOX
6734 ## ------------------------------------------ ##
6735 ## Report this to the AC_PACKAGE_NAME lists.  ##
6736 ## ------------------------------------------ ##
6737 _ASBOX
6738     ) |
6739       sed "s/^/$as_me: WARNING:     /" >&2
6740     ;;
6741 esac
6742 echo "$as_me:$LINENO: checking for $ac_header" >&5
6743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   eval "$as_ac_Header=\$ac_header_preproc"
6748 fi
6749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6751
6752 fi
6753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6754   cat >>confdefs.h <<_ACEOF
6755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6756 _ACEOF
6757
6758 fi
6759
6760 done
6761
6762
6763
6764 for ac_header in sys/time.h sys/resource.h
6765 do
6766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6768   echo "$as_me:$LINENO: checking for $ac_header" >&5
6769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 fi
6773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6775 else
6776   # Is the header compilable?
6777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h.  */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h.  */
6785 $ac_includes_default
6786 #include <$ac_header>
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790   (eval $ac_compile) 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799   (eval $ac_try) 2>&5
6800   ac_status=$?
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); }; } &&
6803          { ac_try='test -s conftest.$ac_objext'
6804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; }; then
6809   ac_header_compiler=yes
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 ac_header_compiler=no
6815 fi
6816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6818 echo "${ECHO_T}$ac_header_compiler" >&6
6819
6820 # Is the header present?
6821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829 #include <$ac_header>
6830 _ACEOF
6831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6833   ac_status=$?
6834   grep -v '^ *+' conftest.er1 >conftest.err
6835   rm -f conftest.er1
6836   cat conftest.err >&5
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } >/dev/null; then
6839   if test -s conftest.err; then
6840     ac_cpp_err=$ac_c_preproc_warn_flag
6841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6842   else
6843     ac_cpp_err=
6844   fi
6845 else
6846   ac_cpp_err=yes
6847 fi
6848 if test -z "$ac_cpp_err"; then
6849   ac_header_preproc=yes
6850 else
6851   echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854   ac_header_preproc=no
6855 fi
6856 rm -f conftest.err conftest.$ac_ext
6857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6858 echo "${ECHO_T}$ac_header_preproc" >&6
6859
6860 # So?  What about this header?
6861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6862   yes:no: )
6863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6867     ac_header_preproc=yes
6868     ;;
6869   no:yes:* )
6870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6882     (
6883       cat <<\_ASBOX
6884 ## ------------------------------------------ ##
6885 ## Report this to the AC_PACKAGE_NAME lists.  ##
6886 ## ------------------------------------------ ##
6887 _ASBOX
6888     ) |
6889       sed "s/^/$as_me: WARNING:     /" >&2
6890     ;;
6891 esac
6892 echo "$as_me:$LINENO: checking for $ac_header" >&5
6893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6895   echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897   eval "$as_ac_Header=\$ac_header_preproc"
6898 fi
6899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6901
6902 fi
6903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6904   cat >>confdefs.h <<_ACEOF
6905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6906 _ACEOF
6907
6908 fi
6909
6910 done
6911
6912
6913 for ac_header in unix.h
6914 do
6915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6917   echo "$as_me:$LINENO: checking for $ac_header" >&5
6918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6920   echo $ECHO_N "(cached) $ECHO_C" >&6
6921 fi
6922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6924 else
6925   # Is the header compilable?
6926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h.  */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h.  */
6934 $ac_includes_default
6935 #include <$ac_header>
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939   (eval $ac_compile) 2>conftest.er1
6940   ac_status=$?
6941   grep -v '^ *+' conftest.er1 >conftest.err
6942   rm -f conftest.er1
6943   cat conftest.err >&5
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); } &&
6946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; } &&
6952          { ac_try='test -s conftest.$ac_objext'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; }; then
6958   ac_header_compiler=yes
6959 else
6960   echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_header_compiler=no
6964 fi
6965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967 echo "${ECHO_T}$ac_header_compiler" >&6
6968
6969 # Is the header present?
6970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978 #include <$ac_header>
6979 _ACEOF
6980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6982   ac_status=$?
6983   grep -v '^ *+' conftest.er1 >conftest.err
6984   rm -f conftest.er1
6985   cat conftest.err >&5
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); } >/dev/null; then
6988   if test -s conftest.err; then
6989     ac_cpp_err=$ac_c_preproc_warn_flag
6990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6991   else
6992     ac_cpp_err=
6993   fi
6994 else
6995   ac_cpp_err=yes
6996 fi
6997 if test -z "$ac_cpp_err"; then
6998   ac_header_preproc=yes
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003   ac_header_preproc=no
7004 fi
7005 rm -f conftest.err conftest.$ac_ext
7006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7007 echo "${ECHO_T}$ac_header_preproc" >&6
7008
7009 # So?  What about this header?
7010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7011   yes:no: )
7012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7016     ac_header_preproc=yes
7017     ;;
7018   no:yes:* )
7019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7031     (
7032       cat <<\_ASBOX
7033 ## ------------------------------------------ ##
7034 ## Report this to the AC_PACKAGE_NAME lists.  ##
7035 ## ------------------------------------------ ##
7036 _ASBOX
7037     ) |
7038       sed "s/^/$as_me: WARNING:     /" >&2
7039     ;;
7040 esac
7041 echo "$as_me:$LINENO: checking for $ac_header" >&5
7042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   eval "$as_ac_Header=\$ac_header_preproc"
7047 fi
7048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7050
7051 fi
7052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7053   cat >>confdefs.h <<_ACEOF
7054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7055 _ACEOF
7056
7057 fi
7058
7059 done
7060
7061
7062
7063
7064
7065 for ac_func in setrlimit getsid isctype
7066 do
7067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7068 echo "$as_me:$LINENO: checking for $ac_func" >&5
7069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7070 if eval "test \"\${$as_ac_var+set}\" = set"; then
7071   echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073   cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h.  */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h.  */
7079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7081 #define $ac_func innocuous_$ac_func
7082
7083 /* System header to define __stub macros and hopefully few prototypes,
7084     which can conflict with char $ac_func (); below.
7085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7086     <limits.h> exists even on freestanding compilers.  */
7087
7088 #ifdef __STDC__
7089 # include <limits.h>
7090 #else
7091 # include <assert.h>
7092 #endif
7093
7094 #undef $ac_func
7095
7096 /* Override any gcc2 internal prototype to avoid an error.  */
7097 #ifdef __cplusplus
7098 extern "C"
7099 {
7100 #endif
7101 /* We use char because int might match the return type of a gcc2
7102    builtin and then its argument prototype would still apply.  */
7103 char $ac_func ();
7104 /* The GNU C library defines this for functions which it implements
7105     to always fail with ENOSYS.  Some functions are actually named
7106     something starting with __ and the normal name is an alias.  */
7107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7108 choke me
7109 #else
7110 char (*f) () = $ac_func;
7111 #endif
7112 #ifdef __cplusplus
7113 }
7114 #endif
7115
7116 int
7117 main ()
7118 {
7119 return f != $ac_func;
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext conftest$ac_exeext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126   (eval $ac_link) 2>conftest.er1
7127   ac_status=$?
7128   grep -v '^ *+' conftest.er1 >conftest.err
7129   rm -f conftest.er1
7130   cat conftest.err >&5
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } &&
7133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135   (eval $ac_try) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); }; } &&
7139          { ac_try='test -s conftest$ac_exeext'
7140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; }; then
7145   eval "$as_ac_var=yes"
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150 eval "$as_ac_var=no"
7151 fi
7152 rm -f conftest.err conftest.$ac_objext \
7153       conftest$ac_exeext conftest.$ac_ext
7154 fi
7155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7157 if test `eval echo '${'$as_ac_var'}'` = yes; then
7158   cat >>confdefs.h <<_ACEOF
7159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7160 _ACEOF
7161
7162 fi
7163 done
7164
7165
7166 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7167 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7168 if test "${ac_cv_type_signal+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 #include <sys/types.h>
7178 #include <signal.h>
7179 #ifdef signal
7180 # undef signal
7181 #endif
7182 #ifdef __cplusplus
7183 extern "C" void (*signal (int, void (*)(int)))(int);
7184 #else
7185 void (*signal ()) ();
7186 #endif
7187
7188 int
7189 main ()
7190 {
7191 int i;
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; } &&
7211          { ac_try='test -s conftest.$ac_objext'
7212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213   (eval $ac_try) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); }; }; then
7217   ac_cv_type_signal=void
7218 else
7219   echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222 ac_cv_type_signal=int
7223 fi
7224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7225 fi
7226 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7227 echo "${ECHO_T}$ac_cv_type_signal" >&6
7228
7229 cat >>confdefs.h <<_ACEOF
7230 #define RETSIGTYPE $ac_cv_type_signal
7231 _ACEOF
7232
7233
7234
7235 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
7236 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h.  */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h.  */
7243 #include <signal.h>
7244
7245 _ACEOF
7246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7247   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
7248
7249     ac_cv_type_sig_atomic_t=yes;
7250     cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h.  */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h.  */
7256 #include <signal.h>
7257
7258 _ACEOF
7259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
7261
7262                         is_sig_atomic_t_volatile=yes;
7263                         echo "$as_me:$LINENO: result: yes, volatile" >&5
7264 echo "${ECHO_T}yes, volatile" >&6
7265
7266 else
7267
7268                         is_sig_atomic_t_volatile=no;
7269                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
7270 echo "${ECHO_T}yes, non volatile" >&6
7271
7272 fi
7273 rm -f conftest*
7274
7275
7276 else
7277
7278     echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6
7280     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
7281 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
7282 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h.  */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h.  */
7291 $ac_includes_default
7292 int
7293 main ()
7294 {
7295 if ((sig_atomic_t *) 0)
7296   return 0;
7297 if (sizeof (sig_atomic_t))
7298   return 0;
7299   ;
7300   return 0;
7301 }
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7305   (eval $ac_compile) 2>conftest.er1
7306   ac_status=$?
7307   grep -v '^ *+' conftest.er1 >conftest.err
7308   rm -f conftest.er1
7309   cat conftest.err >&5
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); } &&
7312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314   (eval $ac_try) 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; } &&
7318          { ac_try='test -s conftest.$ac_objext'
7319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320   (eval $ac_try) 2>&5
7321   ac_status=$?
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); }; }; then
7324   ac_cv_type_sig_atomic_t=yes
7325 else
7326   echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329 ac_cv_type_sig_atomic_t=no
7330 fi
7331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7332 fi
7333 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
7334 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
7335 if test $ac_cv_type_sig_atomic_t = yes; then
7336   :
7337 else
7338
7339 cat >>confdefs.h <<_ACEOF
7340 #define sig_atomic_t int
7341 _ACEOF
7342
7343 fi
7344
7345     is_sig_atomic_t_volatile=no
7346
7347 fi
7348 rm -f conftest*
7349
7350 if test $is_sig_atomic_t_volatile = 'yes'
7351 then
7352     cat >>confdefs.h <<\_ACEOF
7353 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
7354 _ACEOF
7355
7356 else
7357     cat >>confdefs.h <<\_ACEOF
7358 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
7359 _ACEOF
7360
7361 fi
7362
7363 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7364 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
7365 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h.  */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h.  */
7374 #include <signal.h>
7375 /* NetBSD declares sys_siglist in unistd.h.  */
7376 #if HAVE_UNISTD_H
7377 # include <unistd.h>
7378 #endif
7379
7380
7381 int
7382 main ()
7383 {
7384 #ifndef sys_siglist
7385   char *p = (char *) sys_siglist;
7386 #endif
7387
7388   ;
7389   return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394   (eval $ac_compile) 2>conftest.er1
7395   ac_status=$?
7396   grep -v '^ *+' conftest.er1 >conftest.err
7397   rm -f conftest.er1
7398   cat conftest.err >&5
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); } &&
7401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403   (eval $ac_try) 2>&5
7404   ac_status=$?
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); }; } &&
7407          { ac_try='test -s conftest.$ac_objext'
7408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409   (eval $ac_try) 2>&5
7410   ac_status=$?
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); }; }; then
7413   ac_cv_have_decl_sys_siglist=yes
7414 else
7415   echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7417
7418 ac_cv_have_decl_sys_siglist=no
7419 fi
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7423 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7424 if test $ac_cv_have_decl_sys_siglist = yes; then
7425
7426 cat >>confdefs.h <<_ACEOF
7427 #define HAVE_DECL_SYS_SIGLIST 1
7428 _ACEOF
7429
7430
7431 else
7432   cat >>confdefs.h <<_ACEOF
7433 #define HAVE_DECL_SYS_SIGLIST 0
7434 _ACEOF
7435
7436
7437 fi
7438
7439
7440
7441
7442 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7443 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7444 if test "${ac_cv_c_bigendian+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   # See if sys/param.h defines the BYTE_ORDER macro.
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h.  */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h.  */
7454 #include <sys/types.h>
7455 #include <sys/param.h>
7456
7457 int
7458 main ()
7459 {
7460 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7461  bogus endian macros
7462 #endif
7463
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470   (eval $ac_compile) 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } &&
7477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; } &&
7483          { ac_try='test -s conftest.$ac_objext'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; }; then
7489   # It does; now see whether it defined to BIG_ENDIAN or not.
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h.  */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h.  */
7496 #include <sys/types.h>
7497 #include <sys/param.h>
7498
7499 int
7500 main ()
7501 {
7502 #if BYTE_ORDER != BIG_ENDIAN
7503  not big endian
7504 #endif
7505
7506   ;
7507   return 0;
7508 }
7509 _ACEOF
7510 rm -f conftest.$ac_objext
7511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7512   (eval $ac_compile) 2>conftest.er1
7513   ac_status=$?
7514   grep -v '^ *+' conftest.er1 >conftest.err
7515   rm -f conftest.er1
7516   cat conftest.err >&5
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); } &&
7519          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; } &&
7525          { ac_try='test -s conftest.$ac_objext'
7526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527   (eval $ac_try) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }; }; then
7531   ac_cv_c_bigendian=yes
7532 else
7533   echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7535
7536 ac_cv_c_bigendian=no
7537 fi
7538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7539 else
7540   echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 # It does not; compile a test program.
7544 if test "$cross_compiling" = yes; then
7545   # try to guess the endianness by grepping values into an object file
7546   ac_cv_c_bigendian=unknown
7547   cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h.  */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h.  */
7553 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7554 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7555 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7556 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7557 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7558 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7559 int
7560 main ()
7561 {
7562  _ascii (); _ebcdic ();
7563   ;
7564   return 0;
7565 }
7566 _ACEOF
7567 rm -f conftest.$ac_objext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7569   (eval $ac_compile) 2>conftest.er1
7570   ac_status=$?
7571   grep -v '^ *+' conftest.er1 >conftest.err
7572   rm -f conftest.er1
7573   cat conftest.err >&5
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } &&
7576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; } &&
7582          { ac_try='test -s conftest.$ac_objext'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; }; then
7588   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7589   ac_cv_c_bigendian=yes
7590 fi
7591 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7592   if test "$ac_cv_c_bigendian" = unknown; then
7593     ac_cv_c_bigendian=no
7594   else
7595     # finding both strings is unlikely to happen, but who knows?
7596     ac_cv_c_bigendian=unknown
7597   fi
7598 fi
7599 else
7600   echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603 fi
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7605 else
7606   cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 int
7613 main ()
7614 {
7615   /* Are we little or big endian?  From Harbison&Steele.  */
7616   union
7617   {
7618     long l;
7619     char c[sizeof (long)];
7620   } u;
7621   u.l = 1;
7622   exit (u.c[sizeof (long) - 1] == 1);
7623 }
7624 _ACEOF
7625 rm -f conftest$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627   (eval $ac_link) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; }; then
7636   ac_cv_c_bigendian=no
7637 else
7638   echo "$as_me: program exited with status $ac_status" >&5
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642 ( exit $ac_status )
7643 ac_cv_c_bigendian=yes
7644 fi
7645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7646 fi
7647 fi
7648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7649 fi
7650 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7651 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7652 case $ac_cv_c_bigendian in
7653   yes)
7654
7655 cat >>confdefs.h <<\_ACEOF
7656 #define WORDS_BIGENDIAN 1
7657 _ACEOF
7658  ;;
7659   no)
7660      ;;
7661   *)
7662     { { echo "$as_me:$LINENO: error: unknown endianness
7663 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7664 echo "$as_me: error: unknown endianness
7665 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7666    { (exit 1); exit 1; }; } ;;
7667 esac
7668
7669
7670
7671 for ac_header in inttypes.h stdint.h
7672 do
7673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7675   echo "$as_me:$LINENO: checking for $ac_header" >&5
7676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 fi
7680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7682 else
7683   # Is the header compilable?
7684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h.  */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h.  */
7692 $ac_includes_default
7693 #include <$ac_header>
7694 _ACEOF
7695 rm -f conftest.$ac_objext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7697   (eval $ac_compile) 2>conftest.er1
7698   ac_status=$?
7699   grep -v '^ *+' conftest.er1 >conftest.err
7700   rm -f conftest.er1
7701   cat conftest.err >&5
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); } &&
7704          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706   (eval $ac_try) 2>&5
7707   ac_status=$?
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); }; } &&
7710          { ac_try='test -s conftest.$ac_objext'
7711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712   (eval $ac_try) 2>&5
7713   ac_status=$?
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); }; }; then
7716   ac_header_compiler=yes
7717 else
7718   echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7720
7721 ac_header_compiler=no
7722 fi
7723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7725 echo "${ECHO_T}$ac_header_compiler" >&6
7726
7727 # Is the header present?
7728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h.  */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h.  */
7736 #include <$ac_header>
7737 _ACEOF
7738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7740   ac_status=$?
7741   grep -v '^ *+' conftest.er1 >conftest.err
7742   rm -f conftest.er1
7743   cat conftest.err >&5
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); } >/dev/null; then
7746   if test -s conftest.err; then
7747     ac_cpp_err=$ac_c_preproc_warn_flag
7748     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7749   else
7750     ac_cpp_err=
7751   fi
7752 else
7753   ac_cpp_err=yes
7754 fi
7755 if test -z "$ac_cpp_err"; then
7756   ac_header_preproc=yes
7757 else
7758   echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761   ac_header_preproc=no
7762 fi
7763 rm -f conftest.err conftest.$ac_ext
7764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7765 echo "${ECHO_T}$ac_header_preproc" >&6
7766
7767 # So?  What about this header?
7768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7769   yes:no: )
7770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7774     ac_header_preproc=yes
7775     ;;
7776   no:yes:* )
7777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7779     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7780 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7781     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7783     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7784 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7787     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7789     (
7790       cat <<\_ASBOX
7791 ## ------------------------------------------ ##
7792 ## Report this to the AC_PACKAGE_NAME lists.  ##
7793 ## ------------------------------------------ ##
7794 _ASBOX
7795     ) |
7796       sed "s/^/$as_me: WARNING:     /" >&2
7797     ;;
7798 esac
7799 echo "$as_me:$LINENO: checking for $ac_header" >&5
7800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   eval "$as_ac_Header=\$ac_header_preproc"
7805 fi
7806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7808
7809 fi
7810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7811   cat >>confdefs.h <<_ACEOF
7812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7813 _ACEOF
7814
7815 fi
7816
7817 done
7818
7819 echo "$as_me:$LINENO: checking for uint32_t" >&5
7820 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h.  */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h.  */
7827
7828 #include <sys/types.h>
7829 #if HAVE_INTTYPES_H
7830 #include <inttypes.h>
7831 #else
7832 #if HAVE_STDINT_H
7833 #include <stdint.h>
7834 #endif
7835 #endif
7836 int
7837 main ()
7838 {
7839 if ((uint32_t *) 0)
7840   return 0;
7841 if (sizeof (uint32_t))
7842   return 0;
7843
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7850   (eval $ac_compile) 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } &&
7857          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; } &&
7863          { ac_try='test -s conftest.$ac_objext'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; }; then
7869
7870
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_UINT32_T 1
7873 _ACEOF
7874
7875     echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6
7877
7878 else
7879   echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7884
7885 fi
7886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7887 echo "$as_me:$LINENO: checking for int" >&5
7888 echo $ECHO_N "checking for int... $ECHO_C" >&6
7889 if test "${ac_cv_type_int+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h.  */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h.  */
7898 $ac_includes_default
7899 int
7900 main ()
7901 {
7902 if ((int *) 0)
7903   return 0;
7904 if (sizeof (int))
7905   return 0;
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912   (eval $ac_compile) 2>conftest.er1
7913   ac_status=$?
7914   grep -v '^ *+' conftest.er1 >conftest.err
7915   rm -f conftest.er1
7916   cat conftest.err >&5
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); } &&
7919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921   (eval $ac_try) 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; } &&
7925          { ac_try='test -s conftest.$ac_objext'
7926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927   (eval $ac_try) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; }; then
7931   ac_cv_type_int=yes
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 ac_cv_type_int=no
7937 fi
7938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7941 echo "${ECHO_T}$ac_cv_type_int" >&6
7942
7943 echo "$as_me:$LINENO: checking size of int" >&5
7944 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7945 if test "${ac_cv_sizeof_int+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   if test "$ac_cv_type_int" = yes; then
7949   # The cast to unsigned long works around a bug in the HP C Compiler
7950   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7951   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7952   # This bug is HP SR number 8606223364.
7953   if test "$cross_compiling" = yes; then
7954   # Depending upon the size, compute the lo and hi bounds.
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h.  */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h.  */
7961 $ac_includes_default
7962 int
7963 main ()
7964 {
7965 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7966 test_array [0] = 0
7967
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974   (eval $ac_compile) 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983   (eval $ac_try) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); }; } &&
7987          { ac_try='test -s conftest.$ac_objext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_lo=0 ac_mid=0
7994   while :; do
7995     cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h.  */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h.  */
8001 $ac_includes_default
8002 int
8003 main ()
8004 {
8005 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8006 test_array [0] = 0
8007
8008   ;
8009   return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8014   (eval $ac_compile) 2>conftest.er1
8015   ac_status=$?
8016   grep -v '^ *+' conftest.er1 >conftest.err
8017   rm -f conftest.er1
8018   cat conftest.err >&5
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } &&
8021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023   (eval $ac_try) 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; } &&
8027          { ac_try='test -s conftest.$ac_objext'
8028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029   (eval $ac_try) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); }; }; then
8033   ac_hi=$ac_mid; break
8034 else
8035   echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038 ac_lo=`expr $ac_mid + 1`
8039                     if test $ac_lo -le $ac_mid; then
8040                       ac_lo= ac_hi=
8041                       break
8042                     fi
8043                     ac_mid=`expr 2 '*' $ac_mid + 1`
8044 fi
8045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8046   done
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057 $ac_includes_default
8058 int
8059 main ()
8060 {
8061 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8062 test_array [0] = 0
8063
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070   (eval $ac_compile) 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } &&
8077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079   (eval $ac_try) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; } &&
8083          { ac_try='test -s conftest.$ac_objext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   ac_hi=-1 ac_mid=-1
8090   while :; do
8091     cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097 $ac_includes_default
8098 int
8099 main ()
8100 {
8101 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8102 test_array [0] = 0
8103
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8110   (eval $ac_compile) 2>conftest.er1
8111   ac_status=$?
8112   grep -v '^ *+' conftest.er1 >conftest.err
8113   rm -f conftest.er1
8114   cat conftest.err >&5
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } &&
8117          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119   (eval $ac_try) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; } &&
8123          { ac_try='test -s conftest.$ac_objext'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; }; then
8129   ac_lo=$ac_mid; break
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 ac_hi=`expr '(' $ac_mid ')' - 1`
8135                        if test $ac_mid -le $ac_hi; then
8136                          ac_lo= ac_hi=
8137                          break
8138                        fi
8139                        ac_mid=`expr 2 '*' $ac_mid`
8140 fi
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142   done
8143 else
8144   echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8146
8147 ac_lo= ac_hi=
8148 fi
8149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8150 fi
8151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152 # Binary search between lo and hi bounds.
8153 while test "x$ac_lo" != "x$ac_hi"; do
8154   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8155   cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h.  */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h.  */
8161 $ac_includes_default
8162 int
8163 main ()
8164 {
8165 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8166 test_array [0] = 0
8167
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest.$ac_objext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174   (eval $ac_compile) 2>conftest.er1
8175   ac_status=$?
8176   grep -v '^ *+' conftest.er1 >conftest.err
8177   rm -f conftest.er1
8178   cat conftest.err >&5
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; } &&
8187          { ac_try='test -s conftest.$ac_objext'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; }; then
8193   ac_hi=$ac_mid
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 ac_lo=`expr '(' $ac_mid ')' + 1`
8199 fi
8200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8201 done
8202 case $ac_lo in
8203 ?*) ac_cv_sizeof_int=$ac_lo;;
8204 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8205 See \`config.log' for more details." >&5
8206 echo "$as_me: error: cannot compute sizeof (int), 77
8207 See \`config.log' for more details." >&2;}
8208    { (exit 1); exit 1; }; } ;;
8209 esac
8210 else
8211   if test "$cross_compiling" = yes; then
8212   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8213 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8214    { (exit 1); exit 1; }; }
8215 else
8216   cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222 $ac_includes_default
8223 long longval () { return (long) (sizeof (int)); }
8224 unsigned long ulongval () { return (long) (sizeof (int)); }
8225 #include <stdio.h>
8226 #include <stdlib.h>
8227 int
8228 main ()
8229 {
8230
8231   FILE *f = fopen ("conftest.val", "w");
8232   if (! f)
8233     exit (1);
8234   if (((long) (sizeof (int))) < 0)
8235     {
8236       long i = longval ();
8237       if (i != ((long) (sizeof (int))))
8238         exit (1);
8239       fprintf (f, "%ld\n", i);
8240     }
8241   else
8242     {
8243       unsigned long i = ulongval ();
8244       if (i != ((long) (sizeof (int))))
8245         exit (1);
8246       fprintf (f, "%lu\n", i);
8247     }
8248   exit (ferror (f) || fclose (f) != 0);
8249
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256   (eval $ac_link) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261   (eval $ac_try) 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; }; then
8265   ac_cv_sizeof_int=`cat conftest.val`
8266 else
8267   echo "$as_me: program exited with status $ac_status" >&5
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271 ( exit $ac_status )
8272 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8273 See \`config.log' for more details." >&5
8274 echo "$as_me: error: cannot compute sizeof (int), 77
8275 See \`config.log' for more details." >&2;}
8276    { (exit 1); exit 1; }; }
8277 fi
8278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8279 fi
8280 fi
8281 rm -f conftest.val
8282 else
8283   ac_cv_sizeof_int=0
8284 fi
8285 fi
8286 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8287 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8288 cat >>confdefs.h <<_ACEOF
8289 #define SIZEOF_INT $ac_cv_sizeof_int
8290 _ACEOF
8291
8292
8293 echo "$as_me:$LINENO: checking for long" >&5
8294 echo $ECHO_N "checking for long... $ECHO_C" >&6
8295 if test "${ac_cv_type_long+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h.  */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h.  */
8304 $ac_includes_default
8305 int
8306 main ()
8307 {
8308 if ((long *) 0)
8309   return 0;
8310 if (sizeof (long))
8311   return 0;
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8318   (eval $ac_compile) 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327   (eval $ac_try) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; } &&
8331          { ac_try='test -s conftest.$ac_objext'
8332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333   (eval $ac_try) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); }; }; then
8337   ac_cv_type_long=yes
8338 else
8339   echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342 ac_cv_type_long=no
8343 fi
8344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8347 echo "${ECHO_T}$ac_cv_type_long" >&6
8348
8349 echo "$as_me:$LINENO: checking size of long" >&5
8350 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8351 if test "${ac_cv_sizeof_long+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   if test "$ac_cv_type_long" = yes; then
8355   # The cast to unsigned long works around a bug in the HP C Compiler
8356   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8357   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8358   # This bug is HP SR number 8606223364.
8359   if test "$cross_compiling" = yes; then
8360   # Depending upon the size, compute the lo and hi bounds.
8361 cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h.  */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h.  */
8367 $ac_includes_default
8368 int
8369 main ()
8370 {
8371 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8372 test_array [0] = 0
8373
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380   (eval $ac_compile) 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } &&
8387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389   (eval $ac_try) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; } &&
8393          { ac_try='test -s conftest.$ac_objext'
8394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395   (eval $ac_try) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; }; then
8399   ac_lo=0 ac_mid=0
8400   while :; do
8401     cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h.  */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h.  */
8407 $ac_includes_default
8408 int
8409 main ()
8410 {
8411 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8412 test_array [0] = 0
8413
8414   ;
8415   return 0;
8416 }
8417 _ACEOF
8418 rm -f conftest.$ac_objext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8420   (eval $ac_compile) 2>conftest.er1
8421   ac_status=$?
8422   grep -v '^ *+' conftest.er1 >conftest.err
8423   rm -f conftest.er1
8424   cat conftest.err >&5
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); } &&
8427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429   (eval $ac_try) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; } &&
8433          { ac_try='test -s conftest.$ac_objext'
8434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435   (eval $ac_try) 2>&5
8436   ac_status=$?
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); }; }; then
8439   ac_hi=$ac_mid; break
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 ac_lo=`expr $ac_mid + 1`
8445                     if test $ac_lo -le $ac_mid; then
8446                       ac_lo= ac_hi=
8447                       break
8448                     fi
8449                     ac_mid=`expr 2 '*' $ac_mid + 1`
8450 fi
8451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8452   done
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463 $ac_includes_default
8464 int
8465 main ()
8466 {
8467 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8468 test_array [0] = 0
8469
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476   (eval $ac_compile) 2>conftest.er1
8477   ac_status=$?
8478   grep -v '^ *+' conftest.er1 >conftest.err
8479   rm -f conftest.er1
8480   cat conftest.err >&5
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; } &&
8489          { ac_try='test -s conftest.$ac_objext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495   ac_hi=-1 ac_mid=-1
8496   while :; do
8497     cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503 $ac_includes_default
8504 int
8505 main ()
8506 {
8507 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8508 test_array [0] = 0
8509
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516   (eval $ac_compile) 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; } &&
8529          { ac_try='test -s conftest.$ac_objext'
8530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531   (eval $ac_try) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; }; then
8535   ac_lo=$ac_mid; break
8536 else
8537   echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_hi=`expr '(' $ac_mid ')' - 1`
8541                        if test $ac_mid -le $ac_hi; then
8542                          ac_lo= ac_hi=
8543                          break
8544                        fi
8545                        ac_mid=`expr 2 '*' $ac_mid`
8546 fi
8547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8548   done
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_lo= ac_hi=
8554 fi
8555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558 # Binary search between lo and hi bounds.
8559 while test "x$ac_lo" != "x$ac_hi"; do
8560   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8561   cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567 $ac_includes_default
8568 int
8569 main ()
8570 {
8571 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8572 test_array [0] = 0
8573
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580   (eval $ac_compile) 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } &&
8587          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589   (eval $ac_try) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; } &&
8593          { ac_try='test -s conftest.$ac_objext'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; }; then
8599   ac_hi=$ac_mid
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604 ac_lo=`expr '(' $ac_mid ')' + 1`
8605 fi
8606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8607 done
8608 case $ac_lo in
8609 ?*) ac_cv_sizeof_long=$ac_lo;;
8610 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8611 See \`config.log' for more details." >&5
8612 echo "$as_me: error: cannot compute sizeof (long), 77
8613 See \`config.log' for more details." >&2;}
8614    { (exit 1); exit 1; }; } ;;
8615 esac
8616 else
8617   if test "$cross_compiling" = yes; then
8618   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8619 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8620    { (exit 1); exit 1; }; }
8621 else
8622   cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 $ac_includes_default
8629 long longval () { return (long) (sizeof (long)); }
8630 unsigned long ulongval () { return (long) (sizeof (long)); }
8631 #include <stdio.h>
8632 #include <stdlib.h>
8633 int
8634 main ()
8635 {
8636
8637   FILE *f = fopen ("conftest.val", "w");
8638   if (! f)
8639     exit (1);
8640   if (((long) (sizeof (long))) < 0)
8641     {
8642       long i = longval ();
8643       if (i != ((long) (sizeof (long))))
8644         exit (1);
8645       fprintf (f, "%ld\n", i);
8646     }
8647   else
8648     {
8649       unsigned long i = ulongval ();
8650       if (i != ((long) (sizeof (long))))
8651         exit (1);
8652       fprintf (f, "%lu\n", i);
8653     }
8654   exit (ferror (f) || fclose (f) != 0);
8655
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest$ac_exeext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662   (eval $ac_link) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; }; then
8671   ac_cv_sizeof_long=`cat conftest.val`
8672 else
8673   echo "$as_me: program exited with status $ac_status" >&5
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677 ( exit $ac_status )
8678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8679 See \`config.log' for more details." >&5
8680 echo "$as_me: error: cannot compute sizeof (long), 77
8681 See \`config.log' for more details." >&2;}
8682    { (exit 1); exit 1; }; }
8683 fi
8684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 fi
8687 rm -f conftest.val
8688 else
8689   ac_cv_sizeof_long=0
8690 fi
8691 fi
8692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8693 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8694 cat >>confdefs.h <<_ACEOF
8695 #define SIZEOF_LONG $ac_cv_sizeof_long
8696 _ACEOF
8697
8698
8699
8700 echo "$as_me:$LINENO: checking for pid_t" >&5
8701 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8702 if test "${ac_cv_type_pid_t+set}" = set; then
8703   echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705   cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711 $ac_includes_default
8712 int
8713 main ()
8714 {
8715 if ((pid_t *) 0)
8716   return 0;
8717 if (sizeof (pid_t))
8718   return 0;
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725   (eval $ac_compile) 2>conftest.er1
8726   ac_status=$?
8727   grep -v '^ *+' conftest.er1 >conftest.err
8728   rm -f conftest.er1
8729   cat conftest.err >&5
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } &&
8732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734   (eval $ac_try) 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; } &&
8738          { ac_try='test -s conftest.$ac_objext'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; }; then
8744   ac_cv_type_pid_t=yes
8745 else
8746   echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8748
8749 ac_cv_type_pid_t=no
8750 fi
8751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8752 fi
8753 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8754 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8755 if test $ac_cv_type_pid_t = yes; then
8756   :
8757 else
8758
8759 cat >>confdefs.h <<_ACEOF
8760 #define pid_t int
8761 _ACEOF
8762
8763 fi
8764
8765
8766
8767
8768
8769
8770
8771 for ac_func in fgetpos memmove setegid srand48 strerror
8772 do
8773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8774 echo "$as_me:$LINENO: checking for $ac_func" >&5
8775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_var+set}\" = set"; then
8777   echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779   cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h.  */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h.  */
8785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8787 #define $ac_func innocuous_$ac_func
8788
8789 /* System header to define __stub macros and hopefully few prototypes,
8790     which can conflict with char $ac_func (); below.
8791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792     <limits.h> exists even on freestanding compilers.  */
8793
8794 #ifdef __STDC__
8795 # include <limits.h>
8796 #else
8797 # include <assert.h>
8798 #endif
8799
8800 #undef $ac_func
8801
8802 /* Override any gcc2 internal prototype to avoid an error.  */
8803 #ifdef __cplusplus
8804 extern "C"
8805 {
8806 #endif
8807 /* We use char because int might match the return type of a gcc2
8808    builtin and then its argument prototype would still apply.  */
8809 char $ac_func ();
8810 /* The GNU C library defines this for functions which it implements
8811     to always fail with ENOSYS.  Some functions are actually named
8812     something starting with __ and the normal name is an alias.  */
8813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8814 choke me
8815 #else
8816 char (*f) () = $ac_func;
8817 #endif
8818 #ifdef __cplusplus
8819 }
8820 #endif
8821
8822 int
8823 main ()
8824 {
8825 return f != $ac_func;
8826   ;
8827   return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832   (eval $ac_link) 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } &&
8839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841   (eval $ac_try) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; } &&
8845          { ac_try='test -s conftest$ac_exeext'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   eval "$as_ac_var=yes"
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 eval "$as_ac_var=no"
8857 fi
8858 rm -f conftest.err conftest.$ac_objext \
8859       conftest$ac_exeext conftest.$ac_ext
8860 fi
8861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8863 if test `eval echo '${'$as_ac_var'}'` = yes; then
8864   cat >>confdefs.h <<_ACEOF
8865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8866 _ACEOF
8867
8868 fi
8869 done
8870
8871
8872
8873
8874 for ac_func in strcasecmp strdup
8875 do
8876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8877 echo "$as_me:$LINENO: checking for $ac_func" >&5
8878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8879 if eval "test \"\${$as_ac_var+set}\" = set"; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8890 #define $ac_func innocuous_$ac_func
8891
8892 /* System header to define __stub macros and hopefully few prototypes,
8893     which can conflict with char $ac_func (); below.
8894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8895     <limits.h> exists even on freestanding compilers.  */
8896
8897 #ifdef __STDC__
8898 # include <limits.h>
8899 #else
8900 # include <assert.h>
8901 #endif
8902
8903 #undef $ac_func
8904
8905 /* Override any gcc2 internal prototype to avoid an error.  */
8906 #ifdef __cplusplus
8907 extern "C"
8908 {
8909 #endif
8910 /* We use char because int might match the return type of a gcc2
8911    builtin and then its argument prototype would still apply.  */
8912 char $ac_func ();
8913 /* The GNU C library defines this for functions which it implements
8914     to always fail with ENOSYS.  Some functions are actually named
8915     something starting with __ and the normal name is an alias.  */
8916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8917 choke me
8918 #else
8919 char (*f) () = $ac_func;
8920 #endif
8921 #ifdef __cplusplus
8922 }
8923 #endif
8924
8925 int
8926 main ()
8927 {
8928 return f != $ac_func;
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935   (eval $ac_link) 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; } &&
8948          { ac_try='test -s conftest$ac_exeext'
8949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950   (eval $ac_try) 2>&5
8951   ac_status=$?
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); }; }; then
8954   eval "$as_ac_var=yes"
8955 else
8956   echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8958
8959 eval "$as_ac_var=no"
8960 fi
8961 rm -f conftest.err conftest.$ac_objext \
8962       conftest$ac_exeext conftest.$ac_ext
8963 fi
8964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8966 if test `eval echo '${'$as_ac_var'}'` = yes; then
8967   cat >>confdefs.h <<_ACEOF
8968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8969 _ACEOF
8970
8971 else
8972   case $LIBOBJS in
8973     "$ac_func.$ac_objext"   | \
8974   *" $ac_func.$ac_objext"   | \
8975     "$ac_func.$ac_objext "* | \
8976   *" $ac_func.$ac_objext "* ) ;;
8977   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
8978 esac
8979
8980 fi
8981 done
8982
8983
8984
8985 echo "$as_me:$LINENO: checking for getopt" >&5
8986 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8987 if test "${ac_cv_func_getopt+set}" = set; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
8997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8998 #define getopt innocuous_getopt
8999
9000 /* System header to define __stub macros and hopefully few prototypes,
9001     which can conflict with char getopt (); below.
9002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003     <limits.h> exists even on freestanding compilers.  */
9004
9005 #ifdef __STDC__
9006 # include <limits.h>
9007 #else
9008 # include <assert.h>
9009 #endif
9010
9011 #undef getopt
9012
9013 /* Override any gcc2 internal prototype to avoid an error.  */
9014 #ifdef __cplusplus
9015 extern "C"
9016 {
9017 #endif
9018 /* We use char because int might match the return type of a gcc2
9019    builtin and then its argument prototype would still apply.  */
9020 char getopt ();
9021 /* The GNU C library defines this for functions which it implements
9022     to always fail with ENOSYS.  Some functions are actually named
9023     something starting with __ and the normal name is an alias.  */
9024 #if defined (__stub_getopt) || defined (__stub___getopt)
9025 choke me
9026 #else
9027 char (*f) () = getopt;
9028 #endif
9029 #ifdef __cplusplus
9030 }
9031 #endif
9032
9033 int
9034 main ()
9035 {
9036 return f != getopt;
9037   ;
9038   return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043   (eval $ac_link) 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } &&
9050          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052   (eval $ac_try) 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; } &&
9056          { ac_try='test -s conftest$ac_exeext'
9057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058   (eval $ac_try) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); }; }; then
9062   ac_cv_func_getopt=yes
9063 else
9064   echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 ac_cv_func_getopt=no
9068 fi
9069 rm -f conftest.err conftest.$ac_objext \
9070       conftest$ac_exeext conftest.$ac_ext
9071 fi
9072 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9073 echo "${ECHO_T}$ac_cv_func_getopt" >&6
9074
9075 if test $ac_cv_func_getopt = yes; then
9076
9077 for ac_header in getopt.h
9078 do
9079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081   echo "$as_me:$LINENO: checking for $ac_header" >&5
9082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 fi
9086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9088 else
9089   # Is the header compilable?
9090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098 $ac_includes_default
9099 #include <$ac_header>
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103   (eval $ac_compile) 2>conftest.er1
9104   ac_status=$?
9105   grep -v '^ *+' conftest.er1 >conftest.err
9106   rm -f conftest.er1
9107   cat conftest.err >&5
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); } &&
9110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112   (eval $ac_try) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); }; } &&
9116          { ac_try='test -s conftest.$ac_objext'
9117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118   (eval $ac_try) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; }; then
9122   ac_header_compiler=yes
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ac_header_compiler=no
9128 fi
9129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9131 echo "${ECHO_T}$ac_header_compiler" >&6
9132
9133 # Is the header present?
9134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9136 cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h.  */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h.  */
9142 #include <$ac_header>
9143 _ACEOF
9144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } >/dev/null; then
9152   if test -s conftest.err; then
9153     ac_cpp_err=$ac_c_preproc_warn_flag
9154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9155   else
9156     ac_cpp_err=
9157   fi
9158 else
9159   ac_cpp_err=yes
9160 fi
9161 if test -z "$ac_cpp_err"; then
9162   ac_header_preproc=yes
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167   ac_header_preproc=no
9168 fi
9169 rm -f conftest.err conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9171 echo "${ECHO_T}$ac_header_preproc" >&6
9172
9173 # So?  What about this header?
9174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9175   yes:no: )
9176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9180     ac_header_preproc=yes
9181     ;;
9182   no:yes:* )
9183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9185     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9186 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9187     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9189     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9190 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9193     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9195     (
9196       cat <<\_ASBOX
9197 ## ------------------------------------------ ##
9198 ## Report this to the AC_PACKAGE_NAME lists.  ##
9199 ## ------------------------------------------ ##
9200 _ASBOX
9201     ) |
9202       sed "s/^/$as_me: WARNING:     /" >&2
9203     ;;
9204 esac
9205 echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   eval "$as_ac_Header=\$ac_header_preproc"
9211 fi
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214
9215 fi
9216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9217   cat >>confdefs.h <<_ACEOF
9218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9219 _ACEOF
9220
9221 fi
9222
9223 done
9224
9225 fi
9226
9227 mutt_cv_snprintf=no
9228 SNPRINTFOBJS=""
9229
9230 for ac_func in snprintf
9231 do
9232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9233 echo "$as_me:$LINENO: checking for $ac_func" >&5
9234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9235 if eval "test \"\${$as_ac_var+set}\" = set"; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h.  */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h.  */
9244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9246 #define $ac_func innocuous_$ac_func
9247
9248 /* System header to define __stub macros and hopefully few prototypes,
9249     which can conflict with char $ac_func (); below.
9250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9251     <limits.h> exists even on freestanding compilers.  */
9252
9253 #ifdef __STDC__
9254 # include <limits.h>
9255 #else
9256 # include <assert.h>
9257 #endif
9258
9259 #undef $ac_func
9260
9261 /* Override any gcc2 internal prototype to avoid an error.  */
9262 #ifdef __cplusplus
9263 extern "C"
9264 {
9265 #endif
9266 /* We use char because int might match the return type of a gcc2
9267    builtin and then its argument prototype would still apply.  */
9268 char $ac_func ();
9269 /* The GNU C library defines this for functions which it implements
9270     to always fail with ENOSYS.  Some functions are actually named
9271     something starting with __ and the normal name is an alias.  */
9272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9273 choke me
9274 #else
9275 char (*f) () = $ac_func;
9276 #endif
9277 #ifdef __cplusplus
9278 }
9279 #endif
9280
9281 int
9282 main ()
9283 {
9284 return f != $ac_func;
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; } &&
9304          { ac_try='test -s conftest$ac_exeext'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; }; then
9310   eval "$as_ac_var=yes"
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315 eval "$as_ac_var=no"
9316 fi
9317 rm -f conftest.err conftest.$ac_objext \
9318       conftest$ac_exeext conftest.$ac_ext
9319 fi
9320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9322 if test `eval echo '${'$as_ac_var'}'` = yes; then
9323   cat >>confdefs.h <<_ACEOF
9324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9325 _ACEOF
9326
9327 else
9328   mutt_cv_snprintf=yes
9329 fi
9330 done
9331
9332
9333 for ac_func in vsnprintf
9334 do
9335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336 echo "$as_me:$LINENO: checking for $ac_func" >&5
9337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9338 if eval "test \"\${$as_ac_var+set}\" = set"; then
9339   echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341   cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9349 #define $ac_func innocuous_$ac_func
9350
9351 /* System header to define __stub macros and hopefully few prototypes,
9352     which can conflict with char $ac_func (); below.
9353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354     <limits.h> exists even on freestanding compilers.  */
9355
9356 #ifdef __STDC__
9357 # include <limits.h>
9358 #else
9359 # include <assert.h>
9360 #endif
9361
9362 #undef $ac_func
9363
9364 /* Override any gcc2 internal prototype to avoid an error.  */
9365 #ifdef __cplusplus
9366 extern "C"
9367 {
9368 #endif
9369 /* We use char because int might match the return type of a gcc2
9370    builtin and then its argument prototype would still apply.  */
9371 char $ac_func ();
9372 /* The GNU C library defines this for functions which it implements
9373     to always fail with ENOSYS.  Some functions are actually named
9374     something starting with __ and the normal name is an alias.  */
9375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9376 choke me
9377 #else
9378 char (*f) () = $ac_func;
9379 #endif
9380 #ifdef __cplusplus
9381 }
9382 #endif
9383
9384 int
9385 main ()
9386 {
9387 return f != $ac_func;
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394   (eval $ac_link) 2>conftest.er1
9395   ac_status=$?
9396   grep -v '^ *+' conftest.er1 >conftest.err
9397   rm -f conftest.er1
9398   cat conftest.err >&5
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; } &&
9407          { ac_try='test -s conftest$ac_exeext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   eval "$as_ac_var=yes"
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 eval "$as_ac_var=no"
9419 fi
9420 rm -f conftest.err conftest.$ac_objext \
9421       conftest$ac_exeext conftest.$ac_ext
9422 fi
9423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9425 if test `eval echo '${'$as_ac_var'}'` = yes; then
9426   cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9428 _ACEOF
9429
9430 else
9431   mutt_cv_snprintf=yes
9432 fi
9433 done
9434
9435 if test $mutt_cv_snprintf = yes; then
9436         case $LIBOBJS in
9437     "snprintf.$ac_objext"   | \
9438   *" snprintf.$ac_objext"   | \
9439     "snprintf.$ac_objext "* | \
9440   *" snprintf.$ac_objext "* ) ;;
9441   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
9442 esac
9443
9444 fi
9445
9446
9447 for ac_func in ftruncate
9448 do
9449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9450 echo "$as_me:$LINENO: checking for $ac_func" >&5
9451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9452 if eval "test \"\${$as_ac_var+set}\" = set"; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h.  */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h.  */
9461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9463 #define $ac_func innocuous_$ac_func
9464
9465 /* System header to define __stub macros and hopefully few prototypes,
9466     which can conflict with char $ac_func (); below.
9467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9468     <limits.h> exists even on freestanding compilers.  */
9469
9470 #ifdef __STDC__
9471 # include <limits.h>
9472 #else
9473 # include <assert.h>
9474 #endif
9475
9476 #undef $ac_func
9477
9478 /* Override any gcc2 internal prototype to avoid an error.  */
9479 #ifdef __cplusplus
9480 extern "C"
9481 {
9482 #endif
9483 /* We use char because int might match the return type of a gcc2
9484    builtin and then its argument prototype would still apply.  */
9485 char $ac_func ();
9486 /* The GNU C library defines this for functions which it implements
9487     to always fail with ENOSYS.  Some functions are actually named
9488     something starting with __ and the normal name is an alias.  */
9489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9490 choke me
9491 #else
9492 char (*f) () = $ac_func;
9493 #endif
9494 #ifdef __cplusplus
9495 }
9496 #endif
9497
9498 int
9499 main ()
9500 {
9501 return f != $ac_func;
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508   (eval $ac_link) 2>conftest.er1
9509   ac_status=$?
9510   grep -v '^ *+' conftest.er1 >conftest.err
9511   rm -f conftest.er1
9512   cat conftest.err >&5
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } &&
9515          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517   (eval $ac_try) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; } &&
9521          { ac_try='test -s conftest$ac_exeext'
9522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523   (eval $ac_try) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; }; then
9527   eval "$as_ac_var=yes"
9528 else
9529   echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9531
9532 eval "$as_ac_var=no"
9533 fi
9534 rm -f conftest.err conftest.$ac_objext \
9535       conftest$ac_exeext conftest.$ac_ext
9536 fi
9537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9539 if test `eval echo '${'$as_ac_var'}'` = yes; then
9540   cat >>confdefs.h <<_ACEOF
9541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9542 _ACEOF
9543
9544 else
9545
9546 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
9547 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
9548 if test "${ac_cv_lib_x_chsize+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lx  $LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h.  */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h.  */
9559
9560 /* Override any gcc2 internal prototype to avoid an error.  */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 /* We use char because int might match the return type of a gcc2
9565    builtin and then its argument prototype would still apply.  */
9566 char chsize ();
9567 int
9568 main ()
9569 {
9570 chsize ();
9571   ;
9572   return 0;
9573 }
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577   (eval $ac_link) 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } &&
9584          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586   (eval $ac_try) 2>&5
9587   ac_status=$?
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); }; } &&
9590          { ac_try='test -s conftest$ac_exeext'
9591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592   (eval $ac_try) 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); }; }; then
9596   ac_cv_lib_x_chsize=yes
9597 else
9598   echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601 ac_cv_lib_x_chsize=no
9602 fi
9603 rm -f conftest.err conftest.$ac_objext \
9604       conftest$ac_exeext conftest.$ac_ext
9605 LIBS=$ac_check_lib_save_LIBS
9606 fi
9607 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
9608 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
9609 if test $ac_cv_lib_x_chsize = yes; then
9610   cat >>confdefs.h <<_ACEOF
9611 #define HAVE_LIBX 1
9612 _ACEOF
9613
9614   LIBS="-lx $LIBS"
9615
9616 fi
9617
9618 fi
9619 done
9620
9621
9622
9623 for ac_func in strftime
9624 do
9625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9626 echo "$as_me:$LINENO: checking for $ac_func" >&5
9627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9628 if eval "test \"\${$as_ac_var+set}\" = set"; then
9629   echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631   cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h.  */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h.  */
9637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9639 #define $ac_func innocuous_$ac_func
9640
9641 /* System header to define __stub macros and hopefully few prototypes,
9642     which can conflict with char $ac_func (); below.
9643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9644     <limits.h> exists even on freestanding compilers.  */
9645
9646 #ifdef __STDC__
9647 # include <limits.h>
9648 #else
9649 # include <assert.h>
9650 #endif
9651
9652 #undef $ac_func
9653
9654 /* Override any gcc2 internal prototype to avoid an error.  */
9655 #ifdef __cplusplus
9656 extern "C"
9657 {
9658 #endif
9659 /* We use char because int might match the return type of a gcc2
9660    builtin and then its argument prototype would still apply.  */
9661 char $ac_func ();
9662 /* The GNU C library defines this for functions which it implements
9663     to always fail with ENOSYS.  Some functions are actually named
9664     something starting with __ and the normal name is an alias.  */
9665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9666 choke me
9667 #else
9668 char (*f) () = $ac_func;
9669 #endif
9670 #ifdef __cplusplus
9671 }
9672 #endif
9673
9674 int
9675 main ()
9676 {
9677 return f != $ac_func;
9678   ;
9679   return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext conftest$ac_exeext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684   (eval $ac_link) 2>conftest.er1
9685   ac_status=$?
9686   grep -v '^ *+' conftest.er1 >conftest.err
9687   rm -f conftest.er1
9688   cat conftest.err >&5
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } &&
9691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693   (eval $ac_try) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; } &&
9697          { ac_try='test -s conftest$ac_exeext'
9698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699   (eval $ac_try) 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; }; then
9703   eval "$as_ac_var=yes"
9704 else
9705   echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 eval "$as_ac_var=no"
9709 fi
9710 rm -f conftest.err conftest.$ac_objext \
9711       conftest$ac_exeext conftest.$ac_ext
9712 fi
9713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9715 if test `eval echo '${'$as_ac_var'}'` = yes; then
9716   cat >>confdefs.h <<_ACEOF
9717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9718 _ACEOF
9719
9720 else
9721
9722 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9723 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9724 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   ac_check_lib_save_LIBS=$LIBS
9728 LIBS="-lintl  $LIBS"
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735
9736 /* Override any gcc2 internal prototype to avoid an error.  */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 /* We use char because int might match the return type of a gcc2
9741    builtin and then its argument prototype would still apply.  */
9742 char strftime ();
9743 int
9744 main ()
9745 {
9746 strftime ();
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753   (eval $ac_link) 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; } &&
9766          { ac_try='test -s conftest$ac_exeext'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; }; then
9772   ac_cv_lib_intl_strftime=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ac_cv_lib_intl_strftime=no
9778 fi
9779 rm -f conftest.err conftest.$ac_objext \
9780       conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9782 fi
9783 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9784 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9785 if test $ac_cv_lib_intl_strftime = yes; then
9786   cat >>confdefs.h <<_ACEOF
9787 #define HAVE_LIBINTL 1
9788 _ACEOF
9789
9790   LIBS="-lintl $LIBS"
9791
9792 fi
9793
9794 fi
9795 done
9796
9797
9798
9799 for ac_func in fchdir
9800 do
9801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9802 echo "$as_me:$LINENO: checking for $ac_func" >&5
9803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9804 if eval "test \"\${$as_ac_var+set}\" = set"; then
9805   echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807   cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h.  */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h.  */
9813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9815 #define $ac_func innocuous_$ac_func
9816
9817 /* System header to define __stub macros and hopefully few prototypes,
9818     which can conflict with char $ac_func (); below.
9819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820     <limits.h> exists even on freestanding compilers.  */
9821
9822 #ifdef __STDC__
9823 # include <limits.h>
9824 #else
9825 # include <assert.h>
9826 #endif
9827
9828 #undef $ac_func
9829
9830 /* Override any gcc2 internal prototype to avoid an error.  */
9831 #ifdef __cplusplus
9832 extern "C"
9833 {
9834 #endif
9835 /* We use char because int might match the return type of a gcc2
9836    builtin and then its argument prototype would still apply.  */
9837 char $ac_func ();
9838 /* The GNU C library defines this for functions which it implements
9839     to always fail with ENOSYS.  Some functions are actually named
9840     something starting with __ and the normal name is an alias.  */
9841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9842 choke me
9843 #else
9844 char (*f) () = $ac_func;
9845 #endif
9846 #ifdef __cplusplus
9847 }
9848 #endif
9849
9850 int
9851 main ()
9852 {
9853 return f != $ac_func;
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860   (eval $ac_link) 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869   (eval $ac_try) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; } &&
9873          { ac_try='test -s conftest$ac_exeext'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; }; then
9879   eval "$as_ac_var=yes"
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 eval "$as_ac_var=no"
9885 fi
9886 rm -f conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 fi
9889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892   cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9894 _ACEOF
9895
9896 else
9897   mutt_cv_fchdir=no
9898 fi
9899 done
9900
9901
9902
9903 # Check whether --with-regex or --without-regex was given.
9904 if test "${with_regex+set}" = set; then
9905   withval="$with_regex"
9906   mutt_cv_regex=yes
9907 else
9908
9909 for ac_func in regcomp
9910 do
9911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9912 echo "$as_me:$LINENO: checking for $ac_func" >&5
9913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9914 if eval "test \"\${$as_ac_var+set}\" = set"; then
9915   echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917   cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9925 #define $ac_func innocuous_$ac_func
9926
9927 /* System header to define __stub macros and hopefully few prototypes,
9928     which can conflict with char $ac_func (); below.
9929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9930     <limits.h> exists even on freestanding compilers.  */
9931
9932 #ifdef __STDC__
9933 # include <limits.h>
9934 #else
9935 # include <assert.h>
9936 #endif
9937
9938 #undef $ac_func
9939
9940 /* Override any gcc2 internal prototype to avoid an error.  */
9941 #ifdef __cplusplus
9942 extern "C"
9943 {
9944 #endif
9945 /* We use char because int might match the return type of a gcc2
9946    builtin and then its argument prototype would still apply.  */
9947 char $ac_func ();
9948 /* The GNU C library defines this for functions which it implements
9949     to always fail with ENOSYS.  Some functions are actually named
9950     something starting with __ and the normal name is an alias.  */
9951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9952 choke me
9953 #else
9954 char (*f) () = $ac_func;
9955 #endif
9956 #ifdef __cplusplus
9957 }
9958 #endif
9959
9960 int
9961 main ()
9962 {
9963 return f != $ac_func;
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970   (eval $ac_link) 2>conftest.er1
9971   ac_status=$?
9972   grep -v '^ *+' conftest.er1 >conftest.err
9973   rm -f conftest.er1
9974   cat conftest.err >&5
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } &&
9977          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979   (eval $ac_try) 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; } &&
9983          { ac_try='test -s conftest$ac_exeext'
9984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985   (eval $ac_try) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; }; then
9989   eval "$as_ac_var=yes"
9990 else
9991   echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 eval "$as_ac_var=no"
9995 fi
9996 rm -f conftest.err conftest.$ac_objext \
9997       conftest$ac_exeext conftest.$ac_ext
9998 fi
9999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10001 if test `eval echo '${'$as_ac_var'}'` = yes; then
10002   cat >>confdefs.h <<_ACEOF
10003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004 _ACEOF
10005  mutt_cv_regex=no
10006 else
10007   mutt_cv_regex=yes
10008 fi
10009 done
10010
10011 fi;
10012
10013 if test $mutt_cv_regex = no ; then
10014 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
10015 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
10016 if test "${mutt_cv_regex_broken+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   if test "$cross_compiling" = yes; then
10020   mutt_cv_regex_broken=yes
10021 else
10022   cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028
10029 #include <unistd.h>
10030 #include <regex.h>
10031 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); }
10032 _ACEOF
10033 rm -f conftest$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035   (eval $ac_link) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044   mutt_cv_regex_broken=no
10045 else
10046   echo "$as_me: program exited with status $ac_status" >&5
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 ( exit $ac_status )
10051 mutt_cv_regex_broken=yes
10052 fi
10053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10054 fi
10055 fi
10056 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
10057 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
10058         if test $mutt_cv_regex_broken = yes ; then
10059                 echo "Using the included GNU regex instead." >&6
10060                 mutt_cv_regex=yes
10061         fi
10062 fi
10063
10064 if test $mutt_cv_regex = yes; then
10065
10066 cat >>confdefs.h <<\_ACEOF
10067 #define USE_GNU_REGEX 1
10068 _ACEOF
10069
10070         case $LIBOBJS in
10071     "regex.$ac_objext"   | \
10072   *" regex.$ac_objext"   | \
10073     "regex.$ac_objext "* | \
10074   *" regex.$ac_objext "* ) ;;
10075   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
10076 esac
10077
10078 fi
10079
10080
10081
10082 # Check whether --with-homespool or --without-homespool was given.
10083 if test "${with_homespool+set}" = set; then
10084   withval="$with_homespool"
10085   with_homespool=${withval}
10086 fi;
10087 if test x$with_homespool != x; then
10088         if test $with_homespool = yes; then
10089                 with_homespool=mailbox
10090         fi
10091
10092 cat >>confdefs.h <<_ACEOF
10093 #define MAILPATH "$with_homespool"
10094 _ACEOF
10095
10096
10097 cat >>confdefs.h <<\_ACEOF
10098 #define HOMESPOOL 1
10099 _ACEOF
10100
10101
10102 cat >>confdefs.h <<\_ACEOF
10103 #define USE_DOTLOCK 1
10104 _ACEOF
10105
10106         mutt_cv_setgid=no
10107 else
10108
10109 # Check whether --with-mailpath or --without-mailpath was given.
10110 if test "${with_mailpath+set}" = set; then
10111   withval="$with_mailpath"
10112   mutt_cv_mailpath=$withval
10113 else
10114    echo "$as_me:$LINENO: checking where new mail is stored" >&5
10115 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
10116 if test "${mutt_cv_mailpath+set}" = set; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   mutt_cv_mailpath=no
10120                         if test -d /var/mail; then
10121                                 mutt_cv_mailpath=/var/mail
10122                         elif test -d /var/spool/mail; then
10123                                 mutt_cv_mailpath=/var/spool/mail
10124                         elif test -d /usr/spool/mail; then
10125                                 mutt_cv_mailpath=/usr/spool/mail
10126                         elif test -d /usr/mail; then
10127                                 mutt_cv_mailpath=/usr/mail
10128                         fi
10129 fi
10130 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
10131 echo "${ECHO_T}$mutt_cv_mailpath" >&6
10132
10133 fi;
10134         if test "$mutt_cv_mailpath" = no; then
10135                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
10136 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
10137    { (exit 1); exit 1; }; }
10138         fi
10139
10140 cat >>confdefs.h <<_ACEOF
10141 #define MAILPATH "$mutt_cv_mailpath"
10142 _ACEOF
10143
10144
10145         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
10146 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
10147 if test "${mutt_cv_worldwrite+set}" = set; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150   if test "$cross_compiling" = yes; then
10151   mutt_cv_worldwrite=no
10152 else
10153   cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 #include <sys/types.h>
10160 #include <sys/stat.h>
10161
10162 int main (int argc, char **argv)
10163 {
10164         struct stat s;
10165
10166         stat ("$mutt_cv_mailpath", &s);
10167         if (s.st_mode & S_IWOTH) exit (0);
10168         exit (1);
10169 }
10170 _ACEOF
10171 rm -f conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173   (eval $ac_link) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; }; then
10182   mutt_cv_worldwrite=yes
10183 else
10184   echo "$as_me: program exited with status $ac_status" >&5
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ( exit $ac_status )
10189 mutt_cv_worldwrite=no
10190 fi
10191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10192 fi
10193 fi
10194 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
10195 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
10196
10197         mutt_cv_setgid=no
10198         if test $mutt_cv_worldwrite = yes; then
10199
10200 cat >>confdefs.h <<\_ACEOF
10201 #define USE_DOTLOCK 1
10202 _ACEOF
10203
10204         else
10205
10206                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
10207 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
10208 if test "${mutt_cv_groupwrite+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   if test "$cross_compiling" = yes; then
10212   mutt_cv_groupwrite=no
10213 else
10214   cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h.  */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h.  */
10220 #include <sys/types.h>
10221 #include <sys/stat.h>
10222
10223 int main (int argc, char **argv)
10224 {
10225         struct stat s;
10226
10227         stat ("$mutt_cv_mailpath", &s);
10228         if (s.st_mode & S_IWGRP) exit (0);
10229         exit (1);
10230 }
10231 _ACEOF
10232 rm -f conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234   (eval $ac_link) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   mutt_cv_groupwrite=yes
10244 else
10245   echo "$as_me: program exited with status $ac_status" >&5
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ( exit $ac_status )
10250 mutt_cv_groupwrite=no
10251 fi
10252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10253 fi
10254 fi
10255 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
10256 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
10257
10258                 if test $mutt_cv_groupwrite = yes; then
10259
10260 cat >>confdefs.h <<\_ACEOF
10261 #define USE_DOTLOCK 1
10262 _ACEOF
10263
10264
10265 cat >>confdefs.h <<\_ACEOF
10266 #define USE_SETGID 1
10267 _ACEOF
10268
10269                         mutt_cv_setgid=yes
10270                 fi
10271         fi
10272 fi
10273
10274 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
10275 if test "${enable_external_dotlock+set}" = set; then
10276   enableval="$enable_external_dotlock"
10277   mutt_cv_external_dotlock="$enableval"
10278 fi;
10279
10280 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
10281         || test "x$mutt_cv_external_dotlock" = "xyes"
10282 then
10283
10284 cat >>confdefs.h <<\_ACEOF
10285 #define DL_STANDALONE 1
10286 _ACEOF
10287
10288         DOTLOCK_TARGET="muttng_dotlock"
10289 else
10290         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
10291 fi
10292
10293
10294
10295
10296 echo "$as_me:$LINENO: checking where to put the documentation" >&5
10297 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
10298
10299 # Check whether --with-docdir or --without-docdir was given.
10300 if test "${with_docdir+set}" = set; then
10301   withval="$with_docdir"
10302   mutt_cv_docdir=$withval
10303 else
10304   mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
10305 fi;
10306 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
10307 echo "${ECHO_T}$mutt_cv_docdir" >&6
10308
10309 docdir=$mutt_cv_docdir
10310
10311
10312 if test x$mutt_cv_setgid = xyes; then
10313         DOTLOCK_GROUP='mail'
10314         DOTLOCK_PERMISSION=2755
10315 else
10316         DOTLOCK_GROUP=''
10317         DOTLOCK_PERMISSION=755
10318 fi
10319
10320
10321
10322
10323 # Check whether --with-domain or --without-domain was given.
10324 if test "${with_domain+set}" = set; then
10325   withval="$with_domain"
10326   if test $withval != yes; then
10327
10328 cat >>confdefs.h <<_ACEOF
10329 #define DOMAIN "$withval"
10330 _ACEOF
10331
10332         fi
10333 fi;
10334
10335 need_socket="no"
10336
10337
10338 # Check whether --enable-pop or --disable-pop was given.
10339 if test "${enable_pop+set}" = set; then
10340   enableval="$enable_pop"
10341          if test x$enableval = xyes ; then
10342
10343 cat >>confdefs.h <<\_ACEOF
10344 #define USE_POP 1
10345 _ACEOF
10346
10347                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
10348                 need_socket="yes"
10349                 need_pop="yes"
10350                 need_md5="yes"
10351         fi
10352
10353 fi;
10354
10355 # Check whether --enable-imap or --disable-imap was given.
10356 if test "${enable_imap+set}" = set; then
10357   enableval="$enable_imap"
10358          if test x$enableval = xyes ; then
10359
10360 cat >>confdefs.h <<\_ACEOF
10361 #define USE_IMAP 1
10362 _ACEOF
10363
10364                 LIBIMAP="-Limap -limap"
10365                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
10366                 need_imap="yes"
10367                 need_socket="yes"
10368                 need_md5="yes"
10369         fi
10370
10371 fi;
10372
10373
10374 if test x$need_imap = xyes; then
10375   BUILD_IMAP_TRUE=
10376   BUILD_IMAP_FALSE='#'
10377 else
10378   BUILD_IMAP_TRUE='#'
10379   BUILD_IMAP_FALSE=
10380 fi
10381
10382
10383 # Check whether --enable-nntp or --disable-nntp was given.
10384 if test "${enable_nntp+set}" = set; then
10385   enableval="$enable_nntp"
10386         if test x$enableval = xyes ; then
10387                 cat >>confdefs.h <<\_ACEOF
10388 #define USE_NNTP 1
10389 _ACEOF
10390
10391                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
10392                 need_socket="yes"
10393         fi
10394
10395 fi;
10396
10397
10398 if test "$need_socket" = "yes"
10399 then
10400         echo "$as_me:$LINENO: checking for socklen_t" >&5
10401 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10402         cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h.  */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h.  */
10408 #include <sys/socket.h>
10409
10410 _ACEOF
10411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10412   $EGREP "socklen_t" >/dev/null 2>&1; then
10413   echo "$as_me:$LINENO: result: yes" >&5
10414 echo "${ECHO_T}yes" >&6
10415 else
10416   echo "$as_me:$LINENO: result: no" >&5
10417 echo "${ECHO_T}no" >&6
10418
10419 cat >>confdefs.h <<\_ACEOF
10420 #define socklen_t int
10421 _ACEOF
10422
10423 fi
10424 rm -f conftest*
10425
10426         echo "$as_me:$LINENO: checking for gethostent" >&5
10427 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
10428 if test "${ac_cv_func_gethostent+set}" = set; then
10429   echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431   cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h.  */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h.  */
10437 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
10438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10439 #define gethostent innocuous_gethostent
10440
10441 /* System header to define __stub macros and hopefully few prototypes,
10442     which can conflict with char gethostent (); below.
10443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10444     <limits.h> exists even on freestanding compilers.  */
10445
10446 #ifdef __STDC__
10447 # include <limits.h>
10448 #else
10449 # include <assert.h>
10450 #endif
10451
10452 #undef gethostent
10453
10454 /* Override any gcc2 internal prototype to avoid an error.  */
10455 #ifdef __cplusplus
10456 extern "C"
10457 {
10458 #endif
10459 /* We use char because int might match the return type of a gcc2
10460    builtin and then its argument prototype would still apply.  */
10461 char gethostent ();
10462 /* The GNU C library defines this for functions which it implements
10463     to always fail with ENOSYS.  Some functions are actually named
10464     something starting with __ and the normal name is an alias.  */
10465 #if defined (__stub_gethostent) || defined (__stub___gethostent)
10466 choke me
10467 #else
10468 char (*f) () = gethostent;
10469 #endif
10470 #ifdef __cplusplus
10471 }
10472 #endif
10473
10474 int
10475 main ()
10476 {
10477 return f != gethostent;
10478   ;
10479   return 0;
10480 }
10481 _ACEOF
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484   (eval $ac_link) 2>conftest.er1
10485   ac_status=$?
10486   grep -v '^ *+' conftest.er1 >conftest.err
10487   rm -f conftest.er1
10488   cat conftest.err >&5
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } &&
10491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; } &&
10497          { ac_try='test -s conftest$ac_exeext'
10498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499   (eval $ac_try) 2>&5
10500   ac_status=$?
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); }; }; then
10503   ac_cv_func_gethostent=yes
10504 else
10505   echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 ac_cv_func_gethostent=no
10509 fi
10510 rm -f conftest.err conftest.$ac_objext \
10511       conftest$ac_exeext conftest.$ac_ext
10512 fi
10513 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
10514 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
10515 if test $ac_cv_func_gethostent = yes; then
10516   :
10517 else
10518
10519 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
10520 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
10521 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
10522   echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524   ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-lnsl  $LIBS"
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h.  */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h.  */
10532
10533 /* Override any gcc2 internal prototype to avoid an error.  */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 /* We use char because int might match the return type of a gcc2
10538    builtin and then its argument prototype would still apply.  */
10539 char gethostent ();
10540 int
10541 main ()
10542 {
10543 gethostent ();
10544   ;
10545   return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550   (eval $ac_link) 2>conftest.er1
10551   ac_status=$?
10552   grep -v '^ *+' conftest.er1 >conftest.err
10553   rm -f conftest.er1
10554   cat conftest.err >&5
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } &&
10557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; } &&
10563          { ac_try='test -s conftest$ac_exeext'
10564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565   (eval $ac_try) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   ac_cv_lib_nsl_gethostent=yes
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574 ac_cv_lib_nsl_gethostent=no
10575 fi
10576 rm -f conftest.err conftest.$ac_objext \
10577       conftest$ac_exeext conftest.$ac_ext
10578 LIBS=$ac_check_lib_save_LIBS
10579 fi
10580 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
10581 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
10582 if test $ac_cv_lib_nsl_gethostent = yes; then
10583   cat >>confdefs.h <<_ACEOF
10584 #define HAVE_LIBNSL 1
10585 _ACEOF
10586
10587   LIBS="-lnsl $LIBS"
10588
10589 fi
10590
10591 fi
10592
10593         echo "$as_me:$LINENO: checking for setsockopt" >&5
10594 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
10595 if test "${ac_cv_func_setsockopt+set}" = set; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598   cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h.  */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h.  */
10604 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
10605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10606 #define setsockopt innocuous_setsockopt
10607
10608 /* System header to define __stub macros and hopefully few prototypes,
10609     which can conflict with char setsockopt (); below.
10610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10611     <limits.h> exists even on freestanding compilers.  */
10612
10613 #ifdef __STDC__
10614 # include <limits.h>
10615 #else
10616 # include <assert.h>
10617 #endif
10618
10619 #undef setsockopt
10620
10621 /* Override any gcc2 internal prototype to avoid an error.  */
10622 #ifdef __cplusplus
10623 extern "C"
10624 {
10625 #endif
10626 /* We use char because int might match the return type of a gcc2
10627    builtin and then its argument prototype would still apply.  */
10628 char setsockopt ();
10629 /* The GNU C library defines this for functions which it implements
10630     to always fail with ENOSYS.  Some functions are actually named
10631     something starting with __ and the normal name is an alias.  */
10632 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
10633 choke me
10634 #else
10635 char (*f) () = setsockopt;
10636 #endif
10637 #ifdef __cplusplus
10638 }
10639 #endif
10640
10641 int
10642 main ()
10643 {
10644 return f != setsockopt;
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext conftest$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651   (eval $ac_link) 2>conftest.er1
10652   ac_status=$?
10653   grep -v '^ *+' conftest.er1 >conftest.err
10654   rm -f conftest.er1
10655   cat conftest.err >&5
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } &&
10658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; } &&
10664          { ac_try='test -s conftest$ac_exeext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670   ac_cv_func_setsockopt=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675 ac_cv_func_setsockopt=no
10676 fi
10677 rm -f conftest.err conftest.$ac_objext \
10678       conftest$ac_exeext conftest.$ac_ext
10679 fi
10680 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10681 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
10682 if test $ac_cv_func_setsockopt = yes; then
10683   :
10684 else
10685
10686 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10687 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
10688 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-lsocket  $LIBS"
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h.  */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h.  */
10699
10700 /* Override any gcc2 internal prototype to avoid an error.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 /* We use char because int might match the return type of a gcc2
10705    builtin and then its argument prototype would still apply.  */
10706 char setsockopt ();
10707 int
10708 main ()
10709 {
10710 setsockopt ();
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717   (eval $ac_link) 2>conftest.er1
10718   ac_status=$?
10719   grep -v '^ *+' conftest.er1 >conftest.err
10720   rm -f conftest.er1
10721   cat conftest.err >&5
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); } &&
10724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726   (eval $ac_try) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; } &&
10730          { ac_try='test -s conftest$ac_exeext'
10731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732   (eval $ac_try) 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; }; then
10736   ac_cv_lib_socket_setsockopt=yes
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741 ac_cv_lib_socket_setsockopt=no
10742 fi
10743 rm -f conftest.err conftest.$ac_objext \
10744       conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10746 fi
10747 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10748 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
10749 if test $ac_cv_lib_socket_setsockopt = yes; then
10750   cat >>confdefs.h <<_ACEOF
10751 #define HAVE_LIBSOCKET 1
10752 _ACEOF
10753
10754   LIBS="-lsocket $LIBS"
10755
10756 fi
10757
10758 fi
10759
10760
10761 for ac_func in getaddrinfo
10762 do
10763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10764 echo "$as_me:$LINENO: checking for $ac_func" >&5
10765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10766 if eval "test \"\${$as_ac_var+set}\" = set"; then
10767   echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769   cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10777 #define $ac_func innocuous_$ac_func
10778
10779 /* System header to define __stub macros and hopefully few prototypes,
10780     which can conflict with char $ac_func (); below.
10781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10782     <limits.h> exists even on freestanding compilers.  */
10783
10784 #ifdef __STDC__
10785 # include <limits.h>
10786 #else
10787 # include <assert.h>
10788 #endif
10789
10790 #undef $ac_func
10791
10792 /* Override any gcc2 internal prototype to avoid an error.  */
10793 #ifdef __cplusplus
10794 extern "C"
10795 {
10796 #endif
10797 /* We use char because int might match the return type of a gcc2
10798    builtin and then its argument prototype would still apply.  */
10799 char $ac_func ();
10800 /* The GNU C library defines this for functions which it implements
10801     to always fail with ENOSYS.  Some functions are actually named
10802     something starting with __ and the normal name is an alias.  */
10803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10804 choke me
10805 #else
10806 char (*f) () = $ac_func;
10807 #endif
10808 #ifdef __cplusplus
10809 }
10810 #endif
10811
10812 int
10813 main ()
10814 {
10815 return f != $ac_func;
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822   (eval $ac_link) 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } &&
10829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831   (eval $ac_try) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; } &&
10835          { ac_try='test -s conftest$ac_exeext'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   eval "$as_ac_var=yes"
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 eval "$as_ac_var=no"
10847 fi
10848 rm -f conftest.err conftest.$ac_objext \
10849       conftest$ac_exeext conftest.$ac_ext
10850 fi
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10853 if test `eval echo '${'$as_ac_var'}'` = yes; then
10854   cat >>confdefs.h <<_ACEOF
10855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10856 _ACEOF
10857
10858 fi
10859 done
10860
10861
10862 cat >>confdefs.h <<\_ACEOF
10863 #define USE_SOCKET 1
10864 _ACEOF
10865
10866         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10867 fi
10868
10869
10870
10871 # Check whether --with-gss or --without-gss was given.
10872 if test "${with_gss+set}" = set; then
10873   withval="$with_gss"
10874   gss_prefix="$withval"
10875 else
10876   gss_prefix="no"
10877 fi;
10878 if test "$gss_prefix" != "no"
10879 then
10880   if test "$need_imap" = "yes"
10881   then
10882
10883   GSSAPI_PREFIX=$gss_prefix
10884   GSSAPI_IMPL="none"
10885   saved_CPPFLAGS="$CPPFLAGS"
10886   saved_LDFLAGS="$LDFLAGS"
10887   saved_LIBS="$LIBS"
10888     if test "$GSSAPI_PREFIX" != "yes"
10889   then
10890     krb5_path="$GSSAPI_PREFIX/bin"
10891   else
10892     krb5_path="$PATH"
10893   fi
10894   # Extract the first word of "krb5-config", so it can be a program name with args.
10895 set dummy krb5-config; ac_word=$2
10896 echo "$as_me:$LINENO: checking for $ac_word" >&5
10897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10898 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   case $KRB5CFGPATH in
10902   [\\/]* | ?:[\\/]*)
10903   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10904   ;;
10905   *)
10906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907 for as_dir in $krb5_path
10908 do
10909   IFS=$as_save_IFS
10910   test -z "$as_dir" && as_dir=.
10911   for ac_exec_ext in '' $ac_executable_extensions; do
10912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10913     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10915     break 2
10916   fi
10917 done
10918 done
10919
10920   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10921   ;;
10922 esac
10923 fi
10924 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10925
10926 if test -n "$KRB5CFGPATH"; then
10927   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10928 echo "${ECHO_T}$KRB5CFGPATH" >&6
10929 else
10930   echo "$as_me:$LINENO: result: no" >&5
10931 echo "${ECHO_T}no" >&6
10932 fi
10933
10934   if test "$KRB5CFGPATH" != "none"
10935   then
10936     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10937     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10938     case "`$KRB5CFGPATH --version`" in
10939       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
10940       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
10941       *)                GSSAPI_IMPL="Unknown";;
10942    esac
10943   else
10944         if test "$GSSAPI_PREFIX" != "yes"
10945     then
10946       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10947       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10948       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10949       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10950     fi
10951
10952         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10953 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10954 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10955   echo $ECHO_N "(cached) $ECHO_C" >&6
10956 else
10957   ac_check_lib_save_LIBS=$LIBS
10958 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965
10966 /* Override any gcc2 internal prototype to avoid an error.  */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 /* We use char because int might match the return type of a gcc2
10971    builtin and then its argument prototype would still apply.  */
10972 char gss_init_sec_context ();
10973 int
10974 main ()
10975 {
10976 gss_init_sec_context ();
10977   ;
10978   return 0;
10979 }
10980 _ACEOF
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983   (eval $ac_link) 2>conftest.er1
10984   ac_status=$?
10985   grep -v '^ *+' conftest.er1 >conftest.err
10986   rm -f conftest.er1
10987   cat conftest.err >&5
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } &&
10990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992   (eval $ac_try) 2>&5
10993   ac_status=$?
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); }; } &&
10996          { ac_try='test -s conftest$ac_exeext'
10997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998   (eval $ac_try) 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; }; then
11002   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
11003 else
11004   echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
11008 fi
11009 rm -f conftest.err conftest.$ac_objext \
11010       conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11012 fi
11013 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
11014 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
11015 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
11016
11017       GSSAPI_IMPL="MIT",
11018       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
11019
11020 fi
11021
11022
11023         if test "$GSSAPI_IMPL" = "none"
11024     then
11025       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
11026 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
11027 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h.  */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h.  */
11038
11039 /* Override any gcc2 internal prototype to avoid an error.  */
11040 #ifdef __cplusplus
11041 extern "C"
11042 #endif
11043 /* We use char because int might match the return type of a gcc2
11044    builtin and then its argument prototype would still apply.  */
11045 char gss_init_sec_context ();
11046 int
11047 main ()
11048 {
11049 gss_init_sec_context ();
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056   (eval $ac_link) 2>conftest.er1
11057   ac_status=$?
11058   grep -v '^ *+' conftest.er1 >conftest.err
11059   rm -f conftest.er1
11060   cat conftest.err >&5
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } &&
11063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065   (eval $ac_try) 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }; } &&
11069          { ac_try='test -s conftest$ac_exeext'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; }; then
11075   ac_cv_lib_gssapi_gss_init_sec_context=yes
11076 else
11077   echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080 ac_cv_lib_gssapi_gss_init_sec_context=no
11081 fi
11082 rm -f conftest.err conftest.$ac_objext \
11083       conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11085 fi
11086 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
11087 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
11088 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
11089
11090           GSSAPI_IMPL="Heimdal"
11091           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
11092           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
11093
11094 fi
11095
11096     fi
11097
11098                             if test "$GSSAPI_IMPL" = "none"
11099     then
11100       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
11101 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
11102 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105   ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113
11114 /* Override any gcc2 internal prototype to avoid an error.  */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 /* We use char because int might match the return type of a gcc2
11119    builtin and then its argument prototype would still apply.  */
11120 char g_order_init ();
11121 int
11122 main ()
11123 {
11124 g_order_init ();
11125   ;
11126   return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131   (eval $ac_link) 2>conftest.er1
11132   ac_status=$?
11133   grep -v '^ *+' conftest.er1 >conftest.err
11134   rm -f conftest.er1
11135   cat conftest.err >&5
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); } &&
11138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
11144          { ac_try='test -s conftest$ac_exeext'
11145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146   (eval $ac_try) 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   ac_cv_lib_gssapi_krb5_g_order_init=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155 ac_cv_lib_gssapi_krb5_g_order_init=no
11156 fi
11157 rm -f conftest.err conftest.$ac_objext \
11158       conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11160 fi
11161 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
11162 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
11163 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
11164
11165         GSSAPI_IMPL="OldMIT",
11166         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
11167
11168 fi
11169
11170     fi
11171   fi
11172
11173   CPPFLAGS="$saved_CPPFLAGS"
11174   LDFLAGS="$saved_LDFLAGS"
11175   LIBS="$saved_LIBS"
11176
11177     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
11178 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
11179     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
11180 echo "${ECHO_T}$GSSAPI_IMPL" >&6
11181     if test "$GSSAPI_IMPL" = "none"
11182     then
11183       cat >confcache <<\_ACEOF
11184 # This file is a shell script that caches the results of configure
11185 # tests run on this system so they can be shared between configure
11186 # scripts and configure runs, see configure's option --config-cache.
11187 # It is not useful on other systems.  If it contains results you don't
11188 # want to keep, you may remove or edit it.
11189 #
11190 # config.status only pays attention to the cache file if you give it
11191 # the --recheck option to rerun configure.
11192 #
11193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11195 # following values.
11196
11197 _ACEOF
11198
11199 # The following way of writing the cache mishandles newlines in values,
11200 # but we know of no workaround that is simple, portable, and efficient.
11201 # So, don't put newlines in cache variables' values.
11202 # Ultrix sh set writes to stderr and can't be redirected directly,
11203 # and sets the high bit in the cache file unless we assign to the vars.
11204 {
11205   (set) 2>&1 |
11206     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11207     *ac_space=\ *)
11208       # `set' does not quote correctly, so add quotes (double-quote
11209       # substitution turns \\\\ into \\, and sed turns \\ into \).
11210       sed -n \
11211         "s/'/'\\\\''/g;
11212           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11213       ;;
11214     *)
11215       # `set' quotes correctly as required by POSIX, so do not add quotes.
11216       sed -n \
11217         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11218       ;;
11219     esac;
11220 } |
11221   sed '
11222      t clear
11223      : clear
11224      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11225      t end
11226      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11227      : end' >>confcache
11228 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11229   if test -w $cache_file; then
11230     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11231     cat confcache >$cache_file
11232   else
11233     echo "not updating unwritable cache $cache_file"
11234   fi
11235 fi
11236 rm -f confcache
11237       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
11238 echo "${ECHO_T}GSSAPI libraries not found" >&6
11239     fi
11240     if test "$GSSAPI_IMPL" = "Heimdal"
11241     then
11242
11243 cat >>confdefs.h <<\_ACEOF
11244 #define HAVE_HEIMDAL 1
11245 _ACEOF
11246
11247     fi
11248     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11249     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
11250
11251 cat >>confdefs.h <<\_ACEOF
11252 #define USE_GSS 1
11253 _ACEOF
11254
11255     need_gss="yes"
11256   else
11257     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
11258 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
11259   fi
11260 fi
11261
11262
11263 if test x$need_gss = xyes; then
11264   USE_GSS_TRUE=
11265   USE_GSS_FALSE='#'
11266 else
11267   USE_GSS_TRUE='#'
11268   USE_GSS_FALSE=
11269 fi
11270
11271
11272
11273
11274 # Check whether --with-ssl or --without-ssl was given.
11275 if test "${with_ssl+set}" = set; then
11276   withval="$with_ssl"
11277          if test "$with_ssl" != "no"
11278         then
11279           if test "$need_socket" != "yes"; then
11280            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11281 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11282    { (exit 1); exit 1; }; }
11283           fi
11284
11285           if test "$with_ssl" != "yes"
11286           then
11287            LDFLAGS="$LDFLAGS -L$withval/lib"
11288            CPPFLAGS="$CPPFLAGS -I$withval/include"
11289           fi
11290           saved_LIBS="$LIBS"
11291
11292
11293 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
11294 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
11295 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298   ac_check_lib_save_LIBS=$LIBS
11299 LIBS="-lcrypto  $LIBS"
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h.  */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h.  */
11306
11307 /* Override any gcc2 internal prototype to avoid an error.  */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 /* We use char because int might match the return type of a gcc2
11312    builtin and then its argument prototype would still apply.  */
11313 char X509_new ();
11314 int
11315 main ()
11316 {
11317 X509_new ();
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324   (eval $ac_link) 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; } &&
11337          { ac_try='test -s conftest$ac_exeext'
11338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339   (eval $ac_try) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; }; then
11343   ac_cv_lib_crypto_X509_new=yes
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_cv_lib_crypto_X509_new=no
11349 fi
11350 rm -f conftest.err conftest.$ac_objext \
11351       conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11353 fi
11354 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
11355 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
11356 if test $ac_cv_lib_crypto_X509_new = yes; then
11357   cat >>confdefs.h <<_ACEOF
11358 #define HAVE_LIBCRYPTO 1
11359 _ACEOF
11360
11361   LIBS="-lcrypto $LIBS"
11362
11363 else
11364   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11365 echo "$as_me: error: Unable to find SSL library" >&2;}
11366    { (exit 1); exit 1; }; }
11367 fi
11368
11369
11370 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
11371 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
11372 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
11373   echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375   ac_check_lib_save_LIBS=$LIBS
11376 LIBS="-lssl -lcrypto $LIBS"
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h.  */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h.  */
11383
11384 /* Override any gcc2 internal prototype to avoid an error.  */
11385 #ifdef __cplusplus
11386 extern "C"
11387 #endif
11388 /* We use char because int might match the return type of a gcc2
11389    builtin and then its argument prototype would still apply.  */
11390 char SSL_new ();
11391 int
11392 main ()
11393 {
11394 SSL_new ();
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11401   (eval $ac_link) 2>conftest.er1
11402   ac_status=$?
11403   grep -v '^ *+' conftest.er1 >conftest.err
11404   rm -f conftest.er1
11405   cat conftest.err >&5
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); } &&
11408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410   (eval $ac_try) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); }; } &&
11414          { ac_try='test -s conftest$ac_exeext'
11415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416   (eval $ac_try) 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; }; then
11420   ac_cv_lib_ssl_SSL_new=yes
11421 else
11422   echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11424
11425 ac_cv_lib_ssl_SSL_new=no
11426 fi
11427 rm -f conftest.err conftest.$ac_objext \
11428       conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11430 fi
11431 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
11432 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
11433 if test $ac_cv_lib_ssl_SSL_new = yes; then
11434   cat >>confdefs.h <<_ACEOF
11435 #define HAVE_LIBSSL 1
11436 _ACEOF
11437
11438   LIBS="-lssl $LIBS"
11439
11440 else
11441   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11442 echo "$as_me: error: Unable to find SSL library" >&2;}
11443    { (exit 1); exit 1; }; }
11444 fi
11445
11446
11447
11448
11449 for ac_func in RAND_status RAND_egd
11450 do
11451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11452 echo "$as_me:$LINENO: checking for $ac_func" >&5
11453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11454 if eval "test \"\${$as_ac_var+set}\" = set"; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h.  */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h.  */
11463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11465 #define $ac_func innocuous_$ac_func
11466
11467 /* System header to define __stub macros and hopefully few prototypes,
11468     which can conflict with char $ac_func (); below.
11469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11470     <limits.h> exists even on freestanding compilers.  */
11471
11472 #ifdef __STDC__
11473 # include <limits.h>
11474 #else
11475 # include <assert.h>
11476 #endif
11477
11478 #undef $ac_func
11479
11480 /* Override any gcc2 internal prototype to avoid an error.  */
11481 #ifdef __cplusplus
11482 extern "C"
11483 {
11484 #endif
11485 /* We use char because int might match the return type of a gcc2
11486    builtin and then its argument prototype would still apply.  */
11487 char $ac_func ();
11488 /* The GNU C library defines this for functions which it implements
11489     to always fail with ENOSYS.  Some functions are actually named
11490     something starting with __ and the normal name is an alias.  */
11491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11492 choke me
11493 #else
11494 char (*f) () = $ac_func;
11495 #endif
11496 #ifdef __cplusplus
11497 }
11498 #endif
11499
11500 int
11501 main ()
11502 {
11503 return f != $ac_func;
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510   (eval $ac_link) 2>conftest.er1
11511   ac_status=$?
11512   grep -v '^ *+' conftest.er1 >conftest.err
11513   rm -f conftest.er1
11514   cat conftest.err >&5
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519   (eval $ac_try) 2>&5
11520   ac_status=$?
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); }; } &&
11523          { ac_try='test -s conftest$ac_exeext'
11524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525   (eval $ac_try) 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); }; }; then
11529   eval "$as_ac_var=yes"
11530 else
11531   echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 eval "$as_ac_var=no"
11535 fi
11536 rm -f conftest.err conftest.$ac_objext \
11537       conftest$ac_exeext conftest.$ac_ext
11538 fi
11539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11541 if test `eval echo '${'$as_ac_var'}'` = yes; then
11542   cat >>confdefs.h <<_ACEOF
11543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11544 _ACEOF
11545
11546 fi
11547 done
11548
11549
11550
11551 cat >>confdefs.h <<\_ACEOF
11552 #define USE_SSL 1
11553 _ACEOF
11554
11555           LIBS="$saved_LIBS"
11556           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
11557           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
11558           need_ssl=yes
11559
11560         fi
11561
11562 fi;
11563
11564
11565 if test x$need_ssl = xyes; then
11566   USE_SSL_TRUE=
11567   USE_SSL_FALSE='#'
11568 else
11569   USE_SSL_TRUE='#'
11570   USE_SSL_FALSE=
11571 fi
11572
11573
11574
11575 # Check whether --with-gnutls or --without-gnutls was given.
11576 if test "${with_gnutls+set}" = set; then
11577   withval="$with_gnutls"
11578      if test "$need_ssl" = "yes"
11579     then
11580       { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
11581 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
11582    { (exit 1); exit 1; }; }
11583     fi
11584     if test "$with_gnutls" != "no"
11585     then
11586       if test "$need_socket" != "yes"; then
11587         { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
11588 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
11589    { (exit 1); exit 1; }; }
11590       fi
11591       if test "$with_gnutls" != "yes"
11592       then
11593         LDFLAGS="$LDFLAGS -L$withval/lib"
11594         CPPFLAGS="$CPPFLAGS -I$withval/include"
11595       fi
11596 #saved_LIBS="$LIBS"
11597
11598
11599 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
11600 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
11601 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-lgnutls  $LIBS"
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612
11613 /* Override any gcc2 internal prototype to avoid an error.  */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 /* We use char because int might match the return type of a gcc2
11618    builtin and then its argument prototype would still apply.  */
11619 char gnutls_init ();
11620 int
11621 main ()
11622 {
11623 gnutls_init ();
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630   (eval $ac_link) 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } &&
11637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639   (eval $ac_try) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; } &&
11643          { ac_try='test -s conftest$ac_exeext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   ac_cv_lib_gnutls_gnutls_init=yes
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 ac_cv_lib_gnutls_gnutls_init=no
11655 fi
11656 rm -f conftest.err conftest.$ac_objext \
11657       conftest$ac_exeext conftest.$ac_ext
11658 LIBS=$ac_check_lib_save_LIBS
11659 fi
11660 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
11661 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
11662 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
11663   cat >>confdefs.h <<_ACEOF
11664 #define HAVE_LIBGNUTLS 1
11665 _ACEOF
11666
11667   LIBS="-lgnutls $LIBS"
11668
11669 else
11670   { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
11671 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
11672    { (exit 1); exit 1; }; }
11673 fi
11674
11675
11676
11677 cat >>confdefs.h <<\_ACEOF
11678 #define USE_GNUTLS 1
11679 _ACEOF
11680
11681 #LIBS="$saved_LIBS"
11682 #MUTTLIBS="$MUTTLIBS -lgnutls"
11683       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
11684       need_gnutls=yes
11685     fi
11686
11687 fi;
11688
11689
11690 if test x$need_gnutls = xyes; then
11691   USE_GNUTLS_TRUE=
11692   USE_GNUTLS_FALSE='#'
11693 else
11694   USE_GNUTLS_TRUE='#'
11695   USE_GNUTLS_FALSE=
11696 fi
11697
11698
11699
11700 # Check whether --with-nss or --without-nss was given.
11701 if test "${with_nss+set}" = set; then
11702   withval="$with_nss"
11703          if test "$with_nss" != no
11704         then
11705           if test "$need_socket" != "yes"; then
11706            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11707 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11708    { (exit 1); exit 1; }; }
11709           fi
11710
11711           if test "$with_nss" != "yes"
11712           then
11713            LDFLAGS="$LDFLAGS -L$withval/lib"
11714            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
11715           fi
11716
11717
11718 cat >>confdefs.h <<\_ACEOF
11719 #define USE_NSS 1
11720 _ACEOF
11721
11722           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
11723           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
11724           MUTTLIBS="$MUTTLIBS -lnspr4"
11725
11726           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
11727           need_ssl=yes
11728         fi
11729
11730 fi;
11731
11732
11733 # Check whether --with-sasl or --without-sasl was given.
11734 if test "${with_sasl+set}" = set; then
11735   withval="$with_sasl"
11736
11737         if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
11738         then
11739           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
11740 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
11741    { (exit 1); exit 1; }; }
11742         fi
11743
11744         if test "$with_sasl" != "no"
11745         then
11746           if test "$with_sasl" != "yes"
11747           then
11748             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
11749             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
11750           fi
11751
11752           saved_LIBS="$LIBS"
11753
11754
11755 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
11756 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
11757 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
11758   echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760   ac_check_lib_save_LIBS=$LIBS
11761 LIBS="-lsasl  $LIBS"
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768
11769 /* Override any gcc2 internal prototype to avoid an error.  */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 /* We use char because int might match the return type of a gcc2
11774    builtin and then its argument prototype would still apply.  */
11775 char sasl_client_init ();
11776 int
11777 main ()
11778 {
11779 sasl_client_init ();
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786   (eval $ac_link) 2>conftest.er1
11787   ac_status=$?
11788   grep -v '^ *+' conftest.er1 >conftest.err
11789   rm -f conftest.er1
11790   cat conftest.err >&5
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } &&
11793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; } &&
11799          { ac_try='test -s conftest$ac_exeext'
11800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801   (eval $ac_try) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   ac_cv_lib_sasl_sasl_client_init=yes
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 ac_cv_lib_sasl_sasl_client_init=no
11811 fi
11812 rm -f conftest.err conftest.$ac_objext \
11813       conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
11817 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
11818 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
11819   cat >>confdefs.h <<_ACEOF
11820 #define HAVE_LIBSASL 1
11821 _ACEOF
11822
11823   LIBS="-lsasl $LIBS"
11824
11825 else
11826   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
11827 echo "$as_me: error: could not find libsasl" >&2;}
11828    { (exit 1); exit 1; }; }
11829 fi
11830
11831
11832           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11833           MUTTLIBS="$MUTTLIBS -lsasl"
11834           LIBS="$saved_LIBS"
11835
11836 cat >>confdefs.h <<\_ACEOF
11837 #define USE_SASL 1
11838 _ACEOF
11839
11840           need_sasl=yes
11841         fi
11842
11843 fi;
11844
11845
11846 if test x$need_sasl = xyes; then
11847   USE_SASL_TRUE=
11848   USE_SASL_FALSE='#'
11849 else
11850   USE_SASL_TRUE='#'
11851   USE_SASL_FALSE=
11852 fi
11853
11854
11855
11856 # Check whether --with-sasl2 or --without-sasl2 was given.
11857 if test "${with_sasl2+set}" = set; then
11858   withval="$with_sasl2"
11859
11860         if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
11861         then
11862           { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
11863 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
11864    { (exit 1); exit 1; }; }
11865         fi
11866
11867         if test "$with_sasl2" != "no"
11868         then
11869           if test "$with_sasl2" != "yes"
11870           then
11871             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
11872             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
11873           fi
11874
11875           saved_LIBS="$LIBS"
11876
11877
11878 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
11879 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
11880 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
11881   echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
11883   ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-lsasl2  $LIBS"
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891
11892 /* Override any gcc2 internal prototype to avoid an error.  */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 /* We use char because int might match the return type of a gcc2
11897    builtin and then its argument prototype would still apply.  */
11898 char sasl_client_init ();
11899 int
11900 main ()
11901 {
11902 sasl_client_init ();
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909   (eval $ac_link) 2>conftest.er1
11910   ac_status=$?
11911   grep -v '^ *+' conftest.er1 >conftest.err
11912   rm -f conftest.er1
11913   cat conftest.err >&5
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; } &&
11922          { ac_try='test -s conftest$ac_exeext'
11923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924   (eval $ac_try) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; }; then
11928   ac_cv_lib_sasl2_sasl_client_init=yes
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ac_cv_lib_sasl2_sasl_client_init=no
11934 fi
11935 rm -f conftest.err conftest.$ac_objext \
11936       conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11938 fi
11939 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11940 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11941 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11942   cat >>confdefs.h <<_ACEOF
11943 #define HAVE_LIBSASL2 1
11944 _ACEOF
11945
11946   LIBS="-lsasl2 $LIBS"
11947
11948 else
11949   { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
11950 echo "$as_me: error: could not find libsasl2" >&2;}
11951    { (exit 1); exit 1; }; }
11952 fi
11953
11954
11955           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11956           MUTTLIBS="$MUTTLIBS -lsasl2"
11957           LIBS="$saved_LIBS"
11958
11959 cat >>confdefs.h <<\_ACEOF
11960 #define USE_SASL 1
11961 _ACEOF
11962
11963
11964 cat >>confdefs.h <<\_ACEOF
11965 #define USE_SASL2 1
11966 _ACEOF
11967
11968           need_sasl=yes
11969         fi
11970
11971 fi;
11972
11973
11974 if test x$need_sasl = xyes; then
11975   USE_SASL_TRUE=
11976   USE_SASL_FALSE='#'
11977 else
11978   USE_SASL_TRUE='#'
11979   USE_SASL_FALSE=
11980 fi
11981
11982
11983
11984 # Check whether --with-idn or --without-idn was given.
11985 if test "${with_idn+set}" = set; then
11986   withval="$with_idn"
11987
11988                   if test "$with_idn" != "no" ; then
11989                         if test "$with_idn" != "yes" ; then
11990                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11991                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
11992                         fi
11993                   fi
11994
11995
11996 fi;
11997
11998 if test "x$with_idn" != "xno"; then
11999
12000 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
12001 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
12002 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   ac_check_lib_save_LIBS=$LIBS
12006 LIBS="-lidn  $LIBS"
12007 cat >conftest.$ac_ext <<_ACEOF
12008 /* confdefs.h.  */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h.  */
12013
12014 /* Override any gcc2 internal prototype to avoid an error.  */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 /* We use char because int might match the return type of a gcc2
12019    builtin and then its argument prototype would still apply.  */
12020 char stringprep_check_version ();
12021 int
12022 main ()
12023 {
12024 stringprep_check_version ();
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031   (eval $ac_link) 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; } &&
12044          { ac_try='test -s conftest$ac_exeext'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   ac_cv_lib_idn_stringprep_check_version=yes
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 ac_cv_lib_idn_stringprep_check_version=no
12056 fi
12057 rm -f conftest.err conftest.$ac_objext \
12058       conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12060 fi
12061 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
12062 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
12063 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
12064   cat >>confdefs.h <<_ACEOF
12065 #define HAVE_LIBIDN 1
12066 _ACEOF
12067
12068   LIBS="-lidn $LIBS"
12069
12070 fi
12071
12072
12073
12074 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
12075 do
12076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12077 echo "$as_me:$LINENO: checking for $ac_func" >&5
12078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12079 if eval "test \"\${$as_ac_var+set}\" = set"; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   cat >conftest.$ac_ext <<_ACEOF
12083 /* confdefs.h.  */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h.  */
12088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12090 #define $ac_func innocuous_$ac_func
12091
12092 /* System header to define __stub macros and hopefully few prototypes,
12093     which can conflict with char $ac_func (); below.
12094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12095     <limits.h> exists even on freestanding compilers.  */
12096
12097 #ifdef __STDC__
12098 # include <limits.h>
12099 #else
12100 # include <assert.h>
12101 #endif
12102
12103 #undef $ac_func
12104
12105 /* Override any gcc2 internal prototype to avoid an error.  */
12106 #ifdef __cplusplus
12107 extern "C"
12108 {
12109 #endif
12110 /* We use char because int might match the return type of a gcc2
12111    builtin and then its argument prototype would still apply.  */
12112 char $ac_func ();
12113 /* The GNU C library defines this for functions which it implements
12114     to always fail with ENOSYS.  Some functions are actually named
12115     something starting with __ and the normal name is an alias.  */
12116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12117 choke me
12118 #else
12119 char (*f) () = $ac_func;
12120 #endif
12121 #ifdef __cplusplus
12122 }
12123 #endif
12124
12125 int
12126 main ()
12127 {
12128 return f != $ac_func;
12129   ;
12130   return 0;
12131 }
12132 _ACEOF
12133 rm -f conftest.$ac_objext conftest$ac_exeext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12135   (eval $ac_link) 2>conftest.er1
12136   ac_status=$?
12137   grep -v '^ *+' conftest.er1 >conftest.err
12138   rm -f conftest.er1
12139   cat conftest.err >&5
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } &&
12142          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; } &&
12148          { ac_try='test -s conftest$ac_exeext'
12149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150   (eval $ac_try) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }; }; then
12154   eval "$as_ac_var=yes"
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159 eval "$as_ac_var=no"
12160 fi
12161 rm -f conftest.err conftest.$ac_objext \
12162       conftest$ac_exeext conftest.$ac_ext
12163 fi
12164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12166 if test `eval echo '${'$as_ac_var'}'` = yes; then
12167   cat >>confdefs.h <<_ACEOF
12168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12169 _ACEOF
12170
12171 fi
12172 done
12173
12174
12175
12176 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
12177 do
12178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12179 echo "$as_me:$LINENO: checking for $ac_func" >&5
12180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_var+set}\" = set"; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12192 #define $ac_func innocuous_$ac_func
12193
12194 /* System header to define __stub macros and hopefully few prototypes,
12195     which can conflict with char $ac_func (); below.
12196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12197     <limits.h> exists even on freestanding compilers.  */
12198
12199 #ifdef __STDC__
12200 # include <limits.h>
12201 #else
12202 # include <assert.h>
12203 #endif
12204
12205 #undef $ac_func
12206
12207 /* Override any gcc2 internal prototype to avoid an error.  */
12208 #ifdef __cplusplus
12209 extern "C"
12210 {
12211 #endif
12212 /* We use char because int might match the return type of a gcc2
12213    builtin and then its argument prototype would still apply.  */
12214 char $ac_func ();
12215 /* The GNU C library defines this for functions which it implements
12216     to always fail with ENOSYS.  Some functions are actually named
12217     something starting with __ and the normal name is an alias.  */
12218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12219 choke me
12220 #else
12221 char (*f) () = $ac_func;
12222 #endif
12223 #ifdef __cplusplus
12224 }
12225 #endif
12226
12227 int
12228 main ()
12229 {
12230 return f != $ac_func;
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237   (eval $ac_link) 2>conftest.er1
12238   ac_status=$?
12239   grep -v '^ *+' conftest.er1 >conftest.err
12240   rm -f conftest.er1
12241   cat conftest.err >&5
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); } &&
12244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246   (eval $ac_try) 2>&5
12247   ac_status=$?
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); }; } &&
12250          { ac_try='test -s conftest$ac_exeext'
12251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252   (eval $ac_try) 2>&5
12253   ac_status=$?
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); }; }; then
12256   eval "$as_ac_var=yes"
12257 else
12258   echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12260
12261 eval "$as_ac_var=no"
12262 fi
12263 rm -f conftest.err conftest.$ac_objext \
12264       conftest$ac_exeext conftest.$ac_ext
12265 fi
12266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12268 if test `eval echo '${'$as_ac_var'}'` = yes; then
12269   cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12271 _ACEOF
12272
12273 fi
12274 done
12275
12276
12277
12278 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
12279 do
12280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12281 echo "$as_me:$LINENO: checking for $ac_func" >&5
12282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12283 if eval "test \"\${$as_ac_var+set}\" = set"; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12294 #define $ac_func innocuous_$ac_func
12295
12296 /* System header to define __stub macros and hopefully few prototypes,
12297     which can conflict with char $ac_func (); below.
12298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12299     <limits.h> exists even on freestanding compilers.  */
12300
12301 #ifdef __STDC__
12302 # include <limits.h>
12303 #else
12304 # include <assert.h>
12305 #endif
12306
12307 #undef $ac_func
12308
12309 /* Override any gcc2 internal prototype to avoid an error.  */
12310 #ifdef __cplusplus
12311 extern "C"
12312 {
12313 #endif
12314 /* We use char because int might match the return type of a gcc2
12315    builtin and then its argument prototype would still apply.  */
12316 char $ac_func ();
12317 /* The GNU C library defines this for functions which it implements
12318     to always fail with ENOSYS.  Some functions are actually named
12319     something starting with __ and the normal name is an alias.  */
12320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12321 choke me
12322 #else
12323 char (*f) () = $ac_func;
12324 #endif
12325 #ifdef __cplusplus
12326 }
12327 #endif
12328
12329 int
12330 main ()
12331 {
12332 return f != $ac_func;
12333   ;
12334   return 0;
12335 }
12336 _ACEOF
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339   (eval $ac_link) 2>conftest.er1
12340   ac_status=$?
12341   grep -v '^ *+' conftest.er1 >conftest.err
12342   rm -f conftest.er1
12343   cat conftest.err >&5
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } &&
12346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; } &&
12352          { ac_try='test -s conftest$ac_exeext'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; }; then
12358   eval "$as_ac_var=yes"
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363 eval "$as_ac_var=no"
12364 fi
12365 rm -f conftest.err conftest.$ac_objext \
12366       conftest$ac_exeext conftest.$ac_ext
12367 fi
12368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12370 if test `eval echo '${'$as_ac_var'}'` = yes; then
12371   cat >>confdefs.h <<_ACEOF
12372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12373 _ACEOF
12374
12375 fi
12376 done
12377
12378 fi
12379
12380
12381 # Check whether --enable-debug or --disable-debug was given.
12382 if test "${enable_debug+set}" = set; then
12383   enableval="$enable_debug"
12384    if test x$enableval = xyes ; then
12385
12386 cat >>confdefs.h <<\_ACEOF
12387 #define DEBUG 1
12388 _ACEOF
12389
12390           fi
12391
12392 fi;
12393
12394 # Check whether --enable-flock or --disable-flock was given.
12395 if test "${enable_flock+set}" = set; then
12396   enableval="$enable_flock"
12397   if test $enableval = yes; then
12398
12399 cat >>confdefs.h <<\_ACEOF
12400 #define USE_FLOCK 1
12401 _ACEOF
12402
12403         fi
12404 fi;
12405
12406 mutt_cv_fcntl=yes
12407 # Check whether --enable-fcntl or --disable-fcntl was given.
12408 if test "${enable_fcntl+set}" = set; then
12409   enableval="$enable_fcntl"
12410   if test $enableval = no; then mutt_cv_fcntl=no; fi
12411 fi;
12412
12413 if test $mutt_cv_fcntl = yes; then
12414
12415 cat >>confdefs.h <<\_ACEOF
12416 #define USE_FCNTL 1
12417 _ACEOF
12418
12419 fi
12420
12421 mutt_cv_inodesort=yes
12422 # Check whether --enable-inodesort or --disable-inodesort was given.
12423 if test "${enable_inodesort+set}" = set; then
12424   enableval="$enable_inodesort"
12425   if test $enableval = no ; then mutt_cv_inodesort=no; fi
12426 fi;
12427
12428 if test $mutt_cv_inodesort = yes; then
12429
12430 cat >>confdefs.h <<\_ACEOF
12431 #define USE_INODESORT 1
12432 _ACEOF
12433
12434 fi
12435
12436 mutt_cv_warnings=yes
12437 # Check whether --enable-warnings or --disable-warnings was given.
12438 if test "${enable_warnings+set}" = set; then
12439   enableval="$enable_warnings"
12440   if test $enableval = no; then
12441         mutt_cv_warnings=no
12442 fi
12443 fi;
12444
12445 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
12446         CFLAGS="-Wall -pedantic $CFLAGS"
12447 fi
12448
12449 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
12450 if test "${enable_nfs_fix+set}" = set; then
12451   enableval="$enable_nfs_fix"
12452   if test x$enableval = xyes; then
12453
12454 cat >>confdefs.h <<\_ACEOF
12455 #define NFS_ATTRIBUTE_HACK 1
12456 _ACEOF
12457
12458         fi
12459 fi;
12460
12461 # Check whether --enable-buffy-size or --disable-buffy-size was given.
12462 if test "${enable_buffy_size+set}" = set; then
12463   enableval="$enable_buffy_size"
12464   if test x$enableval = xyes; then
12465
12466 cat >>confdefs.h <<\_ACEOF
12467 #define BUFFY_SIZE 1
12468 _ACEOF
12469
12470         fi
12471 fi;
12472
12473 # Check whether --enable-mailtool or --disable-mailtool was given.
12474 if test "${enable_mailtool+set}" = set; then
12475   enableval="$enable_mailtool"
12476   if test x$enableval = xyes; then
12477
12478 cat >>confdefs.h <<\_ACEOF
12479 #define SUN_ATTACHMENT 1
12480 _ACEOF
12481
12482         fi
12483 fi;
12484
12485 # Check whether --enable-compressed or --disable-compressed was given.
12486 if test "${enable_compressed+set}" = set; then
12487   enableval="$enable_compressed"
12488   if test x$enableval = xyes; then
12489                 cat >>confdefs.h <<\_ACEOF
12490 #define USE_COMPRESSED 1
12491 _ACEOF
12492
12493         fi
12494 fi;
12495
12496 # Check whether --enable-locales-fix or --disable-locales-fix was given.
12497 if test "${enable_locales_fix+set}" = set; then
12498   enableval="$enable_locales_fix"
12499   if test x$enableval = xyes; then
12500
12501 cat >>confdefs.h <<\_ACEOF
12502 #define LOCALES_HACK 1
12503 _ACEOF
12504
12505         fi
12506 fi;
12507
12508
12509 # Check whether --with-exec-shell or --without-exec-shell was given.
12510 if test "${with_exec_shell+set}" = set; then
12511   withval="$with_exec_shell"
12512   if test $withval != yes; then
12513
12514 cat >>confdefs.h <<_ACEOF
12515 #define EXECSHELL "$withval"
12516 _ACEOF
12517
12518          else
12519                 cat >>confdefs.h <<_ACEOF
12520 #define EXECSHELL "/bin/sh"
12521 _ACEOF
12522
12523         fi
12524 else
12525   cat >>confdefs.h <<_ACEOF
12526 #define EXECSHELL "/bin/sh"
12527 _ACEOF
12528
12529 fi;
12530
12531 # Check whether --enable-exact-address or --disable-exact-address was given.
12532 if test "${enable_exact_address+set}" = set; then
12533   enableval="$enable_exact_address"
12534   if test $enableval = yes; then
12535
12536 cat >>confdefs.h <<\_ACEOF
12537 #define EXACT_ADDRESS 1
12538 _ACEOF
12539
12540
12541         fi
12542 fi;
12543
12544 # Check whether --enable-hcache or --disable-hcache was given.
12545 if test "${enable_hcache+set}" = set; then
12546   enableval="$enable_hcache"
12547   if test x$enableval = xyes; then
12548
12549 cat >>confdefs.h <<\_ACEOF
12550 #define USE_HCACHE 1
12551 _ACEOF
12552
12553
12554     OLDCPPFLAGS="$CPPFLAGS"
12555     OLDLIBS="$LIBS"
12556
12557     need_md5="yes"
12558     ac_prefer_gdbm=yes
12559
12560 # Check whether --with-gdbm or --without-gdbm was given.
12561 if test "${with_gdbm+set}" = set; then
12562   withval="$with_gdbm"
12563   ac_prefer_gdbm=$withval
12564 fi;
12565     if test x$ac_prefer_gdbm != xno; then
12566         CPPFLAGS="$OLDCPPFLAGS"
12567         LIBS="$OLDLIBS -lgdbm";
12568         echo "$as_me:$LINENO: checking for gdbm_open" >&5
12569 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
12570 if test "${ac_cv_gdbmopen+set}" = set; then
12571   echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573
12574             ac_cv_gdbmopen=no
12575             cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h.  */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h.  */
12581 #include <gdbm.h>
12582 int
12583 main ()
12584 {
12585 gdbm_open(0,0,0,0,0);
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592   (eval $ac_link) 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601   (eval $ac_try) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; } &&
12605          { ac_try='test -s conftest$ac_exeext'
12606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607   (eval $ac_try) 2>&5
12608   ac_status=$?
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); }; }; then
12611   ac_cv_gdbmopen=yes
12612 else
12613   echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12615
12616 fi
12617 rm -f conftest.err conftest.$ac_objext \
12618       conftest$ac_exeext conftest.$ac_ext
12619
12620 fi
12621 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
12622 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
12623     fi
12624
12625     ac_bdb_prefix=yes
12626
12627 # Check whether --with-bdb or --without-bdb was given.
12628 if test "${with_bdb+set}" = set; then
12629   withval="$with_bdb"
12630   ac_bdb_prefix=$withval
12631 fi;
12632     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
12633         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
12634         for d in $ac_bdb_prefix; do
12635             bdbpfx="$bdbpfx $d"
12636             for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
12637                 bdbpfx="$bdbpfx $d/$v"
12638             done
12639         done
12640         BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
12641         echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
12642 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
12643         for d in $bdbpfx; do
12644             BDB_INCLUDE_DIR=""
12645             BDB_LIB_DIR=""
12646             for v in / $BDB_VERSIONS; do
12647                 if test -r "$d/include/$v/db.h"; then
12648                     BDB_INCLUDE_DIR="$d/include/$v"
12649                     if test -d "$d/lib/$v"; then
12650                         BDB_LIB_DIR="$d/lib/$v"
12651                         for l in `echo $BDB_VERSIONS`; do
12652                             CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12653                             LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
12654                             cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h.  */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h.  */
12660
12661                                 #include <stdlib.h>
12662                                 #include <db.h>
12663
12664 int
12665 main ()
12666 {
12667
12668                                 DB *db = NULL;
12669                                 db->open(db,NULL,NULL,NULL,0,0,0);
12670
12671   ;
12672   return 0;
12673 }
12674 _ACEOF
12675 rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12677   (eval $ac_link) 2>conftest.er1
12678   ac_status=$?
12679   grep -v '^ *+' conftest.er1 >conftest.err
12680   rm -f conftest.er1
12681   cat conftest.err >&5
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } &&
12684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686   (eval $ac_try) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; } &&
12690          { ac_try='test -s conftest$ac_exeext'
12691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692   (eval $ac_try) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; }; then
12696
12697                                 ac_cv_dbcreate=yes
12698                                 BDB_LIB="$l"
12699                                 break
12700
12701 else
12702   echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705 fi
12706 rm -f conftest.err conftest.$ac_objext \
12707       conftest$ac_exeext conftest.$ac_ext
12708                         done
12709                         test x$ac_dbcreate = xyes && break
12710                     fi
12711                 fi
12712             done
12713             test x$BDB_LIB != x && break
12714         done
12715         if test x$ac_cv_dbcreate = xyes; then
12716             echo "$as_me:$LINENO: result: yes" >&5
12717 echo "${ECHO_T}yes" >&6
12718         else
12719             echo "$as_me:$LINENO: result: no" >&5
12720 echo "${ECHO_T}no" >&6
12721         fi
12722     fi
12723
12724     if test x$ac_cv_gdbmopen = xyes; then
12725         CPPFLAGS="$OLDCPPFLAGS"
12726         LIBS="$OLDLIBS -lgdbm";
12727
12728 cat >>confdefs.h <<\_ACEOF
12729 #define HAVE_GDBM 1
12730 _ACEOF
12731
12732     elif test x$ac_cv_dbcreate = xyes; then
12733         CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12734         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
12735
12736 cat >>confdefs.h <<\_ACEOF
12737 #define HAVE_DB4 1
12738 _ACEOF
12739
12740     else
12741         { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
12742 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
12743    { (exit 1); exit 1; }; }
12744     fi
12745 fi
12746 fi;
12747
12748
12749
12750
12751
12752
12753
12754 # Check whether --enable-iconv or --disable-iconv was given.
12755 if test "${enable_iconv+set}" = set; then
12756   enableval="$enable_iconv"
12757   if test x$enableval = xno ; then
12758                 am_cv_func_iconv=no
12759         fi
12760
12761 fi;
12762
12763 echo "$as_me:$LINENO: checking for off_t" >&5
12764 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12765 if test "${ac_cv_type_off_t+set}" = set; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h.  */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h.  */
12774 $ac_includes_default
12775 int
12776 main ()
12777 {
12778 if ((off_t *) 0)
12779   return 0;
12780 if (sizeof (off_t))
12781   return 0;
12782   ;
12783   return 0;
12784 }
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788   (eval $ac_compile) 2>conftest.er1
12789   ac_status=$?
12790   grep -v '^ *+' conftest.er1 >conftest.err
12791   rm -f conftest.er1
12792   cat conftest.err >&5
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); } &&
12795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797   (eval $ac_try) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; } &&
12801          { ac_try='test -s conftest.$ac_objext'
12802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803   (eval $ac_try) 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); }; }; then
12807   ac_cv_type_off_t=yes
12808 else
12809   echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 ac_cv_type_off_t=no
12813 fi
12814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12815 fi
12816 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12817 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12818 if test $ac_cv_type_off_t = yes; then
12819   :
12820 else
12821
12822 cat >>confdefs.h <<_ACEOF
12823 #define off_t long
12824 _ACEOF
12825
12826 fi
12827
12828 echo "$as_me:$LINENO: checking for size_t" >&5
12829 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12830 if test "${ac_cv_type_size_t+set}" = set; then
12831   echo $ECHO_N "(cached) $ECHO_C" >&6
12832 else
12833   cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h.  */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h.  */
12839 $ac_includes_default
12840 int
12841 main ()
12842 {
12843 if ((size_t *) 0)
12844   return 0;
12845 if (sizeof (size_t))
12846   return 0;
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 rm -f conftest.$ac_objext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853   (eval $ac_compile) 2>conftest.er1
12854   ac_status=$?
12855   grep -v '^ *+' conftest.er1 >conftest.err
12856   rm -f conftest.er1
12857   cat conftest.err >&5
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } &&
12860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862   (eval $ac_try) 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; } &&
12866          { ac_try='test -s conftest.$ac_objext'
12867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868   (eval $ac_try) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; }; then
12872   ac_cv_type_size_t=yes
12873 else
12874   echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12876
12877 ac_cv_type_size_t=no
12878 fi
12879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12880 fi
12881 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12882 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12883 if test $ac_cv_type_size_t = yes; then
12884   :
12885 else
12886
12887 cat >>confdefs.h <<_ACEOF
12888 #define size_t unsigned
12889 _ACEOF
12890
12891 fi
12892
12893 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12894 # for constant arguments.  Useless!
12895 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12896 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12897 if test "${ac_cv_working_alloca_h+set}" = set; then
12898   echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900   cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h.  */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h.  */
12906 #include <alloca.h>
12907 int
12908 main ()
12909 {
12910 char *p = (char *) alloca (2 * sizeof (int));
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917   (eval $ac_link) 2>conftest.er1
12918   ac_status=$?
12919   grep -v '^ *+' conftest.er1 >conftest.err
12920   rm -f conftest.er1
12921   cat conftest.err >&5
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } &&
12924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926   (eval $ac_try) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; } &&
12930          { ac_try='test -s conftest$ac_exeext'
12931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932   (eval $ac_try) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; }; then
12936   ac_cv_working_alloca_h=yes
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 ac_cv_working_alloca_h=no
12942 fi
12943 rm -f conftest.err conftest.$ac_objext \
12944       conftest$ac_exeext conftest.$ac_ext
12945 fi
12946 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12947 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12948 if test $ac_cv_working_alloca_h = yes; then
12949
12950 cat >>confdefs.h <<\_ACEOF
12951 #define HAVE_ALLOCA_H 1
12952 _ACEOF
12953
12954 fi
12955
12956 echo "$as_me:$LINENO: checking for alloca" >&5
12957 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12958 if test "${ac_cv_func_alloca_works+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967 #ifdef __GNUC__
12968 # define alloca __builtin_alloca
12969 #else
12970 # ifdef _MSC_VER
12971 #  include <malloc.h>
12972 #  define alloca _alloca
12973 # else
12974 #  if HAVE_ALLOCA_H
12975 #   include <alloca.h>
12976 #  else
12977 #   ifdef _AIX
12978  #pragma alloca
12979 #   else
12980 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12981 char *alloca ();
12982 #    endif
12983 #   endif
12984 #  endif
12985 # endif
12986 #endif
12987
12988 int
12989 main ()
12990 {
12991 char *p = (char *) alloca (1);
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998   (eval $ac_link) 2>conftest.er1
12999   ac_status=$?
13000   grep -v '^ *+' conftest.er1 >conftest.err
13001   rm -f conftest.er1
13002   cat conftest.err >&5
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } &&
13005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007   (eval $ac_try) 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); }; } &&
13011          { ac_try='test -s conftest$ac_exeext'
13012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013   (eval $ac_try) 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }; }; then
13017   ac_cv_func_alloca_works=yes
13018 else
13019   echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13021
13022 ac_cv_func_alloca_works=no
13023 fi
13024 rm -f conftest.err conftest.$ac_objext \
13025       conftest$ac_exeext conftest.$ac_ext
13026 fi
13027 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13028 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13029
13030 if test $ac_cv_func_alloca_works = yes; then
13031
13032 cat >>confdefs.h <<\_ACEOF
13033 #define HAVE_ALLOCA 1
13034 _ACEOF
13035
13036 else
13037   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13038 # that cause trouble.  Some versions do not even contain alloca or
13039 # contain a buggy version.  If you still want to use their alloca,
13040 # use ar to extract alloca.o from them instead of compiling alloca.c.
13041
13042 ALLOCA=alloca.$ac_objext
13043
13044 cat >>confdefs.h <<\_ACEOF
13045 #define C_ALLOCA 1
13046 _ACEOF
13047
13048
13049 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13050 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13051 if test "${ac_cv_os_cray+set}" = set; then
13052   echo $ECHO_N "(cached) $ECHO_C" >&6
13053 else
13054   cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h.  */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h.  */
13060 #if defined(CRAY) && ! defined(CRAY2)
13061 webecray
13062 #else
13063 wenotbecray
13064 #endif
13065
13066 _ACEOF
13067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13068   $EGREP "webecray" >/dev/null 2>&1; then
13069   ac_cv_os_cray=yes
13070 else
13071   ac_cv_os_cray=no
13072 fi
13073 rm -f conftest*
13074
13075 fi
13076 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13077 echo "${ECHO_T}$ac_cv_os_cray" >&6
13078 if test $ac_cv_os_cray = yes; then
13079   for ac_func in _getb67 GETB67 getb67; do
13080     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13081 echo "$as_me:$LINENO: checking for $ac_func" >&5
13082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13083 if eval "test \"\${$as_ac_var+set}\" = set"; then
13084   echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086   cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13094 #define $ac_func innocuous_$ac_func
13095
13096 /* System header to define __stub macros and hopefully few prototypes,
13097     which can conflict with char $ac_func (); below.
13098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13099     <limits.h> exists even on freestanding compilers.  */
13100
13101 #ifdef __STDC__
13102 # include <limits.h>
13103 #else
13104 # include <assert.h>
13105 #endif
13106
13107 #undef $ac_func
13108
13109 /* Override any gcc2 internal prototype to avoid an error.  */
13110 #ifdef __cplusplus
13111 extern "C"
13112 {
13113 #endif
13114 /* We use char because int might match the return type of a gcc2
13115    builtin and then its argument prototype would still apply.  */
13116 char $ac_func ();
13117 /* The GNU C library defines this for functions which it implements
13118     to always fail with ENOSYS.  Some functions are actually named
13119     something starting with __ and the normal name is an alias.  */
13120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13121 choke me
13122 #else
13123 char (*f) () = $ac_func;
13124 #endif
13125 #ifdef __cplusplus
13126 }
13127 #endif
13128
13129 int
13130 main ()
13131 {
13132 return f != $ac_func;
13133   ;
13134   return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139   (eval $ac_link) 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; } &&
13152          { ac_try='test -s conftest$ac_exeext'
13153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154   (eval $ac_try) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; }; then
13158   eval "$as_ac_var=yes"
13159 else
13160   echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163 eval "$as_ac_var=no"
13164 fi
13165 rm -f conftest.err conftest.$ac_objext \
13166       conftest$ac_exeext conftest.$ac_ext
13167 fi
13168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13170 if test `eval echo '${'$as_ac_var'}'` = yes; then
13171
13172 cat >>confdefs.h <<_ACEOF
13173 #define CRAY_STACKSEG_END $ac_func
13174 _ACEOF
13175
13176     break
13177 fi
13178
13179   done
13180 fi
13181
13182 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13183 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13184 if test "${ac_cv_c_stack_direction+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   if test "$cross_compiling" = yes; then
13188   ac_cv_c_stack_direction=0
13189 else
13190   cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h.  */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h.  */
13196 int
13197 find_stack_direction ()
13198 {
13199   static char *addr = 0;
13200   auto char dummy;
13201   if (addr == 0)
13202     {
13203       addr = &dummy;
13204       return find_stack_direction ();
13205     }
13206   else
13207     return (&dummy > addr) ? 1 : -1;
13208 }
13209
13210 int
13211 main ()
13212 {
13213   exit (find_stack_direction () < 0);
13214 }
13215 _ACEOF
13216 rm -f conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218   (eval $ac_link) 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223   (eval $ac_try) 2>&5
13224   ac_status=$?
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); }; }; then
13227   ac_cv_c_stack_direction=1
13228 else
13229   echo "$as_me: program exited with status $ac_status" >&5
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 ( exit $ac_status )
13234 ac_cv_c_stack_direction=-1
13235 fi
13236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13237 fi
13238 fi
13239 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13240 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13241
13242 cat >>confdefs.h <<_ACEOF
13243 #define STACK_DIRECTION $ac_cv_c_stack_direction
13244 _ACEOF
13245
13246
13247 fi
13248
13249
13250
13251 for ac_header in stdlib.h unistd.h
13252 do
13253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13255   echo "$as_me:$LINENO: checking for $ac_header" >&5
13256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 fi
13260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13262 else
13263   # Is the header compilable?
13264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13266 cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272 $ac_includes_default
13273 #include <$ac_header>
13274 _ACEOF
13275 rm -f conftest.$ac_objext
13276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277   (eval $ac_compile) 2>conftest.er1
13278   ac_status=$?
13279   grep -v '^ *+' conftest.er1 >conftest.err
13280   rm -f conftest.er1
13281   cat conftest.err >&5
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); } &&
13284          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286   (eval $ac_try) 2>&5
13287   ac_status=$?
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); }; } &&
13290          { ac_try='test -s conftest.$ac_objext'
13291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292   (eval $ac_try) 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }; }; then
13296   ac_header_compiler=yes
13297 else
13298   echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_header_compiler=no
13302 fi
13303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13305 echo "${ECHO_T}$ac_header_compiler" >&6
13306
13307 # Is the header present?
13308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13310 cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316 #include <$ac_header>
13317 _ACEOF
13318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13320   ac_status=$?
13321   grep -v '^ *+' conftest.er1 >conftest.err
13322   rm -f conftest.er1
13323   cat conftest.err >&5
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); } >/dev/null; then
13326   if test -s conftest.err; then
13327     ac_cpp_err=$ac_c_preproc_warn_flag
13328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13329   else
13330     ac_cpp_err=
13331   fi
13332 else
13333   ac_cpp_err=yes
13334 fi
13335 if test -z "$ac_cpp_err"; then
13336   ac_header_preproc=yes
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341   ac_header_preproc=no
13342 fi
13343 rm -f conftest.err conftest.$ac_ext
13344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13345 echo "${ECHO_T}$ac_header_preproc" >&6
13346
13347 # So?  What about this header?
13348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13349   yes:no: )
13350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13354     ac_header_preproc=yes
13355     ;;
13356   no:yes:* )
13357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13369     (
13370       cat <<\_ASBOX
13371 ## ------------------------------------------ ##
13372 ## Report this to the AC_PACKAGE_NAME lists.  ##
13373 ## ------------------------------------------ ##
13374 _ASBOX
13375     ) |
13376       sed "s/^/$as_me: WARNING:     /" >&2
13377     ;;
13378 esac
13379 echo "$as_me:$LINENO: checking for $ac_header" >&5
13380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   eval "$as_ac_Header=\$ac_header_preproc"
13385 fi
13386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13388
13389 fi
13390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13391   cat >>confdefs.h <<_ACEOF
13392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13393 _ACEOF
13394
13395 fi
13396
13397 done
13398
13399
13400 for ac_func in getpagesize
13401 do
13402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13403 echo "$as_me:$LINENO: checking for $ac_func" >&5
13404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13405 if eval "test \"\${$as_ac_var+set}\" = set"; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408   cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h.  */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h.  */
13414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13416 #define $ac_func innocuous_$ac_func
13417
13418 /* System header to define __stub macros and hopefully few prototypes,
13419     which can conflict with char $ac_func (); below.
13420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13421     <limits.h> exists even on freestanding compilers.  */
13422
13423 #ifdef __STDC__
13424 # include <limits.h>
13425 #else
13426 # include <assert.h>
13427 #endif
13428
13429 #undef $ac_func
13430
13431 /* Override any gcc2 internal prototype to avoid an error.  */
13432 #ifdef __cplusplus
13433 extern "C"
13434 {
13435 #endif
13436 /* We use char because int might match the return type of a gcc2
13437    builtin and then its argument prototype would still apply.  */
13438 char $ac_func ();
13439 /* The GNU C library defines this for functions which it implements
13440     to always fail with ENOSYS.  Some functions are actually named
13441     something starting with __ and the normal name is an alias.  */
13442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13443 choke me
13444 #else
13445 char (*f) () = $ac_func;
13446 #endif
13447 #ifdef __cplusplus
13448 }
13449 #endif
13450
13451 int
13452 main ()
13453 {
13454 return f != $ac_func;
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461   (eval $ac_link) 2>conftest.er1
13462   ac_status=$?
13463   grep -v '^ *+' conftest.er1 >conftest.err
13464   rm -f conftest.er1
13465   cat conftest.err >&5
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; } &&
13474          { ac_try='test -s conftest$ac_exeext'
13475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476   (eval $ac_try) 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; }; then
13480   eval "$as_ac_var=yes"
13481 else
13482   echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 eval "$as_ac_var=no"
13486 fi
13487 rm -f conftest.err conftest.$ac_objext \
13488       conftest$ac_exeext conftest.$ac_ext
13489 fi
13490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13492 if test `eval echo '${'$as_ac_var'}'` = yes; then
13493   cat >>confdefs.h <<_ACEOF
13494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13495 _ACEOF
13496
13497 fi
13498 done
13499
13500 echo "$as_me:$LINENO: checking for working mmap" >&5
13501 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13502 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   if test "$cross_compiling" = yes; then
13506   ac_cv_func_mmap_fixed_mapped=no
13507 else
13508   cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h.  */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h.  */
13514 $ac_includes_default
13515 /* malloc might have been renamed as rpl_malloc. */
13516 #undef malloc
13517
13518 /* Thanks to Mike Haertel and Jim Avera for this test.
13519    Here is a matrix of mmap possibilities:
13520         mmap private not fixed
13521         mmap private fixed at somewhere currently unmapped
13522         mmap private fixed at somewhere already mapped
13523         mmap shared not fixed
13524         mmap shared fixed at somewhere currently unmapped
13525         mmap shared fixed at somewhere already mapped
13526    For private mappings, we should verify that changes cannot be read()
13527    back from the file, nor mmap's back from the file at a different
13528    address.  (There have been systems where private was not correctly
13529    implemented like the infamous i386 svr4.0, and systems where the
13530    VM page cache was not coherent with the file system buffer cache
13531    like early versions of FreeBSD and possibly contemporary NetBSD.)
13532    For shared mappings, we should conversely verify that changes get
13533    propagated back to all the places they're supposed to be.
13534
13535    Grep wants private fixed already mapped.
13536    The main things grep needs to know about mmap are:
13537    * does it exist and is it safe to write into the mmap'd area
13538    * how to use it (BSD variants)  */
13539
13540 #include <fcntl.h>
13541 #include <sys/mman.h>
13542
13543 #if !STDC_HEADERS && !HAVE_STDLIB_H
13544 char *malloc ();
13545 #endif
13546
13547 /* This mess was copied from the GNU getpagesize.h.  */
13548 #if !HAVE_GETPAGESIZE
13549 /* Assume that all systems that can run configure have sys/param.h.  */
13550 # if !HAVE_SYS_PARAM_H
13551 #  define HAVE_SYS_PARAM_H 1
13552 # endif
13553
13554 # ifdef _SC_PAGESIZE
13555 #  define getpagesize() sysconf(_SC_PAGESIZE)
13556 # else /* no _SC_PAGESIZE */
13557 #  if HAVE_SYS_PARAM_H
13558 #   include <sys/param.h>
13559 #   ifdef EXEC_PAGESIZE
13560 #    define getpagesize() EXEC_PAGESIZE
13561 #   else /* no EXEC_PAGESIZE */
13562 #    ifdef NBPG
13563 #     define getpagesize() NBPG * CLSIZE
13564 #     ifndef CLSIZE
13565 #      define CLSIZE 1
13566 #     endif /* no CLSIZE */
13567 #    else /* no NBPG */
13568 #     ifdef NBPC
13569 #      define getpagesize() NBPC
13570 #     else /* no NBPC */
13571 #      ifdef PAGESIZE
13572 #       define getpagesize() PAGESIZE
13573 #      endif /* PAGESIZE */
13574 #     endif /* no NBPC */
13575 #    endif /* no NBPG */
13576 #   endif /* no EXEC_PAGESIZE */
13577 #  else /* no HAVE_SYS_PARAM_H */
13578 #   define getpagesize() 8192   /* punt totally */
13579 #  endif /* no HAVE_SYS_PARAM_H */
13580 # endif /* no _SC_PAGESIZE */
13581
13582 #endif /* no HAVE_GETPAGESIZE */
13583
13584 int
13585 main ()
13586 {
13587   char *data, *data2, *data3;
13588   int i, pagesize;
13589   int fd;
13590
13591   pagesize = getpagesize ();
13592
13593   /* First, make a file with some known garbage in it. */
13594   data = (char *) malloc (pagesize);
13595   if (!data)
13596     exit (1);
13597   for (i = 0; i < pagesize; ++i)
13598     *(data + i) = rand ();
13599   umask (0);
13600   fd = creat ("conftest.mmap", 0600);
13601   if (fd < 0)
13602     exit (1);
13603   if (write (fd, data, pagesize) != pagesize)
13604     exit (1);
13605   close (fd);
13606
13607   /* Next, try to mmap the file at a fixed address which already has
13608      something else allocated at it.  If we can, also make sure that
13609      we see the same garbage.  */
13610   fd = open ("conftest.mmap", O_RDWR);
13611   if (fd < 0)
13612     exit (1);
13613   data2 = (char *) malloc (2 * pagesize);
13614   if (!data2)
13615     exit (1);
13616   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
13617   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13618                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13619     exit (1);
13620   for (i = 0; i < pagesize; ++i)
13621     if (*(data + i) != *(data2 + i))
13622       exit (1);
13623
13624   /* Finally, make sure that changes to the mapped area do not
13625      percolate back to the file as seen by read().  (This is a bug on
13626      some variants of i386 svr4.0.)  */
13627   for (i = 0; i < pagesize; ++i)
13628     *(data2 + i) = *(data2 + i) + 1;
13629   data3 = (char *) malloc (pagesize);
13630   if (!data3)
13631     exit (1);
13632   if (read (fd, data3, pagesize) != pagesize)
13633     exit (1);
13634   for (i = 0; i < pagesize; ++i)
13635     if (*(data + i) != *(data3 + i))
13636       exit (1);
13637   close (fd);
13638   exit (0);
13639 }
13640 _ACEOF
13641 rm -f conftest$ac_exeext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13643   (eval $ac_link) 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648   (eval $ac_try) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); }; }; then
13652   ac_cv_func_mmap_fixed_mapped=yes
13653 else
13654   echo "$as_me: program exited with status $ac_status" >&5
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13657
13658 ( exit $ac_status )
13659 ac_cv_func_mmap_fixed_mapped=no
13660 fi
13661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13662 fi
13663 fi
13664 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13665 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13666 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13667
13668 cat >>confdefs.h <<\_ACEOF
13669 #define HAVE_MMAP 1
13670 _ACEOF
13671
13672 fi
13673 rm -f conftest.mmap
13674
13675
13676     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13677 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
13678 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13679   echo $ECHO_N "(cached) $ECHO_C" >&6
13680 else
13681   cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h.  */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h.  */
13687
13688 #include <features.h>
13689 #ifdef __GNU_LIBRARY__
13690  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13691   Lucky GNU user
13692  #endif
13693 #endif
13694
13695 _ACEOF
13696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13697   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13698   ac_cv_gnu_library_2_1=yes
13699 else
13700   ac_cv_gnu_library_2_1=no
13701 fi
13702 rm -f conftest*
13703
13704
13705
13706 fi
13707 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13708 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
13709
13710     GLIBC21="$ac_cv_gnu_library_2_1"
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13725 stdlib.h string.h unistd.h sys/param.h
13726 do
13727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13729   echo "$as_me:$LINENO: checking for $ac_header" >&5
13730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 fi
13734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13736 else
13737   # Is the header compilable?
13738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h.  */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h.  */
13746 $ac_includes_default
13747 #include <$ac_header>
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751   (eval $ac_compile) 2>conftest.er1
13752   ac_status=$?
13753   grep -v '^ *+' conftest.er1 >conftest.err
13754   rm -f conftest.er1
13755   cat conftest.err >&5
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } &&
13758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760   (eval $ac_try) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; } &&
13764          { ac_try='test -s conftest.$ac_objext'
13765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766   (eval $ac_try) 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; }; then
13770   ac_header_compiler=yes
13771 else
13772   echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 ac_header_compiler=no
13776 fi
13777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13779 echo "${ECHO_T}$ac_header_compiler" >&6
13780
13781 # Is the header present?
13782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h.  */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h.  */
13790 #include <$ac_header>
13791 _ACEOF
13792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13794   ac_status=$?
13795   grep -v '^ *+' conftest.er1 >conftest.err
13796   rm -f conftest.er1
13797   cat conftest.err >&5
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } >/dev/null; then
13800   if test -s conftest.err; then
13801     ac_cpp_err=$ac_c_preproc_warn_flag
13802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13803   else
13804     ac_cpp_err=
13805   fi
13806 else
13807   ac_cpp_err=yes
13808 fi
13809 if test -z "$ac_cpp_err"; then
13810   ac_header_preproc=yes
13811 else
13812   echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13814
13815   ac_header_preproc=no
13816 fi
13817 rm -f conftest.err conftest.$ac_ext
13818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13819 echo "${ECHO_T}$ac_header_preproc" >&6
13820
13821 # So?  What about this header?
13822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13823   yes:no: )
13824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13828     ac_header_preproc=yes
13829     ;;
13830   no:yes:* )
13831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13833     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13834 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13835     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13837     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13838 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13841     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13843     (
13844       cat <<\_ASBOX
13845 ## ------------------------------------------ ##
13846 ## Report this to the AC_PACKAGE_NAME lists.  ##
13847 ## ------------------------------------------ ##
13848 _ASBOX
13849     ) |
13850       sed "s/^/$as_me: WARNING:     /" >&2
13851     ;;
13852 esac
13853 echo "$as_me:$LINENO: checking for $ac_header" >&5
13854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858   eval "$as_ac_Header=\$ac_header_preproc"
13859 fi
13860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13862
13863 fi
13864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13865   cat >>confdefs.h <<_ACEOF
13866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13867 _ACEOF
13868
13869 fi
13870
13871 done
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
13895 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
13896 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
13897 do
13898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13899 echo "$as_me:$LINENO: checking for $ac_func" >&5
13900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13901 if eval "test \"\${$as_ac_var+set}\" = set"; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13912 #define $ac_func innocuous_$ac_func
13913
13914 /* System header to define __stub macros and hopefully few prototypes,
13915     which can conflict with char $ac_func (); below.
13916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13917     <limits.h> exists even on freestanding compilers.  */
13918
13919 #ifdef __STDC__
13920 # include <limits.h>
13921 #else
13922 # include <assert.h>
13923 #endif
13924
13925 #undef $ac_func
13926
13927 /* Override any gcc2 internal prototype to avoid an error.  */
13928 #ifdef __cplusplus
13929 extern "C"
13930 {
13931 #endif
13932 /* We use char because int might match the return type of a gcc2
13933    builtin and then its argument prototype would still apply.  */
13934 char $ac_func ();
13935 /* The GNU C library defines this for functions which it implements
13936     to always fail with ENOSYS.  Some functions are actually named
13937     something starting with __ and the normal name is an alias.  */
13938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13939 choke me
13940 #else
13941 char (*f) () = $ac_func;
13942 #endif
13943 #ifdef __cplusplus
13944 }
13945 #endif
13946
13947 int
13948 main ()
13949 {
13950 return f != $ac_func;
13951   ;
13952   return 0;
13953 }
13954 _ACEOF
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13957   (eval $ac_link) 2>conftest.er1
13958   ac_status=$?
13959   grep -v '^ *+' conftest.er1 >conftest.err
13960   rm -f conftest.er1
13961   cat conftest.err >&5
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } &&
13964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966   (eval $ac_try) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; } &&
13970          { ac_try='test -s conftest$ac_exeext'
13971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972   (eval $ac_try) 2>&5
13973   ac_status=$?
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); }; }; then
13976   eval "$as_ac_var=yes"
13977 else
13978   echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981 eval "$as_ac_var=no"
13982 fi
13983 rm -f conftest.err conftest.$ac_objext \
13984       conftest$ac_exeext conftest.$ac_ext
13985 fi
13986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13988 if test `eval echo '${'$as_ac_var'}'` = yes; then
13989   cat >>confdefs.h <<_ACEOF
13990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13991 _ACEOF
13992
13993 fi
13994 done
13995
13996
13997
13998
13999
14000 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14001 if test "${with_libiconv_prefix+set}" = set; then
14002   withval="$with_libiconv_prefix"
14003
14004     for dir in `echo "$withval" | tr : ' '`; do
14005       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
14006       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
14007     done
14008
14009 fi;
14010
14011   echo "$as_me:$LINENO: checking for iconv" >&5
14012 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14013 if test "${am_cv_func_iconv+set}" = set; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016
14017     am_cv_func_iconv="no, consider installing GNU libiconv"
14018     am_cv_lib_iconv=no
14019     cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025 #include <stdlib.h>
14026 #include <iconv.h>
14027 int
14028 main ()
14029 {
14030 iconv_t cd = iconv_open("","");
14031        iconv(cd,NULL,NULL,NULL,NULL);
14032        iconv_close(cd);
14033   ;
14034   return 0;
14035 }
14036 _ACEOF
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14039   (eval $ac_link) 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } &&
14046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048   (eval $ac_try) 2>&5
14049   ac_status=$?
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); }; } &&
14052          { ac_try='test -s conftest$ac_exeext'
14053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054   (eval $ac_try) 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; }; then
14058   am_cv_func_iconv=yes
14059 else
14060   echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063 fi
14064 rm -f conftest.err conftest.$ac_objext \
14065       conftest$ac_exeext conftest.$ac_ext
14066     if test "$am_cv_func_iconv" != yes; then
14067       am_save_LIBS="$LIBS"
14068       LIBS="$LIBS -liconv"
14069       cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h.  */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h.  */
14075 #include <stdlib.h>
14076 #include <iconv.h>
14077 int
14078 main ()
14079 {
14080 iconv_t cd = iconv_open("","");
14081          iconv(cd,NULL,NULL,NULL,NULL);
14082          iconv_close(cd);
14083   ;
14084   return 0;
14085 }
14086 _ACEOF
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14089   (eval $ac_link) 2>conftest.er1
14090   ac_status=$?
14091   grep -v '^ *+' conftest.er1 >conftest.err
14092   rm -f conftest.er1
14093   cat conftest.err >&5
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098   (eval $ac_try) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; } &&
14102          { ac_try='test -s conftest$ac_exeext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   am_cv_lib_iconv=yes
14109         am_cv_func_iconv=yes
14110 else
14111   echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 fi
14115 rm -f conftest.err conftest.$ac_objext \
14116       conftest$ac_exeext conftest.$ac_ext
14117       LIBS="$am_save_LIBS"
14118     fi
14119
14120 fi
14121 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14122 echo "${ECHO_T}$am_cv_func_iconv" >&6
14123   if test "$am_cv_func_iconv" = yes; then
14124
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_ICONV 1
14127 _ACEOF
14128
14129     echo "$as_me:$LINENO: checking for iconv declaration" >&5
14130 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14131     if test "${am_cv_proto_iconv+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134
14135       cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141
14142 #include <stdlib.h>
14143 #include <iconv.h>
14144 extern
14145 #ifdef __cplusplus
14146 "C"
14147 #endif
14148 #if defined(__STDC__) || defined(__cplusplus)
14149 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14150 #else
14151 size_t iconv();
14152 #endif
14153
14154 int
14155 main ()
14156 {
14157
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164   (eval $ac_compile) 2>conftest.er1
14165   ac_status=$?
14166   grep -v '^ *+' conftest.er1 >conftest.err
14167   rm -f conftest.er1
14168   cat conftest.err >&5
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); } &&
14171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest.$ac_objext'
14178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179   (eval $ac_try) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183   am_cv_proto_iconv_arg1=""
14184 else
14185   echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 am_cv_proto_iconv_arg1="const"
14189 fi
14190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14191       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);"
14192 fi
14193
14194     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14195     echo "$as_me:$LINENO: result: ${ac_t:-
14196          }$am_cv_proto_iconv" >&5
14197 echo "${ECHO_T}${ac_t:-
14198          }$am_cv_proto_iconv" >&6
14199
14200 cat >>confdefs.h <<_ACEOF
14201 #define ICONV_CONST $am_cv_proto_iconv_arg1
14202 _ACEOF
14203
14204   fi
14205   LIBICONV=
14206   if test "$am_cv_lib_iconv" = yes; then
14207     LIBICONV="-liconv"
14208   fi
14209
14210
14211
14212   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14213 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14214 if test "${am_cv_langinfo_codeset+set}" = set; then
14215   echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217   cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h.  */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h.  */
14223 #include <langinfo.h>
14224 int
14225 main ()
14226 {
14227 char* cs = nl_langinfo(CODESET);
14228   ;
14229   return 0;
14230 }
14231 _ACEOF
14232 rm -f conftest.$ac_objext conftest$ac_exeext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14234   (eval $ac_link) 2>conftest.er1
14235   ac_status=$?
14236   grep -v '^ *+' conftest.er1 >conftest.err
14237   rm -f conftest.er1
14238   cat conftest.err >&5
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243   (eval $ac_try) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; } &&
14247          { ac_try='test -s conftest$ac_exeext'
14248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249   (eval $ac_try) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); }; }; then
14253   am_cv_langinfo_codeset=yes
14254 else
14255   echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14257
14258 am_cv_langinfo_codeset=no
14259 fi
14260 rm -f conftest.err conftest.$ac_objext \
14261       conftest$ac_exeext conftest.$ac_ext
14262
14263 fi
14264 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
14265 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
14266   if test $am_cv_langinfo_codeset = yes; then
14267
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_LANGINFO_CODESET 1
14270 _ACEOF
14271
14272   fi
14273
14274    if test $ac_cv_header_locale_h = yes; then
14275     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14276 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
14277 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14278   echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280   cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286 #include <locale.h>
14287 int
14288 main ()
14289 {
14290 return LC_MESSAGES
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14297   (eval $ac_link) 2>conftest.er1
14298   ac_status=$?
14299   grep -v '^ *+' conftest.er1 >conftest.err
14300   rm -f conftest.er1
14301   cat conftest.err >&5
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } &&
14304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; } &&
14310          { ac_try='test -s conftest$ac_exeext'
14311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312   (eval $ac_try) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; }; then
14316   am_cv_val_LC_MESSAGES=yes
14317 else
14318   echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321 am_cv_val_LC_MESSAGES=no
14322 fi
14323 rm -f conftest.err conftest.$ac_objext \
14324       conftest$ac_exeext conftest.$ac_ext
14325 fi
14326 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14327 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
14328     if test $am_cv_val_LC_MESSAGES = yes; then
14329
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_LC_MESSAGES 1
14332 _ACEOF
14333
14334     fi
14335   fi
14336    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14337 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
14338         # Check whether --enable-nls or --disable-nls was given.
14339 if test "${enable_nls+set}" = set; then
14340   enableval="$enable_nls"
14341   USE_NLS=$enableval
14342 else
14343   USE_NLS=yes
14344 fi;
14345     echo "$as_me:$LINENO: result: $USE_NLS" >&5
14346 echo "${ECHO_T}$USE_NLS" >&6
14347
14348
14349     BUILD_INCLUDED_LIBINTL=no
14350     USE_INCLUDED_LIBINTL=no
14351     INTLLIBS=
14352
14353         if test "$USE_NLS" = "yes"; then
14354
14355 cat >>confdefs.h <<\_ACEOF
14356 #define ENABLE_NLS 1
14357 _ACEOF
14358
14359       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
14360 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
14361
14362 # Check whether --with-included-gettext or --without-included-gettext was given.
14363 if test "${with_included_gettext+set}" = set; then
14364   withval="$with_included_gettext"
14365   nls_cv_force_use_gnu_gettext=$withval
14366 else
14367   nls_cv_force_use_gnu_gettext=no
14368 fi;
14369       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
14370 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
14371
14372       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14373       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14374                                 CATOBJEXT=NONE
14375
14376
14377
14378
14379         if test "${ac_cv_header_libintl_h+set}" = set; then
14380   echo "$as_me:$LINENO: checking for libintl.h" >&5
14381 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14382 if test "${ac_cv_header_libintl_h+set}" = set; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 fi
14385 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14386 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14387 else
14388   # Is the header compilable?
14389 echo "$as_me:$LINENO: checking libintl.h usability" >&5
14390 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397 $ac_includes_default
14398 #include <libintl.h>
14399 _ACEOF
14400 rm -f conftest.$ac_objext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402   (eval $ac_compile) 2>conftest.er1
14403   ac_status=$?
14404   grep -v '^ *+' conftest.er1 >conftest.err
14405   rm -f conftest.er1
14406   cat conftest.err >&5
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); } &&
14409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; } &&
14415          { ac_try='test -s conftest.$ac_objext'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   ac_header_compiler=yes
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 ac_header_compiler=no
14427 fi
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14430 echo "${ECHO_T}$ac_header_compiler" >&6
14431
14432 # Is the header present?
14433 echo "$as_me:$LINENO: checking libintl.h presence" >&5
14434 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441 #include <libintl.h>
14442 _ACEOF
14443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14445   ac_status=$?
14446   grep -v '^ *+' conftest.er1 >conftest.err
14447   rm -f conftest.er1
14448   cat conftest.err >&5
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); } >/dev/null; then
14451   if test -s conftest.err; then
14452     ac_cpp_err=$ac_c_preproc_warn_flag
14453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14454   else
14455     ac_cpp_err=
14456   fi
14457 else
14458   ac_cpp_err=yes
14459 fi
14460 if test -z "$ac_cpp_err"; then
14461   ac_header_preproc=yes
14462 else
14463   echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14465
14466   ac_header_preproc=no
14467 fi
14468 rm -f conftest.err conftest.$ac_ext
14469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14470 echo "${ECHO_T}$ac_header_preproc" >&6
14471
14472 # So?  What about this header?
14473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14474   yes:no: )
14475     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14476 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14477     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14478 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14479     ac_header_preproc=yes
14480     ;;
14481   no:yes:* )
14482     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14483 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14484     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
14485 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
14486     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14487 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14488     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
14489 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14490     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14491 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14492     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14493 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14494     (
14495       cat <<\_ASBOX
14496 ## ------------------------------------------ ##
14497 ## Report this to the AC_PACKAGE_NAME lists.  ##
14498 ## ------------------------------------------ ##
14499 _ASBOX
14500     ) |
14501       sed "s/^/$as_me: WARNING:     /" >&2
14502     ;;
14503 esac
14504 echo "$as_me:$LINENO: checking for libintl.h" >&5
14505 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14506 if test "${ac_cv_header_libintl_h+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   ac_cv_header_libintl_h=$ac_header_preproc
14510 fi
14511 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14512 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14513
14514 fi
14515 if test $ac_cv_header_libintl_h = yes; then
14516   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14517 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
14518 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
14519   echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521   cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h.  */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h.  */
14527 #include <libintl.h>
14528 extern int _nl_msg_cat_cntr;
14529 int
14530 main ()
14531 {
14532 bindtextdomain ("", "");
14533 return (int) gettext ("") + _nl_msg_cat_cntr
14534   ;
14535   return 0;
14536 }
14537 _ACEOF
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14540   (eval $ac_link) 2>conftest.er1
14541   ac_status=$?
14542   grep -v '^ *+' conftest.er1 >conftest.err
14543   rm -f conftest.er1
14544   cat conftest.err >&5
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); } &&
14547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; } &&
14553          { ac_try='test -s conftest$ac_exeext'
14554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555   (eval $ac_try) 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }; then
14559   gt_cv_func_gnugettext1_libc=yes
14560 else
14561   echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564 gt_cv_func_gnugettext1_libc=no
14565 fi
14566 rm -f conftest.err conftest.$ac_objext \
14567       conftest$ac_exeext conftest.$ac_ext
14568 fi
14569 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
14570 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
14571
14572            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
14573              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14574 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
14575 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14576   echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578   gt_save_LIBS="$LIBS"
14579                 LIBS="$LIBS -lintl $LIBICONV"
14580                 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586 #include <libintl.h>
14587 extern int _nl_msg_cat_cntr;
14588 int
14589 main ()
14590 {
14591 bindtextdomain ("", "");
14592 return (int) gettext ("") + _nl_msg_cat_cntr
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14599   (eval $ac_link) 2>conftest.er1
14600   ac_status=$?
14601   grep -v '^ *+' conftest.er1 >conftest.err
14602   rm -f conftest.er1
14603   cat conftest.err >&5
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; } &&
14612          { ac_try='test -s conftest$ac_exeext'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; }; then
14618   gt_cv_func_gnugettext1_libintl=yes
14619 else
14620   echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 gt_cv_func_gnugettext1_libintl=no
14624 fi
14625 rm -f conftest.err conftest.$ac_objext \
14626       conftest$ac_exeext conftest.$ac_ext
14627                 LIBS="$gt_save_LIBS"
14628 fi
14629 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14630 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
14631            fi
14632
14633                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14634               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14635                    && test "$PACKAGE" != gettext; }; then
14636
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_GETTEXT 1
14639 _ACEOF
14640
14641
14642              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14643                                        INTLLIBS="-lintl $LIBICONV"
14644              fi
14645
14646              gt_save_LIBS="$LIBS"
14647              LIBS="$LIBS $INTLLIBS"
14648
14649 for ac_func in dcgettext
14650 do
14651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14652 echo "$as_me:$LINENO: checking for $ac_func" >&5
14653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14654 if eval "test \"\${$as_ac_var+set}\" = set"; then
14655   echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657   cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h.  */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h.  */
14663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14665 #define $ac_func innocuous_$ac_func
14666
14667 /* System header to define __stub macros and hopefully few prototypes,
14668     which can conflict with char $ac_func (); below.
14669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14670     <limits.h> exists even on freestanding compilers.  */
14671
14672 #ifdef __STDC__
14673 # include <limits.h>
14674 #else
14675 # include <assert.h>
14676 #endif
14677
14678 #undef $ac_func
14679
14680 /* Override any gcc2 internal prototype to avoid an error.  */
14681 #ifdef __cplusplus
14682 extern "C"
14683 {
14684 #endif
14685 /* We use char because int might match the return type of a gcc2
14686    builtin and then its argument prototype would still apply.  */
14687 char $ac_func ();
14688 /* The GNU C library defines this for functions which it implements
14689     to always fail with ENOSYS.  Some functions are actually named
14690     something starting with __ and the normal name is an alias.  */
14691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14692 choke me
14693 #else
14694 char (*f) () = $ac_func;
14695 #endif
14696 #ifdef __cplusplus
14697 }
14698 #endif
14699
14700 int
14701 main ()
14702 {
14703 return f != $ac_func;
14704   ;
14705   return 0;
14706 }
14707 _ACEOF
14708 rm -f conftest.$ac_objext conftest$ac_exeext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14710   (eval $ac_link) 2>conftest.er1
14711   ac_status=$?
14712   grep -v '^ *+' conftest.er1 >conftest.err
14713   rm -f conftest.er1
14714   cat conftest.err >&5
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); } &&
14717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719   (eval $ac_try) 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; } &&
14723          { ac_try='test -s conftest$ac_exeext'
14724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725   (eval $ac_try) 2>&5
14726   ac_status=$?
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); }; }; then
14729   eval "$as_ac_var=yes"
14730 else
14731   echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734 eval "$as_ac_var=no"
14735 fi
14736 rm -f conftest.err conftest.$ac_objext \
14737       conftest$ac_exeext conftest.$ac_ext
14738 fi
14739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14741 if test `eval echo '${'$as_ac_var'}'` = yes; then
14742   cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14744 _ACEOF
14745
14746 fi
14747 done
14748
14749              LIBS="$gt_save_LIBS"
14750
14751                      # Extract the first word of "msgfmt", so it can be a program name with args.
14752 set dummy msgfmt; ac_word=$2
14753 echo "$as_me:$LINENO: checking for $ac_word" >&5
14754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14755 if test "${ac_cv_path_MSGFMT+set}" = set; then
14756   echo $ECHO_N "(cached) $ECHO_C" >&6
14757 else
14758   case "$MSGFMT" in
14759   /*)
14760   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14761   ;;
14762   *)
14763   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14764   for ac_dir in $PATH; do
14765     test -z "$ac_dir" && ac_dir=.
14766     if test -f $ac_dir/$ac_word; then
14767       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14768         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14769         break
14770       fi
14771     fi
14772   done
14773   IFS="$ac_save_ifs"
14774   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14775   ;;
14776 esac
14777 fi
14778 MSGFMT="$ac_cv_path_MSGFMT"
14779 if test "$MSGFMT" != ":"; then
14780   echo "$as_me:$LINENO: result: $MSGFMT" >&5
14781 echo "${ECHO_T}$MSGFMT" >&6
14782 else
14783   echo "$as_me:$LINENO: result: no" >&5
14784 echo "${ECHO_T}no" >&6
14785 fi
14786
14787              # Extract the first word of "gmsgfmt", so it can be a program name with args.
14788 set dummy gmsgfmt; ac_word=$2
14789 echo "$as_me:$LINENO: checking for $ac_word" >&5
14790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14791 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794   case $GMSGFMT in
14795   [\\/]* | ?:[\\/]*)
14796   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14797   ;;
14798   *)
14799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $PATH
14801 do
14802   IFS=$as_save_IFS
14803   test -z "$as_dir" && as_dir=.
14804   for ac_exec_ext in '' $ac_executable_extensions; do
14805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14806     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14808     break 2
14809   fi
14810 done
14811 done
14812
14813   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14814   ;;
14815 esac
14816 fi
14817 GMSGFMT=$ac_cv_path_GMSGFMT
14818
14819 if test -n "$GMSGFMT"; then
14820   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14821 echo "${ECHO_T}$GMSGFMT" >&6
14822 else
14823   echo "$as_me:$LINENO: result: no" >&5
14824 echo "${ECHO_T}no" >&6
14825 fi
14826
14827
14828                      # Extract the first word of "xgettext", so it can be a program name with args.
14829 set dummy xgettext; ac_word=$2
14830 echo "$as_me:$LINENO: checking for $ac_word" >&5
14831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14832 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14833   echo $ECHO_N "(cached) $ECHO_C" >&6
14834 else
14835   case "$XGETTEXT" in
14836   /*)
14837   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14838   ;;
14839   *)
14840   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14841   for ac_dir in $PATH; do
14842     test -z "$ac_dir" && ac_dir=.
14843     if test -f $ac_dir/$ac_word; then
14844       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
14845         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14846         break
14847       fi
14848     fi
14849   done
14850   IFS="$ac_save_ifs"
14851   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14852   ;;
14853 esac
14854 fi
14855 XGETTEXT="$ac_cv_path_XGETTEXT"
14856 if test "$XGETTEXT" != ":"; then
14857   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14858 echo "${ECHO_T}$XGETTEXT" >&6
14859 else
14860   echo "$as_me:$LINENO: result: no" >&5
14861 echo "${ECHO_T}no" >&6
14862 fi
14863
14864
14865              CATOBJEXT=.gmo
14866            fi
14867
14868 fi
14869
14870
14871
14872         if test "$CATOBJEXT" = "NONE"; then
14873                           nls_cv_use_gnu_gettext=yes
14874         fi
14875       fi
14876
14877       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14878                 INTLOBJS="\$(GETTOBJS)"
14879         # Extract the first word of "msgfmt", so it can be a program name with args.
14880 set dummy msgfmt; ac_word=$2
14881 echo "$as_me:$LINENO: checking for $ac_word" >&5
14882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14883 if test "${ac_cv_path_MSGFMT+set}" = set; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   case "$MSGFMT" in
14887   /*)
14888   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14889   ;;
14890   *)
14891   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14892   for ac_dir in $PATH; do
14893     test -z "$ac_dir" && ac_dir=.
14894     if test -f $ac_dir/$ac_word; then
14895       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14896         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14897         break
14898       fi
14899     fi
14900   done
14901   IFS="$ac_save_ifs"
14902   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14903   ;;
14904 esac
14905 fi
14906 MSGFMT="$ac_cv_path_MSGFMT"
14907 if test "$MSGFMT" != ":"; then
14908   echo "$as_me:$LINENO: result: $MSGFMT" >&5
14909 echo "${ECHO_T}$MSGFMT" >&6
14910 else
14911   echo "$as_me:$LINENO: result: no" >&5
14912 echo "${ECHO_T}no" >&6
14913 fi
14914
14915         # Extract the first word of "gmsgfmt", so it can be a program name with args.
14916 set dummy gmsgfmt; ac_word=$2
14917 echo "$as_me:$LINENO: checking for $ac_word" >&5
14918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14919 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922   case $GMSGFMT in
14923   [\\/]* | ?:[\\/]*)
14924   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14925   ;;
14926   *)
14927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14929 do
14930   IFS=$as_save_IFS
14931   test -z "$as_dir" && as_dir=.
14932   for ac_exec_ext in '' $ac_executable_extensions; do
14933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14934     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14936     break 2
14937   fi
14938 done
14939 done
14940
14941   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14942   ;;
14943 esac
14944 fi
14945 GMSGFMT=$ac_cv_path_GMSGFMT
14946
14947 if test -n "$GMSGFMT"; then
14948   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14949 echo "${ECHO_T}$GMSGFMT" >&6
14950 else
14951   echo "$as_me:$LINENO: result: no" >&5
14952 echo "${ECHO_T}no" >&6
14953 fi
14954
14955         # Extract the first word of "xgettext", so it can be a program name with args.
14956 set dummy xgettext; ac_word=$2
14957 echo "$as_me:$LINENO: checking for $ac_word" >&5
14958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14959 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14960   echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962   case "$XGETTEXT" in
14963   /*)
14964   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14965   ;;
14966   *)
14967   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14968   for ac_dir in $PATH; do
14969     test -z "$ac_dir" && ac_dir=.
14970     if test -f $ac_dir/$ac_word; then
14971       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
14972         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14973         break
14974       fi
14975     fi
14976   done
14977   IFS="$ac_save_ifs"
14978   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14979   ;;
14980 esac
14981 fi
14982 XGETTEXT="$ac_cv_path_XGETTEXT"
14983 if test "$XGETTEXT" != ":"; then
14984   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14985 echo "${ECHO_T}$XGETTEXT" >&6
14986 else
14987   echo "$as_me:$LINENO: result: no" >&5
14988 echo "${ECHO_T}no" >&6
14989 fi
14990
14991
14992         BUILD_INCLUDED_LIBINTL=yes
14993         USE_INCLUDED_LIBINTL=yes
14994         CATOBJEXT=.gmo
14995         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
14996         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14997       fi
14998
14999                   if test "$GMSGFMT" != ":"; then
15000                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
15001           : ;
15002         else
15003           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
15004 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
15005           GMSGFMT=":"
15006         fi
15007       fi
15008
15009                   if test "$XGETTEXT" != ":"; then
15010                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
15011           : ;
15012         else
15013           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15014 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15015           XGETTEXT=":"
15016         fi
15017       fi
15018
15019             POSUB=po
15020     fi
15021               ac_config_commands="$ac_config_commands default-1"
15022
15023
15024
15025             if test "$PACKAGE" = gettext; then
15026       BUILD_INCLUDED_LIBINTL=yes
15027     fi
15028
15029                                             for ac_prog in bison
15030 do
15031   # Extract the first word of "$ac_prog", so it can be a program name with args.
15032 set dummy $ac_prog; ac_word=$2
15033 echo "$as_me:$LINENO: checking for $ac_word" >&5
15034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15035 if test "${ac_cv_prog_INTLBISON+set}" = set; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   if test -n "$INTLBISON"; then
15039   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
15040 else
15041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042 for as_dir in $PATH
15043 do
15044   IFS=$as_save_IFS
15045   test -z "$as_dir" && as_dir=.
15046   for ac_exec_ext in '' $ac_executable_extensions; do
15047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15048     ac_cv_prog_INTLBISON="$ac_prog"
15049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15050     break 2
15051   fi
15052 done
15053 done
15054
15055 fi
15056 fi
15057 INTLBISON=$ac_cv_prog_INTLBISON
15058 if test -n "$INTLBISON"; then
15059   echo "$as_me:$LINENO: result: $INTLBISON" >&5
15060 echo "${ECHO_T}$INTLBISON" >&6
15061 else
15062   echo "$as_me:$LINENO: result: no" >&5
15063 echo "${ECHO_T}no" >&6
15064 fi
15065
15066   test -n "$INTLBISON" && break
15067 done
15068
15069     if test -z "$INTLBISON"; then
15070       ac_verc_fail=yes
15071     else
15072             echo "$as_me:$LINENO: checking version of bison" >&5
15073 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
15074       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
15075       case $ac_prog_version in
15076         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
15077         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
15078            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
15079         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
15080       esac
15081       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
15082 echo "${ECHO_T}$ac_prog_version" >&6
15083     fi
15084     if test $ac_verc_fail = yes; then
15085       INTLBISON=:
15086     fi
15087
15088                 for lang in $ALL_LINGUAS; do
15089       GMOFILES="$GMOFILES $lang.gmo"
15090       POFILES="$POFILES $lang.po"
15091     done
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103         nls_cv_header_intl=
15104     nls_cv_header_libgt=
15105
15106         DATADIRNAME=share
15107
15108
15109         INSTOBJEXT=.mo
15110
15111
15112         GENCAT=gencat
15113
15114
15115
15116    if test "x$CATOBJEXT" != "x"; then
15117      if test "x$ALL_LINGUAS" = "x"; then
15118        LINGUAS=
15119      else
15120        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15121 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
15122        NEW_LINGUAS=
15123        for presentlang in $ALL_LINGUAS; do
15124          useit=no
15125          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
15126            # Use the presentlang catalog if desiredlang is
15127            #   a. equal to presentlang, or
15128            #   b. a variant of presentlang (because in this case,
15129            #      presentlang can be used as a fallback for messages
15130            #      which are not translated in the desiredlang catalog).
15131            case "$desiredlang" in
15132              "$presentlang"*) useit=yes;;
15133            esac
15134          done
15135          if test $useit = yes; then
15136            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15137          fi
15138        done
15139        LINGUAS=$NEW_LINGUAS
15140        echo "$as_me:$LINENO: result: $LINGUAS" >&5
15141 echo "${ECHO_T}$LINGUAS" >&6
15142      fi
15143
15144           if test -n "$LINGUAS"; then
15145        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15146      fi
15147    fi
15148
15149             MKINSTALLDIRS=
15150    if test -n "$ac_aux_dir"; then
15151      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15152    fi
15153    if test -z "$MKINSTALLDIRS"; then
15154      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15155    fi
15156
15157
15158       INTL_LIBTOOL_SUFFIX_PREFIX=
15159
15160
15161
15162 if test "$am_cv_func_iconv" != "yes"
15163 then
15164   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
15165 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
15166 else
15167
15168
15169 for ac_header in iconv.h
15170 do
15171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15173   echo "$as_me:$LINENO: checking for $ac_header" >&5
15174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15176   echo $ECHO_N "(cached) $ECHO_C" >&6
15177 fi
15178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15180 else
15181   # Is the header compilable?
15182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h.  */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h.  */
15190 $ac_includes_default
15191 #include <$ac_header>
15192 _ACEOF
15193 rm -f conftest.$ac_objext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15195   (eval $ac_compile) 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } &&
15202          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204   (eval $ac_try) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); }; } &&
15208          { ac_try='test -s conftest.$ac_objext'
15209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210   (eval $ac_try) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; }; then
15214   ac_header_compiler=yes
15215 else
15216   echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219 ac_header_compiler=no
15220 fi
15221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15223 echo "${ECHO_T}$ac_header_compiler" >&6
15224
15225 # Is the header present?
15226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h.  */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h.  */
15234 #include <$ac_header>
15235 _ACEOF
15236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15238   ac_status=$?
15239   grep -v '^ *+' conftest.er1 >conftest.err
15240   rm -f conftest.er1
15241   cat conftest.err >&5
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } >/dev/null; then
15244   if test -s conftest.err; then
15245     ac_cpp_err=$ac_c_preproc_warn_flag
15246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15247   else
15248     ac_cpp_err=
15249   fi
15250 else
15251   ac_cpp_err=yes
15252 fi
15253 if test -z "$ac_cpp_err"; then
15254   ac_header_preproc=yes
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259   ac_header_preproc=no
15260 fi
15261 rm -f conftest.err conftest.$ac_ext
15262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15263 echo "${ECHO_T}$ac_header_preproc" >&6
15264
15265 # So?  What about this header?
15266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15267   yes:no: )
15268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15272     ac_header_preproc=yes
15273     ;;
15274   no:yes:* )
15275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15287     (
15288       cat <<\_ASBOX
15289 ## ------------------------------------------ ##
15290 ## Report this to the AC_PACKAGE_NAME lists.  ##
15291 ## ------------------------------------------ ##
15292 _ASBOX
15293     ) |
15294       sed "s/^/$as_me: WARNING:     /" >&2
15295     ;;
15296 esac
15297 echo "$as_me:$LINENO: checking for $ac_header" >&5
15298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302   eval "$as_ac_Header=\$ac_header_preproc"
15303 fi
15304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15306
15307 fi
15308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15309   cat >>confdefs.h <<_ACEOF
15310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15311 _ACEOF
15312  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
15313 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
15314          cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320 #include <iconv.h>
15321
15322 _ACEOF
15323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15324   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
15325   echo "$as_me:$LINENO: result: yes" >&5
15326 echo "${ECHO_T}yes" >&6
15327
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_ICONV_T_DEF 1
15330 _ACEOF
15331
15332 else
15333   echo "$as_me:$LINENO: result: no" >&5
15334 echo "${ECHO_T}no" >&6
15335 fi
15336 rm -f conftest*
15337
15338 fi
15339
15340 done
15341
15342
15343 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
15344 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
15345 if test "${mutt_cv_iconv_good+set}" = set; then
15346   echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348   mutt_save_LIBS="$LIBS"
15349         LIBS="$LIBS $LIBICONV"
15350         if test "$cross_compiling" = yes; then
15351   mutt_cv_iconv_good=yes
15352 else
15353   cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h.  */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h.  */
15359
15360 #include <iconv.h>
15361 int main()
15362 {
15363   iconv_t cd;
15364   char buf[4];
15365   char *ob;
15366   size_t obl;
15367   ob = buf, obl = sizeof(buf);
15368   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
15369           (iconv(cd, 0, 0, &ob, &obl) ||
15370            !(ob == buf && obl == sizeof(buf)) ||
15371            iconv_close(cd)));
15372 }
15373
15374 _ACEOF
15375 rm -f conftest$ac_exeext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15377   (eval $ac_link) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; }; then
15386   mutt_cv_iconv_good=yes
15387 else
15388   echo "$as_me: program exited with status $ac_status" >&5
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ( exit $ac_status )
15393 mutt_cv_iconv_good=no
15394 fi
15395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15396 fi
15397         LIBS="$mutt_save_LIBS"
15398 fi
15399 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
15400 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
15401 if test "$mutt_cv_iconv_good" = no; then
15402   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
15403 echo "$as_me: error: Try using libiconv instead" >&2;}
15404    { (exit 1); exit 1; }; }
15405 fi
15406
15407 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
15408 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
15409 if test "${mutt_cv_iconv_nontrans+set}" = set; then
15410   echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412   mutt_save_LIBS="$LIBS"
15413         LIBS="$LIBS $LIBICONV"
15414         if test "$cross_compiling" = yes; then
15415   mutt_cv_iconv_nontrans=no
15416 else
15417   cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423
15424 #include <iconv.h>
15425 #include <string.h>
15426 int main()
15427 {
15428   iconv_t cd;
15429   const char *ib;
15430   char *ob;
15431   size_t ibl, obl;
15432   const char *s = "\304\211";
15433   char t[3];
15434   ib = s, ibl = 2, ob = t, obl = 3;
15435   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
15436           iconv(cd, &ib, &ibl, &ob, &obl));
15437 }
15438
15439 _ACEOF
15440 rm -f conftest$ac_exeext
15441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15442   (eval $ac_link) 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   mutt_cv_iconv_nontrans=no
15452 else
15453   echo "$as_me: program exited with status $ac_status" >&5
15454 echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15456
15457 ( exit $ac_status )
15458 mutt_cv_iconv_nontrans=yes
15459 fi
15460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15461 fi
15462         LIBS="$mutt_save_LIBS"
15463 fi
15464 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
15465 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
15466 if test "$mutt_cv_iconv_nontrans" = yes; then
15467   cat >>confdefs.h <<\_ACEOF
15468 #define ICONV_NONTRANS 1
15469 _ACEOF
15470
15471 else
15472   cat >>confdefs.h <<\_ACEOF
15473 #define ICONV_NONTRANS 0
15474 _ACEOF
15475
15476 fi
15477
15478 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
15479
15480 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
15481
15482 cat >>confdefs.h <<\_ACEOF
15483 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15484 _ACEOF
15485
15486 else
15487
15488 for ac_func in bind_textdomain_codeset
15489 do
15490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15491 echo "$as_me:$LINENO: checking for $ac_func" >&5
15492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15493 if eval "test \"\${$as_ac_var+set}\" = set"; then
15494   echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496   cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h.  */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h.  */
15502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15504 #define $ac_func innocuous_$ac_func
15505
15506 /* System header to define __stub macros and hopefully few prototypes,
15507     which can conflict with char $ac_func (); below.
15508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15509     <limits.h> exists even on freestanding compilers.  */
15510
15511 #ifdef __STDC__
15512 # include <limits.h>
15513 #else
15514 # include <assert.h>
15515 #endif
15516
15517 #undef $ac_func
15518
15519 /* Override any gcc2 internal prototype to avoid an error.  */
15520 #ifdef __cplusplus
15521 extern "C"
15522 {
15523 #endif
15524 /* We use char because int might match the return type of a gcc2
15525    builtin and then its argument prototype would still apply.  */
15526 char $ac_func ();
15527 /* The GNU C library defines this for functions which it implements
15528     to always fail with ENOSYS.  Some functions are actually named
15529     something starting with __ and the normal name is an alias.  */
15530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15531 choke me
15532 #else
15533 char (*f) () = $ac_func;
15534 #endif
15535 #ifdef __cplusplus
15536 }
15537 #endif
15538
15539 int
15540 main ()
15541 {
15542 return f != $ac_func;
15543   ;
15544   return 0;
15545 }
15546 _ACEOF
15547 rm -f conftest.$ac_objext conftest$ac_exeext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549   (eval $ac_link) 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } &&
15556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558   (eval $ac_try) 2>&5
15559   ac_status=$?
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); }; } &&
15562          { ac_try='test -s conftest$ac_exeext'
15563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564   (eval $ac_try) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; }; then
15568   eval "$as_ac_var=yes"
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 eval "$as_ac_var=no"
15574 fi
15575 rm -f conftest.err conftest.$ac_objext \
15576       conftest$ac_exeext conftest.$ac_ext
15577 fi
15578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15580 if test `eval echo '${'$as_ac_var'}'` = yes; then
15581   cat >>confdefs.h <<_ACEOF
15582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15583 _ACEOF
15584
15585 fi
15586 done
15587
15588 fi
15589
15590 fi # libiconv
15591
15592
15593
15594 for ac_header in wchar.h
15595 do
15596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15598   echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15601   echo $ECHO_N "(cached) $ECHO_C" >&6
15602 fi
15603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15605 else
15606   # Is the header compilable?
15607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15609 cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h.  */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h.  */
15615 $ac_includes_default
15616 #include <$ac_header>
15617 _ACEOF
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620   (eval $ac_compile) 2>conftest.er1
15621   ac_status=$?
15622   grep -v '^ *+' conftest.er1 >conftest.err
15623   rm -f conftest.er1
15624   cat conftest.err >&5
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); } &&
15627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; } &&
15633          { ac_try='test -s conftest.$ac_objext'
15634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635   (eval $ac_try) 2>&5
15636   ac_status=$?
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); }; }; then
15639   ac_header_compiler=yes
15640 else
15641   echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ac_header_compiler=no
15645 fi
15646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648 echo "${ECHO_T}$ac_header_compiler" >&6
15649
15650 # Is the header present?
15651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h.  */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h.  */
15659 #include <$ac_header>
15660 _ACEOF
15661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15663   ac_status=$?
15664   grep -v '^ *+' conftest.er1 >conftest.err
15665   rm -f conftest.er1
15666   cat conftest.err >&5
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } >/dev/null; then
15669   if test -s conftest.err; then
15670     ac_cpp_err=$ac_c_preproc_warn_flag
15671     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15672   else
15673     ac_cpp_err=
15674   fi
15675 else
15676   ac_cpp_err=yes
15677 fi
15678 if test -z "$ac_cpp_err"; then
15679   ac_header_preproc=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684   ac_header_preproc=no
15685 fi
15686 rm -f conftest.err conftest.$ac_ext
15687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15688 echo "${ECHO_T}$ac_header_preproc" >&6
15689
15690 # So?  What about this header?
15691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15692   yes:no: )
15693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15697     ac_header_preproc=yes
15698     ;;
15699   no:yes:* )
15700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15712     (
15713       cat <<\_ASBOX
15714 ## ------------------------------------------ ##
15715 ## Report this to the AC_PACKAGE_NAME lists.  ##
15716 ## ------------------------------------------ ##
15717 _ASBOX
15718     ) |
15719       sed "s/^/$as_me: WARNING:     /" >&2
15720     ;;
15721 esac
15722 echo "$as_me:$LINENO: checking for $ac_header" >&5
15723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   eval "$as_ac_Header=\$ac_header_preproc"
15728 fi
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15731
15732 fi
15733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15734   cat >>confdefs.h <<_ACEOF
15735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15736 _ACEOF
15737
15738 fi
15739
15740 done
15741
15742
15743 echo "$as_me:$LINENO: checking for wchar_t" >&5
15744 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15745 if test "${mutt_cv_wchar_t+set}" = set; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h.  */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h.  */
15754
15755 #include <stddef.h>
15756 #include <stdlib.h>
15757 #ifdef HAVE_WCHAR_H
15758 #include <wchar.h>
15759 #endif
15760
15761 int
15762 main ()
15763 {
15764  wchar_t wc; return 0;
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 rm -f conftest.$ac_objext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15771   (eval $ac_compile) 2>conftest.er1
15772   ac_status=$?
15773   grep -v '^ *+' conftest.er1 >conftest.err
15774   rm -f conftest.er1
15775   cat conftest.err >&5
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } &&
15778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; } &&
15784          { ac_try='test -s conftest.$ac_objext'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   mutt_cv_wchar_t=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 mutt_cv_wchar_t=no
15796 fi
15797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15798 fi
15799 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
15800 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
15801
15802 if test "$mutt_cv_wchar_t" = no; then
15803
15804 cat >>confdefs.h <<\_ACEOF
15805 #define wchar_t int
15806 _ACEOF
15807
15808 fi
15809
15810 echo "$as_me:$LINENO: checking for wint_t" >&5
15811 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
15812 if test "${mutt_cv_wint_t+set}" = set; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815   cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821
15822 #include <stddef.h>
15823 #include <stdlib.h>
15824 #ifdef HAVE_WCHAR_H
15825 #include <wchar.h>
15826 #endif
15827
15828 int
15829 main ()
15830 {
15831  wint_t wc; return 0;
15832   ;
15833   return 0;
15834 }
15835 _ACEOF
15836 rm -f conftest.$ac_objext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15838   (eval $ac_compile) 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } &&
15845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; } &&
15851          { ac_try='test -s conftest.$ac_objext'
15852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853   (eval $ac_try) 2>&5
15854   ac_status=$?
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); }; }; then
15857   mutt_cv_wint_t=yes
15858 else
15859   echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15861
15862 mutt_cv_wint_t=no
15863 fi
15864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15865 fi
15866 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
15867 echo "${ECHO_T}$mutt_cv_wint_t" >&6
15868
15869 if test "$mutt_cv_wint_t" = no; then
15870
15871 cat >>confdefs.h <<\_ACEOF
15872 #define wint_t int
15873 _ACEOF
15874
15875 fi
15876
15877
15878 for ac_header in wctype.h
15879 do
15880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15882   echo "$as_me:$LINENO: checking for $ac_header" >&5
15883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15885   echo $ECHO_N "(cached) $ECHO_C" >&6
15886 fi
15887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15889 else
15890   # Is the header compilable?
15891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899 $ac_includes_default
15900 #include <$ac_header>
15901 _ACEOF
15902 rm -f conftest.$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904   (eval $ac_compile) 2>conftest.er1
15905   ac_status=$?
15906   grep -v '^ *+' conftest.er1 >conftest.err
15907   rm -f conftest.er1
15908   cat conftest.err >&5
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); } &&
15911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913   (eval $ac_try) 2>&5
15914   ac_status=$?
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); }; } &&
15917          { ac_try='test -s conftest.$ac_objext'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; }; then
15923   ac_header_compiler=yes
15924 else
15925   echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15927
15928 ac_header_compiler=no
15929 fi
15930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932 echo "${ECHO_T}$ac_header_compiler" >&6
15933
15934 # Is the header present?
15935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943 #include <$ac_header>
15944 _ACEOF
15945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15947   ac_status=$?
15948   grep -v '^ *+' conftest.er1 >conftest.err
15949   rm -f conftest.er1
15950   cat conftest.err >&5
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); } >/dev/null; then
15953   if test -s conftest.err; then
15954     ac_cpp_err=$ac_c_preproc_warn_flag
15955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15956   else
15957     ac_cpp_err=
15958   fi
15959 else
15960   ac_cpp_err=yes
15961 fi
15962 if test -z "$ac_cpp_err"; then
15963   ac_header_preproc=yes
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968   ac_header_preproc=no
15969 fi
15970 rm -f conftest.err conftest.$ac_ext
15971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15972 echo "${ECHO_T}$ac_header_preproc" >&6
15973
15974 # So?  What about this header?
15975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15976   yes:no: )
15977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15981     ac_header_preproc=yes
15982     ;;
15983   no:yes:* )
15984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15996     (
15997       cat <<\_ASBOX
15998 ## ------------------------------------------ ##
15999 ## Report this to the AC_PACKAGE_NAME lists.  ##
16000 ## ------------------------------------------ ##
16001 _ASBOX
16002     ) |
16003       sed "s/^/$as_me: WARNING:     /" >&2
16004     ;;
16005 esac
16006 echo "$as_me:$LINENO: checking for $ac_header" >&5
16007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16009   echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011   eval "$as_ac_Header=\$ac_header_preproc"
16012 fi
16013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16015
16016 fi
16017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16018   cat >>confdefs.h <<_ACEOF
16019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16020 _ACEOF
16021
16022 fi
16023
16024 done
16025
16026
16027
16028
16029
16030 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
16031 do
16032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16033 echo "$as_me:$LINENO: checking for $ac_func" >&5
16034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16035 if eval "test \"\${$as_ac_var+set}\" = set"; then
16036   echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038   cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h.  */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h.  */
16044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16046 #define $ac_func innocuous_$ac_func
16047
16048 /* System header to define __stub macros and hopefully few prototypes,
16049     which can conflict with char $ac_func (); below.
16050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16051     <limits.h> exists even on freestanding compilers.  */
16052
16053 #ifdef __STDC__
16054 # include <limits.h>
16055 #else
16056 # include <assert.h>
16057 #endif
16058
16059 #undef $ac_func
16060
16061 /* Override any gcc2 internal prototype to avoid an error.  */
16062 #ifdef __cplusplus
16063 extern "C"
16064 {
16065 #endif
16066 /* We use char because int might match the return type of a gcc2
16067    builtin and then its argument prototype would still apply.  */
16068 char $ac_func ();
16069 /* The GNU C library defines this for functions which it implements
16070     to always fail with ENOSYS.  Some functions are actually named
16071     something starting with __ and the normal name is an alias.  */
16072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16073 choke me
16074 #else
16075 char (*f) () = $ac_func;
16076 #endif
16077 #ifdef __cplusplus
16078 }
16079 #endif
16080
16081 int
16082 main ()
16083 {
16084 return f != $ac_func;
16085   ;
16086   return 0;
16087 }
16088 _ACEOF
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16091   (eval $ac_link) 2>conftest.er1
16092   ac_status=$?
16093   grep -v '^ *+' conftest.er1 >conftest.err
16094   rm -f conftest.er1
16095   cat conftest.err >&5
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); } &&
16098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100   (eval $ac_try) 2>&5
16101   ac_status=$?
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); }; } &&
16104          { ac_try='test -s conftest$ac_exeext'
16105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106   (eval $ac_try) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; }; then
16110   eval "$as_ac_var=yes"
16111 else
16112   echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16114
16115 eval "$as_ac_var=no"
16116 fi
16117 rm -f conftest.err conftest.$ac_objext \
16118       conftest$ac_exeext conftest.$ac_ext
16119 fi
16120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16122 if test `eval echo '${'$as_ac_var'}'` = yes; then
16123   cat >>confdefs.h <<_ACEOF
16124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16125 _ACEOF
16126
16127 fi
16128 done
16129
16130
16131
16132
16133
16134
16135
16136 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
16137 do
16138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16139 echo "$as_me:$LINENO: checking for $ac_func" >&5
16140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16141 if eval "test \"\${$as_ac_var+set}\" = set"; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144   cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h.  */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h.  */
16150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16152 #define $ac_func innocuous_$ac_func
16153
16154 /* System header to define __stub macros and hopefully few prototypes,
16155     which can conflict with char $ac_func (); below.
16156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16157     <limits.h> exists even on freestanding compilers.  */
16158
16159 #ifdef __STDC__
16160 # include <limits.h>
16161 #else
16162 # include <assert.h>
16163 #endif
16164
16165 #undef $ac_func
16166
16167 /* Override any gcc2 internal prototype to avoid an error.  */
16168 #ifdef __cplusplus
16169 extern "C"
16170 {
16171 #endif
16172 /* We use char because int might match the return type of a gcc2
16173    builtin and then its argument prototype would still apply.  */
16174 char $ac_func ();
16175 /* The GNU C library defines this for functions which it implements
16176     to always fail with ENOSYS.  Some functions are actually named
16177     something starting with __ and the normal name is an alias.  */
16178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16179 choke me
16180 #else
16181 char (*f) () = $ac_func;
16182 #endif
16183 #ifdef __cplusplus
16184 }
16185 #endif
16186
16187 int
16188 main ()
16189 {
16190 return f != $ac_func;
16191   ;
16192   return 0;
16193 }
16194 _ACEOF
16195 rm -f conftest.$ac_objext conftest$ac_exeext
16196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16197   (eval $ac_link) 2>conftest.er1
16198   ac_status=$?
16199   grep -v '^ *+' conftest.er1 >conftest.err
16200   rm -f conftest.er1
16201   cat conftest.err >&5
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); } &&
16204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206   (eval $ac_try) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; } &&
16210          { ac_try='test -s conftest$ac_exeext'
16211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212   (eval $ac_try) 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }; }; then
16216   eval "$as_ac_var=yes"
16217 else
16218   echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16220
16221 eval "$as_ac_var=no"
16222 fi
16223 rm -f conftest.err conftest.$ac_objext \
16224       conftest$ac_exeext conftest.$ac_ext
16225 fi
16226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16228 if test `eval echo '${'$as_ac_var'}'` = yes; then
16229   cat >>confdefs.h <<_ACEOF
16230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16231 _ACEOF
16232
16233 fi
16234 done
16235
16236
16237
16238
16239 for ac_func in iswxdigit towupper towlower
16240 do
16241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16242 echo "$as_me:$LINENO: checking for $ac_func" >&5
16243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16244 if eval "test \"\${$as_ac_var+set}\" = set"; then
16245   echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247   cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16255 #define $ac_func innocuous_$ac_func
16256
16257 /* System header to define __stub macros and hopefully few prototypes,
16258     which can conflict with char $ac_func (); below.
16259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16260     <limits.h> exists even on freestanding compilers.  */
16261
16262 #ifdef __STDC__
16263 # include <limits.h>
16264 #else
16265 # include <assert.h>
16266 #endif
16267
16268 #undef $ac_func
16269
16270 /* Override any gcc2 internal prototype to avoid an error.  */
16271 #ifdef __cplusplus
16272 extern "C"
16273 {
16274 #endif
16275 /* We use char because int might match the return type of a gcc2
16276    builtin and then its argument prototype would still apply.  */
16277 char $ac_func ();
16278 /* The GNU C library defines this for functions which it implements
16279     to always fail with ENOSYS.  Some functions are actually named
16280     something starting with __ and the normal name is an alias.  */
16281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16282 choke me
16283 #else
16284 char (*f) () = $ac_func;
16285 #endif
16286 #ifdef __cplusplus
16287 }
16288 #endif
16289
16290 int
16291 main ()
16292 {
16293 return f != $ac_func;
16294   ;
16295   return 0;
16296 }
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16300   (eval $ac_link) 2>conftest.er1
16301   ac_status=$?
16302   grep -v '^ *+' conftest.er1 >conftest.err
16303   rm -f conftest.er1
16304   cat conftest.err >&5
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); } &&
16307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309   (eval $ac_try) 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; } &&
16313          { ac_try='test -s conftest$ac_exeext'
16314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315   (eval $ac_try) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; }; then
16319   eval "$as_ac_var=yes"
16320 else
16321   echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16323
16324 eval "$as_ac_var=no"
16325 fi
16326 rm -f conftest.err conftest.$ac_objext \
16327       conftest$ac_exeext conftest.$ac_ext
16328 fi
16329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16331 if test `eval echo '${'$as_ac_var'}'` = yes; then
16332   cat >>confdefs.h <<_ACEOF
16333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16334 _ACEOF
16335
16336 fi
16337 done
16338
16339
16340 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16341 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16342 if test "${mutt_cv_mbstate_t+set}" = set; then
16343   echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345   cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h.  */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h.  */
16351
16352 #include <stddef.h>
16353 #include <stdlib.h>
16354 #ifdef HAVE_WCHAR_H
16355 #include <wchar.h>
16356 #endif
16357
16358 int
16359 main ()
16360 {
16361  mbstate_t s; return 0;
16362   ;
16363   return 0;
16364 }
16365 _ACEOF
16366 rm -f conftest.$ac_objext
16367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16368   (eval $ac_compile) 2>conftest.er1
16369   ac_status=$?
16370   grep -v '^ *+' conftest.er1 >conftest.err
16371   rm -f conftest.er1
16372   cat conftest.err >&5
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); } &&
16375          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377   (eval $ac_try) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; } &&
16381          { ac_try='test -s conftest.$ac_objext'
16382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383   (eval $ac_try) 2>&5
16384   ac_status=$?
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); }; }; then
16387   mutt_cv_mbstate_t=yes
16388 else
16389   echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 mutt_cv_mbstate_t=no
16393 fi
16394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16395 fi
16396 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
16397 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
16398
16399 if test "$mutt_cv_mbstate_t" = no; then
16400
16401 cat >>confdefs.h <<\_ACEOF
16402 #define mbstate_t int
16403 _ACEOF
16404
16405 fi
16406
16407 wc_funcs=maybe
16408
16409 # Check whether --with-wc-funcs or --without-wc-funcs was given.
16410 if test "${with_wc_funcs+set}" = set; then
16411   withval="$with_wc_funcs"
16412   wc_funcs=$withval
16413 fi;
16414
16415 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
16416         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
16417 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
16418 if test "${mutt_cv_wc_funcs+set}" = set; then
16419   echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421   mutt_cv_wc_funcs=no
16422                 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428
16429 #define _XOPEN_SOURCE 1
16430 #include <stddef.h>
16431 #include <stdlib.h>
16432 #ifdef HAVE_WCTYPE_H
16433 #include <wctype.h>
16434 #endif
16435 #ifdef HAVE_WCHAR_H
16436 #include <wchar.h>
16437 #endif
16438 int
16439 main ()
16440 {
16441 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
16442         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16449   (eval $ac_link) 2>conftest.er1
16450   ac_status=$?
16451   grep -v '^ *+' conftest.er1 >conftest.err
16452   rm -f conftest.er1
16453   cat conftest.err >&5
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); } &&
16456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458   (eval $ac_try) 2>&5
16459   ac_status=$?
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); }; } &&
16462          { ac_try='test -s conftest$ac_exeext'
16463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464   (eval $ac_try) 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); }; }; then
16468   mutt_cv_wc_funcs=yes
16469 else
16470   echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16472
16473 fi
16474 rm -f conftest.err conftest.$ac_objext \
16475       conftest$ac_exeext conftest.$ac_ext
16476 fi
16477 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
16478 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
16479         wc_funcs=$mutt_cv_wc_funcs
16480 fi
16481
16482 if test $wc_funcs = yes; then
16483
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_WC_FUNCS 1
16486 _ACEOF
16487
16488 fi
16489
16490 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16491 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16492 if test "${mutt_cv_langinfo_codeset+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h.  */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h.  */
16501 #include <langinfo.h>
16502 int
16503 main ()
16504 {
16505 char* cs = nl_langinfo(CODESET);
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512   (eval $ac_link) 2>conftest.er1
16513   ac_status=$?
16514   grep -v '^ *+' conftest.er1 >conftest.err
16515   rm -f conftest.er1
16516   cat conftest.err >&5
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); } &&
16519          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521   (eval $ac_try) 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; } &&
16525          { ac_try='test -s conftest$ac_exeext'
16526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527   (eval $ac_try) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531   mutt_cv_langinfo_codeset=yes
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536 mutt_cv_langinfo_codeset=no
16537 fi
16538 rm -f conftest.err conftest.$ac_objext \
16539       conftest$ac_exeext conftest.$ac_ext
16540 fi
16541 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
16542 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
16543 if test $mutt_cv_langinfo_codeset = yes; then
16544
16545 cat >>confdefs.h <<\_ACEOF
16546 #define HAVE_LANGINFO_CODESET 1
16547 _ACEOF
16548
16549 fi
16550
16551 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
16552 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
16553 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
16554   echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556   cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h.  */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h.  */
16562 #include <langinfo.h>
16563 int
16564 main ()
16565 {
16566 char* cs = nl_langinfo(YESEXPR);
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573   (eval $ac_link) 2>conftest.er1
16574   ac_status=$?
16575   grep -v '^ *+' conftest.er1 >conftest.err
16576   rm -f conftest.er1
16577   cat conftest.err >&5
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } &&
16580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; } &&
16586          { ac_try='test -s conftest$ac_exeext'
16587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588   (eval $ac_try) 2>&5
16589   ac_status=$?
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); }; }; then
16592   mutt_cv_langinfo_yesexpr=yes
16593 else
16594   echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16596
16597 mutt_cv_langinfo_yesexpr=no
16598 fi
16599 rm -f conftest.err conftest.$ac_objext \
16600       conftest$ac_exeext conftest.$ac_ext
16601 fi
16602 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
16603 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
16604 if test $mutt_cv_langinfo_yesexpr = yes; then
16605
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_LANGINFO_YESEXPR 1
16608 _ACEOF
16609
16610 fi
16611
16612
16613
16614 # Check whether --with-libesmtp or --without-libesmtp was given.
16615 if test "${with_libesmtp+set}" = set; then
16616   withval="$with_libesmtp"
16617    if test "$with_libesmtp" != "no"
16618       then
16619         mutt_libesmtp_check_path="$PATH"
16620
16621         if test "$with_libesmtp" != "yes"
16622         then
16623           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
16624         fi
16625
16626                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
16627 set dummy libesmtp-config; ac_word=$2
16628 echo "$as_me:$LINENO: checking for $ac_word" >&5
16629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16630 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
16631   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633   case $mutt_libesmtp_config_path in
16634   [\\/]* | ?:[\\/]*)
16635   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
16636   ;;
16637   *)
16638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16639 for as_dir in $mutt_libesmtp_check_path
16640 do
16641   IFS=$as_save_IFS
16642   test -z "$as_dir" && as_dir=.
16643   for ac_exec_ext in '' $ac_executable_extensions; do
16644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16645     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
16646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16647     break 2
16648   fi
16649 done
16650 done
16651
16652   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
16653   ;;
16654 esac
16655 fi
16656 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
16657
16658 if test -n "$mutt_libesmtp_config_path"; then
16659   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
16660 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
16661 else
16662   echo "$as_me:$LINENO: result: no" >&5
16663 echo "${ECHO_T}no" >&6
16664 fi
16665
16666
16667         if test "$mutt_libesmtp_config_path" = "no"
16668         then
16669           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
16670 echo "$as_me: error: libesmtp-config binary not found." >&2;}
16671    { (exit 1); exit 1; }; }
16672         fi
16673
16674                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
16675         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
16676
16677                 temp_CFLAGS="$CFLAGS"
16678         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16679         if test "${ac_cv_header_libesmtp_h+set}" = set; then
16680   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16681 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16682 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 fi
16685 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16686 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16687 else
16688   # Is the header compilable?
16689 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
16690 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 $ac_includes_default
16698 #include <libesmtp.h>
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702   (eval $ac_compile) 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; } &&
16715          { ac_try='test -s conftest.$ac_objext'
16716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717   (eval $ac_try) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; }; then
16721   ac_header_compiler=yes
16722 else
16723   echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16725
16726 ac_header_compiler=no
16727 fi
16728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730 echo "${ECHO_T}$ac_header_compiler" >&6
16731
16732 # Is the header present?
16733 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
16734 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <libesmtp.h>
16742 _ACEOF
16743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16745   ac_status=$?
16746   grep -v '^ *+' conftest.er1 >conftest.err
16747   rm -f conftest.er1
16748   cat conftest.err >&5
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); } >/dev/null; then
16751   if test -s conftest.err; then
16752     ac_cpp_err=$ac_c_preproc_warn_flag
16753     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16754   else
16755     ac_cpp_err=
16756   fi
16757 else
16758   ac_cpp_err=yes
16759 fi
16760 if test -z "$ac_cpp_err"; then
16761   ac_header_preproc=yes
16762 else
16763   echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16765
16766   ac_header_preproc=no
16767 fi
16768 rm -f conftest.err conftest.$ac_ext
16769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16770 echo "${ECHO_T}$ac_header_preproc" >&6
16771
16772 # So?  What about this header?
16773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16774   yes:no: )
16775     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
16776 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16777     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the compiler's result" >&5
16778 echo "$as_me: WARNING: libesmtp.h: proceeding with the compiler's result" >&2;}
16779     ac_header_preproc=yes
16780     ;;
16781   no:yes:* )
16782     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
16783 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
16784     { echo "$as_me:$LINENO: WARNING: libesmtp.h:     check for missing prerequisite headers?" >&5
16785 echo "$as_me: WARNING: libesmtp.h:     check for missing prerequisite headers?" >&2;}
16786     { echo "$as_me:$LINENO: WARNING: libesmtp.h: see the Autoconf documentation" >&5
16787 echo "$as_me: WARNING: libesmtp.h: see the Autoconf documentation" >&2;}
16788     { echo "$as_me:$LINENO: WARNING: libesmtp.h:     section \"Present But Cannot Be Compiled\"" >&5
16789 echo "$as_me: WARNING: libesmtp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16790     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16791 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16792     { echo "$as_me:$LINENO: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&5
16793 echo "$as_me: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&2;}
16794     (
16795       cat <<\_ASBOX
16796 ## ------------------------------------------ ##
16797 ## Report this to the AC_PACKAGE_NAME lists.  ##
16798 ## ------------------------------------------ ##
16799 _ASBOX
16800     ) |
16801       sed "s/^/$as_me: WARNING:     /" >&2
16802     ;;
16803 esac
16804 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16805 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16806 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16807   echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809   ac_cv_header_libesmtp_h=$ac_header_preproc
16810 fi
16811 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16812 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16813
16814 fi
16815 if test $ac_cv_header_libesmtp_h = yes; then
16816   :
16817 else
16818   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
16819 echo "$as_me: error: Could not find libesmtp.h" >&2;}
16820    { (exit 1); exit 1; }; }
16821 fi
16822
16823
16824         CFLAGS="$temp_CFLAGS"
16825
16826                 temp_CFLAGS="$CFLAGS"
16827         temp_LIBS="$LIBS"
16828         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16829         LIBS="$LIBS $mutt_libesmtp_libs"
16830
16831 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
16832 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
16833 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836   ac_check_lib_save_LIBS=$LIBS
16837 LIBS="-lesmtp  $LIBS"
16838 cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h.  */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h.  */
16844
16845 /* Override any gcc2 internal prototype to avoid an error.  */
16846 #ifdef __cplusplus
16847 extern "C"
16848 #endif
16849 /* We use char because int might match the return type of a gcc2
16850    builtin and then its argument prototype would still apply.  */
16851 char smtp_create_session ();
16852 int
16853 main ()
16854 {
16855 smtp_create_session ();
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862   (eval $ac_link) 2>conftest.er1
16863   ac_status=$?
16864   grep -v '^ *+' conftest.er1 >conftest.err
16865   rm -f conftest.er1
16866   cat conftest.err >&5
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); } &&
16869          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871   (eval $ac_try) 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; } &&
16875          { ac_try='test -s conftest$ac_exeext'
16876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877   (eval $ac_try) 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); }; }; then
16881   ac_cv_lib_esmtp_smtp_create_session=yes
16882 else
16883   echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16885
16886 ac_cv_lib_esmtp_smtp_create_session=no
16887 fi
16888 rm -f conftest.err conftest.$ac_objext \
16889       conftest$ac_exeext conftest.$ac_ext
16890 LIBS=$ac_check_lib_save_LIBS
16891 fi
16892 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
16893 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
16894 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
16895   cat >>confdefs.h <<_ACEOF
16896 #define HAVE_LIBESMTP 1
16897 _ACEOF
16898
16899   LIBS="-lesmtp $LIBS"
16900
16901 else
16902   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
16903 echo "$as_me: error: Could not find libesmtp" >&2;}
16904    { (exit 1); exit 1; }; }
16905 fi
16906
16907         CFLAGS="$temp_CFLAGS"
16908         LIBS="$temp_LIBS"
16909
16910                         use_libesmtp=yes
16911       fi
16912
16913
16914 fi;
16915
16916 if test x$use_libesmtp = xyes; then
16917     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16918     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
16919     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
16920
16921
16922 cat >>confdefs.h <<\_ACEOF
16923 #define USE_LIBESMTP 1
16924 _ACEOF
16925
16926 fi
16927
16928                                                                                                     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"
16929 cat >confcache <<\_ACEOF
16930 # This file is a shell script that caches the results of configure
16931 # tests run on this system so they can be shared between configure
16932 # scripts and configure runs, see configure's option --config-cache.
16933 # It is not useful on other systems.  If it contains results you don't
16934 # want to keep, you may remove or edit it.
16935 #
16936 # config.status only pays attention to the cache file if you give it
16937 # the --recheck option to rerun configure.
16938 #
16939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16941 # following values.
16942
16943 _ACEOF
16944
16945 # The following way of writing the cache mishandles newlines in values,
16946 # but we know of no workaround that is simple, portable, and efficient.
16947 # So, don't put newlines in cache variables' values.
16948 # Ultrix sh set writes to stderr and can't be redirected directly,
16949 # and sets the high bit in the cache file unless we assign to the vars.
16950 {
16951   (set) 2>&1 |
16952     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16953     *ac_space=\ *)
16954       # `set' does not quote correctly, so add quotes (double-quote
16955       # substitution turns \\\\ into \\, and sed turns \\ into \).
16956       sed -n \
16957         "s/'/'\\\\''/g;
16958           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16959       ;;
16960     *)
16961       # `set' quotes correctly as required by POSIX, so do not add quotes.
16962       sed -n \
16963         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16964       ;;
16965     esac;
16966 } |
16967   sed '
16968      t clear
16969      : clear
16970      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16971      t end
16972      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16973      : end' >>confcache
16974 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16975   if test -w $cache_file; then
16976     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16977     cat confcache >$cache_file
16978   else
16979     echo "not updating unwritable cache $cache_file"
16980   fi
16981 fi
16982 rm -f confcache
16983
16984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16985 # Let make expand exec_prefix.
16986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16987
16988 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16989 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16990 # trailing colons and then remove the whole line if VPATH becomes empty
16991 # (actually we leave an empty line to preserve line numbers).
16992 if test "x$srcdir" = x.; then
16993   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16994 s/:*\$(srcdir):*/:/;
16995 s/:*\${srcdir}:*/:/;
16996 s/:*@srcdir@:*/:/;
16997 s/^\([^=]*=[     ]*\):*/\1/;
16998 s/:*$//;
16999 s/^[^=]*=[       ]*$//;
17000 }'
17001 fi
17002
17003 DEFS=-DHAVE_CONFIG_H
17004
17005 ac_libobjs=
17006 ac_ltlibobjs=
17007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17008   # 1. Remove the extension, and $U if already installed.
17009   ac_i=`echo "$ac_i" |
17010          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17011   # 2. Add them.
17012   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17013   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17014 done
17015 LIBOBJS=$ac_libobjs
17016
17017 LTLIBOBJS=$ac_ltlibobjs
17018
17019
17020 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17021   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17022 Usually this means the macro was only invoked conditionally." >&5
17023 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17024 Usually this means the macro was only invoked conditionally." >&2;}
17025    { (exit 1); exit 1; }; }
17026 fi
17027 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17028   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17029 Usually this means the macro was only invoked conditionally." >&5
17030 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17031 Usually this means the macro was only invoked conditionally." >&2;}
17032    { (exit 1); exit 1; }; }
17033 fi
17034 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
17035   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
17036 Usually this means the macro was only invoked conditionally." >&5
17037 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
17038 Usually this means the macro was only invoked conditionally." >&2;}
17039    { (exit 1); exit 1; }; }
17040 fi
17041 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
17042   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
17043 Usually this means the macro was only invoked conditionally." >&5
17044 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
17045 Usually this means the macro was only invoked conditionally." >&2;}
17046    { (exit 1); exit 1; }; }
17047 fi
17048 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
17049   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
17050 Usually this means the macro was only invoked conditionally." >&5
17051 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
17052 Usually this means the macro was only invoked conditionally." >&2;}
17053    { (exit 1); exit 1; }; }
17054 fi
17055 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
17056   { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
17057 Usually this means the macro was only invoked conditionally." >&5
17058 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
17059 Usually this means the macro was only invoked conditionally." >&2;}
17060    { (exit 1); exit 1; }; }
17061 fi
17062 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
17063   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
17064 Usually this means the macro was only invoked conditionally." >&5
17065 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
17066 Usually this means the macro was only invoked conditionally." >&2;}
17067    { (exit 1); exit 1; }; }
17068 fi
17069 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
17070   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
17071 Usually this means the macro was only invoked conditionally." >&5
17072 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
17073 Usually this means the macro was only invoked conditionally." >&2;}
17074    { (exit 1); exit 1; }; }
17075 fi
17076
17077 : ${CONFIG_STATUS=./config.status}
17078 ac_clean_files_save=$ac_clean_files
17079 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17080 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17081 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17082 cat >$CONFIG_STATUS <<_ACEOF
17083 #! $SHELL
17084 # Generated by $as_me.
17085 # Run this file to recreate the current configuration.
17086 # Compiler output produced by configure, useful for debugging
17087 # configure, is in config.log if it exists.
17088
17089 debug=false
17090 ac_cs_recheck=false
17091 ac_cs_silent=false
17092 SHELL=\${CONFIG_SHELL-$SHELL}
17093 _ACEOF
17094
17095 cat >>$CONFIG_STATUS <<\_ACEOF
17096 ## --------------------- ##
17097 ## M4sh Initialization.  ##
17098 ## --------------------- ##
17099
17100 # Be Bourne compatible
17101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17102   emulate sh
17103   NULLCMD=:
17104   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17105   # is contrary to our usage.  Disable this feature.
17106   alias -g '${1+"$@"}'='"$@"'
17107 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17108   set -o posix
17109 fi
17110 DUALCASE=1; export DUALCASE # for MKS sh
17111
17112 # Support unset when possible.
17113 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17114   as_unset=unset
17115 else
17116   as_unset=false
17117 fi
17118
17119
17120 # Work around bugs in pre-3.0 UWIN ksh.
17121 $as_unset ENV MAIL MAILPATH
17122 PS1='$ '
17123 PS2='> '
17124 PS4='+ '
17125
17126 # NLS nuisances.
17127 for as_var in \
17128   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17129   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17130   LC_TELEPHONE LC_TIME
17131 do
17132   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17133     eval $as_var=C; export $as_var
17134   else
17135     $as_unset $as_var
17136   fi
17137 done
17138
17139 # Required to use basename.
17140 if expr a : '\(a\)' >/dev/null 2>&1; then
17141   as_expr=expr
17142 else
17143   as_expr=false
17144 fi
17145
17146 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17147   as_basename=basename
17148 else
17149   as_basename=false
17150 fi
17151
17152
17153 # Name of the executable.
17154 as_me=`$as_basename "$0" ||
17155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17156          X"$0" : 'X\(//\)$' \| \
17157          X"$0" : 'X\(/\)$' \| \
17158          .     : '\(.\)' 2>/dev/null ||
17159 echo X/"$0" |
17160     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17161           /^X\/\(\/\/\)$/{ s//\1/; q; }
17162           /^X\/\(\/\).*/{ s//\1/; q; }
17163           s/.*/./; q'`
17164
17165
17166 # PATH needs CR, and LINENO needs CR and PATH.
17167 # Avoid depending upon Character Ranges.
17168 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17169 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17170 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17171 as_cr_digits='0123456789'
17172 as_cr_alnum=$as_cr_Letters$as_cr_digits
17173
17174 # The user is always right.
17175 if test "${PATH_SEPARATOR+set}" != set; then
17176   echo "#! /bin/sh" >conf$$.sh
17177   echo  "exit 0"   >>conf$$.sh
17178   chmod +x conf$$.sh
17179   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17180     PATH_SEPARATOR=';'
17181   else
17182     PATH_SEPARATOR=:
17183   fi
17184   rm -f conf$$.sh
17185 fi
17186
17187
17188   as_lineno_1=$LINENO
17189   as_lineno_2=$LINENO
17190   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17191   test "x$as_lineno_1" != "x$as_lineno_2" &&
17192   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17193   # Find who we are.  Look in the path if we contain no path at all
17194   # relative or not.
17195   case $0 in
17196     *[\\/]* ) as_myself=$0 ;;
17197     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198 for as_dir in $PATH
17199 do
17200   IFS=$as_save_IFS
17201   test -z "$as_dir" && as_dir=.
17202   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17203 done
17204
17205        ;;
17206   esac
17207   # We did not find ourselves, most probably we were run as `sh COMMAND'
17208   # in which case we are not to be found in the path.
17209   if test "x$as_myself" = x; then
17210     as_myself=$0
17211   fi
17212   if test ! -f "$as_myself"; then
17213     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17214 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17215    { (exit 1); exit 1; }; }
17216   fi
17217   case $CONFIG_SHELL in
17218   '')
17219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17221 do
17222   IFS=$as_save_IFS
17223   test -z "$as_dir" && as_dir=.
17224   for as_base in sh bash ksh sh5; do
17225          case $as_dir in
17226          /*)
17227            if ("$as_dir/$as_base" -c '
17228   as_lineno_1=$LINENO
17229   as_lineno_2=$LINENO
17230   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17231   test "x$as_lineno_1" != "x$as_lineno_2" &&
17232   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17233              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17234              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17235              CONFIG_SHELL=$as_dir/$as_base
17236              export CONFIG_SHELL
17237              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17238            fi;;
17239          esac
17240        done
17241 done
17242 ;;
17243   esac
17244
17245   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17246   # uniformly replaced by the line number.  The first 'sed' inserts a
17247   # line-number line before each line; the second 'sed' does the real
17248   # work.  The second script uses 'N' to pair each line-number line
17249   # with the numbered line, and appends trailing '-' during
17250   # substitution so that $LINENO is not a special case at line end.
17251   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17252   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17253   sed '=' <$as_myself |
17254     sed '
17255       N
17256       s,$,-,
17257       : loop
17258       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17259       t loop
17260       s,-$,,
17261       s,^['$as_cr_digits']*\n,,
17262     ' >$as_me.lineno &&
17263   chmod +x $as_me.lineno ||
17264     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17265 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17266    { (exit 1); exit 1; }; }
17267
17268   # Don't try to exec as it changes $[0], causing all sort of problems
17269   # (the dirname of $[0] is not the place where we might find the
17270   # original and so on.  Autoconf is especially sensible to this).
17271   . ./$as_me.lineno
17272   # Exit status is that of the last command.
17273   exit
17274 }
17275
17276
17277 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17278   *c*,-n*) ECHO_N= ECHO_C='
17279 ' ECHO_T='      ' ;;
17280   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17281   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17282 esac
17283
17284 if expr a : '\(a\)' >/dev/null 2>&1; then
17285   as_expr=expr
17286 else
17287   as_expr=false
17288 fi
17289
17290 rm -f conf$$ conf$$.exe conf$$.file
17291 echo >conf$$.file
17292 if ln -s conf$$.file conf$$ 2>/dev/null; then
17293   # We could just check for DJGPP; but this test a) works b) is more generic
17294   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17295   if test -f conf$$.exe; then
17296     # Don't use ln at all; we don't have any links
17297     as_ln_s='cp -p'
17298   else
17299     as_ln_s='ln -s'
17300   fi
17301 elif ln conf$$.file conf$$ 2>/dev/null; then
17302   as_ln_s=ln
17303 else
17304   as_ln_s='cp -p'
17305 fi
17306 rm -f conf$$ conf$$.exe conf$$.file
17307
17308 if mkdir -p . 2>/dev/null; then
17309   as_mkdir_p=:
17310 else
17311   test -d ./-p && rmdir ./-p
17312   as_mkdir_p=false
17313 fi
17314
17315 as_executable_p="test -f"
17316
17317 # Sed expression to map a string onto a valid CPP name.
17318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17319
17320 # Sed expression to map a string onto a valid variable name.
17321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17322
17323
17324 # IFS
17325 # We need space, tab and new line, in precisely that order.
17326 as_nl='
17327 '
17328 IFS="   $as_nl"
17329
17330 # CDPATH.
17331 $as_unset CDPATH
17332
17333 exec 6>&1
17334
17335 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17336 # report actual input values of CONFIG_FILES etc. instead of their
17337 # values after options handling.  Logging --version etc. is OK.
17338 exec 5>>config.log
17339 {
17340   echo
17341   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17342 ## Running $as_me. ##
17343 _ASBOX
17344 } >&5
17345 cat >&5 <<_CSEOF
17346
17347 This file was extended by $as_me, which was
17348 generated by GNU Autoconf 2.59.  Invocation command line was
17349
17350   CONFIG_FILES    = $CONFIG_FILES
17351   CONFIG_HEADERS  = $CONFIG_HEADERS
17352   CONFIG_LINKS    = $CONFIG_LINKS
17353   CONFIG_COMMANDS = $CONFIG_COMMANDS
17354   $ $0 $@
17355
17356 _CSEOF
17357 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17358 echo >&5
17359 _ACEOF
17360
17361 # Files that config.status was made for.
17362 if test -n "$ac_config_files"; then
17363   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17364 fi
17365
17366 if test -n "$ac_config_headers"; then
17367   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17368 fi
17369
17370 if test -n "$ac_config_links"; then
17371   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17372 fi
17373
17374 if test -n "$ac_config_commands"; then
17375   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17376 fi
17377
17378 cat >>$CONFIG_STATUS <<\_ACEOF
17379
17380 ac_cs_usage="\
17381 \`$as_me' instantiates files from templates according to the
17382 current configuration.
17383
17384 Usage: $0 [OPTIONS] [FILE]...
17385
17386   -h, --help       print this help, then exit
17387   -V, --version    print version number, then exit
17388   -q, --quiet      do not print progress messages
17389   -d, --debug      don't remove temporary files
17390       --recheck    update $as_me by reconfiguring in the same conditions
17391   --file=FILE[:TEMPLATE]
17392                    instantiate the configuration file FILE
17393   --header=FILE[:TEMPLATE]
17394                    instantiate the configuration header FILE
17395
17396 Configuration files:
17397 $config_files
17398
17399 Configuration headers:
17400 $config_headers
17401
17402 Configuration commands:
17403 $config_commands
17404
17405 Report bugs to <bug-autoconf@gnu.org>."
17406 _ACEOF
17407
17408 cat >>$CONFIG_STATUS <<_ACEOF
17409 ac_cs_version="\\
17410 config.status
17411 configured by $0, generated by GNU Autoconf 2.59,
17412   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17413
17414 Copyright (C) 2003 Free Software Foundation, Inc.
17415 This config.status script is free software; the Free Software Foundation
17416 gives unlimited permission to copy, distribute and modify it."
17417 srcdir=$srcdir
17418 INSTALL="$INSTALL"
17419 _ACEOF
17420
17421 cat >>$CONFIG_STATUS <<\_ACEOF
17422 # If no file are specified by the user, then we need to provide default
17423 # value.  By we need to know if files were specified by the user.
17424 ac_need_defaults=:
17425 while test $# != 0
17426 do
17427   case $1 in
17428   --*=*)
17429     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17430     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17431     ac_shift=:
17432     ;;
17433   -*)
17434     ac_option=$1
17435     ac_optarg=$2
17436     ac_shift=shift
17437     ;;
17438   *) # This is not an option, so the user has probably given explicit
17439      # arguments.
17440      ac_option=$1
17441      ac_need_defaults=false;;
17442   esac
17443
17444   case $ac_option in
17445   # Handling of the options.
17446 _ACEOF
17447 cat >>$CONFIG_STATUS <<\_ACEOF
17448   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17449     ac_cs_recheck=: ;;
17450   --version | --vers* | -V )
17451     echo "$ac_cs_version"; exit 0 ;;
17452   --he | --h)
17453     # Conflict between --help and --header
17454     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17455 Try \`$0 --help' for more information." >&5
17456 echo "$as_me: error: ambiguous option: $1
17457 Try \`$0 --help' for more information." >&2;}
17458    { (exit 1); exit 1; }; };;
17459   --help | --hel | -h )
17460     echo "$ac_cs_usage"; exit 0 ;;
17461   --debug | --d* | -d )
17462     debug=: ;;
17463   --file | --fil | --fi | --f )
17464     $ac_shift
17465     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17466     ac_need_defaults=false;;
17467   --header | --heade | --head | --hea )
17468     $ac_shift
17469     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17470     ac_need_defaults=false;;
17471   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17472   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17473     ac_cs_silent=: ;;
17474
17475   # This is an error.
17476   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17477 Try \`$0 --help' for more information." >&5
17478 echo "$as_me: error: unrecognized option: $1
17479 Try \`$0 --help' for more information." >&2;}
17480    { (exit 1); exit 1; }; } ;;
17481
17482   *) ac_config_targets="$ac_config_targets $1" ;;
17483
17484   esac
17485   shift
17486 done
17487
17488 ac_configure_extra_args=
17489
17490 if $ac_cs_silent; then
17491   exec 6>/dev/null
17492   ac_configure_extra_args="$ac_configure_extra_args --silent"
17493 fi
17494
17495 _ACEOF
17496 cat >>$CONFIG_STATUS <<_ACEOF
17497 if \$ac_cs_recheck; then
17498   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17499   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17500 fi
17501
17502 _ACEOF
17503
17504 cat >>$CONFIG_STATUS <<_ACEOF
17505 #
17506 # INIT-COMMANDS section.
17507 #
17508
17509 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17510
17511
17512 _ACEOF
17513
17514
17515
17516 cat >>$CONFIG_STATUS <<\_ACEOF
17517 for ac_config_target in $ac_config_targets
17518 do
17519   case "$ac_config_target" in
17520   # Handling of arguments.
17521   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17522   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17523   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17524   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17525   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17526   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17527   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
17528   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
17529   "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
17530   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
17531   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17532   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17533   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17534   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17535 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17536    { (exit 1); exit 1; }; };;
17537   esac
17538 done
17539
17540 # If the user did not use the arguments to specify the items to instantiate,
17541 # then the envvar interface is used.  Set only those that are not.
17542 # We use the long form for the default assignment because of an extremely
17543 # bizarre bug on SunOS 4.1.3.
17544 if $ac_need_defaults; then
17545   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17546   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17547   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17548 fi
17549
17550 # Have a temporary directory for convenience.  Make it in the build tree
17551 # simply because there is no reason to put it here, and in addition,
17552 # creating and moving files from /tmp can sometimes cause problems.
17553 # Create a temporary directory, and hook for its removal unless debugging.
17554 $debug ||
17555 {
17556   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17557   trap '{ (exit 1); exit 1; }' 1 2 13 15
17558 }
17559
17560 # Create a (secure) tmp directory for tmp files.
17561
17562 {
17563   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17564   test -n "$tmp" && test -d "$tmp"
17565 }  ||
17566 {
17567   tmp=./confstat$$-$RANDOM
17568   (umask 077 && mkdir $tmp)
17569 } ||
17570 {
17571    echo "$me: cannot create a temporary directory in ." >&2
17572    { (exit 1); exit 1; }
17573 }
17574
17575 _ACEOF
17576
17577 cat >>$CONFIG_STATUS <<_ACEOF
17578
17579 #
17580 # CONFIG_FILES section.
17581 #
17582
17583 # No need to generate the scripts if there are no CONFIG_FILES.
17584 # This happens for instance when ./config.status config.h
17585 if test -n "\$CONFIG_FILES"; then
17586   # Protect against being on the right side of a sed subst in config.status.
17587   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17588    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17589 s,@SHELL@,$SHELL,;t t
17590 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17591 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17592 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17593 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17594 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17595 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17596 s,@exec_prefix@,$exec_prefix,;t t
17597 s,@prefix@,$prefix,;t t
17598 s,@program_transform_name@,$program_transform_name,;t t
17599 s,@bindir@,$bindir,;t t
17600 s,@sbindir@,$sbindir,;t t
17601 s,@libexecdir@,$libexecdir,;t t
17602 s,@datadir@,$datadir,;t t
17603 s,@sysconfdir@,$sysconfdir,;t t
17604 s,@sharedstatedir@,$sharedstatedir,;t t
17605 s,@localstatedir@,$localstatedir,;t t
17606 s,@libdir@,$libdir,;t t
17607 s,@includedir@,$includedir,;t t
17608 s,@oldincludedir@,$oldincludedir,;t t
17609 s,@infodir@,$infodir,;t t
17610 s,@mandir@,$mandir,;t t
17611 s,@build_alias@,$build_alias,;t t
17612 s,@host_alias@,$host_alias,;t t
17613 s,@target_alias@,$target_alias,;t t
17614 s,@DEFS@,$DEFS,;t t
17615 s,@ECHO_C@,$ECHO_C,;t t
17616 s,@ECHO_N@,$ECHO_N,;t t
17617 s,@ECHO_T@,$ECHO_T,;t t
17618 s,@LIBS@,$LIBS,;t t
17619 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17620 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17621 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17622 s,@CYGPATH_W@,$CYGPATH_W,;t t
17623 s,@PACKAGE@,$PACKAGE,;t t
17624 s,@VERSION@,$VERSION,;t t
17625 s,@ACLOCAL@,$ACLOCAL,;t t
17626 s,@AUTOCONF@,$AUTOCONF,;t t
17627 s,@AUTOMAKE@,$AUTOMAKE,;t t
17628 s,@AUTOHEADER@,$AUTOHEADER,;t t
17629 s,@MAKEINFO@,$MAKEINFO,;t t
17630 s,@AMTAR@,$AMTAR,;t t
17631 s,@install_sh@,$install_sh,;t t
17632 s,@STRIP@,$STRIP,;t t
17633 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17634 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17635 s,@AWK@,$AWK,;t t
17636 s,@SET_MAKE@,$SET_MAKE,;t t
17637 s,@am__leading_dot@,$am__leading_dot,;t t
17638 s,@build@,$build,;t t
17639 s,@build_cpu@,$build_cpu,;t t
17640 s,@build_vendor@,$build_vendor,;t t
17641 s,@build_os@,$build_os,;t t
17642 s,@host@,$host,;t t
17643 s,@host_cpu@,$host_cpu,;t t
17644 s,@host_vendor@,$host_vendor,;t t
17645 s,@host_os@,$host_os,;t t
17646 s,@CC@,$CC,;t t
17647 s,@CFLAGS@,$CFLAGS,;t t
17648 s,@LDFLAGS@,$LDFLAGS,;t t
17649 s,@CPPFLAGS@,$CPPFLAGS,;t t
17650 s,@ac_ct_CC@,$ac_ct_CC,;t t
17651 s,@EXEEXT@,$EXEEXT,;t t
17652 s,@OBJEXT@,$OBJEXT,;t t
17653 s,@DEPDIR@,$DEPDIR,;t t
17654 s,@am__include@,$am__include,;t t
17655 s,@am__quote@,$am__quote,;t t
17656 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17657 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17658 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17659 s,@CCDEPMODE@,$CCDEPMODE,;t t
17660 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17661 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17662 s,@CPP@,$CPP,;t t
17663 s,@EGREP@,$EGREP,;t t
17664 s,@U@,$U,;t t
17665 s,@ANSI2KNR@,$ANSI2KNR,;t t
17666 s,@RANLIB@,$RANLIB,;t t
17667 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17668 s,@AR@,$AR,;t t
17669 s,@ac_ct_AR@,$ac_ct_AR,;t t
17670 s,@DBX@,$DBX,;t t
17671 s,@GDB@,$GDB,;t t
17672 s,@SDB@,$SDB,;t t
17673 s,@DEBUGGER@,$DEBUGGER,;t t
17674 s,@SENDMAIL@,$SENDMAIL,;t t
17675 s,@OPS@,$OPS,;t t
17676 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
17677 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
17678 s,@SUBVERSION@,$SUBVERSION,;t t
17679 s,@ISPELL@,$ISPELL,;t t
17680 s,@LIBOBJS@,$LIBOBJS,;t t
17681 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
17682 s,@docdir@,$docdir,;t t
17683 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
17684 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
17685 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
17686 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
17687 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
17688 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
17689 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
17690 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
17691 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
17692 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
17693 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
17694 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
17695 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
17696 s,@MUTTLIBS@,$MUTTLIBS,;t t
17697 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
17698 s,@LIBIMAP@,$LIBIMAP,;t t
17699 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
17700 s,@ALLOCA@,$ALLOCA,;t t
17701 s,@GLIBC21@,$GLIBC21,;t t
17702 s,@LIBICONV@,$LIBICONV,;t t
17703 s,@USE_NLS@,$USE_NLS,;t t
17704 s,@MSGFMT@,$MSGFMT,;t t
17705 s,@GMSGFMT@,$GMSGFMT,;t t
17706 s,@XGETTEXT@,$XGETTEXT,;t t
17707 s,@INTLBISON@,$INTLBISON,;t t
17708 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
17709 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
17710 s,@CATALOGS@,$CATALOGS,;t t
17711 s,@CATOBJEXT@,$CATOBJEXT,;t t
17712 s,@GMOFILES@,$GMOFILES,;t t
17713 s,@INTLLIBS@,$INTLLIBS,;t t
17714 s,@INTLOBJS@,$INTLOBJS,;t t
17715 s,@POFILES@,$POFILES,;t t
17716 s,@POSUB@,$POSUB,;t t
17717 s,@DATADIRNAME@,$DATADIRNAME,;t t
17718 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17719 s,@GENCAT@,$GENCAT,;t t
17720 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17721 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
17722 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
17723 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17724 CEOF
17725
17726 _ACEOF
17727
17728   cat >>$CONFIG_STATUS <<\_ACEOF
17729   # Split the substitutions into bite-sized pieces for seds with
17730   # small command number limits, like on Digital OSF/1 and HP-UX.
17731   ac_max_sed_lines=48
17732   ac_sed_frag=1 # Number of current file.
17733   ac_beg=1 # First line for current file.
17734   ac_end=$ac_max_sed_lines # Line after last line for current file.
17735   ac_more_lines=:
17736   ac_sed_cmds=
17737   while $ac_more_lines; do
17738     if test $ac_beg -gt 1; then
17739       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17740     else
17741       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17742     fi
17743     if test ! -s $tmp/subs.frag; then
17744       ac_more_lines=false
17745     else
17746       # The purpose of the label and of the branching condition is to
17747       # speed up the sed processing (if there are no `@' at all, there
17748       # is no need to browse any of the substitutions).
17749       # These are the two extra sed commands mentioned above.
17750       (echo ':t
17751   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17752       if test -z "$ac_sed_cmds"; then
17753         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17754       else
17755         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17756       fi
17757       ac_sed_frag=`expr $ac_sed_frag + 1`
17758       ac_beg=$ac_end
17759       ac_end=`expr $ac_end + $ac_max_sed_lines`
17760     fi
17761   done
17762   if test -z "$ac_sed_cmds"; then
17763     ac_sed_cmds=cat
17764   fi
17765 fi # test -n "$CONFIG_FILES"
17766
17767 _ACEOF
17768 cat >>$CONFIG_STATUS <<\_ACEOF
17769 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17770   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17771   case $ac_file in
17772   - | *:- | *:-:* ) # input from stdin
17773         cat >$tmp/stdin
17774         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17776   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17777         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17778   * )   ac_file_in=$ac_file.in ;;
17779   esac
17780
17781   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17782   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17784          X"$ac_file" : 'X\(//\)[^/]' \| \
17785          X"$ac_file" : 'X\(//\)$' \| \
17786          X"$ac_file" : 'X\(/\)' \| \
17787          .     : '\(.\)' 2>/dev/null ||
17788 echo X"$ac_file" |
17789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17790           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17791           /^X\(\/\/\)$/{ s//\1/; q; }
17792           /^X\(\/\).*/{ s//\1/; q; }
17793           s/.*/./; q'`
17794   { if $as_mkdir_p; then
17795     mkdir -p "$ac_dir"
17796   else
17797     as_dir="$ac_dir"
17798     as_dirs=
17799     while test ! -d "$as_dir"; do
17800       as_dirs="$as_dir $as_dirs"
17801       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17803          X"$as_dir" : 'X\(//\)[^/]' \| \
17804          X"$as_dir" : 'X\(//\)$' \| \
17805          X"$as_dir" : 'X\(/\)' \| \
17806          .     : '\(.\)' 2>/dev/null ||
17807 echo X"$as_dir" |
17808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17809           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17810           /^X\(\/\/\)$/{ s//\1/; q; }
17811           /^X\(\/\).*/{ s//\1/; q; }
17812           s/.*/./; q'`
17813     done
17814     test ! -n "$as_dirs" || mkdir $as_dirs
17815   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17817    { (exit 1); exit 1; }; }; }
17818
17819   ac_builddir=.
17820
17821 if test "$ac_dir" != .; then
17822   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17823   # A "../" for each directory in $ac_dir_suffix.
17824   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17825 else
17826   ac_dir_suffix= ac_top_builddir=
17827 fi
17828
17829 case $srcdir in
17830   .)  # No --srcdir option.  We are building in place.
17831     ac_srcdir=.
17832     if test -z "$ac_top_builddir"; then
17833        ac_top_srcdir=.
17834     else
17835        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17836     fi ;;
17837   [\\/]* | ?:[\\/]* )  # Absolute path.
17838     ac_srcdir=$srcdir$ac_dir_suffix;
17839     ac_top_srcdir=$srcdir ;;
17840   *) # Relative path.
17841     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17842     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17843 esac
17844
17845 # Do not use `cd foo && pwd` to compute absolute paths, because
17846 # the directories may not exist.
17847 case `pwd` in
17848 .) ac_abs_builddir="$ac_dir";;
17849 *)
17850   case "$ac_dir" in
17851   .) ac_abs_builddir=`pwd`;;
17852   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17853   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17854   esac;;
17855 esac
17856 case $ac_abs_builddir in
17857 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17858 *)
17859   case ${ac_top_builddir}. in
17860   .) ac_abs_top_builddir=$ac_abs_builddir;;
17861   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17862   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17863   esac;;
17864 esac
17865 case $ac_abs_builddir in
17866 .) ac_abs_srcdir=$ac_srcdir;;
17867 *)
17868   case $ac_srcdir in
17869   .) ac_abs_srcdir=$ac_abs_builddir;;
17870   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17871   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17872   esac;;
17873 esac
17874 case $ac_abs_builddir in
17875 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17876 *)
17877   case $ac_top_srcdir in
17878   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17879   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17880   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17881   esac;;
17882 esac
17883
17884
17885   case $INSTALL in
17886   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17887   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17888   esac
17889
17890   # Let's still pretend it is `configure' which instantiates (i.e., don't
17891   # use $as_me), people would be surprised to read:
17892   #    /* config.h.  Generated by config.status.  */
17893   if test x"$ac_file" = x-; then
17894     configure_input=
17895   else
17896     configure_input="$ac_file.  "
17897   fi
17898   configure_input=$configure_input"Generated from `echo $ac_file_in |
17899                                      sed 's,.*/,,'` by configure."
17900
17901   # First look for the input files in the build tree, otherwise in the
17902   # src tree.
17903   ac_file_inputs=`IFS=:
17904     for f in $ac_file_in; do
17905       case $f in
17906       -) echo $tmp/stdin ;;
17907       [\\/$]*)
17908          # Absolute (can't be DOS-style, as IFS=:)
17909          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17910 echo "$as_me: error: cannot find input file: $f" >&2;}
17911    { (exit 1); exit 1; }; }
17912          echo "$f";;
17913       *) # Relative
17914          if test -f "$f"; then
17915            # Build tree
17916            echo "$f"
17917          elif test -f "$srcdir/$f"; then
17918            # Source tree
17919            echo "$srcdir/$f"
17920          else
17921            # /dev/null tree
17922            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17923 echo "$as_me: error: cannot find input file: $f" >&2;}
17924    { (exit 1); exit 1; }; }
17925          fi;;
17926       esac
17927     done` || { (exit 1); exit 1; }
17928
17929   if test x"$ac_file" != x-; then
17930     { echo "$as_me:$LINENO: creating $ac_file" >&5
17931 echo "$as_me: creating $ac_file" >&6;}
17932     rm -f "$ac_file"
17933   fi
17934 _ACEOF
17935 cat >>$CONFIG_STATUS <<_ACEOF
17936   sed "$ac_vpsub
17937 $extrasub
17938 _ACEOF
17939 cat >>$CONFIG_STATUS <<\_ACEOF
17940 :t
17941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17942 s,@configure_input@,$configure_input,;t t
17943 s,@srcdir@,$ac_srcdir,;t t
17944 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17945 s,@top_srcdir@,$ac_top_srcdir,;t t
17946 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17947 s,@builddir@,$ac_builddir,;t t
17948 s,@abs_builddir@,$ac_abs_builddir,;t t
17949 s,@top_builddir@,$ac_top_builddir,;t t
17950 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17951 s,@INSTALL@,$ac_INSTALL,;t t
17952 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17953   rm -f $tmp/stdin
17954   if test x"$ac_file" != x-; then
17955     mv $tmp/out $ac_file
17956   else
17957     cat $tmp/out
17958     rm -f $tmp/out
17959   fi
17960
17961 done
17962 _ACEOF
17963 cat >>$CONFIG_STATUS <<\_ACEOF
17964
17965 #
17966 # CONFIG_HEADER section.
17967 #
17968
17969 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17970 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17971 #
17972 # ac_d sets the value in "#define NAME VALUE" lines.
17973 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17974 ac_dB='[         ].*$,\1#\2'
17975 ac_dC=' '
17976 ac_dD=',;t'
17977 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17978 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17979 ac_uB='$,\1#\2define\3'
17980 ac_uC=' '
17981 ac_uD=',;t'
17982
17983 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17984   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17985   case $ac_file in
17986   - | *:- | *:-:* ) # input from stdin
17987         cat >$tmp/stdin
17988         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17989         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17990   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17991         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17992   * )   ac_file_in=$ac_file.in ;;
17993   esac
17994
17995   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17996 echo "$as_me: creating $ac_file" >&6;}
17997
17998   # First look for the input files in the build tree, otherwise in the
17999   # src tree.
18000   ac_file_inputs=`IFS=:
18001     for f in $ac_file_in; do
18002       case $f in
18003       -) echo $tmp/stdin ;;
18004       [\\/$]*)
18005          # Absolute (can't be DOS-style, as IFS=:)
18006          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18007 echo "$as_me: error: cannot find input file: $f" >&2;}
18008    { (exit 1); exit 1; }; }
18009          # Do quote $f, to prevent DOS paths from being IFS'd.
18010          echo "$f";;
18011       *) # Relative
18012          if test -f "$f"; then
18013            # Build tree
18014            echo "$f"
18015          elif test -f "$srcdir/$f"; then
18016            # Source tree
18017            echo "$srcdir/$f"
18018          else
18019            # /dev/null tree
18020            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18021 echo "$as_me: error: cannot find input file: $f" >&2;}
18022    { (exit 1); exit 1; }; }
18023          fi;;
18024       esac
18025     done` || { (exit 1); exit 1; }
18026   # Remove the trailing spaces.
18027   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18028
18029 _ACEOF
18030
18031 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18032 # `conftest.undefs', that substitutes the proper values into
18033 # config.h.in to produce config.h.  The first handles `#define'
18034 # templates, and the second `#undef' templates.
18035 # And first: Protect against being on the right side of a sed subst in
18036 # config.status.  Protect against being in an unquoted here document
18037 # in config.status.
18038 rm -f conftest.defines conftest.undefs
18039 # Using a here document instead of a string reduces the quoting nightmare.
18040 # Putting comments in sed scripts is not portable.
18041 #
18042 # `end' is used to avoid that the second main sed command (meant for
18043 # 0-ary CPP macros) applies to n-ary macro definitions.
18044 # See the Autoconf documentation for `clear'.
18045 cat >confdef2sed.sed <<\_ACEOF
18046 s/[\\&,]/\\&/g
18047 s,[\\$`],\\&,g
18048 t clear
18049 : clear
18050 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18051 t end
18052 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18053 : end
18054 _ACEOF
18055 # If some macros were called several times there might be several times
18056 # the same #defines, which is useless.  Nevertheless, we may not want to
18057 # sort them, since we want the *last* AC-DEFINE to be honored.
18058 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18059 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18060 rm -f confdef2sed.sed
18061
18062 # This sed command replaces #undef with comments.  This is necessary, for
18063 # example, in the case of _POSIX_SOURCE, which is predefined and required
18064 # on some systems where configure will not decide to define it.
18065 cat >>conftest.undefs <<\_ACEOF
18066 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18067 _ACEOF
18068
18069 # Break up conftest.defines because some shells have a limit on the size
18070 # of here documents, and old seds have small limits too (100 cmds).
18071 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18072 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18073 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18074 echo '  :' >>$CONFIG_STATUS
18075 rm -f conftest.tail
18076 while grep . conftest.defines >/dev/null
18077 do
18078   # Write a limited-size here document to $tmp/defines.sed.
18079   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18080   # Speed up: don't consider the non `#define' lines.
18081   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18082   # Work around the forget-to-reset-the-flag bug.
18083   echo 't clr' >>$CONFIG_STATUS
18084   echo ': clr' >>$CONFIG_STATUS
18085   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18086   echo 'CEOF
18087   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18088   rm -f $tmp/in
18089   mv $tmp/out $tmp/in
18090 ' >>$CONFIG_STATUS
18091   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18092   rm -f conftest.defines
18093   mv conftest.tail conftest.defines
18094 done
18095 rm -f conftest.defines
18096 echo '  fi # grep' >>$CONFIG_STATUS
18097 echo >>$CONFIG_STATUS
18098
18099 # Break up conftest.undefs because some shells have a limit on the size
18100 # of here documents, and old seds have small limits too (100 cmds).
18101 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18102 rm -f conftest.tail
18103 while grep . conftest.undefs >/dev/null
18104 do
18105   # Write a limited-size here document to $tmp/undefs.sed.
18106   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18107   # Speed up: don't consider the non `#undef'
18108   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18109   # Work around the forget-to-reset-the-flag bug.
18110   echo 't clr' >>$CONFIG_STATUS
18111   echo ': clr' >>$CONFIG_STATUS
18112   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18113   echo 'CEOF
18114   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18115   rm -f $tmp/in
18116   mv $tmp/out $tmp/in
18117 ' >>$CONFIG_STATUS
18118   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18119   rm -f conftest.undefs
18120   mv conftest.tail conftest.undefs
18121 done
18122 rm -f conftest.undefs
18123
18124 cat >>$CONFIG_STATUS <<\_ACEOF
18125   # Let's still pretend it is `configure' which instantiates (i.e., don't
18126   # use $as_me), people would be surprised to read:
18127   #    /* config.h.  Generated by config.status.  */
18128   if test x"$ac_file" = x-; then
18129     echo "/* Generated by configure.  */" >$tmp/config.h
18130   else
18131     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18132   fi
18133   cat $tmp/in >>$tmp/config.h
18134   rm -f $tmp/in
18135   if test x"$ac_file" != x-; then
18136     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18137       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18138 echo "$as_me: $ac_file is unchanged" >&6;}
18139     else
18140       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18142          X"$ac_file" : 'X\(//\)[^/]' \| \
18143          X"$ac_file" : 'X\(//\)$' \| \
18144          X"$ac_file" : 'X\(/\)' \| \
18145          .     : '\(.\)' 2>/dev/null ||
18146 echo X"$ac_file" |
18147     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18148           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18149           /^X\(\/\/\)$/{ s//\1/; q; }
18150           /^X\(\/\).*/{ s//\1/; q; }
18151           s/.*/./; q'`
18152       { if $as_mkdir_p; then
18153     mkdir -p "$ac_dir"
18154   else
18155     as_dir="$ac_dir"
18156     as_dirs=
18157     while test ! -d "$as_dir"; do
18158       as_dirs="$as_dir $as_dirs"
18159       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18161          X"$as_dir" : 'X\(//\)[^/]' \| \
18162          X"$as_dir" : 'X\(//\)$' \| \
18163          X"$as_dir" : 'X\(/\)' \| \
18164          .     : '\(.\)' 2>/dev/null ||
18165 echo X"$as_dir" |
18166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18167           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18168           /^X\(\/\/\)$/{ s//\1/; q; }
18169           /^X\(\/\).*/{ s//\1/; q; }
18170           s/.*/./; q'`
18171     done
18172     test ! -n "$as_dirs" || mkdir $as_dirs
18173   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18174 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18175    { (exit 1); exit 1; }; }; }
18176
18177       rm -f $ac_file
18178       mv $tmp/config.h $ac_file
18179     fi
18180   else
18181     cat $tmp/config.h
18182     rm -f $tmp/config.h
18183   fi
18184 # Compute $ac_file's index in $config_headers.
18185 _am_stamp_count=1
18186 for _am_header in $config_headers :; do
18187   case $_am_header in
18188     $ac_file | $ac_file:* )
18189       break ;;
18190     * )
18191       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18192   esac
18193 done
18194 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18195 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18196          X$ac_file : 'X\(//\)[^/]' \| \
18197          X$ac_file : 'X\(//\)$' \| \
18198          X$ac_file : 'X\(/\)' \| \
18199          .     : '\(.\)' 2>/dev/null ||
18200 echo X$ac_file |
18201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18202           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18203           /^X\(\/\/\)$/{ s//\1/; q; }
18204           /^X\(\/\).*/{ s//\1/; q; }
18205           s/.*/./; q'`/stamp-h$_am_stamp_count
18206 done
18207 _ACEOF
18208 cat >>$CONFIG_STATUS <<\_ACEOF
18209
18210 #
18211 # CONFIG_COMMANDS section.
18212 #
18213 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18214   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18215   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18216   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18217 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18218          X"$ac_dest" : 'X\(//\)[^/]' \| \
18219          X"$ac_dest" : 'X\(//\)$' \| \
18220          X"$ac_dest" : 'X\(/\)' \| \
18221          .     : '\(.\)' 2>/dev/null ||
18222 echo X"$ac_dest" |
18223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18224           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18225           /^X\(\/\/\)$/{ s//\1/; q; }
18226           /^X\(\/\).*/{ s//\1/; q; }
18227           s/.*/./; q'`
18228   { if $as_mkdir_p; then
18229     mkdir -p "$ac_dir"
18230   else
18231     as_dir="$ac_dir"
18232     as_dirs=
18233     while test ! -d "$as_dir"; do
18234       as_dirs="$as_dir $as_dirs"
18235       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18237          X"$as_dir" : 'X\(//\)[^/]' \| \
18238          X"$as_dir" : 'X\(//\)$' \| \
18239          X"$as_dir" : 'X\(/\)' \| \
18240          .     : '\(.\)' 2>/dev/null ||
18241 echo X"$as_dir" |
18242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18243           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18244           /^X\(\/\/\)$/{ s//\1/; q; }
18245           /^X\(\/\).*/{ s//\1/; q; }
18246           s/.*/./; q'`
18247     done
18248     test ! -n "$as_dirs" || mkdir $as_dirs
18249   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18250 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18251    { (exit 1); exit 1; }; }; }
18252
18253   ac_builddir=.
18254
18255 if test "$ac_dir" != .; then
18256   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18257   # A "../" for each directory in $ac_dir_suffix.
18258   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18259 else
18260   ac_dir_suffix= ac_top_builddir=
18261 fi
18262
18263 case $srcdir in
18264   .)  # No --srcdir option.  We are building in place.
18265     ac_srcdir=.
18266     if test -z "$ac_top_builddir"; then
18267        ac_top_srcdir=.
18268     else
18269        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18270     fi ;;
18271   [\\/]* | ?:[\\/]* )  # Absolute path.
18272     ac_srcdir=$srcdir$ac_dir_suffix;
18273     ac_top_srcdir=$srcdir ;;
18274   *) # Relative path.
18275     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18276     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18277 esac
18278
18279 # Do not use `cd foo && pwd` to compute absolute paths, because
18280 # the directories may not exist.
18281 case `pwd` in
18282 .) ac_abs_builddir="$ac_dir";;
18283 *)
18284   case "$ac_dir" in
18285   .) ac_abs_builddir=`pwd`;;
18286   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18287   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18288   esac;;
18289 esac
18290 case $ac_abs_builddir in
18291 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18292 *)
18293   case ${ac_top_builddir}. in
18294   .) ac_abs_top_builddir=$ac_abs_builddir;;
18295   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18296   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18297   esac;;
18298 esac
18299 case $ac_abs_builddir in
18300 .) ac_abs_srcdir=$ac_srcdir;;
18301 *)
18302   case $ac_srcdir in
18303   .) ac_abs_srcdir=$ac_abs_builddir;;
18304   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18305   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18306   esac;;
18307 esac
18308 case $ac_abs_builddir in
18309 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18310 *)
18311   case $ac_top_srcdir in
18312   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18313   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18314   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18315   esac;;
18316 esac
18317
18318
18319   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18320 echo "$as_me: executing $ac_dest commands" >&6;}
18321   case $ac_dest in
18322     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18323   # Strip MF so we end up with the name of the file.
18324   mf=`echo "$mf" | sed -e 's/:.*$//'`
18325   # Check whether this is an Automake generated Makefile or not.
18326   # We used to match only the files named `Makefile.in', but
18327   # some people rename them; so instead we look at the file content.
18328   # Grep'ing the first line is not enough: some people post-process
18329   # each Makefile.in and add a new line on top of each file to say so.
18330   # So let's grep whole file.
18331   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18332     dirpart=`(dirname "$mf") 2>/dev/null ||
18333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18334          X"$mf" : 'X\(//\)[^/]' \| \
18335          X"$mf" : 'X\(//\)$' \| \
18336          X"$mf" : 'X\(/\)' \| \
18337          .     : '\(.\)' 2>/dev/null ||
18338 echo X"$mf" |
18339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18340           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18341           /^X\(\/\/\)$/{ s//\1/; q; }
18342           /^X\(\/\).*/{ s//\1/; q; }
18343           s/.*/./; q'`
18344   else
18345     continue
18346   fi
18347   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18348   # Extract the definition of DEP_FILES from the Makefile without
18349   # running `make'.
18350   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18351   test -z "$DEPDIR" && continue
18352   # When using ansi2knr, U may be empty or an underscore; expand it
18353   U=`sed -n -e '/^U = / s///p' < "$mf"`
18354   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18355   # We invoke sed twice because it is the simplest approach to
18356   # changing $(DEPDIR) to its actual value in the expansion.
18357   for file in `sed -n -e '
18358     /^DEP_FILES = .*\\\\$/ {
18359       s/^DEP_FILES = //
18360       :loop
18361         s/\\\\$//
18362         p
18363         n
18364         /\\\\$/ b loop
18365       p
18366     }
18367     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18368        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18369     # Make sure the directory exists.
18370     test -f "$dirpart/$file" && continue
18371     fdir=`(dirname "$file") 2>/dev/null ||
18372 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18373          X"$file" : 'X\(//\)[^/]' \| \
18374          X"$file" : 'X\(//\)$' \| \
18375          X"$file" : 'X\(/\)' \| \
18376          .     : '\(.\)' 2>/dev/null ||
18377 echo X"$file" |
18378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18379           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18380           /^X\(\/\/\)$/{ s//\1/; q; }
18381           /^X\(\/\).*/{ s//\1/; q; }
18382           s/.*/./; q'`
18383     { if $as_mkdir_p; then
18384     mkdir -p $dirpart/$fdir
18385   else
18386     as_dir=$dirpart/$fdir
18387     as_dirs=
18388     while test ! -d "$as_dir"; do
18389       as_dirs="$as_dir $as_dirs"
18390       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18392          X"$as_dir" : 'X\(//\)[^/]' \| \
18393          X"$as_dir" : 'X\(//\)$' \| \
18394          X"$as_dir" : 'X\(/\)' \| \
18395          .     : '\(.\)' 2>/dev/null ||
18396 echo X"$as_dir" |
18397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18398           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18399           /^X\(\/\/\)$/{ s//\1/; q; }
18400           /^X\(\/\).*/{ s//\1/; q; }
18401           s/.*/./; q'`
18402     done
18403     test ! -n "$as_dirs" || mkdir $as_dirs
18404   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18405 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18406    { (exit 1); exit 1; }; }; }
18407
18408     # echo "creating $dirpart/$file"
18409     echo '# dummy' > "$dirpart/$file"
18410   done
18411 done
18412  ;;
18413     default-1 ) for ac_file in $CONFIG_FILES; do
18414         # Support "outfile[:infile[:infile...]]"
18415         case "$ac_file" in
18416           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18417         esac
18418         # PO directories have a Makefile.in generated from Makefile.in.in.
18419         case "$ac_file" in */Makefile.in)
18420           # Adjust a relative srcdir.
18421           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18422           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18423           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18424           # In autoconf-2.13 it is called $ac_given_srcdir.
18425           # In autoconf-2.50 it is called $srcdir.
18426           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18427           case "$ac_given_srcdir" in
18428             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18429             /*) top_srcdir="$ac_given_srcdir" ;;
18430             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18431           esac
18432           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18433             rm -f "$ac_dir/POTFILES"
18434             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18435             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
18436             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18437             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18438           fi
18439           ;;
18440         esac
18441       done ;;
18442   esac
18443 done
18444 _ACEOF
18445
18446 cat >>$CONFIG_STATUS <<\_ACEOF
18447
18448 { (exit 0); exit 0; }
18449 _ACEOF
18450 chmod +x $CONFIG_STATUS
18451 ac_clean_files=$ac_clean_files_save
18452
18453
18454 # configure is writing to config.log, and then calls config.status.
18455 # config.status does its own redirection, appending to config.log.
18456 # Unfortunately, on DOS this fails, as config.log is still kept open
18457 # by configure, so config.status won't be able to write to it; its
18458 # output is simply discarded.  So we exec the FD to /dev/null,
18459 # effectively closing config.log, so it can be properly (re)opened and
18460 # appended to by config.status.  When coming back to configure, we
18461 # need to make the FD available again.
18462 if test "$no_create" != yes; then
18463   ac_cs_success=:
18464   ac_config_status_args=
18465   test "$silent" = yes &&
18466     ac_config_status_args="$ac_config_status_args --quiet"
18467   exec 5>/dev/null
18468   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18469   exec 5>>config.log
18470   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18471   # would make configure fail if this is the last instruction.
18472   $ac_cs_success || { (exit 1); exit 1; }
18473 fi
18474