cb1c9139253cfb924e11a6bdcd9ac9b1c1d81554
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL 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'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --disable-largefile     omit support for large files
854   --enable-gpgme          Enable GPGME support
855   --disable-pgp           Disable PGP support
856   --disable-smime         Disable SMIME support
857   --enable-external-dotlock
858                           Force use of an external dotlock program
859   --enable-pop            Enable POP3 support
860   --enable-imap           Enable IMAP support
861   --enable-nntp              Enable NNTP support
862   --enable-debug          Enable debugging support
863   --enable-flock          Use flock() to lock files
864   --disable-fcntl         Do NOT use fcntl() to lock files
865   --enable-inodesort      Read files in maildir folders sorted by inode.
866   --disable-warnings      Turn off compiler warnings (not recommended)
867   --enable-nfs-fix        Work around an NFS with broken attributes caching
868   --enable-buffy-size     Use file size attribute instead of access time
869   --enable-mailtool       Enable Sun mailtool attachments support
870   --enable-compressed        Enable compressed folders support
871   --enable-locales-fix    The result of isprint() is unreliable
872   --enable-exact-address  Enable regeneration of email addresses
873   --enable-hcache         Enable header caching
874   --disable-iconv         Disable iconv support
875   --disable-nls           Do not use Native Language Support
876
877 Optional Packages:
878   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880   --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
881   --with-mixmaster=PATH Include Mixmaster support
882   --with-slang=DIR      Use S-Lang instead of ncurses
883   --with-curses=DIR       Where ncurses is installed
884   --with-regex            Use the GNU regex library
885   --with-homespool=FILE File in user's directory where new mail is spooled
886   --with-mailpath=DIR     Directory where spool mailboxes are located
887   --with-docdir=PATH      Specify where to put the documentation
888   --with-domain=DOMAIN    Specify your DNS domain name
889   --with-gss=PFX        Compile in GSSAPI authentication for IMAP
890   --with-ssl=PFX        Compile in SSL support for POP/IMAP
891   --with-gnutls=PFX        Compile in GNU TLS support for POP/IMAP
892   --with-nss=PFX        Compile in SSL support for POP/IMAP via NSS
893   --with-gnutls=PFX     Enable SSL support using gnutls
894   --with-sasl=PFX       Use Cyrus SASL library for POP/IMAP authentication
895   --with-sasl2=PFX      Use Cyrus SASL library version 2 for POP/IMAP
896                           authentication
897   --with-idn=PFX        Use GNU libidn for domain names
898   --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
899   --without-gdbm          Don't use gdbm even if it is available
900   --with-bdb=DIR        Use BerkeleyDB4 if gdbm is not available
901   --with-libiconv-prefix=DIR
902                           Search for libiconv in DIR/include and DIR/lib
903   --with-included-gettext Use the GNU gettext library included here
904   --without-wc-funcs      Do not use the system's wchar_t functions
905   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
906
907 Some influential environment variables:
908   CC          C compiler command
909   CFLAGS      C compiler flags
910   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
911               nonstandard directory <lib dir>
912   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
913               headers in a nonstandard directory <include dir>
914   CPP         C preprocessor
915
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
918
919 _ACEOF
920 fi
921
922 if test "$ac_init_help" = "recursive"; then
923   # If there are subdirs, report their specific --help.
924   ac_popdir=`pwd`
925   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926     test -d $ac_dir || continue
927     ac_builddir=.
928
929 if test "$ac_dir" != .; then
930   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931   # A "../" for each directory in $ac_dir_suffix.
932   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934   ac_dir_suffix= ac_top_builddir=
935 fi
936
937 case $srcdir in
938   .)  # No --srcdir option.  We are building in place.
939     ac_srcdir=.
940     if test -z "$ac_top_builddir"; then
941        ac_top_srcdir=.
942     else
943        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944     fi ;;
945   [\\/]* | ?:[\\/]* )  # Absolute path.
946     ac_srcdir=$srcdir$ac_dir_suffix;
947     ac_top_srcdir=$srcdir ;;
948   *) # Relative path.
949     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950     ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
952 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
953 # absolute.
954 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
955 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
956 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
957 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
958
959     cd $ac_dir
960     # Check for guested configure; otherwise get Cygnus style configure.
961     if test -f $ac_srcdir/configure.gnu; then
962       echo
963       $SHELL $ac_srcdir/configure.gnu  --help=recursive
964     elif test -f $ac_srcdir/configure; then
965       echo
966       $SHELL $ac_srcdir/configure  --help=recursive
967     elif test -f $ac_srcdir/configure.ac ||
968            test -f $ac_srcdir/configure.in; then
969       echo
970       $ac_configure --help
971     else
972       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973     fi
974     cd $ac_popdir
975   done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980   cat <<\_ACEOF
981
982 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
983 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987   exit 0
988 fi
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
993
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.57.  Invocation command line was
996
997   $ $0 $@
998
999 _ACEOF
1000 {
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1005
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1014
1015 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1016 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1019 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1020 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1021 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1022
1023 _ASUNAME
1024
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1027 do
1028   IFS=$as_save_IFS
1029   test -z "$as_dir" && as_dir=.
1030   echo "PATH: $as_dir"
1031 done
1032
1033 } >&5
1034
1035 cat >&5 <<_ACEOF
1036
1037
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1041
1042 _ACEOF
1043
1044
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1056 do
1057   for ac_arg
1058   do
1059     case $ac_arg in
1060     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062     | -silent | --silent | --silen | --sile | --sil)
1063       continue ;;
1064     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066     esac
1067     case $ac_pass in
1068     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069     2)
1070       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071       if test $ac_must_keep_next = true; then
1072         ac_must_keep_next=false # Got value, back to normal.
1073       else
1074         case $ac_arg in
1075           *=* | --config-cache | -C | -disable-* | --disable-* \
1076           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078           | -with-* | --with-* | -without-* | --without-* | --x)
1079             case "$ac_configure_args0 " in
1080               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081             esac
1082             ;;
1083           -* ) ac_must_keep_next=true ;;
1084         esac
1085       fi
1086       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087       # Get rid of the leading space.
1088       ac_sep=" "
1089       ;;
1090     esac
1091   done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log.  We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102   # Save into config.log some information that might help in debugging.
1103   {
1104     echo
1105
1106     cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111     echo
1112     # The following way of writing the cache mishandles newlines in values,
1113 {
1114   (set) 2>&1 |
1115     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116     *ac_space=\ *)
1117       sed -n \
1118         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120       ;;
1121     *)
1122       sed -n \
1123         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124       ;;
1125     esac;
1126 }
1127     echo
1128
1129     cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134     echo
1135     for ac_var in $ac_subst_vars
1136     do
1137       eval ac_val=$`echo $ac_var`
1138       echo "$ac_var='"'"'$ac_val'"'"'"
1139     done | sort
1140     echo
1141
1142     if test -n "$ac_subst_files"; then
1143       cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148       echo
1149       for ac_var in $ac_subst_files
1150       do
1151         eval ac_val=$`echo $ac_var`
1152         echo "$ac_var='"'"'$ac_val'"'"'"
1153       done | sort
1154       echo
1155     fi
1156
1157     if test -s confdefs.h; then
1158       cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163       echo
1164       sed "/^$/d" confdefs.h | sort
1165       echo
1166     fi
1167     test "$ac_signal" != 0 &&
1168       echo "$as_me: caught signal $ac_signal"
1169     echo "$as_me: exit $exit_status"
1170   } >&5
1171   rm -f core core.* *.core &&
1172   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173     exit $exit_status
1174      ' 0
1175 for ac_signal in 1 2 13 15; do
1176   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1179
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1184
1185 # Predefined preprocessor variables.
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1210
1211
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215   if test "x$prefix" != xNONE; then
1216     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217   else
1218     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219   fi
1220 fi
1221 for ac_site_file in $CONFIG_SITE; do
1222   if test -r "$ac_site_file"; then
1223     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225     sed 's/^/| /' "$ac_site_file" >&5
1226     . "$ac_site_file"
1227   fi
1228 done
1229
1230 if test -r "$cache_file"; then
1231   # Some versions of bash will fail to source /dev/null (special
1232   # files actually), so we avoid doing that.
1233   if test -f "$cache_file"; then
1234     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236     case $cache_file in
1237       [\\/]* | ?:[\\/]* ) . $cache_file;;
1238       *)                      . ./$cache_file;;
1239     esac
1240   fi
1241 else
1242   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244   >$cache_file
1245 fi
1246
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253   eval ac_new_set=\$ac_env_${ac_var}_set
1254   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255   eval ac_new_val="\$ac_env_${ac_var}_value"
1256   case $ac_old_set,$ac_new_set in
1257     set,)
1258       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260       ac_cache_corrupted=: ;;
1261     ,set)
1262       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264       ac_cache_corrupted=: ;;
1265     ,);;
1266     *)
1267       if test "x$ac_old_val" != "x$ac_new_val"; then
1268         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1271 echo "$as_me:   former value:  $ac_old_val" >&2;}
1272         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1273 echo "$as_me:   current value: $ac_new_val" >&2;}
1274         ac_cache_corrupted=:
1275       fi;;
1276   esac
1277   # Pass precious variables to config.status.
1278   if test "$ac_new_set" = set; then
1279     case $ac_new_val in
1280     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282     *) ac_arg=$ac_var=$ac_new_val ;;
1283     esac
1284     case " $ac_configure_args " in
1285       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1286       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287     esac
1288   fi
1289 done
1290 if $ac_cache_corrupted; then
1291   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295    { (exit 1); exit 1; }; }
1296 fi
1297
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322           ac_config_headers="$ac_config_headers config.h"
1323
1324
1325 mutt_cv_version=`cat $srcdir/VERSION`
1326
1327 am__api_version="1.7"
1328 ac_aux_dir=
1329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330   if test -f $ac_dir/install-sh; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/install-sh -c"
1333     break
1334   elif test -f $ac_dir/install.sh; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/install.sh -c"
1337     break
1338   elif test -f $ac_dir/shtool; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/shtool install -c"
1341     break
1342   fi
1343 done
1344 if test -z "$ac_aux_dir"; then
1345   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352
1353 # Find a good install program.  We prefer a C program (faster),
1354 # so one script is as good as another.  But avoid the broken or
1355 # incompatible versions:
1356 # SysV /etc/install, /usr/sbin/install
1357 # SunOS /usr/etc/install
1358 # IRIX /sbin/install
1359 # AIX /bin/install
1360 # AmigaOS /C/install, which installs bootblocks on floppy discs
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1366 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1367 if test -z "$INSTALL"; then
1368 if test "${ac_cv_path_install+set}" = set; then
1369   echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1373 do
1374   IFS=$as_save_IFS
1375   test -z "$as_dir" && as_dir=.
1376   # Account for people who put trailing slashes in PATH elements.
1377 case $as_dir/ in
1378   ./ | .// | /cC/* | \
1379   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1380   /usr/ucb/* ) ;;
1381   *)
1382     # OSF1 and SCO ODT 3.0 have their own names for install.
1383     # Don't use installbsd from OSF since it installs stuff as root
1384     # by default.
1385     for ac_prog in ginstall scoinst install; do
1386       for ac_exec_ext in '' $ac_executable_extensions; do
1387         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1388           if test $ac_prog = install &&
1389             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390             # AIX install.  It has an incompatible calling convention.
1391             :
1392           elif test $ac_prog = install &&
1393             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1394             # program-specific install script used by HP pwplus--don't use.
1395             :
1396           else
1397             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1398             break 3
1399           fi
1400         fi
1401       done
1402     done
1403     ;;
1404 esac
1405 done
1406
1407
1408 fi
1409   if test "${ac_cv_path_install+set}" = set; then
1410     INSTALL=$ac_cv_path_install
1411   else
1412     # As a last resort, use the slow shell script.  We don't cache a
1413     # path for INSTALL within a source directory, because that will
1414     # break other packages using the cache if that directory is
1415     # removed, or if the path is relative.
1416     INSTALL=$ac_install_sh
1417   fi
1418 fi
1419 echo "$as_me:$LINENO: result: $INSTALL" >&5
1420 echo "${ECHO_T}$INSTALL" >&6
1421
1422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1423 # It thinks the first close brace ends the variable substitution.
1424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1425
1426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1427
1428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1429
1430 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1431 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1432 # Just in case
1433 sleep 1
1434 echo timestamp > conftest.file
1435 # Do `set' in a subshell so we don't clobber the current shell's
1436 # arguments.  Must try -L first in case configure is actually a
1437 # symlink; some systems play weird games with the mod time of symlinks
1438 # (eg FreeBSD returns the mod time of the symlink's containing
1439 # directory).
1440 if (
1441    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1442    if test "$*" = "X"; then
1443       # -L didn't work.
1444       set X `ls -t $srcdir/configure conftest.file`
1445    fi
1446    rm -f conftest.file
1447    if test "$*" != "X $srcdir/configure conftest.file" \
1448       && test "$*" != "X conftest.file $srcdir/configure"; then
1449
1450       # If neither matched, then we have a broken ls.  This can happen
1451       # if, for instance, CONFIG_SHELL is bash and it inherits a
1452       # broken ls alias from the environment.  This has actually
1453       # happened.  Such a system could not be considered "sane".
1454       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1455 alias in your environment" >&5
1456 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1457 alias in your environment" >&2;}
1458    { (exit 1); exit 1; }; }
1459    fi
1460
1461    test "$2" = conftest.file
1462    )
1463 then
1464    # Ok.
1465    :
1466 else
1467    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1468 Check your system clock" >&5
1469 echo "$as_me: error: newly created file is older than distributed files!
1470 Check your system clock" >&2;}
1471    { (exit 1); exit 1; }; }
1472 fi
1473 echo "$as_me:$LINENO: result: yes" >&5
1474 echo "${ECHO_T}yes" >&6
1475 test "$program_prefix" != NONE &&
1476   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1477 # Use a double $ so make ignores it.
1478 test "$program_suffix" != NONE &&
1479   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1480 # Double any \ or $.  echo might interpret backslashes.
1481 # By default was `s,x,x', remove it if useless.
1482 cat <<\_ACEOF >conftest.sed
1483 s/[\\$]/&&/g;s/;s,x,x,$//
1484 _ACEOF
1485 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1486 rm conftest.sed
1487
1488
1489 # expand $ac_aux_dir to an absolute path
1490 am_aux_dir=`cd $ac_aux_dir && pwd`
1491
1492 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1493 # Use eval to expand $SHELL
1494 if eval "$MISSING --run true"; then
1495   am_missing_run="$MISSING --run "
1496 else
1497   am_missing_run=
1498   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1499 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1500 fi
1501
1502 for ac_prog in gawk mawk nawk awk
1503 do
1504   # Extract the first word of "$ac_prog", so it can be a program name with args.
1505 set dummy $ac_prog; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_AWK+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   if test -n "$AWK"; then
1512   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1516 do
1517   IFS=$as_save_IFS
1518   test -z "$as_dir" && as_dir=.
1519   for ac_exec_ext in '' $ac_executable_extensions; do
1520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521     ac_cv_prog_AWK="$ac_prog"
1522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523     break 2
1524   fi
1525 done
1526 done
1527
1528 fi
1529 fi
1530 AWK=$ac_cv_prog_AWK
1531 if test -n "$AWK"; then
1532   echo "$as_me:$LINENO: result: $AWK" >&5
1533 echo "${ECHO_T}$AWK" >&6
1534 else
1535   echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539   test -n "$AWK" && break
1540 done
1541
1542 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1543 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1544 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1545 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1546   echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548   cat >conftest.make <<\_ACEOF
1549 all:
1550         @echo 'ac_maketemp="$(MAKE)"'
1551 _ACEOF
1552 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1553 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1554 if test -n "$ac_maketemp"; then
1555   eval ac_cv_prog_make_${ac_make}_set=yes
1556 else
1557   eval ac_cv_prog_make_${ac_make}_set=no
1558 fi
1559 rm -f conftest.make
1560 fi
1561 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1562   echo "$as_me:$LINENO: result: yes" >&5
1563 echo "${ECHO_T}yes" >&6
1564   SET_MAKE=
1565 else
1566   echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1568   SET_MAKE="MAKE=${MAKE-make}"
1569 fi
1570
1571 rm -rf .tst 2>/dev/null
1572 mkdir .tst 2>/dev/null
1573 if test -d .tst; then
1574   am__leading_dot=.
1575 else
1576   am__leading_dot=_
1577 fi
1578 rmdir .tst 2>/dev/null
1579
1580  # test to see if srcdir already configured
1581 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1582    test -f $srcdir/config.status; then
1583   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1584 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 # test whether we have cygpath
1589 if test -z "$CYGPATH_W"; then
1590   if (cygpath --version) >/dev/null 2>/dev/null; then
1591     CYGPATH_W='cygpath -w'
1592   else
1593     CYGPATH_W=echo
1594   fi
1595 fi
1596
1597
1598 # Define the identity of the package.
1599  PACKAGE=muttng
1600  VERSION=$mutt_cv_version
1601
1602
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE "$PACKAGE"
1605 _ACEOF
1606
1607
1608 cat >>confdefs.h <<_ACEOF
1609 #define VERSION "$VERSION"
1610 _ACEOF
1611
1612 # Some tools Automake needs.
1613
1614 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1615
1616
1617 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1618
1619
1620 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1621
1622
1623 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1624
1625
1626 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1627
1628
1629 AMTAR=${AMTAR-"${am_missing_run}tar"}
1630
1631 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1632
1633 # Installed binaries are usually stripped using `strip' when the user
1634 # run `make install-strip'.  However `strip' might not be the right
1635 # tool to use in cross-compilation environments, therefore Automake
1636 # will honor the `STRIP' environment variable to overrule this program.
1637 if test "$cross_compiling" != no; then
1638   if test -n "$ac_tool_prefix"; then
1639   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1640 set dummy ${ac_tool_prefix}strip; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_STRIP+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   if test -n "$STRIP"; then
1647   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 fi
1664 fi
1665 STRIP=$ac_cv_prog_STRIP
1666 if test -n "$STRIP"; then
1667   echo "$as_me:$LINENO: result: $STRIP" >&5
1668 echo "${ECHO_T}$STRIP" >&6
1669 else
1670   echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1672 fi
1673
1674 fi
1675 if test -z "$ac_cv_prog_STRIP"; then
1676   ac_ct_STRIP=$STRIP
1677   # Extract the first word of "strip", so it can be a program name with args.
1678 set dummy strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$ac_ct_STRIP"; then
1685   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     ac_cv_prog_ac_ct_STRIP="strip"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1700
1701   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1702 fi
1703 fi
1704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1705 if test -n "$ac_ct_STRIP"; then
1706   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1707 echo "${ECHO_T}$ac_ct_STRIP" >&6
1708 else
1709   echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 fi
1712
1713   STRIP=$ac_ct_STRIP
1714 else
1715   STRIP="$ac_cv_prog_STRIP"
1716 fi
1717
1718 fi
1719 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1720
1721 # We need awk for the "check" target.  The system "awk" is bad on
1722 # some platforms.
1723
1724
1725
1726
1727
1728
1729 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"
1730
1731 # Make sure we can run config.sub.
1732 $ac_config_sub sun4 >/dev/null 2>&1 ||
1733   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735    { (exit 1); exit 1; }; }
1736
1737 echo "$as_me:$LINENO: checking build system type" >&5
1738 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739 if test "${ac_cv_build+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   ac_cv_build_alias=$build_alias
1743 test -z "$ac_cv_build_alias" &&
1744   ac_cv_build_alias=`$ac_config_guess`
1745 test -z "$ac_cv_build_alias" &&
1746   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748    { (exit 1); exit 1; }; }
1749 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752    { (exit 1); exit 1; }; }
1753
1754 fi
1755 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756 echo "${ECHO_T}$ac_cv_build" >&6
1757 build=$ac_cv_build
1758 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761
1762
1763 echo "$as_me:$LINENO: checking host system type" >&5
1764 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1765 if test "${ac_cv_host+set}" = set; then
1766   echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768   ac_cv_host_alias=$host_alias
1769 test -z "$ac_cv_host_alias" &&
1770   ac_cv_host_alias=$ac_cv_build_alias
1771 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1772   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1773 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1774    { (exit 1); exit 1; }; }
1775
1776 fi
1777 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1778 echo "${ECHO_T}$ac_cv_host" >&6
1779 host=$ac_cv_host
1780 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1783
1784
1785
1786 echo "$as_me:$LINENO: checking for prefix" >&5
1787 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1788 if test x$prefix = xNONE; then
1789         mutt_cv_prefix=$ac_default_prefix
1790 else
1791         mutt_cv_prefix=$prefix
1792 fi
1793 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1794 echo "${ECHO_T}$mutt_cv_prefix" >&6
1795
1796 ac_ext=c
1797 ac_cpp='$CPP $CPPFLAGS'
1798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801 if test -n "$ac_tool_prefix"; then
1802   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1803 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_CC+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   if test -n "$CC"; then
1810   ac_cv_prog_CC="$CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815   IFS=$as_save_IFS
1816   test -z "$as_dir" && as_dir=.
1817   for ac_exec_ext in '' $ac_executable_extensions; do
1818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821     break 2
1822   fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 CC=$ac_cv_prog_CC
1829 if test -n "$CC"; then
1830   echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1832 else
1833   echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837 fi
1838 if test -z "$ac_cv_prog_CC"; then
1839   ac_ct_CC=$CC
1840   # Extract the first word of "gcc", so it can be a program name with args.
1841 set dummy gcc; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1845   echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847   if test -n "$ac_ct_CC"; then
1848   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1849 else
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853   IFS=$as_save_IFS
1854   test -z "$as_dir" && as_dir=.
1855   for ac_exec_ext in '' $ac_executable_extensions; do
1856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857     ac_cv_prog_ac_ct_CC="gcc"
1858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859     break 2
1860   fi
1861 done
1862 done
1863
1864 fi
1865 fi
1866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1867 if test -n "$ac_ct_CC"; then
1868   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1869 echo "${ECHO_T}$ac_ct_CC" >&6
1870 else
1871   echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1873 fi
1874
1875   CC=$ac_ct_CC
1876 else
1877   CC="$ac_cv_prog_CC"
1878 fi
1879
1880 if test -z "$CC"; then
1881   if test -n "$ac_tool_prefix"; then
1882   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}cc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   if test -n "$CC"; then
1890   ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   for ac_exec_ext in '' $ac_executable_extensions; do
1898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899     ac_cv_prog_CC="${ac_tool_prefix}cc"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 CC=$ac_cv_prog_CC
1909 if test -n "$CC"; then
1910   echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 fi
1918 if test -z "$ac_cv_prog_CC"; then
1919   ac_ct_CC=$CC
1920   # Extract the first word of "cc", so it can be a program name with args.
1921 set dummy cc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   if test -n "$ac_ct_CC"; then
1928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933   IFS=$as_save_IFS
1934   test -z "$as_dir" && as_dir=.
1935   for ac_exec_ext in '' $ac_executable_extensions; do
1936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937     ac_cv_prog_ac_ct_CC="cc"
1938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939     break 2
1940   fi
1941 done
1942 done
1943
1944 fi
1945 fi
1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1950 else
1951   echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1953 fi
1954
1955   CC=$ac_ct_CC
1956 else
1957   CC="$ac_cv_prog_CC"
1958 fi
1959
1960 fi
1961 if test -z "$CC"; then
1962   # Extract the first word of "cc", so it can be a program name with args.
1963 set dummy cc; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$CC"; then
1970   ac_cv_prog_CC="$CC" # Let the user override the test.
1971 else
1972   ac_prog_rejected=no
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1981        ac_prog_rejected=yes
1982        continue
1983      fi
1984     ac_cv_prog_CC="cc"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990
1991 if test $ac_prog_rejected = yes; then
1992   # We found a bogon in the path, so make sure we never use it.
1993   set dummy $ac_cv_prog_CC
1994   shift
1995   if test $# != 0; then
1996     # We chose a different compiler from the bogus one.
1997     # However, it has the same basename, so the bogon will be chosen
1998     # first if we set CC to just the basename; use the full file name.
1999     shift
2000     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2001   fi
2002 fi
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007   echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6
2009 else
2010   echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2012 fi
2013
2014 fi
2015 if test -z "$CC"; then
2016   if test -n "$ac_tool_prefix"; then
2017   for ac_prog in cl
2018   do
2019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2021 echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   if test -n "$CC"; then
2027   ac_cv_prog_CC="$CC" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032   IFS=$as_save_IFS
2033   test -z "$as_dir" && as_dir=.
2034   for ac_exec_ext in '' $ac_executable_extensions; do
2035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038     break 2
2039   fi
2040 done
2041 done
2042
2043 fi
2044 fi
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047   echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2049 else
2050   echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2052 fi
2053
2054     test -n "$CC" && break
2055   done
2056 fi
2057 if test -z "$CC"; then
2058   ac_ct_CC=$CC
2059   for ac_prog in cl
2060 do
2061   # Extract the first word of "$ac_prog", so it can be a program name with args.
2062 set dummy $ac_prog; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   if test -n "$ac_ct_CC"; then
2069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074   IFS=$as_save_IFS
2075   test -z "$as_dir" && as_dir=.
2076   for ac_exec_ext in '' $ac_executable_extensions; do
2077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078     ac_cv_prog_ac_ct_CC="$ac_prog"
2079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080     break 2
2081   fi
2082 done
2083 done
2084
2085 fi
2086 fi
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 echo "${ECHO_T}$ac_ct_CC" >&6
2091 else
2092   echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2094 fi
2095
2096   test -n "$ac_ct_CC" && break
2097 done
2098
2099   CC=$ac_ct_CC
2100 fi
2101
2102 fi
2103
2104
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109    { (exit 1); exit 1; }; }
2110
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO:" \
2113      "checking for C compiler version" >&5
2114 ac_compiler=`set X $ac_compile; echo $2`
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116   (eval $ac_compiler --version </dev/null >&5) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121   (eval $ac_compiler -v </dev/null >&5) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126   (eval $ac_compiler -V </dev/null >&5) 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); }
2130
2131 cat >conftest.$ac_ext <<_ACEOF
2132 #line $LINENO "configure"
2133 /* confdefs.h.  */
2134 _ACEOF
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h.  */
2138
2139 int
2140 main ()
2141 {
2142
2143   ;
2144   return 0;
2145 }
2146 _ACEOF
2147 ac_clean_files_save=$ac_clean_files
2148 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2149 # Try to create an executable without -o first, disregard a.out.
2150 # It will help us diagnose broken compilers, and finding out an intuition
2151 # of exeext.
2152 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2153 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2154 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2155 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2156   (eval $ac_link_default) 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }; then
2160   # Find the output, starting from the most likely.  This scheme is
2161 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2162 # resort.
2163
2164 # Be careful to initialize this variable, since it used to be cached.
2165 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166 ac_cv_exeext=
2167 # b.out is created by i960 compilers.
2168 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2169 do
2170   test -f "$ac_file" || continue
2171   case $ac_file in
2172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2173         ;;
2174     conftest.$ac_ext )
2175         # This is the source file.
2176         ;;
2177     [ab].out )
2178         # We found the default executable, but exeext='' is most
2179         # certainly right.
2180         break;;
2181     *.* )
2182         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183         # FIXME: I believe we export ac_cv_exeext for Libtool,
2184         # but it would be cool to find out if it's true.  Does anybody
2185         # maintain Libtool? --akim.
2186         export ac_cv_exeext
2187         break;;
2188     * )
2189         break;;
2190   esac
2191 done
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&2;}
2200    { (exit 77); exit 77; }; }
2201 fi
2202
2203 ac_exeext=$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_file" >&5
2205 echo "${ECHO_T}$ac_file" >&6
2206
2207 # Check the compiler produces executables we can run.  If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2210 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2211 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212 # If not cross compiling, check that we can run a simple program.
2213 if test "$cross_compiling" != yes; then
2214   if { ac_try='./$ac_file'
2215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216   (eval $ac_try) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; }; then
2220     cross_compiling=no
2221   else
2222     if test "$cross_compiling" = maybe; then
2223         cross_compiling=yes
2224     else
2225         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231    { (exit 1); exit 1; }; }
2232     fi
2233   fi
2234 fi
2235 echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6
2237
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2244 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6
2246
2247 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2250   (eval $ac_link) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }; then
2254   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2255 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2256 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 # `rm'.
2258 for ac_file in conftest.exe conftest conftest.*; do
2259   test -f "$ac_file" || continue
2260   case $ac_file in
2261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2262     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2263           export ac_cv_exeext
2264           break;;
2265     * ) break;;
2266   esac
2267 done
2268 else
2269   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&2;}
2273    { (exit 1); exit 1; }; }
2274 fi
2275
2276 rm -f conftest$ac_cv_exeext
2277 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278 echo "${ECHO_T}$ac_cv_exeext" >&6
2279
2280 rm -f conftest.$ac_ext
2281 EXEEXT=$ac_cv_exeext
2282 ac_exeext=$EXEEXT
2283 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2285 if test "${ac_cv_objext+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.o conftest.obj
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; then
2310   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2311   case $ac_file in
2312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2313     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2314        break;;
2315   esac
2316 done
2317 else
2318   echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327
2328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2329 fi
2330 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2331 echo "${ECHO_T}$ac_cv_objext" >&6
2332 OBJEXT=$ac_cv_objext
2333 ac_objext=$OBJEXT
2334 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2335 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2336 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   cat >conftest.$ac_ext <<_ACEOF
2340 #line $LINENO "configure"
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346
2347 int
2348 main ()
2349 {
2350 #ifndef __GNUC__
2351        choke me
2352 #endif
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360   (eval $ac_compile) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -s conftest.$ac_objext'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; }; then
2370   ac_compiler_gnu=yes
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 ac_compiler_gnu=no
2376 fi
2377 rm -f conftest.$ac_objext conftest.$ac_ext
2378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2379
2380 fi
2381 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2382 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2383 GCC=`test $ac_compiler_gnu = yes && echo yes`
2384 ac_test_CFLAGS=${CFLAGS+set}
2385 ac_save_CFLAGS=$CFLAGS
2386 CFLAGS="-g"
2387 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2388 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2389 if test "${ac_cv_prog_cc_g+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   cat >conftest.$ac_ext <<_ACEOF
2393 #line $LINENO "configure"
2394 /* confdefs.h.  */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h.  */
2399
2400 int
2401 main ()
2402 {
2403
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410   (eval $ac_compile) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); } &&
2414          { ac_try='test -s conftest.$ac_objext'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   ac_cv_prog_cc_g=yes
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_cv_prog_cc_g=no
2426 fi
2427 rm -f conftest.$ac_objext conftest.$ac_ext
2428 fi
2429 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2430 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2431 if test "$ac_test_CFLAGS" = set; then
2432   CFLAGS=$ac_save_CFLAGS
2433 elif test $ac_cv_prog_cc_g = yes; then
2434   if test "$GCC" = yes; then
2435     CFLAGS="-g -O2"
2436   else
2437     CFLAGS="-g"
2438   fi
2439 else
2440   if test "$GCC" = yes; then
2441     CFLAGS="-O2"
2442   else
2443     CFLAGS=
2444   fi
2445 fi
2446 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2447 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2448 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   ac_cv_prog_cc_stdc=no
2452 ac_save_CC=$CC
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h.  */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h.  */
2460 #include <stdarg.h>
2461 #include <stdio.h>
2462 #include <sys/types.h>
2463 #include <sys/stat.h>
2464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2465 struct buf { int x; };
2466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2467 static char *e (p, i)
2468      char **p;
2469      int i;
2470 {
2471   return p[i];
2472 }
2473 static char *f (char * (*g) (char **, int), char **p, ...)
2474 {
2475   char *s;
2476   va_list v;
2477   va_start (v,p);
2478   s = g (p, va_arg (v,int));
2479   va_end (v);
2480   return s;
2481 }
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 int argc;
2487 char **argv;
2488 int
2489 main ()
2490 {
2491 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX                   -qlanglvl=ansi
2499 # Ultrix and OSF/1      -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2502 # SVR4                  -Xc -D__EXTENSIONS__
2503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2504 do
2505   CC="$ac_save_CC $ac_arg"
2506   rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508   (eval $ac_compile) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -s conftest.$ac_objext'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   ac_cv_prog_cc_stdc=$ac_arg
2519 break
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 fi
2525 rm -f conftest.$ac_objext
2526 done
2527 rm -f conftest.$ac_ext conftest.$ac_objext
2528 CC=$ac_save_CC
2529
2530 fi
2531
2532 case "x$ac_cv_prog_cc_stdc" in
2533   x|xno)
2534     echo "$as_me:$LINENO: result: none needed" >&5
2535 echo "${ECHO_T}none needed" >&6 ;;
2536   *)
2537     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2539     CC="$CC $ac_cv_prog_cc_stdc" ;;
2540 esac
2541
2542 # Some people use a C++ compiler to compile C.  Since we use `exit',
2543 # in C++ we need to declare it.  In case someone uses the same compiler
2544 # for both compiling C and C++ we need to have the C++ compiler decide
2545 # the declaration of exit, since it's the most demanding environment.
2546 cat >conftest.$ac_ext <<_ACEOF
2547 #ifndef __cplusplus
2548   choke me
2549 #endif
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); } &&
2557          { ac_try='test -s conftest.$ac_objext'
2558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559   (eval $ac_try) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; }; then
2563   for ac_declaration in \
2564    ''\
2565    '#include <stdlib.h>' \
2566    'extern "C" void std::exit (int) throw (); using std::exit;' \
2567    'extern "C" void std::exit (int); using std::exit;' \
2568    'extern "C" void exit (int) throw ();' \
2569    'extern "C" void exit (int);' \
2570    'void exit (int);'
2571 do
2572   cat >conftest.$ac_ext <<_ACEOF
2573 #line $LINENO "configure"
2574 /* confdefs.h.  */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h.  */
2579 #include <stdlib.h>
2580 $ac_declaration
2581 int
2582 main ()
2583 {
2584 exit (42);
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); } &&
2595          { ac_try='test -s conftest.$ac_objext'
2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597   (eval $ac_try) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601   :
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 continue
2607 fi
2608 rm -f conftest.$ac_objext conftest.$ac_ext
2609   cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 /* confdefs.h.  */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h.  */
2616 $ac_declaration
2617 int
2618 main ()
2619 {
2620 exit (42);
2621   ;
2622   return 0;
2623 }
2624 _ACEOF
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627   (eval $ac_compile) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } &&
2631          { ac_try='test -s conftest.$ac_objext'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; }; then
2637   break
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 fi
2643 rm -f conftest.$ac_objext conftest.$ac_ext
2644 done
2645 rm -f conftest*
2646 if test -n "$ac_declaration"; then
2647   echo '#ifdef __cplusplus' >>confdefs.h
2648   echo $ac_declaration      >>confdefs.h
2649   echo '#endif'             >>confdefs.h
2650 fi
2651
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 fi
2657 rm -f conftest.$ac_objext conftest.$ac_ext
2658 ac_ext=c
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 DEPDIR="${am__leading_dot}deps"
2664
2665           ac_config_commands="$ac_config_commands depfiles"
2666
2667
2668 am_make=${MAKE-make}
2669 cat > confinc << 'END'
2670 am__doit:
2671         @echo done
2672 .PHONY: am__doit
2673 END
2674 # If we don't find an include directive, just comment out the code.
2675 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2676 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2677 am__include="#"
2678 am__quote=
2679 _am_result=none
2680 # First try GNU make style include.
2681 echo "include confinc" > confmf
2682 # We grep out `Entering directory' and `Leaving directory'
2683 # messages which can occur if `w' ends up in MAKEFLAGS.
2684 # In particular we don't look at `^make:' because GNU make might
2685 # be invoked under some other name (usually "gmake"), in which
2686 # case it prints its new name instead of `make'.
2687 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2688    am__include=include
2689    am__quote=
2690    _am_result=GNU
2691 fi
2692 # Now try BSD make style include.
2693 if test "$am__include" = "#"; then
2694    echo '.include "confinc"' > confmf
2695    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2696       am__include=.include
2697       am__quote="\""
2698       _am_result=BSD
2699    fi
2700 fi
2701
2702
2703 echo "$as_me:$LINENO: result: $_am_result" >&5
2704 echo "${ECHO_T}$_am_result" >&6
2705 rm -f confinc confmf
2706
2707 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2708 if test "${enable_dependency_tracking+set}" = set; then
2709   enableval="$enable_dependency_tracking"
2710
2711 fi;
2712 if test "x$enable_dependency_tracking" != xno; then
2713   am_depcomp="$ac_aux_dir/depcomp"
2714   AMDEPBACKSLASH='\'
2715 fi
2716
2717
2718 if test "x$enable_dependency_tracking" != xno; then
2719   AMDEP_TRUE=
2720   AMDEP_FALSE='#'
2721 else
2722   AMDEP_TRUE='#'
2723   AMDEP_FALSE=
2724 fi
2725
2726
2727
2728
2729 depcc="$CC"   am_compiler_list=
2730
2731 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2737   # We make a subdir and do the tests there.  Otherwise we can end up
2738   # making bogus files that we don't know about and never remove.  For
2739   # instance it was reported that on HP-UX the gcc test will end up
2740   # making a dummy file named `D' -- because `-MD' means `put the output
2741   # in D'.
2742   mkdir conftest.dir
2743   # Copy depcomp to subdir because otherwise we won't find it if we're
2744   # using a relative directory.
2745   cp "$am_depcomp" conftest.dir
2746   cd conftest.dir
2747   # We will build objects and dependencies in a subdirectory because
2748   # it helps to detect inapplicable dependency modes.  For instance
2749   # both Tru64's cc and ICC support -MD to output dependencies as a
2750   # side effect of compilation, but ICC will put the dependencies in
2751   # the current directory while Tru64 will put them in the object
2752   # directory.
2753   mkdir sub
2754
2755   am_cv_CC_dependencies_compiler_type=none
2756   if test "$am_compiler_list" = ""; then
2757      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2758   fi
2759   for depmode in $am_compiler_list; do
2760     # Setup a source with many dependencies, because some compilers
2761     # like to wrap large dependency lists on column 80 (with \), and
2762     # we should not choose a depcomp mode which is confused by this.
2763     #
2764     # We need to recreate these files for each test, as the compiler may
2765     # overwrite some of them when testing with obscure command lines.
2766     # This happens at least with the AIX C compiler.
2767     : > sub/conftest.c
2768     for i in 1 2 3 4 5 6; do
2769       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2770       : > sub/conftst$i.h
2771     done
2772     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2773
2774     case $depmode in
2775     nosideeffect)
2776       # after this tag, mechanisms are not by side-effect, so they'll
2777       # only be used when explicitly requested
2778       if test "x$enable_dependency_tracking" = xyes; then
2779         continue
2780       else
2781         break
2782       fi
2783       ;;
2784     none) break ;;
2785     esac
2786     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2787     # mode.  It turns out that the SunPro C++ compiler does not properly
2788     # handle `-M -o', and we need to detect this.
2789     if depmode=$depmode \
2790        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2791        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2792        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2793          >/dev/null 2>conftest.err &&
2794        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2795        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2796        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2797       # icc doesn't choke on unknown options, it will just issue warnings
2798       # (even with -Werror).  So we grep stderr for any message
2799       # that says an option was ignored.
2800       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2801         am_cv_CC_dependencies_compiler_type=$depmode
2802         break
2803       fi
2804     fi
2805   done
2806
2807   cd ..
2808   rm -rf conftest.dir
2809 else
2810   am_cv_CC_dependencies_compiler_type=none
2811 fi
2812
2813 fi
2814 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2815 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2817
2818
2819
2820 if
2821   test "x$enable_dependency_tracking" != xno \
2822   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2823   am__fastdepCC_TRUE=
2824   am__fastdepCC_FALSE='#'
2825 else
2826   am__fastdepCC_TRUE='#'
2827   am__fastdepCC_FALSE=
2828 fi
2829
2830
2831
2832
2833         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2834 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2835 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   ac_check_lib_save_LIBS=$LIBS
2839 LIBS="-lcposix  $LIBS"
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2842 /* confdefs.h.  */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h.  */
2847
2848 /* Override any gcc2 internal prototype to avoid an error.  */
2849 #ifdef __cplusplus
2850 extern "C"
2851 #endif
2852 /* We use char because int might match the return type of a gcc2
2853    builtin and then its argument prototype would still apply.  */
2854 char strerror ();
2855 int
2856 main ()
2857 {
2858 strerror ();
2859   ;
2860   return 0;
2861 }
2862 _ACEOF
2863 rm -f conftest.$ac_objext conftest$ac_exeext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2865   (eval $ac_link) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } &&
2869          { ac_try='test -s conftest$ac_exeext'
2870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871   (eval $ac_try) 2>&5
2872   ac_status=$?
2873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874   (exit $ac_status); }; }; then
2875   ac_cv_lib_cposix_strerror=yes
2876 else
2877   echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 ac_cv_lib_cposix_strerror=no
2881 fi
2882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2883 LIBS=$ac_check_lib_save_LIBS
2884 fi
2885 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2886 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2887 if test $ac_cv_lib_cposix_strerror = yes; then
2888   LIBS="$LIBS -lcposix"
2889 fi
2890
2891
2892
2893
2894
2895
2896 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2897 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2898 if test "${am_cv_prog_cc_stdc+set}" = set; then
2899   echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901   am_cv_prog_cc_stdc=no
2902 ac_save_CC="$CC"
2903 # Don't try gcc -ansi; that turns off useful extensions and
2904 # breaks some systems' header files.
2905 # AIX                   -qlanglvl=ansi
2906 # Ultrix and OSF/1      -std1
2907 # HP-UX 10.20 and later -Ae
2908 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2909 # SVR4                  -Xc -D__EXTENSIONS__
2910 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2911 do
2912   CC="$ac_save_CC $ac_arg"
2913   cat >conftest.$ac_ext <<_ACEOF
2914 #line $LINENO "configure"
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920 #include <stdarg.h>
2921 #include <stdio.h>
2922 #include <sys/types.h>
2923 #include <sys/stat.h>
2924 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2925 struct buf { int x; };
2926 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2927 static char *e (p, i)
2928      char **p;
2929      int i;
2930 {
2931   return p[i];
2932 }
2933 static char *f (char * (*g) (char **, int), char **p, ...)
2934 {
2935   char *s;
2936   va_list v;
2937   va_start (v,p);
2938   s = g (p, va_arg (v,int));
2939   va_end (v);
2940   return s;
2941 }
2942 int test (int i, double x);
2943 struct s1 {int (*f) (int a);};
2944 struct s2 {int (*f) (double a);};
2945 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2946 int argc;
2947 char **argv;
2948
2949 int
2950 main ()
2951 {
2952
2953 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2954
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961   (eval $ac_compile) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); } &&
2965          { ac_try='test -s conftest.$ac_objext'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; }; then
2971   am_cv_prog_cc_stdc="$ac_arg"; break
2972 else
2973   echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 fi
2977 rm -f conftest.$ac_objext conftest.$ac_ext
2978 done
2979 CC="$ac_save_CC"
2980
2981 fi
2982
2983 if test -z "$am_cv_prog_cc_stdc"; then
2984   echo "$as_me:$LINENO: result: none needed" >&5
2985 echo "${ECHO_T}none needed" >&6
2986 else
2987   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2988 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2989 fi
2990 case "x$am_cv_prog_cc_stdc" in
2991   x|xno) ;;
2992   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2993 esac
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3001 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3002 # On Suns, sometimes $CPP names a directory.
3003 if test -n "$CPP" && test -d "$CPP"; then
3004   CPP=
3005 fi
3006 if test -z "$CPP"; then
3007   if test "${ac_cv_prog_CPP+set}" = set; then
3008   echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010       # Double quotes because CPP needs to be expanded
3011     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3012     do
3013       ac_preproc_ok=false
3014 for ac_c_preproc_warn_flag in '' yes
3015 do
3016   # Use a header file that comes with gcc, so configuring glibc
3017   # with a fresh cross-compiler works.
3018   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019   # <limits.h> exists even on freestanding compilers.
3020   # On the NeXT, cc -E runs the code through the compiler's parser,
3021   # not just through cpp. "Syntax error" is here to catch this case.
3022   cat >conftest.$ac_ext <<_ACEOF
3023 #line $LINENO "configure"
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029 #ifdef __STDC__
3030 # include <limits.h>
3031 #else
3032 # include <assert.h>
3033 #endif
3034                      Syntax error
3035 _ACEOF
3036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } >/dev/null; then
3044   if test -s conftest.err; then
3045     ac_cpp_err=$ac_c_preproc_warn_flag
3046   else
3047     ac_cpp_err=
3048   fi
3049 else
3050   ac_cpp_err=yes
3051 fi
3052 if test -z "$ac_cpp_err"; then
3053   :
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058   # Broken: fails on valid input.
3059 continue
3060 fi
3061 rm -f conftest.err conftest.$ac_ext
3062
3063   # OK, works on sane cases.  Now check whether non-existent headers
3064   # can be detected and how.
3065   cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072 #include <ac_nonexistent.h>
3073 _ACEOF
3074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } >/dev/null; then
3082   if test -s conftest.err; then
3083     ac_cpp_err=$ac_c_preproc_warn_flag
3084   else
3085     ac_cpp_err=
3086   fi
3087 else
3088   ac_cpp_err=yes
3089 fi
3090 if test -z "$ac_cpp_err"; then
3091   # Broken: success on invalid input.
3092 continue
3093 else
3094   echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097   # Passes both tests.
3098 ac_preproc_ok=:
3099 break
3100 fi
3101 rm -f conftest.err conftest.$ac_ext
3102
3103 done
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.$ac_ext
3106 if $ac_preproc_ok; then
3107   break
3108 fi
3109
3110     done
3111     ac_cv_prog_CPP=$CPP
3112
3113 fi
3114   CPP=$ac_cv_prog_CPP
3115 else
3116   ac_cv_prog_CPP=$CPP
3117 fi
3118 echo "$as_me:$LINENO: result: $CPP" >&5
3119 echo "${ECHO_T}$CPP" >&6
3120 ac_preproc_ok=false
3121 for ac_c_preproc_warn_flag in '' yes
3122 do
3123   # Use a header file that comes with gcc, so configuring glibc
3124   # with a fresh cross-compiler works.
3125   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3126   # <limits.h> exists even on freestanding compilers.
3127   # On the NeXT, cc -E runs the code through the compiler's parser,
3128   # not just through cpp. "Syntax error" is here to catch this case.
3129   cat >conftest.$ac_ext <<_ACEOF
3130 #line $LINENO "configure"
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   else
3154     ac_cpp_err=
3155   fi
3156 else
3157   ac_cpp_err=yes
3158 fi
3159 if test -z "$ac_cpp_err"; then
3160   :
3161 else
3162   echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165   # Broken: fails on valid input.
3166 continue
3167 fi
3168 rm -f conftest.err conftest.$ac_ext
3169
3170   # OK, works on sane cases.  Now check whether non-existent headers
3171   # can be detected and how.
3172   cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
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   else
3192     ac_cpp_err=
3193   fi
3194 else
3195   ac_cpp_err=yes
3196 fi
3197 if test -z "$ac_cpp_err"; then
3198   # Broken: success on invalid input.
3199 continue
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204   # Passes both tests.
3205 ac_preproc_ok=:
3206 break
3207 fi
3208 rm -f conftest.err conftest.$ac_ext
3209
3210 done
3211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3212 rm -f conftest.err conftest.$ac_ext
3213 if $ac_preproc_ok; then
3214   :
3215 else
3216   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3217 See \`config.log' for more details." >&5
3218 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3219 See \`config.log' for more details." >&2;}
3220    { (exit 1); exit 1; }; }
3221 fi
3222
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229
3230 echo "$as_me:$LINENO: checking for egrep" >&5
3231 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3232 if test "${ac_cv_prog_egrep+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3236     then ac_cv_prog_egrep='grep -E'
3237     else ac_cv_prog_egrep='egrep'
3238     fi
3239 fi
3240 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3241 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3242  EGREP=$ac_cv_prog_egrep
3243
3244
3245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3256                   inttypes.h stdint.h unistd.h
3257 do
3258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3259 echo "$as_me:$LINENO: checking for $ac_header" >&5
3260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3266 /* confdefs.h.  */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h.  */
3271 $ac_includes_default
3272
3273 #include <$ac_header>
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3277   (eval $ac_compile) 2>&5
3278   ac_status=$?
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); } &&
3281          { ac_try='test -s conftest.$ac_objext'
3282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283   (eval $ac_try) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; }; then
3287   eval "$as_ac_Header=yes"
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 eval "$as_ac_Header=no"
3293 fi
3294 rm -f conftest.$ac_objext conftest.$ac_ext
3295 fi
3296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3299   cat >>confdefs.h <<_ACEOF
3300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3301 _ACEOF
3302
3303 fi
3304
3305 done
3306
3307
3308
3309
3310 echo "$as_me:$LINENO: checking for function prototypes" >&5
3311 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3312 if test "$am_cv_prog_cc_stdc" != no; then
3313   echo "$as_me:$LINENO: result: yes" >&5
3314 echo "${ECHO_T}yes" >&6
3315
3316 cat >>confdefs.h <<\_ACEOF
3317 #define PROTOTYPES 1
3318 _ACEOF
3319
3320   U= ANSI2KNR=
3321 else
3322   echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3324   U=_ ANSI2KNR=./ansi2knr
3325 fi
3326 # Ensure some checks needed by ansi2knr itself.
3327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3329 if test "${ac_cv_header_stdc+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #include <stdlib.h>
3340 #include <stdarg.h>
3341 #include <string.h>
3342 #include <float.h>
3343
3344 int
3345 main ()
3346 {
3347
3348   ;
3349   return 0;
3350 }
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354   (eval $ac_compile) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } &&
3358          { ac_try='test -s conftest.$ac_objext'
3359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360   (eval $ac_try) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; }; then
3364   ac_cv_header_stdc=yes
3365 else
3366   echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 ac_cv_header_stdc=no
3370 fi
3371 rm -f conftest.$ac_objext conftest.$ac_ext
3372
3373 if test $ac_cv_header_stdc = yes; then
3374   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 #line $LINENO "configure"
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382 #include <string.h>
3383
3384 _ACEOF
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386   $EGREP "memchr" >/dev/null 2>&1; then
3387   :
3388 else
3389   ac_cv_header_stdc=no
3390 fi
3391 rm -f conftest*
3392
3393 fi
3394
3395 if test $ac_cv_header_stdc = yes; then
3396   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 #line $LINENO "configure"
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #include <stdlib.h>
3405
3406 _ACEOF
3407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3408   $EGREP "free" >/dev/null 2>&1; then
3409   :
3410 else
3411   ac_cv_header_stdc=no
3412 fi
3413 rm -f conftest*
3414
3415 fi
3416
3417 if test $ac_cv_header_stdc = yes; then
3418   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3419   if test "$cross_compiling" = yes; then
3420   :
3421 else
3422   cat >conftest.$ac_ext <<_ACEOF
3423 #line $LINENO "configure"
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429 #include <ctype.h>
3430 #if ((' ' & 0x0FF) == 0x020)
3431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3433 #else
3434 # define ISLOWER(c) \
3435                    (('a' <= (c) && (c) <= 'i') \
3436                      || ('j' <= (c) && (c) <= 'r') \
3437                      || ('s' <= (c) && (c) <= 'z'))
3438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3439 #endif
3440
3441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3442 int
3443 main ()
3444 {
3445   int i;
3446   for (i = 0; i < 256; i++)
3447     if (XOR (islower (i), ISLOWER (i))
3448         || toupper (i) != TOUPPER (i))
3449       exit(2);
3450   exit (0);
3451 }
3452 _ACEOF
3453 rm -f conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455   (eval $ac_link) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460   (eval $ac_try) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); }; }; then
3464   :
3465 else
3466   echo "$as_me: program exited with status $ac_status" >&5
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ( exit $ac_status )
3471 ac_cv_header_stdc=no
3472 fi
3473 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3474 fi
3475 fi
3476 fi
3477 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3478 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3479 if test $ac_cv_header_stdc = yes; then
3480
3481 cat >>confdefs.h <<\_ACEOF
3482 #define STDC_HEADERS 1
3483 _ACEOF
3484
3485 fi
3486
3487
3488 for ac_header in string.h
3489 do
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492   echo "$as_me:$LINENO: checking for $ac_header" >&5
3493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 fi
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3499 else
3500   # Is the header compilable?
3501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 $ac_includes_default
3511 #include <$ac_header>
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515   (eval $ac_compile) 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); } &&
3519          { ac_try='test -s conftest.$ac_objext'
3520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521   (eval $ac_try) 2>&5
3522   ac_status=$?
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); }; }; then
3525   ac_header_compiler=yes
3526 else
3527   echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 ac_header_compiler=no
3531 fi
3532 rm -f conftest.$ac_objext conftest.$ac_ext
3533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3534 echo "${ECHO_T}$ac_header_compiler" >&6
3535
3536 # Is the header present?
3537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546 #include <$ac_header>
3547 _ACEOF
3548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } >/dev/null; then
3556   if test -s conftest.err; then
3557     ac_cpp_err=$ac_c_preproc_warn_flag
3558   else
3559     ac_cpp_err=
3560   fi
3561 else
3562   ac_cpp_err=yes
3563 fi
3564 if test -z "$ac_cpp_err"; then
3565   ac_header_preproc=yes
3566 else
3567   echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570   ac_header_preproc=no
3571 fi
3572 rm -f conftest.err conftest.$ac_ext
3573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3574 echo "${ECHO_T}$ac_header_preproc" >&6
3575
3576 # So?  What about this header?
3577 case $ac_header_compiler:$ac_header_preproc in
3578   yes:no )
3579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3583     (
3584       cat <<\_ASBOX
3585 ## ------------------------------------ ##
3586 ## Report this to bug-autoconf@gnu.org. ##
3587 ## ------------------------------------ ##
3588 _ASBOX
3589     ) |
3590       sed "s/^/$as_me: WARNING:     /" >&2
3591     ;;
3592   no:yes )
3593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3595     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3599     (
3600       cat <<\_ASBOX
3601 ## ------------------------------------ ##
3602 ## Report this to bug-autoconf@gnu.org. ##
3603 ## ------------------------------------ ##
3604 _ASBOX
3605     ) |
3606       sed "s/^/$as_me: WARNING:     /" >&2
3607     ;;
3608 esac
3609 echo "$as_me:$LINENO: checking for $ac_header" >&5
3610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614   eval "$as_ac_Header=$ac_header_preproc"
3615 fi
3616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3618
3619 fi
3620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3621   cat >>confdefs.h <<_ACEOF
3622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623 _ACEOF
3624
3625 fi
3626
3627 done
3628
3629
3630 if test "x$U" != "x"; then
3631   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3632 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3633    { (exit 1); exit 1; }; }
3634 fi
3635 ac_ext=c
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3641 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3644   CPP=
3645 fi
3646 if test -z "$CPP"; then
3647   if test "${ac_cv_prog_CPP+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650       # Double quotes because CPP needs to be expanded
3651     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3652     do
3653       ac_preproc_ok=false
3654 for ac_c_preproc_warn_flag in '' yes
3655 do
3656   # Use a header file that comes with gcc, so configuring glibc
3657   # with a fresh cross-compiler works.
3658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659   # <limits.h> exists even on freestanding compilers.
3660   # On the NeXT, cc -E runs the code through the compiler's parser,
3661   # not just through cpp. "Syntax error" is here to catch this case.
3662   cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #ifdef __STDC__
3670 # include <limits.h>
3671 #else
3672 # include <assert.h>
3673 #endif
3674                      Syntax error
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   else
3687     ac_cpp_err=
3688   fi
3689 else
3690   ac_cpp_err=yes
3691 fi
3692 if test -z "$ac_cpp_err"; then
3693   :
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698   # Broken: fails on valid input.
3699 continue
3700 fi
3701 rm -f conftest.err conftest.$ac_ext
3702
3703   # OK, works on sane cases.  Now check whether non-existent headers
3704   # can be detected and how.
3705   cat >conftest.$ac_ext <<_ACEOF
3706 #line $LINENO "configure"
3707 /* confdefs.h.  */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712 #include <ac_nonexistent.h>
3713 _ACEOF
3714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3716   ac_status=$?
3717   grep -v '^ *+' conftest.er1 >conftest.err
3718   rm -f conftest.er1
3719   cat conftest.err >&5
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } >/dev/null; then
3722   if test -s conftest.err; then
3723     ac_cpp_err=$ac_c_preproc_warn_flag
3724   else
3725     ac_cpp_err=
3726   fi
3727 else
3728   ac_cpp_err=yes
3729 fi
3730 if test -z "$ac_cpp_err"; then
3731   # Broken: success on invalid input.
3732 continue
3733 else
3734   echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737   # Passes both tests.
3738 ac_preproc_ok=:
3739 break
3740 fi
3741 rm -f conftest.err conftest.$ac_ext
3742
3743 done
3744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745 rm -f conftest.err conftest.$ac_ext
3746 if $ac_preproc_ok; then
3747   break
3748 fi
3749
3750     done
3751     ac_cv_prog_CPP=$CPP
3752
3753 fi
3754   CPP=$ac_cv_prog_CPP
3755 else
3756   ac_cv_prog_CPP=$CPP
3757 fi
3758 echo "$as_me:$LINENO: result: $CPP" >&5
3759 echo "${ECHO_T}$CPP" >&6
3760 ac_preproc_ok=false
3761 for ac_c_preproc_warn_flag in '' yes
3762 do
3763   # Use a header file that comes with gcc, so configuring glibc
3764   # with a fresh cross-compiler works.
3765   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766   # <limits.h> exists even on freestanding compilers.
3767   # On the NeXT, cc -E runs the code through the compiler's parser,
3768   # not just through cpp. "Syntax error" is here to catch this case.
3769   cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776 #ifdef __STDC__
3777 # include <limits.h>
3778 #else
3779 # include <assert.h>
3780 #endif
3781                      Syntax error
3782 _ACEOF
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3785   ac_status=$?
3786   grep -v '^ *+' conftest.er1 >conftest.err
3787   rm -f conftest.er1
3788   cat conftest.err >&5
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } >/dev/null; then
3791   if test -s conftest.err; then
3792     ac_cpp_err=$ac_c_preproc_warn_flag
3793   else
3794     ac_cpp_err=
3795   fi
3796 else
3797   ac_cpp_err=yes
3798 fi
3799 if test -z "$ac_cpp_err"; then
3800   :
3801 else
3802   echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805   # Broken: fails on valid input.
3806 continue
3807 fi
3808 rm -f conftest.err conftest.$ac_ext
3809
3810   # OK, works on sane cases.  Now check whether non-existent headers
3811   # can be detected and how.
3812   cat >conftest.$ac_ext <<_ACEOF
3813 #line $LINENO "configure"
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3819 #include <ac_nonexistent.h>
3820 _ACEOF
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823   ac_status=$?
3824   grep -v '^ *+' conftest.er1 >conftest.err
3825   rm -f conftest.er1
3826   cat conftest.err >&5
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); } >/dev/null; then
3829   if test -s conftest.err; then
3830     ac_cpp_err=$ac_c_preproc_warn_flag
3831   else
3832     ac_cpp_err=
3833   fi
3834 else
3835   ac_cpp_err=yes
3836 fi
3837 if test -z "$ac_cpp_err"; then
3838   # Broken: success on invalid input.
3839 continue
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844   # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3847 fi
3848 rm -f conftest.err conftest.$ac_ext
3849
3850 done
3851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852 rm -f conftest.err conftest.$ac_ext
3853 if $ac_preproc_ok; then
3854   :
3855 else
3856   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3857 See \`config.log' for more details." >&5
3858 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3859 See \`config.log' for more details." >&2;}
3860    { (exit 1); exit 1; }; }
3861 fi
3862
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
3869 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3870 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3871 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3872 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   cat >conftest.make <<\_ACEOF
3876 all:
3877         @echo 'ac_maketemp="$(MAKE)"'
3878 _ACEOF
3879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3880 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3881 if test -n "$ac_maketemp"; then
3882   eval ac_cv_prog_make_${ac_make}_set=yes
3883 else
3884   eval ac_cv_prog_make_${ac_make}_set=no
3885 fi
3886 rm -f conftest.make
3887 fi
3888 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3889   echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6
3891   SET_MAKE=
3892 else
3893   echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3895   SET_MAKE="MAKE=${MAKE-make}"
3896 fi
3897
3898 # Find a good install program.  We prefer a C program (faster),
3899 # so one script is as good as another.  But avoid the broken or
3900 # incompatible versions:
3901 # SysV /etc/install, /usr/sbin/install
3902 # SunOS /usr/etc/install
3903 # IRIX /sbin/install
3904 # AIX /bin/install
3905 # AmigaOS /C/install, which installs bootblocks on floppy discs
3906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909 # ./install, which can be erroneously created by make from ./install.sh.
3910 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3911 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3912 if test -z "$INSTALL"; then
3913 if test "${ac_cv_path_install+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921   # Account for people who put trailing slashes in PATH elements.
3922 case $as_dir/ in
3923   ./ | .// | /cC/* | \
3924   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3925   /usr/ucb/* ) ;;
3926   *)
3927     # OSF1 and SCO ODT 3.0 have their own names for install.
3928     # Don't use installbsd from OSF since it installs stuff as root
3929     # by default.
3930     for ac_prog in ginstall scoinst install; do
3931       for ac_exec_ext in '' $ac_executable_extensions; do
3932         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3933           if test $ac_prog = install &&
3934             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935             # AIX install.  It has an incompatible calling convention.
3936             :
3937           elif test $ac_prog = install &&
3938             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3939             # program-specific install script used by HP pwplus--don't use.
3940             :
3941           else
3942             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3943             break 3
3944           fi
3945         fi
3946       done
3947     done
3948     ;;
3949 esac
3950 done
3951
3952
3953 fi
3954   if test "${ac_cv_path_install+set}" = set; then
3955     INSTALL=$ac_cv_path_install
3956   else
3957     # As a last resort, use the slow shell script.  We don't cache a
3958     # path for INSTALL within a source directory, because that will
3959     # break other packages using the cache if that directory is
3960     # removed, or if the path is relative.
3961     INSTALL=$ac_install_sh
3962   fi
3963 fi
3964 echo "$as_me:$LINENO: result: $INSTALL" >&5
3965 echo "${ECHO_T}$INSTALL" >&6
3966
3967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3968 # It thinks the first close brace ends the variable substitution.
3969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3970
3971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3972
3973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3974
3975 if test -n "$ac_tool_prefix"; then
3976   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   if test -n "$RANLIB"; then
3984   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991   for ac_exec_ext in '' $ac_executable_extensions; do
3992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995     break 2
3996   fi
3997 done
3998 done
3999
4000 fi
4001 fi
4002 RANLIB=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004   echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4006 else
4007   echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009 fi
4010
4011 fi
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013   ac_ct_RANLIB=$RANLIB
4014   # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   if test -n "$ac_ct_RANLIB"; then
4022   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027   IFS=$as_save_IFS
4028   test -z "$as_dir" && as_dir=.
4029   for ac_exec_ext in '' $ac_executable_extensions; do
4030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031     ac_cv_prog_ac_ct_RANLIB="ranlib"
4032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033     break 2
4034   fi
4035 done
4036 done
4037
4038   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4039 fi
4040 fi
4041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4045 else
4046   echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048 fi
4049
4050   RANLIB=$ac_ct_RANLIB
4051 else
4052   RANLIB="$ac_cv_prog_RANLIB"
4053 fi
4054
4055 if test -n "$ac_tool_prefix"; then
4056   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}ar; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_AR+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   if test -n "$AR"; then
4064   ac_cv_prog_AR="$AR" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071   for ac_exec_ext in '' $ac_executable_extensions; do
4072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073     ac_cv_prog_AR="${ac_tool_prefix}ar"
4074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078 done
4079
4080 fi
4081 fi
4082 AR=$ac_cv_prog_AR
4083 if test -n "$AR"; then
4084   echo "$as_me:$LINENO: result: $AR" >&5
4085 echo "${ECHO_T}$AR" >&6
4086 else
4087   echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089 fi
4090
4091 fi
4092 if test -z "$ac_cv_prog_AR"; then
4093   ac_ct_AR=$AR
4094   # Extract the first word of "ar", so it can be a program name with args.
4095 set dummy ar; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   if test -n "$ac_ct_AR"; then
4102   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109   for ac_exec_ext in '' $ac_executable_extensions; do
4110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111     ac_cv_prog_ac_ct_AR="ar"
4112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116 done
4117
4118   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4119 fi
4120 fi
4121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4122 if test -n "$ac_ct_AR"; then
4123   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4124 echo "${ECHO_T}$ac_ct_AR" >&6
4125 else
4126   echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4128 fi
4129
4130   AR=$ac_ct_AR
4131 else
4132   AR="$ac_cv_prog_AR"
4133 fi
4134
4135
4136 echo "$as_me:$LINENO: checking for inline" >&5
4137 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4138 if test "${ac_cv_c_inline+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   ac_cv_c_inline=no
4142 for ac_kw in inline __inline__ __inline; do
4143   cat >conftest.$ac_ext <<_ACEOF
4144 #line $LINENO "configure"
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150 #ifndef __cplusplus
4151 typedef int foo_t;
4152 static $ac_kw foo_t static_foo () {return 0; }
4153 $ac_kw foo_t foo () {return 0; }
4154 #endif
4155
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159   (eval $ac_compile) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); } &&
4163          { ac_try='test -s conftest.$ac_objext'
4164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165   (eval $ac_try) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   ac_cv_c_inline=$ac_kw; break
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 fi
4175 rm -f conftest.$ac_objext conftest.$ac_ext
4176 done
4177
4178 fi
4179 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4180 echo "${ECHO_T}$ac_cv_c_inline" >&6
4181 case $ac_cv_c_inline in
4182   inline | yes) ;;
4183   no)
4184 cat >>confdefs.h <<\_ACEOF
4185 #define inline
4186 _ACEOF
4187  ;;
4188   *)  cat >>confdefs.h <<_ACEOF
4189 #define inline $ac_cv_c_inline
4190 _ACEOF
4191  ;;
4192 esac
4193
4194 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4195 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4196 if test "${ac_cv_c_const+set}" = set; then
4197   echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199   cat >conftest.$ac_ext <<_ACEOF
4200 #line $LINENO "configure"
4201 /* confdefs.h.  */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h.  */
4206
4207 int
4208 main ()
4209 {
4210 /* FIXME: Include the comments suggested by Paul. */
4211 #ifndef __cplusplus
4212   /* Ultrix mips cc rejects this.  */
4213   typedef int charset[2];
4214   const charset x;
4215   /* SunOS 4.1.1 cc rejects this.  */
4216   char const *const *ccp;
4217   char **p;
4218   /* NEC SVR4.0.2 mips cc rejects this.  */
4219   struct point {int x, y;};
4220   static struct point const zero = {0,0};
4221   /* AIX XL C 1.02.0.0 rejects this.
4222      It does not let you subtract one const X* pointer from another in
4223      an arm of an if-expression whose if-part is not a constant
4224      expression */
4225   const char *g = "string";
4226   ccp = &g + (g ? g-g : 0);
4227   /* HPUX 7.0 cc rejects these. */
4228   ++ccp;
4229   p = (char**) ccp;
4230   ccp = (char const *const *) p;
4231   { /* SCO 3.2v4 cc rejects this.  */
4232     char *t;
4233     char const *s = 0 ? (char *) 0 : (char const *) 0;
4234
4235     *t++ = 0;
4236   }
4237   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4238     int x[] = {25, 17};
4239     const int *foo = &x[0];
4240     ++foo;
4241   }
4242   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4243     typedef const int *iptr;
4244     iptr p = 0;
4245     ++p;
4246   }
4247   { /* AIX XL C 1.02.0.0 rejects this saying
4248        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4249     struct s { int j; const int *ap[3]; };
4250     struct s *b; b->j = 5;
4251   }
4252   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4253     const int foo = 10;
4254   }
4255 #endif
4256
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263   (eval $ac_compile) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); } &&
4267          { ac_try='test -s conftest.$ac_objext'
4268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269   (eval $ac_try) 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; }; then
4273   ac_cv_c_const=yes
4274 else
4275   echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 ac_cv_c_const=no
4279 fi
4280 rm -f conftest.$ac_objext conftest.$ac_ext
4281 fi
4282 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4283 echo "${ECHO_T}$ac_cv_c_const" >&6
4284 if test $ac_cv_c_const = no; then
4285
4286 cat >>confdefs.h <<\_ACEOF
4287 #define const
4288 _ACEOF
4289
4290 fi
4291
4292
4293 # Check whether --enable-largefile or --disable-largefile was given.
4294 if test "${enable_largefile+set}" = set; then
4295   enableval="$enable_largefile"
4296
4297 fi;
4298 if test "$enable_largefile" != no; then
4299
4300   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4301 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4302 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   ac_cv_sys_largefile_CC=no
4306      if test "$GCC" != yes; then
4307        ac_save_CC=$CC
4308        while :; do
4309          # IRIX 6.2 and later do not support large files by default,
4310          # so use the C compiler's -n32 option if that helps.
4311          cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 #include <sys/types.h>
4319  /* Check that off_t can represent 2**63 - 1 correctly.
4320     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4321     since some C++ compilers masquerading as C compilers
4322     incorrectly reject 9223372036854775807.  */
4323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4324   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4325                        && LARGE_OFF_T % 2147483647 == 1)
4326                       ? 1 : -1];
4327 int
4328 main ()
4329 {
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335          rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337   (eval $ac_compile) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } &&
4341          { ac_try='test -s conftest.$ac_objext'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   break
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 fi
4353 rm -f conftest.$ac_objext
4354          CC="$CC -n32"
4355          rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357   (eval $ac_compile) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } &&
4361          { ac_try='test -s conftest.$ac_objext'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; }; then
4367   ac_cv_sys_largefile_CC=' -n32'; break
4368 else
4369   echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 fi
4373 rm -f conftest.$ac_objext
4374          break
4375        done
4376        CC=$ac_save_CC
4377        rm -f conftest.$ac_ext
4378     fi
4379 fi
4380 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4381 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4382   if test "$ac_cv_sys_largefile_CC" != no; then
4383     CC=$CC$ac_cv_sys_largefile_CC
4384   fi
4385
4386   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4387 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4388 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   while :; do
4392   ac_cv_sys_file_offset_bits=no
4393   cat >conftest.$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400 #include <sys/types.h>
4401  /* Check that off_t can represent 2**63 - 1 correctly.
4402     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4403     since some C++ compilers masquerading as C compilers
4404     incorrectly reject 9223372036854775807.  */
4405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4406   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4407                        && LARGE_OFF_T % 2147483647 == 1)
4408                       ? 1 : -1];
4409 int
4410 main ()
4411 {
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419   (eval $ac_compile) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); } &&
4423          { ac_try='test -s conftest.$ac_objext'
4424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425   (eval $ac_try) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; }; then
4429   break
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 fi
4435 rm -f conftest.$ac_objext conftest.$ac_ext
4436   cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 /* confdefs.h.  */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h.  */
4443 #define _FILE_OFFSET_BITS 64
4444 #include <sys/types.h>
4445  /* Check that off_t can represent 2**63 - 1 correctly.
4446     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447     since some C++ compilers masquerading as C compilers
4448     incorrectly reject 9223372036854775807.  */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451                        && LARGE_OFF_T % 2147483647 == 1)
4452                       ? 1 : -1];
4453 int
4454 main ()
4455 {
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463   (eval $ac_compile) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } &&
4467          { ac_try='test -s conftest.$ac_objext'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   ac_cv_sys_file_offset_bits=64; break
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 fi
4479 rm -f conftest.$ac_objext conftest.$ac_ext
4480   break
4481 done
4482 fi
4483 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4484 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4485 if test "$ac_cv_sys_file_offset_bits" != no; then
4486
4487 cat >>confdefs.h <<_ACEOF
4488 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4489 _ACEOF
4490
4491 fi
4492 rm -f conftest*
4493   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4494 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4495 if test "${ac_cv_sys_large_files+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   while :; do
4499   ac_cv_sys_large_files=no
4500   cat >conftest.$ac_ext <<_ACEOF
4501 #line $LINENO "configure"
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 #include <sys/types.h>
4508  /* Check that off_t can represent 2**63 - 1 correctly.
4509     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510     since some C++ compilers masquerading as C compilers
4511     incorrectly reject 9223372036854775807.  */
4512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4513   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514                        && LARGE_OFF_T % 2147483647 == 1)
4515                       ? 1 : -1];
4516 int
4517 main ()
4518 {
4519
4520   ;
4521   return 0;
4522 }
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526   (eval $ac_compile) 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } &&
4530          { ac_try='test -s conftest.$ac_objext'
4531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532   (eval $ac_try) 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); }; }; then
4536   break
4537 else
4538   echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541 fi
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4543   cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 #define _LARGE_FILES 1
4551 #include <sys/types.h>
4552  /* Check that off_t can represent 2**63 - 1 correctly.
4553     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4554     since some C++ compilers masquerading as C compilers
4555     incorrectly reject 9223372036854775807.  */
4556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4557   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4558                        && LARGE_OFF_T % 2147483647 == 1)
4559                       ? 1 : -1];
4560 int
4561 main ()
4562 {
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } &&
4574          { ac_try='test -s conftest.$ac_objext'
4575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576   (eval $ac_try) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }; }; then
4580   ac_cv_sys_large_files=1; break
4581 else
4582   echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 fi
4586 rm -f conftest.$ac_objext conftest.$ac_ext
4587   break
4588 done
4589 fi
4590 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4591 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4592 if test "$ac_cv_sys_large_files" != no; then
4593
4594 cat >>confdefs.h <<_ACEOF
4595 #define _LARGE_FILES $ac_cv_sys_large_files
4596 _ACEOF
4597
4598 fi
4599 rm -f conftest*
4600 fi
4601
4602
4603 # Extract the first word of "dbx", so it can be a program name with args.
4604 set dummy dbx; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_path_DBX+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   case $DBX in
4611   [\\/]* | ?:[\\/]*)
4612   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4613   ;;
4614   *)
4615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620   for ac_exec_ext in '' $ac_executable_extensions; do
4621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627 done
4628
4629   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4630   ;;
4631 esac
4632 fi
4633 DBX=$ac_cv_path_DBX
4634
4635 if test -n "$DBX"; then
4636   echo "$as_me:$LINENO: result: $DBX" >&5
4637 echo "${ECHO_T}$DBX" >&6
4638 else
4639   echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642
4643 # Extract the first word of "gdb", so it can be a program name with args.
4644 set dummy gdb; ac_word=$2
4645 echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4647 if test "${ac_cv_path_GDB+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   case $GDB in
4651   [\\/]* | ?:[\\/]*)
4652   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4653   ;;
4654   *)
4655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660   for ac_exec_ext in '' $ac_executable_extensions; do
4661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664     break 2
4665   fi
4666 done
4667 done
4668
4669   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4670   ;;
4671 esac
4672 fi
4673 GDB=$ac_cv_path_GDB
4674
4675 if test -n "$GDB"; then
4676   echo "$as_me:$LINENO: result: $GDB" >&5
4677 echo "${ECHO_T}$GDB" >&6
4678 else
4679   echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681 fi
4682
4683 # Extract the first word of "sdb", so it can be a program name with args.
4684 set dummy sdb; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_path_SDB+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   case $SDB in
4691   [\\/]* | ?:[\\/]*)
4692   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4693   ;;
4694   *)
4695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698   IFS=$as_save_IFS
4699   test -z "$as_dir" && as_dir=.
4700   for ac_exec_ext in '' $ac_executable_extensions; do
4701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704     break 2
4705   fi
4706 done
4707 done
4708
4709   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4710   ;;
4711 esac
4712 fi
4713 SDB=$ac_cv_path_SDB
4714
4715 if test -n "$SDB"; then
4716   echo "$as_me:$LINENO: result: $SDB" >&5
4717 echo "${ECHO_T}$SDB" >&6
4718 else
4719   echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4721 fi
4722
4723
4724 if test $GDB != no ; then
4725         DEBUGGER=$GDB
4726 elif test $DBX != no ; then
4727         DEBUGGER=$DBX
4728 elif test $SDB != no ; then
4729         DEBUGGER=$SDB
4730 else
4731         DEBUGGER=no
4732 fi
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758 for ac_header in inttypes.h
4759 do
4760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762   echo "$as_me:$LINENO: checking for $ac_header" >&5
4763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 fi
4767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4769 else
4770   # Is the header compilable?
4771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4774 #line $LINENO "configure"
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780 $ac_includes_default
4781 #include <$ac_header>
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785   (eval $ac_compile) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); } &&
4789          { ac_try='test -s conftest.$ac_objext'
4790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); }; }; then
4795   ac_header_compiler=yes
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 ac_header_compiler=no
4801 fi
4802 rm -f conftest.$ac_objext conftest.$ac_ext
4803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4804 echo "${ECHO_T}$ac_header_compiler" >&6
4805
4806 # Is the header present?
4807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816 #include <$ac_header>
4817 _ACEOF
4818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4819   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4820   ac_status=$?
4821   grep -v '^ *+' conftest.er1 >conftest.err
4822   rm -f conftest.er1
4823   cat conftest.err >&5
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); } >/dev/null; then
4826   if test -s conftest.err; then
4827     ac_cpp_err=$ac_c_preproc_warn_flag
4828   else
4829     ac_cpp_err=
4830   fi
4831 else
4832   ac_cpp_err=yes
4833 fi
4834 if test -z "$ac_cpp_err"; then
4835   ac_header_preproc=yes
4836 else
4837   echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840   ac_header_preproc=no
4841 fi
4842 rm -f conftest.err conftest.$ac_ext
4843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4844 echo "${ECHO_T}$ac_header_preproc" >&6
4845
4846 # So?  What about this header?
4847 case $ac_header_compiler:$ac_header_preproc in
4848   yes:no )
4849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4853     (
4854       cat <<\_ASBOX
4855 ## ------------------------------------ ##
4856 ## Report this to bug-autoconf@gnu.org. ##
4857 ## ------------------------------------ ##
4858 _ASBOX
4859     ) |
4860       sed "s/^/$as_me: WARNING:     /" >&2
4861     ;;
4862   no:yes )
4863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4869     (
4870       cat <<\_ASBOX
4871 ## ------------------------------------ ##
4872 ## Report this to bug-autoconf@gnu.org. ##
4873 ## ------------------------------------ ##
4874 _ASBOX
4875     ) |
4876       sed "s/^/$as_me: WARNING:     /" >&2
4877     ;;
4878 esac
4879 echo "$as_me:$LINENO: checking for $ac_header" >&5
4880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884   eval "$as_ac_Header=$ac_header_preproc"
4885 fi
4886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4888
4889 fi
4890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4891   cat >>confdefs.h <<_ACEOF
4892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4893 _ACEOF
4894
4895 fi
4896
4897 done
4898
4899 echo "$as_me:$LINENO: checking for uint32_t" >&5
4900 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4901 if test "${ac_cv_type_uint32_t+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   cat >conftest.$ac_ext <<_ACEOF
4905 #line $LINENO "configure"
4906 /* confdefs.h.  */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h.  */
4911 $ac_includes_default
4912 int
4913 main ()
4914 {
4915 if ((uint32_t *) 0)
4916   return 0;
4917 if (sizeof (uint32_t))
4918   return 0;
4919   ;
4920   return 0;
4921 }
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925   (eval $ac_compile) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); } &&
4929          { ac_try='test -s conftest.$ac_objext'
4930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931   (eval $ac_try) 2>&5
4932   ac_status=$?
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); }; }; then
4935   ac_cv_type_uint32_t=yes
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940 ac_cv_type_uint32_t=no
4941 fi
4942 rm -f conftest.$ac_objext conftest.$ac_ext
4943 fi
4944 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4945 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4946 if test $ac_cv_type_uint32_t = yes; then
4947
4948 cat >>confdefs.h <<\_ACEOF
4949 #define HAVE_C99_INTTYPES 1
4950 _ACEOF
4951
4952 else
4953   echo "$as_me:$LINENO: checking for short" >&5
4954 echo $ECHO_N "checking for short... $ECHO_C" >&6
4955 if test "${ac_cv_type_short+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 /* confdefs.h.  */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h.  */
4965 $ac_includes_default
4966 int
4967 main ()
4968 {
4969 if ((short *) 0)
4970   return 0;
4971 if (sizeof (short))
4972   return 0;
4973   ;
4974   return 0;
4975 }
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979   (eval $ac_compile) 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } &&
4983          { ac_try='test -s conftest.$ac_objext'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; }; then
4989   ac_cv_type_short=yes
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 ac_cv_type_short=no
4995 fi
4996 rm -f conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4999 echo "${ECHO_T}$ac_cv_type_short" >&6
5000
5001 echo "$as_me:$LINENO: checking size of short" >&5
5002 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5003 if test "${ac_cv_sizeof_short+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   if test "$ac_cv_type_short" = yes; then
5007   # The cast to unsigned long works around a bug in the HP C Compiler
5008   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5009   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5010   # This bug is HP SR number 8606223364.
5011   if test "$cross_compiling" = yes; then
5012   # Depending upon the size, compute the lo and hi bounds.
5013 cat >conftest.$ac_ext <<_ACEOF
5014 #line $LINENO "configure"
5015 /* confdefs.h.  */
5016 _ACEOF
5017 cat confdefs.h >>conftest.$ac_ext
5018 cat >>conftest.$ac_ext <<_ACEOF
5019 /* end confdefs.h.  */
5020 $ac_includes_default
5021 int
5022 main ()
5023 {
5024 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5025 test_array [0] = 0
5026
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033   (eval $ac_compile) 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } &&
5037          { ac_try='test -s conftest.$ac_objext'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; }; then
5043   ac_lo=0 ac_mid=0
5044   while :; do
5045     cat >conftest.$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052 $ac_includes_default
5053 int
5054 main ()
5055 {
5056 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5057 test_array [0] = 0
5058
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065   (eval $ac_compile) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); } &&
5069          { ac_try='test -s conftest.$ac_objext'
5070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071   (eval $ac_try) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; }; then
5075   ac_hi=$ac_mid; break
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 ac_lo=`expr $ac_mid + 1`
5081                     if test $ac_lo -le $ac_mid; then
5082                       ac_lo= ac_hi=
5083                       break
5084                     fi
5085                     ac_mid=`expr 2 '*' $ac_mid + 1`
5086 fi
5087 rm -f conftest.$ac_objext conftest.$ac_ext
5088   done
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100 $ac_includes_default
5101 int
5102 main ()
5103 {
5104 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5105 test_array [0] = 0
5106
5107   ;
5108   return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113   (eval $ac_compile) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } &&
5117          { ac_try='test -s conftest.$ac_objext'
5118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_hi=-1 ac_mid=-1
5124   while :; do
5125     cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 $ac_includes_default
5133 int
5134 main ()
5135 {
5136 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5137 test_array [0] = 0
5138
5139   ;
5140   return 0;
5141 }
5142 _ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145   (eval $ac_compile) 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); } &&
5149          { ac_try='test -s conftest.$ac_objext'
5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151   (eval $ac_try) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; }; then
5155   ac_lo=$ac_mid; break
5156 else
5157   echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 ac_hi=`expr '(' $ac_mid ')' - 1`
5161                        if test $ac_mid -le $ac_hi; then
5162                          ac_lo= ac_hi=
5163                          break
5164                        fi
5165                        ac_mid=`expr 2 '*' $ac_mid`
5166 fi
5167 rm -f conftest.$ac_objext conftest.$ac_ext
5168   done
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 ac_lo= ac_hi=
5174 fi
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5176 fi
5177 rm -f conftest.$ac_objext conftest.$ac_ext
5178 # Binary search between lo and hi bounds.
5179 while test "x$ac_lo" != "x$ac_hi"; do
5180   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5181   cat >conftest.$ac_ext <<_ACEOF
5182 #line $LINENO "configure"
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188 $ac_includes_default
5189 int
5190 main ()
5191 {
5192 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5193 test_array [0] = 0
5194
5195   ;
5196   return 0;
5197 }
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201   (eval $ac_compile) 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_hi=$ac_mid
5212 else
5213   echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216 ac_lo=`expr '(' $ac_mid ')' + 1`
5217 fi
5218 rm -f conftest.$ac_objext conftest.$ac_ext
5219 done
5220 case $ac_lo in
5221 ?*) ac_cv_sizeof_short=$ac_lo;;
5222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (short), 77
5225 See \`config.log' for more details." >&2;}
5226    { (exit 1); exit 1; }; } ;;
5227 esac
5228 else
5229   if test "$cross_compiling" = yes; then
5230   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5231 See \`config.log' for more details." >&5
5232 echo "$as_me: error: cannot run test program while cross compiling
5233 See \`config.log' for more details." >&2;}
5234    { (exit 1); exit 1; }; }
5235 else
5236   cat >conftest.$ac_ext <<_ACEOF
5237 #line $LINENO "configure"
5238 /* confdefs.h.  */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h.  */
5243 $ac_includes_default
5244 long longval () { return (long) (sizeof (short)); }
5245 unsigned long ulongval () { return (long) (sizeof (short)); }
5246 #include <stdio.h>
5247 #include <stdlib.h>
5248 int
5249 main ()
5250 {
5251
5252   FILE *f = fopen ("conftest.val", "w");
5253   if (! f)
5254     exit (1);
5255   if (((long) (sizeof (short))) < 0)
5256     {
5257       long i = longval ();
5258       if (i != ((long) (sizeof (short))))
5259         exit (1);
5260       fprintf (f, "%ld\n", i);
5261     }
5262   else
5263     {
5264       unsigned long i = ulongval ();
5265       if (i != ((long) (sizeof (short))))
5266         exit (1);
5267       fprintf (f, "%lu\n", i);
5268     }
5269   exit (ferror (f) || fclose (f) != 0);
5270
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277   (eval $ac_link) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282   (eval $ac_try) 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }; }; then
5286   ac_cv_sizeof_short=`cat conftest.val`
5287 else
5288   echo "$as_me: program exited with status $ac_status" >&5
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 ( exit $ac_status )
5293 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5294 See \`config.log' for more details." >&5
5295 echo "$as_me: error: cannot compute sizeof (short), 77
5296 See \`config.log' for more details." >&2;}
5297    { (exit 1); exit 1; }; }
5298 fi
5299 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 fi
5302 rm -f conftest.val
5303 else
5304   ac_cv_sizeof_short=0
5305 fi
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5308 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5309 cat >>confdefs.h <<_ACEOF
5310 #define SIZEOF_SHORT $ac_cv_sizeof_short
5311 _ACEOF
5312
5313
5314    echo "$as_me:$LINENO: checking for int" >&5
5315 echo $ECHO_N "checking for int... $ECHO_C" >&6
5316 if test "${ac_cv_type_int+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   cat >conftest.$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5321 /* confdefs.h.  */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h.  */
5326 $ac_includes_default
5327 int
5328 main ()
5329 {
5330 if ((int *) 0)
5331   return 0;
5332 if (sizeof (int))
5333   return 0;
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340   (eval $ac_compile) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); } &&
5344          { ac_try='test -s conftest.$ac_objext'
5345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   ac_cv_type_int=yes
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 ac_cv_type_int=no
5356 fi
5357 rm -f conftest.$ac_objext conftest.$ac_ext
5358 fi
5359 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5360 echo "${ECHO_T}$ac_cv_type_int" >&6
5361
5362 echo "$as_me:$LINENO: checking size of int" >&5
5363 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5364 if test "${ac_cv_sizeof_int+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   if test "$ac_cv_type_int" = yes; then
5368   # The cast to unsigned long works around a bug in the HP C Compiler
5369   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5370   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5371   # This bug is HP SR number 8606223364.
5372   if test "$cross_compiling" = yes; then
5373   # Depending upon the size, compute the lo and hi bounds.
5374 cat >conftest.$ac_ext <<_ACEOF
5375 #line $LINENO "configure"
5376 /* confdefs.h.  */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h.  */
5381 $ac_includes_default
5382 int
5383 main ()
5384 {
5385 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5386 test_array [0] = 0
5387
5388   ;
5389   return 0;
5390 }
5391 _ACEOF
5392 rm -f conftest.$ac_objext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394   (eval $ac_compile) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); } &&
5398          { ac_try='test -s conftest.$ac_objext'
5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; }; then
5404   ac_lo=0 ac_mid=0
5405   while :; do
5406     cat >conftest.$ac_ext <<_ACEOF
5407 #line $LINENO "configure"
5408 /* confdefs.h.  */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h.  */
5413 $ac_includes_default
5414 int
5415 main ()
5416 {
5417 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5418 test_array [0] = 0
5419
5420   ;
5421   return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426   (eval $ac_compile) 2>&5
5427   ac_status=$?
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } &&
5430          { ac_try='test -s conftest.$ac_objext'
5431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432   (eval $ac_try) 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); }; }; then
5436   ac_hi=$ac_mid; break
5437 else
5438   echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441 ac_lo=`expr $ac_mid + 1`
5442                     if test $ac_lo -le $ac_mid; then
5443                       ac_lo= ac_hi=
5444                       break
5445                     fi
5446                     ac_mid=`expr 2 '*' $ac_mid + 1`
5447 fi
5448 rm -f conftest.$ac_objext conftest.$ac_ext
5449   done
5450 else
5451   echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 cat >conftest.$ac_ext <<_ACEOF
5455 #line $LINENO "configure"
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 $ac_includes_default
5462 int
5463 main ()
5464 {
5465 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5466 test_array [0] = 0
5467
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474   (eval $ac_compile) 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } &&
5478          { ac_try='test -s conftest.$ac_objext'
5479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480   (eval $ac_try) 2>&5
5481   ac_status=$?
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); }; }; then
5484   ac_hi=-1 ac_mid=-1
5485   while :; do
5486     cat >conftest.$ac_ext <<_ACEOF
5487 #line $LINENO "configure"
5488 /* confdefs.h.  */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h.  */
5493 $ac_includes_default
5494 int
5495 main ()
5496 {
5497 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5498 test_array [0] = 0
5499
5500   ;
5501   return 0;
5502 }
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506   (eval $ac_compile) 2>&5
5507   ac_status=$?
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } &&
5510          { ac_try='test -s conftest.$ac_objext'
5511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512   (eval $ac_try) 2>&5
5513   ac_status=$?
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); }; }; then
5516   ac_lo=$ac_mid; break
5517 else
5518   echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5520
5521 ac_hi=`expr '(' $ac_mid ')' - 1`
5522                        if test $ac_mid -le $ac_hi; then
5523                          ac_lo= ac_hi=
5524                          break
5525                        fi
5526                        ac_mid=`expr 2 '*' $ac_mid`
5527 fi
5528 rm -f conftest.$ac_objext conftest.$ac_ext
5529   done
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534 ac_lo= ac_hi=
5535 fi
5536 rm -f conftest.$ac_objext conftest.$ac_ext
5537 fi
5538 rm -f conftest.$ac_objext conftest.$ac_ext
5539 # Binary search between lo and hi bounds.
5540 while test "x$ac_lo" != "x$ac_hi"; do
5541   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5542   cat >conftest.$ac_ext <<_ACEOF
5543 #line $LINENO "configure"
5544 /* confdefs.h.  */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h.  */
5549 $ac_includes_default
5550 int
5551 main ()
5552 {
5553 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5554 test_array [0] = 0
5555
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562   (eval $ac_compile) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } &&
5566          { ac_try='test -s conftest.$ac_objext'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; }; then
5572   ac_hi=$ac_mid
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 ac_lo=`expr '(' $ac_mid ')' + 1`
5578 fi
5579 rm -f conftest.$ac_objext conftest.$ac_ext
5580 done
5581 case $ac_lo in
5582 ?*) ac_cv_sizeof_int=$ac_lo;;
5583 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5584 See \`config.log' for more details." >&5
5585 echo "$as_me: error: cannot compute sizeof (int), 77
5586 See \`config.log' for more details." >&2;}
5587    { (exit 1); exit 1; }; } ;;
5588 esac
5589 else
5590   if test "$cross_compiling" = yes; then
5591   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5592 See \`config.log' for more details." >&5
5593 echo "$as_me: error: cannot run test program while cross compiling
5594 See \`config.log' for more details." >&2;}
5595    { (exit 1); exit 1; }; }
5596 else
5597   cat >conftest.$ac_ext <<_ACEOF
5598 #line $LINENO "configure"
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604 $ac_includes_default
5605 long longval () { return (long) (sizeof (int)); }
5606 unsigned long ulongval () { return (long) (sizeof (int)); }
5607 #include <stdio.h>
5608 #include <stdlib.h>
5609 int
5610 main ()
5611 {
5612
5613   FILE *f = fopen ("conftest.val", "w");
5614   if (! f)
5615     exit (1);
5616   if (((long) (sizeof (int))) < 0)
5617     {
5618       long i = longval ();
5619       if (i != ((long) (sizeof (int))))
5620         exit (1);
5621       fprintf (f, "%ld\n", i);
5622     }
5623   else
5624     {
5625       unsigned long i = ulongval ();
5626       if (i != ((long) (sizeof (int))))
5627         exit (1);
5628       fprintf (f, "%lu\n", i);
5629     }
5630   exit (ferror (f) || fclose (f) != 0);
5631
5632   ;
5633   return 0;
5634 }
5635 _ACEOF
5636 rm -f conftest$ac_exeext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638   (eval $ac_link) 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643   (eval $ac_try) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; }; then
5647   ac_cv_sizeof_int=`cat conftest.val`
5648 else
5649   echo "$as_me: program exited with status $ac_status" >&5
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 ( exit $ac_status )
5654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5655 See \`config.log' for more details." >&5
5656 echo "$as_me: error: cannot compute sizeof (int), 77
5657 See \`config.log' for more details." >&2;}
5658    { (exit 1); exit 1; }; }
5659 fi
5660 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5661 fi
5662 fi
5663 rm -f conftest.val
5664 else
5665   ac_cv_sizeof_int=0
5666 fi
5667 fi
5668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5669 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5670 cat >>confdefs.h <<_ACEOF
5671 #define SIZEOF_INT $ac_cv_sizeof_int
5672 _ACEOF
5673
5674
5675    echo "$as_me:$LINENO: checking for long" >&5
5676 echo $ECHO_N "checking for long... $ECHO_C" >&6
5677 if test "${ac_cv_type_long+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   cat >conftest.$ac_ext <<_ACEOF
5681 #line $LINENO "configure"
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 if ((long *) 0)
5692   return 0;
5693 if (sizeof (long))
5694   return 0;
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701   (eval $ac_compile) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -s conftest.$ac_objext'
5706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707   (eval $ac_try) 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; }; then
5711   ac_cv_type_long=yes
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 ac_cv_type_long=no
5717 fi
5718 rm -f conftest.$ac_objext conftest.$ac_ext
5719 fi
5720 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5721 echo "${ECHO_T}$ac_cv_type_long" >&6
5722
5723 echo "$as_me:$LINENO: checking size of long" >&5
5724 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5725 if test "${ac_cv_sizeof_long+set}" = set; then
5726   echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728   if test "$ac_cv_type_long" = yes; then
5729   # The cast to unsigned long works around a bug in the HP C Compiler
5730   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5731   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5732   # This bug is HP SR number 8606223364.
5733   if test "$cross_compiling" = yes; then
5734   # Depending upon the size, compute the lo and hi bounds.
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742 $ac_includes_default
5743 int
5744 main ()
5745 {
5746 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5747 test_array [0] = 0
5748
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755   (eval $ac_compile) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } &&
5759          { ac_try='test -s conftest.$ac_objext'
5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761   (eval $ac_try) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; }; then
5765   ac_lo=0 ac_mid=0
5766   while :; do
5767     cat >conftest.$ac_ext <<_ACEOF
5768 #line $LINENO "configure"
5769 /* confdefs.h.  */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h.  */
5774 $ac_includes_default
5775 int
5776 main ()
5777 {
5778 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5779 test_array [0] = 0
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787   (eval $ac_compile) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } &&
5791          { ac_try='test -s conftest.$ac_objext'
5792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793   (eval $ac_try) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }; }; then
5797   ac_hi=$ac_mid; break
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_lo=`expr $ac_mid + 1`
5803                     if test $ac_lo -le $ac_mid; then
5804                       ac_lo= ac_hi=
5805                       break
5806                     fi
5807                     ac_mid=`expr 2 '*' $ac_mid + 1`
5808 fi
5809 rm -f conftest.$ac_objext conftest.$ac_ext
5810   done
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5817 /* confdefs.h.  */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h.  */
5822 $ac_includes_default
5823 int
5824 main ()
5825 {
5826 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5827 test_array [0] = 0
5828
5829   ;
5830   return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835   (eval $ac_compile) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } &&
5839          { ac_try='test -s conftest.$ac_objext'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; }; then
5845   ac_hi=-1 ac_mid=-1
5846   while :; do
5847     cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854 $ac_includes_default
5855 int
5856 main ()
5857 {
5858 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5859 test_array [0] = 0
5860
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867   (eval $ac_compile) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } &&
5871          { ac_try='test -s conftest.$ac_objext'
5872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873   (eval $ac_try) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; }; then
5877   ac_lo=$ac_mid; break
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 ac_hi=`expr '(' $ac_mid ')' - 1`
5883                        if test $ac_mid -le $ac_hi; then
5884                          ac_lo= ac_hi=
5885                          break
5886                        fi
5887                        ac_mid=`expr 2 '*' $ac_mid`
5888 fi
5889 rm -f conftest.$ac_objext conftest.$ac_ext
5890   done
5891 else
5892   echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ac_lo= ac_hi=
5896 fi
5897 rm -f conftest.$ac_objext conftest.$ac_ext
5898 fi
5899 rm -f conftest.$ac_objext conftest.$ac_ext
5900 # Binary search between lo and hi bounds.
5901 while test "x$ac_lo" != "x$ac_hi"; do
5902   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5903   cat >conftest.$ac_ext <<_ACEOF
5904 #line $LINENO "configure"
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 $ac_includes_default
5911 int
5912 main ()
5913 {
5914 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5915 test_array [0] = 0
5916
5917   ;
5918   return 0;
5919 }
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923   (eval $ac_compile) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } &&
5927          { ac_try='test -s conftest.$ac_objext'
5928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929   (eval $ac_try) 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; }; then
5933   ac_hi=$ac_mid
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 ac_lo=`expr '(' $ac_mid ')' + 1`
5939 fi
5940 rm -f conftest.$ac_objext conftest.$ac_ext
5941 done
5942 case $ac_lo in
5943 ?*) ac_cv_sizeof_long=$ac_lo;;
5944 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5945 See \`config.log' for more details." >&5
5946 echo "$as_me: error: cannot compute sizeof (long), 77
5947 See \`config.log' for more details." >&2;}
5948    { (exit 1); exit 1; }; } ;;
5949 esac
5950 else
5951   if test "$cross_compiling" = yes; then
5952   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5953 See \`config.log' for more details." >&5
5954 echo "$as_me: error: cannot run test program while cross compiling
5955 See \`config.log' for more details." >&2;}
5956    { (exit 1); exit 1; }; }
5957 else
5958   cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965 $ac_includes_default
5966 long longval () { return (long) (sizeof (long)); }
5967 unsigned long ulongval () { return (long) (sizeof (long)); }
5968 #include <stdio.h>
5969 #include <stdlib.h>
5970 int
5971 main ()
5972 {
5973
5974   FILE *f = fopen ("conftest.val", "w");
5975   if (! f)
5976     exit (1);
5977   if (((long) (sizeof (long))) < 0)
5978     {
5979       long i = longval ();
5980       if (i != ((long) (sizeof (long))))
5981         exit (1);
5982       fprintf (f, "%ld\n", i);
5983     }
5984   else
5985     {
5986       unsigned long i = ulongval ();
5987       if (i != ((long) (sizeof (long))))
5988         exit (1);
5989       fprintf (f, "%lu\n", i);
5990     }
5991   exit (ferror (f) || fclose (f) != 0);
5992
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   ac_cv_sizeof_long=`cat conftest.val`
6009 else
6010   echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 ( exit $ac_status )
6015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6016 See \`config.log' for more details." >&5
6017 echo "$as_me: error: cannot compute sizeof (long), 77
6018 See \`config.log' for more details." >&2;}
6019    { (exit 1); exit 1; }; }
6020 fi
6021 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6022 fi
6023 fi
6024 rm -f conftest.val
6025 else
6026   ac_cv_sizeof_long=0
6027 fi
6028 fi
6029 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6030 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF_LONG $ac_cv_sizeof_long
6033 _ACEOF
6034
6035
6036    echo "$as_me:$LINENO: checking for long long" >&5
6037 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6038 if test "${ac_cv_type_long_long+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   cat >conftest.$ac_ext <<_ACEOF
6042 #line $LINENO "configure"
6043 /* confdefs.h.  */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h.  */
6048 $ac_includes_default
6049 int
6050 main ()
6051 {
6052 if ((long long *) 0)
6053   return 0;
6054 if (sizeof (long long))
6055   return 0;
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062   (eval $ac_compile) 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -s conftest.$ac_objext'
6067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068   (eval $ac_try) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; }; then
6072   ac_cv_type_long_long=yes
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 ac_cv_type_long_long=no
6078 fi
6079 rm -f conftest.$ac_objext conftest.$ac_ext
6080 fi
6081 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6082 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6083
6084 echo "$as_me:$LINENO: checking size of long long" >&5
6085 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6086 if test "${ac_cv_sizeof_long_long+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   if test "$ac_cv_type_long_long" = yes; then
6090   # The cast to unsigned long works around a bug in the HP C Compiler
6091   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093   # This bug is HP SR number 8606223364.
6094   if test "$cross_compiling" = yes; then
6095   # Depending upon the size, compute the lo and hi bounds.
6096 cat >conftest.$ac_ext <<_ACEOF
6097 #line $LINENO "configure"
6098 /* confdefs.h.  */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h.  */
6103 $ac_includes_default
6104 int
6105 main ()
6106 {
6107 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6108 test_array [0] = 0
6109
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116   (eval $ac_compile) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } &&
6120          { ac_try='test -s conftest.$ac_objext'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; }; then
6126   ac_lo=0 ac_mid=0
6127   while :; do
6128     cat >conftest.$ac_ext <<_ACEOF
6129 #line $LINENO "configure"
6130 /* confdefs.h.  */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h.  */
6135 $ac_includes_default
6136 int
6137 main ()
6138 {
6139 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6140 test_array [0] = 0
6141
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148   (eval $ac_compile) 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } &&
6152          { ac_try='test -s conftest.$ac_objext'
6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154   (eval $ac_try) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); }; }; then
6158   ac_hi=$ac_mid; break
6159 else
6160   echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 ac_lo=`expr $ac_mid + 1`
6164                     if test $ac_lo -le $ac_mid; then
6165                       ac_lo= ac_hi=
6166                       break
6167                     fi
6168                     ac_mid=`expr 2 '*' $ac_mid + 1`
6169 fi
6170 rm -f conftest.$ac_objext conftest.$ac_ext
6171   done
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 cat >conftest.$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183 $ac_includes_default
6184 int
6185 main ()
6186 {
6187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6188 test_array [0] = 0
6189
6190   ;
6191   return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196   (eval $ac_compile) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -s conftest.$ac_objext'
6201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }; }; then
6206   ac_hi=-1 ac_mid=-1
6207   while :; do
6208     cat >conftest.$ac_ext <<_ACEOF
6209 #line $LINENO "configure"
6210 /* confdefs.h.  */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h.  */
6215 $ac_includes_default
6216 int
6217 main ()
6218 {
6219 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6220 test_array [0] = 0
6221
6222   ;
6223   return 0;
6224 }
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228   (eval $ac_compile) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); } &&
6232          { ac_try='test -s conftest.$ac_objext'
6233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234   (eval $ac_try) 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }; }; then
6238   ac_lo=$ac_mid; break
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 ac_hi=`expr '(' $ac_mid ')' - 1`
6244                        if test $ac_mid -le $ac_hi; then
6245                          ac_lo= ac_hi=
6246                          break
6247                        fi
6248                        ac_mid=`expr 2 '*' $ac_mid`
6249 fi
6250 rm -f conftest.$ac_objext conftest.$ac_ext
6251   done
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_lo= ac_hi=
6257 fi
6258 rm -f conftest.$ac_objext conftest.$ac_ext
6259 fi
6260 rm -f conftest.$ac_objext conftest.$ac_ext
6261 # Binary search between lo and hi bounds.
6262 while test "x$ac_lo" != "x$ac_hi"; do
6263   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6264   cat >conftest.$ac_ext <<_ACEOF
6265 #line $LINENO "configure"
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271 $ac_includes_default
6272 int
6273 main ()
6274 {
6275 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6276 test_array [0] = 0
6277
6278   ;
6279   return 0;
6280 }
6281 _ACEOF
6282 rm -f conftest.$ac_objext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284   (eval $ac_compile) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -s conftest.$ac_objext'
6289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290   (eval $ac_try) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; }; then
6294   ac_hi=$ac_mid
6295 else
6296   echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_lo=`expr '(' $ac_mid ')' + 1`
6300 fi
6301 rm -f conftest.$ac_objext conftest.$ac_ext
6302 done
6303 case $ac_lo in
6304 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6306 See \`config.log' for more details." >&5
6307 echo "$as_me: error: cannot compute sizeof (long long), 77
6308 See \`config.log' for more details." >&2;}
6309    { (exit 1); exit 1; }; } ;;
6310 esac
6311 else
6312   if test "$cross_compiling" = yes; then
6313   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6314 See \`config.log' for more details." >&5
6315 echo "$as_me: error: cannot run test program while cross compiling
6316 See \`config.log' for more details." >&2;}
6317    { (exit 1); exit 1; }; }
6318 else
6319   cat >conftest.$ac_ext <<_ACEOF
6320 #line $LINENO "configure"
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 $ac_includes_default
6327 long longval () { return (long) (sizeof (long long)); }
6328 unsigned long ulongval () { return (long) (sizeof (long long)); }
6329 #include <stdio.h>
6330 #include <stdlib.h>
6331 int
6332 main ()
6333 {
6334
6335   FILE *f = fopen ("conftest.val", "w");
6336   if (! f)
6337     exit (1);
6338   if (((long) (sizeof (long long))) < 0)
6339     {
6340       long i = longval ();
6341       if (i != ((long) (sizeof (long long))))
6342         exit (1);
6343       fprintf (f, "%ld\n", i);
6344     }
6345   else
6346     {
6347       unsigned long i = ulongval ();
6348       if (i != ((long) (sizeof (long long))))
6349         exit (1);
6350       fprintf (f, "%lu\n", i);
6351     }
6352   exit (ferror (f) || fclose (f) != 0);
6353
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_sizeof_long_long=`cat conftest.val`
6370 else
6371   echo "$as_me: program exited with status $ac_status" >&5
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ( exit $ac_status )
6376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6377 See \`config.log' for more details." >&5
6378 echo "$as_me: error: cannot compute sizeof (long long), 77
6379 See \`config.log' for more details." >&2;}
6380    { (exit 1); exit 1; }; }
6381 fi
6382 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6383 fi
6384 fi
6385 rm -f conftest.val
6386 else
6387   ac_cv_sizeof_long_long=0
6388 fi
6389 fi
6390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6391 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6392 cat >>confdefs.h <<_ACEOF
6393 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6394 _ACEOF
6395
6396
6397 fi
6398
6399
6400
6401
6402
6403 ac_aux_path_sendmail=/usr/sbin:/usr/lib
6404 # Extract the first word of "sendmail", so it can be a program name with args.
6405 set dummy sendmail; ac_word=$2
6406 echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6408 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   case $SENDMAIL in
6412   [\\/]* | ?:[\\/]*)
6413   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6414   ;;
6415   *)
6416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 as_dummy="$PATH:$ac_aux_path_sendmail"
6418 for as_dir in $as_dummy
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422   for ac_exec_ext in '' $ac_executable_extensions; do
6423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429 done
6430
6431   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
6432   ;;
6433 esac
6434 fi
6435 SENDMAIL=$ac_cv_path_SENDMAIL
6436
6437 if test -n "$SENDMAIL"; then
6438   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6439 echo "${ECHO_T}$SENDMAIL" >&6
6440 else
6441   echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6
6443 fi
6444
6445
6446 cat >>confdefs.h <<_ACEOF
6447 #define SENDMAIL "$ac_cv_path_SENDMAIL"
6448 _ACEOF
6449
6450
6451 OPS='$(srcdir)/OPS'
6452 if test -f $srcdir/EXPORTABLE ; then
6453         SUBVERSION="us"
6454 else
6455         SUBVERSION="i"
6456
6457         # Check whether --enable-gpgme or --disable-gpgme was given.
6458 if test "${enable_gpgme+set}" = set; then
6459   enableval="$enable_gpgme"
6460          if test x$enableval = xyes; then
6461                         have_gpgme=yes
6462                 fi
6463
6464 fi;
6465
6466 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
6467 if test "${with_gpgme_prefix+set}" = set; then
6468   withval="$with_gpgme_prefix"
6469   gpgme_config_prefix="$withval"
6470 else
6471   gpgme_config_prefix=""
6472 fi;
6473
6474         if test x$have_gpgme = xyes; then
6475                 if test x$gpgme_config_prefix != x; then
6476                         GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
6477                 else
6478                         # Extract the first word of "gpgme-config", so it can be a program name with args.
6479 set dummy gpgme-config; ac_word=$2
6480 echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6482 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   case $GPGME_CONFIG in
6486   [\\/]* | ?:[\\/]*)
6487   ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
6488   ;;
6489   *)
6490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495   for ac_exec_ext in '' $ac_executable_extensions; do
6496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497     ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502 done
6503
6504   test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
6505   ;;
6506 esac
6507 fi
6508 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
6509
6510 if test -n "$GPGME_CONFIG"; then
6511   echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
6512 echo "${ECHO_T}$GPGME_CONFIG" >&6
6513 else
6514   echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6516 fi
6517
6518                 fi
6519                 if test "x$GPGME_CONFIG" = "xno"; then
6520                         { { echo "$as_me:$LINENO: error: GPGME not found" >&5
6521 echo "$as_me: error: GPGME not found" >&2;}
6522    { (exit 1); exit 1; }; }
6523                 else
6524                         LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
6525                         LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
6526                         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
6527
6528 cat >>confdefs.h <<\_ACEOF
6529 #define CRYPT_BACKEND_GPGME 1
6530 _ACEOF
6531
6532                 fi
6533         fi
6534
6535
6536
6537         # Check whether --enable-pgp or --disable-pgp was given.
6538 if test "${enable_pgp+set}" = set; then
6539   enableval="$enable_pgp"
6540          if test x$enableval = xno ; then
6541                         have_pgp=no
6542                 fi
6543
6544 fi;
6545
6546         if test x$have_pgp != xno ; then
6547
6548 cat >>confdefs.h <<\_ACEOF
6549 #define CRYPT_BACKEND_CLASSIC_PGP 1
6550 _ACEOF
6551
6552                 PGPAUX_TARGET="pgpring pgpewrap"
6553                 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"
6554         fi
6555
6556         # Check whether --enable-smime or --disable-smime was given.
6557 if test "${enable_smime+set}" = set; then
6558   enableval="$enable_smime"
6559         if test x$enableval = xno ; then
6560                         have_smime=no
6561                 fi
6562
6563 fi;
6564
6565         if test x$have_smime != xno ; then
6566
6567 cat >>confdefs.h <<\_ACEOF
6568 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6569 _ACEOF
6570
6571                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6572                 SMIMEAUX_TARGET="smime_keys"
6573         fi
6574
6575
6576 # Check whether --with-mixmaster or --without-mixmaster was given.
6577 if test "${with_mixmaster+set}" = set; then
6578   withval="$with_mixmaster"
6579   if test -x "$withval" ; then
6580                         MIXMASTER="$withval"
6581                  else
6582                         MIXMASTER="mixmaster"
6583                  fi
6584                  OPS="$OPS \$(srcdir)/OPS.MIX"
6585                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6586
6587 cat >>confdefs.h <<_ACEOF
6588 #define MIXMASTER "$MIXMASTER"
6589 _ACEOF
6590
6591
6592 fi;
6593
6594 fi
6595 # We now require all OPS
6596 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6597
6598
6599
6600
6601
6602
6603
6604 cat >>confdefs.h <<_ACEOF
6605 #define SUBVERSION "$SUBVERSION"
6606 _ACEOF
6607
6608
6609
6610 # Extract the first word of "ispell", so it can be a program name with args.
6611 set dummy ispell; ac_word=$2
6612 echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6614 if test "${ac_cv_path_ISPELL+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   case $ISPELL in
6618   [\\/]* | ?:[\\/]*)
6619   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
6620   ;;
6621   *)
6622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for ac_exec_ext in '' $ac_executable_extensions; do
6628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
6630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634 done
6635
6636   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
6637   ;;
6638 esac
6639 fi
6640 ISPELL=$ac_cv_path_ISPELL
6641
6642 if test -n "$ISPELL"; then
6643   echo "$as_me:$LINENO: result: $ISPELL" >&5
6644 echo "${ECHO_T}$ISPELL" >&6
6645 else
6646   echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6
6648 fi
6649
6650 if test $ISPELL != no; then
6651
6652 cat >>confdefs.h <<_ACEOF
6653 #define ISPELL "$ISPELL"
6654 _ACEOF
6655
6656 fi
6657
6658
6659 # Check whether --with-slang or --without-slang was given.
6660 if test "${with_slang+set}" = set; then
6661   withval="$with_slang"
6662   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
6663 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
6664 if test "${mutt_cv_bsdish+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   if test "$cross_compiling" = yes; then
6668   mutt_cv_bsdish=no
6669 else
6670   cat >conftest.$ac_ext <<_ACEOF
6671 #line $LINENO "configure"
6672 /* confdefs.h.  */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h.  */
6677 #include <sys/param.h>
6678
6679 main ()
6680 {
6681 #ifdef BSD
6682         exit (0);
6683 #else
6684         exit (1);
6685 #endif
6686 }
6687 _ACEOF
6688 rm -f conftest$ac_exeext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690   (eval $ac_link) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695   (eval $ac_try) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; }; then
6699   mutt_cv_bsdish=yes
6700 else
6701   echo "$as_me: program exited with status $ac_status" >&5
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 ( exit $ac_status )
6706 mutt_cv_bsdish=no
6707 fi
6708 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6709 fi
6710 fi
6711 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
6712 echo "${ECHO_T}$mutt_cv_bsdish" >&6
6713
6714         echo "$as_me:$LINENO: checking for S-Lang" >&5
6715 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
6716         if test $withval = yes; then
6717                 if test -d $srcdir/../slang; then
6718                         mutt_cv_slang=$srcdir/../slang/src
6719                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
6720                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6721                 else
6722                         if test -d $mutt_cv_prefix/include/slang; then
6723                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
6724                         elif test -d /usr/include/slang; then
6725                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
6726                         fi
6727                         mutt_cv_slang=yes
6728                 fi
6729         else
6730                                 if test -f $withval/src/slang.h; then
6731                         mutt_cv_slang=$withval/src
6732                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
6733                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6734                 else
6735                                                 mutt_cv_slang=$withval
6736                         if test -d $withval/include/slang; then
6737                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
6738                         elif test -d $withval/include; then
6739                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6740                         fi
6741                         LDFLAGS="$LDFLAGS -L${withval}/lib"
6742                 fi
6743         fi
6744         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
6745 echo "${ECHO_T}$mutt_cv_slang" >&6
6746         if test $mutt_cv_bsdish = yes; then
6747
6748 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
6749 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
6750 if test "${ac_cv_lib_termlib_main+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   ac_check_lib_save_LIBS=$LIBS
6754 LIBS="-ltermlib  $LIBS"
6755 cat >conftest.$ac_ext <<_ACEOF
6756 #line $LINENO "configure"
6757 /* confdefs.h.  */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h.  */
6762
6763
6764 int
6765 main ()
6766 {
6767 main ();
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest.$ac_objext conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774   (eval $ac_link) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -s conftest$ac_exeext'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; }; then
6784   ac_cv_lib_termlib_main=yes
6785 else
6786   echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 ac_cv_lib_termlib_main=no
6790 fi
6791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 LIBS=$ac_check_lib_save_LIBS
6793 fi
6794 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
6795 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
6796 if test $ac_cv_lib_termlib_main = yes; then
6797   cat >>confdefs.h <<_ACEOF
6798 #define HAVE_LIBTERMLIB 1
6799 _ACEOF
6800
6801   LIBS="-ltermlib $LIBS"
6802
6803 fi
6804
6805         fi
6806
6807 cat >>confdefs.h <<\_ACEOF
6808 #define USE_SLANG_CURSES 1
6809 _ACEOF
6810
6811
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_COLOR 1
6814 _ACEOF
6815
6816         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6817
6818
6819         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
6820 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
6821 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   ac_check_lib_save_LIBS=$LIBS
6825 LIBS="-lslang -lm $LIBS"
6826 cat >conftest.$ac_ext <<_ACEOF
6827 #line $LINENO "configure"
6828 /* confdefs.h.  */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h.  */
6833
6834 /* Override any gcc2 internal prototype to avoid an error.  */
6835 #ifdef __cplusplus
6836 extern "C"
6837 #endif
6838 /* We use char because int might match the return type of a gcc2
6839    builtin and then its argument prototype would still apply.  */
6840 char SLtt_get_terminfo ();
6841 int
6842 main ()
6843 {
6844 SLtt_get_terminfo ();
6845   ;
6846   return 0;
6847 }
6848 _ACEOF
6849 rm -f conftest.$ac_objext conftest$ac_exeext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6851   (eval $ac_link) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); } &&
6855          { ac_try='test -s conftest$ac_exeext'
6856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857   (eval $ac_try) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; }; then
6861   ac_cv_lib_slang_SLtt_get_terminfo=yes
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 ac_cv_lib_slang_SLtt_get_terminfo=no
6867 fi
6868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6869 LIBS=$ac_check_lib_save_LIBS
6870 fi
6871 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
6872 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
6873 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
6874   MUTTLIBS="$MUTTLIBS -lslang -lm"
6875 else
6876   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
6877 echo "$as_me: error: unable to compile.  check config.log" >&2;}
6878    { (exit 1); exit 1; }; }
6879 fi
6880
6881
6882
6883 else
6884   mutt_cv_curses=/usr
6885
6886 # Check whether --with-curses or --without-curses was given.
6887 if test "${with_curses+set}" = set; then
6888   withval="$with_curses"
6889   if test $withval != yes; then
6890                         mutt_cv_curses=$withval
6891                 fi
6892                 if test x$mutt_cv_curses != x/usr; then
6893                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
6894                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
6895                 fi
6896 fi;
6897
6898         echo "$as_me:$LINENO: checking for initscr" >&5
6899 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6900 if test "${ac_cv_func_initscr+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903   cat >conftest.$ac_ext <<_ACEOF
6904 #line $LINENO "configure"
6905 /* confdefs.h.  */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h.  */
6910 /* System header to define __stub macros and hopefully few prototypes,
6911     which can conflict with char initscr (); below.
6912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6913     <limits.h> exists even on freestanding compilers.  */
6914 #ifdef __STDC__
6915 # include <limits.h>
6916 #else
6917 # include <assert.h>
6918 #endif
6919 /* Override any gcc2 internal prototype to avoid an error.  */
6920 #ifdef __cplusplus
6921 extern "C"
6922 {
6923 #endif
6924 /* We use char because int might match the return type of a gcc2
6925    builtin and then its argument prototype would still apply.  */
6926 char initscr ();
6927 /* The GNU C library defines this for functions which it implements
6928     to always fail with ENOSYS.  Some functions are actually named
6929     something starting with __ and the normal name is an alias.  */
6930 #if defined (__stub_initscr) || defined (__stub___initscr)
6931 choke me
6932 #else
6933 char (*f) () = initscr;
6934 #endif
6935 #ifdef __cplusplus
6936 }
6937 #endif
6938
6939 int
6940 main ()
6941 {
6942 return f != initscr;
6943   ;
6944   return 0;
6945 }
6946 _ACEOF
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949   (eval $ac_link) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); } &&
6953          { ac_try='test -s conftest$ac_exeext'
6954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955   (eval $ac_try) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); }; }; then
6959   ac_cv_func_initscr=yes
6960 else
6961   echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6963
6964 ac_cv_func_initscr=no
6965 fi
6966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6967 fi
6968 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
6969 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6970 if test $ac_cv_func_initscr = yes; then
6971   :
6972 else
6973
6974         cf_ncurses="ncurses"
6975         for lib in ncurses ncursesw
6976         do
6977                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
6978 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
6979 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
6980 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   ac_check_lib_save_LIBS=$LIBS
6984 LIBS="-l$lib  $LIBS"
6985 cat >conftest.$ac_ext <<_ACEOF
6986 #line $LINENO "configure"
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992
6993 /* Override any gcc2 internal prototype to avoid an error.  */
6994 #ifdef __cplusplus
6995 extern "C"
6996 #endif
6997 /* We use char because int might match the return type of a gcc2
6998    builtin and then its argument prototype would still apply.  */
6999 char waddnwstr ();
7000 int
7001 main ()
7002 {
7003 waddnwstr ();
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext conftest$ac_exeext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010   (eval $ac_link) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } &&
7014          { ac_try='test -s conftest$ac_exeext'
7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; }; then
7020   eval "$as_ac_Lib=yes"
7021 else
7022   echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 eval "$as_ac_Lib=no"
7026 fi
7027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7028 LIBS=$ac_check_lib_save_LIBS
7029 fi
7030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7031 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7032 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7033   cf_ncurses="$lib"; break
7034 fi
7035
7036         done
7037         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
7038 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
7039 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
7040 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   ac_check_lib_save_LIBS=$LIBS
7044 LIBS="-l$cf_ncurses  $LIBS"
7045 cat >conftest.$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052
7053 /* Override any gcc2 internal prototype to avoid an error.  */
7054 #ifdef __cplusplus
7055 extern "C"
7056 #endif
7057 /* We use char because int might match the return type of a gcc2
7058    builtin and then its argument prototype would still apply.  */
7059 char initscr ();
7060 int
7061 main ()
7062 {
7063 initscr ();
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070   (eval $ac_link) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } &&
7074          { ac_try='test -s conftest$ac_exeext'
7075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076   (eval $ac_try) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); }; }; then
7080   eval "$as_ac_Lib=yes"
7081 else
7082   echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7084
7085 eval "$as_ac_Lib=no"
7086 fi
7087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7088 LIBS=$ac_check_lib_save_LIBS
7089 fi
7090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7091 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7092 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7093   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
7094                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
7095                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7096                 fi
7097
7098                 if test "$cf_ncurses" = ncursesw; then
7099
7100 for ac_header in ncursesw/ncurses.h
7101 do
7102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104   echo "$as_me:$LINENO: checking for $ac_header" >&5
7105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 fi
7109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7111 else
7112   # Is the header compilable?
7113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 /* confdefs.h.  */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h.  */
7122 $ac_includes_default
7123 #include <$ac_header>
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127   (eval $ac_compile) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); } &&
7131          { ac_try='test -s conftest.$ac_objext'
7132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133   (eval $ac_try) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); }; }; then
7137   ac_header_compiler=yes
7138 else
7139   echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7141
7142 ac_header_compiler=no
7143 fi
7144 rm -f conftest.$ac_objext conftest.$ac_ext
7145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7146 echo "${ECHO_T}$ac_header_compiler" >&6
7147
7148 # Is the header present?
7149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158 #include <$ac_header>
7159 _ACEOF
7160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } >/dev/null; then
7168   if test -s conftest.err; then
7169     ac_cpp_err=$ac_c_preproc_warn_flag
7170   else
7171     ac_cpp_err=
7172   fi
7173 else
7174   ac_cpp_err=yes
7175 fi
7176 if test -z "$ac_cpp_err"; then
7177   ac_header_preproc=yes
7178 else
7179   echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182   ac_header_preproc=no
7183 fi
7184 rm -f conftest.err conftest.$ac_ext
7185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7186 echo "${ECHO_T}$ac_header_preproc" >&6
7187
7188 # So?  What about this header?
7189 case $ac_header_compiler:$ac_header_preproc in
7190   yes:no )
7191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7195     (
7196       cat <<\_ASBOX
7197 ## ------------------------------------ ##
7198 ## Report this to bug-autoconf@gnu.org. ##
7199 ## ------------------------------------ ##
7200 _ASBOX
7201     ) |
7202       sed "s/^/$as_me: WARNING:     /" >&2
7203     ;;
7204   no:yes )
7205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7207     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7211     (
7212       cat <<\_ASBOX
7213 ## ------------------------------------ ##
7214 ## Report this to bug-autoconf@gnu.org. ##
7215 ## ------------------------------------ ##
7216 _ASBOX
7217     ) |
7218       sed "s/^/$as_me: WARNING:     /" >&2
7219     ;;
7220 esac
7221 echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   eval "$as_ac_Header=$ac_header_preproc"
7227 fi
7228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7230
7231 fi
7232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7233   cat >>confdefs.h <<_ACEOF
7234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7235 _ACEOF
7236  cf_cv_ncurses_header="ncursesw/ncurses.h"
7237 fi
7238
7239 done
7240
7241                 else
7242
7243 for ac_header in ncurses.h
7244 do
7245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7247   echo "$as_me:$LINENO: checking for $ac_header" >&5
7248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 fi
7252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254 else
7255   # Is the header compilable?
7256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7258 cat >conftest.$ac_ext <<_ACEOF
7259 #line $LINENO "configure"
7260 /* confdefs.h.  */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h.  */
7265 $ac_includes_default
7266 #include <$ac_header>
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270   (eval $ac_compile) 2>&5
7271   ac_status=$?
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); } &&
7274          { ac_try='test -s conftest.$ac_objext'
7275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276   (eval $ac_try) 2>&5
7277   ac_status=$?
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); }; }; then
7280   ac_header_compiler=yes
7281 else
7282   echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285 ac_header_compiler=no
7286 fi
7287 rm -f conftest.$ac_objext conftest.$ac_ext
7288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7289 echo "${ECHO_T}$ac_header_compiler" >&6
7290
7291 # Is the header present?
7292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7294 cat >conftest.$ac_ext <<_ACEOF
7295 #line $LINENO "configure"
7296 /* confdefs.h.  */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h.  */
7301 #include <$ac_header>
7302 _ACEOF
7303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7305   ac_status=$?
7306   grep -v '^ *+' conftest.er1 >conftest.err
7307   rm -f conftest.er1
7308   cat conftest.err >&5
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); } >/dev/null; then
7311   if test -s conftest.err; then
7312     ac_cpp_err=$ac_c_preproc_warn_flag
7313   else
7314     ac_cpp_err=
7315   fi
7316 else
7317   ac_cpp_err=yes
7318 fi
7319 if test -z "$ac_cpp_err"; then
7320   ac_header_preproc=yes
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325   ac_header_preproc=no
7326 fi
7327 rm -f conftest.err conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7329 echo "${ECHO_T}$ac_header_preproc" >&6
7330
7331 # So?  What about this header?
7332 case $ac_header_compiler:$ac_header_preproc in
7333   yes:no )
7334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7338     (
7339       cat <<\_ASBOX
7340 ## ------------------------------------ ##
7341 ## Report this to bug-autoconf@gnu.org. ##
7342 ## ------------------------------------ ##
7343 _ASBOX
7344     ) |
7345       sed "s/^/$as_me: WARNING:     /" >&2
7346     ;;
7347   no:yes )
7348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7350     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7354     (
7355       cat <<\_ASBOX
7356 ## ------------------------------------ ##
7357 ## Report this to bug-autoconf@gnu.org. ##
7358 ## ------------------------------------ ##
7359 _ASBOX
7360     ) |
7361       sed "s/^/$as_me: WARNING:     /" >&2
7362     ;;
7363 esac
7364 echo "$as_me:$LINENO: checking for $ac_header" >&5
7365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7367   echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369   eval "$as_ac_Header=$ac_header_preproc"
7370 fi
7371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7373
7374 fi
7375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7376   cat >>confdefs.h <<_ACEOF
7377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7378 _ACEOF
7379  cf_cv_ncurses_header="ncurses.h"
7380 fi
7381
7382 done
7383
7384                 fi
7385 else
7386
7387 echo "$as_me:$LINENO: checking for initscr" >&5
7388 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7389 if test "${ac_cv_func_initscr+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   cat >conftest.$ac_ext <<_ACEOF
7393 #line $LINENO "configure"
7394 /* confdefs.h.  */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h.  */
7399 /* System header to define __stub macros and hopefully few prototypes,
7400     which can conflict with char initscr (); below.
7401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7402     <limits.h> exists even on freestanding compilers.  */
7403 #ifdef __STDC__
7404 # include <limits.h>
7405 #else
7406 # include <assert.h>
7407 #endif
7408 /* Override any gcc2 internal prototype to avoid an error.  */
7409 #ifdef __cplusplus
7410 extern "C"
7411 {
7412 #endif
7413 /* We use char because int might match the return type of a gcc2
7414    builtin and then its argument prototype would still apply.  */
7415 char initscr ();
7416 /* The GNU C library defines this for functions which it implements
7417     to always fail with ENOSYS.  Some functions are actually named
7418     something starting with __ and the normal name is an alias.  */
7419 #if defined (__stub_initscr) || defined (__stub___initscr)
7420 choke me
7421 #else
7422 char (*f) () = initscr;
7423 #endif
7424 #ifdef __cplusplus
7425 }
7426 #endif
7427
7428 int
7429 main ()
7430 {
7431 return f != initscr;
7432   ;
7433   return 0;
7434 }
7435 _ACEOF
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438   (eval $ac_link) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); } &&
7442          { ac_try='test -s conftest$ac_exeext'
7443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444   (eval $ac_try) 2>&5
7445   ac_status=$?
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); }; }; then
7448   ac_cv_func_initscr=yes
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ac_cv_func_initscr=no
7454 fi
7455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7456 fi
7457 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7458 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7459 if test $ac_cv_func_initscr = yes; then
7460   :
7461 else
7462
7463 case $host_os in #(vi
7464 freebsd*) #(vi
7465         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
7466 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7467 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   ac_check_lib_save_LIBS=$LIBS
7471 LIBS="-lmytinfo  $LIBS"
7472 cat >conftest.$ac_ext <<_ACEOF
7473 #line $LINENO "configure"
7474 /* confdefs.h.  */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h.  */
7479
7480 /* Override any gcc2 internal prototype to avoid an error.  */
7481 #ifdef __cplusplus
7482 extern "C"
7483 #endif
7484 /* We use char because int might match the return type of a gcc2
7485    builtin and then its argument prototype would still apply.  */
7486 char tgoto ();
7487 int
7488 main ()
7489 {
7490 tgoto ();
7491   ;
7492   return 0;
7493 }
7494 _ACEOF
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497   (eval $ac_link) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } &&
7501          { ac_try='test -s conftest$ac_exeext'
7502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503   (eval $ac_try) 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); }; }; then
7507   ac_cv_lib_mytinfo_tgoto=yes
7508 else
7509   echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7511
7512 ac_cv_lib_mytinfo_tgoto=no
7513 fi
7514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7515 LIBS=$ac_check_lib_save_LIBS
7516 fi
7517 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
7518 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7519 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7520   LIBS="-lmytinfo $LIBS"
7521 fi
7522
7523         ;;
7524 hpux10.*|hpux11.*)
7525         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
7526 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
7527 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   ac_check_lib_save_LIBS=$LIBS
7531 LIBS="-lcur_colr  $LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #line $LINENO "configure"
7534 /* confdefs.h.  */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h.  */
7539
7540 /* Override any gcc2 internal prototype to avoid an error.  */
7541 #ifdef __cplusplus
7542 extern "C"
7543 #endif
7544 /* We use char because int might match the return type of a gcc2
7545    builtin and then its argument prototype would still apply.  */
7546 char initscr ();
7547 int
7548 main ()
7549 {
7550 initscr ();
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557   (eval $ac_link) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } &&
7561          { ac_try='test -s conftest$ac_exeext'
7562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563   (eval $ac_try) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; }; then
7567   ac_cv_lib_cur_colr_initscr=yes
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_cv_lib_cur_colr_initscr=no
7573 fi
7574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7576 fi
7577 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
7578 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
7579 if test $ac_cv_lib_cur_colr_initscr = yes; then
7580
7581                 LIBS="-lcur_colr $LIBS"
7582                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7583                 ac_cv_func_initscr=yes
7584
7585 else
7586
7587         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
7588 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7589 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   ac_check_lib_save_LIBS=$LIBS
7593 LIBS="-lHcurses  $LIBS"
7594 cat >conftest.$ac_ext <<_ACEOF
7595 #line $LINENO "configure"
7596 /* confdefs.h.  */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h.  */
7601
7602 /* Override any gcc2 internal prototype to avoid an error.  */
7603 #ifdef __cplusplus
7604 extern "C"
7605 #endif
7606 /* We use char because int might match the return type of a gcc2
7607    builtin and then its argument prototype would still apply.  */
7608 char initscr ();
7609 int
7610 main ()
7611 {
7612 initscr ();
7613   ;
7614   return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619   (eval $ac_link) 2>&5
7620   ac_status=$?
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); } &&
7623          { ac_try='test -s conftest$ac_exeext'
7624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); }; }; then
7629   ac_cv_lib_Hcurses_initscr=yes
7630 else
7631   echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 ac_cv_lib_Hcurses_initscr=no
7635 fi
7636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7637 LIBS=$ac_check_lib_save_LIBS
7638 fi
7639 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
7640 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7641 if test $ac_cv_lib_Hcurses_initscr = yes; then
7642
7643                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7644                 LIBS="-lHcurses $LIBS"
7645                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7646                 ac_cv_func_initscr=yes
7647
7648 fi
7649
7650 fi
7651
7652         ;;
7653 linux*) # Suse Linux does not follow /usr/lib convention
7654         LIBS="$LIBS -L/lib"
7655         ;;
7656 esac
7657
7658 if test ".$With5lib" != ".no" ; then
7659 if test -d /usr/5lib ; then
7660         # SunOS 3.x or 4.x
7661         CPPFLAGS="$CPPFLAGS -I/usr/5include"
7662         LIBS="$LIBS -L/usr/5lib"
7663 fi
7664 fi
7665
7666 if test ".$ac_cv_func_initscr" != .yes ; then
7667         cf_save_LIBS="$LIBS"
7668         cf_term_lib=""
7669         cf_curs_lib=""
7670
7671         # Check for library containing tgoto.  Do this before curses library
7672         # because it may be needed to link the test-case for initscr.
7673         echo "$as_me:$LINENO: checking for tgoto" >&5
7674 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7675 if test "${ac_cv_func_tgoto+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   cat >conftest.$ac_ext <<_ACEOF
7679 #line $LINENO "configure"
7680 /* confdefs.h.  */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h.  */
7685 /* System header to define __stub macros and hopefully few prototypes,
7686     which can conflict with char tgoto (); below.
7687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7688     <limits.h> exists even on freestanding compilers.  */
7689 #ifdef __STDC__
7690 # include <limits.h>
7691 #else
7692 # include <assert.h>
7693 #endif
7694 /* Override any gcc2 internal prototype to avoid an error.  */
7695 #ifdef __cplusplus
7696 extern "C"
7697 {
7698 #endif
7699 /* We use char because int might match the return type of a gcc2
7700    builtin and then its argument prototype would still apply.  */
7701 char tgoto ();
7702 /* The GNU C library defines this for functions which it implements
7703     to always fail with ENOSYS.  Some functions are actually named
7704     something starting with __ and the normal name is an alias.  */
7705 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7706 choke me
7707 #else
7708 char (*f) () = tgoto;
7709 #endif
7710 #ifdef __cplusplus
7711 }
7712 #endif
7713
7714 int
7715 main ()
7716 {
7717 return f != tgoto;
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724   (eval $ac_link) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } &&
7728          { ac_try='test -s conftest$ac_exeext'
7729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730   (eval $ac_try) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); }; }; then
7734   ac_cv_func_tgoto=yes
7735 else
7736   echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 ac_cv_func_tgoto=no
7740 fi
7741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7742 fi
7743 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
7744 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7745 if test $ac_cv_func_tgoto = yes; then
7746   cf_term_lib=predefined
7747 else
7748
7749                 for cf_term_lib in termcap termlib unknown
7750                 do
7751                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7752 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
7753 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7754 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   ac_check_lib_save_LIBS=$LIBS
7758 LIBS="-l$cf_term_lib  $LIBS"
7759 cat >conftest.$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7761 /* confdefs.h.  */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h.  */
7766
7767 /* Override any gcc2 internal prototype to avoid an error.  */
7768 #ifdef __cplusplus
7769 extern "C"
7770 #endif
7771 /* We use char because int might match the return type of a gcc2
7772    builtin and then its argument prototype would still apply.  */
7773 char tgoto ();
7774 int
7775 main ()
7776 {
7777 tgoto ();
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7784   (eval $ac_link) 2>&5
7785   ac_status=$?
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); } &&
7788          { ac_try='test -s conftest$ac_exeext'
7789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790   (eval $ac_try) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; }; then
7794   eval "$as_ac_Lib=yes"
7795 else
7796   echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 eval "$as_ac_Lib=no"
7800 fi
7801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7802 LIBS=$ac_check_lib_save_LIBS
7803 fi
7804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7805 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7806 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7807   break
7808 fi
7809
7810                 done
7811
7812 fi
7813
7814
7815         # Check for library containing initscr
7816         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7817         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
7818         do
7819                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
7820 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
7821 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
7822 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7823   echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825   ac_check_lib_save_LIBS=$LIBS
7826 LIBS="-l$cf_curs_lib  $LIBS"
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #line $LINENO "configure"
7829 /* confdefs.h.  */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h.  */
7834
7835 /* Override any gcc2 internal prototype to avoid an error.  */
7836 #ifdef __cplusplus
7837 extern "C"
7838 #endif
7839 /* We use char because int might match the return type of a gcc2
7840    builtin and then its argument prototype would still apply.  */
7841 char initscr ();
7842 int
7843 main ()
7844 {
7845 initscr ();
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852   (eval $ac_link) 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } &&
7856          { ac_try='test -s conftest$ac_exeext'
7857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858   (eval $ac_try) 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; }; then
7862   eval "$as_ac_Lib=yes"
7863 else
7864   echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 eval "$as_ac_Lib=no"
7868 fi
7869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7870 LIBS=$ac_check_lib_save_LIBS
7871 fi
7872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7873 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7874 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7875   break
7876 fi
7877
7878         done
7879         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
7880 echo "$as_me: error: no curses library found" >&2;}
7881    { (exit 1); exit 1; }; }
7882
7883         LIBS="-l$cf_curs_lib $cf_save_LIBS"
7884         if test "$cf_term_lib" = unknown ; then
7885                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
7886 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7887                 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894 #include <${cf_cv_ncurses_header-curses.h}>
7895 int
7896 main ()
7897 {
7898 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>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -s conftest$ac_exeext'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; }; then
7915   cf_result=yes
7916 else
7917   echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 cf_result=no
7921 fi
7922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7923                 echo "$as_me:$LINENO: result: $cf_result" >&5
7924 echo "${ECHO_T}$cf_result" >&6
7925                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
7926 echo "$as_me: error: Cannot link curses library" >&2;}
7927    { (exit 1); exit 1; }; }
7928         elif test "$cf_term_lib" != predefined ; then
7929                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7930 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
7931                 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 /* confdefs.h.  */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h.  */
7938 #include <${cf_cv_ncurses_header-curses.h}>
7939 int
7940 main ()
7941 {
7942 initscr(); tgoto((char *)0, 0, 0);
7943   ;
7944   return 0;
7945 }
7946 _ACEOF
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949   (eval $ac_link) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -s conftest$ac_exeext'
7954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955   (eval $ac_try) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; }; then
7959   cf_result=no
7960 else
7961   echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964
7965                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7966                         cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 #include <${cf_cv_ncurses_header-curses.h}>
7974 int
7975 main ()
7976 {
7977 initscr()
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984   (eval $ac_link) 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } &&
7988          { ac_try='test -s conftest$ac_exeext'
7989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990   (eval $ac_try) 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994   cf_result=yes
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 cf_result=error
8000 fi
8001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8002
8003 fi
8004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8005                 echo "$as_me:$LINENO: result: $cf_result" >&5
8006 echo "${ECHO_T}$cf_result" >&6
8007         fi
8008 fi
8009
8010
8011 fi
8012
8013 fi
8014
8015
8016 fi
8017
8018
8019         old_LIBS="$LIBS"
8020         LIBS="$LIBS $MUTTLIBS"
8021         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
8022 do
8023
8024 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
8025 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
8026 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
8027   echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029   cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8031 /* confdefs.h.  */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h.  */
8036 #include <${cf_cv_ncurses_header-curses.h}>
8037 int
8038 main ()
8039 {
8040 #ifndef ${ac_func}
8041 extern  int     ${ac_func}();
8042 #endif
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049   (eval $ac_compile) 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } &&
8053          { ac_try='test -s conftest.$ac_objext'
8054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055   (eval $ac_try) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; }; then
8059
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 /* confdefs.h.  */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h.  */
8067 #include <${cf_cv_ncurses_header-curses.h}>
8068 int
8069 main ()
8070 {
8071 #ifndef ${ac_func}
8072 int     (*p)() = ${ac_func};
8073 #endif
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080   (eval $ac_compile) 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } &&
8084          { ac_try='test -s conftest.$ac_objext'
8085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086   (eval $ac_try) 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; }; then
8090
8091 eval "ac_cv_func_decl_$ac_func=yes"
8092 else
8093   echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096
8097 eval "ac_cv_func_decl_$ac_func=no"
8098 fi
8099 rm -f conftest.$ac_objext conftest.$ac_ext
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104
8105 eval "ac_cv_func_decl_$ac_func=yes"
8106 fi
8107 rm -f conftest.$ac_objext conftest.$ac_ext
8108 fi
8109
8110 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
8111   echo "$as_me:$LINENO: result: yes" >&5
8112 echo "${ECHO_T}yes" >&6
8113
8114
8115 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
8116
8117   cat >>confdefs.h <<_ACEOF
8118 #define $ac_tr_func 1
8119 _ACEOF
8120
8121 else
8122   echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6
8124 fi
8125 done
8126
8127         if test "$ac_cv_func_decl_start_color" = yes; then
8128
8129 cat >>confdefs.h <<\_ACEOF
8130 #define HAVE_COLOR 1
8131 _ACEOF
8132
8133         fi
8134         if test "$ac_cv_func_decl_resizeterm" = yes; then
8135                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8136         fi
8137         LIBS="$old_LIBS"
8138
8139 fi;
8140
8141 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8142 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8143 if test "${ac_cv_header_stdc+set}" = set; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146   cat >conftest.$ac_ext <<_ACEOF
8147 #line $LINENO "configure"
8148 /* confdefs.h.  */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h.  */
8153 #include <stdlib.h>
8154 #include <stdarg.h>
8155 #include <string.h>
8156 #include <float.h>
8157
8158 int
8159 main ()
8160 {
8161
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168   (eval $ac_compile) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } &&
8172          { ac_try='test -s conftest.$ac_objext'
8173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174   (eval $ac_try) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); }; }; then
8178   ac_cv_header_stdc=yes
8179 else
8180   echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8182
8183 ac_cv_header_stdc=no
8184 fi
8185 rm -f conftest.$ac_objext conftest.$ac_ext
8186
8187 if test $ac_cv_header_stdc = yes; then
8188   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8189   cat >conftest.$ac_ext <<_ACEOF
8190 #line $LINENO "configure"
8191 /* confdefs.h.  */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h.  */
8196 #include <string.h>
8197
8198 _ACEOF
8199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8200   $EGREP "memchr" >/dev/null 2>&1; then
8201   :
8202 else
8203   ac_cv_header_stdc=no
8204 fi
8205 rm -f conftest*
8206
8207 fi
8208
8209 if test $ac_cv_header_stdc = yes; then
8210   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8211   cat >conftest.$ac_ext <<_ACEOF
8212 #line $LINENO "configure"
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218 #include <stdlib.h>
8219
8220 _ACEOF
8221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222   $EGREP "free" >/dev/null 2>&1; then
8223   :
8224 else
8225   ac_cv_header_stdc=no
8226 fi
8227 rm -f conftest*
8228
8229 fi
8230
8231 if test $ac_cv_header_stdc = yes; then
8232   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8233   if test "$cross_compiling" = yes; then
8234   :
8235 else
8236   cat >conftest.$ac_ext <<_ACEOF
8237 #line $LINENO "configure"
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243 #include <ctype.h>
8244 #if ((' ' & 0x0FF) == 0x020)
8245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8247 #else
8248 # define ISLOWER(c) \
8249                    (('a' <= (c) && (c) <= 'i') \
8250                      || ('j' <= (c) && (c) <= 'r') \
8251                      || ('s' <= (c) && (c) <= 'z'))
8252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8253 #endif
8254
8255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8256 int
8257 main ()
8258 {
8259   int i;
8260   for (i = 0; i < 256; i++)
8261     if (XOR (islower (i), ISLOWER (i))
8262         || toupper (i) != TOUPPER (i))
8263       exit(2);
8264   exit (0);
8265 }
8266 _ACEOF
8267 rm -f conftest$ac_exeext
8268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8269   (eval $ac_link) 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; }; then
8278   :
8279 else
8280   echo "$as_me: program exited with status $ac_status" >&5
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 ( exit $ac_status )
8285 ac_cv_header_stdc=no
8286 fi
8287 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 fi
8290 fi
8291 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8292 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8293 if test $ac_cv_header_stdc = yes; then
8294
8295 cat >>confdefs.h <<\_ACEOF
8296 #define STDC_HEADERS 1
8297 _ACEOF
8298
8299 fi
8300
8301
8302
8303
8304
8305
8306 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
8307 do
8308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8310   echo "$as_me:$LINENO: checking for $ac_header" >&5
8311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 fi
8315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8317 else
8318   # Is the header compilable?
8319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8321 cat >conftest.$ac_ext <<_ACEOF
8322 #line $LINENO "configure"
8323 /* confdefs.h.  */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h.  */
8328 $ac_includes_default
8329 #include <$ac_header>
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333   (eval $ac_compile) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } &&
8337          { ac_try='test -s conftest.$ac_objext'
8338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339   (eval $ac_try) 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); }; }; then
8343   ac_header_compiler=yes
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348 ac_header_compiler=no
8349 fi
8350 rm -f conftest.$ac_objext conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8352 echo "${ECHO_T}$ac_header_compiler" >&6
8353
8354 # Is the header present?
8355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364 #include <$ac_header>
8365 _ACEOF
8366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } >/dev/null; then
8374   if test -s conftest.err; then
8375     ac_cpp_err=$ac_c_preproc_warn_flag
8376   else
8377     ac_cpp_err=
8378   fi
8379 else
8380   ac_cpp_err=yes
8381 fi
8382 if test -z "$ac_cpp_err"; then
8383   ac_header_preproc=yes
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388   ac_header_preproc=no
8389 fi
8390 rm -f conftest.err conftest.$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8392 echo "${ECHO_T}$ac_header_preproc" >&6
8393
8394 # So?  What about this header?
8395 case $ac_header_compiler:$ac_header_preproc in
8396   yes:no )
8397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8401     (
8402       cat <<\_ASBOX
8403 ## ------------------------------------ ##
8404 ## Report this to bug-autoconf@gnu.org. ##
8405 ## ------------------------------------ ##
8406 _ASBOX
8407     ) |
8408       sed "s/^/$as_me: WARNING:     /" >&2
8409     ;;
8410   no:yes )
8411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8413     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8417     (
8418       cat <<\_ASBOX
8419 ## ------------------------------------ ##
8420 ## Report this to bug-autoconf@gnu.org. ##
8421 ## ------------------------------------ ##
8422 _ASBOX
8423     ) |
8424       sed "s/^/$as_me: WARNING:     /" >&2
8425     ;;
8426 esac
8427 echo "$as_me:$LINENO: checking for $ac_header" >&5
8428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   eval "$as_ac_Header=$ac_header_preproc"
8433 fi
8434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8436
8437 fi
8438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8439   cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8441 _ACEOF
8442
8443 fi
8444
8445 done
8446
8447
8448
8449 for ac_header in sys/time.h sys/resource.h
8450 do
8451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8453   echo "$as_me:$LINENO: checking for $ac_header" >&5
8454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 fi
8458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8460 else
8461   # Is the header compilable?
8462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471 $ac_includes_default
8472 #include <$ac_header>
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476   (eval $ac_compile) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -s conftest.$ac_objext'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; }; then
8486   ac_header_compiler=yes
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ac_header_compiler=no
8492 fi
8493 rm -f conftest.$ac_objext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8495 echo "${ECHO_T}$ac_header_compiler" >&6
8496
8497 # Is the header present?
8498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8501 #line $LINENO "configure"
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507 #include <$ac_header>
8508 _ACEOF
8509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } >/dev/null; then
8517   if test -s conftest.err; then
8518     ac_cpp_err=$ac_c_preproc_warn_flag
8519   else
8520     ac_cpp_err=
8521   fi
8522 else
8523   ac_cpp_err=yes
8524 fi
8525 if test -z "$ac_cpp_err"; then
8526   ac_header_preproc=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531   ac_header_preproc=no
8532 fi
8533 rm -f conftest.err conftest.$ac_ext
8534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8535 echo "${ECHO_T}$ac_header_preproc" >&6
8536
8537 # So?  What about this header?
8538 case $ac_header_compiler:$ac_header_preproc in
8539   yes:no )
8540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8544     (
8545       cat <<\_ASBOX
8546 ## ------------------------------------ ##
8547 ## Report this to bug-autoconf@gnu.org. ##
8548 ## ------------------------------------ ##
8549 _ASBOX
8550     ) |
8551       sed "s/^/$as_me: WARNING:     /" >&2
8552     ;;
8553   no:yes )
8554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8556     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8560     (
8561       cat <<\_ASBOX
8562 ## ------------------------------------ ##
8563 ## Report this to bug-autoconf@gnu.org. ##
8564 ## ------------------------------------ ##
8565 _ASBOX
8566     ) |
8567       sed "s/^/$as_me: WARNING:     /" >&2
8568     ;;
8569 esac
8570 echo "$as_me:$LINENO: checking for $ac_header" >&5
8571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   eval "$as_ac_Header=$ac_header_preproc"
8576 fi
8577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8579
8580 fi
8581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8582   cat >>confdefs.h <<_ACEOF
8583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8584 _ACEOF
8585
8586 fi
8587
8588 done
8589
8590
8591 for ac_header in unix.h
8592 do
8593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8595   echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 fi
8600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602 else
8603   # Is the header compilable?
8604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 /* confdefs.h.  */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h.  */
8613 $ac_includes_default
8614 #include <$ac_header>
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618   (eval $ac_compile) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); } &&
8622          { ac_try='test -s conftest.$ac_objext'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; }; then
8628   ac_header_compiler=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 ac_header_compiler=no
8634 fi
8635 rm -f conftest.$ac_objext conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8637 echo "${ECHO_T}$ac_header_compiler" >&6
8638
8639 # Is the header present?
8640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 #include <$ac_header>
8650 _ACEOF
8651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } >/dev/null; then
8659   if test -s conftest.err; then
8660     ac_cpp_err=$ac_c_preproc_warn_flag
8661   else
8662     ac_cpp_err=
8663   fi
8664 else
8665   ac_cpp_err=yes
8666 fi
8667 if test -z "$ac_cpp_err"; then
8668   ac_header_preproc=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673   ac_header_preproc=no
8674 fi
8675 rm -f conftest.err conftest.$ac_ext
8676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8677 echo "${ECHO_T}$ac_header_preproc" >&6
8678
8679 # So?  What about this header?
8680 case $ac_header_compiler:$ac_header_preproc in
8681   yes:no )
8682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8686     (
8687       cat <<\_ASBOX
8688 ## ------------------------------------ ##
8689 ## Report this to bug-autoconf@gnu.org. ##
8690 ## ------------------------------------ ##
8691 _ASBOX
8692     ) |
8693       sed "s/^/$as_me: WARNING:     /" >&2
8694     ;;
8695   no:yes )
8696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8698     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8702     (
8703       cat <<\_ASBOX
8704 ## ------------------------------------ ##
8705 ## Report this to bug-autoconf@gnu.org. ##
8706 ## ------------------------------------ ##
8707 _ASBOX
8708     ) |
8709       sed "s/^/$as_me: WARNING:     /" >&2
8710     ;;
8711 esac
8712 echo "$as_me:$LINENO: checking for $ac_header" >&5
8713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8715   echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717   eval "$as_ac_Header=$ac_header_preproc"
8718 fi
8719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8721
8722 fi
8723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8724   cat >>confdefs.h <<_ACEOF
8725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8726 _ACEOF
8727
8728 fi
8729
8730 done
8731
8732
8733
8734
8735
8736 for ac_func in setrlimit getsid isctype
8737 do
8738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8739 echo "$as_me:$LINENO: checking for $ac_func" >&5
8740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8741 if eval "test \"\${$as_ac_var+set}\" = set"; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744   cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 /* System header to define __stub macros and hopefully few prototypes,
8752     which can conflict with char $ac_func (); below.
8753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8754     <limits.h> exists even on freestanding compilers.  */
8755 #ifdef __STDC__
8756 # include <limits.h>
8757 #else
8758 # include <assert.h>
8759 #endif
8760 /* Override any gcc2 internal prototype to avoid an error.  */
8761 #ifdef __cplusplus
8762 extern "C"
8763 {
8764 #endif
8765 /* We use char because int might match the return type of a gcc2
8766    builtin and then its argument prototype would still apply.  */
8767 char $ac_func ();
8768 /* The GNU C library defines this for functions which it implements
8769     to always fail with ENOSYS.  Some functions are actually named
8770     something starting with __ and the normal name is an alias.  */
8771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8772 choke me
8773 #else
8774 char (*f) () = $ac_func;
8775 #endif
8776 #ifdef __cplusplus
8777 }
8778 #endif
8779
8780 int
8781 main ()
8782 {
8783 return f != $ac_func;
8784   ;
8785   return 0;
8786 }
8787 _ACEOF
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790   (eval $ac_link) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); } &&
8794          { ac_try='test -s conftest$ac_exeext'
8795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796   (eval $ac_try) 2>&5
8797   ac_status=$?
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); }; }; then
8800   eval "$as_ac_var=yes"
8801 else
8802   echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805 eval "$as_ac_var=no"
8806 fi
8807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8808 fi
8809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8811 if test `eval echo '${'$as_ac_var'}'` = yes; then
8812   cat >>confdefs.h <<_ACEOF
8813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8814 _ACEOF
8815
8816 fi
8817 done
8818
8819
8820 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8821 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8822 if test "${ac_cv_type_signal+set}" = set; then
8823   echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825   cat >conftest.$ac_ext <<_ACEOF
8826 #line $LINENO "configure"
8827 /* confdefs.h.  */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h.  */
8832 #include <sys/types.h>
8833 #include <signal.h>
8834 #ifdef signal
8835 # undef signal
8836 #endif
8837 #ifdef __cplusplus
8838 extern "C" void (*signal (int, void (*)(int)))(int);
8839 #else
8840 void (*signal ()) ();
8841 #endif
8842
8843 int
8844 main ()
8845 {
8846 int i;
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8853   (eval $ac_compile) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); } &&
8857          { ac_try='test -s conftest.$ac_objext'
8858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859   (eval $ac_try) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; }; then
8863   ac_cv_type_signal=void
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_type_signal=int
8869 fi
8870 rm -f conftest.$ac_objext conftest.$ac_ext
8871 fi
8872 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8873 echo "${ECHO_T}$ac_cv_type_signal" >&6
8874
8875 cat >>confdefs.h <<_ACEOF
8876 #define RETSIGTYPE $ac_cv_type_signal
8877 _ACEOF
8878
8879
8880
8881 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
8882 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
8883 cat >conftest.$ac_ext <<_ACEOF
8884 #line $LINENO "configure"
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890 #include <signal.h>
8891
8892 _ACEOF
8893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
8895
8896     ac_cv_type_sig_atomic_t=yes;
8897     cat >conftest.$ac_ext <<_ACEOF
8898 #line $LINENO "configure"
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904 #include <signal.h>
8905
8906 _ACEOF
8907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8908   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
8909
8910                         is_sig_atomic_t_volatile=yes;
8911                         echo "$as_me:$LINENO: result: yes, volatile" >&5
8912 echo "${ECHO_T}yes, volatile" >&6
8913
8914 else
8915
8916                         is_sig_atomic_t_volatile=no;
8917                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
8918 echo "${ECHO_T}yes, non volatile" >&6
8919
8920 fi
8921 rm -f conftest*
8922
8923
8924 else
8925
8926     echo "$as_me:$LINENO: result: no" >&5
8927 echo "${ECHO_T}no" >&6
8928     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
8929 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
8930 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   cat >conftest.$ac_ext <<_ACEOF
8934 #line $LINENO "configure"
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940 $ac_includes_default
8941 int
8942 main ()
8943 {
8944 if ((sig_atomic_t *) 0)
8945   return 0;
8946 if (sizeof (sig_atomic_t))
8947   return 0;
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 rm -f conftest.$ac_objext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8954   (eval $ac_compile) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); } &&
8958          { ac_try='test -s conftest.$ac_objext'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; }; then
8964   ac_cv_type_sig_atomic_t=yes
8965 else
8966   echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 ac_cv_type_sig_atomic_t=no
8970 fi
8971 rm -f conftest.$ac_objext conftest.$ac_ext
8972 fi
8973 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
8974 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
8975 if test $ac_cv_type_sig_atomic_t = yes; then
8976   :
8977 else
8978
8979 cat >>confdefs.h <<_ACEOF
8980 #define sig_atomic_t int
8981 _ACEOF
8982
8983 fi
8984
8985     is_sig_atomic_t_volatile=no
8986
8987 fi
8988 rm -f conftest*
8989
8990 if test $is_sig_atomic_t_volatile = 'yes'
8991 then
8992     cat >>confdefs.h <<\_ACEOF
8993 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
8994 _ACEOF
8995
8996 else
8997     cat >>confdefs.h <<\_ACEOF
8998 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
8999 _ACEOF
9000
9001 fi
9002
9003 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9004 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9005 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   cat >conftest.$ac_ext <<_ACEOF
9009 #line $LINENO "configure"
9010 /* confdefs.h.  */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h.  */
9015 $ac_includes_default
9016 int
9017 main ()
9018 {
9019 #ifndef sys_siglist
9020   char *p = (char *) sys_siglist;
9021 #endif
9022
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029   (eval $ac_compile) 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); } &&
9033          { ac_try='test -s conftest.$ac_objext'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; }; then
9039   ac_cv_have_decl_sys_siglist=yes
9040 else
9041   echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 ac_cv_have_decl_sys_siglist=no
9045 fi
9046 rm -f conftest.$ac_objext conftest.$ac_ext
9047 fi
9048 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9049 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9050 if test $ac_cv_have_decl_sys_siglist = yes; then
9051
9052 cat >>confdefs.h <<_ACEOF
9053 #define HAVE_DECL_SYS_SIGLIST 1
9054 _ACEOF
9055
9056
9057 else
9058   cat >>confdefs.h <<_ACEOF
9059 #define HAVE_DECL_SYS_SIGLIST 0
9060 _ACEOF
9061
9062
9063 fi
9064
9065
9066
9067
9068 echo "$as_me:$LINENO: checking for pid_t" >&5
9069 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9070 if test "${ac_cv_type_pid_t+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   cat >conftest.$ac_ext <<_ACEOF
9074 #line $LINENO "configure"
9075 /* confdefs.h.  */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h.  */
9080 $ac_includes_default
9081 int
9082 main ()
9083 {
9084 if ((pid_t *) 0)
9085   return 0;
9086 if (sizeof (pid_t))
9087   return 0;
9088   ;
9089   return 0;
9090 }
9091 _ACEOF
9092 rm -f conftest.$ac_objext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094   (eval $ac_compile) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } &&
9098          { ac_try='test -s conftest.$ac_objext'
9099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100   (eval $ac_try) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); }; }; then
9104   ac_cv_type_pid_t=yes
9105 else
9106   echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109 ac_cv_type_pid_t=no
9110 fi
9111 rm -f conftest.$ac_objext conftest.$ac_ext
9112 fi
9113 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9114 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9115 if test $ac_cv_type_pid_t = yes; then
9116   :
9117 else
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define pid_t int
9121 _ACEOF
9122
9123 fi
9124
9125
9126
9127
9128
9129
9130
9131 for ac_func in fgetpos memmove setegid srand48 strerror
9132 do
9133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9134 echo "$as_me:$LINENO: checking for $ac_func" >&5
9135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9136 if eval "test \"\${$as_ac_var+set}\" = set"; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139   cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9141 /* confdefs.h.  */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h.  */
9146 /* System header to define __stub macros and hopefully few prototypes,
9147     which can conflict with char $ac_func (); below.
9148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9149     <limits.h> exists even on freestanding compilers.  */
9150 #ifdef __STDC__
9151 # include <limits.h>
9152 #else
9153 # include <assert.h>
9154 #endif
9155 /* Override any gcc2 internal prototype to avoid an error.  */
9156 #ifdef __cplusplus
9157 extern "C"
9158 {
9159 #endif
9160 /* We use char because int might match the return type of a gcc2
9161    builtin and then its argument prototype would still apply.  */
9162 char $ac_func ();
9163 /* The GNU C library defines this for functions which it implements
9164     to always fail with ENOSYS.  Some functions are actually named
9165     something starting with __ and the normal name is an alias.  */
9166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9167 choke me
9168 #else
9169 char (*f) () = $ac_func;
9170 #endif
9171 #ifdef __cplusplus
9172 }
9173 #endif
9174
9175 int
9176 main ()
9177 {
9178 return f != $ac_func;
9179   ;
9180   return 0;
9181 }
9182 _ACEOF
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185   (eval $ac_link) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } &&
9189          { ac_try='test -s conftest$ac_exeext'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; }; then
9195   eval "$as_ac_var=yes"
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200 eval "$as_ac_var=no"
9201 fi
9202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9203 fi
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9206 if test `eval echo '${'$as_ac_var'}'` = yes; then
9207   cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9209 _ACEOF
9210
9211 fi
9212 done
9213
9214
9215
9216
9217 for ac_func in strcasecmp strdup
9218 do
9219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9220 echo "$as_me:$LINENO: checking for $ac_func" >&5
9221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9222 if eval "test \"\${$as_ac_var+set}\" = set"; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   cat >conftest.$ac_ext <<_ACEOF
9226 #line $LINENO "configure"
9227 /* confdefs.h.  */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h.  */
9232 /* System header to define __stub macros and hopefully few prototypes,
9233     which can conflict with char $ac_func (); below.
9234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235     <limits.h> exists even on freestanding compilers.  */
9236 #ifdef __STDC__
9237 # include <limits.h>
9238 #else
9239 # include <assert.h>
9240 #endif
9241 /* Override any gcc2 internal prototype to avoid an error.  */
9242 #ifdef __cplusplus
9243 extern "C"
9244 {
9245 #endif
9246 /* We use char because int might match the return type of a gcc2
9247    builtin and then its argument prototype would still apply.  */
9248 char $ac_func ();
9249 /* The GNU C library defines this for functions which it implements
9250     to always fail with ENOSYS.  Some functions are actually named
9251     something starting with __ and the normal name is an alias.  */
9252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9253 choke me
9254 #else
9255 char (*f) () = $ac_func;
9256 #endif
9257 #ifdef __cplusplus
9258 }
9259 #endif
9260
9261 int
9262 main ()
9263 {
9264 return f != $ac_func;
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271   (eval $ac_link) 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); } &&
9275          { ac_try='test -s conftest$ac_exeext'
9276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277   (eval $ac_try) 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); }; }; then
9281   eval "$as_ac_var=yes"
9282 else
9283   echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 eval "$as_ac_var=no"
9287 fi
9288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9289 fi
9290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9292 if test `eval echo '${'$as_ac_var'}'` = yes; then
9293   cat >>confdefs.h <<_ACEOF
9294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9295 _ACEOF
9296
9297 else
9298   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9299 fi
9300 done
9301
9302
9303
9304 echo "$as_me:$LINENO: checking for getopt" >&5
9305 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
9306 if test "${ac_cv_func_getopt+set}" = set; then
9307   echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309   cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316 /* System header to define __stub macros and hopefully few prototypes,
9317     which can conflict with char getopt (); below.
9318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9319     <limits.h> exists even on freestanding compilers.  */
9320 #ifdef __STDC__
9321 # include <limits.h>
9322 #else
9323 # include <assert.h>
9324 #endif
9325 /* Override any gcc2 internal prototype to avoid an error.  */
9326 #ifdef __cplusplus
9327 extern "C"
9328 {
9329 #endif
9330 /* We use char because int might match the return type of a gcc2
9331    builtin and then its argument prototype would still apply.  */
9332 char getopt ();
9333 /* The GNU C library defines this for functions which it implements
9334     to always fail with ENOSYS.  Some functions are actually named
9335     something starting with __ and the normal name is an alias.  */
9336 #if defined (__stub_getopt) || defined (__stub___getopt)
9337 choke me
9338 #else
9339 char (*f) () = getopt;
9340 #endif
9341 #ifdef __cplusplus
9342 }
9343 #endif
9344
9345 int
9346 main ()
9347 {
9348 return f != getopt;
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355   (eval $ac_link) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } &&
9359          { ac_try='test -s conftest$ac_exeext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365   ac_cv_func_getopt=yes
9366 else
9367   echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370 ac_cv_func_getopt=no
9371 fi
9372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9373 fi
9374 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9375 echo "${ECHO_T}$ac_cv_func_getopt" >&6
9376
9377 if test $ac_cv_func_getopt = yes; then
9378
9379 for ac_header in getopt.h
9380 do
9381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9383   echo "$as_me:$LINENO: checking for $ac_header" >&5
9384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9386   echo $ECHO_N "(cached) $ECHO_C" >&6
9387 fi
9388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9390 else
9391   # Is the header compilable?
9392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9395 #line $LINENO "configure"
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401 $ac_includes_default
9402 #include <$ac_header>
9403 _ACEOF
9404 rm -f conftest.$ac_objext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406   (eval $ac_compile) 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } &&
9410          { ac_try='test -s conftest.$ac_objext'
9411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412   (eval $ac_try) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; }; then
9416   ac_header_compiler=yes
9417 else
9418   echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421 ac_header_compiler=no
9422 fi
9423 rm -f conftest.$ac_objext conftest.$ac_ext
9424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9425 echo "${ECHO_T}$ac_header_compiler" >&6
9426
9427 # Is the header present?
9428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 /* confdefs.h.  */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h.  */
9437 #include <$ac_header>
9438 _ACEOF
9439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } >/dev/null; then
9447   if test -s conftest.err; then
9448     ac_cpp_err=$ac_c_preproc_warn_flag
9449   else
9450     ac_cpp_err=
9451   fi
9452 else
9453   ac_cpp_err=yes
9454 fi
9455 if test -z "$ac_cpp_err"; then
9456   ac_header_preproc=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461   ac_header_preproc=no
9462 fi
9463 rm -f conftest.err conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465 echo "${ECHO_T}$ac_header_preproc" >&6
9466
9467 # So?  What about this header?
9468 case $ac_header_compiler:$ac_header_preproc in
9469   yes:no )
9470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9474     (
9475       cat <<\_ASBOX
9476 ## ------------------------------------ ##
9477 ## Report this to bug-autoconf@gnu.org. ##
9478 ## ------------------------------------ ##
9479 _ASBOX
9480     ) |
9481       sed "s/^/$as_me: WARNING:     /" >&2
9482     ;;
9483   no:yes )
9484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9486     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9490     (
9491       cat <<\_ASBOX
9492 ## ------------------------------------ ##
9493 ## Report this to bug-autoconf@gnu.org. ##
9494 ## ------------------------------------ ##
9495 _ASBOX
9496     ) |
9497       sed "s/^/$as_me: WARNING:     /" >&2
9498     ;;
9499 esac
9500 echo "$as_me:$LINENO: checking for $ac_header" >&5
9501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   eval "$as_ac_Header=$ac_header_preproc"
9506 fi
9507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9509
9510 fi
9511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9512   cat >>confdefs.h <<_ACEOF
9513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9514 _ACEOF
9515
9516 fi
9517
9518 done
9519
9520 fi
9521
9522 mutt_cv_snprintf=no
9523 SNPRINTFOBJS=""
9524
9525 for ac_func in snprintf
9526 do
9527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9528 echo "$as_me:$LINENO: checking for $ac_func" >&5
9529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9530 if eval "test \"\${$as_ac_var+set}\" = set"; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533   cat >conftest.$ac_ext <<_ACEOF
9534 #line $LINENO "configure"
9535 /* confdefs.h.  */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h.  */
9540 /* System header to define __stub macros and hopefully few prototypes,
9541     which can conflict with char $ac_func (); below.
9542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543     <limits.h> exists even on freestanding compilers.  */
9544 #ifdef __STDC__
9545 # include <limits.h>
9546 #else
9547 # include <assert.h>
9548 #endif
9549 /* Override any gcc2 internal prototype to avoid an error.  */
9550 #ifdef __cplusplus
9551 extern "C"
9552 {
9553 #endif
9554 /* We use char because int might match the return type of a gcc2
9555    builtin and then its argument prototype would still apply.  */
9556 char $ac_func ();
9557 /* The GNU C library defines this for functions which it implements
9558     to always fail with ENOSYS.  Some functions are actually named
9559     something starting with __ and the normal name is an alias.  */
9560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9561 choke me
9562 #else
9563 char (*f) () = $ac_func;
9564 #endif
9565 #ifdef __cplusplus
9566 }
9567 #endif
9568
9569 int
9570 main ()
9571 {
9572 return f != $ac_func;
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579   (eval $ac_link) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); } &&
9583          { ac_try='test -s conftest$ac_exeext'
9584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585   (eval $ac_try) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; }; then
9589   eval "$as_ac_var=yes"
9590 else
9591   echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594 eval "$as_ac_var=no"
9595 fi
9596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9597 fi
9598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9600 if test `eval echo '${'$as_ac_var'}'` = yes; then
9601   cat >>confdefs.h <<_ACEOF
9602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9603 _ACEOF
9604
9605 else
9606   mutt_cv_snprintf=yes
9607 fi
9608 done
9609
9610
9611 for ac_func in vsnprintf
9612 do
9613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9614 echo "$as_me:$LINENO: checking for $ac_func" >&5
9615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9616 if eval "test \"\${$as_ac_var+set}\" = set"; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   cat >conftest.$ac_ext <<_ACEOF
9620 #line $LINENO "configure"
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626 /* System header to define __stub macros and hopefully few prototypes,
9627     which can conflict with char $ac_func (); below.
9628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9629     <limits.h> exists even on freestanding compilers.  */
9630 #ifdef __STDC__
9631 # include <limits.h>
9632 #else
9633 # include <assert.h>
9634 #endif
9635 /* Override any gcc2 internal prototype to avoid an error.  */
9636 #ifdef __cplusplus
9637 extern "C"
9638 {
9639 #endif
9640 /* We use char because int might match the return type of a gcc2
9641    builtin and then its argument prototype would still apply.  */
9642 char $ac_func ();
9643 /* The GNU C library defines this for functions which it implements
9644     to always fail with ENOSYS.  Some functions are actually named
9645     something starting with __ and the normal name is an alias.  */
9646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9647 choke me
9648 #else
9649 char (*f) () = $ac_func;
9650 #endif
9651 #ifdef __cplusplus
9652 }
9653 #endif
9654
9655 int
9656 main ()
9657 {
9658 return f != $ac_func;
9659   ;
9660   return 0;
9661 }
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665   (eval $ac_link) 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } &&
9669          { ac_try='test -s conftest$ac_exeext'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; }; then
9675   eval "$as_ac_var=yes"
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 eval "$as_ac_var=no"
9681 fi
9682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9683 fi
9684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9686 if test `eval echo '${'$as_ac_var'}'` = yes; then
9687   cat >>confdefs.h <<_ACEOF
9688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9689 _ACEOF
9690
9691 else
9692   mutt_cv_snprintf=yes
9693 fi
9694 done
9695
9696 if test $mutt_cv_snprintf = yes; then
9697         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9698 fi
9699
9700
9701 for ac_func in ftruncate
9702 do
9703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9704 echo "$as_me:$LINENO: checking for $ac_func" >&5
9705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9706 if eval "test \"\${$as_ac_var+set}\" = set"; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709   cat >conftest.$ac_ext <<_ACEOF
9710 #line $LINENO "configure"
9711 /* confdefs.h.  */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h.  */
9716 /* System header to define __stub macros and hopefully few prototypes,
9717     which can conflict with char $ac_func (); below.
9718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9719     <limits.h> exists even on freestanding compilers.  */
9720 #ifdef __STDC__
9721 # include <limits.h>
9722 #else
9723 # include <assert.h>
9724 #endif
9725 /* Override any gcc2 internal prototype to avoid an error.  */
9726 #ifdef __cplusplus
9727 extern "C"
9728 {
9729 #endif
9730 /* We use char because int might match the return type of a gcc2
9731    builtin and then its argument prototype would still apply.  */
9732 char $ac_func ();
9733 /* The GNU C library defines this for functions which it implements
9734     to always fail with ENOSYS.  Some functions are actually named
9735     something starting with __ and the normal name is an alias.  */
9736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9737 choke me
9738 #else
9739 char (*f) () = $ac_func;
9740 #endif
9741 #ifdef __cplusplus
9742 }
9743 #endif
9744
9745 int
9746 main ()
9747 {
9748 return f != $ac_func;
9749   ;
9750   return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755   (eval $ac_link) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 eval "$as_ac_var=no"
9771 fi
9772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9773 fi
9774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9776 if test `eval echo '${'$as_ac_var'}'` = yes; then
9777   cat >>confdefs.h <<_ACEOF
9778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9779 _ACEOF
9780
9781 else
9782
9783 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
9784 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
9785 if test "${ac_cv_lib_x_chsize+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   ac_check_lib_save_LIBS=$LIBS
9789 LIBS="-lx  $LIBS"
9790 cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9792 /* confdefs.h.  */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h.  */
9797
9798 /* Override any gcc2 internal prototype to avoid an error.  */
9799 #ifdef __cplusplus
9800 extern "C"
9801 #endif
9802 /* We use char because int might match the return type of a gcc2
9803    builtin and then its argument prototype would still apply.  */
9804 char chsize ();
9805 int
9806 main ()
9807 {
9808 chsize ();
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9815   (eval $ac_link) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -s conftest$ac_exeext'
9820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821   (eval $ac_try) 2>&5
9822   ac_status=$?
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); }; }; then
9825   ac_cv_lib_x_chsize=yes
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 ac_cv_lib_x_chsize=no
9831 fi
9832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9834 fi
9835 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
9836 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
9837 if test $ac_cv_lib_x_chsize = yes; then
9838   cat >>confdefs.h <<_ACEOF
9839 #define HAVE_LIBX 1
9840 _ACEOF
9841
9842   LIBS="-lx $LIBS"
9843
9844 fi
9845
9846 fi
9847 done
9848
9849
9850
9851 for ac_func in strftime
9852 do
9853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9854 echo "$as_me:$LINENO: checking for $ac_func" >&5
9855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9856 if eval "test \"\${$as_ac_var+set}\" = set"; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859   cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9861 /* confdefs.h.  */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h.  */
9866 /* System header to define __stub macros and hopefully few prototypes,
9867     which can conflict with char $ac_func (); below.
9868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9869     <limits.h> exists even on freestanding compilers.  */
9870 #ifdef __STDC__
9871 # include <limits.h>
9872 #else
9873 # include <assert.h>
9874 #endif
9875 /* Override any gcc2 internal prototype to avoid an error.  */
9876 #ifdef __cplusplus
9877 extern "C"
9878 {
9879 #endif
9880 /* We use char because int might match the return type of a gcc2
9881    builtin and then its argument prototype would still apply.  */
9882 char $ac_func ();
9883 /* The GNU C library defines this for functions which it implements
9884     to always fail with ENOSYS.  Some functions are actually named
9885     something starting with __ and the normal name is an alias.  */
9886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9887 choke me
9888 #else
9889 char (*f) () = $ac_func;
9890 #endif
9891 #ifdef __cplusplus
9892 }
9893 #endif
9894
9895 int
9896 main ()
9897 {
9898 return f != $ac_func;
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905   (eval $ac_link) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } &&
9909          { ac_try='test -s conftest$ac_exeext'
9910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911   (eval $ac_try) 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); }; }; then
9915   eval "$as_ac_var=yes"
9916 else
9917   echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920 eval "$as_ac_var=no"
9921 fi
9922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9923 fi
9924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9926 if test `eval echo '${'$as_ac_var'}'` = yes; then
9927   cat >>confdefs.h <<_ACEOF
9928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9929 _ACEOF
9930
9931 else
9932
9933 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9934 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9935 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9936   echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938   ac_check_lib_save_LIBS=$LIBS
9939 LIBS="-lintl  $LIBS"
9940 cat >conftest.$ac_ext <<_ACEOF
9941 #line $LINENO "configure"
9942 /* confdefs.h.  */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h.  */
9947
9948 /* Override any gcc2 internal prototype to avoid an error.  */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 /* We use char because int might match the return type of a gcc2
9953    builtin and then its argument prototype would still apply.  */
9954 char strftime ();
9955 int
9956 main ()
9957 {
9958 strftime ();
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965   (eval $ac_link) 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   ac_cv_lib_intl_strftime=yes
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ac_cv_lib_intl_strftime=no
9981 fi
9982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9984 fi
9985 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9986 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9987 if test $ac_cv_lib_intl_strftime = yes; then
9988   cat >>confdefs.h <<_ACEOF
9989 #define HAVE_LIBINTL 1
9990 _ACEOF
9991
9992   LIBS="-lintl $LIBS"
9993
9994 fi
9995
9996 fi
9997 done
9998
9999
10000
10001 for ac_func in fchdir
10002 do
10003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10004 echo "$as_me:$LINENO: checking for $ac_func" >&5
10005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10006 if eval "test \"\${$as_ac_var+set}\" = set"; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   cat >conftest.$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 /* System header to define __stub macros and hopefully few prototypes,
10017     which can conflict with char $ac_func (); below.
10018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10019     <limits.h> exists even on freestanding compilers.  */
10020 #ifdef __STDC__
10021 # include <limits.h>
10022 #else
10023 # include <assert.h>
10024 #endif
10025 /* Override any gcc2 internal prototype to avoid an error.  */
10026 #ifdef __cplusplus
10027 extern "C"
10028 {
10029 #endif
10030 /* We use char because int might match the return type of a gcc2
10031    builtin and then its argument prototype would still apply.  */
10032 char $ac_func ();
10033 /* The GNU C library defines this for functions which it implements
10034     to always fail with ENOSYS.  Some functions are actually named
10035     something starting with __ and the normal name is an alias.  */
10036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10037 choke me
10038 #else
10039 char (*f) () = $ac_func;
10040 #endif
10041 #ifdef __cplusplus
10042 }
10043 #endif
10044
10045 int
10046 main ()
10047 {
10048 return f != $ac_func;
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055   (eval $ac_link) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } &&
10059          { ac_try='test -s conftest$ac_exeext'
10060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061   (eval $ac_try) 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); }; }; then
10065   eval "$as_ac_var=yes"
10066 else
10067   echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070 eval "$as_ac_var=no"
10071 fi
10072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10073 fi
10074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10076 if test `eval echo '${'$as_ac_var'}'` = yes; then
10077   cat >>confdefs.h <<_ACEOF
10078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10079 _ACEOF
10080
10081 else
10082   mutt_cv_fchdir=no
10083 fi
10084 done
10085
10086
10087
10088 # Check whether --with-regex or --without-regex was given.
10089 if test "${with_regex+set}" = set; then
10090   withval="$with_regex"
10091   mutt_cv_regex=yes
10092 else
10093
10094 for ac_func in regcomp
10095 do
10096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10097 echo "$as_me:$LINENO: checking for $ac_func" >&5
10098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10099 if eval "test \"\${$as_ac_var+set}\" = set"; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102   cat >conftest.$ac_ext <<_ACEOF
10103 #line $LINENO "configure"
10104 /* confdefs.h.  */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h.  */
10109 /* System header to define __stub macros and hopefully few prototypes,
10110     which can conflict with char $ac_func (); below.
10111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112     <limits.h> exists even on freestanding compilers.  */
10113 #ifdef __STDC__
10114 # include <limits.h>
10115 #else
10116 # include <assert.h>
10117 #endif
10118 /* Override any gcc2 internal prototype to avoid an error.  */
10119 #ifdef __cplusplus
10120 extern "C"
10121 {
10122 #endif
10123 /* We use char because int might match the return type of a gcc2
10124    builtin and then its argument prototype would still apply.  */
10125 char $ac_func ();
10126 /* The GNU C library defines this for functions which it implements
10127     to always fail with ENOSYS.  Some functions are actually named
10128     something starting with __ and the normal name is an alias.  */
10129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10130 choke me
10131 #else
10132 char (*f) () = $ac_func;
10133 #endif
10134 #ifdef __cplusplus
10135 }
10136 #endif
10137
10138 int
10139 main ()
10140 {
10141 return f != $ac_func;
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10148   (eval $ac_link) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } &&
10152          { ac_try='test -s conftest$ac_exeext'
10153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154   (eval $ac_try) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; }; then
10158   eval "$as_ac_var=yes"
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 eval "$as_ac_var=no"
10164 fi
10165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10166 fi
10167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10169 if test `eval echo '${'$as_ac_var'}'` = yes; then
10170   cat >>confdefs.h <<_ACEOF
10171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10172 _ACEOF
10173  mutt_cv_regex=no
10174 else
10175   mutt_cv_regex=yes
10176 fi
10177 done
10178
10179 fi;
10180
10181 if test $mutt_cv_regex = no ; then
10182 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
10183 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
10184 if test "${mutt_cv_regex_broken+set}" = set; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187   if test "$cross_compiling" = yes; then
10188   mutt_cv_regex_broken=yes
10189 else
10190   cat >conftest.$ac_ext <<_ACEOF
10191 #line $LINENO "configure"
10192 /* confdefs.h.  */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h.  */
10197
10198 #include <unistd.h>
10199 #include <regex.h>
10200 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); }
10201 _ACEOF
10202 rm -f conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204   (eval $ac_link) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   mutt_cv_regex_broken=no
10214 else
10215   echo "$as_me: program exited with status $ac_status" >&5
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ( exit $ac_status )
10220 mutt_cv_regex_broken=yes
10221 fi
10222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10223 fi
10224 fi
10225 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
10226 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
10227         if test $mutt_cv_regex_broken = yes ; then
10228                 echo "Using the included GNU regex instead." >&6
10229                 mutt_cv_regex=yes
10230         fi
10231 fi
10232
10233 if test $mutt_cv_regex = yes; then
10234
10235 cat >>confdefs.h <<\_ACEOF
10236 #define USE_GNU_REGEX 1
10237 _ACEOF
10238
10239         LIBOBJS="$LIBOBJS regex.$ac_objext"
10240 fi
10241
10242
10243
10244 # Check whether --with-homespool or --without-homespool was given.
10245 if test "${with_homespool+set}" = set; then
10246   withval="$with_homespool"
10247   with_homespool=${withval}
10248 fi;
10249 if test x$with_homespool != x; then
10250         if test $with_homespool = yes; then
10251                 with_homespool=mailbox
10252         fi
10253
10254 cat >>confdefs.h <<_ACEOF
10255 #define MAILPATH "$with_homespool"
10256 _ACEOF
10257
10258
10259 cat >>confdefs.h <<\_ACEOF
10260 #define HOMESPOOL 1
10261 _ACEOF
10262
10263
10264 cat >>confdefs.h <<\_ACEOF
10265 #define USE_DOTLOCK 1
10266 _ACEOF
10267
10268         mutt_cv_setgid=no
10269 else
10270
10271 # Check whether --with-mailpath or --without-mailpath was given.
10272 if test "${with_mailpath+set}" = set; then
10273   withval="$with_mailpath"
10274   mutt_cv_mailpath=$withval
10275 else
10276    echo "$as_me:$LINENO: checking where new mail is stored" >&5
10277 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
10278 if test "${mutt_cv_mailpath+set}" = set; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281   mutt_cv_mailpath=no
10282                         if test -d /var/mail; then
10283                                 mutt_cv_mailpath=/var/mail
10284                         elif test -d /var/spool/mail; then
10285                                 mutt_cv_mailpath=/var/spool/mail
10286                         elif test -d /usr/spool/mail; then
10287                                 mutt_cv_mailpath=/usr/spool/mail
10288                         elif test -d /usr/mail; then
10289                                 mutt_cv_mailpath=/usr/mail
10290                         fi
10291 fi
10292 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
10293 echo "${ECHO_T}$mutt_cv_mailpath" >&6
10294
10295 fi;
10296         if test "$mutt_cv_mailpath" = no; then
10297                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
10298 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
10299    { (exit 1); exit 1; }; }
10300         fi
10301
10302 cat >>confdefs.h <<_ACEOF
10303 #define MAILPATH "$mutt_cv_mailpath"
10304 _ACEOF
10305
10306
10307         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
10308 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
10309 if test "${mutt_cv_worldwrite+set}" = set; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312   if test "$cross_compiling" = yes; then
10313   mutt_cv_worldwrite=no
10314 else
10315   cat >conftest.$ac_ext <<_ACEOF
10316 #line $LINENO "configure"
10317 /* confdefs.h.  */
10318 _ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h.  */
10322 #include <sys/types.h>
10323 #include <sys/stat.h>
10324
10325 int main (int argc, char **argv)
10326 {
10327         struct stat s;
10328
10329         stat ("$mutt_cv_mailpath", &s);
10330         if (s.st_mode & S_IWOTH) exit (0);
10331         exit (1);
10332 }
10333 _ACEOF
10334 rm -f conftest$ac_exeext
10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336   (eval $ac_link) 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341   (eval $ac_try) 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); }; }; then
10345   mutt_cv_worldwrite=yes
10346 else
10347   echo "$as_me: program exited with status $ac_status" >&5
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351 ( exit $ac_status )
10352 mutt_cv_worldwrite=no
10353 fi
10354 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10355 fi
10356 fi
10357 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
10358 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
10359
10360         mutt_cv_setgid=no
10361         if test $mutt_cv_worldwrite = yes; then
10362
10363 cat >>confdefs.h <<\_ACEOF
10364 #define USE_DOTLOCK 1
10365 _ACEOF
10366
10367         else
10368
10369                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
10370 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
10371 if test "${mutt_cv_groupwrite+set}" = set; then
10372   echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374   if test "$cross_compiling" = yes; then
10375   mutt_cv_groupwrite=no
10376 else
10377   cat >conftest.$ac_ext <<_ACEOF
10378 #line $LINENO "configure"
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384 #include <sys/types.h>
10385 #include <sys/stat.h>
10386
10387 int main (int argc, char **argv)
10388 {
10389         struct stat s;
10390
10391         stat ("$mutt_cv_mailpath", &s);
10392         if (s.st_mode & S_IWGRP) exit (0);
10393         exit (1);
10394 }
10395 _ACEOF
10396 rm -f conftest$ac_exeext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398   (eval $ac_link) 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; }; then
10407   mutt_cv_groupwrite=yes
10408 else
10409   echo "$as_me: program exited with status $ac_status" >&5
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 ( exit $ac_status )
10414 mutt_cv_groupwrite=no
10415 fi
10416 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10417 fi
10418 fi
10419 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
10420 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
10421
10422                 if test $mutt_cv_groupwrite = yes; then
10423
10424 cat >>confdefs.h <<\_ACEOF
10425 #define USE_DOTLOCK 1
10426 _ACEOF
10427
10428
10429 cat >>confdefs.h <<\_ACEOF
10430 #define USE_SETGID 1
10431 _ACEOF
10432
10433                         mutt_cv_setgid=yes
10434                 fi
10435         fi
10436 fi
10437
10438 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
10439 if test "${enable_external_dotlock+set}" = set; then
10440   enableval="$enable_external_dotlock"
10441   mutt_cv_external_dotlock="$enableval"
10442 fi;
10443
10444 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
10445         || test "x$mutt_cv_external_dotlock" = "xyes"
10446 then
10447
10448 cat >>confdefs.h <<\_ACEOF
10449 #define DL_STANDALONE 1
10450 _ACEOF
10451
10452         DOTLOCK_TARGET="muttng_dotlock"
10453 else
10454         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
10455 fi
10456
10457
10458
10459
10460 echo "$as_me:$LINENO: checking where to put the documentation" >&5
10461 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
10462
10463 # Check whether --with-docdir or --without-docdir was given.
10464 if test "${with_docdir+set}" = set; then
10465   withval="$with_docdir"
10466   mutt_cv_docdir=$withval
10467 else
10468   mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
10469 fi;
10470 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
10471 echo "${ECHO_T}$mutt_cv_docdir" >&6
10472
10473 docdir=$mutt_cv_docdir
10474
10475
10476 if test x$mutt_cv_setgid = xyes; then
10477         DOTLOCK_GROUP='mail'
10478         DOTLOCK_PERMISSION=2755
10479 else
10480         DOTLOCK_GROUP=''
10481         DOTLOCK_PERMISSION=755
10482 fi
10483
10484
10485
10486
10487 # Check whether --with-domain or --without-domain was given.
10488 if test "${with_domain+set}" = set; then
10489   withval="$with_domain"
10490   if test $withval != yes; then
10491
10492 cat >>confdefs.h <<_ACEOF
10493 #define DOMAIN "$withval"
10494 _ACEOF
10495
10496         fi
10497 fi;
10498
10499 need_socket="no"
10500
10501
10502 # Check whether --enable-pop or --disable-pop was given.
10503 if test "${enable_pop+set}" = set; then
10504   enableval="$enable_pop"
10505          if test x$enableval = xyes ; then
10506
10507 cat >>confdefs.h <<\_ACEOF
10508 #define USE_POP 1
10509 _ACEOF
10510
10511                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
10512                 need_socket="yes"
10513                 need_pop="yes"
10514                 need_md5="yes"
10515         fi
10516
10517 fi;
10518
10519 # Check whether --enable-imap or --disable-imap was given.
10520 if test "${enable_imap+set}" = set; then
10521   enableval="$enable_imap"
10522          if test x$enableval = xyes ; then
10523
10524 cat >>confdefs.h <<\_ACEOF
10525 #define USE_IMAP 1
10526 _ACEOF
10527
10528                 LIBIMAP="-Limap -limap"
10529                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
10530                 need_imap="yes"
10531                 need_socket="yes"
10532                 need_md5="yes"
10533         fi
10534
10535 fi;
10536
10537
10538 if test x$need_imap = xyes; then
10539   BUILD_IMAP_TRUE=
10540   BUILD_IMAP_FALSE='#'
10541 else
10542   BUILD_IMAP_TRUE='#'
10543   BUILD_IMAP_FALSE=
10544 fi
10545
10546
10547 # Check whether --enable-nntp or --disable-nntp was given.
10548 if test "${enable_nntp+set}" = set; then
10549   enableval="$enable_nntp"
10550         if test x$enableval = xyes ; then
10551                 cat >>confdefs.h <<\_ACEOF
10552 #define USE_NNTP 1
10553 _ACEOF
10554
10555                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
10556                 need_socket="yes"
10557         fi
10558
10559 fi;
10560
10561
10562 if test "$need_socket" = "yes"
10563 then
10564         echo "$as_me:$LINENO: checking for socklen_t" >&5
10565 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10566         cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10568 /* confdefs.h.  */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h.  */
10573 #include <sys/socket.h>
10574
10575 _ACEOF
10576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10577   $EGREP "socklen_t" >/dev/null 2>&1; then
10578   echo "$as_me:$LINENO: result: yes" >&5
10579 echo "${ECHO_T}yes" >&6
10580 else
10581   echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10583
10584 cat >>confdefs.h <<\_ACEOF
10585 #define socklen_t int
10586 _ACEOF
10587
10588 fi
10589 rm -f conftest*
10590
10591         echo "$as_me:$LINENO: checking for gethostent" >&5
10592 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
10593 if test "${ac_cv_func_gethostent+set}" = set; then
10594   echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596   cat >conftest.$ac_ext <<_ACEOF
10597 #line $LINENO "configure"
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 /* System header to define __stub macros and hopefully few prototypes,
10604     which can conflict with char gethostent (); below.
10605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10606     <limits.h> exists even on freestanding compilers.  */
10607 #ifdef __STDC__
10608 # include <limits.h>
10609 #else
10610 # include <assert.h>
10611 #endif
10612 /* Override any gcc2 internal prototype to avoid an error.  */
10613 #ifdef __cplusplus
10614 extern "C"
10615 {
10616 #endif
10617 /* We use char because int might match the return type of a gcc2
10618    builtin and then its argument prototype would still apply.  */
10619 char gethostent ();
10620 /* The GNU C library defines this for functions which it implements
10621     to always fail with ENOSYS.  Some functions are actually named
10622     something starting with __ and the normal name is an alias.  */
10623 #if defined (__stub_gethostent) || defined (__stub___gethostent)
10624 choke me
10625 #else
10626 char (*f) () = gethostent;
10627 #endif
10628 #ifdef __cplusplus
10629 }
10630 #endif
10631
10632 int
10633 main ()
10634 {
10635 return f != gethostent;
10636   ;
10637   return 0;
10638 }
10639 _ACEOF
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642   (eval $ac_link) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); } &&
10646          { ac_try='test -s conftest$ac_exeext'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; }; then
10652   ac_cv_func_gethostent=yes
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 ac_cv_func_gethostent=no
10658 fi
10659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660 fi
10661 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
10662 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
10663 if test $ac_cv_func_gethostent = yes; then
10664   :
10665 else
10666
10667 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
10668 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
10669 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-lnsl  $LIBS"
10674 cat >conftest.$ac_ext <<_ACEOF
10675 #line $LINENO "configure"
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681
10682 /* Override any gcc2 internal prototype to avoid an error.  */
10683 #ifdef __cplusplus
10684 extern "C"
10685 #endif
10686 /* We use char because int might match the return type of a gcc2
10687    builtin and then its argument prototype would still apply.  */
10688 char gethostent ();
10689 int
10690 main ()
10691 {
10692 gethostent ();
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699   (eval $ac_link) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -s conftest$ac_exeext'
10704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705   (eval $ac_try) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; }; then
10709   ac_cv_lib_nsl_gethostent=yes
10710 else
10711   echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10713
10714 ac_cv_lib_nsl_gethostent=no
10715 fi
10716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10718 fi
10719 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
10720 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
10721 if test $ac_cv_lib_nsl_gethostent = yes; then
10722   cat >>confdefs.h <<_ACEOF
10723 #define HAVE_LIBNSL 1
10724 _ACEOF
10725
10726   LIBS="-lnsl $LIBS"
10727
10728 fi
10729
10730 fi
10731
10732         echo "$as_me:$LINENO: checking for setsockopt" >&5
10733 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
10734 if test "${ac_cv_func_setsockopt+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738 #line $LINENO "configure"
10739 /* confdefs.h.  */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h.  */
10744 /* System header to define __stub macros and hopefully few prototypes,
10745     which can conflict with char setsockopt (); below.
10746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747     <limits.h> exists even on freestanding compilers.  */
10748 #ifdef __STDC__
10749 # include <limits.h>
10750 #else
10751 # include <assert.h>
10752 #endif
10753 /* Override any gcc2 internal prototype to avoid an error.  */
10754 #ifdef __cplusplus
10755 extern "C"
10756 {
10757 #endif
10758 /* We use char because int might match the return type of a gcc2
10759    builtin and then its argument prototype would still apply.  */
10760 char setsockopt ();
10761 /* The GNU C library defines this for functions which it implements
10762     to always fail with ENOSYS.  Some functions are actually named
10763     something starting with __ and the normal name is an alias.  */
10764 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
10765 choke me
10766 #else
10767 char (*f) () = setsockopt;
10768 #endif
10769 #ifdef __cplusplus
10770 }
10771 #endif
10772
10773 int
10774 main ()
10775 {
10776 return f != setsockopt;
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783   (eval $ac_link) 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_func_setsockopt=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 ac_cv_func_setsockopt=no
10799 fi
10800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10801 fi
10802 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10803 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
10804 if test $ac_cv_func_setsockopt = yes; then
10805   :
10806 else
10807
10808 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10809 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
10810 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10811   echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813   ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-lsocket  $LIBS"
10815 cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822
10823 /* Override any gcc2 internal prototype to avoid an error.  */
10824 #ifdef __cplusplus
10825 extern "C"
10826 #endif
10827 /* We use char because int might match the return type of a gcc2
10828    builtin and then its argument prototype would still apply.  */
10829 char setsockopt ();
10830 int
10831 main ()
10832 {
10833 setsockopt ();
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840   (eval $ac_link) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } &&
10844          { ac_try='test -s conftest$ac_exeext'
10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846   (eval $ac_try) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; }; then
10850   ac_cv_lib_socket_setsockopt=yes
10851 else
10852   echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10854
10855 ac_cv_lib_socket_setsockopt=no
10856 fi
10857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10859 fi
10860 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10861 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
10862 if test $ac_cv_lib_socket_setsockopt = yes; then
10863   cat >>confdefs.h <<_ACEOF
10864 #define HAVE_LIBSOCKET 1
10865 _ACEOF
10866
10867   LIBS="-lsocket $LIBS"
10868
10869 fi
10870
10871 fi
10872
10873
10874 for ac_func in getaddrinfo
10875 do
10876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10877 echo "$as_me:$LINENO: checking for $ac_func" >&5
10878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10879 if eval "test \"\${$as_ac_var+set}\" = set"; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   cat >conftest.$ac_ext <<_ACEOF
10883 #line $LINENO "configure"
10884 /* confdefs.h.  */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h.  */
10889 /* System header to define __stub macros and hopefully few prototypes,
10890     which can conflict with char $ac_func (); below.
10891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10892     <limits.h> exists even on freestanding compilers.  */
10893 #ifdef __STDC__
10894 # include <limits.h>
10895 #else
10896 # include <assert.h>
10897 #endif
10898 /* Override any gcc2 internal prototype to avoid an error.  */
10899 #ifdef __cplusplus
10900 extern "C"
10901 {
10902 #endif
10903 /* We use char because int might match the return type of a gcc2
10904    builtin and then its argument prototype would still apply.  */
10905 char $ac_func ();
10906 /* The GNU C library defines this for functions which it implements
10907     to always fail with ENOSYS.  Some functions are actually named
10908     something starting with __ and the normal name is an alias.  */
10909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10910 choke me
10911 #else
10912 char (*f) () = $ac_func;
10913 #endif
10914 #ifdef __cplusplus
10915 }
10916 #endif
10917
10918 int
10919 main ()
10920 {
10921 return f != $ac_func;
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928   (eval $ac_link) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -s conftest$ac_exeext'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   eval "$as_ac_var=yes"
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 eval "$as_ac_var=no"
10944 fi
10945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10946 fi
10947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10949 if test `eval echo '${'$as_ac_var'}'` = yes; then
10950   cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10952 _ACEOF
10953
10954 fi
10955 done
10956
10957
10958 cat >>confdefs.h <<\_ACEOF
10959 #define USE_SOCKET 1
10960 _ACEOF
10961
10962         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10963 fi
10964
10965
10966
10967 # Check whether --with-gss or --without-gss was given.
10968 if test "${with_gss+set}" = set; then
10969   withval="$with_gss"
10970   gss_prefix="$withval"
10971 else
10972   gss_prefix="no"
10973 fi;
10974 if test "$gss_prefix" != "no"
10975 then
10976   if test "$need_imap" = "yes"
10977   then
10978
10979   GSSAPI_PREFIX=$gss_prefix
10980   GSSAPI_IMPL="none"
10981   saved_CPPFLAGS="$CPPFLAGS"
10982   saved_LDFLAGS="$LDFLAGS"
10983   saved_LIBS="$LIBS"
10984     if test "$GSSAPI_PREFIX" != "yes"
10985   then
10986     krb5_path="$GSSAPI_PREFIX/bin"
10987   else
10988     krb5_path="$PATH"
10989   fi
10990   # Extract the first word of "krb5-config", so it can be a program name with args.
10991 set dummy krb5-config; ac_word=$2
10992 echo "$as_me:$LINENO: checking for $ac_word" >&5
10993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10994 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   case $KRB5CFGPATH in
10998   [\\/]* | ?:[\\/]*)
10999   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
11000   ;;
11001   *)
11002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $krb5_path
11004 do
11005   IFS=$as_save_IFS
11006   test -z "$as_dir" && as_dir=.
11007   for ac_exec_ext in '' $ac_executable_extensions; do
11008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
11010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11011     break 2
11012   fi
11013 done
11014 done
11015
11016   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
11017   ;;
11018 esac
11019 fi
11020 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
11021
11022 if test -n "$KRB5CFGPATH"; then
11023   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
11024 echo "${ECHO_T}$KRB5CFGPATH" >&6
11025 else
11026   echo "$as_me:$LINENO: result: no" >&5
11027 echo "${ECHO_T}no" >&6
11028 fi
11029
11030   if test "$KRB5CFGPATH" != "none"
11031   then
11032     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
11033     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
11034     case "`$KRB5CFGPATH --version`" in
11035       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
11036       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
11037       *)                GSSAPI_IMPL="Unknown";;
11038    esac
11039   else
11040         if test "$GSSAPI_PREFIX" != "yes"
11041     then
11042       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
11043       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
11044       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11045       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
11046     fi
11047
11048         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
11049 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
11050 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053   ac_check_lib_save_LIBS=$LIBS
11054 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
11055 cat >conftest.$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11057 /* confdefs.h.  */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h.  */
11062
11063 /* Override any gcc2 internal prototype to avoid an error.  */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 /* We use char because int might match the return type of a gcc2
11068    builtin and then its argument prototype would still apply.  */
11069 char gss_init_sec_context ();
11070 int
11071 main ()
11072 {
11073 gss_init_sec_context ();
11074   ;
11075   return 0;
11076 }
11077 _ACEOF
11078 rm -f conftest.$ac_objext conftest$ac_exeext
11079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11080   (eval $ac_link) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -s conftest$ac_exeext'
11085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086   (eval $ac_try) 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; }; then
11090   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
11091 else
11092   echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
11096 fi
11097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11099 fi
11100 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
11101 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
11102 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
11103
11104       GSSAPI_IMPL="MIT",
11105       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
11106
11107 fi
11108
11109
11110         if test "$GSSAPI_IMPL" = "none"
11111     then
11112       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
11113 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
11114 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
11115   echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117   ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126
11127 /* Override any gcc2 internal prototype to avoid an error.  */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 /* We use char because int might match the return type of a gcc2
11132    builtin and then its argument prototype would still apply.  */
11133 char gss_init_sec_context ();
11134 int
11135 main ()
11136 {
11137 gss_init_sec_context ();
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 rm -f conftest.$ac_objext conftest$ac_exeext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11144   (eval $ac_link) 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -s conftest$ac_exeext'
11149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150   (eval $ac_try) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; }; then
11154   ac_cv_lib_gssapi_gss_init_sec_context=yes
11155 else
11156   echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 ac_cv_lib_gssapi_gss_init_sec_context=no
11160 fi
11161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11162 LIBS=$ac_check_lib_save_LIBS
11163 fi
11164 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
11165 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
11166 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
11167
11168           GSSAPI_IMPL="Heimdal"
11169           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
11170           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
11171
11172 fi
11173
11174     fi
11175
11176                             if test "$GSSAPI_IMPL" = "none"
11177     then
11178       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
11179 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
11180 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   ac_check_lib_save_LIBS=$LIBS
11184 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
11185 cat >conftest.$ac_ext <<_ACEOF
11186 #line $LINENO "configure"
11187 /* confdefs.h.  */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h.  */
11192
11193 /* Override any gcc2 internal prototype to avoid an error.  */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 /* We use char because int might match the return type of a gcc2
11198    builtin and then its argument prototype would still apply.  */
11199 char g_order_init ();
11200 int
11201 main ()
11202 {
11203 g_order_init ();
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210   (eval $ac_link) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); } &&
11214          { ac_try='test -s conftest$ac_exeext'
11215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216   (eval $ac_try) 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; }; then
11220   ac_cv_lib_gssapi_krb5_g_order_init=yes
11221 else
11222   echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11224
11225 ac_cv_lib_gssapi_krb5_g_order_init=no
11226 fi
11227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11228 LIBS=$ac_check_lib_save_LIBS
11229 fi
11230 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
11231 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
11232 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
11233
11234         GSSAPI_IMPL="OldMIT",
11235         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
11236
11237 fi
11238
11239     fi
11240   fi
11241
11242   CPPFLAGS="$saved_CPPFLAGS"
11243   LDFLAGS="$saved_LDFLAGS"
11244   LIBS="$saved_LIBS"
11245
11246     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
11247 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
11248     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
11249 echo "${ECHO_T}$GSSAPI_IMPL" >&6
11250     if test "$GSSAPI_IMPL" = "none"
11251     then
11252       cat >confcache <<\_ACEOF
11253 # This file is a shell script that caches the results of configure
11254 # tests run on this system so they can be shared between configure
11255 # scripts and configure runs, see configure's option --config-cache.
11256 # It is not useful on other systems.  If it contains results you don't
11257 # want to keep, you may remove or edit it.
11258 #
11259 # config.status only pays attention to the cache file if you give it
11260 # the --recheck option to rerun configure.
11261 #
11262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11264 # following values.
11265
11266 _ACEOF
11267
11268 # The following way of writing the cache mishandles newlines in values,
11269 # but we know of no workaround that is simple, portable, and efficient.
11270 # So, don't put newlines in cache variables' values.
11271 # Ultrix sh set writes to stderr and can't be redirected directly,
11272 # and sets the high bit in the cache file unless we assign to the vars.
11273 {
11274   (set) 2>&1 |
11275     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11276     *ac_space=\ *)
11277       # `set' does not quote correctly, so add quotes (double-quote
11278       # substitution turns \\\\ into \\, and sed turns \\ into \).
11279       sed -n \
11280         "s/'/'\\\\''/g;
11281           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11282       ;;
11283     *)
11284       # `set' quotes correctly as required by POSIX, so do not add quotes.
11285       sed -n \
11286         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11287       ;;
11288     esac;
11289 } |
11290   sed '
11291      t clear
11292      : clear
11293      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11294      t end
11295      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11296      : end' >>confcache
11297 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11298   if test -w $cache_file; then
11299     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11300     cat confcache >$cache_file
11301   else
11302     echo "not updating unwritable cache $cache_file"
11303   fi
11304 fi
11305 rm -f confcache
11306       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
11307 echo "${ECHO_T}GSSAPI libraries not found" >&6
11308     fi
11309     if test "$GSSAPI_IMPL" = "Heimdal"
11310     then
11311
11312 cat >>confdefs.h <<\_ACEOF
11313 #define HAVE_HEIMDAL 1
11314 _ACEOF
11315
11316     fi
11317     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11318     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
11319
11320 cat >>confdefs.h <<\_ACEOF
11321 #define USE_GSS 1
11322 _ACEOF
11323
11324     need_gss="yes"
11325   else
11326     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
11327 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
11328   fi
11329 fi
11330
11331
11332 if test x$need_gss = xyes; then
11333   USE_GSS_TRUE=
11334   USE_GSS_FALSE='#'
11335 else
11336   USE_GSS_TRUE='#'
11337   USE_GSS_FALSE=
11338 fi
11339
11340
11341
11342
11343 # Check whether --with-ssl or --without-ssl was given.
11344 if test "${with_ssl+set}" = set; then
11345   withval="$with_ssl"
11346          if test "$with_ssl" != "no"
11347         then
11348           if test "$need_socket" != "yes"; then
11349            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11350 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11351    { (exit 1); exit 1; }; }
11352           fi
11353
11354           if test "$with_ssl" != "yes"
11355           then
11356            LDFLAGS="$LDFLAGS -L$withval/lib"
11357            CPPFLAGS="$CPPFLAGS -I$withval/include"
11358           fi
11359           saved_LIBS="$LIBS"
11360
11361
11362 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
11363 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
11364 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367   ac_check_lib_save_LIBS=$LIBS
11368 LIBS="-lcrypto  $LIBS"
11369 cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376
11377 /* Override any gcc2 internal prototype to avoid an error.  */
11378 #ifdef __cplusplus
11379 extern "C"
11380 #endif
11381 /* We use char because int might match the return type of a gcc2
11382    builtin and then its argument prototype would still apply.  */
11383 char X509_new ();
11384 int
11385 main ()
11386 {
11387 X509_new ();
11388   ;
11389   return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext conftest$ac_exeext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11394   (eval $ac_link) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } &&
11398          { ac_try='test -s conftest$ac_exeext'
11399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400   (eval $ac_try) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; }; then
11404   ac_cv_lib_crypto_X509_new=yes
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_cv_lib_crypto_X509_new=no
11410 fi
11411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11412 LIBS=$ac_check_lib_save_LIBS
11413 fi
11414 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
11415 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
11416 if test $ac_cv_lib_crypto_X509_new = yes; then
11417   cat >>confdefs.h <<_ACEOF
11418 #define HAVE_LIBCRYPTO 1
11419 _ACEOF
11420
11421   LIBS="-lcrypto $LIBS"
11422
11423 else
11424   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11425 echo "$as_me: error: Unable to find SSL library" >&2;}
11426    { (exit 1); exit 1; }; }
11427 fi
11428
11429
11430 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
11431 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
11432 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
11433   echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435   ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-lssl -lcrypto $LIBS"
11437 cat >conftest.$ac_ext <<_ACEOF
11438 #line $LINENO "configure"
11439 /* confdefs.h.  */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h.  */
11444
11445 /* Override any gcc2 internal prototype to avoid an error.  */
11446 #ifdef __cplusplus
11447 extern "C"
11448 #endif
11449 /* We use char because int might match the return type of a gcc2
11450    builtin and then its argument prototype would still apply.  */
11451 char SSL_new ();
11452 int
11453 main ()
11454 {
11455 SSL_new ();
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462   (eval $ac_link) 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } &&
11466          { ac_try='test -s conftest$ac_exeext'
11467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468   (eval $ac_try) 2>&5
11469   ac_status=$?
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); }; }; then
11472   ac_cv_lib_ssl_SSL_new=yes
11473 else
11474   echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 ac_cv_lib_ssl_SSL_new=no
11478 fi
11479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11481 fi
11482 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
11483 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
11484 if test $ac_cv_lib_ssl_SSL_new = yes; then
11485   cat >>confdefs.h <<_ACEOF
11486 #define HAVE_LIBSSL 1
11487 _ACEOF
11488
11489   LIBS="-lssl $LIBS"
11490
11491 else
11492   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11493 echo "$as_me: error: Unable to find SSL library" >&2;}
11494    { (exit 1); exit 1; }; }
11495 fi
11496
11497
11498
11499
11500 for ac_func in RAND_status RAND_egd
11501 do
11502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11503 echo "$as_me:$LINENO: checking for $ac_func" >&5
11504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11505 if eval "test \"\${$as_ac_var+set}\" = set"; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508   cat >conftest.$ac_ext <<_ACEOF
11509 #line $LINENO "configure"
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 /* System header to define __stub macros and hopefully few prototypes,
11516     which can conflict with char $ac_func (); below.
11517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11518     <limits.h> exists even on freestanding compilers.  */
11519 #ifdef __STDC__
11520 # include <limits.h>
11521 #else
11522 # include <assert.h>
11523 #endif
11524 /* Override any gcc2 internal prototype to avoid an error.  */
11525 #ifdef __cplusplus
11526 extern "C"
11527 {
11528 #endif
11529 /* We use char because int might match the return type of a gcc2
11530    builtin and then its argument prototype would still apply.  */
11531 char $ac_func ();
11532 /* The GNU C library defines this for functions which it implements
11533     to always fail with ENOSYS.  Some functions are actually named
11534     something starting with __ and the normal name is an alias.  */
11535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11536 choke me
11537 #else
11538 char (*f) () = $ac_func;
11539 #endif
11540 #ifdef __cplusplus
11541 }
11542 #endif
11543
11544 int
11545 main ()
11546 {
11547 return f != $ac_func;
11548   ;
11549   return 0;
11550 }
11551 _ACEOF
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554   (eval $ac_link) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } &&
11558          { ac_try='test -s conftest$ac_exeext'
11559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560   (eval $ac_try) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); }; }; then
11564   eval "$as_ac_var=yes"
11565 else
11566   echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 eval "$as_ac_var=no"
11570 fi
11571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11572 fi
11573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11575 if test `eval echo '${'$as_ac_var'}'` = yes; then
11576   cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11578 _ACEOF
11579
11580 fi
11581 done
11582
11583
11584
11585 cat >>confdefs.h <<\_ACEOF
11586 #define USE_SSL 1
11587 _ACEOF
11588
11589           LIBS="$saved_LIBS"
11590           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
11591           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
11592           need_ssl=yes
11593
11594         fi
11595
11596 fi;
11597
11598
11599 if test x$need_ssl = xyes; then
11600   USE_SSL_TRUE=
11601   USE_SSL_FALSE='#'
11602 else
11603   USE_SSL_TRUE='#'
11604   USE_SSL_FALSE=
11605 fi
11606
11607
11608
11609 # Check whether --with-gnutls or --without-gnutls was given.
11610 if test "${with_gnutls+set}" = set; then
11611   withval="$with_gnutls"
11612      if test "$need_ssl" = "yes"
11613     then
11614       { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
11615 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
11616    { (exit 1); exit 1; }; }
11617     fi
11618     if test "$with_gnutls" != "no"
11619     then
11620       if test "$need_socket" != "yes"; then
11621         { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
11622 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
11623    { (exit 1); exit 1; }; }
11624       fi
11625       if test "$with_gnutls" != "yes"
11626       then
11627         LDFLAGS="$LDFLAGS -L$withval/lib"
11628         CPPFLAGS="$CPPFLAGS -I$withval/include"
11629       fi
11630 #saved_LIBS="$LIBS"
11631
11632
11633 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
11634 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
11635 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-lgnutls  $LIBS"
11640 cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647
11648 /* Override any gcc2 internal prototype to avoid an error.  */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 /* We use char because int might match the return type of a gcc2
11653    builtin and then its argument prototype would still apply.  */
11654 char gnutls_init ();
11655 int
11656 main ()
11657 {
11658 gnutls_init ();
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665   (eval $ac_link) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } &&
11669          { ac_try='test -s conftest$ac_exeext'
11670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671   (eval $ac_try) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); }; }; then
11675   ac_cv_lib_gnutls_gnutls_init=yes
11676 else
11677   echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 ac_cv_lib_gnutls_gnutls_init=no
11681 fi
11682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11684 fi
11685 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
11686 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
11687 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
11688   cat >>confdefs.h <<_ACEOF
11689 #define HAVE_LIBGNUTLS 1
11690 _ACEOF
11691
11692   LIBS="-lgnutls $LIBS"
11693
11694 else
11695   { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
11696 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
11697    { (exit 1); exit 1; }; }
11698 fi
11699
11700
11701
11702 cat >>confdefs.h <<\_ACEOF
11703 #define USE_GNUTLS 1
11704 _ACEOF
11705
11706 #LIBS="$saved_LIBS"
11707 #MUTTLIBS="$MUTTLIBS -lgnutls"
11708       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
11709       need_gnutls=yes
11710     fi
11711
11712 fi;
11713
11714
11715 if test x$need_gnutls = xyes; then
11716   USE_GNUTLS_TRUE=
11717   USE_GNUTLS_FALSE='#'
11718 else
11719   USE_GNUTLS_TRUE='#'
11720   USE_GNUTLS_FALSE=
11721 fi
11722
11723
11724
11725 # Check whether --with-nss or --without-nss was given.
11726 if test "${with_nss+set}" = set; then
11727   withval="$with_nss"
11728          if test "$with_nss" != no
11729         then
11730           if test "$need_socket" != "yes"; then
11731            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11732 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11733    { (exit 1); exit 1; }; }
11734           fi
11735
11736           if test "$with_nss" != "yes"
11737           then
11738            LDFLAGS="$LDFLAGS -L$withval/lib"
11739            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
11740           fi
11741
11742
11743 cat >>confdefs.h <<\_ACEOF
11744 #define USE_NSS 1
11745 _ACEOF
11746
11747           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
11748           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
11749           MUTTLIBS="$MUTTLIBS -lnspr4"
11750
11751           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
11752           need_ssl=yes
11753         fi
11754
11755 fi;
11756
11757
11758 # Check whether --with-gnutls or --without-gnutls was given.
11759 if test "${with_gnutls+set}" = set; then
11760   withval="$with_gnutls"
11761   gnutls_prefix="$withval"
11762 else
11763   gnutls_prefix="no"
11764 fi;
11765 if test "$gnutls_prefix" != "no"
11766 then
11767   if test "$need_socket" != "yes"
11768   then
11769     { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11770 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11771    { (exit 1); exit 1; }; }
11772   fi
11773     libgnutls_config_prefix=$gnutls_prefix
11774   min_libgnutls_version=0.1.0
11775
11776   if test x$libgnutls_config_prefix != x ; then
11777      if test x${LIBGNUTLS_CONFIG+set} != xset ; then
11778         LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
11779      fi
11780   fi
11781
11782   # Extract the first word of "libgnutls-config", so it can be a program name with args.
11783 set dummy libgnutls-config; ac_word=$2
11784 echo "$as_me:$LINENO: checking for $ac_word" >&5
11785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11786 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   case $LIBGNUTLS_CONFIG in
11790   [\\/]* | ?:[\\/]*)
11791   ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
11792   ;;
11793   *)
11794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11796 do
11797   IFS=$as_save_IFS
11798   test -z "$as_dir" && as_dir=.
11799   for ac_exec_ext in '' $ac_executable_extensions; do
11800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11801     ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11803     break 2
11804   fi
11805 done
11806 done
11807
11808   test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
11809   ;;
11810 esac
11811 fi
11812 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
11813
11814 if test -n "$LIBGNUTLS_CONFIG"; then
11815   echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
11816 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
11817 else
11818   echo "$as_me:$LINENO: result: no" >&5
11819 echo "${ECHO_T}no" >&6
11820 fi
11821
11822   echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
11823 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
11824   no_libgnutls=""
11825   if test "$LIBGNUTLS_CONFIG" = "no" ; then
11826     no_libgnutls=yes
11827   else
11828     LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
11829     LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
11830     libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
11831
11832
11833       ac_save_CFLAGS="$CFLAGS"
11834       ac_save_LIBS="$LIBS"
11835       CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11836       LIBS="$LIBS $LIBGNUTLS_LIBS"
11837
11838       rm -f conf.libgnutlstest
11839       if test "$cross_compiling" = yes; then
11840   echo $ac_n "cross compiling; assumed OK... $ac_c"
11841 else
11842   cat >conftest.$ac_ext <<_ACEOF
11843 #line $LINENO "configure"
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849
11850 #include <stdio.h>
11851 #include <stdlib.h>
11852 #include <string.h>
11853 #include <gnutls/gnutls.h>
11854
11855 int
11856 main ()
11857 {
11858     system ("touch conf.libgnutlstest");
11859
11860     if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
11861     {
11862       printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
11863              "$libgnutls_config_version", gnutls_check_version(NULL) );
11864       printf("*** was found! If libgnutls-config was correct, then it is best\n");
11865       printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
11866       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11867       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11868       printf("*** required on your system.\n");
11869       printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
11870       printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
11871       printf("*** before re-running configure\n");
11872     }
11873     else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
11874     {
11875       printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
11876       printf("*** library (version %s)\n", gnutls_check_version(NULL) );
11877     }
11878     else
11879     {
11880       if ( gnutls_check_version( "$min_libgnutls_version" ) )
11881       {
11882         return 0;
11883       }
11884      else
11885       {
11886         printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
11887                 gnutls_check_version(NULL) );
11888         printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
11889                "$min_libgnutls_version" );
11890         printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
11891         printf("*** \n");
11892         printf("*** If you have already installed a sufficiently new version, this error\n");
11893         printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
11894         printf("*** being found. The easiest way to fix this is to remove the old version\n");
11895         printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
11896         printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
11897         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11898         printf("*** so that the correct libraries are found at run-time))\n");
11899       }
11900     }
11901   return 1;
11902 }
11903
11904 _ACEOF
11905 rm -f conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907   (eval $ac_link) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   :
11917 else
11918   echo "$as_me: program exited with status $ac_status" >&5
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 ( exit $ac_status )
11923 no_libgnutls=yes
11924 fi
11925 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11926 fi
11927        CFLAGS="$ac_save_CFLAGS"
11928        LIBS="$ac_save_LIBS"
11929   fi
11930
11931   if test "x$no_libgnutls" = x ; then
11932      echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11934
11935 for ac_header in gnutls/openssl.h
11936 do
11937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11939   echo "$as_me:$LINENO: checking for $ac_header" >&5
11940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 fi
11944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11946 else
11947   # Is the header compilable?
11948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11951 #line $LINENO "configure"
11952 /* confdefs.h.  */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h.  */
11957 $ac_includes_default
11958 #include <$ac_header>
11959 _ACEOF
11960 rm -f conftest.$ac_objext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962   (eval $ac_compile) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -s conftest.$ac_objext'
11967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968   (eval $ac_try) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; }; then
11972   ac_header_compiler=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 ac_header_compiler=no
11978 fi
11979 rm -f conftest.$ac_objext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981 echo "${ECHO_T}$ac_header_compiler" >&6
11982
11983 # Is the header present?
11984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11987 #line $LINENO "configure"
11988 /* confdefs.h.  */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h.  */
11993 #include <$ac_header>
11994 _ACEOF
11995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11997   ac_status=$?
11998   grep -v '^ *+' conftest.er1 >conftest.err
11999   rm -f conftest.er1
12000   cat conftest.err >&5
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); } >/dev/null; then
12003   if test -s conftest.err; then
12004     ac_cpp_err=$ac_c_preproc_warn_flag
12005   else
12006     ac_cpp_err=
12007   fi
12008 else
12009   ac_cpp_err=yes
12010 fi
12011 if test -z "$ac_cpp_err"; then
12012   ac_header_preproc=yes
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017   ac_header_preproc=no
12018 fi
12019 rm -f conftest.err conftest.$ac_ext
12020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12021 echo "${ECHO_T}$ac_header_preproc" >&6
12022
12023 # So?  What about this header?
12024 case $ac_header_compiler:$ac_header_preproc in
12025   yes:no )
12026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12030     (
12031       cat <<\_ASBOX
12032 ## ------------------------------------ ##
12033 ## Report this to bug-autoconf@gnu.org. ##
12034 ## ------------------------------------ ##
12035 _ASBOX
12036     ) |
12037       sed "s/^/$as_me: WARNING:     /" >&2
12038     ;;
12039   no:yes )
12040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12042     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12046     (
12047       cat <<\_ASBOX
12048 ## ------------------------------------ ##
12049 ## Report this to bug-autoconf@gnu.org. ##
12050 ## ------------------------------------ ##
12051 _ASBOX
12052     ) |
12053       sed "s/^/$as_me: WARNING:     /" >&2
12054     ;;
12055 esac
12056 echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   eval "$as_ac_Header=$ac_header_preproc"
12062 fi
12063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12065
12066 fi
12067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068   cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12070 _ACEOF
12071
12072 fi
12073
12074 done
12075
12076          CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
12077     MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
12078
12079 cat >>confdefs.h <<\_ACEOF
12080 #define USE_GNUTLS 1
12081 _ACEOF
12082
12083
12084     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
12085     need_ssl=yes
12086   else
12087      if test -f conf.libgnutlstest ; then
12088         :
12089      else
12090         echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6
12092      fi
12093      if test "$LIBGNUTLS_CONFIG" = "no" ; then
12094        echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
12095        echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
12096        echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
12097        echo "*** full path to libgnutls-config."
12098      else
12099        if test -f conf.libgnutlstest ; then
12100         :
12101        else
12102           echo "*** Could not run libgnutls test program, checking why..."
12103           CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12104           LIBS="$LIBS $LIBGNUTLS_LIBS"
12105           cat >conftest.$ac_ext <<_ACEOF
12106 #line $LINENO "configure"
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112
12113 #include <stdio.h>
12114 #include <stdlib.h>
12115 #include <string.h>
12116 #include <gnutls/gnutls.h>
12117
12118 int
12119 main ()
12120 {
12121  return !!gnutls_check_version(NULL);
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128   (eval $ac_link) 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); } &&
12132          { ac_try='test -s conftest$ac_exeext'
12133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134   (eval $ac_try) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }; }; then
12138    echo "*** The test program compiled, but did not run. This usually means"
12139           echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
12140           echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
12141           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12142           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12143           echo "*** is required on your system"
12144           echo "***"
12145           echo "*** If you have an old version installed, it is best to remove it, although"
12146           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12147           echo "***"
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152  echo "*** The test program failed to compile or link. See the file config.log for the"
12153           echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
12154           echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
12155           echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
12156 fi
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12158           CFLAGS="$ac_save_CFLAGS"
12159           LIBS="$ac_save_LIBS"
12160        fi
12161      fi
12162      LIBGNUTLS_CFLAGS=""
12163      LIBGNUTLS_LIBS=""
12164            { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
12165 echo "$as_me: error: could not find libgnutls" >&2;}
12166    { (exit 1); exit 1; }; }
12167
12168   fi
12169   rm -f conf.libgnutlstest
12170
12171
12172
12173 fi
12174
12175
12176 # Check whether --with-sasl or --without-sasl was given.
12177 if test "${with_sasl+set}" = set; then
12178   withval="$with_sasl"
12179
12180         if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12181         then
12182           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
12183 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
12184    { (exit 1); exit 1; }; }
12185         fi
12186
12187         if test "$with_sasl" != "no"
12188         then
12189           if test "$with_sasl" != "yes"
12190           then
12191             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
12192             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
12193           fi
12194
12195           saved_LIBS="$LIBS"
12196
12197
12198 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
12199 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
12200 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
12201   echo $ECHO_N "(cached) $ECHO_C" >&6
12202 else
12203   ac_check_lib_save_LIBS=$LIBS
12204 LIBS="-lsasl  $LIBS"
12205 cat >conftest.$ac_ext <<_ACEOF
12206 #line $LINENO "configure"
12207 /* confdefs.h.  */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h.  */
12212
12213 /* Override any gcc2 internal prototype to avoid an error.  */
12214 #ifdef __cplusplus
12215 extern "C"
12216 #endif
12217 /* We use char because int might match the return type of a gcc2
12218    builtin and then its argument prototype would still apply.  */
12219 char sasl_client_init ();
12220 int
12221 main ()
12222 {
12223 sasl_client_init ();
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230   (eval $ac_link) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); } &&
12234          { ac_try='test -s conftest$ac_exeext'
12235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236   (eval $ac_try) 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; }; then
12240   ac_cv_lib_sasl_sasl_client_init=yes
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245 ac_cv_lib_sasl_sasl_client_init=no
12246 fi
12247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
12251 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
12252 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
12253   cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBSASL 1
12255 _ACEOF
12256
12257   LIBS="-lsasl $LIBS"
12258
12259 else
12260   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
12261 echo "$as_me: error: could not find libsasl" >&2;}
12262    { (exit 1); exit 1; }; }
12263 fi
12264
12265
12266           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12267           MUTTLIBS="$MUTTLIBS -lsasl"
12268           LIBS="$saved_LIBS"
12269
12270 cat >>confdefs.h <<\_ACEOF
12271 #define USE_SASL 1
12272 _ACEOF
12273
12274           need_sasl=yes
12275         fi
12276
12277 fi;
12278
12279
12280 if test x$need_sasl = xyes; then
12281   USE_SASL_TRUE=
12282   USE_SASL_FALSE='#'
12283 else
12284   USE_SASL_TRUE='#'
12285   USE_SASL_FALSE=
12286 fi
12287
12288
12289
12290 # Check whether --with-sasl2 or --without-sasl2 was given.
12291 if test "${with_sasl2+set}" = set; then
12292   withval="$with_sasl2"
12293
12294         if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12295         then
12296           { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
12297 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
12298    { (exit 1); exit 1; }; }
12299         fi
12300
12301         if test "$with_sasl2" != "no"
12302         then
12303           if test "$with_sasl2" != "yes"
12304           then
12305             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
12306             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
12307           fi
12308
12309           saved_LIBS="$LIBS"
12310
12311
12312 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
12313 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
12314 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-lsasl2  $LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12320 #line $LINENO "configure"
12321 /* confdefs.h.  */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h.  */
12326
12327 /* Override any gcc2 internal prototype to avoid an error.  */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 /* We use char because int might match the return type of a gcc2
12332    builtin and then its argument prototype would still apply.  */
12333 char sasl_client_init ();
12334 int
12335 main ()
12336 {
12337 sasl_client_init ();
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344   (eval $ac_link) 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } &&
12348          { ac_try='test -s conftest$ac_exeext'
12349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350   (eval $ac_try) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; }; then
12354   ac_cv_lib_sasl2_sasl_client_init=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 ac_cv_lib_sasl2_sasl_client_init=no
12360 fi
12361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12363 fi
12364 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
12365 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
12366 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
12367   cat >>confdefs.h <<_ACEOF
12368 #define HAVE_LIBSASL2 1
12369 _ACEOF
12370
12371   LIBS="-lsasl2 $LIBS"
12372
12373 else
12374   { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
12375 echo "$as_me: error: could not find libsasl2" >&2;}
12376    { (exit 1); exit 1; }; }
12377 fi
12378
12379
12380           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12381           MUTTLIBS="$MUTTLIBS -lsasl2"
12382           LIBS="$saved_LIBS"
12383
12384 cat >>confdefs.h <<\_ACEOF
12385 #define USE_SASL 1
12386 _ACEOF
12387
12388
12389 cat >>confdefs.h <<\_ACEOF
12390 #define USE_SASL2 1
12391 _ACEOF
12392
12393           need_sasl=yes
12394         fi
12395
12396 fi;
12397
12398
12399 if test x$need_sasl = xyes; then
12400   USE_SASL_TRUE=
12401   USE_SASL_FALSE='#'
12402 else
12403   USE_SASL_TRUE='#'
12404   USE_SASL_FALSE=
12405 fi
12406
12407
12408
12409 # Check whether --with-idn or --without-idn was given.
12410 if test "${with_idn+set}" = set; then
12411   withval="$with_idn"
12412
12413                   if test "$with_idn" != "no" ; then
12414                         if test "$with_idn" != "yes" ; then
12415                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
12416                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
12417                         fi
12418                   fi
12419
12420
12421 fi;
12422
12423 if test "x$with_idn" != "xno"; then
12424
12425 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
12426 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
12427 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lidn  $LIBS"
12432 cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439
12440 /* Override any gcc2 internal prototype to avoid an error.  */
12441 #ifdef __cplusplus
12442 extern "C"
12443 #endif
12444 /* We use char because int might match the return type of a gcc2
12445    builtin and then its argument prototype would still apply.  */
12446 char stringprep_check_version ();
12447 int
12448 main ()
12449 {
12450 stringprep_check_version ();
12451   ;
12452   return 0;
12453 }
12454 _ACEOF
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457   (eval $ac_link) 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); } &&
12461          { ac_try='test -s conftest$ac_exeext'
12462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463   (eval $ac_try) 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; }; then
12467   ac_cv_lib_idn_stringprep_check_version=yes
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_cv_lib_idn_stringprep_check_version=no
12473 fi
12474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12476 fi
12477 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
12478 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
12479 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
12480   cat >>confdefs.h <<_ACEOF
12481 #define HAVE_LIBIDN 1
12482 _ACEOF
12483
12484   LIBS="-lidn $LIBS"
12485
12486 fi
12487
12488
12489
12490 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
12491 do
12492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12493 echo "$as_me:$LINENO: checking for $ac_func" >&5
12494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12495 if eval "test \"\${$as_ac_var+set}\" = set"; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505 /* System header to define __stub macros and hopefully few prototypes,
12506     which can conflict with char $ac_func (); below.
12507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12508     <limits.h> exists even on freestanding compilers.  */
12509 #ifdef __STDC__
12510 # include <limits.h>
12511 #else
12512 # include <assert.h>
12513 #endif
12514 /* Override any gcc2 internal prototype to avoid an error.  */
12515 #ifdef __cplusplus
12516 extern "C"
12517 {
12518 #endif
12519 /* We use char because int might match the return type of a gcc2
12520    builtin and then its argument prototype would still apply.  */
12521 char $ac_func ();
12522 /* The GNU C library defines this for functions which it implements
12523     to always fail with ENOSYS.  Some functions are actually named
12524     something starting with __ and the normal name is an alias.  */
12525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12526 choke me
12527 #else
12528 char (*f) () = $ac_func;
12529 #endif
12530 #ifdef __cplusplus
12531 }
12532 #endif
12533
12534 int
12535 main ()
12536 {
12537 return f != $ac_func;
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544   (eval $ac_link) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } &&
12548          { ac_try='test -s conftest$ac_exeext'
12549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550   (eval $ac_try) 2>&5
12551   ac_status=$?
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); }; }; then
12554   eval "$as_ac_var=yes"
12555 else
12556   echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559 eval "$as_ac_var=no"
12560 fi
12561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12562 fi
12563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12565 if test `eval echo '${'$as_ac_var'}'` = yes; then
12566   cat >>confdefs.h <<_ACEOF
12567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12568 _ACEOF
12569
12570 fi
12571 done
12572
12573
12574
12575 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
12576 do
12577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 echo "$as_me:$LINENO: checking for $ac_func" >&5
12579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12580 if eval "test \"\${$as_ac_var+set}\" = set"; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   cat >conftest.$ac_ext <<_ACEOF
12584 #line $LINENO "configure"
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590 /* System header to define __stub macros and hopefully few prototypes,
12591     which can conflict with char $ac_func (); below.
12592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593     <limits.h> exists even on freestanding compilers.  */
12594 #ifdef __STDC__
12595 # include <limits.h>
12596 #else
12597 # include <assert.h>
12598 #endif
12599 /* Override any gcc2 internal prototype to avoid an error.  */
12600 #ifdef __cplusplus
12601 extern "C"
12602 {
12603 #endif
12604 /* We use char because int might match the return type of a gcc2
12605    builtin and then its argument prototype would still apply.  */
12606 char $ac_func ();
12607 /* The GNU C library defines this for functions which it implements
12608     to always fail with ENOSYS.  Some functions are actually named
12609     something starting with __ and the normal name is an alias.  */
12610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12611 choke me
12612 #else
12613 char (*f) () = $ac_func;
12614 #endif
12615 #ifdef __cplusplus
12616 }
12617 #endif
12618
12619 int
12620 main ()
12621 {
12622 return f != $ac_func;
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12629   (eval $ac_link) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } &&
12633          { ac_try='test -s conftest$ac_exeext'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; }; then
12639   eval "$as_ac_var=yes"
12640 else
12641   echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12643
12644 eval "$as_ac_var=no"
12645 fi
12646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12647 fi
12648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12650 if test `eval echo '${'$as_ac_var'}'` = yes; then
12651   cat >>confdefs.h <<_ACEOF
12652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12653 _ACEOF
12654
12655 fi
12656 done
12657
12658
12659
12660 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
12661 do
12662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12663 echo "$as_me:$LINENO: checking for $ac_func" >&5
12664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12665 if eval "test \"\${$as_ac_var+set}\" = set"; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668   cat >conftest.$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675 /* System header to define __stub macros and hopefully few prototypes,
12676     which can conflict with char $ac_func (); below.
12677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12678     <limits.h> exists even on freestanding compilers.  */
12679 #ifdef __STDC__
12680 # include <limits.h>
12681 #else
12682 # include <assert.h>
12683 #endif
12684 /* Override any gcc2 internal prototype to avoid an error.  */
12685 #ifdef __cplusplus
12686 extern "C"
12687 {
12688 #endif
12689 /* We use char because int might match the return type of a gcc2
12690    builtin and then its argument prototype would still apply.  */
12691 char $ac_func ();
12692 /* The GNU C library defines this for functions which it implements
12693     to always fail with ENOSYS.  Some functions are actually named
12694     something starting with __ and the normal name is an alias.  */
12695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12696 choke me
12697 #else
12698 char (*f) () = $ac_func;
12699 #endif
12700 #ifdef __cplusplus
12701 }
12702 #endif
12703
12704 int
12705 main ()
12706 {
12707 return f != $ac_func;
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714   (eval $ac_link) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); } &&
12718          { ac_try='test -s conftest$ac_exeext'
12719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720   (eval $ac_try) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); }; }; then
12724   eval "$as_ac_var=yes"
12725 else
12726   echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12728
12729 eval "$as_ac_var=no"
12730 fi
12731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12732 fi
12733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12735 if test `eval echo '${'$as_ac_var'}'` = yes; then
12736   cat >>confdefs.h <<_ACEOF
12737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12738 _ACEOF
12739
12740 fi
12741 done
12742
12743 fi
12744
12745
12746 # Check whether --enable-debug or --disable-debug was given.
12747 if test "${enable_debug+set}" = set; then
12748   enableval="$enable_debug"
12749    if test x$enableval = xyes ; then
12750
12751 cat >>confdefs.h <<\_ACEOF
12752 #define DEBUG 1
12753 _ACEOF
12754
12755           fi
12756
12757 fi;
12758
12759 # Check whether --enable-flock or --disable-flock was given.
12760 if test "${enable_flock+set}" = set; then
12761   enableval="$enable_flock"
12762   if test $enableval = yes; then
12763
12764 cat >>confdefs.h <<\_ACEOF
12765 #define USE_FLOCK 1
12766 _ACEOF
12767
12768         fi
12769 fi;
12770
12771 mutt_cv_fcntl=yes
12772 # Check whether --enable-fcntl or --disable-fcntl was given.
12773 if test "${enable_fcntl+set}" = set; then
12774   enableval="$enable_fcntl"
12775   if test $enableval = no; then mutt_cv_fcntl=no; fi
12776 fi;
12777
12778 if test $mutt_cv_fcntl = yes; then
12779
12780 cat >>confdefs.h <<\_ACEOF
12781 #define USE_FCNTL 1
12782 _ACEOF
12783
12784 fi
12785
12786 mutt_cv_inodesort=no
12787 # Check whether --enable-inodesort or --disable-inodesort was given.
12788 if test "${enable_inodesort+set}" = set; then
12789   enableval="$enable_inodesort"
12790   if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
12791 fi;
12792
12793 if test $mutt_cv_inodesort = yes; then
12794
12795 cat >>confdefs.h <<\_ACEOF
12796 #define USE_INODESORT 1
12797 _ACEOF
12798
12799 fi
12800
12801 mutt_cv_warnings=yes
12802 # Check whether --enable-warnings or --disable-warnings was given.
12803 if test "${enable_warnings+set}" = set; then
12804   enableval="$enable_warnings"
12805   if test $enableval = no; then
12806         mutt_cv_warnings=no
12807 fi
12808 fi;
12809
12810 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
12811         CFLAGS="-Wall -pedantic $CFLAGS"
12812 fi
12813
12814 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
12815 if test "${enable_nfs_fix+set}" = set; then
12816   enableval="$enable_nfs_fix"
12817   if test x$enableval = xyes; then
12818
12819 cat >>confdefs.h <<\_ACEOF
12820 #define NFS_ATTRIBUTE_HACK 1
12821 _ACEOF
12822
12823         fi
12824 fi;
12825
12826 # Check whether --enable-buffy-size or --disable-buffy-size was given.
12827 if test "${enable_buffy_size+set}" = set; then
12828   enableval="$enable_buffy_size"
12829   if test x$enableval = xyes; then
12830
12831 cat >>confdefs.h <<\_ACEOF
12832 #define BUFFY_SIZE 1
12833 _ACEOF
12834
12835         fi
12836 fi;
12837
12838 # Check whether --enable-mailtool or --disable-mailtool was given.
12839 if test "${enable_mailtool+set}" = set; then
12840   enableval="$enable_mailtool"
12841   if test x$enableval = xyes; then
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define SUN_ATTACHMENT 1
12845 _ACEOF
12846
12847         fi
12848 fi;
12849
12850 # Check whether --enable-compressed or --disable-compressed was given.
12851 if test "${enable_compressed+set}" = set; then
12852   enableval="$enable_compressed"
12853   if test x$enableval = xyes; then
12854                 cat >>confdefs.h <<\_ACEOF
12855 #define USE_COMPRESSED 1
12856 _ACEOF
12857
12858         fi
12859 fi;
12860
12861 # Check whether --enable-locales-fix or --disable-locales-fix was given.
12862 if test "${enable_locales_fix+set}" = set; then
12863   enableval="$enable_locales_fix"
12864   if test x$enableval = xyes; then
12865
12866 cat >>confdefs.h <<\_ACEOF
12867 #define LOCALES_HACK 1
12868 _ACEOF
12869
12870         fi
12871 fi;
12872
12873
12874 # Check whether --with-exec-shell or --without-exec-shell was given.
12875 if test "${with_exec_shell+set}" = set; then
12876   withval="$with_exec_shell"
12877   if test $withval != yes; then
12878
12879 cat >>confdefs.h <<_ACEOF
12880 #define EXECSHELL "$withval"
12881 _ACEOF
12882
12883          else
12884                 cat >>confdefs.h <<_ACEOF
12885 #define EXECSHELL "/bin/sh"
12886 _ACEOF
12887
12888         fi
12889 else
12890   cat >>confdefs.h <<_ACEOF
12891 #define EXECSHELL "/bin/sh"
12892 _ACEOF
12893
12894 fi;
12895
12896 # Check whether --enable-exact-address or --disable-exact-address was given.
12897 if test "${enable_exact_address+set}" = set; then
12898   enableval="$enable_exact_address"
12899   if test $enableval = yes; then
12900
12901 cat >>confdefs.h <<\_ACEOF
12902 #define EXACT_ADDRESS 1
12903 _ACEOF
12904
12905
12906         fi
12907 fi;
12908
12909 # Check whether --enable-hcache or --disable-hcache was given.
12910 if test "${enable_hcache+set}" = set; then
12911   enableval="$enable_hcache"
12912   if test x$enableval = xyes; then
12913
12914 cat >>confdefs.h <<\_ACEOF
12915 #define USE_HCACHE 1
12916 _ACEOF
12917
12918
12919     OLDCPPFLAGS="$CPPFLAGS"
12920     OLDLIBS="$LIBS"
12921
12922     need_md5="yes"
12923     ac_prefer_gdbm=yes
12924
12925 # Check whether --with-gdbm or --without-gdbm was given.
12926 if test "${with_gdbm+set}" = set; then
12927   withval="$with_gdbm"
12928   ac_prefer_gdbm=$withval
12929 fi;
12930     if test x$ac_prefer_gdbm != xno; then
12931         CPPFLAGS="$OLDCPPFLAGS"
12932         LIBS="$OLDLIBS -lgdbm";
12933         echo "$as_me:$LINENO: checking for gdbm_open" >&5
12934 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
12935 if test "${ac_cv_gdbmopen+set}" = set; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938
12939             ac_cv_gdbmopen=no
12940             cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947 #include <gdbm.h>
12948 int
12949 main ()
12950 {
12951 gdbm_open(0,0,0,0,0);
12952   ;
12953   return 0;
12954 }
12955 _ACEOF
12956 rm -f conftest.$ac_objext conftest$ac_exeext
12957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12958   (eval $ac_link) 2>&5
12959   ac_status=$?
12960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961   (exit $ac_status); } &&
12962          { ac_try='test -s conftest$ac_exeext'
12963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964   (eval $ac_try) 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); }; }; then
12968   ac_cv_gdbmopen=yes
12969 else
12970   echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12972
12973 fi
12974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12975
12976 fi
12977 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
12978 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
12979     fi
12980
12981     ac_bdb_prefix=yes
12982
12983 # Check whether --with-bdb or --without-bdb was given.
12984 if test "${with_bdb+set}" = set; then
12985   withval="$with_bdb"
12986   ac_bdb_prefix=$withval
12987 fi;
12988     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
12989         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
12990         for d in $ac_bdb_prefix; do
12991             bdbpfx="$bdbpfx $d"
12992             for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
12993                 bdbpfx="$bdbpfx $d/$v"
12994             done
12995         done
12996         BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
12997         echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
12998 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
12999         for d in $bdbpfx; do
13000             BDB_INCLUDE_DIR=""
13001             BDB_LIB_DIR=""
13002             for v in / $BDB_VERSIONS; do
13003                 if test -r "$d/include/$v/db.h"; then
13004                     BDB_INCLUDE_DIR="$d/include/$v"
13005                     if test -d "$d/lib/$v"; then
13006                         BDB_LIB_DIR="$d/lib/$v"
13007                         for l in `echo $BDB_VERSIONS`; do
13008                             CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
13009                             LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
13010                             cat >conftest.$ac_ext <<_ACEOF
13011 #line $LINENO "configure"
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017
13018                                 #include <stdlib.h>
13019                                 #include <db.h>
13020
13021 int
13022 main ()
13023 {
13024
13025                                 DB *db = NULL;
13026                                 db->open(db,NULL,NULL,NULL,0,0,0);
13027
13028   ;
13029   return 0;
13030 }
13031 _ACEOF
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13034   (eval $ac_link) 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); } &&
13038          { ac_try='test -s conftest$ac_exeext'
13039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040   (eval $ac_try) 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }; }; then
13044
13045                                 ac_cv_dbcreate=yes
13046                                 BDB_LIB="$l"
13047                                 break
13048
13049 else
13050   echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053 fi
13054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13055                         done
13056                         test x$ac_dbcreate = xyes && break
13057                     fi
13058                 fi
13059             done
13060             test x$BDB_LIB != x && break
13061         done
13062         if test x$ac_cv_dbcreate = xyes; then
13063             echo "$as_me:$LINENO: result: yes" >&5
13064 echo "${ECHO_T}yes" >&6
13065         else
13066             echo "$as_me:$LINENO: result: no" >&5
13067 echo "${ECHO_T}no" >&6
13068         fi
13069     fi
13070
13071     if test x$ac_cv_gdbmopen = xyes; then
13072         CPPFLAGS="$OLDCPPFLAGS"
13073         LIBS="$OLDLIBS -lgdbm";
13074
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_GDBM 1
13077 _ACEOF
13078
13079     elif test x$ac_cv_dbcreate = xyes; then
13080         CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
13081         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
13082
13083 cat >>confdefs.h <<\_ACEOF
13084 #define HAVE_DB4 1
13085 _ACEOF
13086
13087     else
13088         { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
13089 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
13090    { (exit 1); exit 1; }; }
13091     fi
13092 fi
13093 fi;
13094
13095
13096
13097
13098
13099
13100
13101 # Check whether --enable-iconv or --disable-iconv was given.
13102 if test "${enable_iconv+set}" = set; then
13103   enableval="$enable_iconv"
13104   if test x$enableval = xno ; then
13105                 am_cv_func_iconv=no
13106         fi
13107
13108 fi;
13109
13110 echo "$as_me:$LINENO: checking for off_t" >&5
13111 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13112 if test "${ac_cv_type_off_t+set}" = set; then
13113   echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115   cat >conftest.$ac_ext <<_ACEOF
13116 #line $LINENO "configure"
13117 /* confdefs.h.  */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h.  */
13122 $ac_includes_default
13123 int
13124 main ()
13125 {
13126 if ((off_t *) 0)
13127   return 0;
13128 if (sizeof (off_t))
13129   return 0;
13130   ;
13131   return 0;
13132 }
13133 _ACEOF
13134 rm -f conftest.$ac_objext
13135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13136   (eval $ac_compile) 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); } &&
13140          { ac_try='test -s conftest.$ac_objext'
13141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142   (eval $ac_try) 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }; }; then
13146   ac_cv_type_off_t=yes
13147 else
13148   echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 ac_cv_type_off_t=no
13152 fi
13153 rm -f conftest.$ac_objext conftest.$ac_ext
13154 fi
13155 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13156 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13157 if test $ac_cv_type_off_t = yes; then
13158   :
13159 else
13160
13161 cat >>confdefs.h <<_ACEOF
13162 #define off_t long
13163 _ACEOF
13164
13165 fi
13166
13167 echo "$as_me:$LINENO: checking for size_t" >&5
13168 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13169 if test "${ac_cv_type_size_t+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   cat >conftest.$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13174 /* confdefs.h.  */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h.  */
13179 $ac_includes_default
13180 int
13181 main ()
13182 {
13183 if ((size_t *) 0)
13184   return 0;
13185 if (sizeof (size_t))
13186   return 0;
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 rm -f conftest.$ac_objext
13192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13193   (eval $ac_compile) 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); } &&
13197          { ac_try='test -s conftest.$ac_objext'
13198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199   (eval $ac_try) 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); }; }; then
13203   ac_cv_type_size_t=yes
13204 else
13205   echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208 ac_cv_type_size_t=no
13209 fi
13210 rm -f conftest.$ac_objext conftest.$ac_ext
13211 fi
13212 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13213 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13214 if test $ac_cv_type_size_t = yes; then
13215   :
13216 else
13217
13218 cat >>confdefs.h <<_ACEOF
13219 #define size_t unsigned
13220 _ACEOF
13221
13222 fi
13223
13224 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13225 # for constant arguments.  Useless!
13226 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13227 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13228 if test "${ac_cv_working_alloca_h+set}" = set; then
13229   echo $ECHO_N "(cached) $ECHO_C" >&6
13230 else
13231   cat >conftest.$ac_ext <<_ACEOF
13232 #line $LINENO "configure"
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238 #include <alloca.h>
13239 int
13240 main ()
13241 {
13242 char *p = (char *) alloca (2 * sizeof (int));
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13249   (eval $ac_link) 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_working_alloca_h=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_cv_working_alloca_h=no
13265 fi
13266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13267 fi
13268 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13269 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13270 if test $ac_cv_working_alloca_h = yes; then
13271
13272 cat >>confdefs.h <<\_ACEOF
13273 #define HAVE_ALLOCA_H 1
13274 _ACEOF
13275
13276 fi
13277
13278 echo "$as_me:$LINENO: checking for alloca" >&5
13279 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13280 if test "${ac_cv_func_alloca_works+set}" = set; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290 #ifdef __GNUC__
13291 # define alloca __builtin_alloca
13292 #else
13293 # ifdef _MSC_VER
13294 #  include <malloc.h>
13295 #  define alloca _alloca
13296 # else
13297 #  if HAVE_ALLOCA_H
13298 #   include <alloca.h>
13299 #  else
13300 #   ifdef _AIX
13301  #pragma alloca
13302 #   else
13303 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13304 char *alloca ();
13305 #    endif
13306 #   endif
13307 #  endif
13308 # endif
13309 #endif
13310
13311 int
13312 main ()
13313 {
13314 char *p = (char *) alloca (1);
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13321   (eval $ac_link) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); } &&
13325          { ac_try='test -s conftest$ac_exeext'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; }; then
13331   ac_cv_func_alloca_works=yes
13332 else
13333   echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336 ac_cv_func_alloca_works=no
13337 fi
13338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13339 fi
13340 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13341 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13342
13343 if test $ac_cv_func_alloca_works = yes; then
13344
13345 cat >>confdefs.h <<\_ACEOF
13346 #define HAVE_ALLOCA 1
13347 _ACEOF
13348
13349 else
13350   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13351 # that cause trouble.  Some versions do not even contain alloca or
13352 # contain a buggy version.  If you still want to use their alloca,
13353 # use ar to extract alloca.o from them instead of compiling alloca.c.
13354
13355 ALLOCA=alloca.$ac_objext
13356
13357 cat >>confdefs.h <<\_ACEOF
13358 #define C_ALLOCA 1
13359 _ACEOF
13360
13361
13362 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13363 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13364 if test "${ac_cv_os_cray+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374 #if defined(CRAY) && ! defined(CRAY2)
13375 webecray
13376 #else
13377 wenotbecray
13378 #endif
13379
13380 _ACEOF
13381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13382   $EGREP "webecray" >/dev/null 2>&1; then
13383   ac_cv_os_cray=yes
13384 else
13385   ac_cv_os_cray=no
13386 fi
13387 rm -f conftest*
13388
13389 fi
13390 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13391 echo "${ECHO_T}$ac_cv_os_cray" >&6
13392 if test $ac_cv_os_cray = yes; then
13393   for ac_func in _getb67 GETB67 getb67; do
13394     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13395 echo "$as_me:$LINENO: checking for $ac_func" >&5
13396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13397 if eval "test \"\${$as_ac_var+set}\" = set"; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   cat >conftest.$ac_ext <<_ACEOF
13401 #line $LINENO "configure"
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407 /* System header to define __stub macros and hopefully few prototypes,
13408     which can conflict with char $ac_func (); below.
13409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13410     <limits.h> exists even on freestanding compilers.  */
13411 #ifdef __STDC__
13412 # include <limits.h>
13413 #else
13414 # include <assert.h>
13415 #endif
13416 /* Override any gcc2 internal prototype to avoid an error.  */
13417 #ifdef __cplusplus
13418 extern "C"
13419 {
13420 #endif
13421 /* We use char because int might match the return type of a gcc2
13422    builtin and then its argument prototype would still apply.  */
13423 char $ac_func ();
13424 /* The GNU C library defines this for functions which it implements
13425     to always fail with ENOSYS.  Some functions are actually named
13426     something starting with __ and the normal name is an alias.  */
13427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13428 choke me
13429 #else
13430 char (*f) () = $ac_func;
13431 #endif
13432 #ifdef __cplusplus
13433 }
13434 #endif
13435
13436 int
13437 main ()
13438 {
13439 return f != $ac_func;
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest.$ac_objext conftest$ac_exeext
13445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13446   (eval $ac_link) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } &&
13450          { ac_try='test -s conftest$ac_exeext'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; }; then
13456   eval "$as_ac_var=yes"
13457 else
13458   echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461 eval "$as_ac_var=no"
13462 fi
13463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13464 fi
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13467 if test `eval echo '${'$as_ac_var'}'` = yes; then
13468
13469 cat >>confdefs.h <<_ACEOF
13470 #define CRAY_STACKSEG_END $ac_func
13471 _ACEOF
13472
13473     break
13474 fi
13475
13476   done
13477 fi
13478
13479 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13480 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13481 if test "${ac_cv_c_stack_direction+set}" = set; then
13482   echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484   if test "$cross_compiling" = yes; then
13485   ac_cv_c_stack_direction=0
13486 else
13487   cat >conftest.$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13489 /* confdefs.h.  */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h.  */
13494 int
13495 find_stack_direction ()
13496 {
13497   static char *addr = 0;
13498   auto char dummy;
13499   if (addr == 0)
13500     {
13501       addr = &dummy;
13502       return find_stack_direction ();
13503     }
13504   else
13505     return (&dummy > addr) ? 1 : -1;
13506 }
13507
13508 int
13509 main ()
13510 {
13511   exit (find_stack_direction () < 0);
13512 }
13513 _ACEOF
13514 rm -f conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516   (eval $ac_link) 2>&5
13517   ac_status=$?
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521   (eval $ac_try) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; }; then
13525   ac_cv_c_stack_direction=1
13526 else
13527   echo "$as_me: program exited with status $ac_status" >&5
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531 ( exit $ac_status )
13532 ac_cv_c_stack_direction=-1
13533 fi
13534 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 fi
13537 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13538 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13539
13540 cat >>confdefs.h <<_ACEOF
13541 #define STACK_DIRECTION $ac_cv_c_stack_direction
13542 _ACEOF
13543
13544
13545 fi
13546
13547
13548
13549 for ac_header in stdlib.h unistd.h
13550 do
13551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13553   echo "$as_me:$LINENO: checking for $ac_header" >&5
13554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13556   echo $ECHO_N "(cached) $ECHO_C" >&6
13557 fi
13558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13560 else
13561   # Is the header compilable?
13562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13564 cat >conftest.$ac_ext <<_ACEOF
13565 #line $LINENO "configure"
13566 /* confdefs.h.  */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h.  */
13571 $ac_includes_default
13572 #include <$ac_header>
13573 _ACEOF
13574 rm -f conftest.$ac_objext
13575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576   (eval $ac_compile) 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } &&
13580          { ac_try='test -s conftest.$ac_objext'
13581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582   (eval $ac_try) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; }; then
13586   ac_header_compiler=yes
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 ac_header_compiler=no
13592 fi
13593 rm -f conftest.$ac_objext conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13595 echo "${ECHO_T}$ac_header_compiler" >&6
13596
13597 # Is the header present?
13598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13600 cat >conftest.$ac_ext <<_ACEOF
13601 #line $LINENO "configure"
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607 #include <$ac_header>
13608 _ACEOF
13609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } >/dev/null; then
13617   if test -s conftest.err; then
13618     ac_cpp_err=$ac_c_preproc_warn_flag
13619   else
13620     ac_cpp_err=
13621   fi
13622 else
13623   ac_cpp_err=yes
13624 fi
13625 if test -z "$ac_cpp_err"; then
13626   ac_header_preproc=yes
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631   ac_header_preproc=no
13632 fi
13633 rm -f conftest.err conftest.$ac_ext
13634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635 echo "${ECHO_T}$ac_header_preproc" >&6
13636
13637 # So?  What about this header?
13638 case $ac_header_compiler:$ac_header_preproc in
13639   yes:no )
13640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13644     (
13645       cat <<\_ASBOX
13646 ## ------------------------------------ ##
13647 ## Report this to bug-autoconf@gnu.org. ##
13648 ## ------------------------------------ ##
13649 _ASBOX
13650     ) |
13651       sed "s/^/$as_me: WARNING:     /" >&2
13652     ;;
13653   no:yes )
13654     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13656     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13660     (
13661       cat <<\_ASBOX
13662 ## ------------------------------------ ##
13663 ## Report this to bug-autoconf@gnu.org. ##
13664 ## ------------------------------------ ##
13665 _ASBOX
13666     ) |
13667       sed "s/^/$as_me: WARNING:     /" >&2
13668     ;;
13669 esac
13670 echo "$as_me:$LINENO: checking for $ac_header" >&5
13671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13673   echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675   eval "$as_ac_Header=$ac_header_preproc"
13676 fi
13677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13679
13680 fi
13681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682   cat >>confdefs.h <<_ACEOF
13683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684 _ACEOF
13685
13686 fi
13687
13688 done
13689
13690
13691 for ac_func in getpagesize
13692 do
13693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13694 echo "$as_me:$LINENO: checking for $ac_func" >&5
13695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13696 if eval "test \"\${$as_ac_var+set}\" = set"; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699   cat >conftest.$ac_ext <<_ACEOF
13700 #line $LINENO "configure"
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706 /* System header to define __stub macros and hopefully few prototypes,
13707     which can conflict with char $ac_func (); below.
13708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13709     <limits.h> exists even on freestanding compilers.  */
13710 #ifdef __STDC__
13711 # include <limits.h>
13712 #else
13713 # include <assert.h>
13714 #endif
13715 /* Override any gcc2 internal prototype to avoid an error.  */
13716 #ifdef __cplusplus
13717 extern "C"
13718 {
13719 #endif
13720 /* We use char because int might match the return type of a gcc2
13721    builtin and then its argument prototype would still apply.  */
13722 char $ac_func ();
13723 /* The GNU C library defines this for functions which it implements
13724     to always fail with ENOSYS.  Some functions are actually named
13725     something starting with __ and the normal name is an alias.  */
13726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13727 choke me
13728 #else
13729 char (*f) () = $ac_func;
13730 #endif
13731 #ifdef __cplusplus
13732 }
13733 #endif
13734
13735 int
13736 main ()
13737 {
13738 return f != $ac_func;
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest.$ac_objext conftest$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745   (eval $ac_link) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -s conftest$ac_exeext'
13750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751   (eval $ac_try) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); }; }; then
13755   eval "$as_ac_var=yes"
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 eval "$as_ac_var=no"
13761 fi
13762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13763 fi
13764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13766 if test `eval echo '${'$as_ac_var'}'` = yes; then
13767   cat >>confdefs.h <<_ACEOF
13768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13769 _ACEOF
13770
13771 fi
13772 done
13773
13774 echo "$as_me:$LINENO: checking for working mmap" >&5
13775 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13776 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13777   echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779   if test "$cross_compiling" = yes; then
13780   ac_cv_func_mmap_fixed_mapped=no
13781 else
13782   cat >conftest.$ac_ext <<_ACEOF
13783 #line $LINENO "configure"
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 $ac_includes_default
13790 /* malloc might have been renamed as rpl_malloc. */
13791 #undef malloc
13792
13793 /* Thanks to Mike Haertel and Jim Avera for this test.
13794    Here is a matrix of mmap possibilities:
13795         mmap private not fixed
13796         mmap private fixed at somewhere currently unmapped
13797         mmap private fixed at somewhere already mapped
13798         mmap shared not fixed
13799         mmap shared fixed at somewhere currently unmapped
13800         mmap shared fixed at somewhere already mapped
13801    For private mappings, we should verify that changes cannot be read()
13802    back from the file, nor mmap's back from the file at a different
13803    address.  (There have been systems where private was not correctly
13804    implemented like the infamous i386 svr4.0, and systems where the
13805    VM page cache was not coherent with the file system buffer cache
13806    like early versions of FreeBSD and possibly contemporary NetBSD.)
13807    For shared mappings, we should conversely verify that changes get
13808    propagated back to all the places they're supposed to be.
13809
13810    Grep wants private fixed already mapped.
13811    The main things grep needs to know about mmap are:
13812    * does it exist and is it safe to write into the mmap'd area
13813    * how to use it (BSD variants)  */
13814
13815 #include <fcntl.h>
13816 #include <sys/mman.h>
13817
13818 #if !STDC_HEADERS && !HAVE_STDLIB_H
13819 char *malloc ();
13820 #endif
13821
13822 /* This mess was copied from the GNU getpagesize.h.  */
13823 #if !HAVE_GETPAGESIZE
13824 /* Assume that all systems that can run configure have sys/param.h.  */
13825 # if !HAVE_SYS_PARAM_H
13826 #  define HAVE_SYS_PARAM_H 1
13827 # endif
13828
13829 # ifdef _SC_PAGESIZE
13830 #  define getpagesize() sysconf(_SC_PAGESIZE)
13831 # else /* no _SC_PAGESIZE */
13832 #  if HAVE_SYS_PARAM_H
13833 #   include <sys/param.h>
13834 #   ifdef EXEC_PAGESIZE
13835 #    define getpagesize() EXEC_PAGESIZE
13836 #   else /* no EXEC_PAGESIZE */
13837 #    ifdef NBPG
13838 #     define getpagesize() NBPG * CLSIZE
13839 #     ifndef CLSIZE
13840 #      define CLSIZE 1
13841 #     endif /* no CLSIZE */
13842 #    else /* no NBPG */
13843 #     ifdef NBPC
13844 #      define getpagesize() NBPC
13845 #     else /* no NBPC */
13846 #      ifdef PAGESIZE
13847 #       define getpagesize() PAGESIZE
13848 #      endif /* PAGESIZE */
13849 #     endif /* no NBPC */
13850 #    endif /* no NBPG */
13851 #   endif /* no EXEC_PAGESIZE */
13852 #  else /* no HAVE_SYS_PARAM_H */
13853 #   define getpagesize() 8192   /* punt totally */
13854 #  endif /* no HAVE_SYS_PARAM_H */
13855 # endif /* no _SC_PAGESIZE */
13856
13857 #endif /* no HAVE_GETPAGESIZE */
13858
13859 int
13860 main ()
13861 {
13862   char *data, *data2, *data3;
13863   int i, pagesize;
13864   int fd;
13865
13866   pagesize = getpagesize ();
13867
13868   /* First, make a file with some known garbage in it. */
13869   data = (char *) malloc (pagesize);
13870   if (!data)
13871     exit (1);
13872   for (i = 0; i < pagesize; ++i)
13873     *(data + i) = rand ();
13874   umask (0);
13875   fd = creat ("conftest.mmap", 0600);
13876   if (fd < 0)
13877     exit (1);
13878   if (write (fd, data, pagesize) != pagesize)
13879     exit (1);
13880   close (fd);
13881
13882   /* Next, try to mmap the file at a fixed address which already has
13883      something else allocated at it.  If we can, also make sure that
13884      we see the same garbage.  */
13885   fd = open ("conftest.mmap", O_RDWR);
13886   if (fd < 0)
13887     exit (1);
13888   data2 = (char *) malloc (2 * pagesize);
13889   if (!data2)
13890     exit (1);
13891   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13892   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13893                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13894     exit (1);
13895   for (i = 0; i < pagesize; ++i)
13896     if (*(data + i) != *(data2 + i))
13897       exit (1);
13898
13899   /* Finally, make sure that changes to the mapped area do not
13900      percolate back to the file as seen by read().  (This is a bug on
13901      some variants of i386 svr4.0.)  */
13902   for (i = 0; i < pagesize; ++i)
13903     *(data2 + i) = *(data2 + i) + 1;
13904   data3 = (char *) malloc (pagesize);
13905   if (!data3)
13906     exit (1);
13907   if (read (fd, data3, pagesize) != pagesize)
13908     exit (1);
13909   for (i = 0; i < pagesize; ++i)
13910     if (*(data + i) != *(data3 + i))
13911       exit (1);
13912   close (fd);
13913   exit (0);
13914 }
13915 _ACEOF
13916 rm -f conftest$ac_exeext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13918   (eval $ac_link) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923   (eval $ac_try) 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; }; then
13927   ac_cv_func_mmap_fixed_mapped=yes
13928 else
13929   echo "$as_me: program exited with status $ac_status" >&5
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13932
13933 ( exit $ac_status )
13934 ac_cv_func_mmap_fixed_mapped=no
13935 fi
13936 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13937 fi
13938 fi
13939 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13940 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13941 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13942
13943 cat >>confdefs.h <<\_ACEOF
13944 #define HAVE_MMAP 1
13945 _ACEOF
13946
13947 fi
13948 rm -f conftest.mmap
13949
13950
13951     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13952 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
13953 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13954   echo $ECHO_N "(cached) $ECHO_C" >&6
13955 else
13956   cat >conftest.$ac_ext <<_ACEOF
13957 #line $LINENO "configure"
13958 /* confdefs.h.  */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h.  */
13963
13964 #include <features.h>
13965 #ifdef __GNU_LIBRARY__
13966  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13967   Lucky GNU user
13968  #endif
13969 #endif
13970
13971 _ACEOF
13972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13973   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13974   ac_cv_gnu_library_2_1=yes
13975 else
13976   ac_cv_gnu_library_2_1=no
13977 fi
13978 rm -f conftest*
13979
13980
13981
13982 fi
13983 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13984 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
13985
13986     GLIBC21="$ac_cv_gnu_library_2_1"
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14001 stdlib.h string.h unistd.h sys/param.h
14002 do
14003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14005   echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 fi
14010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14012 else
14013   # Is the header compilable?
14014 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14016 cat >conftest.$ac_ext <<_ACEOF
14017 #line $LINENO "configure"
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023 $ac_includes_default
14024 #include <$ac_header>
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028   (eval $ac_compile) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); } &&
14032          { ac_try='test -s conftest.$ac_objext'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }; then
14038   ac_header_compiler=yes
14039 else
14040   echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14042
14043 ac_header_compiler=no
14044 fi
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14047 echo "${ECHO_T}$ac_header_compiler" >&6
14048
14049 # Is the header present?
14050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14052 cat >conftest.$ac_ext <<_ACEOF
14053 #line $LINENO "configure"
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059 #include <$ac_header>
14060 _ACEOF
14061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } >/dev/null; then
14069   if test -s conftest.err; then
14070     ac_cpp_err=$ac_c_preproc_warn_flag
14071   else
14072     ac_cpp_err=
14073   fi
14074 else
14075   ac_cpp_err=yes
14076 fi
14077 if test -z "$ac_cpp_err"; then
14078   ac_header_preproc=yes
14079 else
14080   echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083   ac_header_preproc=no
14084 fi
14085 rm -f conftest.err conftest.$ac_ext
14086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14087 echo "${ECHO_T}$ac_header_preproc" >&6
14088
14089 # So?  What about this header?
14090 case $ac_header_compiler:$ac_header_preproc in
14091   yes:no )
14092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14096     (
14097       cat <<\_ASBOX
14098 ## ------------------------------------ ##
14099 ## Report this to bug-autoconf@gnu.org. ##
14100 ## ------------------------------------ ##
14101 _ASBOX
14102     ) |
14103       sed "s/^/$as_me: WARNING:     /" >&2
14104     ;;
14105   no:yes )
14106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14108     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14112     (
14113       cat <<\_ASBOX
14114 ## ------------------------------------ ##
14115 ## Report this to bug-autoconf@gnu.org. ##
14116 ## ------------------------------------ ##
14117 _ASBOX
14118     ) |
14119       sed "s/^/$as_me: WARNING:     /" >&2
14120     ;;
14121 esac
14122 echo "$as_me:$LINENO: checking for $ac_header" >&5
14123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14125   echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127   eval "$as_ac_Header=$ac_header_preproc"
14128 fi
14129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14131
14132 fi
14133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14134   cat >>confdefs.h <<_ACEOF
14135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14136 _ACEOF
14137
14138 fi
14139
14140 done
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
14164 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
14165 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14166 do
14167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14168 echo "$as_me:$LINENO: checking for $ac_func" >&5
14169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14170 if eval "test \"\${$as_ac_var+set}\" = set"; then
14171   echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173   cat >conftest.$ac_ext <<_ACEOF
14174 #line $LINENO "configure"
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 /* System header to define __stub macros and hopefully few prototypes,
14181     which can conflict with char $ac_func (); below.
14182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14183     <limits.h> exists even on freestanding compilers.  */
14184 #ifdef __STDC__
14185 # include <limits.h>
14186 #else
14187 # include <assert.h>
14188 #endif
14189 /* Override any gcc2 internal prototype to avoid an error.  */
14190 #ifdef __cplusplus
14191 extern "C"
14192 {
14193 #endif
14194 /* We use char because int might match the return type of a gcc2
14195    builtin and then its argument prototype would still apply.  */
14196 char $ac_func ();
14197 /* The GNU C library defines this for functions which it implements
14198     to always fail with ENOSYS.  Some functions are actually named
14199     something starting with __ and the normal name is an alias.  */
14200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14201 choke me
14202 #else
14203 char (*f) () = $ac_func;
14204 #endif
14205 #ifdef __cplusplus
14206 }
14207 #endif
14208
14209 int
14210 main ()
14211 {
14212 return f != $ac_func;
14213   ;
14214   return 0;
14215 }
14216 _ACEOF
14217 rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14219   (eval $ac_link) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } &&
14223          { ac_try='test -s conftest$ac_exeext'
14224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225   (eval $ac_try) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; }; then
14229   eval "$as_ac_var=yes"
14230 else
14231   echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234 eval "$as_ac_var=no"
14235 fi
14236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14237 fi
14238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14240 if test `eval echo '${'$as_ac_var'}'` = yes; then
14241   cat >>confdefs.h <<_ACEOF
14242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14243 _ACEOF
14244
14245 fi
14246 done
14247
14248
14249
14250
14251
14252 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14253 if test "${with_libiconv_prefix+set}" = set; then
14254   withval="$with_libiconv_prefix"
14255
14256     for dir in `echo "$withval" | tr : ' '`; do
14257       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
14258       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
14259     done
14260
14261 fi;
14262
14263   echo "$as_me:$LINENO: checking for iconv" >&5
14264 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14265 if test "${am_cv_func_iconv+set}" = set; then
14266   echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268
14269     am_cv_func_iconv="no, consider installing GNU libiconv"
14270     am_cv_lib_iconv=no
14271     cat >conftest.$ac_ext <<_ACEOF
14272 #line $LINENO "configure"
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278 #include <stdlib.h>
14279 #include <iconv.h>
14280 int
14281 main ()
14282 {
14283 iconv_t cd = iconv_open("","");
14284        iconv(cd,NULL,NULL,NULL,NULL);
14285        iconv_close(cd);
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14292   (eval $ac_link) 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); } &&
14296          { ac_try='test -s conftest$ac_exeext'
14297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298   (eval $ac_try) 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; }; then
14302   am_cv_func_iconv=yes
14303 else
14304   echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14306
14307 fi
14308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14309     if test "$am_cv_func_iconv" != yes; then
14310       am_save_LIBS="$LIBS"
14311       LIBS="$LIBS -liconv"
14312       cat >conftest.$ac_ext <<_ACEOF
14313 #line $LINENO "configure"
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319 #include <stdlib.h>
14320 #include <iconv.h>
14321 int
14322 main ()
14323 {
14324 iconv_t cd = iconv_open("","");
14325          iconv(cd,NULL,NULL,NULL,NULL);
14326          iconv_close(cd);
14327   ;
14328   return 0;
14329 }
14330 _ACEOF
14331 rm -f conftest.$ac_objext conftest$ac_exeext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14333   (eval $ac_link) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } &&
14337          { ac_try='test -s conftest$ac_exeext'
14338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339   (eval $ac_try) 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; }; then
14343   am_cv_lib_iconv=yes
14344         am_cv_func_iconv=yes
14345 else
14346   echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14348
14349 fi
14350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14351       LIBS="$am_save_LIBS"
14352     fi
14353
14354 fi
14355 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14356 echo "${ECHO_T}$am_cv_func_iconv" >&6
14357   if test "$am_cv_func_iconv" = yes; then
14358
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_ICONV 1
14361 _ACEOF
14362
14363     echo "$as_me:$LINENO: checking for iconv declaration" >&5
14364 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14365     if test "${am_cv_proto_iconv+set}" = set; then
14366   echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368
14369       cat >conftest.$ac_ext <<_ACEOF
14370 #line $LINENO "configure"
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376
14377 #include <stdlib.h>
14378 #include <iconv.h>
14379 extern
14380 #ifdef __cplusplus
14381 "C"
14382 #endif
14383 #if defined(__STDC__) || defined(__cplusplus)
14384 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14385 #else
14386 size_t iconv();
14387 #endif
14388
14389 int
14390 main ()
14391 {
14392
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399   (eval $ac_compile) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -s conftest.$ac_objext'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   am_cv_proto_iconv_arg1=""
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 am_cv_proto_iconv_arg1="const"
14415 fi
14416 rm -f conftest.$ac_objext conftest.$ac_ext
14417       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);"
14418 fi
14419
14420     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14421     echo "$as_me:$LINENO: result: ${ac_t:-
14422          }$am_cv_proto_iconv" >&5
14423 echo "${ECHO_T}${ac_t:-
14424          }$am_cv_proto_iconv" >&6
14425
14426 cat >>confdefs.h <<_ACEOF
14427 #define ICONV_CONST $am_cv_proto_iconv_arg1
14428 _ACEOF
14429
14430   fi
14431   LIBICONV=
14432   if test "$am_cv_lib_iconv" = yes; then
14433     LIBICONV="-liconv"
14434   fi
14435
14436
14437
14438   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14439 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14440 if test "${am_cv_langinfo_codeset+set}" = set; then
14441   echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443   cat >conftest.$ac_ext <<_ACEOF
14444 #line $LINENO "configure"
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450 #include <langinfo.h>
14451 int
14452 main ()
14453 {
14454 char* cs = nl_langinfo(CODESET);
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext conftest$ac_exeext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14461   (eval $ac_link) 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   am_cv_langinfo_codeset=yes
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 am_cv_langinfo_codeset=no
14477 fi
14478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14479
14480 fi
14481 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
14482 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
14483   if test $am_cv_langinfo_codeset = yes; then
14484
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_LANGINFO_CODESET 1
14487 _ACEOF
14488
14489   fi
14490
14491    if test $ac_cv_header_locale_h = yes; then
14492     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14493 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
14494 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14495   echo $ECHO_N "(cached) $ECHO_C" >&6
14496 else
14497   cat >conftest.$ac_ext <<_ACEOF
14498 #line $LINENO "configure"
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 #include <locale.h>
14505 int
14506 main ()
14507 {
14508 return LC_MESSAGES
14509   ;
14510   return 0;
14511 }
14512 _ACEOF
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515   (eval $ac_link) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } &&
14519          { ac_try='test -s conftest$ac_exeext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   am_cv_val_LC_MESSAGES=yes
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 am_cv_val_LC_MESSAGES=no
14531 fi
14532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14533 fi
14534 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14535 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
14536     if test $am_cv_val_LC_MESSAGES = yes; then
14537
14538 cat >>confdefs.h <<\_ACEOF
14539 #define HAVE_LC_MESSAGES 1
14540 _ACEOF
14541
14542     fi
14543   fi
14544    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14545 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
14546         # Check whether --enable-nls or --disable-nls was given.
14547 if test "${enable_nls+set}" = set; then
14548   enableval="$enable_nls"
14549   USE_NLS=$enableval
14550 else
14551   USE_NLS=yes
14552 fi;
14553     echo "$as_me:$LINENO: result: $USE_NLS" >&5
14554 echo "${ECHO_T}$USE_NLS" >&6
14555
14556
14557     BUILD_INCLUDED_LIBINTL=no
14558     USE_INCLUDED_LIBINTL=no
14559     INTLLIBS=
14560
14561         if test "$USE_NLS" = "yes"; then
14562
14563 cat >>confdefs.h <<\_ACEOF
14564 #define ENABLE_NLS 1
14565 _ACEOF
14566
14567       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
14568 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
14569
14570 # Check whether --with-included-gettext or --without-included-gettext was given.
14571 if test "${with_included_gettext+set}" = set; then
14572   withval="$with_included_gettext"
14573   nls_cv_force_use_gnu_gettext=$withval
14574 else
14575   nls_cv_force_use_gnu_gettext=no
14576 fi;
14577       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
14578 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
14579
14580       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14581       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14582                                 CATOBJEXT=NONE
14583
14584
14585
14586
14587         if test "${ac_cv_header_libintl_h+set}" = set; then
14588   echo "$as_me:$LINENO: checking for libintl.h" >&5
14589 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14590 if test "${ac_cv_header_libintl_h+set}" = set; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 fi
14593 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14594 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14595 else
14596   # Is the header compilable?
14597 echo "$as_me:$LINENO: checking libintl.h usability" >&5
14598 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
14599 cat >conftest.$ac_ext <<_ACEOF
14600 #line $LINENO "configure"
14601 /* confdefs.h.  */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h.  */
14606 $ac_includes_default
14607 #include <libintl.h>
14608 _ACEOF
14609 rm -f conftest.$ac_objext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611   (eval $ac_compile) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } &&
14615          { ac_try='test -s conftest.$ac_objext'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; }; then
14621   ac_header_compiler=yes
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 ac_header_compiler=no
14627 fi
14628 rm -f conftest.$ac_objext conftest.$ac_ext
14629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630 echo "${ECHO_T}$ac_header_compiler" >&6
14631
14632 # Is the header present?
14633 echo "$as_me:$LINENO: checking libintl.h presence" >&5
14634 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
14635 cat >conftest.$ac_ext <<_ACEOF
14636 #line $LINENO "configure"
14637 /* confdefs.h.  */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h.  */
14642 #include <libintl.h>
14643 _ACEOF
14644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14646   ac_status=$?
14647   grep -v '^ *+' conftest.er1 >conftest.err
14648   rm -f conftest.er1
14649   cat conftest.err >&5
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); } >/dev/null; then
14652   if test -s conftest.err; then
14653     ac_cpp_err=$ac_c_preproc_warn_flag
14654   else
14655     ac_cpp_err=
14656   fi
14657 else
14658   ac_cpp_err=yes
14659 fi
14660 if test -z "$ac_cpp_err"; then
14661   ac_header_preproc=yes
14662 else
14663   echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666   ac_header_preproc=no
14667 fi
14668 rm -f conftest.err conftest.$ac_ext
14669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14670 echo "${ECHO_T}$ac_header_preproc" >&6
14671
14672 # So?  What about this header?
14673 case $ac_header_compiler:$ac_header_preproc in
14674   yes:no )
14675     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14676 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14677     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14678 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14679     (
14680       cat <<\_ASBOX
14681 ## ------------------------------------ ##
14682 ## Report this to bug-autoconf@gnu.org. ##
14683 ## ------------------------------------ ##
14684 _ASBOX
14685     ) |
14686       sed "s/^/$as_me: WARNING:     /" >&2
14687     ;;
14688   no:yes )
14689     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14690 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14691     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14692 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14693     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14694 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14695     (
14696       cat <<\_ASBOX
14697 ## ------------------------------------ ##
14698 ## Report this to bug-autoconf@gnu.org. ##
14699 ## ------------------------------------ ##
14700 _ASBOX
14701     ) |
14702       sed "s/^/$as_me: WARNING:     /" >&2
14703     ;;
14704 esac
14705 echo "$as_me:$LINENO: checking for libintl.h" >&5
14706 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14707 if test "${ac_cv_header_libintl_h+set}" = set; then
14708   echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710   ac_cv_header_libintl_h=$ac_header_preproc
14711 fi
14712 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14713 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14714
14715 fi
14716 if test $ac_cv_header_libintl_h = yes; then
14717   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14718 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
14719 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722   cat >conftest.$ac_ext <<_ACEOF
14723 #line $LINENO "configure"
14724 /* confdefs.h.  */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h.  */
14729 #include <libintl.h>
14730 extern int _nl_msg_cat_cntr;
14731 int
14732 main ()
14733 {
14734 bindtextdomain ("", "");
14735 return (int) gettext ("") + _nl_msg_cat_cntr
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742   (eval $ac_link) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -s conftest$ac_exeext'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; }; then
14752   gt_cv_func_gnugettext1_libc=yes
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 gt_cv_func_gnugettext1_libc=no
14758 fi
14759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14760 fi
14761 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
14762 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
14763
14764            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
14765              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14766 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
14767 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14768   echo $ECHO_N "(cached) $ECHO_C" >&6
14769 else
14770   gt_save_LIBS="$LIBS"
14771                 LIBS="$LIBS -lintl $LIBICONV"
14772                 cat >conftest.$ac_ext <<_ACEOF
14773 #line $LINENO "configure"
14774 /* confdefs.h.  */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h.  */
14779 #include <libintl.h>
14780 extern int _nl_msg_cat_cntr;
14781 int
14782 main ()
14783 {
14784 bindtextdomain ("", "");
14785 return (int) gettext ("") + _nl_msg_cat_cntr
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 rm -f conftest.$ac_objext conftest$ac_exeext
14791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14792   (eval $ac_link) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); } &&
14796          { ac_try='test -s conftest$ac_exeext'
14797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798   (eval $ac_try) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; }; then
14802   gt_cv_func_gnugettext1_libintl=yes
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807 gt_cv_func_gnugettext1_libintl=no
14808 fi
14809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14810                 LIBS="$gt_save_LIBS"
14811 fi
14812 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14813 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
14814            fi
14815
14816                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14817               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14818                    && test "$PACKAGE" != gettext; }; then
14819
14820 cat >>confdefs.h <<\_ACEOF
14821 #define HAVE_GETTEXT 1
14822 _ACEOF
14823
14824
14825              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14826                                        INTLLIBS="-lintl $LIBICONV"
14827              fi
14828
14829              gt_save_LIBS="$LIBS"
14830              LIBS="$LIBS $INTLLIBS"
14831
14832 for ac_func in dcgettext
14833 do
14834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14835 echo "$as_me:$LINENO: checking for $ac_func" >&5
14836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14837 if eval "test \"\${$as_ac_var+set}\" = set"; then
14838   echo $ECHO_N "(cached) $ECHO_C" >&6
14839 else
14840   cat >conftest.$ac_ext <<_ACEOF
14841 #line $LINENO "configure"
14842 /* confdefs.h.  */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h.  */
14847 /* System header to define __stub macros and hopefully few prototypes,
14848     which can conflict with char $ac_func (); below.
14849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850     <limits.h> exists even on freestanding compilers.  */
14851 #ifdef __STDC__
14852 # include <limits.h>
14853 #else
14854 # include <assert.h>
14855 #endif
14856 /* Override any gcc2 internal prototype to avoid an error.  */
14857 #ifdef __cplusplus
14858 extern "C"
14859 {
14860 #endif
14861 /* We use char because int might match the return type of a gcc2
14862    builtin and then its argument prototype would still apply.  */
14863 char $ac_func ();
14864 /* The GNU C library defines this for functions which it implements
14865     to always fail with ENOSYS.  Some functions are actually named
14866     something starting with __ and the normal name is an alias.  */
14867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14868 choke me
14869 #else
14870 char (*f) () = $ac_func;
14871 #endif
14872 #ifdef __cplusplus
14873 }
14874 #endif
14875
14876 int
14877 main ()
14878 {
14879 return f != $ac_func;
14880   ;
14881   return 0;
14882 }
14883 _ACEOF
14884 rm -f conftest.$ac_objext conftest$ac_exeext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14886   (eval $ac_link) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); } &&
14890          { ac_try='test -s conftest$ac_exeext'
14891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892   (eval $ac_try) 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; }; then
14896   eval "$as_ac_var=yes"
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901 eval "$as_ac_var=no"
14902 fi
14903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14904 fi
14905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14907 if test `eval echo '${'$as_ac_var'}'` = yes; then
14908   cat >>confdefs.h <<_ACEOF
14909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14910 _ACEOF
14911
14912 fi
14913 done
14914
14915              LIBS="$gt_save_LIBS"
14916
14917                      # Extract the first word of "msgfmt", so it can be a program name with args.
14918 set dummy msgfmt; ac_word=$2
14919 echo "$as_me:$LINENO: checking for $ac_word" >&5
14920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14921 if test "${ac_cv_path_MSGFMT+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924   case "$MSGFMT" in
14925   /*)
14926   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14927   ;;
14928   *)
14929   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14930   for ac_dir in $PATH; do
14931     test -z "$ac_dir" && ac_dir=.
14932     if test -f $ac_dir/$ac_word; then
14933       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14934         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14935         break
14936       fi
14937     fi
14938   done
14939   IFS="$ac_save_ifs"
14940   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14941   ;;
14942 esac
14943 fi
14944 MSGFMT="$ac_cv_path_MSGFMT"
14945 if test "$MSGFMT" != ":"; then
14946   echo "$as_me:$LINENO: result: $MSGFMT" >&5
14947 echo "${ECHO_T}$MSGFMT" >&6
14948 else
14949   echo "$as_me:$LINENO: result: no" >&5
14950 echo "${ECHO_T}no" >&6
14951 fi
14952
14953              # Extract the first word of "gmsgfmt", so it can be a program name with args.
14954 set dummy gmsgfmt; ac_word=$2
14955 echo "$as_me:$LINENO: checking for $ac_word" >&5
14956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14957 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14958   echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960   case $GMSGFMT in
14961   [\\/]* | ?:[\\/]*)
14962   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14963   ;;
14964   *)
14965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14966 for as_dir in $PATH
14967 do
14968   IFS=$as_save_IFS
14969   test -z "$as_dir" && as_dir=.
14970   for ac_exec_ext in '' $ac_executable_extensions; do
14971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14972     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14974     break 2
14975   fi
14976 done
14977 done
14978
14979   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14980   ;;
14981 esac
14982 fi
14983 GMSGFMT=$ac_cv_path_GMSGFMT
14984
14985 if test -n "$GMSGFMT"; then
14986   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14987 echo "${ECHO_T}$GMSGFMT" >&6
14988 else
14989   echo "$as_me:$LINENO: result: no" >&5
14990 echo "${ECHO_T}no" >&6
14991 fi
14992
14993
14994                      # Extract the first word of "xgettext", so it can be a program name with args.
14995 set dummy xgettext; ac_word=$2
14996 echo "$as_me:$LINENO: checking for $ac_word" >&5
14997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14998 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14999   echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001   case "$XGETTEXT" in
15002   /*)
15003   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15004   ;;
15005   *)
15006   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15007   for ac_dir in $PATH; do
15008     test -z "$ac_dir" && ac_dir=.
15009     if test -f $ac_dir/$ac_word; then
15010       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
15011         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15012         break
15013       fi
15014     fi
15015   done
15016   IFS="$ac_save_ifs"
15017   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15018   ;;
15019 esac
15020 fi
15021 XGETTEXT="$ac_cv_path_XGETTEXT"
15022 if test "$XGETTEXT" != ":"; then
15023   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15024 echo "${ECHO_T}$XGETTEXT" >&6
15025 else
15026   echo "$as_me:$LINENO: result: no" >&5
15027 echo "${ECHO_T}no" >&6
15028 fi
15029
15030
15031              CATOBJEXT=.gmo
15032            fi
15033
15034 fi
15035
15036
15037
15038         if test "$CATOBJEXT" = "NONE"; then
15039                           nls_cv_use_gnu_gettext=yes
15040         fi
15041       fi
15042
15043       if test "$nls_cv_use_gnu_gettext" = "yes"; then
15044                 INTLOBJS="\$(GETTOBJS)"
15045         # Extract the first word of "msgfmt", so it can be a program name with args.
15046 set dummy msgfmt; ac_word=$2
15047 echo "$as_me:$LINENO: checking for $ac_word" >&5
15048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15049 if test "${ac_cv_path_MSGFMT+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   case "$MSGFMT" in
15053   /*)
15054   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15055   ;;
15056   *)
15057   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15058   for ac_dir in $PATH; do
15059     test -z "$ac_dir" && ac_dir=.
15060     if test -f $ac_dir/$ac_word; then
15061       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
15062         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15063         break
15064       fi
15065     fi
15066   done
15067   IFS="$ac_save_ifs"
15068   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15069   ;;
15070 esac
15071 fi
15072 MSGFMT="$ac_cv_path_MSGFMT"
15073 if test "$MSGFMT" != ":"; then
15074   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15075 echo "${ECHO_T}$MSGFMT" >&6
15076 else
15077   echo "$as_me:$LINENO: result: no" >&5
15078 echo "${ECHO_T}no" >&6
15079 fi
15080
15081         # Extract the first word of "gmsgfmt", so it can be a program name with args.
15082 set dummy gmsgfmt; ac_word=$2
15083 echo "$as_me:$LINENO: checking for $ac_word" >&5
15084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15085 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15086   echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088   case $GMSGFMT in
15089   [\\/]* | ?:[\\/]*)
15090   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15091   ;;
15092   *)
15093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15094 for as_dir in $PATH
15095 do
15096   IFS=$as_save_IFS
15097   test -z "$as_dir" && as_dir=.
15098   for ac_exec_ext in '' $ac_executable_extensions; do
15099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15100     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15102     break 2
15103   fi
15104 done
15105 done
15106
15107   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15108   ;;
15109 esac
15110 fi
15111 GMSGFMT=$ac_cv_path_GMSGFMT
15112
15113 if test -n "$GMSGFMT"; then
15114   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15115 echo "${ECHO_T}$GMSGFMT" >&6
15116 else
15117   echo "$as_me:$LINENO: result: no" >&5
15118 echo "${ECHO_T}no" >&6
15119 fi
15120
15121         # Extract the first word of "xgettext", so it can be a program name with args.
15122 set dummy xgettext; ac_word=$2
15123 echo "$as_me:$LINENO: checking for $ac_word" >&5
15124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15125 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15126   echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128   case "$XGETTEXT" in
15129   /*)
15130   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15131   ;;
15132   *)
15133   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15134   for ac_dir in $PATH; do
15135     test -z "$ac_dir" && ac_dir=.
15136     if test -f $ac_dir/$ac_word; then
15137       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
15138         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15139         break
15140       fi
15141     fi
15142   done
15143   IFS="$ac_save_ifs"
15144   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15145   ;;
15146 esac
15147 fi
15148 XGETTEXT="$ac_cv_path_XGETTEXT"
15149 if test "$XGETTEXT" != ":"; then
15150   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15151 echo "${ECHO_T}$XGETTEXT" >&6
15152 else
15153   echo "$as_me:$LINENO: result: no" >&5
15154 echo "${ECHO_T}no" >&6
15155 fi
15156
15157
15158         BUILD_INCLUDED_LIBINTL=yes
15159         USE_INCLUDED_LIBINTL=yes
15160         CATOBJEXT=.gmo
15161         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
15162         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15163       fi
15164
15165                   if test "$GMSGFMT" != ":"; then
15166                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
15167           : ;
15168         else
15169           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
15170 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
15171           GMSGFMT=":"
15172         fi
15173       fi
15174
15175                   if test "$XGETTEXT" != ":"; then
15176                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
15177           : ;
15178         else
15179           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15180 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15181           XGETTEXT=":"
15182         fi
15183       fi
15184
15185             POSUB=po
15186     fi
15187               ac_config_commands="$ac_config_commands default-1"
15188
15189
15190
15191             if test "$PACKAGE" = gettext; then
15192       BUILD_INCLUDED_LIBINTL=yes
15193     fi
15194
15195                                             for ac_prog in bison
15196 do
15197   # Extract the first word of "$ac_prog", so it can be a program name with args.
15198 set dummy $ac_prog; ac_word=$2
15199 echo "$as_me:$LINENO: checking for $ac_word" >&5
15200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15201 if test "${ac_cv_prog_INTLBISON+set}" = set; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   if test -n "$INTLBISON"; then
15205   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
15206 else
15207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208 for as_dir in $PATH
15209 do
15210   IFS=$as_save_IFS
15211   test -z "$as_dir" && as_dir=.
15212   for ac_exec_ext in '' $ac_executable_extensions; do
15213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15214     ac_cv_prog_INTLBISON="$ac_prog"
15215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15216     break 2
15217   fi
15218 done
15219 done
15220
15221 fi
15222 fi
15223 INTLBISON=$ac_cv_prog_INTLBISON
15224 if test -n "$INTLBISON"; then
15225   echo "$as_me:$LINENO: result: $INTLBISON" >&5
15226 echo "${ECHO_T}$INTLBISON" >&6
15227 else
15228   echo "$as_me:$LINENO: result: no" >&5
15229 echo "${ECHO_T}no" >&6
15230 fi
15231
15232   test -n "$INTLBISON" && break
15233 done
15234
15235     if test -z "$INTLBISON"; then
15236       ac_verc_fail=yes
15237     else
15238             echo "$as_me:$LINENO: checking version of bison" >&5
15239 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
15240       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
15241       case $ac_prog_version in
15242         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
15243         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
15244            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
15245         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
15246       esac
15247       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
15248 echo "${ECHO_T}$ac_prog_version" >&6
15249     fi
15250     if test $ac_verc_fail = yes; then
15251       INTLBISON=:
15252     fi
15253
15254                 for lang in $ALL_LINGUAS; do
15255       GMOFILES="$GMOFILES $lang.gmo"
15256       POFILES="$POFILES $lang.po"
15257     done
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269         nls_cv_header_intl=
15270     nls_cv_header_libgt=
15271
15272         DATADIRNAME=share
15273
15274
15275         INSTOBJEXT=.mo
15276
15277
15278         GENCAT=gencat
15279
15280
15281
15282    if test "x$CATOBJEXT" != "x"; then
15283      if test "x$ALL_LINGUAS" = "x"; then
15284        LINGUAS=
15285      else
15286        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15287 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
15288        NEW_LINGUAS=
15289        for presentlang in $ALL_LINGUAS; do
15290          useit=no
15291          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
15292            # Use the presentlang catalog if desiredlang is
15293            #   a. equal to presentlang, or
15294            #   b. a variant of presentlang (because in this case,
15295            #      presentlang can be used as a fallback for messages
15296            #      which are not translated in the desiredlang catalog).
15297            case "$desiredlang" in
15298              "$presentlang"*) useit=yes;;
15299            esac
15300          done
15301          if test $useit = yes; then
15302            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15303          fi
15304        done
15305        LINGUAS=$NEW_LINGUAS
15306        echo "$as_me:$LINENO: result: $LINGUAS" >&5
15307 echo "${ECHO_T}$LINGUAS" >&6
15308      fi
15309
15310           if test -n "$LINGUAS"; then
15311        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15312      fi
15313    fi
15314
15315             MKINSTALLDIRS=
15316    if test -n "$ac_aux_dir"; then
15317      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15318    fi
15319    if test -z "$MKINSTALLDIRS"; then
15320      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15321    fi
15322
15323
15324       INTL_LIBTOOL_SUFFIX_PREFIX=
15325
15326
15327
15328 if test "$am_cv_func_iconv" != "yes"
15329 then
15330   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
15331 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
15332 else
15333
15334
15335 for ac_header in iconv.h
15336 do
15337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15339   echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15342   echo $ECHO_N "(cached) $ECHO_C" >&6
15343 fi
15344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15346 else
15347   # Is the header compilable?
15348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15350 cat >conftest.$ac_ext <<_ACEOF
15351 #line $LINENO "configure"
15352 /* confdefs.h.  */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h.  */
15357 $ac_includes_default
15358 #include <$ac_header>
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362   (eval $ac_compile) 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } &&
15366          { ac_try='test -s conftest.$ac_objext'
15367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368   (eval $ac_try) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; }; then
15372   ac_header_compiler=yes
15373 else
15374   echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15376
15377 ac_header_compiler=no
15378 fi
15379 rm -f conftest.$ac_objext conftest.$ac_ext
15380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15381 echo "${ECHO_T}$ac_header_compiler" >&6
15382
15383 # Is the header present?
15384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15386 cat >conftest.$ac_ext <<_ACEOF
15387 #line $LINENO "configure"
15388 /* confdefs.h.  */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h.  */
15393 #include <$ac_header>
15394 _ACEOF
15395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15397   ac_status=$?
15398   grep -v '^ *+' conftest.er1 >conftest.err
15399   rm -f conftest.er1
15400   cat conftest.err >&5
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); } >/dev/null; then
15403   if test -s conftest.err; then
15404     ac_cpp_err=$ac_c_preproc_warn_flag
15405   else
15406     ac_cpp_err=
15407   fi
15408 else
15409   ac_cpp_err=yes
15410 fi
15411 if test -z "$ac_cpp_err"; then
15412   ac_header_preproc=yes
15413 else
15414   echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417   ac_header_preproc=no
15418 fi
15419 rm -f conftest.err conftest.$ac_ext
15420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15421 echo "${ECHO_T}$ac_header_preproc" >&6
15422
15423 # So?  What about this header?
15424 case $ac_header_compiler:$ac_header_preproc in
15425   yes:no )
15426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15430     (
15431       cat <<\_ASBOX
15432 ## ------------------------------------ ##
15433 ## Report this to bug-autoconf@gnu.org. ##
15434 ## ------------------------------------ ##
15435 _ASBOX
15436     ) |
15437       sed "s/^/$as_me: WARNING:     /" >&2
15438     ;;
15439   no:yes )
15440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15442     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15446     (
15447       cat <<\_ASBOX
15448 ## ------------------------------------ ##
15449 ## Report this to bug-autoconf@gnu.org. ##
15450 ## ------------------------------------ ##
15451 _ASBOX
15452     ) |
15453       sed "s/^/$as_me: WARNING:     /" >&2
15454     ;;
15455 esac
15456 echo "$as_me:$LINENO: checking for $ac_header" >&5
15457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459   echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461   eval "$as_ac_Header=$ac_header_preproc"
15462 fi
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15465
15466 fi
15467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15468   cat >>confdefs.h <<_ACEOF
15469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15470 _ACEOF
15471  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
15472 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
15473          cat >conftest.$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 #include <iconv.h>
15481
15482 _ACEOF
15483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15484   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
15485   echo "$as_me:$LINENO: result: yes" >&5
15486 echo "${ECHO_T}yes" >&6
15487
15488 cat >>confdefs.h <<\_ACEOF
15489 #define HAVE_ICONV_T_DEF 1
15490 _ACEOF
15491
15492 else
15493   echo "$as_me:$LINENO: result: no" >&5
15494 echo "${ECHO_T}no" >&6
15495 fi
15496 rm -f conftest*
15497
15498 fi
15499
15500 done
15501
15502
15503 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
15504 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
15505 if test "${mutt_cv_iconv_good+set}" = set; then
15506   echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508   mutt_save_LIBS="$LIBS"
15509         LIBS="$LIBS $LIBICONV"
15510         if test "$cross_compiling" = yes; then
15511   mutt_cv_iconv_good=yes
15512 else
15513   cat >conftest.$ac_ext <<_ACEOF
15514 #line $LINENO "configure"
15515 /* confdefs.h.  */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h.  */
15520
15521 #include <iconv.h>
15522 int main()
15523 {
15524   iconv_t cd;
15525   char buf[4];
15526   char *ob;
15527   size_t obl;
15528   ob = buf, obl = sizeof(buf);
15529   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
15530           (iconv(cd, 0, 0, &ob, &obl) ||
15531            !(ob == buf && obl == sizeof(buf)) ||
15532            iconv_close(cd)));
15533 }
15534
15535 _ACEOF
15536 rm -f conftest$ac_exeext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538   (eval $ac_link) 2>&5
15539   ac_status=$?
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543   (eval $ac_try) 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); }; }; then
15547   mutt_cv_iconv_good=yes
15548 else
15549   echo "$as_me: program exited with status $ac_status" >&5
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ( exit $ac_status )
15554 mutt_cv_iconv_good=no
15555 fi
15556 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15557 fi
15558         LIBS="$mutt_save_LIBS"
15559 fi
15560 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
15561 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
15562 if test "$mutt_cv_iconv_good" = no; then
15563   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
15564 echo "$as_me: error: Try using libiconv instead" >&2;}
15565    { (exit 1); exit 1; }; }
15566 fi
15567
15568 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
15569 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
15570 if test "${mutt_cv_iconv_nontrans+set}" = set; then
15571   echo $ECHO_N "(cached) $ECHO_C" >&6
15572 else
15573   mutt_save_LIBS="$LIBS"
15574         LIBS="$LIBS $LIBICONV"
15575         if test "$cross_compiling" = yes; then
15576   mutt_cv_iconv_nontrans=no
15577 else
15578   cat >conftest.$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15580 /* confdefs.h.  */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h.  */
15585
15586 #include <iconv.h>
15587 #include <string.h>
15588 int main()
15589 {
15590   iconv_t cd;
15591   const char *ib;
15592   char *ob;
15593   size_t ibl, obl;
15594   const char *s = "\304\211";
15595   char t[3];
15596   ib = s, ibl = 2, ob = t, obl = 3;
15597   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
15598           iconv(cd, &ib, &ibl, &ob, &obl));
15599 }
15600
15601 _ACEOF
15602 rm -f conftest$ac_exeext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15604   (eval $ac_link) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   mutt_cv_iconv_nontrans=no
15614 else
15615   echo "$as_me: program exited with status $ac_status" >&5
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 ( exit $ac_status )
15620 mutt_cv_iconv_nontrans=yes
15621 fi
15622 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15623 fi
15624         LIBS="$mutt_save_LIBS"
15625 fi
15626 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
15627 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
15628 if test "$mutt_cv_iconv_nontrans" = yes; then
15629   cat >>confdefs.h <<\_ACEOF
15630 #define ICONV_NONTRANS 1
15631 _ACEOF
15632
15633 else
15634   cat >>confdefs.h <<\_ACEOF
15635 #define ICONV_NONTRANS 0
15636 _ACEOF
15637
15638 fi
15639
15640 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
15641
15642 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
15643
15644 cat >>confdefs.h <<\_ACEOF
15645 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15646 _ACEOF
15647
15648 else
15649
15650 for ac_func in bind_textdomain_codeset
15651 do
15652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15653 echo "$as_me:$LINENO: checking for $ac_func" >&5
15654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15655 if eval "test \"\${$as_ac_var+set}\" = set"; then
15656   echo $ECHO_N "(cached) $ECHO_C" >&6
15657 else
15658   cat >conftest.$ac_ext <<_ACEOF
15659 #line $LINENO "configure"
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665 /* System header to define __stub macros and hopefully few prototypes,
15666     which can conflict with char $ac_func (); below.
15667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15668     <limits.h> exists even on freestanding compilers.  */
15669 #ifdef __STDC__
15670 # include <limits.h>
15671 #else
15672 # include <assert.h>
15673 #endif
15674 /* Override any gcc2 internal prototype to avoid an error.  */
15675 #ifdef __cplusplus
15676 extern "C"
15677 {
15678 #endif
15679 /* We use char because int might match the return type of a gcc2
15680    builtin and then its argument prototype would still apply.  */
15681 char $ac_func ();
15682 /* The GNU C library defines this for functions which it implements
15683     to always fail with ENOSYS.  Some functions are actually named
15684     something starting with __ and the normal name is an alias.  */
15685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15686 choke me
15687 #else
15688 char (*f) () = $ac_func;
15689 #endif
15690 #ifdef __cplusplus
15691 }
15692 #endif
15693
15694 int
15695 main ()
15696 {
15697 return f != $ac_func;
15698   ;
15699   return 0;
15700 }
15701 _ACEOF
15702 rm -f conftest.$ac_objext conftest$ac_exeext
15703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704   (eval $ac_link) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); } &&
15708          { ac_try='test -s conftest$ac_exeext'
15709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710   (eval $ac_try) 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714   eval "$as_ac_var=yes"
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 eval "$as_ac_var=no"
15720 fi
15721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15722 fi
15723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15725 if test `eval echo '${'$as_ac_var'}'` = yes; then
15726   cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15728 _ACEOF
15729
15730 fi
15731 done
15732
15733 fi
15734
15735 fi # libiconv
15736
15737
15738
15739 for ac_header in wchar.h
15740 do
15741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743   echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 fi
15748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15750 else
15751   # Is the header compilable?
15752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15756 /* confdefs.h.  */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h.  */
15761 $ac_includes_default
15762 #include <$ac_header>
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766   (eval $ac_compile) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } &&
15770          { ac_try='test -s conftest.$ac_objext'
15771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772   (eval $ac_try) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_header_compiler=yes
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_header_compiler=no
15782 fi
15783 rm -f conftest.$ac_objext conftest.$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15785 echo "${ECHO_T}$ac_header_compiler" >&6
15786
15787 # Is the header present?
15788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15790 cat >conftest.$ac_ext <<_ACEOF
15791 #line $LINENO "configure"
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797 #include <$ac_header>
15798 _ACEOF
15799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15801   ac_status=$?
15802   grep -v '^ *+' conftest.er1 >conftest.err
15803   rm -f conftest.er1
15804   cat conftest.err >&5
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); } >/dev/null; then
15807   if test -s conftest.err; then
15808     ac_cpp_err=$ac_c_preproc_warn_flag
15809   else
15810     ac_cpp_err=
15811   fi
15812 else
15813   ac_cpp_err=yes
15814 fi
15815 if test -z "$ac_cpp_err"; then
15816   ac_header_preproc=yes
15817 else
15818   echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821   ac_header_preproc=no
15822 fi
15823 rm -f conftest.err conftest.$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6
15826
15827 # So?  What about this header?
15828 case $ac_header_compiler:$ac_header_preproc in
15829   yes:no )
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15834     (
15835       cat <<\_ASBOX
15836 ## ------------------------------------ ##
15837 ## Report this to bug-autoconf@gnu.org. ##
15838 ## ------------------------------------ ##
15839 _ASBOX
15840     ) |
15841       sed "s/^/$as_me: WARNING:     /" >&2
15842     ;;
15843   no:yes )
15844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15846     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15850     (
15851       cat <<\_ASBOX
15852 ## ------------------------------------ ##
15853 ## Report this to bug-autoconf@gnu.org. ##
15854 ## ------------------------------------ ##
15855 _ASBOX
15856     ) |
15857       sed "s/^/$as_me: WARNING:     /" >&2
15858     ;;
15859 esac
15860 echo "$as_me:$LINENO: checking for $ac_header" >&5
15861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865   eval "$as_ac_Header=$ac_header_preproc"
15866 fi
15867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15869
15870 fi
15871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15872   cat >>confdefs.h <<_ACEOF
15873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15874 _ACEOF
15875
15876 fi
15877
15878 done
15879
15880
15881 echo "$as_me:$LINENO: checking for wchar_t" >&5
15882 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15883 if test "${mutt_cv_wchar_t+set}" = set; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   cat >conftest.$ac_ext <<_ACEOF
15887 #line $LINENO "configure"
15888 /* confdefs.h.  */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h.  */
15893
15894 #include <stddef.h>
15895 #include <stdlib.h>
15896 #ifdef HAVE_WCHAR_H
15897 #include <wchar.h>
15898 #endif
15899
15900 int
15901 main ()
15902 {
15903  wchar_t wc; return 0;
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 rm -f conftest.$ac_objext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910   (eval $ac_compile) 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } &&
15914          { ac_try='test -s conftest.$ac_objext'
15915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916   (eval $ac_try) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; }; then
15920   mutt_cv_wchar_t=yes
15921 else
15922   echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925 mutt_cv_wchar_t=no
15926 fi
15927 rm -f conftest.$ac_objext conftest.$ac_ext
15928 fi
15929 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
15930 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
15931
15932 if test "$mutt_cv_wchar_t" = no; then
15933
15934 cat >>confdefs.h <<\_ACEOF
15935 #define wchar_t int
15936 _ACEOF
15937
15938 fi
15939
15940 echo "$as_me:$LINENO: checking for wint_t" >&5
15941 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
15942 if test "${mutt_cv_wint_t+set}" = set; then
15943   echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945   cat >conftest.$ac_ext <<_ACEOF
15946 #line $LINENO "configure"
15947 /* confdefs.h.  */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h.  */
15952
15953 #include <stddef.h>
15954 #include <stdlib.h>
15955 #ifdef HAVE_WCHAR_H
15956 #include <wchar.h>
15957 #endif
15958
15959 int
15960 main ()
15961 {
15962  wint_t wc; return 0;
15963   ;
15964   return 0;
15965 }
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969   (eval $ac_compile) 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); } &&
15973          { ac_try='test -s conftest.$ac_objext'
15974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975   (eval $ac_try) 2>&5
15976   ac_status=$?
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); }; }; then
15979   mutt_cv_wint_t=yes
15980 else
15981   echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15983
15984 mutt_cv_wint_t=no
15985 fi
15986 rm -f conftest.$ac_objext conftest.$ac_ext
15987 fi
15988 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
15989 echo "${ECHO_T}$mutt_cv_wint_t" >&6
15990
15991 if test "$mutt_cv_wint_t" = no; then
15992
15993 cat >>confdefs.h <<\_ACEOF
15994 #define wint_t int
15995 _ACEOF
15996
15997 fi
15998
15999
16000 for ac_header in wctype.h
16001 do
16002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16004   echo "$as_me:$LINENO: checking for $ac_header" >&5
16005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 fi
16009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16011 else
16012   # Is the header compilable?
16013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16015 cat >conftest.$ac_ext <<_ACEOF
16016 #line $LINENO "configure"
16017 /* confdefs.h.  */
16018 _ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h.  */
16022 $ac_includes_default
16023 #include <$ac_header>
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027   (eval $ac_compile) 2>&5
16028   ac_status=$?
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } &&
16031          { ac_try='test -s conftest.$ac_objext'
16032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033   (eval $ac_try) 2>&5
16034   ac_status=$?
16035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036   (exit $ac_status); }; }; then
16037   ac_header_compiler=yes
16038 else
16039   echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 ac_header_compiler=no
16043 fi
16044 rm -f conftest.$ac_objext conftest.$ac_ext
16045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16046 echo "${ECHO_T}$ac_header_compiler" >&6
16047
16048 # Is the header present?
16049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16051 cat >conftest.$ac_ext <<_ACEOF
16052 #line $LINENO "configure"
16053 /* confdefs.h.  */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h.  */
16058 #include <$ac_header>
16059 _ACEOF
16060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16062   ac_status=$?
16063   grep -v '^ *+' conftest.er1 >conftest.err
16064   rm -f conftest.er1
16065   cat conftest.err >&5
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } >/dev/null; then
16068   if test -s conftest.err; then
16069     ac_cpp_err=$ac_c_preproc_warn_flag
16070   else
16071     ac_cpp_err=
16072   fi
16073 else
16074   ac_cpp_err=yes
16075 fi
16076 if test -z "$ac_cpp_err"; then
16077   ac_header_preproc=yes
16078 else
16079   echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16081
16082   ac_header_preproc=no
16083 fi
16084 rm -f conftest.err conftest.$ac_ext
16085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16086 echo "${ECHO_T}$ac_header_preproc" >&6
16087
16088 # So?  What about this header?
16089 case $ac_header_compiler:$ac_header_preproc in
16090   yes:no )
16091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16095     (
16096       cat <<\_ASBOX
16097 ## ------------------------------------ ##
16098 ## Report this to bug-autoconf@gnu.org. ##
16099 ## ------------------------------------ ##
16100 _ASBOX
16101     ) |
16102       sed "s/^/$as_me: WARNING:     /" >&2
16103     ;;
16104   no:yes )
16105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16111     (
16112       cat <<\_ASBOX
16113 ## ------------------------------------ ##
16114 ## Report this to bug-autoconf@gnu.org. ##
16115 ## ------------------------------------ ##
16116 _ASBOX
16117     ) |
16118       sed "s/^/$as_me: WARNING:     /" >&2
16119     ;;
16120 esac
16121 echo "$as_me:$LINENO: checking for $ac_header" >&5
16122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16124   echo $ECHO_N "(cached) $ECHO_C" >&6
16125 else
16126   eval "$as_ac_Header=$ac_header_preproc"
16127 fi
16128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16130
16131 fi
16132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16133   cat >>confdefs.h <<_ACEOF
16134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16135 _ACEOF
16136
16137 fi
16138
16139 done
16140
16141
16142
16143
16144
16145 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
16146 do
16147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16148 echo "$as_me:$LINENO: checking for $ac_func" >&5
16149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16150 if eval "test \"\${$as_ac_var+set}\" = set"; then
16151   echo $ECHO_N "(cached) $ECHO_C" >&6
16152 else
16153   cat >conftest.$ac_ext <<_ACEOF
16154 #line $LINENO "configure"
16155 /* confdefs.h.  */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h.  */
16160 /* System header to define __stub macros and hopefully few prototypes,
16161     which can conflict with char $ac_func (); below.
16162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16163     <limits.h> exists even on freestanding compilers.  */
16164 #ifdef __STDC__
16165 # include <limits.h>
16166 #else
16167 # include <assert.h>
16168 #endif
16169 /* Override any gcc2 internal prototype to avoid an error.  */
16170 #ifdef __cplusplus
16171 extern "C"
16172 {
16173 #endif
16174 /* We use char because int might match the return type of a gcc2
16175    builtin and then its argument prototype would still apply.  */
16176 char $ac_func ();
16177 /* The GNU C library defines this for functions which it implements
16178     to always fail with ENOSYS.  Some functions are actually named
16179     something starting with __ and the normal name is an alias.  */
16180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16181 choke me
16182 #else
16183 char (*f) () = $ac_func;
16184 #endif
16185 #ifdef __cplusplus
16186 }
16187 #endif
16188
16189 int
16190 main ()
16191 {
16192 return f != $ac_func;
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext conftest$ac_exeext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199   (eval $ac_link) 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); } &&
16203          { ac_try='test -s conftest$ac_exeext'
16204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205   (eval $ac_try) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; }; then
16209   eval "$as_ac_var=yes"
16210 else
16211   echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 eval "$as_ac_var=no"
16215 fi
16216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16217 fi
16218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221   cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16223 _ACEOF
16224
16225 fi
16226 done
16227
16228
16229
16230
16231
16232
16233
16234 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
16235 do
16236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_var+set}\" = set"; then
16240   echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242   cat >conftest.$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 /* System header to define __stub macros and hopefully few prototypes,
16250     which can conflict with char $ac_func (); below.
16251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16252     <limits.h> exists even on freestanding compilers.  */
16253 #ifdef __STDC__
16254 # include <limits.h>
16255 #else
16256 # include <assert.h>
16257 #endif
16258 /* Override any gcc2 internal prototype to avoid an error.  */
16259 #ifdef __cplusplus
16260 extern "C"
16261 {
16262 #endif
16263 /* We use char because int might match the return type of a gcc2
16264    builtin and then its argument prototype would still apply.  */
16265 char $ac_func ();
16266 /* The GNU C library defines this for functions which it implements
16267     to always fail with ENOSYS.  Some functions are actually named
16268     something starting with __ and the normal name is an alias.  */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16270 choke me
16271 #else
16272 char (*f) () = $ac_func;
16273 #endif
16274 #ifdef __cplusplus
16275 }
16276 #endif
16277
16278 int
16279 main ()
16280 {
16281 return f != $ac_func;
16282   ;
16283   return 0;
16284 }
16285 _ACEOF
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288   (eval $ac_link) 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } &&
16292          { ac_try='test -s conftest$ac_exeext'
16293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294   (eval $ac_try) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); }; }; then
16298   eval "$as_ac_var=yes"
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 eval "$as_ac_var=no"
16304 fi
16305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16306 fi
16307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16309 if test `eval echo '${'$as_ac_var'}'` = yes; then
16310   cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16312 _ACEOF
16313
16314 fi
16315 done
16316
16317
16318
16319
16320 for ac_func in iswxdigit towupper towlower
16321 do
16322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16323 echo "$as_me:$LINENO: checking for $ac_func" >&5
16324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16325 if eval "test \"\${$as_ac_var+set}\" = set"; then
16326   echo $ECHO_N "(cached) $ECHO_C" >&6
16327 else
16328   cat >conftest.$ac_ext <<_ACEOF
16329 #line $LINENO "configure"
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335 /* System header to define __stub macros and hopefully few prototypes,
16336     which can conflict with char $ac_func (); below.
16337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16338     <limits.h> exists even on freestanding compilers.  */
16339 #ifdef __STDC__
16340 # include <limits.h>
16341 #else
16342 # include <assert.h>
16343 #endif
16344 /* Override any gcc2 internal prototype to avoid an error.  */
16345 #ifdef __cplusplus
16346 extern "C"
16347 {
16348 #endif
16349 /* We use char because int might match the return type of a gcc2
16350    builtin and then its argument prototype would still apply.  */
16351 char $ac_func ();
16352 /* The GNU C library defines this for functions which it implements
16353     to always fail with ENOSYS.  Some functions are actually named
16354     something starting with __ and the normal name is an alias.  */
16355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16356 choke me
16357 #else
16358 char (*f) () = $ac_func;
16359 #endif
16360 #ifdef __cplusplus
16361 }
16362 #endif
16363
16364 int
16365 main ()
16366 {
16367 return f != $ac_func;
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 rm -f conftest.$ac_objext conftest$ac_exeext
16373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16374   (eval $ac_link) 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); } &&
16378          { ac_try='test -s conftest$ac_exeext'
16379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380   (eval $ac_try) 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; }; then
16384   eval "$as_ac_var=yes"
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16388
16389 eval "$as_ac_var=no"
16390 fi
16391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16392 fi
16393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16395 if test `eval echo '${'$as_ac_var'}'` = yes; then
16396   cat >>confdefs.h <<_ACEOF
16397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16398 _ACEOF
16399
16400 fi
16401 done
16402
16403
16404 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16405 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16406 if test "${mutt_cv_mbstate_t+set}" = set; then
16407   echo $ECHO_N "(cached) $ECHO_C" >&6
16408 else
16409   cat >conftest.$ac_ext <<_ACEOF
16410 #line $LINENO "configure"
16411 /* confdefs.h.  */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h.  */
16416
16417 #include <stddef.h>
16418 #include <stdlib.h>
16419 #ifdef HAVE_WCHAR_H
16420 #include <wchar.h>
16421 #endif
16422
16423 int
16424 main ()
16425 {
16426  mbstate_t s; return 0;
16427   ;
16428   return 0;
16429 }
16430 _ACEOF
16431 rm -f conftest.$ac_objext
16432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16433   (eval $ac_compile) 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); } &&
16437          { ac_try='test -s conftest.$ac_objext'
16438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439   (eval $ac_try) 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); }; }; then
16443   mutt_cv_mbstate_t=yes
16444 else
16445   echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 mutt_cv_mbstate_t=no
16449 fi
16450 rm -f conftest.$ac_objext conftest.$ac_ext
16451 fi
16452 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
16453 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
16454
16455 if test "$mutt_cv_mbstate_t" = no; then
16456
16457 cat >>confdefs.h <<\_ACEOF
16458 #define mbstate_t int
16459 _ACEOF
16460
16461 fi
16462
16463 wc_funcs=maybe
16464
16465 # Check whether --with-wc-funcs or --without-wc-funcs was given.
16466 if test "${with_wc_funcs+set}" = set; then
16467   withval="$with_wc_funcs"
16468   wc_funcs=$withval
16469 fi;
16470
16471 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
16472         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
16473 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
16474 if test "${mutt_cv_wc_funcs+set}" = set; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   mutt_cv_wc_funcs=no
16478                 cat >conftest.$ac_ext <<_ACEOF
16479 #line $LINENO "configure"
16480 /* confdefs.h.  */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h.  */
16485
16486 #define _XOPEN_SOURCE 1
16487 #include <stddef.h>
16488 #include <stdlib.h>
16489 #ifdef HAVE_WCTYPE_H
16490 #include <wctype.h>
16491 #endif
16492 #ifdef HAVE_WCHAR_H
16493 #include <wchar.h>
16494 #endif
16495 int
16496 main ()
16497 {
16498 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
16499         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
16500   ;
16501   return 0;
16502 }
16503 _ACEOF
16504 rm -f conftest.$ac_objext conftest$ac_exeext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506   (eval $ac_link) 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -s conftest$ac_exeext'
16511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512   (eval $ac_try) 2>&5
16513   ac_status=$?
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); }; }; then
16516   mutt_cv_wc_funcs=yes
16517 else
16518   echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 fi
16522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16523 fi
16524 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
16525 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
16526         wc_funcs=$mutt_cv_wc_funcs
16527 fi
16528
16529 if test $wc_funcs = yes; then
16530
16531 cat >>confdefs.h <<\_ACEOF
16532 #define HAVE_WC_FUNCS 1
16533 _ACEOF
16534
16535 fi
16536
16537 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16538 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16539 if test "${mutt_cv_langinfo_codeset+set}" = set; then
16540   echo $ECHO_N "(cached) $ECHO_C" >&6
16541 else
16542   cat >conftest.$ac_ext <<_ACEOF
16543 #line $LINENO "configure"
16544 /* confdefs.h.  */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h.  */
16549 #include <langinfo.h>
16550 int
16551 main ()
16552 {
16553 char* cs = nl_langinfo(CODESET);
16554   ;
16555   return 0;
16556 }
16557 _ACEOF
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560   (eval $ac_link) 2>&5
16561   ac_status=$?
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } &&
16564          { ac_try='test -s conftest$ac_exeext'
16565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566   (eval $ac_try) 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; }; then
16570   mutt_cv_langinfo_codeset=yes
16571 else
16572   echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 mutt_cv_langinfo_codeset=no
16576 fi
16577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16578 fi
16579 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
16580 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
16581 if test $mutt_cv_langinfo_codeset = yes; then
16582
16583 cat >>confdefs.h <<\_ACEOF
16584 #define HAVE_LANGINFO_CODESET 1
16585 _ACEOF
16586
16587 fi
16588
16589 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
16590 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
16591 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
16592   echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594   cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 #include <langinfo.h>
16602 int
16603 main ()
16604 {
16605 char* cs = nl_langinfo(YESEXPR);
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16612   (eval $ac_link) 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); } &&
16616          { ac_try='test -s conftest$ac_exeext'
16617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618   (eval $ac_try) 2>&5
16619   ac_status=$?
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); }; }; then
16622   mutt_cv_langinfo_yesexpr=yes
16623 else
16624   echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16626
16627 mutt_cv_langinfo_yesexpr=no
16628 fi
16629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16630 fi
16631 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
16632 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
16633 if test $mutt_cv_langinfo_yesexpr = yes; then
16634
16635 cat >>confdefs.h <<\_ACEOF
16636 #define HAVE_LANGINFO_YESEXPR 1
16637 _ACEOF
16638
16639 fi
16640
16641
16642
16643 # Check whether --with-libesmtp or --without-libesmtp was given.
16644 if test "${with_libesmtp+set}" = set; then
16645   withval="$with_libesmtp"
16646    if test "$with_libesmtp" != "no"
16647       then
16648         mutt_libesmtp_check_path="$PATH"
16649
16650         if test "$with_libesmtp" != "yes"
16651         then
16652           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
16653         fi
16654
16655                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
16656 set dummy libesmtp-config; ac_word=$2
16657 echo "$as_me:$LINENO: checking for $ac_word" >&5
16658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16659 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
16660   echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662   case $mutt_libesmtp_config_path in
16663   [\\/]* | ?:[\\/]*)
16664   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
16665   ;;
16666   *)
16667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668 for as_dir in $mutt_libesmtp_check_path
16669 do
16670   IFS=$as_save_IFS
16671   test -z "$as_dir" && as_dir=.
16672   for ac_exec_ext in '' $ac_executable_extensions; do
16673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
16675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16676     break 2
16677   fi
16678 done
16679 done
16680
16681   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
16682   ;;
16683 esac
16684 fi
16685 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
16686
16687 if test -n "$mutt_libesmtp_config_path"; then
16688   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
16689 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
16690 else
16691   echo "$as_me:$LINENO: result: no" >&5
16692 echo "${ECHO_T}no" >&6
16693 fi
16694
16695
16696         if test "$mutt_libesmtp_config_path" = "no"
16697         then
16698           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
16699 echo "$as_me: error: libesmtp-config binary not found." >&2;}
16700    { (exit 1); exit 1; }; }
16701         fi
16702
16703                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
16704         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
16705
16706                 temp_CFLAGS="$CFLAGS"
16707         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16708         if test "${ac_cv_header_libesmtp_h+set}" = set; then
16709   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16710 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16711 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16712   echo $ECHO_N "(cached) $ECHO_C" >&6
16713 fi
16714 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16715 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16716 else
16717   # Is the header compilable?
16718 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
16719 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
16720 cat >conftest.$ac_ext <<_ACEOF
16721 #line $LINENO "configure"
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 $ac_includes_default
16728 #include <libesmtp.h>
16729 _ACEOF
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732   (eval $ac_compile) 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } &&
16736          { ac_try='test -s conftest.$ac_objext'
16737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738   (eval $ac_try) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; }; then
16742   ac_header_compiler=yes
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747 ac_header_compiler=no
16748 fi
16749 rm -f conftest.$ac_objext conftest.$ac_ext
16750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16751 echo "${ECHO_T}$ac_header_compiler" >&6
16752
16753 # Is the header present?
16754 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
16755 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16757 #line $LINENO "configure"
16758 /* confdefs.h.  */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h.  */
16763 #include <libesmtp.h>
16764 _ACEOF
16765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16767   ac_status=$?
16768   grep -v '^ *+' conftest.er1 >conftest.err
16769   rm -f conftest.er1
16770   cat conftest.err >&5
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); } >/dev/null; then
16773   if test -s conftest.err; then
16774     ac_cpp_err=$ac_c_preproc_warn_flag
16775   else
16776     ac_cpp_err=
16777   fi
16778 else
16779   ac_cpp_err=yes
16780 fi
16781 if test -z "$ac_cpp_err"; then
16782   ac_header_preproc=yes
16783 else
16784   echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787   ac_header_preproc=no
16788 fi
16789 rm -f conftest.err conftest.$ac_ext
16790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16791 echo "${ECHO_T}$ac_header_preproc" >&6
16792
16793 # So?  What about this header?
16794 case $ac_header_compiler:$ac_header_preproc in
16795   yes:no )
16796     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
16797 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16799 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16800     (
16801       cat <<\_ASBOX
16802 ## ------------------------------------ ##
16803 ## Report this to bug-autoconf@gnu.org. ##
16804 ## ------------------------------------ ##
16805 _ASBOX
16806     ) |
16807       sed "s/^/$as_me: WARNING:     /" >&2
16808     ;;
16809   no:yes )
16810     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
16811 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
16812     { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
16813 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
16814     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16815 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16816     (
16817       cat <<\_ASBOX
16818 ## ------------------------------------ ##
16819 ## Report this to bug-autoconf@gnu.org. ##
16820 ## ------------------------------------ ##
16821 _ASBOX
16822     ) |
16823       sed "s/^/$as_me: WARNING:     /" >&2
16824     ;;
16825 esac
16826 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16827 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16828 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16829   echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831   ac_cv_header_libesmtp_h=$ac_header_preproc
16832 fi
16833 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16834 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16835
16836 fi
16837 if test $ac_cv_header_libesmtp_h = yes; then
16838   :
16839 else
16840   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
16841 echo "$as_me: error: Could not find libesmtp.h" >&2;}
16842    { (exit 1); exit 1; }; }
16843 fi
16844
16845
16846         CFLAGS="$temp_CFLAGS"
16847
16848                 temp_CFLAGS="$CFLAGS"
16849         temp_LIBS="$LIBS"
16850         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16851         LIBS="$LIBS $mutt_libesmtp_libs"
16852
16853 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
16854 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
16855 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858   ac_check_lib_save_LIBS=$LIBS
16859 LIBS="-lesmtp  $LIBS"
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867
16868 /* Override any gcc2 internal prototype to avoid an error.  */
16869 #ifdef __cplusplus
16870 extern "C"
16871 #endif
16872 /* We use char because int might match the return type of a gcc2
16873    builtin and then its argument prototype would still apply.  */
16874 char smtp_create_session ();
16875 int
16876 main ()
16877 {
16878 smtp_create_session ();
16879   ;
16880   return 0;
16881 }
16882 _ACEOF
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16885   (eval $ac_link) 2>&5
16886   ac_status=$?
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -s conftest$ac_exeext'
16890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891   (eval $ac_try) 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); }; }; then
16895   ac_cv_lib_esmtp_smtp_create_session=yes
16896 else
16897   echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16899
16900 ac_cv_lib_esmtp_smtp_create_session=no
16901 fi
16902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16904 fi
16905 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
16906 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
16907 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
16908   cat >>confdefs.h <<_ACEOF
16909 #define HAVE_LIBESMTP 1
16910 _ACEOF
16911
16912   LIBS="-lesmtp $LIBS"
16913
16914 else
16915   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
16916 echo "$as_me: error: Could not find libesmtp" >&2;}
16917    { (exit 1); exit 1; }; }
16918 fi
16919
16920         CFLAGS="$temp_CFLAGS"
16921         LIBS="$temp_LIBS"
16922
16923                         use_libesmtp=yes
16924       fi
16925
16926
16927 fi;
16928
16929 if test x$use_libesmtp = xyes; then
16930     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16931     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
16932     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
16933
16934
16935 cat >>confdefs.h <<\_ACEOF
16936 #define USE_LIBESMTP 1
16937 _ACEOF
16938
16939 fi
16940
16941                                                                                                     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"
16942 cat >confcache <<\_ACEOF
16943 # This file is a shell script that caches the results of configure
16944 # tests run on this system so they can be shared between configure
16945 # scripts and configure runs, see configure's option --config-cache.
16946 # It is not useful on other systems.  If it contains results you don't
16947 # want to keep, you may remove or edit it.
16948 #
16949 # config.status only pays attention to the cache file if you give it
16950 # the --recheck option to rerun configure.
16951 #
16952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16954 # following values.
16955
16956 _ACEOF
16957
16958 # The following way of writing the cache mishandles newlines in values,
16959 # but we know of no workaround that is simple, portable, and efficient.
16960 # So, don't put newlines in cache variables' values.
16961 # Ultrix sh set writes to stderr and can't be redirected directly,
16962 # and sets the high bit in the cache file unless we assign to the vars.
16963 {
16964   (set) 2>&1 |
16965     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16966     *ac_space=\ *)
16967       # `set' does not quote correctly, so add quotes (double-quote
16968       # substitution turns \\\\ into \\, and sed turns \\ into \).
16969       sed -n \
16970         "s/'/'\\\\''/g;
16971           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16972       ;;
16973     *)
16974       # `set' quotes correctly as required by POSIX, so do not add quotes.
16975       sed -n \
16976         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16977       ;;
16978     esac;
16979 } |
16980   sed '
16981      t clear
16982      : clear
16983      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16984      t end
16985      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16986      : end' >>confcache
16987 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16988   if test -w $cache_file; then
16989     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16990     cat confcache >$cache_file
16991   else
16992     echo "not updating unwritable cache $cache_file"
16993   fi
16994 fi
16995 rm -f confcache
16996
16997 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16998 # Let make expand exec_prefix.
16999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17000
17001 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17002 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17003 # trailing colons and then remove the whole line if VPATH becomes empty
17004 # (actually we leave an empty line to preserve line numbers).
17005 if test "x$srcdir" = x.; then
17006   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17007 s/:*\$(srcdir):*/:/;
17008 s/:*\${srcdir}:*/:/;
17009 s/:*@srcdir@:*/:/;
17010 s/^\([^=]*=[    ]*\):*/\1/;
17011 s/:*$//;
17012 s/^[^=]*=[      ]*$//;
17013 }'
17014 fi
17015
17016 DEFS=-DHAVE_CONFIG_H
17017
17018 ac_libobjs=
17019 ac_ltlibobjs=
17020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17021   # 1. Remove the extension, and $U if already installed.
17022   ac_i=`echo "$ac_i" |
17023          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17024   # 2. Add them.
17025   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17026   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17027 done
17028 LIBOBJS=$ac_libobjs
17029
17030 LTLIBOBJS=$ac_ltlibobjs
17031
17032
17033 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17034   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17035 Usually this means the macro was only invoked conditionally." >&5
17036 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17037 Usually this means the macro was only invoked conditionally." >&2;}
17038    { (exit 1); exit 1; }; }
17039 fi
17040 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17041   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17042 Usually this means the macro was only invoked conditionally." >&5
17043 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17044 Usually this means the macro was only invoked conditionally." >&2;}
17045    { (exit 1); exit 1; }; }
17046 fi
17047 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
17048   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
17049 Usually this means the macro was only invoked conditionally." >&5
17050 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
17051 Usually this means the macro was only invoked conditionally." >&2;}
17052    { (exit 1); exit 1; }; }
17053 fi
17054 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
17055   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
17056 Usually this means the macro was only invoked conditionally." >&5
17057 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
17058 Usually this means the macro was only invoked conditionally." >&2;}
17059    { (exit 1); exit 1; }; }
17060 fi
17061 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
17062   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
17063 Usually this means the macro was only invoked conditionally." >&5
17064 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
17065 Usually this means the macro was only invoked conditionally." >&2;}
17066    { (exit 1); exit 1; }; }
17067 fi
17068 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
17069   { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
17070 Usually this means the macro was only invoked conditionally." >&5
17071 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
17072 Usually this means the macro was only invoked conditionally." >&2;}
17073    { (exit 1); exit 1; }; }
17074 fi
17075 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
17076   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
17077 Usually this means the macro was only invoked conditionally." >&5
17078 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
17079 Usually this means the macro was only invoked conditionally." >&2;}
17080    { (exit 1); exit 1; }; }
17081 fi
17082 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
17083   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
17084 Usually this means the macro was only invoked conditionally." >&5
17085 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
17086 Usually this means the macro was only invoked conditionally." >&2;}
17087    { (exit 1); exit 1; }; }
17088 fi
17089
17090 : ${CONFIG_STATUS=./config.status}
17091 ac_clean_files_save=$ac_clean_files
17092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17093 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17094 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17095 cat >$CONFIG_STATUS <<_ACEOF
17096 #! $SHELL
17097 # Generated by $as_me.
17098 # Run this file to recreate the current configuration.
17099 # Compiler output produced by configure, useful for debugging
17100 # configure, is in config.log if it exists.
17101
17102 debug=false
17103 ac_cs_recheck=false
17104 ac_cs_silent=false
17105 SHELL=\${CONFIG_SHELL-$SHELL}
17106 _ACEOF
17107
17108 cat >>$CONFIG_STATUS <<\_ACEOF
17109 ## --------------------- ##
17110 ## M4sh Initialization.  ##
17111 ## --------------------- ##
17112
17113 # Be Bourne compatible
17114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17115   emulate sh
17116   NULLCMD=:
17117   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17118   # is contrary to our usage.  Disable this feature.
17119   alias -g '${1+"$@"}'='"$@"'
17120 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17121   set -o posix
17122 fi
17123
17124 # Support unset when possible.
17125 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17126   as_unset=unset
17127 else
17128   as_unset=false
17129 fi
17130
17131
17132 # Work around bugs in pre-3.0 UWIN ksh.
17133 $as_unset ENV MAIL MAILPATH
17134 PS1='$ '
17135 PS2='> '
17136 PS4='+ '
17137
17138 # NLS nuisances.
17139 for as_var in \
17140   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17141   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17142   LC_TELEPHONE LC_TIME
17143 do
17144   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17145     eval $as_var=C; export $as_var
17146   else
17147     $as_unset $as_var
17148   fi
17149 done
17150
17151 # Required to use basename.
17152 if expr a : '\(a\)' >/dev/null 2>&1; then
17153   as_expr=expr
17154 else
17155   as_expr=false
17156 fi
17157
17158 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17159   as_basename=basename
17160 else
17161   as_basename=false
17162 fi
17163
17164
17165 # Name of the executable.
17166 as_me=`$as_basename "$0" ||
17167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17168          X"$0" : 'X\(//\)$' \| \
17169          X"$0" : 'X\(/\)$' \| \
17170          .     : '\(.\)' 2>/dev/null ||
17171 echo X/"$0" |
17172     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17173           /^X\/\(\/\/\)$/{ s//\1/; q; }
17174           /^X\/\(\/\).*/{ s//\1/; q; }
17175           s/.*/./; q'`
17176
17177
17178 # PATH needs CR, and LINENO needs CR and PATH.
17179 # Avoid depending upon Character Ranges.
17180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17183 as_cr_digits='0123456789'
17184 as_cr_alnum=$as_cr_Letters$as_cr_digits
17185
17186 # The user is always right.
17187 if test "${PATH_SEPARATOR+set}" != set; then
17188   echo "#! /bin/sh" >conf$$.sh
17189   echo  "exit 0"   >>conf$$.sh
17190   chmod +x conf$$.sh
17191   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17192     PATH_SEPARATOR=';'
17193   else
17194     PATH_SEPARATOR=:
17195   fi
17196   rm -f conf$$.sh
17197 fi
17198
17199
17200   as_lineno_1=$LINENO
17201   as_lineno_2=$LINENO
17202   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17203   test "x$as_lineno_1" != "x$as_lineno_2" &&
17204   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17205   # Find who we are.  Look in the path if we contain no path at all
17206   # relative or not.
17207   case $0 in
17208     *[\\/]* ) as_myself=$0 ;;
17209     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210 for as_dir in $PATH
17211 do
17212   IFS=$as_save_IFS
17213   test -z "$as_dir" && as_dir=.
17214   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17215 done
17216
17217        ;;
17218   esac
17219   # We did not find ourselves, most probably we were run as `sh COMMAND'
17220   # in which case we are not to be found in the path.
17221   if test "x$as_myself" = x; then
17222     as_myself=$0
17223   fi
17224   if test ! -f "$as_myself"; then
17225     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17227    { (exit 1); exit 1; }; }
17228   fi
17229   case $CONFIG_SHELL in
17230   '')
17231     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17232 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17233 do
17234   IFS=$as_save_IFS
17235   test -z "$as_dir" && as_dir=.
17236   for as_base in sh bash ksh sh5; do
17237          case $as_dir in
17238          /*)
17239            if ("$as_dir/$as_base" -c '
17240   as_lineno_1=$LINENO
17241   as_lineno_2=$LINENO
17242   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17243   test "x$as_lineno_1" != "x$as_lineno_2" &&
17244   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17245              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17246              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17247              CONFIG_SHELL=$as_dir/$as_base
17248              export CONFIG_SHELL
17249              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17250            fi;;
17251          esac
17252        done
17253 done
17254 ;;
17255   esac
17256
17257   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17258   # uniformly replaced by the line number.  The first 'sed' inserts a
17259   # line-number line before each line; the second 'sed' does the real
17260   # work.  The second script uses 'N' to pair each line-number line
17261   # with the numbered line, and appends trailing '-' during
17262   # substitution so that $LINENO is not a special case at line end.
17263   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17264   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17265   sed '=' <$as_myself |
17266     sed '
17267       N
17268       s,$,-,
17269       : loop
17270       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17271       t loop
17272       s,-$,,
17273       s,^['$as_cr_digits']*\n,,
17274     ' >$as_me.lineno &&
17275   chmod +x $as_me.lineno ||
17276     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17278    { (exit 1); exit 1; }; }
17279
17280   # Don't try to exec as it changes $[0], causing all sort of problems
17281   # (the dirname of $[0] is not the place where we might find the
17282   # original and so on.  Autoconf is especially sensible to this).
17283   . ./$as_me.lineno
17284   # Exit status is that of the last command.
17285   exit
17286 }
17287
17288
17289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17290   *c*,-n*) ECHO_N= ECHO_C='
17291 ' ECHO_T='      ' ;;
17292   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17293   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17294 esac
17295
17296 if expr a : '\(a\)' >/dev/null 2>&1; then
17297   as_expr=expr
17298 else
17299   as_expr=false
17300 fi
17301
17302 rm -f conf$$ conf$$.exe conf$$.file
17303 echo >conf$$.file
17304 if ln -s conf$$.file conf$$ 2>/dev/null; then
17305   # We could just check for DJGPP; but this test a) works b) is more generic
17306   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17307   if test -f conf$$.exe; then
17308     # Don't use ln at all; we don't have any links
17309     as_ln_s='cp -p'
17310   else
17311     as_ln_s='ln -s'
17312   fi
17313 elif ln conf$$.file conf$$ 2>/dev/null; then
17314   as_ln_s=ln
17315 else
17316   as_ln_s='cp -p'
17317 fi
17318 rm -f conf$$ conf$$.exe conf$$.file
17319
17320 if mkdir -p . 2>/dev/null; then
17321   as_mkdir_p=:
17322 else
17323   as_mkdir_p=false
17324 fi
17325
17326 as_executable_p="test -f"
17327
17328 # Sed expression to map a string onto a valid CPP name.
17329 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17330
17331 # Sed expression to map a string onto a valid variable name.
17332 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17333
17334
17335 # IFS
17336 # We need space, tab and new line, in precisely that order.
17337 as_nl='
17338 '
17339 IFS="   $as_nl"
17340
17341 # CDPATH.
17342 $as_unset CDPATH
17343
17344 exec 6>&1
17345
17346 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17347 # report actual input values of CONFIG_FILES etc. instead of their
17348 # values after options handling.  Logging --version etc. is OK.
17349 exec 5>>config.log
17350 {
17351   echo
17352   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17353 ## Running $as_me. ##
17354 _ASBOX
17355 } >&5
17356 cat >&5 <<_CSEOF
17357
17358 This file was extended by $as_me, which was
17359 generated by GNU Autoconf 2.57.  Invocation command line was
17360
17361   CONFIG_FILES    = $CONFIG_FILES
17362   CONFIG_HEADERS  = $CONFIG_HEADERS
17363   CONFIG_LINKS    = $CONFIG_LINKS
17364   CONFIG_COMMANDS = $CONFIG_COMMANDS
17365   $ $0 $@
17366
17367 _CSEOF
17368 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17369 echo >&5
17370 _ACEOF
17371
17372 # Files that config.status was made for.
17373 if test -n "$ac_config_files"; then
17374   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17375 fi
17376
17377 if test -n "$ac_config_headers"; then
17378   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17379 fi
17380
17381 if test -n "$ac_config_links"; then
17382   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17383 fi
17384
17385 if test -n "$ac_config_commands"; then
17386   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17387 fi
17388
17389 cat >>$CONFIG_STATUS <<\_ACEOF
17390
17391 ac_cs_usage="\
17392 \`$as_me' instantiates files from templates according to the
17393 current configuration.
17394
17395 Usage: $0 [OPTIONS] [FILE]...
17396
17397   -h, --help       print this help, then exit
17398   -V, --version    print version number, then exit
17399   -q, --quiet      do not print progress messages
17400   -d, --debug      don't remove temporary files
17401       --recheck    update $as_me by reconfiguring in the same conditions
17402   --file=FILE[:TEMPLATE]
17403                    instantiate the configuration file FILE
17404   --header=FILE[:TEMPLATE]
17405                    instantiate the configuration header FILE
17406
17407 Configuration files:
17408 $config_files
17409
17410 Configuration headers:
17411 $config_headers
17412
17413 Configuration commands:
17414 $config_commands
17415
17416 Report bugs to <bug-autoconf@gnu.org>."
17417 _ACEOF
17418
17419 cat >>$CONFIG_STATUS <<_ACEOF
17420 ac_cs_version="\\
17421 config.status
17422 configured by $0, generated by GNU Autoconf 2.57,
17423   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17424
17425 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17426 Free Software Foundation, Inc.
17427 This config.status script is free software; the Free Software Foundation
17428 gives unlimited permission to copy, distribute and modify it."
17429 srcdir=$srcdir
17430 INSTALL="$INSTALL"
17431 _ACEOF
17432
17433 cat >>$CONFIG_STATUS <<\_ACEOF
17434 # If no file are specified by the user, then we need to provide default
17435 # value.  By we need to know if files were specified by the user.
17436 ac_need_defaults=:
17437 while test $# != 0
17438 do
17439   case $1 in
17440   --*=*)
17441     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17442     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17443     ac_shift=:
17444     ;;
17445   -*)
17446     ac_option=$1
17447     ac_optarg=$2
17448     ac_shift=shift
17449     ;;
17450   *) # This is not an option, so the user has probably given explicit
17451      # arguments.
17452      ac_option=$1
17453      ac_need_defaults=false;;
17454   esac
17455
17456   case $ac_option in
17457   # Handling of the options.
17458 _ACEOF
17459 cat >>$CONFIG_STATUS <<\_ACEOF
17460   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17461     ac_cs_recheck=: ;;
17462   --version | --vers* | -V )
17463     echo "$ac_cs_version"; exit 0 ;;
17464   --he | --h)
17465     # Conflict between --help and --header
17466     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17467 Try \`$0 --help' for more information." >&5
17468 echo "$as_me: error: ambiguous option: $1
17469 Try \`$0 --help' for more information." >&2;}
17470    { (exit 1); exit 1; }; };;
17471   --help | --hel | -h )
17472     echo "$ac_cs_usage"; exit 0 ;;
17473   --debug | --d* | -d )
17474     debug=: ;;
17475   --file | --fil | --fi | --f )
17476     $ac_shift
17477     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17478     ac_need_defaults=false;;
17479   --header | --heade | --head | --hea )
17480     $ac_shift
17481     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17482     ac_need_defaults=false;;
17483   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17484   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17485     ac_cs_silent=: ;;
17486
17487   # This is an error.
17488   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17489 Try \`$0 --help' for more information." >&5
17490 echo "$as_me: error: unrecognized option: $1
17491 Try \`$0 --help' for more information." >&2;}
17492    { (exit 1); exit 1; }; } ;;
17493
17494   *) ac_config_targets="$ac_config_targets $1" ;;
17495
17496   esac
17497   shift
17498 done
17499
17500 ac_configure_extra_args=
17501
17502 if $ac_cs_silent; then
17503   exec 6>/dev/null
17504   ac_configure_extra_args="$ac_configure_extra_args --silent"
17505 fi
17506
17507 _ACEOF
17508 cat >>$CONFIG_STATUS <<_ACEOF
17509 if \$ac_cs_recheck; then
17510   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17511   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17512 fi
17513
17514 _ACEOF
17515
17516 cat >>$CONFIG_STATUS <<_ACEOF
17517 #
17518 # INIT-COMMANDS section.
17519 #
17520
17521 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17522
17523
17524 _ACEOF
17525
17526
17527
17528 cat >>$CONFIG_STATUS <<\_ACEOF
17529 for ac_config_target in $ac_config_targets
17530 do
17531   case "$ac_config_target" in
17532   # Handling of arguments.
17533   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17534   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17535   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17536   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17537   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17538   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17539   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
17540   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
17541   "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
17542   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
17543   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17544   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17545   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17546   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17547 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17548    { (exit 1); exit 1; }; };;
17549   esac
17550 done
17551
17552 # If the user did not use the arguments to specify the items to instantiate,
17553 # then the envvar interface is used.  Set only those that are not.
17554 # We use the long form for the default assignment because of an extremely
17555 # bizarre bug on SunOS 4.1.3.
17556 if $ac_need_defaults; then
17557   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17558   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17559   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17560 fi
17561
17562 # Have a temporary directory for convenience.  Make it in the build tree
17563 # simply because there is no reason to put it here, and in addition,
17564 # creating and moving files from /tmp can sometimes cause problems.
17565 # Create a temporary directory, and hook for its removal unless debugging.
17566 $debug ||
17567 {
17568   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17569   trap '{ (exit 1); exit 1; }' 1 2 13 15
17570 }
17571
17572 # Create a (secure) tmp directory for tmp files.
17573
17574 {
17575   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17576   test -n "$tmp" && test -d "$tmp"
17577 }  ||
17578 {
17579   tmp=./confstat$$-$RANDOM
17580   (umask 077 && mkdir $tmp)
17581 } ||
17582 {
17583    echo "$me: cannot create a temporary directory in ." >&2
17584    { (exit 1); exit 1; }
17585 }
17586
17587 _ACEOF
17588
17589 cat >>$CONFIG_STATUS <<_ACEOF
17590
17591 #
17592 # CONFIG_FILES section.
17593 #
17594
17595 # No need to generate the scripts if there are no CONFIG_FILES.
17596 # This happens for instance when ./config.status config.h
17597 if test -n "\$CONFIG_FILES"; then
17598   # Protect against being on the right side of a sed subst in config.status.
17599   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17600    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17601 s,@SHELL@,$SHELL,;t t
17602 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17603 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17604 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17605 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17606 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17607 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17608 s,@exec_prefix@,$exec_prefix,;t t
17609 s,@prefix@,$prefix,;t t
17610 s,@program_transform_name@,$program_transform_name,;t t
17611 s,@bindir@,$bindir,;t t
17612 s,@sbindir@,$sbindir,;t t
17613 s,@libexecdir@,$libexecdir,;t t
17614 s,@datadir@,$datadir,;t t
17615 s,@sysconfdir@,$sysconfdir,;t t
17616 s,@sharedstatedir@,$sharedstatedir,;t t
17617 s,@localstatedir@,$localstatedir,;t t
17618 s,@libdir@,$libdir,;t t
17619 s,@includedir@,$includedir,;t t
17620 s,@oldincludedir@,$oldincludedir,;t t
17621 s,@infodir@,$infodir,;t t
17622 s,@mandir@,$mandir,;t t
17623 s,@build_alias@,$build_alias,;t t
17624 s,@host_alias@,$host_alias,;t t
17625 s,@target_alias@,$target_alias,;t t
17626 s,@DEFS@,$DEFS,;t t
17627 s,@ECHO_C@,$ECHO_C,;t t
17628 s,@ECHO_N@,$ECHO_N,;t t
17629 s,@ECHO_T@,$ECHO_T,;t t
17630 s,@LIBS@,$LIBS,;t t
17631 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17632 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17633 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17634 s,@CYGPATH_W@,$CYGPATH_W,;t t
17635 s,@PACKAGE@,$PACKAGE,;t t
17636 s,@VERSION@,$VERSION,;t t
17637 s,@ACLOCAL@,$ACLOCAL,;t t
17638 s,@AUTOCONF@,$AUTOCONF,;t t
17639 s,@AUTOMAKE@,$AUTOMAKE,;t t
17640 s,@AUTOHEADER@,$AUTOHEADER,;t t
17641 s,@MAKEINFO@,$MAKEINFO,;t t
17642 s,@AMTAR@,$AMTAR,;t t
17643 s,@install_sh@,$install_sh,;t t
17644 s,@STRIP@,$STRIP,;t t
17645 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17646 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17647 s,@AWK@,$AWK,;t t
17648 s,@SET_MAKE@,$SET_MAKE,;t t
17649 s,@am__leading_dot@,$am__leading_dot,;t t
17650 s,@build@,$build,;t t
17651 s,@build_cpu@,$build_cpu,;t t
17652 s,@build_vendor@,$build_vendor,;t t
17653 s,@build_os@,$build_os,;t t
17654 s,@host@,$host,;t t
17655 s,@host_cpu@,$host_cpu,;t t
17656 s,@host_vendor@,$host_vendor,;t t
17657 s,@host_os@,$host_os,;t t
17658 s,@CC@,$CC,;t t
17659 s,@CFLAGS@,$CFLAGS,;t t
17660 s,@LDFLAGS@,$LDFLAGS,;t t
17661 s,@CPPFLAGS@,$CPPFLAGS,;t t
17662 s,@ac_ct_CC@,$ac_ct_CC,;t t
17663 s,@EXEEXT@,$EXEEXT,;t t
17664 s,@OBJEXT@,$OBJEXT,;t t
17665 s,@DEPDIR@,$DEPDIR,;t t
17666 s,@am__include@,$am__include,;t t
17667 s,@am__quote@,$am__quote,;t t
17668 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17669 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17670 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17671 s,@CCDEPMODE@,$CCDEPMODE,;t t
17672 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17673 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17674 s,@CPP@,$CPP,;t t
17675 s,@EGREP@,$EGREP,;t t
17676 s,@U@,$U,;t t
17677 s,@ANSI2KNR@,$ANSI2KNR,;t t
17678 s,@RANLIB@,$RANLIB,;t t
17679 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17680 s,@AR@,$AR,;t t
17681 s,@ac_ct_AR@,$ac_ct_AR,;t t
17682 s,@DBX@,$DBX,;t t
17683 s,@GDB@,$GDB,;t t
17684 s,@SDB@,$SDB,;t t
17685 s,@DEBUGGER@,$DEBUGGER,;t t
17686 s,@SENDMAIL@,$SENDMAIL,;t t
17687 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
17688 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
17689 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
17690 s,@OPS@,$OPS,;t t
17691 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
17692 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
17693 s,@SUBVERSION@,$SUBVERSION,;t t
17694 s,@ISPELL@,$ISPELL,;t t
17695 s,@LIBOBJS@,$LIBOBJS,;t t
17696 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
17697 s,@docdir@,$docdir,;t t
17698 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
17699 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
17700 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
17701 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
17702 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
17703 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
17704 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
17705 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
17706 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
17707 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
17708 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
17709 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
17710 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
17711 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
17712 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
17713 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
17714 s,@MUTTLIBS@,$MUTTLIBS,;t t
17715 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
17716 s,@LIBIMAP@,$LIBIMAP,;t t
17717 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
17718 s,@ALLOCA@,$ALLOCA,;t t
17719 s,@GLIBC21@,$GLIBC21,;t t
17720 s,@LIBICONV@,$LIBICONV,;t t
17721 s,@USE_NLS@,$USE_NLS,;t t
17722 s,@MSGFMT@,$MSGFMT,;t t
17723 s,@GMSGFMT@,$GMSGFMT,;t t
17724 s,@XGETTEXT@,$XGETTEXT,;t t
17725 s,@INTLBISON@,$INTLBISON,;t t
17726 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
17727 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
17728 s,@CATALOGS@,$CATALOGS,;t t
17729 s,@CATOBJEXT@,$CATOBJEXT,;t t
17730 s,@GMOFILES@,$GMOFILES,;t t
17731 s,@INTLLIBS@,$INTLLIBS,;t t
17732 s,@INTLOBJS@,$INTLOBJS,;t t
17733 s,@POFILES@,$POFILES,;t t
17734 s,@POSUB@,$POSUB,;t t
17735 s,@DATADIRNAME@,$DATADIRNAME,;t t
17736 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17737 s,@GENCAT@,$GENCAT,;t t
17738 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17739 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
17740 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
17741 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17742 CEOF
17743
17744 _ACEOF
17745
17746   cat >>$CONFIG_STATUS <<\_ACEOF
17747   # Split the substitutions into bite-sized pieces for seds with
17748   # small command number limits, like on Digital OSF/1 and HP-UX.
17749   ac_max_sed_lines=48
17750   ac_sed_frag=1 # Number of current file.
17751   ac_beg=1 # First line for current file.
17752   ac_end=$ac_max_sed_lines # Line after last line for current file.
17753   ac_more_lines=:
17754   ac_sed_cmds=
17755   while $ac_more_lines; do
17756     if test $ac_beg -gt 1; then
17757       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17758     else
17759       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17760     fi
17761     if test ! -s $tmp/subs.frag; then
17762       ac_more_lines=false
17763     else
17764       # The purpose of the label and of the branching condition is to
17765       # speed up the sed processing (if there are no `@' at all, there
17766       # is no need to browse any of the substitutions).
17767       # These are the two extra sed commands mentioned above.
17768       (echo ':t
17769   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17770       if test -z "$ac_sed_cmds"; then
17771         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17772       else
17773         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17774       fi
17775       ac_sed_frag=`expr $ac_sed_frag + 1`
17776       ac_beg=$ac_end
17777       ac_end=`expr $ac_end + $ac_max_sed_lines`
17778     fi
17779   done
17780   if test -z "$ac_sed_cmds"; then
17781     ac_sed_cmds=cat
17782   fi
17783 fi # test -n "$CONFIG_FILES"
17784
17785 _ACEOF
17786 cat >>$CONFIG_STATUS <<\_ACEOF
17787 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17788   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17789   case $ac_file in
17790   - | *:- | *:-:* ) # input from stdin
17791         cat >$tmp/stdin
17792         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17793         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17794   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17795         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17796   * )   ac_file_in=$ac_file.in ;;
17797   esac
17798
17799   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17800   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17802          X"$ac_file" : 'X\(//\)[^/]' \| \
17803          X"$ac_file" : 'X\(//\)$' \| \
17804          X"$ac_file" : 'X\(/\)' \| \
17805          .     : '\(.\)' 2>/dev/null ||
17806 echo X"$ac_file" |
17807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17808           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17809           /^X\(\/\/\)$/{ s//\1/; q; }
17810           /^X\(\/\).*/{ s//\1/; q; }
17811           s/.*/./; q'`
17812   { if $as_mkdir_p; then
17813     mkdir -p "$ac_dir"
17814   else
17815     as_dir="$ac_dir"
17816     as_dirs=
17817     while test ! -d "$as_dir"; do
17818       as_dirs="$as_dir $as_dirs"
17819       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821          X"$as_dir" : 'X\(//\)[^/]' \| \
17822          X"$as_dir" : 'X\(//\)$' \| \
17823          X"$as_dir" : 'X\(/\)' \| \
17824          .     : '\(.\)' 2>/dev/null ||
17825 echo X"$as_dir" |
17826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17827           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17828           /^X\(\/\/\)$/{ s//\1/; q; }
17829           /^X\(\/\).*/{ s//\1/; q; }
17830           s/.*/./; q'`
17831     done
17832     test ! -n "$as_dirs" || mkdir $as_dirs
17833   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17834 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17835    { (exit 1); exit 1; }; }; }
17836
17837   ac_builddir=.
17838
17839 if test "$ac_dir" != .; then
17840   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17841   # A "../" for each directory in $ac_dir_suffix.
17842   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17843 else
17844   ac_dir_suffix= ac_top_builddir=
17845 fi
17846
17847 case $srcdir in
17848   .)  # No --srcdir option.  We are building in place.
17849     ac_srcdir=.
17850     if test -z "$ac_top_builddir"; then
17851        ac_top_srcdir=.
17852     else
17853        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17854     fi ;;
17855   [\\/]* | ?:[\\/]* )  # Absolute path.
17856     ac_srcdir=$srcdir$ac_dir_suffix;
17857     ac_top_srcdir=$srcdir ;;
17858   *) # Relative path.
17859     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17860     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17861 esac
17862 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17863 # absolute.
17864 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17865 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17866 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17867 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17868
17869
17870   case $INSTALL in
17871   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17872   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17873   esac
17874
17875   if test x"$ac_file" != x-; then
17876     { echo "$as_me:$LINENO: creating $ac_file" >&5
17877 echo "$as_me: creating $ac_file" >&6;}
17878     rm -f "$ac_file"
17879   fi
17880   # Let's still pretend it is `configure' which instantiates (i.e., don't
17881   # use $as_me), people would be surprised to read:
17882   #    /* config.h.  Generated by config.status.  */
17883   if test x"$ac_file" = x-; then
17884     configure_input=
17885   else
17886     configure_input="$ac_file.  "
17887   fi
17888   configure_input=$configure_input"Generated from `echo $ac_file_in |
17889                                      sed 's,.*/,,'` by configure."
17890
17891   # First look for the input files in the build tree, otherwise in the
17892   # src tree.
17893   ac_file_inputs=`IFS=:
17894     for f in $ac_file_in; do
17895       case $f in
17896       -) echo $tmp/stdin ;;
17897       [\\/$]*)
17898          # Absolute (can't be DOS-style, as IFS=:)
17899          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17900 echo "$as_me: error: cannot find input file: $f" >&2;}
17901    { (exit 1); exit 1; }; }
17902          echo $f;;
17903       *) # Relative
17904          if test -f "$f"; then
17905            # Build tree
17906            echo $f
17907          elif test -f "$srcdir/$f"; then
17908            # Source tree
17909            echo $srcdir/$f
17910          else
17911            # /dev/null tree
17912            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17913 echo "$as_me: error: cannot find input file: $f" >&2;}
17914    { (exit 1); exit 1; }; }
17915          fi;;
17916       esac
17917     done` || { (exit 1); exit 1; }
17918 _ACEOF
17919 cat >>$CONFIG_STATUS <<_ACEOF
17920   sed "$ac_vpsub
17921 $extrasub
17922 _ACEOF
17923 cat >>$CONFIG_STATUS <<\_ACEOF
17924 :t
17925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17926 s,@configure_input@,$configure_input,;t t
17927 s,@srcdir@,$ac_srcdir,;t t
17928 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17929 s,@top_srcdir@,$ac_top_srcdir,;t t
17930 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17931 s,@builddir@,$ac_builddir,;t t
17932 s,@abs_builddir@,$ac_abs_builddir,;t t
17933 s,@top_builddir@,$ac_top_builddir,;t t
17934 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17935 s,@INSTALL@,$ac_INSTALL,;t t
17936 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17937   rm -f $tmp/stdin
17938   if test x"$ac_file" != x-; then
17939     mv $tmp/out $ac_file
17940   else
17941     cat $tmp/out
17942     rm -f $tmp/out
17943   fi
17944
17945 done
17946 _ACEOF
17947 cat >>$CONFIG_STATUS <<\_ACEOF
17948
17949 #
17950 # CONFIG_HEADER section.
17951 #
17952
17953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17955 #
17956 # ac_d sets the value in "#define NAME VALUE" lines.
17957 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17958 ac_dB='[        ].*$,\1#\2'
17959 ac_dC=' '
17960 ac_dD=',;t'
17961 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17962 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17963 ac_uB='$,\1#\2define\3'
17964 ac_uC=' '
17965 ac_uD=',;t'
17966
17967 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17968   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17969   case $ac_file in
17970   - | *:- | *:-:* ) # input from stdin
17971         cat >$tmp/stdin
17972         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17973         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17974   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17975         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17976   * )   ac_file_in=$ac_file.in ;;
17977   esac
17978
17979   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17980 echo "$as_me: creating $ac_file" >&6;}
17981
17982   # First look for the input files in the build tree, otherwise in the
17983   # src tree.
17984   ac_file_inputs=`IFS=:
17985     for f in $ac_file_in; do
17986       case $f in
17987       -) echo $tmp/stdin ;;
17988       [\\/$]*)
17989          # Absolute (can't be DOS-style, as IFS=:)
17990          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17991 echo "$as_me: error: cannot find input file: $f" >&2;}
17992    { (exit 1); exit 1; }; }
17993          echo $f;;
17994       *) # Relative
17995          if test -f "$f"; then
17996            # Build tree
17997            echo $f
17998          elif test -f "$srcdir/$f"; then
17999            # Source tree
18000            echo $srcdir/$f
18001          else
18002            # /dev/null tree
18003            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18004 echo "$as_me: error: cannot find input file: $f" >&2;}
18005    { (exit 1); exit 1; }; }
18006          fi;;
18007       esac
18008     done` || { (exit 1); exit 1; }
18009   # Remove the trailing spaces.
18010   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18011
18012 _ACEOF
18013
18014 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18015 # `conftest.undefs', that substitutes the proper values into
18016 # config.h.in to produce config.h.  The first handles `#define'
18017 # templates, and the second `#undef' templates.
18018 # And first: Protect against being on the right side of a sed subst in
18019 # config.status.  Protect against being in an unquoted here document
18020 # in config.status.
18021 rm -f conftest.defines conftest.undefs
18022 # Using a here document instead of a string reduces the quoting nightmare.
18023 # Putting comments in sed scripts is not portable.
18024 #
18025 # `end' is used to avoid that the second main sed command (meant for
18026 # 0-ary CPP macros) applies to n-ary macro definitions.
18027 # See the Autoconf documentation for `clear'.
18028 cat >confdef2sed.sed <<\_ACEOF
18029 s/[\\&,]/\\&/g
18030 s,[\\$`],\\&,g
18031 t clear
18032 : clear
18033 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18034 t end
18035 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18036 : end
18037 _ACEOF
18038 # If some macros were called several times there might be several times
18039 # the same #defines, which is useless.  Nevertheless, we may not want to
18040 # sort them, since we want the *last* AC-DEFINE to be honored.
18041 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18042 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18043 rm -f confdef2sed.sed
18044
18045 # This sed command replaces #undef with comments.  This is necessary, for
18046 # example, in the case of _POSIX_SOURCE, which is predefined and required
18047 # on some systems where configure will not decide to define it.
18048 cat >>conftest.undefs <<\_ACEOF
18049 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18050 _ACEOF
18051
18052 # Break up conftest.defines because some shells have a limit on the size
18053 # of here documents, and old seds have small limits too (100 cmds).
18054 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18055 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18056 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18057 echo '  :' >>$CONFIG_STATUS
18058 rm -f conftest.tail
18059 while grep . conftest.defines >/dev/null
18060 do
18061   # Write a limited-size here document to $tmp/defines.sed.
18062   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18063   # Speed up: don't consider the non `#define' lines.
18064   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18065   # Work around the forget-to-reset-the-flag bug.
18066   echo 't clr' >>$CONFIG_STATUS
18067   echo ': clr' >>$CONFIG_STATUS
18068   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18069   echo 'CEOF
18070   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18071   rm -f $tmp/in
18072   mv $tmp/out $tmp/in
18073 ' >>$CONFIG_STATUS
18074   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18075   rm -f conftest.defines
18076   mv conftest.tail conftest.defines
18077 done
18078 rm -f conftest.defines
18079 echo '  fi # grep' >>$CONFIG_STATUS
18080 echo >>$CONFIG_STATUS
18081
18082 # Break up conftest.undefs because some shells have a limit on the size
18083 # of here documents, and old seds have small limits too (100 cmds).
18084 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18085 rm -f conftest.tail
18086 while grep . conftest.undefs >/dev/null
18087 do
18088   # Write a limited-size here document to $tmp/undefs.sed.
18089   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18090   # Speed up: don't consider the non `#undef'
18091   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18092   # Work around the forget-to-reset-the-flag bug.
18093   echo 't clr' >>$CONFIG_STATUS
18094   echo ': clr' >>$CONFIG_STATUS
18095   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18096   echo 'CEOF
18097   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18098   rm -f $tmp/in
18099   mv $tmp/out $tmp/in
18100 ' >>$CONFIG_STATUS
18101   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18102   rm -f conftest.undefs
18103   mv conftest.tail conftest.undefs
18104 done
18105 rm -f conftest.undefs
18106
18107 cat >>$CONFIG_STATUS <<\_ACEOF
18108   # Let's still pretend it is `configure' which instantiates (i.e., don't
18109   # use $as_me), people would be surprised to read:
18110   #    /* config.h.  Generated by config.status.  */
18111   if test x"$ac_file" = x-; then
18112     echo "/* Generated by configure.  */" >$tmp/config.h
18113   else
18114     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18115   fi
18116   cat $tmp/in >>$tmp/config.h
18117   rm -f $tmp/in
18118   if test x"$ac_file" != x-; then
18119     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18120       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18121 echo "$as_me: $ac_file is unchanged" >&6;}
18122     else
18123       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18125          X"$ac_file" : 'X\(//\)[^/]' \| \
18126          X"$ac_file" : 'X\(//\)$' \| \
18127          X"$ac_file" : 'X\(/\)' \| \
18128          .     : '\(.\)' 2>/dev/null ||
18129 echo X"$ac_file" |
18130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18132           /^X\(\/\/\)$/{ s//\1/; q; }
18133           /^X\(\/\).*/{ s//\1/; q; }
18134           s/.*/./; q'`
18135       { if $as_mkdir_p; then
18136     mkdir -p "$ac_dir"
18137   else
18138     as_dir="$ac_dir"
18139     as_dirs=
18140     while test ! -d "$as_dir"; do
18141       as_dirs="$as_dir $as_dirs"
18142       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18144          X"$as_dir" : 'X\(//\)[^/]' \| \
18145          X"$as_dir" : 'X\(//\)$' \| \
18146          X"$as_dir" : 'X\(/\)' \| \
18147          .     : '\(.\)' 2>/dev/null ||
18148 echo X"$as_dir" |
18149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18151           /^X\(\/\/\)$/{ s//\1/; q; }
18152           /^X\(\/\).*/{ s//\1/; q; }
18153           s/.*/./; q'`
18154     done
18155     test ! -n "$as_dirs" || mkdir $as_dirs
18156   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18157 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18158    { (exit 1); exit 1; }; }; }
18159
18160       rm -f $ac_file
18161       mv $tmp/config.h $ac_file
18162     fi
18163   else
18164     cat $tmp/config.h
18165     rm -f $tmp/config.h
18166   fi
18167 # Compute $ac_file's index in $config_headers.
18168 _am_stamp_count=1
18169 for _am_header in $config_headers :; do
18170   case $_am_header in
18171     $ac_file | $ac_file:* )
18172       break ;;
18173     * )
18174       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18175   esac
18176 done
18177 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18178 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18179          X$ac_file : 'X\(//\)[^/]' \| \
18180          X$ac_file : 'X\(//\)$' \| \
18181          X$ac_file : 'X\(/\)' \| \
18182          .     : '\(.\)' 2>/dev/null ||
18183 echo X$ac_file |
18184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18185           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18186           /^X\(\/\/\)$/{ s//\1/; q; }
18187           /^X\(\/\).*/{ s//\1/; q; }
18188           s/.*/./; q'`/stamp-h$_am_stamp_count
18189 done
18190 _ACEOF
18191 cat >>$CONFIG_STATUS <<\_ACEOF
18192
18193 #
18194 # CONFIG_COMMANDS section.
18195 #
18196 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18197   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18198   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18199   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18200 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18201          X"$ac_dest" : 'X\(//\)[^/]' \| \
18202          X"$ac_dest" : 'X\(//\)$' \| \
18203          X"$ac_dest" : 'X\(/\)' \| \
18204          .     : '\(.\)' 2>/dev/null ||
18205 echo X"$ac_dest" |
18206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18207           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18208           /^X\(\/\/\)$/{ s//\1/; q; }
18209           /^X\(\/\).*/{ s//\1/; q; }
18210           s/.*/./; q'`
18211   ac_builddir=.
18212
18213 if test "$ac_dir" != .; then
18214   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18215   # A "../" for each directory in $ac_dir_suffix.
18216   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18217 else
18218   ac_dir_suffix= ac_top_builddir=
18219 fi
18220
18221 case $srcdir in
18222   .)  # No --srcdir option.  We are building in place.
18223     ac_srcdir=.
18224     if test -z "$ac_top_builddir"; then
18225        ac_top_srcdir=.
18226     else
18227        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18228     fi ;;
18229   [\\/]* | ?:[\\/]* )  # Absolute path.
18230     ac_srcdir=$srcdir$ac_dir_suffix;
18231     ac_top_srcdir=$srcdir ;;
18232   *) # Relative path.
18233     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18234     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18235 esac
18236 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18237 # absolute.
18238 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18239 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18240 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18241 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18242
18243
18244   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18245 echo "$as_me: executing $ac_dest commands" >&6;}
18246   case $ac_dest in
18247     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18248   # Strip MF so we end up with the name of the file.
18249   mf=`echo "$mf" | sed -e 's/:.*$//'`
18250   # Check whether this is an Automake generated Makefile or not.
18251   # We used to match only the files named `Makefile.in', but
18252   # some people rename them; so instead we look at the file content.
18253   # Grep'ing the first line is not enough: some people post-process
18254   # each Makefile.in and add a new line on top of each file to say so.
18255   # So let's grep whole file.
18256   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18257     dirpart=`(dirname "$mf") 2>/dev/null ||
18258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18259          X"$mf" : 'X\(//\)[^/]' \| \
18260          X"$mf" : 'X\(//\)$' \| \
18261          X"$mf" : 'X\(/\)' \| \
18262          .     : '\(.\)' 2>/dev/null ||
18263 echo X"$mf" |
18264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18265           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18266           /^X\(\/\/\)$/{ s//\1/; q; }
18267           /^X\(\/\).*/{ s//\1/; q; }
18268           s/.*/./; q'`
18269   else
18270     continue
18271   fi
18272   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18273   # Extract the definition of DEP_FILES from the Makefile without
18274   # running `make'.
18275   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18276   test -z "$DEPDIR" && continue
18277   # When using ansi2knr, U may be empty or an underscore; expand it
18278   U=`sed -n -e '/^U = / s///p' < "$mf"`
18279   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18280   # We invoke sed twice because it is the simplest approach to
18281   # changing $(DEPDIR) to its actual value in the expansion.
18282   for file in `sed -n -e '
18283     /^DEP_FILES = .*\\\\$/ {
18284       s/^DEP_FILES = //
18285       :loop
18286         s/\\\\$//
18287         p
18288         n
18289         /\\\\$/ b loop
18290       p
18291     }
18292     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18293        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18294     # Make sure the directory exists.
18295     test -f "$dirpart/$file" && continue
18296     fdir=`(dirname "$file") 2>/dev/null ||
18297 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18298          X"$file" : 'X\(//\)[^/]' \| \
18299          X"$file" : 'X\(//\)$' \| \
18300          X"$file" : 'X\(/\)' \| \
18301          .     : '\(.\)' 2>/dev/null ||
18302 echo X"$file" |
18303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18304           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18305           /^X\(\/\/\)$/{ s//\1/; q; }
18306           /^X\(\/\).*/{ s//\1/; q; }
18307           s/.*/./; q'`
18308     { if $as_mkdir_p; then
18309     mkdir -p $dirpart/$fdir
18310   else
18311     as_dir=$dirpart/$fdir
18312     as_dirs=
18313     while test ! -d "$as_dir"; do
18314       as_dirs="$as_dir $as_dirs"
18315       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317          X"$as_dir" : 'X\(//\)[^/]' \| \
18318          X"$as_dir" : 'X\(//\)$' \| \
18319          X"$as_dir" : 'X\(/\)' \| \
18320          .     : '\(.\)' 2>/dev/null ||
18321 echo X"$as_dir" |
18322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18323           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18324           /^X\(\/\/\)$/{ s//\1/; q; }
18325           /^X\(\/\).*/{ s//\1/; q; }
18326           s/.*/./; q'`
18327     done
18328     test ! -n "$as_dirs" || mkdir $as_dirs
18329   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18330 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18331    { (exit 1); exit 1; }; }; }
18332
18333     # echo "creating $dirpart/$file"
18334     echo '# dummy' > "$dirpart/$file"
18335   done
18336 done
18337  ;;
18338     default-1 ) for ac_file in $CONFIG_FILES; do
18339         # Support "outfile[:infile[:infile...]]"
18340         case "$ac_file" in
18341           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18342         esac
18343         # PO directories have a Makefile.in generated from Makefile.in.in.
18344         case "$ac_file" in */Makefile.in)
18345           # Adjust a relative srcdir.
18346           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18347           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18348           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18349           # In autoconf-2.13 it is called $ac_given_srcdir.
18350           # In autoconf-2.50 it is called $srcdir.
18351           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18352           case "$ac_given_srcdir" in
18353             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18354             /*) top_srcdir="$ac_given_srcdir" ;;
18355             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18356           esac
18357           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18358             rm -f "$ac_dir/POTFILES"
18359             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18360             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
18361             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18362             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18363           fi
18364           ;;
18365         esac
18366       done ;;
18367   esac
18368 done
18369 _ACEOF
18370
18371 cat >>$CONFIG_STATUS <<\_ACEOF
18372
18373 { (exit 0); exit 0; }
18374 _ACEOF
18375 chmod +x $CONFIG_STATUS
18376 ac_clean_files=$ac_clean_files_save
18377
18378
18379 # configure is writing to config.log, and then calls config.status.
18380 # config.status does its own redirection, appending to config.log.
18381 # Unfortunately, on DOS this fails, as config.log is still kept open
18382 # by configure, so config.status won't be able to write to it; its
18383 # output is simply discarded.  So we exec the FD to /dev/null,
18384 # effectively closing config.log, so it can be properly (re)opened and
18385 # appended to by config.status.  When coming back to configure, we
18386 # need to make the FD available again.
18387 if test "$no_create" != yes; then
18388   ac_cs_success=:
18389   ac_config_status_args=
18390   test "$silent" = yes &&
18391     ac_config_status_args="$ac_config_status_args --quiet"
18392   exec 5>/dev/null
18393   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18394   exec 5>>config.log
18395   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18396   # would make configure fail if this is the last instruction.
18397   $ac_cs_success || { (exit 1); exit 1; }
18398 fi
18399