Andreas Krennmair:
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.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 GPGME_CONFIG LIBGPGME_CFLAGS LIBGPGME_LIBS 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 LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS 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-largefile     omit support for large files
855   --enable-gpgme          Enable GPGME support
856   --disable-pgp           Disable PGP support
857   --disable-smime         Disable SMIME support
858   --enable-external-dotlock
859                           Force use of an external dotlock program
860   --enable-pop            Enable POP3 support
861   --enable-imap           Enable IMAP support
862   --enable-nntp              Enable NNTP support
863   --enable-debug          Enable debugging support
864   --enable-flock          Use flock() to lock files
865   --disable-fcntl         Do NOT use fcntl() to lock files
866   --enable-inodesort      Read files in maildir folders sorted by inode.
867   --disable-warnings      Turn off compiler warnings (not recommended)
868   --enable-nfs-fix        Work around an NFS with broken attributes caching
869   --enable-buffy-size     Use file size attribute instead of access time
870   --enable-mailtool       Enable Sun mailtool attachments support
871   --enable-compressed        Enable compressed folders support
872   --enable-locales-fix    The result of isprint() is unreliable
873   --enable-exact-address  Enable regeneration of email addresses
874   --enable-hcache         Enable header caching
875   --disable-iconv         Disable iconv support
876   --disable-nls           Do not use Native Language Support
877
878 Optional Packages:
879   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
881   --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
882   --with-mixmaster=PATH Include Mixmaster support
883   --with-slang=DIR      Use S-Lang instead of ncurses
884   --with-curses=DIR       Where ncurses is installed
885   --with-regex            Use the GNU regex library
886   --with-homespool=FILE File in user's directory where new mail is spooled
887   --with-mailpath=DIR     Directory where spool mailboxes are located
888   --with-docdir=PATH      Specify where to put the documentation
889   --with-domain=DOMAIN    Specify your DNS domain name
890   --with-gss=PFX        Compile in GSSAPI authentication for IMAP
891   --with-ssl=PFX        Compile in SSL support for POP/IMAP
892   --with-gnutls=PFX        Compile in GNU TLS support for POP/IMAP
893   --with-nss=PFX        Compile in SSL support for POP/IMAP via NSS
894   --with-gnutls=PFX     Enable SSL support using gnutls
895   --with-sasl=PFX       Use Cyrus SASL library for POP/IMAP authentication
896   --with-sasl2=PFX      Use Cyrus SASL library version 2 for POP/IMAP
897                           authentication
898   --with-idn=PFX        Use GNU libidn for domain names
899   --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
900   --without-gdbm          Don't use gdbm even if it is available
901   --with-bdb=DIR        Use BerkeleyDB4 if gdbm is not available
902   --with-libiconv-prefix=DIR
903                           Search for libiconv in DIR/include and DIR/lib
904   --with-included-gettext Use the GNU gettext library included here
905   --without-wc-funcs      Do not use the system's wchar_t functions
906   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
907
908 Some influential environment variables:
909   CC          C compiler command
910   CFLAGS      C compiler flags
911   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
912               nonstandard directory <lib dir>
913   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
914               headers in a nonstandard directory <include dir>
915   CPP         C preprocessor
916
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
919
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924   # If there are subdirs, report their specific --help.
925   ac_popdir=`pwd`
926   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927     test -d $ac_dir || continue
928     ac_builddir=.
929
930 if test "$ac_dir" != .; then
931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932   # A "../" for each directory in $ac_dir_suffix.
933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935   ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939   .)  # No --srcdir option.  We are building in place.
940     ac_srcdir=.
941     if test -z "$ac_top_builddir"; then
942        ac_top_srcdir=.
943     else
944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945     fi ;;
946   [\\/]* | ?:[\\/]* )  # Absolute path.
947     ac_srcdir=$srcdir$ac_dir_suffix;
948     ac_top_srcdir=$srcdir ;;
949   *) # Relative path.
950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
956 case `pwd` in
957 .) ac_abs_builddir="$ac_dir";;
958 *)
959   case "$ac_dir" in
960   .) ac_abs_builddir=`pwd`;;
961   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962   *) ac_abs_builddir=`pwd`/"$ac_dir";;
963   esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *)
968   case ${ac_top_builddir}. in
969   .) ac_abs_top_builddir=$ac_abs_builddir;;
970   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972   esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
976 *)
977   case $ac_srcdir in
978   .) ac_abs_srcdir=$ac_abs_builddir;;
979   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981   esac;;
982 esac
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *)
986   case $ac_top_srcdir in
987   .) ac_abs_top_srcdir=$ac_abs_builddir;;
988   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990   esac;;
991 esac
992
993     cd $ac_dir
994     # Check for guested configure; otherwise get Cygnus style configure.
995     if test -f $ac_srcdir/configure.gnu; then
996       echo
997       $SHELL $ac_srcdir/configure.gnu  --help=recursive
998     elif test -f $ac_srcdir/configure; then
999       echo
1000       $SHELL $ac_srcdir/configure  --help=recursive
1001     elif test -f $ac_srcdir/configure.ac ||
1002            test -f $ac_srcdir/configure.in; then
1003       echo
1004       $ac_configure --help
1005     else
1006       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007     fi
1008     cd "$ac_popdir"
1009   done
1010 fi
1011
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1014   cat <<\_ACEOF
1015
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by $as_me, which was
1028 generated by GNU Autoconf 2.59.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355           ac_config_headers="$ac_config_headers config.h"
1356
1357
1358 mutt_cv_version=`cat $srcdir/VERSION`
1359
1360 am__api_version="1.7"
1361 ac_aux_dir=
1362 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1363   if test -f $ac_dir/install-sh; then
1364     ac_aux_dir=$ac_dir
1365     ac_install_sh="$ac_aux_dir/install-sh -c"
1366     break
1367   elif test -f $ac_dir/install.sh; then
1368     ac_aux_dir=$ac_dir
1369     ac_install_sh="$ac_aux_dir/install.sh -c"
1370     break
1371   elif test -f $ac_dir/shtool; then
1372     ac_aux_dir=$ac_dir
1373     ac_install_sh="$ac_aux_dir/shtool install -c"
1374     break
1375   fi
1376 done
1377 if test -z "$ac_aux_dir"; then
1378   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1379 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1380    { (exit 1); exit 1; }; }
1381 fi
1382 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1383 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1384 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1385
1386 # Find a good install program.  We prefer a C program (faster),
1387 # so one script is as good as another.  But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1392 # AIX /bin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # OS/2's system install, which has a completely different semantic
1398 # ./install, which can be erroneously created by make from ./install.sh.
1399 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1400 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1401 if test -z "$INSTALL"; then
1402 if test "${ac_cv_path_install+set}" = set; then
1403   echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408   IFS=$as_save_IFS
1409   test -z "$as_dir" && as_dir=.
1410   # Account for people who put trailing slashes in PATH elements.
1411 case $as_dir/ in
1412   ./ | .// | /cC/* | \
1413   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1414   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1415   /usr/ucb/* ) ;;
1416   *)
1417     # OSF1 and SCO ODT 3.0 have their own names for install.
1418     # Don't use installbsd from OSF since it installs stuff as root
1419     # by default.
1420     for ac_prog in ginstall scoinst install; do
1421       for ac_exec_ext in '' $ac_executable_extensions; do
1422         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1423           if test $ac_prog = install &&
1424             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1425             # AIX install.  It has an incompatible calling convention.
1426             :
1427           elif test $ac_prog = install &&
1428             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429             # program-specific install script used by HP pwplus--don't use.
1430             :
1431           else
1432             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1433             break 3
1434           fi
1435         fi
1436       done
1437     done
1438     ;;
1439 esac
1440 done
1441
1442
1443 fi
1444   if test "${ac_cv_path_install+set}" = set; then
1445     INSTALL=$ac_cv_path_install
1446   else
1447     # As a last resort, use the slow shell script.  We don't cache a
1448     # path for INSTALL within a source directory, because that will
1449     # break other packages using the cache if that directory is
1450     # removed, or if the path is relative.
1451     INSTALL=$ac_install_sh
1452   fi
1453 fi
1454 echo "$as_me:$LINENO: result: $INSTALL" >&5
1455 echo "${ECHO_T}$INSTALL" >&6
1456
1457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1458 # It thinks the first close brace ends the variable substitution.
1459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1460
1461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1462
1463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1464
1465 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1466 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1467 # Just in case
1468 sleep 1
1469 echo timestamp > conftest.file
1470 # Do `set' in a subshell so we don't clobber the current shell's
1471 # arguments.  Must try -L first in case configure is actually a
1472 # symlink; some systems play weird games with the mod time of symlinks
1473 # (eg FreeBSD returns the mod time of the symlink's containing
1474 # directory).
1475 if (
1476    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1477    if test "$*" = "X"; then
1478       # -L didn't work.
1479       set X `ls -t $srcdir/configure conftest.file`
1480    fi
1481    rm -f conftest.file
1482    if test "$*" != "X $srcdir/configure conftest.file" \
1483       && test "$*" != "X conftest.file $srcdir/configure"; then
1484
1485       # If neither matched, then we have a broken ls.  This can happen
1486       # if, for instance, CONFIG_SHELL is bash and it inherits a
1487       # broken ls alias from the environment.  This has actually
1488       # happened.  Such a system could not be considered "sane".
1489       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1490 alias in your environment" >&5
1491 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1492 alias in your environment" >&2;}
1493    { (exit 1); exit 1; }; }
1494    fi
1495
1496    test "$2" = conftest.file
1497    )
1498 then
1499    # Ok.
1500    :
1501 else
1502    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1503 Check your system clock" >&5
1504 echo "$as_me: error: newly created file is older than distributed files!
1505 Check your system clock" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508 echo "$as_me:$LINENO: result: yes" >&5
1509 echo "${ECHO_T}yes" >&6
1510 test "$program_prefix" != NONE &&
1511   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1512 # Use a double $ so make ignores it.
1513 test "$program_suffix" != NONE &&
1514   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1515 # Double any \ or $.  echo might interpret backslashes.
1516 # By default was `s,x,x', remove it if useless.
1517 cat <<\_ACEOF >conftest.sed
1518 s/[\\$]/&&/g;s/;s,x,x,$//
1519 _ACEOF
1520 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1521 rm conftest.sed
1522
1523
1524 # expand $ac_aux_dir to an absolute path
1525 am_aux_dir=`cd $ac_aux_dir && pwd`
1526
1527 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1528 # Use eval to expand $SHELL
1529 if eval "$MISSING --run true"; then
1530   am_missing_run="$MISSING --run "
1531 else
1532   am_missing_run=
1533   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1534 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1535 fi
1536
1537 for ac_prog in gawk mawk nawk awk
1538 do
1539   # Extract the first word of "$ac_prog", so it can be a program name with args.
1540 set dummy $ac_prog; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_AWK+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   if test -n "$AWK"; then
1547   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   for ac_exec_ext in '' $ac_executable_extensions; do
1555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556     ac_cv_prog_AWK="$ac_prog"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 AWK=$ac_cv_prog_AWK
1566 if test -n "$AWK"; then
1567   echo "$as_me:$LINENO: result: $AWK" >&5
1568 echo "${ECHO_T}$AWK" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574   test -n "$AWK" && break
1575 done
1576
1577 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1578 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1579 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1580 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   cat >conftest.make <<\_ACEOF
1584 all:
1585         @echo 'ac_maketemp="$(MAKE)"'
1586 _ACEOF
1587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1588 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1589 if test -n "$ac_maketemp"; then
1590   eval ac_cv_prog_make_${ac_make}_set=yes
1591 else
1592   eval ac_cv_prog_make_${ac_make}_set=no
1593 fi
1594 rm -f conftest.make
1595 fi
1596 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1597   echo "$as_me:$LINENO: result: yes" >&5
1598 echo "${ECHO_T}yes" >&6
1599   SET_MAKE=
1600 else
1601   echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603   SET_MAKE="MAKE=${MAKE-make}"
1604 fi
1605
1606 rm -rf .tst 2>/dev/null
1607 mkdir .tst 2>/dev/null
1608 if test -d .tst; then
1609   am__leading_dot=.
1610 else
1611   am__leading_dot=_
1612 fi
1613 rmdir .tst 2>/dev/null
1614
1615  # test to see if srcdir already configured
1616 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1617    test -f $srcdir/config.status; then
1618   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1619 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1620    { (exit 1); exit 1; }; }
1621 fi
1622
1623 # test whether we have cygpath
1624 if test -z "$CYGPATH_W"; then
1625   if (cygpath --version) >/dev/null 2>/dev/null; then
1626     CYGPATH_W='cygpath -w'
1627   else
1628     CYGPATH_W=echo
1629   fi
1630 fi
1631
1632
1633 # Define the identity of the package.
1634  PACKAGE=muttng
1635  VERSION=$mutt_cv_version
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE "$PACKAGE"
1640 _ACEOF
1641
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define VERSION "$VERSION"
1645 _ACEOF
1646
1647 # Some tools Automake needs.
1648
1649 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1650
1651
1652 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1653
1654
1655 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1656
1657
1658 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1659
1660
1661 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1662
1663
1664 AMTAR=${AMTAR-"${am_missing_run}tar"}
1665
1666 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1667
1668 # Installed binaries are usually stripped using `strip' when the user
1669 # run `make install-strip'.  However `strip' might not be the right
1670 # tool to use in cross-compilation environments, therefore Automake
1671 # will honor the `STRIP' environment variable to overrule this program.
1672 if test "$cross_compiling" != no; then
1673   if test -n "$ac_tool_prefix"; then
1674   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1675 set dummy ${ac_tool_prefix}strip; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_STRIP+set}" = set; then
1679   echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681   if test -n "$STRIP"; then
1682   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693     break 2
1694   fi
1695 done
1696 done
1697
1698 fi
1699 fi
1700 STRIP=$ac_cv_prog_STRIP
1701 if test -n "$STRIP"; then
1702   echo "$as_me:$LINENO: result: $STRIP" >&5
1703 echo "${ECHO_T}$STRIP" >&6
1704 else
1705   echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709 fi
1710 if test -z "$ac_cv_prog_STRIP"; then
1711   ac_ct_STRIP=$STRIP
1712   # Extract the first word of "strip", so it can be a program name with args.
1713 set dummy strip; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   if test -n "$ac_ct_STRIP"; then
1720   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1721 else
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 for as_dir in $PATH
1724 do
1725   IFS=$as_save_IFS
1726   test -z "$as_dir" && as_dir=.
1727   for ac_exec_ext in '' $ac_executable_extensions; do
1728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729     ac_cv_prog_ac_ct_STRIP="strip"
1730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731     break 2
1732   fi
1733 done
1734 done
1735
1736   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1737 fi
1738 fi
1739 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1740 if test -n "$ac_ct_STRIP"; then
1741   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1742 echo "${ECHO_T}$ac_ct_STRIP" >&6
1743 else
1744   echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748   STRIP=$ac_ct_STRIP
1749 else
1750   STRIP="$ac_cv_prog_STRIP"
1751 fi
1752
1753 fi
1754 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1755
1756 # We need awk for the "check" target.  The system "awk" is bad on
1757 # some platforms.
1758
1759
1760
1761
1762
1763
1764 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"
1765
1766 # Make sure we can run config.sub.
1767 $ac_config_sub sun4 >/dev/null 2>&1 ||
1768   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1769 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1770    { (exit 1); exit 1; }; }
1771
1772 echo "$as_me:$LINENO: checking build system type" >&5
1773 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1774 if test "${ac_cv_build+set}" = set; then
1775   echo $ECHO_N "(cached) $ECHO_C" >&6
1776 else
1777   ac_cv_build_alias=$build_alias
1778 test -z "$ac_cv_build_alias" &&
1779   ac_cv_build_alias=`$ac_config_guess`
1780 test -z "$ac_cv_build_alias" &&
1781   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1782 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1783    { (exit 1); exit 1; }; }
1784 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1785   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1786 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1787    { (exit 1); exit 1; }; }
1788
1789 fi
1790 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1791 echo "${ECHO_T}$ac_cv_build" >&6
1792 build=$ac_cv_build
1793 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1794 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1795 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1796
1797
1798 echo "$as_me:$LINENO: checking host system type" >&5
1799 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1800 if test "${ac_cv_host+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   ac_cv_host_alias=$host_alias
1804 test -z "$ac_cv_host_alias" &&
1805   ac_cv_host_alias=$ac_cv_build_alias
1806 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1807   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1808 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1809    { (exit 1); exit 1; }; }
1810
1811 fi
1812 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6
1814 host=$ac_cv_host
1815 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1816 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1817 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1818
1819
1820
1821 echo "$as_me:$LINENO: checking for prefix" >&5
1822 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1823 if test x$prefix = xNONE; then
1824         mutt_cv_prefix=$ac_default_prefix
1825 else
1826         mutt_cv_prefix=$prefix
1827 fi
1828 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1829 echo "${ECHO_T}$mutt_cv_prefix" >&6
1830
1831 ac_ext=c
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836 if test -n "$ac_tool_prefix"; then
1837   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_CC+set}" = set; then
1842   echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844   if test -n "$CC"; then
1845   ac_cv_prog_CC="$CC" # Let the user override the test.
1846 else
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1849 do
1850   IFS=$as_save_IFS
1851   test -z "$as_dir" && as_dir=.
1852   for ac_exec_ext in '' $ac_executable_extensions; do
1853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856     break 2
1857   fi
1858 done
1859 done
1860
1861 fi
1862 fi
1863 CC=$ac_cv_prog_CC
1864 if test -n "$CC"; then
1865   echo "$as_me:$LINENO: result: $CC" >&5
1866 echo "${ECHO_T}$CC" >&6
1867 else
1868   echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1870 fi
1871
1872 fi
1873 if test -z "$ac_cv_prog_CC"; then
1874   ac_ct_CC=$CC
1875   # Extract the first word of "gcc", so it can be a program name with args.
1876 set dummy gcc; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880   echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882   if test -n "$ac_ct_CC"; then
1883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888   IFS=$as_save_IFS
1889   test -z "$as_dir" && as_dir=.
1890   for ac_exec_ext in '' $ac_executable_extensions; do
1891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892     ac_cv_prog_ac_ct_CC="gcc"
1893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894     break 2
1895   fi
1896 done
1897 done
1898
1899 fi
1900 fi
1901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1902 if test -n "$ac_ct_CC"; then
1903   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1904 echo "${ECHO_T}$ac_ct_CC" >&6
1905 else
1906   echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910   CC=$ac_ct_CC
1911 else
1912   CC="$ac_cv_prog_CC"
1913 fi
1914
1915 if test -z "$CC"; then
1916   if test -n "$ac_tool_prefix"; then
1917   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1918 set dummy ${ac_tool_prefix}cc; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_CC+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   if test -n "$CC"; then
1925   ac_cv_prog_CC="$CC" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930   IFS=$as_save_IFS
1931   test -z "$as_dir" && as_dir=.
1932   for ac_exec_ext in '' $ac_executable_extensions; do
1933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934     ac_cv_prog_CC="${ac_tool_prefix}cc"
1935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936     break 2
1937   fi
1938 done
1939 done
1940
1941 fi
1942 fi
1943 CC=$ac_cv_prog_CC
1944 if test -n "$CC"; then
1945   echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6
1947 else
1948   echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1951
1952 fi
1953 if test -z "$ac_cv_prog_CC"; then
1954   ac_ct_CC=$CC
1955   # Extract the first word of "cc", so it can be a program name with args.
1956 set dummy cc; ac_word=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   if test -n "$ac_ct_CC"; then
1963   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968   IFS=$as_save_IFS
1969   test -z "$as_dir" && as_dir=.
1970   for ac_exec_ext in '' $ac_executable_extensions; do
1971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972     ac_cv_prog_ac_ct_CC="cc"
1973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974     break 2
1975   fi
1976 done
1977 done
1978
1979 fi
1980 fi
1981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6
1985 else
1986   echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1988 fi
1989
1990   CC=$ac_ct_CC
1991 else
1992   CC="$ac_cv_prog_CC"
1993 fi
1994
1995 fi
1996 if test -z "$CC"; then
1997   # Extract the first word of "cc", so it can be a program name with args.
1998 set dummy cc; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_CC+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   if test -n "$CC"; then
2005   ac_cv_prog_CC="$CC" # Let the user override the test.
2006 else
2007   ac_prog_rejected=no
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2016        ac_prog_rejected=yes
2017        continue
2018      fi
2019     ac_cv_prog_CC="cc"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026 if test $ac_prog_rejected = yes; then
2027   # We found a bogon in the path, so make sure we never use it.
2028   set dummy $ac_cv_prog_CC
2029   shift
2030   if test $# != 0; then
2031     # We chose a different compiler from the bogus one.
2032     # However, it has the same basename, so the bogon will be chosen
2033     # first if we set CC to just the basename; use the full file name.
2034     shift
2035     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2036   fi
2037 fi
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042   echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6
2044 else
2045   echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 fi
2048
2049 fi
2050 if test -z "$CC"; then
2051   if test -n "$ac_tool_prefix"; then
2052   for ac_prog in cl
2053   do
2054     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$CC"; then
2062   ac_cv_prog_CC="$CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077
2078 fi
2079 fi
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082   echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6
2084 else
2085   echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2087 fi
2088
2089     test -n "$CC" && break
2090   done
2091 fi
2092 if test -z "$CC"; then
2093   ac_ct_CC=$CC
2094   for ac_prog in cl
2095 do
2096   # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test -n "$ac_ct_CC"; then
2104   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111   for ac_exec_ext in '' $ac_executable_extensions; do
2112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113     ac_cv_prog_ac_ct_CC="$ac_prog"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119
2120 fi
2121 fi
2122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123 if test -n "$ac_ct_CC"; then
2124   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125 echo "${ECHO_T}$ac_ct_CC" >&6
2126 else
2127   echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2129 fi
2130
2131   test -n "$ac_ct_CC" && break
2132 done
2133
2134   CC=$ac_ct_CC
2135 fi
2136
2137 fi
2138
2139
2140 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2141 See \`config.log' for more details." >&5
2142 echo "$as_me: error: no acceptable C compiler found in \$PATH
2143 See \`config.log' for more details." >&2;}
2144    { (exit 1); exit 1; }; }
2145
2146 # Provide some information about the compiler.
2147 echo "$as_me:$LINENO:" \
2148      "checking for C compiler version" >&5
2149 ac_compiler=`set X $ac_compile; echo $2`
2150 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2151   (eval $ac_compiler --version </dev/null >&5) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2156   (eval $ac_compiler -v </dev/null >&5) 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2161   (eval $ac_compiler -V </dev/null >&5) 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }
2165
2166 cat >conftest.$ac_ext <<_ACEOF
2167 /* confdefs.h.  */
2168 _ACEOF
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h.  */
2172
2173 int
2174 main ()
2175 {
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 ac_clean_files_save=$ac_clean_files
2182 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2183 # Try to create an executable without -o first, disregard a.out.
2184 # It will help us diagnose broken compilers, and finding out an intuition
2185 # of exeext.
2186 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2187 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2188 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2190   (eval $ac_link_default) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; then
2194   # Find the output, starting from the most likely.  This scheme is
2195 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2196 # resort.
2197
2198 # Be careful to initialize this variable, since it used to be cached.
2199 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2200 ac_cv_exeext=
2201 # b.out is created by i960 compilers.
2202 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203 do
2204   test -f "$ac_file" || continue
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2207         ;;
2208     conftest.$ac_ext )
2209         # This is the source file.
2210         ;;
2211     [ab].out )
2212         # We found the default executable, but exeext='' is most
2213         # certainly right.
2214         break;;
2215     *.* )
2216         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217         # FIXME: I believe we export ac_cv_exeext for Libtool,
2218         # but it would be cool to find out if it's true.  Does anybody
2219         # maintain Libtool? --akim.
2220         export ac_cv_exeext
2221         break;;
2222     * )
2223         break;;
2224   esac
2225 done
2226 else
2227   echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&2;}
2234    { (exit 77); exit 77; }; }
2235 fi
2236
2237 ac_exeext=$ac_cv_exeext
2238 echo "$as_me:$LINENO: result: $ac_file" >&5
2239 echo "${ECHO_T}$ac_file" >&6
2240
2241 # Check the compiler produces executables we can run.  If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2244 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2245 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2246 # If not cross compiling, check that we can run a simple program.
2247 if test "$cross_compiling" != yes; then
2248   if { ac_try='./$ac_file'
2249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250   (eval $ac_try) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }; }; then
2254     cross_compiling=no
2255   else
2256     if test "$cross_compiling" = maybe; then
2257         cross_compiling=yes
2258     else
2259         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2260 If you meant to cross compile, use \`--host'.
2261 See \`config.log' for more details." >&5
2262 echo "$as_me: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&2;}
2265    { (exit 1); exit 1; }; }
2266     fi
2267   fi
2268 fi
2269 echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6
2271
2272 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2273 ac_clean_files=$ac_clean_files_save
2274 # Check the compiler produces executables we can run.  If not, either
2275 # the compiler is broken, or we cross compile.
2276 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2277 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2278 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2279 echo "${ECHO_T}$cross_compiling" >&6
2280
2281 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2282 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284   (eval $ac_link) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }; then
2288   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe'), while it won't with
2291 # `rm'.
2292 for ac_file in conftest.exe conftest conftest.*; do
2293   test -f "$ac_file" || continue
2294   case $ac_file in
2295     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2296     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297           export ac_cv_exeext
2298           break;;
2299     * ) break;;
2300   esac
2301 done
2302 else
2303   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&2;}
2307    { (exit 1); exit 1; }; }
2308 fi
2309
2310 rm -f conftest$ac_cv_exeext
2311 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312 echo "${ECHO_T}$ac_cv_exeext" >&6
2313
2314 rm -f conftest.$ac_ext
2315 EXEEXT=$ac_cv_exeext
2316 ac_exeext=$EXEEXT
2317 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2319 if test "${ac_cv_objext+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   cat >conftest.$ac_ext <<_ACEOF
2323 /* confdefs.h.  */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h.  */
2328
2329 int
2330 main ()
2331 {
2332
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 rm -f conftest.o conftest.obj
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339   (eval $ac_compile) 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; then
2343   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2344   case $ac_file in
2345     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2346     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347        break;;
2348   esac
2349 done
2350 else
2351   echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2357 See \`config.log' for more details." >&2;}
2358    { (exit 1); exit 1; }; }
2359 fi
2360
2361 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362 fi
2363 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2364 echo "${ECHO_T}$ac_cv_objext" >&6
2365 OBJEXT=$ac_cv_objext
2366 ac_objext=$OBJEXT
2367 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2368 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2369 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h.  */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h.  */
2378
2379 int
2380 main ()
2381 {
2382 #ifndef __GNUC__
2383        choke me
2384 #endif
2385
2386   ;
2387   return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392   (eval $ac_compile) 2>conftest.er1
2393   ac_status=$?
2394   grep -v '^ *+' conftest.er1 >conftest.err
2395   rm -f conftest.er1
2396   cat conftest.err >&5
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); } &&
2399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411   ac_compiler_gnu=yes
2412 else
2413   echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_compiler_gnu=no
2417 fi
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 CFLAGS="-g"
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2463          { ac_try='test -s conftest.$ac_objext'
2464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465   (eval $ac_try) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; }; then
2469   ac_cv_prog_cc_g=yes
2470 else
2471   echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2473
2474 ac_cv_prog_cc_g=no
2475 fi
2476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 fi
2478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480 if test "$ac_test_CFLAGS" = set; then
2481   CFLAGS=$ac_save_CFLAGS
2482 elif test $ac_cv_prog_cc_g = yes; then
2483   if test "$GCC" = yes; then
2484     CFLAGS="-g -O2"
2485   else
2486     CFLAGS="-g"
2487   fi
2488 else
2489   if test "$GCC" = yes; then
2490     CFLAGS="-O2"
2491   else
2492     CFLAGS=
2493   fi
2494 fi
2495 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   ac_cv_prog_cc_stdc=no
2501 ac_save_CC=$CC
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508 #include <stdarg.h>
2509 #include <stdio.h>
2510 #include <sys/types.h>
2511 #include <sys/stat.h>
2512 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2513 struct buf { int x; };
2514 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2515 static char *e (p, i)
2516      char **p;
2517      int i;
2518 {
2519   return p[i];
2520 }
2521 static char *f (char * (*g) (char **, int), char **p, ...)
2522 {
2523   char *s;
2524   va_list v;
2525   va_start (v,p);
2526   s = g (p, va_arg (v,int));
2527   va_end (v);
2528   return s;
2529 }
2530
2531 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2532    function prototypes and stuff, but not '\xHH' hex character constants.
2533    These don't provoke an error unfortunately, instead are silently treated
2534    as 'x'.  The following induces an error, until -std1 is added to get
2535    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2536    array size at least.  It's necessary to write '\x00'==0 to get something
2537    that's true only with -std1.  */
2538 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539
2540 int test (int i, double x);
2541 struct s1 {int (*f) (int a);};
2542 struct s2 {int (*f) (double a);};
2543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544 int argc;
2545 char **argv;
2546 int
2547 main ()
2548 {
2549 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2550   ;
2551   return 0;
2552 }
2553 _ACEOF
2554 # Don't try gcc -ansi; that turns off useful extensions and
2555 # breaks some systems' header files.
2556 # AIX                   -qlanglvl=ansi
2557 # Ultrix and OSF/1      -std1
2558 # HP-UX 10.20 and later -Ae
2559 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2560 # SVR4                  -Xc -D__EXTENSIONS__
2561 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562 do
2563   CC="$ac_save_CC $ac_arg"
2564   rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566   (eval $ac_compile) 2>conftest.er1
2567   ac_status=$?
2568   grep -v '^ *+' conftest.er1 >conftest.err
2569   rm -f conftest.er1
2570   cat conftest.err >&5
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } &&
2573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2579          { ac_try='test -s conftest.$ac_objext'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585   ac_cv_prog_cc_stdc=$ac_arg
2586 break
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 fi
2592 rm -f conftest.err conftest.$ac_objext
2593 done
2594 rm -f conftest.$ac_ext conftest.$ac_objext
2595 CC=$ac_save_CC
2596
2597 fi
2598
2599 case "x$ac_cv_prog_cc_stdc" in
2600   x|xno)
2601     echo "$as_me:$LINENO: result: none needed" >&5
2602 echo "${ECHO_T}none needed" >&6 ;;
2603   *)
2604     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2606     CC="$CC $ac_cv_prog_cc_stdc" ;;
2607 esac
2608
2609 # Some people use a C++ compiler to compile C.  Since we use `exit',
2610 # in C++ we need to declare it.  In case someone uses the same compiler
2611 # for both compiling C and C++ we need to have the C++ compiler decide
2612 # the declaration of exit, since it's the most demanding environment.
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #ifndef __cplusplus
2615   choke me
2616 #endif
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } &&
2627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   for ac_declaration in \
2640    '' \
2641    'extern "C" void std::exit (int) throw (); using std::exit;' \
2642    'extern "C" void std::exit (int); using std::exit;' \
2643    'extern "C" void exit (int) throw ();' \
2644    'extern "C" void exit (int);' \
2645    'void exit (int);'
2646 do
2647   cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653 $ac_declaration
2654 #include <stdlib.h>
2655 int
2656 main ()
2657 {
2658 exit (42);
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665   (eval $ac_compile) 2>conftest.er1
2666   ac_status=$?
2667   grep -v '^ *+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2678          { ac_try='test -s conftest.$ac_objext'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; }; then
2684   :
2685 else
2686   echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 continue
2690 fi
2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692   cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698 $ac_declaration
2699 int
2700 main ()
2701 {
2702 exit (42);
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709   (eval $ac_compile) 2>conftest.er1
2710   ac_status=$?
2711   grep -v '^ *+' conftest.er1 >conftest.err
2712   rm -f conftest.er1
2713   cat conftest.err >&5
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } &&
2716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   break
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 fi
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 done
2736 rm -f conftest*
2737 if test -n "$ac_declaration"; then
2738   echo '#ifdef __cplusplus' >>confdefs.h
2739   echo $ac_declaration      >>confdefs.h
2740   echo '#endif'             >>confdefs.h
2741 fi
2742
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 fi
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_ext=c
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 DEPDIR="${am__leading_dot}deps"
2755
2756           ac_config_commands="$ac_config_commands depfiles"
2757
2758
2759 am_make=${MAKE-make}
2760 cat > confinc << 'END'
2761 am__doit:
2762         @echo done
2763 .PHONY: am__doit
2764 END
2765 # If we don't find an include directive, just comment out the code.
2766 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2768 am__include="#"
2769 am__quote=
2770 _am_result=none
2771 # First try GNU make style include.
2772 echo "include confinc" > confmf
2773 # We grep out `Entering directory' and `Leaving directory'
2774 # messages which can occur if `w' ends up in MAKEFLAGS.
2775 # In particular we don't look at `^make:' because GNU make might
2776 # be invoked under some other name (usually "gmake"), in which
2777 # case it prints its new name instead of `make'.
2778 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2779    am__include=include
2780    am__quote=
2781    _am_result=GNU
2782 fi
2783 # Now try BSD make style include.
2784 if test "$am__include" = "#"; then
2785    echo '.include "confinc"' > confmf
2786    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787       am__include=.include
2788       am__quote="\""
2789       _am_result=BSD
2790    fi
2791 fi
2792
2793
2794 echo "$as_me:$LINENO: result: $_am_result" >&5
2795 echo "${ECHO_T}$_am_result" >&6
2796 rm -f confinc confmf
2797
2798 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799 if test "${enable_dependency_tracking+set}" = set; then
2800   enableval="$enable_dependency_tracking"
2801
2802 fi;
2803 if test "x$enable_dependency_tracking" != xno; then
2804   am_depcomp="$ac_aux_dir/depcomp"
2805   AMDEPBACKSLASH='\'
2806 fi
2807
2808
2809 if test "x$enable_dependency_tracking" != xno; then
2810   AMDEP_TRUE=
2811   AMDEP_FALSE='#'
2812 else
2813   AMDEP_TRUE='#'
2814   AMDEP_FALSE=
2815 fi
2816
2817
2818
2819
2820 depcc="$CC"   am_compiler_list=
2821
2822 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2823 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2824 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2825   echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2828   # We make a subdir and do the tests there.  Otherwise we can end up
2829   # making bogus files that we don't know about and never remove.  For
2830   # instance it was reported that on HP-UX the gcc test will end up
2831   # making a dummy file named `D' -- because `-MD' means `put the output
2832   # in D'.
2833   mkdir conftest.dir
2834   # Copy depcomp to subdir because otherwise we won't find it if we're
2835   # using a relative directory.
2836   cp "$am_depcomp" conftest.dir
2837   cd conftest.dir
2838   # We will build objects and dependencies in a subdirectory because
2839   # it helps to detect inapplicable dependency modes.  For instance
2840   # both Tru64's cc and ICC support -MD to output dependencies as a
2841   # side effect of compilation, but ICC will put the dependencies in
2842   # the current directory while Tru64 will put them in the object
2843   # directory.
2844   mkdir sub
2845
2846   am_cv_CC_dependencies_compiler_type=none
2847   if test "$am_compiler_list" = ""; then
2848      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2849   fi
2850   for depmode in $am_compiler_list; do
2851     # Setup a source with many dependencies, because some compilers
2852     # like to wrap large dependency lists on column 80 (with \), and
2853     # we should not choose a depcomp mode which is confused by this.
2854     #
2855     # We need to recreate these files for each test, as the compiler may
2856     # overwrite some of them when testing with obscure command lines.
2857     # This happens at least with the AIX C compiler.
2858     : > sub/conftest.c
2859     for i in 1 2 3 4 5 6; do
2860       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2861       : > sub/conftst$i.h
2862     done
2863     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2864
2865     case $depmode in
2866     nosideeffect)
2867       # after this tag, mechanisms are not by side-effect, so they'll
2868       # only be used when explicitly requested
2869       if test "x$enable_dependency_tracking" = xyes; then
2870         continue
2871       else
2872         break
2873       fi
2874       ;;
2875     none) break ;;
2876     esac
2877     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2878     # mode.  It turns out that the SunPro C++ compiler does not properly
2879     # handle `-M -o', and we need to detect this.
2880     if depmode=$depmode \
2881        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2882        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2883        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2884          >/dev/null 2>conftest.err &&
2885        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2886        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2887        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2888       # icc doesn't choke on unknown options, it will just issue warnings
2889       # (even with -Werror).  So we grep stderr for any message
2890       # that says an option was ignored.
2891       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2892         am_cv_CC_dependencies_compiler_type=$depmode
2893         break
2894       fi
2895     fi
2896   done
2897
2898   cd ..
2899   rm -rf conftest.dir
2900 else
2901   am_cv_CC_dependencies_compiler_type=none
2902 fi
2903
2904 fi
2905 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2906 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2908
2909
2910
2911 if
2912   test "x$enable_dependency_tracking" != xno \
2913   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2914   am__fastdepCC_TRUE=
2915   am__fastdepCC_FALSE='#'
2916 else
2917   am__fastdepCC_TRUE='#'
2918   am__fastdepCC_FALSE=
2919 fi
2920
2921
2922
2923
2924         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2925 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2926 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   ac_check_lib_save_LIBS=$LIBS
2930 LIBS="-lcposix  $LIBS"
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 /* Override any gcc2 internal prototype to avoid an error.  */
2939 #ifdef __cplusplus
2940 extern "C"
2941 #endif
2942 /* We use char because int might match the return type of a gcc2
2943    builtin and then its argument prototype would still apply.  */
2944 char strerror ();
2945 int
2946 main ()
2947 {
2948 strerror ();
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 rm -f conftest.$ac_objext conftest$ac_exeext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955   (eval $ac_link) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } &&
2962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2968          { ac_try='test -s conftest$ac_exeext'
2969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970   (eval $ac_try) 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; }; then
2974   ac_cv_lib_cposix_strerror=yes
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 ac_cv_lib_cposix_strerror=no
2980 fi
2981 rm -f conftest.err conftest.$ac_objext \
2982       conftest$ac_exeext conftest.$ac_ext
2983 LIBS=$ac_check_lib_save_LIBS
2984 fi
2985 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2986 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2987 if test $ac_cv_lib_cposix_strerror = yes; then
2988   LIBS="$LIBS -lcposix"
2989 fi
2990
2991
2992
2993
2994
2995
2996 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2997 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2998 if test "${am_cv_prog_cc_stdc+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   am_cv_prog_cc_stdc=no
3002 ac_save_CC="$CC"
3003 # Don't try gcc -ansi; that turns off useful extensions and
3004 # breaks some systems' header files.
3005 # AIX                   -qlanglvl=ansi
3006 # Ultrix and OSF/1      -std1
3007 # HP-UX 10.20 and later -Ae
3008 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3009 # SVR4                  -Xc -D__EXTENSIONS__
3010 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3011 do
3012   CC="$ac_save_CC $ac_arg"
3013   cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 #include <stdarg.h>
3020 #include <stdio.h>
3021 #include <sys/types.h>
3022 #include <sys/stat.h>
3023 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3024 struct buf { int x; };
3025 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3026 static char *e (p, i)
3027      char **p;
3028      int i;
3029 {
3030   return p[i];
3031 }
3032 static char *f (char * (*g) (char **, int), char **p, ...)
3033 {
3034   char *s;
3035   va_list v;
3036   va_start (v,p);
3037   s = g (p, va_arg (v,int));
3038   va_end (v);
3039   return s;
3040 }
3041 int test (int i, double x);
3042 struct s1 {int (*f) (int a);};
3043 struct s2 {int (*f) (double a);};
3044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045 int argc;
3046 char **argv;
3047
3048 int
3049 main ()
3050 {
3051
3052 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3053
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060   (eval $ac_compile) 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
3073          { ac_try='test -s conftest.$ac_objext'
3074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075   (eval $ac_try) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; }; then
3079   am_cv_prog_cc_stdc="$ac_arg"; break
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 fi
3085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3086 done
3087 CC="$ac_save_CC"
3088
3089 fi
3090
3091 if test -z "$am_cv_prog_cc_stdc"; then
3092   echo "$as_me:$LINENO: result: none needed" >&5
3093 echo "${ECHO_T}none needed" >&6
3094 else
3095   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3096 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3097 fi
3098 case "x$am_cv_prog_cc_stdc" in
3099   x|xno) ;;
3100   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3101 esac
3102
3103 ac_ext=c
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3109 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3110 # On Suns, sometimes $CPP names a directory.
3111 if test -n "$CPP" && test -d "$CPP"; then
3112   CPP=
3113 fi
3114 if test -z "$CPP"; then
3115   if test "${ac_cv_prog_CPP+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118       # Double quotes because CPP needs to be expanded
3119     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3120     do
3121       ac_preproc_ok=false
3122 for ac_c_preproc_warn_flag in '' yes
3123 do
3124   # Use a header file that comes with gcc, so configuring glibc
3125   # with a fresh cross-compiler works.
3126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127   # <limits.h> exists even on freestanding compilers.
3128   # On the NeXT, cc -E runs the code through the compiler's parser,
3129   # not just through cpp. "Syntax error" is here to catch this case.
3130   cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3136 #ifdef __STDC__
3137 # include <limits.h>
3138 #else
3139 # include <assert.h>
3140 #endif
3141                      Syntax error
3142 _ACEOF
3143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } >/dev/null; then
3151   if test -s conftest.err; then
3152     ac_cpp_err=$ac_c_preproc_warn_flag
3153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3154   else
3155     ac_cpp_err=
3156   fi
3157 else
3158   ac_cpp_err=yes
3159 fi
3160 if test -z "$ac_cpp_err"; then
3161   :
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166   # Broken: fails on valid input.
3167 continue
3168 fi
3169 rm -f conftest.err conftest.$ac_ext
3170
3171   # OK, works on sane cases.  Now check whether non-existent headers
3172   # can be detected and how.
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179 #include <ac_nonexistent.h>
3180 _ACEOF
3181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } >/dev/null; then
3189   if test -s conftest.err; then
3190     ac_cpp_err=$ac_c_preproc_warn_flag
3191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3192   else
3193     ac_cpp_err=
3194   fi
3195 else
3196   ac_cpp_err=yes
3197 fi
3198 if test -z "$ac_cpp_err"; then
3199   # Broken: success on invalid input.
3200 continue
3201 else
3202   echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205   # Passes both tests.
3206 ac_preproc_ok=:
3207 break
3208 fi
3209 rm -f conftest.err conftest.$ac_ext
3210
3211 done
3212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3213 rm -f conftest.err conftest.$ac_ext
3214 if $ac_preproc_ok; then
3215   break
3216 fi
3217
3218     done
3219     ac_cv_prog_CPP=$CPP
3220
3221 fi
3222   CPP=$ac_cv_prog_CPP
3223 else
3224   ac_cv_prog_CPP=$CPP
3225 fi
3226 echo "$as_me:$LINENO: result: $CPP" >&5
3227 echo "${ECHO_T}$CPP" >&6
3228 ac_preproc_ok=false
3229 for ac_c_preproc_warn_flag in '' yes
3230 do
3231   # Use a header file that comes with gcc, so configuring glibc
3232   # with a fresh cross-compiler works.
3233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234   # <limits.h> exists even on freestanding compilers.
3235   # On the NeXT, cc -E runs the code through the compiler's parser,
3236   # not just through cpp. "Syntax error" is here to catch this case.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #ifdef __STDC__
3244 # include <limits.h>
3245 #else
3246 # include <assert.h>
3247 #endif
3248                      Syntax error
3249 _ACEOF
3250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } >/dev/null; then
3258   if test -s conftest.err; then
3259     ac_cpp_err=$ac_c_preproc_warn_flag
3260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261   else
3262     ac_cpp_err=
3263   fi
3264 else
3265   ac_cpp_err=yes
3266 fi
3267 if test -z "$ac_cpp_err"; then
3268   :
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273   # Broken: fails on valid input.
3274 continue
3275 fi
3276 rm -f conftest.err conftest.$ac_ext
3277
3278   # OK, works on sane cases.  Now check whether non-existent headers
3279   # can be detected and how.
3280   cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286 #include <ac_nonexistent.h>
3287 _ACEOF
3288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3290   ac_status=$?
3291   grep -v '^ *+' conftest.er1 >conftest.err
3292   rm -f conftest.er1
3293   cat conftest.err >&5
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } >/dev/null; then
3296   if test -s conftest.err; then
3297     ac_cpp_err=$ac_c_preproc_warn_flag
3298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299   else
3300     ac_cpp_err=
3301   fi
3302 else
3303   ac_cpp_err=yes
3304 fi
3305 if test -z "$ac_cpp_err"; then
3306   # Broken: success on invalid input.
3307 continue
3308 else
3309   echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312   # Passes both tests.
3313 ac_preproc_ok=:
3314 break
3315 fi
3316 rm -f conftest.err conftest.$ac_ext
3317
3318 done
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3322   :
3323 else
3324   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3325 See \`config.log' for more details." >&5
3326 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3327 See \`config.log' for more details." >&2;}
3328    { (exit 1); exit 1; }; }
3329 fi
3330
3331 ac_ext=c
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336
3337
3338 echo "$as_me:$LINENO: checking for egrep" >&5
3339 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3340 if test "${ac_cv_prog_egrep+set}" = set; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3344     then ac_cv_prog_egrep='grep -E'
3345     else ac_cv_prog_egrep='egrep'
3346     fi
3347 fi
3348 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3349 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3350  EGREP=$ac_cv_prog_egrep
3351
3352
3353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3364                   inttypes.h stdint.h unistd.h
3365 do
3366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3367 echo "$as_me:$LINENO: checking for $ac_header" >&5
3368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h.  */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h.  */
3378 $ac_includes_default
3379
3380 #include <$ac_header>
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384   (eval $ac_compile) 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } &&
3391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
3397          { ac_try='test -s conftest.$ac_objext'
3398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399   (eval $ac_try) 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }; }; then
3403   eval "$as_ac_Header=yes"
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 eval "$as_ac_Header=no"
3409 fi
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411 fi
3412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3415   cat >>confdefs.h <<_ACEOF
3416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3417 _ACEOF
3418
3419 fi
3420
3421 done
3422
3423
3424
3425
3426 echo "$as_me:$LINENO: checking for function prototypes" >&5
3427 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3428 if test "$am_cv_prog_cc_stdc" != no; then
3429   echo "$as_me:$LINENO: result: yes" >&5
3430 echo "${ECHO_T}yes" >&6
3431
3432 cat >>confdefs.h <<\_ACEOF
3433 #define PROTOTYPES 1
3434 _ACEOF
3435
3436   U= ANSI2KNR=
3437 else
3438   echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3440   U=_ ANSI2KNR=./ansi2knr
3441 fi
3442 # Ensure some checks needed by ansi2knr itself.
3443 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3445 if test "${ac_cv_header_stdc+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454 #include <stdlib.h>
3455 #include <stdarg.h>
3456 #include <string.h>
3457 #include <float.h>
3458
3459 int
3460 main ()
3461 {
3462
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469   (eval $ac_compile) 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } &&
3476          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
3482          { ac_try='test -s conftest.$ac_objext'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   ac_cv_header_stdc=yes
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 ac_cv_header_stdc=no
3494 fi
3495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496
3497 if test $ac_cv_header_stdc = yes; then
3498   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #include <string.h>
3506
3507 _ACEOF
3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509   $EGREP "memchr" >/dev/null 2>&1; then
3510   :
3511 else
3512   ac_cv_header_stdc=no
3513 fi
3514 rm -f conftest*
3515
3516 fi
3517
3518 if test $ac_cv_header_stdc = yes; then
3519   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3520   cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <stdlib.h>
3527
3528 _ACEOF
3529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3530   $EGREP "free" >/dev/null 2>&1; then
3531   :
3532 else
3533   ac_cv_header_stdc=no
3534 fi
3535 rm -f conftest*
3536
3537 fi
3538
3539 if test $ac_cv_header_stdc = yes; then
3540   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3541   if test "$cross_compiling" = yes; then
3542   :
3543 else
3544   cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h.  */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h.  */
3550 #include <ctype.h>
3551 #if ((' ' & 0x0FF) == 0x020)
3552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3554 #else
3555 # define ISLOWER(c) \
3556                    (('a' <= (c) && (c) <= 'i') \
3557                      || ('j' <= (c) && (c) <= 'r') \
3558                      || ('s' <= (c) && (c) <= 'z'))
3559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3560 #endif
3561
3562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3563 int
3564 main ()
3565 {
3566   int i;
3567   for (i = 0; i < 256; i++)
3568     if (XOR (islower (i), ISLOWER (i))
3569         || toupper (i) != TOUPPER (i))
3570       exit(2);
3571   exit (0);
3572 }
3573 _ACEOF
3574 rm -f conftest$ac_exeext
3575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3576   (eval $ac_link) 2>&5
3577   ac_status=$?
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; }; then
3585   :
3586 else
3587   echo "$as_me: program exited with status $ac_status" >&5
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 ( exit $ac_status )
3592 ac_cv_header_stdc=no
3593 fi
3594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3595 fi
3596 fi
3597 fi
3598 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3599 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3600 if test $ac_cv_header_stdc = yes; then
3601
3602 cat >>confdefs.h <<\_ACEOF
3603 #define STDC_HEADERS 1
3604 _ACEOF
3605
3606 fi
3607
3608
3609 for ac_header in string.h
3610 do
3611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3613   echo "$as_me:$LINENO: checking for $ac_header" >&5
3614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 fi
3618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3620 else
3621   # Is the header compilable?
3622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630 $ac_includes_default
3631 #include <$ac_header>
3632 _ACEOF
3633 rm -f conftest.$ac_objext
3634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3635   (eval $ac_compile) 2>conftest.er1
3636   ac_status=$?
3637   grep -v '^ *+' conftest.er1 >conftest.err
3638   rm -f conftest.er1
3639   cat conftest.err >&5
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); } &&
3642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
3648          { ac_try='test -s conftest.$ac_objext'
3649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650   (eval $ac_try) 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); }; }; then
3654   ac_header_compiler=yes
3655 else
3656   echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 ac_header_compiler=no
3660 fi
3661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3663 echo "${ECHO_T}$ac_header_compiler" >&6
3664
3665 # Is the header present?
3666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #include <$ac_header>
3675 _ACEOF
3676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3678   ac_status=$?
3679   grep -v '^ *+' conftest.er1 >conftest.err
3680   rm -f conftest.er1
3681   cat conftest.err >&5
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } >/dev/null; then
3684   if test -s conftest.err; then
3685     ac_cpp_err=$ac_c_preproc_warn_flag
3686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3687   else
3688     ac_cpp_err=
3689   fi
3690 else
3691   ac_cpp_err=yes
3692 fi
3693 if test -z "$ac_cpp_err"; then
3694   ac_header_preproc=yes
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699   ac_header_preproc=no
3700 fi
3701 rm -f conftest.err conftest.$ac_ext
3702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3703 echo "${ECHO_T}$ac_header_preproc" >&6
3704
3705 # So?  What about this header?
3706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3707   yes:no: )
3708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3712     ac_header_preproc=yes
3713     ;;
3714   no:yes:* )
3715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3727     (
3728       cat <<\_ASBOX
3729 ## ------------------------------------------ ##
3730 ## Report this to the AC_PACKAGE_NAME lists.  ##
3731 ## ------------------------------------------ ##
3732 _ASBOX
3733     ) |
3734       sed "s/^/$as_me: WARNING:     /" >&2
3735     ;;
3736 esac
3737 echo "$as_me:$LINENO: checking for $ac_header" >&5
3738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   eval "$as_ac_Header=\$ac_header_preproc"
3743 fi
3744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3746
3747 fi
3748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3749   cat >>confdefs.h <<_ACEOF
3750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3751 _ACEOF
3752
3753 fi
3754
3755 done
3756
3757
3758 if test "x$U" != "x"; then
3759   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3760 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3761    { (exit 1); exit 1; }; }
3762 fi
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3772   CPP=
3773 fi
3774 if test -z "$CPP"; then
3775   if test "${ac_cv_prog_CPP+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778       # Double quotes because CPP needs to be expanded
3779     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780     do
3781       ac_preproc_ok=false
3782 for ac_c_preproc_warn_flag in '' yes
3783 do
3784   # Use a header file that comes with gcc, so configuring glibc
3785   # with a fresh cross-compiler works.
3786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787   # <limits.h> exists even on freestanding compilers.
3788   # On the NeXT, cc -E runs the code through the compiler's parser,
3789   # not just through cpp. "Syntax error" is here to catch this case.
3790   cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h.  */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h.  */
3796 #ifdef __STDC__
3797 # include <limits.h>
3798 #else
3799 # include <assert.h>
3800 #endif
3801                      Syntax error
3802 _ACEOF
3803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3805   ac_status=$?
3806   grep -v '^ *+' conftest.er1 >conftest.err
3807   rm -f conftest.er1
3808   cat conftest.err >&5
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); } >/dev/null; then
3811   if test -s conftest.err; then
3812     ac_cpp_err=$ac_c_preproc_warn_flag
3813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3814   else
3815     ac_cpp_err=
3816   fi
3817 else
3818   ac_cpp_err=yes
3819 fi
3820 if test -z "$ac_cpp_err"; then
3821   :
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826   # Broken: fails on valid input.
3827 continue
3828 fi
3829 rm -f conftest.err conftest.$ac_ext
3830
3831   # OK, works on sane cases.  Now check whether non-existent headers
3832   # can be detected and how.
3833   cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h.  */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h.  */
3839 #include <ac_nonexistent.h>
3840 _ACEOF
3841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3843   ac_status=$?
3844   grep -v '^ *+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } >/dev/null; then
3849   if test -s conftest.err; then
3850     ac_cpp_err=$ac_c_preproc_warn_flag
3851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3852   else
3853     ac_cpp_err=
3854   fi
3855 else
3856   ac_cpp_err=yes
3857 fi
3858 if test -z "$ac_cpp_err"; then
3859   # Broken: success on invalid input.
3860 continue
3861 else
3862   echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865   # Passes both tests.
3866 ac_preproc_ok=:
3867 break
3868 fi
3869 rm -f conftest.err conftest.$ac_ext
3870
3871 done
3872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873 rm -f conftest.err conftest.$ac_ext
3874 if $ac_preproc_ok; then
3875   break
3876 fi
3877
3878     done
3879     ac_cv_prog_CPP=$CPP
3880
3881 fi
3882   CPP=$ac_cv_prog_CPP
3883 else
3884   ac_cv_prog_CPP=$CPP
3885 fi
3886 echo "$as_me:$LINENO: result: $CPP" >&5
3887 echo "${ECHO_T}$CPP" >&6
3888 ac_preproc_ok=false
3889 for ac_c_preproc_warn_flag in '' yes
3890 do
3891   # Use a header file that comes with gcc, so configuring glibc
3892   # with a fresh cross-compiler works.
3893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894   # <limits.h> exists even on freestanding compilers.
3895   # On the NeXT, cc -E runs the code through the compiler's parser,
3896   # not just through cpp. "Syntax error" is here to catch this case.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #ifdef __STDC__
3904 # include <limits.h>
3905 #else
3906 # include <assert.h>
3907 #endif
3908                      Syntax error
3909 _ACEOF
3910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3912   ac_status=$?
3913   grep -v '^ *+' conftest.er1 >conftest.err
3914   rm -f conftest.er1
3915   cat conftest.err >&5
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } >/dev/null; then
3918   if test -s conftest.err; then
3919     ac_cpp_err=$ac_c_preproc_warn_flag
3920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3921   else
3922     ac_cpp_err=
3923   fi
3924 else
3925   ac_cpp_err=yes
3926 fi
3927 if test -z "$ac_cpp_err"; then
3928   :
3929 else
3930   echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933   # Broken: fails on valid input.
3934 continue
3935 fi
3936 rm -f conftest.err conftest.$ac_ext
3937
3938   # OK, works on sane cases.  Now check whether non-existent headers
3939   # can be detected and how.
3940   cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946 #include <ac_nonexistent.h>
3947 _ACEOF
3948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3950   ac_status=$?
3951   grep -v '^ *+' conftest.er1 >conftest.err
3952   rm -f conftest.er1
3953   cat conftest.err >&5
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } >/dev/null; then
3956   if test -s conftest.err; then
3957     ac_cpp_err=$ac_c_preproc_warn_flag
3958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3959   else
3960     ac_cpp_err=
3961   fi
3962 else
3963   ac_cpp_err=yes
3964 fi
3965 if test -z "$ac_cpp_err"; then
3966   # Broken: success on invalid input.
3967 continue
3968 else
3969   echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972   # Passes both tests.
3973 ac_preproc_ok=:
3974 break
3975 fi
3976 rm -f conftest.err conftest.$ac_ext
3977
3978 done
3979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3980 rm -f conftest.err conftest.$ac_ext
3981 if $ac_preproc_ok; then
3982   :
3983 else
3984   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3985 See \`config.log' for more details." >&5
3986 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3987 See \`config.log' for more details." >&2;}
3988    { (exit 1); exit 1; }; }
3989 fi
3990
3991 ac_ext=c
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996
3997 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3998 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3999 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4000 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4001   echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003   cat >conftest.make <<\_ACEOF
4004 all:
4005         @echo 'ac_maketemp="$(MAKE)"'
4006 _ACEOF
4007 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4008 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4009 if test -n "$ac_maketemp"; then
4010   eval ac_cv_prog_make_${ac_make}_set=yes
4011 else
4012   eval ac_cv_prog_make_${ac_make}_set=no
4013 fi
4014 rm -f conftest.make
4015 fi
4016 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4017   echo "$as_me:$LINENO: result: yes" >&5
4018 echo "${ECHO_T}yes" >&6
4019   SET_MAKE=
4020 else
4021   echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4023   SET_MAKE="MAKE=${MAKE-make}"
4024 fi
4025
4026 # Find a good install program.  We prefer a C program (faster),
4027 # so one script is as good as another.  But avoid the broken or
4028 # incompatible versions:
4029 # SysV /etc/install, /usr/sbin/install
4030 # SunOS /usr/etc/install
4031 # IRIX /sbin/install
4032 # AIX /bin/install
4033 # AmigaOS /C/install, which installs bootblocks on floppy discs
4034 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4035 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4036 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4037 # OS/2's system install, which has a completely different semantic
4038 # ./install, which can be erroneously created by make from ./install.sh.
4039 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4040 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4041 if test -z "$INSTALL"; then
4042 if test "${ac_cv_path_install+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4047 do
4048   IFS=$as_save_IFS
4049   test -z "$as_dir" && as_dir=.
4050   # Account for people who put trailing slashes in PATH elements.
4051 case $as_dir/ in
4052   ./ | .// | /cC/* | \
4053   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4054   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4055   /usr/ucb/* ) ;;
4056   *)
4057     # OSF1 and SCO ODT 3.0 have their own names for install.
4058     # Don't use installbsd from OSF since it installs stuff as root
4059     # by default.
4060     for ac_prog in ginstall scoinst install; do
4061       for ac_exec_ext in '' $ac_executable_extensions; do
4062         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4063           if test $ac_prog = install &&
4064             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4065             # AIX install.  It has an incompatible calling convention.
4066             :
4067           elif test $ac_prog = install &&
4068             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4069             # program-specific install script used by HP pwplus--don't use.
4070             :
4071           else
4072             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4073             break 3
4074           fi
4075         fi
4076       done
4077     done
4078     ;;
4079 esac
4080 done
4081
4082
4083 fi
4084   if test "${ac_cv_path_install+set}" = set; then
4085     INSTALL=$ac_cv_path_install
4086   else
4087     # As a last resort, use the slow shell script.  We don't cache a
4088     # path for INSTALL within a source directory, because that will
4089     # break other packages using the cache if that directory is
4090     # removed, or if the path is relative.
4091     INSTALL=$ac_install_sh
4092   fi
4093 fi
4094 echo "$as_me:$LINENO: result: $INSTALL" >&5
4095 echo "${ECHO_T}$INSTALL" >&6
4096
4097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4098 # It thinks the first close brace ends the variable substitution.
4099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4100
4101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4102
4103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4104
4105 if test -n "$ac_tool_prefix"; then
4106   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4107 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4108 echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110 if test "${ac_cv_prog_RANLIB+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   if test -n "$RANLIB"; then
4114   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119   IFS=$as_save_IFS
4120   test -z "$as_dir" && as_dir=.
4121   for ac_exec_ext in '' $ac_executable_extensions; do
4122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128 done
4129
4130 fi
4131 fi
4132 RANLIB=$ac_cv_prog_RANLIB
4133 if test -n "$RANLIB"; then
4134   echo "$as_me:$LINENO: result: $RANLIB" >&5
4135 echo "${ECHO_T}$RANLIB" >&6
4136 else
4137   echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4139 fi
4140
4141 fi
4142 if test -z "$ac_cv_prog_RANLIB"; then
4143   ac_ct_RANLIB=$RANLIB
4144   # Extract the first word of "ranlib", so it can be a program name with args.
4145 set dummy ranlib; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -n "$ac_ct_RANLIB"; then
4152   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161     ac_cv_prog_ac_ct_RANLIB="ranlib"
4162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167
4168   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4169 fi
4170 fi
4171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4172 if test -n "$ac_ct_RANLIB"; then
4173   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4174 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4175 else
4176   echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4178 fi
4179
4180   RANLIB=$ac_ct_RANLIB
4181 else
4182   RANLIB="$ac_cv_prog_RANLIB"
4183 fi
4184
4185 if test -n "$ac_tool_prefix"; then
4186   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}ar; ac_word=$2
4188 echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190 if test "${ac_cv_prog_AR+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   if test -n "$AR"; then
4194   ac_cv_prog_AR="$AR" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201   for ac_exec_ext in '' $ac_executable_extensions; do
4202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203     ac_cv_prog_AR="${ac_tool_prefix}ar"
4204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208 done
4209
4210 fi
4211 fi
4212 AR=$ac_cv_prog_AR
4213 if test -n "$AR"; then
4214   echo "$as_me:$LINENO: result: $AR" >&5
4215 echo "${ECHO_T}$AR" >&6
4216 else
4217   echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4219 fi
4220
4221 fi
4222 if test -z "$ac_cv_prog_AR"; then
4223   ac_ct_AR=$AR
4224   # Extract the first word of "ar", so it can be a program name with args.
4225 set dummy ar; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   if test -n "$ac_ct_AR"; then
4232   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237   IFS=$as_save_IFS
4238   test -z "$as_dir" && as_dir=.
4239   for ac_exec_ext in '' $ac_executable_extensions; do
4240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241     ac_cv_prog_ac_ct_AR="ar"
4242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243     break 2
4244   fi
4245 done
4246 done
4247
4248   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4249 fi
4250 fi
4251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4252 if test -n "$ac_ct_AR"; then
4253   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4254 echo "${ECHO_T}$ac_ct_AR" >&6
4255 else
4256   echo "$as_me:$LINENO: result: no" >&5
4257 echo "${ECHO_T}no" >&6
4258 fi
4259
4260   AR=$ac_ct_AR
4261 else
4262   AR="$ac_cv_prog_AR"
4263 fi
4264
4265
4266 echo "$as_me:$LINENO: checking for inline" >&5
4267 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4268 if test "${ac_cv_c_inline+set}" = set; then
4269   echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271   ac_cv_c_inline=no
4272 for ac_kw in inline __inline__ __inline; do
4273   cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279 #ifndef __cplusplus
4280 typedef int foo_t;
4281 static $ac_kw foo_t static_foo () {return 0; }
4282 $ac_kw foo_t foo () {return 0; }
4283 #endif
4284
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288   (eval $ac_compile) 2>conftest.er1
4289   ac_status=$?
4290   grep -v '^ *+' conftest.er1 >conftest.err
4291   rm -f conftest.er1
4292   cat conftest.err >&5
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } &&
4295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
4301          { ac_try='test -s conftest.$ac_objext'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; }; then
4307   ac_cv_c_inline=$ac_kw; break
4308 else
4309   echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 fi
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 done
4315
4316 fi
4317 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4318 echo "${ECHO_T}$ac_cv_c_inline" >&6
4319
4320
4321 case $ac_cv_c_inline in
4322   inline | yes) ;;
4323   *)
4324     case $ac_cv_c_inline in
4325       no) ac_val=;;
4326       *) ac_val=$ac_cv_c_inline;;
4327     esac
4328     cat >>confdefs.h <<_ACEOF
4329 #ifndef __cplusplus
4330 #define inline $ac_val
4331 #endif
4332 _ACEOF
4333     ;;
4334 esac
4335
4336 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4337 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4338 if test "${ac_cv_c_const+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347
4348 int
4349 main ()
4350 {
4351 /* FIXME: Include the comments suggested by Paul. */
4352 #ifndef __cplusplus
4353   /* Ultrix mips cc rejects this.  */
4354   typedef int charset[2];
4355   const charset x;
4356   /* SunOS 4.1.1 cc rejects this.  */
4357   char const *const *ccp;
4358   char **p;
4359   /* NEC SVR4.0.2 mips cc rejects this.  */
4360   struct point {int x, y;};
4361   static struct point const zero = {0,0};
4362   /* AIX XL C 1.02.0.0 rejects this.
4363      It does not let you subtract one const X* pointer from another in
4364      an arm of an if-expression whose if-part is not a constant
4365      expression */
4366   const char *g = "string";
4367   ccp = &g + (g ? g-g : 0);
4368   /* HPUX 7.0 cc rejects these. */
4369   ++ccp;
4370   p = (char**) ccp;
4371   ccp = (char const *const *) p;
4372   { /* SCO 3.2v4 cc rejects this.  */
4373     char *t;
4374     char const *s = 0 ? (char *) 0 : (char const *) 0;
4375
4376     *t++ = 0;
4377   }
4378   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4379     int x[] = {25, 17};
4380     const int *foo = &x[0];
4381     ++foo;
4382   }
4383   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4384     typedef const int *iptr;
4385     iptr p = 0;
4386     ++p;
4387   }
4388   { /* AIX XL C 1.02.0.0 rejects this saying
4389        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4390     struct s { int j; const int *ap[3]; };
4391     struct s *b; b->j = 5;
4392   }
4393   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4394     const int foo = 10;
4395   }
4396 #endif
4397
4398   ;
4399   return 0;
4400 }
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404   (eval $ac_compile) 2>conftest.er1
4405   ac_status=$?
4406   grep -v '^ *+' conftest.er1 >conftest.err
4407   rm -f conftest.er1
4408   cat conftest.err >&5
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } &&
4411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
4417          { ac_try='test -s conftest.$ac_objext'
4418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419   (eval $ac_try) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; }; then
4423   ac_cv_c_const=yes
4424 else
4425   echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 ac_cv_c_const=no
4429 fi
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 fi
4432 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4433 echo "${ECHO_T}$ac_cv_c_const" >&6
4434 if test $ac_cv_c_const = no; then
4435
4436 cat >>confdefs.h <<\_ACEOF
4437 #define const
4438 _ACEOF
4439
4440 fi
4441
4442
4443 # Check whether --enable-largefile or --disable-largefile was given.
4444 if test "${enable_largefile+set}" = set; then
4445   enableval="$enable_largefile"
4446
4447 fi;
4448 if test "$enable_largefile" != no; then
4449
4450   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4451 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4452 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   ac_cv_sys_largefile_CC=no
4456      if test "$GCC" != yes; then
4457        ac_save_CC=$CC
4458        while :; do
4459          # IRIX 6.2 and later do not support large files by default,
4460          # so use the C compiler's -n32 option if that helps.
4461          cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467 #include <sys/types.h>
4468  /* Check that off_t can represent 2**63 - 1 correctly.
4469     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4470     since some C++ compilers masquerading as C compilers
4471     incorrectly reject 9223372036854775807.  */
4472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4473   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4474                        && LARGE_OFF_T % 2147483647 == 1)
4475                       ? 1 : -1];
4476 int
4477 main ()
4478 {
4479
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484          rm -f conftest.$ac_objext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486   (eval $ac_compile) 2>conftest.er1
4487   ac_status=$?
4488   grep -v '^ *+' conftest.er1 >conftest.err
4489   rm -f conftest.er1
4490   cat conftest.err >&5
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); } &&
4493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495   (eval $ac_try) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; } &&
4499          { ac_try='test -s conftest.$ac_objext'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505   break
4506 else
4507   echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510 fi
4511 rm -f conftest.err conftest.$ac_objext
4512          CC="$CC -n32"
4513          rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515   (eval $ac_compile) 2>conftest.er1
4516   ac_status=$?
4517   grep -v '^ *+' conftest.er1 >conftest.err
4518   rm -f conftest.er1
4519   cat conftest.err >&5
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } &&
4522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; } &&
4528          { ac_try='test -s conftest.$ac_objext'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; }; then
4534   ac_cv_sys_largefile_CC=' -n32'; break
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 fi
4540 rm -f conftest.err conftest.$ac_objext
4541          break
4542        done
4543        CC=$ac_save_CC
4544        rm -f conftest.$ac_ext
4545     fi
4546 fi
4547 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4548 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4549   if test "$ac_cv_sys_largefile_CC" != no; then
4550     CC=$CC$ac_cv_sys_largefile_CC
4551   fi
4552
4553   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4554 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4555 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   while :; do
4559   ac_cv_sys_file_offset_bits=no
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <sys/types.h>
4567  /* Check that off_t can represent 2**63 - 1 correctly.
4568     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4569     since some C++ compilers masquerading as C compilers
4570     incorrectly reject 9223372036854775807.  */
4571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4572   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4573                        && LARGE_OFF_T % 2147483647 == 1)
4574                       ? 1 : -1];
4575 int
4576 main ()
4577 {
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585   (eval $ac_compile) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594   (eval $ac_try) 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; } &&
4598          { ac_try='test -s conftest.$ac_objext'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   break
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611   cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h.  */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h.  */
4617 #define _FILE_OFFSET_BITS 64
4618 #include <sys/types.h>
4619  /* Check that off_t can represent 2**63 - 1 correctly.
4620     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4621     since some C++ compilers masquerading as C compilers
4622     incorrectly reject 9223372036854775807.  */
4623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4624   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4625                        && LARGE_OFF_T % 2147483647 == 1)
4626                       ? 1 : -1];
4627 int
4628 main ()
4629 {
4630
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637   (eval $ac_compile) 2>conftest.er1
4638   ac_status=$?
4639   grep -v '^ *+' conftest.er1 >conftest.err
4640   rm -f conftest.er1
4641   cat conftest.err >&5
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); } &&
4644          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; } &&
4650          { ac_try='test -s conftest.$ac_objext'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   ac_cv_sys_file_offset_bits=64; break
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 fi
4662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4663   break
4664 done
4665 fi
4666 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4667 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4668 if test "$ac_cv_sys_file_offset_bits" != no; then
4669
4670 cat >>confdefs.h <<_ACEOF
4671 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4672 _ACEOF
4673
4674 fi
4675 rm -f conftest*
4676   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4677 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4678 if test "${ac_cv_sys_large_files+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   while :; do
4682   ac_cv_sys_large_files=no
4683   cat >conftest.$ac_ext <<_ACEOF
4684 /* confdefs.h.  */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h.  */
4689 #include <sys/types.h>
4690  /* Check that off_t can represent 2**63 - 1 correctly.
4691     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692     since some C++ compilers masquerading as C compilers
4693     incorrectly reject 9223372036854775807.  */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696                        && LARGE_OFF_T % 2147483647 == 1)
4697                       ? 1 : -1];
4698 int
4699 main ()
4700 {
4701
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708   (eval $ac_compile) 2>conftest.er1
4709   ac_status=$?
4710   grep -v '^ *+' conftest.er1 >conftest.err
4711   rm -f conftest.er1
4712   cat conftest.err >&5
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } &&
4715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; } &&
4721          { ac_try='test -s conftest.$ac_objext'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; }; then
4727   break
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 fi
4733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4734   cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h.  */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h.  */
4740 #define _LARGE_FILES 1
4741 #include <sys/types.h>
4742  /* Check that off_t can represent 2**63 - 1 correctly.
4743     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4744     since some C++ compilers masquerading as C compilers
4745     incorrectly reject 9223372036854775807.  */
4746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4747   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4748                        && LARGE_OFF_T % 2147483647 == 1)
4749                       ? 1 : -1];
4750 int
4751 main ()
4752 {
4753
4754   ;
4755   return 0;
4756 }
4757 _ACEOF
4758 rm -f conftest.$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760   (eval $ac_compile) 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } &&
4767          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769   (eval $ac_try) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; } &&
4773          { ac_try='test -s conftest.$ac_objext'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   ac_cv_sys_large_files=1; break
4780 else
4781   echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 fi
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786   break
4787 done
4788 fi
4789 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4790 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4791 if test "$ac_cv_sys_large_files" != no; then
4792
4793 cat >>confdefs.h <<_ACEOF
4794 #define _LARGE_FILES $ac_cv_sys_large_files
4795 _ACEOF
4796
4797 fi
4798 rm -f conftest*
4799 fi
4800
4801
4802 # Extract the first word of "dbx", so it can be a program name with args.
4803 set dummy dbx; ac_word=$2
4804 echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806 if test "${ac_cv_path_DBX+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   case $DBX in
4810   [\\/]* | ?:[\\/]*)
4811   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4812   ;;
4813   *)
4814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819   for ac_exec_ext in '' $ac_executable_extensions; do
4820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826 done
4827
4828   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4829   ;;
4830 esac
4831 fi
4832 DBX=$ac_cv_path_DBX
4833
4834 if test -n "$DBX"; then
4835   echo "$as_me:$LINENO: result: $DBX" >&5
4836 echo "${ECHO_T}$DBX" >&6
4837 else
4838   echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4840 fi
4841
4842 # Extract the first word of "gdb", so it can be a program name with args.
4843 set dummy gdb; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_path_GDB+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   case $GDB in
4850   [\\/]* | ?:[\\/]*)
4851   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4852   ;;
4853   *)
4854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857   IFS=$as_save_IFS
4858   test -z "$as_dir" && as_dir=.
4859   for ac_exec_ext in '' $ac_executable_extensions; do
4860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863     break 2
4864   fi
4865 done
4866 done
4867
4868   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4869   ;;
4870 esac
4871 fi
4872 GDB=$ac_cv_path_GDB
4873
4874 if test -n "$GDB"; then
4875   echo "$as_me:$LINENO: result: $GDB" >&5
4876 echo "${ECHO_T}$GDB" >&6
4877 else
4878   echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4880 fi
4881
4882 # Extract the first word of "sdb", so it can be a program name with args.
4883 set dummy sdb; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_path_SDB+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   case $SDB in
4890   [\\/]* | ?:[\\/]*)
4891   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4892   ;;
4893   *)
4894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897   IFS=$as_save_IFS
4898   test -z "$as_dir" && as_dir=.
4899   for ac_exec_ext in '' $ac_executable_extensions; do
4900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903     break 2
4904   fi
4905 done
4906 done
4907
4908   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4909   ;;
4910 esac
4911 fi
4912 SDB=$ac_cv_path_SDB
4913
4914 if test -n "$SDB"; then
4915   echo "$as_me:$LINENO: result: $SDB" >&5
4916 echo "${ECHO_T}$SDB" >&6
4917 else
4918   echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6
4920 fi
4921
4922
4923 if test $GDB != no ; then
4924         DEBUGGER=$GDB
4925 elif test $DBX != no ; then
4926         DEBUGGER=$DBX
4927 elif test $SDB != no ; then
4928         DEBUGGER=$SDB
4929 else
4930         DEBUGGER=no
4931 fi
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957 for ac_header in inttypes.h
4958 do
4959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4961   echo "$as_me:$LINENO: checking for $ac_header" >&5
4962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 fi
4966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4968 else
4969   # Is the header compilable?
4970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 $ac_includes_default
4979 #include <$ac_header>
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983   (eval $ac_compile) 2>conftest.er1
4984   ac_status=$?
4985   grep -v '^ *+' conftest.er1 >conftest.err
4986   rm -f conftest.er1
4987   cat conftest.err >&5
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); } &&
4990          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992   (eval $ac_try) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; } &&
4996          { ac_try='test -s conftest.$ac_objext'
4997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998   (eval $ac_try) 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); }; }; then
5002   ac_header_compiler=yes
5003 else
5004   echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 ac_header_compiler=no
5008 fi
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5011 echo "${ECHO_T}$ac_header_compiler" >&6
5012
5013 # Is the header present?
5014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 #include <$ac_header>
5023 _ACEOF
5024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5026   ac_status=$?
5027   grep -v '^ *+' conftest.er1 >conftest.err
5028   rm -f conftest.er1
5029   cat conftest.err >&5
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } >/dev/null; then
5032   if test -s conftest.err; then
5033     ac_cpp_err=$ac_c_preproc_warn_flag
5034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5035   else
5036     ac_cpp_err=
5037   fi
5038 else
5039   ac_cpp_err=yes
5040 fi
5041 if test -z "$ac_cpp_err"; then
5042   ac_header_preproc=yes
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047   ac_header_preproc=no
5048 fi
5049 rm -f conftest.err conftest.$ac_ext
5050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5051 echo "${ECHO_T}$ac_header_preproc" >&6
5052
5053 # So?  What about this header?
5054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5055   yes:no: )
5056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5060     ac_header_preproc=yes
5061     ;;
5062   no:yes:* )
5063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5075     (
5076       cat <<\_ASBOX
5077 ## ------------------------------------------ ##
5078 ## Report this to the AC_PACKAGE_NAME lists.  ##
5079 ## ------------------------------------------ ##
5080 _ASBOX
5081     ) |
5082       sed "s/^/$as_me: WARNING:     /" >&2
5083     ;;
5084 esac
5085 echo "$as_me:$LINENO: checking for $ac_header" >&5
5086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   eval "$as_ac_Header=\$ac_header_preproc"
5091 fi
5092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5094
5095 fi
5096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5097   cat >>confdefs.h <<_ACEOF
5098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5099 _ACEOF
5100
5101 fi
5102
5103 done
5104
5105 echo "$as_me:$LINENO: checking for uint32_t" >&5
5106 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5107 if test "${ac_cv_type_uint32_t+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 $ac_includes_default
5117 int
5118 main ()
5119 {
5120 if ((uint32_t *) 0)
5121   return 0;
5122 if (sizeof (uint32_t))
5123   return 0;
5124   ;
5125   return 0;
5126 }
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130   (eval $ac_compile) 2>conftest.er1
5131   ac_status=$?
5132   grep -v '^ *+' conftest.er1 >conftest.err
5133   rm -f conftest.er1
5134   cat conftest.err >&5
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } &&
5137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139   (eval $ac_try) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }; } &&
5143          { ac_try='test -s conftest.$ac_objext'
5144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145   (eval $ac_try) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; }; then
5149   ac_cv_type_uint32_t=yes
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 ac_cv_type_uint32_t=no
5155 fi
5156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5157 fi
5158 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5159 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5160 if test $ac_cv_type_uint32_t = yes; then
5161
5162 cat >>confdefs.h <<\_ACEOF
5163 #define HAVE_C99_INTTYPES 1
5164 _ACEOF
5165
5166 else
5167   echo "$as_me:$LINENO: checking for short" >&5
5168 echo $ECHO_N "checking for short... $ECHO_C" >&6
5169 if test "${ac_cv_type_short+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h.  */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h.  */
5178 $ac_includes_default
5179 int
5180 main ()
5181 {
5182 if ((short *) 0)
5183   return 0;
5184 if (sizeof (short))
5185   return 0;
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192   (eval $ac_compile) 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } &&
5199          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201   (eval $ac_try) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }; } &&
5205          { ac_try='test -s conftest.$ac_objext'
5206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207   (eval $ac_try) 2>&5
5208   ac_status=$?
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); }; }; then
5211   ac_cv_type_short=yes
5212 else
5213   echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 ac_cv_type_short=no
5217 fi
5218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5219 fi
5220 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5221 echo "${ECHO_T}$ac_cv_type_short" >&6
5222
5223 echo "$as_me:$LINENO: checking size of short" >&5
5224 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5225 if test "${ac_cv_sizeof_short+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   if test "$ac_cv_type_short" = yes; then
5229   # The cast to unsigned long works around a bug in the HP C Compiler
5230   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5231   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5232   # This bug is HP SR number 8606223364.
5233   if test "$cross_compiling" = yes; then
5234   # Depending upon the size, compute the lo and hi bounds.
5235 cat >conftest.$ac_ext <<_ACEOF
5236 /* confdefs.h.  */
5237 _ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h.  */
5241 $ac_includes_default
5242 int
5243 main ()
5244 {
5245 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5246 test_array [0] = 0
5247
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254   (eval $ac_compile) 2>conftest.er1
5255   ac_status=$?
5256   grep -v '^ *+' conftest.er1 >conftest.err
5257   rm -f conftest.er1
5258   cat conftest.err >&5
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } &&
5261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; } &&
5267          { ac_try='test -s conftest.$ac_objext'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; }; then
5273   ac_lo=0 ac_mid=0
5274   while :; do
5275     cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h.  */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h.  */
5281 $ac_includes_default
5282 int
5283 main ()
5284 {
5285 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5286 test_array [0] = 0
5287
5288   ;
5289   return 0;
5290 }
5291 _ACEOF
5292 rm -f conftest.$ac_objext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294   (eval $ac_compile) 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } &&
5301          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; } &&
5307          { ac_try='test -s conftest.$ac_objext'
5308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309   (eval $ac_try) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; }; then
5313   ac_hi=$ac_mid; break
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 ac_lo=`expr $ac_mid + 1`
5319                     if test $ac_lo -le $ac_mid; then
5320                       ac_lo= ac_hi=
5321                       break
5322                     fi
5323                     ac_mid=`expr 2 '*' $ac_mid + 1`
5324 fi
5325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5326   done
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337 $ac_includes_default
5338 int
5339 main ()
5340 {
5341 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5342 test_array [0] = 0
5343
5344   ;
5345   return 0;
5346 }
5347 _ACEOF
5348 rm -f conftest.$ac_objext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350   (eval $ac_compile) 2>conftest.er1
5351   ac_status=$?
5352   grep -v '^ *+' conftest.er1 >conftest.err
5353   rm -f conftest.er1
5354   cat conftest.err >&5
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); } &&
5357          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359   (eval $ac_try) 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); }; } &&
5363          { ac_try='test -s conftest.$ac_objext'
5364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365   (eval $ac_try) 2>&5
5366   ac_status=$?
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); }; }; then
5369   ac_hi=-1 ac_mid=-1
5370   while :; do
5371     cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377 $ac_includes_default
5378 int
5379 main ()
5380 {
5381 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5382 test_array [0] = 0
5383
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390   (eval $ac_compile) 2>conftest.er1
5391   ac_status=$?
5392   grep -v '^ *+' conftest.er1 >conftest.err
5393   rm -f conftest.er1
5394   cat conftest.err >&5
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; } &&
5403          { ac_try='test -s conftest.$ac_objext'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; }; then
5409   ac_lo=$ac_mid; break
5410 else
5411   echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 ac_hi=`expr '(' $ac_mid ')' - 1`
5415                        if test $ac_mid -le $ac_hi; then
5416                          ac_lo= ac_hi=
5417                          break
5418                        fi
5419                        ac_mid=`expr 2 '*' $ac_mid`
5420 fi
5421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5422   done
5423 else
5424   echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 ac_lo= ac_hi=
5428 fi
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 fi
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 # Binary search between lo and hi bounds.
5433 while test "x$ac_lo" != "x$ac_hi"; do
5434   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5435   cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441 $ac_includes_default
5442 int
5443 main ()
5444 {
5445 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5446 test_array [0] = 0
5447
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454   (eval $ac_compile) 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } &&
5461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463   (eval $ac_try) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }; } &&
5467          { ac_try='test -s conftest.$ac_objext'
5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469   (eval $ac_try) 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); }; }; then
5473   ac_hi=$ac_mid
5474 else
5475   echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 ac_lo=`expr '(' $ac_mid ')' + 1`
5479 fi
5480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481 done
5482 case $ac_lo in
5483 ?*) ac_cv_sizeof_short=$ac_lo;;
5484 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5485 See \`config.log' for more details." >&5
5486 echo "$as_me: error: cannot compute sizeof (short), 77
5487 See \`config.log' for more details." >&2;}
5488    { (exit 1); exit 1; }; } ;;
5489 esac
5490 else
5491   if test "$cross_compiling" = yes; then
5492   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5493 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5494    { (exit 1); exit 1; }; }
5495 else
5496   cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502 $ac_includes_default
5503 long longval () { return (long) (sizeof (short)); }
5504 unsigned long ulongval () { return (long) (sizeof (short)); }
5505 #include <stdio.h>
5506 #include <stdlib.h>
5507 int
5508 main ()
5509 {
5510
5511   FILE *f = fopen ("conftest.val", "w");
5512   if (! f)
5513     exit (1);
5514   if (((long) (sizeof (short))) < 0)
5515     {
5516       long i = longval ();
5517       if (i != ((long) (sizeof (short))))
5518         exit (1);
5519       fprintf (f, "%ld\n", i);
5520     }
5521   else
5522     {
5523       unsigned long i = ulongval ();
5524       if (i != ((long) (sizeof (short))))
5525         exit (1);
5526       fprintf (f, "%lu\n", i);
5527     }
5528   exit (ferror (f) || fclose (f) != 0);
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536   (eval $ac_link) 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; }; then
5545   ac_cv_sizeof_short=`cat conftest.val`
5546 else
5547   echo "$as_me: program exited with status $ac_status" >&5
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551 ( exit $ac_status )
5552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot compute sizeof (short), 77
5555 See \`config.log' for more details." >&2;}
5556    { (exit 1); exit 1; }; }
5557 fi
5558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 fi
5561 rm -f conftest.val
5562 else
5563   ac_cv_sizeof_short=0
5564 fi
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5567 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5568 cat >>confdefs.h <<_ACEOF
5569 #define SIZEOF_SHORT $ac_cv_sizeof_short
5570 _ACEOF
5571
5572
5573    echo "$as_me:$LINENO: checking for int" >&5
5574 echo $ECHO_N "checking for int... $ECHO_C" >&6
5575 if test "${ac_cv_type_int+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h.  */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h.  */
5584 $ac_includes_default
5585 int
5586 main ()
5587 {
5588 if ((int *) 0)
5589   return 0;
5590 if (sizeof (int))
5591   return 0;
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598   (eval $ac_compile) 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } &&
5605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607   (eval $ac_try) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); }; } &&
5611          { ac_try='test -s conftest.$ac_objext'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   ac_cv_type_int=yes
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 ac_cv_type_int=no
5623 fi
5624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5625 fi
5626 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5627 echo "${ECHO_T}$ac_cv_type_int" >&6
5628
5629 echo "$as_me:$LINENO: checking size of int" >&5
5630 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5631 if test "${ac_cv_sizeof_int+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   if test "$ac_cv_type_int" = yes; then
5635   # The cast to unsigned long works around a bug in the HP C Compiler
5636   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5637   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5638   # This bug is HP SR number 8606223364.
5639   if test "$cross_compiling" = yes; then
5640   # Depending upon the size, compute the lo and hi bounds.
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 $ac_includes_default
5648 int
5649 main ()
5650 {
5651 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5652 test_array [0] = 0
5653
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 rm -f conftest.$ac_objext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660   (eval $ac_compile) 2>conftest.er1
5661   ac_status=$?
5662   grep -v '^ *+' conftest.er1 >conftest.err
5663   rm -f conftest.er1
5664   cat conftest.err >&5
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } &&
5667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; } &&
5673          { ac_try='test -s conftest.$ac_objext'
5674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675   (eval $ac_try) 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; }; then
5679   ac_lo=0 ac_mid=0
5680   while :; do
5681     cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h.  */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h.  */
5687 $ac_includes_default
5688 int
5689 main ()
5690 {
5691 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5692 test_array [0] = 0
5693
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700   (eval $ac_compile) 2>conftest.er1
5701   ac_status=$?
5702   grep -v '^ *+' conftest.er1 >conftest.err
5703   rm -f conftest.er1
5704   cat conftest.err >&5
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); } &&
5707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
5713          { ac_try='test -s conftest.$ac_objext'
5714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715   (eval $ac_try) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; }; then
5719   ac_hi=$ac_mid; break
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 ac_lo=`expr $ac_mid + 1`
5725                     if test $ac_lo -le $ac_mid; then
5726                       ac_lo= ac_hi=
5727                       break
5728                     fi
5729                     ac_mid=`expr 2 '*' $ac_mid + 1`
5730 fi
5731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5732   done
5733 else
5734   echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 $ac_includes_default
5744 int
5745 main ()
5746 {
5747 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5748 test_array [0] = 0
5749
5750   ;
5751   return 0;
5752 }
5753 _ACEOF
5754 rm -f conftest.$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756   (eval $ac_compile) 2>conftest.er1
5757   ac_status=$?
5758   grep -v '^ *+' conftest.er1 >conftest.err
5759   rm -f conftest.er1
5760   cat conftest.err >&5
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); } &&
5763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765   (eval $ac_try) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }; } &&
5769          { ac_try='test -s conftest.$ac_objext'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; }; then
5775   ac_hi=-1 ac_mid=-1
5776   while :; do
5777     cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783 $ac_includes_default
5784 int
5785 main ()
5786 {
5787 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5788 test_array [0] = 0
5789
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796   (eval $ac_compile) 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805   (eval $ac_try) 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }; } &&
5809          { ac_try='test -s conftest.$ac_objext'
5810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; }; then
5815   ac_lo=$ac_mid; break
5816 else
5817   echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 ac_hi=`expr '(' $ac_mid ')' - 1`
5821                        if test $ac_mid -le $ac_hi; then
5822                          ac_lo= ac_hi=
5823                          break
5824                        fi
5825                        ac_mid=`expr 2 '*' $ac_mid`
5826 fi
5827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5828   done
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 ac_lo= ac_hi=
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836 fi
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838 # Binary search between lo and hi bounds.
5839 while test "x$ac_lo" != "x$ac_hi"; do
5840   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5841   cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847 $ac_includes_default
5848 int
5849 main ()
5850 {
5851 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5852 test_array [0] = 0
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860   (eval $ac_compile) 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869   (eval $ac_try) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; } &&
5873          { ac_try='test -s conftest.$ac_objext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   ac_hi=$ac_mid
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 ac_lo=`expr '(' $ac_mid ')' + 1`
5885 fi
5886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5887 done
5888 case $ac_lo in
5889 ?*) ac_cv_sizeof_int=$ac_lo;;
5890 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5891 See \`config.log' for more details." >&5
5892 echo "$as_me: error: cannot compute sizeof (int), 77
5893 See \`config.log' for more details." >&2;}
5894    { (exit 1); exit 1; }; } ;;
5895 esac
5896 else
5897   if test "$cross_compiling" = yes; then
5898   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5899 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5900    { (exit 1); exit 1; }; }
5901 else
5902   cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h.  */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h.  */
5908 $ac_includes_default
5909 long longval () { return (long) (sizeof (int)); }
5910 unsigned long ulongval () { return (long) (sizeof (int)); }
5911 #include <stdio.h>
5912 #include <stdlib.h>
5913 int
5914 main ()
5915 {
5916
5917   FILE *f = fopen ("conftest.val", "w");
5918   if (! f)
5919     exit (1);
5920   if (((long) (sizeof (int))) < 0)
5921     {
5922       long i = longval ();
5923       if (i != ((long) (sizeof (int))))
5924         exit (1);
5925       fprintf (f, "%ld\n", i);
5926     }
5927   else
5928     {
5929       unsigned long i = ulongval ();
5930       if (i != ((long) (sizeof (int))))
5931         exit (1);
5932       fprintf (f, "%lu\n", i);
5933     }
5934   exit (ferror (f) || fclose (f) != 0);
5935
5936   ;
5937   return 0;
5938 }
5939 _ACEOF
5940 rm -f conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942   (eval $ac_link) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951   ac_cv_sizeof_int=`cat conftest.val`
5952 else
5953   echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5956
5957 ( exit $ac_status )
5958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot compute sizeof (int), 77
5961 See \`config.log' for more details." >&2;}
5962    { (exit 1); exit 1; }; }
5963 fi
5964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5965 fi
5966 fi
5967 rm -f conftest.val
5968 else
5969   ac_cv_sizeof_int=0
5970 fi
5971 fi
5972 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5973 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5974 cat >>confdefs.h <<_ACEOF
5975 #define SIZEOF_INT $ac_cv_sizeof_int
5976 _ACEOF
5977
5978
5979    echo "$as_me:$LINENO: checking for long" >&5
5980 echo $ECHO_N "checking for long... $ECHO_C" >&6
5981 if test "${ac_cv_type_long+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h.  */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h.  */
5990 $ac_includes_default
5991 int
5992 main ()
5993 {
5994 if ((long *) 0)
5995   return 0;
5996 if (sizeof (long))
5997   return 0;
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest.$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004   (eval $ac_compile) 2>conftest.er1
6005   ac_status=$?
6006   grep -v '^ *+' conftest.er1 >conftest.err
6007   rm -f conftest.er1
6008   cat conftest.err >&5
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); } &&
6011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; } &&
6017          { ac_try='test -s conftest.$ac_objext'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; }; then
6023   ac_cv_type_long=yes
6024 else
6025   echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 ac_cv_type_long=no
6029 fi
6030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6031 fi
6032 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6033 echo "${ECHO_T}$ac_cv_type_long" >&6
6034
6035 echo "$as_me:$LINENO: checking size of long" >&5
6036 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6037 if test "${ac_cv_sizeof_long+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   if test "$ac_cv_type_long" = yes; then
6041   # The cast to unsigned long works around a bug in the HP C Compiler
6042   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6043   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6044   # This bug is HP SR number 8606223364.
6045   if test "$cross_compiling" = yes; then
6046   # Depending upon the size, compute the lo and hi bounds.
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053 $ac_includes_default
6054 int
6055 main ()
6056 {
6057 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6058 test_array [0] = 0
6059
6060   ;
6061   return 0;
6062 }
6063 _ACEOF
6064 rm -f conftest.$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066   (eval $ac_compile) 2>conftest.er1
6067   ac_status=$?
6068   grep -v '^ *+' conftest.er1 >conftest.err
6069   rm -f conftest.er1
6070   cat conftest.err >&5
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); } &&
6073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; } &&
6079          { ac_try='test -s conftest.$ac_objext'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; }; then
6085   ac_lo=0 ac_mid=0
6086   while :; do
6087     cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h.  */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h.  */
6093 $ac_includes_default
6094 int
6095 main ()
6096 {
6097 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6098 test_array [0] = 0
6099
6100   ;
6101   return 0;
6102 }
6103 _ACEOF
6104 rm -f conftest.$ac_objext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106   (eval $ac_compile) 2>conftest.er1
6107   ac_status=$?
6108   grep -v '^ *+' conftest.er1 >conftest.err
6109   rm -f conftest.er1
6110   cat conftest.err >&5
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115   (eval $ac_try) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; } &&
6119          { ac_try='test -s conftest.$ac_objext'
6120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121   (eval $ac_try) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; }; then
6125   ac_hi=$ac_mid; break
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130 ac_lo=`expr $ac_mid + 1`
6131                     if test $ac_lo -le $ac_mid; then
6132                       ac_lo= ac_hi=
6133                       break
6134                     fi
6135                     ac_mid=`expr 2 '*' $ac_mid + 1`
6136 fi
6137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6138   done
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h.  */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h.  */
6149 $ac_includes_default
6150 int
6151 main ()
6152 {
6153 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6154 test_array [0] = 0
6155
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162   (eval $ac_compile) 2>conftest.er1
6163   ac_status=$?
6164   grep -v '^ *+' conftest.er1 >conftest.err
6165   rm -f conftest.er1
6166   cat conftest.err >&5
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } &&
6169          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171   (eval $ac_try) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }; } &&
6175          { ac_try='test -s conftest.$ac_objext'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; }; then
6181   ac_hi=-1 ac_mid=-1
6182   while :; do
6183     cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h.  */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h.  */
6189 $ac_includes_default
6190 int
6191 main ()
6192 {
6193 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6194 test_array [0] = 0
6195
6196   ;
6197   return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202   (eval $ac_compile) 2>conftest.er1
6203   ac_status=$?
6204   grep -v '^ *+' conftest.er1 >conftest.err
6205   rm -f conftest.er1
6206   cat conftest.err >&5
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } &&
6209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211   (eval $ac_try) 2>&5
6212   ac_status=$?
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); }; } &&
6215          { ac_try='test -s conftest.$ac_objext'
6216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217   (eval $ac_try) 2>&5
6218   ac_status=$?
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); }; }; then
6221   ac_lo=$ac_mid; break
6222 else
6223   echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226 ac_hi=`expr '(' $ac_mid ')' - 1`
6227                        if test $ac_mid -le $ac_hi; then
6228                          ac_lo= ac_hi=
6229                          break
6230                        fi
6231                        ac_mid=`expr 2 '*' $ac_mid`
6232 fi
6233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6234   done
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_lo= ac_hi=
6240 fi
6241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6242 fi
6243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244 # Binary search between lo and hi bounds.
6245 while test "x$ac_lo" != "x$ac_hi"; do
6246   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6247   cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h.  */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h.  */
6253 $ac_includes_default
6254 int
6255 main ()
6256 {
6257 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6258 test_array [0] = 0
6259
6260   ;
6261   return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266   (eval $ac_compile) 2>conftest.er1
6267   ac_status=$?
6268   grep -v '^ *+' conftest.er1 >conftest.err
6269   rm -f conftest.er1
6270   cat conftest.err >&5
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); } &&
6273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6279          { ac_try='test -s conftest.$ac_objext'
6280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281   (eval $ac_try) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; }; then
6285   ac_hi=$ac_mid
6286 else
6287   echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290 ac_lo=`expr '(' $ac_mid ')' + 1`
6291 fi
6292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6293 done
6294 case $ac_lo in
6295 ?*) ac_cv_sizeof_long=$ac_lo;;
6296 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6297 See \`config.log' for more details." >&5
6298 echo "$as_me: error: cannot compute sizeof (long), 77
6299 See \`config.log' for more details." >&2;}
6300    { (exit 1); exit 1; }; } ;;
6301 esac
6302 else
6303   if test "$cross_compiling" = yes; then
6304   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6305 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6306    { (exit 1); exit 1; }; }
6307 else
6308   cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 $ac_includes_default
6315 long longval () { return (long) (sizeof (long)); }
6316 unsigned long ulongval () { return (long) (sizeof (long)); }
6317 #include <stdio.h>
6318 #include <stdlib.h>
6319 int
6320 main ()
6321 {
6322
6323   FILE *f = fopen ("conftest.val", "w");
6324   if (! f)
6325     exit (1);
6326   if (((long) (sizeof (long))) < 0)
6327     {
6328       long i = longval ();
6329       if (i != ((long) (sizeof (long))))
6330         exit (1);
6331       fprintf (f, "%ld\n", i);
6332     }
6333   else
6334     {
6335       unsigned long i = ulongval ();
6336       if (i != ((long) (sizeof (long))))
6337         exit (1);
6338       fprintf (f, "%lu\n", i);
6339     }
6340   exit (ferror (f) || fclose (f) != 0);
6341
6342   ;
6343   return 0;
6344 }
6345 _ACEOF
6346 rm -f conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348   (eval $ac_link) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; }; then
6357   ac_cv_sizeof_long=`cat conftest.val`
6358 else
6359   echo "$as_me: program exited with status $ac_status" >&5
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 ( exit $ac_status )
6364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6365 See \`config.log' for more details." >&5
6366 echo "$as_me: error: cannot compute sizeof (long), 77
6367 See \`config.log' for more details." >&2;}
6368    { (exit 1); exit 1; }; }
6369 fi
6370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6371 fi
6372 fi
6373 rm -f conftest.val
6374 else
6375   ac_cv_sizeof_long=0
6376 fi
6377 fi
6378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6379 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6380 cat >>confdefs.h <<_ACEOF
6381 #define SIZEOF_LONG $ac_cv_sizeof_long
6382 _ACEOF
6383
6384
6385    echo "$as_me:$LINENO: checking for long long" >&5
6386 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6387 if test "${ac_cv_type_long_long+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396 $ac_includes_default
6397 int
6398 main ()
6399 {
6400 if ((long long *) 0)
6401   return 0;
6402 if (sizeof (long long))
6403   return 0;
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410   (eval $ac_compile) 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } &&
6417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; } &&
6423          { ac_try='test -s conftest.$ac_objext'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; }; then
6429   ac_cv_type_long_long=yes
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_cv_type_long_long=no
6435 fi
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6439 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6440
6441 echo "$as_me:$LINENO: checking size of long long" >&5
6442 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6443 if test "${ac_cv_sizeof_long_long+set}" = set; then
6444   echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446   if test "$ac_cv_type_long_long" = yes; then
6447   # The cast to unsigned long works around a bug in the HP C Compiler
6448   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6449   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6450   # This bug is HP SR number 8606223364.
6451   if test "$cross_compiling" = yes; then
6452   # Depending upon the size, compute the lo and hi bounds.
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 $ac_includes_default
6460 int
6461 main ()
6462 {
6463 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6464 test_array [0] = 0
6465
6466   ;
6467   return 0;
6468 }
6469 _ACEOF
6470 rm -f conftest.$ac_objext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472   (eval $ac_compile) 2>conftest.er1
6473   ac_status=$?
6474   grep -v '^ *+' conftest.er1 >conftest.err
6475   rm -f conftest.er1
6476   cat conftest.err >&5
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); } &&
6479          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481   (eval $ac_try) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; } &&
6485          { ac_try='test -s conftest.$ac_objext'
6486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487   (eval $ac_try) 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); }; }; then
6491   ac_lo=0 ac_mid=0
6492   while :; do
6493     cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 $ac_includes_default
6500 int
6501 main ()
6502 {
6503 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6504 test_array [0] = 0
6505
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512   (eval $ac_compile) 2>conftest.er1
6513   ac_status=$?
6514   grep -v '^ *+' conftest.er1 >conftest.err
6515   rm -f conftest.er1
6516   cat conftest.err >&5
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } &&
6519          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; } &&
6525          { ac_try='test -s conftest.$ac_objext'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; }; then
6531   ac_hi=$ac_mid; break
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 ac_lo=`expr $ac_mid + 1`
6537                     if test $ac_lo -le $ac_mid; then
6538                       ac_lo= ac_hi=
6539                       break
6540                     fi
6541                     ac_mid=`expr 2 '*' $ac_mid + 1`
6542 fi
6543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6544   done
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h.  */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h.  */
6555 $ac_includes_default
6556 int
6557 main ()
6558 {
6559 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6560 test_array [0] = 0
6561
6562   ;
6563   return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568   (eval $ac_compile) 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } &&
6575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; } &&
6581          { ac_try='test -s conftest.$ac_objext'
6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583   (eval $ac_try) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); }; }; then
6587   ac_hi=-1 ac_mid=-1
6588   while :; do
6589     cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h.  */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h.  */
6595 $ac_includes_default
6596 int
6597 main ()
6598 {
6599 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6600 test_array [0] = 0
6601
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608   (eval $ac_compile) 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } &&
6615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; } &&
6621          { ac_try='test -s conftest.$ac_objext'
6622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623   (eval $ac_try) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; }; then
6627   ac_lo=$ac_mid; break
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632 ac_hi=`expr '(' $ac_mid ')' - 1`
6633                        if test $ac_mid -le $ac_hi; then
6634                          ac_lo= ac_hi=
6635                          break
6636                        fi
6637                        ac_mid=`expr 2 '*' $ac_mid`
6638 fi
6639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6640   done
6641 else
6642   echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_lo= ac_hi=
6646 fi
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 fi
6649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650 # Binary search between lo and hi bounds.
6651 while test "x$ac_lo" != "x$ac_hi"; do
6652   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6653   cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659 $ac_includes_default
6660 int
6661 main ()
6662 {
6663 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6664 test_array [0] = 0
6665
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672   (eval $ac_compile) 2>conftest.er1
6673   ac_status=$?
6674   grep -v '^ *+' conftest.er1 >conftest.err
6675   rm -f conftest.er1
6676   cat conftest.err >&5
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); } &&
6679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681   (eval $ac_try) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }; } &&
6685          { ac_try='test -s conftest.$ac_objext'
6686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687   (eval $ac_try) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); }; }; then
6691   ac_hi=$ac_mid
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696 ac_lo=`expr '(' $ac_mid ')' + 1`
6697 fi
6698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6699 done
6700 case $ac_lo in
6701 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6702 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6703 See \`config.log' for more details." >&5
6704 echo "$as_me: error: cannot compute sizeof (long long), 77
6705 See \`config.log' for more details." >&2;}
6706    { (exit 1); exit 1; }; } ;;
6707 esac
6708 else
6709   if test "$cross_compiling" = yes; then
6710   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6711 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6712    { (exit 1); exit 1; }; }
6713 else
6714   cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h.  */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h.  */
6720 $ac_includes_default
6721 long longval () { return (long) (sizeof (long long)); }
6722 unsigned long ulongval () { return (long) (sizeof (long long)); }
6723 #include <stdio.h>
6724 #include <stdlib.h>
6725 int
6726 main ()
6727 {
6728
6729   FILE *f = fopen ("conftest.val", "w");
6730   if (! f)
6731     exit (1);
6732   if (((long) (sizeof (long long))) < 0)
6733     {
6734       long i = longval ();
6735       if (i != ((long) (sizeof (long long))))
6736         exit (1);
6737       fprintf (f, "%ld\n", i);
6738     }
6739   else
6740     {
6741       unsigned long i = ulongval ();
6742       if (i != ((long) (sizeof (long long))))
6743         exit (1);
6744       fprintf (f, "%lu\n", i);
6745     }
6746   exit (ferror (f) || fclose (f) != 0);
6747
6748   ;
6749   return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754   (eval $ac_link) 2>&5
6755   ac_status=$?
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; }; then
6763   ac_cv_sizeof_long_long=`cat conftest.val`
6764 else
6765   echo "$as_me: program exited with status $ac_status" >&5
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 ( exit $ac_status )
6770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6771 See \`config.log' for more details." >&5
6772 echo "$as_me: error: cannot compute sizeof (long long), 77
6773 See \`config.log' for more details." >&2;}
6774    { (exit 1); exit 1; }; }
6775 fi
6776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6777 fi
6778 fi
6779 rm -f conftest.val
6780 else
6781   ac_cv_sizeof_long_long=0
6782 fi
6783 fi
6784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6785 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6786 cat >>confdefs.h <<_ACEOF
6787 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6788 _ACEOF
6789
6790
6791 fi
6792
6793
6794
6795
6796
6797 ac_aux_path_sendmail=/usr/sbin:/usr/lib
6798 # Extract the first word of "sendmail", so it can be a program name with args.
6799 set dummy sendmail; ac_word=$2
6800 echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6802 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   case $SENDMAIL in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 as_dummy="$PATH:$ac_aux_path_sendmail"
6812 for as_dir in $as_dummy
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816   for ac_exec_ext in '' $ac_executable_extensions; do
6817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823 done
6824
6825   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
6826   ;;
6827 esac
6828 fi
6829 SENDMAIL=$ac_cv_path_SENDMAIL
6830
6831 if test -n "$SENDMAIL"; then
6832   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6833 echo "${ECHO_T}$SENDMAIL" >&6
6834 else
6835   echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6
6837 fi
6838
6839
6840 cat >>confdefs.h <<_ACEOF
6841 #define SENDMAIL "$ac_cv_path_SENDMAIL"
6842 _ACEOF
6843
6844
6845 OPS='$(srcdir)/OPS'
6846 if test -f $srcdir/EXPORTABLE ; then
6847         SUBVERSION="us"
6848 else
6849         SUBVERSION="i"
6850
6851         # Check whether --enable-gpgme or --disable-gpgme was given.
6852 if test "${enable_gpgme+set}" = set; then
6853   enableval="$enable_gpgme"
6854          if test x$enableval = xyes; then
6855                         have_gpgme=yes
6856                 fi
6857
6858 fi;
6859
6860 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
6861 if test "${with_gpgme_prefix+set}" = set; then
6862   withval="$with_gpgme_prefix"
6863   gpgme_config_prefix="$withval"
6864 else
6865   gpgme_config_prefix=""
6866 fi;
6867
6868         if test x$have_gpgme = xyes; then
6869                 if test x$gpgme_config_prefix != x; then
6870                         GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
6871                 else
6872                         # Extract the first word of "gpgme-config", so it can be a program name with args.
6873 set dummy gpgme-config; ac_word=$2
6874 echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   case $GPGME_CONFIG in
6880   [\\/]* | ?:[\\/]*)
6881   ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
6882   ;;
6883   *)
6884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889   for ac_exec_ext in '' $ac_executable_extensions; do
6890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891     ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896 done
6897
6898   test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
6899   ;;
6900 esac
6901 fi
6902 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
6903
6904 if test -n "$GPGME_CONFIG"; then
6905   echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
6906 echo "${ECHO_T}$GPGME_CONFIG" >&6
6907 else
6908   echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6
6910 fi
6911
6912                 fi
6913                 if test "x$GPGME_CONFIG" = "xno"; then
6914                         { { echo "$as_me:$LINENO: error: GPGME not found" >&5
6915 echo "$as_me: error: GPGME not found" >&2;}
6916    { (exit 1); exit 1; }; }
6917                 else
6918                         LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
6919                         LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
6920                         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
6921
6922 cat >>confdefs.h <<\_ACEOF
6923 #define CRYPT_BACKEND_GPGME 1
6924 _ACEOF
6925
6926                 fi
6927         fi
6928
6929
6930
6931         # Check whether --enable-pgp or --disable-pgp was given.
6932 if test "${enable_pgp+set}" = set; then
6933   enableval="$enable_pgp"
6934          if test x$enableval = xno ; then
6935                         have_pgp=no
6936                 fi
6937
6938 fi;
6939
6940         if test x$have_pgp != xno ; then
6941
6942 cat >>confdefs.h <<\_ACEOF
6943 #define CRYPT_BACKEND_CLASSIC_PGP 1
6944 _ACEOF
6945
6946                 PGPAUX_TARGET="pgpring pgpewrap"
6947                 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"
6948         fi
6949
6950         # Check whether --enable-smime or --disable-smime was given.
6951 if test "${enable_smime+set}" = set; then
6952   enableval="$enable_smime"
6953         if test x$enableval = xno ; then
6954                         have_smime=no
6955                 fi
6956
6957 fi;
6958
6959         if test x$have_smime != xno ; then
6960
6961 cat >>confdefs.h <<\_ACEOF
6962 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6963 _ACEOF
6964
6965                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6966                 SMIMEAUX_TARGET="smime_keys"
6967         fi
6968
6969
6970 # Check whether --with-mixmaster or --without-mixmaster was given.
6971 if test "${with_mixmaster+set}" = set; then
6972   withval="$with_mixmaster"
6973   if test -x "$withval" ; then
6974                         MIXMASTER="$withval"
6975                  else
6976                         MIXMASTER="mixmaster"
6977                  fi
6978                  OPS="$OPS \$(srcdir)/OPS.MIX"
6979                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6980
6981 cat >>confdefs.h <<_ACEOF
6982 #define MIXMASTER "$MIXMASTER"
6983 _ACEOF
6984
6985
6986 fi;
6987
6988 fi
6989 # We now require all OPS
6990 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6991
6992
6993
6994
6995
6996
6997
6998 cat >>confdefs.h <<_ACEOF
6999 #define SUBVERSION "$SUBVERSION"
7000 _ACEOF
7001
7002
7003
7004 # Extract the first word of "ispell", so it can be a program name with args.
7005 set dummy ispell; ac_word=$2
7006 echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7008 if test "${ac_cv_path_ISPELL+set}" = set; then
7009   echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011   case $ISPELL in
7012   [\\/]* | ?:[\\/]*)
7013   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
7014   ;;
7015   *)
7016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021   for ac_exec_ext in '' $ac_executable_extensions; do
7022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
7024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028 done
7029
7030   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
7031   ;;
7032 esac
7033 fi
7034 ISPELL=$ac_cv_path_ISPELL
7035
7036 if test -n "$ISPELL"; then
7037   echo "$as_me:$LINENO: result: $ISPELL" >&5
7038 echo "${ECHO_T}$ISPELL" >&6
7039 else
7040   echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6
7042 fi
7043
7044 if test $ISPELL != no; then
7045
7046 cat >>confdefs.h <<_ACEOF
7047 #define ISPELL "$ISPELL"
7048 _ACEOF
7049
7050 fi
7051
7052
7053 # Check whether --with-slang or --without-slang was given.
7054 if test "${with_slang+set}" = set; then
7055   withval="$with_slang"
7056   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
7057 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
7058 if test "${mutt_cv_bsdish+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   if test "$cross_compiling" = yes; then
7062   mutt_cv_bsdish=no
7063 else
7064   cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h.  */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h.  */
7070 #include <sys/param.h>
7071
7072 main ()
7073 {
7074 #ifdef BSD
7075         exit (0);
7076 #else
7077         exit (1);
7078 #endif
7079 }
7080 _ACEOF
7081 rm -f conftest$ac_exeext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083   (eval $ac_link) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; }; then
7092   mutt_cv_bsdish=yes
7093 else
7094   echo "$as_me: program exited with status $ac_status" >&5
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 ( exit $ac_status )
7099 mutt_cv_bsdish=no
7100 fi
7101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7102 fi
7103 fi
7104 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
7105 echo "${ECHO_T}$mutt_cv_bsdish" >&6
7106
7107         echo "$as_me:$LINENO: checking for S-Lang" >&5
7108 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
7109         if test $withval = yes; then
7110                 if test -d $srcdir/../slang; then
7111                         mutt_cv_slang=$srcdir/../slang/src
7112                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
7113                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
7114                 else
7115                         if test -d $mutt_cv_prefix/include/slang; then
7116                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
7117                         elif test -d /usr/include/slang; then
7118                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
7119                         fi
7120                         mutt_cv_slang=yes
7121                 fi
7122         else
7123                                 if test -f $withval/src/slang.h; then
7124                         mutt_cv_slang=$withval/src
7125                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
7126                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
7127                 else
7128                                                 mutt_cv_slang=$withval
7129                         if test -d $withval/include/slang; then
7130                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
7131                         elif test -d $withval/include; then
7132                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
7133                         fi
7134                         LDFLAGS="$LDFLAGS -L${withval}/lib"
7135                 fi
7136         fi
7137         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
7138 echo "${ECHO_T}$mutt_cv_slang" >&6
7139         if test $mutt_cv_bsdish = yes; then
7140
7141 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
7142 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
7143 if test "${ac_cv_lib_termlib_main+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146   ac_check_lib_save_LIBS=$LIBS
7147 LIBS="-ltermlib  $LIBS"
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154
7155
7156 int
7157 main ()
7158 {
7159 main ();
7160   ;
7161   return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest.$ac_objext conftest$ac_exeext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7166   (eval $ac_link) 2>conftest.er1
7167   ac_status=$?
7168   grep -v '^ *+' conftest.er1 >conftest.err
7169   rm -f conftest.er1
7170   cat conftest.err >&5
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } &&
7173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175   (eval $ac_try) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; } &&
7179          { ac_try='test -s conftest$ac_exeext'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; }; then
7185   ac_cv_lib_termlib_main=yes
7186 else
7187   echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ac_cv_lib_termlib_main=no
7191 fi
7192 rm -f conftest.err conftest.$ac_objext \
7193       conftest$ac_exeext conftest.$ac_ext
7194 LIBS=$ac_check_lib_save_LIBS
7195 fi
7196 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
7197 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
7198 if test $ac_cv_lib_termlib_main = yes; then
7199   cat >>confdefs.h <<_ACEOF
7200 #define HAVE_LIBTERMLIB 1
7201 _ACEOF
7202
7203   LIBS="-ltermlib $LIBS"
7204
7205 fi
7206
7207         fi
7208
7209 cat >>confdefs.h <<\_ACEOF
7210 #define USE_SLANG_CURSES 1
7211 _ACEOF
7212
7213
7214 cat >>confdefs.h <<\_ACEOF
7215 #define HAVE_COLOR 1
7216 _ACEOF
7217
7218         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
7219
7220
7221         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
7222 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
7223 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-lslang -lm $LIBS"
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234
7235 /* Override any gcc2 internal prototype to avoid an error.  */
7236 #ifdef __cplusplus
7237 extern "C"
7238 #endif
7239 /* We use char because int might match the return type of a gcc2
7240    builtin and then its argument prototype would still apply.  */
7241 char SLtt_get_terminfo ();
7242 int
7243 main ()
7244 {
7245 SLtt_get_terminfo ();
7246   ;
7247   return 0;
7248 }
7249 _ACEOF
7250 rm -f conftest.$ac_objext conftest$ac_exeext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7252   (eval $ac_link) 2>conftest.er1
7253   ac_status=$?
7254   grep -v '^ *+' conftest.er1 >conftest.err
7255   rm -f conftest.er1
7256   cat conftest.err >&5
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261   (eval $ac_try) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; } &&
7265          { ac_try='test -s conftest$ac_exeext'
7266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267   (eval $ac_try) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); }; }; then
7271   ac_cv_lib_slang_SLtt_get_terminfo=yes
7272 else
7273   echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7275
7276 ac_cv_lib_slang_SLtt_get_terminfo=no
7277 fi
7278 rm -f conftest.err conftest.$ac_objext \
7279       conftest$ac_exeext conftest.$ac_ext
7280 LIBS=$ac_check_lib_save_LIBS
7281 fi
7282 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
7283 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
7284 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
7285   MUTTLIBS="$MUTTLIBS -lslang -lm"
7286 else
7287   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
7288 echo "$as_me: error: unable to compile.  check config.log" >&2;}
7289    { (exit 1); exit 1; }; }
7290 fi
7291
7292
7293
7294 else
7295   mutt_cv_curses=/usr
7296
7297 # Check whether --with-curses or --without-curses was given.
7298 if test "${with_curses+set}" = set; then
7299   withval="$with_curses"
7300   if test $withval != yes; then
7301                         mutt_cv_curses=$withval
7302                 fi
7303                 if test x$mutt_cv_curses != x/usr; then
7304                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
7305                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
7306                 fi
7307 fi;
7308
7309         echo "$as_me:$LINENO: checking for initscr" >&5
7310 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7311 if test "${ac_cv_func_initscr+set}" = set; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314   cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h.  */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h.  */
7320 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
7321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7322 #define initscr innocuous_initscr
7323
7324 /* System header to define __stub macros and hopefully few prototypes,
7325     which can conflict with char initscr (); below.
7326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7327     <limits.h> exists even on freestanding compilers.  */
7328
7329 #ifdef __STDC__
7330 # include <limits.h>
7331 #else
7332 # include <assert.h>
7333 #endif
7334
7335 #undef initscr
7336
7337 /* Override any gcc2 internal prototype to avoid an error.  */
7338 #ifdef __cplusplus
7339 extern "C"
7340 {
7341 #endif
7342 /* We use char because int might match the return type of a gcc2
7343    builtin and then its argument prototype would still apply.  */
7344 char initscr ();
7345 /* The GNU C library defines this for functions which it implements
7346     to always fail with ENOSYS.  Some functions are actually named
7347     something starting with __ and the normal name is an alias.  */
7348 #if defined (__stub_initscr) || defined (__stub___initscr)
7349 choke me
7350 #else
7351 char (*f) () = initscr;
7352 #endif
7353 #ifdef __cplusplus
7354 }
7355 #endif
7356
7357 int
7358 main ()
7359 {
7360 return f != initscr;
7361   ;
7362   return 0;
7363 }
7364 _ACEOF
7365 rm -f conftest.$ac_objext conftest$ac_exeext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7367   (eval $ac_link) 2>conftest.er1
7368   ac_status=$?
7369   grep -v '^ *+' conftest.er1 >conftest.err
7370   rm -f conftest.er1
7371   cat conftest.err >&5
7372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373   (exit $ac_status); } &&
7374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376   (eval $ac_try) 2>&5
7377   ac_status=$?
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); }; } &&
7380          { ac_try='test -s conftest$ac_exeext'
7381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382   (eval $ac_try) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; }; then
7386   ac_cv_func_initscr=yes
7387 else
7388   echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7390
7391 ac_cv_func_initscr=no
7392 fi
7393 rm -f conftest.err conftest.$ac_objext \
7394       conftest$ac_exeext conftest.$ac_ext
7395 fi
7396 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7397 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7398 if test $ac_cv_func_initscr = yes; then
7399   :
7400 else
7401
7402         cf_ncurses="ncurses"
7403         for lib in ncurses ncursesw
7404         do
7405                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
7406 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
7407 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
7408 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   ac_check_lib_save_LIBS=$LIBS
7412 LIBS="-l$lib  $LIBS"
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419
7420 /* Override any gcc2 internal prototype to avoid an error.  */
7421 #ifdef __cplusplus
7422 extern "C"
7423 #endif
7424 /* We use char because int might match the return type of a gcc2
7425    builtin and then its argument prototype would still apply.  */
7426 char waddnwstr ();
7427 int
7428 main ()
7429 {
7430 waddnwstr ();
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437   (eval $ac_link) 2>conftest.er1
7438   ac_status=$?
7439   grep -v '^ *+' conftest.er1 >conftest.err
7440   rm -f conftest.er1
7441   cat conftest.err >&5
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); } &&
7444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; } &&
7450          { ac_try='test -s conftest$ac_exeext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   eval "$as_ac_Lib=yes"
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 eval "$as_ac_Lib=no"
7462 fi
7463 rm -f conftest.err conftest.$ac_objext \
7464       conftest$ac_exeext conftest.$ac_ext
7465 LIBS=$ac_check_lib_save_LIBS
7466 fi
7467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7468 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7469 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7470   cf_ncurses="$lib"; break
7471 fi
7472
7473         done
7474         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
7475 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
7476 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
7477 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7478   echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480   ac_check_lib_save_LIBS=$LIBS
7481 LIBS="-l$cf_ncurses  $LIBS"
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h.  */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h.  */
7488
7489 /* Override any gcc2 internal prototype to avoid an error.  */
7490 #ifdef __cplusplus
7491 extern "C"
7492 #endif
7493 /* We use char because int might match the return type of a gcc2
7494    builtin and then its argument prototype would still apply.  */
7495 char initscr ();
7496 int
7497 main ()
7498 {
7499 initscr ();
7500   ;
7501   return 0;
7502 }
7503 _ACEOF
7504 rm -f conftest.$ac_objext conftest$ac_exeext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7506   (eval $ac_link) 2>conftest.er1
7507   ac_status=$?
7508   grep -v '^ *+' conftest.er1 >conftest.err
7509   rm -f conftest.er1
7510   cat conftest.err >&5
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); } &&
7513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; } &&
7519          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7525   eval "$as_ac_Lib=yes"
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 eval "$as_ac_Lib=no"
7531 fi
7532 rm -f conftest.err conftest.$ac_objext \
7533       conftest$ac_exeext conftest.$ac_ext
7534 LIBS=$ac_check_lib_save_LIBS
7535 fi
7536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7537 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7538 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7539   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
7540                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
7541                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7542                 fi
7543
7544                 if test "$cf_ncurses" = ncursesw; then
7545
7546 for ac_header in ncursesw/ncurses.h
7547 do
7548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7550   echo "$as_me:$LINENO: checking for $ac_header" >&5
7551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 fi
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7557 else
7558   # Is the header compilable?
7559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7561 cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h.  */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h.  */
7567 $ac_includes_default
7568 #include <$ac_header>
7569 _ACEOF
7570 rm -f conftest.$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572   (eval $ac_compile) 2>conftest.er1
7573   ac_status=$?
7574   grep -v '^ *+' conftest.er1 >conftest.err
7575   rm -f conftest.er1
7576   cat conftest.err >&5
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } &&
7579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; } &&
7585          { ac_try='test -s conftest.$ac_objext'
7586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587   (eval $ac_try) 2>&5
7588   ac_status=$?
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); }; }; then
7591   ac_header_compiler=yes
7592 else
7593   echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7595
7596 ac_header_compiler=no
7597 fi
7598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 echo "${ECHO_T}$ac_header_compiler" >&6
7601
7602 # Is the header present?
7603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h.  */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h.  */
7611 #include <$ac_header>
7612 _ACEOF
7613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7615   ac_status=$?
7616   grep -v '^ *+' conftest.er1 >conftest.err
7617   rm -f conftest.er1
7618   cat conftest.err >&5
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); } >/dev/null; then
7621   if test -s conftest.err; then
7622     ac_cpp_err=$ac_c_preproc_warn_flag
7623     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7624   else
7625     ac_cpp_err=
7626   fi
7627 else
7628   ac_cpp_err=yes
7629 fi
7630 if test -z "$ac_cpp_err"; then
7631   ac_header_preproc=yes
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636   ac_header_preproc=no
7637 fi
7638 rm -f conftest.err conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 echo "${ECHO_T}$ac_header_preproc" >&6
7641
7642 # So?  What about this header?
7643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7644   yes:no: )
7645     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7649     ac_header_preproc=yes
7650     ;;
7651   no:yes:* )
7652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7654     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7655 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7656     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7658     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7659 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7662     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7664     (
7665       cat <<\_ASBOX
7666 ## ------------------------------------------ ##
7667 ## Report this to the AC_PACKAGE_NAME lists.  ##
7668 ## ------------------------------------------ ##
7669 _ASBOX
7670     ) |
7671       sed "s/^/$as_me: WARNING:     /" >&2
7672     ;;
7673 esac
7674 echo "$as_me:$LINENO: checking for $ac_header" >&5
7675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   eval "$as_ac_Header=\$ac_header_preproc"
7680 fi
7681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7683
7684 fi
7685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7686   cat >>confdefs.h <<_ACEOF
7687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7688 _ACEOF
7689  cf_cv_ncurses_header="ncursesw/ncurses.h"
7690 fi
7691
7692 done
7693
7694                 else
7695
7696 for ac_header in ncurses.h
7697 do
7698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7700   echo "$as_me:$LINENO: checking for $ac_header" >&5
7701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 fi
7705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7707 else
7708   # Is the header compilable?
7709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717 $ac_includes_default
7718 #include <$ac_header>
7719 _ACEOF
7720 rm -f conftest.$ac_objext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7722   (eval $ac_compile) 2>conftest.er1
7723   ac_status=$?
7724   grep -v '^ *+' conftest.er1 >conftest.err
7725   rm -f conftest.er1
7726   cat conftest.err >&5
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); } &&
7729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731   (eval $ac_try) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }; } &&
7735          { ac_try='test -s conftest.$ac_objext'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; }; then
7741   ac_header_compiler=yes
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746 ac_header_compiler=no
7747 fi
7748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7750 echo "${ECHO_T}$ac_header_compiler" >&6
7751
7752 # Is the header present?
7753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761 #include <$ac_header>
7762 _ACEOF
7763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7765   ac_status=$?
7766   grep -v '^ *+' conftest.er1 >conftest.err
7767   rm -f conftest.er1
7768   cat conftest.err >&5
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } >/dev/null; then
7771   if test -s conftest.err; then
7772     ac_cpp_err=$ac_c_preproc_warn_flag
7773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7774   else
7775     ac_cpp_err=
7776   fi
7777 else
7778   ac_cpp_err=yes
7779 fi
7780 if test -z "$ac_cpp_err"; then
7781   ac_header_preproc=yes
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786   ac_header_preproc=no
7787 fi
7788 rm -f conftest.err conftest.$ac_ext
7789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7790 echo "${ECHO_T}$ac_header_preproc" >&6
7791
7792 # So?  What about this header?
7793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7794   yes:no: )
7795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7799     ac_header_preproc=yes
7800     ;;
7801   no:yes:* )
7802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7814     (
7815       cat <<\_ASBOX
7816 ## ------------------------------------------ ##
7817 ## Report this to the AC_PACKAGE_NAME lists.  ##
7818 ## ------------------------------------------ ##
7819 _ASBOX
7820     ) |
7821       sed "s/^/$as_me: WARNING:     /" >&2
7822     ;;
7823 esac
7824 echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   eval "$as_ac_Header=\$ac_header_preproc"
7830 fi
7831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7833
7834 fi
7835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7836   cat >>confdefs.h <<_ACEOF
7837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7838 _ACEOF
7839  cf_cv_ncurses_header="ncurses.h"
7840 fi
7841
7842 done
7843
7844                 fi
7845 else
7846
7847 echo "$as_me:$LINENO: checking for initscr" >&5
7848 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7849 if test "${ac_cv_func_initscr+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
7859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7860 #define initscr innocuous_initscr
7861
7862 /* System header to define __stub macros and hopefully few prototypes,
7863     which can conflict with char initscr (); below.
7864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7865     <limits.h> exists even on freestanding compilers.  */
7866
7867 #ifdef __STDC__
7868 # include <limits.h>
7869 #else
7870 # include <assert.h>
7871 #endif
7872
7873 #undef initscr
7874
7875 /* Override any gcc2 internal prototype to avoid an error.  */
7876 #ifdef __cplusplus
7877 extern "C"
7878 {
7879 #endif
7880 /* We use char because int might match the return type of a gcc2
7881    builtin and then its argument prototype would still apply.  */
7882 char initscr ();
7883 /* The GNU C library defines this for functions which it implements
7884     to always fail with ENOSYS.  Some functions are actually named
7885     something starting with __ and the normal name is an alias.  */
7886 #if defined (__stub_initscr) || defined (__stub___initscr)
7887 choke me
7888 #else
7889 char (*f) () = initscr;
7890 #endif
7891 #ifdef __cplusplus
7892 }
7893 #endif
7894
7895 int
7896 main ()
7897 {
7898 return f != initscr;
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905   (eval $ac_link) 2>conftest.er1
7906   ac_status=$?
7907   grep -v '^ *+' conftest.er1 >conftest.err
7908   rm -f conftest.er1
7909   cat conftest.err >&5
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } &&
7912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; } &&
7918          { ac_try='test -s conftest$ac_exeext'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; }; then
7924   ac_cv_func_initscr=yes
7925 else
7926   echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929 ac_cv_func_initscr=no
7930 fi
7931 rm -f conftest.err conftest.$ac_objext \
7932       conftest$ac_exeext conftest.$ac_ext
7933 fi
7934 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7935 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7936 if test $ac_cv_func_initscr = yes; then
7937   :
7938 else
7939
7940 case $host_os in #(vi
7941 freebsd*) #(vi
7942         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
7943 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7944 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7945   echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947   ac_check_lib_save_LIBS=$LIBS
7948 LIBS="-lmytinfo  $LIBS"
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955
7956 /* Override any gcc2 internal prototype to avoid an error.  */
7957 #ifdef __cplusplus
7958 extern "C"
7959 #endif
7960 /* We use char because int might match the return type of a gcc2
7961    builtin and then its argument prototype would still apply.  */
7962 char tgoto ();
7963 int
7964 main ()
7965 {
7966 tgoto ();
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7973   (eval $ac_link) 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } &&
7980          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982   (eval $ac_try) 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; } &&
7986          { ac_try='test -s conftest$ac_exeext'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; }; then
7992   ac_cv_lib_mytinfo_tgoto=yes
7993 else
7994   echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997 ac_cv_lib_mytinfo_tgoto=no
7998 fi
7999 rm -f conftest.err conftest.$ac_objext \
8000       conftest$ac_exeext conftest.$ac_ext
8001 LIBS=$ac_check_lib_save_LIBS
8002 fi
8003 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
8004 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8005 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8006   LIBS="-lmytinfo $LIBS"
8007 fi
8008
8009         ;;
8010 hpux10.*|hpux11.*)
8011         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
8012 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
8013 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   ac_check_lib_save_LIBS=$LIBS
8017 LIBS="-lcur_colr  $LIBS"
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024
8025 /* Override any gcc2 internal prototype to avoid an error.  */
8026 #ifdef __cplusplus
8027 extern "C"
8028 #endif
8029 /* We use char because int might match the return type of a gcc2
8030    builtin and then its argument prototype would still apply.  */
8031 char initscr ();
8032 int
8033 main ()
8034 {
8035 initscr ();
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042   (eval $ac_link) 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } &&
8049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051   (eval $ac_try) 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; } &&
8055          { ac_try='test -s conftest$ac_exeext'
8056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057   (eval $ac_try) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; }; then
8061   ac_cv_lib_cur_colr_initscr=yes
8062 else
8063   echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_cv_lib_cur_colr_initscr=no
8067 fi
8068 rm -f conftest.err conftest.$ac_objext \
8069       conftest$ac_exeext conftest.$ac_ext
8070 LIBS=$ac_check_lib_save_LIBS
8071 fi
8072 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
8073 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
8074 if test $ac_cv_lib_cur_colr_initscr = yes; then
8075
8076                 LIBS="-lcur_colr $LIBS"
8077                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
8078                 ac_cv_func_initscr=yes
8079
8080 else
8081
8082         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
8083 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
8084 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   ac_check_lib_save_LIBS=$LIBS
8088 LIBS="-lHcurses  $LIBS"
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095
8096 /* Override any gcc2 internal prototype to avoid an error.  */
8097 #ifdef __cplusplus
8098 extern "C"
8099 #endif
8100 /* We use char because int might match the return type of a gcc2
8101    builtin and then its argument prototype would still apply.  */
8102 char initscr ();
8103 int
8104 main ()
8105 {
8106 initscr ();
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113   (eval $ac_link) 2>conftest.er1
8114   ac_status=$?
8115   grep -v '^ *+' conftest.er1 >conftest.err
8116   rm -f conftest.er1
8117   cat conftest.err >&5
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); } &&
8120          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122   (eval $ac_try) 2>&5
8123   ac_status=$?
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); }; } &&
8126          { ac_try='test -s conftest$ac_exeext'
8127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128   (eval $ac_try) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; }; then
8132   ac_cv_lib_Hcurses_initscr=yes
8133 else
8134   echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ac_cv_lib_Hcurses_initscr=no
8138 fi
8139 rm -f conftest.err conftest.$ac_objext \
8140       conftest$ac_exeext conftest.$ac_ext
8141 LIBS=$ac_check_lib_save_LIBS
8142 fi
8143 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
8144 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
8145 if test $ac_cv_lib_Hcurses_initscr = yes; then
8146
8147                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
8148                 LIBS="-lHcurses $LIBS"
8149                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
8150                 ac_cv_func_initscr=yes
8151
8152 fi
8153
8154 fi
8155
8156         ;;
8157 linux*) # Suse Linux does not follow /usr/lib convention
8158         LIBS="$LIBS -L/lib"
8159         ;;
8160 esac
8161
8162 if test ".$With5lib" != ".no" ; then
8163 if test -d /usr/5lib ; then
8164         # SunOS 3.x or 4.x
8165         CPPFLAGS="$CPPFLAGS -I/usr/5include"
8166         LIBS="$LIBS -L/usr/5lib"
8167 fi
8168 fi
8169
8170 if test ".$ac_cv_func_initscr" != .yes ; then
8171         cf_save_LIBS="$LIBS"
8172         cf_term_lib=""
8173         cf_curs_lib=""
8174
8175         # Check for library containing tgoto.  Do this before curses library
8176         # because it may be needed to link the test-case for initscr.
8177         echo "$as_me:$LINENO: checking for tgoto" >&5
8178 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
8179 if test "${ac_cv_func_tgoto+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h.  */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h.  */
8188 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
8189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8190 #define tgoto innocuous_tgoto
8191
8192 /* System header to define __stub macros and hopefully few prototypes,
8193     which can conflict with char tgoto (); below.
8194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8195     <limits.h> exists even on freestanding compilers.  */
8196
8197 #ifdef __STDC__
8198 # include <limits.h>
8199 #else
8200 # include <assert.h>
8201 #endif
8202
8203 #undef tgoto
8204
8205 /* Override any gcc2 internal prototype to avoid an error.  */
8206 #ifdef __cplusplus
8207 extern "C"
8208 {
8209 #endif
8210 /* We use char because int might match the return type of a gcc2
8211    builtin and then its argument prototype would still apply.  */
8212 char tgoto ();
8213 /* The GNU C library defines this for functions which it implements
8214     to always fail with ENOSYS.  Some functions are actually named
8215     something starting with __ and the normal name is an alias.  */
8216 #if defined (__stub_tgoto) || defined (__stub___tgoto)
8217 choke me
8218 #else
8219 char (*f) () = tgoto;
8220 #endif
8221 #ifdef __cplusplus
8222 }
8223 #endif
8224
8225 int
8226 main ()
8227 {
8228 return f != tgoto;
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235   (eval $ac_link) 2>conftest.er1
8236   ac_status=$?
8237   grep -v '^ *+' conftest.er1 >conftest.err
8238   rm -f conftest.er1
8239   cat conftest.err >&5
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } &&
8242          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244   (eval $ac_try) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; } &&
8248          { ac_try='test -s conftest$ac_exeext'
8249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250   (eval $ac_try) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); }; }; then
8254   ac_cv_func_tgoto=yes
8255 else
8256   echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259 ac_cv_func_tgoto=no
8260 fi
8261 rm -f conftest.err conftest.$ac_objext \
8262       conftest$ac_exeext conftest.$ac_ext
8263 fi
8264 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
8265 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
8266 if test $ac_cv_func_tgoto = yes; then
8267   cf_term_lib=predefined
8268 else
8269
8270                 for cf_term_lib in termcap termlib unknown
8271                 do
8272                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
8273 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
8274 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
8275 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8276   echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278   ac_check_lib_save_LIBS=$LIBS
8279 LIBS="-l$cf_term_lib  $LIBS"
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 /* Override any gcc2 internal prototype to avoid an error.  */
8288 #ifdef __cplusplus
8289 extern "C"
8290 #endif
8291 /* We use char because int might match the return type of a gcc2
8292    builtin and then its argument prototype would still apply.  */
8293 char tgoto ();
8294 int
8295 main ()
8296 {
8297 tgoto ();
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304   (eval $ac_link) 2>conftest.er1
8305   ac_status=$?
8306   grep -v '^ *+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } &&
8311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313   (eval $ac_try) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; } &&
8317          { ac_try='test -s conftest$ac_exeext'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   eval "$as_ac_Lib=yes"
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 eval "$as_ac_Lib=no"
8329 fi
8330 rm -f conftest.err conftest.$ac_objext \
8331       conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8333 fi
8334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8335 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8336 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8337   break
8338 fi
8339
8340                 done
8341
8342 fi
8343
8344
8345         # Check for library containing initscr
8346         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
8347         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
8348         do
8349                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
8350 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
8351 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
8352 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   ac_check_lib_save_LIBS=$LIBS
8356 LIBS="-l$cf_curs_lib  $LIBS"
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363
8364 /* Override any gcc2 internal prototype to avoid an error.  */
8365 #ifdef __cplusplus
8366 extern "C"
8367 #endif
8368 /* We use char because int might match the return type of a gcc2
8369    builtin and then its argument prototype would still apply.  */
8370 char initscr ();
8371 int
8372 main ()
8373 {
8374 initscr ();
8375   ;
8376   return 0;
8377 }
8378 _ACEOF
8379 rm -f conftest.$ac_objext conftest$ac_exeext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8381   (eval $ac_link) 2>conftest.er1
8382   ac_status=$?
8383   grep -v '^ *+' conftest.er1 >conftest.err
8384   rm -f conftest.er1
8385   cat conftest.err >&5
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } &&
8388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; } &&
8394          { ac_try='test -s conftest$ac_exeext'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; }; then
8400   eval "$as_ac_Lib=yes"
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405 eval "$as_ac_Lib=no"
8406 fi
8407 rm -f conftest.err conftest.$ac_objext \
8408       conftest$ac_exeext conftest.$ac_ext
8409 LIBS=$ac_check_lib_save_LIBS
8410 fi
8411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8412 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8413 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8414   break
8415 fi
8416
8417         done
8418         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
8419 echo "$as_me: error: no curses library found" >&2;}
8420    { (exit 1); exit 1; }; }
8421
8422         LIBS="-l$cf_curs_lib $cf_save_LIBS"
8423         if test "$cf_term_lib" = unknown ; then
8424                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
8425 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
8426                 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h.  */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h.  */
8432 #include <${cf_cv_ncurses_header-curses.h}>
8433 int
8434 main ()
8435 {
8436 initscr()
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443   (eval $ac_link) 2>conftest.er1
8444   ac_status=$?
8445   grep -v '^ *+' conftest.er1 >conftest.err
8446   rm -f conftest.er1
8447   cat conftest.err >&5
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } &&
8450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452   (eval $ac_try) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; } &&
8456          { ac_try='test -s conftest$ac_exeext'
8457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458   (eval $ac_try) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; }; then
8462   cf_result=yes
8463 else
8464   echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8466
8467 cf_result=no
8468 fi
8469 rm -f conftest.err conftest.$ac_objext \
8470       conftest$ac_exeext conftest.$ac_ext
8471                 echo "$as_me:$LINENO: result: $cf_result" >&5
8472 echo "${ECHO_T}$cf_result" >&6
8473                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
8474 echo "$as_me: error: Cannot link curses library" >&2;}
8475    { (exit 1); exit 1; }; }
8476         elif test "$cf_term_lib" != predefined ; then
8477                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
8478 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
8479                 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485 #include <${cf_cv_ncurses_header-curses.h}>
8486 int
8487 main ()
8488 {
8489 initscr(); tgoto((char *)0, 0, 0);
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496   (eval $ac_link) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } &&
8503          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505   (eval $ac_try) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; } &&
8509          { ac_try='test -s conftest$ac_exeext'
8510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511   (eval $ac_try) 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   cf_result=no
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520
8521                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
8522                         cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528 #include <${cf_cv_ncurses_header-curses.h}>
8529 int
8530 main ()
8531 {
8532 initscr()
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539   (eval $ac_link) 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } &&
8546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; } &&
8552          { ac_try='test -s conftest$ac_exeext'
8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554   (eval $ac_try) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; }; then
8558   cf_result=yes
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563 cf_result=error
8564 fi
8565 rm -f conftest.err conftest.$ac_objext \
8566       conftest$ac_exeext conftest.$ac_ext
8567
8568 fi
8569 rm -f conftest.err conftest.$ac_objext \
8570       conftest$ac_exeext conftest.$ac_ext
8571                 echo "$as_me:$LINENO: result: $cf_result" >&5
8572 echo "${ECHO_T}$cf_result" >&6
8573         fi
8574 fi
8575
8576
8577 fi
8578
8579 fi
8580
8581
8582 fi
8583
8584
8585         old_LIBS="$LIBS"
8586         LIBS="$LIBS $MUTTLIBS"
8587         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
8588 do
8589
8590 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
8591 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
8592 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601 #include <${cf_cv_ncurses_header-curses.h}>
8602 int
8603 main ()
8604 {
8605 #ifndef ${ac_func}
8606 extern  int     ${ac_func}();
8607 #endif
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614   (eval $ac_compile) 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; } &&
8627          { ac_try='test -s conftest.$ac_objext'
8628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629   (eval $ac_try) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); }; }; then
8633
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640 #include <${cf_cv_ncurses_header-curses.h}>
8641 int
8642 main ()
8643 {
8644 #ifndef ${ac_func}
8645 int     (*p)() = ${ac_func};
8646 #endif
8647   ;
8648   return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653   (eval $ac_compile) 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } &&
8660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; } &&
8666          { ac_try='test -s conftest.$ac_objext'
8667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668   (eval $ac_try) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; }; then
8672
8673 eval "ac_cv_func_decl_$ac_func=yes"
8674 else
8675   echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678
8679 eval "ac_cv_func_decl_$ac_func=no"
8680 fi
8681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686
8687 eval "ac_cv_func_decl_$ac_func=yes"
8688 fi
8689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8690 fi
8691
8692 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
8693   echo "$as_me:$LINENO: result: yes" >&5
8694 echo "${ECHO_T}yes" >&6
8695
8696
8697 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
8698
8699   cat >>confdefs.h <<_ACEOF
8700 #define $ac_tr_func 1
8701 _ACEOF
8702
8703 else
8704   echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6
8706 fi
8707 done
8708
8709         if test "$ac_cv_func_decl_start_color" = yes; then
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define HAVE_COLOR 1
8713 _ACEOF
8714
8715         fi
8716         if test "$ac_cv_func_decl_resizeterm" = yes; then
8717                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8718         fi
8719         LIBS="$old_LIBS"
8720
8721 fi;
8722
8723 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8725 if test "${ac_cv_header_stdc+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 #include <stdlib.h>
8735 #include <stdarg.h>
8736 #include <string.h>
8737 #include <float.h>
8738
8739 int
8740 main ()
8741 {
8742
8743   ;
8744   return 0;
8745 }
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749   (eval $ac_compile) 2>conftest.er1
8750   ac_status=$?
8751   grep -v '^ *+' conftest.er1 >conftest.err
8752   rm -f conftest.er1
8753   cat conftest.err >&5
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); } &&
8756          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758   (eval $ac_try) 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); }; } &&
8762          { ac_try='test -s conftest.$ac_objext'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; }; then
8768   ac_cv_header_stdc=yes
8769 else
8770   echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773 ac_cv_header_stdc=no
8774 fi
8775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8776
8777 if test $ac_cv_header_stdc = yes; then
8778   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 #include <string.h>
8786
8787 _ACEOF
8788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8789   $EGREP "memchr" >/dev/null 2>&1; then
8790   :
8791 else
8792   ac_cv_header_stdc=no
8793 fi
8794 rm -f conftest*
8795
8796 fi
8797
8798 if test $ac_cv_header_stdc = yes; then
8799   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8800   cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806 #include <stdlib.h>
8807
8808 _ACEOF
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810   $EGREP "free" >/dev/null 2>&1; then
8811   :
8812 else
8813   ac_cv_header_stdc=no
8814 fi
8815 rm -f conftest*
8816
8817 fi
8818
8819 if test $ac_cv_header_stdc = yes; then
8820   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8821   if test "$cross_compiling" = yes; then
8822   :
8823 else
8824   cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830 #include <ctype.h>
8831 #if ((' ' & 0x0FF) == 0x020)
8832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8834 #else
8835 # define ISLOWER(c) \
8836                    (('a' <= (c) && (c) <= 'i') \
8837                      || ('j' <= (c) && (c) <= 'r') \
8838                      || ('s' <= (c) && (c) <= 'z'))
8839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8840 #endif
8841
8842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8843 int
8844 main ()
8845 {
8846   int i;
8847   for (i = 0; i < 256; i++)
8848     if (XOR (islower (i), ISLOWER (i))
8849         || toupper (i) != TOUPPER (i))
8850       exit(2);
8851   exit (0);
8852 }
8853 _ACEOF
8854 rm -f conftest$ac_exeext
8855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856   (eval $ac_link) 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; }; then
8865   :
8866 else
8867   echo "$as_me: program exited with status $ac_status" >&5
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871 ( exit $ac_status )
8872 ac_cv_header_stdc=no
8873 fi
8874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8875 fi
8876 fi
8877 fi
8878 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8879 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8880 if test $ac_cv_header_stdc = yes; then
8881
8882 cat >>confdefs.h <<\_ACEOF
8883 #define STDC_HEADERS 1
8884 _ACEOF
8885
8886 fi
8887
8888
8889
8890
8891
8892
8893 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
8894 do
8895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897   echo "$as_me:$LINENO: checking for $ac_header" >&5
8898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 fi
8902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8904 else
8905   # Is the header compilable?
8906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8908 cat >conftest.$ac_ext <<_ACEOF
8909 /* confdefs.h.  */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h.  */
8914 $ac_includes_default
8915 #include <$ac_header>
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919   (eval $ac_compile) 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; } &&
8932          { ac_try='test -s conftest.$ac_objext'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_header_compiler=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_header_compiler=no
8944 fi
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8947 echo "${ECHO_T}$ac_header_compiler" >&6
8948
8949 # Is the header present?
8950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958 #include <$ac_header>
8959 _ACEOF
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962   ac_status=$?
8963   grep -v '^ *+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } >/dev/null; then
8968   if test -s conftest.err; then
8969     ac_cpp_err=$ac_c_preproc_warn_flag
8970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8971   else
8972     ac_cpp_err=
8973   fi
8974 else
8975   ac_cpp_err=yes
8976 fi
8977 if test -z "$ac_cpp_err"; then
8978   ac_header_preproc=yes
8979 else
8980   echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8982
8983   ac_header_preproc=no
8984 fi
8985 rm -f conftest.err conftest.$ac_ext
8986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8987 echo "${ECHO_T}$ac_header_preproc" >&6
8988
8989 # So?  What about this header?
8990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8991   yes:no: )
8992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8996     ac_header_preproc=yes
8997     ;;
8998   no:yes:* )
8999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9011     (
9012       cat <<\_ASBOX
9013 ## ------------------------------------------ ##
9014 ## Report this to the AC_PACKAGE_NAME lists.  ##
9015 ## ------------------------------------------ ##
9016 _ASBOX
9017     ) |
9018       sed "s/^/$as_me: WARNING:     /" >&2
9019     ;;
9020 esac
9021 echo "$as_me:$LINENO: checking for $ac_header" >&5
9022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   eval "$as_ac_Header=\$ac_header_preproc"
9027 fi
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9030
9031 fi
9032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9033   cat >>confdefs.h <<_ACEOF
9034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9035 _ACEOF
9036
9037 fi
9038
9039 done
9040
9041
9042
9043 for ac_header in sys/time.h sys/resource.h
9044 do
9045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047   echo "$as_me:$LINENO: checking for $ac_header" >&5
9048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050   echo $ECHO_N "(cached) $ECHO_C" >&6
9051 fi
9052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9054 else
9055   # Is the header compilable?
9056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064 $ac_includes_default
9065 #include <$ac_header>
9066 _ACEOF
9067 rm -f conftest.$ac_objext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9069   (eval $ac_compile) 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078   (eval $ac_try) 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; } &&
9082          { ac_try='test -s conftest.$ac_objext'
9083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084   (eval $ac_try) 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); }; }; then
9088   ac_header_compiler=yes
9089 else
9090   echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093 ac_header_compiler=no
9094 fi
9095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9097 echo "${ECHO_T}$ac_header_compiler" >&6
9098
9099 # Is the header present?
9100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9103 /* confdefs.h.  */
9104 _ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h.  */
9108 #include <$ac_header>
9109 _ACEOF
9110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9112   ac_status=$?
9113   grep -v '^ *+' conftest.er1 >conftest.err
9114   rm -f conftest.er1
9115   cat conftest.err >&5
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } >/dev/null; then
9118   if test -s conftest.err; then
9119     ac_cpp_err=$ac_c_preproc_warn_flag
9120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9121   else
9122     ac_cpp_err=
9123   fi
9124 else
9125   ac_cpp_err=yes
9126 fi
9127 if test -z "$ac_cpp_err"; then
9128   ac_header_preproc=yes
9129 else
9130   echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9132
9133   ac_header_preproc=no
9134 fi
9135 rm -f conftest.err conftest.$ac_ext
9136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9137 echo "${ECHO_T}$ac_header_preproc" >&6
9138
9139 # So?  What about this header?
9140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9141   yes:no: )
9142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9146     ac_header_preproc=yes
9147     ;;
9148   no:yes:* )
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9161     (
9162       cat <<\_ASBOX
9163 ## ------------------------------------------ ##
9164 ## Report this to the AC_PACKAGE_NAME lists.  ##
9165 ## ------------------------------------------ ##
9166 _ASBOX
9167     ) |
9168       sed "s/^/$as_me: WARNING:     /" >&2
9169     ;;
9170 esac
9171 echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174   echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176   eval "$as_ac_Header=\$ac_header_preproc"
9177 fi
9178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180
9181 fi
9182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9183   cat >>confdefs.h <<_ACEOF
9184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9185 _ACEOF
9186
9187 fi
9188
9189 done
9190
9191
9192 for ac_header in unix.h
9193 do
9194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196   echo "$as_me:$LINENO: checking for $ac_header" >&5
9197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199   echo $ECHO_N "(cached) $ECHO_C" >&6
9200 fi
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9203 else
9204   # Is the header compilable?
9205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h.  */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h.  */
9213 $ac_includes_default
9214 #include <$ac_header>
9215 _ACEOF
9216 rm -f conftest.$ac_objext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218   (eval $ac_compile) 2>conftest.er1
9219   ac_status=$?
9220   grep -v '^ *+' conftest.er1 >conftest.err
9221   rm -f conftest.er1
9222   cat conftest.err >&5
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; } &&
9231          { ac_try='test -s conftest.$ac_objext'
9232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233   (eval $ac_try) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; }; then
9237   ac_header_compiler=yes
9238 else
9239   echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 ac_header_compiler=no
9243 fi
9244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246 echo "${ECHO_T}$ac_header_compiler" >&6
9247
9248 # Is the header present?
9249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h.  */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h.  */
9257 #include <$ac_header>
9258 _ACEOF
9259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9261   ac_status=$?
9262   grep -v '^ *+' conftest.er1 >conftest.err
9263   rm -f conftest.er1
9264   cat conftest.err >&5
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); } >/dev/null; then
9267   if test -s conftest.err; then
9268     ac_cpp_err=$ac_c_preproc_warn_flag
9269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9270   else
9271     ac_cpp_err=
9272   fi
9273 else
9274   ac_cpp_err=yes
9275 fi
9276 if test -z "$ac_cpp_err"; then
9277   ac_header_preproc=yes
9278 else
9279   echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282   ac_header_preproc=no
9283 fi
9284 rm -f conftest.err conftest.$ac_ext
9285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9286 echo "${ECHO_T}$ac_header_preproc" >&6
9287
9288 # So?  What about this header?
9289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9290   yes:no: )
9291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9295     ac_header_preproc=yes
9296     ;;
9297   no:yes:* )
9298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9310     (
9311       cat <<\_ASBOX
9312 ## ------------------------------------------ ##
9313 ## Report this to the AC_PACKAGE_NAME lists.  ##
9314 ## ------------------------------------------ ##
9315 _ASBOX
9316     ) |
9317       sed "s/^/$as_me: WARNING:     /" >&2
9318     ;;
9319 esac
9320 echo "$as_me:$LINENO: checking for $ac_header" >&5
9321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   eval "$as_ac_Header=\$ac_header_preproc"
9326 fi
9327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9329
9330 fi
9331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9332   cat >>confdefs.h <<_ACEOF
9333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9334 _ACEOF
9335
9336 fi
9337
9338 done
9339
9340
9341
9342
9343
9344 for ac_func in setrlimit getsid isctype
9345 do
9346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347 echo "$as_me:$LINENO: checking for $ac_func" >&5
9348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9349 if eval "test \"\${$as_ac_var+set}\" = set"; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h.  */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h.  */
9358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9360 #define $ac_func innocuous_$ac_func
9361
9362 /* System header to define __stub macros and hopefully few prototypes,
9363     which can conflict with char $ac_func (); below.
9364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9365     <limits.h> exists even on freestanding compilers.  */
9366
9367 #ifdef __STDC__
9368 # include <limits.h>
9369 #else
9370 # include <assert.h>
9371 #endif
9372
9373 #undef $ac_func
9374
9375 /* Override any gcc2 internal prototype to avoid an error.  */
9376 #ifdef __cplusplus
9377 extern "C"
9378 {
9379 #endif
9380 /* We use char because int might match the return type of a gcc2
9381    builtin and then its argument prototype would still apply.  */
9382 char $ac_func ();
9383 /* The GNU C library defines this for functions which it implements
9384     to always fail with ENOSYS.  Some functions are actually named
9385     something starting with __ and the normal name is an alias.  */
9386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9387 choke me
9388 #else
9389 char (*f) () = $ac_func;
9390 #endif
9391 #ifdef __cplusplus
9392 }
9393 #endif
9394
9395 int
9396 main ()
9397 {
9398 return f != $ac_func;
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405   (eval $ac_link) 2>conftest.er1
9406   ac_status=$?
9407   grep -v '^ *+' conftest.er1 >conftest.err
9408   rm -f conftest.er1
9409   cat conftest.err >&5
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); } &&
9412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414   (eval $ac_try) 2>&5
9415   ac_status=$?
9416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417   (exit $ac_status); }; } &&
9418          { ac_try='test -s conftest$ac_exeext'
9419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420   (eval $ac_try) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); }; }; then
9424   eval "$as_ac_var=yes"
9425 else
9426   echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9428
9429 eval "$as_ac_var=no"
9430 fi
9431 rm -f conftest.err conftest.$ac_objext \
9432       conftest$ac_exeext conftest.$ac_ext
9433 fi
9434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9436 if test `eval echo '${'$as_ac_var'}'` = yes; then
9437   cat >>confdefs.h <<_ACEOF
9438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9439 _ACEOF
9440
9441 fi
9442 done
9443
9444
9445 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9446 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9447 if test "${ac_cv_type_signal+set}" = set; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h.  */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h.  */
9456 #include <sys/types.h>
9457 #include <signal.h>
9458 #ifdef signal
9459 # undef signal
9460 #endif
9461 #ifdef __cplusplus
9462 extern "C" void (*signal (int, void (*)(int)))(int);
9463 #else
9464 void (*signal ()) ();
9465 #endif
9466
9467 int
9468 main ()
9469 {
9470 int i;
9471   ;
9472   return 0;
9473 }
9474 _ACEOF
9475 rm -f conftest.$ac_objext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477   (eval $ac_compile) 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } &&
9484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; } &&
9490          { ac_try='test -s conftest.$ac_objext'
9491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492   (eval $ac_try) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   ac_cv_type_signal=void
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_cv_type_signal=int
9502 fi
9503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9504 fi
9505 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9506 echo "${ECHO_T}$ac_cv_type_signal" >&6
9507
9508 cat >>confdefs.h <<_ACEOF
9509 #define RETSIGTYPE $ac_cv_type_signal
9510 _ACEOF
9511
9512
9513
9514 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
9515 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522 #include <signal.h>
9523
9524 _ACEOF
9525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9526   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
9527
9528     ac_cv_type_sig_atomic_t=yes;
9529     cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535 #include <signal.h>
9536
9537 _ACEOF
9538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9539   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
9540
9541                         is_sig_atomic_t_volatile=yes;
9542                         echo "$as_me:$LINENO: result: yes, volatile" >&5
9543 echo "${ECHO_T}yes, volatile" >&6
9544
9545 else
9546
9547                         is_sig_atomic_t_volatile=no;
9548                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
9549 echo "${ECHO_T}yes, non volatile" >&6
9550
9551 fi
9552 rm -f conftest*
9553
9554
9555 else
9556
9557     echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9559     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
9560 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
9561 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
9562   echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 $ac_includes_default
9571 int
9572 main ()
9573 {
9574 if ((sig_atomic_t *) 0)
9575   return 0;
9576 if (sizeof (sig_atomic_t))
9577   return 0;
9578   ;
9579   return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584   (eval $ac_compile) 2>conftest.er1
9585   ac_status=$?
9586   grep -v '^ *+' conftest.er1 >conftest.err
9587   rm -f conftest.er1
9588   cat conftest.err >&5
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } &&
9591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; } &&
9597          { ac_try='test -s conftest.$ac_objext'
9598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599   (eval $ac_try) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; }; then
9603   ac_cv_type_sig_atomic_t=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_cv_type_sig_atomic_t=no
9609 fi
9610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9611 fi
9612 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
9613 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
9614 if test $ac_cv_type_sig_atomic_t = yes; then
9615   :
9616 else
9617
9618 cat >>confdefs.h <<_ACEOF
9619 #define sig_atomic_t int
9620 _ACEOF
9621
9622 fi
9623
9624     is_sig_atomic_t_volatile=no
9625
9626 fi
9627 rm -f conftest*
9628
9629 if test $is_sig_atomic_t_volatile = 'yes'
9630 then
9631     cat >>confdefs.h <<\_ACEOF
9632 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
9633 _ACEOF
9634
9635 else
9636     cat >>confdefs.h <<\_ACEOF
9637 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
9638 _ACEOF
9639
9640 fi
9641
9642 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9643 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9644 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9645   echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647   cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h.  */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h.  */
9653 #include <signal.h>
9654 /* NetBSD declares sys_siglist in unistd.h.  */
9655 #if HAVE_UNISTD_H
9656 # include <unistd.h>
9657 #endif
9658
9659
9660 int
9661 main ()
9662 {
9663 #ifndef sys_siglist
9664   char *p = (char *) sys_siglist;
9665 #endif
9666
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673   (eval $ac_compile) 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } &&
9680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682   (eval $ac_try) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; } &&
9686          { ac_try='test -s conftest.$ac_objext'
9687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688   (eval $ac_try) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   ac_cv_have_decl_sys_siglist=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697 ac_cv_have_decl_sys_siglist=no
9698 fi
9699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9700 fi
9701 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9702 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9703 if test $ac_cv_have_decl_sys_siglist = yes; then
9704
9705 cat >>confdefs.h <<_ACEOF
9706 #define HAVE_DECL_SYS_SIGLIST 1
9707 _ACEOF
9708
9709
9710 else
9711   cat >>confdefs.h <<_ACEOF
9712 #define HAVE_DECL_SYS_SIGLIST 0
9713 _ACEOF
9714
9715
9716 fi
9717
9718
9719
9720
9721 echo "$as_me:$LINENO: checking for pid_t" >&5
9722 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9723 if test "${ac_cv_type_pid_t+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 $ac_includes_default
9733 int
9734 main ()
9735 {
9736 if ((pid_t *) 0)
9737   return 0;
9738 if (sizeof (pid_t))
9739   return 0;
9740   ;
9741   return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9746   (eval $ac_compile) 2>conftest.er1
9747   ac_status=$?
9748   grep -v '^ *+' conftest.er1 >conftest.err
9749   rm -f conftest.er1
9750   cat conftest.err >&5
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); } &&
9753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755   (eval $ac_try) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; } &&
9759          { ac_try='test -s conftest.$ac_objext'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; }; then
9765   ac_cv_type_pid_t=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_cv_type_pid_t=no
9771 fi
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9773 fi
9774 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9775 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9776 if test $ac_cv_type_pid_t = yes; then
9777   :
9778 else
9779
9780 cat >>confdefs.h <<_ACEOF
9781 #define pid_t int
9782 _ACEOF
9783
9784 fi
9785
9786
9787
9788
9789
9790
9791
9792 for ac_func in fgetpos memmove setegid srand48 strerror
9793 do
9794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9795 echo "$as_me:$LINENO: checking for $ac_func" >&5
9796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9797 if eval "test \"\${$as_ac_var+set}\" = set"; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h.  */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h.  */
9806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9808 #define $ac_func innocuous_$ac_func
9809
9810 /* System header to define __stub macros and hopefully few prototypes,
9811     which can conflict with char $ac_func (); below.
9812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9813     <limits.h> exists even on freestanding compilers.  */
9814
9815 #ifdef __STDC__
9816 # include <limits.h>
9817 #else
9818 # include <assert.h>
9819 #endif
9820
9821 #undef $ac_func
9822
9823 /* Override any gcc2 internal prototype to avoid an error.  */
9824 #ifdef __cplusplus
9825 extern "C"
9826 {
9827 #endif
9828 /* We use char because int might match the return type of a gcc2
9829    builtin and then its argument prototype would still apply.  */
9830 char $ac_func ();
9831 /* The GNU C library defines this for functions which it implements
9832     to always fail with ENOSYS.  Some functions are actually named
9833     something starting with __ and the normal name is an alias.  */
9834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9835 choke me
9836 #else
9837 char (*f) () = $ac_func;
9838 #endif
9839 #ifdef __cplusplus
9840 }
9841 #endif
9842
9843 int
9844 main ()
9845 {
9846 return f != $ac_func;
9847   ;
9848   return 0;
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853   (eval $ac_link) 2>conftest.er1
9854   ac_status=$?
9855   grep -v '^ *+' conftest.er1 >conftest.err
9856   rm -f conftest.er1
9857   cat conftest.err >&5
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } &&
9860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; } &&
9866          { ac_try='test -s conftest$ac_exeext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   eval "$as_ac_var=yes"
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 eval "$as_ac_var=no"
9878 fi
9879 rm -f conftest.err conftest.$ac_objext \
9880       conftest$ac_exeext conftest.$ac_ext
9881 fi
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9884 if test `eval echo '${'$as_ac_var'}'` = yes; then
9885   cat >>confdefs.h <<_ACEOF
9886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9887 _ACEOF
9888
9889 fi
9890 done
9891
9892
9893
9894
9895 for ac_func in strcasecmp strdup
9896 do
9897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9898 echo "$as_me:$LINENO: checking for $ac_func" >&5
9899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9900 if eval "test \"\${$as_ac_var+set}\" = set"; then
9901   echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903   cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9911 #define $ac_func innocuous_$ac_func
9912
9913 /* System header to define __stub macros and hopefully few prototypes,
9914     which can conflict with char $ac_func (); below.
9915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916     <limits.h> exists even on freestanding compilers.  */
9917
9918 #ifdef __STDC__
9919 # include <limits.h>
9920 #else
9921 # include <assert.h>
9922 #endif
9923
9924 #undef $ac_func
9925
9926 /* Override any gcc2 internal prototype to avoid an error.  */
9927 #ifdef __cplusplus
9928 extern "C"
9929 {
9930 #endif
9931 /* We use char because int might match the return type of a gcc2
9932    builtin and then its argument prototype would still apply.  */
9933 char $ac_func ();
9934 /* The GNU C library defines this for functions which it implements
9935     to always fail with ENOSYS.  Some functions are actually named
9936     something starting with __ and the normal name is an alias.  */
9937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9938 choke me
9939 #else
9940 char (*f) () = $ac_func;
9941 #endif
9942 #ifdef __cplusplus
9943 }
9944 #endif
9945
9946 int
9947 main ()
9948 {
9949 return f != $ac_func;
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956   (eval $ac_link) 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; } &&
9969          { ac_try='test -s conftest$ac_exeext'
9970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971   (eval $ac_try) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; }; then
9975   eval "$as_ac_var=yes"
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 eval "$as_ac_var=no"
9981 fi
9982 rm -f conftest.err conftest.$ac_objext \
9983       conftest$ac_exeext conftest.$ac_ext
9984 fi
9985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9987 if test `eval echo '${'$as_ac_var'}'` = yes; then
9988   cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9990 _ACEOF
9991
9992 else
9993   case $LIBOBJS in
9994     "$ac_func.$ac_objext"   | \
9995   *" $ac_func.$ac_objext"   | \
9996     "$ac_func.$ac_objext "* | \
9997   *" $ac_func.$ac_objext "* ) ;;
9998   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
9999 esac
10000
10001 fi
10002 done
10003
10004
10005
10006 echo "$as_me:$LINENO: checking for getopt" >&5
10007 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
10008 if test "${ac_cv_func_getopt+set}" = set; then
10009   echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011   cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h.  */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h.  */
10017 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
10018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10019 #define getopt innocuous_getopt
10020
10021 /* System header to define __stub macros and hopefully few prototypes,
10022     which can conflict with char getopt (); below.
10023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024     <limits.h> exists even on freestanding compilers.  */
10025
10026 #ifdef __STDC__
10027 # include <limits.h>
10028 #else
10029 # include <assert.h>
10030 #endif
10031
10032 #undef getopt
10033
10034 /* Override any gcc2 internal prototype to avoid an error.  */
10035 #ifdef __cplusplus
10036 extern "C"
10037 {
10038 #endif
10039 /* We use char because int might match the return type of a gcc2
10040    builtin and then its argument prototype would still apply.  */
10041 char getopt ();
10042 /* The GNU C library defines this for functions which it implements
10043     to always fail with ENOSYS.  Some functions are actually named
10044     something starting with __ and the normal name is an alias.  */
10045 #if defined (__stub_getopt) || defined (__stub___getopt)
10046 choke me
10047 #else
10048 char (*f) () = getopt;
10049 #endif
10050 #ifdef __cplusplus
10051 }
10052 #endif
10053
10054 int
10055 main ()
10056 {
10057 return f != getopt;
10058   ;
10059   return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064   (eval $ac_link) 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } &&
10071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   ac_cv_func_getopt=yes
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ac_cv_func_getopt=no
10089 fi
10090 rm -f conftest.err conftest.$ac_objext \
10091       conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
10094 echo "${ECHO_T}$ac_cv_func_getopt" >&6
10095
10096 if test $ac_cv_func_getopt = yes; then
10097
10098 for ac_header in getopt.h
10099 do
10100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102   echo "$as_me:$LINENO: checking for $ac_header" >&5
10103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 fi
10107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10109 else
10110   # Is the header compilable?
10111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119 $ac_includes_default
10120 #include <$ac_header>
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124   (eval $ac_compile) 2>conftest.er1
10125   ac_status=$?
10126   grep -v '^ *+' conftest.er1 >conftest.err
10127   rm -f conftest.er1
10128   cat conftest.err >&5
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); } &&
10131          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133   (eval $ac_try) 2>&5
10134   ac_status=$?
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); }; } &&
10137          { ac_try='test -s conftest.$ac_objext'
10138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139   (eval $ac_try) 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; }; then
10143   ac_header_compiler=yes
10144 else
10145   echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148 ac_header_compiler=no
10149 fi
10150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10152 echo "${ECHO_T}$ac_header_compiler" >&6
10153
10154 # Is the header present?
10155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163 #include <$ac_header>
10164 _ACEOF
10165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10167   ac_status=$?
10168   grep -v '^ *+' conftest.er1 >conftest.err
10169   rm -f conftest.er1
10170   cat conftest.err >&5
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } >/dev/null; then
10173   if test -s conftest.err; then
10174     ac_cpp_err=$ac_c_preproc_warn_flag
10175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10176   else
10177     ac_cpp_err=
10178   fi
10179 else
10180   ac_cpp_err=yes
10181 fi
10182 if test -z "$ac_cpp_err"; then
10183   ac_header_preproc=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188   ac_header_preproc=no
10189 fi
10190 rm -f conftest.err conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10192 echo "${ECHO_T}$ac_header_preproc" >&6
10193
10194 # So?  What about this header?
10195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10196   yes:no: )
10197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10201     ac_header_preproc=yes
10202     ;;
10203   no:yes:* )
10204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10206     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10207 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10208     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10210     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10211 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10214     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10216     (
10217       cat <<\_ASBOX
10218 ## ------------------------------------------ ##
10219 ## Report this to the AC_PACKAGE_NAME lists.  ##
10220 ## ------------------------------------------ ##
10221 _ASBOX
10222     ) |
10223       sed "s/^/$as_me: WARNING:     /" >&2
10224     ;;
10225 esac
10226 echo "$as_me:$LINENO: checking for $ac_header" >&5
10227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   eval "$as_ac_Header=\$ac_header_preproc"
10232 fi
10233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10235
10236 fi
10237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10238   cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10240 _ACEOF
10241
10242 fi
10243
10244 done
10245
10246 fi
10247
10248 mutt_cv_snprintf=no
10249 SNPRINTFOBJS=""
10250
10251 for ac_func in snprintf
10252 do
10253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10254 echo "$as_me:$LINENO: checking for $ac_func" >&5
10255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10256 if eval "test \"\${$as_ac_var+set}\" = set"; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259   cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h.  */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h.  */
10265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10267 #define $ac_func innocuous_$ac_func
10268
10269 /* System header to define __stub macros and hopefully few prototypes,
10270     which can conflict with char $ac_func (); below.
10271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10272     <limits.h> exists even on freestanding compilers.  */
10273
10274 #ifdef __STDC__
10275 # include <limits.h>
10276 #else
10277 # include <assert.h>
10278 #endif
10279
10280 #undef $ac_func
10281
10282 /* Override any gcc2 internal prototype to avoid an error.  */
10283 #ifdef __cplusplus
10284 extern "C"
10285 {
10286 #endif
10287 /* We use char because int might match the return type of a gcc2
10288    builtin and then its argument prototype would still apply.  */
10289 char $ac_func ();
10290 /* The GNU C library defines this for functions which it implements
10291     to always fail with ENOSYS.  Some functions are actually named
10292     something starting with __ and the normal name is an alias.  */
10293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10294 choke me
10295 #else
10296 char (*f) () = $ac_func;
10297 #endif
10298 #ifdef __cplusplus
10299 }
10300 #endif
10301
10302 int
10303 main ()
10304 {
10305 return f != $ac_func;
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312   (eval $ac_link) 2>conftest.er1
10313   ac_status=$?
10314   grep -v '^ *+' conftest.er1 >conftest.err
10315   rm -f conftest.er1
10316   cat conftest.err >&5
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; } &&
10325          { ac_try='test -s conftest$ac_exeext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   eval "$as_ac_var=yes"
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 eval "$as_ac_var=no"
10337 fi
10338 rm -f conftest.err conftest.$ac_objext \
10339       conftest$ac_exeext conftest.$ac_ext
10340 fi
10341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10343 if test `eval echo '${'$as_ac_var'}'` = yes; then
10344   cat >>confdefs.h <<_ACEOF
10345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10346 _ACEOF
10347
10348 else
10349   mutt_cv_snprintf=yes
10350 fi
10351 done
10352
10353
10354 for ac_func in vsnprintf
10355 do
10356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10357 echo "$as_me:$LINENO: checking for $ac_func" >&5
10358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10359 if eval "test \"\${$as_ac_var+set}\" = set"; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h.  */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h.  */
10368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10370 #define $ac_func innocuous_$ac_func
10371
10372 /* System header to define __stub macros and hopefully few prototypes,
10373     which can conflict with char $ac_func (); below.
10374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10375     <limits.h> exists even on freestanding compilers.  */
10376
10377 #ifdef __STDC__
10378 # include <limits.h>
10379 #else
10380 # include <assert.h>
10381 #endif
10382
10383 #undef $ac_func
10384
10385 /* Override any gcc2 internal prototype to avoid an error.  */
10386 #ifdef __cplusplus
10387 extern "C"
10388 {
10389 #endif
10390 /* We use char because int might match the return type of a gcc2
10391    builtin and then its argument prototype would still apply.  */
10392 char $ac_func ();
10393 /* The GNU C library defines this for functions which it implements
10394     to always fail with ENOSYS.  Some functions are actually named
10395     something starting with __ and the normal name is an alias.  */
10396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10397 choke me
10398 #else
10399 char (*f) () = $ac_func;
10400 #endif
10401 #ifdef __cplusplus
10402 }
10403 #endif
10404
10405 int
10406 main ()
10407 {
10408 return f != $ac_func;
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10415   (eval $ac_link) 2>conftest.er1
10416   ac_status=$?
10417   grep -v '^ *+' conftest.er1 >conftest.err
10418   rm -f conftest.er1
10419   cat conftest.err >&5
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } &&
10422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424   (eval $ac_try) 2>&5
10425   ac_status=$?
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); }; } &&
10428          { ac_try='test -s conftest$ac_exeext'
10429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430   (eval $ac_try) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   eval "$as_ac_var=yes"
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439 eval "$as_ac_var=no"
10440 fi
10441 rm -f conftest.err conftest.$ac_objext \
10442       conftest$ac_exeext conftest.$ac_ext
10443 fi
10444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10446 if test `eval echo '${'$as_ac_var'}'` = yes; then
10447   cat >>confdefs.h <<_ACEOF
10448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10449 _ACEOF
10450
10451 else
10452   mutt_cv_snprintf=yes
10453 fi
10454 done
10455
10456 if test $mutt_cv_snprintf = yes; then
10457         case $LIBOBJS in
10458     "snprintf.$ac_objext"   | \
10459   *" snprintf.$ac_objext"   | \
10460     "snprintf.$ac_objext "* | \
10461   *" snprintf.$ac_objext "* ) ;;
10462   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
10463 esac
10464
10465 fi
10466
10467
10468 for ac_func in ftruncate
10469 do
10470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10471 echo "$as_me:$LINENO: checking for $ac_func" >&5
10472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10473 if eval "test \"\${$as_ac_var+set}\" = set"; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h.  */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h.  */
10482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10484 #define $ac_func innocuous_$ac_func
10485
10486 /* System header to define __stub macros and hopefully few prototypes,
10487     which can conflict with char $ac_func (); below.
10488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489     <limits.h> exists even on freestanding compilers.  */
10490
10491 #ifdef __STDC__
10492 # include <limits.h>
10493 #else
10494 # include <assert.h>
10495 #endif
10496
10497 #undef $ac_func
10498
10499 /* Override any gcc2 internal prototype to avoid an error.  */
10500 #ifdef __cplusplus
10501 extern "C"
10502 {
10503 #endif
10504 /* We use char because int might match the return type of a gcc2
10505    builtin and then its argument prototype would still apply.  */
10506 char $ac_func ();
10507 /* The GNU C library defines this for functions which it implements
10508     to always fail with ENOSYS.  Some functions are actually named
10509     something starting with __ and the normal name is an alias.  */
10510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10511 choke me
10512 #else
10513 char (*f) () = $ac_func;
10514 #endif
10515 #ifdef __cplusplus
10516 }
10517 #endif
10518
10519 int
10520 main ()
10521 {
10522 return f != $ac_func;
10523   ;
10524   return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529   (eval $ac_link) 2>conftest.er1
10530   ac_status=$?
10531   grep -v '^ *+' conftest.er1 >conftest.err
10532   rm -f conftest.er1
10533   cat conftest.err >&5
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } &&
10536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538   (eval $ac_try) 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); }; } &&
10542          { ac_try='test -s conftest$ac_exeext'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; }; then
10548   eval "$as_ac_var=yes"
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 eval "$as_ac_var=no"
10554 fi
10555 rm -f conftest.err conftest.$ac_objext \
10556       conftest$ac_exeext conftest.$ac_ext
10557 fi
10558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10560 if test `eval echo '${'$as_ac_var'}'` = yes; then
10561   cat >>confdefs.h <<_ACEOF
10562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10563 _ACEOF
10564
10565 else
10566
10567 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
10568 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
10569 if test "${ac_cv_lib_x_chsize+set}" = set; then
10570   echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572   ac_check_lib_save_LIBS=$LIBS
10573 LIBS="-lx  $LIBS"
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h.  */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h.  */
10580
10581 /* Override any gcc2 internal prototype to avoid an error.  */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 /* We use char because int might match the return type of a gcc2
10586    builtin and then its argument prototype would still apply.  */
10587 char chsize ();
10588 int
10589 main ()
10590 {
10591 chsize ();
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598   (eval $ac_link) 2>conftest.er1
10599   ac_status=$?
10600   grep -v '^ *+' conftest.er1 >conftest.err
10601   rm -f conftest.er1
10602   cat conftest.err >&5
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } &&
10605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607   (eval $ac_try) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; } &&
10611          { ac_try='test -s conftest$ac_exeext'
10612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613   (eval $ac_try) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; }; then
10617   ac_cv_lib_x_chsize=yes
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_cv_lib_x_chsize=no
10623 fi
10624 rm -f conftest.err conftest.$ac_objext \
10625       conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10627 fi
10628 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
10629 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
10630 if test $ac_cv_lib_x_chsize = yes; then
10631   cat >>confdefs.h <<_ACEOF
10632 #define HAVE_LIBX 1
10633 _ACEOF
10634
10635   LIBS="-lx $LIBS"
10636
10637 fi
10638
10639 fi
10640 done
10641
10642
10643
10644 for ac_func in strftime
10645 do
10646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10647 echo "$as_me:$LINENO: checking for $ac_func" >&5
10648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10649 if eval "test \"\${$as_ac_var+set}\" = set"; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652   cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h.  */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h.  */
10658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10660 #define $ac_func innocuous_$ac_func
10661
10662 /* System header to define __stub macros and hopefully few prototypes,
10663     which can conflict with char $ac_func (); below.
10664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10665     <limits.h> exists even on freestanding compilers.  */
10666
10667 #ifdef __STDC__
10668 # include <limits.h>
10669 #else
10670 # include <assert.h>
10671 #endif
10672
10673 #undef $ac_func
10674
10675 /* Override any gcc2 internal prototype to avoid an error.  */
10676 #ifdef __cplusplus
10677 extern "C"
10678 {
10679 #endif
10680 /* We use char because int might match the return type of a gcc2
10681    builtin and then its argument prototype would still apply.  */
10682 char $ac_func ();
10683 /* The GNU C library defines this for functions which it implements
10684     to always fail with ENOSYS.  Some functions are actually named
10685     something starting with __ and the normal name is an alias.  */
10686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10687 choke me
10688 #else
10689 char (*f) () = $ac_func;
10690 #endif
10691 #ifdef __cplusplus
10692 }
10693 #endif
10694
10695 int
10696 main ()
10697 {
10698 return f != $ac_func;
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705   (eval $ac_link) 2>conftest.er1
10706   ac_status=$?
10707   grep -v '^ *+' conftest.er1 >conftest.err
10708   rm -f conftest.er1
10709   cat conftest.err >&5
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } &&
10712          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714   (eval $ac_try) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); }; } &&
10718          { ac_try='test -s conftest$ac_exeext'
10719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720   (eval $ac_try) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }; }; then
10724   eval "$as_ac_var=yes"
10725 else
10726   echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 eval "$as_ac_var=no"
10730 fi
10731 rm -f conftest.err conftest.$ac_objext \
10732       conftest$ac_exeext conftest.$ac_ext
10733 fi
10734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10736 if test `eval echo '${'$as_ac_var'}'` = yes; then
10737   cat >>confdefs.h <<_ACEOF
10738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10739 _ACEOF
10740
10741 else
10742
10743 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10744 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
10745 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10746   echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748   ac_check_lib_save_LIBS=$LIBS
10749 LIBS="-lintl  $LIBS"
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h.  */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h.  */
10756
10757 /* Override any gcc2 internal prototype to avoid an error.  */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 /* We use char because int might match the return type of a gcc2
10762    builtin and then its argument prototype would still apply.  */
10763 char strftime ();
10764 int
10765 main ()
10766 {
10767 strftime ();
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774   (eval $ac_link) 2>conftest.er1
10775   ac_status=$?
10776   grep -v '^ *+' conftest.er1 >conftest.err
10777   rm -f conftest.er1
10778   cat conftest.err >&5
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); } &&
10781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783   (eval $ac_try) 2>&5
10784   ac_status=$?
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); }; } &&
10787          { ac_try='test -s conftest$ac_exeext'
10788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789   (eval $ac_try) 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; }; then
10793   ac_cv_lib_intl_strftime=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 ac_cv_lib_intl_strftime=no
10799 fi
10800 rm -f conftest.err conftest.$ac_objext \
10801       conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10803 fi
10804 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10805 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
10806 if test $ac_cv_lib_intl_strftime = yes; then
10807   cat >>confdefs.h <<_ACEOF
10808 #define HAVE_LIBINTL 1
10809 _ACEOF
10810
10811   LIBS="-lintl $LIBS"
10812
10813 fi
10814
10815 fi
10816 done
10817
10818
10819
10820 for ac_func in fchdir
10821 do
10822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10823 echo "$as_me:$LINENO: checking for $ac_func" >&5
10824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10825 if eval "test \"\${$as_ac_var+set}\" = set"; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10836 #define $ac_func innocuous_$ac_func
10837
10838 /* System header to define __stub macros and hopefully few prototypes,
10839     which can conflict with char $ac_func (); below.
10840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10841     <limits.h> exists even on freestanding compilers.  */
10842
10843 #ifdef __STDC__
10844 # include <limits.h>
10845 #else
10846 # include <assert.h>
10847 #endif
10848
10849 #undef $ac_func
10850
10851 /* Override any gcc2 internal prototype to avoid an error.  */
10852 #ifdef __cplusplus
10853 extern "C"
10854 {
10855 #endif
10856 /* We use char because int might match the return type of a gcc2
10857    builtin and then its argument prototype would still apply.  */
10858 char $ac_func ();
10859 /* The GNU C library defines this for functions which it implements
10860     to always fail with ENOSYS.  Some functions are actually named
10861     something starting with __ and the normal name is an alias.  */
10862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10863 choke me
10864 #else
10865 char (*f) () = $ac_func;
10866 #endif
10867 #ifdef __cplusplus
10868 }
10869 #endif
10870
10871 int
10872 main ()
10873 {
10874 return f != $ac_func;
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881   (eval $ac_link) 2>conftest.er1
10882   ac_status=$?
10883   grep -v '^ *+' conftest.er1 >conftest.err
10884   rm -f conftest.er1
10885   cat conftest.err >&5
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } &&
10888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; } &&
10894          { ac_try='test -s conftest$ac_exeext'
10895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896   (eval $ac_try) 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); }; }; then
10900   eval "$as_ac_var=yes"
10901 else
10902   echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 eval "$as_ac_var=no"
10906 fi
10907 rm -f conftest.err conftest.$ac_objext \
10908       conftest$ac_exeext conftest.$ac_ext
10909 fi
10910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10912 if test `eval echo '${'$as_ac_var'}'` = yes; then
10913   cat >>confdefs.h <<_ACEOF
10914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10915 _ACEOF
10916
10917 else
10918   mutt_cv_fchdir=no
10919 fi
10920 done
10921
10922
10923
10924 # Check whether --with-regex or --without-regex was given.
10925 if test "${with_regex+set}" = set; then
10926   withval="$with_regex"
10927   mutt_cv_regex=yes
10928 else
10929
10930 for ac_func in regcomp
10931 do
10932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10933 echo "$as_me:$LINENO: checking for $ac_func" >&5
10934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10935 if eval "test \"\${$as_ac_var+set}\" = set"; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938   cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10946 #define $ac_func innocuous_$ac_func
10947
10948 /* System header to define __stub macros and hopefully few prototypes,
10949     which can conflict with char $ac_func (); below.
10950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10951     <limits.h> exists even on freestanding compilers.  */
10952
10953 #ifdef __STDC__
10954 # include <limits.h>
10955 #else
10956 # include <assert.h>
10957 #endif
10958
10959 #undef $ac_func
10960
10961 /* Override any gcc2 internal prototype to avoid an error.  */
10962 #ifdef __cplusplus
10963 extern "C"
10964 {
10965 #endif
10966 /* We use char because int might match the return type of a gcc2
10967    builtin and then its argument prototype would still apply.  */
10968 char $ac_func ();
10969 /* The GNU C library defines this for functions which it implements
10970     to always fail with ENOSYS.  Some functions are actually named
10971     something starting with __ and the normal name is an alias.  */
10972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10973 choke me
10974 #else
10975 char (*f) () = $ac_func;
10976 #endif
10977 #ifdef __cplusplus
10978 }
10979 #endif
10980
10981 int
10982 main ()
10983 {
10984 return f != $ac_func;
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991   (eval $ac_link) 2>conftest.er1
10992   ac_status=$?
10993   grep -v '^ *+' conftest.er1 >conftest.err
10994   rm -f conftest.er1
10995   cat conftest.err >&5
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } &&
10998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000   (eval $ac_try) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; } &&
11004          { ac_try='test -s conftest$ac_exeext'
11005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006   (eval $ac_try) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; }; then
11010   eval "$as_ac_var=yes"
11011 else
11012   echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015 eval "$as_ac_var=no"
11016 fi
11017 rm -f conftest.err conftest.$ac_objext \
11018       conftest$ac_exeext conftest.$ac_ext
11019 fi
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023   cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025 _ACEOF
11026  mutt_cv_regex=no
11027 else
11028   mutt_cv_regex=yes
11029 fi
11030 done
11031
11032 fi;
11033
11034 if test $mutt_cv_regex = no ; then
11035 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
11036 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
11037 if test "${mutt_cv_regex_broken+set}" = set; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   if test "$cross_compiling" = yes; then
11041   mutt_cv_regex_broken=yes
11042 else
11043   cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h.  */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h.  */
11049
11050 #include <unistd.h>
11051 #include <regex.h>
11052 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); }
11053 _ACEOF
11054 rm -f conftest$ac_exeext
11055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056   (eval $ac_link) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; }; then
11065   mutt_cv_regex_broken=no
11066 else
11067   echo "$as_me: program exited with status $ac_status" >&5
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071 ( exit $ac_status )
11072 mutt_cv_regex_broken=yes
11073 fi
11074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11075 fi
11076 fi
11077 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
11078 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
11079         if test $mutt_cv_regex_broken = yes ; then
11080                 echo "Using the included GNU regex instead." >&6
11081                 mutt_cv_regex=yes
11082         fi
11083 fi
11084
11085 if test $mutt_cv_regex = yes; then
11086
11087 cat >>confdefs.h <<\_ACEOF
11088 #define USE_GNU_REGEX 1
11089 _ACEOF
11090
11091         case $LIBOBJS in
11092     "regex.$ac_objext"   | \
11093   *" regex.$ac_objext"   | \
11094     "regex.$ac_objext "* | \
11095   *" regex.$ac_objext "* ) ;;
11096   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
11097 esac
11098
11099 fi
11100
11101
11102
11103 # Check whether --with-homespool or --without-homespool was given.
11104 if test "${with_homespool+set}" = set; then
11105   withval="$with_homespool"
11106   with_homespool=${withval}
11107 fi;
11108 if test x$with_homespool != x; then
11109         if test $with_homespool = yes; then
11110                 with_homespool=mailbox
11111         fi
11112
11113 cat >>confdefs.h <<_ACEOF
11114 #define MAILPATH "$with_homespool"
11115 _ACEOF
11116
11117
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HOMESPOOL 1
11120 _ACEOF
11121
11122
11123 cat >>confdefs.h <<\_ACEOF
11124 #define USE_DOTLOCK 1
11125 _ACEOF
11126
11127         mutt_cv_setgid=no
11128 else
11129
11130 # Check whether --with-mailpath or --without-mailpath was given.
11131 if test "${with_mailpath+set}" = set; then
11132   withval="$with_mailpath"
11133   mutt_cv_mailpath=$withval
11134 else
11135    echo "$as_me:$LINENO: checking where new mail is stored" >&5
11136 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
11137 if test "${mutt_cv_mailpath+set}" = set; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140   mutt_cv_mailpath=no
11141                         if test -d /var/mail; then
11142                                 mutt_cv_mailpath=/var/mail
11143                         elif test -d /var/spool/mail; then
11144                                 mutt_cv_mailpath=/var/spool/mail
11145                         elif test -d /usr/spool/mail; then
11146                                 mutt_cv_mailpath=/usr/spool/mail
11147                         elif test -d /usr/mail; then
11148                                 mutt_cv_mailpath=/usr/mail
11149                         fi
11150 fi
11151 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
11152 echo "${ECHO_T}$mutt_cv_mailpath" >&6
11153
11154 fi;
11155         if test "$mutt_cv_mailpath" = no; then
11156                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
11157 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
11158    { (exit 1); exit 1; }; }
11159         fi
11160
11161 cat >>confdefs.h <<_ACEOF
11162 #define MAILPATH "$mutt_cv_mailpath"
11163 _ACEOF
11164
11165
11166         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
11167 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
11168 if test "${mutt_cv_worldwrite+set}" = set; then
11169   echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171   if test "$cross_compiling" = yes; then
11172   mutt_cv_worldwrite=no
11173 else
11174   cat >conftest.$ac_ext <<_ACEOF
11175 /* confdefs.h.  */
11176 _ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h.  */
11180 #include <sys/types.h>
11181 #include <sys/stat.h>
11182
11183 int main (int argc, char **argv)
11184 {
11185         struct stat s;
11186
11187         stat ("$mutt_cv_mailpath", &s);
11188         if (s.st_mode & S_IWOTH) exit (0);
11189         exit (1);
11190 }
11191 _ACEOF
11192 rm -f conftest$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194   (eval $ac_link) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199   (eval $ac_try) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); }; }; then
11203   mutt_cv_worldwrite=yes
11204 else
11205   echo "$as_me: program exited with status $ac_status" >&5
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209 ( exit $ac_status )
11210 mutt_cv_worldwrite=no
11211 fi
11212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11213 fi
11214 fi
11215 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
11216 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
11217
11218         mutt_cv_setgid=no
11219         if test $mutt_cv_worldwrite = yes; then
11220
11221 cat >>confdefs.h <<\_ACEOF
11222 #define USE_DOTLOCK 1
11223 _ACEOF
11224
11225         else
11226
11227                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
11228 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
11229 if test "${mutt_cv_groupwrite+set}" = set; then
11230   echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232   if test "$cross_compiling" = yes; then
11233   mutt_cv_groupwrite=no
11234 else
11235   cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 #include <sys/types.h>
11242 #include <sys/stat.h>
11243
11244 int main (int argc, char **argv)
11245 {
11246         struct stat s;
11247
11248         stat ("$mutt_cv_mailpath", &s);
11249         if (s.st_mode & S_IWGRP) exit (0);
11250         exit (1);
11251 }
11252 _ACEOF
11253 rm -f conftest$ac_exeext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255   (eval $ac_link) 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   mutt_cv_groupwrite=yes
11265 else
11266   echo "$as_me: program exited with status $ac_status" >&5
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270 ( exit $ac_status )
11271 mutt_cv_groupwrite=no
11272 fi
11273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11274 fi
11275 fi
11276 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
11277 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
11278
11279                 if test $mutt_cv_groupwrite = yes; then
11280
11281 cat >>confdefs.h <<\_ACEOF
11282 #define USE_DOTLOCK 1
11283 _ACEOF
11284
11285
11286 cat >>confdefs.h <<\_ACEOF
11287 #define USE_SETGID 1
11288 _ACEOF
11289
11290                         mutt_cv_setgid=yes
11291                 fi
11292         fi
11293 fi
11294
11295 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
11296 if test "${enable_external_dotlock+set}" = set; then
11297   enableval="$enable_external_dotlock"
11298   mutt_cv_external_dotlock="$enableval"
11299 fi;
11300
11301 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
11302         || test "x$mutt_cv_external_dotlock" = "xyes"
11303 then
11304
11305 cat >>confdefs.h <<\_ACEOF
11306 #define DL_STANDALONE 1
11307 _ACEOF
11308
11309         DOTLOCK_TARGET="muttng_dotlock"
11310 else
11311         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
11312 fi
11313
11314
11315
11316
11317 echo "$as_me:$LINENO: checking where to put the documentation" >&5
11318 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
11319
11320 # Check whether --with-docdir or --without-docdir was given.
11321 if test "${with_docdir+set}" = set; then
11322   withval="$with_docdir"
11323   mutt_cv_docdir=$withval
11324 else
11325   mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
11326 fi;
11327 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
11328 echo "${ECHO_T}$mutt_cv_docdir" >&6
11329
11330 docdir=$mutt_cv_docdir
11331
11332
11333 if test x$mutt_cv_setgid = xyes; then
11334         DOTLOCK_GROUP='mail'
11335         DOTLOCK_PERMISSION=2755
11336 else
11337         DOTLOCK_GROUP=''
11338         DOTLOCK_PERMISSION=755
11339 fi
11340
11341
11342
11343
11344 # Check whether --with-domain or --without-domain was given.
11345 if test "${with_domain+set}" = set; then
11346   withval="$with_domain"
11347   if test $withval != yes; then
11348
11349 cat >>confdefs.h <<_ACEOF
11350 #define DOMAIN "$withval"
11351 _ACEOF
11352
11353         fi
11354 fi;
11355
11356 need_socket="no"
11357
11358
11359 # Check whether --enable-pop or --disable-pop was given.
11360 if test "${enable_pop+set}" = set; then
11361   enableval="$enable_pop"
11362          if test x$enableval = xyes ; then
11363
11364 cat >>confdefs.h <<\_ACEOF
11365 #define USE_POP 1
11366 _ACEOF
11367
11368                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
11369                 need_socket="yes"
11370                 need_pop="yes"
11371                 need_md5="yes"
11372         fi
11373
11374 fi;
11375
11376 # Check whether --enable-imap or --disable-imap was given.
11377 if test "${enable_imap+set}" = set; then
11378   enableval="$enable_imap"
11379          if test x$enableval = xyes ; then
11380
11381 cat >>confdefs.h <<\_ACEOF
11382 #define USE_IMAP 1
11383 _ACEOF
11384
11385                 LIBIMAP="-Limap -limap"
11386                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
11387                 need_imap="yes"
11388                 need_socket="yes"
11389                 need_md5="yes"
11390         fi
11391
11392 fi;
11393
11394
11395 if test x$need_imap = xyes; then
11396   BUILD_IMAP_TRUE=
11397   BUILD_IMAP_FALSE='#'
11398 else
11399   BUILD_IMAP_TRUE='#'
11400   BUILD_IMAP_FALSE=
11401 fi
11402
11403
11404 # Check whether --enable-nntp or --disable-nntp was given.
11405 if test "${enable_nntp+set}" = set; then
11406   enableval="$enable_nntp"
11407         if test x$enableval = xyes ; then
11408                 cat >>confdefs.h <<\_ACEOF
11409 #define USE_NNTP 1
11410 _ACEOF
11411
11412                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
11413                 need_socket="yes"
11414         fi
11415
11416 fi;
11417
11418
11419 if test "$need_socket" = "yes"
11420 then
11421         echo "$as_me:$LINENO: checking for socklen_t" >&5
11422 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11423         cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 #include <sys/socket.h>
11430
11431 _ACEOF
11432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11433   $EGREP "socklen_t" >/dev/null 2>&1; then
11434   echo "$as_me:$LINENO: result: yes" >&5
11435 echo "${ECHO_T}yes" >&6
11436 else
11437   echo "$as_me:$LINENO: result: no" >&5
11438 echo "${ECHO_T}no" >&6
11439
11440 cat >>confdefs.h <<\_ACEOF
11441 #define socklen_t int
11442 _ACEOF
11443
11444 fi
11445 rm -f conftest*
11446
11447         echo "$as_me:$LINENO: checking for gethostent" >&5
11448 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
11449 if test "${ac_cv_func_gethostent+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h.  */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h.  */
11458 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
11459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11460 #define gethostent innocuous_gethostent
11461
11462 /* System header to define __stub macros and hopefully few prototypes,
11463     which can conflict with char gethostent (); below.
11464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11465     <limits.h> exists even on freestanding compilers.  */
11466
11467 #ifdef __STDC__
11468 # include <limits.h>
11469 #else
11470 # include <assert.h>
11471 #endif
11472
11473 #undef gethostent
11474
11475 /* Override any gcc2 internal prototype to avoid an error.  */
11476 #ifdef __cplusplus
11477 extern "C"
11478 {
11479 #endif
11480 /* We use char because int might match the return type of a gcc2
11481    builtin and then its argument prototype would still apply.  */
11482 char gethostent ();
11483 /* The GNU C library defines this for functions which it implements
11484     to always fail with ENOSYS.  Some functions are actually named
11485     something starting with __ and the normal name is an alias.  */
11486 #if defined (__stub_gethostent) || defined (__stub___gethostent)
11487 choke me
11488 #else
11489 char (*f) () = gethostent;
11490 #endif
11491 #ifdef __cplusplus
11492 }
11493 #endif
11494
11495 int
11496 main ()
11497 {
11498 return f != gethostent;
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 rm -f conftest.$ac_objext conftest$ac_exeext
11504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11505   (eval $ac_link) 2>conftest.er1
11506   ac_status=$?
11507   grep -v '^ *+' conftest.er1 >conftest.err
11508   rm -f conftest.er1
11509   cat conftest.err >&5
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); } &&
11512          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514   (eval $ac_try) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; } &&
11518          { ac_try='test -s conftest$ac_exeext'
11519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520   (eval $ac_try) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); }; }; then
11524   ac_cv_func_gethostent=yes
11525 else
11526   echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11528
11529 ac_cv_func_gethostent=no
11530 fi
11531 rm -f conftest.err conftest.$ac_objext \
11532       conftest$ac_exeext conftest.$ac_ext
11533 fi
11534 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
11535 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
11536 if test $ac_cv_func_gethostent = yes; then
11537   :
11538 else
11539
11540 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
11541 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
11542 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
11543   echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545   ac_check_lib_save_LIBS=$LIBS
11546 LIBS="-lnsl  $LIBS"
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h.  */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h.  */
11553
11554 /* Override any gcc2 internal prototype to avoid an error.  */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 /* We use char because int might match the return type of a gcc2
11559    builtin and then its argument prototype would still apply.  */
11560 char gethostent ();
11561 int
11562 main ()
11563 {
11564 gethostent ();
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571   (eval $ac_link) 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } &&
11578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580   (eval $ac_try) 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; } &&
11584          { ac_try='test -s conftest$ac_exeext'
11585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586   (eval $ac_try) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; }; then
11590   ac_cv_lib_nsl_gethostent=yes
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595 ac_cv_lib_nsl_gethostent=no
11596 fi
11597 rm -f conftest.err conftest.$ac_objext \
11598       conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
11602 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
11603 if test $ac_cv_lib_nsl_gethostent = yes; then
11604   cat >>confdefs.h <<_ACEOF
11605 #define HAVE_LIBNSL 1
11606 _ACEOF
11607
11608   LIBS="-lnsl $LIBS"
11609
11610 fi
11611
11612 fi
11613
11614         echo "$as_me:$LINENO: checking for setsockopt" >&5
11615 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
11616 if test "${ac_cv_func_setsockopt+set}" = set; then
11617   echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619   cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
11626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11627 #define setsockopt innocuous_setsockopt
11628
11629 /* System header to define __stub macros and hopefully few prototypes,
11630     which can conflict with char setsockopt (); below.
11631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11632     <limits.h> exists even on freestanding compilers.  */
11633
11634 #ifdef __STDC__
11635 # include <limits.h>
11636 #else
11637 # include <assert.h>
11638 #endif
11639
11640 #undef setsockopt
11641
11642 /* Override any gcc2 internal prototype to avoid an error.  */
11643 #ifdef __cplusplus
11644 extern "C"
11645 {
11646 #endif
11647 /* We use char because int might match the return type of a gcc2
11648    builtin and then its argument prototype would still apply.  */
11649 char setsockopt ();
11650 /* The GNU C library defines this for functions which it implements
11651     to always fail with ENOSYS.  Some functions are actually named
11652     something starting with __ and the normal name is an alias.  */
11653 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
11654 choke me
11655 #else
11656 char (*f) () = setsockopt;
11657 #endif
11658 #ifdef __cplusplus
11659 }
11660 #endif
11661
11662 int
11663 main ()
11664 {
11665 return f != setsockopt;
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672   (eval $ac_link) 2>conftest.er1
11673   ac_status=$?
11674   grep -v '^ *+' conftest.er1 >conftest.err
11675   rm -f conftest.er1
11676   cat conftest.err >&5
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); } &&
11679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681   (eval $ac_try) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; } &&
11685          { ac_try='test -s conftest$ac_exeext'
11686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687   (eval $ac_try) 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; }; then
11691   ac_cv_func_setsockopt=yes
11692 else
11693   echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696 ac_cv_func_setsockopt=no
11697 fi
11698 rm -f conftest.err conftest.$ac_objext \
11699       conftest$ac_exeext conftest.$ac_ext
11700 fi
11701 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
11702 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
11703 if test $ac_cv_func_setsockopt = yes; then
11704   :
11705 else
11706
11707 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
11708 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
11709 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   ac_check_lib_save_LIBS=$LIBS
11713 LIBS="-lsocket  $LIBS"
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720
11721 /* Override any gcc2 internal prototype to avoid an error.  */
11722 #ifdef __cplusplus
11723 extern "C"
11724 #endif
11725 /* We use char because int might match the return type of a gcc2
11726    builtin and then its argument prototype would still apply.  */
11727 char setsockopt ();
11728 int
11729 main ()
11730 {
11731 setsockopt ();
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738   (eval $ac_link) 2>conftest.er1
11739   ac_status=$?
11740   grep -v '^ *+' conftest.er1 >conftest.err
11741   rm -f conftest.er1
11742   cat conftest.err >&5
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } &&
11745          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747   (eval $ac_try) 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; } &&
11751          { ac_try='test -s conftest$ac_exeext'
11752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753   (eval $ac_try) 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); }; }; then
11757   ac_cv_lib_socket_setsockopt=yes
11758 else
11759   echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11761
11762 ac_cv_lib_socket_setsockopt=no
11763 fi
11764 rm -f conftest.err conftest.$ac_objext \
11765       conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_lib_save_LIBS
11767 fi
11768 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
11769 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
11770 if test $ac_cv_lib_socket_setsockopt = yes; then
11771   cat >>confdefs.h <<_ACEOF
11772 #define HAVE_LIBSOCKET 1
11773 _ACEOF
11774
11775   LIBS="-lsocket $LIBS"
11776
11777 fi
11778
11779 fi
11780
11781
11782 for ac_func in getaddrinfo
11783 do
11784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11785 echo "$as_me:$LINENO: checking for $ac_func" >&5
11786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11787 if eval "test \"\${$as_ac_var+set}\" = set"; then
11788   echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790   cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h.  */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h.  */
11796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11798 #define $ac_func innocuous_$ac_func
11799
11800 /* System header to define __stub macros and hopefully few prototypes,
11801     which can conflict with char $ac_func (); below.
11802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11803     <limits.h> exists even on freestanding compilers.  */
11804
11805 #ifdef __STDC__
11806 # include <limits.h>
11807 #else
11808 # include <assert.h>
11809 #endif
11810
11811 #undef $ac_func
11812
11813 /* Override any gcc2 internal prototype to avoid an error.  */
11814 #ifdef __cplusplus
11815 extern "C"
11816 {
11817 #endif
11818 /* We use char because int might match the return type of a gcc2
11819    builtin and then its argument prototype would still apply.  */
11820 char $ac_func ();
11821 /* The GNU C library defines this for functions which it implements
11822     to always fail with ENOSYS.  Some functions are actually named
11823     something starting with __ and the normal name is an alias.  */
11824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11825 choke me
11826 #else
11827 char (*f) () = $ac_func;
11828 #endif
11829 #ifdef __cplusplus
11830 }
11831 #endif
11832
11833 int
11834 main ()
11835 {
11836 return f != $ac_func;
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843   (eval $ac_link) 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } &&
11850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852   (eval $ac_try) 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); }; } &&
11856          { ac_try='test -s conftest$ac_exeext'
11857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858   (eval $ac_try) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; }; then
11862   eval "$as_ac_var=yes"
11863 else
11864   echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11866
11867 eval "$as_ac_var=no"
11868 fi
11869 rm -f conftest.err conftest.$ac_objext \
11870       conftest$ac_exeext conftest.$ac_ext
11871 fi
11872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11874 if test `eval echo '${'$as_ac_var'}'` = yes; then
11875   cat >>confdefs.h <<_ACEOF
11876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11877 _ACEOF
11878
11879 fi
11880 done
11881
11882
11883 cat >>confdefs.h <<\_ACEOF
11884 #define USE_SOCKET 1
11885 _ACEOF
11886
11887         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
11888 fi
11889
11890
11891
11892 # Check whether --with-gss or --without-gss was given.
11893 if test "${with_gss+set}" = set; then
11894   withval="$with_gss"
11895   gss_prefix="$withval"
11896 else
11897   gss_prefix="no"
11898 fi;
11899 if test "$gss_prefix" != "no"
11900 then
11901   if test "$need_imap" = "yes"
11902   then
11903
11904   GSSAPI_PREFIX=$gss_prefix
11905   GSSAPI_IMPL="none"
11906   saved_CPPFLAGS="$CPPFLAGS"
11907   saved_LDFLAGS="$LDFLAGS"
11908   saved_LIBS="$LIBS"
11909     if test "$GSSAPI_PREFIX" != "yes"
11910   then
11911     krb5_path="$GSSAPI_PREFIX/bin"
11912   else
11913     krb5_path="$PATH"
11914   fi
11915   # Extract the first word of "krb5-config", so it can be a program name with args.
11916 set dummy krb5-config; ac_word=$2
11917 echo "$as_me:$LINENO: checking for $ac_word" >&5
11918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11919 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   case $KRB5CFGPATH in
11923   [\\/]* | ?:[\\/]*)
11924   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
11925   ;;
11926   *)
11927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $krb5_path
11929 do
11930   IFS=$as_save_IFS
11931   test -z "$as_dir" && as_dir=.
11932   for ac_exec_ext in '' $ac_executable_extensions; do
11933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
11935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11936     break 2
11937   fi
11938 done
11939 done
11940
11941   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
11942   ;;
11943 esac
11944 fi
11945 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
11946
11947 if test -n "$KRB5CFGPATH"; then
11948   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
11949 echo "${ECHO_T}$KRB5CFGPATH" >&6
11950 else
11951   echo "$as_me:$LINENO: result: no" >&5
11952 echo "${ECHO_T}no" >&6
11953 fi
11954
11955   if test "$KRB5CFGPATH" != "none"
11956   then
11957     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
11958     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
11959     case "`$KRB5CFGPATH --version`" in
11960       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
11961       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
11962       *)                GSSAPI_IMPL="Unknown";;
11963    esac
11964   else
11965         if test "$GSSAPI_PREFIX" != "yes"
11966     then
11967       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
11968       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
11969       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11970       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
11971     fi
11972
11973         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
11974 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
11975 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986
11987 /* Override any gcc2 internal prototype to avoid an error.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 /* We use char because int might match the return type of a gcc2
11992    builtin and then its argument prototype would still apply.  */
11993 char gss_init_sec_context ();
11994 int
11995 main ()
11996 {
11997 gss_init_sec_context ();
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004   (eval $ac_link) 2>conftest.er1
12005   ac_status=$?
12006   grep -v '^ *+' conftest.er1 >conftest.err
12007   rm -f conftest.er1
12008   cat conftest.err >&5
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } &&
12011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013   (eval $ac_try) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; } &&
12017          { ac_try='test -s conftest$ac_exeext'
12018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019   (eval $ac_try) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); }; }; then
12023   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
12024 else
12025   echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
12029 fi
12030 rm -f conftest.err conftest.$ac_objext \
12031       conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12033 fi
12034 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
12035 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
12036 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
12037
12038       GSSAPI_IMPL="MIT",
12039       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
12040
12041 fi
12042
12043
12044         if test "$GSSAPI_IMPL" = "none"
12045     then
12046       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
12047 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
12048 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h.  */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h.  */
12059
12060 /* Override any gcc2 internal prototype to avoid an error.  */
12061 #ifdef __cplusplus
12062 extern "C"
12063 #endif
12064 /* We use char because int might match the return type of a gcc2
12065    builtin and then its argument prototype would still apply.  */
12066 char gss_init_sec_context ();
12067 int
12068 main ()
12069 {
12070 gss_init_sec_context ();
12071   ;
12072   return 0;
12073 }
12074 _ACEOF
12075 rm -f conftest.$ac_objext conftest$ac_exeext
12076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12077   (eval $ac_link) 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
12081   cat conftest.err >&5
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); } &&
12084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086   (eval $ac_try) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; } &&
12090          { ac_try='test -s conftest$ac_exeext'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   ac_cv_lib_gssapi_gss_init_sec_context=yes
12097 else
12098   echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101 ac_cv_lib_gssapi_gss_init_sec_context=no
12102 fi
12103 rm -f conftest.err conftest.$ac_objext \
12104       conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12106 fi
12107 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
12108 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
12109 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
12110
12111           GSSAPI_IMPL="Heimdal"
12112           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
12113           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
12114
12115 fi
12116
12117     fi
12118
12119                             if test "$GSSAPI_IMPL" = "none"
12120     then
12121       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
12122 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
12123 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
12124   echo $ECHO_N "(cached) $ECHO_C" >&6
12125 else
12126   ac_check_lib_save_LIBS=$LIBS
12127 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134
12135 /* Override any gcc2 internal prototype to avoid an error.  */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 /* We use char because int might match the return type of a gcc2
12140    builtin and then its argument prototype would still apply.  */
12141 char g_order_init ();
12142 int
12143 main ()
12144 {
12145 g_order_init ();
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152   (eval $ac_link) 2>conftest.er1
12153   ac_status=$?
12154   grep -v '^ *+' conftest.er1 >conftest.err
12155   rm -f conftest.er1
12156   cat conftest.err >&5
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); } &&
12159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161   (eval $ac_try) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest$ac_exeext'
12166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167   (eval $ac_try) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); }; }; then
12171   ac_cv_lib_gssapi_krb5_g_order_init=yes
12172 else
12173   echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 ac_cv_lib_gssapi_krb5_g_order_init=no
12177 fi
12178 rm -f conftest.err conftest.$ac_objext \
12179       conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_lib_save_LIBS
12181 fi
12182 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
12183 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
12184 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
12185
12186         GSSAPI_IMPL="OldMIT",
12187         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
12188
12189 fi
12190
12191     fi
12192   fi
12193
12194   CPPFLAGS="$saved_CPPFLAGS"
12195   LDFLAGS="$saved_LDFLAGS"
12196   LIBS="$saved_LIBS"
12197
12198     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
12199 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
12200     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
12201 echo "${ECHO_T}$GSSAPI_IMPL" >&6
12202     if test "$GSSAPI_IMPL" = "none"
12203     then
12204       cat >confcache <<\_ACEOF
12205 # This file is a shell script that caches the results of configure
12206 # tests run on this system so they can be shared between configure
12207 # scripts and configure runs, see configure's option --config-cache.
12208 # It is not useful on other systems.  If it contains results you don't
12209 # want to keep, you may remove or edit it.
12210 #
12211 # config.status only pays attention to the cache file if you give it
12212 # the --recheck option to rerun configure.
12213 #
12214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12216 # following values.
12217
12218 _ACEOF
12219
12220 # The following way of writing the cache mishandles newlines in values,
12221 # but we know of no workaround that is simple, portable, and efficient.
12222 # So, don't put newlines in cache variables' values.
12223 # Ultrix sh set writes to stderr and can't be redirected directly,
12224 # and sets the high bit in the cache file unless we assign to the vars.
12225 {
12226   (set) 2>&1 |
12227     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12228     *ac_space=\ *)
12229       # `set' does not quote correctly, so add quotes (double-quote
12230       # substitution turns \\\\ into \\, and sed turns \\ into \).
12231       sed -n \
12232         "s/'/'\\\\''/g;
12233           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12234       ;;
12235     *)
12236       # `set' quotes correctly as required by POSIX, so do not add quotes.
12237       sed -n \
12238         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12239       ;;
12240     esac;
12241 } |
12242   sed '
12243      t clear
12244      : clear
12245      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12246      t end
12247      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12248      : end' >>confcache
12249 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12250   if test -w $cache_file; then
12251     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12252     cat confcache >$cache_file
12253   else
12254     echo "not updating unwritable cache $cache_file"
12255   fi
12256 fi
12257 rm -f confcache
12258       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
12259 echo "${ECHO_T}GSSAPI libraries not found" >&6
12260     fi
12261     if test "$GSSAPI_IMPL" = "Heimdal"
12262     then
12263
12264 cat >>confdefs.h <<\_ACEOF
12265 #define HAVE_HEIMDAL 1
12266 _ACEOF
12267
12268     fi
12269     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
12270     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
12271
12272 cat >>confdefs.h <<\_ACEOF
12273 #define USE_GSS 1
12274 _ACEOF
12275
12276     need_gss="yes"
12277   else
12278     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
12279 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
12280   fi
12281 fi
12282
12283
12284 if test x$need_gss = xyes; then
12285   USE_GSS_TRUE=
12286   USE_GSS_FALSE='#'
12287 else
12288   USE_GSS_TRUE='#'
12289   USE_GSS_FALSE=
12290 fi
12291
12292
12293
12294
12295 # Check whether --with-ssl or --without-ssl was given.
12296 if test "${with_ssl+set}" = set; then
12297   withval="$with_ssl"
12298          if test "$with_ssl" != "no"
12299         then
12300           if test "$need_socket" != "yes"; then
12301            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12302 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12303    { (exit 1); exit 1; }; }
12304           fi
12305
12306           if test "$with_ssl" != "yes"
12307           then
12308            LDFLAGS="$LDFLAGS -L$withval/lib"
12309            CPPFLAGS="$CPPFLAGS -I$withval/include"
12310           fi
12311           saved_LIBS="$LIBS"
12312
12313
12314 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
12315 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
12316 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
12317   echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319   ac_check_lib_save_LIBS=$LIBS
12320 LIBS="-lcrypto  $LIBS"
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h.  */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h.  */
12327
12328 /* Override any gcc2 internal prototype to avoid an error.  */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 /* We use char because int might match the return type of a gcc2
12333    builtin and then its argument prototype would still apply.  */
12334 char X509_new ();
12335 int
12336 main ()
12337 {
12338 X509_new ();
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345   (eval $ac_link) 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } &&
12352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
12358          { ac_try='test -s conftest$ac_exeext'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; }; then
12364   ac_cv_lib_crypto_X509_new=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_cv_lib_crypto_X509_new=no
12370 fi
12371 rm -f conftest.err conftest.$ac_objext \
12372       conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12374 fi
12375 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
12376 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
12377 if test $ac_cv_lib_crypto_X509_new = yes; then
12378   cat >>confdefs.h <<_ACEOF
12379 #define HAVE_LIBCRYPTO 1
12380 _ACEOF
12381
12382   LIBS="-lcrypto $LIBS"
12383
12384 else
12385   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
12386 echo "$as_me: error: Unable to find SSL library" >&2;}
12387    { (exit 1); exit 1; }; }
12388 fi
12389
12390
12391 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
12392 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
12393 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
12394   echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396   ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-lssl -lcrypto $LIBS"
12398 cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404
12405 /* Override any gcc2 internal prototype to avoid an error.  */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 /* We use char because int might match the return type of a gcc2
12410    builtin and then its argument prototype would still apply.  */
12411 char SSL_new ();
12412 int
12413 main ()
12414 {
12415 SSL_new ();
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422   (eval $ac_link) 2>conftest.er1
12423   ac_status=$?
12424   grep -v '^ *+' conftest.er1 >conftest.err
12425   rm -f conftest.er1
12426   cat conftest.err >&5
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } &&
12429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest$ac_exeext'
12436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437   (eval $ac_try) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441   ac_cv_lib_ssl_SSL_new=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 ac_cv_lib_ssl_SSL_new=no
12447 fi
12448 rm -f conftest.err conftest.$ac_objext \
12449       conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12451 fi
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
12453 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
12454 if test $ac_cv_lib_ssl_SSL_new = yes; then
12455   cat >>confdefs.h <<_ACEOF
12456 #define HAVE_LIBSSL 1
12457 _ACEOF
12458
12459   LIBS="-lssl $LIBS"
12460
12461 else
12462   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
12463 echo "$as_me: error: Unable to find SSL library" >&2;}
12464    { (exit 1); exit 1; }; }
12465 fi
12466
12467
12468
12469
12470 for ac_func in RAND_status RAND_egd
12471 do
12472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12473 echo "$as_me:$LINENO: checking for $ac_func" >&5
12474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12475 if eval "test \"\${$as_ac_var+set}\" = set"; then
12476   echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478   cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12486 #define $ac_func innocuous_$ac_func
12487
12488 /* System header to define __stub macros and hopefully few prototypes,
12489     which can conflict with char $ac_func (); below.
12490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12491     <limits.h> exists even on freestanding compilers.  */
12492
12493 #ifdef __STDC__
12494 # include <limits.h>
12495 #else
12496 # include <assert.h>
12497 #endif
12498
12499 #undef $ac_func
12500
12501 /* Override any gcc2 internal prototype to avoid an error.  */
12502 #ifdef __cplusplus
12503 extern "C"
12504 {
12505 #endif
12506 /* We use char because int might match the return type of a gcc2
12507    builtin and then its argument prototype would still apply.  */
12508 char $ac_func ();
12509 /* The GNU C library defines this for functions which it implements
12510     to always fail with ENOSYS.  Some functions are actually named
12511     something starting with __ and the normal name is an alias.  */
12512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12513 choke me
12514 #else
12515 char (*f) () = $ac_func;
12516 #endif
12517 #ifdef __cplusplus
12518 }
12519 #endif
12520
12521 int
12522 main ()
12523 {
12524 return f != $ac_func;
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531   (eval $ac_link) 2>conftest.er1
12532   ac_status=$?
12533   grep -v '^ *+' conftest.er1 >conftest.err
12534   rm -f conftest.er1
12535   cat conftest.err >&5
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); } &&
12538          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540   (eval $ac_try) 2>&5
12541   ac_status=$?
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); }; } &&
12544          { ac_try='test -s conftest$ac_exeext'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   eval "$as_ac_var=yes"
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 eval "$as_ac_var=no"
12556 fi
12557 rm -f conftest.err conftest.$ac_objext \
12558       conftest$ac_exeext conftest.$ac_ext
12559 fi
12560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12562 if test `eval echo '${'$as_ac_var'}'` = yes; then
12563   cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12565 _ACEOF
12566
12567 fi
12568 done
12569
12570
12571
12572 cat >>confdefs.h <<\_ACEOF
12573 #define USE_SSL 1
12574 _ACEOF
12575
12576           LIBS="$saved_LIBS"
12577           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
12578           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
12579           need_ssl=yes
12580
12581         fi
12582
12583 fi;
12584
12585
12586 if test x$need_ssl = xyes; then
12587   USE_SSL_TRUE=
12588   USE_SSL_FALSE='#'
12589 else
12590   USE_SSL_TRUE='#'
12591   USE_SSL_FALSE=
12592 fi
12593
12594
12595
12596 # Check whether --with-gnutls or --without-gnutls was given.
12597 if test "${with_gnutls+set}" = set; then
12598   withval="$with_gnutls"
12599      if test "$need_ssl" = "yes"
12600     then
12601       { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
12602 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
12603    { (exit 1); exit 1; }; }
12604     fi
12605     if test "$with_gnutls" != "no"
12606     then
12607       if test "$need_socket" != "yes"; then
12608         { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
12609 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
12610    { (exit 1); exit 1; }; }
12611       fi
12612       if test "$with_gnutls" != "yes"
12613       then
12614         LDFLAGS="$LDFLAGS -L$withval/lib"
12615         CPPFLAGS="$CPPFLAGS -I$withval/include"
12616       fi
12617 #saved_LIBS="$LIBS"
12618
12619
12620 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
12621 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
12622 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
12623   echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625   ac_check_lib_save_LIBS=$LIBS
12626 LIBS="-lgnutls  $LIBS"
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633
12634 /* Override any gcc2 internal prototype to avoid an error.  */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 /* We use char because int might match the return type of a gcc2
12639    builtin and then its argument prototype would still apply.  */
12640 char gnutls_init ();
12641 int
12642 main ()
12643 {
12644 gnutls_init ();
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651   (eval $ac_link) 2>conftest.er1
12652   ac_status=$?
12653   grep -v '^ *+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } &&
12658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660   (eval $ac_try) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; } &&
12664          { ac_try='test -s conftest$ac_exeext'
12665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666   (eval $ac_try) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; }; then
12670   ac_cv_lib_gnutls_gnutls_init=yes
12671 else
12672   echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12674
12675 ac_cv_lib_gnutls_gnutls_init=no
12676 fi
12677 rm -f conftest.err conftest.$ac_objext \
12678       conftest$ac_exeext conftest.$ac_ext
12679 LIBS=$ac_check_lib_save_LIBS
12680 fi
12681 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
12682 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
12683 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
12684   cat >>confdefs.h <<_ACEOF
12685 #define HAVE_LIBGNUTLS 1
12686 _ACEOF
12687
12688   LIBS="-lgnutls $LIBS"
12689
12690 else
12691   { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
12692 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
12693    { (exit 1); exit 1; }; }
12694 fi
12695
12696
12697
12698 cat >>confdefs.h <<\_ACEOF
12699 #define USE_GNUTLS 1
12700 _ACEOF
12701
12702 #LIBS="$saved_LIBS"
12703 #MUTTLIBS="$MUTTLIBS -lgnutls"
12704       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
12705       need_gnutls=yes
12706     fi
12707
12708 fi;
12709
12710
12711 if test x$need_gnutls = xyes; then
12712   USE_GNUTLS_TRUE=
12713   USE_GNUTLS_FALSE='#'
12714 else
12715   USE_GNUTLS_TRUE='#'
12716   USE_GNUTLS_FALSE=
12717 fi
12718
12719
12720
12721 # Check whether --with-nss or --without-nss was given.
12722 if test "${with_nss+set}" = set; then
12723   withval="$with_nss"
12724          if test "$with_nss" != no
12725         then
12726           if test "$need_socket" != "yes"; then
12727            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12728 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12729    { (exit 1); exit 1; }; }
12730           fi
12731
12732           if test "$with_nss" != "yes"
12733           then
12734            LDFLAGS="$LDFLAGS -L$withval/lib"
12735            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
12736           fi
12737
12738
12739 cat >>confdefs.h <<\_ACEOF
12740 #define USE_NSS 1
12741 _ACEOF
12742
12743           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
12744           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
12745           MUTTLIBS="$MUTTLIBS -lnspr4"
12746
12747           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
12748           need_ssl=yes
12749         fi
12750
12751 fi;
12752
12753
12754 # Check whether --with-gnutls or --without-gnutls was given.
12755 if test "${with_gnutls+set}" = set; then
12756   withval="$with_gnutls"
12757   gnutls_prefix="$withval"
12758 else
12759   gnutls_prefix="no"
12760 fi;
12761 if test "$gnutls_prefix" != "no"
12762 then
12763   if test "$need_socket" != "yes"
12764   then
12765     { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12766 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12767    { (exit 1); exit 1; }; }
12768   fi
12769     libgnutls_config_prefix=$gnutls_prefix
12770   min_libgnutls_version=0.1.0
12771
12772   if test x$libgnutls_config_prefix != x ; then
12773      if test x${LIBGNUTLS_CONFIG+set} != xset ; then
12774         LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
12775      fi
12776   fi
12777
12778   # Extract the first word of "libgnutls-config", so it can be a program name with args.
12779 set dummy libgnutls-config; ac_word=$2
12780 echo "$as_me:$LINENO: checking for $ac_word" >&5
12781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12782 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785   case $LIBGNUTLS_CONFIG in
12786   [\\/]* | ?:[\\/]*)
12787   ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
12788   ;;
12789   *)
12790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12792 do
12793   IFS=$as_save_IFS
12794   test -z "$as_dir" && as_dir=.
12795   for ac_exec_ext in '' $ac_executable_extensions; do
12796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797     ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12799     break 2
12800   fi
12801 done
12802 done
12803
12804   test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
12805   ;;
12806 esac
12807 fi
12808 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
12809
12810 if test -n "$LIBGNUTLS_CONFIG"; then
12811   echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
12812 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
12813 else
12814   echo "$as_me:$LINENO: result: no" >&5
12815 echo "${ECHO_T}no" >&6
12816 fi
12817
12818   echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
12819 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
12820   no_libgnutls=""
12821   if test "$LIBGNUTLS_CONFIG" = "no" ; then
12822     no_libgnutls=yes
12823   else
12824     LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
12825     LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
12826     libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
12827
12828
12829       ac_save_CFLAGS="$CFLAGS"
12830       ac_save_LIBS="$LIBS"
12831       CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12832       LIBS="$LIBS $LIBGNUTLS_LIBS"
12833
12834       rm -f conf.libgnutlstest
12835       if test "$cross_compiling" = yes; then
12836   echo $ac_n "cross compiling; assumed OK... $ac_c"
12837 else
12838   cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844
12845 #include <stdio.h>
12846 #include <stdlib.h>
12847 #include <string.h>
12848 #include <gnutls/gnutls.h>
12849
12850 int
12851 main ()
12852 {
12853     system ("touch conf.libgnutlstest");
12854
12855     if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
12856     {
12857       printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
12858              "$libgnutls_config_version", gnutls_check_version(NULL) );
12859       printf("*** was found! If libgnutls-config was correct, then it is best\n");
12860       printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
12861       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12862       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12863       printf("*** required on your system.\n");
12864       printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
12865       printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
12866       printf("*** before re-running configure\n");
12867     }
12868     else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
12869     {
12870       printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
12871       printf("*** library (version %s)\n", gnutls_check_version(NULL) );
12872     }
12873     else
12874     {
12875       if ( gnutls_check_version( "$min_libgnutls_version" ) )
12876       {
12877         return 0;
12878       }
12879      else
12880       {
12881         printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
12882                 gnutls_check_version(NULL) );
12883         printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
12884                "$min_libgnutls_version" );
12885         printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
12886         printf("*** \n");
12887         printf("*** If you have already installed a sufficiently new version, this error\n");
12888         printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
12889         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12890         printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
12891         printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
12892         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12893         printf("*** so that the correct libraries are found at run-time))\n");
12894       }
12895     }
12896   return 1;
12897 }
12898
12899 _ACEOF
12900 rm -f conftest$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902   (eval $ac_link) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907   (eval $ac_try) 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911   :
12912 else
12913   echo "$as_me: program exited with status $ac_status" >&5
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12916
12917 ( exit $ac_status )
12918 no_libgnutls=yes
12919 fi
12920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12921 fi
12922        CFLAGS="$ac_save_CFLAGS"
12923        LIBS="$ac_save_LIBS"
12924   fi
12925
12926   if test "x$no_libgnutls" = x ; then
12927      echo "$as_me:$LINENO: result: yes" >&5
12928 echo "${ECHO_T}yes" >&6
12929
12930 for ac_header in gnutls/openssl.h
12931 do
12932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12934   echo "$as_me:$LINENO: checking for $ac_header" >&5
12935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 fi
12939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12941 else
12942   # Is the header compilable?
12943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951 $ac_includes_default
12952 #include <$ac_header>
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956   (eval $ac_compile) 2>conftest.er1
12957   ac_status=$?
12958   grep -v '^ *+' conftest.er1 >conftest.err
12959   rm -f conftest.er1
12960   cat conftest.err >&5
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } &&
12963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965   (eval $ac_try) 2>&5
12966   ac_status=$?
12967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968   (exit $ac_status); }; } &&
12969          { ac_try='test -s conftest.$ac_objext'
12970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971   (eval $ac_try) 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; }; then
12975   ac_header_compiler=yes
12976 else
12977   echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12979
12980 ac_header_compiler=no
12981 fi
12982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12984 echo "${ECHO_T}$ac_header_compiler" >&6
12985
12986 # Is the header present?
12987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12989 cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h.  */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h.  */
12995 #include <$ac_header>
12996 _ACEOF
12997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12998   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13005   if test -s conftest.err; then
13006     ac_cpp_err=$ac_c_preproc_warn_flag
13007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13008   else
13009     ac_cpp_err=
13010   fi
13011 else
13012   ac_cpp_err=yes
13013 fi
13014 if test -z "$ac_cpp_err"; then
13015   ac_header_preproc=yes
13016 else
13017   echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020   ac_header_preproc=no
13021 fi
13022 rm -f conftest.err conftest.$ac_ext
13023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13024 echo "${ECHO_T}$ac_header_preproc" >&6
13025
13026 # So?  What about this header?
13027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13028   yes:no: )
13029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13033     ac_header_preproc=yes
13034     ;;
13035   no:yes:* )
13036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13048     (
13049       cat <<\_ASBOX
13050 ## ------------------------------------------ ##
13051 ## Report this to the AC_PACKAGE_NAME lists.  ##
13052 ## ------------------------------------------ ##
13053 _ASBOX
13054     ) |
13055       sed "s/^/$as_me: WARNING:     /" >&2
13056     ;;
13057 esac
13058 echo "$as_me:$LINENO: checking for $ac_header" >&5
13059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13061   echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063   eval "$as_ac_Header=\$ac_header_preproc"
13064 fi
13065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13067
13068 fi
13069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13070   cat >>confdefs.h <<_ACEOF
13071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13072 _ACEOF
13073
13074 fi
13075
13076 done
13077
13078          CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
13079     MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
13080
13081 cat >>confdefs.h <<\_ACEOF
13082 #define USE_GNUTLS 1
13083 _ACEOF
13084
13085
13086     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
13087     need_ssl=yes
13088   else
13089      if test -f conf.libgnutlstest ; then
13090         :
13091      else
13092         echo "$as_me:$LINENO: result: no" >&5
13093 echo "${ECHO_T}no" >&6
13094      fi
13095      if test "$LIBGNUTLS_CONFIG" = "no" ; then
13096        echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
13097        echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
13098        echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
13099        echo "*** full path to libgnutls-config."
13100      else
13101        if test -f conf.libgnutlstest ; then
13102         :
13103        else
13104           echo "*** Could not run libgnutls test program, checking why..."
13105           CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
13106           LIBS="$LIBS $LIBGNUTLS_LIBS"
13107           cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113
13114 #include <stdio.h>
13115 #include <stdlib.h>
13116 #include <string.h>
13117 #include <gnutls/gnutls.h>
13118
13119 int
13120 main ()
13121 {
13122  return !!gnutls_check_version(NULL);
13123   ;
13124   return 0;
13125 }
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129   (eval $ac_link) 2>conftest.er1
13130   ac_status=$?
13131   grep -v '^ *+' conftest.er1 >conftest.err
13132   rm -f conftest.er1
13133   cat conftest.err >&5
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } &&
13136          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; } &&
13142          { ac_try='test -s conftest$ac_exeext'
13143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144   (eval $ac_try) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148    echo "*** The test program compiled, but did not run. This usually means"
13149           echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
13150           echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
13151           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13152           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13153           echo "*** is required on your system"
13154           echo "***"
13155           echo "*** If you have an old version installed, it is best to remove it, although"
13156           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13157           echo "***"
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162  echo "*** The test program failed to compile or link. See the file config.log for the"
13163           echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
13164           echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
13165           echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
13166 fi
13167 rm -f conftest.err conftest.$ac_objext \
13168       conftest$ac_exeext conftest.$ac_ext
13169           CFLAGS="$ac_save_CFLAGS"
13170           LIBS="$ac_save_LIBS"
13171        fi
13172      fi
13173      LIBGNUTLS_CFLAGS=""
13174      LIBGNUTLS_LIBS=""
13175            { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
13176 echo "$as_me: error: could not find libgnutls" >&2;}
13177    { (exit 1); exit 1; }; }
13178
13179   fi
13180   rm -f conf.libgnutlstest
13181
13182
13183
13184 fi
13185
13186
13187 # Check whether --with-sasl or --without-sasl was given.
13188 if test "${with_sasl+set}" = set; then
13189   withval="$with_sasl"
13190
13191         if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
13192         then
13193           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
13194 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
13195    { (exit 1); exit 1; }; }
13196         fi
13197
13198         if test "$with_sasl" != "no"
13199         then
13200           if test "$with_sasl" != "yes"
13201           then
13202             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
13203             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
13204           fi
13205
13206           saved_LIBS="$LIBS"
13207
13208
13209 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
13210 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
13211 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-lsasl  $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222
13223 /* Override any gcc2 internal prototype to avoid an error.  */
13224 #ifdef __cplusplus
13225 extern "C"
13226 #endif
13227 /* We use char because int might match the return type of a gcc2
13228    builtin and then its argument prototype would still apply.  */
13229 char sasl_client_init ();
13230 int
13231 main ()
13232 {
13233 sasl_client_init ();
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240   (eval $ac_link) 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; } &&
13253          { ac_try='test -s conftest$ac_exeext'
13254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255   (eval $ac_try) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259   ac_cv_lib_sasl_sasl_client_init=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_cv_lib_sasl_sasl_client_init=no
13265 fi
13266 rm -f conftest.err conftest.$ac_objext \
13267       conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
13271 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
13272 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
13273   cat >>confdefs.h <<_ACEOF
13274 #define HAVE_LIBSASL 1
13275 _ACEOF
13276
13277   LIBS="-lsasl $LIBS"
13278
13279 else
13280   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
13281 echo "$as_me: error: could not find libsasl" >&2;}
13282    { (exit 1); exit 1; }; }
13283 fi
13284
13285
13286           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
13287           MUTTLIBS="$MUTTLIBS -lsasl"
13288           LIBS="$saved_LIBS"
13289
13290 cat >>confdefs.h <<\_ACEOF
13291 #define USE_SASL 1
13292 _ACEOF
13293
13294           need_sasl=yes
13295         fi
13296
13297 fi;
13298
13299
13300 if test x$need_sasl = xyes; then
13301   USE_SASL_TRUE=
13302   USE_SASL_FALSE='#'
13303 else
13304   USE_SASL_TRUE='#'
13305   USE_SASL_FALSE=
13306 fi
13307
13308
13309
13310 # Check whether --with-sasl2 or --without-sasl2 was given.
13311 if test "${with_sasl2+set}" = set; then
13312   withval="$with_sasl2"
13313
13314         if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
13315         then
13316           { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
13317 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
13318    { (exit 1); exit 1; }; }
13319         fi
13320
13321         if test "$with_sasl2" != "no"
13322         then
13323           if test "$with_sasl2" != "yes"
13324           then
13325             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
13326             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
13327           fi
13328
13329           saved_LIBS="$LIBS"
13330
13331
13332 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
13333 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
13334 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
13335   echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337   ac_check_lib_save_LIBS=$LIBS
13338 LIBS="-lsasl2  $LIBS"
13339 cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h.  */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h.  */
13345
13346 /* Override any gcc2 internal prototype to avoid an error.  */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 /* We use char because int might match the return type of a gcc2
13351    builtin and then its argument prototype would still apply.  */
13352 char sasl_client_init ();
13353 int
13354 main ()
13355 {
13356 sasl_client_init ();
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest.$ac_objext conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363   (eval $ac_link) 2>conftest.er1
13364   ac_status=$?
13365   grep -v '^ *+' conftest.er1 >conftest.err
13366   rm -f conftest.er1
13367   cat conftest.err >&5
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } &&
13370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372   (eval $ac_try) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); }; } &&
13376          { ac_try='test -s conftest$ac_exeext'
13377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378   (eval $ac_try) 2>&5
13379   ac_status=$?
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); }; }; then
13382   ac_cv_lib_sasl2_sasl_client_init=yes
13383 else
13384   echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387 ac_cv_lib_sasl2_sasl_client_init=no
13388 fi
13389 rm -f conftest.err conftest.$ac_objext \
13390       conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13392 fi
13393 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
13394 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
13395 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
13396   cat >>confdefs.h <<_ACEOF
13397 #define HAVE_LIBSASL2 1
13398 _ACEOF
13399
13400   LIBS="-lsasl2 $LIBS"
13401
13402 else
13403   { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
13404 echo "$as_me: error: could not find libsasl2" >&2;}
13405    { (exit 1); exit 1; }; }
13406 fi
13407
13408
13409           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
13410           MUTTLIBS="$MUTTLIBS -lsasl2"
13411           LIBS="$saved_LIBS"
13412
13413 cat >>confdefs.h <<\_ACEOF
13414 #define USE_SASL 1
13415 _ACEOF
13416
13417
13418 cat >>confdefs.h <<\_ACEOF
13419 #define USE_SASL2 1
13420 _ACEOF
13421
13422           need_sasl=yes
13423         fi
13424
13425 fi;
13426
13427
13428 if test x$need_sasl = xyes; then
13429   USE_SASL_TRUE=
13430   USE_SASL_FALSE='#'
13431 else
13432   USE_SASL_TRUE='#'
13433   USE_SASL_FALSE=
13434 fi
13435
13436
13437
13438 # Check whether --with-idn or --without-idn was given.
13439 if test "${with_idn+set}" = set; then
13440   withval="$with_idn"
13441
13442                   if test "$with_idn" != "no" ; then
13443                         if test "$with_idn" != "yes" ; then
13444                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
13445                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
13446                         fi
13447                   fi
13448
13449
13450 fi;
13451
13452 if test "x$with_idn" != "xno"; then
13453
13454 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
13455 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
13456 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
13457   echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459   ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-lidn  $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h.  */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h.  */
13467
13468 /* Override any gcc2 internal prototype to avoid an error.  */
13469 #ifdef __cplusplus
13470 extern "C"
13471 #endif
13472 /* We use char because int might match the return type of a gcc2
13473    builtin and then its argument prototype would still apply.  */
13474 char stringprep_check_version ();
13475 int
13476 main ()
13477 {
13478 stringprep_check_version ();
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485   (eval $ac_link) 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; } &&
13498          { ac_try='test -s conftest$ac_exeext'
13499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500   (eval $ac_try) 2>&5
13501   ac_status=$?
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); }; }; then
13504   ac_cv_lib_idn_stringprep_check_version=yes
13505 else
13506   echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13508
13509 ac_cv_lib_idn_stringprep_check_version=no
13510 fi
13511 rm -f conftest.err conftest.$ac_objext \
13512       conftest$ac_exeext conftest.$ac_ext
13513 LIBS=$ac_check_lib_save_LIBS
13514 fi
13515 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
13516 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
13517 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
13518   cat >>confdefs.h <<_ACEOF
13519 #define HAVE_LIBIDN 1
13520 _ACEOF
13521
13522   LIBS="-lidn $LIBS"
13523
13524 fi
13525
13526
13527
13528 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
13529 do
13530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531 echo "$as_me:$LINENO: checking for $ac_func" >&5
13532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13533 if eval "test \"\${$as_ac_var+set}\" = set"; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536   cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h.  */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h.  */
13542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13544 #define $ac_func innocuous_$ac_func
13545
13546 /* System header to define __stub macros and hopefully few prototypes,
13547     which can conflict with char $ac_func (); below.
13548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13549     <limits.h> exists even on freestanding compilers.  */
13550
13551 #ifdef __STDC__
13552 # include <limits.h>
13553 #else
13554 # include <assert.h>
13555 #endif
13556
13557 #undef $ac_func
13558
13559 /* Override any gcc2 internal prototype to avoid an error.  */
13560 #ifdef __cplusplus
13561 extern "C"
13562 {
13563 #endif
13564 /* We use char because int might match the return type of a gcc2
13565    builtin and then its argument prototype would still apply.  */
13566 char $ac_func ();
13567 /* The GNU C library defines this for functions which it implements
13568     to always fail with ENOSYS.  Some functions are actually named
13569     something starting with __ and the normal name is an alias.  */
13570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13571 choke me
13572 #else
13573 char (*f) () = $ac_func;
13574 #endif
13575 #ifdef __cplusplus
13576 }
13577 #endif
13578
13579 int
13580 main ()
13581 {
13582 return f != $ac_func;
13583   ;
13584   return 0;
13585 }
13586 _ACEOF
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13589   (eval $ac_link) 2>conftest.er1
13590   ac_status=$?
13591   grep -v '^ *+' conftest.er1 >conftest.err
13592   rm -f conftest.er1
13593   cat conftest.err >&5
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); } &&
13596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598   (eval $ac_try) 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; } &&
13602          { ac_try='test -s conftest$ac_exeext'
13603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604   (eval $ac_try) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); }; }; then
13608   eval "$as_ac_var=yes"
13609 else
13610   echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613 eval "$as_ac_var=no"
13614 fi
13615 rm -f conftest.err conftest.$ac_objext \
13616       conftest$ac_exeext conftest.$ac_ext
13617 fi
13618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13620 if test `eval echo '${'$as_ac_var'}'` = yes; then
13621   cat >>confdefs.h <<_ACEOF
13622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13623 _ACEOF
13624
13625 fi
13626 done
13627
13628
13629
13630 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
13631 do
13632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13633 echo "$as_me:$LINENO: checking for $ac_func" >&5
13634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13635 if eval "test \"\${$as_ac_var+set}\" = set"; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13646 #define $ac_func innocuous_$ac_func
13647
13648 /* System header to define __stub macros and hopefully few prototypes,
13649     which can conflict with char $ac_func (); below.
13650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13651     <limits.h> exists even on freestanding compilers.  */
13652
13653 #ifdef __STDC__
13654 # include <limits.h>
13655 #else
13656 # include <assert.h>
13657 #endif
13658
13659 #undef $ac_func
13660
13661 /* Override any gcc2 internal prototype to avoid an error.  */
13662 #ifdef __cplusplus
13663 extern "C"
13664 {
13665 #endif
13666 /* We use char because int might match the return type of a gcc2
13667    builtin and then its argument prototype would still apply.  */
13668 char $ac_func ();
13669 /* The GNU C library defines this for functions which it implements
13670     to always fail with ENOSYS.  Some functions are actually named
13671     something starting with __ and the normal name is an alias.  */
13672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13673 choke me
13674 #else
13675 char (*f) () = $ac_func;
13676 #endif
13677 #ifdef __cplusplus
13678 }
13679 #endif
13680
13681 int
13682 main ()
13683 {
13684 return f != $ac_func;
13685   ;
13686   return 0;
13687 }
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691   (eval $ac_link) 2>conftest.er1
13692   ac_status=$?
13693   grep -v '^ *+' conftest.er1 >conftest.err
13694   rm -f conftest.er1
13695   cat conftest.err >&5
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); } &&
13698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700   (eval $ac_try) 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); }; } &&
13704          { ac_try='test -s conftest$ac_exeext'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }; then
13710   eval "$as_ac_var=yes"
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 eval "$as_ac_var=no"
13716 fi
13717 rm -f conftest.err conftest.$ac_objext \
13718       conftest$ac_exeext conftest.$ac_ext
13719 fi
13720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13722 if test `eval echo '${'$as_ac_var'}'` = yes; then
13723   cat >>confdefs.h <<_ACEOF
13724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13725 _ACEOF
13726
13727 fi
13728 done
13729
13730
13731
13732 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
13733 do
13734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13735 echo "$as_me:$LINENO: checking for $ac_func" >&5
13736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13737 if eval "test \"\${$as_ac_var+set}\" = set"; then
13738   echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13748 #define $ac_func innocuous_$ac_func
13749
13750 /* System header to define __stub macros and hopefully few prototypes,
13751     which can conflict with char $ac_func (); below.
13752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13753     <limits.h> exists even on freestanding compilers.  */
13754
13755 #ifdef __STDC__
13756 # include <limits.h>
13757 #else
13758 # include <assert.h>
13759 #endif
13760
13761 #undef $ac_func
13762
13763 /* Override any gcc2 internal prototype to avoid an error.  */
13764 #ifdef __cplusplus
13765 extern "C"
13766 {
13767 #endif
13768 /* We use char because int might match the return type of a gcc2
13769    builtin and then its argument prototype would still apply.  */
13770 char $ac_func ();
13771 /* The GNU C library defines this for functions which it implements
13772     to always fail with ENOSYS.  Some functions are actually named
13773     something starting with __ and the normal name is an alias.  */
13774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13775 choke me
13776 #else
13777 char (*f) () = $ac_func;
13778 #endif
13779 #ifdef __cplusplus
13780 }
13781 #endif
13782
13783 int
13784 main ()
13785 {
13786 return f != $ac_func;
13787   ;
13788   return 0;
13789 }
13790 _ACEOF
13791 rm -f conftest.$ac_objext conftest$ac_exeext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13793   (eval $ac_link) 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); } &&
13800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; } &&
13806          { ac_try='test -s conftest$ac_exeext'
13807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808   (eval $ac_try) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; }; then
13812   eval "$as_ac_var=yes"
13813 else
13814   echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13816
13817 eval "$as_ac_var=no"
13818 fi
13819 rm -f conftest.err conftest.$ac_objext \
13820       conftest$ac_exeext conftest.$ac_ext
13821 fi
13822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13824 if test `eval echo '${'$as_ac_var'}'` = yes; then
13825   cat >>confdefs.h <<_ACEOF
13826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13827 _ACEOF
13828
13829 fi
13830 done
13831
13832 fi
13833
13834
13835 # Check whether --enable-debug or --disable-debug was given.
13836 if test "${enable_debug+set}" = set; then
13837   enableval="$enable_debug"
13838    if test x$enableval = xyes ; then
13839
13840 cat >>confdefs.h <<\_ACEOF
13841 #define DEBUG 1
13842 _ACEOF
13843
13844           fi
13845
13846 fi;
13847
13848 # Check whether --enable-flock or --disable-flock was given.
13849 if test "${enable_flock+set}" = set; then
13850   enableval="$enable_flock"
13851   if test $enableval = yes; then
13852
13853 cat >>confdefs.h <<\_ACEOF
13854 #define USE_FLOCK 1
13855 _ACEOF
13856
13857         fi
13858 fi;
13859
13860 mutt_cv_fcntl=yes
13861 # Check whether --enable-fcntl or --disable-fcntl was given.
13862 if test "${enable_fcntl+set}" = set; then
13863   enableval="$enable_fcntl"
13864   if test $enableval = no; then mutt_cv_fcntl=no; fi
13865 fi;
13866
13867 if test $mutt_cv_fcntl = yes; then
13868
13869 cat >>confdefs.h <<\_ACEOF
13870 #define USE_FCNTL 1
13871 _ACEOF
13872
13873 fi
13874
13875 mutt_cv_inodesort=no
13876 # Check whether --enable-inodesort or --disable-inodesort was given.
13877 if test "${enable_inodesort+set}" = set; then
13878   enableval="$enable_inodesort"
13879   if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
13880 fi;
13881
13882 if test $mutt_cv_inodesort = yes; then
13883
13884 cat >>confdefs.h <<\_ACEOF
13885 #define USE_INODESORT 1
13886 _ACEOF
13887
13888 fi
13889
13890 mutt_cv_warnings=yes
13891 # Check whether --enable-warnings or --disable-warnings was given.
13892 if test "${enable_warnings+set}" = set; then
13893   enableval="$enable_warnings"
13894   if test $enableval = no; then
13895         mutt_cv_warnings=no
13896 fi
13897 fi;
13898
13899 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
13900         CFLAGS="-Wall -pedantic $CFLAGS"
13901 fi
13902
13903 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
13904 if test "${enable_nfs_fix+set}" = set; then
13905   enableval="$enable_nfs_fix"
13906   if test x$enableval = xyes; then
13907
13908 cat >>confdefs.h <<\_ACEOF
13909 #define NFS_ATTRIBUTE_HACK 1
13910 _ACEOF
13911
13912         fi
13913 fi;
13914
13915 # Check whether --enable-buffy-size or --disable-buffy-size was given.
13916 if test "${enable_buffy_size+set}" = set; then
13917   enableval="$enable_buffy_size"
13918   if test x$enableval = xyes; then
13919
13920 cat >>confdefs.h <<\_ACEOF
13921 #define BUFFY_SIZE 1
13922 _ACEOF
13923
13924         fi
13925 fi;
13926
13927 # Check whether --enable-mailtool or --disable-mailtool was given.
13928 if test "${enable_mailtool+set}" = set; then
13929   enableval="$enable_mailtool"
13930   if test x$enableval = xyes; then
13931
13932 cat >>confdefs.h <<\_ACEOF
13933 #define SUN_ATTACHMENT 1
13934 _ACEOF
13935
13936         fi
13937 fi;
13938
13939 # Check whether --enable-compressed or --disable-compressed was given.
13940 if test "${enable_compressed+set}" = set; then
13941   enableval="$enable_compressed"
13942   if test x$enableval = xyes; then
13943                 cat >>confdefs.h <<\_ACEOF
13944 #define USE_COMPRESSED 1
13945 _ACEOF
13946
13947         fi
13948 fi;
13949
13950 # Check whether --enable-locales-fix or --disable-locales-fix was given.
13951 if test "${enable_locales_fix+set}" = set; then
13952   enableval="$enable_locales_fix"
13953   if test x$enableval = xyes; then
13954
13955 cat >>confdefs.h <<\_ACEOF
13956 #define LOCALES_HACK 1
13957 _ACEOF
13958
13959         fi
13960 fi;
13961
13962
13963 # Check whether --with-exec-shell or --without-exec-shell was given.
13964 if test "${with_exec_shell+set}" = set; then
13965   withval="$with_exec_shell"
13966   if test $withval != yes; then
13967
13968 cat >>confdefs.h <<_ACEOF
13969 #define EXECSHELL "$withval"
13970 _ACEOF
13971
13972          else
13973                 cat >>confdefs.h <<_ACEOF
13974 #define EXECSHELL "/bin/sh"
13975 _ACEOF
13976
13977         fi
13978 else
13979   cat >>confdefs.h <<_ACEOF
13980 #define EXECSHELL "/bin/sh"
13981 _ACEOF
13982
13983 fi;
13984
13985 # Check whether --enable-exact-address or --disable-exact-address was given.
13986 if test "${enable_exact_address+set}" = set; then
13987   enableval="$enable_exact_address"
13988   if test $enableval = yes; then
13989
13990 cat >>confdefs.h <<\_ACEOF
13991 #define EXACT_ADDRESS 1
13992 _ACEOF
13993
13994
13995         fi
13996 fi;
13997
13998 # Check whether --enable-hcache or --disable-hcache was given.
13999 if test "${enable_hcache+set}" = set; then
14000   enableval="$enable_hcache"
14001   if test x$enableval = xyes; then
14002
14003 cat >>confdefs.h <<\_ACEOF
14004 #define USE_HCACHE 1
14005 _ACEOF
14006
14007
14008     OLDCPPFLAGS="$CPPFLAGS"
14009     OLDLIBS="$LIBS"
14010
14011     need_md5="yes"
14012     ac_prefer_gdbm=yes
14013
14014 # Check whether --with-gdbm or --without-gdbm was given.
14015 if test "${with_gdbm+set}" = set; then
14016   withval="$with_gdbm"
14017   ac_prefer_gdbm=$withval
14018 fi;
14019     if test x$ac_prefer_gdbm != xno; then
14020         CPPFLAGS="$OLDCPPFLAGS"
14021         LIBS="$OLDLIBS -lgdbm";
14022         echo "$as_me:$LINENO: checking for gdbm_open" >&5
14023 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
14024 if test "${ac_cv_gdbmopen+set}" = set; then
14025   echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027
14028             ac_cv_gdbmopen=no
14029             cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h.  */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h.  */
14035 #include <gdbm.h>
14036 int
14037 main ()
14038 {
14039 gdbm_open(0,0,0,0,0);
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 rm -f conftest.$ac_objext conftest$ac_exeext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046   (eval $ac_link) 2>conftest.er1
14047   ac_status=$?
14048   grep -v '^ *+' conftest.er1 >conftest.err
14049   rm -f conftest.er1
14050   cat conftest.err >&5
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); } &&
14053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055   (eval $ac_try) 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; } &&
14059          { ac_try='test -s conftest$ac_exeext'
14060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061   (eval $ac_try) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); }; }; then
14065   ac_cv_gdbmopen=yes
14066 else
14067   echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14069
14070 fi
14071 rm -f conftest.err conftest.$ac_objext \
14072       conftest$ac_exeext conftest.$ac_ext
14073
14074 fi
14075 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
14076 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
14077     fi
14078
14079     ac_bdb_prefix=yes
14080
14081 # Check whether --with-bdb or --without-bdb was given.
14082 if test "${with_bdb+set}" = set; then
14083   withval="$with_bdb"
14084   ac_bdb_prefix=$withval
14085 fi;
14086     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
14087         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
14088         for d in $ac_bdb_prefix; do
14089             bdbpfx="$bdbpfx $d"
14090             for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
14091                 bdbpfx="$bdbpfx $d/$v"
14092             done
14093         done
14094         BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
14095         echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
14096 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
14097         for d in $bdbpfx; do
14098             BDB_INCLUDE_DIR=""
14099             BDB_LIB_DIR=""
14100             for v in / $BDB_VERSIONS; do
14101                 if test -r "$d/include/$v/db.h"; then
14102                     BDB_INCLUDE_DIR="$d/include/$v"
14103                     if test -d "$d/lib/$v"; then
14104                         BDB_LIB_DIR="$d/lib/$v"
14105                         for l in `echo $BDB_VERSIONS`; do
14106                             CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
14107                             LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
14108                             cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114
14115                                 #include <stdlib.h>
14116                                 #include <db.h>
14117
14118 int
14119 main ()
14120 {
14121
14122                                 DB *db = NULL;
14123                                 db->open(db,NULL,NULL,NULL,0,0,0);
14124
14125   ;
14126   return 0;
14127 }
14128 _ACEOF
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131   (eval $ac_link) 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; } &&
14144          { ac_try='test -s conftest$ac_exeext'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; }; then
14150
14151                                 ac_cv_dbcreate=yes
14152                                 BDB_LIB="$l"
14153                                 break
14154
14155 else
14156   echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159 fi
14160 rm -f conftest.err conftest.$ac_objext \
14161       conftest$ac_exeext conftest.$ac_ext
14162                         done
14163                         test x$ac_dbcreate = xyes && break
14164                     fi
14165                 fi
14166             done
14167             test x$BDB_LIB != x && break
14168         done
14169         if test x$ac_cv_dbcreate = xyes; then
14170             echo "$as_me:$LINENO: result: yes" >&5
14171 echo "${ECHO_T}yes" >&6
14172         else
14173             echo "$as_me:$LINENO: result: no" >&5
14174 echo "${ECHO_T}no" >&6
14175         fi
14176     fi
14177
14178     if test x$ac_cv_gdbmopen = xyes; then
14179         CPPFLAGS="$OLDCPPFLAGS"
14180         LIBS="$OLDLIBS -lgdbm";
14181
14182 cat >>confdefs.h <<\_ACEOF
14183 #define HAVE_GDBM 1
14184 _ACEOF
14185
14186     elif test x$ac_cv_dbcreate = xyes; then
14187         CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
14188         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
14189
14190 cat >>confdefs.h <<\_ACEOF
14191 #define HAVE_DB4 1
14192 _ACEOF
14193
14194     else
14195         { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
14196 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
14197    { (exit 1); exit 1; }; }
14198     fi
14199 fi
14200 fi;
14201
14202
14203
14204
14205
14206
14207
14208 # Check whether --enable-iconv or --disable-iconv was given.
14209 if test "${enable_iconv+set}" = set; then
14210   enableval="$enable_iconv"
14211   if test x$enableval = xno ; then
14212                 am_cv_func_iconv=no
14213         fi
14214
14215 fi;
14216
14217 echo "$as_me:$LINENO: checking for off_t" >&5
14218 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14219 if test "${ac_cv_type_off_t+set}" = set; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222   cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228 $ac_includes_default
14229 int
14230 main ()
14231 {
14232 if ((off_t *) 0)
14233   return 0;
14234 if (sizeof (off_t))
14235   return 0;
14236   ;
14237   return 0;
14238 }
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242   (eval $ac_compile) 2>conftest.er1
14243   ac_status=$?
14244   grep -v '^ *+' conftest.er1 >conftest.err
14245   rm -f conftest.er1
14246   cat conftest.err >&5
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } &&
14249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; } &&
14255          { ac_try='test -s conftest.$ac_objext'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   ac_cv_type_off_t=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_cv_type_off_t=no
14267 fi
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 fi
14270 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14271 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14272 if test $ac_cv_type_off_t = yes; then
14273   :
14274 else
14275
14276 cat >>confdefs.h <<_ACEOF
14277 #define off_t long
14278 _ACEOF
14279
14280 fi
14281
14282 echo "$as_me:$LINENO: checking for size_t" >&5
14283 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14284 if test "${ac_cv_type_size_t+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 $ac_includes_default
14294 int
14295 main ()
14296 {
14297 if ((size_t *) 0)
14298   return 0;
14299 if (sizeof (size_t))
14300   return 0;
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307   (eval $ac_compile) 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316   (eval $ac_try) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; } &&
14320          { ac_try='test -s conftest.$ac_objext'
14321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322   (eval $ac_try) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; }; then
14326   ac_cv_type_size_t=yes
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 ac_cv_type_size_t=no
14332 fi
14333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14336 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14337 if test $ac_cv_type_size_t = yes; then
14338   :
14339 else
14340
14341 cat >>confdefs.h <<_ACEOF
14342 #define size_t unsigned
14343 _ACEOF
14344
14345 fi
14346
14347 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14348 # for constant arguments.  Useless!
14349 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14350 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14351 if test "${ac_cv_working_alloca_h+set}" = set; then
14352   echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354   cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360 #include <alloca.h>
14361 int
14362 main ()
14363 {
14364 char *p = (char *) alloca (2 * sizeof (int));
14365   ;
14366   return 0;
14367 }
14368 _ACEOF
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371   (eval $ac_link) 2>conftest.er1
14372   ac_status=$?
14373   grep -v '^ *+' conftest.er1 >conftest.err
14374   rm -f conftest.er1
14375   cat conftest.err >&5
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } &&
14378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380   (eval $ac_try) 2>&5
14381   ac_status=$?
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); }; } &&
14384          { ac_try='test -s conftest$ac_exeext'
14385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386   (eval $ac_try) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; }; then
14390   ac_cv_working_alloca_h=yes
14391 else
14392   echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14394
14395 ac_cv_working_alloca_h=no
14396 fi
14397 rm -f conftest.err conftest.$ac_objext \
14398       conftest$ac_exeext conftest.$ac_ext
14399 fi
14400 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14401 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14402 if test $ac_cv_working_alloca_h = yes; then
14403
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_ALLOCA_H 1
14406 _ACEOF
14407
14408 fi
14409
14410 echo "$as_me:$LINENO: checking for alloca" >&5
14411 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14412 if test "${ac_cv_func_alloca_works+set}" = set; then
14413   echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415   cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h.  */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h.  */
14421 #ifdef __GNUC__
14422 # define alloca __builtin_alloca
14423 #else
14424 # ifdef _MSC_VER
14425 #  include <malloc.h>
14426 #  define alloca _alloca
14427 # else
14428 #  if HAVE_ALLOCA_H
14429 #   include <alloca.h>
14430 #  else
14431 #   ifdef _AIX
14432  #pragma alloca
14433 #   else
14434 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14435 char *alloca ();
14436 #    endif
14437 #   endif
14438 #  endif
14439 # endif
14440 #endif
14441
14442 int
14443 main ()
14444 {
14445 char *p = (char *) alloca (1);
14446   ;
14447   return 0;
14448 }
14449 _ACEOF
14450 rm -f conftest.$ac_objext conftest$ac_exeext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14452   (eval $ac_link) 2>conftest.er1
14453   ac_status=$?
14454   grep -v '^ *+' conftest.er1 >conftest.err
14455   rm -f conftest.er1
14456   cat conftest.err >&5
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); } &&
14459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461   (eval $ac_try) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; } &&
14465          { ac_try='test -s conftest$ac_exeext'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }; then
14471   ac_cv_func_alloca_works=yes
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 ac_cv_func_alloca_works=no
14477 fi
14478 rm -f conftest.err conftest.$ac_objext \
14479       conftest$ac_exeext conftest.$ac_ext
14480 fi
14481 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14482 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14483
14484 if test $ac_cv_func_alloca_works = yes; then
14485
14486 cat >>confdefs.h <<\_ACEOF
14487 #define HAVE_ALLOCA 1
14488 _ACEOF
14489
14490 else
14491   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14492 # that cause trouble.  Some versions do not even contain alloca or
14493 # contain a buggy version.  If you still want to use their alloca,
14494 # use ar to extract alloca.o from them instead of compiling alloca.c.
14495
14496 ALLOCA=alloca.$ac_objext
14497
14498 cat >>confdefs.h <<\_ACEOF
14499 #define C_ALLOCA 1
14500 _ACEOF
14501
14502
14503 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14504 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14505 if test "${ac_cv_os_cray+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 #if defined(CRAY) && ! defined(CRAY2)
14515 webecray
14516 #else
14517 wenotbecray
14518 #endif
14519
14520 _ACEOF
14521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14522   $EGREP "webecray" >/dev/null 2>&1; then
14523   ac_cv_os_cray=yes
14524 else
14525   ac_cv_os_cray=no
14526 fi
14527 rm -f conftest*
14528
14529 fi
14530 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14531 echo "${ECHO_T}$ac_cv_os_cray" >&6
14532 if test $ac_cv_os_cray = yes; then
14533   for ac_func in _getb67 GETB67 getb67; do
14534     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14535 echo "$as_me:$LINENO: checking for $ac_func" >&5
14536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14537 if eval "test \"\${$as_ac_var+set}\" = set"; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h.  */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h.  */
14546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14548 #define $ac_func innocuous_$ac_func
14549
14550 /* System header to define __stub macros and hopefully few prototypes,
14551     which can conflict with char $ac_func (); below.
14552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14553     <limits.h> exists even on freestanding compilers.  */
14554
14555 #ifdef __STDC__
14556 # include <limits.h>
14557 #else
14558 # include <assert.h>
14559 #endif
14560
14561 #undef $ac_func
14562
14563 /* Override any gcc2 internal prototype to avoid an error.  */
14564 #ifdef __cplusplus
14565 extern "C"
14566 {
14567 #endif
14568 /* We use char because int might match the return type of a gcc2
14569    builtin and then its argument prototype would still apply.  */
14570 char $ac_func ();
14571 /* The GNU C library defines this for functions which it implements
14572     to always fail with ENOSYS.  Some functions are actually named
14573     something starting with __ and the normal name is an alias.  */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575 choke me
14576 #else
14577 char (*f) () = $ac_func;
14578 #endif
14579 #ifdef __cplusplus
14580 }
14581 #endif
14582
14583 int
14584 main ()
14585 {
14586 return f != $ac_func;
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 rm -f conftest.$ac_objext conftest$ac_exeext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14593   (eval $ac_link) 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } &&
14600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602   (eval $ac_try) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); }; } &&
14606          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14612   eval "$as_ac_var=yes"
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 eval "$as_ac_var=no"
14618 fi
14619 rm -f conftest.err conftest.$ac_objext \
14620       conftest$ac_exeext conftest.$ac_ext
14621 fi
14622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14624 if test `eval echo '${'$as_ac_var'}'` = yes; then
14625
14626 cat >>confdefs.h <<_ACEOF
14627 #define CRAY_STACKSEG_END $ac_func
14628 _ACEOF
14629
14630     break
14631 fi
14632
14633   done
14634 fi
14635
14636 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14637 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14638 if test "${ac_cv_c_stack_direction+set}" = set; then
14639   echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641   if test "$cross_compiling" = yes; then
14642   ac_cv_c_stack_direction=0
14643 else
14644   cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h.  */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h.  */
14650 int
14651 find_stack_direction ()
14652 {
14653   static char *addr = 0;
14654   auto char dummy;
14655   if (addr == 0)
14656     {
14657       addr = &dummy;
14658       return find_stack_direction ();
14659     }
14660   else
14661     return (&dummy > addr) ? 1 : -1;
14662 }
14663
14664 int
14665 main ()
14666 {
14667   exit (find_stack_direction () < 0);
14668 }
14669 _ACEOF
14670 rm -f conftest$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672   (eval $ac_link) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; }; then
14681   ac_cv_c_stack_direction=1
14682 else
14683   echo "$as_me: program exited with status $ac_status" >&5
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687 ( exit $ac_status )
14688 ac_cv_c_stack_direction=-1
14689 fi
14690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14691 fi
14692 fi
14693 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14694 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14695
14696 cat >>confdefs.h <<_ACEOF
14697 #define STACK_DIRECTION $ac_cv_c_stack_direction
14698 _ACEOF
14699
14700
14701 fi
14702
14703
14704
14705 for ac_header in stdlib.h unistd.h
14706 do
14707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14709   echo "$as_me:$LINENO: checking for $ac_header" >&5
14710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 fi
14714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14716 else
14717   # Is the header compilable?
14718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h.  */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h.  */
14726 $ac_includes_default
14727 #include <$ac_header>
14728 _ACEOF
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731   (eval $ac_compile) 2>conftest.er1
14732   ac_status=$?
14733   grep -v '^ *+' conftest.er1 >conftest.err
14734   rm -f conftest.er1
14735   cat conftest.err >&5
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } &&
14738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740   (eval $ac_try) 2>&5
14741   ac_status=$?
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); }; } &&
14744          { ac_try='test -s conftest.$ac_objext'
14745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746   (eval $ac_try) 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; }; then
14750   ac_header_compiler=yes
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755 ac_header_compiler=no
14756 fi
14757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759 echo "${ECHO_T}$ac_header_compiler" >&6
14760
14761 # Is the header present?
14762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770 #include <$ac_header>
14771 _ACEOF
14772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14774   ac_status=$?
14775   grep -v '^ *+' conftest.er1 >conftest.err
14776   rm -f conftest.er1
14777   cat conftest.err >&5
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); } >/dev/null; then
14780   if test -s conftest.err; then
14781     ac_cpp_err=$ac_c_preproc_warn_flag
14782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14783   else
14784     ac_cpp_err=
14785   fi
14786 else
14787   ac_cpp_err=yes
14788 fi
14789 if test -z "$ac_cpp_err"; then
14790   ac_header_preproc=yes
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795   ac_header_preproc=no
14796 fi
14797 rm -f conftest.err conftest.$ac_ext
14798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14799 echo "${ECHO_T}$ac_header_preproc" >&6
14800
14801 # So?  What about this header?
14802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14803   yes:no: )
14804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14808     ac_header_preproc=yes
14809     ;;
14810   no:yes:* )
14811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14823     (
14824       cat <<\_ASBOX
14825 ## ------------------------------------------ ##
14826 ## Report this to the AC_PACKAGE_NAME lists.  ##
14827 ## ------------------------------------------ ##
14828 _ASBOX
14829     ) |
14830       sed "s/^/$as_me: WARNING:     /" >&2
14831     ;;
14832 esac
14833 echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838   eval "$as_ac_Header=\$ac_header_preproc"
14839 fi
14840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14842
14843 fi
14844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14845   cat >>confdefs.h <<_ACEOF
14846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14847 _ACEOF
14848
14849 fi
14850
14851 done
14852
14853
14854 for ac_func in getpagesize
14855 do
14856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14857 echo "$as_me:$LINENO: checking for $ac_func" >&5
14858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14859 if eval "test \"\${$as_ac_var+set}\" = set"; then
14860   echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862   cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h.  */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h.  */
14868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14870 #define $ac_func innocuous_$ac_func
14871
14872 /* System header to define __stub macros and hopefully few prototypes,
14873     which can conflict with char $ac_func (); below.
14874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14875     <limits.h> exists even on freestanding compilers.  */
14876
14877 #ifdef __STDC__
14878 # include <limits.h>
14879 #else
14880 # include <assert.h>
14881 #endif
14882
14883 #undef $ac_func
14884
14885 /* Override any gcc2 internal prototype to avoid an error.  */
14886 #ifdef __cplusplus
14887 extern "C"
14888 {
14889 #endif
14890 /* We use char because int might match the return type of a gcc2
14891    builtin and then its argument prototype would still apply.  */
14892 char $ac_func ();
14893 /* The GNU C library defines this for functions which it implements
14894     to always fail with ENOSYS.  Some functions are actually named
14895     something starting with __ and the normal name is an alias.  */
14896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14897 choke me
14898 #else
14899 char (*f) () = $ac_func;
14900 #endif
14901 #ifdef __cplusplus
14902 }
14903 #endif
14904
14905 int
14906 main ()
14907 {
14908 return f != $ac_func;
14909   ;
14910   return 0;
14911 }
14912 _ACEOF
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915   (eval $ac_link) 2>conftest.er1
14916   ac_status=$?
14917   grep -v '^ *+' conftest.er1 >conftest.err
14918   rm -f conftest.er1
14919   cat conftest.err >&5
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } &&
14922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924   (eval $ac_try) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; } &&
14928          { ac_try='test -s conftest$ac_exeext'
14929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930   (eval $ac_try) 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); }; }; then
14934   eval "$as_ac_var=yes"
14935 else
14936   echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14938
14939 eval "$as_ac_var=no"
14940 fi
14941 rm -f conftest.err conftest.$ac_objext \
14942       conftest$ac_exeext conftest.$ac_ext
14943 fi
14944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14946 if test `eval echo '${'$as_ac_var'}'` = yes; then
14947   cat >>confdefs.h <<_ACEOF
14948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14949 _ACEOF
14950
14951 fi
14952 done
14953
14954 echo "$as_me:$LINENO: checking for working mmap" >&5
14955 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14956 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959   if test "$cross_compiling" = yes; then
14960   ac_cv_func_mmap_fixed_mapped=no
14961 else
14962   cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h.  */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h.  */
14968 $ac_includes_default
14969 /* malloc might have been renamed as rpl_malloc. */
14970 #undef malloc
14971
14972 /* Thanks to Mike Haertel and Jim Avera for this test.
14973    Here is a matrix of mmap possibilities:
14974         mmap private not fixed
14975         mmap private fixed at somewhere currently unmapped
14976         mmap private fixed at somewhere already mapped
14977         mmap shared not fixed
14978         mmap shared fixed at somewhere currently unmapped
14979         mmap shared fixed at somewhere already mapped
14980    For private mappings, we should verify that changes cannot be read()
14981    back from the file, nor mmap's back from the file at a different
14982    address.  (There have been systems where private was not correctly
14983    implemented like the infamous i386 svr4.0, and systems where the
14984    VM page cache was not coherent with the file system buffer cache
14985    like early versions of FreeBSD and possibly contemporary NetBSD.)
14986    For shared mappings, we should conversely verify that changes get
14987    propagated back to all the places they're supposed to be.
14988
14989    Grep wants private fixed already mapped.
14990    The main things grep needs to know about mmap are:
14991    * does it exist and is it safe to write into the mmap'd area
14992    * how to use it (BSD variants)  */
14993
14994 #include <fcntl.h>
14995 #include <sys/mman.h>
14996
14997 #if !STDC_HEADERS && !HAVE_STDLIB_H
14998 char *malloc ();
14999 #endif
15000
15001 /* This mess was copied from the GNU getpagesize.h.  */
15002 #if !HAVE_GETPAGESIZE
15003 /* Assume that all systems that can run configure have sys/param.h.  */
15004 # if !HAVE_SYS_PARAM_H
15005 #  define HAVE_SYS_PARAM_H 1
15006 # endif
15007
15008 # ifdef _SC_PAGESIZE
15009 #  define getpagesize() sysconf(_SC_PAGESIZE)
15010 # else /* no _SC_PAGESIZE */
15011 #  if HAVE_SYS_PARAM_H
15012 #   include <sys/param.h>
15013 #   ifdef EXEC_PAGESIZE
15014 #    define getpagesize() EXEC_PAGESIZE
15015 #   else /* no EXEC_PAGESIZE */
15016 #    ifdef NBPG
15017 #     define getpagesize() NBPG * CLSIZE
15018 #     ifndef CLSIZE
15019 #      define CLSIZE 1
15020 #     endif /* no CLSIZE */
15021 #    else /* no NBPG */
15022 #     ifdef NBPC
15023 #      define getpagesize() NBPC
15024 #     else /* no NBPC */
15025 #      ifdef PAGESIZE
15026 #       define getpagesize() PAGESIZE
15027 #      endif /* PAGESIZE */
15028 #     endif /* no NBPC */
15029 #    endif /* no NBPG */
15030 #   endif /* no EXEC_PAGESIZE */
15031 #  else /* no HAVE_SYS_PARAM_H */
15032 #   define getpagesize() 8192   /* punt totally */
15033 #  endif /* no HAVE_SYS_PARAM_H */
15034 # endif /* no _SC_PAGESIZE */
15035
15036 #endif /* no HAVE_GETPAGESIZE */
15037
15038 int
15039 main ()
15040 {
15041   char *data, *data2, *data3;
15042   int i, pagesize;
15043   int fd;
15044
15045   pagesize = getpagesize ();
15046
15047   /* First, make a file with some known garbage in it. */
15048   data = (char *) malloc (pagesize);
15049   if (!data)
15050     exit (1);
15051   for (i = 0; i < pagesize; ++i)
15052     *(data + i) = rand ();
15053   umask (0);
15054   fd = creat ("conftest.mmap", 0600);
15055   if (fd < 0)
15056     exit (1);
15057   if (write (fd, data, pagesize) != pagesize)
15058     exit (1);
15059   close (fd);
15060
15061   /* Next, try to mmap the file at a fixed address which already has
15062      something else allocated at it.  If we can, also make sure that
15063      we see the same garbage.  */
15064   fd = open ("conftest.mmap", O_RDWR);
15065   if (fd < 0)
15066     exit (1);
15067   data2 = (char *) malloc (2 * pagesize);
15068   if (!data2)
15069     exit (1);
15070   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15071   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15072                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15073     exit (1);
15074   for (i = 0; i < pagesize; ++i)
15075     if (*(data + i) != *(data2 + i))
15076       exit (1);
15077
15078   /* Finally, make sure that changes to the mapped area do not
15079      percolate back to the file as seen by read().  (This is a bug on
15080      some variants of i386 svr4.0.)  */
15081   for (i = 0; i < pagesize; ++i)
15082     *(data2 + i) = *(data2 + i) + 1;
15083   data3 = (char *) malloc (pagesize);
15084   if (!data3)
15085     exit (1);
15086   if (read (fd, data3, pagesize) != pagesize)
15087     exit (1);
15088   for (i = 0; i < pagesize; ++i)
15089     if (*(data + i) != *(data3 + i))
15090       exit (1);
15091   close (fd);
15092   exit (0);
15093 }
15094 _ACEOF
15095 rm -f conftest$ac_exeext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15097   (eval $ac_link) 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102   (eval $ac_try) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; }; then
15106   ac_cv_func_mmap_fixed_mapped=yes
15107 else
15108   echo "$as_me: program exited with status $ac_status" >&5
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ( exit $ac_status )
15113 ac_cv_func_mmap_fixed_mapped=no
15114 fi
15115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15116 fi
15117 fi
15118 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15119 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15120 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15121
15122 cat >>confdefs.h <<\_ACEOF
15123 #define HAVE_MMAP 1
15124 _ACEOF
15125
15126 fi
15127 rm -f conftest.mmap
15128
15129
15130     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15131 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15132 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135   cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h.  */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h.  */
15141
15142 #include <features.h>
15143 #ifdef __GNU_LIBRARY__
15144  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15145   Lucky GNU user
15146  #endif
15147 #endif
15148
15149 _ACEOF
15150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15151   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15152   ac_cv_gnu_library_2_1=yes
15153 else
15154   ac_cv_gnu_library_2_1=no
15155 fi
15156 rm -f conftest*
15157
15158
15159
15160 fi
15161 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15162 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15163
15164     GLIBC21="$ac_cv_gnu_library_2_1"
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
15179 stdlib.h string.h unistd.h sys/param.h
15180 do
15181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15183   echo "$as_me:$LINENO: checking for $ac_header" >&5
15184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 fi
15188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15190 else
15191   # Is the header compilable?
15192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 $ac_includes_default
15201 #include <$ac_header>
15202 _ACEOF
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205   (eval $ac_compile) 2>conftest.er1
15206   ac_status=$?
15207   grep -v '^ *+' conftest.er1 >conftest.err
15208   rm -f conftest.er1
15209   cat conftest.err >&5
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); } &&
15212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214   (eval $ac_try) 2>&5
15215   ac_status=$?
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); }; } &&
15218          { ac_try='test -s conftest.$ac_objext'
15219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220   (eval $ac_try) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; }; then
15224   ac_header_compiler=yes
15225 else
15226   echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15228
15229 ac_header_compiler=no
15230 fi
15231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15233 echo "${ECHO_T}$ac_header_compiler" >&6
15234
15235 # Is the header present?
15236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244 #include <$ac_header>
15245 _ACEOF
15246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15248   ac_status=$?
15249   grep -v '^ *+' conftest.er1 >conftest.err
15250   rm -f conftest.er1
15251   cat conftest.err >&5
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } >/dev/null; then
15254   if test -s conftest.err; then
15255     ac_cpp_err=$ac_c_preproc_warn_flag
15256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15257   else
15258     ac_cpp_err=
15259   fi
15260 else
15261   ac_cpp_err=yes
15262 fi
15263 if test -z "$ac_cpp_err"; then
15264   ac_header_preproc=yes
15265 else
15266   echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269   ac_header_preproc=no
15270 fi
15271 rm -f conftest.err conftest.$ac_ext
15272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15273 echo "${ECHO_T}$ac_header_preproc" >&6
15274
15275 # So?  What about this header?
15276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15277   yes:no: )
15278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15282     ac_header_preproc=yes
15283     ;;
15284   no:yes:* )
15285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15297     (
15298       cat <<\_ASBOX
15299 ## ------------------------------------------ ##
15300 ## Report this to the AC_PACKAGE_NAME lists.  ##
15301 ## ------------------------------------------ ##
15302 _ASBOX
15303     ) |
15304       sed "s/^/$as_me: WARNING:     /" >&2
15305     ;;
15306 esac
15307 echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   eval "$as_ac_Header=\$ac_header_preproc"
15313 fi
15314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15316
15317 fi
15318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15319   cat >>confdefs.h <<_ACEOF
15320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15321 _ACEOF
15322
15323 fi
15324
15325 done
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
15349 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
15350 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
15351 do
15352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15353 echo "$as_me:$LINENO: checking for $ac_func" >&5
15354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15355 if eval "test \"\${$as_ac_var+set}\" = set"; then
15356   echo $ECHO_N "(cached) $ECHO_C" >&6
15357 else
15358   cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h.  */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h.  */
15364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15366 #define $ac_func innocuous_$ac_func
15367
15368 /* System header to define __stub macros and hopefully few prototypes,
15369     which can conflict with char $ac_func (); below.
15370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15371     <limits.h> exists even on freestanding compilers.  */
15372
15373 #ifdef __STDC__
15374 # include <limits.h>
15375 #else
15376 # include <assert.h>
15377 #endif
15378
15379 #undef $ac_func
15380
15381 /* Override any gcc2 internal prototype to avoid an error.  */
15382 #ifdef __cplusplus
15383 extern "C"
15384 {
15385 #endif
15386 /* We use char because int might match the return type of a gcc2
15387    builtin and then its argument prototype would still apply.  */
15388 char $ac_func ();
15389 /* The GNU C library defines this for functions which it implements
15390     to always fail with ENOSYS.  Some functions are actually named
15391     something starting with __ and the normal name is an alias.  */
15392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15393 choke me
15394 #else
15395 char (*f) () = $ac_func;
15396 #endif
15397 #ifdef __cplusplus
15398 }
15399 #endif
15400
15401 int
15402 main ()
15403 {
15404 return f != $ac_func;
15405   ;
15406   return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15411   (eval $ac_link) 2>conftest.er1
15412   ac_status=$?
15413   grep -v '^ *+' conftest.er1 >conftest.err
15414   rm -f conftest.er1
15415   cat conftest.err >&5
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } &&
15418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420   (eval $ac_try) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; } &&
15424          { ac_try='test -s conftest$ac_exeext'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; }; then
15430   eval "$as_ac_var=yes"
15431 else
15432   echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435 eval "$as_ac_var=no"
15436 fi
15437 rm -f conftest.err conftest.$ac_objext \
15438       conftest$ac_exeext conftest.$ac_ext
15439 fi
15440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15442 if test `eval echo '${'$as_ac_var'}'` = yes; then
15443   cat >>confdefs.h <<_ACEOF
15444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15445 _ACEOF
15446
15447 fi
15448 done
15449
15450
15451
15452
15453
15454 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15455 if test "${with_libiconv_prefix+set}" = set; then
15456   withval="$with_libiconv_prefix"
15457
15458     for dir in `echo "$withval" | tr : ' '`; do
15459       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15460       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15461     done
15462
15463 fi;
15464
15465   echo "$as_me:$LINENO: checking for iconv" >&5
15466 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15467 if test "${am_cv_func_iconv+set}" = set; then
15468   echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470
15471     am_cv_func_iconv="no, consider installing GNU libiconv"
15472     am_cv_lib_iconv=no
15473     cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479 #include <stdlib.h>
15480 #include <iconv.h>
15481 int
15482 main ()
15483 {
15484 iconv_t cd = iconv_open("","");
15485        iconv(cd,NULL,NULL,NULL,NULL);
15486        iconv_close(cd);
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493   (eval $ac_link) 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502   (eval $ac_try) 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }; } &&
15506          { ac_try='test -s conftest$ac_exeext'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; }; then
15512   am_cv_func_iconv=yes
15513 else
15514   echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15516
15517 fi
15518 rm -f conftest.err conftest.$ac_objext \
15519       conftest$ac_exeext conftest.$ac_ext
15520     if test "$am_cv_func_iconv" != yes; then
15521       am_save_LIBS="$LIBS"
15522       LIBS="$LIBS -liconv"
15523       cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529 #include <stdlib.h>
15530 #include <iconv.h>
15531 int
15532 main ()
15533 {
15534 iconv_t cd = iconv_open("","");
15535          iconv(cd,NULL,NULL,NULL,NULL);
15536          iconv_close(cd);
15537   ;
15538   return 0;
15539 }
15540 _ACEOF
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543   (eval $ac_link) 2>conftest.er1
15544   ac_status=$?
15545   grep -v '^ *+' conftest.er1 >conftest.err
15546   rm -f conftest.er1
15547   cat conftest.err >&5
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } &&
15550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552   (eval $ac_try) 2>&5
15553   ac_status=$?
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); }; } &&
15556          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15562   am_cv_lib_iconv=yes
15563         am_cv_func_iconv=yes
15564 else
15565   echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15567
15568 fi
15569 rm -f conftest.err conftest.$ac_objext \
15570       conftest$ac_exeext conftest.$ac_ext
15571       LIBS="$am_save_LIBS"
15572     fi
15573
15574 fi
15575 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15576 echo "${ECHO_T}$am_cv_func_iconv" >&6
15577   if test "$am_cv_func_iconv" = yes; then
15578
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_ICONV 1
15581 _ACEOF
15582
15583     echo "$as_me:$LINENO: checking for iconv declaration" >&5
15584 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15585     if test "${am_cv_proto_iconv+set}" = set; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588
15589       cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h.  */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h.  */
15595
15596 #include <stdlib.h>
15597 #include <iconv.h>
15598 extern
15599 #ifdef __cplusplus
15600 "C"
15601 #endif
15602 #if defined(__STDC__) || defined(__cplusplus)
15603 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15604 #else
15605 size_t iconv();
15606 #endif
15607
15608 int
15609 main ()
15610 {
15611
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618   (eval $ac_compile) 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; } &&
15631          { ac_try='test -s conftest.$ac_objext'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637   am_cv_proto_iconv_arg1=""
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642 am_cv_proto_iconv_arg1="const"
15643 fi
15644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15645       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);"
15646 fi
15647
15648     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15649     echo "$as_me:$LINENO: result: ${ac_t:-
15650          }$am_cv_proto_iconv" >&5
15651 echo "${ECHO_T}${ac_t:-
15652          }$am_cv_proto_iconv" >&6
15653
15654 cat >>confdefs.h <<_ACEOF
15655 #define ICONV_CONST $am_cv_proto_iconv_arg1
15656 _ACEOF
15657
15658   fi
15659   LIBICONV=
15660   if test "$am_cv_lib_iconv" = yes; then
15661     LIBICONV="-liconv"
15662   fi
15663
15664
15665
15666   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15667 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15668 if test "${am_cv_langinfo_codeset+set}" = set; then
15669   echo $ECHO_N "(cached) $ECHO_C" >&6
15670 else
15671   cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h.  */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h.  */
15677 #include <langinfo.h>
15678 int
15679 main ()
15680 {
15681 char* cs = nl_langinfo(CODESET);
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688   (eval $ac_link) 2>conftest.er1
15689   ac_status=$?
15690   grep -v '^ *+' conftest.er1 >conftest.err
15691   rm -f conftest.er1
15692   cat conftest.err >&5
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697   (eval $ac_try) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; } &&
15701          { ac_try='test -s conftest$ac_exeext'
15702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703   (eval $ac_try) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   am_cv_langinfo_codeset=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 am_cv_langinfo_codeset=no
15713 fi
15714 rm -f conftest.err conftest.$ac_objext \
15715       conftest$ac_exeext conftest.$ac_ext
15716
15717 fi
15718 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15719 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15720   if test $am_cv_langinfo_codeset = yes; then
15721
15722 cat >>confdefs.h <<\_ACEOF
15723 #define HAVE_LANGINFO_CODESET 1
15724 _ACEOF
15725
15726   fi
15727
15728    if test $ac_cv_header_locale_h = yes; then
15729     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
15730 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
15731 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
15732   echo $ECHO_N "(cached) $ECHO_C" >&6
15733 else
15734   cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740 #include <locale.h>
15741 int
15742 main ()
15743 {
15744 return LC_MESSAGES
15745   ;
15746   return 0;
15747 }
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751   (eval $ac_link) 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760   (eval $ac_try) 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; } &&
15764          { ac_try='test -s conftest$ac_exeext'
15765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766   (eval $ac_try) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; }; then
15770   am_cv_val_LC_MESSAGES=yes
15771 else
15772   echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775 am_cv_val_LC_MESSAGES=no
15776 fi
15777 rm -f conftest.err conftest.$ac_objext \
15778       conftest$ac_exeext conftest.$ac_ext
15779 fi
15780 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
15781 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
15782     if test $am_cv_val_LC_MESSAGES = yes; then
15783
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAVE_LC_MESSAGES 1
15786 _ACEOF
15787
15788     fi
15789   fi
15790    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15791 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
15792         # Check whether --enable-nls or --disable-nls was given.
15793 if test "${enable_nls+set}" = set; then
15794   enableval="$enable_nls"
15795   USE_NLS=$enableval
15796 else
15797   USE_NLS=yes
15798 fi;
15799     echo "$as_me:$LINENO: result: $USE_NLS" >&5
15800 echo "${ECHO_T}$USE_NLS" >&6
15801
15802
15803     BUILD_INCLUDED_LIBINTL=no
15804     USE_INCLUDED_LIBINTL=no
15805     INTLLIBS=
15806
15807         if test "$USE_NLS" = "yes"; then
15808
15809 cat >>confdefs.h <<\_ACEOF
15810 #define ENABLE_NLS 1
15811 _ACEOF
15812
15813       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
15814 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
15815
15816 # Check whether --with-included-gettext or --without-included-gettext was given.
15817 if test "${with_included_gettext+set}" = set; then
15818   withval="$with_included_gettext"
15819   nls_cv_force_use_gnu_gettext=$withval
15820 else
15821   nls_cv_force_use_gnu_gettext=no
15822 fi;
15823       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
15824 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
15825
15826       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
15827       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
15828                                 CATOBJEXT=NONE
15829
15830
15831
15832
15833         if test "${ac_cv_header_libintl_h+set}" = set; then
15834   echo "$as_me:$LINENO: checking for libintl.h" >&5
15835 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15836 if test "${ac_cv_header_libintl_h+set}" = set; then
15837   echo $ECHO_N "(cached) $ECHO_C" >&6
15838 fi
15839 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15840 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15841 else
15842   # Is the header compilable?
15843 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15844 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h.  */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h.  */
15851 $ac_includes_default
15852 #include <libintl.h>
15853 _ACEOF
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856   (eval $ac_compile) 2>conftest.er1
15857   ac_status=$?
15858   grep -v '^ *+' conftest.er1 >conftest.err
15859   rm -f conftest.er1
15860   cat conftest.err >&5
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } &&
15863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; } &&
15869          { ac_try='test -s conftest.$ac_objext'
15870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871   (eval $ac_try) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875   ac_header_compiler=yes
15876 else
15877   echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880 ac_header_compiler=no
15881 fi
15882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6
15885
15886 # Is the header present?
15887 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15888 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 #include <libintl.h>
15896 _ACEOF
15897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15899   ac_status=$?
15900   grep -v '^ *+' conftest.er1 >conftest.err
15901   rm -f conftest.er1
15902   cat conftest.err >&5
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } >/dev/null; then
15905   if test -s conftest.err; then
15906     ac_cpp_err=$ac_c_preproc_warn_flag
15907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15908   else
15909     ac_cpp_err=
15910   fi
15911 else
15912   ac_cpp_err=yes
15913 fi
15914 if test -z "$ac_cpp_err"; then
15915   ac_header_preproc=yes
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920   ac_header_preproc=no
15921 fi
15922 rm -f conftest.err conftest.$ac_ext
15923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15924 echo "${ECHO_T}$ac_header_preproc" >&6
15925
15926 # So?  What about this header?
15927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15928   yes:no: )
15929     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15930 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15931     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
15932 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
15933     ac_header_preproc=yes
15934     ;;
15935   no:yes:* )
15936     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15937 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15938     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
15939 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
15940     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
15941 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
15942     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
15943 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15945 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
15946     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
15947 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
15948     (
15949       cat <<\_ASBOX
15950 ## ------------------------------------------ ##
15951 ## Report this to the AC_PACKAGE_NAME lists.  ##
15952 ## ------------------------------------------ ##
15953 _ASBOX
15954     ) |
15955       sed "s/^/$as_me: WARNING:     /" >&2
15956     ;;
15957 esac
15958 echo "$as_me:$LINENO: checking for libintl.h" >&5
15959 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15960 if test "${ac_cv_header_libintl_h+set}" = set; then
15961   echo $ECHO_N "(cached) $ECHO_C" >&6
15962 else
15963   ac_cv_header_libintl_h=$ac_header_preproc
15964 fi
15965 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15966 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15967
15968 fi
15969 if test $ac_cv_header_libintl_h = yes; then
15970   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
15971 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
15972 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
15973   echo $ECHO_N "(cached) $ECHO_C" >&6
15974 else
15975   cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 #include <libintl.h>
15982 extern int _nl_msg_cat_cntr;
15983 int
15984 main ()
15985 {
15986 bindtextdomain ("", "");
15987 return (int) gettext ("") + _nl_msg_cat_cntr
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 rm -f conftest.$ac_objext conftest$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994   (eval $ac_link) 2>conftest.er1
15995   ac_status=$?
15996   grep -v '^ *+' conftest.er1 >conftest.err
15997   rm -f conftest.er1
15998   cat conftest.err >&5
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } &&
16001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; } &&
16007          { ac_try='test -s conftest$ac_exeext'
16008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009   (eval $ac_try) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; }; then
16013   gt_cv_func_gnugettext1_libc=yes
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 gt_cv_func_gnugettext1_libc=no
16019 fi
16020 rm -f conftest.err conftest.$ac_objext \
16021       conftest$ac_exeext conftest.$ac_ext
16022 fi
16023 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
16024 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
16025
16026            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16027              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
16028 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
16029 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032   gt_save_LIBS="$LIBS"
16033                 LIBS="$LIBS -lintl $LIBICONV"
16034                 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h.  */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h.  */
16040 #include <libintl.h>
16041 extern int _nl_msg_cat_cntr;
16042 int
16043 main ()
16044 {
16045 bindtextdomain ("", "");
16046 return (int) gettext ("") + _nl_msg_cat_cntr
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16053   (eval $ac_link) 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } &&
16060          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062   (eval $ac_try) 2>&5
16063   ac_status=$?
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); }; } &&
16066          { ac_try='test -s conftest$ac_exeext'
16067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068   (eval $ac_try) 2>&5
16069   ac_status=$?
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); }; }; then
16072   gt_cv_func_gnugettext1_libintl=yes
16073 else
16074   echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16076
16077 gt_cv_func_gnugettext1_libintl=no
16078 fi
16079 rm -f conftest.err conftest.$ac_objext \
16080       conftest$ac_exeext conftest.$ac_ext
16081                 LIBS="$gt_save_LIBS"
16082 fi
16083 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
16084 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
16085            fi
16086
16087                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
16088               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
16089                    && test "$PACKAGE" != gettext; }; then
16090
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_GETTEXT 1
16093 _ACEOF
16094
16095
16096              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16097                                        INTLLIBS="-lintl $LIBICONV"
16098              fi
16099
16100              gt_save_LIBS="$LIBS"
16101              LIBS="$LIBS $INTLLIBS"
16102
16103 for ac_func in dcgettext
16104 do
16105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16106 echo "$as_me:$LINENO: checking for $ac_func" >&5
16107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16108 if eval "test \"\${$as_ac_var+set}\" = set"; then
16109   echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111   cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16119 #define $ac_func innocuous_$ac_func
16120
16121 /* System header to define __stub macros and hopefully few prototypes,
16122     which can conflict with char $ac_func (); below.
16123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124     <limits.h> exists even on freestanding compilers.  */
16125
16126 #ifdef __STDC__
16127 # include <limits.h>
16128 #else
16129 # include <assert.h>
16130 #endif
16131
16132 #undef $ac_func
16133
16134 /* Override any gcc2 internal prototype to avoid an error.  */
16135 #ifdef __cplusplus
16136 extern "C"
16137 {
16138 #endif
16139 /* We use char because int might match the return type of a gcc2
16140    builtin and then its argument prototype would still apply.  */
16141 char $ac_func ();
16142 /* The GNU C library defines this for functions which it implements
16143     to always fail with ENOSYS.  Some functions are actually named
16144     something starting with __ and the normal name is an alias.  */
16145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16146 choke me
16147 #else
16148 char (*f) () = $ac_func;
16149 #endif
16150 #ifdef __cplusplus
16151 }
16152 #endif
16153
16154 int
16155 main ()
16156 {
16157 return f != $ac_func;
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164   (eval $ac_link) 2>conftest.er1
16165   ac_status=$?
16166   grep -v '^ *+' conftest.er1 >conftest.err
16167   rm -f conftest.er1
16168   cat conftest.err >&5
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } &&
16171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173   (eval $ac_try) 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; } &&
16177          { ac_try='test -s conftest$ac_exeext'
16178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179   (eval $ac_try) 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }; }; then
16183   eval "$as_ac_var=yes"
16184 else
16185   echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16187
16188 eval "$as_ac_var=no"
16189 fi
16190 rm -f conftest.err conftest.$ac_objext \
16191       conftest$ac_exeext conftest.$ac_ext
16192 fi
16193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16195 if test `eval echo '${'$as_ac_var'}'` = yes; then
16196   cat >>confdefs.h <<_ACEOF
16197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16198 _ACEOF
16199
16200 fi
16201 done
16202
16203              LIBS="$gt_save_LIBS"
16204
16205                      # Extract the first word of "msgfmt", so it can be a program name with args.
16206 set dummy msgfmt; ac_word=$2
16207 echo "$as_me:$LINENO: checking for $ac_word" >&5
16208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16209 if test "${ac_cv_path_MSGFMT+set}" = set; then
16210   echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212   case "$MSGFMT" in
16213   /*)
16214   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16215   ;;
16216   *)
16217   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16218   for ac_dir in $PATH; do
16219     test -z "$ac_dir" && ac_dir=.
16220     if test -f $ac_dir/$ac_word; then
16221       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
16222         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16223         break
16224       fi
16225     fi
16226   done
16227   IFS="$ac_save_ifs"
16228   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16229   ;;
16230 esac
16231 fi
16232 MSGFMT="$ac_cv_path_MSGFMT"
16233 if test "$MSGFMT" != ":"; then
16234   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16235 echo "${ECHO_T}$MSGFMT" >&6
16236 else
16237   echo "$as_me:$LINENO: result: no" >&5
16238 echo "${ECHO_T}no" >&6
16239 fi
16240
16241              # Extract the first word of "gmsgfmt", so it can be a program name with args.
16242 set dummy gmsgfmt; ac_word=$2
16243 echo "$as_me:$LINENO: checking for $ac_word" >&5
16244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16245 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16246   echo $ECHO_N "(cached) $ECHO_C" >&6
16247 else
16248   case $GMSGFMT in
16249   [\\/]* | ?:[\\/]*)
16250   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16251   ;;
16252   *)
16253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16255 do
16256   IFS=$as_save_IFS
16257   test -z "$as_dir" && as_dir=.
16258   for ac_exec_ext in '' $ac_executable_extensions; do
16259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16260     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16262     break 2
16263   fi
16264 done
16265 done
16266
16267   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16268   ;;
16269 esac
16270 fi
16271 GMSGFMT=$ac_cv_path_GMSGFMT
16272
16273 if test -n "$GMSGFMT"; then
16274   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16275 echo "${ECHO_T}$GMSGFMT" >&6
16276 else
16277   echo "$as_me:$LINENO: result: no" >&5
16278 echo "${ECHO_T}no" >&6
16279 fi
16280
16281
16282                      # Extract the first word of "xgettext", so it can be a program name with args.
16283 set dummy xgettext; ac_word=$2
16284 echo "$as_me:$LINENO: checking for $ac_word" >&5
16285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16286 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289   case "$XGETTEXT" in
16290   /*)
16291   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16292   ;;
16293   *)
16294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16295   for ac_dir in $PATH; do
16296     test -z "$ac_dir" && ac_dir=.
16297     if test -f $ac_dir/$ac_word; then
16298       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
16299         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16300         break
16301       fi
16302     fi
16303   done
16304   IFS="$ac_save_ifs"
16305   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16306   ;;
16307 esac
16308 fi
16309 XGETTEXT="$ac_cv_path_XGETTEXT"
16310 if test "$XGETTEXT" != ":"; then
16311   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16312 echo "${ECHO_T}$XGETTEXT" >&6
16313 else
16314   echo "$as_me:$LINENO: result: no" >&5
16315 echo "${ECHO_T}no" >&6
16316 fi
16317
16318
16319              CATOBJEXT=.gmo
16320            fi
16321
16322 fi
16323
16324
16325
16326         if test "$CATOBJEXT" = "NONE"; then
16327                           nls_cv_use_gnu_gettext=yes
16328         fi
16329       fi
16330
16331       if test "$nls_cv_use_gnu_gettext" = "yes"; then
16332                 INTLOBJS="\$(GETTOBJS)"
16333         # Extract the first word of "msgfmt", so it can be a program name with args.
16334 set dummy msgfmt; ac_word=$2
16335 echo "$as_me:$LINENO: checking for $ac_word" >&5
16336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16337 if test "${ac_cv_path_MSGFMT+set}" = set; then
16338   echo $ECHO_N "(cached) $ECHO_C" >&6
16339 else
16340   case "$MSGFMT" in
16341   /*)
16342   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16343   ;;
16344   *)
16345   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16346   for ac_dir in $PATH; do
16347     test -z "$ac_dir" && ac_dir=.
16348     if test -f $ac_dir/$ac_word; then
16349       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
16350         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16351         break
16352       fi
16353     fi
16354   done
16355   IFS="$ac_save_ifs"
16356   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16357   ;;
16358 esac
16359 fi
16360 MSGFMT="$ac_cv_path_MSGFMT"
16361 if test "$MSGFMT" != ":"; then
16362   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16363 echo "${ECHO_T}$MSGFMT" >&6
16364 else
16365   echo "$as_me:$LINENO: result: no" >&5
16366 echo "${ECHO_T}no" >&6
16367 fi
16368
16369         # Extract the first word of "gmsgfmt", so it can be a program name with args.
16370 set dummy gmsgfmt; ac_word=$2
16371 echo "$as_me:$LINENO: checking for $ac_word" >&5
16372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16373 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   case $GMSGFMT in
16377   [\\/]* | ?:[\\/]*)
16378   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16379   ;;
16380   *)
16381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16382 for as_dir in $PATH
16383 do
16384   IFS=$as_save_IFS
16385   test -z "$as_dir" && as_dir=.
16386   for ac_exec_ext in '' $ac_executable_extensions; do
16387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16388     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16390     break 2
16391   fi
16392 done
16393 done
16394
16395   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16396   ;;
16397 esac
16398 fi
16399 GMSGFMT=$ac_cv_path_GMSGFMT
16400
16401 if test -n "$GMSGFMT"; then
16402   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16403 echo "${ECHO_T}$GMSGFMT" >&6
16404 else
16405   echo "$as_me:$LINENO: result: no" >&5
16406 echo "${ECHO_T}no" >&6
16407 fi
16408
16409         # Extract the first word of "xgettext", so it can be a program name with args.
16410 set dummy xgettext; ac_word=$2
16411 echo "$as_me:$LINENO: checking for $ac_word" >&5
16412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16413 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16414   echo $ECHO_N "(cached) $ECHO_C" >&6
16415 else
16416   case "$XGETTEXT" in
16417   /*)
16418   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16419   ;;
16420   *)
16421   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16422   for ac_dir in $PATH; do
16423     test -z "$ac_dir" && ac_dir=.
16424     if test -f $ac_dir/$ac_word; then
16425       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
16426         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16427         break
16428       fi
16429     fi
16430   done
16431   IFS="$ac_save_ifs"
16432   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16433   ;;
16434 esac
16435 fi
16436 XGETTEXT="$ac_cv_path_XGETTEXT"
16437 if test "$XGETTEXT" != ":"; then
16438   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16439 echo "${ECHO_T}$XGETTEXT" >&6
16440 else
16441   echo "$as_me:$LINENO: result: no" >&5
16442 echo "${ECHO_T}no" >&6
16443 fi
16444
16445
16446         BUILD_INCLUDED_LIBINTL=yes
16447         USE_INCLUDED_LIBINTL=yes
16448         CATOBJEXT=.gmo
16449         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
16450         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
16451       fi
16452
16453                   if test "$GMSGFMT" != ":"; then
16454                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
16455           : ;
16456         else
16457           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
16458 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
16459           GMSGFMT=":"
16460         fi
16461       fi
16462
16463                   if test "$XGETTEXT" != ":"; then
16464                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
16465           : ;
16466         else
16467           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16468 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
16469           XGETTEXT=":"
16470         fi
16471       fi
16472
16473             POSUB=po
16474     fi
16475               ac_config_commands="$ac_config_commands default-1"
16476
16477
16478
16479             if test "$PACKAGE" = gettext; then
16480       BUILD_INCLUDED_LIBINTL=yes
16481     fi
16482
16483                                             for ac_prog in bison
16484 do
16485   # Extract the first word of "$ac_prog", so it can be a program name with args.
16486 set dummy $ac_prog; ac_word=$2
16487 echo "$as_me:$LINENO: checking for $ac_word" >&5
16488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16489 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16490   echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492   if test -n "$INTLBISON"; then
16493   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16494 else
16495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16496 for as_dir in $PATH
16497 do
16498   IFS=$as_save_IFS
16499   test -z "$as_dir" && as_dir=.
16500   for ac_exec_ext in '' $ac_executable_extensions; do
16501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16502     ac_cv_prog_INTLBISON="$ac_prog"
16503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16504     break 2
16505   fi
16506 done
16507 done
16508
16509 fi
16510 fi
16511 INTLBISON=$ac_cv_prog_INTLBISON
16512 if test -n "$INTLBISON"; then
16513   echo "$as_me:$LINENO: result: $INTLBISON" >&5
16514 echo "${ECHO_T}$INTLBISON" >&6
16515 else
16516   echo "$as_me:$LINENO: result: no" >&5
16517 echo "${ECHO_T}no" >&6
16518 fi
16519
16520   test -n "$INTLBISON" && break
16521 done
16522
16523     if test -z "$INTLBISON"; then
16524       ac_verc_fail=yes
16525     else
16526             echo "$as_me:$LINENO: checking version of bison" >&5
16527 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16528       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16529       case $ac_prog_version in
16530         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16531         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16532            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16533         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16534       esac
16535       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16536 echo "${ECHO_T}$ac_prog_version" >&6
16537     fi
16538     if test $ac_verc_fail = yes; then
16539       INTLBISON=:
16540     fi
16541
16542                 for lang in $ALL_LINGUAS; do
16543       GMOFILES="$GMOFILES $lang.gmo"
16544       POFILES="$POFILES $lang.po"
16545     done
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557         nls_cv_header_intl=
16558     nls_cv_header_libgt=
16559
16560         DATADIRNAME=share
16561
16562
16563         INSTOBJEXT=.mo
16564
16565
16566         GENCAT=gencat
16567
16568
16569
16570    if test "x$CATOBJEXT" != "x"; then
16571      if test "x$ALL_LINGUAS" = "x"; then
16572        LINGUAS=
16573      else
16574        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
16575 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
16576        NEW_LINGUAS=
16577        for presentlang in $ALL_LINGUAS; do
16578          useit=no
16579          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
16580            # Use the presentlang catalog if desiredlang is
16581            #   a. equal to presentlang, or
16582            #   b. a variant of presentlang (because in this case,
16583            #      presentlang can be used as a fallback for messages
16584            #      which are not translated in the desiredlang catalog).
16585            case "$desiredlang" in
16586              "$presentlang"*) useit=yes;;
16587            esac
16588          done
16589          if test $useit = yes; then
16590            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16591          fi
16592        done
16593        LINGUAS=$NEW_LINGUAS
16594        echo "$as_me:$LINENO: result: $LINGUAS" >&5
16595 echo "${ECHO_T}$LINGUAS" >&6
16596      fi
16597
16598           if test -n "$LINGUAS"; then
16599        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16600      fi
16601    fi
16602
16603             MKINSTALLDIRS=
16604    if test -n "$ac_aux_dir"; then
16605      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16606    fi
16607    if test -z "$MKINSTALLDIRS"; then
16608      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16609    fi
16610
16611
16612       INTL_LIBTOOL_SUFFIX_PREFIX=
16613
16614
16615
16616 if test "$am_cv_func_iconv" != "yes"
16617 then
16618   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
16619 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
16620 else
16621
16622
16623 for ac_header in iconv.h
16624 do
16625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16627   echo "$as_me:$LINENO: checking for $ac_header" >&5
16628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16630   echo $ECHO_N "(cached) $ECHO_C" >&6
16631 fi
16632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16634 else
16635   # Is the header compilable?
16636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16638 cat >conftest.$ac_ext <<_ACEOF
16639 /* confdefs.h.  */
16640 _ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h.  */
16644 $ac_includes_default
16645 #include <$ac_header>
16646 _ACEOF
16647 rm -f conftest.$ac_objext
16648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16649   (eval $ac_compile) 2>conftest.er1
16650   ac_status=$?
16651   grep -v '^ *+' conftest.er1 >conftest.err
16652   rm -f conftest.er1
16653   cat conftest.err >&5
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); } &&
16656          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; } &&
16662          { ac_try='test -s conftest.$ac_objext'
16663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664   (eval $ac_try) 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); }; }; then
16668   ac_header_compiler=yes
16669 else
16670   echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16672
16673 ac_header_compiler=no
16674 fi
16675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16677 echo "${ECHO_T}$ac_header_compiler" >&6
16678
16679 # Is the header present?
16680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16682 cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h.  */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h.  */
16688 #include <$ac_header>
16689 _ACEOF
16690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16692   ac_status=$?
16693   grep -v '^ *+' conftest.er1 >conftest.err
16694   rm -f conftest.er1
16695   cat conftest.err >&5
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } >/dev/null; then
16698   if test -s conftest.err; then
16699     ac_cpp_err=$ac_c_preproc_warn_flag
16700     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16701   else
16702     ac_cpp_err=
16703   fi
16704 else
16705   ac_cpp_err=yes
16706 fi
16707 if test -z "$ac_cpp_err"; then
16708   ac_header_preproc=yes
16709 else
16710   echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713   ac_header_preproc=no
16714 fi
16715 rm -f conftest.err conftest.$ac_ext
16716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16717 echo "${ECHO_T}$ac_header_preproc" >&6
16718
16719 # So?  What about this header?
16720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16721   yes:no: )
16722     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16726     ac_header_preproc=yes
16727     ;;
16728   no:yes:* )
16729     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16731     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16732 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16733     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16735     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16736 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16739     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16741     (
16742       cat <<\_ASBOX
16743 ## ------------------------------------------ ##
16744 ## Report this to the AC_PACKAGE_NAME lists.  ##
16745 ## ------------------------------------------ ##
16746 _ASBOX
16747     ) |
16748       sed "s/^/$as_me: WARNING:     /" >&2
16749     ;;
16750 esac
16751 echo "$as_me:$LINENO: checking for $ac_header" >&5
16752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16754   echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756   eval "$as_ac_Header=\$ac_header_preproc"
16757 fi
16758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16760
16761 fi
16762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16763   cat >>confdefs.h <<_ACEOF
16764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16765 _ACEOF
16766  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
16767 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
16768          cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h.  */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h.  */
16774 #include <iconv.h>
16775
16776 _ACEOF
16777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16778   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
16779   echo "$as_me:$LINENO: result: yes" >&5
16780 echo "${ECHO_T}yes" >&6
16781
16782 cat >>confdefs.h <<\_ACEOF
16783 #define HAVE_ICONV_T_DEF 1
16784 _ACEOF
16785
16786 else
16787   echo "$as_me:$LINENO: result: no" >&5
16788 echo "${ECHO_T}no" >&6
16789 fi
16790 rm -f conftest*
16791
16792 fi
16793
16794 done
16795
16796
16797 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
16798 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
16799 if test "${mutt_cv_iconv_good+set}" = set; then
16800   echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802   mutt_save_LIBS="$LIBS"
16803         LIBS="$LIBS $LIBICONV"
16804         if test "$cross_compiling" = yes; then
16805   mutt_cv_iconv_good=yes
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h.  */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h.  */
16813
16814 #include <iconv.h>
16815 int main()
16816 {
16817   iconv_t cd;
16818   char buf[4];
16819   char *ob;
16820   size_t obl;
16821   ob = buf, obl = sizeof(buf);
16822   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
16823           (iconv(cd, 0, 0, &ob, &obl) ||
16824            !(ob == buf && obl == sizeof(buf)) ||
16825            iconv_close(cd)));
16826 }
16827
16828 _ACEOF
16829 rm -f conftest$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831   (eval $ac_link) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836   (eval $ac_try) 2>&5
16837   ac_status=$?
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); }; }; then
16840   mutt_cv_iconv_good=yes
16841 else
16842   echo "$as_me: program exited with status $ac_status" >&5
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 ( exit $ac_status )
16847 mutt_cv_iconv_good=no
16848 fi
16849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16850 fi
16851         LIBS="$mutt_save_LIBS"
16852 fi
16853 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
16854 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
16855 if test "$mutt_cv_iconv_good" = no; then
16856   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
16857 echo "$as_me: error: Try using libiconv instead" >&2;}
16858    { (exit 1); exit 1; }; }
16859 fi
16860
16861 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
16862 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
16863 if test "${mutt_cv_iconv_nontrans+set}" = set; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866   mutt_save_LIBS="$LIBS"
16867         LIBS="$LIBS $LIBICONV"
16868         if test "$cross_compiling" = yes; then
16869   mutt_cv_iconv_nontrans=no
16870 else
16871   cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h.  */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h.  */
16877
16878 #include <iconv.h>
16879 #include <string.h>
16880 int main()
16881 {
16882   iconv_t cd;
16883   const char *ib;
16884   char *ob;
16885   size_t ibl, obl;
16886   const char *s = "\304\211";
16887   char t[3];
16888   ib = s, ibl = 2, ob = t, obl = 3;
16889   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
16890           iconv(cd, &ib, &ibl, &ob, &obl));
16891 }
16892
16893 _ACEOF
16894 rm -f conftest$ac_exeext
16895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16896   (eval $ac_link) 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901   (eval $ac_try) 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; }; then
16905   mutt_cv_iconv_nontrans=no
16906 else
16907   echo "$as_me: program exited with status $ac_status" >&5
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911 ( exit $ac_status )
16912 mutt_cv_iconv_nontrans=yes
16913 fi
16914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16915 fi
16916         LIBS="$mutt_save_LIBS"
16917 fi
16918 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
16919 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
16920 if test "$mutt_cv_iconv_nontrans" = yes; then
16921   cat >>confdefs.h <<\_ACEOF
16922 #define ICONV_NONTRANS 1
16923 _ACEOF
16924
16925 else
16926   cat >>confdefs.h <<\_ACEOF
16927 #define ICONV_NONTRANS 0
16928 _ACEOF
16929
16930 fi
16931
16932 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
16933
16934 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
16935
16936 cat >>confdefs.h <<\_ACEOF
16937 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
16938 _ACEOF
16939
16940 else
16941
16942 for ac_func in bind_textdomain_codeset
16943 do
16944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16945 echo "$as_me:$LINENO: checking for $ac_func" >&5
16946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16947 if eval "test \"\${$as_ac_var+set}\" = set"; then
16948   echo $ECHO_N "(cached) $ECHO_C" >&6
16949 else
16950   cat >conftest.$ac_ext <<_ACEOF
16951 /* confdefs.h.  */
16952 _ACEOF
16953 cat confdefs.h >>conftest.$ac_ext
16954 cat >>conftest.$ac_ext <<_ACEOF
16955 /* end confdefs.h.  */
16956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16958 #define $ac_func innocuous_$ac_func
16959
16960 /* System header to define __stub macros and hopefully few prototypes,
16961     which can conflict with char $ac_func (); below.
16962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16963     <limits.h> exists even on freestanding compilers.  */
16964
16965 #ifdef __STDC__
16966 # include <limits.h>
16967 #else
16968 # include <assert.h>
16969 #endif
16970
16971 #undef $ac_func
16972
16973 /* Override any gcc2 internal prototype to avoid an error.  */
16974 #ifdef __cplusplus
16975 extern "C"
16976 {
16977 #endif
16978 /* We use char because int might match the return type of a gcc2
16979    builtin and then its argument prototype would still apply.  */
16980 char $ac_func ();
16981 /* The GNU C library defines this for functions which it implements
16982     to always fail with ENOSYS.  Some functions are actually named
16983     something starting with __ and the normal name is an alias.  */
16984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16985 choke me
16986 #else
16987 char (*f) () = $ac_func;
16988 #endif
16989 #ifdef __cplusplus
16990 }
16991 #endif
16992
16993 int
16994 main ()
16995 {
16996 return f != $ac_func;
16997   ;
16998   return 0;
16999 }
17000 _ACEOF
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17003   (eval $ac_link) 2>conftest.er1
17004   ac_status=$?
17005   grep -v '^ *+' conftest.er1 >conftest.err
17006   rm -f conftest.er1
17007   cat conftest.err >&5
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); } &&
17010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012   (eval $ac_try) 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }; } &&
17016          { ac_try='test -s conftest$ac_exeext'
17017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018   (eval $ac_try) 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); }; }; then
17022   eval "$as_ac_var=yes"
17023 else
17024   echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027 eval "$as_ac_var=no"
17028 fi
17029 rm -f conftest.err conftest.$ac_objext \
17030       conftest$ac_exeext conftest.$ac_ext
17031 fi
17032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17034 if test `eval echo '${'$as_ac_var'}'` = yes; then
17035   cat >>confdefs.h <<_ACEOF
17036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17037 _ACEOF
17038
17039 fi
17040 done
17041
17042 fi
17043
17044 fi # libiconv
17045
17046
17047
17048 for ac_header in wchar.h
17049 do
17050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17052   echo "$as_me:$LINENO: checking for $ac_header" >&5
17053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 fi
17057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17059 else
17060   # Is the header compilable?
17061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17063 cat >conftest.$ac_ext <<_ACEOF
17064 /* confdefs.h.  */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h.  */
17069 $ac_includes_default
17070 #include <$ac_header>
17071 _ACEOF
17072 rm -f conftest.$ac_objext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17074   (eval $ac_compile) 2>conftest.er1
17075   ac_status=$?
17076   grep -v '^ *+' conftest.er1 >conftest.err
17077   rm -f conftest.er1
17078   cat conftest.err >&5
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } &&
17081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083   (eval $ac_try) 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; } &&
17087          { ac_try='test -s conftest.$ac_objext'
17088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089   (eval $ac_try) 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); }; }; then
17093   ac_header_compiler=yes
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098 ac_header_compiler=no
17099 fi
17100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17102 echo "${ECHO_T}$ac_header_compiler" >&6
17103
17104 # Is the header present?
17105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17107 cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h.  */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h.  */
17113 #include <$ac_header>
17114 _ACEOF
17115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17117   ac_status=$?
17118   grep -v '^ *+' conftest.er1 >conftest.err
17119   rm -f conftest.er1
17120   cat conftest.err >&5
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } >/dev/null; then
17123   if test -s conftest.err; then
17124     ac_cpp_err=$ac_c_preproc_warn_flag
17125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17126   else
17127     ac_cpp_err=
17128   fi
17129 else
17130   ac_cpp_err=yes
17131 fi
17132 if test -z "$ac_cpp_err"; then
17133   ac_header_preproc=yes
17134 else
17135   echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138   ac_header_preproc=no
17139 fi
17140 rm -f conftest.err conftest.$ac_ext
17141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17142 echo "${ECHO_T}$ac_header_preproc" >&6
17143
17144 # So?  What about this header?
17145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17146   yes:no: )
17147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17151     ac_header_preproc=yes
17152     ;;
17153   no:yes:* )
17154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17166     (
17167       cat <<\_ASBOX
17168 ## ------------------------------------------ ##
17169 ## Report this to the AC_PACKAGE_NAME lists.  ##
17170 ## ------------------------------------------ ##
17171 _ASBOX
17172     ) |
17173       sed "s/^/$as_me: WARNING:     /" >&2
17174     ;;
17175 esac
17176 echo "$as_me:$LINENO: checking for $ac_header" >&5
17177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181   eval "$as_ac_Header=\$ac_header_preproc"
17182 fi
17183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17185
17186 fi
17187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17188   cat >>confdefs.h <<_ACEOF
17189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17190 _ACEOF
17191
17192 fi
17193
17194 done
17195
17196
17197 echo "$as_me:$LINENO: checking for wchar_t" >&5
17198 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
17199 if test "${mutt_cv_wchar_t+set}" = set; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202   cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208
17209 #include <stddef.h>
17210 #include <stdlib.h>
17211 #ifdef HAVE_WCHAR_H
17212 #include <wchar.h>
17213 #endif
17214
17215 int
17216 main ()
17217 {
17218  wchar_t wc; return 0;
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest.$ac_objext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225   (eval $ac_compile) 2>conftest.er1
17226   ac_status=$?
17227   grep -v '^ *+' conftest.er1 >conftest.err
17228   rm -f conftest.er1
17229   cat conftest.err >&5
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } &&
17232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234   (eval $ac_try) 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); }; } &&
17238          { ac_try='test -s conftest.$ac_objext'
17239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240   (eval $ac_try) 2>&5
17241   ac_status=$?
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); }; }; then
17244   mutt_cv_wchar_t=yes
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 mutt_cv_wchar_t=no
17250 fi
17251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17252 fi
17253 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
17254 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
17255
17256 if test "$mutt_cv_wchar_t" = no; then
17257
17258 cat >>confdefs.h <<\_ACEOF
17259 #define wchar_t int
17260 _ACEOF
17261
17262 fi
17263
17264 echo "$as_me:$LINENO: checking for wint_t" >&5
17265 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
17266 if test "${mutt_cv_wint_t+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269   cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275
17276 #include <stddef.h>
17277 #include <stdlib.h>
17278 #ifdef HAVE_WCHAR_H
17279 #include <wchar.h>
17280 #endif
17281
17282 int
17283 main ()
17284 {
17285  wint_t wc; return 0;
17286   ;
17287   return 0;
17288 }
17289 _ACEOF
17290 rm -f conftest.$ac_objext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17292   (eval $ac_compile) 2>conftest.er1
17293   ac_status=$?
17294   grep -v '^ *+' conftest.er1 >conftest.err
17295   rm -f conftest.er1
17296   cat conftest.err >&5
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); } &&
17299          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301   (eval $ac_try) 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; } &&
17305          { ac_try='test -s conftest.$ac_objext'
17306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307   (eval $ac_try) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; }; then
17311   mutt_cv_wint_t=yes
17312 else
17313   echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316 mutt_cv_wint_t=no
17317 fi
17318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17319 fi
17320 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
17321 echo "${ECHO_T}$mutt_cv_wint_t" >&6
17322
17323 if test "$mutt_cv_wint_t" = no; then
17324
17325 cat >>confdefs.h <<\_ACEOF
17326 #define wint_t int
17327 _ACEOF
17328
17329 fi
17330
17331
17332 for ac_header in wctype.h
17333 do
17334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17336   echo "$as_me:$LINENO: checking for $ac_header" >&5
17337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 fi
17341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17343 else
17344   # Is the header compilable?
17345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17347 cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h.  */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h.  */
17353 $ac_includes_default
17354 #include <$ac_header>
17355 _ACEOF
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358   (eval $ac_compile) 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } &&
17365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; } &&
17371          { ac_try='test -s conftest.$ac_objext'
17372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373   (eval $ac_try) 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); }; }; then
17377   ac_header_compiler=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 ac_header_compiler=no
17383 fi
17384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17386 echo "${ECHO_T}$ac_header_compiler" >&6
17387
17388 # Is the header present?
17389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397 #include <$ac_header>
17398 _ACEOF
17399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17401   ac_status=$?
17402   grep -v '^ *+' conftest.er1 >conftest.err
17403   rm -f conftest.er1
17404   cat conftest.err >&5
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); } >/dev/null; then
17407   if test -s conftest.err; then
17408     ac_cpp_err=$ac_c_preproc_warn_flag
17409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17410   else
17411     ac_cpp_err=
17412   fi
17413 else
17414   ac_cpp_err=yes
17415 fi
17416 if test -z "$ac_cpp_err"; then
17417   ac_header_preproc=yes
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422   ac_header_preproc=no
17423 fi
17424 rm -f conftest.err conftest.$ac_ext
17425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17426 echo "${ECHO_T}$ac_header_preproc" >&6
17427
17428 # So?  What about this header?
17429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17430   yes:no: )
17431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17435     ac_header_preproc=yes
17436     ;;
17437   no:yes:* )
17438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17450     (
17451       cat <<\_ASBOX
17452 ## ------------------------------------------ ##
17453 ## Report this to the AC_PACKAGE_NAME lists.  ##
17454 ## ------------------------------------------ ##
17455 _ASBOX
17456     ) |
17457       sed "s/^/$as_me: WARNING:     /" >&2
17458     ;;
17459 esac
17460 echo "$as_me:$LINENO: checking for $ac_header" >&5
17461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17463   echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465   eval "$as_ac_Header=\$ac_header_preproc"
17466 fi
17467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17469
17470 fi
17471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17472   cat >>confdefs.h <<_ACEOF
17473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17474 _ACEOF
17475
17476 fi
17477
17478 done
17479
17480
17481
17482
17483
17484 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
17485 do
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490   echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492   cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h.  */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h.  */
17498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17500 #define $ac_func innocuous_$ac_func
17501
17502 /* System header to define __stub macros and hopefully few prototypes,
17503     which can conflict with char $ac_func (); below.
17504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505     <limits.h> exists even on freestanding compilers.  */
17506
17507 #ifdef __STDC__
17508 # include <limits.h>
17509 #else
17510 # include <assert.h>
17511 #endif
17512
17513 #undef $ac_func
17514
17515 /* Override any gcc2 internal prototype to avoid an error.  */
17516 #ifdef __cplusplus
17517 extern "C"
17518 {
17519 #endif
17520 /* We use char because int might match the return type of a gcc2
17521    builtin and then its argument prototype would still apply.  */
17522 char $ac_func ();
17523 /* The GNU C library defines this for functions which it implements
17524     to always fail with ENOSYS.  Some functions are actually named
17525     something starting with __ and the normal name is an alias.  */
17526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17527 choke me
17528 #else
17529 char (*f) () = $ac_func;
17530 #endif
17531 #ifdef __cplusplus
17532 }
17533 #endif
17534
17535 int
17536 main ()
17537 {
17538 return f != $ac_func;
17539   ;
17540   return 0;
17541 }
17542 _ACEOF
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545   (eval $ac_link) 2>conftest.er1
17546   ac_status=$?
17547   grep -v '^ *+' conftest.er1 >conftest.err
17548   rm -f conftest.er1
17549   cat conftest.err >&5
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); } &&
17552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554   (eval $ac_try) 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; } &&
17558          { ac_try='test -s conftest$ac_exeext'
17559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560   (eval $ac_try) 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); }; }; then
17564   eval "$as_ac_var=yes"
17565 else
17566   echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17568
17569 eval "$as_ac_var=no"
17570 fi
17571 rm -f conftest.err conftest.$ac_objext \
17572       conftest$ac_exeext conftest.$ac_ext
17573 fi
17574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17576 if test `eval echo '${'$as_ac_var'}'` = yes; then
17577   cat >>confdefs.h <<_ACEOF
17578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17579 _ACEOF
17580
17581 fi
17582 done
17583
17584
17585
17586
17587
17588
17589
17590 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
17591 do
17592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17593 echo "$as_me:$LINENO: checking for $ac_func" >&5
17594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17595 if eval "test \"\${$as_ac_var+set}\" = set"; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598   cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17606 #define $ac_func innocuous_$ac_func
17607
17608 /* System header to define __stub macros and hopefully few prototypes,
17609     which can conflict with char $ac_func (); below.
17610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611     <limits.h> exists even on freestanding compilers.  */
17612
17613 #ifdef __STDC__
17614 # include <limits.h>
17615 #else
17616 # include <assert.h>
17617 #endif
17618
17619 #undef $ac_func
17620
17621 /* Override any gcc2 internal prototype to avoid an error.  */
17622 #ifdef __cplusplus
17623 extern "C"
17624 {
17625 #endif
17626 /* We use char because int might match the return type of a gcc2
17627    builtin and then its argument prototype would still apply.  */
17628 char $ac_func ();
17629 /* The GNU C library defines this for functions which it implements
17630     to always fail with ENOSYS.  Some functions are actually named
17631     something starting with __ and the normal name is an alias.  */
17632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17633 choke me
17634 #else
17635 char (*f) () = $ac_func;
17636 #endif
17637 #ifdef __cplusplus
17638 }
17639 #endif
17640
17641 int
17642 main ()
17643 {
17644 return f != $ac_func;
17645   ;
17646   return 0;
17647 }
17648 _ACEOF
17649 rm -f conftest.$ac_objext conftest$ac_exeext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651   (eval $ac_link) 2>conftest.er1
17652   ac_status=$?
17653   grep -v '^ *+' conftest.er1 >conftest.err
17654   rm -f conftest.er1
17655   cat conftest.err >&5
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); } &&
17658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; } &&
17664          { ac_try='test -s conftest$ac_exeext'
17665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666   (eval $ac_try) 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; }; then
17670   eval "$as_ac_var=yes"
17671 else
17672   echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675 eval "$as_ac_var=no"
17676 fi
17677 rm -f conftest.err conftest.$ac_objext \
17678       conftest$ac_exeext conftest.$ac_ext
17679 fi
17680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17682 if test `eval echo '${'$as_ac_var'}'` = yes; then
17683   cat >>confdefs.h <<_ACEOF
17684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17685 _ACEOF
17686
17687 fi
17688 done
17689
17690
17691
17692
17693 for ac_func in iswxdigit towupper towlower
17694 do
17695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17696 echo "$as_me:$LINENO: checking for $ac_func" >&5
17697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17698 if eval "test \"\${$as_ac_var+set}\" = set"; then
17699   echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701   cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h.  */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h.  */
17707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17709 #define $ac_func innocuous_$ac_func
17710
17711 /* System header to define __stub macros and hopefully few prototypes,
17712     which can conflict with char $ac_func (); below.
17713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17714     <limits.h> exists even on freestanding compilers.  */
17715
17716 #ifdef __STDC__
17717 # include <limits.h>
17718 #else
17719 # include <assert.h>
17720 #endif
17721
17722 #undef $ac_func
17723
17724 /* Override any gcc2 internal prototype to avoid an error.  */
17725 #ifdef __cplusplus
17726 extern "C"
17727 {
17728 #endif
17729 /* We use char because int might match the return type of a gcc2
17730    builtin and then its argument prototype would still apply.  */
17731 char $ac_func ();
17732 /* The GNU C library defines this for functions which it implements
17733     to always fail with ENOSYS.  Some functions are actually named
17734     something starting with __ and the normal name is an alias.  */
17735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17736 choke me
17737 #else
17738 char (*f) () = $ac_func;
17739 #endif
17740 #ifdef __cplusplus
17741 }
17742 #endif
17743
17744 int
17745 main ()
17746 {
17747 return f != $ac_func;
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754   (eval $ac_link) 2>conftest.er1
17755   ac_status=$?
17756   grep -v '^ *+' conftest.er1 >conftest.err
17757   rm -f conftest.er1
17758   cat conftest.err >&5
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); } &&
17761          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763   (eval $ac_try) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest$ac_exeext'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; }; then
17773   eval "$as_ac_var=yes"
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 eval "$as_ac_var=no"
17779 fi
17780 rm -f conftest.err conftest.$ac_objext \
17781       conftest$ac_exeext conftest.$ac_ext
17782 fi
17783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17785 if test `eval echo '${'$as_ac_var'}'` = yes; then
17786   cat >>confdefs.h <<_ACEOF
17787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17788 _ACEOF
17789
17790 fi
17791 done
17792
17793
17794 echo "$as_me:$LINENO: checking for mbstate_t" >&5
17795 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17796 if test "${mutt_cv_mbstate_t+set}" = set; then
17797   echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799   cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805
17806 #include <stddef.h>
17807 #include <stdlib.h>
17808 #ifdef HAVE_WCHAR_H
17809 #include <wchar.h>
17810 #endif
17811
17812 int
17813 main ()
17814 {
17815  mbstate_t s; return 0;
17816   ;
17817   return 0;
17818 }
17819 _ACEOF
17820 rm -f conftest.$ac_objext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822   (eval $ac_compile) 2>conftest.er1
17823   ac_status=$?
17824   grep -v '^ *+' conftest.er1 >conftest.err
17825   rm -f conftest.er1
17826   cat conftest.err >&5
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); } &&
17829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831   (eval $ac_try) 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; } &&
17835          { ac_try='test -s conftest.$ac_objext'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; }; then
17841   mutt_cv_mbstate_t=yes
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 mutt_cv_mbstate_t=no
17847 fi
17848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17849 fi
17850 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
17851 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
17852
17853 if test "$mutt_cv_mbstate_t" = no; then
17854
17855 cat >>confdefs.h <<\_ACEOF
17856 #define mbstate_t int
17857 _ACEOF
17858
17859 fi
17860
17861 wc_funcs=maybe
17862
17863 # Check whether --with-wc-funcs or --without-wc-funcs was given.
17864 if test "${with_wc_funcs+set}" = set; then
17865   withval="$with_wc_funcs"
17866   wc_funcs=$withval
17867 fi;
17868
17869 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
17870         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
17871 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
17872 if test "${mutt_cv_wc_funcs+set}" = set; then
17873   echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875   mutt_cv_wc_funcs=no
17876                 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h.  */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h.  */
17882
17883 #define _XOPEN_SOURCE 1
17884 #include <stddef.h>
17885 #include <stdlib.h>
17886 #ifdef HAVE_WCTYPE_H
17887 #include <wctype.h>
17888 #endif
17889 #ifdef HAVE_WCHAR_H
17890 #include <wchar.h>
17891 #endif
17892 int
17893 main ()
17894 {
17895 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
17896         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 rm -f conftest.$ac_objext conftest$ac_exeext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17903   (eval $ac_link) 2>conftest.er1
17904   ac_status=$?
17905   grep -v '^ *+' conftest.er1 >conftest.err
17906   rm -f conftest.er1
17907   cat conftest.err >&5
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); } &&
17910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912   (eval $ac_try) 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; } &&
17916          { ac_try='test -s conftest$ac_exeext'
17917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918   (eval $ac_try) 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); }; }; then
17922   mutt_cv_wc_funcs=yes
17923 else
17924   echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17926
17927 fi
17928 rm -f conftest.err conftest.$ac_objext \
17929       conftest$ac_exeext conftest.$ac_ext
17930 fi
17931 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
17932 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
17933         wc_funcs=$mutt_cv_wc_funcs
17934 fi
17935
17936 if test $wc_funcs = yes; then
17937
17938 cat >>confdefs.h <<\_ACEOF
17939 #define HAVE_WC_FUNCS 1
17940 _ACEOF
17941
17942 fi
17943
17944 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17945 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17946 if test "${mutt_cv_langinfo_codeset+set}" = set; then
17947   echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949   cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h.  */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h.  */
17955 #include <langinfo.h>
17956 int
17957 main ()
17958 {
17959 char* cs = nl_langinfo(CODESET);
17960   ;
17961   return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966   (eval $ac_link) 2>conftest.er1
17967   ac_status=$?
17968   grep -v '^ *+' conftest.er1 >conftest.err
17969   rm -f conftest.er1
17970   cat conftest.err >&5
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); } &&
17973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975   (eval $ac_try) 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; } &&
17979          { ac_try='test -s conftest$ac_exeext'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; }; then
17985   mutt_cv_langinfo_codeset=yes
17986 else
17987   echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 mutt_cv_langinfo_codeset=no
17991 fi
17992 rm -f conftest.err conftest.$ac_objext \
17993       conftest$ac_exeext conftest.$ac_ext
17994 fi
17995 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
17996 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
17997 if test $mutt_cv_langinfo_codeset = yes; then
17998
17999 cat >>confdefs.h <<\_ACEOF
18000 #define HAVE_LANGINFO_CODESET 1
18001 _ACEOF
18002
18003 fi
18004
18005 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
18006 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
18007 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
18008   echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010   cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016 #include <langinfo.h>
18017 int
18018 main ()
18019 {
18020 char* cs = nl_langinfo(YESEXPR);
18021   ;
18022   return 0;
18023 }
18024 _ACEOF
18025 rm -f conftest.$ac_objext conftest$ac_exeext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027   (eval $ac_link) 2>conftest.er1
18028   ac_status=$?
18029   grep -v '^ *+' conftest.er1 >conftest.err
18030   rm -f conftest.er1
18031   cat conftest.err >&5
18032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033   (exit $ac_status); } &&
18034          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036   (eval $ac_try) 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; } &&
18040          { ac_try='test -s conftest$ac_exeext'
18041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042   (eval $ac_try) 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); }; }; then
18046   mutt_cv_langinfo_yesexpr=yes
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 mutt_cv_langinfo_yesexpr=no
18052 fi
18053 rm -f conftest.err conftest.$ac_objext \
18054       conftest$ac_exeext conftest.$ac_ext
18055 fi
18056 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
18057 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
18058 if test $mutt_cv_langinfo_yesexpr = yes; then
18059
18060 cat >>confdefs.h <<\_ACEOF
18061 #define HAVE_LANGINFO_YESEXPR 1
18062 _ACEOF
18063
18064 fi
18065
18066
18067
18068 # Check whether --with-libesmtp or --without-libesmtp was given.
18069 if test "${with_libesmtp+set}" = set; then
18070   withval="$with_libesmtp"
18071    if test "$with_libesmtp" != "no"
18072       then
18073         mutt_libesmtp_check_path="$PATH"
18074
18075         if test "$with_libesmtp" != "yes"
18076         then
18077           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
18078         fi
18079
18080                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
18081 set dummy libesmtp-config; ac_word=$2
18082 echo "$as_me:$LINENO: checking for $ac_word" >&5
18083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18084 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
18085   echo $ECHO_N "(cached) $ECHO_C" >&6
18086 else
18087   case $mutt_libesmtp_config_path in
18088   [\\/]* | ?:[\\/]*)
18089   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
18090   ;;
18091   *)
18092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18093 for as_dir in $mutt_libesmtp_check_path
18094 do
18095   IFS=$as_save_IFS
18096   test -z "$as_dir" && as_dir=.
18097   for ac_exec_ext in '' $ac_executable_extensions; do
18098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18099     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
18100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18101     break 2
18102   fi
18103 done
18104 done
18105
18106   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
18107   ;;
18108 esac
18109 fi
18110 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
18111
18112 if test -n "$mutt_libesmtp_config_path"; then
18113   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
18114 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
18115 else
18116   echo "$as_me:$LINENO: result: no" >&5
18117 echo "${ECHO_T}no" >&6
18118 fi
18119
18120
18121         if test "$mutt_libesmtp_config_path" = "no"
18122         then
18123           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
18124 echo "$as_me: error: libesmtp-config binary not found." >&2;}
18125    { (exit 1); exit 1; }; }
18126         fi
18127
18128                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
18129         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
18130
18131                 temp_CFLAGS="$CFLAGS"
18132         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
18133         if test "${ac_cv_header_libesmtp_h+set}" = set; then
18134   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
18135 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
18136 if test "${ac_cv_header_libesmtp_h+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 fi
18139 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
18140 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
18141 else
18142   # Is the header compilable?
18143 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
18144 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18146 /* confdefs.h.  */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h.  */
18151 $ac_includes_default
18152 #include <libesmtp.h>
18153 _ACEOF
18154 rm -f conftest.$ac_objext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156   (eval $ac_compile) 2>conftest.er1
18157   ac_status=$?
18158   grep -v '^ *+' conftest.er1 >conftest.err
18159   rm -f conftest.er1
18160   cat conftest.err >&5
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); } &&
18163          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165   (eval $ac_try) 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; } &&
18169          { ac_try='test -s conftest.$ac_objext'
18170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171   (eval $ac_try) 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   ac_header_compiler=yes
18176 else
18177   echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180 ac_header_compiler=no
18181 fi
18182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18184 echo "${ECHO_T}$ac_header_compiler" >&6
18185
18186 # Is the header present?
18187 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
18188 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
18189 cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h.  */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h.  */
18195 #include <libesmtp.h>
18196 _ACEOF
18197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18199   ac_status=$?
18200   grep -v '^ *+' conftest.er1 >conftest.err
18201   rm -f conftest.er1
18202   cat conftest.err >&5
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); } >/dev/null; then
18205   if test -s conftest.err; then
18206     ac_cpp_err=$ac_c_preproc_warn_flag
18207     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18208   else
18209     ac_cpp_err=
18210   fi
18211 else
18212   ac_cpp_err=yes
18213 fi
18214 if test -z "$ac_cpp_err"; then
18215   ac_header_preproc=yes
18216 else
18217   echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220   ac_header_preproc=no
18221 fi
18222 rm -f conftest.err conftest.$ac_ext
18223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18224 echo "${ECHO_T}$ac_header_preproc" >&6
18225
18226 # So?  What about this header?
18227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18228   yes:no: )
18229     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
18230 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18231     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the compiler's result" >&5
18232 echo "$as_me: WARNING: libesmtp.h: proceeding with the compiler's result" >&2;}
18233     ac_header_preproc=yes
18234     ;;
18235   no:yes:* )
18236     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
18237 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
18238     { echo "$as_me:$LINENO: WARNING: libesmtp.h:     check for missing prerequisite headers?" >&5
18239 echo "$as_me: WARNING: libesmtp.h:     check for missing prerequisite headers?" >&2;}
18240     { echo "$as_me:$LINENO: WARNING: libesmtp.h: see the Autoconf documentation" >&5
18241 echo "$as_me: WARNING: libesmtp.h: see the Autoconf documentation" >&2;}
18242     { echo "$as_me:$LINENO: WARNING: libesmtp.h:     section \"Present But Cannot Be Compiled\"" >&5
18243 echo "$as_me: WARNING: libesmtp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18244     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
18245 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
18246     { echo "$as_me:$LINENO: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&5
18247 echo "$as_me: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&2;}
18248     (
18249       cat <<\_ASBOX
18250 ## ------------------------------------------ ##
18251 ## Report this to the AC_PACKAGE_NAME lists.  ##
18252 ## ------------------------------------------ ##
18253 _ASBOX
18254     ) |
18255       sed "s/^/$as_me: WARNING:     /" >&2
18256     ;;
18257 esac
18258 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
18259 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
18260 if test "${ac_cv_header_libesmtp_h+set}" = set; then
18261   echo $ECHO_N "(cached) $ECHO_C" >&6
18262 else
18263   ac_cv_header_libesmtp_h=$ac_header_preproc
18264 fi
18265 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
18266 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
18267
18268 fi
18269 if test $ac_cv_header_libesmtp_h = yes; then
18270   :
18271 else
18272   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
18273 echo "$as_me: error: Could not find libesmtp.h" >&2;}
18274    { (exit 1); exit 1; }; }
18275 fi
18276
18277
18278         CFLAGS="$temp_CFLAGS"
18279
18280                 temp_CFLAGS="$CFLAGS"
18281         temp_LIBS="$LIBS"
18282         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
18283         LIBS="$LIBS $mutt_libesmtp_libs"
18284
18285 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
18286 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
18287 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
18288   echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290   ac_check_lib_save_LIBS=$LIBS
18291 LIBS="-lesmtp  $LIBS"
18292 cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h.  */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h.  */
18298
18299 /* Override any gcc2 internal prototype to avoid an error.  */
18300 #ifdef __cplusplus
18301 extern "C"
18302 #endif
18303 /* We use char because int might match the return type of a gcc2
18304    builtin and then its argument prototype would still apply.  */
18305 char smtp_create_session ();
18306 int
18307 main ()
18308 {
18309 smtp_create_session ();
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316   (eval $ac_link) 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } &&
18323          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325   (eval $ac_try) 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }; } &&
18329          { ac_try='test -s conftest$ac_exeext'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; }; then
18335   ac_cv_lib_esmtp_smtp_create_session=yes
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340 ac_cv_lib_esmtp_smtp_create_session=no
18341 fi
18342 rm -f conftest.err conftest.$ac_objext \
18343       conftest$ac_exeext conftest.$ac_ext
18344 LIBS=$ac_check_lib_save_LIBS
18345 fi
18346 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
18347 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
18348 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
18349   cat >>confdefs.h <<_ACEOF
18350 #define HAVE_LIBESMTP 1
18351 _ACEOF
18352
18353   LIBS="-lesmtp $LIBS"
18354
18355 else
18356   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
18357 echo "$as_me: error: Could not find libesmtp" >&2;}
18358    { (exit 1); exit 1; }; }
18359 fi
18360
18361         CFLAGS="$temp_CFLAGS"
18362         LIBS="$temp_LIBS"
18363
18364                         use_libesmtp=yes
18365       fi
18366
18367
18368 fi;
18369
18370 if test x$use_libesmtp = xyes; then
18371     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
18372     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
18373     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
18374
18375
18376 cat >>confdefs.h <<\_ACEOF
18377 #define USE_LIBESMTP 1
18378 _ACEOF
18379
18380 fi
18381
18382                                                                                                     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"
18383 cat >confcache <<\_ACEOF
18384 # This file is a shell script that caches the results of configure
18385 # tests run on this system so they can be shared between configure
18386 # scripts and configure runs, see configure's option --config-cache.
18387 # It is not useful on other systems.  If it contains results you don't
18388 # want to keep, you may remove or edit it.
18389 #
18390 # config.status only pays attention to the cache file if you give it
18391 # the --recheck option to rerun configure.
18392 #
18393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18395 # following values.
18396
18397 _ACEOF
18398
18399 # The following way of writing the cache mishandles newlines in values,
18400 # but we know of no workaround that is simple, portable, and efficient.
18401 # So, don't put newlines in cache variables' values.
18402 # Ultrix sh set writes to stderr and can't be redirected directly,
18403 # and sets the high bit in the cache file unless we assign to the vars.
18404 {
18405   (set) 2>&1 |
18406     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18407     *ac_space=\ *)
18408       # `set' does not quote correctly, so add quotes (double-quote
18409       # substitution turns \\\\ into \\, and sed turns \\ into \).
18410       sed -n \
18411         "s/'/'\\\\''/g;
18412           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18413       ;;
18414     *)
18415       # `set' quotes correctly as required by POSIX, so do not add quotes.
18416       sed -n \
18417         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18418       ;;
18419     esac;
18420 } |
18421   sed '
18422      t clear
18423      : clear
18424      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18425      t end
18426      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18427      : end' >>confcache
18428 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18429   if test -w $cache_file; then
18430     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18431     cat confcache >$cache_file
18432   else
18433     echo "not updating unwritable cache $cache_file"
18434   fi
18435 fi
18436 rm -f confcache
18437
18438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18439 # Let make expand exec_prefix.
18440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18441
18442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18444 # trailing colons and then remove the whole line if VPATH becomes empty
18445 # (actually we leave an empty line to preserve line numbers).
18446 if test "x$srcdir" = x.; then
18447   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18448 s/:*\$(srcdir):*/:/;
18449 s/:*\${srcdir}:*/:/;
18450 s/:*@srcdir@:*/:/;
18451 s/^\([^=]*=[     ]*\):*/\1/;
18452 s/:*$//;
18453 s/^[^=]*=[       ]*$//;
18454 }'
18455 fi
18456
18457 DEFS=-DHAVE_CONFIG_H
18458
18459 ac_libobjs=
18460 ac_ltlibobjs=
18461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18462   # 1. Remove the extension, and $U if already installed.
18463   ac_i=`echo "$ac_i" |
18464          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18465   # 2. Add them.
18466   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18467   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18468 done
18469 LIBOBJS=$ac_libobjs
18470
18471 LTLIBOBJS=$ac_ltlibobjs
18472
18473
18474 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18475   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18476 Usually this means the macro was only invoked conditionally." >&5
18477 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18478 Usually this means the macro was only invoked conditionally." >&2;}
18479    { (exit 1); exit 1; }; }
18480 fi
18481 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18482   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18483 Usually this means the macro was only invoked conditionally." >&5
18484 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18485 Usually this means the macro was only invoked conditionally." >&2;}
18486    { (exit 1); exit 1; }; }
18487 fi
18488 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
18489   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
18490 Usually this means the macro was only invoked conditionally." >&5
18491 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
18492 Usually this means the macro was only invoked conditionally." >&2;}
18493    { (exit 1); exit 1; }; }
18494 fi
18495 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
18496   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
18497 Usually this means the macro was only invoked conditionally." >&5
18498 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
18499 Usually this means the macro was only invoked conditionally." >&2;}
18500    { (exit 1); exit 1; }; }
18501 fi
18502 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
18503   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
18504 Usually this means the macro was only invoked conditionally." >&5
18505 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
18506 Usually this means the macro was only invoked conditionally." >&2;}
18507    { (exit 1); exit 1; }; }
18508 fi
18509 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
18510   { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
18511 Usually this means the macro was only invoked conditionally." >&5
18512 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
18513 Usually this means the macro was only invoked conditionally." >&2;}
18514    { (exit 1); exit 1; }; }
18515 fi
18516 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
18517   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
18518 Usually this means the macro was only invoked conditionally." >&5
18519 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
18520 Usually this means the macro was only invoked conditionally." >&2;}
18521    { (exit 1); exit 1; }; }
18522 fi
18523 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
18524   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
18525 Usually this means the macro was only invoked conditionally." >&5
18526 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
18527 Usually this means the macro was only invoked conditionally." >&2;}
18528    { (exit 1); exit 1; }; }
18529 fi
18530
18531 : ${CONFIG_STATUS=./config.status}
18532 ac_clean_files_save=$ac_clean_files
18533 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18536 cat >$CONFIG_STATUS <<_ACEOF
18537 #! $SHELL
18538 # Generated by $as_me.
18539 # Run this file to recreate the current configuration.
18540 # Compiler output produced by configure, useful for debugging
18541 # configure, is in config.log if it exists.
18542
18543 debug=false
18544 ac_cs_recheck=false
18545 ac_cs_silent=false
18546 SHELL=\${CONFIG_SHELL-$SHELL}
18547 _ACEOF
18548
18549 cat >>$CONFIG_STATUS <<\_ACEOF
18550 ## --------------------- ##
18551 ## M4sh Initialization.  ##
18552 ## --------------------- ##
18553
18554 # Be Bourne compatible
18555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18556   emulate sh
18557   NULLCMD=:
18558   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18559   # is contrary to our usage.  Disable this feature.
18560   alias -g '${1+"$@"}'='"$@"'
18561 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18562   set -o posix
18563 fi
18564 DUALCASE=1; export DUALCASE # for MKS sh
18565
18566 # Support unset when possible.
18567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18568   as_unset=unset
18569 else
18570   as_unset=false
18571 fi
18572
18573
18574 # Work around bugs in pre-3.0 UWIN ksh.
18575 $as_unset ENV MAIL MAILPATH
18576 PS1='$ '
18577 PS2='> '
18578 PS4='+ '
18579
18580 # NLS nuisances.
18581 for as_var in \
18582   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18583   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18584   LC_TELEPHONE LC_TIME
18585 do
18586   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18587     eval $as_var=C; export $as_var
18588   else
18589     $as_unset $as_var
18590   fi
18591 done
18592
18593 # Required to use basename.
18594 if expr a : '\(a\)' >/dev/null 2>&1; then
18595   as_expr=expr
18596 else
18597   as_expr=false
18598 fi
18599
18600 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18601   as_basename=basename
18602 else
18603   as_basename=false
18604 fi
18605
18606
18607 # Name of the executable.
18608 as_me=`$as_basename "$0" ||
18609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18610          X"$0" : 'X\(//\)$' \| \
18611          X"$0" : 'X\(/\)$' \| \
18612          .     : '\(.\)' 2>/dev/null ||
18613 echo X/"$0" |
18614     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18615           /^X\/\(\/\/\)$/{ s//\1/; q; }
18616           /^X\/\(\/\).*/{ s//\1/; q; }
18617           s/.*/./; q'`
18618
18619
18620 # PATH needs CR, and LINENO needs CR and PATH.
18621 # Avoid depending upon Character Ranges.
18622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18625 as_cr_digits='0123456789'
18626 as_cr_alnum=$as_cr_Letters$as_cr_digits
18627
18628 # The user is always right.
18629 if test "${PATH_SEPARATOR+set}" != set; then
18630   echo "#! /bin/sh" >conf$$.sh
18631   echo  "exit 0"   >>conf$$.sh
18632   chmod +x conf$$.sh
18633   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18634     PATH_SEPARATOR=';'
18635   else
18636     PATH_SEPARATOR=:
18637   fi
18638   rm -f conf$$.sh
18639 fi
18640
18641
18642   as_lineno_1=$LINENO
18643   as_lineno_2=$LINENO
18644   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18645   test "x$as_lineno_1" != "x$as_lineno_2" &&
18646   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18647   # Find who we are.  Look in the path if we contain no path at all
18648   # relative or not.
18649   case $0 in
18650     *[\\/]* ) as_myself=$0 ;;
18651     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18652 for as_dir in $PATH
18653 do
18654   IFS=$as_save_IFS
18655   test -z "$as_dir" && as_dir=.
18656   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18657 done
18658
18659        ;;
18660   esac
18661   # We did not find ourselves, most probably we were run as `sh COMMAND'
18662   # in which case we are not to be found in the path.
18663   if test "x$as_myself" = x; then
18664     as_myself=$0
18665   fi
18666   if test ! -f "$as_myself"; then
18667     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18668 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18669    { (exit 1); exit 1; }; }
18670   fi
18671   case $CONFIG_SHELL in
18672   '')
18673     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18674 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18675 do
18676   IFS=$as_save_IFS
18677   test -z "$as_dir" && as_dir=.
18678   for as_base in sh bash ksh sh5; do
18679          case $as_dir in
18680          /*)
18681            if ("$as_dir/$as_base" -c '
18682   as_lineno_1=$LINENO
18683   as_lineno_2=$LINENO
18684   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18685   test "x$as_lineno_1" != "x$as_lineno_2" &&
18686   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18687              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18688              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18689              CONFIG_SHELL=$as_dir/$as_base
18690              export CONFIG_SHELL
18691              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18692            fi;;
18693          esac
18694        done
18695 done
18696 ;;
18697   esac
18698
18699   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18700   # uniformly replaced by the line number.  The first 'sed' inserts a
18701   # line-number line before each line; the second 'sed' does the real
18702   # work.  The second script uses 'N' to pair each line-number line
18703   # with the numbered line, and appends trailing '-' during
18704   # substitution so that $LINENO is not a special case at line end.
18705   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18706   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18707   sed '=' <$as_myself |
18708     sed '
18709       N
18710       s,$,-,
18711       : loop
18712       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18713       t loop
18714       s,-$,,
18715       s,^['$as_cr_digits']*\n,,
18716     ' >$as_me.lineno &&
18717   chmod +x $as_me.lineno ||
18718     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18719 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18720    { (exit 1); exit 1; }; }
18721
18722   # Don't try to exec as it changes $[0], causing all sort of problems
18723   # (the dirname of $[0] is not the place where we might find the
18724   # original and so on.  Autoconf is especially sensible to this).
18725   . ./$as_me.lineno
18726   # Exit status is that of the last command.
18727   exit
18728 }
18729
18730
18731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18732   *c*,-n*) ECHO_N= ECHO_C='
18733 ' ECHO_T='      ' ;;
18734   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18735   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18736 esac
18737
18738 if expr a : '\(a\)' >/dev/null 2>&1; then
18739   as_expr=expr
18740 else
18741   as_expr=false
18742 fi
18743
18744 rm -f conf$$ conf$$.exe conf$$.file
18745 echo >conf$$.file
18746 if ln -s conf$$.file conf$$ 2>/dev/null; then
18747   # We could just check for DJGPP; but this test a) works b) is more generic
18748   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18749   if test -f conf$$.exe; then
18750     # Don't use ln at all; we don't have any links
18751     as_ln_s='cp -p'
18752   else
18753     as_ln_s='ln -s'
18754   fi
18755 elif ln conf$$.file conf$$ 2>/dev/null; then
18756   as_ln_s=ln
18757 else
18758   as_ln_s='cp -p'
18759 fi
18760 rm -f conf$$ conf$$.exe conf$$.file
18761
18762 if mkdir -p . 2>/dev/null; then
18763   as_mkdir_p=:
18764 else
18765   test -d ./-p && rmdir ./-p
18766   as_mkdir_p=false
18767 fi
18768
18769 as_executable_p="test -f"
18770
18771 # Sed expression to map a string onto a valid CPP name.
18772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18773
18774 # Sed expression to map a string onto a valid variable name.
18775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18776
18777
18778 # IFS
18779 # We need space, tab and new line, in precisely that order.
18780 as_nl='
18781 '
18782 IFS="   $as_nl"
18783
18784 # CDPATH.
18785 $as_unset CDPATH
18786
18787 exec 6>&1
18788
18789 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18790 # report actual input values of CONFIG_FILES etc. instead of their
18791 # values after options handling.  Logging --version etc. is OK.
18792 exec 5>>config.log
18793 {
18794   echo
18795   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18796 ## Running $as_me. ##
18797 _ASBOX
18798 } >&5
18799 cat >&5 <<_CSEOF
18800
18801 This file was extended by $as_me, which was
18802 generated by GNU Autoconf 2.59.  Invocation command line was
18803
18804   CONFIG_FILES    = $CONFIG_FILES
18805   CONFIG_HEADERS  = $CONFIG_HEADERS
18806   CONFIG_LINKS    = $CONFIG_LINKS
18807   CONFIG_COMMANDS = $CONFIG_COMMANDS
18808   $ $0 $@
18809
18810 _CSEOF
18811 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18812 echo >&5
18813 _ACEOF
18814
18815 # Files that config.status was made for.
18816 if test -n "$ac_config_files"; then
18817   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18818 fi
18819
18820 if test -n "$ac_config_headers"; then
18821   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18822 fi
18823
18824 if test -n "$ac_config_links"; then
18825   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18826 fi
18827
18828 if test -n "$ac_config_commands"; then
18829   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18830 fi
18831
18832 cat >>$CONFIG_STATUS <<\_ACEOF
18833
18834 ac_cs_usage="\
18835 \`$as_me' instantiates files from templates according to the
18836 current configuration.
18837
18838 Usage: $0 [OPTIONS] [FILE]...
18839
18840   -h, --help       print this help, then exit
18841   -V, --version    print version number, then exit
18842   -q, --quiet      do not print progress messages
18843   -d, --debug      don't remove temporary files
18844       --recheck    update $as_me by reconfiguring in the same conditions
18845   --file=FILE[:TEMPLATE]
18846                    instantiate the configuration file FILE
18847   --header=FILE[:TEMPLATE]
18848                    instantiate the configuration header FILE
18849
18850 Configuration files:
18851 $config_files
18852
18853 Configuration headers:
18854 $config_headers
18855
18856 Configuration commands:
18857 $config_commands
18858
18859 Report bugs to <bug-autoconf@gnu.org>."
18860 _ACEOF
18861
18862 cat >>$CONFIG_STATUS <<_ACEOF
18863 ac_cs_version="\\
18864 config.status
18865 configured by $0, generated by GNU Autoconf 2.59,
18866   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18867
18868 Copyright (C) 2003 Free Software Foundation, Inc.
18869 This config.status script is free software; the Free Software Foundation
18870 gives unlimited permission to copy, distribute and modify it."
18871 srcdir=$srcdir
18872 INSTALL="$INSTALL"
18873 _ACEOF
18874
18875 cat >>$CONFIG_STATUS <<\_ACEOF
18876 # If no file are specified by the user, then we need to provide default
18877 # value.  By we need to know if files were specified by the user.
18878 ac_need_defaults=:
18879 while test $# != 0
18880 do
18881   case $1 in
18882   --*=*)
18883     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18884     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18885     ac_shift=:
18886     ;;
18887   -*)
18888     ac_option=$1
18889     ac_optarg=$2
18890     ac_shift=shift
18891     ;;
18892   *) # This is not an option, so the user has probably given explicit
18893      # arguments.
18894      ac_option=$1
18895      ac_need_defaults=false;;
18896   esac
18897
18898   case $ac_option in
18899   # Handling of the options.
18900 _ACEOF
18901 cat >>$CONFIG_STATUS <<\_ACEOF
18902   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18903     ac_cs_recheck=: ;;
18904   --version | --vers* | -V )
18905     echo "$ac_cs_version"; exit 0 ;;
18906   --he | --h)
18907     # Conflict between --help and --header
18908     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18909 Try \`$0 --help' for more information." >&5
18910 echo "$as_me: error: ambiguous option: $1
18911 Try \`$0 --help' for more information." >&2;}
18912    { (exit 1); exit 1; }; };;
18913   --help | --hel | -h )
18914     echo "$ac_cs_usage"; exit 0 ;;
18915   --debug | --d* | -d )
18916     debug=: ;;
18917   --file | --fil | --fi | --f )
18918     $ac_shift
18919     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18920     ac_need_defaults=false;;
18921   --header | --heade | --head | --hea )
18922     $ac_shift
18923     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18924     ac_need_defaults=false;;
18925   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18926   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18927     ac_cs_silent=: ;;
18928
18929   # This is an error.
18930   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18931 Try \`$0 --help' for more information." >&5
18932 echo "$as_me: error: unrecognized option: $1
18933 Try \`$0 --help' for more information." >&2;}
18934    { (exit 1); exit 1; }; } ;;
18935
18936   *) ac_config_targets="$ac_config_targets $1" ;;
18937
18938   esac
18939   shift
18940 done
18941
18942 ac_configure_extra_args=
18943
18944 if $ac_cs_silent; then
18945   exec 6>/dev/null
18946   ac_configure_extra_args="$ac_configure_extra_args --silent"
18947 fi
18948
18949 _ACEOF
18950 cat >>$CONFIG_STATUS <<_ACEOF
18951 if \$ac_cs_recheck; then
18952   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18953   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18954 fi
18955
18956 _ACEOF
18957
18958 cat >>$CONFIG_STATUS <<_ACEOF
18959 #
18960 # INIT-COMMANDS section.
18961 #
18962
18963 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18964
18965
18966 _ACEOF
18967
18968
18969
18970 cat >>$CONFIG_STATUS <<\_ACEOF
18971 for ac_config_target in $ac_config_targets
18972 do
18973   case "$ac_config_target" in
18974   # Handling of arguments.
18975   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18976   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18977   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18978   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18979   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18980   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18981   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
18982   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
18983   "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
18984   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
18985   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18986   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18987   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18988   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18989 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18990    { (exit 1); exit 1; }; };;
18991   esac
18992 done
18993
18994 # If the user did not use the arguments to specify the items to instantiate,
18995 # then the envvar interface is used.  Set only those that are not.
18996 # We use the long form for the default assignment because of an extremely
18997 # bizarre bug on SunOS 4.1.3.
18998 if $ac_need_defaults; then
18999   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19000   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19001   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19002 fi
19003
19004 # Have a temporary directory for convenience.  Make it in the build tree
19005 # simply because there is no reason to put it here, and in addition,
19006 # creating and moving files from /tmp can sometimes cause problems.
19007 # Create a temporary directory, and hook for its removal unless debugging.
19008 $debug ||
19009 {
19010   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19011   trap '{ (exit 1); exit 1; }' 1 2 13 15
19012 }
19013
19014 # Create a (secure) tmp directory for tmp files.
19015
19016 {
19017   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19018   test -n "$tmp" && test -d "$tmp"
19019 }  ||
19020 {
19021   tmp=./confstat$$-$RANDOM
19022   (umask 077 && mkdir $tmp)
19023 } ||
19024 {
19025    echo "$me: cannot create a temporary directory in ." >&2
19026    { (exit 1); exit 1; }
19027 }
19028
19029 _ACEOF
19030
19031 cat >>$CONFIG_STATUS <<_ACEOF
19032
19033 #
19034 # CONFIG_FILES section.
19035 #
19036
19037 # No need to generate the scripts if there are no CONFIG_FILES.
19038 # This happens for instance when ./config.status config.h
19039 if test -n "\$CONFIG_FILES"; then
19040   # Protect against being on the right side of a sed subst in config.status.
19041   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19042    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19043 s,@SHELL@,$SHELL,;t t
19044 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19045 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19046 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19047 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19048 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19049 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19050 s,@exec_prefix@,$exec_prefix,;t t
19051 s,@prefix@,$prefix,;t t
19052 s,@program_transform_name@,$program_transform_name,;t t
19053 s,@bindir@,$bindir,;t t
19054 s,@sbindir@,$sbindir,;t t
19055 s,@libexecdir@,$libexecdir,;t t
19056 s,@datadir@,$datadir,;t t
19057 s,@sysconfdir@,$sysconfdir,;t t
19058 s,@sharedstatedir@,$sharedstatedir,;t t
19059 s,@localstatedir@,$localstatedir,;t t
19060 s,@libdir@,$libdir,;t t
19061 s,@includedir@,$includedir,;t t
19062 s,@oldincludedir@,$oldincludedir,;t t
19063 s,@infodir@,$infodir,;t t
19064 s,@mandir@,$mandir,;t t
19065 s,@build_alias@,$build_alias,;t t
19066 s,@host_alias@,$host_alias,;t t
19067 s,@target_alias@,$target_alias,;t t
19068 s,@DEFS@,$DEFS,;t t
19069 s,@ECHO_C@,$ECHO_C,;t t
19070 s,@ECHO_N@,$ECHO_N,;t t
19071 s,@ECHO_T@,$ECHO_T,;t t
19072 s,@LIBS@,$LIBS,;t t
19073 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19074 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19075 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19076 s,@CYGPATH_W@,$CYGPATH_W,;t t
19077 s,@PACKAGE@,$PACKAGE,;t t
19078 s,@VERSION@,$VERSION,;t t
19079 s,@ACLOCAL@,$ACLOCAL,;t t
19080 s,@AUTOCONF@,$AUTOCONF,;t t
19081 s,@AUTOMAKE@,$AUTOMAKE,;t t
19082 s,@AUTOHEADER@,$AUTOHEADER,;t t
19083 s,@MAKEINFO@,$MAKEINFO,;t t
19084 s,@AMTAR@,$AMTAR,;t t
19085 s,@install_sh@,$install_sh,;t t
19086 s,@STRIP@,$STRIP,;t t
19087 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19088 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19089 s,@AWK@,$AWK,;t t
19090 s,@SET_MAKE@,$SET_MAKE,;t t
19091 s,@am__leading_dot@,$am__leading_dot,;t t
19092 s,@build@,$build,;t t
19093 s,@build_cpu@,$build_cpu,;t t
19094 s,@build_vendor@,$build_vendor,;t t
19095 s,@build_os@,$build_os,;t t
19096 s,@host@,$host,;t t
19097 s,@host_cpu@,$host_cpu,;t t
19098 s,@host_vendor@,$host_vendor,;t t
19099 s,@host_os@,$host_os,;t t
19100 s,@CC@,$CC,;t t
19101 s,@CFLAGS@,$CFLAGS,;t t
19102 s,@LDFLAGS@,$LDFLAGS,;t t
19103 s,@CPPFLAGS@,$CPPFLAGS,;t t
19104 s,@ac_ct_CC@,$ac_ct_CC,;t t
19105 s,@EXEEXT@,$EXEEXT,;t t
19106 s,@OBJEXT@,$OBJEXT,;t t
19107 s,@DEPDIR@,$DEPDIR,;t t
19108 s,@am__include@,$am__include,;t t
19109 s,@am__quote@,$am__quote,;t t
19110 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19111 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19112 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19113 s,@CCDEPMODE@,$CCDEPMODE,;t t
19114 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19115 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19116 s,@CPP@,$CPP,;t t
19117 s,@EGREP@,$EGREP,;t t
19118 s,@U@,$U,;t t
19119 s,@ANSI2KNR@,$ANSI2KNR,;t t
19120 s,@RANLIB@,$RANLIB,;t t
19121 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19122 s,@AR@,$AR,;t t
19123 s,@ac_ct_AR@,$ac_ct_AR,;t t
19124 s,@DBX@,$DBX,;t t
19125 s,@GDB@,$GDB,;t t
19126 s,@SDB@,$SDB,;t t
19127 s,@DEBUGGER@,$DEBUGGER,;t t
19128 s,@SENDMAIL@,$SENDMAIL,;t t
19129 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
19130 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
19131 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
19132 s,@OPS@,$OPS,;t t
19133 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
19134 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
19135 s,@SUBVERSION@,$SUBVERSION,;t t
19136 s,@ISPELL@,$ISPELL,;t t
19137 s,@LIBOBJS@,$LIBOBJS,;t t
19138 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
19139 s,@docdir@,$docdir,;t t
19140 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
19141 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
19142 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
19143 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
19144 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
19145 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
19146 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
19147 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
19148 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
19149 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
19150 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
19151 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
19152 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
19153 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
19154 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
19155 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
19156 s,@MUTTLIBS@,$MUTTLIBS,;t t
19157 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
19158 s,@LIBIMAP@,$LIBIMAP,;t t
19159 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
19160 s,@ALLOCA@,$ALLOCA,;t t
19161 s,@GLIBC21@,$GLIBC21,;t t
19162 s,@LIBICONV@,$LIBICONV,;t t
19163 s,@USE_NLS@,$USE_NLS,;t t
19164 s,@MSGFMT@,$MSGFMT,;t t
19165 s,@GMSGFMT@,$GMSGFMT,;t t
19166 s,@XGETTEXT@,$XGETTEXT,;t t
19167 s,@INTLBISON@,$INTLBISON,;t t
19168 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19169 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19170 s,@CATALOGS@,$CATALOGS,;t t
19171 s,@CATOBJEXT@,$CATOBJEXT,;t t
19172 s,@GMOFILES@,$GMOFILES,;t t
19173 s,@INTLLIBS@,$INTLLIBS,;t t
19174 s,@INTLOBJS@,$INTLOBJS,;t t
19175 s,@POFILES@,$POFILES,;t t
19176 s,@POSUB@,$POSUB,;t t
19177 s,@DATADIRNAME@,$DATADIRNAME,;t t
19178 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19179 s,@GENCAT@,$GENCAT,;t t
19180 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19181 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19182 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
19183 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19184 CEOF
19185
19186 _ACEOF
19187
19188   cat >>$CONFIG_STATUS <<\_ACEOF
19189   # Split the substitutions into bite-sized pieces for seds with
19190   # small command number limits, like on Digital OSF/1 and HP-UX.
19191   ac_max_sed_lines=48
19192   ac_sed_frag=1 # Number of current file.
19193   ac_beg=1 # First line for current file.
19194   ac_end=$ac_max_sed_lines # Line after last line for current file.
19195   ac_more_lines=:
19196   ac_sed_cmds=
19197   while $ac_more_lines; do
19198     if test $ac_beg -gt 1; then
19199       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19200     else
19201       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19202     fi
19203     if test ! -s $tmp/subs.frag; then
19204       ac_more_lines=false
19205     else
19206       # The purpose of the label and of the branching condition is to
19207       # speed up the sed processing (if there are no `@' at all, there
19208       # is no need to browse any of the substitutions).
19209       # These are the two extra sed commands mentioned above.
19210       (echo ':t
19211   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19212       if test -z "$ac_sed_cmds"; then
19213         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19214       else
19215         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19216       fi
19217       ac_sed_frag=`expr $ac_sed_frag + 1`
19218       ac_beg=$ac_end
19219       ac_end=`expr $ac_end + $ac_max_sed_lines`
19220     fi
19221   done
19222   if test -z "$ac_sed_cmds"; then
19223     ac_sed_cmds=cat
19224   fi
19225 fi # test -n "$CONFIG_FILES"
19226
19227 _ACEOF
19228 cat >>$CONFIG_STATUS <<\_ACEOF
19229 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19230   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19231   case $ac_file in
19232   - | *:- | *:-:* ) # input from stdin
19233         cat >$tmp/stdin
19234         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19235         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19236   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19237         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19238   * )   ac_file_in=$ac_file.in ;;
19239   esac
19240
19241   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19242   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19244          X"$ac_file" : 'X\(//\)[^/]' \| \
19245          X"$ac_file" : 'X\(//\)$' \| \
19246          X"$ac_file" : 'X\(/\)' \| \
19247          .     : '\(.\)' 2>/dev/null ||
19248 echo X"$ac_file" |
19249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19250           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19251           /^X\(\/\/\)$/{ s//\1/; q; }
19252           /^X\(\/\).*/{ s//\1/; q; }
19253           s/.*/./; q'`
19254   { if $as_mkdir_p; then
19255     mkdir -p "$ac_dir"
19256   else
19257     as_dir="$ac_dir"
19258     as_dirs=
19259     while test ! -d "$as_dir"; do
19260       as_dirs="$as_dir $as_dirs"
19261       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19263          X"$as_dir" : 'X\(//\)[^/]' \| \
19264          X"$as_dir" : 'X\(//\)$' \| \
19265          X"$as_dir" : 'X\(/\)' \| \
19266          .     : '\(.\)' 2>/dev/null ||
19267 echo X"$as_dir" |
19268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19270           /^X\(\/\/\)$/{ s//\1/; q; }
19271           /^X\(\/\).*/{ s//\1/; q; }
19272           s/.*/./; q'`
19273     done
19274     test ! -n "$as_dirs" || mkdir $as_dirs
19275   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19277    { (exit 1); exit 1; }; }; }
19278
19279   ac_builddir=.
19280
19281 if test "$ac_dir" != .; then
19282   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19283   # A "../" for each directory in $ac_dir_suffix.
19284   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19285 else
19286   ac_dir_suffix= ac_top_builddir=
19287 fi
19288
19289 case $srcdir in
19290   .)  # No --srcdir option.  We are building in place.
19291     ac_srcdir=.
19292     if test -z "$ac_top_builddir"; then
19293        ac_top_srcdir=.
19294     else
19295        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19296     fi ;;
19297   [\\/]* | ?:[\\/]* )  # Absolute path.
19298     ac_srcdir=$srcdir$ac_dir_suffix;
19299     ac_top_srcdir=$srcdir ;;
19300   *) # Relative path.
19301     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19302     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19303 esac
19304
19305 # Do not use `cd foo && pwd` to compute absolute paths, because
19306 # the directories may not exist.
19307 case `pwd` in
19308 .) ac_abs_builddir="$ac_dir";;
19309 *)
19310   case "$ac_dir" in
19311   .) ac_abs_builddir=`pwd`;;
19312   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19313   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19314   esac;;
19315 esac
19316 case $ac_abs_builddir in
19317 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19318 *)
19319   case ${ac_top_builddir}. in
19320   .) ac_abs_top_builddir=$ac_abs_builddir;;
19321   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19322   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19323   esac;;
19324 esac
19325 case $ac_abs_builddir in
19326 .) ac_abs_srcdir=$ac_srcdir;;
19327 *)
19328   case $ac_srcdir in
19329   .) ac_abs_srcdir=$ac_abs_builddir;;
19330   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19331   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19332   esac;;
19333 esac
19334 case $ac_abs_builddir in
19335 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19336 *)
19337   case $ac_top_srcdir in
19338   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19339   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19340   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19341   esac;;
19342 esac
19343
19344
19345   case $INSTALL in
19346   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19347   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19348   esac
19349
19350   # Let's still pretend it is `configure' which instantiates (i.e., don't
19351   # use $as_me), people would be surprised to read:
19352   #    /* config.h.  Generated by config.status.  */
19353   if test x"$ac_file" = x-; then
19354     configure_input=
19355   else
19356     configure_input="$ac_file.  "
19357   fi
19358   configure_input=$configure_input"Generated from `echo $ac_file_in |
19359                                      sed 's,.*/,,'` by configure."
19360
19361   # First look for the input files in the build tree, otherwise in the
19362   # src tree.
19363   ac_file_inputs=`IFS=:
19364     for f in $ac_file_in; do
19365       case $f in
19366       -) echo $tmp/stdin ;;
19367       [\\/$]*)
19368          # Absolute (can't be DOS-style, as IFS=:)
19369          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19370 echo "$as_me: error: cannot find input file: $f" >&2;}
19371    { (exit 1); exit 1; }; }
19372          echo "$f";;
19373       *) # Relative
19374          if test -f "$f"; then
19375            # Build tree
19376            echo "$f"
19377          elif test -f "$srcdir/$f"; then
19378            # Source tree
19379            echo "$srcdir/$f"
19380          else
19381            # /dev/null tree
19382            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19383 echo "$as_me: error: cannot find input file: $f" >&2;}
19384    { (exit 1); exit 1; }; }
19385          fi;;
19386       esac
19387     done` || { (exit 1); exit 1; }
19388
19389   if test x"$ac_file" != x-; then
19390     { echo "$as_me:$LINENO: creating $ac_file" >&5
19391 echo "$as_me: creating $ac_file" >&6;}
19392     rm -f "$ac_file"
19393   fi
19394 _ACEOF
19395 cat >>$CONFIG_STATUS <<_ACEOF
19396   sed "$ac_vpsub
19397 $extrasub
19398 _ACEOF
19399 cat >>$CONFIG_STATUS <<\_ACEOF
19400 :t
19401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19402 s,@configure_input@,$configure_input,;t t
19403 s,@srcdir@,$ac_srcdir,;t t
19404 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19405 s,@top_srcdir@,$ac_top_srcdir,;t t
19406 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19407 s,@builddir@,$ac_builddir,;t t
19408 s,@abs_builddir@,$ac_abs_builddir,;t t
19409 s,@top_builddir@,$ac_top_builddir,;t t
19410 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19411 s,@INSTALL@,$ac_INSTALL,;t t
19412 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19413   rm -f $tmp/stdin
19414   if test x"$ac_file" != x-; then
19415     mv $tmp/out $ac_file
19416   else
19417     cat $tmp/out
19418     rm -f $tmp/out
19419   fi
19420
19421 done
19422 _ACEOF
19423 cat >>$CONFIG_STATUS <<\_ACEOF
19424
19425 #
19426 # CONFIG_HEADER section.
19427 #
19428
19429 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19430 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19431 #
19432 # ac_d sets the value in "#define NAME VALUE" lines.
19433 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
19434 ac_dB='[         ].*$,\1#\2'
19435 ac_dC=' '
19436 ac_dD=',;t'
19437 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19438 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19439 ac_uB='$,\1#\2define\3'
19440 ac_uC=' '
19441 ac_uD=',;t'
19442
19443 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19444   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19445   case $ac_file in
19446   - | *:- | *:-:* ) # input from stdin
19447         cat >$tmp/stdin
19448         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19449         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19450   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19451         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19452   * )   ac_file_in=$ac_file.in ;;
19453   esac
19454
19455   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19456 echo "$as_me: creating $ac_file" >&6;}
19457
19458   # First look for the input files in the build tree, otherwise in the
19459   # src tree.
19460   ac_file_inputs=`IFS=:
19461     for f in $ac_file_in; do
19462       case $f in
19463       -) echo $tmp/stdin ;;
19464       [\\/$]*)
19465          # Absolute (can't be DOS-style, as IFS=:)
19466          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19467 echo "$as_me: error: cannot find input file: $f" >&2;}
19468    { (exit 1); exit 1; }; }
19469          # Do quote $f, to prevent DOS paths from being IFS'd.
19470          echo "$f";;
19471       *) # Relative
19472          if test -f "$f"; then
19473            # Build tree
19474            echo "$f"
19475          elif test -f "$srcdir/$f"; then
19476            # Source tree
19477            echo "$srcdir/$f"
19478          else
19479            # /dev/null tree
19480            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19481 echo "$as_me: error: cannot find input file: $f" >&2;}
19482    { (exit 1); exit 1; }; }
19483          fi;;
19484       esac
19485     done` || { (exit 1); exit 1; }
19486   # Remove the trailing spaces.
19487   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
19488
19489 _ACEOF
19490
19491 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19492 # `conftest.undefs', that substitutes the proper values into
19493 # config.h.in to produce config.h.  The first handles `#define'
19494 # templates, and the second `#undef' templates.
19495 # And first: Protect against being on the right side of a sed subst in
19496 # config.status.  Protect against being in an unquoted here document
19497 # in config.status.
19498 rm -f conftest.defines conftest.undefs
19499 # Using a here document instead of a string reduces the quoting nightmare.
19500 # Putting comments in sed scripts is not portable.
19501 #
19502 # `end' is used to avoid that the second main sed command (meant for
19503 # 0-ary CPP macros) applies to n-ary macro definitions.
19504 # See the Autoconf documentation for `clear'.
19505 cat >confdef2sed.sed <<\_ACEOF
19506 s/[\\&,]/\\&/g
19507 s,[\\$`],\\&,g
19508 t clear
19509 : clear
19510 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19511 t end
19512 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19513 : end
19514 _ACEOF
19515 # If some macros were called several times there might be several times
19516 # the same #defines, which is useless.  Nevertheless, we may not want to
19517 # sort them, since we want the *last* AC-DEFINE to be honored.
19518 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19519 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19520 rm -f confdef2sed.sed
19521
19522 # This sed command replaces #undef with comments.  This is necessary, for
19523 # example, in the case of _POSIX_SOURCE, which is predefined and required
19524 # on some systems where configure will not decide to define it.
19525 cat >>conftest.undefs <<\_ACEOF
19526 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19527 _ACEOF
19528
19529 # Break up conftest.defines because some shells have a limit on the size
19530 # of here documents, and old seds have small limits too (100 cmds).
19531 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19532 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19533 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19534 echo '  :' >>$CONFIG_STATUS
19535 rm -f conftest.tail
19536 while grep . conftest.defines >/dev/null
19537 do
19538   # Write a limited-size here document to $tmp/defines.sed.
19539   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19540   # Speed up: don't consider the non `#define' lines.
19541   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
19542   # Work around the forget-to-reset-the-flag bug.
19543   echo 't clr' >>$CONFIG_STATUS
19544   echo ': clr' >>$CONFIG_STATUS
19545   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19546   echo 'CEOF
19547   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19548   rm -f $tmp/in
19549   mv $tmp/out $tmp/in
19550 ' >>$CONFIG_STATUS
19551   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19552   rm -f conftest.defines
19553   mv conftest.tail conftest.defines
19554 done
19555 rm -f conftest.defines
19556 echo '  fi # grep' >>$CONFIG_STATUS
19557 echo >>$CONFIG_STATUS
19558
19559 # Break up conftest.undefs because some shells have a limit on the size
19560 # of here documents, and old seds have small limits too (100 cmds).
19561 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19562 rm -f conftest.tail
19563 while grep . conftest.undefs >/dev/null
19564 do
19565   # Write a limited-size here document to $tmp/undefs.sed.
19566   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19567   # Speed up: don't consider the non `#undef'
19568   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19569   # Work around the forget-to-reset-the-flag bug.
19570   echo 't clr' >>$CONFIG_STATUS
19571   echo ': clr' >>$CONFIG_STATUS
19572   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19573   echo 'CEOF
19574   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19575   rm -f $tmp/in
19576   mv $tmp/out $tmp/in
19577 ' >>$CONFIG_STATUS
19578   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19579   rm -f conftest.undefs
19580   mv conftest.tail conftest.undefs
19581 done
19582 rm -f conftest.undefs
19583
19584 cat >>$CONFIG_STATUS <<\_ACEOF
19585   # Let's still pretend it is `configure' which instantiates (i.e., don't
19586   # use $as_me), people would be surprised to read:
19587   #    /* config.h.  Generated by config.status.  */
19588   if test x"$ac_file" = x-; then
19589     echo "/* Generated by configure.  */" >$tmp/config.h
19590   else
19591     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19592   fi
19593   cat $tmp/in >>$tmp/config.h
19594   rm -f $tmp/in
19595   if test x"$ac_file" != x-; then
19596     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19597       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19598 echo "$as_me: $ac_file is unchanged" >&6;}
19599     else
19600       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19602          X"$ac_file" : 'X\(//\)[^/]' \| \
19603          X"$ac_file" : 'X\(//\)$' \| \
19604          X"$ac_file" : 'X\(/\)' \| \
19605          .     : '\(.\)' 2>/dev/null ||
19606 echo X"$ac_file" |
19607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19609           /^X\(\/\/\)$/{ s//\1/; q; }
19610           /^X\(\/\).*/{ s//\1/; q; }
19611           s/.*/./; q'`
19612       { if $as_mkdir_p; then
19613     mkdir -p "$ac_dir"
19614   else
19615     as_dir="$ac_dir"
19616     as_dirs=
19617     while test ! -d "$as_dir"; do
19618       as_dirs="$as_dir $as_dirs"
19619       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19621          X"$as_dir" : 'X\(//\)[^/]' \| \
19622          X"$as_dir" : 'X\(//\)$' \| \
19623          X"$as_dir" : 'X\(/\)' \| \
19624          .     : '\(.\)' 2>/dev/null ||
19625 echo X"$as_dir" |
19626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19627           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19628           /^X\(\/\/\)$/{ s//\1/; q; }
19629           /^X\(\/\).*/{ s//\1/; q; }
19630           s/.*/./; q'`
19631     done
19632     test ! -n "$as_dirs" || mkdir $as_dirs
19633   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19635    { (exit 1); exit 1; }; }; }
19636
19637       rm -f $ac_file
19638       mv $tmp/config.h $ac_file
19639     fi
19640   else
19641     cat $tmp/config.h
19642     rm -f $tmp/config.h
19643   fi
19644 # Compute $ac_file's index in $config_headers.
19645 _am_stamp_count=1
19646 for _am_header in $config_headers :; do
19647   case $_am_header in
19648     $ac_file | $ac_file:* )
19649       break ;;
19650     * )
19651       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19652   esac
19653 done
19654 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19655 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19656          X$ac_file : 'X\(//\)[^/]' \| \
19657          X$ac_file : 'X\(//\)$' \| \
19658          X$ac_file : 'X\(/\)' \| \
19659          .     : '\(.\)' 2>/dev/null ||
19660 echo X$ac_file |
19661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19662           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19663           /^X\(\/\/\)$/{ s//\1/; q; }
19664           /^X\(\/\).*/{ s//\1/; q; }
19665           s/.*/./; q'`/stamp-h$_am_stamp_count
19666 done
19667 _ACEOF
19668 cat >>$CONFIG_STATUS <<\_ACEOF
19669
19670 #
19671 # CONFIG_COMMANDS section.
19672 #
19673 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19674   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19675   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19676   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19677 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19678          X"$ac_dest" : 'X\(//\)[^/]' \| \
19679          X"$ac_dest" : 'X\(//\)$' \| \
19680          X"$ac_dest" : 'X\(/\)' \| \
19681          .     : '\(.\)' 2>/dev/null ||
19682 echo X"$ac_dest" |
19683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19685           /^X\(\/\/\)$/{ s//\1/; q; }
19686           /^X\(\/\).*/{ s//\1/; q; }
19687           s/.*/./; q'`
19688   { if $as_mkdir_p; then
19689     mkdir -p "$ac_dir"
19690   else
19691     as_dir="$ac_dir"
19692     as_dirs=
19693     while test ! -d "$as_dir"; do
19694       as_dirs="$as_dir $as_dirs"
19695       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19697          X"$as_dir" : 'X\(//\)[^/]' \| \
19698          X"$as_dir" : 'X\(//\)$' \| \
19699          X"$as_dir" : 'X\(/\)' \| \
19700          .     : '\(.\)' 2>/dev/null ||
19701 echo X"$as_dir" |
19702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19703           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19704           /^X\(\/\/\)$/{ s//\1/; q; }
19705           /^X\(\/\).*/{ s//\1/; q; }
19706           s/.*/./; q'`
19707     done
19708     test ! -n "$as_dirs" || mkdir $as_dirs
19709   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19710 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19711    { (exit 1); exit 1; }; }; }
19712
19713   ac_builddir=.
19714
19715 if test "$ac_dir" != .; then
19716   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19717   # A "../" for each directory in $ac_dir_suffix.
19718   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19719 else
19720   ac_dir_suffix= ac_top_builddir=
19721 fi
19722
19723 case $srcdir in
19724   .)  # No --srcdir option.  We are building in place.
19725     ac_srcdir=.
19726     if test -z "$ac_top_builddir"; then
19727        ac_top_srcdir=.
19728     else
19729        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19730     fi ;;
19731   [\\/]* | ?:[\\/]* )  # Absolute path.
19732     ac_srcdir=$srcdir$ac_dir_suffix;
19733     ac_top_srcdir=$srcdir ;;
19734   *) # Relative path.
19735     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19736     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19737 esac
19738
19739 # Do not use `cd foo && pwd` to compute absolute paths, because
19740 # the directories may not exist.
19741 case `pwd` in
19742 .) ac_abs_builddir="$ac_dir";;
19743 *)
19744   case "$ac_dir" in
19745   .) ac_abs_builddir=`pwd`;;
19746   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19747   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19748   esac;;
19749 esac
19750 case $ac_abs_builddir in
19751 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19752 *)
19753   case ${ac_top_builddir}. in
19754   .) ac_abs_top_builddir=$ac_abs_builddir;;
19755   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19756   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19757   esac;;
19758 esac
19759 case $ac_abs_builddir in
19760 .) ac_abs_srcdir=$ac_srcdir;;
19761 *)
19762   case $ac_srcdir in
19763   .) ac_abs_srcdir=$ac_abs_builddir;;
19764   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19765   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19766   esac;;
19767 esac
19768 case $ac_abs_builddir in
19769 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19770 *)
19771   case $ac_top_srcdir in
19772   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19773   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19774   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19775   esac;;
19776 esac
19777
19778
19779   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19780 echo "$as_me: executing $ac_dest commands" >&6;}
19781   case $ac_dest in
19782     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19783   # Strip MF so we end up with the name of the file.
19784   mf=`echo "$mf" | sed -e 's/:.*$//'`
19785   # Check whether this is an Automake generated Makefile or not.
19786   # We used to match only the files named `Makefile.in', but
19787   # some people rename them; so instead we look at the file content.
19788   # Grep'ing the first line is not enough: some people post-process
19789   # each Makefile.in and add a new line on top of each file to say so.
19790   # So let's grep whole file.
19791   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19792     dirpart=`(dirname "$mf") 2>/dev/null ||
19793 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19794          X"$mf" : 'X\(//\)[^/]' \| \
19795          X"$mf" : 'X\(//\)$' \| \
19796          X"$mf" : 'X\(/\)' \| \
19797          .     : '\(.\)' 2>/dev/null ||
19798 echo X"$mf" |
19799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19800           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19801           /^X\(\/\/\)$/{ s//\1/; q; }
19802           /^X\(\/\).*/{ s//\1/; q; }
19803           s/.*/./; q'`
19804   else
19805     continue
19806   fi
19807   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
19808   # Extract the definition of DEP_FILES from the Makefile without
19809   # running `make'.
19810   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
19811   test -z "$DEPDIR" && continue
19812   # When using ansi2knr, U may be empty or an underscore; expand it
19813   U=`sed -n -e '/^U = / s///p' < "$mf"`
19814   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
19815   # We invoke sed twice because it is the simplest approach to
19816   # changing $(DEPDIR) to its actual value in the expansion.
19817   for file in `sed -n -e '
19818     /^DEP_FILES = .*\\\\$/ {
19819       s/^DEP_FILES = //
19820       :loop
19821         s/\\\\$//
19822         p
19823         n
19824         /\\\\$/ b loop
19825       p
19826     }
19827     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
19828        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19829     # Make sure the directory exists.
19830     test -f "$dirpart/$file" && continue
19831     fdir=`(dirname "$file") 2>/dev/null ||
19832 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19833          X"$file" : 'X\(//\)[^/]' \| \
19834          X"$file" : 'X\(//\)$' \| \
19835          X"$file" : 'X\(/\)' \| \
19836          .     : '\(.\)' 2>/dev/null ||
19837 echo X"$file" |
19838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19840           /^X\(\/\/\)$/{ s//\1/; q; }
19841           /^X\(\/\).*/{ s//\1/; q; }
19842           s/.*/./; q'`
19843     { if $as_mkdir_p; then
19844     mkdir -p $dirpart/$fdir
19845   else
19846     as_dir=$dirpart/$fdir
19847     as_dirs=
19848     while test ! -d "$as_dir"; do
19849       as_dirs="$as_dir $as_dirs"
19850       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19852          X"$as_dir" : 'X\(//\)[^/]' \| \
19853          X"$as_dir" : 'X\(//\)$' \| \
19854          X"$as_dir" : 'X\(/\)' \| \
19855          .     : '\(.\)' 2>/dev/null ||
19856 echo X"$as_dir" |
19857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19858           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19859           /^X\(\/\/\)$/{ s//\1/; q; }
19860           /^X\(\/\).*/{ s//\1/; q; }
19861           s/.*/./; q'`
19862     done
19863     test ! -n "$as_dirs" || mkdir $as_dirs
19864   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19865 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19866    { (exit 1); exit 1; }; }; }
19867
19868     # echo "creating $dirpart/$file"
19869     echo '# dummy' > "$dirpart/$file"
19870   done
19871 done
19872  ;;
19873     default-1 ) for ac_file in $CONFIG_FILES; do
19874         # Support "outfile[:infile[:infile...]]"
19875         case "$ac_file" in
19876           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19877         esac
19878         # PO directories have a Makefile.in generated from Makefile.in.in.
19879         case "$ac_file" in */Makefile.in)
19880           # Adjust a relative srcdir.
19881           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19882           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19883           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19884           # In autoconf-2.13 it is called $ac_given_srcdir.
19885           # In autoconf-2.50 it is called $srcdir.
19886           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19887           case "$ac_given_srcdir" in
19888             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19889             /*) top_srcdir="$ac_given_srcdir" ;;
19890             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19891           esac
19892           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19893             rm -f "$ac_dir/POTFILES"
19894             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19895             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
19896             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19897             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19898           fi
19899           ;;
19900         esac
19901       done ;;
19902   esac
19903 done
19904 _ACEOF
19905
19906 cat >>$CONFIG_STATUS <<\_ACEOF
19907
19908 { (exit 0); exit 0; }
19909 _ACEOF
19910 chmod +x $CONFIG_STATUS
19911 ac_clean_files=$ac_clean_files_save
19912
19913
19914 # configure is writing to config.log, and then calls config.status.
19915 # config.status does its own redirection, appending to config.log.
19916 # Unfortunately, on DOS this fails, as config.log is still kept open
19917 # by configure, so config.status won't be able to write to it; its
19918 # output is simply discarded.  So we exec the FD to /dev/null,
19919 # effectively closing config.log, so it can be properly (re)opened and
19920 # appended to by config.status.  When coming back to configure, we
19921 # need to make the FD available again.
19922 if test "$no_create" != yes; then
19923   ac_cs_success=:
19924   ac_config_status_args=
19925   test "$silent" = yes &&
19926     ac_config_status_args="$ac_config_status_args --quiet"
19927   exec 5>/dev/null
19928   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19929   exec 5>>config.log
19930   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19931   # would make configure fail if this is the last instruction.
19932   $ac_cs_success || { (exit 1); exit 1; }
19933 fi
19934