Andreas Krennmair:
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --disable-pgp              Disable PGP support
854   --disable-smime            Disable SMIME support
855   --enable-external-dotlock  Force use of an external dotlock program
856   --enable-pop               Enable POP3 support
857   --enable-imap              Enable IMAP support
858   --enable-nntp              Enable NNTP support
859   --enable-debug             Enable debugging support
860   --enable-flock             Use flock() to lock files
861   --disable-fcntl            Do NOT use fcntl() to lock files
862   --disable-warnings         Turn off compiler warnings (not recommended)
863   --enable-nfs-fix           Work around an NFS with broken attributes caching
864   --enable-buffy-size        Use file size attribute instead of access time
865   --enable-mailtool          Enable Sun mailtool attachments support
866   --enable-compressed        Enable compressed folders support
867   --enable-locales-fix       The result of isprint() is unreliable
868   --enable-exact-address     Enable regeneration of email addresses
869   --disable-iconv            Disable iconv support
870   --disable-nls              Do not use Native Language Support
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-mixmaster=PATH    Include Mixmaster support
876   --with-slang=DIR         Use S-Lang instead of ncurses
877   --with-curses=DIR          Where ncurses is installed
878   --with-regex               Use the GNU regex library
879   --with-homespool=FILE    File in user's directory where new mail is spooled
880   --with-mailpath=DIR        Directory where spool mailboxes are located
881   --with-docdir=PATH         Specify where to put the documentation
882   --with-domain=DOMAIN       Specify your DNS domain name
883     --with-gss=PFX         Compile in GSSAPI authentication for IMAP
884   --with-ssl=PFX           Compile in SSL support for POP/IMAP
885   --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
886   --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
887   --with-sasl2=PFX         Use Cyrus SASL library version 2 for POP/IMAP authentication
888   --with-idn=PFX                Use GNU libidn for domain names
889   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
890   --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
891   --with-included-gettext    Use the GNU gettext library included here
892   --without-wc-funcs         Do not use the system's wchar_t functions
893   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
894
895 Some influential environment variables:
896   CC          C compiler command
897   CFLAGS      C compiler flags
898   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
899               nonstandard directory <lib dir>
900   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
901               headers in a nonstandard directory <include dir>
902   CPP         C preprocessor
903
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
906
907 _ACEOF
908 fi
909
910 if test "$ac_init_help" = "recursive"; then
911   # If there are subdirs, report their specific --help.
912   ac_popdir=`pwd`
913   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914     test -d $ac_dir || continue
915     ac_builddir=.
916
917 if test "$ac_dir" != .; then
918   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919   # A "../" for each directory in $ac_dir_suffix.
920   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 else
922   ac_dir_suffix= ac_top_builddir=
923 fi
924
925 case $srcdir in
926   .)  # No --srcdir option.  We are building in place.
927     ac_srcdir=.
928     if test -z "$ac_top_builddir"; then
929        ac_top_srcdir=.
930     else
931        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932     fi ;;
933   [\\/]* | ?:[\\/]* )  # Absolute path.
934     ac_srcdir=$srcdir$ac_dir_suffix;
935     ac_top_srcdir=$srcdir ;;
936   *) # Relative path.
937     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938     ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 esac
940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 # absolute.
942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
946
947     cd $ac_dir
948     # Check for guested configure; otherwise get Cygnus style configure.
949     if test -f $ac_srcdir/configure.gnu; then
950       echo
951       $SHELL $ac_srcdir/configure.gnu  --help=recursive
952     elif test -f $ac_srcdir/configure; then
953       echo
954       $SHELL $ac_srcdir/configure  --help=recursive
955     elif test -f $ac_srcdir/configure.ac ||
956            test -f $ac_srcdir/configure.in; then
957       echo
958       $ac_configure --help
959     else
960       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961     fi
962     cd $ac_popdir
963   done
964 fi
965
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968   cat <<\_ACEOF
969
970 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
971 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975   exit 0
976 fi
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
981
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.57.  Invocation command line was
984
985   $ $0 $@
986
987 _ACEOF
988 {
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
993
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1002
1003 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1004 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1007 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1008 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1009 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1010
1011 _ASUNAME
1012
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1015 do
1016   IFS=$as_save_IFS
1017   test -z "$as_dir" && as_dir=.
1018   echo "PATH: $as_dir"
1019 done
1020
1021 } >&5
1022
1023 cat >&5 <<_ACEOF
1024
1025
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1029
1030 _ACEOF
1031
1032
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1044 do
1045   for ac_arg
1046   do
1047     case $ac_arg in
1048     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050     | -silent | --silent | --silen | --sile | --sil)
1051       continue ;;
1052     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054     esac
1055     case $ac_pass in
1056     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057     2)
1058       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059       if test $ac_must_keep_next = true; then
1060         ac_must_keep_next=false # Got value, back to normal.
1061       else
1062         case $ac_arg in
1063           *=* | --config-cache | -C | -disable-* | --disable-* \
1064           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066           | -with-* | --with-* | -without-* | --without-* | --x)
1067             case "$ac_configure_args0 " in
1068               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069             esac
1070             ;;
1071           -* ) ac_must_keep_next=true ;;
1072         esac
1073       fi
1074       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075       # Get rid of the leading space.
1076       ac_sep=" "
1077       ;;
1078     esac
1079   done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log.  We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090   # Save into config.log some information that might help in debugging.
1091   {
1092     echo
1093
1094     cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099     echo
1100     # The following way of writing the cache mishandles newlines in values,
1101 {
1102   (set) 2>&1 |
1103     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104     *ac_space=\ *)
1105       sed -n \
1106         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108       ;;
1109     *)
1110       sed -n \
1111         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112       ;;
1113     esac;
1114 }
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122     echo
1123     for ac_var in $ac_subst_vars
1124     do
1125       eval ac_val=$`echo $ac_var`
1126       echo "$ac_var='"'"'$ac_val'"'"'"
1127     done | sort
1128     echo
1129
1130     if test -n "$ac_subst_files"; then
1131       cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136       echo
1137       for ac_var in $ac_subst_files
1138       do
1139         eval ac_val=$`echo $ac_var`
1140         echo "$ac_var='"'"'$ac_val'"'"'"
1141       done | sort
1142       echo
1143     fi
1144
1145     if test -s confdefs.h; then
1146       cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151       echo
1152       sed "/^$/d" confdefs.h | sort
1153       echo
1154     fi
1155     test "$ac_signal" != 0 &&
1156       echo "$as_me: caught signal $ac_signal"
1157     echo "$as_me: exit $exit_status"
1158   } >&5
1159   rm -f core core.* *.core &&
1160   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161     exit $exit_status
1162      ' 0
1163 for ac_signal in 1 2 13 15; do
1164   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1167
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1172
1173 # Predefined preprocessor variables.
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1198
1199
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203   if test "x$prefix" != xNONE; then
1204     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205   else
1206     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207   fi
1208 fi
1209 for ac_site_file in $CONFIG_SITE; do
1210   if test -r "$ac_site_file"; then
1211     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213     sed 's/^/| /' "$ac_site_file" >&5
1214     . "$ac_site_file"
1215   fi
1216 done
1217
1218 if test -r "$cache_file"; then
1219   # Some versions of bash will fail to source /dev/null (special
1220   # files actually), so we avoid doing that.
1221   if test -f "$cache_file"; then
1222     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224     case $cache_file in
1225       [\\/]* | ?:[\\/]* ) . $cache_file;;
1226       *)                      . ./$cache_file;;
1227     esac
1228   fi
1229 else
1230   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232   >$cache_file
1233 fi
1234
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241   eval ac_new_set=\$ac_env_${ac_var}_set
1242   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243   eval ac_new_val="\$ac_env_${ac_var}_value"
1244   case $ac_old_set,$ac_new_set in
1245     set,)
1246       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248       ac_cache_corrupted=: ;;
1249     ,set)
1250       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252       ac_cache_corrupted=: ;;
1253     ,);;
1254     *)
1255       if test "x$ac_old_val" != "x$ac_new_val"; then
1256         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1259 echo "$as_me:   former value:  $ac_old_val" >&2;}
1260         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1261 echo "$as_me:   current value: $ac_new_val" >&2;}
1262         ac_cache_corrupted=:
1263       fi;;
1264   esac
1265   # Pass precious variables to config.status.
1266   if test "$ac_new_set" = set; then
1267     case $ac_new_val in
1268     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270     *) ac_arg=$ac_var=$ac_new_val ;;
1271     esac
1272     case " $ac_configure_args " in
1273       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1274       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275     esac
1276   fi
1277 done
1278 if $ac_cache_corrupted; then
1279   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283    { (exit 1); exit 1; }; }
1284 fi
1285
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310           ac_config_headers="$ac_config_headers config.h"
1311
1312
1313 mutt_cv_version=`cat $srcdir/VERSION`
1314
1315
1316 am__api_version="1.7"
1317 ac_aux_dir=
1318 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1319   if test -f $ac_dir/install-sh; then
1320     ac_aux_dir=$ac_dir
1321     ac_install_sh="$ac_aux_dir/install-sh -c"
1322     break
1323   elif test -f $ac_dir/install.sh; then
1324     ac_aux_dir=$ac_dir
1325     ac_install_sh="$ac_aux_dir/install.sh -c"
1326     break
1327   elif test -f $ac_dir/shtool; then
1328     ac_aux_dir=$ac_dir
1329     ac_install_sh="$ac_aux_dir/shtool install -c"
1330     break
1331   fi
1332 done
1333 if test -z "$ac_aux_dir"; then
1334   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1335 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1336    { (exit 1); exit 1; }; }
1337 fi
1338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1340 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1341
1342 # Find a good install program.  We prefer a C program (faster),
1343 # so one script is as good as another.  But avoid the broken or
1344 # incompatible versions:
1345 # SysV /etc/install, /usr/sbin/install
1346 # SunOS /usr/etc/install
1347 # IRIX /sbin/install
1348 # AIX /bin/install
1349 # AmigaOS /C/install, which installs bootblocks on floppy discs
1350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1353 # ./install, which can be erroneously created by make from ./install.sh.
1354 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1356 if test -z "$INSTALL"; then
1357 if test "${ac_cv_path_install+set}" = set; then
1358   echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361 for as_dir in $PATH
1362 do
1363   IFS=$as_save_IFS
1364   test -z "$as_dir" && as_dir=.
1365   # Account for people who put trailing slashes in PATH elements.
1366 case $as_dir/ in
1367   ./ | .// | /cC/* | \
1368   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1369   /usr/ucb/* ) ;;
1370   *)
1371     # OSF1 and SCO ODT 3.0 have their own names for install.
1372     # Don't use installbsd from OSF since it installs stuff as root
1373     # by default.
1374     for ac_prog in ginstall scoinst install; do
1375       for ac_exec_ext in '' $ac_executable_extensions; do
1376         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1377           if test $ac_prog = install &&
1378             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1379             # AIX install.  It has an incompatible calling convention.
1380             :
1381           elif test $ac_prog = install &&
1382             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383             # program-specific install script used by HP pwplus--don't use.
1384             :
1385           else
1386             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1387             break 3
1388           fi
1389         fi
1390       done
1391     done
1392     ;;
1393 esac
1394 done
1395
1396
1397 fi
1398   if test "${ac_cv_path_install+set}" = set; then
1399     INSTALL=$ac_cv_path_install
1400   else
1401     # As a last resort, use the slow shell script.  We don't cache a
1402     # path for INSTALL within a source directory, because that will
1403     # break other packages using the cache if that directory is
1404     # removed, or if the path is relative.
1405     INSTALL=$ac_install_sh
1406   fi
1407 fi
1408 echo "$as_me:$LINENO: result: $INSTALL" >&5
1409 echo "${ECHO_T}$INSTALL" >&6
1410
1411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1412 # It thinks the first close brace ends the variable substitution.
1413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414
1415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1416
1417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1418
1419 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1420 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1421 # Just in case
1422 sleep 1
1423 echo timestamp > conftest.file
1424 # Do `set' in a subshell so we don't clobber the current shell's
1425 # arguments.  Must try -L first in case configure is actually a
1426 # symlink; some systems play weird games with the mod time of symlinks
1427 # (eg FreeBSD returns the mod time of the symlink's containing
1428 # directory).
1429 if (
1430    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1431    if test "$*" = "X"; then
1432       # -L didn't work.
1433       set X `ls -t $srcdir/configure conftest.file`
1434    fi
1435    rm -f conftest.file
1436    if test "$*" != "X $srcdir/configure conftest.file" \
1437       && test "$*" != "X conftest.file $srcdir/configure"; then
1438
1439       # If neither matched, then we have a broken ls.  This can happen
1440       # if, for instance, CONFIG_SHELL is bash and it inherits a
1441       # broken ls alias from the environment.  This has actually
1442       # happened.  Such a system could not be considered "sane".
1443       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1444 alias in your environment" >&5
1445 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1446 alias in your environment" >&2;}
1447    { (exit 1); exit 1; }; }
1448    fi
1449
1450    test "$2" = conftest.file
1451    )
1452 then
1453    # Ok.
1454    :
1455 else
1456    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1457 Check your system clock" >&5
1458 echo "$as_me: error: newly created file is older than distributed files!
1459 Check your system clock" >&2;}
1460    { (exit 1); exit 1; }; }
1461 fi
1462 echo "$as_me:$LINENO: result: yes" >&5
1463 echo "${ECHO_T}yes" >&6
1464 test "$program_prefix" != NONE &&
1465   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1466 # Use a double $ so make ignores it.
1467 test "$program_suffix" != NONE &&
1468   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1469 # Double any \ or $.  echo might interpret backslashes.
1470 # By default was `s,x,x', remove it if useless.
1471 cat <<\_ACEOF >conftest.sed
1472 s/[\\$]/&&/g;s/;s,x,x,$//
1473 _ACEOF
1474 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1475 rm conftest.sed
1476
1477
1478 # expand $ac_aux_dir to an absolute path
1479 am_aux_dir=`cd $ac_aux_dir && pwd`
1480
1481 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1482 # Use eval to expand $SHELL
1483 if eval "$MISSING --run true"; then
1484   am_missing_run="$MISSING --run "
1485 else
1486   am_missing_run=
1487   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1488 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1489 fi
1490
1491 for ac_prog in gawk mawk nawk awk
1492 do
1493   # Extract the first word of "$ac_prog", so it can be a program name with args.
1494 set dummy $ac_prog; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_AWK+set}" = set; then
1498   echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500   if test -n "$AWK"; then
1501   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506   IFS=$as_save_IFS
1507   test -z "$as_dir" && as_dir=.
1508   for ac_exec_ext in '' $ac_executable_extensions; do
1509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510     ac_cv_prog_AWK="$ac_prog"
1511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512     break 2
1513   fi
1514 done
1515 done
1516
1517 fi
1518 fi
1519 AWK=$ac_cv_prog_AWK
1520 if test -n "$AWK"; then
1521   echo "$as_me:$LINENO: result: $AWK" >&5
1522 echo "${ECHO_T}$AWK" >&6
1523 else
1524   echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528   test -n "$AWK" && break
1529 done
1530
1531 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1532 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1533 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1534 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1535   echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537   cat >conftest.make <<\_ACEOF
1538 all:
1539         @echo 'ac_maketemp="$(MAKE)"'
1540 _ACEOF
1541 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1542 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1543 if test -n "$ac_maketemp"; then
1544   eval ac_cv_prog_make_${ac_make}_set=yes
1545 else
1546   eval ac_cv_prog_make_${ac_make}_set=no
1547 fi
1548 rm -f conftest.make
1549 fi
1550 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1551   echo "$as_me:$LINENO: result: yes" >&5
1552 echo "${ECHO_T}yes" >&6
1553   SET_MAKE=
1554 else
1555   echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557   SET_MAKE="MAKE=${MAKE-make}"
1558 fi
1559
1560 rm -rf .tst 2>/dev/null
1561 mkdir .tst 2>/dev/null
1562 if test -d .tst; then
1563   am__leading_dot=.
1564 else
1565   am__leading_dot=_
1566 fi
1567 rmdir .tst 2>/dev/null
1568
1569  # test to see if srcdir already configured
1570 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1571    test -f $srcdir/config.status; then
1572   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1573 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1574    { (exit 1); exit 1; }; }
1575 fi
1576
1577 # test whether we have cygpath
1578 if test -z "$CYGPATH_W"; then
1579   if (cygpath --version) >/dev/null 2>/dev/null; then
1580     CYGPATH_W='cygpath -w'
1581   else
1582     CYGPATH_W=echo
1583   fi
1584 fi
1585
1586
1587 # Define the identity of the package.
1588  PACKAGE=muttng
1589  VERSION=$mutt_cv_version
1590
1591
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE "$PACKAGE"
1594 _ACEOF
1595
1596
1597 cat >>confdefs.h <<_ACEOF
1598 #define VERSION "$VERSION"
1599 _ACEOF
1600
1601 # Some tools Automake needs.
1602
1603 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1604
1605
1606 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1607
1608
1609 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1610
1611
1612 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1613
1614
1615 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1616
1617
1618 AMTAR=${AMTAR-"${am_missing_run}tar"}
1619
1620 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1621
1622 # Installed binaries are usually stripped using `strip' when the user
1623 # run `make install-strip'.  However `strip' might not be the right
1624 # tool to use in cross-compilation environments, therefore Automake
1625 # will honor the `STRIP' environment variable to overrule this program.
1626 if test "$cross_compiling" != no; then
1627   if test -n "$ac_tool_prefix"; then
1628   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1629 set dummy ${ac_tool_prefix}strip; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_STRIP+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   if test -n "$STRIP"; then
1636   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1637 else
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   for ac_exec_ext in '' $ac_executable_extensions; do
1644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647     break 2
1648   fi
1649 done
1650 done
1651
1652 fi
1653 fi
1654 STRIP=$ac_cv_prog_STRIP
1655 if test -n "$STRIP"; then
1656   echo "$as_me:$LINENO: result: $STRIP" >&5
1657 echo "${ECHO_T}$STRIP" >&6
1658 else
1659   echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1661 fi
1662
1663 fi
1664 if test -z "$ac_cv_prog_STRIP"; then
1665   ac_ct_STRIP=$STRIP
1666   # Extract the first word of "strip", so it can be a program name with args.
1667 set dummy strip; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   if test -n "$ac_ct_STRIP"; then
1674   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1675 else
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 for as_dir in $PATH
1678 do
1679   IFS=$as_save_IFS
1680   test -z "$as_dir" && as_dir=.
1681   for ac_exec_ext in '' $ac_executable_extensions; do
1682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683     ac_cv_prog_ac_ct_STRIP="strip"
1684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685     break 2
1686   fi
1687 done
1688 done
1689
1690   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1691 fi
1692 fi
1693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1694 if test -n "$ac_ct_STRIP"; then
1695   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1696 echo "${ECHO_T}$ac_ct_STRIP" >&6
1697 else
1698   echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 fi
1701
1702   STRIP=$ac_ct_STRIP
1703 else
1704   STRIP="$ac_cv_prog_STRIP"
1705 fi
1706
1707 fi
1708 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1709
1710 # We need awk for the "check" target.  The system "awk" is bad on
1711 # some platforms.
1712
1713
1714
1715
1716
1717
1718 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"
1719
1720 # Make sure we can run config.sub.
1721 $ac_config_sub sun4 >/dev/null 2>&1 ||
1722   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1723 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1724    { (exit 1); exit 1; }; }
1725
1726 echo "$as_me:$LINENO: checking build system type" >&5
1727 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1728 if test "${ac_cv_build+set}" = set; then
1729   echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731   ac_cv_build_alias=$build_alias
1732 test -z "$ac_cv_build_alias" &&
1733   ac_cv_build_alias=`$ac_config_guess`
1734 test -z "$ac_cv_build_alias" &&
1735   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1736 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1737    { (exit 1); exit 1; }; }
1738 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1739   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1740 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1741    { (exit 1); exit 1; }; }
1742
1743 fi
1744 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1745 echo "${ECHO_T}$ac_cv_build" >&6
1746 build=$ac_cv_build
1747 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1748 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1749 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1750
1751
1752 echo "$as_me:$LINENO: checking host system type" >&5
1753 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1754 if test "${ac_cv_host+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   ac_cv_host_alias=$host_alias
1758 test -z "$ac_cv_host_alias" &&
1759   ac_cv_host_alias=$ac_cv_build_alias
1760 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1761   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1762 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1763    { (exit 1); exit 1; }; }
1764
1765 fi
1766 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1767 echo "${ECHO_T}$ac_cv_host" >&6
1768 host=$ac_cv_host
1769 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1770 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1771 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1772
1773
1774
1775 echo "$as_me:$LINENO: checking for prefix" >&5
1776 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1777 if test x$prefix = xNONE; then
1778         mutt_cv_prefix=$ac_default_prefix
1779 else
1780         mutt_cv_prefix=$prefix
1781 fi
1782 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1783 echo "${ECHO_T}$mutt_cv_prefix" >&6
1784
1785 ac_ext=c
1786 ac_cpp='$CPP $CPPFLAGS'
1787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790 if test -n "$ac_tool_prefix"; then
1791   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_CC+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   if test -n "$CC"; then
1799   ac_cv_prog_CC="$CC" # Let the user override the test.
1800 else
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804   IFS=$as_save_IFS
1805   test -z "$as_dir" && as_dir=.
1806   for ac_exec_ext in '' $ac_executable_extensions; do
1807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810     break 2
1811   fi
1812 done
1813 done
1814
1815 fi
1816 fi
1817 CC=$ac_cv_prog_CC
1818 if test -n "$CC"; then
1819   echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1821 else
1822   echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826 fi
1827 if test -z "$ac_cv_prog_CC"; then
1828   ac_ct_CC=$CC
1829   # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   if test -n "$ac_ct_CC"; then
1837   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844   for ac_exec_ext in '' $ac_executable_extensions; do
1845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846     ac_cv_prog_ac_ct_CC="gcc"
1847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848     break 2
1849   fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1856 if test -n "$ac_ct_CC"; then
1857   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1858 echo "${ECHO_T}$ac_ct_CC" >&6
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864   CC=$ac_ct_CC
1865 else
1866   CC="$ac_cv_prog_CC"
1867 fi
1868
1869 if test -z "$CC"; then
1870   if test -n "$ac_tool_prefix"; then
1871   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}cc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$CC"; then
1879   ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_CC="${ac_tool_prefix}cc"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899   echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906 fi
1907 if test -z "$ac_cv_prog_CC"; then
1908   ac_ct_CC=$CC
1909   # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$ac_ct_CC"; then
1917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_ac_ct_CC="cc"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944   CC=$ac_ct_CC
1945 else
1946   CC="$ac_cv_prog_CC"
1947 fi
1948
1949 fi
1950 if test -z "$CC"; then
1951   # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$CC"; then
1959   ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else
1961   ac_prog_rejected=no
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965   IFS=$as_save_IFS
1966   test -z "$as_dir" && as_dir=.
1967   for ac_exec_ext in '' $ac_executable_extensions; do
1968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1970        ac_prog_rejected=yes
1971        continue
1972      fi
1973     ac_cv_prog_CC="cc"
1974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979
1980 if test $ac_prog_rejected = yes; then
1981   # We found a bogon in the path, so make sure we never use it.
1982   set dummy $ac_cv_prog_CC
1983   shift
1984   if test $# != 0; then
1985     # We chose a different compiler from the bogus one.
1986     # However, it has the same basename, so the bogon will be chosen
1987     # first if we set CC to just the basename; use the full file name.
1988     shift
1989     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1990   fi
1991 fi
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1998 else
1999   echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2001 fi
2002
2003 fi
2004 if test -z "$CC"; then
2005   if test -n "$ac_tool_prefix"; then
2006   for ac_prog in cl
2007   do
2008     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$CC"; then
2016   ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 CC=$ac_cv_prog_CC
2035 if test -n "$CC"; then
2036   echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043     test -n "$CC" && break
2044   done
2045 fi
2046 if test -z "$CC"; then
2047   ac_ct_CC=$CC
2048   for ac_prog in cl
2049 do
2050   # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$ac_ct_CC"; then
2058   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_ac_ct_CC="$ac_prog"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085   test -n "$ac_ct_CC" && break
2086 done
2087
2088   CC=$ac_ct_CC
2089 fi
2090
2091 fi
2092
2093
2094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&2;}
2098    { (exit 1); exit 1; }; }
2099
2100 # Provide some information about the compiler.
2101 echo "$as_me:$LINENO:" \
2102      "checking for C compiler version" >&5
2103 ac_compiler=`set X $ac_compile; echo $2`
2104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2105   (eval $ac_compiler --version </dev/null >&5) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2110   (eval $ac_compiler -v </dev/null >&5) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2115   (eval $ac_compiler -V </dev/null >&5) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2122 /* confdefs.h.  */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h.  */
2127
2128 int
2129 main ()
2130 {
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2140 # of exeext.
2141 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2142 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2145   (eval $ac_link_default) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   # Find the output, starting from the most likely.  This scheme is
2150 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2151 # resort.
2152
2153 # Be careful to initialize this variable, since it used to be cached.
2154 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2155 ac_cv_exeext=
2156 # b.out is created by i960 compilers.
2157 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2158 do
2159   test -f "$ac_file" || continue
2160   case $ac_file in
2161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2162         ;;
2163     conftest.$ac_ext )
2164         # This is the source file.
2165         ;;
2166     [ab].out )
2167         # We found the default executable, but exeext='' is most
2168         # certainly right.
2169         break;;
2170     *.* )
2171         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172         # FIXME: I believe we export ac_cv_exeext for Libtool,
2173         # but it would be cool to find out if it's true.  Does anybody
2174         # maintain Libtool? --akim.
2175         export ac_cv_exeext
2176         break;;
2177     * )
2178         break;;
2179   esac
2180 done
2181 else
2182   echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&2;}
2189    { (exit 77); exit 77; }; }
2190 fi
2191
2192 ac_exeext=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
2195
2196 # Check the compiler produces executables we can run.  If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2199 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2200 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2201 # If not cross compiling, check that we can run a simple program.
2202 if test "$cross_compiling" != yes; then
2203   if { ac_try='./$ac_file'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; }; then
2209     cross_compiling=no
2210   else
2211     if test "$cross_compiling" = maybe; then
2212         cross_compiling=yes
2213     else
2214         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot run C compiled programs.
2218 If you meant to cross compile, use \`--host'.
2219 See \`config.log' for more details." >&2;}
2220    { (exit 1); exit 1; }; }
2221     fi
2222   fi
2223 fi
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2226
2227 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2228 ac_clean_files=$ac_clean_files_save
2229 # Check the compiler produces executables we can run.  If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2232 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2233 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2234 echo "${ECHO_T}$cross_compiling" >&6
2235
2236 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2237 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239   (eval $ac_link) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; then
2243   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2244 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2245 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 # `rm'.
2247 for ac_file in conftest.exe conftest conftest.*; do
2248   test -f "$ac_file" || continue
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2251     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252           export ac_cv_exeext
2253           break;;
2254     * ) break;;
2255   esac
2256 done
2257 else
2258   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&2;}
2262    { (exit 1); exit 1; }; }
2263 fi
2264
2265 rm -f conftest$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2267 echo "${ECHO_T}$ac_cv_exeext" >&6
2268
2269 rm -f conftest.$ac_ext
2270 EXEEXT=$ac_cv_exeext
2271 ac_exeext=$EXEEXT
2272 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2273 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2274 if test "${ac_cv_objext+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284
2285 int
2286 main ()
2287 {
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 rm -f conftest.o conftest.obj
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295   (eval $ac_compile) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; then
2299   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2300   case $ac_file in
2301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2302     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2303        break;;
2304   esac
2305 done
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2313 See \`config.log' for more details." >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316
2317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2318 fi
2319 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2320 echo "${ECHO_T}$ac_cv_objext" >&6
2321 OBJEXT=$ac_cv_objext
2322 ac_objext=$OBJEXT
2323 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   cat >conftest.$ac_ext <<_ACEOF
2329 #line $LINENO "configure"
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335
2336 int
2337 main ()
2338 {
2339 #ifndef __GNUC__
2340        choke me
2341 #endif
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349   (eval $ac_compile) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } &&
2353          { ac_try='test -s conftest.$ac_objext'
2354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355   (eval $ac_try) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; }; then
2359   ac_compiler_gnu=yes
2360 else
2361   echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 ac_compiler_gnu=no
2365 fi
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2368
2369 fi
2370 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2371 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2372 GCC=`test $ac_compiler_gnu = yes && echo yes`
2373 ac_test_CFLAGS=${CFLAGS+set}
2374 ac_save_CFLAGS=$CFLAGS
2375 CFLAGS="-g"
2376 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2378 if test "${ac_cv_prog_cc_g+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388
2389 int
2390 main ()
2391 {
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   ac_cv_prog_cc_g=yes
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 ac_cv_prog_cc_g=no
2415 fi
2416 rm -f conftest.$ac_objext conftest.$ac_ext
2417 fi
2418 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2419 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2420 if test "$ac_test_CFLAGS" = set; then
2421   CFLAGS=$ac_save_CFLAGS
2422 elif test $ac_cv_prog_cc_g = yes; then
2423   if test "$GCC" = yes; then
2424     CFLAGS="-g -O2"
2425   else
2426     CFLAGS="-g"
2427   fi
2428 else
2429   if test "$GCC" = yes; then
2430     CFLAGS="-O2"
2431   else
2432     CFLAGS=
2433   fi
2434 fi
2435 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2436 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2437 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   ac_cv_prog_cc_stdc=no
2441 ac_save_CC=$CC
2442 cat >conftest.$ac_ext <<_ACEOF
2443 #line $LINENO "configure"
2444 /* confdefs.h.  */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h.  */
2449 #include <stdarg.h>
2450 #include <stdio.h>
2451 #include <sys/types.h>
2452 #include <sys/stat.h>
2453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2454 struct buf { int x; };
2455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2456 static char *e (p, i)
2457      char **p;
2458      int i;
2459 {
2460   return p[i];
2461 }
2462 static char *f (char * (*g) (char **, int), char **p, ...)
2463 {
2464   char *s;
2465   va_list v;
2466   va_start (v,p);
2467   s = g (p, va_arg (v,int));
2468   va_end (v);
2469   return s;
2470 }
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2475 int argc;
2476 char **argv;
2477 int
2478 main ()
2479 {
2480 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX                   -qlanglvl=ansi
2488 # Ultrix and OSF/1      -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2491 # SVR4                  -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 do
2494   CC="$ac_save_CC $ac_arg"
2495   rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497   (eval $ac_compile) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); } &&
2501          { ac_try='test -s conftest.$ac_objext'
2502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503   (eval $ac_try) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; }; then
2507   ac_cv_prog_cc_stdc=$ac_arg
2508 break
2509 else
2510   echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 fi
2514 rm -f conftest.$ac_objext
2515 done
2516 rm -f conftest.$ac_ext conftest.$ac_objext
2517 CC=$ac_save_CC
2518
2519 fi
2520
2521 case "x$ac_cv_prog_cc_stdc" in
2522   x|xno)
2523     echo "$as_me:$LINENO: result: none needed" >&5
2524 echo "${ECHO_T}none needed" >&6 ;;
2525   *)
2526     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2527 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2528     CC="$CC $ac_cv_prog_cc_stdc" ;;
2529 esac
2530
2531 # Some people use a C++ compiler to compile C.  Since we use `exit',
2532 # in C++ we need to declare it.  In case someone uses the same compiler
2533 # for both compiling C and C++ we need to have the C++ compiler decide
2534 # the declaration of exit, since it's the most demanding environment.
2535 cat >conftest.$ac_ext <<_ACEOF
2536 #ifndef __cplusplus
2537   choke me
2538 #endif
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -s conftest.$ac_objext'
2547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548   (eval $ac_try) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; }; then
2552   for ac_declaration in \
2553    ''\
2554    '#include <stdlib.h>' \
2555    'extern "C" void std::exit (int) throw (); using std::exit;' \
2556    'extern "C" void std::exit (int); using std::exit;' \
2557    'extern "C" void exit (int) throw ();' \
2558    'extern "C" void exit (int);' \
2559    'void exit (int);'
2560 do
2561   cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568 #include <stdlib.h>
2569 $ac_declaration
2570 int
2571 main ()
2572 {
2573 exit (42);
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580   (eval $ac_compile) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590   :
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 continue
2596 fi
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2598   cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605 $ac_declaration
2606 int
2607 main ()
2608 {
2609 exit (42);
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616   (eval $ac_compile) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   break
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 fi
2632 rm -f conftest.$ac_objext conftest.$ac_ext
2633 done
2634 rm -f conftest*
2635 if test -n "$ac_declaration"; then
2636   echo '#ifdef __cplusplus' >>confdefs.h
2637   echo $ac_declaration      >>confdefs.h
2638   echo '#endif'             >>confdefs.h
2639 fi
2640
2641 else
2642   echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 fi
2646 rm -f conftest.$ac_objext conftest.$ac_ext
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 DEPDIR="${am__leading_dot}deps"
2653
2654           ac_config_commands="$ac_config_commands depfiles"
2655
2656
2657 am_make=${MAKE-make}
2658 cat > confinc << 'END'
2659 am__doit:
2660         @echo done
2661 .PHONY: am__doit
2662 END
2663 # If we don't find an include directive, just comment out the code.
2664 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2665 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2666 am__include="#"
2667 am__quote=
2668 _am_result=none
2669 # First try GNU make style include.
2670 echo "include confinc" > confmf
2671 # We grep out `Entering directory' and `Leaving directory'
2672 # messages which can occur if `w' ends up in MAKEFLAGS.
2673 # In particular we don't look at `^make:' because GNU make might
2674 # be invoked under some other name (usually "gmake"), in which
2675 # case it prints its new name instead of `make'.
2676 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2677    am__include=include
2678    am__quote=
2679    _am_result=GNU
2680 fi
2681 # Now try BSD make style include.
2682 if test "$am__include" = "#"; then
2683    echo '.include "confinc"' > confmf
2684    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2685       am__include=.include
2686       am__quote="\""
2687       _am_result=BSD
2688    fi
2689 fi
2690
2691
2692 echo "$as_me:$LINENO: result: $_am_result" >&5
2693 echo "${ECHO_T}$_am_result" >&6
2694 rm -f confinc confmf
2695
2696 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2697 if test "${enable_dependency_tracking+set}" = set; then
2698   enableval="$enable_dependency_tracking"
2699
2700 fi;
2701 if test "x$enable_dependency_tracking" != xno; then
2702   am_depcomp="$ac_aux_dir/depcomp"
2703   AMDEPBACKSLASH='\'
2704 fi
2705
2706
2707 if test "x$enable_dependency_tracking" != xno; then
2708   AMDEP_TRUE=
2709   AMDEP_FALSE='#'
2710 else
2711   AMDEP_TRUE='#'
2712   AMDEP_FALSE=
2713 fi
2714
2715
2716
2717
2718 depcc="$CC"   am_compiler_list=
2719
2720 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2721 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2722 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2723   echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2726   # We make a subdir and do the tests there.  Otherwise we can end up
2727   # making bogus files that we don't know about and never remove.  For
2728   # instance it was reported that on HP-UX the gcc test will end up
2729   # making a dummy file named `D' -- because `-MD' means `put the output
2730   # in D'.
2731   mkdir conftest.dir
2732   # Copy depcomp to subdir because otherwise we won't find it if we're
2733   # using a relative directory.
2734   cp "$am_depcomp" conftest.dir
2735   cd conftest.dir
2736   # We will build objects and dependencies in a subdirectory because
2737   # it helps to detect inapplicable dependency modes.  For instance
2738   # both Tru64's cc and ICC support -MD to output dependencies as a
2739   # side effect of compilation, but ICC will put the dependencies in
2740   # the current directory while Tru64 will put them in the object
2741   # directory.
2742   mkdir sub
2743
2744   am_cv_CC_dependencies_compiler_type=none
2745   if test "$am_compiler_list" = ""; then
2746      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2747   fi
2748   for depmode in $am_compiler_list; do
2749     # Setup a source with many dependencies, because some compilers
2750     # like to wrap large dependency lists on column 80 (with \), and
2751     # we should not choose a depcomp mode which is confused by this.
2752     #
2753     # We need to recreate these files for each test, as the compiler may
2754     # overwrite some of them when testing with obscure command lines.
2755     # This happens at least with the AIX C compiler.
2756     : > sub/conftest.c
2757     for i in 1 2 3 4 5 6; do
2758       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2759       : > sub/conftst$i.h
2760     done
2761     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2762
2763     case $depmode in
2764     nosideeffect)
2765       # after this tag, mechanisms are not by side-effect, so they'll
2766       # only be used when explicitly requested
2767       if test "x$enable_dependency_tracking" = xyes; then
2768         continue
2769       else
2770         break
2771       fi
2772       ;;
2773     none) break ;;
2774     esac
2775     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2776     # mode.  It turns out that the SunPro C++ compiler does not properly
2777     # handle `-M -o', and we need to detect this.
2778     if depmode=$depmode \
2779        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2780        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2781        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2782          >/dev/null 2>conftest.err &&
2783        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2784        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2785        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2786       # icc doesn't choke on unknown options, it will just issue warnings
2787       # (even with -Werror).  So we grep stderr for any message
2788       # that says an option was ignored.
2789       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2790         am_cv_CC_dependencies_compiler_type=$depmode
2791         break
2792       fi
2793     fi
2794   done
2795
2796   cd ..
2797   rm -rf conftest.dir
2798 else
2799   am_cv_CC_dependencies_compiler_type=none
2800 fi
2801
2802 fi
2803 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2804 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2806
2807
2808
2809 if
2810   test "x$enable_dependency_tracking" != xno \
2811   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2812   am__fastdepCC_TRUE=
2813   am__fastdepCC_FALSE='#'
2814 else
2815   am__fastdepCC_TRUE='#'
2816   am__fastdepCC_FALSE=
2817 fi
2818
2819
2820
2821
2822         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2823 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2824 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2825   echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827   ac_check_lib_save_LIBS=$LIBS
2828 LIBS="-lcposix  $LIBS"
2829 cat >conftest.$ac_ext <<_ACEOF
2830 #line $LINENO "configure"
2831 /* confdefs.h.  */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h.  */
2836
2837 /* Override any gcc2 internal prototype to avoid an error.  */
2838 #ifdef __cplusplus
2839 extern "C"
2840 #endif
2841 /* We use char because int might match the return type of a gcc2
2842    builtin and then its argument prototype would still apply.  */
2843 char strerror ();
2844 int
2845 main ()
2846 {
2847 strerror ();
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext conftest$ac_exeext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2854   (eval $ac_link) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } &&
2858          { ac_try='test -s conftest$ac_exeext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   ac_cv_lib_cposix_strerror=yes
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 ac_cv_lib_cposix_strerror=no
2870 fi
2871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2872 LIBS=$ac_check_lib_save_LIBS
2873 fi
2874 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2875 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2876 if test $ac_cv_lib_cposix_strerror = yes; then
2877   LIBS="$LIBS -lcposix"
2878 fi
2879
2880
2881
2882
2883
2884
2885 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2886 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2887 if test "${am_cv_prog_cc_stdc+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   am_cv_prog_cc_stdc=no
2891 ac_save_CC="$CC"
2892 # Don't try gcc -ansi; that turns off useful extensions and
2893 # breaks some systems' header files.
2894 # AIX                   -qlanglvl=ansi
2895 # Ultrix and OSF/1      -std1
2896 # HP-UX 10.20 and later -Ae
2897 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2898 # SVR4                  -Xc -D__EXTENSIONS__
2899 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900 do
2901   CC="$ac_save_CC $ac_arg"
2902   cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 #include <stdarg.h>
2910 #include <stdio.h>
2911 #include <sys/types.h>
2912 #include <sys/stat.h>
2913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2914 struct buf { int x; };
2915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916 static char *e (p, i)
2917      char **p;
2918      int i;
2919 {
2920   return p[i];
2921 }
2922 static char *f (char * (*g) (char **, int), char **p, ...)
2923 {
2924   char *s;
2925   va_list v;
2926   va_start (v,p);
2927   s = g (p, va_arg (v,int));
2928   va_end (v);
2929   return s;
2930 }
2931 int test (int i, double x);
2932 struct s1 {int (*f) (int a);};
2933 struct s2 {int (*f) (double a);};
2934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2935 int argc;
2936 char **argv;
2937
2938 int
2939 main ()
2940 {
2941
2942 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2943
2944   ;
2945   return 0;
2946 }
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950   (eval $ac_compile) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } &&
2954          { ac_try='test -s conftest.$ac_objext'
2955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956   (eval $ac_try) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; }; then
2960   am_cv_prog_cc_stdc="$ac_arg"; break
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 fi
2966 rm -f conftest.$ac_objext conftest.$ac_ext
2967 done
2968 CC="$ac_save_CC"
2969
2970 fi
2971
2972 if test -z "$am_cv_prog_cc_stdc"; then
2973   echo "$as_me:$LINENO: result: none needed" >&5
2974 echo "${ECHO_T}none needed" >&6
2975 else
2976   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2977 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2978 fi
2979 case "x$am_cv_prog_cc_stdc" in
2980   x|xno) ;;
2981   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2982 esac
2983
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2990 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2991 # On Suns, sometimes $CPP names a directory.
2992 if test -n "$CPP" && test -d "$CPP"; then
2993   CPP=
2994 fi
2995 if test -z "$CPP"; then
2996   if test "${ac_cv_prog_CPP+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999       # Double quotes because CPP needs to be expanded
3000     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3001     do
3002       ac_preproc_ok=false
3003 for ac_c_preproc_warn_flag in '' yes
3004 do
3005   # Use a header file that comes with gcc, so configuring glibc
3006   # with a fresh cross-compiler works.
3007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008   # <limits.h> exists even on freestanding compilers.
3009   # On the NeXT, cc -E runs the code through the compiler's parser,
3010   # not just through cpp. "Syntax error" is here to catch this case.
3011   cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018 #ifdef __STDC__
3019 # include <limits.h>
3020 #else
3021 # include <assert.h>
3022 #endif
3023                      Syntax error
3024 _ACEOF
3025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027   ac_status=$?
3028   grep -v '^ *+' conftest.er1 >conftest.err
3029   rm -f conftest.er1
3030   cat conftest.err >&5
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); } >/dev/null; then
3033   if test -s conftest.err; then
3034     ac_cpp_err=$ac_c_preproc_warn_flag
3035   else
3036     ac_cpp_err=
3037   fi
3038 else
3039   ac_cpp_err=yes
3040 fi
3041 if test -z "$ac_cpp_err"; then
3042   :
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047   # Broken: fails on valid input.
3048 continue
3049 fi
3050 rm -f conftest.err conftest.$ac_ext
3051
3052   # OK, works on sane cases.  Now check whether non-existent headers
3053   # can be detected and how.
3054   cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 #include <ac_nonexistent.h>
3062 _ACEOF
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } >/dev/null; then
3071   if test -s conftest.err; then
3072     ac_cpp_err=$ac_c_preproc_warn_flag
3073   else
3074     ac_cpp_err=
3075   fi
3076 else
3077   ac_cpp_err=yes
3078 fi
3079 if test -z "$ac_cpp_err"; then
3080   # Broken: success on invalid input.
3081 continue
3082 else
3083   echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086   # Passes both tests.
3087 ac_preproc_ok=:
3088 break
3089 fi
3090 rm -f conftest.err conftest.$ac_ext
3091
3092 done
3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3094 rm -f conftest.err conftest.$ac_ext
3095 if $ac_preproc_ok; then
3096   break
3097 fi
3098
3099     done
3100     ac_cv_prog_CPP=$CPP
3101
3102 fi
3103   CPP=$ac_cv_prog_CPP
3104 else
3105   ac_cv_prog_CPP=$CPP
3106 fi
3107 echo "$as_me:$LINENO: result: $CPP" >&5
3108 echo "${ECHO_T}$CPP" >&6
3109 ac_preproc_ok=false
3110 for ac_c_preproc_warn_flag in '' yes
3111 do
3112   # Use a header file that comes with gcc, so configuring glibc
3113   # with a fresh cross-compiler works.
3114   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3115   # <limits.h> exists even on freestanding compilers.
3116   # On the NeXT, cc -E runs the code through the compiler's parser,
3117   # not just through cpp. "Syntax error" is here to catch this case.
3118   cat >conftest.$ac_ext <<_ACEOF
3119 #line $LINENO "configure"
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125 #ifdef __STDC__
3126 # include <limits.h>
3127 #else
3128 # include <assert.h>
3129 #endif
3130                      Syntax error
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } >/dev/null; then
3140   if test -s conftest.err; then
3141     ac_cpp_err=$ac_c_preproc_warn_flag
3142   else
3143     ac_cpp_err=
3144   fi
3145 else
3146   ac_cpp_err=yes
3147 fi
3148 if test -z "$ac_cpp_err"; then
3149   :
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154   # Broken: fails on valid input.
3155 continue
3156 fi
3157 rm -f conftest.err conftest.$ac_ext
3158
3159   # OK, works on sane cases.  Now check whether non-existent headers
3160   # can be detected and how.
3161   cat >conftest.$ac_ext <<_ACEOF
3162 #line $LINENO "configure"
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <ac_nonexistent.h>
3169 _ACEOF
3170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } >/dev/null; then
3178   if test -s conftest.err; then
3179     ac_cpp_err=$ac_c_preproc_warn_flag
3180   else
3181     ac_cpp_err=
3182   fi
3183 else
3184   ac_cpp_err=yes
3185 fi
3186 if test -z "$ac_cpp_err"; then
3187   # Broken: success on invalid input.
3188 continue
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193   # Passes both tests.
3194 ac_preproc_ok=:
3195 break
3196 fi
3197 rm -f conftest.err conftest.$ac_ext
3198
3199 done
3200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3201 rm -f conftest.err conftest.$ac_ext
3202 if $ac_preproc_ok; then
3203   :
3204 else
3205   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3208 See \`config.log' for more details." >&2;}
3209    { (exit 1); exit 1; }; }
3210 fi
3211
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217
3218
3219 echo "$as_me:$LINENO: checking for egrep" >&5
3220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3221 if test "${ac_cv_prog_egrep+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3225     then ac_cv_prog_egrep='grep -E'
3226     else ac_cv_prog_egrep='egrep'
3227     fi
3228 fi
3229 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3231  EGREP=$ac_cv_prog_egrep
3232
3233
3234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3245                   inttypes.h stdint.h unistd.h
3246 do
3247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3248 echo "$as_me:$LINENO: checking for $ac_header" >&5
3249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   cat >conftest.$ac_ext <<_ACEOF
3254 #line $LINENO "configure"
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260 $ac_includes_default
3261
3262 #include <$ac_header>
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266   (eval $ac_compile) 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); } &&
3270          { ac_try='test -s conftest.$ac_objext'
3271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272   (eval $ac_try) 2>&5
3273   ac_status=$?
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }; }; then
3276   eval "$as_ac_Header=yes"
3277 else
3278   echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 eval "$as_ac_Header=no"
3282 fi
3283 rm -f conftest.$ac_objext conftest.$ac_ext
3284 fi
3285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3288   cat >>confdefs.h <<_ACEOF
3289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3290 _ACEOF
3291
3292 fi
3293
3294 done
3295
3296
3297
3298
3299 echo "$as_me:$LINENO: checking for function prototypes" >&5
3300 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3301 if test "$am_cv_prog_cc_stdc" != no; then
3302   echo "$as_me:$LINENO: result: yes" >&5
3303 echo "${ECHO_T}yes" >&6
3304
3305 cat >>confdefs.h <<\_ACEOF
3306 #define PROTOTYPES 1
3307 _ACEOF
3308
3309   U= ANSI2KNR=
3310 else
3311   echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3313   U=_ ANSI2KNR=./ansi2knr
3314 fi
3315 # Ensure some checks needed by ansi2knr itself.
3316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3318 if test "${ac_cv_header_stdc+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   cat >conftest.$ac_ext <<_ACEOF
3322 #line $LINENO "configure"
3323 /* confdefs.h.  */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h.  */
3328 #include <stdlib.h>
3329 #include <stdarg.h>
3330 #include <string.h>
3331 #include <float.h>
3332
3333 int
3334 main ()
3335 {
3336
3337   ;
3338   return 0;
3339 }
3340 _ACEOF
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343   (eval $ac_compile) 2>&5
3344   ac_status=$?
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -s conftest.$ac_objext'
3348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349   (eval $ac_try) 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; }; then
3353   ac_cv_header_stdc=yes
3354 else
3355   echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 ac_cv_header_stdc=no
3359 fi
3360 rm -f conftest.$ac_objext conftest.$ac_ext
3361
3362 if test $ac_cv_header_stdc = yes; then
3363   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3364   cat >conftest.$ac_ext <<_ACEOF
3365 #line $LINENO "configure"
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #include <string.h>
3372
3373 _ACEOF
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375   $EGREP "memchr" >/dev/null 2>&1; then
3376   :
3377 else
3378   ac_cv_header_stdc=no
3379 fi
3380 rm -f conftest*
3381
3382 fi
3383
3384 if test $ac_cv_header_stdc = yes; then
3385   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3386   cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #include <stdlib.h>
3394
3395 _ACEOF
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397   $EGREP "free" >/dev/null 2>&1; then
3398   :
3399 else
3400   ac_cv_header_stdc=no
3401 fi
3402 rm -f conftest*
3403
3404 fi
3405
3406 if test $ac_cv_header_stdc = yes; then
3407   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3408   if test "$cross_compiling" = yes; then
3409   :
3410 else
3411   cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include <ctype.h>
3419 #if ((' ' & 0x0FF) == 0x020)
3420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3422 #else
3423 # define ISLOWER(c) \
3424                    (('a' <= (c) && (c) <= 'i') \
3425                      || ('j' <= (c) && (c) <= 'r') \
3426                      || ('s' <= (c) && (c) <= 'z'))
3427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3428 #endif
3429
3430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3431 int
3432 main ()
3433 {
3434   int i;
3435   for (i = 0; i < 256; i++)
3436     if (XOR (islower (i), ISLOWER (i))
3437         || toupper (i) != TOUPPER (i))
3438       exit(2);
3439   exit (0);
3440 }
3441 _ACEOF
3442 rm -f conftest$ac_exeext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3444   (eval $ac_link) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449   (eval $ac_try) 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }; }; then
3453   :
3454 else
3455   echo "$as_me: program exited with status $ac_status" >&5
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 ( exit $ac_status )
3460 ac_cv_header_stdc=no
3461 fi
3462 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3463 fi
3464 fi
3465 fi
3466 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3467 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3468 if test $ac_cv_header_stdc = yes; then
3469
3470 cat >>confdefs.h <<\_ACEOF
3471 #define STDC_HEADERS 1
3472 _ACEOF
3473
3474 fi
3475
3476
3477 for ac_header in string.h
3478 do
3479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3481   echo "$as_me:$LINENO: checking for $ac_header" >&5
3482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 fi
3486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3488 else
3489   # Is the header compilable?
3490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3492 cat >conftest.$ac_ext <<_ACEOF
3493 #line $LINENO "configure"
3494 /* confdefs.h.  */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h.  */
3499 $ac_includes_default
3500 #include <$ac_header>
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504   (eval $ac_compile) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } &&
3508          { ac_try='test -s conftest.$ac_objext'
3509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510   (eval $ac_try) 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); }; }; then
3514   ac_header_compiler=yes
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 ac_header_compiler=no
3520 fi
3521 rm -f conftest.$ac_objext conftest.$ac_ext
3522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3523 echo "${ECHO_T}$ac_header_compiler" >&6
3524
3525 # Is the header present?
3526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3529 #line $LINENO "configure"
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535 #include <$ac_header>
3536 _ACEOF
3537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } >/dev/null; then
3545   if test -s conftest.err; then
3546     ac_cpp_err=$ac_c_preproc_warn_flag
3547   else
3548     ac_cpp_err=
3549   fi
3550 else
3551   ac_cpp_err=yes
3552 fi
3553 if test -z "$ac_cpp_err"; then
3554   ac_header_preproc=yes
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559   ac_header_preproc=no
3560 fi
3561 rm -f conftest.err conftest.$ac_ext
3562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3563 echo "${ECHO_T}$ac_header_preproc" >&6
3564
3565 # So?  What about this header?
3566 case $ac_header_compiler:$ac_header_preproc in
3567   yes:no )
3568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3572     (
3573       cat <<\_ASBOX
3574 ## ------------------------------------ ##
3575 ## Report this to bug-autoconf@gnu.org. ##
3576 ## ------------------------------------ ##
3577 _ASBOX
3578     ) |
3579       sed "s/^/$as_me: WARNING:     /" >&2
3580     ;;
3581   no:yes )
3582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3584     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3588     (
3589       cat <<\_ASBOX
3590 ## ------------------------------------ ##
3591 ## Report this to bug-autoconf@gnu.org. ##
3592 ## ------------------------------------ ##
3593 _ASBOX
3594     ) |
3595       sed "s/^/$as_me: WARNING:     /" >&2
3596     ;;
3597 esac
3598 echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   eval "$as_ac_Header=$ac_header_preproc"
3604 fi
3605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3607
3608 fi
3609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3610   cat >>confdefs.h <<_ACEOF
3611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3612 _ACEOF
3613
3614 fi
3615
3616 done
3617
3618
3619 if test "x$U" != "x"; then
3620   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3621 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3622    { (exit 1); exit 1; }; }
3623 fi
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3630 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3631 # On Suns, sometimes $CPP names a directory.
3632 if test -n "$CPP" && test -d "$CPP"; then
3633   CPP=
3634 fi
3635 if test -z "$CPP"; then
3636   if test "${ac_cv_prog_CPP+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639       # Double quotes because CPP needs to be expanded
3640     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3641     do
3642       ac_preproc_ok=false
3643 for ac_c_preproc_warn_flag in '' yes
3644 do
3645   # Use a header file that comes with gcc, so configuring glibc
3646   # with a fresh cross-compiler works.
3647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648   # <limits.h> exists even on freestanding compilers.
3649   # On the NeXT, cc -E runs the code through the compiler's parser,
3650   # not just through cpp. "Syntax error" is here to catch this case.
3651   cat >conftest.$ac_ext <<_ACEOF
3652 #line $LINENO "configure"
3653 /* confdefs.h.  */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h.  */
3658 #ifdef __STDC__
3659 # include <limits.h>
3660 #else
3661 # include <assert.h>
3662 #endif
3663                      Syntax error
3664 _ACEOF
3665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3667   ac_status=$?
3668   grep -v '^ *+' conftest.er1 >conftest.err
3669   rm -f conftest.er1
3670   cat conftest.err >&5
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } >/dev/null; then
3673   if test -s conftest.err; then
3674     ac_cpp_err=$ac_c_preproc_warn_flag
3675   else
3676     ac_cpp_err=
3677   fi
3678 else
3679   ac_cpp_err=yes
3680 fi
3681 if test -z "$ac_cpp_err"; then
3682   :
3683 else
3684   echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687   # Broken: fails on valid input.
3688 continue
3689 fi
3690 rm -f conftest.err conftest.$ac_ext
3691
3692   # OK, works on sane cases.  Now check whether non-existent headers
3693   # can be detected and how.
3694   cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3696 /* confdefs.h.  */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h.  */
3701 #include <ac_nonexistent.h>
3702 _ACEOF
3703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } >/dev/null; then
3711   if test -s conftest.err; then
3712     ac_cpp_err=$ac_c_preproc_warn_flag
3713   else
3714     ac_cpp_err=
3715   fi
3716 else
3717   ac_cpp_err=yes
3718 fi
3719 if test -z "$ac_cpp_err"; then
3720   # Broken: success on invalid input.
3721 continue
3722 else
3723   echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726   # Passes both tests.
3727 ac_preproc_ok=:
3728 break
3729 fi
3730 rm -f conftest.err conftest.$ac_ext
3731
3732 done
3733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3734 rm -f conftest.err conftest.$ac_ext
3735 if $ac_preproc_ok; then
3736   break
3737 fi
3738
3739     done
3740     ac_cv_prog_CPP=$CPP
3741
3742 fi
3743   CPP=$ac_cv_prog_CPP
3744 else
3745   ac_cv_prog_CPP=$CPP
3746 fi
3747 echo "$as_me:$LINENO: result: $CPP" >&5
3748 echo "${ECHO_T}$CPP" >&6
3749 ac_preproc_ok=false
3750 for ac_c_preproc_warn_flag in '' yes
3751 do
3752   # Use a header file that comes with gcc, so configuring glibc
3753   # with a fresh cross-compiler works.
3754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755   # <limits.h> exists even on freestanding compilers.
3756   # On the NeXT, cc -E runs the code through the compiler's parser,
3757   # not just through cpp. "Syntax error" is here to catch this case.
3758   cat >conftest.$ac_ext <<_ACEOF
3759 #line $LINENO "configure"
3760 /* confdefs.h.  */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h.  */
3765 #ifdef __STDC__
3766 # include <limits.h>
3767 #else
3768 # include <assert.h>
3769 #endif
3770                      Syntax error
3771 _ACEOF
3772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } >/dev/null; then
3780   if test -s conftest.err; then
3781     ac_cpp_err=$ac_c_preproc_warn_flag
3782   else
3783     ac_cpp_err=
3784   fi
3785 else
3786   ac_cpp_err=yes
3787 fi
3788 if test -z "$ac_cpp_err"; then
3789   :
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794   # Broken: fails on valid input.
3795 continue
3796 fi
3797 rm -f conftest.err conftest.$ac_ext
3798
3799   # OK, works on sane cases.  Now check whether non-existent headers
3800   # can be detected and how.
3801   cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 /* confdefs.h.  */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h.  */
3808 #include <ac_nonexistent.h>
3809 _ACEOF
3810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812   ac_status=$?
3813   grep -v '^ *+' conftest.er1 >conftest.err
3814   rm -f conftest.er1
3815   cat conftest.err >&5
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } >/dev/null; then
3818   if test -s conftest.err; then
3819     ac_cpp_err=$ac_c_preproc_warn_flag
3820   else
3821     ac_cpp_err=
3822   fi
3823 else
3824   ac_cpp_err=yes
3825 fi
3826 if test -z "$ac_cpp_err"; then
3827   # Broken: success on invalid input.
3828 continue
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833   # Passes both tests.
3834 ac_preproc_ok=:
3835 break
3836 fi
3837 rm -f conftest.err conftest.$ac_ext
3838
3839 done
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then
3843   :
3844 else
3845   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3846 See \`config.log' for more details." >&5
3847 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details." >&2;}
3849    { (exit 1); exit 1; }; }
3850 fi
3851
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3859 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3861 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   cat >conftest.make <<\_ACEOF
3865 all:
3866         @echo 'ac_maketemp="$(MAKE)"'
3867 _ACEOF
3868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3869 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3870 if test -n "$ac_maketemp"; then
3871   eval ac_cv_prog_make_${ac_make}_set=yes
3872 else
3873   eval ac_cv_prog_make_${ac_make}_set=no
3874 fi
3875 rm -f conftest.make
3876 fi
3877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3878   echo "$as_me:$LINENO: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6
3880   SET_MAKE=
3881 else
3882   echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3884   SET_MAKE="MAKE=${MAKE-make}"
3885 fi
3886
3887 # Find a good install program.  We prefer a C program (faster),
3888 # so one script is as good as another.  But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # ./install, which can be erroneously created by make from ./install.sh.
3899 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3900 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3901 if test -z "$INSTALL"; then
3902 if test "${ac_cv_path_install+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908   IFS=$as_save_IFS
3909   test -z "$as_dir" && as_dir=.
3910   # Account for people who put trailing slashes in PATH elements.
3911 case $as_dir/ in
3912   ./ | .// | /cC/* | \
3913   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3914   /usr/ucb/* ) ;;
3915   *)
3916     # OSF1 and SCO ODT 3.0 have their own names for install.
3917     # Don't use installbsd from OSF since it installs stuff as root
3918     # by default.
3919     for ac_prog in ginstall scoinst install; do
3920       for ac_exec_ext in '' $ac_executable_extensions; do
3921         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3922           if test $ac_prog = install &&
3923             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3924             # AIX install.  It has an incompatible calling convention.
3925             :
3926           elif test $ac_prog = install &&
3927             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928             # program-specific install script used by HP pwplus--don't use.
3929             :
3930           else
3931             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3932             break 3
3933           fi
3934         fi
3935       done
3936     done
3937     ;;
3938 esac
3939 done
3940
3941
3942 fi
3943   if test "${ac_cv_path_install+set}" = set; then
3944     INSTALL=$ac_cv_path_install
3945   else
3946     # As a last resort, use the slow shell script.  We don't cache a
3947     # path for INSTALL within a source directory, because that will
3948     # break other packages using the cache if that directory is
3949     # removed, or if the path is relative.
3950     INSTALL=$ac_install_sh
3951   fi
3952 fi
3953 echo "$as_me:$LINENO: result: $INSTALL" >&5
3954 echo "${ECHO_T}$INSTALL" >&6
3955
3956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3957 # It thinks the first close brace ends the variable substitution.
3958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3959
3960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3961
3962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3963
3964 if test -n "$ac_tool_prefix"; then
3965   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3967 echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3969 if test "${ac_cv_prog_RANLIB+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   if test -n "$RANLIB"; then
3973   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987 done
3988
3989 fi
3990 fi
3991 RANLIB=$ac_cv_prog_RANLIB
3992 if test -n "$RANLIB"; then
3993   echo "$as_me:$LINENO: result: $RANLIB" >&5
3994 echo "${ECHO_T}$RANLIB" >&6
3995 else
3996   echo "$as_me:$LINENO: result: no" >&5
3997 echo "${ECHO_T}no" >&6
3998 fi
3999
4000 fi
4001 if test -z "$ac_cv_prog_RANLIB"; then
4002   ac_ct_RANLIB=$RANLIB
4003   # Extract the first word of "ranlib", so it can be a program name with args.
4004 set dummy ranlib; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   if test -n "$ac_ct_RANLIB"; then
4011   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_exec_ext in '' $ac_executable_extensions; do
4019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020     ac_cv_prog_ac_ct_RANLIB="ranlib"
4021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025 done
4026
4027   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4028 fi
4029 fi
4030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4031 if test -n "$ac_ct_RANLIB"; then
4032   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4033 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4034 else
4035   echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038
4039   RANLIB=$ac_ct_RANLIB
4040 else
4041   RANLIB="$ac_cv_prog_RANLIB"
4042 fi
4043
4044 if test -n "$ac_tool_prefix"; then
4045   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}ar; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_AR+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   if test -n "$AR"; then
4053   ac_cv_prog_AR="$AR" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062     ac_cv_prog_AR="${ac_tool_prefix}ar"
4063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067 done
4068
4069 fi
4070 fi
4071 AR=$ac_cv_prog_AR
4072 if test -n "$AR"; then
4073   echo "$as_me:$LINENO: result: $AR" >&5
4074 echo "${ECHO_T}$AR" >&6
4075 else
4076   echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079
4080 fi
4081 if test -z "$ac_cv_prog_AR"; then
4082   ac_ct_AR=$AR
4083   # Extract the first word of "ar", so it can be a program name with args.
4084 set dummy ar; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$ac_ct_AR"; then
4091   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100     ac_cv_prog_ac_ct_AR="ar"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106
4107   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4108 fi
4109 fi
4110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4111 if test -n "$ac_ct_AR"; then
4112   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4113 echo "${ECHO_T}$ac_ct_AR" >&6
4114 else
4115   echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4117 fi
4118
4119   AR=$ac_ct_AR
4120 else
4121   AR="$ac_cv_prog_AR"
4122 fi
4123
4124
4125 echo "$as_me:$LINENO: checking for inline" >&5
4126 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4127 if test "${ac_cv_c_inline+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   ac_cv_c_inline=no
4131 for ac_kw in inline __inline__ __inline; do
4132   cat >conftest.$ac_ext <<_ACEOF
4133 #line $LINENO "configure"
4134 /* confdefs.h.  */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h.  */
4139 #ifndef __cplusplus
4140 typedef int foo_t;
4141 static $ac_kw foo_t static_foo () {return 0; }
4142 $ac_kw foo_t foo () {return 0; }
4143 #endif
4144
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148   (eval $ac_compile) 2>&5
4149   ac_status=$?
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } &&
4152          { ac_try='test -s conftest.$ac_objext'
4153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154   (eval $ac_try) 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; }; then
4158   ac_cv_c_inline=$ac_kw; break
4159 else
4160   echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163 fi
4164 rm -f conftest.$ac_objext conftest.$ac_ext
4165 done
4166
4167 fi
4168 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4169 echo "${ECHO_T}$ac_cv_c_inline" >&6
4170 case $ac_cv_c_inline in
4171   inline | yes) ;;
4172   no)
4173 cat >>confdefs.h <<\_ACEOF
4174 #define inline
4175 _ACEOF
4176  ;;
4177   *)  cat >>confdefs.h <<_ACEOF
4178 #define inline $ac_cv_c_inline
4179 _ACEOF
4180  ;;
4181 esac
4182
4183 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4184 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4185 if test "${ac_cv_c_const+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188   cat >conftest.$ac_ext <<_ACEOF
4189 #line $LINENO "configure"
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195
4196 int
4197 main ()
4198 {
4199 /* FIXME: Include the comments suggested by Paul. */
4200 #ifndef __cplusplus
4201   /* Ultrix mips cc rejects this.  */
4202   typedef int charset[2];
4203   const charset x;
4204   /* SunOS 4.1.1 cc rejects this.  */
4205   char const *const *ccp;
4206   char **p;
4207   /* NEC SVR4.0.2 mips cc rejects this.  */
4208   struct point {int x, y;};
4209   static struct point const zero = {0,0};
4210   /* AIX XL C 1.02.0.0 rejects this.
4211      It does not let you subtract one const X* pointer from another in
4212      an arm of an if-expression whose if-part is not a constant
4213      expression */
4214   const char *g = "string";
4215   ccp = &g + (g ? g-g : 0);
4216   /* HPUX 7.0 cc rejects these. */
4217   ++ccp;
4218   p = (char**) ccp;
4219   ccp = (char const *const *) p;
4220   { /* SCO 3.2v4 cc rejects this.  */
4221     char *t;
4222     char const *s = 0 ? (char *) 0 : (char const *) 0;
4223
4224     *t++ = 0;
4225   }
4226   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4227     int x[] = {25, 17};
4228     const int *foo = &x[0];
4229     ++foo;
4230   }
4231   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4232     typedef const int *iptr;
4233     iptr p = 0;
4234     ++p;
4235   }
4236   { /* AIX XL C 1.02.0.0 rejects this saying
4237        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4238     struct s { int j; const int *ap[3]; };
4239     struct s *b; b->j = 5;
4240   }
4241   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4242     const int foo = 10;
4243   }
4244 #endif
4245
4246   ;
4247   return 0;
4248 }
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252   (eval $ac_compile) 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } &&
4256          { ac_try='test -s conftest.$ac_objext'
4257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258   (eval $ac_try) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; }; then
4262   ac_cv_c_const=yes
4263 else
4264   echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 ac_cv_c_const=no
4268 fi
4269 rm -f conftest.$ac_objext conftest.$ac_ext
4270 fi
4271 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4272 echo "${ECHO_T}$ac_cv_c_const" >&6
4273 if test $ac_cv_c_const = no; then
4274
4275 cat >>confdefs.h <<\_ACEOF
4276 #define const
4277 _ACEOF
4278
4279 fi
4280
4281
4282 # Extract the first word of "dbx", so it can be a program name with args.
4283 set dummy dbx; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_path_DBX+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   case $DBX in
4290   [\\/]* | ?:[\\/]*)
4291   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4292   ;;
4293   *)
4294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297   IFS=$as_save_IFS
4298   test -z "$as_dir" && as_dir=.
4299   for ac_exec_ext in '' $ac_executable_extensions; do
4300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306 done
4307
4308   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4309   ;;
4310 esac
4311 fi
4312 DBX=$ac_cv_path_DBX
4313
4314 if test -n "$DBX"; then
4315   echo "$as_me:$LINENO: result: $DBX" >&5
4316 echo "${ECHO_T}$DBX" >&6
4317 else
4318   echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4320 fi
4321
4322 # Extract the first word of "gdb", so it can be a program name with args.
4323 set dummy gdb; ac_word=$2
4324 echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326 if test "${ac_cv_path_GDB+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   case $GDB in
4330   [\\/]* | ?:[\\/]*)
4331   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4332   ;;
4333   *)
4334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337   IFS=$as_save_IFS
4338   test -z "$as_dir" && as_dir=.
4339   for ac_exec_ext in '' $ac_executable_extensions; do
4340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343     break 2
4344   fi
4345 done
4346 done
4347
4348   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4349   ;;
4350 esac
4351 fi
4352 GDB=$ac_cv_path_GDB
4353
4354 if test -n "$GDB"; then
4355   echo "$as_me:$LINENO: result: $GDB" >&5
4356 echo "${ECHO_T}$GDB" >&6
4357 else
4358   echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4360 fi
4361
4362 # Extract the first word of "sdb", so it can be a program name with args.
4363 set dummy sdb; ac_word=$2
4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366 if test "${ac_cv_path_SDB+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   case $SDB in
4370   [\\/]* | ?:[\\/]*)
4371   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4372   ;;
4373   *)
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379   for ac_exec_ext in '' $ac_executable_extensions; do
4380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386 done
4387
4388   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4389   ;;
4390 esac
4391 fi
4392 SDB=$ac_cv_path_SDB
4393
4394 if test -n "$SDB"; then
4395   echo "$as_me:$LINENO: result: $SDB" >&5
4396 echo "${ECHO_T}$SDB" >&6
4397 else
4398   echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6
4400 fi
4401
4402
4403 if test $GDB != no ; then
4404         DEBUGGER=$GDB
4405 elif test $DBX != no ; then
4406         DEBUGGER=$DBX
4407 elif test $SDB != no ; then
4408         DEBUGGER=$SDB
4409 else
4410         DEBUGGER=no
4411 fi
4412
4413
4414
4415 # The following templates should be used with newer automakes
4416 # instead of acconfig.h
4417 #
4418 #AH_TEMPLATE([sig_atomic_t],
4419 #            [/* Define to `int' if <signal.h> doesn't define.])
4420 #AH_TEMPLATE([HAVE_START_COLOR],
4421 #            [Define if you have start_color, as a function or macro.])
4422 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4423 #            [Define if you have typeahead, as a function or macro.])
4424 #AH_TEMPLATE([HAVE_BKGDSET],
4425 #            [Define if you have bkgdset, as a function or macro.])
4426 #AH_TEMPLATE([HAVE_CURS_SET],
4427 #            [Define if you have curs_set, as a function or macro.])
4428 #AH_TEMPLATE([HAVE_META],
4429 #            [Define if you have meta, as a function or macro.])
4430 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4431 #            [Define if you have use_default_colors, as a function or macro.])
4432 #AH_TEMPLATE([HAVE_RESIZETERM],
4433 #            [Define if you have resizeterm, as a function or macro.])
4434 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4435 #            [Some systems declare sig_atomic_t as volatile, some others -- no.
4436 #             This define will have value `sig_atomic_t' or
4437 #             `volatile sig_atomic_t' accordingly.])
4438 #AH_TEMPLATE([ICONV_NONTRANS],
4439 #            [Define as 1 if iconv() only converts exactly and we should treat
4440 #             all return values other than (size_t)(-1) as equivalent.])
4441
4442
4443 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4444 # Extract the first word of "sendmail", so it can be a program name with args.
4445 set dummy sendmail; ac_word=$2
4446 echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   case $SENDMAIL in
4452   [\\/]* | ?:[\\/]*)
4453   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4454   ;;
4455   *)
4456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 as_dummy="$PATH:$ac_aux_path_sendmail"
4458 for as_dir in $as_dummy
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469 done
4470
4471   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4472   ;;
4473 esac
4474 fi
4475 SENDMAIL=$ac_cv_path_SENDMAIL
4476
4477 if test -n "$SENDMAIL"; then
4478   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4479 echo "${ECHO_T}$SENDMAIL" >&6
4480 else
4481   echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4483 fi
4484
4485
4486 cat >>confdefs.h <<_ACEOF
4487 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4488 _ACEOF
4489
4490
4491 OPS='$(srcdir)/OPS'
4492 if test -f $srcdir/EXPORTABLE ; then
4493         SUBVERSION="us"
4494 else
4495         SUBVERSION="i"
4496
4497         # Check whether --enable-pgp or --disable-pgp was given.
4498 if test "${enable_pgp+set}" = set; then
4499   enableval="$enable_pgp"
4500          if test x$enableval = xno ; then
4501                         have_pgp=no
4502                 fi
4503
4504 fi;
4505
4506         if test x$have_pgp != xno ; then
4507
4508 cat >>confdefs.h <<\_ACEOF
4509 #define CRYPT_BACKEND_CLASSIC_PGP 1
4510 _ACEOF
4511
4512                 PGPAUX_TARGET="pgpring pgpewrap"
4513                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4514         fi
4515
4516         # Check whether --enable-smime or --disable-smime was given.
4517 if test "${enable_smime+set}" = set; then
4518   enableval="$enable_smime"
4519         if test x$enableval = xno ; then
4520                         have_smime=no
4521                 fi
4522
4523 fi;
4524
4525         if test x$have_smime != xno ; then
4526
4527 cat >>confdefs.h <<\_ACEOF
4528 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4529 _ACEOF
4530
4531                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4532                 SMIMEAUX_TARGET="smime_keys"
4533         fi
4534
4535
4536 # Check whether --with-mixmaster or --without-mixmaster was given.
4537 if test "${with_mixmaster+set}" = set; then
4538   withval="$with_mixmaster"
4539   if test -x "$withval" ; then
4540                         MIXMASTER="$withval"
4541                  else
4542                         MIXMASTER="mixmaster"
4543                  fi
4544                  OPS="$OPS \$(srcdir)/OPS.MIX"
4545                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4546
4547 cat >>confdefs.h <<_ACEOF
4548 #define MIXMASTER "$MIXMASTER"
4549 _ACEOF
4550
4551
4552 fi;
4553
4554 fi
4555 # We now require all OPS
4556 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4557
4558
4559
4560
4561
4562
4563
4564 cat >>confdefs.h <<_ACEOF
4565 #define SUBVERSION "$SUBVERSION"
4566 _ACEOF
4567
4568
4569
4570 # Extract the first word of "ispell", so it can be a program name with args.
4571 set dummy ispell; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_path_ISPELL+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   case $ISPELL in
4578   [\\/]* | ?:[\\/]*)
4579   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4580   ;;
4581   *)
4582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587   for ac_exec_ext in '' $ac_executable_extensions; do
4588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591     break 2
4592   fi
4593 done
4594 done
4595
4596   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4597   ;;
4598 esac
4599 fi
4600 ISPELL=$ac_cv_path_ISPELL
4601
4602 if test -n "$ISPELL"; then
4603   echo "$as_me:$LINENO: result: $ISPELL" >&5
4604 echo "${ECHO_T}$ISPELL" >&6
4605 else
4606   echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4608 fi
4609
4610 if test $ISPELL != no; then
4611
4612 cat >>confdefs.h <<_ACEOF
4613 #define ISPELL "$ISPELL"
4614 _ACEOF
4615
4616 fi
4617
4618
4619 # Check whether --with-slang or --without-slang was given.
4620 if test "${with_slang+set}" = set; then
4621   withval="$with_slang"
4622   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4623 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4624 if test "${mutt_cv_bsdish+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   if test "$cross_compiling" = yes; then
4628   mutt_cv_bsdish=no
4629 else
4630   cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4632 /* confdefs.h.  */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h.  */
4637 #include <sys/param.h>
4638
4639 main ()
4640 {
4641 #ifdef BSD
4642         exit (0);
4643 #else
4644         exit (1);
4645 #endif
4646 }
4647 _ACEOF
4648 rm -f conftest$ac_exeext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650   (eval $ac_link) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655   (eval $ac_try) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; }; then
4659   mutt_cv_bsdish=yes
4660 else
4661   echo "$as_me: program exited with status $ac_status" >&5
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665 ( exit $ac_status )
4666 mutt_cv_bsdish=no
4667 fi
4668 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 fi
4671 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4672 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4673
4674         echo "$as_me:$LINENO: checking for S-Lang" >&5
4675 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4676         if test $withval = yes; then
4677                 if test -d $srcdir/../slang; then
4678                         mutt_cv_slang=$srcdir/../slang/src
4679                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4680                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4681                 else
4682                         if test -d $mutt_cv_prefix/include/slang; then
4683                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4684                         elif test -d /usr/include/slang; then
4685                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4686                         fi
4687                         mutt_cv_slang=yes
4688                 fi
4689         else
4690                                 if test -f $withval/src/slang.h; then
4691                         mutt_cv_slang=$withval/src
4692                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4693                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4694                 else
4695                                                 mutt_cv_slang=$withval
4696                         if test -d $withval/include/slang; then
4697                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4698                         elif test -d $withval/include; then
4699                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4700                         fi
4701                         LDFLAGS="$LDFLAGS -L${withval}/lib"
4702                 fi
4703         fi
4704         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4705 echo "${ECHO_T}$mutt_cv_slang" >&6
4706         if test $mutt_cv_bsdish = yes; then
4707
4708 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4709 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4710 if test "${ac_cv_lib_termlib_main+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   ac_check_lib_save_LIBS=$LIBS
4714 LIBS="-ltermlib  $LIBS"
4715 cat >conftest.$ac_ext <<_ACEOF
4716 #line $LINENO "configure"
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722
4723
4724 int
4725 main ()
4726 {
4727 main ();
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734   (eval $ac_link) 2>&5
4735   ac_status=$?
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } &&
4738          { ac_try='test -s conftest$ac_exeext'
4739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740   (eval $ac_try) 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; }; then
4744   ac_cv_lib_termlib_main=yes
4745 else
4746   echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 ac_cv_lib_termlib_main=no
4750 fi
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4753 fi
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4755 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4756 if test $ac_cv_lib_termlib_main = yes; then
4757   cat >>confdefs.h <<_ACEOF
4758 #define HAVE_LIBTERMLIB 1
4759 _ACEOF
4760
4761   LIBS="-ltermlib $LIBS"
4762
4763 fi
4764
4765         fi
4766
4767 cat >>confdefs.h <<\_ACEOF
4768 #define USE_SLANG_CURSES 1
4769 _ACEOF
4770
4771
4772 cat >>confdefs.h <<\_ACEOF
4773 #define HAVE_COLOR 1
4774 _ACEOF
4775
4776         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4777
4778
4779         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4780 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4781 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   ac_check_lib_save_LIBS=$LIBS
4785 LIBS="-lslang -lm $LIBS"
4786 cat >conftest.$ac_ext <<_ACEOF
4787 #line $LINENO "configure"
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793
4794 /* Override any gcc2 internal prototype to avoid an error.  */
4795 #ifdef __cplusplus
4796 extern "C"
4797 #endif
4798 /* We use char because int might match the return type of a gcc2
4799    builtin and then its argument prototype would still apply.  */
4800 char SLtt_get_terminfo ();
4801 int
4802 main ()
4803 {
4804 SLtt_get_terminfo ();
4805   ;
4806   return 0;
4807 }
4808 _ACEOF
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811   (eval $ac_link) 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } &&
4815          { ac_try='test -s conftest$ac_exeext'
4816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817   (eval $ac_try) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; }; then
4821   ac_cv_lib_slang_SLtt_get_terminfo=yes
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 ac_cv_lib_slang_SLtt_get_terminfo=no
4827 fi
4828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4829 LIBS=$ac_check_lib_save_LIBS
4830 fi
4831 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4832 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4833 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4834   MUTTLIBS="$MUTTLIBS -lslang -lm"
4835 else
4836   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
4837 echo "$as_me: error: unable to compile.  check config.log" >&2;}
4838    { (exit 1); exit 1; }; }
4839 fi
4840
4841
4842
4843 else
4844   mutt_cv_curses=/usr
4845
4846 # Check whether --with-curses or --without-curses was given.
4847 if test "${with_curses+set}" = set; then
4848   withval="$with_curses"
4849   if test $withval != yes; then
4850                         mutt_cv_curses=$withval
4851                 fi
4852                 if test x$mutt_cv_curses != x/usr; then
4853                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4854                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4855                 fi
4856 fi;
4857
4858         echo "$as_me:$LINENO: checking for initscr" >&5
4859 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4860 if test "${ac_cv_func_initscr+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   cat >conftest.$ac_ext <<_ACEOF
4864 #line $LINENO "configure"
4865 /* confdefs.h.  */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h.  */
4870 /* System header to define __stub macros and hopefully few prototypes,
4871     which can conflict with char initscr (); below.
4872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4873     <limits.h> exists even on freestanding compilers.  */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879 /* Override any gcc2 internal prototype to avoid an error.  */
4880 #ifdef __cplusplus
4881 extern "C"
4882 {
4883 #endif
4884 /* We use char because int might match the return type of a gcc2
4885    builtin and then its argument prototype would still apply.  */
4886 char initscr ();
4887 /* The GNU C library defines this for functions which it implements
4888     to always fail with ENOSYS.  Some functions are actually named
4889     something starting with __ and the normal name is an alias.  */
4890 #if defined (__stub_initscr) || defined (__stub___initscr)
4891 choke me
4892 #else
4893 char (*f) () = initscr;
4894 #endif
4895 #ifdef __cplusplus
4896 }
4897 #endif
4898
4899 int
4900 main ()
4901 {
4902 return f != initscr;
4903   ;
4904   return 0;
4905 }
4906 _ACEOF
4907 rm -f conftest.$ac_objext conftest$ac_exeext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909   (eval $ac_link) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); } &&
4913          { ac_try='test -s conftest$ac_exeext'
4914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915   (eval $ac_try) 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); }; }; then
4919   ac_cv_func_initscr=yes
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 ac_cv_func_initscr=no
4925 fi
4926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4927 fi
4928 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4929 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4930 if test $ac_cv_func_initscr = yes; then
4931   :
4932 else
4933
4934         cf_ncurses="ncurses"
4935         for lib in ncurses ncursesw
4936         do
4937                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4938 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4939 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4940 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   ac_check_lib_save_LIBS=$LIBS
4944 LIBS="-l$lib  $LIBS"
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952
4953 /* Override any gcc2 internal prototype to avoid an error.  */
4954 #ifdef __cplusplus
4955 extern "C"
4956 #endif
4957 /* We use char because int might match the return type of a gcc2
4958    builtin and then its argument prototype would still apply.  */
4959 char waddnwstr ();
4960 int
4961 main ()
4962 {
4963 waddnwstr ();
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970   (eval $ac_link) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } &&
4974          { ac_try='test -s conftest$ac_exeext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   eval "$as_ac_Lib=yes"
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 eval "$as_ac_Lib=no"
4986 fi
4987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4989 fi
4990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4991 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4992 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4993   cf_ncurses="$lib"; break
4994 fi
4995
4996         done
4997         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
4998 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
4999 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5000 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   ac_check_lib_save_LIBS=$LIBS
5004 LIBS="-l$cf_ncurses  $LIBS"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012
5013 /* Override any gcc2 internal prototype to avoid an error.  */
5014 #ifdef __cplusplus
5015 extern "C"
5016 #endif
5017 /* We use char because int might match the return type of a gcc2
5018    builtin and then its argument prototype would still apply.  */
5019 char initscr ();
5020 int
5021 main ()
5022 {
5023 initscr ();
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030   (eval $ac_link) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); } &&
5034          { ac_try='test -s conftest$ac_exeext'
5035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036   (eval $ac_try) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); }; }; then
5040   eval "$as_ac_Lib=yes"
5041 else
5042   echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045 eval "$as_ac_Lib=no"
5046 fi
5047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5048 LIBS=$ac_check_lib_save_LIBS
5049 fi
5050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5051 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5052 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5053   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5054                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5055                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5056                 fi
5057
5058                 if test "$cf_ncurses" = ncursesw; then
5059
5060 for ac_header in ncursesw/ncurses.h
5061 do
5062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5064   echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 fi
5069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5071 else
5072   # Is the header compilable?
5073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line $LINENO "configure"
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082 $ac_includes_default
5083 #include <$ac_header>
5084 _ACEOF
5085 rm -f conftest.$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087   (eval $ac_compile) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); } &&
5091          { ac_try='test -s conftest.$ac_objext'
5092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093   (eval $ac_try) 2>&5
5094   ac_status=$?
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); }; }; then
5097   ac_header_compiler=yes
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 ac_header_compiler=no
5103 fi
5104 rm -f conftest.$ac_objext conftest.$ac_ext
5105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5106 echo "${ECHO_T}$ac_header_compiler" >&6
5107
5108 # Is the header present?
5109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5111 cat >conftest.$ac_ext <<_ACEOF
5112 #line $LINENO "configure"
5113 /* confdefs.h.  */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h.  */
5118 #include <$ac_header>
5119 _ACEOF
5120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122   ac_status=$?
5123   grep -v '^ *+' conftest.er1 >conftest.err
5124   rm -f conftest.er1
5125   cat conftest.err >&5
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); } >/dev/null; then
5128   if test -s conftest.err; then
5129     ac_cpp_err=$ac_c_preproc_warn_flag
5130   else
5131     ac_cpp_err=
5132   fi
5133 else
5134   ac_cpp_err=yes
5135 fi
5136 if test -z "$ac_cpp_err"; then
5137   ac_header_preproc=yes
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142   ac_header_preproc=no
5143 fi
5144 rm -f conftest.err conftest.$ac_ext
5145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5146 echo "${ECHO_T}$ac_header_preproc" >&6
5147
5148 # So?  What about this header?
5149 case $ac_header_compiler:$ac_header_preproc in
5150   yes:no )
5151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5155     (
5156       cat <<\_ASBOX
5157 ## ------------------------------------ ##
5158 ## Report this to bug-autoconf@gnu.org. ##
5159 ## ------------------------------------ ##
5160 _ASBOX
5161     ) |
5162       sed "s/^/$as_me: WARNING:     /" >&2
5163     ;;
5164   no:yes )
5165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5167     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5171     (
5172       cat <<\_ASBOX
5173 ## ------------------------------------ ##
5174 ## Report this to bug-autoconf@gnu.org. ##
5175 ## ------------------------------------ ##
5176 _ASBOX
5177     ) |
5178       sed "s/^/$as_me: WARNING:     /" >&2
5179     ;;
5180 esac
5181 echo "$as_me:$LINENO: checking for $ac_header" >&5
5182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5184   echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186   eval "$as_ac_Header=$ac_header_preproc"
5187 fi
5188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5190
5191 fi
5192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5193   cat >>confdefs.h <<_ACEOF
5194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 _ACEOF
5196  cf_cv_ncurses_header="ncursesw/ncurses.h"
5197 fi
5198
5199 done
5200
5201                 else
5202
5203 for ac_header in ncurses.h
5204 do
5205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5207   echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 fi
5212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5214 else
5215   # Is the header compilable?
5216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5218 cat >conftest.$ac_ext <<_ACEOF
5219 #line $LINENO "configure"
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225 $ac_includes_default
5226 #include <$ac_header>
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230   (eval $ac_compile) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); } &&
5234          { ac_try='test -s conftest.$ac_objext'
5235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236   (eval $ac_try) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }; }; then
5240   ac_header_compiler=yes
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 ac_header_compiler=no
5246 fi
5247 rm -f conftest.$ac_objext conftest.$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5249 echo "${ECHO_T}$ac_header_compiler" >&6
5250
5251 # Is the header present?
5252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5254 cat >conftest.$ac_ext <<_ACEOF
5255 #line $LINENO "configure"
5256 /* confdefs.h.  */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h.  */
5261 #include <$ac_header>
5262 _ACEOF
5263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265   ac_status=$?
5266   grep -v '^ *+' conftest.er1 >conftest.err
5267   rm -f conftest.er1
5268   cat conftest.err >&5
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } >/dev/null; then
5271   if test -s conftest.err; then
5272     ac_cpp_err=$ac_c_preproc_warn_flag
5273   else
5274     ac_cpp_err=
5275   fi
5276 else
5277   ac_cpp_err=yes
5278 fi
5279 if test -z "$ac_cpp_err"; then
5280   ac_header_preproc=yes
5281 else
5282   echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285   ac_header_preproc=no
5286 fi
5287 rm -f conftest.err conftest.$ac_ext
5288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5289 echo "${ECHO_T}$ac_header_preproc" >&6
5290
5291 # So?  What about this header?
5292 case $ac_header_compiler:$ac_header_preproc in
5293   yes:no )
5294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5298     (
5299       cat <<\_ASBOX
5300 ## ------------------------------------ ##
5301 ## Report this to bug-autoconf@gnu.org. ##
5302 ## ------------------------------------ ##
5303 _ASBOX
5304     ) |
5305       sed "s/^/$as_me: WARNING:     /" >&2
5306     ;;
5307   no:yes )
5308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5310     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5314     (
5315       cat <<\_ASBOX
5316 ## ------------------------------------ ##
5317 ## Report this to bug-autoconf@gnu.org. ##
5318 ## ------------------------------------ ##
5319 _ASBOX
5320     ) |
5321       sed "s/^/$as_me: WARNING:     /" >&2
5322     ;;
5323 esac
5324 echo "$as_me:$LINENO: checking for $ac_header" >&5
5325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   eval "$as_ac_Header=$ac_header_preproc"
5330 fi
5331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333
5334 fi
5335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5336   cat >>confdefs.h <<_ACEOF
5337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5338 _ACEOF
5339  cf_cv_ncurses_header="ncurses.h"
5340 fi
5341
5342 done
5343
5344                 fi
5345 else
5346
5347 echo "$as_me:$LINENO: checking for initscr" >&5
5348 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5349 if test "${ac_cv_func_initscr+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   cat >conftest.$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5354 /* confdefs.h.  */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h.  */
5359 /* System header to define __stub macros and hopefully few prototypes,
5360     which can conflict with char initscr (); below.
5361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5362     <limits.h> exists even on freestanding compilers.  */
5363 #ifdef __STDC__
5364 # include <limits.h>
5365 #else
5366 # include <assert.h>
5367 #endif
5368 /* Override any gcc2 internal prototype to avoid an error.  */
5369 #ifdef __cplusplus
5370 extern "C"
5371 {
5372 #endif
5373 /* We use char because int might match the return type of a gcc2
5374    builtin and then its argument prototype would still apply.  */
5375 char initscr ();
5376 /* The GNU C library defines this for functions which it implements
5377     to always fail with ENOSYS.  Some functions are actually named
5378     something starting with __ and the normal name is an alias.  */
5379 #if defined (__stub_initscr) || defined (__stub___initscr)
5380 choke me
5381 #else
5382 char (*f) () = initscr;
5383 #endif
5384 #ifdef __cplusplus
5385 }
5386 #endif
5387
5388 int
5389 main ()
5390 {
5391 return f != initscr;
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398   (eval $ac_link) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -s conftest$ac_exeext'
5403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404   (eval $ac_try) 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); }; }; then
5408   ac_cv_func_initscr=yes
5409 else
5410   echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ac_cv_func_initscr=no
5414 fi
5415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5416 fi
5417 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5418 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5419 if test $ac_cv_func_initscr = yes; then
5420   :
5421 else
5422
5423 case $host_os in #(vi
5424 freebsd*) #(vi
5425         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5426 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5427 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   ac_check_lib_save_LIBS=$LIBS
5431 LIBS="-lmytinfo  $LIBS"
5432 cat >conftest.$ac_ext <<_ACEOF
5433 #line $LINENO "configure"
5434 /* confdefs.h.  */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h.  */
5439
5440 /* Override any gcc2 internal prototype to avoid an error.  */
5441 #ifdef __cplusplus
5442 extern "C"
5443 #endif
5444 /* We use char because int might match the return type of a gcc2
5445    builtin and then its argument prototype would still apply.  */
5446 char tgoto ();
5447 int
5448 main ()
5449 {
5450 tgoto ();
5451   ;
5452   return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5457   (eval $ac_link) 2>&5
5458   ac_status=$?
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } &&
5461          { ac_try='test -s conftest$ac_exeext'
5462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463   (eval $ac_try) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); }; }; then
5467   ac_cv_lib_mytinfo_tgoto=yes
5468 else
5469   echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5471
5472 ac_cv_lib_mytinfo_tgoto=no
5473 fi
5474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5475 LIBS=$ac_check_lib_save_LIBS
5476 fi
5477 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5478 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5479 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5480   LIBS="-lmytinfo $LIBS"
5481 fi
5482
5483         ;;
5484 hpux10.*|hpux11.*)
5485         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5486 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5487 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   ac_check_lib_save_LIBS=$LIBS
5491 LIBS="-lcur_colr  $LIBS"
5492 cat >conftest.$ac_ext <<_ACEOF
5493 #line $LINENO "configure"
5494 /* confdefs.h.  */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h.  */
5499
5500 /* Override any gcc2 internal prototype to avoid an error.  */
5501 #ifdef __cplusplus
5502 extern "C"
5503 #endif
5504 /* We use char because int might match the return type of a gcc2
5505    builtin and then its argument prototype would still apply.  */
5506 char initscr ();
5507 int
5508 main ()
5509 {
5510 initscr ();
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517   (eval $ac_link) 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); } &&
5521          { ac_try='test -s conftest$ac_exeext'
5522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523   (eval $ac_try) 2>&5
5524   ac_status=$?
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); }; }; then
5527   ac_cv_lib_cur_colr_initscr=yes
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 ac_cv_lib_cur_colr_initscr=no
5533 fi
5534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5536 fi
5537 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5538 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5539 if test $ac_cv_lib_cur_colr_initscr = yes; then
5540
5541                 LIBS="-lcur_colr $LIBS"
5542                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5543                 ac_cv_func_initscr=yes
5544
5545 else
5546
5547         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5548 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5549 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   ac_check_lib_save_LIBS=$LIBS
5553 LIBS="-lHcurses  $LIBS"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561
5562 /* Override any gcc2 internal prototype to avoid an error.  */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 /* We use char because int might match the return type of a gcc2
5567    builtin and then its argument prototype would still apply.  */
5568 char initscr ();
5569 int
5570 main ()
5571 {
5572 initscr ();
5573   ;
5574   return 0;
5575 }
5576 _ACEOF
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579   (eval $ac_link) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); } &&
5583          { ac_try='test -s conftest$ac_exeext'
5584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585   (eval $ac_try) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; }; then
5589   ac_cv_lib_Hcurses_initscr=yes
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 ac_cv_lib_Hcurses_initscr=no
5595 fi
5596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_check_lib_save_LIBS
5598 fi
5599 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5600 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5601 if test $ac_cv_lib_Hcurses_initscr = yes; then
5602
5603                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5604                 LIBS="-lHcurses $LIBS"
5605                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5606                 ac_cv_func_initscr=yes
5607
5608 fi
5609
5610 fi
5611
5612         ;;
5613 linux*) # Suse Linux does not follow /usr/lib convention
5614         LIBS="$LIBS -L/lib"
5615         ;;
5616 esac
5617
5618 if test ".$With5lib" != ".no" ; then
5619 if test -d /usr/5lib ; then
5620         # SunOS 3.x or 4.x
5621         CPPFLAGS="$CPPFLAGS -I/usr/5include"
5622         LIBS="$LIBS -L/usr/5lib"
5623 fi
5624 fi
5625
5626 if test ".$ac_cv_func_initscr" != .yes ; then
5627         cf_save_LIBS="$LIBS"
5628         cf_term_lib=""
5629         cf_curs_lib=""
5630
5631         # Check for library containing tgoto.  Do this before curses library
5632         # because it may be needed to link the test-case for initscr.
5633         echo "$as_me:$LINENO: checking for tgoto" >&5
5634 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5635 if test "${ac_cv_func_tgoto+set}" = set; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   cat >conftest.$ac_ext <<_ACEOF
5639 #line $LINENO "configure"
5640 /* confdefs.h.  */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h.  */
5645 /* System header to define __stub macros and hopefully few prototypes,
5646     which can conflict with char tgoto (); below.
5647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5648     <limits.h> exists even on freestanding compilers.  */
5649 #ifdef __STDC__
5650 # include <limits.h>
5651 #else
5652 # include <assert.h>
5653 #endif
5654 /* Override any gcc2 internal prototype to avoid an error.  */
5655 #ifdef __cplusplus
5656 extern "C"
5657 {
5658 #endif
5659 /* We use char because int might match the return type of a gcc2
5660    builtin and then its argument prototype would still apply.  */
5661 char tgoto ();
5662 /* The GNU C library defines this for functions which it implements
5663     to always fail with ENOSYS.  Some functions are actually named
5664     something starting with __ and the normal name is an alias.  */
5665 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5666 choke me
5667 #else
5668 char (*f) () = tgoto;
5669 #endif
5670 #ifdef __cplusplus
5671 }
5672 #endif
5673
5674 int
5675 main ()
5676 {
5677 return f != tgoto;
5678   ;
5679   return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext conftest$ac_exeext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5684   (eval $ac_link) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); } &&
5688          { ac_try='test -s conftest$ac_exeext'
5689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690   (eval $ac_try) 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; }; then
5694   ac_cv_func_tgoto=yes
5695 else
5696   echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 ac_cv_func_tgoto=no
5700 fi
5701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5704 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5705 if test $ac_cv_func_tgoto = yes; then
5706   cf_term_lib=predefined
5707 else
5708
5709                 for cf_term_lib in termcap termlib unknown
5710                 do
5711                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5712 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5713 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5714 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-l$cf_term_lib  $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726
5727 /* Override any gcc2 internal prototype to avoid an error.  */
5728 #ifdef __cplusplus
5729 extern "C"
5730 #endif
5731 /* We use char because int might match the return type of a gcc2
5732    builtin and then its argument prototype would still apply.  */
5733 char tgoto ();
5734 int
5735 main ()
5736 {
5737 tgoto ();
5738   ;
5739   return 0;
5740 }
5741 _ACEOF
5742 rm -f conftest.$ac_objext conftest$ac_exeext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744   (eval $ac_link) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } &&
5748          { ac_try='test -s conftest$ac_exeext'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; }; then
5754   eval "$as_ac_Lib=yes"
5755 else
5756   echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 eval "$as_ac_Lib=no"
5760 fi
5761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5762 LIBS=$ac_check_lib_save_LIBS
5763 fi
5764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5765 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5766 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5767   break
5768 fi
5769
5770                 done
5771
5772 fi
5773
5774
5775         # Check for library containing initscr
5776         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5777         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5778         do
5779                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5780 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5781 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   ac_check_lib_save_LIBS=$LIBS
5786 LIBS="-l$cf_curs_lib  $LIBS"
5787 cat >conftest.$ac_ext <<_ACEOF
5788 #line $LINENO "configure"
5789 /* confdefs.h.  */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h.  */
5794
5795 /* Override any gcc2 internal prototype to avoid an error.  */
5796 #ifdef __cplusplus
5797 extern "C"
5798 #endif
5799 /* We use char because int might match the return type of a gcc2
5800    builtin and then its argument prototype would still apply.  */
5801 char initscr ();
5802 int
5803 main ()
5804 {
5805 initscr ();
5806   ;
5807   return 0;
5808 }
5809 _ACEOF
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812   (eval $ac_link) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); } &&
5816          { ac_try='test -s conftest$ac_exeext'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; }; then
5822   eval "$as_ac_Lib=yes"
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 eval "$as_ac_Lib=no"
5828 fi
5829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5830 LIBS=$ac_check_lib_save_LIBS
5831 fi
5832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5833 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5834 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5835   break
5836 fi
5837
5838         done
5839         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5840 echo "$as_me: error: no curses library found" >&2;}
5841    { (exit 1); exit 1; }; }
5842
5843         LIBS="-l$cf_curs_lib $cf_save_LIBS"
5844         if test "$cf_term_lib" = unknown ; then
5845                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5846 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
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 #include <${cf_cv_ncurses_header-curses.h}>
5855 int
5856 main ()
5857 {
5858 initscr()
5859   ;
5860   return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865   (eval $ac_link) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); } &&
5869          { ac_try='test -s conftest$ac_exeext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   cf_result=yes
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 cf_result=no
5881 fi
5882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5883                 echo "$as_me:$LINENO: result: $cf_result" >&5
5884 echo "${ECHO_T}$cf_result" >&6
5885                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5886 echo "$as_me: error: Cannot link curses library" >&2;}
5887    { (exit 1); exit 1; }; }
5888         elif test "$cf_term_lib" != predefined ; then
5889                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5890 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5891                 cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 #include <${cf_cv_ncurses_header-curses.h}>
5899 int
5900 main ()
5901 {
5902 initscr(); tgoto((char *)0, 0, 0);
5903   ;
5904   return 0;
5905 }
5906 _ACEOF
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5909   (eval $ac_link) 2>&5
5910   ac_status=$?
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); } &&
5913          { ac_try='test -s conftest$ac_exeext'
5914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915   (eval $ac_try) 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; }; then
5919   cf_result=no
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924
5925                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5926                         cat >conftest.$ac_ext <<_ACEOF
5927 #line $LINENO "configure"
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 #include <${cf_cv_ncurses_header-curses.h}>
5934 int
5935 main ()
5936 {
5937 initscr()
5938   ;
5939   return 0;
5940 }
5941 _ACEOF
5942 rm -f conftest.$ac_objext conftest$ac_exeext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5944   (eval $ac_link) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); } &&
5948          { ac_try='test -s conftest$ac_exeext'
5949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950   (eval $ac_try) 2>&5
5951   ac_status=$?
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); }; }; then
5954   cf_result=yes
5955 else
5956   echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 cf_result=error
5960 fi
5961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5962
5963 fi
5964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965                 echo "$as_me:$LINENO: result: $cf_result" >&5
5966 echo "${ECHO_T}$cf_result" >&6
5967         fi
5968 fi
5969
5970
5971 fi
5972
5973 fi
5974
5975
5976 fi
5977
5978
5979         old_LIBS="$LIBS"
5980         LIBS="$LIBS $MUTTLIBS"
5981         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5982 do
5983
5984 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5985 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5986 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   cat >conftest.$ac_ext <<_ACEOF
5990 #line $LINENO "configure"
5991 /* confdefs.h.  */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h.  */
5996 #include <${cf_cv_ncurses_header-curses.h}>
5997 int
5998 main ()
5999 {
6000 #ifndef ${ac_func}
6001 extern  int     ${ac_func}();
6002 #endif
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009   (eval $ac_compile) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } &&
6013          { ac_try='test -s conftest.$ac_objext'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line $LINENO "configure"
6022 /* confdefs.h.  */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h.  */
6027 #include <${cf_cv_ncurses_header-curses.h}>
6028 int
6029 main ()
6030 {
6031 #ifndef ${ac_func}
6032 int     (*p)() = ${ac_func};
6033 #endif
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040   (eval $ac_compile) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -s conftest.$ac_objext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050
6051 eval "ac_cv_func_decl_$ac_func=yes"
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6055
6056
6057 eval "ac_cv_func_decl_$ac_func=no"
6058 fi
6059 rm -f conftest.$ac_objext conftest.$ac_ext
6060 else
6061   echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064
6065 eval "ac_cv_func_decl_$ac_func=yes"
6066 fi
6067 rm -f conftest.$ac_objext conftest.$ac_ext
6068 fi
6069
6070 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6071   echo "$as_me:$LINENO: result: yes" >&5
6072 echo "${ECHO_T}yes" >&6
6073
6074
6075 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6076
6077   cat >>confdefs.h <<_ACEOF
6078 #define $ac_tr_func 1
6079 _ACEOF
6080
6081 else
6082   echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6
6084 fi
6085 done
6086
6087         if test "$ac_cv_func_decl_start_color" = yes; then
6088
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_COLOR 1
6091 _ACEOF
6092
6093         fi
6094         if test "$ac_cv_func_decl_resizeterm" = yes; then
6095                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6096         fi
6097         LIBS="$old_LIBS"
6098
6099 fi;
6100
6101 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6102 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6103 if test "${ac_cv_header_stdc+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   cat >conftest.$ac_ext <<_ACEOF
6107 #line $LINENO "configure"
6108 /* confdefs.h.  */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h.  */
6113 #include <stdlib.h>
6114 #include <stdarg.h>
6115 #include <string.h>
6116 #include <float.h>
6117
6118 int
6119 main ()
6120 {
6121
6122   ;
6123   return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128   (eval $ac_compile) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } &&
6132          { ac_try='test -s conftest.$ac_objext'
6133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134   (eval $ac_try) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; }; then
6138   ac_cv_header_stdc=yes
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_cv_header_stdc=no
6144 fi
6145 rm -f conftest.$ac_objext conftest.$ac_ext
6146
6147 if test $ac_cv_header_stdc = yes; then
6148   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6149   cat >conftest.$ac_ext <<_ACEOF
6150 #line $LINENO "configure"
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156 #include <string.h>
6157
6158 _ACEOF
6159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6160   $EGREP "memchr" >/dev/null 2>&1; then
6161   :
6162 else
6163   ac_cv_header_stdc=no
6164 fi
6165 rm -f conftest*
6166
6167 fi
6168
6169 if test $ac_cv_header_stdc = yes; then
6170   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6171   cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 /* confdefs.h.  */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h.  */
6178 #include <stdlib.h>
6179
6180 _ACEOF
6181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182   $EGREP "free" >/dev/null 2>&1; then
6183   :
6184 else
6185   ac_cv_header_stdc=no
6186 fi
6187 rm -f conftest*
6188
6189 fi
6190
6191 if test $ac_cv_header_stdc = yes; then
6192   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6193   if test "$cross_compiling" = yes; then
6194   :
6195 else
6196   cat >conftest.$ac_ext <<_ACEOF
6197 #line $LINENO "configure"
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203 #include <ctype.h>
6204 #if ((' ' & 0x0FF) == 0x020)
6205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6207 #else
6208 # define ISLOWER(c) \
6209                    (('a' <= (c) && (c) <= 'i') \
6210                      || ('j' <= (c) && (c) <= 'r') \
6211                      || ('s' <= (c) && (c) <= 'z'))
6212 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6213 #endif
6214
6215 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6216 int
6217 main ()
6218 {
6219   int i;
6220   for (i = 0; i < 256; i++)
6221     if (XOR (islower (i), ISLOWER (i))
6222         || toupper (i) != TOUPPER (i))
6223       exit(2);
6224   exit (0);
6225 }
6226 _ACEOF
6227 rm -f conftest$ac_exeext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6229   (eval $ac_link) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   :
6239 else
6240   echo "$as_me: program exited with status $ac_status" >&5
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 ( exit $ac_status )
6245 ac_cv_header_stdc=no
6246 fi
6247 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6248 fi
6249 fi
6250 fi
6251 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6252 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6253 if test $ac_cv_header_stdc = yes; then
6254
6255 cat >>confdefs.h <<\_ACEOF
6256 #define STDC_HEADERS 1
6257 _ACEOF
6258
6259 fi
6260
6261
6262
6263
6264
6265
6266 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6267 do
6268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6270   echo "$as_me:$LINENO: checking for $ac_header" >&5
6271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 fi
6275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6277 else
6278   # Is the header compilable?
6279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6282 #line $LINENO "configure"
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288 $ac_includes_default
6289 #include <$ac_header>
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293   (eval $ac_compile) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); } &&
6297          { ac_try='test -s conftest.$ac_objext'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; }; then
6303   ac_header_compiler=yes
6304 else
6305   echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 ac_header_compiler=no
6309 fi
6310 rm -f conftest.$ac_objext conftest.$ac_ext
6311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6312 echo "${ECHO_T}$ac_header_compiler" >&6
6313
6314 # Is the header present?
6315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6319 /* confdefs.h.  */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h.  */
6324 #include <$ac_header>
6325 _ACEOF
6326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6328   ac_status=$?
6329   grep -v '^ *+' conftest.er1 >conftest.err
6330   rm -f conftest.er1
6331   cat conftest.err >&5
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } >/dev/null; then
6334   if test -s conftest.err; then
6335     ac_cpp_err=$ac_c_preproc_warn_flag
6336   else
6337     ac_cpp_err=
6338   fi
6339 else
6340   ac_cpp_err=yes
6341 fi
6342 if test -z "$ac_cpp_err"; then
6343   ac_header_preproc=yes
6344 else
6345   echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6347
6348   ac_header_preproc=no
6349 fi
6350 rm -f conftest.err conftest.$ac_ext
6351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6352 echo "${ECHO_T}$ac_header_preproc" >&6
6353
6354 # So?  What about this header?
6355 case $ac_header_compiler:$ac_header_preproc in
6356   yes:no )
6357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6361     (
6362       cat <<\_ASBOX
6363 ## ------------------------------------ ##
6364 ## Report this to bug-autoconf@gnu.org. ##
6365 ## ------------------------------------ ##
6366 _ASBOX
6367     ) |
6368       sed "s/^/$as_me: WARNING:     /" >&2
6369     ;;
6370   no:yes )
6371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6373     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6377     (
6378       cat <<\_ASBOX
6379 ## ------------------------------------ ##
6380 ## Report this to bug-autoconf@gnu.org. ##
6381 ## ------------------------------------ ##
6382 _ASBOX
6383     ) |
6384       sed "s/^/$as_me: WARNING:     /" >&2
6385     ;;
6386 esac
6387 echo "$as_me:$LINENO: checking for $ac_header" >&5
6388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   eval "$as_ac_Header=$ac_header_preproc"
6393 fi
6394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396
6397 fi
6398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6399   cat >>confdefs.h <<_ACEOF
6400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401 _ACEOF
6402
6403 fi
6404
6405 done
6406
6407
6408
6409 for ac_header in sys/time.h sys/resource.h
6410 do
6411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413   echo "$as_me:$LINENO: checking for $ac_header" >&5
6414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6416   echo $ECHO_N "(cached) $ECHO_C" >&6
6417 fi
6418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6420 else
6421   # Is the header compilable?
6422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6424 cat >conftest.$ac_ext <<_ACEOF
6425 #line $LINENO "configure"
6426 /* confdefs.h.  */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h.  */
6431 $ac_includes_default
6432 #include <$ac_header>
6433 _ACEOF
6434 rm -f conftest.$ac_objext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436   (eval $ac_compile) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } &&
6440          { ac_try='test -s conftest.$ac_objext'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; }; then
6446   ac_header_compiler=yes
6447 else
6448   echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6450
6451 ac_header_compiler=no
6452 fi
6453 rm -f conftest.$ac_objext conftest.$ac_ext
6454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6455 echo "${ECHO_T}$ac_header_compiler" >&6
6456
6457 # Is the header present?
6458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6461 #line $LINENO "configure"
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 #include <$ac_header>
6468 _ACEOF
6469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } >/dev/null; then
6477   if test -s conftest.err; then
6478     ac_cpp_err=$ac_c_preproc_warn_flag
6479   else
6480     ac_cpp_err=
6481   fi
6482 else
6483   ac_cpp_err=yes
6484 fi
6485 if test -z "$ac_cpp_err"; then
6486   ac_header_preproc=yes
6487 else
6488   echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491   ac_header_preproc=no
6492 fi
6493 rm -f conftest.err conftest.$ac_ext
6494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6495 echo "${ECHO_T}$ac_header_preproc" >&6
6496
6497 # So?  What about this header?
6498 case $ac_header_compiler:$ac_header_preproc in
6499   yes:no )
6500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6504     (
6505       cat <<\_ASBOX
6506 ## ------------------------------------ ##
6507 ## Report this to bug-autoconf@gnu.org. ##
6508 ## ------------------------------------ ##
6509 _ASBOX
6510     ) |
6511       sed "s/^/$as_me: WARNING:     /" >&2
6512     ;;
6513   no:yes )
6514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6516     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6520     (
6521       cat <<\_ASBOX
6522 ## ------------------------------------ ##
6523 ## Report this to bug-autoconf@gnu.org. ##
6524 ## ------------------------------------ ##
6525 _ASBOX
6526     ) |
6527       sed "s/^/$as_me: WARNING:     /" >&2
6528     ;;
6529 esac
6530 echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   eval "$as_ac_Header=$ac_header_preproc"
6536 fi
6537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539
6540 fi
6541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6542   cat >>confdefs.h <<_ACEOF
6543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6544 _ACEOF
6545
6546 fi
6547
6548 done
6549
6550
6551 for ac_header in unix.h
6552 do
6553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6555   echo "$as_me:$LINENO: checking for $ac_header" >&5
6556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 fi
6560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6562 else
6563   # Is the header compilable?
6564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 /* confdefs.h.  */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h.  */
6573 $ac_includes_default
6574 #include <$ac_header>
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578   (eval $ac_compile) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } &&
6582          { ac_try='test -s conftest.$ac_objext'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; }; then
6588   ac_header_compiler=yes
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_header_compiler=no
6594 fi
6595 rm -f conftest.$ac_objext conftest.$ac_ext
6596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6597 echo "${ECHO_T}$ac_header_compiler" >&6
6598
6599 # Is the header present?
6600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6602 cat >conftest.$ac_ext <<_ACEOF
6603 #line $LINENO "configure"
6604 /* confdefs.h.  */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h.  */
6609 #include <$ac_header>
6610 _ACEOF
6611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6613   ac_status=$?
6614   grep -v '^ *+' conftest.er1 >conftest.err
6615   rm -f conftest.er1
6616   cat conftest.err >&5
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); } >/dev/null; then
6619   if test -s conftest.err; then
6620     ac_cpp_err=$ac_c_preproc_warn_flag
6621   else
6622     ac_cpp_err=
6623   fi
6624 else
6625   ac_cpp_err=yes
6626 fi
6627 if test -z "$ac_cpp_err"; then
6628   ac_header_preproc=yes
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633   ac_header_preproc=no
6634 fi
6635 rm -f conftest.err conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6637 echo "${ECHO_T}$ac_header_preproc" >&6
6638
6639 # So?  What about this header?
6640 case $ac_header_compiler:$ac_header_preproc in
6641   yes:no )
6642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6646     (
6647       cat <<\_ASBOX
6648 ## ------------------------------------ ##
6649 ## Report this to bug-autoconf@gnu.org. ##
6650 ## ------------------------------------ ##
6651 _ASBOX
6652     ) |
6653       sed "s/^/$as_me: WARNING:     /" >&2
6654     ;;
6655   no:yes )
6656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6658     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6662     (
6663       cat <<\_ASBOX
6664 ## ------------------------------------ ##
6665 ## Report this to bug-autoconf@gnu.org. ##
6666 ## ------------------------------------ ##
6667 _ASBOX
6668     ) |
6669       sed "s/^/$as_me: WARNING:     /" >&2
6670     ;;
6671 esac
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   eval "$as_ac_Header=$ac_header_preproc"
6678 fi
6679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6681
6682 fi
6683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6684   cat >>confdefs.h <<_ACEOF
6685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6686 _ACEOF
6687
6688 fi
6689
6690 done
6691
6692
6693
6694
6695 for ac_func in setrlimit getsid
6696 do
6697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6698 echo "$as_me:$LINENO: checking for $ac_func" >&5
6699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_var+set}\" = set"; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   cat >conftest.$ac_ext <<_ACEOF
6704 #line $LINENO "configure"
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710 /* System header to define __stub macros and hopefully few prototypes,
6711     which can conflict with char $ac_func (); below.
6712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713     <limits.h> exists even on freestanding compilers.  */
6714 #ifdef __STDC__
6715 # include <limits.h>
6716 #else
6717 # include <assert.h>
6718 #endif
6719 /* Override any gcc2 internal prototype to avoid an error.  */
6720 #ifdef __cplusplus
6721 extern "C"
6722 {
6723 #endif
6724 /* We use char because int might match the return type of a gcc2
6725    builtin and then its argument prototype would still apply.  */
6726 char $ac_func ();
6727 /* The GNU C library defines this for functions which it implements
6728     to always fail with ENOSYS.  Some functions are actually named
6729     something starting with __ and the normal name is an alias.  */
6730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6731 choke me
6732 #else
6733 char (*f) () = $ac_func;
6734 #endif
6735 #ifdef __cplusplus
6736 }
6737 #endif
6738
6739 int
6740 main ()
6741 {
6742 return f != $ac_func;
6743   ;
6744   return 0;
6745 }
6746 _ACEOF
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749   (eval $ac_link) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); } &&
6753          { ac_try='test -s conftest$ac_exeext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759   eval "$as_ac_var=yes"
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 eval "$as_ac_var=no"
6765 fi
6766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6767 fi
6768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6770 if test `eval echo '${'$as_ac_var'}'` = yes; then
6771   cat >>confdefs.h <<_ACEOF
6772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6773 _ACEOF
6774
6775 fi
6776 done
6777
6778
6779 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6780 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6781 if test "${ac_cv_type_signal+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   cat >conftest.$ac_ext <<_ACEOF
6785 #line $LINENO "configure"
6786 /* confdefs.h.  */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h.  */
6791 #include <sys/types.h>
6792 #include <signal.h>
6793 #ifdef signal
6794 # undef signal
6795 #endif
6796 #ifdef __cplusplus
6797 extern "C" void (*signal (int, void (*)(int)))(int);
6798 #else
6799 void (*signal ()) ();
6800 #endif
6801
6802 int
6803 main ()
6804 {
6805 int i;
6806   ;
6807   return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812   (eval $ac_compile) 2>&5
6813   ac_status=$?
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } &&
6816          { ac_try='test -s conftest.$ac_objext'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; }; then
6822   ac_cv_type_signal=void
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ac_cv_type_signal=int
6828 fi
6829 rm -f conftest.$ac_objext conftest.$ac_ext
6830 fi
6831 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6832 echo "${ECHO_T}$ac_cv_type_signal" >&6
6833
6834 cat >>confdefs.h <<_ACEOF
6835 #define RETSIGTYPE $ac_cv_type_signal
6836 _ACEOF
6837
6838
6839
6840 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6841 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6842 cat >conftest.$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6844 /* confdefs.h.  */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h.  */
6849 #include <signal.h>
6850
6851 _ACEOF
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6854
6855     ac_cv_type_sig_atomic_t=yes;
6856     cat >conftest.$ac_ext <<_ACEOF
6857 #line $LINENO "configure"
6858 /* confdefs.h.  */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h.  */
6863 #include <signal.h>
6864
6865 _ACEOF
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6868
6869                         is_sig_atomic_t_volatile=yes;
6870                         echo "$as_me:$LINENO: result: yes, volatile" >&5
6871 echo "${ECHO_T}yes, volatile" >&6
6872
6873 else
6874
6875                         is_sig_atomic_t_volatile=no;
6876                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
6877 echo "${ECHO_T}yes, non volatile" >&6
6878
6879 fi
6880 rm -f conftest*
6881
6882
6883 else
6884
6885     echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6
6887     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6888 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6889 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6890   echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892   cat >conftest.$ac_ext <<_ACEOF
6893 #line $LINENO "configure"
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899 $ac_includes_default
6900 int
6901 main ()
6902 {
6903 if ((sig_atomic_t *) 0)
6904   return 0;
6905 if (sizeof (sig_atomic_t))
6906   return 0;
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913   (eval $ac_compile) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); } &&
6917          { ac_try='test -s conftest.$ac_objext'
6918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919   (eval $ac_try) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; }; then
6923   ac_cv_type_sig_atomic_t=yes
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 ac_cv_type_sig_atomic_t=no
6929 fi
6930 rm -f conftest.$ac_objext conftest.$ac_ext
6931 fi
6932 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6933 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6934 if test $ac_cv_type_sig_atomic_t = yes; then
6935   :
6936 else
6937
6938 cat >>confdefs.h <<_ACEOF
6939 #define sig_atomic_t int
6940 _ACEOF
6941
6942 fi
6943
6944     is_sig_atomic_t_volatile=no
6945
6946 fi
6947 rm -f conftest*
6948
6949 if test $is_sig_atomic_t_volatile = 'yes'
6950 then
6951     cat >>confdefs.h <<\_ACEOF
6952 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6953 _ACEOF
6954
6955 else
6956     cat >>confdefs.h <<\_ACEOF
6957 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6958 _ACEOF
6959
6960 fi
6961
6962 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6963 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6964 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   cat >conftest.$ac_ext <<_ACEOF
6968 #line $LINENO "configure"
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 $ac_includes_default
6975 int
6976 main ()
6977 {
6978 #ifndef sys_siglist
6979   char *p = (char *) sys_siglist;
6980 #endif
6981
6982   ;
6983   return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988   (eval $ac_compile) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); } &&
6992          { ac_try='test -s conftest.$ac_objext'
6993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994   (eval $ac_try) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); }; }; then
6998   ac_cv_have_decl_sys_siglist=yes
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003 ac_cv_have_decl_sys_siglist=no
7004 fi
7005 rm -f conftest.$ac_objext conftest.$ac_ext
7006 fi
7007 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7008 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7009 if test $ac_cv_have_decl_sys_siglist = yes; then
7010
7011 cat >>confdefs.h <<_ACEOF
7012 #define HAVE_DECL_SYS_SIGLIST 1
7013 _ACEOF
7014
7015
7016 else
7017   cat >>confdefs.h <<_ACEOF
7018 #define HAVE_DECL_SYS_SIGLIST 0
7019 _ACEOF
7020
7021
7022 fi
7023
7024
7025
7026
7027 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7028 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7029 if test "${ac_cv_c_bigendian+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   # See if sys/param.h defines the BYTE_ORDER macro.
7033 cat >conftest.$ac_ext <<_ACEOF
7034 #line $LINENO "configure"
7035 /* confdefs.h.  */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h.  */
7040 #include <sys/types.h>
7041 #include <sys/param.h>
7042
7043 int
7044 main ()
7045 {
7046 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7047  bogus endian macros
7048 #endif
7049
7050   ;
7051   return 0;
7052 }
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056   (eval $ac_compile) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } &&
7060          { ac_try='test -s conftest.$ac_objext'
7061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062   (eval $ac_try) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; }; then
7066   # It does; now see whether it defined to BIG_ENDIAN or not.
7067 cat >conftest.$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7069 /* confdefs.h.  */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h.  */
7074 #include <sys/types.h>
7075 #include <sys/param.h>
7076
7077 int
7078 main ()
7079 {
7080 #if BYTE_ORDER != BIG_ENDIAN
7081  not big endian
7082 #endif
7083
7084   ;
7085   return 0;
7086 }
7087 _ACEOF
7088 rm -f conftest.$ac_objext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090   (eval $ac_compile) 2>&5
7091   ac_status=$?
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } &&
7094          { ac_try='test -s conftest.$ac_objext'
7095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096   (eval $ac_try) 2>&5
7097   ac_status=$?
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); }; }; then
7100   ac_cv_c_bigendian=yes
7101 else
7102   echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7104
7105 ac_cv_c_bigendian=no
7106 fi
7107 rm -f conftest.$ac_objext conftest.$ac_ext
7108 else
7109   echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7111
7112 # It does not; compile a test program.
7113 if test "$cross_compiling" = yes; then
7114   # try to guess the endianness by grepping values into an object file
7115   ac_cv_c_bigendian=unknown
7116   cat >conftest.$ac_ext <<_ACEOF
7117 #line $LINENO "configure"
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7124 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7125 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7126 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7127 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7128 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7129 int
7130 main ()
7131 {
7132  _ascii (); _ebcdic ();
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139   (eval $ac_compile) 2>&5
7140   ac_status=$?
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } &&
7143          { ac_try='test -s conftest.$ac_objext'
7144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145   (eval $ac_try) 2>&5
7146   ac_status=$?
7147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148   (exit $ac_status); }; }; then
7149   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7150   ac_cv_c_bigendian=yes
7151 fi
7152 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7153   if test "$ac_cv_c_bigendian" = unknown; then
7154     ac_cv_c_bigendian=no
7155   else
7156     # finding both strings is unlikely to happen, but who knows?
7157     ac_cv_c_bigendian=unknown
7158   fi
7159 fi
7160 else
7161   echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7163
7164 fi
7165 rm -f conftest.$ac_objext conftest.$ac_ext
7166 else
7167   cat >conftest.$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7169 /* confdefs.h.  */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h.  */
7174 int
7175 main ()
7176 {
7177   /* Are we little or big endian?  From Harbison&Steele.  */
7178   union
7179   {
7180     long l;
7181     char c[sizeof (long)];
7182   } u;
7183   u.l = 1;
7184   exit (u.c[sizeof (long) - 1] == 1);
7185 }
7186 _ACEOF
7187 rm -f conftest$ac_exeext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189   (eval $ac_link) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; }; then
7198   ac_cv_c_bigendian=no
7199 else
7200   echo "$as_me: program exited with status $ac_status" >&5
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ( exit $ac_status )
7205 ac_cv_c_bigendian=yes
7206 fi
7207 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7208 fi
7209 fi
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7211 fi
7212 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7213 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7214 case $ac_cv_c_bigendian in
7215   yes)
7216
7217 cat >>confdefs.h <<\_ACEOF
7218 #define WORDS_BIGENDIAN 1
7219 _ACEOF
7220  ;;
7221   no)
7222      ;;
7223   *)
7224     { { echo "$as_me:$LINENO: error: unknown endianness
7225 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7226 echo "$as_me: error: unknown endianness
7227 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7228    { (exit 1); exit 1; }; } ;;
7229 esac
7230
7231
7232
7233 for ac_header in inttypes.h stdint.h
7234 do
7235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7237   echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 fi
7242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244 else
7245   # Is the header compilable?
7246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7248 cat >conftest.$ac_ext <<_ACEOF
7249 #line $LINENO "configure"
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255 $ac_includes_default
7256 #include <$ac_header>
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260   (eval $ac_compile) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -s conftest.$ac_objext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_header_compiler=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_header_compiler=no
7276 fi
7277 rm -f conftest.$ac_objext conftest.$ac_ext
7278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 echo "${ECHO_T}$ac_header_compiler" >&6
7280
7281 # Is the header present?
7282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7286 /* confdefs.h.  */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h.  */
7291 #include <$ac_header>
7292 _ACEOF
7293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7295   ac_status=$?
7296   grep -v '^ *+' conftest.er1 >conftest.err
7297   rm -f conftest.er1
7298   cat conftest.err >&5
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); } >/dev/null; then
7301   if test -s conftest.err; then
7302     ac_cpp_err=$ac_c_preproc_warn_flag
7303   else
7304     ac_cpp_err=
7305   fi
7306 else
7307   ac_cpp_err=yes
7308 fi
7309 if test -z "$ac_cpp_err"; then
7310   ac_header_preproc=yes
7311 else
7312   echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315   ac_header_preproc=no
7316 fi
7317 rm -f conftest.err conftest.$ac_ext
7318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7319 echo "${ECHO_T}$ac_header_preproc" >&6
7320
7321 # So?  What about this header?
7322 case $ac_header_compiler:$ac_header_preproc in
7323   yes:no )
7324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7328     (
7329       cat <<\_ASBOX
7330 ## ------------------------------------ ##
7331 ## Report this to bug-autoconf@gnu.org. ##
7332 ## ------------------------------------ ##
7333 _ASBOX
7334     ) |
7335       sed "s/^/$as_me: WARNING:     /" >&2
7336     ;;
7337   no:yes )
7338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7340     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7344     (
7345       cat <<\_ASBOX
7346 ## ------------------------------------ ##
7347 ## Report this to bug-autoconf@gnu.org. ##
7348 ## ------------------------------------ ##
7349 _ASBOX
7350     ) |
7351       sed "s/^/$as_me: WARNING:     /" >&2
7352     ;;
7353 esac
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   eval "$as_ac_Header=$ac_header_preproc"
7360 fi
7361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7363
7364 fi
7365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7366   cat >>confdefs.h <<_ACEOF
7367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7368 _ACEOF
7369
7370 fi
7371
7372 done
7373
7374 echo "$as_me:$LINENO: checking for uint32_t" >&5
7375 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7378 /* confdefs.h.  */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h.  */
7383
7384 #include <sys/types.h>
7385 #if HAVE_INTTYPES_H
7386 #include <inttypes.h>
7387 #else
7388 #if HAVE_STDINT_H
7389 #include <stdint.h>
7390 #endif
7391 #endif
7392 int
7393 main ()
7394 {
7395 if ((uint32_t *) 0)
7396   return 0;
7397 if (sizeof (uint32_t))
7398   return 0;
7399
7400   ;
7401   return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406   (eval $ac_compile) 2>&5
7407   ac_status=$?
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } &&
7410          { ac_try='test -s conftest.$ac_objext'
7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412   (eval $ac_try) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; }; then
7416
7417
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_UINT32_T 1
7420 _ACEOF
7421
7422     echo "$as_me:$LINENO: result: yes" >&5
7423 echo "${ECHO_T}yes" >&6
7424
7425 else
7426   echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431
7432 fi
7433 rm -f conftest.$ac_objext conftest.$ac_ext
7434 echo "$as_me:$LINENO: checking for int" >&5
7435 echo $ECHO_N "checking for int... $ECHO_C" >&6
7436 if test "${ac_cv_type_int+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   cat >conftest.$ac_ext <<_ACEOF
7440 #line $LINENO "configure"
7441 /* confdefs.h.  */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h.  */
7446 $ac_includes_default
7447 int
7448 main ()
7449 {
7450 if ((int *) 0)
7451   return 0;
7452 if (sizeof (int))
7453   return 0;
7454   ;
7455   return 0;
7456 }
7457 _ACEOF
7458 rm -f conftest.$ac_objext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460   (eval $ac_compile) 2>&5
7461   ac_status=$?
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); } &&
7464          { ac_try='test -s conftest.$ac_objext'
7465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466   (eval $ac_try) 2>&5
7467   ac_status=$?
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); }; }; then
7470   ac_cv_type_int=yes
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475 ac_cv_type_int=no
7476 fi
7477 rm -f conftest.$ac_objext conftest.$ac_ext
7478 fi
7479 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7480 echo "${ECHO_T}$ac_cv_type_int" >&6
7481
7482 echo "$as_me:$LINENO: checking size of int" >&5
7483 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7484 if test "${ac_cv_sizeof_int+set}" = set; then
7485   echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487   if test "$ac_cv_type_int" = yes; then
7488   # The cast to unsigned long works around a bug in the HP C Compiler
7489   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7490   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7491   # This bug is HP SR number 8606223364.
7492   if test "$cross_compiling" = yes; then
7493   # Depending upon the size, compute the lo and hi bounds.
7494 cat >conftest.$ac_ext <<_ACEOF
7495 #line $LINENO "configure"
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501 $ac_includes_default
7502 int
7503 main ()
7504 {
7505 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7506 test_array [0] = 0
7507
7508   ;
7509   return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514   (eval $ac_compile) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); } &&
7518          { ac_try='test -s conftest.$ac_objext'
7519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520   (eval $ac_try) 2>&5
7521   ac_status=$?
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); }; }; then
7524   ac_lo=0 ac_mid=0
7525   while :; do
7526     cat >conftest.$ac_ext <<_ACEOF
7527 #line $LINENO "configure"
7528 /* confdefs.h.  */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h.  */
7533 $ac_includes_default
7534 int
7535 main ()
7536 {
7537 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7538 test_array [0] = 0
7539
7540   ;
7541   return 0;
7542 }
7543 _ACEOF
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546   (eval $ac_compile) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); } &&
7550          { ac_try='test -s conftest.$ac_objext'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; }; then
7556   ac_hi=$ac_mid; break
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 ac_lo=`expr $ac_mid + 1`
7562                     if test $ac_lo -le $ac_mid; then
7563                       ac_lo= ac_hi=
7564                       break
7565                     fi
7566                     ac_mid=`expr 2 '*' $ac_mid + 1`
7567 fi
7568 rm -f conftest.$ac_objext conftest.$ac_ext
7569   done
7570 else
7571   echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7573
7574 cat >conftest.$ac_ext <<_ACEOF
7575 #line $LINENO "configure"
7576 /* confdefs.h.  */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h.  */
7581 $ac_includes_default
7582 int
7583 main ()
7584 {
7585 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7586 test_array [0] = 0
7587
7588   ;
7589   return 0;
7590 }
7591 _ACEOF
7592 rm -f conftest.$ac_objext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594   (eval $ac_compile) 2>&5
7595   ac_status=$?
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } &&
7598          { ac_try='test -s conftest.$ac_objext'
7599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600   (eval $ac_try) 2>&5
7601   ac_status=$?
7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603   (exit $ac_status); }; }; then
7604   ac_hi=-1 ac_mid=-1
7605   while :; do
7606     cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7608 /* confdefs.h.  */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h.  */
7613 $ac_includes_default
7614 int
7615 main ()
7616 {
7617 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7618 test_array [0] = 0
7619
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626   (eval $ac_compile) 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -s conftest.$ac_objext'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; }; then
7636   ac_lo=$ac_mid; break
7637 else
7638   echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7640
7641 ac_hi=`expr '(' $ac_mid ')' - 1`
7642                        if test $ac_mid -le $ac_hi; then
7643                          ac_lo= ac_hi=
7644                          break
7645                        fi
7646                        ac_mid=`expr 2 '*' $ac_mid`
7647 fi
7648 rm -f conftest.$ac_objext conftest.$ac_ext
7649   done
7650 else
7651   echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654 ac_lo= ac_hi=
7655 fi
7656 rm -f conftest.$ac_objext conftest.$ac_ext
7657 fi
7658 rm -f conftest.$ac_objext conftest.$ac_ext
7659 # Binary search between lo and hi bounds.
7660 while test "x$ac_lo" != "x$ac_hi"; do
7661   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7662   cat >conftest.$ac_ext <<_ACEOF
7663 #line $LINENO "configure"
7664 /* confdefs.h.  */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h.  */
7669 $ac_includes_default
7670 int
7671 main ()
7672 {
7673 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7674 test_array [0] = 0
7675
7676   ;
7677   return 0;
7678 }
7679 _ACEOF
7680 rm -f conftest.$ac_objext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682   (eval $ac_compile) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); } &&
7686          { ac_try='test -s conftest.$ac_objext'
7687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688   (eval $ac_try) 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; }; then
7692   ac_hi=$ac_mid
7693 else
7694   echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697 ac_lo=`expr '(' $ac_mid ')' + 1`
7698 fi
7699 rm -f conftest.$ac_objext conftest.$ac_ext
7700 done
7701 case $ac_lo in
7702 ?*) ac_cv_sizeof_int=$ac_lo;;
7703 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7704 See \`config.log' for more details." >&5
7705 echo "$as_me: error: cannot compute sizeof (int), 77
7706 See \`config.log' for more details." >&2;}
7707    { (exit 1); exit 1; }; } ;;
7708 esac
7709 else
7710   if test "$cross_compiling" = yes; then
7711   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7712 See \`config.log' for more details." >&5
7713 echo "$as_me: error: cannot run test program while cross compiling
7714 See \`config.log' for more details." >&2;}
7715    { (exit 1); exit 1; }; }
7716 else
7717   cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7719 /* confdefs.h.  */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h.  */
7724 $ac_includes_default
7725 long longval () { return (long) (sizeof (int)); }
7726 unsigned long ulongval () { return (long) (sizeof (int)); }
7727 #include <stdio.h>
7728 #include <stdlib.h>
7729 int
7730 main ()
7731 {
7732
7733   FILE *f = fopen ("conftest.val", "w");
7734   if (! f)
7735     exit (1);
7736   if (((long) (sizeof (int))) < 0)
7737     {
7738       long i = longval ();
7739       if (i != ((long) (sizeof (int))))
7740         exit (1);
7741       fprintf (f, "%ld\n", i);
7742     }
7743   else
7744     {
7745       unsigned long i = ulongval ();
7746       if (i != ((long) (sizeof (int))))
7747         exit (1);
7748       fprintf (f, "%lu\n", i);
7749     }
7750   exit (ferror (f) || fclose (f) != 0);
7751
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 rm -f conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758   (eval $ac_link) 2>&5
7759   ac_status=$?
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763   (eval $ac_try) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); }; }; then
7767   ac_cv_sizeof_int=`cat conftest.val`
7768 else
7769   echo "$as_me: program exited with status $ac_status" >&5
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773 ( exit $ac_status )
7774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7775 See \`config.log' for more details." >&5
7776 echo "$as_me: error: cannot compute sizeof (int), 77
7777 See \`config.log' for more details." >&2;}
7778    { (exit 1); exit 1; }; }
7779 fi
7780 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7781 fi
7782 fi
7783 rm -f conftest.val
7784 else
7785   ac_cv_sizeof_int=0
7786 fi
7787 fi
7788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7789 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7790 cat >>confdefs.h <<_ACEOF
7791 #define SIZEOF_INT $ac_cv_sizeof_int
7792 _ACEOF
7793
7794
7795 echo "$as_me:$LINENO: checking for long" >&5
7796 echo $ECHO_N "checking for long... $ECHO_C" >&6
7797 if test "${ac_cv_type_long+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 /* confdefs.h.  */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h.  */
7807 $ac_includes_default
7808 int
7809 main ()
7810 {
7811 if ((long *) 0)
7812   return 0;
7813 if (sizeof (long))
7814   return 0;
7815   ;
7816   return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821   (eval $ac_compile) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); } &&
7825          { ac_try='test -s conftest.$ac_objext'
7826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827   (eval $ac_try) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; }; then
7831   ac_cv_type_long=yes
7832 else
7833   echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7835
7836 ac_cv_type_long=no
7837 fi
7838 rm -f conftest.$ac_objext conftest.$ac_ext
7839 fi
7840 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7841 echo "${ECHO_T}$ac_cv_type_long" >&6
7842
7843 echo "$as_me:$LINENO: checking size of long" >&5
7844 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7845 if test "${ac_cv_sizeof_long+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   if test "$ac_cv_type_long" = yes; then
7849   # The cast to unsigned long works around a bug in the HP C Compiler
7850   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7851   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7852   # This bug is HP SR number 8606223364.
7853   if test "$cross_compiling" = yes; then
7854   # Depending upon the size, compute the lo and hi bounds.
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 /* confdefs.h.  */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h.  */
7862 $ac_includes_default
7863 int
7864 main ()
7865 {
7866 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7867 test_array [0] = 0
7868
7869   ;
7870   return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7875   (eval $ac_compile) 2>&5
7876   ac_status=$?
7877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   (exit $ac_status); } &&
7879          { ac_try='test -s conftest.$ac_objext'
7880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881   (eval $ac_try) 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); }; }; then
7885   ac_lo=0 ac_mid=0
7886   while :; do
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 $ac_includes_default
7895 int
7896 main ()
7897 {
7898 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7899 test_array [0] = 0
7900
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907   (eval $ac_compile) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } &&
7911          { ac_try='test -s conftest.$ac_objext'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; }; then
7917   ac_hi=$ac_mid; break
7918 else
7919   echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922 ac_lo=`expr $ac_mid + 1`
7923                     if test $ac_lo -le $ac_mid; then
7924                       ac_lo= ac_hi=
7925                       break
7926                     fi
7927                     ac_mid=`expr 2 '*' $ac_mid + 1`
7928 fi
7929 rm -f conftest.$ac_objext conftest.$ac_ext
7930   done
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 cat >conftest.$ac_ext <<_ACEOF
7936 #line $LINENO "configure"
7937 /* confdefs.h.  */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h.  */
7942 $ac_includes_default
7943 int
7944 main ()
7945 {
7946 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7947 test_array [0] = 0
7948
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7955   (eval $ac_compile) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); } &&
7959          { ac_try='test -s conftest.$ac_objext'
7960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961   (eval $ac_try) 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); }; }; then
7965   ac_hi=-1 ac_mid=-1
7966   while :; do
7967     cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974 $ac_includes_default
7975 int
7976 main ()
7977 {
7978 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7979 test_array [0] = 0
7980
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987   (eval $ac_compile) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } &&
7991          { ac_try='test -s conftest.$ac_objext'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; }; then
7997   ac_lo=$ac_mid; break
7998 else
7999   echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8001
8002 ac_hi=`expr '(' $ac_mid ')' - 1`
8003                        if test $ac_mid -le $ac_hi; then
8004                          ac_lo= ac_hi=
8005                          break
8006                        fi
8007                        ac_mid=`expr 2 '*' $ac_mid`
8008 fi
8009 rm -f conftest.$ac_objext conftest.$ac_ext
8010   done
8011 else
8012   echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015 ac_lo= ac_hi=
8016 fi
8017 rm -f conftest.$ac_objext conftest.$ac_ext
8018 fi
8019 rm -f conftest.$ac_objext conftest.$ac_ext
8020 # Binary search between lo and hi bounds.
8021 while test "x$ac_lo" != "x$ac_hi"; do
8022   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8023   cat >conftest.$ac_ext <<_ACEOF
8024 #line $LINENO "configure"
8025 /* confdefs.h.  */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h.  */
8030 $ac_includes_default
8031 int
8032 main ()
8033 {
8034 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8035 test_array [0] = 0
8036
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043   (eval $ac_compile) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } &&
8047          { ac_try='test -s conftest.$ac_objext'
8048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049   (eval $ac_try) 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); }; }; then
8053   ac_hi=$ac_mid
8054 else
8055   echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 ac_lo=`expr '(' $ac_mid ')' + 1`
8059 fi
8060 rm -f conftest.$ac_objext conftest.$ac_ext
8061 done
8062 case $ac_lo in
8063 ?*) ac_cv_sizeof_long=$ac_lo;;
8064 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8065 See \`config.log' for more details." >&5
8066 echo "$as_me: error: cannot compute sizeof (long), 77
8067 See \`config.log' for more details." >&2;}
8068    { (exit 1); exit 1; }; } ;;
8069 esac
8070 else
8071   if test "$cross_compiling" = yes; then
8072   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8073 See \`config.log' for more details." >&5
8074 echo "$as_me: error: cannot run test program while cross compiling
8075 See \`config.log' for more details." >&2;}
8076    { (exit 1); exit 1; }; }
8077 else
8078   cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 $ac_includes_default
8086 long longval () { return (long) (sizeof (long)); }
8087 unsigned long ulongval () { return (long) (sizeof (long)); }
8088 #include <stdio.h>
8089 #include <stdlib.h>
8090 int
8091 main ()
8092 {
8093
8094   FILE *f = fopen ("conftest.val", "w");
8095   if (! f)
8096     exit (1);
8097   if (((long) (sizeof (long))) < 0)
8098     {
8099       long i = longval ();
8100       if (i != ((long) (sizeof (long))))
8101         exit (1);
8102       fprintf (f, "%ld\n", i);
8103     }
8104   else
8105     {
8106       unsigned long i = ulongval ();
8107       if (i != ((long) (sizeof (long))))
8108         exit (1);
8109       fprintf (f, "%lu\n", i);
8110     }
8111   exit (ferror (f) || fclose (f) != 0);
8112
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119   (eval $ac_link) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   ac_cv_sizeof_long=`cat conftest.val`
8129 else
8130   echo "$as_me: program exited with status $ac_status" >&5
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 ( exit $ac_status )
8135 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8136 See \`config.log' for more details." >&5
8137 echo "$as_me: error: cannot compute sizeof (long), 77
8138 See \`config.log' for more details." >&2;}
8139    { (exit 1); exit 1; }; }
8140 fi
8141 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 fi
8144 rm -f conftest.val
8145 else
8146   ac_cv_sizeof_long=0
8147 fi
8148 fi
8149 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8150 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8151 cat >>confdefs.h <<_ACEOF
8152 #define SIZEOF_LONG $ac_cv_sizeof_long
8153 _ACEOF
8154
8155
8156
8157 echo "$as_me:$LINENO: checking for pid_t" >&5
8158 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8159 if test "${ac_cv_type_pid_t+set}" = set; then
8160   echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162   cat >conftest.$ac_ext <<_ACEOF
8163 #line $LINENO "configure"
8164 /* confdefs.h.  */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h.  */
8169 $ac_includes_default
8170 int
8171 main ()
8172 {
8173 if ((pid_t *) 0)
8174   return 0;
8175 if (sizeof (pid_t))
8176   return 0;
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183   (eval $ac_compile) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } &&
8187          { ac_try='test -s conftest.$ac_objext'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; }; then
8193   ac_cv_type_pid_t=yes
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 ac_cv_type_pid_t=no
8199 fi
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8201 fi
8202 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8203 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8204 if test $ac_cv_type_pid_t = yes; then
8205   :
8206 else
8207
8208 cat >>confdefs.h <<_ACEOF
8209 #define pid_t int
8210 _ACEOF
8211
8212 fi
8213
8214
8215
8216
8217
8218
8219
8220 for ac_func in fgetpos memmove setegid srand48 strerror
8221 do
8222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8223 echo "$as_me:$LINENO: checking for $ac_func" >&5
8224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8225 if eval "test \"\${$as_ac_var+set}\" = set"; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 #line $LINENO "configure"
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235 /* System header to define __stub macros and hopefully few prototypes,
8236     which can conflict with char $ac_func (); below.
8237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8238     <limits.h> exists even on freestanding compilers.  */
8239 #ifdef __STDC__
8240 # include <limits.h>
8241 #else
8242 # include <assert.h>
8243 #endif
8244 /* Override any gcc2 internal prototype to avoid an error.  */
8245 #ifdef __cplusplus
8246 extern "C"
8247 {
8248 #endif
8249 /* We use char because int might match the return type of a gcc2
8250    builtin and then its argument prototype would still apply.  */
8251 char $ac_func ();
8252 /* The GNU C library defines this for functions which it implements
8253     to always fail with ENOSYS.  Some functions are actually named
8254     something starting with __ and the normal name is an alias.  */
8255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8256 choke me
8257 #else
8258 char (*f) () = $ac_func;
8259 #endif
8260 #ifdef __cplusplus
8261 }
8262 #endif
8263
8264 int
8265 main ()
8266 {
8267 return f != $ac_func;
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274   (eval $ac_link) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } &&
8278          { ac_try='test -s conftest$ac_exeext'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; }; then
8284   eval "$as_ac_var=yes"
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 eval "$as_ac_var=no"
8290 fi
8291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8292 fi
8293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8295 if test `eval echo '${'$as_ac_var'}'` = yes; then
8296   cat >>confdefs.h <<_ACEOF
8297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8298 _ACEOF
8299
8300 fi
8301 done
8302
8303
8304
8305
8306 for ac_func in strcasecmp strdup
8307 do
8308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8309 echo "$as_me:$LINENO: checking for $ac_func" >&5
8310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_var+set}\" = set"; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 /* System header to define __stub macros and hopefully few prototypes,
8322     which can conflict with char $ac_func (); below.
8323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8324     <limits.h> exists even on freestanding compilers.  */
8325 #ifdef __STDC__
8326 # include <limits.h>
8327 #else
8328 # include <assert.h>
8329 #endif
8330 /* Override any gcc2 internal prototype to avoid an error.  */
8331 #ifdef __cplusplus
8332 extern "C"
8333 {
8334 #endif
8335 /* We use char because int might match the return type of a gcc2
8336    builtin and then its argument prototype would still apply.  */
8337 char $ac_func ();
8338 /* The GNU C library defines this for functions which it implements
8339     to always fail with ENOSYS.  Some functions are actually named
8340     something starting with __ and the normal name is an alias.  */
8341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8342 choke me
8343 #else
8344 char (*f) () = $ac_func;
8345 #endif
8346 #ifdef __cplusplus
8347 }
8348 #endif
8349
8350 int
8351 main ()
8352 {
8353 return f != $ac_func;
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360   (eval $ac_link) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -s conftest$ac_exeext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   eval "$as_ac_var=yes"
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375 eval "$as_ac_var=no"
8376 fi
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8378 fi
8379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8381 if test `eval echo '${'$as_ac_var'}'` = yes; then
8382   cat >>confdefs.h <<_ACEOF
8383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8384 _ACEOF
8385
8386 else
8387   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8388 fi
8389 done
8390
8391
8392
8393 echo "$as_me:$LINENO: checking for getopt" >&5
8394 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8395 if test "${ac_cv_func_getopt+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   cat >conftest.$ac_ext <<_ACEOF
8399 #line $LINENO "configure"
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405 /* System header to define __stub macros and hopefully few prototypes,
8406     which can conflict with char getopt (); below.
8407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408     <limits.h> exists even on freestanding compilers.  */
8409 #ifdef __STDC__
8410 # include <limits.h>
8411 #else
8412 # include <assert.h>
8413 #endif
8414 /* Override any gcc2 internal prototype to avoid an error.  */
8415 #ifdef __cplusplus
8416 extern "C"
8417 {
8418 #endif
8419 /* We use char because int might match the return type of a gcc2
8420    builtin and then its argument prototype would still apply.  */
8421 char getopt ();
8422 /* The GNU C library defines this for functions which it implements
8423     to always fail with ENOSYS.  Some functions are actually named
8424     something starting with __ and the normal name is an alias.  */
8425 #if defined (__stub_getopt) || defined (__stub___getopt)
8426 choke me
8427 #else
8428 char (*f) () = getopt;
8429 #endif
8430 #ifdef __cplusplus
8431 }
8432 #endif
8433
8434 int
8435 main ()
8436 {
8437 return f != getopt;
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444   (eval $ac_link) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -s conftest$ac_exeext'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_cv_func_getopt=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 ac_cv_func_getopt=no
8460 fi
8461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8462 fi
8463 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8464 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8465
8466 if test $ac_cv_func_getopt = yes; then
8467
8468 for ac_header in getopt.h
8469 do
8470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8472   echo "$as_me:$LINENO: checking for $ac_header" >&5
8473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8475   echo $ECHO_N "(cached) $ECHO_C" >&6
8476 fi
8477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479 else
8480   # Is the header compilable?
8481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490 $ac_includes_default
8491 #include <$ac_header>
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495   (eval $ac_compile) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } &&
8499          { ac_try='test -s conftest.$ac_objext'
8500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501   (eval $ac_try) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; }; then
8505   ac_header_compiler=yes
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 ac_header_compiler=no
8511 fi
8512 rm -f conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8514 echo "${ECHO_T}$ac_header_compiler" >&6
8515
8516 # Is the header present?
8517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526 #include <$ac_header>
8527 _ACEOF
8528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } >/dev/null; then
8536   if test -s conftest.err; then
8537     ac_cpp_err=$ac_c_preproc_warn_flag
8538   else
8539     ac_cpp_err=
8540   fi
8541 else
8542   ac_cpp_err=yes
8543 fi
8544 if test -z "$ac_cpp_err"; then
8545   ac_header_preproc=yes
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550   ac_header_preproc=no
8551 fi
8552 rm -f conftest.err conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8554 echo "${ECHO_T}$ac_header_preproc" >&6
8555
8556 # So?  What about this header?
8557 case $ac_header_compiler:$ac_header_preproc in
8558   yes:no )
8559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8563     (
8564       cat <<\_ASBOX
8565 ## ------------------------------------ ##
8566 ## Report this to bug-autoconf@gnu.org. ##
8567 ## ------------------------------------ ##
8568 _ASBOX
8569     ) |
8570       sed "s/^/$as_me: WARNING:     /" >&2
8571     ;;
8572   no:yes )
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8579     (
8580       cat <<\_ASBOX
8581 ## ------------------------------------ ##
8582 ## Report this to bug-autoconf@gnu.org. ##
8583 ## ------------------------------------ ##
8584 _ASBOX
8585     ) |
8586       sed "s/^/$as_me: WARNING:     /" >&2
8587     ;;
8588 esac
8589 echo "$as_me:$LINENO: checking for $ac_header" >&5
8590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594   eval "$as_ac_Header=$ac_header_preproc"
8595 fi
8596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8598
8599 fi
8600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8601   cat >>confdefs.h <<_ACEOF
8602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8603 _ACEOF
8604
8605 fi
8606
8607 done
8608
8609 fi
8610
8611 mutt_cv_snprintf=no
8612 SNPRINTFOBJS=""
8613
8614 for ac_func in snprintf
8615 do
8616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8617 echo "$as_me:$LINENO: checking for $ac_func" >&5
8618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8619 if eval "test \"\${$as_ac_var+set}\" = set"; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   cat >conftest.$ac_ext <<_ACEOF
8623 #line $LINENO "configure"
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8629 /* System header to define __stub macros and hopefully few prototypes,
8630     which can conflict with char $ac_func (); below.
8631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632     <limits.h> exists even on freestanding compilers.  */
8633 #ifdef __STDC__
8634 # include <limits.h>
8635 #else
8636 # include <assert.h>
8637 #endif
8638 /* Override any gcc2 internal prototype to avoid an error.  */
8639 #ifdef __cplusplus
8640 extern "C"
8641 {
8642 #endif
8643 /* We use char because int might match the return type of a gcc2
8644    builtin and then its argument prototype would still apply.  */
8645 char $ac_func ();
8646 /* The GNU C library defines this for functions which it implements
8647     to always fail with ENOSYS.  Some functions are actually named
8648     something starting with __ and the normal name is an alias.  */
8649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8650 choke me
8651 #else
8652 char (*f) () = $ac_func;
8653 #endif
8654 #ifdef __cplusplus
8655 }
8656 #endif
8657
8658 int
8659 main ()
8660 {
8661 return f != $ac_func;
8662   ;
8663   return 0;
8664 }
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668   (eval $ac_link) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } &&
8672          { ac_try='test -s conftest$ac_exeext'
8673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674   (eval $ac_try) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; }; then
8678   eval "$as_ac_var=yes"
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 eval "$as_ac_var=no"
8684 fi
8685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8686 fi
8687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8689 if test `eval echo '${'$as_ac_var'}'` = yes; then
8690   cat >>confdefs.h <<_ACEOF
8691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8692 _ACEOF
8693
8694 else
8695   mutt_cv_snprintf=yes
8696 fi
8697 done
8698
8699
8700 for ac_func in vsnprintf
8701 do
8702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8703 echo "$as_me:$LINENO: checking for $ac_func" >&5
8704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8705 if eval "test \"\${$as_ac_var+set}\" = set"; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   cat >conftest.$ac_ext <<_ACEOF
8709 #line $LINENO "configure"
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 /* System header to define __stub macros and hopefully few prototypes,
8716     which can conflict with char $ac_func (); below.
8717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718     <limits.h> exists even on freestanding compilers.  */
8719 #ifdef __STDC__
8720 # include <limits.h>
8721 #else
8722 # include <assert.h>
8723 #endif
8724 /* Override any gcc2 internal prototype to avoid an error.  */
8725 #ifdef __cplusplus
8726 extern "C"
8727 {
8728 #endif
8729 /* We use char because int might match the return type of a gcc2
8730    builtin and then its argument prototype would still apply.  */
8731 char $ac_func ();
8732 /* The GNU C library defines this for functions which it implements
8733     to always fail with ENOSYS.  Some functions are actually named
8734     something starting with __ and the normal name is an alias.  */
8735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8736 choke me
8737 #else
8738 char (*f) () = $ac_func;
8739 #endif
8740 #ifdef __cplusplus
8741 }
8742 #endif
8743
8744 int
8745 main ()
8746 {
8747 return f != $ac_func;
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754   (eval $ac_link) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -s conftest$ac_exeext'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; }; then
8764   eval "$as_ac_var=yes"
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 eval "$as_ac_var=no"
8770 fi
8771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8772 fi
8773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8775 if test `eval echo '${'$as_ac_var'}'` = yes; then
8776   cat >>confdefs.h <<_ACEOF
8777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8778 _ACEOF
8779
8780 else
8781   mutt_cv_snprintf=yes
8782 fi
8783 done
8784
8785 if test $mutt_cv_snprintf = yes; then
8786         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8787 fi
8788
8789
8790 for ac_func in ftruncate
8791 do
8792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8793 echo "$as_me:$LINENO: checking for $ac_func" >&5
8794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_var+set}\" = set"; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805 /* System header to define __stub macros and hopefully few prototypes,
8806     which can conflict with char $ac_func (); below.
8807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808     <limits.h> exists even on freestanding compilers.  */
8809 #ifdef __STDC__
8810 # include <limits.h>
8811 #else
8812 # include <assert.h>
8813 #endif
8814 /* Override any gcc2 internal prototype to avoid an error.  */
8815 #ifdef __cplusplus
8816 extern "C"
8817 {
8818 #endif
8819 /* We use char because int might match the return type of a gcc2
8820    builtin and then its argument prototype would still apply.  */
8821 char $ac_func ();
8822 /* The GNU C library defines this for functions which it implements
8823     to always fail with ENOSYS.  Some functions are actually named
8824     something starting with __ and the normal name is an alias.  */
8825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8826 choke me
8827 #else
8828 char (*f) () = $ac_func;
8829 #endif
8830 #ifdef __cplusplus
8831 }
8832 #endif
8833
8834 int
8835 main ()
8836 {
8837 return f != $ac_func;
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844   (eval $ac_link) 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } &&
8848          { ac_try='test -s conftest$ac_exeext'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; }; then
8854   eval "$as_ac_var=yes"
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 eval "$as_ac_var=no"
8860 fi
8861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8862 fi
8863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8865 if test `eval echo '${'$as_ac_var'}'` = yes; then
8866   cat >>confdefs.h <<_ACEOF
8867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8868 _ACEOF
8869
8870 else
8871
8872 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8873 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8874 if test "${ac_cv_lib_x_chsize+set}" = set; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877   ac_check_lib_save_LIBS=$LIBS
8878 LIBS="-lx  $LIBS"
8879 cat >conftest.$ac_ext <<_ACEOF
8880 #line $LINENO "configure"
8881 /* confdefs.h.  */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h.  */
8886
8887 /* Override any gcc2 internal prototype to avoid an error.  */
8888 #ifdef __cplusplus
8889 extern "C"
8890 #endif
8891 /* We use char because int might match the return type of a gcc2
8892    builtin and then its argument prototype would still apply.  */
8893 char chsize ();
8894 int
8895 main ()
8896 {
8897 chsize ();
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904   (eval $ac_link) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); } &&
8908          { ac_try='test -s conftest$ac_exeext'
8909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910   (eval $ac_try) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; }; then
8914   ac_cv_lib_x_chsize=yes
8915 else
8916   echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_cv_lib_x_chsize=no
8920 fi
8921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8923 fi
8924 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8925 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8926 if test $ac_cv_lib_x_chsize = yes; then
8927   cat >>confdefs.h <<_ACEOF
8928 #define HAVE_LIBX 1
8929 _ACEOF
8930
8931   LIBS="-lx $LIBS"
8932
8933 fi
8934
8935 fi
8936 done
8937
8938
8939
8940 for ac_func in strftime
8941 do
8942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8943 echo "$as_me:$LINENO: checking for $ac_func" >&5
8944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8945 if eval "test \"\${$as_ac_var+set}\" = set"; then
8946   echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948   cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8950 /* confdefs.h.  */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h.  */
8955 /* System header to define __stub macros and hopefully few prototypes,
8956     which can conflict with char $ac_func (); below.
8957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958     <limits.h> exists even on freestanding compilers.  */
8959 #ifdef __STDC__
8960 # include <limits.h>
8961 #else
8962 # include <assert.h>
8963 #endif
8964 /* Override any gcc2 internal prototype to avoid an error.  */
8965 #ifdef __cplusplus
8966 extern "C"
8967 {
8968 #endif
8969 /* We use char because int might match the return type of a gcc2
8970    builtin and then its argument prototype would still apply.  */
8971 char $ac_func ();
8972 /* The GNU C library defines this for functions which it implements
8973     to always fail with ENOSYS.  Some functions are actually named
8974     something starting with __ and the normal name is an alias.  */
8975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8976 choke me
8977 #else
8978 char (*f) () = $ac_func;
8979 #endif
8980 #ifdef __cplusplus
8981 }
8982 #endif
8983
8984 int
8985 main ()
8986 {
8987 return f != $ac_func;
8988   ;
8989   return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994   (eval $ac_link) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } &&
8998          { ac_try='test -s conftest$ac_exeext'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; }; then
9004   eval "$as_ac_var=yes"
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 eval "$as_ac_var=no"
9010 fi
9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 fi
9013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9015 if test `eval echo '${'$as_ac_var'}'` = yes; then
9016   cat >>confdefs.h <<_ACEOF
9017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9018 _ACEOF
9019
9020 else
9021
9022 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9023 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9024 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   ac_check_lib_save_LIBS=$LIBS
9028 LIBS="-lintl  $LIBS"
9029 cat >conftest.$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036
9037 /* Override any gcc2 internal prototype to avoid an error.  */
9038 #ifdef __cplusplus
9039 extern "C"
9040 #endif
9041 /* We use char because int might match the return type of a gcc2
9042    builtin and then its argument prototype would still apply.  */
9043 char strftime ();
9044 int
9045 main ()
9046 {
9047 strftime ();
9048   ;
9049   return 0;
9050 }
9051 _ACEOF
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054   (eval $ac_link) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -s conftest$ac_exeext'
9059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060   (eval $ac_try) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; }; then
9064   ac_cv_lib_intl_strftime=yes
9065 else
9066   echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069 ac_cv_lib_intl_strftime=no
9070 fi
9071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9072 LIBS=$ac_check_lib_save_LIBS
9073 fi
9074 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9075 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9076 if test $ac_cv_lib_intl_strftime = yes; then
9077   cat >>confdefs.h <<_ACEOF
9078 #define HAVE_LIBINTL 1
9079 _ACEOF
9080
9081   LIBS="-lintl $LIBS"
9082
9083 fi
9084
9085 fi
9086 done
9087
9088
9089
9090 for ac_func in fchdir
9091 do
9092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9093 echo "$as_me:$LINENO: checking for $ac_func" >&5
9094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9095 if eval "test \"\${$as_ac_var+set}\" = set"; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098   cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105 /* System header to define __stub macros and hopefully few prototypes,
9106     which can conflict with char $ac_func (); below.
9107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9108     <limits.h> exists even on freestanding compilers.  */
9109 #ifdef __STDC__
9110 # include <limits.h>
9111 #else
9112 # include <assert.h>
9113 #endif
9114 /* Override any gcc2 internal prototype to avoid an error.  */
9115 #ifdef __cplusplus
9116 extern "C"
9117 {
9118 #endif
9119 /* We use char because int might match the return type of a gcc2
9120    builtin and then its argument prototype would still apply.  */
9121 char $ac_func ();
9122 /* The GNU C library defines this for functions which it implements
9123     to always fail with ENOSYS.  Some functions are actually named
9124     something starting with __ and the normal name is an alias.  */
9125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9126 choke me
9127 #else
9128 char (*f) () = $ac_func;
9129 #endif
9130 #ifdef __cplusplus
9131 }
9132 #endif
9133
9134 int
9135 main ()
9136 {
9137 return f != $ac_func;
9138   ;
9139   return 0;
9140 }
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144   (eval $ac_link) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); } &&
9148          { ac_try='test -s conftest$ac_exeext'
9149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150   (eval $ac_try) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); }; }; then
9154   eval "$as_ac_var=yes"
9155 else
9156   echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159 eval "$as_ac_var=no"
9160 fi
9161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9162 fi
9163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9165 if test `eval echo '${'$as_ac_var'}'` = yes; then
9166   cat >>confdefs.h <<_ACEOF
9167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9168 _ACEOF
9169
9170 else
9171   mutt_cv_fchdir=no
9172 fi
9173 done
9174
9175
9176
9177 # Check whether --with-regex or --without-regex was given.
9178 if test "${with_regex+set}" = set; then
9179   withval="$with_regex"
9180   mutt_cv_regex=yes
9181 else
9182
9183 for ac_func in regcomp
9184 do
9185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9186 echo "$as_me:$LINENO: checking for $ac_func" >&5
9187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9188 if eval "test \"\${$as_ac_var+set}\" = set"; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191   cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 /* System header to define __stub macros and hopefully few prototypes,
9199     which can conflict with char $ac_func (); below.
9200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9201     <limits.h> exists even on freestanding compilers.  */
9202 #ifdef __STDC__
9203 # include <limits.h>
9204 #else
9205 # include <assert.h>
9206 #endif
9207 /* Override any gcc2 internal prototype to avoid an error.  */
9208 #ifdef __cplusplus
9209 extern "C"
9210 {
9211 #endif
9212 /* We use char because int might match the return type of a gcc2
9213    builtin and then its argument prototype would still apply.  */
9214 char $ac_func ();
9215 /* The GNU C library defines this for functions which it implements
9216     to always fail with ENOSYS.  Some functions are actually named
9217     something starting with __ and the normal name is an alias.  */
9218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9219 choke me
9220 #else
9221 char (*f) () = $ac_func;
9222 #endif
9223 #ifdef __cplusplus
9224 }
9225 #endif
9226
9227 int
9228 main ()
9229 {
9230 return f != $ac_func;
9231   ;
9232   return 0;
9233 }
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237   (eval $ac_link) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } &&
9241          { ac_try='test -s conftest$ac_exeext'
9242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243   (eval $ac_try) 2>&5
9244   ac_status=$?
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); }; }; then
9247   eval "$as_ac_var=yes"
9248 else
9249   echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 eval "$as_ac_var=no"
9253 fi
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9258 if test `eval echo '${'$as_ac_var'}'` = yes; then
9259   cat >>confdefs.h <<_ACEOF
9260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9261 _ACEOF
9262  mutt_cv_regex=no
9263 else
9264   mutt_cv_regex=yes
9265 fi
9266 done
9267
9268 fi;
9269
9270 if test $mutt_cv_regex = no ; then
9271 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9272 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9273 if test "${mutt_cv_regex_broken+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   if test "$cross_compiling" = yes; then
9277   mutt_cv_regex_broken=yes
9278 else
9279   cat >conftest.$ac_ext <<_ACEOF
9280 #line $LINENO "configure"
9281 /* confdefs.h.  */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h.  */
9286
9287 #include <unistd.h>
9288 #include <regex.h>
9289 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); }
9290 _ACEOF
9291 rm -f conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293   (eval $ac_link) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   mutt_cv_regex_broken=no
9303 else
9304   echo "$as_me: program exited with status $ac_status" >&5
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 ( exit $ac_status )
9309 mutt_cv_regex_broken=yes
9310 fi
9311 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9312 fi
9313 fi
9314 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9315 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9316         if test $mutt_cv_regex_broken = yes ; then
9317                 echo "Using the included GNU regex instead." >&6
9318                 mutt_cv_regex=yes
9319         fi
9320 fi
9321
9322 if test $mutt_cv_regex = yes; then
9323
9324 cat >>confdefs.h <<\_ACEOF
9325 #define USE_GNU_REGEX 1
9326 _ACEOF
9327
9328         LIBOBJS="$LIBOBJS regex.$ac_objext"
9329 fi
9330
9331
9332
9333 # Check whether --with-homespool or --without-homespool was given.
9334 if test "${with_homespool+set}" = set; then
9335   withval="$with_homespool"
9336   with_homespool=${withval}
9337 fi;
9338 if test x$with_homespool != x; then
9339         if test $with_homespool = yes; then
9340                 with_homespool=mailbox
9341         fi
9342
9343 cat >>confdefs.h <<_ACEOF
9344 #define MAILPATH "$with_homespool"
9345 _ACEOF
9346
9347
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HOMESPOOL 1
9350 _ACEOF
9351
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define USE_DOTLOCK 1
9355 _ACEOF
9356
9357         mutt_cv_setgid=no
9358 else
9359
9360 # Check whether --with-mailpath or --without-mailpath was given.
9361 if test "${with_mailpath+set}" = set; then
9362   withval="$with_mailpath"
9363   mutt_cv_mailpath=$withval
9364 else
9365    echo "$as_me:$LINENO: checking where new mail is stored" >&5
9366 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9367 if test "${mutt_cv_mailpath+set}" = set; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370   mutt_cv_mailpath=no
9371                         if test -d /var/mail; then
9372                                 mutt_cv_mailpath=/var/mail
9373                         elif test -d /var/spool/mail; then
9374                                 mutt_cv_mailpath=/var/spool/mail
9375                         elif test -d /usr/spool/mail; then
9376                                 mutt_cv_mailpath=/usr/spool/mail
9377                         elif test -d /usr/mail; then
9378                                 mutt_cv_mailpath=/usr/mail
9379                         fi
9380 fi
9381 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9382 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9383
9384 fi;
9385         if test "$mutt_cv_mailpath" = no; then
9386                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9387 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9388    { (exit 1); exit 1; }; }
9389         fi
9390
9391 cat >>confdefs.h <<_ACEOF
9392 #define MAILPATH "$mutt_cv_mailpath"
9393 _ACEOF
9394
9395
9396         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9397 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9398 if test "${mutt_cv_worldwrite+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   if test "$cross_compiling" = yes; then
9402   mutt_cv_worldwrite=no
9403 else
9404   cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411 #include <sys/types.h>
9412 #include <sys/stat.h>
9413
9414 int main (int argc, char **argv)
9415 {
9416         struct stat s;
9417
9418         stat ("$mutt_cv_mailpath", &s);
9419         if (s.st_mode & S_IWOTH) exit (0);
9420         exit (1);
9421 }
9422 _ACEOF
9423 rm -f conftest$ac_exeext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425   (eval $ac_link) 2>&5
9426   ac_status=$?
9427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; }; then
9434   mutt_cv_worldwrite=yes
9435 else
9436   echo "$as_me: program exited with status $ac_status" >&5
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440 ( exit $ac_status )
9441 mutt_cv_worldwrite=no
9442 fi
9443 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9444 fi
9445 fi
9446 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9447 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9448
9449         mutt_cv_setgid=no
9450         if test $mutt_cv_worldwrite = yes; then
9451
9452 cat >>confdefs.h <<\_ACEOF
9453 #define USE_DOTLOCK 1
9454 _ACEOF
9455
9456         else
9457
9458                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9459 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9460 if test "${mutt_cv_groupwrite+set}" = set; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   if test "$cross_compiling" = yes; then
9464   mutt_cv_groupwrite=no
9465 else
9466   cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473 #include <sys/types.h>
9474 #include <sys/stat.h>
9475
9476 int main (int argc, char **argv)
9477 {
9478         struct stat s;
9479
9480         stat ("$mutt_cv_mailpath", &s);
9481         if (s.st_mode & S_IWGRP) exit (0);
9482         exit (1);
9483 }
9484 _ACEOF
9485 rm -f conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487   (eval $ac_link) 2>&5
9488   ac_status=$?
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492   (eval $ac_try) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   mutt_cv_groupwrite=yes
9497 else
9498   echo "$as_me: program exited with status $ac_status" >&5
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9501
9502 ( exit $ac_status )
9503 mutt_cv_groupwrite=no
9504 fi
9505 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9506 fi
9507 fi
9508 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9509 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9510
9511                 if test $mutt_cv_groupwrite = yes; then
9512
9513 cat >>confdefs.h <<\_ACEOF
9514 #define USE_DOTLOCK 1
9515 _ACEOF
9516
9517
9518 cat >>confdefs.h <<\_ACEOF
9519 #define USE_SETGID 1
9520 _ACEOF
9521
9522                         mutt_cv_setgid=yes
9523                 fi
9524         fi
9525 fi
9526
9527 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9528 if test "${enable_external_dotlock+set}" = set; then
9529   enableval="$enable_external_dotlock"
9530   mutt_cv_external_dotlock="$enableval"
9531 fi;
9532
9533 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9534         || test "x$mutt_cv_external_dotlock" = "xyes"
9535 then
9536
9537 cat >>confdefs.h <<\_ACEOF
9538 #define DL_STANDALONE 1
9539 _ACEOF
9540
9541         DOTLOCK_TARGET="mutt_dotlock"
9542 else
9543         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9544 fi
9545
9546
9547
9548
9549 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9550 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9551
9552 # Check whether --with-docdir or --without-docdir was given.
9553 if test "${with_docdir+set}" = set; then
9554   withval="$with_docdir"
9555   mutt_cv_docdir=$withval
9556 else
9557   mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
9558 fi;
9559 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9560 echo "${ECHO_T}$mutt_cv_docdir" >&6
9561
9562 docdir=$mutt_cv_docdir
9563
9564
9565 if test x$mutt_cv_setgid = xyes; then
9566         DOTLOCK_GROUP='mail'
9567         DOTLOCK_PERMISSION=2755
9568 else
9569         DOTLOCK_GROUP=''
9570         DOTLOCK_PERMISSION=755
9571 fi
9572
9573
9574
9575
9576 # Check whether --with-domain or --without-domain was given.
9577 if test "${with_domain+set}" = set; then
9578   withval="$with_domain"
9579   if test $withval != yes; then
9580
9581 cat >>confdefs.h <<_ACEOF
9582 #define DOMAIN "$withval"
9583 _ACEOF
9584
9585         fi
9586 fi;
9587
9588 need_socket="no"
9589
9590
9591 # Check whether --enable-pop or --disable-pop was given.
9592 if test "${enable_pop+set}" = set; then
9593   enableval="$enable_pop"
9594          if test x$enableval = xyes ; then
9595
9596 cat >>confdefs.h <<\_ACEOF
9597 #define USE_POP 1
9598 _ACEOF
9599
9600                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9601                 need_socket="yes"
9602                 need_md5="yes"
9603         fi
9604
9605 fi;
9606
9607 # Check whether --enable-imap or --disable-imap was given.
9608 if test "${enable_imap+set}" = set; then
9609   enableval="$enable_imap"
9610          if test x$enableval = xyes ; then
9611
9612 cat >>confdefs.h <<\_ACEOF
9613 #define USE_IMAP 1
9614 _ACEOF
9615
9616                 LIBIMAP="-Limap -limap"
9617                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9618                 need_imap="yes"
9619                 need_socket="yes"
9620                 need_md5="yes"
9621         fi
9622
9623 fi;
9624
9625
9626 if test x$need_imap = xyes; then
9627   BUILD_IMAP_TRUE=
9628   BUILD_IMAP_FALSE='#'
9629 else
9630   BUILD_IMAP_TRUE='#'
9631   BUILD_IMAP_FALSE=
9632 fi
9633
9634
9635 # Check whether --enable-nntp or --disable-nntp was given.
9636 if test "${enable_nntp+set}" = set; then
9637   enableval="$enable_nntp"
9638         if test x$enableval = xyes ; then
9639                 cat >>confdefs.h <<\_ACEOF
9640 #define USE_NNTP 1
9641 _ACEOF
9642
9643                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9644                 need_socket="yes"
9645         fi
9646
9647 fi;
9648
9649
9650 if test "$need_socket" = "yes"
9651 then
9652         echo "$as_me:$LINENO: checking for socklen_t" >&5
9653 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9654         cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9656 /* confdefs.h.  */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h.  */
9661 #include <sys/socket.h>
9662
9663 _ACEOF
9664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9665   $EGREP "socklen_t" >/dev/null 2>&1; then
9666   echo "$as_me:$LINENO: result: yes" >&5
9667 echo "${ECHO_T}yes" >&6
9668 else
9669   echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6
9671
9672 cat >>confdefs.h <<\_ACEOF
9673 #define socklen_t int
9674 _ACEOF
9675
9676 fi
9677 rm -f conftest*
9678
9679         echo "$as_me:$LINENO: checking for gethostent" >&5
9680 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9681 if test "${ac_cv_func_gethostent+set}" = set; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   cat >conftest.$ac_ext <<_ACEOF
9685 #line $LINENO "configure"
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691 /* System header to define __stub macros and hopefully few prototypes,
9692     which can conflict with char gethostent (); below.
9693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9694     <limits.h> exists even on freestanding compilers.  */
9695 #ifdef __STDC__
9696 # include <limits.h>
9697 #else
9698 # include <assert.h>
9699 #endif
9700 /* Override any gcc2 internal prototype to avoid an error.  */
9701 #ifdef __cplusplus
9702 extern "C"
9703 {
9704 #endif
9705 /* We use char because int might match the return type of a gcc2
9706    builtin and then its argument prototype would still apply.  */
9707 char gethostent ();
9708 /* The GNU C library defines this for functions which it implements
9709     to always fail with ENOSYS.  Some functions are actually named
9710     something starting with __ and the normal name is an alias.  */
9711 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9712 choke me
9713 #else
9714 char (*f) () = gethostent;
9715 #endif
9716 #ifdef __cplusplus
9717 }
9718 #endif
9719
9720 int
9721 main ()
9722 {
9723 return f != gethostent;
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730   (eval $ac_link) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } &&
9734          { ac_try='test -s conftest$ac_exeext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   ac_cv_func_gethostent=yes
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 ac_cv_func_gethostent=no
9746 fi
9747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9748 fi
9749 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9750 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9751 if test $ac_cv_func_gethostent = yes; then
9752   :
9753 else
9754
9755 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9756 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9757 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   ac_check_lib_save_LIBS=$LIBS
9761 LIBS="-lnsl  $LIBS"
9762 cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769
9770 /* Override any gcc2 internal prototype to avoid an error.  */
9771 #ifdef __cplusplus
9772 extern "C"
9773 #endif
9774 /* We use char because int might match the return type of a gcc2
9775    builtin and then its argument prototype would still apply.  */
9776 char gethostent ();
9777 int
9778 main ()
9779 {
9780 gethostent ();
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787   (eval $ac_link) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } &&
9791          { ac_try='test -s conftest$ac_exeext'
9792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793   (eval $ac_try) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; }; then
9797   ac_cv_lib_nsl_gethostent=yes
9798 else
9799   echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802 ac_cv_lib_nsl_gethostent=no
9803 fi
9804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9805 LIBS=$ac_check_lib_save_LIBS
9806 fi
9807 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9808 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9809 if test $ac_cv_lib_nsl_gethostent = yes; then
9810   cat >>confdefs.h <<_ACEOF
9811 #define HAVE_LIBNSL 1
9812 _ACEOF
9813
9814   LIBS="-lnsl $LIBS"
9815
9816 fi
9817
9818 fi
9819
9820         echo "$as_me:$LINENO: checking for setsockopt" >&5
9821 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9822 if test "${ac_cv_func_setsockopt+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   cat >conftest.$ac_ext <<_ACEOF
9826 #line $LINENO "configure"
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832 /* System header to define __stub macros and hopefully few prototypes,
9833     which can conflict with char setsockopt (); below.
9834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9835     <limits.h> exists even on freestanding compilers.  */
9836 #ifdef __STDC__
9837 # include <limits.h>
9838 #else
9839 # include <assert.h>
9840 #endif
9841 /* Override any gcc2 internal prototype to avoid an error.  */
9842 #ifdef __cplusplus
9843 extern "C"
9844 {
9845 #endif
9846 /* We use char because int might match the return type of a gcc2
9847    builtin and then its argument prototype would still apply.  */
9848 char setsockopt ();
9849 /* The GNU C library defines this for functions which it implements
9850     to always fail with ENOSYS.  Some functions are actually named
9851     something starting with __ and the normal name is an alias.  */
9852 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9853 choke me
9854 #else
9855 char (*f) () = setsockopt;
9856 #endif
9857 #ifdef __cplusplus
9858 }
9859 #endif
9860
9861 int
9862 main ()
9863 {
9864 return f != setsockopt;
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871   (eval $ac_link) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -s conftest$ac_exeext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_func_setsockopt=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_cv_func_setsockopt=no
9887 fi
9888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9891 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9892 if test $ac_cv_func_setsockopt = yes; then
9893   :
9894 else
9895
9896 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9897 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9898 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   ac_check_lib_save_LIBS=$LIBS
9902 LIBS="-lsocket  $LIBS"
9903 cat >conftest.$ac_ext <<_ACEOF
9904 #line $LINENO "configure"
9905 /* confdefs.h.  */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h.  */
9910
9911 /* Override any gcc2 internal prototype to avoid an error.  */
9912 #ifdef __cplusplus
9913 extern "C"
9914 #endif
9915 /* We use char because int might match the return type of a gcc2
9916    builtin and then its argument prototype would still apply.  */
9917 char setsockopt ();
9918 int
9919 main ()
9920 {
9921 setsockopt ();
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928   (eval $ac_link) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } &&
9932          { ac_try='test -s conftest$ac_exeext'
9933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; }; then
9938   ac_cv_lib_socket_setsockopt=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943 ac_cv_lib_socket_setsockopt=no
9944 fi
9945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9947 fi
9948 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9949 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9950 if test $ac_cv_lib_socket_setsockopt = yes; then
9951   cat >>confdefs.h <<_ACEOF
9952 #define HAVE_LIBSOCKET 1
9953 _ACEOF
9954
9955   LIBS="-lsocket $LIBS"
9956
9957 fi
9958
9959 fi
9960
9961
9962 for ac_func in getaddrinfo
9963 do
9964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9965 echo "$as_me:$LINENO: checking for $ac_func" >&5
9966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9967 if eval "test \"\${$as_ac_var+set}\" = set"; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   cat >conftest.$ac_ext <<_ACEOF
9971 #line $LINENO "configure"
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977 /* System header to define __stub macros and hopefully few prototypes,
9978     which can conflict with char $ac_func (); below.
9979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980     <limits.h> exists even on freestanding compilers.  */
9981 #ifdef __STDC__
9982 # include <limits.h>
9983 #else
9984 # include <assert.h>
9985 #endif
9986 /* Override any gcc2 internal prototype to avoid an error.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 {
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992    builtin and then its argument prototype would still apply.  */
9993 char $ac_func ();
9994 /* The GNU C library defines this for functions which it implements
9995     to always fail with ENOSYS.  Some functions are actually named
9996     something starting with __ and the normal name is an alias.  */
9997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9998 choke me
9999 #else
10000 char (*f) () = $ac_func;
10001 #endif
10002 #ifdef __cplusplus
10003 }
10004 #endif
10005
10006 int
10007 main ()
10008 {
10009 return f != $ac_func;
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016   (eval $ac_link) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } &&
10020          { ac_try='test -s conftest$ac_exeext'
10021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022   (eval $ac_try) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; }; then
10026   eval "$as_ac_var=yes"
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031 eval "$as_ac_var=no"
10032 fi
10033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10034 fi
10035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10037 if test `eval echo '${'$as_ac_var'}'` = yes; then
10038   cat >>confdefs.h <<_ACEOF
10039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10040 _ACEOF
10041
10042 fi
10043 done
10044
10045
10046 cat >>confdefs.h <<\_ACEOF
10047 #define USE_SOCKET 1
10048 _ACEOF
10049
10050         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10051 fi
10052
10053
10054
10055 # Check whether --with-gss or --without-gss was given.
10056 if test "${with_gss+set}" = set; then
10057   withval="$with_gss"
10058   gss_prefix="$withval"
10059 else
10060   gss_prefix="no"
10061 fi;
10062 if test "$gss_prefix" != "no"
10063 then
10064   if test "$need_imap" = "yes"
10065   then
10066
10067   GSSAPI_PREFIX=$gss_prefix
10068   GSSAPI_IMPL="none"
10069   saved_CPPFLAGS="$CPPFLAGS"
10070   saved_LDFLAGS="$LDFLAGS"
10071   saved_LIBS="$LIBS"
10072     if test "$GSSAPI_PREFIX" != "yes"
10073   then
10074     krb5_path="$GSSAPI_PREFIX/bin"
10075   else
10076     krb5_path="$PATH"
10077   fi
10078   # Extract the first word of "krb5-config", so it can be a program name with args.
10079 set dummy krb5-config; ac_word=$2
10080 echo "$as_me:$LINENO: checking for $ac_word" >&5
10081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10082 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085   case $KRB5CFGPATH in
10086   [\\/]* | ?:[\\/]*)
10087   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10088   ;;
10089   *)
10090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $krb5_path
10092 do
10093   IFS=$as_save_IFS
10094   test -z "$as_dir" && as_dir=.
10095   for ac_exec_ext in '' $ac_executable_extensions; do
10096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10099     break 2
10100   fi
10101 done
10102 done
10103
10104   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10105   ;;
10106 esac
10107 fi
10108 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10109
10110 if test -n "$KRB5CFGPATH"; then
10111   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10112 echo "${ECHO_T}$KRB5CFGPATH" >&6
10113 else
10114   echo "$as_me:$LINENO: result: no" >&5
10115 echo "${ECHO_T}no" >&6
10116 fi
10117
10118   if test "$KRB5CFGPATH" != "none"
10119   then
10120     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10121     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10122     case "`$KRB5CFGPATH --version`" in
10123       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
10124       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
10125       *)                GSSAPI_IMPL="Unknown";;
10126    esac
10127   else
10128         if test "$GSSAPI_PREFIX" != "yes"
10129     then
10130       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10131       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10132       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10133       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10134     fi
10135
10136         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10137 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10138 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10139   echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141   ac_check_lib_save_LIBS=$LIBS
10142 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10143 cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 /* confdefs.h.  */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h.  */
10150
10151 /* Override any gcc2 internal prototype to avoid an error.  */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 /* We use char because int might match the return type of a gcc2
10156    builtin and then its argument prototype would still apply.  */
10157 char gss_init_sec_context ();
10158 int
10159 main ()
10160 {
10161 gss_init_sec_context ();
10162   ;
10163   return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168   (eval $ac_link) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } &&
10172          { ac_try='test -s conftest$ac_exeext'
10173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174   (eval $ac_try) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; }; then
10178   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10184 fi
10185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10186 LIBS=$ac_check_lib_save_LIBS
10187 fi
10188 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10189 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10190 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10191
10192       GSSAPI_IMPL="MIT",
10193       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10194
10195 fi
10196
10197
10198         if test "$GSSAPI_IMPL" = "none"
10199     then
10200       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10201 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10202 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 /* confdefs.h.  */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h.  */
10214
10215 /* Override any gcc2 internal prototype to avoid an error.  */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 /* We use char because int might match the return type of a gcc2
10220    builtin and then its argument prototype would still apply.  */
10221 char gss_init_sec_context ();
10222 int
10223 main ()
10224 {
10225 gss_init_sec_context ();
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232   (eval $ac_link) 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } &&
10236          { ac_try='test -s conftest$ac_exeext'
10237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238   (eval $ac_try) 2>&5
10239   ac_status=$?
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); }; }; then
10242   ac_cv_lib_gssapi_gss_init_sec_context=yes
10243 else
10244   echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10246
10247 ac_cv_lib_gssapi_gss_init_sec_context=no
10248 fi
10249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10251 fi
10252 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10253 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10254 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10255
10256           GSSAPI_IMPL="Heimdal"
10257           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10258           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10259
10260 fi
10261
10262     fi
10263
10264                             if test "$GSSAPI_IMPL" = "none"
10265     then
10266       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10267 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10268 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   ac_check_lib_save_LIBS=$LIBS
10272 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280
10281 /* Override any gcc2 internal prototype to avoid an error.  */
10282 #ifdef __cplusplus
10283 extern "C"
10284 #endif
10285 /* We use char because int might match the return type of a gcc2
10286    builtin and then its argument prototype would still apply.  */
10287 char g_order_init ();
10288 int
10289 main ()
10290 {
10291 g_order_init ();
10292   ;
10293   return 0;
10294 }
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298   (eval $ac_link) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } &&
10302          { ac_try='test -s conftest$ac_exeext'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; }; then
10308   ac_cv_lib_gssapi_krb5_g_order_init=yes
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313 ac_cv_lib_gssapi_krb5_g_order_init=no
10314 fi
10315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10317 fi
10318 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10319 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10320 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10321
10322         GSSAPI_IMPL="OldMIT",
10323         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10324
10325 fi
10326
10327     fi
10328   fi
10329
10330   CPPFLAGS="$saved_CPPFLAGS"
10331   LDFLAGS="$saved_LDFLAGS"
10332   LIBS="$saved_LIBS"
10333
10334     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10335 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10336     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10337 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10338     if test "$GSSAPI_IMPL" = "none"
10339     then
10340       cat >confcache <<\_ACEOF
10341 # This file is a shell script that caches the results of configure
10342 # tests run on this system so they can be shared between configure
10343 # scripts and configure runs, see configure's option --config-cache.
10344 # It is not useful on other systems.  If it contains results you don't
10345 # want to keep, you may remove or edit it.
10346 #
10347 # config.status only pays attention to the cache file if you give it
10348 # the --recheck option to rerun configure.
10349 #
10350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10352 # following values.
10353
10354 _ACEOF
10355
10356 # The following way of writing the cache mishandles newlines in values,
10357 # but we know of no workaround that is simple, portable, and efficient.
10358 # So, don't put newlines in cache variables' values.
10359 # Ultrix sh set writes to stderr and can't be redirected directly,
10360 # and sets the high bit in the cache file unless we assign to the vars.
10361 {
10362   (set) 2>&1 |
10363     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10364     *ac_space=\ *)
10365       # `set' does not quote correctly, so add quotes (double-quote
10366       # substitution turns \\\\ into \\, and sed turns \\ into \).
10367       sed -n \
10368         "s/'/'\\\\''/g;
10369           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10370       ;;
10371     *)
10372       # `set' quotes correctly as required by POSIX, so do not add quotes.
10373       sed -n \
10374         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10375       ;;
10376     esac;
10377 } |
10378   sed '
10379      t clear
10380      : clear
10381      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10382      t end
10383      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10384      : end' >>confcache
10385 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10386   if test -w $cache_file; then
10387     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10388     cat confcache >$cache_file
10389   else
10390     echo "not updating unwritable cache $cache_file"
10391   fi
10392 fi
10393 rm -f confcache
10394       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10395 echo "${ECHO_T}GSSAPI libraries not found" >&6
10396     fi
10397     if test "$GSSAPI_IMPL" = "Heimdal"
10398     then
10399
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_HEIMDAL 1
10402 _ACEOF
10403
10404     fi
10405     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10406     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10407
10408 cat >>confdefs.h <<\_ACEOF
10409 #define USE_GSS 1
10410 _ACEOF
10411
10412     need_gss="yes"
10413   else
10414     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10415 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10416   fi
10417 fi
10418
10419
10420 if test x$need_gss = xyes; then
10421   USE_GSS_TRUE=
10422   USE_GSS_FALSE='#'
10423 else
10424   USE_GSS_TRUE='#'
10425   USE_GSS_FALSE=
10426 fi
10427
10428
10429
10430
10431 # Check whether --with-ssl or --without-ssl was given.
10432 if test "${with_ssl+set}" = set; then
10433   withval="$with_ssl"
10434          if test "$with_ssl" != "no"
10435         then
10436           if test "$need_socket" != "yes"; then
10437            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10438 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10439    { (exit 1); exit 1; }; }
10440           fi
10441
10442           if test "$with_ssl" != "yes"
10443           then
10444            LDFLAGS="$LDFLAGS -L$withval/lib"
10445            CPPFLAGS="$CPPFLAGS -I$withval/include"
10446           fi
10447           saved_LIBS="$LIBS"
10448
10449
10450 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10451 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10452 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10453   echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455   ac_check_lib_save_LIBS=$LIBS
10456 LIBS="-lcrypto  $LIBS"
10457 cat >conftest.$ac_ext <<_ACEOF
10458 #line $LINENO "configure"
10459 /* confdefs.h.  */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h.  */
10464
10465 /* Override any gcc2 internal prototype to avoid an error.  */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 /* We use char because int might match the return type of a gcc2
10470    builtin and then its argument prototype would still apply.  */
10471 char X509_new ();
10472 int
10473 main ()
10474 {
10475 X509_new ();
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482   (eval $ac_link) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } &&
10486          { ac_try='test -s conftest$ac_exeext'
10487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488   (eval $ac_try) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; }; then
10492   ac_cv_lib_crypto_X509_new=yes
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 ac_cv_lib_crypto_X509_new=no
10498 fi
10499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_check_lib_save_LIBS
10501 fi
10502 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10503 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10504 if test $ac_cv_lib_crypto_X509_new = yes; then
10505   cat >>confdefs.h <<_ACEOF
10506 #define HAVE_LIBCRYPTO 1
10507 _ACEOF
10508
10509   LIBS="-lcrypto $LIBS"
10510
10511 else
10512   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10513 echo "$as_me: error: Unable to find SSL library" >&2;}
10514    { (exit 1); exit 1; }; }
10515 fi
10516
10517
10518 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10519 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10520 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10521   echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523   ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-lssl -lcrypto $LIBS"
10525 cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 /* confdefs.h.  */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h.  */
10532
10533 /* Override any gcc2 internal prototype to avoid an error.  */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 /* We use char because int might match the return type of a gcc2
10538    builtin and then its argument prototype would still apply.  */
10539 char SSL_new ();
10540 int
10541 main ()
10542 {
10543 SSL_new ();
10544   ;
10545   return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550   (eval $ac_link) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); } &&
10554          { ac_try='test -s conftest$ac_exeext'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; }; then
10560   ac_cv_lib_ssl_SSL_new=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 ac_cv_lib_ssl_SSL_new=no
10566 fi
10567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10569 fi
10570 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10571 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10572 if test $ac_cv_lib_ssl_SSL_new = yes; then
10573   cat >>confdefs.h <<_ACEOF
10574 #define HAVE_LIBSSL 1
10575 _ACEOF
10576
10577   LIBS="-lssl $LIBS"
10578
10579 else
10580   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10581 echo "$as_me: error: Unable to find SSL library" >&2;}
10582    { (exit 1); exit 1; }; }
10583 fi
10584
10585
10586
10587
10588 for ac_func in RAND_status RAND_egd
10589 do
10590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10591 echo "$as_me:$LINENO: checking for $ac_func" >&5
10592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10593 if eval "test \"\${$as_ac_var+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 $ac_func (); 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 $ac_func ();
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_$ac_func) || defined (__stub___$ac_func)
10624 choke me
10625 #else
10626 char (*f) () = $ac_func;
10627 #endif
10628 #ifdef __cplusplus
10629 }
10630 #endif
10631
10632 int
10633 main ()
10634 {
10635 return f != $ac_func;
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   eval "$as_ac_var=yes"
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 eval "$as_ac_var=no"
10658 fi
10659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660 fi
10661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10663 if test `eval echo '${'$as_ac_var'}'` = yes; then
10664   cat >>confdefs.h <<_ACEOF
10665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10666 _ACEOF
10667
10668 fi
10669 done
10670
10671
10672
10673 cat >>confdefs.h <<\_ACEOF
10674 #define USE_SSL 1
10675 _ACEOF
10676
10677           LIBS="$saved_LIBS"
10678           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10679           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10680           need_ssl=yes
10681
10682         fi
10683
10684 fi;
10685
10686
10687 if test x$need_ssl = xyes; then
10688   USE_SSL_TRUE=
10689   USE_SSL_FALSE='#'
10690 else
10691   USE_SSL_TRUE='#'
10692   USE_SSL_FALSE=
10693 fi
10694
10695
10696
10697 # Check whether --with-nss or --without-nss was given.
10698 if test "${with_nss+set}" = set; then
10699   withval="$with_nss"
10700          if test "$with_nss" != no
10701         then
10702           if test "$need_socket" != "yes"; then
10703            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10704 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10705    { (exit 1); exit 1; }; }
10706           fi
10707
10708           if test "$with_nss" != "yes"
10709           then
10710            LDFLAGS="$LDFLAGS -L$withval/lib"
10711            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10712           fi
10713
10714
10715 cat >>confdefs.h <<\_ACEOF
10716 #define USE_NSS 1
10717 _ACEOF
10718
10719           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10720           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10721           MUTTLIBS="$MUTTLIBS -lnspr4"
10722
10723           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10724           need_ssl=yes
10725         fi
10726
10727 fi;
10728
10729
10730 # Check whether --with-sasl or --without-sasl was given.
10731 if test "${with_sasl+set}" = set; then
10732   withval="$with_sasl"
10733
10734         if test "$need_socket" != "yes"
10735         then
10736           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10737 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10738    { (exit 1); exit 1; }; }
10739         fi
10740
10741         if test "$with_sasl" != "no"
10742         then
10743           if test "$with_sasl" != "yes"
10744           then
10745             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10746             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10747           fi
10748
10749           saved_LIBS="$LIBS"
10750
10751
10752 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10753 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10754 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-lsasl  $LIBS"
10759 cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10761 /* confdefs.h.  */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h.  */
10766
10767 /* Override any gcc2 internal prototype to avoid an error.  */
10768 #ifdef __cplusplus
10769 extern "C"
10770 #endif
10771 /* We use char because int might match the return type of a gcc2
10772    builtin and then its argument prototype would still apply.  */
10773 char sasl_client_init ();
10774 int
10775 main ()
10776 {
10777 sasl_client_init ();
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784   (eval $ac_link) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -s conftest$ac_exeext'
10789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790   (eval $ac_try) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; }; then
10794   ac_cv_lib_sasl_sasl_client_init=yes
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 ac_cv_lib_sasl_sasl_client_init=no
10800 fi
10801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10803 fi
10804 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10805 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10806 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10807   cat >>confdefs.h <<_ACEOF
10808 #define HAVE_LIBSASL 1
10809 _ACEOF
10810
10811   LIBS="-lsasl $LIBS"
10812
10813 else
10814   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10815 echo "$as_me: error: could not find libsasl" >&2;}
10816    { (exit 1); exit 1; }; }
10817 fi
10818
10819
10820           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10821           MUTTLIBS="$MUTTLIBS -lsasl"
10822           LIBS="$saved_LIBS"
10823
10824 cat >>confdefs.h <<\_ACEOF
10825 #define USE_SASL 1
10826 _ACEOF
10827
10828           need_sasl=yes
10829         fi
10830
10831 fi;
10832
10833
10834 if test x$need_sasl = xyes; then
10835   USE_SASL_TRUE=
10836   USE_SASL_FALSE='#'
10837 else
10838   USE_SASL_TRUE='#'
10839   USE_SASL_FALSE=
10840 fi
10841
10842
10843
10844 # Check whether --with-sasl2 or --without-sasl2 was given.
10845 if test "${with_sasl2+set}" = set; then
10846   withval="$with_sasl2"
10847
10848         if test "$need_socket" != "yes"
10849         then
10850           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10851 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10852    { (exit 1); exit 1; }; }
10853         fi
10854
10855         if test "$with_sasl2" != "no"
10856         then
10857           if test "$with_sasl2" != "yes"
10858           then
10859             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10860             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10861           fi
10862
10863           saved_LIBS="$LIBS"
10864
10865
10866 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10867 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10868 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lsasl2  $LIBS"
10873 cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880
10881 /* Override any gcc2 internal prototype to avoid an error.  */
10882 #ifdef __cplusplus
10883 extern "C"
10884 #endif
10885 /* We use char because int might match the return type of a gcc2
10886    builtin and then its argument prototype would still apply.  */
10887 char sasl_client_init ();
10888 int
10889 main ()
10890 {
10891 sasl_client_init ();
10892   ;
10893   return 0;
10894 }
10895 _ACEOF
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898   (eval $ac_link) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } &&
10902          { ac_try='test -s conftest$ac_exeext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ac_cv_lib_sasl2_sasl_client_init=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_cv_lib_sasl2_sasl_client_init=no
10914 fi
10915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
10919 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
10920 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
10921   cat >>confdefs.h <<_ACEOF
10922 #define HAVE_LIBSASL2 1
10923 _ACEOF
10924
10925   LIBS="-lsasl2 $LIBS"
10926
10927 else
10928   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10929 echo "$as_me: error: could not find libsasl" >&2;}
10930    { (exit 1); exit 1; }; }
10931 fi
10932
10933
10934           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10935           MUTTLIBS="$MUTTLIBS -lsasl2"
10936           LIBS="$saved_LIBS"
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define USE_SASL 1
10940 _ACEOF
10941
10942
10943 cat >>confdefs.h <<\_ACEOF
10944 #define USE_SASL2 1
10945 _ACEOF
10946
10947           need_sasl=yes
10948         fi
10949
10950 fi;
10951
10952
10953 if test x$need_sasl = xyes; then
10954   USE_SASL_TRUE=
10955   USE_SASL_FALSE='#'
10956 else
10957   USE_SASL_TRUE='#'
10958   USE_SASL_FALSE=
10959 fi
10960
10961
10962
10963 # Check whether --with-idn or --without-idn was given.
10964 if test "${with_idn+set}" = set; then
10965   withval="$with_idn"
10966
10967                   if test "$with_idn" != "no" ; then
10968                         if test "$with_idn" != "yes" ; then
10969                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
10970                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
10971                         fi
10972                   fi
10973
10974
10975 fi;
10976
10977 if test "x$with_idn" != "xno"; then
10978
10979 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
10980 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
10981 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lidn  $LIBS"
10986 cat >conftest.$ac_ext <<_ACEOF
10987 #line $LINENO "configure"
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993
10994 /* Override any gcc2 internal prototype to avoid an error.  */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 /* We use char because int might match the return type of a gcc2
10999    builtin and then its argument prototype would still apply.  */
11000 char stringprep_check_version ();
11001 int
11002 main ()
11003 {
11004 stringprep_check_version ();
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011   (eval $ac_link) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -s conftest$ac_exeext'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; }; then
11021   ac_cv_lib_idn_stringprep_check_version=yes
11022 else
11023   echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 ac_cv_lib_idn_stringprep_check_version=no
11027 fi
11028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_lib_save_LIBS
11030 fi
11031 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11032 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11033 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11034   cat >>confdefs.h <<_ACEOF
11035 #define HAVE_LIBIDN 1
11036 _ACEOF
11037
11038   LIBS="-lidn $LIBS"
11039
11040 fi
11041
11042
11043
11044 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11045 do
11046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11047 echo "$as_me:$LINENO: checking for $ac_func" >&5
11048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11049 if eval "test \"\${$as_ac_var+set}\" = set"; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052   cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059 /* System header to define __stub macros and hopefully few prototypes,
11060     which can conflict with char $ac_func (); below.
11061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062     <limits.h> exists even on freestanding compilers.  */
11063 #ifdef __STDC__
11064 # include <limits.h>
11065 #else
11066 # include <assert.h>
11067 #endif
11068 /* Override any gcc2 internal prototype to avoid an error.  */
11069 #ifdef __cplusplus
11070 extern "C"
11071 {
11072 #endif
11073 /* We use char because int might match the return type of a gcc2
11074    builtin and then its argument prototype would still apply.  */
11075 char $ac_func ();
11076 /* The GNU C library defines this for functions which it implements
11077     to always fail with ENOSYS.  Some functions are actually named
11078     something starting with __ and the normal name is an alias.  */
11079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11080 choke me
11081 #else
11082 char (*f) () = $ac_func;
11083 #endif
11084 #ifdef __cplusplus
11085 }
11086 #endif
11087
11088 int
11089 main ()
11090 {
11091 return f != $ac_func;
11092   ;
11093   return 0;
11094 }
11095 _ACEOF
11096 rm -f conftest.$ac_objext conftest$ac_exeext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11098   (eval $ac_link) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } &&
11102          { ac_try='test -s conftest$ac_exeext'
11103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104   (eval $ac_try) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; }; then
11108   eval "$as_ac_var=yes"
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 eval "$as_ac_var=no"
11114 fi
11115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11116 fi
11117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120   cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11122 _ACEOF
11123
11124 fi
11125 done
11126
11127
11128
11129 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11130 do
11131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11132 echo "$as_me:$LINENO: checking for $ac_func" >&5
11133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11134 if eval "test \"\${$as_ac_var+set}\" = set"; then
11135   echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137   cat >conftest.$ac_ext <<_ACEOF
11138 #line $LINENO "configure"
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 /* System header to define __stub macros and hopefully few prototypes,
11145     which can conflict with char $ac_func (); below.
11146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11147     <limits.h> exists even on freestanding compilers.  */
11148 #ifdef __STDC__
11149 # include <limits.h>
11150 #else
11151 # include <assert.h>
11152 #endif
11153 /* Override any gcc2 internal prototype to avoid an error.  */
11154 #ifdef __cplusplus
11155 extern "C"
11156 {
11157 #endif
11158 /* We use char because int might match the return type of a gcc2
11159    builtin and then its argument prototype would still apply.  */
11160 char $ac_func ();
11161 /* The GNU C library defines this for functions which it implements
11162     to always fail with ENOSYS.  Some functions are actually named
11163     something starting with __ and the normal name is an alias.  */
11164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11165 choke me
11166 #else
11167 char (*f) () = $ac_func;
11168 #endif
11169 #ifdef __cplusplus
11170 }
11171 #endif
11172
11173 int
11174 main ()
11175 {
11176 return f != $ac_func;
11177   ;
11178   return 0;
11179 }
11180 _ACEOF
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11183   (eval $ac_link) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -s conftest$ac_exeext'
11188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189   (eval $ac_try) 2>&5
11190   ac_status=$?
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); }; }; then
11193   eval "$as_ac_var=yes"
11194 else
11195   echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11197
11198 eval "$as_ac_var=no"
11199 fi
11200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11201 fi
11202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11204 if test `eval echo '${'$as_ac_var'}'` = yes; then
11205   cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11207 _ACEOF
11208
11209 fi
11210 done
11211
11212
11213
11214 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11215 do
11216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11217 echo "$as_me:$LINENO: checking for $ac_func" >&5
11218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11219 if eval "test \"\${$as_ac_var+set}\" = set"; then
11220   echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222   cat >conftest.$ac_ext <<_ACEOF
11223 #line $LINENO "configure"
11224 /* confdefs.h.  */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h.  */
11229 /* System header to define __stub macros and hopefully few prototypes,
11230     which can conflict with char $ac_func (); below.
11231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11232     <limits.h> exists even on freestanding compilers.  */
11233 #ifdef __STDC__
11234 # include <limits.h>
11235 #else
11236 # include <assert.h>
11237 #endif
11238 /* Override any gcc2 internal prototype to avoid an error.  */
11239 #ifdef __cplusplus
11240 extern "C"
11241 {
11242 #endif
11243 /* We use char because int might match the return type of a gcc2
11244    builtin and then its argument prototype would still apply.  */
11245 char $ac_func ();
11246 /* The GNU C library defines this for functions which it implements
11247     to always fail with ENOSYS.  Some functions are actually named
11248     something starting with __ and the normal name is an alias.  */
11249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11250 choke me
11251 #else
11252 char (*f) () = $ac_func;
11253 #endif
11254 #ifdef __cplusplus
11255 }
11256 #endif
11257
11258 int
11259 main ()
11260 {
11261 return f != $ac_func;
11262   ;
11263   return 0;
11264 }
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268   (eval $ac_link) 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -s conftest$ac_exeext'
11273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274   (eval $ac_try) 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; }; then
11278   eval "$as_ac_var=yes"
11279 else
11280   echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 eval "$as_ac_var=no"
11284 fi
11285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11286 fi
11287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11289 if test `eval echo '${'$as_ac_var'}'` = yes; then
11290   cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11292 _ACEOF
11293
11294 fi
11295 done
11296
11297 fi
11298
11299 if test "$need_md5" = "yes"
11300 then
11301         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
11302 fi
11303
11304
11305 # Check whether --enable-debug or --disable-debug was given.
11306 if test "${enable_debug+set}" = set; then
11307   enableval="$enable_debug"
11308    if test x$enableval = xyes ; then
11309
11310 cat >>confdefs.h <<\_ACEOF
11311 #define DEBUG 1
11312 _ACEOF
11313
11314           fi
11315
11316 fi;
11317
11318 # Check whether --enable-flock or --disable-flock was given.
11319 if test "${enable_flock+set}" = set; then
11320   enableval="$enable_flock"
11321   if test $enableval = yes; then
11322
11323 cat >>confdefs.h <<\_ACEOF
11324 #define USE_FLOCK 1
11325 _ACEOF
11326
11327         fi
11328 fi;
11329
11330 mutt_cv_fcntl=yes
11331 # Check whether --enable-fcntl or --disable-fcntl was given.
11332 if test "${enable_fcntl+set}" = set; then
11333   enableval="$enable_fcntl"
11334   if test $enableval = no; then mutt_cv_fcntl=no; fi
11335 fi;
11336
11337 if test $mutt_cv_fcntl = yes; then
11338
11339 cat >>confdefs.h <<\_ACEOF
11340 #define USE_FCNTL 1
11341 _ACEOF
11342
11343 fi
11344
11345 mutt_cv_warnings=yes
11346 # Check whether --enable-warnings or --disable-warnings was given.
11347 if test "${enable_warnings+set}" = set; then
11348   enableval="$enable_warnings"
11349   if test $enableval = no; then
11350         mutt_cv_warnings=no
11351 fi
11352 fi;
11353
11354 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11355         CFLAGS="-Wall -pedantic $CFLAGS"
11356 fi
11357
11358 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11359 if test "${enable_nfs_fix+set}" = set; then
11360   enableval="$enable_nfs_fix"
11361   if test x$enableval = xyes; then
11362
11363 cat >>confdefs.h <<\_ACEOF
11364 #define NFS_ATTRIBUTE_HACK 1
11365 _ACEOF
11366
11367         fi
11368 fi;
11369
11370 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11371 if test "${enable_buffy_size+set}" = set; then
11372   enableval="$enable_buffy_size"
11373   if test x$enableval = xyes; then
11374
11375 cat >>confdefs.h <<\_ACEOF
11376 #define BUFFY_SIZE 1
11377 _ACEOF
11378
11379         fi
11380 fi;
11381
11382 # Check whether --enable-mailtool or --disable-mailtool was given.
11383 if test "${enable_mailtool+set}" = set; then
11384   enableval="$enable_mailtool"
11385   if test x$enableval = xyes; then
11386
11387 cat >>confdefs.h <<\_ACEOF
11388 #define SUN_ATTACHMENT 1
11389 _ACEOF
11390
11391         fi
11392 fi;
11393
11394 # Check whether --enable-compressed or --disable-compressed was given.
11395 if test "${enable_compressed+set}" = set; then
11396   enableval="$enable_compressed"
11397   if test x$enableval = xyes; then
11398                 cat >>confdefs.h <<\_ACEOF
11399 #define USE_COMPRESSED 1
11400 _ACEOF
11401
11402         fi
11403 fi;
11404
11405 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11406 if test "${enable_locales_fix+set}" = set; then
11407   enableval="$enable_locales_fix"
11408   if test x$enableval = xyes; then
11409
11410 cat >>confdefs.h <<\_ACEOF
11411 #define LOCALES_HACK 1
11412 _ACEOF
11413
11414         fi
11415 fi;
11416
11417
11418 # Check whether --with-exec-shell or --without-exec-shell was given.
11419 if test "${with_exec_shell+set}" = set; then
11420   withval="$with_exec_shell"
11421   if test $withval != yes; then
11422
11423 cat >>confdefs.h <<_ACEOF
11424 #define EXECSHELL "$withval"
11425 _ACEOF
11426
11427          else
11428                 cat >>confdefs.h <<_ACEOF
11429 #define EXECSHELL "/bin/sh"
11430 _ACEOF
11431
11432         fi
11433 else
11434   cat >>confdefs.h <<_ACEOF
11435 #define EXECSHELL "/bin/sh"
11436 _ACEOF
11437
11438 fi;
11439
11440 # Check whether --enable-exact-address or --disable-exact-address was given.
11441 if test "${enable_exact_address+set}" = set; then
11442   enableval="$enable_exact_address"
11443   if test $enableval = yes; then
11444
11445 cat >>confdefs.h <<\_ACEOF
11446 #define EXACT_ADDRESS 1
11447 _ACEOF
11448
11449
11450         fi
11451 fi;
11452
11453
11454
11455
11456
11457
11458
11459 # Check whether --enable-iconv or --disable-iconv was given.
11460 if test "${enable_iconv+set}" = set; then
11461   enableval="$enable_iconv"
11462   if test x$enableval = xno ; then
11463                 am_cv_func_iconv=no
11464         fi
11465
11466 fi;
11467
11468 echo "$as_me:$LINENO: checking for off_t" >&5
11469 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11470 if test "${ac_cv_type_off_t+set}" = set; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473   cat >conftest.$ac_ext <<_ACEOF
11474 #line $LINENO "configure"
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 $ac_includes_default
11481 int
11482 main ()
11483 {
11484 if ((off_t *) 0)
11485   return 0;
11486 if (sizeof (off_t))
11487   return 0;
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494   (eval $ac_compile) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -s conftest.$ac_objext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   ac_cv_type_off_t=yes
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_cv_type_off_t=no
11510 fi
11511 rm -f conftest.$ac_objext conftest.$ac_ext
11512 fi
11513 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11514 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11515 if test $ac_cv_type_off_t = yes; then
11516   :
11517 else
11518
11519 cat >>confdefs.h <<_ACEOF
11520 #define off_t long
11521 _ACEOF
11522
11523 fi
11524
11525 echo "$as_me:$LINENO: checking for size_t" >&5
11526 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11527 if test "${ac_cv_type_size_t+set}" = set; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537 $ac_includes_default
11538 int
11539 main ()
11540 {
11541 if ((size_t *) 0)
11542   return 0;
11543 if (sizeof (size_t))
11544   return 0;
11545   ;
11546   return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551   (eval $ac_compile) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); } &&
11555          { ac_try='test -s conftest.$ac_objext'
11556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557   (eval $ac_try) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; }; then
11561   ac_cv_type_size_t=yes
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566 ac_cv_type_size_t=no
11567 fi
11568 rm -f conftest.$ac_objext conftest.$ac_ext
11569 fi
11570 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11571 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11572 if test $ac_cv_type_size_t = yes; then
11573   :
11574 else
11575
11576 cat >>confdefs.h <<_ACEOF
11577 #define size_t unsigned
11578 _ACEOF
11579
11580 fi
11581
11582 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11583 # for constant arguments.  Useless!
11584 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11585 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11586 if test "${ac_cv_working_alloca_h+set}" = set; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   cat >conftest.$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11591 /* confdefs.h.  */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h.  */
11596 #include <alloca.h>
11597 int
11598 main ()
11599 {
11600 char *p = (char *) alloca (2 * sizeof (int));
11601   ;
11602   return 0;
11603 }
11604 _ACEOF
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607   (eval $ac_link) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -s conftest$ac_exeext'
11612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613   (eval $ac_try) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; }; then
11617   ac_cv_working_alloca_h=yes
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 ac_cv_working_alloca_h=no
11623 fi
11624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11625 fi
11626 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11627 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11628 if test $ac_cv_working_alloca_h = yes; then
11629
11630 cat >>confdefs.h <<\_ACEOF
11631 #define HAVE_ALLOCA_H 1
11632 _ACEOF
11633
11634 fi
11635
11636 echo "$as_me:$LINENO: checking for alloca" >&5
11637 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11638 if test "${ac_cv_func_alloca_works+set}" = set; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 #line $LINENO "configure"
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 #ifdef __GNUC__
11649 # define alloca __builtin_alloca
11650 #else
11651 # ifdef _MSC_VER
11652 #  include <malloc.h>
11653 #  define alloca _alloca
11654 # else
11655 #  if HAVE_ALLOCA_H
11656 #   include <alloca.h>
11657 #  else
11658 #   ifdef _AIX
11659  #pragma alloca
11660 #   else
11661 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11662 char *alloca ();
11663 #    endif
11664 #   endif
11665 #  endif
11666 # endif
11667 #endif
11668
11669 int
11670 main ()
11671 {
11672 char *p = (char *) alloca (1);
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679   (eval $ac_link) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); } &&
11683          { ac_try='test -s conftest$ac_exeext'
11684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685   (eval $ac_try) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   ac_cv_func_alloca_works=yes
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 ac_cv_func_alloca_works=no
11695 fi
11696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11699 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11700
11701 if test $ac_cv_func_alloca_works = yes; then
11702
11703 cat >>confdefs.h <<\_ACEOF
11704 #define HAVE_ALLOCA 1
11705 _ACEOF
11706
11707 else
11708   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11709 # that cause trouble.  Some versions do not even contain alloca or
11710 # contain a buggy version.  If you still want to use their alloca,
11711 # use ar to extract alloca.o from them instead of compiling alloca.c.
11712
11713 ALLOCA=alloca.$ac_objext
11714
11715 cat >>confdefs.h <<\_ACEOF
11716 #define C_ALLOCA 1
11717 _ACEOF
11718
11719
11720 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11721 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11722 if test "${ac_cv_os_cray+set}" = set; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   cat >conftest.$ac_ext <<_ACEOF
11726 #line $LINENO "configure"
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732 #if defined(CRAY) && ! defined(CRAY2)
11733 webecray
11734 #else
11735 wenotbecray
11736 #endif
11737
11738 _ACEOF
11739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11740   $EGREP "webecray" >/dev/null 2>&1; then
11741   ac_cv_os_cray=yes
11742 else
11743   ac_cv_os_cray=no
11744 fi
11745 rm -f conftest*
11746
11747 fi
11748 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11749 echo "${ECHO_T}$ac_cv_os_cray" >&6
11750 if test $ac_cv_os_cray = yes; then
11751   for ac_func in _getb67 GETB67 getb67; do
11752     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753 echo "$as_me:$LINENO: checking for $ac_func" >&5
11754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11755 if eval "test \"\${$as_ac_var+set}\" = set"; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   cat >conftest.$ac_ext <<_ACEOF
11759 #line $LINENO "configure"
11760 /* confdefs.h.  */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h.  */
11765 /* System header to define __stub macros and hopefully few prototypes,
11766     which can conflict with char $ac_func (); below.
11767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768     <limits.h> exists even on freestanding compilers.  */
11769 #ifdef __STDC__
11770 # include <limits.h>
11771 #else
11772 # include <assert.h>
11773 #endif
11774 /* Override any gcc2 internal prototype to avoid an error.  */
11775 #ifdef __cplusplus
11776 extern "C"
11777 {
11778 #endif
11779 /* We use char because int might match the return type of a gcc2
11780    builtin and then its argument prototype would still apply.  */
11781 char $ac_func ();
11782 /* The GNU C library defines this for functions which it implements
11783     to always fail with ENOSYS.  Some functions are actually named
11784     something starting with __ and the normal name is an alias.  */
11785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11786 choke me
11787 #else
11788 char (*f) () = $ac_func;
11789 #endif
11790 #ifdef __cplusplus
11791 }
11792 #endif
11793
11794 int
11795 main ()
11796 {
11797 return f != $ac_func;
11798   ;
11799   return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804   (eval $ac_link) 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); } &&
11808          { ac_try='test -s conftest$ac_exeext'
11809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810   (eval $ac_try) 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }; }; then
11814   eval "$as_ac_var=yes"
11815 else
11816   echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 eval "$as_ac_var=no"
11820 fi
11821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11822 fi
11823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11825 if test `eval echo '${'$as_ac_var'}'` = yes; then
11826
11827 cat >>confdefs.h <<_ACEOF
11828 #define CRAY_STACKSEG_END $ac_func
11829 _ACEOF
11830
11831     break
11832 fi
11833
11834   done
11835 fi
11836
11837 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11838 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11839 if test "${ac_cv_c_stack_direction+set}" = set; then
11840   echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842   if test "$cross_compiling" = yes; then
11843   ac_cv_c_stack_direction=0
11844 else
11845   cat >conftest.$ac_ext <<_ACEOF
11846 #line $LINENO "configure"
11847 /* confdefs.h.  */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h.  */
11852 int
11853 find_stack_direction ()
11854 {
11855   static char *addr = 0;
11856   auto char dummy;
11857   if (addr == 0)
11858     {
11859       addr = &dummy;
11860       return find_stack_direction ();
11861     }
11862   else
11863     return (&dummy > addr) ? 1 : -1;
11864 }
11865
11866 int
11867 main ()
11868 {
11869   exit (find_stack_direction () < 0);
11870 }
11871 _ACEOF
11872 rm -f conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874   (eval $ac_link) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879   (eval $ac_try) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; }; then
11883   ac_cv_c_stack_direction=1
11884 else
11885   echo "$as_me: program exited with status $ac_status" >&5
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11888
11889 ( exit $ac_status )
11890 ac_cv_c_stack_direction=-1
11891 fi
11892 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11893 fi
11894 fi
11895 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11896 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11897
11898 cat >>confdefs.h <<_ACEOF
11899 #define STACK_DIRECTION $ac_cv_c_stack_direction
11900 _ACEOF
11901
11902
11903 fi
11904
11905
11906
11907 for ac_header in stdlib.h unistd.h
11908 do
11909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11911   echo "$as_me:$LINENO: checking for $ac_header" >&5
11912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11914   echo $ECHO_N "(cached) $ECHO_C" >&6
11915 fi
11916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11918 else
11919   # Is the header compilable?
11920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11923 #line $LINENO "configure"
11924 /* confdefs.h.  */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h.  */
11929 $ac_includes_default
11930 #include <$ac_header>
11931 _ACEOF
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934   (eval $ac_compile) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } &&
11938          { ac_try='test -s conftest.$ac_objext'
11939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940   (eval $ac_try) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; }; then
11944   ac_header_compiler=yes
11945 else
11946   echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949 ac_header_compiler=no
11950 fi
11951 rm -f conftest.$ac_objext conftest.$ac_ext
11952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11953 echo "${ECHO_T}$ac_header_compiler" >&6
11954
11955 # Is the header present?
11956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11958 cat >conftest.$ac_ext <<_ACEOF
11959 #line $LINENO "configure"
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965 #include <$ac_header>
11966 _ACEOF
11967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11969   ac_status=$?
11970   grep -v '^ *+' conftest.er1 >conftest.err
11971   rm -f conftest.er1
11972   cat conftest.err >&5
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); } >/dev/null; then
11975   if test -s conftest.err; then
11976     ac_cpp_err=$ac_c_preproc_warn_flag
11977   else
11978     ac_cpp_err=
11979   fi
11980 else
11981   ac_cpp_err=yes
11982 fi
11983 if test -z "$ac_cpp_err"; then
11984   ac_header_preproc=yes
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989   ac_header_preproc=no
11990 fi
11991 rm -f conftest.err conftest.$ac_ext
11992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11993 echo "${ECHO_T}$ac_header_preproc" >&6
11994
11995 # So?  What about this header?
11996 case $ac_header_compiler:$ac_header_preproc in
11997   yes:no )
11998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12002     (
12003       cat <<\_ASBOX
12004 ## ------------------------------------ ##
12005 ## Report this to bug-autoconf@gnu.org. ##
12006 ## ------------------------------------ ##
12007 _ASBOX
12008     ) |
12009       sed "s/^/$as_me: WARNING:     /" >&2
12010     ;;
12011   no:yes )
12012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12014     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12018     (
12019       cat <<\_ASBOX
12020 ## ------------------------------------ ##
12021 ## Report this to bug-autoconf@gnu.org. ##
12022 ## ------------------------------------ ##
12023 _ASBOX
12024     ) |
12025       sed "s/^/$as_me: WARNING:     /" >&2
12026     ;;
12027 esac
12028 echo "$as_me:$LINENO: checking for $ac_header" >&5
12029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12031   echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033   eval "$as_ac_Header=$ac_header_preproc"
12034 fi
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12037
12038 fi
12039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12040   cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12042 _ACEOF
12043
12044 fi
12045
12046 done
12047
12048
12049 for ac_func in getpagesize
12050 do
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_var+set}\" = set"; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   cat >conftest.$ac_ext <<_ACEOF
12058 #line $LINENO "configure"
12059 /* confdefs.h.  */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h.  */
12064 /* System header to define __stub macros and hopefully few prototypes,
12065     which can conflict with char $ac_func (); below.
12066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12067     <limits.h> exists even on freestanding compilers.  */
12068 #ifdef __STDC__
12069 # include <limits.h>
12070 #else
12071 # include <assert.h>
12072 #endif
12073 /* Override any gcc2 internal prototype to avoid an error.  */
12074 #ifdef __cplusplus
12075 extern "C"
12076 {
12077 #endif
12078 /* We use char because int might match the return type of a gcc2
12079    builtin and then its argument prototype would still apply.  */
12080 char $ac_func ();
12081 /* The GNU C library defines this for functions which it implements
12082     to always fail with ENOSYS.  Some functions are actually named
12083     something starting with __ and the normal name is an alias.  */
12084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12085 choke me
12086 #else
12087 char (*f) () = $ac_func;
12088 #endif
12089 #ifdef __cplusplus
12090 }
12091 #endif
12092
12093 int
12094 main ()
12095 {
12096 return f != $ac_func;
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103   (eval $ac_link) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } &&
12107          { ac_try='test -s conftest$ac_exeext'
12108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109   (eval $ac_try) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; }; then
12113   eval "$as_ac_var=yes"
12114 else
12115   echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118 eval "$as_ac_var=no"
12119 fi
12120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12121 fi
12122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12124 if test `eval echo '${'$as_ac_var'}'` = yes; then
12125   cat >>confdefs.h <<_ACEOF
12126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 _ACEOF
12128
12129 fi
12130 done
12131
12132 echo "$as_me:$LINENO: checking for working mmap" >&5
12133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   if test "$cross_compiling" = yes; then
12138   ac_cv_func_mmap_fixed_mapped=no
12139 else
12140   cat >conftest.$ac_ext <<_ACEOF
12141 #line $LINENO "configure"
12142 /* confdefs.h.  */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h.  */
12147 $ac_includes_default
12148 /* malloc might have been renamed as rpl_malloc. */
12149 #undef malloc
12150
12151 /* Thanks to Mike Haertel and Jim Avera for this test.
12152    Here is a matrix of mmap possibilities:
12153         mmap private not fixed
12154         mmap private fixed at somewhere currently unmapped
12155         mmap private fixed at somewhere already mapped
12156         mmap shared not fixed
12157         mmap shared fixed at somewhere currently unmapped
12158         mmap shared fixed at somewhere already mapped
12159    For private mappings, we should verify that changes cannot be read()
12160    back from the file, nor mmap's back from the file at a different
12161    address.  (There have been systems where private was not correctly
12162    implemented like the infamous i386 svr4.0, and systems where the
12163    VM page cache was not coherent with the file system buffer cache
12164    like early versions of FreeBSD and possibly contemporary NetBSD.)
12165    For shared mappings, we should conversely verify that changes get
12166    propagated back to all the places they're supposed to be.
12167
12168    Grep wants private fixed already mapped.
12169    The main things grep needs to know about mmap are:
12170    * does it exist and is it safe to write into the mmap'd area
12171    * how to use it (BSD variants)  */
12172
12173 #include <fcntl.h>
12174 #include <sys/mman.h>
12175
12176 #if !STDC_HEADERS && !HAVE_STDLIB_H
12177 char *malloc ();
12178 #endif
12179
12180 /* This mess was copied from the GNU getpagesize.h.  */
12181 #if !HAVE_GETPAGESIZE
12182 /* Assume that all systems that can run configure have sys/param.h.  */
12183 # if !HAVE_SYS_PARAM_H
12184 #  define HAVE_SYS_PARAM_H 1
12185 # endif
12186
12187 # ifdef _SC_PAGESIZE
12188 #  define getpagesize() sysconf(_SC_PAGESIZE)
12189 # else /* no _SC_PAGESIZE */
12190 #  if HAVE_SYS_PARAM_H
12191 #   include <sys/param.h>
12192 #   ifdef EXEC_PAGESIZE
12193 #    define getpagesize() EXEC_PAGESIZE
12194 #   else /* no EXEC_PAGESIZE */
12195 #    ifdef NBPG
12196 #     define getpagesize() NBPG * CLSIZE
12197 #     ifndef CLSIZE
12198 #      define CLSIZE 1
12199 #     endif /* no CLSIZE */
12200 #    else /* no NBPG */
12201 #     ifdef NBPC
12202 #      define getpagesize() NBPC
12203 #     else /* no NBPC */
12204 #      ifdef PAGESIZE
12205 #       define getpagesize() PAGESIZE
12206 #      endif /* PAGESIZE */
12207 #     endif /* no NBPC */
12208 #    endif /* no NBPG */
12209 #   endif /* no EXEC_PAGESIZE */
12210 #  else /* no HAVE_SYS_PARAM_H */
12211 #   define getpagesize() 8192   /* punt totally */
12212 #  endif /* no HAVE_SYS_PARAM_H */
12213 # endif /* no _SC_PAGESIZE */
12214
12215 #endif /* no HAVE_GETPAGESIZE */
12216
12217 int
12218 main ()
12219 {
12220   char *data, *data2, *data3;
12221   int i, pagesize;
12222   int fd;
12223
12224   pagesize = getpagesize ();
12225
12226   /* First, make a file with some known garbage in it. */
12227   data = (char *) malloc (pagesize);
12228   if (!data)
12229     exit (1);
12230   for (i = 0; i < pagesize; ++i)
12231     *(data + i) = rand ();
12232   umask (0);
12233   fd = creat ("conftest.mmap", 0600);
12234   if (fd < 0)
12235     exit (1);
12236   if (write (fd, data, pagesize) != pagesize)
12237     exit (1);
12238   close (fd);
12239
12240   /* Next, try to mmap the file at a fixed address which already has
12241      something else allocated at it.  If we can, also make sure that
12242      we see the same garbage.  */
12243   fd = open ("conftest.mmap", O_RDWR);
12244   if (fd < 0)
12245     exit (1);
12246   data2 = (char *) malloc (2 * pagesize);
12247   if (!data2)
12248     exit (1);
12249   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12250   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12251                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12252     exit (1);
12253   for (i = 0; i < pagesize; ++i)
12254     if (*(data + i) != *(data2 + i))
12255       exit (1);
12256
12257   /* Finally, make sure that changes to the mapped area do not
12258      percolate back to the file as seen by read().  (This is a bug on
12259      some variants of i386 svr4.0.)  */
12260   for (i = 0; i < pagesize; ++i)
12261     *(data2 + i) = *(data2 + i) + 1;
12262   data3 = (char *) malloc (pagesize);
12263   if (!data3)
12264     exit (1);
12265   if (read (fd, data3, pagesize) != pagesize)
12266     exit (1);
12267   for (i = 0; i < pagesize; ++i)
12268     if (*(data + i) != *(data3 + i))
12269       exit (1);
12270   close (fd);
12271   exit (0);
12272 }
12273 _ACEOF
12274 rm -f conftest$ac_exeext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276   (eval $ac_link) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; }; then
12285   ac_cv_func_mmap_fixed_mapped=yes
12286 else
12287   echo "$as_me: program exited with status $ac_status" >&5
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291 ( exit $ac_status )
12292 ac_cv_func_mmap_fixed_mapped=no
12293 fi
12294 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12295 fi
12296 fi
12297 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12298 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12299 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12300
12301 cat >>confdefs.h <<\_ACEOF
12302 #define HAVE_MMAP 1
12303 _ACEOF
12304
12305 fi
12306 rm -f conftest.mmap
12307
12308
12309     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12310 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12311 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   cat >conftest.$ac_ext <<_ACEOF
12315 #line $LINENO "configure"
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321
12322 #include <features.h>
12323 #ifdef __GNU_LIBRARY__
12324  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12325   Lucky GNU user
12326  #endif
12327 #endif
12328
12329 _ACEOF
12330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12331   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12332   ac_cv_gnu_library_2_1=yes
12333 else
12334   ac_cv_gnu_library_2_1=no
12335 fi
12336 rm -f conftest*
12337
12338
12339
12340 fi
12341 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12342 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12343
12344     GLIBC21="$ac_cv_gnu_library_2_1"
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12359 stdlib.h string.h unistd.h sys/param.h
12360 do
12361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12363   echo "$as_me:$LINENO: checking for $ac_header" >&5
12364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 fi
12368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12370 else
12371   # Is the header compilable?
12372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381 $ac_includes_default
12382 #include <$ac_header>
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12386   (eval $ac_compile) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } &&
12390          { ac_try='test -s conftest.$ac_objext'
12391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392   (eval $ac_try) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); }; }; then
12396   ac_header_compiler=yes
12397 else
12398   echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12400
12401 ac_header_compiler=no
12402 fi
12403 rm -f conftest.$ac_objext conftest.$ac_ext
12404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12405 echo "${ECHO_T}$ac_header_compiler" >&6
12406
12407 # Is the header present?
12408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 #include <$ac_header>
12418 _ACEOF
12419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12421   ac_status=$?
12422   grep -v '^ *+' conftest.er1 >conftest.err
12423   rm -f conftest.er1
12424   cat conftest.err >&5
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } >/dev/null; then
12427   if test -s conftest.err; then
12428     ac_cpp_err=$ac_c_preproc_warn_flag
12429   else
12430     ac_cpp_err=
12431   fi
12432 else
12433   ac_cpp_err=yes
12434 fi
12435 if test -z "$ac_cpp_err"; then
12436   ac_header_preproc=yes
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441   ac_header_preproc=no
12442 fi
12443 rm -f conftest.err conftest.$ac_ext
12444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445 echo "${ECHO_T}$ac_header_preproc" >&6
12446
12447 # So?  What about this header?
12448 case $ac_header_compiler:$ac_header_preproc in
12449   yes:no )
12450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12454     (
12455       cat <<\_ASBOX
12456 ## ------------------------------------ ##
12457 ## Report this to bug-autoconf@gnu.org. ##
12458 ## ------------------------------------ ##
12459 _ASBOX
12460     ) |
12461       sed "s/^/$as_me: WARNING:     /" >&2
12462     ;;
12463   no:yes )
12464     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470     (
12471       cat <<\_ASBOX
12472 ## ------------------------------------ ##
12473 ## Report this to bug-autoconf@gnu.org. ##
12474 ## ------------------------------------ ##
12475 _ASBOX
12476     ) |
12477       sed "s/^/$as_me: WARNING:     /" >&2
12478     ;;
12479 esac
12480 echo "$as_me:$LINENO: checking for $ac_header" >&5
12481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483   echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485   eval "$as_ac_Header=$ac_header_preproc"
12486 fi
12487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12489
12490 fi
12491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12492   cat >>confdefs.h <<_ACEOF
12493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12494 _ACEOF
12495
12496 fi
12497
12498 done
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12522 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12523 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12524 do
12525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526 echo "$as_me:$LINENO: checking for $ac_func" >&5
12527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12528 if eval "test \"\${$as_ac_var+set}\" = set"; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   cat >conftest.$ac_ext <<_ACEOF
12532 #line $LINENO "configure"
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 /* System header to define __stub macros and hopefully few prototypes,
12539     which can conflict with char $ac_func (); below.
12540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12541     <limits.h> exists even on freestanding compilers.  */
12542 #ifdef __STDC__
12543 # include <limits.h>
12544 #else
12545 # include <assert.h>
12546 #endif
12547 /* Override any gcc2 internal prototype to avoid an error.  */
12548 #ifdef __cplusplus
12549 extern "C"
12550 {
12551 #endif
12552 /* We use char because int might match the return type of a gcc2
12553    builtin and then its argument prototype would still apply.  */
12554 char $ac_func ();
12555 /* The GNU C library defines this for functions which it implements
12556     to always fail with ENOSYS.  Some functions are actually named
12557     something starting with __ and the normal name is an alias.  */
12558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12559 choke me
12560 #else
12561 char (*f) () = $ac_func;
12562 #endif
12563 #ifdef __cplusplus
12564 }
12565 #endif
12566
12567 int
12568 main ()
12569 {
12570 return f != $ac_func;
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577   (eval $ac_link) 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } &&
12581          { ac_try='test -s conftest$ac_exeext'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; }; then
12587   eval "$as_ac_var=yes"
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 eval "$as_ac_var=no"
12593 fi
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12595 fi
12596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12598 if test `eval echo '${'$as_ac_var'}'` = yes; then
12599   cat >>confdefs.h <<_ACEOF
12600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12601 _ACEOF
12602
12603 fi
12604 done
12605
12606
12607
12608
12609
12610 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12611 if test "${with_libiconv_prefix+set}" = set; then
12612   withval="$with_libiconv_prefix"
12613
12614     for dir in `echo "$withval" | tr : ' '`; do
12615       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12616       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12617     done
12618
12619 fi;
12620
12621   echo "$as_me:$LINENO: checking for iconv" >&5
12622 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12623 if test "${am_cv_func_iconv+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626
12627     am_cv_func_iconv="no, consider installing GNU libiconv"
12628     am_cv_lib_iconv=no
12629     cat >conftest.$ac_ext <<_ACEOF
12630 #line $LINENO "configure"
12631 /* confdefs.h.  */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h.  */
12636 #include <stdlib.h>
12637 #include <iconv.h>
12638 int
12639 main ()
12640 {
12641 iconv_t cd = iconv_open("","");
12642        iconv(cd,NULL,NULL,NULL,NULL);
12643        iconv_close(cd);
12644   ;
12645   return 0;
12646 }
12647 _ACEOF
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650   (eval $ac_link) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); } &&
12654          { ac_try='test -s conftest$ac_exeext'
12655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656   (eval $ac_try) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; }; then
12660   am_cv_func_iconv=yes
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 fi
12666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12667     if test "$am_cv_func_iconv" != yes; then
12668       am_save_LIBS="$LIBS"
12669       LIBS="$LIBS -liconv"
12670       cat >conftest.$ac_ext <<_ACEOF
12671 #line $LINENO "configure"
12672 /* confdefs.h.  */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h.  */
12677 #include <stdlib.h>
12678 #include <iconv.h>
12679 int
12680 main ()
12681 {
12682 iconv_t cd = iconv_open("","");
12683          iconv(cd,NULL,NULL,NULL,NULL);
12684          iconv_close(cd);
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691   (eval $ac_link) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); } &&
12695          { ac_try='test -s conftest$ac_exeext'
12696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697   (eval $ac_try) 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; }; then
12701   am_cv_lib_iconv=yes
12702         am_cv_func_iconv=yes
12703 else
12704   echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707 fi
12708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12709       LIBS="$am_save_LIBS"
12710     fi
12711
12712 fi
12713 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12714 echo "${ECHO_T}$am_cv_func_iconv" >&6
12715   if test "$am_cv_func_iconv" = yes; then
12716
12717 cat >>confdefs.h <<\_ACEOF
12718 #define HAVE_ICONV 1
12719 _ACEOF
12720
12721     echo "$as_me:$LINENO: checking for iconv declaration" >&5
12722 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12723     if test "${am_cv_proto_iconv+set}" = set; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726
12727       cat >conftest.$ac_ext <<_ACEOF
12728 #line $LINENO "configure"
12729 /* confdefs.h.  */
12730 _ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h.  */
12734
12735 #include <stdlib.h>
12736 #include <iconv.h>
12737 extern
12738 #ifdef __cplusplus
12739 "C"
12740 #endif
12741 #if defined(__STDC__) || defined(__cplusplus)
12742 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12743 #else
12744 size_t iconv();
12745 #endif
12746
12747 int
12748 main ()
12749 {
12750
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757   (eval $ac_compile) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); } &&
12761          { ac_try='test -s conftest.$ac_objext'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; }; then
12767   am_cv_proto_iconv_arg1=""
12768 else
12769   echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12771
12772 am_cv_proto_iconv_arg1="const"
12773 fi
12774 rm -f conftest.$ac_objext conftest.$ac_ext
12775       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);"
12776 fi
12777
12778     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12779     echo "$as_me:$LINENO: result: ${ac_t:-
12780          }$am_cv_proto_iconv" >&5
12781 echo "${ECHO_T}${ac_t:-
12782          }$am_cv_proto_iconv" >&6
12783
12784 cat >>confdefs.h <<_ACEOF
12785 #define ICONV_CONST $am_cv_proto_iconv_arg1
12786 _ACEOF
12787
12788   fi
12789   LIBICONV=
12790   if test "$am_cv_lib_iconv" = yes; then
12791     LIBICONV="-liconv"
12792   fi
12793
12794
12795
12796   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12797 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12798 if test "${am_cv_langinfo_codeset+set}" = set; then
12799   echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801   cat >conftest.$ac_ext <<_ACEOF
12802 #line $LINENO "configure"
12803 /* confdefs.h.  */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h.  */
12808 #include <langinfo.h>
12809 int
12810 main ()
12811 {
12812 char* cs = nl_langinfo(CODESET);
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819   (eval $ac_link) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -s conftest$ac_exeext'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; }; then
12829   am_cv_langinfo_codeset=yes
12830 else
12831   echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12833
12834 am_cv_langinfo_codeset=no
12835 fi
12836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12837
12838 fi
12839 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12840 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12841   if test $am_cv_langinfo_codeset = yes; then
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_LANGINFO_CODESET 1
12845 _ACEOF
12846
12847   fi
12848
12849    if test $ac_cv_header_locale_h = yes; then
12850     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12851 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12852 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855   cat >conftest.$ac_ext <<_ACEOF
12856 #line $LINENO "configure"
12857 /* confdefs.h.  */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h.  */
12862 #include <locale.h>
12863 int
12864 main ()
12865 {
12866 return LC_MESSAGES
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 rm -f conftest.$ac_objext conftest$ac_exeext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12873   (eval $ac_link) 2>&5
12874   ac_status=$?
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); } &&
12877          { ac_try='test -s conftest$ac_exeext'
12878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879   (eval $ac_try) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; }; then
12883   am_cv_val_LC_MESSAGES=yes
12884 else
12885   echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 am_cv_val_LC_MESSAGES=no
12889 fi
12890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12891 fi
12892 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12893 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12894     if test $am_cv_val_LC_MESSAGES = yes; then
12895
12896 cat >>confdefs.h <<\_ACEOF
12897 #define HAVE_LC_MESSAGES 1
12898 _ACEOF
12899
12900     fi
12901   fi
12902    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12903 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12904         # Check whether --enable-nls or --disable-nls was given.
12905 if test "${enable_nls+set}" = set; then
12906   enableval="$enable_nls"
12907   USE_NLS=$enableval
12908 else
12909   USE_NLS=yes
12910 fi;
12911     echo "$as_me:$LINENO: result: $USE_NLS" >&5
12912 echo "${ECHO_T}$USE_NLS" >&6
12913
12914
12915     BUILD_INCLUDED_LIBINTL=no
12916     USE_INCLUDED_LIBINTL=no
12917     INTLLIBS=
12918
12919         if test "$USE_NLS" = "yes"; then
12920
12921 cat >>confdefs.h <<\_ACEOF
12922 #define ENABLE_NLS 1
12923 _ACEOF
12924
12925       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12926 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12927
12928 # Check whether --with-included-gettext or --without-included-gettext was given.
12929 if test "${with_included_gettext+set}" = set; then
12930   withval="$with_included_gettext"
12931   nls_cv_force_use_gnu_gettext=$withval
12932 else
12933   nls_cv_force_use_gnu_gettext=no
12934 fi;
12935       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12936 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12937
12938       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12939       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12940                                 CATOBJEXT=NONE
12941
12942
12943
12944
12945         if test "${ac_cv_header_libintl_h+set}" = set; then
12946   echo "$as_me:$LINENO: checking for libintl.h" >&5
12947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
12948 if test "${ac_cv_header_libintl_h+set}" = set; then
12949   echo $ECHO_N "(cached) $ECHO_C" >&6
12950 fi
12951 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12952 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
12953 else
12954   # Is the header compilable?
12955 echo "$as_me:$LINENO: checking libintl.h usability" >&5
12956 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
12957 cat >conftest.$ac_ext <<_ACEOF
12958 #line $LINENO "configure"
12959 /* confdefs.h.  */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h.  */
12964 $ac_includes_default
12965 #include <libintl.h>
12966 _ACEOF
12967 rm -f conftest.$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969   (eval $ac_compile) 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } &&
12973          { ac_try='test -s conftest.$ac_objext'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; }; then
12979   ac_header_compiler=yes
12980 else
12981   echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12983
12984 ac_header_compiler=no
12985 fi
12986 rm -f conftest.$ac_objext conftest.$ac_ext
12987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12988 echo "${ECHO_T}$ac_header_compiler" >&6
12989
12990 # Is the header present?
12991 echo "$as_me:$LINENO: checking libintl.h presence" >&5
12992 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
12993 cat >conftest.$ac_ext <<_ACEOF
12994 #line $LINENO "configure"
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000 #include <libintl.h>
13001 _ACEOF
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13004   ac_status=$?
13005   grep -v '^ *+' conftest.er1 >conftest.err
13006   rm -f conftest.er1
13007   cat conftest.err >&5
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); } >/dev/null; then
13010   if test -s conftest.err; then
13011     ac_cpp_err=$ac_c_preproc_warn_flag
13012   else
13013     ac_cpp_err=
13014   fi
13015 else
13016   ac_cpp_err=yes
13017 fi
13018 if test -z "$ac_cpp_err"; then
13019   ac_header_preproc=yes
13020 else
13021   echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024   ac_header_preproc=no
13025 fi
13026 rm -f conftest.err conftest.$ac_ext
13027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13028 echo "${ECHO_T}$ac_header_preproc" >&6
13029
13030 # So?  What about this header?
13031 case $ac_header_compiler:$ac_header_preproc in
13032   yes:no )
13033     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13034 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13035     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13036 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13037     (
13038       cat <<\_ASBOX
13039 ## ------------------------------------ ##
13040 ## Report this to bug-autoconf@gnu.org. ##
13041 ## ------------------------------------ ##
13042 _ASBOX
13043     ) |
13044       sed "s/^/$as_me: WARNING:     /" >&2
13045     ;;
13046   no:yes )
13047     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13048 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13049     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13050 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13051     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13052 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13053     (
13054       cat <<\_ASBOX
13055 ## ------------------------------------ ##
13056 ## Report this to bug-autoconf@gnu.org. ##
13057 ## ------------------------------------ ##
13058 _ASBOX
13059     ) |
13060       sed "s/^/$as_me: WARNING:     /" >&2
13061     ;;
13062 esac
13063 echo "$as_me:$LINENO: checking for libintl.h" >&5
13064 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13065 if test "${ac_cv_header_libintl_h+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   ac_cv_header_libintl_h=$ac_header_preproc
13069 fi
13070 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13071 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13072
13073 fi
13074 if test $ac_cv_header_libintl_h = yes; then
13075   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13076 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13077 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 #include <libintl.h>
13088 extern int _nl_msg_cat_cntr;
13089 int
13090 main ()
13091 {
13092 bindtextdomain ("", "");
13093 return (int) gettext ("") + _nl_msg_cat_cntr
13094   ;
13095   return 0;
13096 }
13097 _ACEOF
13098 rm -f conftest.$ac_objext conftest$ac_exeext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13100   (eval $ac_link) 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -s conftest$ac_exeext'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   gt_cv_func_gnugettext1_libc=yes
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115 gt_cv_func_gnugettext1_libc=no
13116 fi
13117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13118 fi
13119 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13120 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13121
13122            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13123              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13124 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13125 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13126   echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128   gt_save_LIBS="$LIBS"
13129                 LIBS="$LIBS -lintl $LIBICONV"
13130                 cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13132 /* confdefs.h.  */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h.  */
13137 #include <libintl.h>
13138 extern int _nl_msg_cat_cntr;
13139 int
13140 main ()
13141 {
13142 bindtextdomain ("", "");
13143 return (int) gettext ("") + _nl_msg_cat_cntr
13144   ;
13145   return 0;
13146 }
13147 _ACEOF
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13150   (eval $ac_link) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } &&
13154          { ac_try='test -s conftest$ac_exeext'
13155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156   (eval $ac_try) 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   gt_cv_func_gnugettext1_libintl=yes
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 gt_cv_func_gnugettext1_libintl=no
13166 fi
13167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13168                 LIBS="$gt_save_LIBS"
13169 fi
13170 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13171 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13172            fi
13173
13174                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13175               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13176                    && test "$PACKAGE" != gettext; }; then
13177
13178 cat >>confdefs.h <<\_ACEOF
13179 #define HAVE_GETTEXT 1
13180 _ACEOF
13181
13182
13183              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13184                                        INTLLIBS="-lintl $LIBICONV"
13185              fi
13186
13187              gt_save_LIBS="$LIBS"
13188              LIBS="$LIBS $INTLLIBS"
13189
13190 for ac_func in dcgettext
13191 do
13192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13193 echo "$as_me:$LINENO: checking for $ac_func" >&5
13194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13195 if eval "test \"\${$as_ac_var+set}\" = set"; then
13196   echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198   cat >conftest.$ac_ext <<_ACEOF
13199 #line $LINENO "configure"
13200 /* confdefs.h.  */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h.  */
13205 /* System header to define __stub macros and hopefully few prototypes,
13206     which can conflict with char $ac_func (); below.
13207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13208     <limits.h> exists even on freestanding compilers.  */
13209 #ifdef __STDC__
13210 # include <limits.h>
13211 #else
13212 # include <assert.h>
13213 #endif
13214 /* Override any gcc2 internal prototype to avoid an error.  */
13215 #ifdef __cplusplus
13216 extern "C"
13217 {
13218 #endif
13219 /* We use char because int might match the return type of a gcc2
13220    builtin and then its argument prototype would still apply.  */
13221 char $ac_func ();
13222 /* The GNU C library defines this for functions which it implements
13223     to always fail with ENOSYS.  Some functions are actually named
13224     something starting with __ and the normal name is an alias.  */
13225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13226 choke me
13227 #else
13228 char (*f) () = $ac_func;
13229 #endif
13230 #ifdef __cplusplus
13231 }
13232 #endif
13233
13234 int
13235 main ()
13236 {
13237 return f != $ac_func;
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244   (eval $ac_link) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } &&
13248          { ac_try='test -s conftest$ac_exeext'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   eval "$as_ac_var=yes"
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259 eval "$as_ac_var=no"
13260 fi
13261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13262 fi
13263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13265 if test `eval echo '${'$as_ac_var'}'` = yes; then
13266   cat >>confdefs.h <<_ACEOF
13267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13268 _ACEOF
13269
13270 fi
13271 done
13272
13273              LIBS="$gt_save_LIBS"
13274
13275                      # Extract the first word of "msgfmt", so it can be a program name with args.
13276 set dummy msgfmt; ac_word=$2
13277 echo "$as_me:$LINENO: checking for $ac_word" >&5
13278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13279 if test "${ac_cv_path_MSGFMT+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   case "$MSGFMT" in
13283   /*)
13284   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13285   ;;
13286   *)
13287   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13288   for ac_dir in $PATH; do
13289     test -z "$ac_dir" && ac_dir=.
13290     if test -f $ac_dir/$ac_word; then
13291       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13292         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13293         break
13294       fi
13295     fi
13296   done
13297   IFS="$ac_save_ifs"
13298   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13299   ;;
13300 esac
13301 fi
13302 MSGFMT="$ac_cv_path_MSGFMT"
13303 if test "$MSGFMT" != ":"; then
13304   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13305 echo "${ECHO_T}$MSGFMT" >&6
13306 else
13307   echo "$as_me:$LINENO: result: no" >&5
13308 echo "${ECHO_T}no" >&6
13309 fi
13310
13311              # Extract the first word of "gmsgfmt", so it can be a program name with args.
13312 set dummy gmsgfmt; ac_word=$2
13313 echo "$as_me:$LINENO: checking for $ac_word" >&5
13314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13315 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13316   echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318   case $GMSGFMT in
13319   [\\/]* | ?:[\\/]*)
13320   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13321   ;;
13322   *)
13323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326   IFS=$as_save_IFS
13327   test -z "$as_dir" && as_dir=.
13328   for ac_exec_ext in '' $ac_executable_extensions; do
13329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13330     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13332     break 2
13333   fi
13334 done
13335 done
13336
13337   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13338   ;;
13339 esac
13340 fi
13341 GMSGFMT=$ac_cv_path_GMSGFMT
13342
13343 if test -n "$GMSGFMT"; then
13344   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13345 echo "${ECHO_T}$GMSGFMT" >&6
13346 else
13347   echo "$as_me:$LINENO: result: no" >&5
13348 echo "${ECHO_T}no" >&6
13349 fi
13350
13351
13352                      # Extract the first word of "xgettext", so it can be a program name with args.
13353 set dummy xgettext; ac_word=$2
13354 echo "$as_me:$LINENO: checking for $ac_word" >&5
13355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13356 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359   case "$XGETTEXT" in
13360   /*)
13361   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13362   ;;
13363   *)
13364   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13365   for ac_dir in $PATH; do
13366     test -z "$ac_dir" && ac_dir=.
13367     if test -f $ac_dir/$ac_word; then
13368       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13369         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13370         break
13371       fi
13372     fi
13373   done
13374   IFS="$ac_save_ifs"
13375   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13376   ;;
13377 esac
13378 fi
13379 XGETTEXT="$ac_cv_path_XGETTEXT"
13380 if test "$XGETTEXT" != ":"; then
13381   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13382 echo "${ECHO_T}$XGETTEXT" >&6
13383 else
13384   echo "$as_me:$LINENO: result: no" >&5
13385 echo "${ECHO_T}no" >&6
13386 fi
13387
13388
13389              CATOBJEXT=.gmo
13390            fi
13391
13392 fi
13393
13394
13395
13396         if test "$CATOBJEXT" = "NONE"; then
13397                           nls_cv_use_gnu_gettext=yes
13398         fi
13399       fi
13400
13401       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13402                 INTLOBJS="\$(GETTOBJS)"
13403         # Extract the first word of "msgfmt", so it can be a program name with args.
13404 set dummy msgfmt; ac_word=$2
13405 echo "$as_me:$LINENO: checking for $ac_word" >&5
13406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13407 if test "${ac_cv_path_MSGFMT+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   case "$MSGFMT" in
13411   /*)
13412   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13413   ;;
13414   *)
13415   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13416   for ac_dir in $PATH; do
13417     test -z "$ac_dir" && ac_dir=.
13418     if test -f $ac_dir/$ac_word; then
13419       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13420         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13421         break
13422       fi
13423     fi
13424   done
13425   IFS="$ac_save_ifs"
13426   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13427   ;;
13428 esac
13429 fi
13430 MSGFMT="$ac_cv_path_MSGFMT"
13431 if test "$MSGFMT" != ":"; then
13432   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13433 echo "${ECHO_T}$MSGFMT" >&6
13434 else
13435   echo "$as_me:$LINENO: result: no" >&5
13436 echo "${ECHO_T}no" >&6
13437 fi
13438
13439         # Extract the first word of "gmsgfmt", so it can be a program name with args.
13440 set dummy gmsgfmt; ac_word=$2
13441 echo "$as_me:$LINENO: checking for $ac_word" >&5
13442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13443 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446   case $GMSGFMT in
13447   [\\/]* | ?:[\\/]*)
13448   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13449   ;;
13450   *)
13451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13453 do
13454   IFS=$as_save_IFS
13455   test -z "$as_dir" && as_dir=.
13456   for ac_exec_ext in '' $ac_executable_extensions; do
13457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13458     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13460     break 2
13461   fi
13462 done
13463 done
13464
13465   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13466   ;;
13467 esac
13468 fi
13469 GMSGFMT=$ac_cv_path_GMSGFMT
13470
13471 if test -n "$GMSGFMT"; then
13472   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13473 echo "${ECHO_T}$GMSGFMT" >&6
13474 else
13475   echo "$as_me:$LINENO: result: no" >&5
13476 echo "${ECHO_T}no" >&6
13477 fi
13478
13479         # Extract the first word of "xgettext", so it can be a program name with args.
13480 set dummy xgettext; ac_word=$2
13481 echo "$as_me:$LINENO: checking for $ac_word" >&5
13482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13483 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   case "$XGETTEXT" in
13487   /*)
13488   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13489   ;;
13490   *)
13491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13492   for ac_dir in $PATH; do
13493     test -z "$ac_dir" && ac_dir=.
13494     if test -f $ac_dir/$ac_word; then
13495       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13496         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13497         break
13498       fi
13499     fi
13500   done
13501   IFS="$ac_save_ifs"
13502   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13503   ;;
13504 esac
13505 fi
13506 XGETTEXT="$ac_cv_path_XGETTEXT"
13507 if test "$XGETTEXT" != ":"; then
13508   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13509 echo "${ECHO_T}$XGETTEXT" >&6
13510 else
13511   echo "$as_me:$LINENO: result: no" >&5
13512 echo "${ECHO_T}no" >&6
13513 fi
13514
13515
13516         BUILD_INCLUDED_LIBINTL=yes
13517         USE_INCLUDED_LIBINTL=yes
13518         CATOBJEXT=.gmo
13519         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13520         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13521       fi
13522
13523                   if test "$GMSGFMT" != ":"; then
13524                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13525           : ;
13526         else
13527           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13528 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13529           GMSGFMT=":"
13530         fi
13531       fi
13532
13533                   if test "$XGETTEXT" != ":"; then
13534                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13535           : ;
13536         else
13537           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13538 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13539           XGETTEXT=":"
13540         fi
13541       fi
13542
13543             POSUB=po
13544     fi
13545               ac_config_commands="$ac_config_commands default-1"
13546
13547
13548
13549             if test "$PACKAGE" = gettext; then
13550       BUILD_INCLUDED_LIBINTL=yes
13551     fi
13552
13553                                             for ac_prog in bison
13554 do
13555   # Extract the first word of "$ac_prog", so it can be a program name with args.
13556 set dummy $ac_prog; ac_word=$2
13557 echo "$as_me:$LINENO: checking for $ac_word" >&5
13558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13559 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13560   echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562   if test -n "$INTLBISON"; then
13563   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13567 do
13568   IFS=$as_save_IFS
13569   test -z "$as_dir" && as_dir=.
13570   for ac_exec_ext in '' $ac_executable_extensions; do
13571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572     ac_cv_prog_INTLBISON="$ac_prog"
13573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13574     break 2
13575   fi
13576 done
13577 done
13578
13579 fi
13580 fi
13581 INTLBISON=$ac_cv_prog_INTLBISON
13582 if test -n "$INTLBISON"; then
13583   echo "$as_me:$LINENO: result: $INTLBISON" >&5
13584 echo "${ECHO_T}$INTLBISON" >&6
13585 else
13586   echo "$as_me:$LINENO: result: no" >&5
13587 echo "${ECHO_T}no" >&6
13588 fi
13589
13590   test -n "$INTLBISON" && break
13591 done
13592
13593     if test -z "$INTLBISON"; then
13594       ac_verc_fail=yes
13595     else
13596             echo "$as_me:$LINENO: checking version of bison" >&5
13597 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13598       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13599       case $ac_prog_version in
13600         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13601         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13602            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13603         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13604       esac
13605       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13606 echo "${ECHO_T}$ac_prog_version" >&6
13607     fi
13608     if test $ac_verc_fail = yes; then
13609       INTLBISON=:
13610     fi
13611
13612                 for lang in $ALL_LINGUAS; do
13613       GMOFILES="$GMOFILES $lang.gmo"
13614       POFILES="$POFILES $lang.po"
13615     done
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627         nls_cv_header_intl=
13628     nls_cv_header_libgt=
13629
13630         DATADIRNAME=share
13631
13632
13633         INSTOBJEXT=.mo
13634
13635
13636         GENCAT=gencat
13637
13638
13639
13640    if test "x$CATOBJEXT" != "x"; then
13641      if test "x$ALL_LINGUAS" = "x"; then
13642        LINGUAS=
13643      else
13644        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13645 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13646        NEW_LINGUAS=
13647        for presentlang in $ALL_LINGUAS; do
13648          useit=no
13649          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13650            # Use the presentlang catalog if desiredlang is
13651            #   a. equal to presentlang, or
13652            #   b. a variant of presentlang (because in this case,
13653            #      presentlang can be used as a fallback for messages
13654            #      which are not translated in the desiredlang catalog).
13655            case "$desiredlang" in
13656              "$presentlang"*) useit=yes;;
13657            esac
13658          done
13659          if test $useit = yes; then
13660            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13661          fi
13662        done
13663        LINGUAS=$NEW_LINGUAS
13664        echo "$as_me:$LINENO: result: $LINGUAS" >&5
13665 echo "${ECHO_T}$LINGUAS" >&6
13666      fi
13667
13668           if test -n "$LINGUAS"; then
13669        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13670      fi
13671    fi
13672
13673             MKINSTALLDIRS=
13674    if test -n "$ac_aux_dir"; then
13675      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13676    fi
13677    if test -z "$MKINSTALLDIRS"; then
13678      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13679    fi
13680
13681
13682       INTL_LIBTOOL_SUFFIX_PREFIX=
13683
13684
13685
13686 if test "$am_cv_func_iconv" != "yes"
13687 then
13688   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
13689 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
13690 else
13691
13692
13693 for ac_header in iconv.h
13694 do
13695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13697   echo "$as_me:$LINENO: checking for $ac_header" >&5
13698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 fi
13702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13704 else
13705   # Is the header compilable?
13706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13708 cat >conftest.$ac_ext <<_ACEOF
13709 #line $LINENO "configure"
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715 $ac_includes_default
13716 #include <$ac_header>
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720   (eval $ac_compile) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } &&
13724          { ac_try='test -s conftest.$ac_objext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   ac_header_compiler=yes
13731 else
13732   echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735 ac_header_compiler=no
13736 fi
13737 rm -f conftest.$ac_objext conftest.$ac_ext
13738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13739 echo "${ECHO_T}$ac_header_compiler" >&6
13740
13741 # Is the header present?
13742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13744 cat >conftest.$ac_ext <<_ACEOF
13745 #line $LINENO "configure"
13746 /* confdefs.h.  */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h.  */
13751 #include <$ac_header>
13752 _ACEOF
13753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13755   ac_status=$?
13756   grep -v '^ *+' conftest.er1 >conftest.err
13757   rm -f conftest.er1
13758   cat conftest.err >&5
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); } >/dev/null; then
13761   if test -s conftest.err; then
13762     ac_cpp_err=$ac_c_preproc_warn_flag
13763   else
13764     ac_cpp_err=
13765   fi
13766 else
13767   ac_cpp_err=yes
13768 fi
13769 if test -z "$ac_cpp_err"; then
13770   ac_header_preproc=yes
13771 else
13772   echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775   ac_header_preproc=no
13776 fi
13777 rm -f conftest.err conftest.$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779 echo "${ECHO_T}$ac_header_preproc" >&6
13780
13781 # So?  What about this header?
13782 case $ac_header_compiler:$ac_header_preproc in
13783   yes:no )
13784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13788     (
13789       cat <<\_ASBOX
13790 ## ------------------------------------ ##
13791 ## Report this to bug-autoconf@gnu.org. ##
13792 ## ------------------------------------ ##
13793 _ASBOX
13794     ) |
13795       sed "s/^/$as_me: WARNING:     /" >&2
13796     ;;
13797   no:yes )
13798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13800     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13804     (
13805       cat <<\_ASBOX
13806 ## ------------------------------------ ##
13807 ## Report this to bug-autoconf@gnu.org. ##
13808 ## ------------------------------------ ##
13809 _ASBOX
13810     ) |
13811       sed "s/^/$as_me: WARNING:     /" >&2
13812     ;;
13813 esac
13814 echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819   eval "$as_ac_Header=$ac_header_preproc"
13820 fi
13821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13823
13824 fi
13825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13826   cat >>confdefs.h <<_ACEOF
13827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13828 _ACEOF
13829  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
13830 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
13831          cat >conftest.$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13833 /* confdefs.h.  */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h.  */
13838 #include <iconv.h>
13839
13840 _ACEOF
13841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13842   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
13843   echo "$as_me:$LINENO: result: yes" >&5
13844 echo "${ECHO_T}yes" >&6
13845
13846 cat >>confdefs.h <<\_ACEOF
13847 #define HAVE_ICONV_T_DEF 1
13848 _ACEOF
13849
13850 else
13851   echo "$as_me:$LINENO: result: no" >&5
13852 echo "${ECHO_T}no" >&6
13853 fi
13854 rm -f conftest*
13855
13856 fi
13857
13858 done
13859
13860
13861 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
13862 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
13863 if test "${mutt_cv_iconv_good+set}" = set; then
13864   echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866   mutt_save_LIBS="$LIBS"
13867         LIBS="$LIBS $LIBICONV"
13868         if test "$cross_compiling" = yes; then
13869   mutt_cv_iconv_good=yes
13870 else
13871   cat >conftest.$ac_ext <<_ACEOF
13872 #line $LINENO "configure"
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878
13879 #include <iconv.h>
13880 int main()
13881 {
13882   iconv_t cd;
13883   char buf[4];
13884   char *ob;
13885   size_t obl;
13886   ob = buf, obl = sizeof(buf);
13887   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
13888           (iconv(cd, 0, 0, &ob, &obl) ||
13889            !(ob == buf && obl == sizeof(buf)) ||
13890            iconv_close(cd)));
13891 }
13892
13893 _ACEOF
13894 rm -f conftest$ac_exeext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13896   (eval $ac_link) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901   (eval $ac_try) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); }; }; then
13905   mutt_cv_iconv_good=yes
13906 else
13907   echo "$as_me: program exited with status $ac_status" >&5
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 ( exit $ac_status )
13912 mutt_cv_iconv_good=no
13913 fi
13914 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13915 fi
13916         LIBS="$mutt_save_LIBS"
13917 fi
13918 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
13919 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
13920 if test "$mutt_cv_iconv_good" = no; then
13921   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
13922 echo "$as_me: error: Try using libiconv instead" >&2;}
13923    { (exit 1); exit 1; }; }
13924 fi
13925
13926 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
13927 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
13928 if test "${mutt_cv_iconv_nontrans+set}" = set; then
13929   echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931   mutt_save_LIBS="$LIBS"
13932         LIBS="$LIBS $LIBICONV"
13933         if test "$cross_compiling" = yes; then
13934   mutt_cv_iconv_nontrans=no
13935 else
13936   cat >conftest.$ac_ext <<_ACEOF
13937 #line $LINENO "configure"
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943
13944 #include <iconv.h>
13945 #include <string.h>
13946 int main()
13947 {
13948   iconv_t cd;
13949   const char *ib;
13950   char *ob;
13951   size_t ibl, obl;
13952   const char *s = "\304\211";
13953   char t[3];
13954   ib = s, ibl = 2, ob = t, obl = 3;
13955   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
13956           iconv(cd, &ib, &ibl, &ob, &obl));
13957 }
13958
13959 _ACEOF
13960 rm -f conftest$ac_exeext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13962   (eval $ac_link) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   mutt_cv_iconv_nontrans=no
13972 else
13973   echo "$as_me: program exited with status $ac_status" >&5
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977 ( exit $ac_status )
13978 mutt_cv_iconv_nontrans=yes
13979 fi
13980 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13981 fi
13982         LIBS="$mutt_save_LIBS"
13983 fi
13984 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
13985 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
13986 if test "$mutt_cv_iconv_nontrans" = yes; then
13987   cat >>confdefs.h <<\_ACEOF
13988 #define ICONV_NONTRANS 1
13989 _ACEOF
13990
13991 else
13992   cat >>confdefs.h <<\_ACEOF
13993 #define ICONV_NONTRANS 0
13994 _ACEOF
13995
13996 fi
13997
13998 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
13999
14000 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14001
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14004 _ACEOF
14005
14006 else
14007
14008 for ac_func in bind_textdomain_codeset
14009 do
14010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14011 echo "$as_me:$LINENO: checking for $ac_func" >&5
14012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14013 if eval "test \"\${$as_ac_var+set}\" = set"; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
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 /* System header to define __stub macros and hopefully few prototypes,
14024     which can conflict with char $ac_func (); below.
14025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14026     <limits.h> exists even on freestanding compilers.  */
14027 #ifdef __STDC__
14028 # include <limits.h>
14029 #else
14030 # include <assert.h>
14031 #endif
14032 /* Override any gcc2 internal prototype to avoid an error.  */
14033 #ifdef __cplusplus
14034 extern "C"
14035 {
14036 #endif
14037 /* We use char because int might match the return type of a gcc2
14038    builtin and then its argument prototype would still apply.  */
14039 char $ac_func ();
14040 /* The GNU C library defines this for functions which it implements
14041     to always fail with ENOSYS.  Some functions are actually named
14042     something starting with __ and the normal name is an alias.  */
14043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14044 choke me
14045 #else
14046 char (*f) () = $ac_func;
14047 #endif
14048 #ifdef __cplusplus
14049 }
14050 #endif
14051
14052 int
14053 main ()
14054 {
14055 return f != $ac_func;
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14062   (eval $ac_link) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); } &&
14066          { ac_try='test -s conftest$ac_exeext'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; }; then
14072   eval "$as_ac_var=yes"
14073 else
14074   echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077 eval "$as_ac_var=no"
14078 fi
14079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14080 fi
14081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14083 if test `eval echo '${'$as_ac_var'}'` = yes; then
14084   cat >>confdefs.h <<_ACEOF
14085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14086 _ACEOF
14087
14088 fi
14089 done
14090
14091 fi
14092
14093 fi # libiconv
14094
14095
14096
14097 for ac_header in wchar.h
14098 do
14099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14101   echo "$as_me:$LINENO: checking for $ac_header" >&5
14102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14104   echo $ECHO_N "(cached) $ECHO_C" >&6
14105 fi
14106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14108 else
14109   # Is the header compilable?
14110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14112 cat >conftest.$ac_ext <<_ACEOF
14113 #line $LINENO "configure"
14114 /* confdefs.h.  */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h.  */
14119 $ac_includes_default
14120 #include <$ac_header>
14121 _ACEOF
14122 rm -f conftest.$ac_objext
14123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14124   (eval $ac_compile) 2>&5
14125   ac_status=$?
14126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); } &&
14128          { ac_try='test -s conftest.$ac_objext'
14129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130   (eval $ac_try) 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; }; then
14134   ac_header_compiler=yes
14135 else
14136   echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14138
14139 ac_header_compiler=no
14140 fi
14141 rm -f conftest.$ac_objext conftest.$ac_ext
14142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14143 echo "${ECHO_T}$ac_header_compiler" >&6
14144
14145 # Is the header present?
14146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155 #include <$ac_header>
14156 _ACEOF
14157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14159   ac_status=$?
14160   grep -v '^ *+' conftest.er1 >conftest.err
14161   rm -f conftest.er1
14162   cat conftest.err >&5
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); } >/dev/null; then
14165   if test -s conftest.err; then
14166     ac_cpp_err=$ac_c_preproc_warn_flag
14167   else
14168     ac_cpp_err=
14169   fi
14170 else
14171   ac_cpp_err=yes
14172 fi
14173 if test -z "$ac_cpp_err"; then
14174   ac_header_preproc=yes
14175 else
14176   echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14178
14179   ac_header_preproc=no
14180 fi
14181 rm -f conftest.err conftest.$ac_ext
14182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14183 echo "${ECHO_T}$ac_header_preproc" >&6
14184
14185 # So?  What about this header?
14186 case $ac_header_compiler:$ac_header_preproc in
14187   yes:no )
14188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14192     (
14193       cat <<\_ASBOX
14194 ## ------------------------------------ ##
14195 ## Report this to bug-autoconf@gnu.org. ##
14196 ## ------------------------------------ ##
14197 _ASBOX
14198     ) |
14199       sed "s/^/$as_me: WARNING:     /" >&2
14200     ;;
14201   no:yes )
14202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14204     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14208     (
14209       cat <<\_ASBOX
14210 ## ------------------------------------ ##
14211 ## Report this to bug-autoconf@gnu.org. ##
14212 ## ------------------------------------ ##
14213 _ASBOX
14214     ) |
14215       sed "s/^/$as_me: WARNING:     /" >&2
14216     ;;
14217 esac
14218 echo "$as_me:$LINENO: checking for $ac_header" >&5
14219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   eval "$as_ac_Header=$ac_header_preproc"
14224 fi
14225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14227
14228 fi
14229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14230   cat >>confdefs.h <<_ACEOF
14231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14232 _ACEOF
14233
14234 fi
14235
14236 done
14237
14238
14239 echo "$as_me:$LINENO: checking for wchar_t" >&5
14240 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14241 if test "${mutt_cv_wchar_t+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   cat >conftest.$ac_ext <<_ACEOF
14245 #line $LINENO "configure"
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251
14252 #include <stddef.h>
14253 #include <stdlib.h>
14254 #ifdef HAVE_WCHAR_H
14255 #include <wchar.h>
14256 #endif
14257
14258 int
14259 main ()
14260 {
14261  wchar_t wc; return 0;
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268   (eval $ac_compile) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -s conftest.$ac_objext'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   mutt_cv_wchar_t=yes
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283 mutt_cv_wchar_t=no
14284 fi
14285 rm -f conftest.$ac_objext conftest.$ac_ext
14286 fi
14287 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14288 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14289
14290 if test "$mutt_cv_wchar_t" = no; then
14291
14292 cat >>confdefs.h <<\_ACEOF
14293 #define wchar_t int
14294 _ACEOF
14295
14296 fi
14297
14298 echo "$as_me:$LINENO: checking for wint_t" >&5
14299 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14300 if test "${mutt_cv_wint_t+set}" = set; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303   cat >conftest.$ac_ext <<_ACEOF
14304 #line $LINENO "configure"
14305 /* confdefs.h.  */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h.  */
14310
14311 #include <stddef.h>
14312 #include <stdlib.h>
14313 #ifdef HAVE_WCHAR_H
14314 #include <wchar.h>
14315 #endif
14316
14317 int
14318 main ()
14319 {
14320  wint_t wc; return 0;
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest.$ac_objext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327   (eval $ac_compile) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); } &&
14331          { ac_try='test -s conftest.$ac_objext'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   mutt_cv_wint_t=yes
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 mutt_cv_wint_t=no
14343 fi
14344 rm -f conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14347 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14348
14349 if test "$mutt_cv_wint_t" = no; then
14350
14351 cat >>confdefs.h <<\_ACEOF
14352 #define wint_t int
14353 _ACEOF
14354
14355 fi
14356
14357
14358 for ac_header in wctype.h
14359 do
14360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14362   echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14365   echo $ECHO_N "(cached) $ECHO_C" >&6
14366 fi
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14369 else
14370   # Is the header compilable?
14371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380 $ac_includes_default
14381 #include <$ac_header>
14382 _ACEOF
14383 rm -f conftest.$ac_objext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385   (eval $ac_compile) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391   (eval $ac_try) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; }; then
14395   ac_header_compiler=yes
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400 ac_header_compiler=no
14401 fi
14402 rm -f conftest.$ac_objext conftest.$ac_ext
14403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14404 echo "${ECHO_T}$ac_header_compiler" >&6
14405
14406 # Is the header present?
14407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14409 cat >conftest.$ac_ext <<_ACEOF
14410 #line $LINENO "configure"
14411 /* confdefs.h.  */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h.  */
14416 #include <$ac_header>
14417 _ACEOF
14418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14420   ac_status=$?
14421   grep -v '^ *+' conftest.er1 >conftest.err
14422   rm -f conftest.er1
14423   cat conftest.err >&5
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); } >/dev/null; then
14426   if test -s conftest.err; then
14427     ac_cpp_err=$ac_c_preproc_warn_flag
14428   else
14429     ac_cpp_err=
14430   fi
14431 else
14432   ac_cpp_err=yes
14433 fi
14434 if test -z "$ac_cpp_err"; then
14435   ac_header_preproc=yes
14436 else
14437   echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440   ac_header_preproc=no
14441 fi
14442 rm -f conftest.err conftest.$ac_ext
14443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14444 echo "${ECHO_T}$ac_header_preproc" >&6
14445
14446 # So?  What about this header?
14447 case $ac_header_compiler:$ac_header_preproc in
14448   yes:no )
14449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14453     (
14454       cat <<\_ASBOX
14455 ## ------------------------------------ ##
14456 ## Report this to bug-autoconf@gnu.org. ##
14457 ## ------------------------------------ ##
14458 _ASBOX
14459     ) |
14460       sed "s/^/$as_me: WARNING:     /" >&2
14461     ;;
14462   no:yes )
14463     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14465     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14469     (
14470       cat <<\_ASBOX
14471 ## ------------------------------------ ##
14472 ## Report this to bug-autoconf@gnu.org. ##
14473 ## ------------------------------------ ##
14474 _ASBOX
14475     ) |
14476       sed "s/^/$as_me: WARNING:     /" >&2
14477     ;;
14478 esac
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482   echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484   eval "$as_ac_Header=$ac_header_preproc"
14485 fi
14486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14488
14489 fi
14490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14491   cat >>confdefs.h <<_ACEOF
14492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14493 _ACEOF
14494
14495 fi
14496
14497 done
14498
14499
14500
14501
14502
14503 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
14504 do
14505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14506 echo "$as_me:$LINENO: checking for $ac_func" >&5
14507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14508 if eval "test \"\${$as_ac_var+set}\" = set"; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   cat >conftest.$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14513 /* confdefs.h.  */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h.  */
14518 /* System header to define __stub macros and hopefully few prototypes,
14519     which can conflict with char $ac_func (); below.
14520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521     <limits.h> exists even on freestanding compilers.  */
14522 #ifdef __STDC__
14523 # include <limits.h>
14524 #else
14525 # include <assert.h>
14526 #endif
14527 /* Override any gcc2 internal prototype to avoid an error.  */
14528 #ifdef __cplusplus
14529 extern "C"
14530 {
14531 #endif
14532 /* We use char because int might match the return type of a gcc2
14533    builtin and then its argument prototype would still apply.  */
14534 char $ac_func ();
14535 /* The GNU C library defines this for functions which it implements
14536     to always fail with ENOSYS.  Some functions are actually named
14537     something starting with __ and the normal name is an alias.  */
14538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14539 choke me
14540 #else
14541 char (*f) () = $ac_func;
14542 #endif
14543 #ifdef __cplusplus
14544 }
14545 #endif
14546
14547 int
14548 main ()
14549 {
14550 return f != $ac_func;
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 rm -f conftest.$ac_objext conftest$ac_exeext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14557   (eval $ac_link) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); } &&
14561          { ac_try='test -s conftest$ac_exeext'
14562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563   (eval $ac_try) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; }; then
14567   eval "$as_ac_var=yes"
14568 else
14569   echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 eval "$as_ac_var=no"
14573 fi
14574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14575 fi
14576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14578 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579   cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14581 _ACEOF
14582
14583 fi
14584 done
14585
14586
14587
14588
14589
14590
14591
14592 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14593 do
14594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14595 echo "$as_me:$LINENO: checking for $ac_func" >&5
14596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14597 if eval "test \"\${$as_ac_var+set}\" = set"; then
14598   echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600   cat >conftest.$ac_ext <<_ACEOF
14601 #line $LINENO "configure"
14602 /* confdefs.h.  */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h.  */
14607 /* System header to define __stub macros and hopefully few prototypes,
14608     which can conflict with char $ac_func (); below.
14609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14610     <limits.h> exists even on freestanding compilers.  */
14611 #ifdef __STDC__
14612 # include <limits.h>
14613 #else
14614 # include <assert.h>
14615 #endif
14616 /* Override any gcc2 internal prototype to avoid an error.  */
14617 #ifdef __cplusplus
14618 extern "C"
14619 {
14620 #endif
14621 /* We use char because int might match the return type of a gcc2
14622    builtin and then its argument prototype would still apply.  */
14623 char $ac_func ();
14624 /* The GNU C library defines this for functions which it implements
14625     to always fail with ENOSYS.  Some functions are actually named
14626     something starting with __ and the normal name is an alias.  */
14627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14628 choke me
14629 #else
14630 char (*f) () = $ac_func;
14631 #endif
14632 #ifdef __cplusplus
14633 }
14634 #endif
14635
14636 int
14637 main ()
14638 {
14639 return f != $ac_func;
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14646   (eval $ac_link) 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } &&
14650          { ac_try='test -s conftest$ac_exeext'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; }; then
14656   eval "$as_ac_var=yes"
14657 else
14658   echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 eval "$as_ac_var=no"
14662 fi
14663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14664 fi
14665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14667 if test `eval echo '${'$as_ac_var'}'` = yes; then
14668   cat >>confdefs.h <<_ACEOF
14669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14670 _ACEOF
14671
14672 fi
14673 done
14674
14675
14676
14677
14678 for ac_func in iswxdigit towupper towlower
14679 do
14680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14681 echo "$as_me:$LINENO: checking for $ac_func" >&5
14682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_var+set}\" = set"; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14688 /* confdefs.h.  */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h.  */
14693 /* System header to define __stub macros and hopefully few prototypes,
14694     which can conflict with char $ac_func (); below.
14695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14696     <limits.h> exists even on freestanding compilers.  */
14697 #ifdef __STDC__
14698 # include <limits.h>
14699 #else
14700 # include <assert.h>
14701 #endif
14702 /* Override any gcc2 internal prototype to avoid an error.  */
14703 #ifdef __cplusplus
14704 extern "C"
14705 {
14706 #endif
14707 /* We use char because int might match the return type of a gcc2
14708    builtin and then its argument prototype would still apply.  */
14709 char $ac_func ();
14710 /* The GNU C library defines this for functions which it implements
14711     to always fail with ENOSYS.  Some functions are actually named
14712     something starting with __ and the normal name is an alias.  */
14713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14714 choke me
14715 #else
14716 char (*f) () = $ac_func;
14717 #endif
14718 #ifdef __cplusplus
14719 }
14720 #endif
14721
14722 int
14723 main ()
14724 {
14725 return f != $ac_func;
14726   ;
14727   return 0;
14728 }
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732   (eval $ac_link) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); } &&
14736          { ac_try='test -s conftest$ac_exeext'
14737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738   (eval $ac_try) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; }; then
14742   eval "$as_ac_var=yes"
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 eval "$as_ac_var=no"
14748 fi
14749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14750 fi
14751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14753 if test `eval echo '${'$as_ac_var'}'` = yes; then
14754   cat >>confdefs.h <<_ACEOF
14755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14756 _ACEOF
14757
14758 fi
14759 done
14760
14761
14762 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14763 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14764 if test "${mutt_cv_mbstate_t+set}" = set; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767   cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 /* confdefs.h.  */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h.  */
14774
14775 #include <stddef.h>
14776 #include <stdlib.h>
14777 #ifdef HAVE_WCHAR_H
14778 #include <wchar.h>
14779 #endif
14780
14781 int
14782 main ()
14783 {
14784  mbstate_t s; return 0;
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791   (eval $ac_compile) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } &&
14795          { ac_try='test -s conftest.$ac_objext'
14796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797   (eval $ac_try) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; }; then
14801   mutt_cv_mbstate_t=yes
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 mutt_cv_mbstate_t=no
14807 fi
14808 rm -f conftest.$ac_objext conftest.$ac_ext
14809 fi
14810 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
14811 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
14812
14813 if test "$mutt_cv_mbstate_t" = no; then
14814
14815 cat >>confdefs.h <<\_ACEOF
14816 #define mbstate_t int
14817 _ACEOF
14818
14819 fi
14820
14821 wc_funcs=maybe
14822
14823 # Check whether --with-wc-funcs or --without-wc-funcs was given.
14824 if test "${with_wc_funcs+set}" = set; then
14825   withval="$with_wc_funcs"
14826   wc_funcs=$withval
14827 fi;
14828
14829 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
14830         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
14831 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
14832 if test "${mutt_cv_wc_funcs+set}" = set; then
14833   echo $ECHO_N "(cached) $ECHO_C" >&6
14834 else
14835   mutt_cv_wc_funcs=no
14836                 cat >conftest.$ac_ext <<_ACEOF
14837 #line $LINENO "configure"
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843
14844 #define _XOPEN_SOURCE 1
14845 #include <stddef.h>
14846 #include <stdlib.h>
14847 #ifdef HAVE_WCTYPE_H
14848 #include <wctype.h>
14849 #endif
14850 #ifdef HAVE_WCHAR_H
14851 #include <wchar.h>
14852 #endif
14853 int
14854 main ()
14855 {
14856 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
14857         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14864   (eval $ac_link) 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -s conftest$ac_exeext'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; }; then
14874   mutt_cv_wc_funcs=yes
14875 else
14876   echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 fi
14880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14881 fi
14882 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
14883 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
14884         wc_funcs=$mutt_cv_wc_funcs
14885 fi
14886
14887 if test $wc_funcs = yes; then
14888
14889 cat >>confdefs.h <<\_ACEOF
14890 #define HAVE_WC_FUNCS 1
14891 _ACEOF
14892
14893 fi
14894
14895 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14896 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14897 if test "${mutt_cv_langinfo_codeset+set}" = set; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900   cat >conftest.$ac_ext <<_ACEOF
14901 #line $LINENO "configure"
14902 /* confdefs.h.  */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h.  */
14907 #include <langinfo.h>
14908 int
14909 main ()
14910 {
14911 char* cs = nl_langinfo(CODESET);
14912   ;
14913   return 0;
14914 }
14915 _ACEOF
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14918   (eval $ac_link) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } &&
14922          { ac_try='test -s conftest$ac_exeext'
14923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924   (eval $ac_try) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; }; then
14928   mutt_cv_langinfo_codeset=yes
14929 else
14930   echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 mutt_cv_langinfo_codeset=no
14934 fi
14935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14936 fi
14937 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
14938 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
14939 if test $mutt_cv_langinfo_codeset = yes; then
14940
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_LANGINFO_CODESET 1
14943 _ACEOF
14944
14945 fi
14946
14947 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
14948 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
14949 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
14950   echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952   cat >conftest.$ac_ext <<_ACEOF
14953 #line $LINENO "configure"
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959 #include <langinfo.h>
14960 int
14961 main ()
14962 {
14963 char* cs = nl_langinfo(YESEXPR);
14964   ;
14965   return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970   (eval $ac_link) 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); } &&
14974          { ac_try='test -s conftest$ac_exeext'
14975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976   (eval $ac_try) 2>&5
14977   ac_status=$?
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); }; }; then
14980   mutt_cv_langinfo_yesexpr=yes
14981 else
14982   echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.$ac_ext >&5
14984
14985 mutt_cv_langinfo_yesexpr=no
14986 fi
14987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14988 fi
14989 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
14990 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
14991 if test $mutt_cv_langinfo_yesexpr = yes; then
14992
14993 cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_LANGINFO_YESEXPR 1
14995 _ACEOF
14996
14997 fi
14998
14999
15000
15001 # Check whether --with-libesmtp or --without-libesmtp was given.
15002 if test "${with_libesmtp+set}" = set; then
15003   withval="$with_libesmtp"
15004    if test "$with_libesmtp" != "no"
15005       then
15006         mutt_libesmtp_check_path="$PATH"
15007
15008         if test "$with_libesmtp" != "yes"
15009         then
15010           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15011         fi
15012
15013                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15014 set dummy libesmtp-config; ac_word=$2
15015 echo "$as_me:$LINENO: checking for $ac_word" >&5
15016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15017 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15018   echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020   case $mutt_libesmtp_config_path in
15021   [\\/]* | ?:[\\/]*)
15022   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15023   ;;
15024   *)
15025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $mutt_libesmtp_check_path
15027 do
15028   IFS=$as_save_IFS
15029   test -z "$as_dir" && as_dir=.
15030   for ac_exec_ext in '' $ac_executable_extensions; do
15031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15034     break 2
15035   fi
15036 done
15037 done
15038
15039   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15040   ;;
15041 esac
15042 fi
15043 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15044
15045 if test -n "$mutt_libesmtp_config_path"; then
15046   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15047 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15048 else
15049   echo "$as_me:$LINENO: result: no" >&5
15050 echo "${ECHO_T}no" >&6
15051 fi
15052
15053
15054         if test "$mutt_libesmtp_config_path" = "no"
15055         then
15056           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15057 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15058    { (exit 1); exit 1; }; }
15059         fi
15060
15061                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15062         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15063
15064                 temp_CFLAGS="$CFLAGS"
15065         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15066         if test "${ac_cv_header_libesmtp_h+set}" = set; then
15067   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15068 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15069 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15070   echo $ECHO_N "(cached) $ECHO_C" >&6
15071 fi
15072 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15073 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15074 else
15075   # Is the header compilable?
15076 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15077 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15078 cat >conftest.$ac_ext <<_ACEOF
15079 #line $LINENO "configure"
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085 $ac_includes_default
15086 #include <libesmtp.h>
15087 _ACEOF
15088 rm -f conftest.$ac_objext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15090   (eval $ac_compile) 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); } &&
15094          { ac_try='test -s conftest.$ac_objext'
15095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096   (eval $ac_try) 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; }; then
15100   ac_header_compiler=yes
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 ac_header_compiler=no
15106 fi
15107 rm -f conftest.$ac_objext conftest.$ac_ext
15108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15109 echo "${ECHO_T}$ac_header_compiler" >&6
15110
15111 # Is the header present?
15112 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15113 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15114 cat >conftest.$ac_ext <<_ACEOF
15115 #line $LINENO "configure"
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121 #include <libesmtp.h>
15122 _ACEOF
15123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15125   ac_status=$?
15126   grep -v '^ *+' conftest.er1 >conftest.err
15127   rm -f conftest.er1
15128   cat conftest.err >&5
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } >/dev/null; then
15131   if test -s conftest.err; then
15132     ac_cpp_err=$ac_c_preproc_warn_flag
15133   else
15134     ac_cpp_err=
15135   fi
15136 else
15137   ac_cpp_err=yes
15138 fi
15139 if test -z "$ac_cpp_err"; then
15140   ac_header_preproc=yes
15141 else
15142   echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15144
15145   ac_header_preproc=no
15146 fi
15147 rm -f conftest.err conftest.$ac_ext
15148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15149 echo "${ECHO_T}$ac_header_preproc" >&6
15150
15151 # So?  What about this header?
15152 case $ac_header_compiler:$ac_header_preproc in
15153   yes:no )
15154     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15155 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15156     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15157 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15158     (
15159       cat <<\_ASBOX
15160 ## ------------------------------------ ##
15161 ## Report this to bug-autoconf@gnu.org. ##
15162 ## ------------------------------------ ##
15163 _ASBOX
15164     ) |
15165       sed "s/^/$as_me: WARNING:     /" >&2
15166     ;;
15167   no:yes )
15168     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15169 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15170     { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15171 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15172     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15173 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15174     (
15175       cat <<\_ASBOX
15176 ## ------------------------------------ ##
15177 ## Report this to bug-autoconf@gnu.org. ##
15178 ## ------------------------------------ ##
15179 _ASBOX
15180     ) |
15181       sed "s/^/$as_me: WARNING:     /" >&2
15182     ;;
15183 esac
15184 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15185 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15186 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189   ac_cv_header_libesmtp_h=$ac_header_preproc
15190 fi
15191 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15192 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15193
15194 fi
15195 if test $ac_cv_header_libesmtp_h = yes; then
15196   :
15197 else
15198   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15199 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15200    { (exit 1); exit 1; }; }
15201 fi
15202
15203
15204         CFLAGS="$temp_CFLAGS"
15205
15206                 temp_CFLAGS="$CFLAGS"
15207         temp_LIBS="$LIBS"
15208         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15209         LIBS="$LIBS $mutt_libesmtp_libs"
15210
15211 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15212 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15213 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15214   echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216   ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lesmtp  $LIBS"
15218 cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225
15226 /* Override any gcc2 internal prototype to avoid an error.  */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 /* We use char because int might match the return type of a gcc2
15231    builtin and then its argument prototype would still apply.  */
15232 char smtp_create_session ();
15233 int
15234 main ()
15235 {
15236 smtp_create_session ();
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243   (eval $ac_link) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } &&
15247          { ac_try='test -s conftest$ac_exeext'
15248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249   (eval $ac_try) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; }; then
15253   ac_cv_lib_esmtp_smtp_create_session=yes
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 ac_cv_lib_esmtp_smtp_create_session=no
15259 fi
15260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15262 fi
15263 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15264 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15265 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15266   cat >>confdefs.h <<_ACEOF
15267 #define HAVE_LIBESMTP 1
15268 _ACEOF
15269
15270   LIBS="-lesmtp $LIBS"
15271
15272 else
15273   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15274 echo "$as_me: error: Could not find libesmtp" >&2;}
15275    { (exit 1); exit 1; }; }
15276 fi
15277
15278         CFLAGS="$temp_CFLAGS"
15279         LIBS="$temp_LIBS"
15280
15281                         use_libesmtp=yes
15282       fi
15283
15284
15285 fi;
15286
15287 if test x$use_libesmtp = xyes; then
15288     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15289     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15290     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15291
15292
15293 cat >>confdefs.h <<\_ACEOF
15294 #define USE_LIBESMTP 1
15295 _ACEOF
15296
15297 fi
15298
15299                                                                                                     ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttrc.head doc/instdoc.sh"
15300 cat >confcache <<\_ACEOF
15301 # This file is a shell script that caches the results of configure
15302 # tests run on this system so they can be shared between configure
15303 # scripts and configure runs, see configure's option --config-cache.
15304 # It is not useful on other systems.  If it contains results you don't
15305 # want to keep, you may remove or edit it.
15306 #
15307 # config.status only pays attention to the cache file if you give it
15308 # the --recheck option to rerun configure.
15309 #
15310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15312 # following values.
15313
15314 _ACEOF
15315
15316 # The following way of writing the cache mishandles newlines in values,
15317 # but we know of no workaround that is simple, portable, and efficient.
15318 # So, don't put newlines in cache variables' values.
15319 # Ultrix sh set writes to stderr and can't be redirected directly,
15320 # and sets the high bit in the cache file unless we assign to the vars.
15321 {
15322   (set) 2>&1 |
15323     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15324     *ac_space=\ *)
15325       # `set' does not quote correctly, so add quotes (double-quote
15326       # substitution turns \\\\ into \\, and sed turns \\ into \).
15327       sed -n \
15328         "s/'/'\\\\''/g;
15329           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15330       ;;
15331     *)
15332       # `set' quotes correctly as required by POSIX, so do not add quotes.
15333       sed -n \
15334         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15335       ;;
15336     esac;
15337 } |
15338   sed '
15339      t clear
15340      : clear
15341      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15342      t end
15343      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15344      : end' >>confcache
15345 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15346   if test -w $cache_file; then
15347     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15348     cat confcache >$cache_file
15349   else
15350     echo "not updating unwritable cache $cache_file"
15351   fi
15352 fi
15353 rm -f confcache
15354
15355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15356 # Let make expand exec_prefix.
15357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15358
15359 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15360 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15361 # trailing colons and then remove the whole line if VPATH becomes empty
15362 # (actually we leave an empty line to preserve line numbers).
15363 if test "x$srcdir" = x.; then
15364   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15365 s/:*\$(srcdir):*/:/;
15366 s/:*\${srcdir}:*/:/;
15367 s/:*@srcdir@:*/:/;
15368 s/^\([^=]*=[    ]*\):*/\1/;
15369 s/:*$//;
15370 s/^[^=]*=[      ]*$//;
15371 }'
15372 fi
15373
15374 DEFS=-DHAVE_CONFIG_H
15375
15376 ac_libobjs=
15377 ac_ltlibobjs=
15378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15379   # 1. Remove the extension, and $U if already installed.
15380   ac_i=`echo "$ac_i" |
15381          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15382   # 2. Add them.
15383   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15384   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15385 done
15386 LIBOBJS=$ac_libobjs
15387
15388 LTLIBOBJS=$ac_ltlibobjs
15389
15390
15391 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15392   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15393 Usually this means the macro was only invoked conditionally." >&5
15394 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15395 Usually this means the macro was only invoked conditionally." >&2;}
15396    { (exit 1); exit 1; }; }
15397 fi
15398 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15399   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15400 Usually this means the macro was only invoked conditionally." >&5
15401 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15402 Usually this means the macro was only invoked conditionally." >&2;}
15403    { (exit 1); exit 1; }; }
15404 fi
15405 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15406   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15407 Usually this means the macro was only invoked conditionally." >&5
15408 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15409 Usually this means the macro was only invoked conditionally." >&2;}
15410    { (exit 1); exit 1; }; }
15411 fi
15412 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15413   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15414 Usually this means the macro was only invoked conditionally." >&5
15415 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15416 Usually this means the macro was only invoked conditionally." >&2;}
15417    { (exit 1); exit 1; }; }
15418 fi
15419 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15420   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15421 Usually this means the macro was only invoked conditionally." >&5
15422 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15423 Usually this means the macro was only invoked conditionally." >&2;}
15424    { (exit 1); exit 1; }; }
15425 fi
15426 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15427   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15428 Usually this means the macro was only invoked conditionally." >&5
15429 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15430 Usually this means the macro was only invoked conditionally." >&2;}
15431    { (exit 1); exit 1; }; }
15432 fi
15433 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15434   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15435 Usually this means the macro was only invoked conditionally." >&5
15436 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15437 Usually this means the macro was only invoked conditionally." >&2;}
15438    { (exit 1); exit 1; }; }
15439 fi
15440
15441 : ${CONFIG_STATUS=./config.status}
15442 ac_clean_files_save=$ac_clean_files
15443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15444 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15445 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15446 cat >$CONFIG_STATUS <<_ACEOF
15447 #! $SHELL
15448 # Generated by $as_me.
15449 # Run this file to recreate the current configuration.
15450 # Compiler output produced by configure, useful for debugging
15451 # configure, is in config.log if it exists.
15452
15453 debug=false
15454 ac_cs_recheck=false
15455 ac_cs_silent=false
15456 SHELL=\${CONFIG_SHELL-$SHELL}
15457 _ACEOF
15458
15459 cat >>$CONFIG_STATUS <<\_ACEOF
15460 ## --------------------- ##
15461 ## M4sh Initialization.  ##
15462 ## --------------------- ##
15463
15464 # Be Bourne compatible
15465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15466   emulate sh
15467   NULLCMD=:
15468   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15469   # is contrary to our usage.  Disable this feature.
15470   alias -g '${1+"$@"}'='"$@"'
15471 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15472   set -o posix
15473 fi
15474
15475 # Support unset when possible.
15476 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15477   as_unset=unset
15478 else
15479   as_unset=false
15480 fi
15481
15482
15483 # Work around bugs in pre-3.0 UWIN ksh.
15484 $as_unset ENV MAIL MAILPATH
15485 PS1='$ '
15486 PS2='> '
15487 PS4='+ '
15488
15489 # NLS nuisances.
15490 for as_var in \
15491   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15492   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15493   LC_TELEPHONE LC_TIME
15494 do
15495   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15496     eval $as_var=C; export $as_var
15497   else
15498     $as_unset $as_var
15499   fi
15500 done
15501
15502 # Required to use basename.
15503 if expr a : '\(a\)' >/dev/null 2>&1; then
15504   as_expr=expr
15505 else
15506   as_expr=false
15507 fi
15508
15509 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15510   as_basename=basename
15511 else
15512   as_basename=false
15513 fi
15514
15515
15516 # Name of the executable.
15517 as_me=`$as_basename "$0" ||
15518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15519          X"$0" : 'X\(//\)$' \| \
15520          X"$0" : 'X\(/\)$' \| \
15521          .     : '\(.\)' 2>/dev/null ||
15522 echo X/"$0" |
15523     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15524           /^X\/\(\/\/\)$/{ s//\1/; q; }
15525           /^X\/\(\/\).*/{ s//\1/; q; }
15526           s/.*/./; q'`
15527
15528
15529 # PATH needs CR, and LINENO needs CR and PATH.
15530 # Avoid depending upon Character Ranges.
15531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15534 as_cr_digits='0123456789'
15535 as_cr_alnum=$as_cr_Letters$as_cr_digits
15536
15537 # The user is always right.
15538 if test "${PATH_SEPARATOR+set}" != set; then
15539   echo "#! /bin/sh" >conf$$.sh
15540   echo  "exit 0"   >>conf$$.sh
15541   chmod +x conf$$.sh
15542   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15543     PATH_SEPARATOR=';'
15544   else
15545     PATH_SEPARATOR=:
15546   fi
15547   rm -f conf$$.sh
15548 fi
15549
15550
15551   as_lineno_1=$LINENO
15552   as_lineno_2=$LINENO
15553   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15554   test "x$as_lineno_1" != "x$as_lineno_2" &&
15555   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15556   # Find who we are.  Look in the path if we contain no path at all
15557   # relative or not.
15558   case $0 in
15559     *[\\/]* ) as_myself=$0 ;;
15560     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561 for as_dir in $PATH
15562 do
15563   IFS=$as_save_IFS
15564   test -z "$as_dir" && as_dir=.
15565   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15566 done
15567
15568        ;;
15569   esac
15570   # We did not find ourselves, most probably we were run as `sh COMMAND'
15571   # in which case we are not to be found in the path.
15572   if test "x$as_myself" = x; then
15573     as_myself=$0
15574   fi
15575   if test ! -f "$as_myself"; then
15576     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15577 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15578    { (exit 1); exit 1; }; }
15579   fi
15580   case $CONFIG_SHELL in
15581   '')
15582     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15583 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15584 do
15585   IFS=$as_save_IFS
15586   test -z "$as_dir" && as_dir=.
15587   for as_base in sh bash ksh sh5; do
15588          case $as_dir in
15589          /*)
15590            if ("$as_dir/$as_base" -c '
15591   as_lineno_1=$LINENO
15592   as_lineno_2=$LINENO
15593   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15594   test "x$as_lineno_1" != "x$as_lineno_2" &&
15595   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15596              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15597              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15598              CONFIG_SHELL=$as_dir/$as_base
15599              export CONFIG_SHELL
15600              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15601            fi;;
15602          esac
15603        done
15604 done
15605 ;;
15606   esac
15607
15608   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15609   # uniformly replaced by the line number.  The first 'sed' inserts a
15610   # line-number line before each line; the second 'sed' does the real
15611   # work.  The second script uses 'N' to pair each line-number line
15612   # with the numbered line, and appends trailing '-' during
15613   # substitution so that $LINENO is not a special case at line end.
15614   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15615   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15616   sed '=' <$as_myself |
15617     sed '
15618       N
15619       s,$,-,
15620       : loop
15621       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15622       t loop
15623       s,-$,,
15624       s,^['$as_cr_digits']*\n,,
15625     ' >$as_me.lineno &&
15626   chmod +x $as_me.lineno ||
15627     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15628 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15629    { (exit 1); exit 1; }; }
15630
15631   # Don't try to exec as it changes $[0], causing all sort of problems
15632   # (the dirname of $[0] is not the place where we might find the
15633   # original and so on.  Autoconf is especially sensible to this).
15634   . ./$as_me.lineno
15635   # Exit status is that of the last command.
15636   exit
15637 }
15638
15639
15640 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15641   *c*,-n*) ECHO_N= ECHO_C='
15642 ' ECHO_T='      ' ;;
15643   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15644   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15645 esac
15646
15647 if expr a : '\(a\)' >/dev/null 2>&1; then
15648   as_expr=expr
15649 else
15650   as_expr=false
15651 fi
15652
15653 rm -f conf$$ conf$$.exe conf$$.file
15654 echo >conf$$.file
15655 if ln -s conf$$.file conf$$ 2>/dev/null; then
15656   # We could just check for DJGPP; but this test a) works b) is more generic
15657   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15658   if test -f conf$$.exe; then
15659     # Don't use ln at all; we don't have any links
15660     as_ln_s='cp -p'
15661   else
15662     as_ln_s='ln -s'
15663   fi
15664 elif ln conf$$.file conf$$ 2>/dev/null; then
15665   as_ln_s=ln
15666 else
15667   as_ln_s='cp -p'
15668 fi
15669 rm -f conf$$ conf$$.exe conf$$.file
15670
15671 if mkdir -p . 2>/dev/null; then
15672   as_mkdir_p=:
15673 else
15674   as_mkdir_p=false
15675 fi
15676
15677 as_executable_p="test -f"
15678
15679 # Sed expression to map a string onto a valid CPP name.
15680 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15681
15682 # Sed expression to map a string onto a valid variable name.
15683 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15684
15685
15686 # IFS
15687 # We need space, tab and new line, in precisely that order.
15688 as_nl='
15689 '
15690 IFS="   $as_nl"
15691
15692 # CDPATH.
15693 $as_unset CDPATH
15694
15695 exec 6>&1
15696
15697 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15698 # report actual input values of CONFIG_FILES etc. instead of their
15699 # values after options handling.  Logging --version etc. is OK.
15700 exec 5>>config.log
15701 {
15702   echo
15703   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15704 ## Running $as_me. ##
15705 _ASBOX
15706 } >&5
15707 cat >&5 <<_CSEOF
15708
15709 This file was extended by $as_me, which was
15710 generated by GNU Autoconf 2.57.  Invocation command line was
15711
15712   CONFIG_FILES    = $CONFIG_FILES
15713   CONFIG_HEADERS  = $CONFIG_HEADERS
15714   CONFIG_LINKS    = $CONFIG_LINKS
15715   CONFIG_COMMANDS = $CONFIG_COMMANDS
15716   $ $0 $@
15717
15718 _CSEOF
15719 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15720 echo >&5
15721 _ACEOF
15722
15723 # Files that config.status was made for.
15724 if test -n "$ac_config_files"; then
15725   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15726 fi
15727
15728 if test -n "$ac_config_headers"; then
15729   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15730 fi
15731
15732 if test -n "$ac_config_links"; then
15733   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15734 fi
15735
15736 if test -n "$ac_config_commands"; then
15737   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15738 fi
15739
15740 cat >>$CONFIG_STATUS <<\_ACEOF
15741
15742 ac_cs_usage="\
15743 \`$as_me' instantiates files from templates according to the
15744 current configuration.
15745
15746 Usage: $0 [OPTIONS] [FILE]...
15747
15748   -h, --help       print this help, then exit
15749   -V, --version    print version number, then exit
15750   -q, --quiet      do not print progress messages
15751   -d, --debug      don't remove temporary files
15752       --recheck    update $as_me by reconfiguring in the same conditions
15753   --file=FILE[:TEMPLATE]
15754                    instantiate the configuration file FILE
15755   --header=FILE[:TEMPLATE]
15756                    instantiate the configuration header FILE
15757
15758 Configuration files:
15759 $config_files
15760
15761 Configuration headers:
15762 $config_headers
15763
15764 Configuration commands:
15765 $config_commands
15766
15767 Report bugs to <bug-autoconf@gnu.org>."
15768 _ACEOF
15769
15770 cat >>$CONFIG_STATUS <<_ACEOF
15771 ac_cs_version="\\
15772 config.status
15773 configured by $0, generated by GNU Autoconf 2.57,
15774   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15775
15776 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15777 Free Software Foundation, Inc.
15778 This config.status script is free software; the Free Software Foundation
15779 gives unlimited permission to copy, distribute and modify it."
15780 srcdir=$srcdir
15781 INSTALL="$INSTALL"
15782 _ACEOF
15783
15784 cat >>$CONFIG_STATUS <<\_ACEOF
15785 # If no file are specified by the user, then we need to provide default
15786 # value.  By we need to know if files were specified by the user.
15787 ac_need_defaults=:
15788 while test $# != 0
15789 do
15790   case $1 in
15791   --*=*)
15792     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15793     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15794     ac_shift=:
15795     ;;
15796   -*)
15797     ac_option=$1
15798     ac_optarg=$2
15799     ac_shift=shift
15800     ;;
15801   *) # This is not an option, so the user has probably given explicit
15802      # arguments.
15803      ac_option=$1
15804      ac_need_defaults=false;;
15805   esac
15806
15807   case $ac_option in
15808   # Handling of the options.
15809 _ACEOF
15810 cat >>$CONFIG_STATUS <<\_ACEOF
15811   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15812     ac_cs_recheck=: ;;
15813   --version | --vers* | -V )
15814     echo "$ac_cs_version"; exit 0 ;;
15815   --he | --h)
15816     # Conflict between --help and --header
15817     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15818 Try \`$0 --help' for more information." >&5
15819 echo "$as_me: error: ambiguous option: $1
15820 Try \`$0 --help' for more information." >&2;}
15821    { (exit 1); exit 1; }; };;
15822   --help | --hel | -h )
15823     echo "$ac_cs_usage"; exit 0 ;;
15824   --debug | --d* | -d )
15825     debug=: ;;
15826   --file | --fil | --fi | --f )
15827     $ac_shift
15828     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15829     ac_need_defaults=false;;
15830   --header | --heade | --head | --hea )
15831     $ac_shift
15832     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15833     ac_need_defaults=false;;
15834   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15835   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15836     ac_cs_silent=: ;;
15837
15838   # This is an error.
15839   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15840 Try \`$0 --help' for more information." >&5
15841 echo "$as_me: error: unrecognized option: $1
15842 Try \`$0 --help' for more information." >&2;}
15843    { (exit 1); exit 1; }; } ;;
15844
15845   *) ac_config_targets="$ac_config_targets $1" ;;
15846
15847   esac
15848   shift
15849 done
15850
15851 ac_configure_extra_args=
15852
15853 if $ac_cs_silent; then
15854   exec 6>/dev/null
15855   ac_configure_extra_args="$ac_configure_extra_args --silent"
15856 fi
15857
15858 _ACEOF
15859 cat >>$CONFIG_STATUS <<_ACEOF
15860 if \$ac_cs_recheck; then
15861   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15862   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15863 fi
15864
15865 _ACEOF
15866
15867 cat >>$CONFIG_STATUS <<_ACEOF
15868 #
15869 # INIT-COMMANDS section.
15870 #
15871
15872 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15873
15874
15875 _ACEOF
15876
15877
15878
15879 cat >>$CONFIG_STATUS <<\_ACEOF
15880 for ac_config_target in $ac_config_targets
15881 do
15882   case "$ac_config_target" in
15883   # Handling of arguments.
15884   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15885   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15886   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15887   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15888   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15889   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15890   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
15891   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
15892   "Muttrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttrc.head" ;;
15893   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
15894   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15895   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15896   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15897   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15898 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15899    { (exit 1); exit 1; }; };;
15900   esac
15901 done
15902
15903 # If the user did not use the arguments to specify the items to instantiate,
15904 # then the envvar interface is used.  Set only those that are not.
15905 # We use the long form for the default assignment because of an extremely
15906 # bizarre bug on SunOS 4.1.3.
15907 if $ac_need_defaults; then
15908   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15909   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15910   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15911 fi
15912
15913 # Have a temporary directory for convenience.  Make it in the build tree
15914 # simply because there is no reason to put it here, and in addition,
15915 # creating and moving files from /tmp can sometimes cause problems.
15916 # Create a temporary directory, and hook for its removal unless debugging.
15917 $debug ||
15918 {
15919   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15920   trap '{ (exit 1); exit 1; }' 1 2 13 15
15921 }
15922
15923 # Create a (secure) tmp directory for tmp files.
15924
15925 {
15926   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15927   test -n "$tmp" && test -d "$tmp"
15928 }  ||
15929 {
15930   tmp=./confstat$$-$RANDOM
15931   (umask 077 && mkdir $tmp)
15932 } ||
15933 {
15934    echo "$me: cannot create a temporary directory in ." >&2
15935    { (exit 1); exit 1; }
15936 }
15937
15938 _ACEOF
15939
15940 cat >>$CONFIG_STATUS <<_ACEOF
15941
15942 #
15943 # CONFIG_FILES section.
15944 #
15945
15946 # No need to generate the scripts if there are no CONFIG_FILES.
15947 # This happens for instance when ./config.status config.h
15948 if test -n "\$CONFIG_FILES"; then
15949   # Protect against being on the right side of a sed subst in config.status.
15950   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15951    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15952 s,@SHELL@,$SHELL,;t t
15953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15954 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15955 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15956 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15957 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15958 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15959 s,@exec_prefix@,$exec_prefix,;t t
15960 s,@prefix@,$prefix,;t t
15961 s,@program_transform_name@,$program_transform_name,;t t
15962 s,@bindir@,$bindir,;t t
15963 s,@sbindir@,$sbindir,;t t
15964 s,@libexecdir@,$libexecdir,;t t
15965 s,@datadir@,$datadir,;t t
15966 s,@sysconfdir@,$sysconfdir,;t t
15967 s,@sharedstatedir@,$sharedstatedir,;t t
15968 s,@localstatedir@,$localstatedir,;t t
15969 s,@libdir@,$libdir,;t t
15970 s,@includedir@,$includedir,;t t
15971 s,@oldincludedir@,$oldincludedir,;t t
15972 s,@infodir@,$infodir,;t t
15973 s,@mandir@,$mandir,;t t
15974 s,@build_alias@,$build_alias,;t t
15975 s,@host_alias@,$host_alias,;t t
15976 s,@target_alias@,$target_alias,;t t
15977 s,@DEFS@,$DEFS,;t t
15978 s,@ECHO_C@,$ECHO_C,;t t
15979 s,@ECHO_N@,$ECHO_N,;t t
15980 s,@ECHO_T@,$ECHO_T,;t t
15981 s,@LIBS@,$LIBS,;t t
15982 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15983 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15984 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15985 s,@CYGPATH_W@,$CYGPATH_W,;t t
15986 s,@PACKAGE@,$PACKAGE,;t t
15987 s,@VERSION@,$VERSION,;t t
15988 s,@ACLOCAL@,$ACLOCAL,;t t
15989 s,@AUTOCONF@,$AUTOCONF,;t t
15990 s,@AUTOMAKE@,$AUTOMAKE,;t t
15991 s,@AUTOHEADER@,$AUTOHEADER,;t t
15992 s,@MAKEINFO@,$MAKEINFO,;t t
15993 s,@AMTAR@,$AMTAR,;t t
15994 s,@install_sh@,$install_sh,;t t
15995 s,@STRIP@,$STRIP,;t t
15996 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15997 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15998 s,@AWK@,$AWK,;t t
15999 s,@SET_MAKE@,$SET_MAKE,;t t
16000 s,@am__leading_dot@,$am__leading_dot,;t t
16001 s,@build@,$build,;t t
16002 s,@build_cpu@,$build_cpu,;t t
16003 s,@build_vendor@,$build_vendor,;t t
16004 s,@build_os@,$build_os,;t t
16005 s,@host@,$host,;t t
16006 s,@host_cpu@,$host_cpu,;t t
16007 s,@host_vendor@,$host_vendor,;t t
16008 s,@host_os@,$host_os,;t t
16009 s,@CC@,$CC,;t t
16010 s,@CFLAGS@,$CFLAGS,;t t
16011 s,@LDFLAGS@,$LDFLAGS,;t t
16012 s,@CPPFLAGS@,$CPPFLAGS,;t t
16013 s,@ac_ct_CC@,$ac_ct_CC,;t t
16014 s,@EXEEXT@,$EXEEXT,;t t
16015 s,@OBJEXT@,$OBJEXT,;t t
16016 s,@DEPDIR@,$DEPDIR,;t t
16017 s,@am__include@,$am__include,;t t
16018 s,@am__quote@,$am__quote,;t t
16019 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16020 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16021 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16022 s,@CCDEPMODE@,$CCDEPMODE,;t t
16023 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16024 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16025 s,@CPP@,$CPP,;t t
16026 s,@EGREP@,$EGREP,;t t
16027 s,@U@,$U,;t t
16028 s,@ANSI2KNR@,$ANSI2KNR,;t t
16029 s,@RANLIB@,$RANLIB,;t t
16030 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16031 s,@AR@,$AR,;t t
16032 s,@ac_ct_AR@,$ac_ct_AR,;t t
16033 s,@DBX@,$DBX,;t t
16034 s,@GDB@,$GDB,;t t
16035 s,@SDB@,$SDB,;t t
16036 s,@DEBUGGER@,$DEBUGGER,;t t
16037 s,@SENDMAIL@,$SENDMAIL,;t t
16038 s,@OPS@,$OPS,;t t
16039 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16040 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16041 s,@SUBVERSION@,$SUBVERSION,;t t
16042 s,@ISPELL@,$ISPELL,;t t
16043 s,@LIBOBJS@,$LIBOBJS,;t t
16044 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16045 s,@docdir@,$docdir,;t t
16046 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16047 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16048 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16049 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16050 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16051 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16052 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16053 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16054 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16055 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16056 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16057 s,@MUTTLIBS@,$MUTTLIBS,;t t
16058 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16059 s,@LIBIMAP@,$LIBIMAP,;t t
16060 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16061 s,@ALLOCA@,$ALLOCA,;t t
16062 s,@GLIBC21@,$GLIBC21,;t t
16063 s,@LIBICONV@,$LIBICONV,;t t
16064 s,@USE_NLS@,$USE_NLS,;t t
16065 s,@MSGFMT@,$MSGFMT,;t t
16066 s,@GMSGFMT@,$GMSGFMT,;t t
16067 s,@XGETTEXT@,$XGETTEXT,;t t
16068 s,@INTLBISON@,$INTLBISON,;t t
16069 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16070 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16071 s,@CATALOGS@,$CATALOGS,;t t
16072 s,@CATOBJEXT@,$CATOBJEXT,;t t
16073 s,@GMOFILES@,$GMOFILES,;t t
16074 s,@INTLLIBS@,$INTLLIBS,;t t
16075 s,@INTLOBJS@,$INTLOBJS,;t t
16076 s,@POFILES@,$POFILES,;t t
16077 s,@POSUB@,$POSUB,;t t
16078 s,@DATADIRNAME@,$DATADIRNAME,;t t
16079 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16080 s,@GENCAT@,$GENCAT,;t t
16081 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16082 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16083 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16084 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16085 CEOF
16086
16087 _ACEOF
16088
16089   cat >>$CONFIG_STATUS <<\_ACEOF
16090   # Split the substitutions into bite-sized pieces for seds with
16091   # small command number limits, like on Digital OSF/1 and HP-UX.
16092   ac_max_sed_lines=48
16093   ac_sed_frag=1 # Number of current file.
16094   ac_beg=1 # First line for current file.
16095   ac_end=$ac_max_sed_lines # Line after last line for current file.
16096   ac_more_lines=:
16097   ac_sed_cmds=
16098   while $ac_more_lines; do
16099     if test $ac_beg -gt 1; then
16100       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16101     else
16102       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16103     fi
16104     if test ! -s $tmp/subs.frag; then
16105       ac_more_lines=false
16106     else
16107       # The purpose of the label and of the branching condition is to
16108       # speed up the sed processing (if there are no `@' at all, there
16109       # is no need to browse any of the substitutions).
16110       # These are the two extra sed commands mentioned above.
16111       (echo ':t
16112   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16113       if test -z "$ac_sed_cmds"; then
16114         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16115       else
16116         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16117       fi
16118       ac_sed_frag=`expr $ac_sed_frag + 1`
16119       ac_beg=$ac_end
16120       ac_end=`expr $ac_end + $ac_max_sed_lines`
16121     fi
16122   done
16123   if test -z "$ac_sed_cmds"; then
16124     ac_sed_cmds=cat
16125   fi
16126 fi # test -n "$CONFIG_FILES"
16127
16128 _ACEOF
16129 cat >>$CONFIG_STATUS <<\_ACEOF
16130 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16131   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16132   case $ac_file in
16133   - | *:- | *:-:* ) # input from stdin
16134         cat >$tmp/stdin
16135         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16136         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16137   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16138         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16139   * )   ac_file_in=$ac_file.in ;;
16140   esac
16141
16142   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16143   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16145          X"$ac_file" : 'X\(//\)[^/]' \| \
16146          X"$ac_file" : 'X\(//\)$' \| \
16147          X"$ac_file" : 'X\(/\)' \| \
16148          .     : '\(.\)' 2>/dev/null ||
16149 echo X"$ac_file" |
16150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16151           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16152           /^X\(\/\/\)$/{ s//\1/; q; }
16153           /^X\(\/\).*/{ s//\1/; q; }
16154           s/.*/./; q'`
16155   { if $as_mkdir_p; then
16156     mkdir -p "$ac_dir"
16157   else
16158     as_dir="$ac_dir"
16159     as_dirs=
16160     while test ! -d "$as_dir"; do
16161       as_dirs="$as_dir $as_dirs"
16162       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16164          X"$as_dir" : 'X\(//\)[^/]' \| \
16165          X"$as_dir" : 'X\(//\)$' \| \
16166          X"$as_dir" : 'X\(/\)' \| \
16167          .     : '\(.\)' 2>/dev/null ||
16168 echo X"$as_dir" |
16169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16170           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16171           /^X\(\/\/\)$/{ s//\1/; q; }
16172           /^X\(\/\).*/{ s//\1/; q; }
16173           s/.*/./; q'`
16174     done
16175     test ! -n "$as_dirs" || mkdir $as_dirs
16176   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16177 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16178    { (exit 1); exit 1; }; }; }
16179
16180   ac_builddir=.
16181
16182 if test "$ac_dir" != .; then
16183   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16184   # A "../" for each directory in $ac_dir_suffix.
16185   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16186 else
16187   ac_dir_suffix= ac_top_builddir=
16188 fi
16189
16190 case $srcdir in
16191   .)  # No --srcdir option.  We are building in place.
16192     ac_srcdir=.
16193     if test -z "$ac_top_builddir"; then
16194        ac_top_srcdir=.
16195     else
16196        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16197     fi ;;
16198   [\\/]* | ?:[\\/]* )  # Absolute path.
16199     ac_srcdir=$srcdir$ac_dir_suffix;
16200     ac_top_srcdir=$srcdir ;;
16201   *) # Relative path.
16202     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16203     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16204 esac
16205 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16206 # absolute.
16207 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16208 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16209 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16210 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16211
16212
16213   case $INSTALL in
16214   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16215   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16216   esac
16217
16218   if test x"$ac_file" != x-; then
16219     { echo "$as_me:$LINENO: creating $ac_file" >&5
16220 echo "$as_me: creating $ac_file" >&6;}
16221     rm -f "$ac_file"
16222   fi
16223   # Let's still pretend it is `configure' which instantiates (i.e., don't
16224   # use $as_me), people would be surprised to read:
16225   #    /* config.h.  Generated by config.status.  */
16226   if test x"$ac_file" = x-; then
16227     configure_input=
16228   else
16229     configure_input="$ac_file.  "
16230   fi
16231   configure_input=$configure_input"Generated from `echo $ac_file_in |
16232                                      sed 's,.*/,,'` by configure."
16233
16234   # First look for the input files in the build tree, otherwise in the
16235   # src tree.
16236   ac_file_inputs=`IFS=:
16237     for f in $ac_file_in; do
16238       case $f in
16239       -) echo $tmp/stdin ;;
16240       [\\/$]*)
16241          # Absolute (can't be DOS-style, as IFS=:)
16242          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16243 echo "$as_me: error: cannot find input file: $f" >&2;}
16244    { (exit 1); exit 1; }; }
16245          echo $f;;
16246       *) # Relative
16247          if test -f "$f"; then
16248            # Build tree
16249            echo $f
16250          elif test -f "$srcdir/$f"; then
16251            # Source tree
16252            echo $srcdir/$f
16253          else
16254            # /dev/null tree
16255            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16256 echo "$as_me: error: cannot find input file: $f" >&2;}
16257    { (exit 1); exit 1; }; }
16258          fi;;
16259       esac
16260     done` || { (exit 1); exit 1; }
16261 _ACEOF
16262 cat >>$CONFIG_STATUS <<_ACEOF
16263   sed "$ac_vpsub
16264 $extrasub
16265 _ACEOF
16266 cat >>$CONFIG_STATUS <<\_ACEOF
16267 :t
16268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16269 s,@configure_input@,$configure_input,;t t
16270 s,@srcdir@,$ac_srcdir,;t t
16271 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16272 s,@top_srcdir@,$ac_top_srcdir,;t t
16273 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16274 s,@builddir@,$ac_builddir,;t t
16275 s,@abs_builddir@,$ac_abs_builddir,;t t
16276 s,@top_builddir@,$ac_top_builddir,;t t
16277 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16278 s,@INSTALL@,$ac_INSTALL,;t t
16279 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16280   rm -f $tmp/stdin
16281   if test x"$ac_file" != x-; then
16282     mv $tmp/out $ac_file
16283   else
16284     cat $tmp/out
16285     rm -f $tmp/out
16286   fi
16287
16288 done
16289 _ACEOF
16290 cat >>$CONFIG_STATUS <<\_ACEOF
16291
16292 #
16293 # CONFIG_HEADER section.
16294 #
16295
16296 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16297 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16298 #
16299 # ac_d sets the value in "#define NAME VALUE" lines.
16300 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16301 ac_dB='[        ].*$,\1#\2'
16302 ac_dC=' '
16303 ac_dD=',;t'
16304 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16305 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16306 ac_uB='$,\1#\2define\3'
16307 ac_uC=' '
16308 ac_uD=',;t'
16309
16310 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16311   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16312   case $ac_file in
16313   - | *:- | *:-:* ) # input from stdin
16314         cat >$tmp/stdin
16315         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16316         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16317   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16318         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16319   * )   ac_file_in=$ac_file.in ;;
16320   esac
16321
16322   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16323 echo "$as_me: creating $ac_file" >&6;}
16324
16325   # First look for the input files in the build tree, otherwise in the
16326   # src tree.
16327   ac_file_inputs=`IFS=:
16328     for f in $ac_file_in; do
16329       case $f in
16330       -) echo $tmp/stdin ;;
16331       [\\/$]*)
16332          # Absolute (can't be DOS-style, as IFS=:)
16333          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16334 echo "$as_me: error: cannot find input file: $f" >&2;}
16335    { (exit 1); exit 1; }; }
16336          echo $f;;
16337       *) # Relative
16338          if test -f "$f"; then
16339            # Build tree
16340            echo $f
16341          elif test -f "$srcdir/$f"; then
16342            # Source tree
16343            echo $srcdir/$f
16344          else
16345            # /dev/null tree
16346            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16347 echo "$as_me: error: cannot find input file: $f" >&2;}
16348    { (exit 1); exit 1; }; }
16349          fi;;
16350       esac
16351     done` || { (exit 1); exit 1; }
16352   # Remove the trailing spaces.
16353   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16354
16355 _ACEOF
16356
16357 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16358 # `conftest.undefs', that substitutes the proper values into
16359 # config.h.in to produce config.h.  The first handles `#define'
16360 # templates, and the second `#undef' templates.
16361 # And first: Protect against being on the right side of a sed subst in
16362 # config.status.  Protect against being in an unquoted here document
16363 # in config.status.
16364 rm -f conftest.defines conftest.undefs
16365 # Using a here document instead of a string reduces the quoting nightmare.
16366 # Putting comments in sed scripts is not portable.
16367 #
16368 # `end' is used to avoid that the second main sed command (meant for
16369 # 0-ary CPP macros) applies to n-ary macro definitions.
16370 # See the Autoconf documentation for `clear'.
16371 cat >confdef2sed.sed <<\_ACEOF
16372 s/[\\&,]/\\&/g
16373 s,[\\$`],\\&,g
16374 t clear
16375 : clear
16376 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16377 t end
16378 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16379 : end
16380 _ACEOF
16381 # If some macros were called several times there might be several times
16382 # the same #defines, which is useless.  Nevertheless, we may not want to
16383 # sort them, since we want the *last* AC-DEFINE to be honored.
16384 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16385 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16386 rm -f confdef2sed.sed
16387
16388 # This sed command replaces #undef with comments.  This is necessary, for
16389 # example, in the case of _POSIX_SOURCE, which is predefined and required
16390 # on some systems where configure will not decide to define it.
16391 cat >>conftest.undefs <<\_ACEOF
16392 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16393 _ACEOF
16394
16395 # Break up conftest.defines because some shells have a limit on the size
16396 # of here documents, and old seds have small limits too (100 cmds).
16397 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16398 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16399 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16400 echo '  :' >>$CONFIG_STATUS
16401 rm -f conftest.tail
16402 while grep . conftest.defines >/dev/null
16403 do
16404   # Write a limited-size here document to $tmp/defines.sed.
16405   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16406   # Speed up: don't consider the non `#define' lines.
16407   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16408   # Work around the forget-to-reset-the-flag bug.
16409   echo 't clr' >>$CONFIG_STATUS
16410   echo ': clr' >>$CONFIG_STATUS
16411   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16412   echo 'CEOF
16413   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16414   rm -f $tmp/in
16415   mv $tmp/out $tmp/in
16416 ' >>$CONFIG_STATUS
16417   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16418   rm -f conftest.defines
16419   mv conftest.tail conftest.defines
16420 done
16421 rm -f conftest.defines
16422 echo '  fi # grep' >>$CONFIG_STATUS
16423 echo >>$CONFIG_STATUS
16424
16425 # Break up conftest.undefs because some shells have a limit on the size
16426 # of here documents, and old seds have small limits too (100 cmds).
16427 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16428 rm -f conftest.tail
16429 while grep . conftest.undefs >/dev/null
16430 do
16431   # Write a limited-size here document to $tmp/undefs.sed.
16432   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16433   # Speed up: don't consider the non `#undef'
16434   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16435   # Work around the forget-to-reset-the-flag bug.
16436   echo 't clr' >>$CONFIG_STATUS
16437   echo ': clr' >>$CONFIG_STATUS
16438   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16439   echo 'CEOF
16440   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16441   rm -f $tmp/in
16442   mv $tmp/out $tmp/in
16443 ' >>$CONFIG_STATUS
16444   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16445   rm -f conftest.undefs
16446   mv conftest.tail conftest.undefs
16447 done
16448 rm -f conftest.undefs
16449
16450 cat >>$CONFIG_STATUS <<\_ACEOF
16451   # Let's still pretend it is `configure' which instantiates (i.e., don't
16452   # use $as_me), people would be surprised to read:
16453   #    /* config.h.  Generated by config.status.  */
16454   if test x"$ac_file" = x-; then
16455     echo "/* Generated by configure.  */" >$tmp/config.h
16456   else
16457     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16458   fi
16459   cat $tmp/in >>$tmp/config.h
16460   rm -f $tmp/in
16461   if test x"$ac_file" != x-; then
16462     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16463       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16464 echo "$as_me: $ac_file is unchanged" >&6;}
16465     else
16466       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468          X"$ac_file" : 'X\(//\)[^/]' \| \
16469          X"$ac_file" : 'X\(//\)$' \| \
16470          X"$ac_file" : 'X\(/\)' \| \
16471          .     : '\(.\)' 2>/dev/null ||
16472 echo X"$ac_file" |
16473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16474           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16475           /^X\(\/\/\)$/{ s//\1/; q; }
16476           /^X\(\/\).*/{ s//\1/; q; }
16477           s/.*/./; q'`
16478       { if $as_mkdir_p; then
16479     mkdir -p "$ac_dir"
16480   else
16481     as_dir="$ac_dir"
16482     as_dirs=
16483     while test ! -d "$as_dir"; do
16484       as_dirs="$as_dir $as_dirs"
16485       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16487          X"$as_dir" : 'X\(//\)[^/]' \| \
16488          X"$as_dir" : 'X\(//\)$' \| \
16489          X"$as_dir" : 'X\(/\)' \| \
16490          .     : '\(.\)' 2>/dev/null ||
16491 echo X"$as_dir" |
16492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16493           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16494           /^X\(\/\/\)$/{ s//\1/; q; }
16495           /^X\(\/\).*/{ s//\1/; q; }
16496           s/.*/./; q'`
16497     done
16498     test ! -n "$as_dirs" || mkdir $as_dirs
16499   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16500 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16501    { (exit 1); exit 1; }; }; }
16502
16503       rm -f $ac_file
16504       mv $tmp/config.h $ac_file
16505     fi
16506   else
16507     cat $tmp/config.h
16508     rm -f $tmp/config.h
16509   fi
16510 # Compute $ac_file's index in $config_headers.
16511 _am_stamp_count=1
16512 for _am_header in $config_headers :; do
16513   case $_am_header in
16514     $ac_file | $ac_file:* )
16515       break ;;
16516     * )
16517       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16518   esac
16519 done
16520 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16521 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16522          X$ac_file : 'X\(//\)[^/]' \| \
16523          X$ac_file : 'X\(//\)$' \| \
16524          X$ac_file : 'X\(/\)' \| \
16525          .     : '\(.\)' 2>/dev/null ||
16526 echo X$ac_file |
16527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16528           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16529           /^X\(\/\/\)$/{ s//\1/; q; }
16530           /^X\(\/\).*/{ s//\1/; q; }
16531           s/.*/./; q'`/stamp-h$_am_stamp_count
16532 done
16533 _ACEOF
16534 cat >>$CONFIG_STATUS <<\_ACEOF
16535
16536 #
16537 # CONFIG_COMMANDS section.
16538 #
16539 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16540   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16541   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16542   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16543 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16544          X"$ac_dest" : 'X\(//\)[^/]' \| \
16545          X"$ac_dest" : 'X\(//\)$' \| \
16546          X"$ac_dest" : 'X\(/\)' \| \
16547          .     : '\(.\)' 2>/dev/null ||
16548 echo X"$ac_dest" |
16549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16550           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16551           /^X\(\/\/\)$/{ s//\1/; q; }
16552           /^X\(\/\).*/{ s//\1/; q; }
16553           s/.*/./; q'`
16554   ac_builddir=.
16555
16556 if test "$ac_dir" != .; then
16557   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16558   # A "../" for each directory in $ac_dir_suffix.
16559   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16560 else
16561   ac_dir_suffix= ac_top_builddir=
16562 fi
16563
16564 case $srcdir in
16565   .)  # No --srcdir option.  We are building in place.
16566     ac_srcdir=.
16567     if test -z "$ac_top_builddir"; then
16568        ac_top_srcdir=.
16569     else
16570        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16571     fi ;;
16572   [\\/]* | ?:[\\/]* )  # Absolute path.
16573     ac_srcdir=$srcdir$ac_dir_suffix;
16574     ac_top_srcdir=$srcdir ;;
16575   *) # Relative path.
16576     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16577     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16578 esac
16579 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16580 # absolute.
16581 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16582 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16583 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16584 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16585
16586
16587   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16588 echo "$as_me: executing $ac_dest commands" >&6;}
16589   case $ac_dest in
16590     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16591   # Strip MF so we end up with the name of the file.
16592   mf=`echo "$mf" | sed -e 's/:.*$//'`
16593   # Check whether this is an Automake generated Makefile or not.
16594   # We used to match only the files named `Makefile.in', but
16595   # some people rename them; so instead we look at the file content.
16596   # Grep'ing the first line is not enough: some people post-process
16597   # each Makefile.in and add a new line on top of each file to say so.
16598   # So let's grep whole file.
16599   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16600     dirpart=`(dirname "$mf") 2>/dev/null ||
16601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16602          X"$mf" : 'X\(//\)[^/]' \| \
16603          X"$mf" : 'X\(//\)$' \| \
16604          X"$mf" : 'X\(/\)' \| \
16605          .     : '\(.\)' 2>/dev/null ||
16606 echo X"$mf" |
16607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16609           /^X\(\/\/\)$/{ s//\1/; q; }
16610           /^X\(\/\).*/{ s//\1/; q; }
16611           s/.*/./; q'`
16612   else
16613     continue
16614   fi
16615   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16616   # Extract the definition of DEP_FILES from the Makefile without
16617   # running `make'.
16618   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16619   test -z "$DEPDIR" && continue
16620   # When using ansi2knr, U may be empty or an underscore; expand it
16621   U=`sed -n -e '/^U = / s///p' < "$mf"`
16622   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16623   # We invoke sed twice because it is the simplest approach to
16624   # changing $(DEPDIR) to its actual value in the expansion.
16625   for file in `sed -n -e '
16626     /^DEP_FILES = .*\\\\$/ {
16627       s/^DEP_FILES = //
16628       :loop
16629         s/\\\\$//
16630         p
16631         n
16632         /\\\\$/ b loop
16633       p
16634     }
16635     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16636        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16637     # Make sure the directory exists.
16638     test -f "$dirpart/$file" && continue
16639     fdir=`(dirname "$file") 2>/dev/null ||
16640 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16641          X"$file" : 'X\(//\)[^/]' \| \
16642          X"$file" : 'X\(//\)$' \| \
16643          X"$file" : 'X\(/\)' \| \
16644          .     : '\(.\)' 2>/dev/null ||
16645 echo X"$file" |
16646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16647           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16648           /^X\(\/\/\)$/{ s//\1/; q; }
16649           /^X\(\/\).*/{ s//\1/; q; }
16650           s/.*/./; q'`
16651     { if $as_mkdir_p; then
16652     mkdir -p $dirpart/$fdir
16653   else
16654     as_dir=$dirpart/$fdir
16655     as_dirs=
16656     while test ! -d "$as_dir"; do
16657       as_dirs="$as_dir $as_dirs"
16658       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660          X"$as_dir" : 'X\(//\)[^/]' \| \
16661          X"$as_dir" : 'X\(//\)$' \| \
16662          X"$as_dir" : 'X\(/\)' \| \
16663          .     : '\(.\)' 2>/dev/null ||
16664 echo X"$as_dir" |
16665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667           /^X\(\/\/\)$/{ s//\1/; q; }
16668           /^X\(\/\).*/{ s//\1/; q; }
16669           s/.*/./; q'`
16670     done
16671     test ! -n "$as_dirs" || mkdir $as_dirs
16672   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16673 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16674    { (exit 1); exit 1; }; }; }
16675
16676     # echo "creating $dirpart/$file"
16677     echo '# dummy' > "$dirpart/$file"
16678   done
16679 done
16680  ;;
16681     default-1 ) for ac_file in $CONFIG_FILES; do
16682         # Support "outfile[:infile[:infile...]]"
16683         case "$ac_file" in
16684           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16685         esac
16686         # PO directories have a Makefile.in generated from Makefile.in.in.
16687         case "$ac_file" in */Makefile.in)
16688           # Adjust a relative srcdir.
16689           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16690           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16691           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16692           # In autoconf-2.13 it is called $ac_given_srcdir.
16693           # In autoconf-2.50 it is called $srcdir.
16694           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16695           case "$ac_given_srcdir" in
16696             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16697             /*) top_srcdir="$ac_given_srcdir" ;;
16698             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16699           esac
16700           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16701             rm -f "$ac_dir/POTFILES"
16702             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16703             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16704             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16705             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16706           fi
16707           ;;
16708         esac
16709       done ;;
16710   esac
16711 done
16712 _ACEOF
16713
16714 cat >>$CONFIG_STATUS <<\_ACEOF
16715
16716 { (exit 0); exit 0; }
16717 _ACEOF
16718 chmod +x $CONFIG_STATUS
16719 ac_clean_files=$ac_clean_files_save
16720
16721
16722 # configure is writing to config.log, and then calls config.status.
16723 # config.status does its own redirection, appending to config.log.
16724 # Unfortunately, on DOS this fails, as config.log is still kept open
16725 # by configure, so config.status won't be able to write to it; its
16726 # output is simply discarded.  So we exec the FD to /dev/null,
16727 # effectively closing config.log, so it can be properly (re)opened and
16728 # appended to by config.status.  When coming back to configure, we
16729 # need to make the FD available again.
16730 if test "$no_create" != yes; then
16731   ac_cs_success=:
16732   ac_config_status_args=
16733   test "$silent" = yes &&
16734     ac_config_status_args="$ac_config_status_args --quiet"
16735   exec 5>/dev/null
16736   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16737   exec 5>>config.log
16738   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16739   # would make configure fail if this is the last instruction.
16740   $ac_cs_success || { (exit 1); exit 1; }
16741 fi
16742