Andreas Krennmair:
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --disable-pgp              Disable PGP support
854   --disable-smime            Disable SMIME support
855   --enable-external-dotlock  Force use of an external dotlock program
856   --enable-pop               Enable POP3 support
857   --enable-imap              Enable IMAP support
858   --enable-nntp              Enable NNTP support
859   --enable-debug             Enable debugging support
860   --enable-flock             Use flock() to lock files
861   --disable-fcntl            Do NOT use fcntl() to lock files
862   --disable-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   --enable-hcache            Enable header caching
870   --disable-iconv            Disable iconv support
871   --disable-nls              Do not use Native Language Support
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-mixmaster=PATH    Include Mixmaster support
877   --with-slang=DIR         Use S-Lang instead of ncurses
878   --with-curses=DIR          Where ncurses is installed
879   --with-regex               Use the GNU regex library
880   --with-homespool=FILE    File in user's directory where new mail is spooled
881   --with-mailpath=DIR        Directory where spool mailboxes are located
882   --with-docdir=PATH         Specify where to put the documentation
883   --with-domain=DOMAIN       Specify your DNS domain name
884     --with-gss=PFX         Compile in GSSAPI authentication for IMAP
885   --with-ssl=PFX           Compile in SSL support for POP/IMAP
886   --with-gnutls=PFX        Compile in GNU TLS support for POP/IMAP
887   --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
888   --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
889   --with-sasl2=PFX         Use Cyrus SASL library version 2 for POP/IMAP authentication
890   --with-idn=PFX                Use GNU libidn for domain names
891   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
892   --without-gdbm             Get rid of gdbm even if it is available
893   --with-bdb=DIR          Use BerkeleyDB4 if gdbm is not available
894   --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
895   --with-included-gettext    Use the GNU gettext library included here
896   --without-wc-funcs         Do not use the system's wchar_t functions
897   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
898
899 Some influential environment variables:
900   CC          C compiler command
901   CFLAGS      C compiler flags
902   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
903               nonstandard directory <lib dir>
904   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
905               headers in a nonstandard directory <include dir>
906   CPP         C preprocessor
907
908 Use these variables to override the choices made by `configure' or to help
909 it to find libraries and programs with nonstandard names/locations.
910
911 _ACEOF
912 fi
913
914 if test "$ac_init_help" = "recursive"; then
915   # If there are subdirs, report their specific --help.
916   ac_popdir=`pwd`
917   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918     test -d $ac_dir || continue
919     ac_builddir=.
920
921 if test "$ac_dir" != .; then
922   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923   # A "../" for each directory in $ac_dir_suffix.
924   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 else
926   ac_dir_suffix= ac_top_builddir=
927 fi
928
929 case $srcdir in
930   .)  # No --srcdir option.  We are building in place.
931     ac_srcdir=.
932     if test -z "$ac_top_builddir"; then
933        ac_top_srcdir=.
934     else
935        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936     fi ;;
937   [\\/]* | ?:[\\/]* )  # Absolute path.
938     ac_srcdir=$srcdir$ac_dir_suffix;
939     ac_top_srcdir=$srcdir ;;
940   *) # Relative path.
941     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942     ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 esac
944 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
945 # absolute.
946 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
947 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
948 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
949 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950
951     cd $ac_dir
952     # Check for guested configure; otherwise get Cygnus style configure.
953     if test -f $ac_srcdir/configure.gnu; then
954       echo
955       $SHELL $ac_srcdir/configure.gnu  --help=recursive
956     elif test -f $ac_srcdir/configure; then
957       echo
958       $SHELL $ac_srcdir/configure  --help=recursive
959     elif test -f $ac_srcdir/configure.ac ||
960            test -f $ac_srcdir/configure.in; then
961       echo
962       $ac_configure --help
963     else
964       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965     fi
966     cd $ac_popdir
967   done
968 fi
969
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972   cat <<\_ACEOF
973
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979   exit 0
980 fi
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
985
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.57.  Invocation command line was
988
989   $ $0 $@
990
991 _ACEOF
992 {
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
997
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1006
1007 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1008 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1011 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1012 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1013 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1014
1015 _ASUNAME
1016
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1019 do
1020   IFS=$as_save_IFS
1021   test -z "$as_dir" && as_dir=.
1022   echo "PATH: $as_dir"
1023 done
1024
1025 } >&5
1026
1027 cat >&5 <<_ACEOF
1028
1029
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1033
1034 _ACEOF
1035
1036
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1048 do
1049   for ac_arg
1050   do
1051     case $ac_arg in
1052     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054     | -silent | --silent | --silen | --sile | --sil)
1055       continue ;;
1056     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058     esac
1059     case $ac_pass in
1060     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061     2)
1062       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063       if test $ac_must_keep_next = true; then
1064         ac_must_keep_next=false # Got value, back to normal.
1065       else
1066         case $ac_arg in
1067           *=* | --config-cache | -C | -disable-* | --disable-* \
1068           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070           | -with-* | --with-* | -without-* | --without-* | --x)
1071             case "$ac_configure_args0 " in
1072               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073             esac
1074             ;;
1075           -* ) ac_must_keep_next=true ;;
1076         esac
1077       fi
1078       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079       # Get rid of the leading space.
1080       ac_sep=" "
1081       ;;
1082     esac
1083   done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log.  We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094   # Save into config.log some information that might help in debugging.
1095   {
1096     echo
1097
1098     cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103     echo
1104     # The following way of writing the cache mishandles newlines in values,
1105 {
1106   (set) 2>&1 |
1107     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108     *ac_space=\ *)
1109       sed -n \
1110         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112       ;;
1113     *)
1114       sed -n \
1115         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116       ;;
1117     esac;
1118 }
1119     echo
1120
1121     cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126     echo
1127     for ac_var in $ac_subst_vars
1128     do
1129       eval ac_val=$`echo $ac_var`
1130       echo "$ac_var='"'"'$ac_val'"'"'"
1131     done | sort
1132     echo
1133
1134     if test -n "$ac_subst_files"; then
1135       cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140       echo
1141       for ac_var in $ac_subst_files
1142       do
1143         eval ac_val=$`echo $ac_var`
1144         echo "$ac_var='"'"'$ac_val'"'"'"
1145       done | sort
1146       echo
1147     fi
1148
1149     if test -s confdefs.h; then
1150       cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155       echo
1156       sed "/^$/d" confdefs.h | sort
1157       echo
1158     fi
1159     test "$ac_signal" != 0 &&
1160       echo "$as_me: caught signal $ac_signal"
1161     echo "$as_me: exit $exit_status"
1162   } >&5
1163   rm -f core core.* *.core &&
1164   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165     exit $exit_status
1166      ' 0
1167 for ac_signal in 1 2 13 15; do
1168   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1171
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1176
1177 # Predefined preprocessor variables.
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1202
1203
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207   if test "x$prefix" != xNONE; then
1208     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209   else
1210     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211   fi
1212 fi
1213 for ac_site_file in $CONFIG_SITE; do
1214   if test -r "$ac_site_file"; then
1215     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217     sed 's/^/| /' "$ac_site_file" >&5
1218     . "$ac_site_file"
1219   fi
1220 done
1221
1222 if test -r "$cache_file"; then
1223   # Some versions of bash will fail to source /dev/null (special
1224   # files actually), so we avoid doing that.
1225   if test -f "$cache_file"; then
1226     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228     case $cache_file in
1229       [\\/]* | ?:[\\/]* ) . $cache_file;;
1230       *)                      . ./$cache_file;;
1231     esac
1232   fi
1233 else
1234   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236   >$cache_file
1237 fi
1238
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245   eval ac_new_set=\$ac_env_${ac_var}_set
1246   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247   eval ac_new_val="\$ac_env_${ac_var}_value"
1248   case $ac_old_set,$ac_new_set in
1249     set,)
1250       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252       ac_cache_corrupted=: ;;
1253     ,set)
1254       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256       ac_cache_corrupted=: ;;
1257     ,);;
1258     *)
1259       if test "x$ac_old_val" != "x$ac_new_val"; then
1260         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1263 echo "$as_me:   former value:  $ac_old_val" >&2;}
1264         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1265 echo "$as_me:   current value: $ac_new_val" >&2;}
1266         ac_cache_corrupted=:
1267       fi;;
1268   esac
1269   # Pass precious variables to config.status.
1270   if test "$ac_new_set" = set; then
1271     case $ac_new_val in
1272     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274     *) ac_arg=$ac_var=$ac_new_val ;;
1275     esac
1276     case " $ac_configure_args " in
1277       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1278       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279     esac
1280   fi
1281 done
1282 if $ac_cache_corrupted; then
1283   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287    { (exit 1); exit 1; }; }
1288 fi
1289
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314           ac_config_headers="$ac_config_headers config.h"
1315
1316
1317 mutt_cv_version=`cat $srcdir/VERSION`
1318
1319
1320 am__api_version="1.7"
1321 ac_aux_dir=
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323   if 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/install.sh; then
1328     ac_aux_dir=$ac_dir
1329     ac_install_sh="$ac_aux_dir/install.sh -c"
1330     break
1331   elif test -f $ac_dir/shtool; then
1332     ac_aux_dir=$ac_dir
1333     ac_install_sh="$ac_aux_dir/shtool install -c"
1334     break
1335   fi
1336 done
1337 if test -z "$ac_aux_dir"; then
1338   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340    { (exit 1); exit 1; }; }
1341 fi
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346 # Find a good install program.  We prefer a C program (faster),
1347 # so one script is as good as another.  But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1352 # AIX /bin/install
1353 # AmigaOS /C/install, which installs bootblocks on floppy discs
1354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1357 # ./install, which can be erroneously created by make from ./install.sh.
1358 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1359 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1360 if test -z "$INSTALL"; then
1361 if test "${ac_cv_path_install+set}" = set; then
1362   echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 for as_dir in $PATH
1366 do
1367   IFS=$as_save_IFS
1368   test -z "$as_dir" && as_dir=.
1369   # Account for people who put trailing slashes in PATH elements.
1370 case $as_dir/ in
1371   ./ | .// | /cC/* | \
1372   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1373   /usr/ucb/* ) ;;
1374   *)
1375     # OSF1 and SCO ODT 3.0 have their own names for install.
1376     # Don't use installbsd from OSF since it installs stuff as root
1377     # by default.
1378     for ac_prog in ginstall scoinst install; do
1379       for ac_exec_ext in '' $ac_executable_extensions; do
1380         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381           if test $ac_prog = install &&
1382             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383             # AIX install.  It has an incompatible calling convention.
1384             :
1385           elif test $ac_prog = install &&
1386             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387             # program-specific install script used by HP pwplus--don't use.
1388             :
1389           else
1390             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1391             break 3
1392           fi
1393         fi
1394       done
1395     done
1396     ;;
1397 esac
1398 done
1399
1400
1401 fi
1402   if test "${ac_cv_path_install+set}" = set; then
1403     INSTALL=$ac_cv_path_install
1404   else
1405     # As a last resort, use the slow shell script.  We don't cache a
1406     # path for INSTALL within a source directory, because that will
1407     # break other packages using the cache if that directory is
1408     # removed, or if the path is relative.
1409     INSTALL=$ac_install_sh
1410   fi
1411 fi
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1414
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1425 # Just in case
1426 sleep 1
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments.  Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1432 # directory).
1433 if (
1434    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435    if test "$*" = "X"; then
1436       # -L didn't work.
1437       set X `ls -t $srcdir/configure conftest.file`
1438    fi
1439    rm -f conftest.file
1440    if test "$*" != "X $srcdir/configure conftest.file" \
1441       && test "$*" != "X conftest.file $srcdir/configure"; then
1442
1443       # If neither matched, then we have a broken ls.  This can happen
1444       # if, for instance, CONFIG_SHELL is bash and it inherits a
1445       # broken ls alias from the environment.  This has actually
1446       # happened.  Such a system could not be considered "sane".
1447       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1450 alias in your environment" >&2;}
1451    { (exit 1); exit 1; }; }
1452    fi
1453
1454    test "$2" = conftest.file
1455    )
1456 then
1457    # Ok.
1458    :
1459 else
1460    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464    { (exit 1); exit 1; }; }
1465 fi
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $.  echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1477 _ACEOF
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 rm conftest.sed
1480
1481
1482 # expand $ac_aux_dir to an absolute path
1483 am_aux_dir=`cd $ac_aux_dir && pwd`
1484
1485 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1486 # Use eval to expand $SHELL
1487 if eval "$MISSING --run true"; then
1488   am_missing_run="$MISSING --run "
1489 else
1490   am_missing_run=
1491   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1492 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1493 fi
1494
1495 for ac_prog in gawk mawk nawk awk
1496 do
1497   # Extract the first word of "$ac_prog", so it can be a program name with args.
1498 set dummy $ac_prog; ac_word=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_AWK+set}" = set; then
1502   echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504   if test -n "$AWK"; then
1505   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1506 else
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510   IFS=$as_save_IFS
1511   test -z "$as_dir" && as_dir=.
1512   for ac_exec_ext in '' $ac_executable_extensions; do
1513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514     ac_cv_prog_AWK="$ac_prog"
1515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516     break 2
1517   fi
1518 done
1519 done
1520
1521 fi
1522 fi
1523 AWK=$ac_cv_prog_AWK
1524 if test -n "$AWK"; then
1525   echo "$as_me:$LINENO: result: $AWK" >&5
1526 echo "${ECHO_T}$AWK" >&6
1527 else
1528   echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530 fi
1531
1532   test -n "$AWK" && break
1533 done
1534
1535 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1536 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1537 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1538 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1539   echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541   cat >conftest.make <<\_ACEOF
1542 all:
1543         @echo 'ac_maketemp="$(MAKE)"'
1544 _ACEOF
1545 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1546 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1547 if test -n "$ac_maketemp"; then
1548   eval ac_cv_prog_make_${ac_make}_set=yes
1549 else
1550   eval ac_cv_prog_make_${ac_make}_set=no
1551 fi
1552 rm -f conftest.make
1553 fi
1554 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1555   echo "$as_me:$LINENO: result: yes" >&5
1556 echo "${ECHO_T}yes" >&6
1557   SET_MAKE=
1558 else
1559   echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561   SET_MAKE="MAKE=${MAKE-make}"
1562 fi
1563
1564 rm -rf .tst 2>/dev/null
1565 mkdir .tst 2>/dev/null
1566 if test -d .tst; then
1567   am__leading_dot=.
1568 else
1569   am__leading_dot=_
1570 fi
1571 rmdir .tst 2>/dev/null
1572
1573  # test to see if srcdir already configured
1574 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1575    test -f $srcdir/config.status; then
1576   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1577 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1578    { (exit 1); exit 1; }; }
1579 fi
1580
1581 # test whether we have cygpath
1582 if test -z "$CYGPATH_W"; then
1583   if (cygpath --version) >/dev/null 2>/dev/null; then
1584     CYGPATH_W='cygpath -w'
1585   else
1586     CYGPATH_W=echo
1587   fi
1588 fi
1589
1590
1591 # Define the identity of the package.
1592  PACKAGE=muttng
1593  VERSION=$mutt_cv_version
1594
1595
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE "$PACKAGE"
1598 _ACEOF
1599
1600
1601 cat >>confdefs.h <<_ACEOF
1602 #define VERSION "$VERSION"
1603 _ACEOF
1604
1605 # Some tools Automake needs.
1606
1607 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1608
1609
1610 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1611
1612
1613 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1614
1615
1616 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1617
1618
1619 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1620
1621
1622 AMTAR=${AMTAR-"${am_missing_run}tar"}
1623
1624 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1625
1626 # Installed binaries are usually stripped using `strip' when the user
1627 # run `make install-strip'.  However `strip' might not be the right
1628 # tool to use in cross-compilation environments, therefore Automake
1629 # will honor the `STRIP' environment variable to overrule this program.
1630 if test "$cross_compiling" != no; then
1631   if test -n "$ac_tool_prefix"; then
1632   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1633 set dummy ${ac_tool_prefix}strip; ac_word=$2
1634 echo "$as_me:$LINENO: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_STRIP+set}" = set; then
1637   echo $ECHO_N "(cached) $ECHO_C" >&6
1638 else
1639   if test -n "$STRIP"; then
1640   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1641 else
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1644 do
1645   IFS=$as_save_IFS
1646   test -z "$as_dir" && as_dir=.
1647   for ac_exec_ext in '' $ac_executable_extensions; do
1648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651     break 2
1652   fi
1653 done
1654 done
1655
1656 fi
1657 fi
1658 STRIP=$ac_cv_prog_STRIP
1659 if test -n "$STRIP"; then
1660   echo "$as_me:$LINENO: result: $STRIP" >&5
1661 echo "${ECHO_T}$STRIP" >&6
1662 else
1663   echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1665 fi
1666
1667 fi
1668 if test -z "$ac_cv_prog_STRIP"; then
1669   ac_ct_STRIP=$STRIP
1670   # Extract the first word of "strip", so it can be a program name with args.
1671 set dummy strip; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   if test -n "$ac_ct_STRIP"; then
1678   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1679 else
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1682 do
1683   IFS=$as_save_IFS
1684   test -z "$as_dir" && as_dir=.
1685   for ac_exec_ext in '' $ac_executable_extensions; do
1686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687     ac_cv_prog_ac_ct_STRIP="strip"
1688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689     break 2
1690   fi
1691 done
1692 done
1693
1694   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1695 fi
1696 fi
1697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1698 if test -n "$ac_ct_STRIP"; then
1699   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1700 echo "${ECHO_T}$ac_ct_STRIP" >&6
1701 else
1702   echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 fi
1705
1706   STRIP=$ac_ct_STRIP
1707 else
1708   STRIP="$ac_cv_prog_STRIP"
1709 fi
1710
1711 fi
1712 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1713
1714 # We need awk for the "check" target.  The system "awk" is bad on
1715 # some platforms.
1716
1717
1718
1719
1720
1721
1722 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"
1723
1724 # Make sure we can run config.sub.
1725 $ac_config_sub sun4 >/dev/null 2>&1 ||
1726   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728    { (exit 1); exit 1; }; }
1729
1730 echo "$as_me:$LINENO: checking build system type" >&5
1731 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732 if test "${ac_cv_build+set}" = set; then
1733   echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735   ac_cv_build_alias=$build_alias
1736 test -z "$ac_cv_build_alias" &&
1737   ac_cv_build_alias=`$ac_config_guess`
1738 test -z "$ac_cv_build_alias" &&
1739   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741    { (exit 1); exit 1; }; }
1742 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745    { (exit 1); exit 1; }; }
1746
1747 fi
1748 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749 echo "${ECHO_T}$ac_cv_build" >&6
1750 build=$ac_cv_build
1751 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756 echo "$as_me:$LINENO: checking host system type" >&5
1757 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1758 if test "${ac_cv_host+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   ac_cv_host_alias=$host_alias
1762 test -z "$ac_cv_host_alias" &&
1763   ac_cv_host_alias=$ac_cv_build_alias
1764 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1765   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1766 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1767    { (exit 1); exit 1; }; }
1768
1769 fi
1770 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1771 echo "${ECHO_T}$ac_cv_host" >&6
1772 host=$ac_cv_host
1773 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778
1779 echo "$as_me:$LINENO: checking for prefix" >&5
1780 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1781 if test x$prefix = xNONE; then
1782         mutt_cv_prefix=$ac_default_prefix
1783 else
1784         mutt_cv_prefix=$prefix
1785 fi
1786 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1787 echo "${ECHO_T}$mutt_cv_prefix" >&6
1788
1789 ac_ext=c
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794 if test -n "$ac_tool_prefix"; then
1795   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$CC"; then
1803   ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808   IFS=$as_save_IFS
1809   test -z "$as_dir" && as_dir=.
1810   for ac_exec_ext in '' $ac_executable_extensions; do
1811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1818
1819 fi
1820 fi
1821 CC=$ac_cv_prog_CC
1822 if test -n "$CC"; then
1823   echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830 fi
1831 if test -z "$ac_cv_prog_CC"; then
1832   ac_ct_CC=$CC
1833   # Extract the first word of "gcc", so it can be a program name with args.
1834 set dummy gcc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$ac_ct_CC"; then
1841   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846   IFS=$as_save_IFS
1847   test -z "$as_dir" && as_dir=.
1848   for ac_exec_ext in '' $ac_executable_extensions; do
1849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850     ac_cv_prog_ac_ct_CC="gcc"
1851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852     break 2
1853   fi
1854 done
1855 done
1856
1857 fi
1858 fi
1859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1860 if test -n "$ac_ct_CC"; then
1861   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1862 echo "${ECHO_T}$ac_ct_CC" >&6
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 fi
1867
1868   CC=$ac_ct_CC
1869 else
1870   CC="$ac_cv_prog_CC"
1871 fi
1872
1873 if test -z "$CC"; then
1874   if test -n "$ac_tool_prefix"; then
1875   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1876 set dummy ${ac_tool_prefix}cc; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_CC+set}" = set; then
1880   echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882   if test -n "$CC"; then
1883   ac_cv_prog_CC="$CC" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888   IFS=$as_save_IFS
1889   test -z "$as_dir" && as_dir=.
1890   for ac_exec_ext in '' $ac_executable_extensions; do
1891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892     ac_cv_prog_CC="${ac_tool_prefix}cc"
1893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894     break 2
1895   fi
1896 done
1897 done
1898
1899 fi
1900 fi
1901 CC=$ac_cv_prog_CC
1902 if test -n "$CC"; then
1903   echo "$as_me:$LINENO: result: $CC" >&5
1904 echo "${ECHO_T}$CC" >&6
1905 else
1906   echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910 fi
1911 if test -z "$ac_cv_prog_CC"; then
1912   ac_ct_CC=$CC
1913   # Extract the first word of "cc", so it can be a program name with args.
1914 set dummy cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$ac_ct_CC"; then
1921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_ac_ct_CC="cc"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1940 if test -n "$ac_ct_CC"; then
1941   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1942 echo "${ECHO_T}$ac_ct_CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948   CC=$ac_ct_CC
1949 else
1950   CC="$ac_cv_prog_CC"
1951 fi
1952
1953 fi
1954 if test -z "$CC"; then
1955   # Extract the first word of "cc", so it can be a program name with args.
1956 set dummy cc; ac_word=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   if test -n "$CC"; then
1963   ac_cv_prog_CC="$CC" # Let the user override the test.
1964 else
1965   ac_prog_rejected=no
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971   for ac_exec_ext in '' $ac_executable_extensions; do
1972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1974        ac_prog_rejected=yes
1975        continue
1976      fi
1977     ac_cv_prog_CC="cc"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 if test $ac_prog_rejected = yes; then
1985   # We found a bogon in the path, so make sure we never use it.
1986   set dummy $ac_cv_prog_CC
1987   shift
1988   if test $# != 0; then
1989     # We chose a different compiler from the bogus one.
1990     # However, it has the same basename, so the bogon will be chosen
1991     # first if we set CC to just the basename; use the full file name.
1992     shift
1993     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1994   fi
1995 fi
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007 fi
2008 if test -z "$CC"; then
2009   if test -n "$ac_tool_prefix"; then
2010   for ac_prog in cl
2011   do
2012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017   echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019   if test -n "$CC"; then
2020   ac_cv_prog_CC="$CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027   for ac_exec_ext in '' $ac_executable_extensions; do
2028   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031     break 2
2032   fi
2033 done
2034 done
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040   echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6
2042 else
2043   echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2045 fi
2046
2047     test -n "$CC" && break
2048   done
2049 fi
2050 if test -z "$CC"; then
2051   ac_ct_CC=$CC
2052   for ac_prog in cl
2053 do
2054   # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$ac_ct_CC"; then
2062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071     ac_cv_prog_ac_ct_CC="$ac_prog"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077
2078 fi
2079 fi
2080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081 if test -n "$ac_ct_CC"; then
2082   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083 echo "${ECHO_T}$ac_ct_CC" >&6
2084 else
2085   echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2087 fi
2088
2089   test -n "$ac_ct_CC" && break
2090 done
2091
2092   CC=$ac_ct_CC
2093 fi
2094
2095 fi
2096
2097
2098 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&5
2100 echo "$as_me: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&2;}
2102    { (exit 1); exit 1; }; }
2103
2104 # Provide some information about the compiler.
2105 echo "$as_me:$LINENO:" \
2106      "checking for C compiler version" >&5
2107 ac_compiler=`set X $ac_compile; echo $2`
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2109   (eval $ac_compiler --version </dev/null >&5) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2114   (eval $ac_compiler -v </dev/null >&5) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2119   (eval $ac_compiler -V </dev/null >&5) 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131
2132 int
2133 main ()
2134 {
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 ac_clean_files_save=$ac_clean_files
2141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2142 # Try to create an executable without -o first, disregard a.out.
2143 # It will help us diagnose broken compilers, and finding out an intuition
2144 # of exeext.
2145 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2146 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2149   (eval $ac_link_default) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; then
2153   # Find the output, starting from the most likely.  This scheme is
2154 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2155 # resort.
2156
2157 # Be careful to initialize this variable, since it used to be cached.
2158 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2159 ac_cv_exeext=
2160 # b.out is created by i960 compilers.
2161 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2162 do
2163   test -f "$ac_file" || continue
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2166         ;;
2167     conftest.$ac_ext )
2168         # This is the source file.
2169         ;;
2170     [ab].out )
2171         # We found the default executable, but exeext='' is most
2172         # certainly right.
2173         break;;
2174     *.* )
2175         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176         # FIXME: I believe we export ac_cv_exeext for Libtool,
2177         # but it would be cool to find out if it's true.  Does anybody
2178         # maintain Libtool? --akim.
2179         export ac_cv_exeext
2180         break;;
2181     * )
2182         break;;
2183   esac
2184 done
2185 else
2186   echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193    { (exit 77); exit 77; }; }
2194 fi
2195
2196 ac_exeext=$ac_cv_exeext
2197 echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6
2199
2200 # Check the compiler produces executables we can run.  If not, either
2201 # the compiler is broken, or we cross compile.
2202 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207   if { ac_try='./$ac_file'
2208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209   (eval $ac_try) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; }; then
2213     cross_compiling=no
2214   else
2215     if test "$cross_compiling" = maybe; then
2216         cross_compiling=yes
2217     else
2218         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&2;}
2224    { (exit 1); exit 1; }; }
2225     fi
2226   fi
2227 fi
2228 echo "$as_me:$LINENO: result: yes" >&5
2229 echo "${ECHO_T}yes" >&6
2230
2231 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2232 ac_clean_files=$ac_clean_files_save
2233 # Check the compiler produces executables we can run.  If not, either
2234 # the compiler is broken, or we cross compile.
2235 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2236 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2237 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2238 echo "${ECHO_T}$cross_compiling" >&6
2239
2240 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2241 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2243   (eval $ac_link) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; then
2247   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2248 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2249 # work properly (i.e., refer to `conftest.exe'), while it won't with
2250 # `rm'.
2251 for ac_file in conftest.exe conftest conftest.*; do
2252   test -f "$ac_file" || continue
2253   case $ac_file in
2254     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2255     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256           export ac_cv_exeext
2257           break;;
2258     * ) break;;
2259   esac
2260 done
2261 else
2262   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&2;}
2266    { (exit 1); exit 1; }; }
2267 fi
2268
2269 rm -f conftest$ac_cv_exeext
2270 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2271 echo "${ECHO_T}$ac_cv_exeext" >&6
2272
2273 rm -f conftest.$ac_ext
2274 EXEEXT=$ac_cv_exeext
2275 ac_exeext=$EXEEXT
2276 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2277 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2278 if test "${ac_cv_objext+set}" = set; then
2279   echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288
2289 int
2290 main ()
2291 {
2292
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }; then
2303   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2306     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2307        break;;
2308   esac
2309 done
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2322 fi
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2326 ac_objext=$OBJEXT
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2329 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339
2340 int
2341 main ()
2342 {
2343 #ifndef __GNUC__
2344        choke me
2345 #endif
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); } &&
2357          { ac_try='test -s conftest.$ac_objext'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363   ac_compiler_gnu=yes
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 ac_compiler_gnu=no
2369 fi
2370 rm -f conftest.$ac_objext conftest.$ac_ext
2371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2372
2373 fi
2374 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2376 GCC=`test $ac_compiler_gnu = yes && echo yes`
2377 ac_test_CFLAGS=${CFLAGS+set}
2378 ac_save_CFLAGS=$CFLAGS
2379 CFLAGS="-g"
2380 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2382 if test "${ac_cv_prog_cc_g+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2387 /* confdefs.h.  */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h.  */
2392
2393 int
2394 main ()
2395 {
2396
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403   (eval $ac_compile) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -s conftest.$ac_objext'
2408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409   (eval $ac_try) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; }; then
2413   ac_cv_prog_cc_g=yes
2414 else
2415   echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 ac_cv_prog_cc_g=no
2419 fi
2420 rm -f conftest.$ac_objext conftest.$ac_ext
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2423 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2424 if test "$ac_test_CFLAGS" = set; then
2425   CFLAGS=$ac_save_CFLAGS
2426 elif test $ac_cv_prog_cc_g = yes; then
2427   if test "$GCC" = yes; then
2428     CFLAGS="-g -O2"
2429   else
2430     CFLAGS="-g"
2431   fi
2432 else
2433   if test "$GCC" = yes; then
2434     CFLAGS="-O2"
2435   else
2436     CFLAGS=
2437   fi
2438 fi
2439 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2440 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2441 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   ac_cv_prog_cc_stdc=no
2445 ac_save_CC=$CC
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453 #include <stdarg.h>
2454 #include <stdio.h>
2455 #include <sys/types.h>
2456 #include <sys/stat.h>
2457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2458 struct buf { int x; };
2459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2460 static char *e (p, i)
2461      char **p;
2462      int i;
2463 {
2464   return p[i];
2465 }
2466 static char *f (char * (*g) (char **, int), char **p, ...)
2467 {
2468   char *s;
2469   va_list v;
2470   va_start (v,p);
2471   s = g (p, va_arg (v,int));
2472   va_end (v);
2473   return s;
2474 }
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 int argc;
2480 char **argv;
2481 int
2482 main ()
2483 {
2484 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 # Don't try gcc -ansi; that turns off useful extensions and
2490 # breaks some systems' header files.
2491 # AIX                   -qlanglvl=ansi
2492 # Ultrix and OSF/1      -std1
2493 # HP-UX 10.20 and later -Ae
2494 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2495 # SVR4                  -Xc -D__EXTENSIONS__
2496 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 do
2498   CC="$ac_save_CC $ac_arg"
2499   rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501   (eval $ac_compile) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); } &&
2505          { ac_try='test -s conftest.$ac_objext'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; }; then
2511   ac_cv_prog_cc_stdc=$ac_arg
2512 break
2513 else
2514   echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 fi
2518 rm -f conftest.$ac_objext
2519 done
2520 rm -f conftest.$ac_ext conftest.$ac_objext
2521 CC=$ac_save_CC
2522
2523 fi
2524
2525 case "x$ac_cv_prog_cc_stdc" in
2526   x|xno)
2527     echo "$as_me:$LINENO: result: none needed" >&5
2528 echo "${ECHO_T}none needed" >&6 ;;
2529   *)
2530     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2531 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2532     CC="$CC $ac_cv_prog_cc_stdc" ;;
2533 esac
2534
2535 # Some people use a C++ compiler to compile C.  Since we use `exit',
2536 # in C++ we need to declare it.  In case someone uses the same compiler
2537 # for both compiling C and C++ we need to have the C++ compiler decide
2538 # the declaration of exit, since it's the most demanding environment.
2539 cat >conftest.$ac_ext <<_ACEOF
2540 #ifndef __cplusplus
2541   choke me
2542 #endif
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } &&
2550          { ac_try='test -s conftest.$ac_objext'
2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552   (eval $ac_try) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; }; then
2556   for ac_declaration in \
2557    ''\
2558    '#include <stdlib.h>' \
2559    'extern "C" void std::exit (int) throw (); using std::exit;' \
2560    'extern "C" void std::exit (int); using std::exit;' \
2561    'extern "C" void exit (int) throw ();' \
2562    'extern "C" void exit (int);' \
2563    'void exit (int);'
2564 do
2565   cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572 #include <stdlib.h>
2573 $ac_declaration
2574 int
2575 main ()
2576 {
2577 exit (42);
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584   (eval $ac_compile) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   :
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 continue
2600 fi
2601 rm -f conftest.$ac_objext conftest.$ac_ext
2602   cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609 $ac_declaration
2610 int
2611 main ()
2612 {
2613 exit (42);
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -s conftest.$ac_objext'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630   break
2631 else
2632   echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 fi
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2637 done
2638 rm -f conftest*
2639 if test -n "$ac_declaration"; then
2640   echo '#ifdef __cplusplus' >>confdefs.h
2641   echo $ac_declaration      >>confdefs.h
2642   echo '#endif'             >>confdefs.h
2643 fi
2644
2645 else
2646   echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2648
2649 fi
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 DEPDIR="${am__leading_dot}deps"
2657
2658           ac_config_commands="$ac_config_commands depfiles"
2659
2660
2661 am_make=${MAKE-make}
2662 cat > confinc << 'END'
2663 am__doit:
2664         @echo done
2665 .PHONY: am__doit
2666 END
2667 # If we don't find an include directive, just comment out the code.
2668 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2669 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2670 am__include="#"
2671 am__quote=
2672 _am_result=none
2673 # First try GNU make style include.
2674 echo "include confinc" > confmf
2675 # We grep out `Entering directory' and `Leaving directory'
2676 # messages which can occur if `w' ends up in MAKEFLAGS.
2677 # In particular we don't look at `^make:' because GNU make might
2678 # be invoked under some other name (usually "gmake"), in which
2679 # case it prints its new name instead of `make'.
2680 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2681    am__include=include
2682    am__quote=
2683    _am_result=GNU
2684 fi
2685 # Now try BSD make style include.
2686 if test "$am__include" = "#"; then
2687    echo '.include "confinc"' > confmf
2688    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2689       am__include=.include
2690       am__quote="\""
2691       _am_result=BSD
2692    fi
2693 fi
2694
2695
2696 echo "$as_me:$LINENO: result: $_am_result" >&5
2697 echo "${ECHO_T}$_am_result" >&6
2698 rm -f confinc confmf
2699
2700 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2701 if test "${enable_dependency_tracking+set}" = set; then
2702   enableval="$enable_dependency_tracking"
2703
2704 fi;
2705 if test "x$enable_dependency_tracking" != xno; then
2706   am_depcomp="$ac_aux_dir/depcomp"
2707   AMDEPBACKSLASH='\'
2708 fi
2709
2710
2711 if test "x$enable_dependency_tracking" != xno; then
2712   AMDEP_TRUE=
2713   AMDEP_FALSE='#'
2714 else
2715   AMDEP_TRUE='#'
2716   AMDEP_FALSE=
2717 fi
2718
2719
2720
2721
2722 depcc="$CC"   am_compiler_list=
2723
2724 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2725 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2730   # We make a subdir and do the tests there.  Otherwise we can end up
2731   # making bogus files that we don't know about and never remove.  For
2732   # instance it was reported that on HP-UX the gcc test will end up
2733   # making a dummy file named `D' -- because `-MD' means `put the output
2734   # in D'.
2735   mkdir conftest.dir
2736   # Copy depcomp to subdir because otherwise we won't find it if we're
2737   # using a relative directory.
2738   cp "$am_depcomp" conftest.dir
2739   cd conftest.dir
2740   # We will build objects and dependencies in a subdirectory because
2741   # it helps to detect inapplicable dependency modes.  For instance
2742   # both Tru64's cc and ICC support -MD to output dependencies as a
2743   # side effect of compilation, but ICC will put the dependencies in
2744   # the current directory while Tru64 will put them in the object
2745   # directory.
2746   mkdir sub
2747
2748   am_cv_CC_dependencies_compiler_type=none
2749   if test "$am_compiler_list" = ""; then
2750      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2751   fi
2752   for depmode in $am_compiler_list; do
2753     # Setup a source with many dependencies, because some compilers
2754     # like to wrap large dependency lists on column 80 (with \), and
2755     # we should not choose a depcomp mode which is confused by this.
2756     #
2757     # We need to recreate these files for each test, as the compiler may
2758     # overwrite some of them when testing with obscure command lines.
2759     # This happens at least with the AIX C compiler.
2760     : > sub/conftest.c
2761     for i in 1 2 3 4 5 6; do
2762       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2763       : > sub/conftst$i.h
2764     done
2765     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2766
2767     case $depmode in
2768     nosideeffect)
2769       # after this tag, mechanisms are not by side-effect, so they'll
2770       # only be used when explicitly requested
2771       if test "x$enable_dependency_tracking" = xyes; then
2772         continue
2773       else
2774         break
2775       fi
2776       ;;
2777     none) break ;;
2778     esac
2779     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2780     # mode.  It turns out that the SunPro C++ compiler does not properly
2781     # handle `-M -o', and we need to detect this.
2782     if depmode=$depmode \
2783        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2784        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2785        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2786          >/dev/null 2>conftest.err &&
2787        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2788        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2789        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790       # icc doesn't choke on unknown options, it will just issue warnings
2791       # (even with -Werror).  So we grep stderr for any message
2792       # that says an option was ignored.
2793       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2794         am_cv_CC_dependencies_compiler_type=$depmode
2795         break
2796       fi
2797     fi
2798   done
2799
2800   cd ..
2801   rm -rf conftest.dir
2802 else
2803   am_cv_CC_dependencies_compiler_type=none
2804 fi
2805
2806 fi
2807 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2808 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2810
2811
2812
2813 if
2814   test "x$enable_dependency_tracking" != xno \
2815   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2816   am__fastdepCC_TRUE=
2817   am__fastdepCC_FALSE='#'
2818 else
2819   am__fastdepCC_TRUE='#'
2820   am__fastdepCC_FALSE=
2821 fi
2822
2823
2824
2825
2826         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2827 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2828 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   ac_check_lib_save_LIBS=$LIBS
2832 LIBS="-lcposix  $LIBS"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line $LINENO "configure"
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840
2841 /* Override any gcc2 internal prototype to avoid an error.  */
2842 #ifdef __cplusplus
2843 extern "C"
2844 #endif
2845 /* We use char because int might match the return type of a gcc2
2846    builtin and then its argument prototype would still apply.  */
2847 char strerror ();
2848 int
2849 main ()
2850 {
2851 strerror ();
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 rm -f conftest.$ac_objext conftest$ac_exeext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2858   (eval $ac_link) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862          { ac_try='test -s conftest$ac_exeext'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868   ac_cv_lib_cposix_strerror=yes
2869 else
2870   echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 ac_cv_lib_cposix_strerror=no
2874 fi
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS=$ac_check_lib_save_LIBS
2877 fi
2878 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2879 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2880 if test $ac_cv_lib_cposix_strerror = yes; then
2881   LIBS="$LIBS -lcposix"
2882 fi
2883
2884
2885
2886
2887
2888
2889 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2890 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2891 if test "${am_cv_prog_cc_stdc+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   am_cv_prog_cc_stdc=no
2895 ac_save_CC="$CC"
2896 # Don't try gcc -ansi; that turns off useful extensions and
2897 # breaks some systems' header files.
2898 # AIX                   -qlanglvl=ansi
2899 # Ultrix and OSF/1      -std1
2900 # HP-UX 10.20 and later -Ae
2901 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2902 # SVR4                  -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2904 do
2905   CC="$ac_save_CC $ac_arg"
2906   cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 #include <stdarg.h>
2914 #include <stdio.h>
2915 #include <sys/types.h>
2916 #include <sys/stat.h>
2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2918 struct buf { int x; };
2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2920 static char *e (p, i)
2921      char **p;
2922      int i;
2923 {
2924   return p[i];
2925 }
2926 static char *f (char * (*g) (char **, int), char **p, ...)
2927 {
2928   char *s;
2929   va_list v;
2930   va_start (v,p);
2931   s = g (p, va_arg (v,int));
2932   va_end (v);
2933   return s;
2934 }
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939 int argc;
2940 char **argv;
2941
2942 int
2943 main ()
2944 {
2945
2946 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954   (eval $ac_compile) 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } &&
2958          { ac_try='test -s conftest.$ac_objext'
2959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960   (eval $ac_try) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; }; then
2964   am_cv_prog_cc_stdc="$ac_arg"; break
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 fi
2970 rm -f conftest.$ac_objext conftest.$ac_ext
2971 done
2972 CC="$ac_save_CC"
2973
2974 fi
2975
2976 if test -z "$am_cv_prog_cc_stdc"; then
2977   echo "$as_me:$LINENO: result: none needed" >&5
2978 echo "${ECHO_T}none needed" >&6
2979 else
2980   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2981 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2982 fi
2983 case "x$am_cv_prog_cc_stdc" in
2984   x|xno) ;;
2985   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2986 esac
2987
2988 ac_ext=c
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2997   CPP=
2998 fi
2999 if test -z "$CPP"; then
3000   if test "${ac_cv_prog_CPP+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003       # Double quotes because CPP needs to be expanded
3004     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3005     do
3006       ac_preproc_ok=false
3007 for ac_c_preproc_warn_flag in '' yes
3008 do
3009   # Use a header file that comes with gcc, so configuring glibc
3010   # with a fresh cross-compiler works.
3011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012   # <limits.h> exists even on freestanding compilers.
3013   # On the NeXT, cc -E runs the code through the compiler's parser,
3014   # not just through cpp. "Syntax error" is here to catch this case.
3015   cat >conftest.$ac_ext <<_ACEOF
3016 #line $LINENO "configure"
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022 #ifdef __STDC__
3023 # include <limits.h>
3024 #else
3025 # include <assert.h>
3026 #endif
3027                      Syntax error
3028 _ACEOF
3029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } >/dev/null; then
3037   if test -s conftest.err; then
3038     ac_cpp_err=$ac_c_preproc_warn_flag
3039   else
3040     ac_cpp_err=
3041   fi
3042 else
3043   ac_cpp_err=yes
3044 fi
3045 if test -z "$ac_cpp_err"; then
3046   :
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051   # Broken: fails on valid input.
3052 continue
3053 fi
3054 rm -f conftest.err conftest.$ac_ext
3055
3056   # OK, works on sane cases.  Now check whether non-existent headers
3057   # can be detected and how.
3058   cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #include <ac_nonexistent.h>
3066 _ACEOF
3067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } >/dev/null; then
3075   if test -s conftest.err; then
3076     ac_cpp_err=$ac_c_preproc_warn_flag
3077   else
3078     ac_cpp_err=
3079   fi
3080 else
3081   ac_cpp_err=yes
3082 fi
3083 if test -z "$ac_cpp_err"; then
3084   # Broken: success on invalid input.
3085 continue
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090   # Passes both tests.
3091 ac_preproc_ok=:
3092 break
3093 fi
3094 rm -f conftest.err conftest.$ac_ext
3095
3096 done
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then
3100   break
3101 fi
3102
3103     done
3104     ac_cv_prog_CPP=$CPP
3105
3106 fi
3107   CPP=$ac_cv_prog_CPP
3108 else
3109   ac_cv_prog_CPP=$CPP
3110 fi
3111 echo "$as_me:$LINENO: result: $CPP" >&5
3112 echo "${ECHO_T}$CPP" >&6
3113 ac_preproc_ok=false
3114 for ac_c_preproc_warn_flag in '' yes
3115 do
3116   # Use a header file that comes with gcc, so configuring glibc
3117   # with a fresh cross-compiler works.
3118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119   # <limits.h> exists even on freestanding compilers.
3120   # On the NeXT, cc -E runs the code through the compiler's parser,
3121   # not just through cpp. "Syntax error" is here to catch this case.
3122   cat >conftest.$ac_ext <<_ACEOF
3123 #line $LINENO "configure"
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129 #ifdef __STDC__
3130 # include <limits.h>
3131 #else
3132 # include <assert.h>
3133 #endif
3134                      Syntax error
3135 _ACEOF
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } >/dev/null; then
3144   if test -s conftest.err; then
3145     ac_cpp_err=$ac_c_preproc_warn_flag
3146   else
3147     ac_cpp_err=
3148   fi
3149 else
3150   ac_cpp_err=yes
3151 fi
3152 if test -z "$ac_cpp_err"; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158   # Broken: fails on valid input.
3159 continue
3160 fi
3161 rm -f conftest.err conftest.$ac_ext
3162
3163   # OK, works on sane cases.  Now check whether non-existent headers
3164   # can be detected and how.
3165   cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <ac_nonexistent.h>
3173 _ACEOF
3174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176   ac_status=$?
3177   grep -v '^ *+' conftest.er1 >conftest.err
3178   rm -f conftest.er1
3179   cat conftest.err >&5
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); } >/dev/null; then
3182   if test -s conftest.err; then
3183     ac_cpp_err=$ac_c_preproc_warn_flag
3184   else
3185     ac_cpp_err=
3186   fi
3187 else
3188   ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191   # Broken: success on invalid input.
3192 continue
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197   # Passes both tests.
3198 ac_preproc_ok=:
3199 break
3200 fi
3201 rm -f conftest.err conftest.$ac_ext
3202
3203 done
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then
3207   :
3208 else
3209   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3212 See \`config.log' for more details." >&2;}
3213    { (exit 1); exit 1; }; }
3214 fi
3215
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222
3223 echo "$as_me:$LINENO: checking for egrep" >&5
3224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225 if test "${ac_cv_prog_egrep+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229     then ac_cv_prog_egrep='grep -E'
3230     else ac_cv_prog_egrep='egrep'
3231     fi
3232 fi
3233 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235  EGREP=$ac_cv_prog_egrep
3236
3237
3238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3249                   inttypes.h stdint.h unistd.h
3250 do
3251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3252 echo "$as_me:$LINENO: checking for $ac_header" >&5
3253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   cat >conftest.$ac_ext <<_ACEOF
3258 #line $LINENO "configure"
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 $ac_includes_default
3265
3266 #include <$ac_header>
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270   (eval $ac_compile) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } &&
3274          { ac_try='test -s conftest.$ac_objext'
3275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276   (eval $ac_try) 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }; }; then
3280   eval "$as_ac_Header=yes"
3281 else
3282   echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 eval "$as_ac_Header=no"
3286 fi
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3288 fi
3289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3292   cat >>confdefs.h <<_ACEOF
3293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3294 _ACEOF
3295
3296 fi
3297
3298 done
3299
3300
3301
3302
3303 echo "$as_me:$LINENO: checking for function prototypes" >&5
3304 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3305 if test "$am_cv_prog_cc_stdc" != no; then
3306   echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3308
3309 cat >>confdefs.h <<\_ACEOF
3310 #define PROTOTYPES 1
3311 _ACEOF
3312
3313   U= ANSI2KNR=
3314 else
3315   echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317   U=_ ANSI2KNR=./ansi2knr
3318 fi
3319 # Ensure some checks needed by ansi2knr itself.
3320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3322 if test "${ac_cv_header_stdc+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3327 /* confdefs.h.  */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h.  */
3332 #include <stdlib.h>
3333 #include <stdarg.h>
3334 #include <string.h>
3335 #include <float.h>
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347   (eval $ac_compile) 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } &&
3351          { ac_try='test -s conftest.$ac_objext'
3352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353   (eval $ac_try) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; }; then
3357   ac_cv_header_stdc=yes
3358 else
3359   echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 ac_cv_header_stdc=no
3363 fi
3364 rm -f conftest.$ac_objext conftest.$ac_ext
3365
3366 if test $ac_cv_header_stdc = yes; then
3367   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3368   cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #include <string.h>
3376
3377 _ACEOF
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379   $EGREP "memchr" >/dev/null 2>&1; then
3380   :
3381 else
3382   ac_cv_header_stdc=no
3383 fi
3384 rm -f conftest*
3385
3386 fi
3387
3388 if test $ac_cv_header_stdc = yes; then
3389   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3390   cat >conftest.$ac_ext <<_ACEOF
3391 #line $LINENO "configure"
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397 #include <stdlib.h>
3398
3399 _ACEOF
3400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401   $EGREP "free" >/dev/null 2>&1; then
3402   :
3403 else
3404   ac_cv_header_stdc=no
3405 fi
3406 rm -f conftest*
3407
3408 fi
3409
3410 if test $ac_cv_header_stdc = yes; then
3411   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3412   if test "$cross_compiling" = yes; then
3413   :
3414 else
3415   cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422 #include <ctype.h>
3423 #if ((' ' & 0x0FF) == 0x020)
3424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3426 #else
3427 # define ISLOWER(c) \
3428                    (('a' <= (c) && (c) <= 'i') \
3429                      || ('j' <= (c) && (c) <= 'r') \
3430                      || ('s' <= (c) && (c) <= 'z'))
3431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3432 #endif
3433
3434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3435 int
3436 main ()
3437 {
3438   int i;
3439   for (i = 0; i < 256; i++)
3440     if (XOR (islower (i), ISLOWER (i))
3441         || toupper (i) != TOUPPER (i))
3442       exit(2);
3443   exit (0);
3444 }
3445 _ACEOF
3446 rm -f conftest$ac_exeext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448   (eval $ac_link) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   :
3458 else
3459   echo "$as_me: program exited with status $ac_status" >&5
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 ( exit $ac_status )
3464 ac_cv_header_stdc=no
3465 fi
3466 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3467 fi
3468 fi
3469 fi
3470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3472 if test $ac_cv_header_stdc = yes; then
3473
3474 cat >>confdefs.h <<\_ACEOF
3475 #define STDC_HEADERS 1
3476 _ACEOF
3477
3478 fi
3479
3480
3481 for ac_header in string.h
3482 do
3483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485   echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 fi
3490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3492 else
3493   # Is the header compilable?
3494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3496 cat >conftest.$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 $ac_includes_default
3504 #include <$ac_header>
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508   (eval $ac_compile) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } &&
3512          { ac_try='test -s conftest.$ac_objext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   ac_header_compiler=yes
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 ac_header_compiler=no
3524 fi
3525 rm -f conftest.$ac_objext conftest.$ac_ext
3526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3527 echo "${ECHO_T}$ac_header_compiler" >&6
3528
3529 # Is the header present?
3530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539 #include <$ac_header>
3540 _ACEOF
3541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } >/dev/null; then
3549   if test -s conftest.err; then
3550     ac_cpp_err=$ac_c_preproc_warn_flag
3551   else
3552     ac_cpp_err=
3553   fi
3554 else
3555   ac_cpp_err=yes
3556 fi
3557 if test -z "$ac_cpp_err"; then
3558   ac_header_preproc=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563   ac_header_preproc=no
3564 fi
3565 rm -f conftest.err conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3567 echo "${ECHO_T}$ac_header_preproc" >&6
3568
3569 # So?  What about this header?
3570 case $ac_header_compiler:$ac_header_preproc in
3571   yes:no )
3572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3576     (
3577       cat <<\_ASBOX
3578 ## ------------------------------------ ##
3579 ## Report this to bug-autoconf@gnu.org. ##
3580 ## ------------------------------------ ##
3581 _ASBOX
3582     ) |
3583       sed "s/^/$as_me: WARNING:     /" >&2
3584     ;;
3585   no:yes )
3586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3588     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3592     (
3593       cat <<\_ASBOX
3594 ## ------------------------------------ ##
3595 ## Report this to bug-autoconf@gnu.org. ##
3596 ## ------------------------------------ ##
3597 _ASBOX
3598     ) |
3599       sed "s/^/$as_me: WARNING:     /" >&2
3600     ;;
3601 esac
3602 echo "$as_me:$LINENO: checking for $ac_header" >&5
3603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3605   echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607   eval "$as_ac_Header=$ac_header_preproc"
3608 fi
3609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3611
3612 fi
3613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3614   cat >>confdefs.h <<_ACEOF
3615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3616 _ACEOF
3617
3618 fi
3619
3620 done
3621
3622
3623 if test "x$U" != "x"; then
3624   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3625 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3626    { (exit 1); exit 1; }; }
3627 fi
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3634 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3635 # On Suns, sometimes $CPP names a directory.
3636 if test -n "$CPP" && test -d "$CPP"; then
3637   CPP=
3638 fi
3639 if test -z "$CPP"; then
3640   if test "${ac_cv_prog_CPP+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643       # Double quotes because CPP needs to be expanded
3644     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3645     do
3646       ac_preproc_ok=false
3647 for ac_c_preproc_warn_flag in '' yes
3648 do
3649   # Use a header file that comes with gcc, so configuring glibc
3650   # with a fresh cross-compiler works.
3651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652   # <limits.h> exists even on freestanding compilers.
3653   # On the NeXT, cc -E runs the code through the compiler's parser,
3654   # not just through cpp. "Syntax error" is here to catch this case.
3655   cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #ifdef __STDC__
3663 # include <limits.h>
3664 #else
3665 # include <assert.h>
3666 #endif
3667                      Syntax error
3668 _ACEOF
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } >/dev/null; then
3677   if test -s conftest.err; then
3678     ac_cpp_err=$ac_c_preproc_warn_flag
3679   else
3680     ac_cpp_err=
3681   fi
3682 else
3683   ac_cpp_err=yes
3684 fi
3685 if test -z "$ac_cpp_err"; then
3686   :
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691   # Broken: fails on valid input.
3692 continue
3693 fi
3694 rm -f conftest.err conftest.$ac_ext
3695
3696   # OK, works on sane cases.  Now check whether non-existent headers
3697   # can be detected and how.
3698   cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 #include <ac_nonexistent.h>
3706 _ACEOF
3707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3708   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } >/dev/null; then
3715   if test -s conftest.err; then
3716     ac_cpp_err=$ac_c_preproc_warn_flag
3717   else
3718     ac_cpp_err=
3719   fi
3720 else
3721   ac_cpp_err=yes
3722 fi
3723 if test -z "$ac_cpp_err"; then
3724   # Broken: success on invalid input.
3725 continue
3726 else
3727   echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730   # Passes both tests.
3731 ac_preproc_ok=:
3732 break
3733 fi
3734 rm -f conftest.err conftest.$ac_ext
3735
3736 done
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3740   break
3741 fi
3742
3743     done
3744     ac_cv_prog_CPP=$CPP
3745
3746 fi
3747   CPP=$ac_cv_prog_CPP
3748 else
3749   ac_cv_prog_CPP=$CPP
3750 fi
3751 echo "$as_me:$LINENO: result: $CPP" >&5
3752 echo "${ECHO_T}$CPP" >&6
3753 ac_preproc_ok=false
3754 for ac_c_preproc_warn_flag in '' yes
3755 do
3756   # Use a header file that comes with gcc, so configuring glibc
3757   # with a fresh cross-compiler works.
3758   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759   # <limits.h> exists even on freestanding compilers.
3760   # On the NeXT, cc -E runs the code through the compiler's parser,
3761   # not just through cpp. "Syntax error" is here to catch this case.
3762   cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 /* confdefs.h.  */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h.  */
3769 #ifdef __STDC__
3770 # include <limits.h>
3771 #else
3772 # include <assert.h>
3773 #endif
3774                      Syntax error
3775 _ACEOF
3776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3778   ac_status=$?
3779   grep -v '^ *+' conftest.er1 >conftest.err
3780   rm -f conftest.er1
3781   cat conftest.err >&5
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } >/dev/null; then
3784   if test -s conftest.err; then
3785     ac_cpp_err=$ac_c_preproc_warn_flag
3786   else
3787     ac_cpp_err=
3788   fi
3789 else
3790   ac_cpp_err=yes
3791 fi
3792 if test -z "$ac_cpp_err"; then
3793   :
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798   # Broken: fails on valid input.
3799 continue
3800 fi
3801 rm -f conftest.err conftest.$ac_ext
3802
3803   # OK, works on sane cases.  Now check whether non-existent headers
3804   # can be detected and how.
3805   cat >conftest.$ac_ext <<_ACEOF
3806 #line $LINENO "configure"
3807 /* confdefs.h.  */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h.  */
3812 #include <ac_nonexistent.h>
3813 _ACEOF
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } >/dev/null; then
3822   if test -s conftest.err; then
3823     ac_cpp_err=$ac_c_preproc_warn_flag
3824   else
3825     ac_cpp_err=
3826   fi
3827 else
3828   ac_cpp_err=yes
3829 fi
3830 if test -z "$ac_cpp_err"; then
3831   # Broken: success on invalid input.
3832 continue
3833 else
3834   echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837   # Passes both tests.
3838 ac_preproc_ok=:
3839 break
3840 fi
3841 rm -f conftest.err conftest.$ac_ext
3842
3843 done
3844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3845 rm -f conftest.err conftest.$ac_ext
3846 if $ac_preproc_ok; then
3847   :
3848 else
3849   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3850 See \`config.log' for more details." >&5
3851 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3852 See \`config.log' for more details." >&2;}
3853    { (exit 1); exit 1; }; }
3854 fi
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3863 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3864 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3865 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   cat >conftest.make <<\_ACEOF
3869 all:
3870         @echo 'ac_maketemp="$(MAKE)"'
3871 _ACEOF
3872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3873 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3874 if test -n "$ac_maketemp"; then
3875   eval ac_cv_prog_make_${ac_make}_set=yes
3876 else
3877   eval ac_cv_prog_make_${ac_make}_set=no
3878 fi
3879 rm -f conftest.make
3880 fi
3881 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3882   echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6
3884   SET_MAKE=
3885 else
3886   echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3888   SET_MAKE="MAKE=${MAKE-make}"
3889 fi
3890
3891 # Find a good install program.  We prefer a C program (faster),
3892 # so one script is as good as another.  But avoid the broken or
3893 # incompatible versions:
3894 # SysV /etc/install, /usr/sbin/install
3895 # SunOS /usr/etc/install
3896 # IRIX /sbin/install
3897 # AIX /bin/install
3898 # AmigaOS /C/install, which installs bootblocks on floppy discs
3899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914   # Account for people who put trailing slashes in PATH elements.
3915 case $as_dir/ in
3916   ./ | .// | /cC/* | \
3917   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918   /usr/ucb/* ) ;;
3919   *)
3920     # OSF1 and SCO ODT 3.0 have their own names for install.
3921     # Don't use installbsd from OSF since it installs stuff as root
3922     # by default.
3923     for ac_prog in ginstall scoinst install; do
3924       for ac_exec_ext in '' $ac_executable_extensions; do
3925         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926           if test $ac_prog = install &&
3927             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928             # AIX install.  It has an incompatible calling convention.
3929             :
3930           elif test $ac_prog = install &&
3931             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932             # program-specific install script used by HP pwplus--don't use.
3933             :
3934           else
3935             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936             break 3
3937           fi
3938         fi
3939       done
3940     done
3941     ;;
3942 esac
3943 done
3944
3945
3946 fi
3947   if test "${ac_cv_path_install+set}" = set; then
3948     INSTALL=$ac_cv_path_install
3949   else
3950     # As a last resort, use the slow shell script.  We don't cache a
3951     # path for INSTALL within a source directory, because that will
3952     # break other packages using the cache if that directory is
3953     # removed, or if the path is relative.
3954     INSTALL=$ac_install_sh
3955   fi
3956 fi
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3959
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3963
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3965
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967
3968 if test -n "$ac_tool_prefix"; then
3969   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_RANLIB+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   if test -n "$RANLIB"; then
3977   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991 done
3992
3993 fi
3994 fi
3995 RANLIB=$ac_cv_prog_RANLIB
3996 if test -n "$RANLIB"; then
3997   echo "$as_me:$LINENO: result: $RANLIB" >&5
3998 echo "${ECHO_T}$RANLIB" >&6
3999 else
4000   echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4002 fi
4003
4004 fi
4005 if test -z "$ac_cv_prog_RANLIB"; then
4006   ac_ct_RANLIB=$RANLIB
4007   # Extract the first word of "ranlib", so it can be a program name with args.
4008 set dummy ranlib; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -n "$ac_ct_RANLIB"; then
4015   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_ac_ct_RANLIB="ranlib"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4032 fi
4033 fi
4034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4035 if test -n "$ac_ct_RANLIB"; then
4036   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4038 else
4039   echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 fi
4042
4043   RANLIB=$ac_ct_RANLIB
4044 else
4045   RANLIB="$ac_cv_prog_RANLIB"
4046 fi
4047
4048 if test -n "$ac_tool_prefix"; then
4049   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4050 set dummy ${ac_tool_prefix}ar; ac_word=$2
4051 echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4053 if test "${ac_cv_prog_AR+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   if test -n "$AR"; then
4057   ac_cv_prog_AR="$AR" # Let the user override the test.
4058 else
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062   IFS=$as_save_IFS
4063   test -z "$as_dir" && as_dir=.
4064   for ac_exec_ext in '' $ac_executable_extensions; do
4065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066     ac_cv_prog_AR="${ac_tool_prefix}ar"
4067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4068     break 2
4069   fi
4070 done
4071 done
4072
4073 fi
4074 fi
4075 AR=$ac_cv_prog_AR
4076 if test -n "$AR"; then
4077   echo "$as_me:$LINENO: result: $AR" >&5
4078 echo "${ECHO_T}$AR" >&6
4079 else
4080   echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4082 fi
4083
4084 fi
4085 if test -z "$ac_cv_prog_AR"; then
4086   ac_ct_AR=$AR
4087   # Extract the first word of "ar", so it can be a program name with args.
4088 set dummy ar; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   if test -n "$ac_ct_AR"; then
4095   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102   for ac_exec_ext in '' $ac_executable_extensions; do
4103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104     ac_cv_prog_ac_ct_AR="ar"
4105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109 done
4110
4111   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4112 fi
4113 fi
4114 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4115 if test -n "$ac_ct_AR"; then
4116   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4117 echo "${ECHO_T}$ac_ct_AR" >&6
4118 else
4119   echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4121 fi
4122
4123   AR=$ac_ct_AR
4124 else
4125   AR="$ac_cv_prog_AR"
4126 fi
4127
4128
4129 echo "$as_me:$LINENO: checking for inline" >&5
4130 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4131 if test "${ac_cv_c_inline+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   ac_cv_c_inline=no
4135 for ac_kw in inline __inline__ __inline; do
4136   cat >conftest.$ac_ext <<_ACEOF
4137 #line $LINENO "configure"
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #ifndef __cplusplus
4144 typedef int foo_t;
4145 static $ac_kw foo_t static_foo () {return 0; }
4146 $ac_kw foo_t foo () {return 0; }
4147 #endif
4148
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152   (eval $ac_compile) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } &&
4156          { ac_try='test -s conftest.$ac_objext'
4157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158   (eval $ac_try) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; }; then
4162   ac_cv_c_inline=$ac_kw; break
4163 else
4164   echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4166
4167 fi
4168 rm -f conftest.$ac_objext conftest.$ac_ext
4169 done
4170
4171 fi
4172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4173 echo "${ECHO_T}$ac_cv_c_inline" >&6
4174 case $ac_cv_c_inline in
4175   inline | yes) ;;
4176   no)
4177 cat >>confdefs.h <<\_ACEOF
4178 #define inline
4179 _ACEOF
4180  ;;
4181   *)  cat >>confdefs.h <<_ACEOF
4182 #define inline $ac_cv_c_inline
4183 _ACEOF
4184  ;;
4185 esac
4186
4187 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4188 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4189 if test "${ac_cv_c_const+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199
4200 int
4201 main ()
4202 {
4203 /* FIXME: Include the comments suggested by Paul. */
4204 #ifndef __cplusplus
4205   /* Ultrix mips cc rejects this.  */
4206   typedef int charset[2];
4207   const charset x;
4208   /* SunOS 4.1.1 cc rejects this.  */
4209   char const *const *ccp;
4210   char **p;
4211   /* NEC SVR4.0.2 mips cc rejects this.  */
4212   struct point {int x, y;};
4213   static struct point const zero = {0,0};
4214   /* AIX XL C 1.02.0.0 rejects this.
4215      It does not let you subtract one const X* pointer from another in
4216      an arm of an if-expression whose if-part is not a constant
4217      expression */
4218   const char *g = "string";
4219   ccp = &g + (g ? g-g : 0);
4220   /* HPUX 7.0 cc rejects these. */
4221   ++ccp;
4222   p = (char**) ccp;
4223   ccp = (char const *const *) p;
4224   { /* SCO 3.2v4 cc rejects this.  */
4225     char *t;
4226     char const *s = 0 ? (char *) 0 : (char const *) 0;
4227
4228     *t++ = 0;
4229   }
4230   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4231     int x[] = {25, 17};
4232     const int *foo = &x[0];
4233     ++foo;
4234   }
4235   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4236     typedef const int *iptr;
4237     iptr p = 0;
4238     ++p;
4239   }
4240   { /* AIX XL C 1.02.0.0 rejects this saying
4241        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4242     struct s { int j; const int *ap[3]; };
4243     struct s *b; b->j = 5;
4244   }
4245   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4246     const int foo = 10;
4247   }
4248 #endif
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256   (eval $ac_compile) 2>&5
4257   ac_status=$?
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); } &&
4260          { ac_try='test -s conftest.$ac_objext'
4261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262   (eval $ac_try) 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; }; then
4266   ac_cv_c_const=yes
4267 else
4268   echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4270
4271 ac_cv_c_const=no
4272 fi
4273 rm -f conftest.$ac_objext conftest.$ac_ext
4274 fi
4275 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4276 echo "${ECHO_T}$ac_cv_c_const" >&6
4277 if test $ac_cv_c_const = no; then
4278
4279 cat >>confdefs.h <<\_ACEOF
4280 #define const
4281 _ACEOF
4282
4283 fi
4284
4285
4286 # Extract the first word of "dbx", so it can be a program name with args.
4287 set dummy dbx; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_DBX+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   case $DBX in
4294   [\\/]* | ?:[\\/]*)
4295   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4296   ;;
4297   *)
4298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310 done
4311
4312   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4313   ;;
4314 esac
4315 fi
4316 DBX=$ac_cv_path_DBX
4317
4318 if test -n "$DBX"; then
4319   echo "$as_me:$LINENO: result: $DBX" >&5
4320 echo "${ECHO_T}$DBX" >&6
4321 else
4322   echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4324 fi
4325
4326 # Extract the first word of "gdb", so it can be a program name with args.
4327 set dummy gdb; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_GDB+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   case $GDB in
4334   [\\/]* | ?:[\\/]*)
4335   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4336   ;;
4337   *)
4338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343   for ac_exec_ext in '' $ac_executable_extensions; do
4344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350 done
4351
4352   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4353   ;;
4354 esac
4355 fi
4356 GDB=$ac_cv_path_GDB
4357
4358 if test -n "$GDB"; then
4359   echo "$as_me:$LINENO: result: $GDB" >&5
4360 echo "${ECHO_T}$GDB" >&6
4361 else
4362   echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364 fi
4365
4366 # Extract the first word of "sdb", so it can be a program name with args.
4367 set dummy sdb; ac_word=$2
4368 echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4370 if test "${ac_cv_path_SDB+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   case $SDB in
4374   [\\/]* | ?:[\\/]*)
4375   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4376   ;;
4377   *)
4378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391
4392   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4393   ;;
4394 esac
4395 fi
4396 SDB=$ac_cv_path_SDB
4397
4398 if test -n "$SDB"; then
4399   echo "$as_me:$LINENO: result: $SDB" >&5
4400 echo "${ECHO_T}$SDB" >&6
4401 else
4402   echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 if test $GDB != no ; then
4408         DEBUGGER=$GDB
4409 elif test $DBX != no ; then
4410         DEBUGGER=$DBX
4411 elif test $SDB != no ; then
4412         DEBUGGER=$SDB
4413 else
4414         DEBUGGER=no
4415 fi
4416
4417
4418
4419 # The following templates should be used with newer automakes
4420 # instead of acconfig.h
4421 #
4422 #AH_TEMPLATE([sig_atomic_t],
4423 #            [/* Define to `int' if <signal.h> doesn't define.])
4424 #AH_TEMPLATE([HAVE_START_COLOR],
4425 #            [Define if you have start_color, as a function or macro.])
4426 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4427 #            [Define if you have typeahead, as a function or macro.])
4428 #AH_TEMPLATE([HAVE_BKGDSET],
4429 #            [Define if you have bkgdset, as a function or macro.])
4430 #AH_TEMPLATE([HAVE_CURS_SET],
4431 #            [Define if you have curs_set, as a function or macro.])
4432 #AH_TEMPLATE([HAVE_META],
4433 #            [Define if you have meta, as a function or macro.])
4434 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4435 #            [Define if you have use_default_colors, as a function or macro.])
4436 #AH_TEMPLATE([HAVE_RESIZETERM],
4437 #            [Define if you have resizeterm, as a function or macro.])
4438 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4439 #            [Some systems declare sig_atomic_t as volatile, some others -- no.
4440 #             This define will have value `sig_atomic_t' or
4441 #             `volatile sig_atomic_t' accordingly.])
4442 #AH_TEMPLATE([ICONV_NONTRANS],
4443 #            [Define as 1 if iconv() only converts exactly and we should treat
4444 #             all return values other than (size_t)(-1) as equivalent.])
4445
4446
4447 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4448 # Extract the first word of "sendmail", so it can be a program name with args.
4449 set dummy sendmail; ac_word=$2
4450 echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   case $SENDMAIL in
4456   [\\/]* | ?:[\\/]*)
4457   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4458   ;;
4459   *)
4460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 as_dummy="$PATH:$ac_aux_path_sendmail"
4462 for as_dir in $as_dummy
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466   for ac_exec_ext in '' $ac_executable_extensions; do
4467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473 done
4474
4475   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4476   ;;
4477 esac
4478 fi
4479 SENDMAIL=$ac_cv_path_SENDMAIL
4480
4481 if test -n "$SENDMAIL"; then
4482   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4483 echo "${ECHO_T}$SENDMAIL" >&6
4484 else
4485   echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6
4487 fi
4488
4489
4490 cat >>confdefs.h <<_ACEOF
4491 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4492 _ACEOF
4493
4494
4495 OPS='$(srcdir)/OPS'
4496 if test -f $srcdir/EXPORTABLE ; then
4497         SUBVERSION="us"
4498 else
4499         SUBVERSION="i"
4500
4501         # Check whether --enable-pgp or --disable-pgp was given.
4502 if test "${enable_pgp+set}" = set; then
4503   enableval="$enable_pgp"
4504          if test x$enableval = xno ; then
4505                         have_pgp=no
4506                 fi
4507
4508 fi;
4509
4510         if test x$have_pgp != xno ; then
4511
4512 cat >>confdefs.h <<\_ACEOF
4513 #define CRYPT_BACKEND_CLASSIC_PGP 1
4514 _ACEOF
4515
4516                 PGPAUX_TARGET="pgpring pgpewrap"
4517                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4518         fi
4519
4520         # Check whether --enable-smime or --disable-smime was given.
4521 if test "${enable_smime+set}" = set; then
4522   enableval="$enable_smime"
4523         if test x$enableval = xno ; then
4524                         have_smime=no
4525                 fi
4526
4527 fi;
4528
4529         if test x$have_smime != xno ; then
4530
4531 cat >>confdefs.h <<\_ACEOF
4532 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4533 _ACEOF
4534
4535                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4536                 SMIMEAUX_TARGET="smime_keys"
4537         fi
4538
4539
4540 # Check whether --with-mixmaster or --without-mixmaster was given.
4541 if test "${with_mixmaster+set}" = set; then
4542   withval="$with_mixmaster"
4543   if test -x "$withval" ; then
4544                         MIXMASTER="$withval"
4545                  else
4546                         MIXMASTER="mixmaster"
4547                  fi
4548                  OPS="$OPS \$(srcdir)/OPS.MIX"
4549                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4550
4551 cat >>confdefs.h <<_ACEOF
4552 #define MIXMASTER "$MIXMASTER"
4553 _ACEOF
4554
4555
4556 fi;
4557
4558 fi
4559 # We now require all OPS
4560 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4561
4562
4563
4564
4565
4566
4567
4568 cat >>confdefs.h <<_ACEOF
4569 #define SUBVERSION "$SUBVERSION"
4570 _ACEOF
4571
4572
4573
4574 # Extract the first word of "ispell", so it can be a program name with args.
4575 set dummy ispell; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_path_ISPELL+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   case $ISPELL in
4582   [\\/]* | ?:[\\/]*)
4583   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4584   ;;
4585   *)
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599
4600   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4601   ;;
4602 esac
4603 fi
4604 ISPELL=$ac_cv_path_ISPELL
4605
4606 if test -n "$ISPELL"; then
4607   echo "$as_me:$LINENO: result: $ISPELL" >&5
4608 echo "${ECHO_T}$ISPELL" >&6
4609 else
4610   echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4612 fi
4613
4614 if test $ISPELL != no; then
4615
4616 cat >>confdefs.h <<_ACEOF
4617 #define ISPELL "$ISPELL"
4618 _ACEOF
4619
4620 fi
4621
4622
4623 # Check whether --with-slang or --without-slang was given.
4624 if test "${with_slang+set}" = set; then
4625   withval="$with_slang"
4626   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4627 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4628 if test "${mutt_cv_bsdish+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   if test "$cross_compiling" = yes; then
4632   mutt_cv_bsdish=no
4633 else
4634   cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #include <sys/param.h>
4642
4643 main ()
4644 {
4645 #ifdef BSD
4646         exit (0);
4647 #else
4648         exit (1);
4649 #endif
4650 }
4651 _ACEOF
4652 rm -f conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654   (eval $ac_link) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659   (eval $ac_try) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }; }; then
4663   mutt_cv_bsdish=yes
4664 else
4665   echo "$as_me: program exited with status $ac_status" >&5
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 ( exit $ac_status )
4670 mutt_cv_bsdish=no
4671 fi
4672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4673 fi
4674 fi
4675 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4676 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4677
4678         echo "$as_me:$LINENO: checking for S-Lang" >&5
4679 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4680         if test $withval = yes; then
4681                 if test -d $srcdir/../slang; then
4682                         mutt_cv_slang=$srcdir/../slang/src
4683                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4684                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4685                 else
4686                         if test -d $mutt_cv_prefix/include/slang; then
4687                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4688                         elif test -d /usr/include/slang; then
4689                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4690                         fi
4691                         mutt_cv_slang=yes
4692                 fi
4693         else
4694                                 if test -f $withval/src/slang.h; then
4695                         mutt_cv_slang=$withval/src
4696                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4697                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4698                 else
4699                                                 mutt_cv_slang=$withval
4700                         if test -d $withval/include/slang; then
4701                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4702                         elif test -d $withval/include; then
4703                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4704                         fi
4705                         LDFLAGS="$LDFLAGS -L${withval}/lib"
4706                 fi
4707         fi
4708         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4709 echo "${ECHO_T}$mutt_cv_slang" >&6
4710         if test $mutt_cv_bsdish = yes; then
4711
4712 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4713 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4714 if test "${ac_cv_lib_termlib_main+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   ac_check_lib_save_LIBS=$LIBS
4718 LIBS="-ltermlib  $LIBS"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726
4727
4728 int
4729 main ()
4730 {
4731 main ();
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4738   (eval $ac_link) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -s conftest$ac_exeext'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; }; then
4748   ac_cv_lib_termlib_main=yes
4749 else
4750   echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 ac_cv_lib_termlib_main=no
4754 fi
4755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4756 LIBS=$ac_check_lib_save_LIBS
4757 fi
4758 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4759 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4760 if test $ac_cv_lib_termlib_main = yes; then
4761   cat >>confdefs.h <<_ACEOF
4762 #define HAVE_LIBTERMLIB 1
4763 _ACEOF
4764
4765   LIBS="-ltermlib $LIBS"
4766
4767 fi
4768
4769         fi
4770
4771 cat >>confdefs.h <<\_ACEOF
4772 #define USE_SLANG_CURSES 1
4773 _ACEOF
4774
4775
4776 cat >>confdefs.h <<\_ACEOF
4777 #define HAVE_COLOR 1
4778 _ACEOF
4779
4780         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4781
4782
4783         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4784 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4785 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   ac_check_lib_save_LIBS=$LIBS
4789 LIBS="-lslang -lm $LIBS"
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797
4798 /* Override any gcc2 internal prototype to avoid an error.  */
4799 #ifdef __cplusplus
4800 extern "C"
4801 #endif
4802 /* We use char because int might match the return type of a gcc2
4803    builtin and then its argument prototype would still apply.  */
4804 char SLtt_get_terminfo ();
4805 int
4806 main ()
4807 {
4808 SLtt_get_terminfo ();
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 rm -f conftest.$ac_objext conftest$ac_exeext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4815   (eval $ac_link) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -s conftest$ac_exeext'
4820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821   (eval $ac_try) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; }; then
4825   ac_cv_lib_slang_SLtt_get_terminfo=yes
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 ac_cv_lib_slang_SLtt_get_terminfo=no
4831 fi
4832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4833 LIBS=$ac_check_lib_save_LIBS
4834 fi
4835 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4836 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4837 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4838   MUTTLIBS="$MUTTLIBS -lslang -lm"
4839 else
4840   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
4841 echo "$as_me: error: unable to compile.  check config.log" >&2;}
4842    { (exit 1); exit 1; }; }
4843 fi
4844
4845
4846
4847 else
4848   mutt_cv_curses=/usr
4849
4850 # Check whether --with-curses or --without-curses was given.
4851 if test "${with_curses+set}" = set; then
4852   withval="$with_curses"
4853   if test $withval != yes; then
4854                         mutt_cv_curses=$withval
4855                 fi
4856                 if test x$mutt_cv_curses != x/usr; then
4857                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4858                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4859                 fi
4860 fi;
4861
4862         echo "$as_me:$LINENO: checking for initscr" >&5
4863 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4864 if test "${ac_cv_func_initscr+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   cat >conftest.$ac_ext <<_ACEOF
4868 #line $LINENO "configure"
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874 /* System header to define __stub macros and hopefully few prototypes,
4875     which can conflict with char initscr (); below.
4876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4877     <limits.h> exists even on freestanding compilers.  */
4878 #ifdef __STDC__
4879 # include <limits.h>
4880 #else
4881 # include <assert.h>
4882 #endif
4883 /* Override any gcc2 internal prototype to avoid an error.  */
4884 #ifdef __cplusplus
4885 extern "C"
4886 {
4887 #endif
4888 /* We use char because int might match the return type of a gcc2
4889    builtin and then its argument prototype would still apply.  */
4890 char initscr ();
4891 /* The GNU C library defines this for functions which it implements
4892     to always fail with ENOSYS.  Some functions are actually named
4893     something starting with __ and the normal name is an alias.  */
4894 #if defined (__stub_initscr) || defined (__stub___initscr)
4895 choke me
4896 #else
4897 char (*f) () = initscr;
4898 #endif
4899 #ifdef __cplusplus
4900 }
4901 #endif
4902
4903 int
4904 main ()
4905 {
4906 return f != initscr;
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913   (eval $ac_link) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -s conftest$ac_exeext'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   ac_cv_func_initscr=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ac_cv_func_initscr=no
4929 fi
4930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4931 fi
4932 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4933 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4934 if test $ac_cv_func_initscr = yes; then
4935   :
4936 else
4937
4938         cf_ncurses="ncurses"
4939         for lib in ncurses ncursesw
4940         do
4941                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4942 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4943 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4944 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947   ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-l$lib  $LIBS"
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956
4957 /* Override any gcc2 internal prototype to avoid an error.  */
4958 #ifdef __cplusplus
4959 extern "C"
4960 #endif
4961 /* We use char because int might match the return type of a gcc2
4962    builtin and then its argument prototype would still apply.  */
4963 char waddnwstr ();
4964 int
4965 main ()
4966 {
4967 waddnwstr ();
4968   ;
4969   return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4974   (eval $ac_link) 2>&5
4975   ac_status=$?
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); } &&
4978          { ac_try='test -s conftest$ac_exeext'
4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980   (eval $ac_try) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); }; }; then
4984   eval "$as_ac_Lib=yes"
4985 else
4986   echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989 eval "$as_ac_Lib=no"
4990 fi
4991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4993 fi
4994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4995 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4996 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4997   cf_ncurses="$lib"; break
4998 fi
4999
5000         done
5001         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
5002 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
5003 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5004 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-l$cf_ncurses  $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016
5017 /* Override any gcc2 internal prototype to avoid an error.  */
5018 #ifdef __cplusplus
5019 extern "C"
5020 #endif
5021 /* We use char because int might match the return type of a gcc2
5022    builtin and then its argument prototype would still apply.  */
5023 char initscr ();
5024 int
5025 main ()
5026 {
5027 initscr ();
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034   (eval $ac_link) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } &&
5038          { ac_try='test -s conftest$ac_exeext'
5039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040   (eval $ac_try) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); }; }; then
5044   eval "$as_ac_Lib=yes"
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 eval "$as_ac_Lib=no"
5050 fi
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5055 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5056 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5057   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5058                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5059                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5060                 fi
5061
5062                 if test "$cf_ncurses" = ncursesw; then
5063
5064 for ac_header in ncursesw/ncurses.h
5065 do
5066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5068   echo "$as_me:$LINENO: checking for $ac_header" >&5
5069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 fi
5073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5075 else
5076   # Is the header compilable?
5077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5080 #line $LINENO "configure"
5081 /* confdefs.h.  */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h.  */
5086 $ac_includes_default
5087 #include <$ac_header>
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091   (eval $ac_compile) 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -s conftest.$ac_objext'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; }; then
5101   ac_header_compiler=yes
5102 else
5103   echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5105
5106 ac_header_compiler=no
5107 fi
5108 rm -f conftest.$ac_objext conftest.$ac_ext
5109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5110 echo "${ECHO_T}$ac_header_compiler" >&6
5111
5112 # Is the header present?
5113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5115 cat >conftest.$ac_ext <<_ACEOF
5116 #line $LINENO "configure"
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122 #include <$ac_header>
5123 _ACEOF
5124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126   ac_status=$?
5127   grep -v '^ *+' conftest.er1 >conftest.err
5128   rm -f conftest.er1
5129   cat conftest.err >&5
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); } >/dev/null; then
5132   if test -s conftest.err; then
5133     ac_cpp_err=$ac_c_preproc_warn_flag
5134   else
5135     ac_cpp_err=
5136   fi
5137 else
5138   ac_cpp_err=yes
5139 fi
5140 if test -z "$ac_cpp_err"; then
5141   ac_header_preproc=yes
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146   ac_header_preproc=no
5147 fi
5148 rm -f conftest.err conftest.$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5150 echo "${ECHO_T}$ac_header_preproc" >&6
5151
5152 # So?  What about this header?
5153 case $ac_header_compiler:$ac_header_preproc in
5154   yes:no )
5155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159     (
5160       cat <<\_ASBOX
5161 ## ------------------------------------ ##
5162 ## Report this to bug-autoconf@gnu.org. ##
5163 ## ------------------------------------ ##
5164 _ASBOX
5165     ) |
5166       sed "s/^/$as_me: WARNING:     /" >&2
5167     ;;
5168   no:yes )
5169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5171     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5175     (
5176       cat <<\_ASBOX
5177 ## ------------------------------------ ##
5178 ## Report this to bug-autoconf@gnu.org. ##
5179 ## ------------------------------------ ##
5180 _ASBOX
5181     ) |
5182       sed "s/^/$as_me: WARNING:     /" >&2
5183     ;;
5184 esac
5185 echo "$as_me:$LINENO: checking for $ac_header" >&5
5186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   eval "$as_ac_Header=$ac_header_preproc"
5191 fi
5192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5194
5195 fi
5196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5197   cat >>confdefs.h <<_ACEOF
5198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5199 _ACEOF
5200  cf_cv_ncurses_header="ncursesw/ncurses.h"
5201 fi
5202
5203 done
5204
5205                 else
5206
5207 for ac_header in ncurses.h
5208 do
5209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211   echo "$as_me:$LINENO: checking for $ac_header" >&5
5212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 fi
5216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5218 else
5219   # Is the header compilable?
5220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229 $ac_includes_default
5230 #include <$ac_header>
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234   (eval $ac_compile) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } &&
5238          { ac_try='test -s conftest.$ac_objext'
5239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240   (eval $ac_try) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; }; then
5244   ac_header_compiler=yes
5245 else
5246   echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 ac_header_compiler=no
5250 fi
5251 rm -f conftest.$ac_objext conftest.$ac_ext
5252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5253 echo "${ECHO_T}$ac_header_compiler" >&6
5254
5255 # Is the header present?
5256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5258 cat >conftest.$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265 #include <$ac_header>
5266 _ACEOF
5267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5269   ac_status=$?
5270   grep -v '^ *+' conftest.er1 >conftest.err
5271   rm -f conftest.er1
5272   cat conftest.err >&5
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } >/dev/null; then
5275   if test -s conftest.err; then
5276     ac_cpp_err=$ac_c_preproc_warn_flag
5277   else
5278     ac_cpp_err=
5279   fi
5280 else
5281   ac_cpp_err=yes
5282 fi
5283 if test -z "$ac_cpp_err"; then
5284   ac_header_preproc=yes
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289   ac_header_preproc=no
5290 fi
5291 rm -f conftest.err conftest.$ac_ext
5292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5293 echo "${ECHO_T}$ac_header_preproc" >&6
5294
5295 # So?  What about this header?
5296 case $ac_header_compiler:$ac_header_preproc in
5297   yes:no )
5298     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5302     (
5303       cat <<\_ASBOX
5304 ## ------------------------------------ ##
5305 ## Report this to bug-autoconf@gnu.org. ##
5306 ## ------------------------------------ ##
5307 _ASBOX
5308     ) |
5309       sed "s/^/$as_me: WARNING:     /" >&2
5310     ;;
5311   no:yes )
5312     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5314     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5318     (
5319       cat <<\_ASBOX
5320 ## ------------------------------------ ##
5321 ## Report this to bug-autoconf@gnu.org. ##
5322 ## ------------------------------------ ##
5323 _ASBOX
5324     ) |
5325       sed "s/^/$as_me: WARNING:     /" >&2
5326     ;;
5327 esac
5328 echo "$as_me:$LINENO: checking for $ac_header" >&5
5329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   eval "$as_ac_Header=$ac_header_preproc"
5334 fi
5335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5337
5338 fi
5339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5340   cat >>confdefs.h <<_ACEOF
5341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5342 _ACEOF
5343  cf_cv_ncurses_header="ncurses.h"
5344 fi
5345
5346 done
5347
5348                 fi
5349 else
5350
5351 echo "$as_me:$LINENO: checking for initscr" >&5
5352 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5353 if test "${ac_cv_func_initscr+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   cat >conftest.$ac_ext <<_ACEOF
5357 #line $LINENO "configure"
5358 /* confdefs.h.  */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h.  */
5363 /* System header to define __stub macros and hopefully few prototypes,
5364     which can conflict with char initscr (); below.
5365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5366     <limits.h> exists even on freestanding compilers.  */
5367 #ifdef __STDC__
5368 # include <limits.h>
5369 #else
5370 # include <assert.h>
5371 #endif
5372 /* Override any gcc2 internal prototype to avoid an error.  */
5373 #ifdef __cplusplus
5374 extern "C"
5375 {
5376 #endif
5377 /* We use char because int might match the return type of a gcc2
5378    builtin and then its argument prototype would still apply.  */
5379 char initscr ();
5380 /* The GNU C library defines this for functions which it implements
5381     to always fail with ENOSYS.  Some functions are actually named
5382     something starting with __ and the normal name is an alias.  */
5383 #if defined (__stub_initscr) || defined (__stub___initscr)
5384 choke me
5385 #else
5386 char (*f) () = initscr;
5387 #endif
5388 #ifdef __cplusplus
5389 }
5390 #endif
5391
5392 int
5393 main ()
5394 {
5395 return f != initscr;
5396   ;
5397   return 0;
5398 }
5399 _ACEOF
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402   (eval $ac_link) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } &&
5406          { ac_try='test -s conftest$ac_exeext'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; }; then
5412   ac_cv_func_initscr=yes
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_cv_func_initscr=no
5418 fi
5419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5420 fi
5421 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5422 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5423 if test $ac_cv_func_initscr = yes; then
5424   :
5425 else
5426
5427 case $host_os in #(vi
5428 freebsd*) #(vi
5429         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5430 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5431 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   ac_check_lib_save_LIBS=$LIBS
5435 LIBS="-lmytinfo  $LIBS"
5436 cat >conftest.$ac_ext <<_ACEOF
5437 #line $LINENO "configure"
5438 /* confdefs.h.  */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h.  */
5443
5444 /* Override any gcc2 internal prototype to avoid an error.  */
5445 #ifdef __cplusplus
5446 extern "C"
5447 #endif
5448 /* We use char because int might match the return type of a gcc2
5449    builtin and then its argument prototype would still apply.  */
5450 char tgoto ();
5451 int
5452 main ()
5453 {
5454 tgoto ();
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5461   (eval $ac_link) 2>&5
5462   ac_status=$?
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } &&
5465          { ac_try='test -s conftest$ac_exeext'
5466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467   (eval $ac_try) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }; }; then
5471   ac_cv_lib_mytinfo_tgoto=yes
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_cv_lib_mytinfo_tgoto=no
5477 fi
5478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5480 fi
5481 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5482 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5483 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5484   LIBS="-lmytinfo $LIBS"
5485 fi
5486
5487         ;;
5488 hpux10.*|hpux11.*)
5489         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5490 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5491 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5492   echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494   ac_check_lib_save_LIBS=$LIBS
5495 LIBS="-lcur_colr  $LIBS"
5496 cat >conftest.$ac_ext <<_ACEOF
5497 #line $LINENO "configure"
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5503
5504 /* Override any gcc2 internal prototype to avoid an error.  */
5505 #ifdef __cplusplus
5506 extern "C"
5507 #endif
5508 /* We use char because int might match the return type of a gcc2
5509    builtin and then its argument prototype would still apply.  */
5510 char initscr ();
5511 int
5512 main ()
5513 {
5514 initscr ();
5515   ;
5516   return 0;
5517 }
5518 _ACEOF
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521   (eval $ac_link) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } &&
5525          { ac_try='test -s conftest$ac_exeext'
5526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527   (eval $ac_try) 2>&5
5528   ac_status=$?
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); }; }; then
5531   ac_cv_lib_cur_colr_initscr=yes
5532 else
5533   echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536 ac_cv_lib_cur_colr_initscr=no
5537 fi
5538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5539 LIBS=$ac_check_lib_save_LIBS
5540 fi
5541 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5542 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5543 if test $ac_cv_lib_cur_colr_initscr = yes; then
5544
5545                 LIBS="-lcur_colr $LIBS"
5546                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5547                 ac_cv_func_initscr=yes
5548
5549 else
5550
5551         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5552 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5553 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5554   echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556   ac_check_lib_save_LIBS=$LIBS
5557 LIBS="-lHcurses  $LIBS"
5558 cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565
5566 /* Override any gcc2 internal prototype to avoid an error.  */
5567 #ifdef __cplusplus
5568 extern "C"
5569 #endif
5570 /* We use char because int might match the return type of a gcc2
5571    builtin and then its argument prototype would still apply.  */
5572 char initscr ();
5573 int
5574 main ()
5575 {
5576 initscr ();
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583   (eval $ac_link) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } &&
5587          { ac_try='test -s conftest$ac_exeext'
5588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589   (eval $ac_try) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); }; }; then
5593   ac_cv_lib_Hcurses_initscr=yes
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598 ac_cv_lib_Hcurses_initscr=no
5599 fi
5600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5601 LIBS=$ac_check_lib_save_LIBS
5602 fi
5603 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5604 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5605 if test $ac_cv_lib_Hcurses_initscr = yes; then
5606
5607                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5608                 LIBS="-lHcurses $LIBS"
5609                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5610                 ac_cv_func_initscr=yes
5611
5612 fi
5613
5614 fi
5615
5616         ;;
5617 linux*) # Suse Linux does not follow /usr/lib convention
5618         LIBS="$LIBS -L/lib"
5619         ;;
5620 esac
5621
5622 if test ".$With5lib" != ".no" ; then
5623 if test -d /usr/5lib ; then
5624         # SunOS 3.x or 4.x
5625         CPPFLAGS="$CPPFLAGS -I/usr/5include"
5626         LIBS="$LIBS -L/usr/5lib"
5627 fi
5628 fi
5629
5630 if test ".$ac_cv_func_initscr" != .yes ; then
5631         cf_save_LIBS="$LIBS"
5632         cf_term_lib=""
5633         cf_curs_lib=""
5634
5635         # Check for library containing tgoto.  Do this before curses library
5636         # because it may be needed to link the test-case for initscr.
5637         echo "$as_me:$LINENO: checking for tgoto" >&5
5638 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5639 if test "${ac_cv_func_tgoto+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5644 /* confdefs.h.  */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h.  */
5649 /* System header to define __stub macros and hopefully few prototypes,
5650     which can conflict with char tgoto (); below.
5651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652     <limits.h> exists even on freestanding compilers.  */
5653 #ifdef __STDC__
5654 # include <limits.h>
5655 #else
5656 # include <assert.h>
5657 #endif
5658 /* Override any gcc2 internal prototype to avoid an error.  */
5659 #ifdef __cplusplus
5660 extern "C"
5661 {
5662 #endif
5663 /* We use char because int might match the return type of a gcc2
5664    builtin and then its argument prototype would still apply.  */
5665 char tgoto ();
5666 /* The GNU C library defines this for functions which it implements
5667     to always fail with ENOSYS.  Some functions are actually named
5668     something starting with __ and the normal name is an alias.  */
5669 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5670 choke me
5671 #else
5672 char (*f) () = tgoto;
5673 #endif
5674 #ifdef __cplusplus
5675 }
5676 #endif
5677
5678 int
5679 main ()
5680 {
5681 return f != tgoto;
5682   ;
5683   return 0;
5684 }
5685 _ACEOF
5686 rm -f conftest.$ac_objext conftest$ac_exeext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688   (eval $ac_link) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } &&
5692          { ac_try='test -s conftest$ac_exeext'
5693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694   (eval $ac_try) 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); }; }; then
5698   ac_cv_func_tgoto=yes
5699 else
5700   echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 ac_cv_func_tgoto=no
5704 fi
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 fi
5707 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5708 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5709 if test $ac_cv_func_tgoto = yes; then
5710   cf_term_lib=predefined
5711 else
5712
5713                 for cf_term_lib in termcap termlib unknown
5714                 do
5715                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5716 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5717 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5718 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   ac_check_lib_save_LIBS=$LIBS
5722 LIBS="-l$cf_term_lib  $LIBS"
5723 cat >conftest.$ac_ext <<_ACEOF
5724 #line $LINENO "configure"
5725 /* confdefs.h.  */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h.  */
5730
5731 /* Override any gcc2 internal prototype to avoid an error.  */
5732 #ifdef __cplusplus
5733 extern "C"
5734 #endif
5735 /* We use char because int might match the return type of a gcc2
5736    builtin and then its argument prototype would still apply.  */
5737 char tgoto ();
5738 int
5739 main ()
5740 {
5741 tgoto ();
5742   ;
5743   return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext conftest$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748   (eval $ac_link) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); } &&
5752          { ac_try='test -s conftest$ac_exeext'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   eval "$as_ac_Lib=yes"
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 eval "$as_ac_Lib=no"
5764 fi
5765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5766 LIBS=$ac_check_lib_save_LIBS
5767 fi
5768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5769 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5770 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5771   break
5772 fi
5773
5774                 done
5775
5776 fi
5777
5778
5779         # Check for library containing initscr
5780         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5781         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5782         do
5783                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5784 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5785 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5786 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   ac_check_lib_save_LIBS=$LIBS
5790 LIBS="-l$cf_curs_lib  $LIBS"
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 /* confdefs.h.  */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h.  */
5798
5799 /* Override any gcc2 internal prototype to avoid an error.  */
5800 #ifdef __cplusplus
5801 extern "C"
5802 #endif
5803 /* We use char because int might match the return type of a gcc2
5804    builtin and then its argument prototype would still apply.  */
5805 char initscr ();
5806 int
5807 main ()
5808 {
5809 initscr ();
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext conftest$ac_exeext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816   (eval $ac_link) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   eval "$as_ac_Lib=yes"
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 eval "$as_ac_Lib=no"
5832 fi
5833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5834 LIBS=$ac_check_lib_save_LIBS
5835 fi
5836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5837 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5838 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5839   break
5840 fi
5841
5842         done
5843         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5844 echo "$as_me: error: no curses library found" >&2;}
5845    { (exit 1); exit 1; }; }
5846
5847         LIBS="-l$cf_curs_lib $cf_save_LIBS"
5848         if test "$cf_term_lib" = unknown ; then
5849                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5850 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5851                 cat >conftest.$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858 #include <${cf_cv_ncurses_header-curses.h}>
5859 int
5860 main ()
5861 {
5862 initscr()
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869   (eval $ac_link) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -s conftest$ac_exeext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   cf_result=yes
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 cf_result=no
5885 fi
5886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5887                 echo "$as_me:$LINENO: result: $cf_result" >&5
5888 echo "${ECHO_T}$cf_result" >&6
5889                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5890 echo "$as_me: error: Cannot link curses library" >&2;}
5891    { (exit 1); exit 1; }; }
5892         elif test "$cf_term_lib" != predefined ; then
5893                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5894 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5895                 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 #include <${cf_cv_ncurses_header-curses.h}>
5903 int
5904 main ()
5905 {
5906 initscr(); tgoto((char *)0, 0, 0);
5907   ;
5908   return 0;
5909 }
5910 _ACEOF
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913   (eval $ac_link) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } &&
5917          { ac_try='test -s conftest$ac_exeext'
5918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919   (eval $ac_try) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; }; then
5923   cf_result=no
5924 else
5925   echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928
5929                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5930                         cat >conftest.$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937 #include <${cf_cv_ncurses_header-curses.h}>
5938 int
5939 main ()
5940 {
5941 initscr()
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948   (eval $ac_link) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } &&
5952          { ac_try='test -s conftest$ac_exeext'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   cf_result=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 cf_result=error
5964 fi
5965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966
5967 fi
5968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969                 echo "$as_me:$LINENO: result: $cf_result" >&5
5970 echo "${ECHO_T}$cf_result" >&6
5971         fi
5972 fi
5973
5974
5975 fi
5976
5977 fi
5978
5979
5980 fi
5981
5982
5983         old_LIBS="$LIBS"
5984         LIBS="$LIBS $MUTTLIBS"
5985         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5986 do
5987
5988 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5989 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5990 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   cat >conftest.$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #include <${cf_cv_ncurses_header-curses.h}>
6001 int
6002 main ()
6003 {
6004 #ifndef ${ac_func}
6005 extern  int     ${ac_func}();
6006 #endif
6007   ;
6008   return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013   (eval $ac_compile) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); } &&
6017          { ac_try='test -s conftest.$ac_objext'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; }; then
6023
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031 #include <${cf_cv_ncurses_header-curses.h}>
6032 int
6033 main ()
6034 {
6035 #ifndef ${ac_func}
6036 int     (*p)() = ${ac_func};
6037 #endif
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044   (eval $ac_compile) 2>&5
6045   ac_status=$?
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); } &&
6048          { ac_try='test -s conftest.$ac_objext'
6049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050   (eval $ac_try) 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; }; then
6054
6055 eval "ac_cv_func_decl_$ac_func=yes"
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060
6061 eval "ac_cv_func_decl_$ac_func=no"
6062 fi
6063 rm -f conftest.$ac_objext conftest.$ac_ext
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068
6069 eval "ac_cv_func_decl_$ac_func=yes"
6070 fi
6071 rm -f conftest.$ac_objext conftest.$ac_ext
6072 fi
6073
6074 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6075   echo "$as_me:$LINENO: result: yes" >&5
6076 echo "${ECHO_T}yes" >&6
6077
6078
6079 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6080
6081   cat >>confdefs.h <<_ACEOF
6082 #define $ac_tr_func 1
6083 _ACEOF
6084
6085 else
6086   echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6
6088 fi
6089 done
6090
6091         if test "$ac_cv_func_decl_start_color" = yes; then
6092
6093 cat >>confdefs.h <<\_ACEOF
6094 #define HAVE_COLOR 1
6095 _ACEOF
6096
6097         fi
6098         if test "$ac_cv_func_decl_resizeterm" = yes; then
6099                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6100         fi
6101         LIBS="$old_LIBS"
6102
6103 fi;
6104
6105 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6106 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6107 if test "${ac_cv_header_stdc+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 #include <stdlib.h>
6118 #include <stdarg.h>
6119 #include <string.h>
6120 #include <float.h>
6121
6122 int
6123 main ()
6124 {
6125
6126   ;
6127   return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132   (eval $ac_compile) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } &&
6136          { ac_try='test -s conftest.$ac_objext'
6137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138   (eval $ac_try) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); }; }; then
6142   ac_cv_header_stdc=yes
6143 else
6144   echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_header_stdc=no
6148 fi
6149 rm -f conftest.$ac_objext conftest.$ac_ext
6150
6151 if test $ac_cv_header_stdc = yes; then
6152   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6153   cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160 #include <string.h>
6161
6162 _ACEOF
6163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6164   $EGREP "memchr" >/dev/null 2>&1; then
6165   :
6166 else
6167   ac_cv_header_stdc=no
6168 fi
6169 rm -f conftest*
6170
6171 fi
6172
6173 if test $ac_cv_header_stdc = yes; then
6174   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6175   cat >conftest.$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6177 /* confdefs.h.  */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h.  */
6182 #include <stdlib.h>
6183
6184 _ACEOF
6185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6186   $EGREP "free" >/dev/null 2>&1; then
6187   :
6188 else
6189   ac_cv_header_stdc=no
6190 fi
6191 rm -f conftest*
6192
6193 fi
6194
6195 if test $ac_cv_header_stdc = yes; then
6196   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6197   if test "$cross_compiling" = yes; then
6198   :
6199 else
6200   cat >conftest.$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207 #include <ctype.h>
6208 #if ((' ' & 0x0FF) == 0x020)
6209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6211 #else
6212 # define ISLOWER(c) \
6213                    (('a' <= (c) && (c) <= 'i') \
6214                      || ('j' <= (c) && (c) <= 'r') \
6215                      || ('s' <= (c) && (c) <= 'z'))
6216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6217 #endif
6218
6219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6220 int
6221 main ()
6222 {
6223   int i;
6224   for (i = 0; i < 256; i++)
6225     if (XOR (islower (i), ISLOWER (i))
6226         || toupper (i) != TOUPPER (i))
6227       exit(2);
6228   exit (0);
6229 }
6230 _ACEOF
6231 rm -f conftest$ac_exeext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6233   (eval $ac_link) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238   (eval $ac_try) 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   :
6243 else
6244   echo "$as_me: program exited with status $ac_status" >&5
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 ( exit $ac_status )
6249 ac_cv_header_stdc=no
6250 fi
6251 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6252 fi
6253 fi
6254 fi
6255 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6256 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6257 if test $ac_cv_header_stdc = yes; then
6258
6259 cat >>confdefs.h <<\_ACEOF
6260 #define STDC_HEADERS 1
6261 _ACEOF
6262
6263 fi
6264
6265
6266
6267
6268
6269
6270 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6271 do
6272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6274   echo "$as_me:$LINENO: checking for $ac_header" >&5
6275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 fi
6279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6281 else
6282   # Is the header compilable?
6283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 /* confdefs.h.  */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h.  */
6292 $ac_includes_default
6293 #include <$ac_header>
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297   (eval $ac_compile) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } &&
6301          { ac_try='test -s conftest.$ac_objext'
6302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303   (eval $ac_try) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; }; then
6307   ac_header_compiler=yes
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_header_compiler=no
6313 fi
6314 rm -f conftest.$ac_objext conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6316 echo "${ECHO_T}$ac_header_compiler" >&6
6317
6318 # Is the header present?
6319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6321 cat >conftest.$ac_ext <<_ACEOF
6322 #line $LINENO "configure"
6323 /* confdefs.h.  */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h.  */
6328 #include <$ac_header>
6329 _ACEOF
6330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6332   ac_status=$?
6333   grep -v '^ *+' conftest.er1 >conftest.err
6334   rm -f conftest.er1
6335   cat conftest.err >&5
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); } >/dev/null; then
6338   if test -s conftest.err; then
6339     ac_cpp_err=$ac_c_preproc_warn_flag
6340   else
6341     ac_cpp_err=
6342   fi
6343 else
6344   ac_cpp_err=yes
6345 fi
6346 if test -z "$ac_cpp_err"; then
6347   ac_header_preproc=yes
6348 else
6349   echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352   ac_header_preproc=no
6353 fi
6354 rm -f conftest.err conftest.$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6356 echo "${ECHO_T}$ac_header_preproc" >&6
6357
6358 # So?  What about this header?
6359 case $ac_header_compiler:$ac_header_preproc in
6360   yes:no )
6361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365     (
6366       cat <<\_ASBOX
6367 ## ------------------------------------ ##
6368 ## Report this to bug-autoconf@gnu.org. ##
6369 ## ------------------------------------ ##
6370 _ASBOX
6371     ) |
6372       sed "s/^/$as_me: WARNING:     /" >&2
6373     ;;
6374   no:yes )
6375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6377     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6381     (
6382       cat <<\_ASBOX
6383 ## ------------------------------------ ##
6384 ## Report this to bug-autoconf@gnu.org. ##
6385 ## ------------------------------------ ##
6386 _ASBOX
6387     ) |
6388       sed "s/^/$as_me: WARNING:     /" >&2
6389     ;;
6390 esac
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   eval "$as_ac_Header=$ac_header_preproc"
6397 fi
6398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400
6401 fi
6402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6403   cat >>confdefs.h <<_ACEOF
6404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6405 _ACEOF
6406
6407 fi
6408
6409 done
6410
6411
6412
6413 for ac_header in sys/time.h sys/resource.h
6414 do
6415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417   echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 fi
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6424 else
6425   # Is the header compilable?
6426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6429 #line $LINENO "configure"
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435 $ac_includes_default
6436 #include <$ac_header>
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440   (eval $ac_compile) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } &&
6444          { ac_try='test -s conftest.$ac_objext'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; }; then
6450   ac_header_compiler=yes
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 ac_header_compiler=no
6456 fi
6457 rm -f conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6460
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 /* confdefs.h.  */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h.  */
6471 #include <$ac_header>
6472 _ACEOF
6473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
6478   cat conftest.err >&5
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } >/dev/null; then
6481   if test -s conftest.err; then
6482     ac_cpp_err=$ac_c_preproc_warn_flag
6483   else
6484     ac_cpp_err=
6485   fi
6486 else
6487   ac_cpp_err=yes
6488 fi
6489 if test -z "$ac_cpp_err"; then
6490   ac_header_preproc=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495   ac_header_preproc=no
6496 fi
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6500
6501 # So?  What about this header?
6502 case $ac_header_compiler:$ac_header_preproc in
6503   yes:no )
6504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6508     (
6509       cat <<\_ASBOX
6510 ## ------------------------------------ ##
6511 ## Report this to bug-autoconf@gnu.org. ##
6512 ## ------------------------------------ ##
6513 _ASBOX
6514     ) |
6515       sed "s/^/$as_me: WARNING:     /" >&2
6516     ;;
6517   no:yes )
6518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6520     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6524     (
6525       cat <<\_ASBOX
6526 ## ------------------------------------ ##
6527 ## Report this to bug-autoconf@gnu.org. ##
6528 ## ------------------------------------ ##
6529 _ASBOX
6530     ) |
6531       sed "s/^/$as_me: WARNING:     /" >&2
6532     ;;
6533 esac
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   eval "$as_ac_Header=$ac_header_preproc"
6540 fi
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543
6544 fi
6545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546   cat >>confdefs.h <<_ACEOF
6547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548 _ACEOF
6549
6550 fi
6551
6552 done
6553
6554
6555 for ac_header in unix.h
6556 do
6557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559   echo "$as_me:$LINENO: checking for $ac_header" >&5
6560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 fi
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566 else
6567   # Is the header compilable?
6568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6571 #line $LINENO "configure"
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 $ac_includes_default
6578 #include <$ac_header>
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582   (eval $ac_compile) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); } &&
6586          { ac_try='test -s conftest.$ac_objext'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   ac_header_compiler=yes
6593 else
6594   echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 ac_header_compiler=no
6598 fi
6599 rm -f conftest.$ac_objext conftest.$ac_ext
6600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6601 echo "${ECHO_T}$ac_header_compiler" >&6
6602
6603 # Is the header present?
6604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 /* confdefs.h.  */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h.  */
6613 #include <$ac_header>
6614 _ACEOF
6615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6617   ac_status=$?
6618   grep -v '^ *+' conftest.er1 >conftest.err
6619   rm -f conftest.er1
6620   cat conftest.err >&5
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); } >/dev/null; then
6623   if test -s conftest.err; then
6624     ac_cpp_err=$ac_c_preproc_warn_flag
6625   else
6626     ac_cpp_err=
6627   fi
6628 else
6629   ac_cpp_err=yes
6630 fi
6631 if test -z "$ac_cpp_err"; then
6632   ac_header_preproc=yes
6633 else
6634   echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6636
6637   ac_header_preproc=no
6638 fi
6639 rm -f conftest.err conftest.$ac_ext
6640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6641 echo "${ECHO_T}$ac_header_preproc" >&6
6642
6643 # So?  What about this header?
6644 case $ac_header_compiler:$ac_header_preproc in
6645   yes:no )
6646     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6650     (
6651       cat <<\_ASBOX
6652 ## ------------------------------------ ##
6653 ## Report this to bug-autoconf@gnu.org. ##
6654 ## ------------------------------------ ##
6655 _ASBOX
6656     ) |
6657       sed "s/^/$as_me: WARNING:     /" >&2
6658     ;;
6659   no:yes )
6660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6662     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6666     (
6667       cat <<\_ASBOX
6668 ## ------------------------------------ ##
6669 ## Report this to bug-autoconf@gnu.org. ##
6670 ## ------------------------------------ ##
6671 _ASBOX
6672     ) |
6673       sed "s/^/$as_me: WARNING:     /" >&2
6674     ;;
6675 esac
6676 echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6679   echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681   eval "$as_ac_Header=$ac_header_preproc"
6682 fi
6683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6685
6686 fi
6687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6688   cat >>confdefs.h <<_ACEOF
6689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6690 _ACEOF
6691
6692 fi
6693
6694 done
6695
6696
6697
6698
6699
6700 for ac_func in setrlimit getsid isctype
6701 do
6702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703 echo "$as_me:$LINENO: checking for $ac_func" >&5
6704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6705 if eval "test \"\${$as_ac_var+set}\" = set"; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 #line $LINENO "configure"
6710 /* confdefs.h.  */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h.  */
6715 /* System header to define __stub macros and hopefully few prototypes,
6716     which can conflict with char $ac_func (); below.
6717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718     <limits.h> exists even on freestanding compilers.  */
6719 #ifdef __STDC__
6720 # include <limits.h>
6721 #else
6722 # include <assert.h>
6723 #endif
6724 /* Override any gcc2 internal prototype to avoid an error.  */
6725 #ifdef __cplusplus
6726 extern "C"
6727 {
6728 #endif
6729 /* We use char because int might match the return type of a gcc2
6730    builtin and then its argument prototype would still apply.  */
6731 char $ac_func ();
6732 /* The GNU C library defines this for functions which it implements
6733     to always fail with ENOSYS.  Some functions are actually named
6734     something starting with __ and the normal name is an alias.  */
6735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6736 choke me
6737 #else
6738 char (*f) () = $ac_func;
6739 #endif
6740 #ifdef __cplusplus
6741 }
6742 #endif
6743
6744 int
6745 main ()
6746 {
6747 return f != $ac_func;
6748   ;
6749   return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest.$ac_objext conftest$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754   (eval $ac_link) 2>&5
6755   ac_status=$?
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); } &&
6758          { ac_try='test -s conftest$ac_exeext'
6759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760   (eval $ac_try) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); }; }; then
6764   eval "$as_ac_var=yes"
6765 else
6766   echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 eval "$as_ac_var=no"
6770 fi
6771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6772 fi
6773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6775 if test `eval echo '${'$as_ac_var'}'` = yes; then
6776   cat >>confdefs.h <<_ACEOF
6777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6778 _ACEOF
6779
6780 fi
6781 done
6782
6783
6784 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6785 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6786 if test "${ac_cv_type_signal+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   cat >conftest.$ac_ext <<_ACEOF
6790 #line $LINENO "configure"
6791 /* confdefs.h.  */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h.  */
6796 #include <sys/types.h>
6797 #include <signal.h>
6798 #ifdef signal
6799 # undef signal
6800 #endif
6801 #ifdef __cplusplus
6802 extern "C" void (*signal (int, void (*)(int)))(int);
6803 #else
6804 void (*signal ()) ();
6805 #endif
6806
6807 int
6808 main ()
6809 {
6810 int i;
6811   ;
6812   return 0;
6813 }
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817   (eval $ac_compile) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } &&
6821          { ac_try='test -s conftest.$ac_objext'
6822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823   (eval $ac_try) 2>&5
6824   ac_status=$?
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); }; }; then
6827   ac_cv_type_signal=void
6828 else
6829   echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832 ac_cv_type_signal=int
6833 fi
6834 rm -f conftest.$ac_objext conftest.$ac_ext
6835 fi
6836 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6837 echo "${ECHO_T}$ac_cv_type_signal" >&6
6838
6839 cat >>confdefs.h <<_ACEOF
6840 #define RETSIGTYPE $ac_cv_type_signal
6841 _ACEOF
6842
6843
6844
6845 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6846 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6847 cat >conftest.$ac_ext <<_ACEOF
6848 #line $LINENO "configure"
6849 /* confdefs.h.  */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h.  */
6854 #include <signal.h>
6855
6856 _ACEOF
6857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6858   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6859
6860     ac_cv_type_sig_atomic_t=yes;
6861     cat >conftest.$ac_ext <<_ACEOF
6862 #line $LINENO "configure"
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868 #include <signal.h>
6869
6870 _ACEOF
6871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6873
6874                         is_sig_atomic_t_volatile=yes;
6875                         echo "$as_me:$LINENO: result: yes, volatile" >&5
6876 echo "${ECHO_T}yes, volatile" >&6
6877
6878 else
6879
6880                         is_sig_atomic_t_volatile=no;
6881                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
6882 echo "${ECHO_T}yes, non volatile" >&6
6883
6884 fi
6885 rm -f conftest*
6886
6887
6888 else
6889
6890     echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6
6892     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6893 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6894 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6895   echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897   cat >conftest.$ac_ext <<_ACEOF
6898 #line $LINENO "configure"
6899 /* confdefs.h.  */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h.  */
6904 $ac_includes_default
6905 int
6906 main ()
6907 {
6908 if ((sig_atomic_t *) 0)
6909   return 0;
6910 if (sizeof (sig_atomic_t))
6911   return 0;
6912   ;
6913   return 0;
6914 }
6915 _ACEOF
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918   (eval $ac_compile) 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } &&
6922          { ac_try='test -s conftest.$ac_objext'
6923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924   (eval $ac_try) 2>&5
6925   ac_status=$?
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); }; }; then
6928   ac_cv_type_sig_atomic_t=yes
6929 else
6930   echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933 ac_cv_type_sig_atomic_t=no
6934 fi
6935 rm -f conftest.$ac_objext conftest.$ac_ext
6936 fi
6937 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6938 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6939 if test $ac_cv_type_sig_atomic_t = yes; then
6940   :
6941 else
6942
6943 cat >>confdefs.h <<_ACEOF
6944 #define sig_atomic_t int
6945 _ACEOF
6946
6947 fi
6948
6949     is_sig_atomic_t_volatile=no
6950
6951 fi
6952 rm -f conftest*
6953
6954 if test $is_sig_atomic_t_volatile = 'yes'
6955 then
6956     cat >>confdefs.h <<\_ACEOF
6957 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6958 _ACEOF
6959
6960 else
6961     cat >>confdefs.h <<\_ACEOF
6962 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6963 _ACEOF
6964
6965 fi
6966
6967 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6968 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6969 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979 $ac_includes_default
6980 int
6981 main ()
6982 {
6983 #ifndef sys_siglist
6984   char *p = (char *) sys_siglist;
6985 #endif
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993   (eval $ac_compile) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } &&
6997          { ac_try='test -s conftest.$ac_objext'
6998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999   (eval $ac_try) 2>&5
7000   ac_status=$?
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); }; }; then
7003   ac_cv_have_decl_sys_siglist=yes
7004 else
7005   echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7007
7008 ac_cv_have_decl_sys_siglist=no
7009 fi
7010 rm -f conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7013 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7014 if test $ac_cv_have_decl_sys_siglist = yes; then
7015
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_DECL_SYS_SIGLIST 1
7018 _ACEOF
7019
7020
7021 else
7022   cat >>confdefs.h <<_ACEOF
7023 #define HAVE_DECL_SYS_SIGLIST 0
7024 _ACEOF
7025
7026
7027 fi
7028
7029
7030
7031
7032 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7033 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7034 if test "${ac_cv_c_bigendian+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   # See if sys/param.h defines the BYTE_ORDER macro.
7038 cat >conftest.$ac_ext <<_ACEOF
7039 #line $LINENO "configure"
7040 /* confdefs.h.  */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h.  */
7045 #include <sys/types.h>
7046 #include <sys/param.h>
7047
7048 int
7049 main ()
7050 {
7051 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7052  bogus endian macros
7053 #endif
7054
7055   ;
7056   return 0;
7057 }
7058 _ACEOF
7059 rm -f conftest.$ac_objext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061   (eval $ac_compile) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } &&
7065          { ac_try='test -s conftest.$ac_objext'
7066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067   (eval $ac_try) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; }; then
7071   # It does; now see whether it defined to BIG_ENDIAN or not.
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7074 /* confdefs.h.  */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h.  */
7079 #include <sys/types.h>
7080 #include <sys/param.h>
7081
7082 int
7083 main ()
7084 {
7085 #if BYTE_ORDER != BIG_ENDIAN
7086  not big endian
7087 #endif
7088
7089   ;
7090   return 0;
7091 }
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095   (eval $ac_compile) 2>&5
7096   ac_status=$?
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); } &&
7099          { ac_try='test -s conftest.$ac_objext'
7100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101   (eval $ac_try) 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; }; then
7105   ac_cv_c_bigendian=yes
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 ac_cv_c_bigendian=no
7111 fi
7112 rm -f conftest.$ac_objext conftest.$ac_ext
7113 else
7114   echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7116
7117 # It does not; compile a test program.
7118 if test "$cross_compiling" = yes; then
7119   # try to guess the endianness by grepping values into an object file
7120   ac_cv_c_bigendian=unknown
7121   cat >conftest.$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7123 /* confdefs.h.  */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h.  */
7128 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7129 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7130 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7131 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7132 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7133 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7134 int
7135 main ()
7136 {
7137  _ascii (); _ebcdic ();
7138   ;
7139   return 0;
7140 }
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); } &&
7148          { ac_try='test -s conftest.$ac_objext'
7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150   (eval $ac_try) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); }; }; then
7154   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7155   ac_cv_c_bigendian=yes
7156 fi
7157 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7158   if test "$ac_cv_c_bigendian" = unknown; then
7159     ac_cv_c_bigendian=no
7160   else
7161     # finding both strings is unlikely to happen, but who knows?
7162     ac_cv_c_bigendian=unknown
7163   fi
7164 fi
7165 else
7166   echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7168
7169 fi
7170 rm -f conftest.$ac_objext conftest.$ac_ext
7171 else
7172   cat >conftest.$ac_ext <<_ACEOF
7173 #line $LINENO "configure"
7174 /* confdefs.h.  */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h.  */
7179 int
7180 main ()
7181 {
7182   /* Are we little or big endian?  From Harbison&Steele.  */
7183   union
7184   {
7185     long l;
7186     char c[sizeof (long)];
7187   } u;
7188   u.l = 1;
7189   exit (u.c[sizeof (long) - 1] == 1);
7190 }
7191 _ACEOF
7192 rm -f conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194   (eval $ac_link) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199   (eval $ac_try) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }; }; then
7203   ac_cv_c_bigendian=no
7204 else
7205   echo "$as_me: program exited with status $ac_status" >&5
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 ( exit $ac_status )
7210 ac_cv_c_bigendian=yes
7211 fi
7212 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7213 fi
7214 fi
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7216 fi
7217 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7218 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7219 case $ac_cv_c_bigendian in
7220   yes)
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define WORDS_BIGENDIAN 1
7224 _ACEOF
7225  ;;
7226   no)
7227      ;;
7228   *)
7229     { { echo "$as_me:$LINENO: error: unknown endianness
7230 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7231 echo "$as_me: error: unknown endianness
7232 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7233    { (exit 1); exit 1; }; } ;;
7234 esac
7235
7236
7237
7238 for ac_header in inttypes.h stdint.h
7239 do
7240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242   echo "$as_me:$LINENO: checking for $ac_header" >&5
7243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 fi
7247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7249 else
7250   # Is the header compilable?
7251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 /* confdefs.h.  */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h.  */
7260 $ac_includes_default
7261 #include <$ac_header>
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265   (eval $ac_compile) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -s conftest.$ac_objext'
7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271   (eval $ac_try) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); }; }; then
7275   ac_header_compiler=yes
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280 ac_header_compiler=no
7281 fi
7282 rm -f conftest.$ac_objext conftest.$ac_ext
7283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7284 echo "${ECHO_T}$ac_header_compiler" >&6
7285
7286 # Is the header present?
7287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7289 cat >conftest.$ac_ext <<_ACEOF
7290 #line $LINENO "configure"
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 #include <$ac_header>
7297 _ACEOF
7298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7300   ac_status=$?
7301   grep -v '^ *+' conftest.er1 >conftest.err
7302   rm -f conftest.er1
7303   cat conftest.err >&5
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } >/dev/null; then
7306   if test -s conftest.err; then
7307     ac_cpp_err=$ac_c_preproc_warn_flag
7308   else
7309     ac_cpp_err=
7310   fi
7311 else
7312   ac_cpp_err=yes
7313 fi
7314 if test -z "$ac_cpp_err"; then
7315   ac_header_preproc=yes
7316 else
7317   echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320   ac_header_preproc=no
7321 fi
7322 rm -f conftest.err conftest.$ac_ext
7323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7324 echo "${ECHO_T}$ac_header_preproc" >&6
7325
7326 # So?  What about this header?
7327 case $ac_header_compiler:$ac_header_preproc in
7328   yes:no )
7329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7333     (
7334       cat <<\_ASBOX
7335 ## ------------------------------------ ##
7336 ## Report this to bug-autoconf@gnu.org. ##
7337 ## ------------------------------------ ##
7338 _ASBOX
7339     ) |
7340       sed "s/^/$as_me: WARNING:     /" >&2
7341     ;;
7342   no:yes )
7343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7345     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7349     (
7350       cat <<\_ASBOX
7351 ## ------------------------------------ ##
7352 ## Report this to bug-autoconf@gnu.org. ##
7353 ## ------------------------------------ ##
7354 _ASBOX
7355     ) |
7356       sed "s/^/$as_me: WARNING:     /" >&2
7357     ;;
7358 esac
7359 echo "$as_me:$LINENO: checking for $ac_header" >&5
7360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   eval "$as_ac_Header=$ac_header_preproc"
7365 fi
7366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7368
7369 fi
7370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7371   cat >>confdefs.h <<_ACEOF
7372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7373 _ACEOF
7374
7375 fi
7376
7377 done
7378
7379 echo "$as_me:$LINENO: checking for uint32_t" >&5
7380 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388
7389 #include <sys/types.h>
7390 #if HAVE_INTTYPES_H
7391 #include <inttypes.h>
7392 #else
7393 #if HAVE_STDINT_H
7394 #include <stdint.h>
7395 #endif
7396 #endif
7397 int
7398 main ()
7399 {
7400 if ((uint32_t *) 0)
7401   return 0;
7402 if (sizeof (uint32_t))
7403   return 0;
7404
7405   ;
7406   return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411   (eval $ac_compile) 2>&5
7412   ac_status=$?
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } &&
7415          { ac_try='test -s conftest.$ac_objext'
7416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417   (eval $ac_try) 2>&5
7418   ac_status=$?
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); }; }; then
7421
7422
7423 cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_UINT32_T 1
7425 _ACEOF
7426
7427     echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7429
7430 else
7431   echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434 echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7436
7437 fi
7438 rm -f conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: checking for int" >&5
7440 echo $ECHO_N "checking for int... $ECHO_C" >&6
7441 if test "${ac_cv_type_int+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   cat >conftest.$ac_ext <<_ACEOF
7445 #line $LINENO "configure"
7446 /* confdefs.h.  */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h.  */
7451 $ac_includes_default
7452 int
7453 main ()
7454 {
7455 if ((int *) 0)
7456   return 0;
7457 if (sizeof (int))
7458   return 0;
7459   ;
7460   return 0;
7461 }
7462 _ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465   (eval $ac_compile) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } &&
7469          { ac_try='test -s conftest.$ac_objext'
7470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471   (eval $ac_try) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); }; }; then
7475   ac_cv_type_int=yes
7476 else
7477   echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480 ac_cv_type_int=no
7481 fi
7482 rm -f conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7485 echo "${ECHO_T}$ac_cv_type_int" >&6
7486
7487 echo "$as_me:$LINENO: checking size of int" >&5
7488 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7489 if test "${ac_cv_sizeof_int+set}" = set; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492   if test "$ac_cv_type_int" = yes; then
7493   # The cast to unsigned long works around a bug in the HP C Compiler
7494   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7495   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7496   # This bug is HP SR number 8606223364.
7497   if test "$cross_compiling" = yes; then
7498   # Depending upon the size, compute the lo and hi bounds.
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 $ac_includes_default
7507 int
7508 main ()
7509 {
7510 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7511 test_array [0] = 0
7512
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519   (eval $ac_compile) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } &&
7523          { ac_try='test -s conftest.$ac_objext'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   ac_lo=0 ac_mid=0
7530   while :; do
7531     cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 $ac_includes_default
7539 int
7540 main ()
7541 {
7542 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7543 test_array [0] = 0
7544
7545   ;
7546   return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7551   (eval $ac_compile) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); } &&
7555          { ac_try='test -s conftest.$ac_objext'
7556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557   (eval $ac_try) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; }; then
7561   ac_hi=$ac_mid; break
7562 else
7563   echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_lo=`expr $ac_mid + 1`
7567                     if test $ac_lo -le $ac_mid; then
7568                       ac_lo= ac_hi=
7569                       break
7570                     fi
7571                     ac_mid=`expr 2 '*' $ac_mid + 1`
7572 fi
7573 rm -f conftest.$ac_objext conftest.$ac_ext
7574   done
7575 else
7576   echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 /* confdefs.h.  */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h.  */
7586 $ac_includes_default
7587 int
7588 main ()
7589 {
7590 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7591 test_array [0] = 0
7592
7593   ;
7594   return 0;
7595 }
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599   (eval $ac_compile) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); } &&
7603          { ac_try='test -s conftest.$ac_objext'
7604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605   (eval $ac_try) 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; }; then
7609   ac_hi=-1 ac_mid=-1
7610   while :; do
7611     cat >conftest.$ac_ext <<_ACEOF
7612 #line $LINENO "configure"
7613 /* confdefs.h.  */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h.  */
7618 $ac_includes_default
7619 int
7620 main ()
7621 {
7622 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7623 test_array [0] = 0
7624
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631   (eval $ac_compile) 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } &&
7635          { ac_try='test -s conftest.$ac_objext'
7636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637   (eval $ac_try) 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }; }; then
7641   ac_lo=$ac_mid; break
7642 else
7643   echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7645
7646 ac_hi=`expr '(' $ac_mid ')' - 1`
7647                        if test $ac_mid -le $ac_hi; then
7648                          ac_lo= ac_hi=
7649                          break
7650                        fi
7651                        ac_mid=`expr 2 '*' $ac_mid`
7652 fi
7653 rm -f conftest.$ac_objext conftest.$ac_ext
7654   done
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659 ac_lo= ac_hi=
7660 fi
7661 rm -f conftest.$ac_objext conftest.$ac_ext
7662 fi
7663 rm -f conftest.$ac_objext conftest.$ac_ext
7664 # Binary search between lo and hi bounds.
7665 while test "x$ac_lo" != "x$ac_hi"; do
7666   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7667   cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674 $ac_includes_default
7675 int
7676 main ()
7677 {
7678 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7679 test_array [0] = 0
7680
7681   ;
7682   return 0;
7683 }
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687   (eval $ac_compile) 2>&5
7688   ac_status=$?
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); } &&
7691          { ac_try='test -s conftest.$ac_objext'
7692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693   (eval $ac_try) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; }; then
7697   ac_hi=$ac_mid
7698 else
7699   echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7701
7702 ac_lo=`expr '(' $ac_mid ')' + 1`
7703 fi
7704 rm -f conftest.$ac_objext conftest.$ac_ext
7705 done
7706 case $ac_lo in
7707 ?*) ac_cv_sizeof_int=$ac_lo;;
7708 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7709 See \`config.log' for more details." >&5
7710 echo "$as_me: error: cannot compute sizeof (int), 77
7711 See \`config.log' for more details." >&2;}
7712    { (exit 1); exit 1; }; } ;;
7713 esac
7714 else
7715   if test "$cross_compiling" = yes; then
7716   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7717 See \`config.log' for more details." >&5
7718 echo "$as_me: error: cannot run test program while cross compiling
7719 See \`config.log' for more details." >&2;}
7720    { (exit 1); exit 1; }; }
7721 else
7722   cat >conftest.$ac_ext <<_ACEOF
7723 #line $LINENO "configure"
7724 /* confdefs.h.  */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h.  */
7729 $ac_includes_default
7730 long longval () { return (long) (sizeof (int)); }
7731 unsigned long ulongval () { return (long) (sizeof (int)); }
7732 #include <stdio.h>
7733 #include <stdlib.h>
7734 int
7735 main ()
7736 {
7737
7738   FILE *f = fopen ("conftest.val", "w");
7739   if (! f)
7740     exit (1);
7741   if (((long) (sizeof (int))) < 0)
7742     {
7743       long i = longval ();
7744       if (i != ((long) (sizeof (int))))
7745         exit (1);
7746       fprintf (f, "%ld\n", i);
7747     }
7748   else
7749     {
7750       unsigned long i = ulongval ();
7751       if (i != ((long) (sizeof (int))))
7752         exit (1);
7753       fprintf (f, "%lu\n", i);
7754     }
7755   exit (ferror (f) || fclose (f) != 0);
7756
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 rm -f conftest$ac_exeext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7763   (eval $ac_link) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768   (eval $ac_try) 2>&5
7769   ac_status=$?
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); }; }; then
7772   ac_cv_sizeof_int=`cat conftest.val`
7773 else
7774   echo "$as_me: program exited with status $ac_status" >&5
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 ( exit $ac_status )
7779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7780 See \`config.log' for more details." >&5
7781 echo "$as_me: error: cannot compute sizeof (int), 77
7782 See \`config.log' for more details." >&2;}
7783    { (exit 1); exit 1; }; }
7784 fi
7785 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7786 fi
7787 fi
7788 rm -f conftest.val
7789 else
7790   ac_cv_sizeof_int=0
7791 fi
7792 fi
7793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7794 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7795 cat >>confdefs.h <<_ACEOF
7796 #define SIZEOF_INT $ac_cv_sizeof_int
7797 _ACEOF
7798
7799
7800 echo "$as_me:$LINENO: checking for long" >&5
7801 echo $ECHO_N "checking for long... $ECHO_C" >&6
7802 if test "${ac_cv_type_long+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7807 /* confdefs.h.  */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h.  */
7812 $ac_includes_default
7813 int
7814 main ()
7815 {
7816 if ((long *) 0)
7817   return 0;
7818 if (sizeof (long))
7819   return 0;
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826   (eval $ac_compile) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } &&
7830          { ac_try='test -s conftest.$ac_objext'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   ac_cv_type_long=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841 ac_cv_type_long=no
7842 fi
7843 rm -f conftest.$ac_objext conftest.$ac_ext
7844 fi
7845 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7846 echo "${ECHO_T}$ac_cv_type_long" >&6
7847
7848 echo "$as_me:$LINENO: checking size of long" >&5
7849 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7850 if test "${ac_cv_sizeof_long+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   if test "$ac_cv_type_long" = yes; then
7854   # The cast to unsigned long works around a bug in the HP C Compiler
7855   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7856   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7857   # This bug is HP SR number 8606223364.
7858   if test "$cross_compiling" = yes; then
7859   # Depending upon the size, compute the lo and hi bounds.
7860 cat >conftest.$ac_ext <<_ACEOF
7861 #line $LINENO "configure"
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867 $ac_includes_default
7868 int
7869 main ()
7870 {
7871 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7872 test_array [0] = 0
7873
7874   ;
7875   return 0;
7876 }
7877 _ACEOF
7878 rm -f conftest.$ac_objext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7880   (eval $ac_compile) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); } &&
7884          { ac_try='test -s conftest.$ac_objext'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; }; then
7890   ac_lo=0 ac_mid=0
7891   while :; do
7892     cat >conftest.$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7894 /* confdefs.h.  */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h.  */
7899 $ac_includes_default
7900 int
7901 main ()
7902 {
7903 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7904 test_array [0] = 0
7905
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912   (eval $ac_compile) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } &&
7916          { ac_try='test -s conftest.$ac_objext'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   ac_hi=$ac_mid; break
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 ac_lo=`expr $ac_mid + 1`
7928                     if test $ac_lo -le $ac_mid; then
7929                       ac_lo= ac_hi=
7930                       break
7931                     fi
7932                     ac_mid=`expr 2 '*' $ac_mid + 1`
7933 fi
7934 rm -f conftest.$ac_objext conftest.$ac_ext
7935   done
7936 else
7937   echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 cat >conftest.$ac_ext <<_ACEOF
7941 #line $LINENO "configure"
7942 /* confdefs.h.  */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h.  */
7947 $ac_includes_default
7948 int
7949 main ()
7950 {
7951 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7952 test_array [0] = 0
7953
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 rm -f conftest.$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960   (eval $ac_compile) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } &&
7964          { ac_try='test -s conftest.$ac_objext'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   ac_hi=-1 ac_mid=-1
7971   while :; do
7972     cat >conftest.$ac_ext <<_ACEOF
7973 #line $LINENO "configure"
7974 /* confdefs.h.  */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h.  */
7979 $ac_includes_default
7980 int
7981 main ()
7982 {
7983 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7984 test_array [0] = 0
7985
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992   (eval $ac_compile) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); } &&
7996          { ac_try='test -s conftest.$ac_objext'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; }; then
8002   ac_lo=$ac_mid; break
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007 ac_hi=`expr '(' $ac_mid ')' - 1`
8008                        if test $ac_mid -le $ac_hi; then
8009                          ac_lo= ac_hi=
8010                          break
8011                        fi
8012                        ac_mid=`expr 2 '*' $ac_mid`
8013 fi
8014 rm -f conftest.$ac_objext conftest.$ac_ext
8015   done
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 ac_lo= ac_hi=
8021 fi
8022 rm -f conftest.$ac_objext conftest.$ac_ext
8023 fi
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8025 # Binary search between lo and hi bounds.
8026 while test "x$ac_lo" != "x$ac_hi"; do
8027   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8028   cat >conftest.$ac_ext <<_ACEOF
8029 #line $LINENO "configure"
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035 $ac_includes_default
8036 int
8037 main ()
8038 {
8039 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8040 test_array [0] = 0
8041
8042   ;
8043   return 0;
8044 }
8045 _ACEOF
8046 rm -f conftest.$ac_objext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048   (eval $ac_compile) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -s conftest.$ac_objext'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; }; then
8058   ac_hi=$ac_mid
8059 else
8060   echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_lo=`expr '(' $ac_mid ')' + 1`
8064 fi
8065 rm -f conftest.$ac_objext conftest.$ac_ext
8066 done
8067 case $ac_lo in
8068 ?*) ac_cv_sizeof_long=$ac_lo;;
8069 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8070 See \`config.log' for more details." >&5
8071 echo "$as_me: error: cannot compute sizeof (long), 77
8072 See \`config.log' for more details." >&2;}
8073    { (exit 1); exit 1; }; } ;;
8074 esac
8075 else
8076   if test "$cross_compiling" = yes; then
8077   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8078 See \`config.log' for more details." >&5
8079 echo "$as_me: error: cannot run test program while cross compiling
8080 See \`config.log' for more details." >&2;}
8081    { (exit 1); exit 1; }; }
8082 else
8083   cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 $ac_includes_default
8091 long longval () { return (long) (sizeof (long)); }
8092 unsigned long ulongval () { return (long) (sizeof (long)); }
8093 #include <stdio.h>
8094 #include <stdlib.h>
8095 int
8096 main ()
8097 {
8098
8099   FILE *f = fopen ("conftest.val", "w");
8100   if (! f)
8101     exit (1);
8102   if (((long) (sizeof (long))) < 0)
8103     {
8104       long i = longval ();
8105       if (i != ((long) (sizeof (long))))
8106         exit (1);
8107       fprintf (f, "%ld\n", i);
8108     }
8109   else
8110     {
8111       unsigned long i = ulongval ();
8112       if (i != ((long) (sizeof (long))))
8113         exit (1);
8114       fprintf (f, "%lu\n", i);
8115     }
8116   exit (ferror (f) || fclose (f) != 0);
8117
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124   (eval $ac_link) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129   (eval $ac_try) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); }; }; then
8133   ac_cv_sizeof_long=`cat conftest.val`
8134 else
8135   echo "$as_me: program exited with status $ac_status" >&5
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ( exit $ac_status )
8140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8141 See \`config.log' for more details." >&5
8142 echo "$as_me: error: cannot compute sizeof (long), 77
8143 See \`config.log' for more details." >&2;}
8144    { (exit 1); exit 1; }; }
8145 fi
8146 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8147 fi
8148 fi
8149 rm -f conftest.val
8150 else
8151   ac_cv_sizeof_long=0
8152 fi
8153 fi
8154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8155 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8156 cat >>confdefs.h <<_ACEOF
8157 #define SIZEOF_LONG $ac_cv_sizeof_long
8158 _ACEOF
8159
8160
8161
8162 echo "$as_me:$LINENO: checking for pid_t" >&5
8163 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8164 if test "${ac_cv_type_pid_t+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   cat >conftest.$ac_ext <<_ACEOF
8168 #line $LINENO "configure"
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 $ac_includes_default
8175 int
8176 main ()
8177 {
8178 if ((pid_t *) 0)
8179   return 0;
8180 if (sizeof (pid_t))
8181   return 0;
8182   ;
8183   return 0;
8184 }
8185 _ACEOF
8186 rm -f conftest.$ac_objext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188   (eval $ac_compile) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } &&
8192          { ac_try='test -s conftest.$ac_objext'
8193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194   (eval $ac_try) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   ac_cv_type_pid_t=yes
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 ac_cv_type_pid_t=no
8204 fi
8205 rm -f conftest.$ac_objext conftest.$ac_ext
8206 fi
8207 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8208 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8209 if test $ac_cv_type_pid_t = yes; then
8210   :
8211 else
8212
8213 cat >>confdefs.h <<_ACEOF
8214 #define pid_t int
8215 _ACEOF
8216
8217 fi
8218
8219
8220
8221
8222
8223
8224
8225 for ac_func in fgetpos memmove setegid srand48 strerror
8226 do
8227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8228 echo "$as_me:$LINENO: checking for $ac_func" >&5
8229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8230 if eval "test \"\${$as_ac_var+set}\" = set"; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   cat >conftest.$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240 /* System header to define __stub macros and hopefully few prototypes,
8241     which can conflict with char $ac_func (); below.
8242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8243     <limits.h> exists even on freestanding compilers.  */
8244 #ifdef __STDC__
8245 # include <limits.h>
8246 #else
8247 # include <assert.h>
8248 #endif
8249 /* Override any gcc2 internal prototype to avoid an error.  */
8250 #ifdef __cplusplus
8251 extern "C"
8252 {
8253 #endif
8254 /* We use char because int might match the return type of a gcc2
8255    builtin and then its argument prototype would still apply.  */
8256 char $ac_func ();
8257 /* The GNU C library defines this for functions which it implements
8258     to always fail with ENOSYS.  Some functions are actually named
8259     something starting with __ and the normal name is an alias.  */
8260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8261 choke me
8262 #else
8263 char (*f) () = $ac_func;
8264 #endif
8265 #ifdef __cplusplus
8266 }
8267 #endif
8268
8269 int
8270 main ()
8271 {
8272 return f != $ac_func;
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279   (eval $ac_link) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } &&
8283          { ac_try='test -s conftest$ac_exeext'
8284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285   (eval $ac_try) 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; }; then
8289   eval "$as_ac_var=yes"
8290 else
8291   echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 eval "$as_ac_var=no"
8295 fi
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 fi
8298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8300 if test `eval echo '${'$as_ac_var'}'` = yes; then
8301   cat >>confdefs.h <<_ACEOF
8302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8303 _ACEOF
8304
8305 fi
8306 done
8307
8308
8309
8310
8311 for ac_func in strcasecmp strdup
8312 do
8313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8314 echo "$as_me:$LINENO: checking for $ac_func" >&5
8315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8316 if eval "test \"\${$as_ac_var+set}\" = set"; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319   cat >conftest.$ac_ext <<_ACEOF
8320 #line $LINENO "configure"
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326 /* System header to define __stub macros and hopefully few prototypes,
8327     which can conflict with char $ac_func (); below.
8328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8329     <limits.h> exists even on freestanding compilers.  */
8330 #ifdef __STDC__
8331 # include <limits.h>
8332 #else
8333 # include <assert.h>
8334 #endif
8335 /* Override any gcc2 internal prototype to avoid an error.  */
8336 #ifdef __cplusplus
8337 extern "C"
8338 {
8339 #endif
8340 /* We use char because int might match the return type of a gcc2
8341    builtin and then its argument prototype would still apply.  */
8342 char $ac_func ();
8343 /* The GNU C library defines this for functions which it implements
8344     to always fail with ENOSYS.  Some functions are actually named
8345     something starting with __ and the normal name is an alias.  */
8346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8347 choke me
8348 #else
8349 char (*f) () = $ac_func;
8350 #endif
8351 #ifdef __cplusplus
8352 }
8353 #endif
8354
8355 int
8356 main ()
8357 {
8358 return f != $ac_func;
8359   ;
8360   return 0;
8361 }
8362 _ACEOF
8363 rm -f conftest.$ac_objext conftest$ac_exeext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8365   (eval $ac_link) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } &&
8369          { ac_try='test -s conftest$ac_exeext'
8370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371   (eval $ac_try) 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   eval "$as_ac_var=yes"
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380 eval "$as_ac_var=no"
8381 fi
8382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8383 fi
8384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8386 if test `eval echo '${'$as_ac_var'}'` = yes; then
8387   cat >>confdefs.h <<_ACEOF
8388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8389 _ACEOF
8390
8391 else
8392   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8393 fi
8394 done
8395
8396
8397
8398 echo "$as_me:$LINENO: checking for getopt" >&5
8399 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8400 if test "${ac_cv_func_getopt+set}" = set; then
8401   echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403   cat >conftest.$ac_ext <<_ACEOF
8404 #line $LINENO "configure"
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410 /* System header to define __stub macros and hopefully few prototypes,
8411     which can conflict with char getopt (); below.
8412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8413     <limits.h> exists even on freestanding compilers.  */
8414 #ifdef __STDC__
8415 # include <limits.h>
8416 #else
8417 # include <assert.h>
8418 #endif
8419 /* Override any gcc2 internal prototype to avoid an error.  */
8420 #ifdef __cplusplus
8421 extern "C"
8422 {
8423 #endif
8424 /* We use char because int might match the return type of a gcc2
8425    builtin and then its argument prototype would still apply.  */
8426 char getopt ();
8427 /* The GNU C library defines this for functions which it implements
8428     to always fail with ENOSYS.  Some functions are actually named
8429     something starting with __ and the normal name is an alias.  */
8430 #if defined (__stub_getopt) || defined (__stub___getopt)
8431 choke me
8432 #else
8433 char (*f) () = getopt;
8434 #endif
8435 #ifdef __cplusplus
8436 }
8437 #endif
8438
8439 int
8440 main ()
8441 {
8442 return f != getopt;
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449   (eval $ac_link) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } &&
8453          { ac_try='test -s conftest$ac_exeext'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then
8459   ac_cv_func_getopt=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_func_getopt=no
8465 fi
8466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8467 fi
8468 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8469 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8470
8471 if test $ac_cv_func_getopt = yes; then
8472
8473 for ac_header in getopt.h
8474 do
8475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477   echo "$as_me:$LINENO: checking for $ac_header" >&5
8478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 fi
8482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8484 else
8485   # Is the header compilable?
8486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8488 cat >conftest.$ac_ext <<_ACEOF
8489 #line $LINENO "configure"
8490 /* confdefs.h.  */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h.  */
8495 $ac_includes_default
8496 #include <$ac_header>
8497 _ACEOF
8498 rm -f conftest.$ac_objext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500   (eval $ac_compile) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); } &&
8504          { ac_try='test -s conftest.$ac_objext'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_header_compiler=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ac_header_compiler=no
8516 fi
8517 rm -f conftest.$ac_objext conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519 echo "${ECHO_T}$ac_header_compiler" >&6
8520
8521 # Is the header present?
8522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8524 cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 #include <$ac_header>
8532 _ACEOF
8533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8535   ac_status=$?
8536   grep -v '^ *+' conftest.er1 >conftest.err
8537   rm -f conftest.er1
8538   cat conftest.err >&5
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } >/dev/null; then
8541   if test -s conftest.err; then
8542     ac_cpp_err=$ac_c_preproc_warn_flag
8543   else
8544     ac_cpp_err=
8545   fi
8546 else
8547   ac_cpp_err=yes
8548 fi
8549 if test -z "$ac_cpp_err"; then
8550   ac_header_preproc=yes
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555   ac_header_preproc=no
8556 fi
8557 rm -f conftest.err conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559 echo "${ECHO_T}$ac_header_preproc" >&6
8560
8561 # So?  What about this header?
8562 case $ac_header_compiler:$ac_header_preproc in
8563   yes:no )
8564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8568     (
8569       cat <<\_ASBOX
8570 ## ------------------------------------ ##
8571 ## Report this to bug-autoconf@gnu.org. ##
8572 ## ------------------------------------ ##
8573 _ASBOX
8574     ) |
8575       sed "s/^/$as_me: WARNING:     /" >&2
8576     ;;
8577   no:yes )
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8584     (
8585       cat <<\_ASBOX
8586 ## ------------------------------------ ##
8587 ## Report this to bug-autoconf@gnu.org. ##
8588 ## ------------------------------------ ##
8589 _ASBOX
8590     ) |
8591       sed "s/^/$as_me: WARNING:     /" >&2
8592     ;;
8593 esac
8594 echo "$as_me:$LINENO: checking for $ac_header" >&5
8595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   eval "$as_ac_Header=$ac_header_preproc"
8600 fi
8601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8603
8604 fi
8605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8606   cat >>confdefs.h <<_ACEOF
8607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8608 _ACEOF
8609
8610 fi
8611
8612 done
8613
8614 fi
8615
8616 mutt_cv_snprintf=no
8617 SNPRINTFOBJS=""
8618
8619 for ac_func in snprintf
8620 do
8621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8622 echo "$as_me:$LINENO: checking for $ac_func" >&5
8623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8624 if eval "test \"\${$as_ac_var+set}\" = set"; then
8625   echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627   cat >conftest.$ac_ext <<_ACEOF
8628 #line $LINENO "configure"
8629 /* confdefs.h.  */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h.  */
8634 /* System header to define __stub macros and hopefully few prototypes,
8635     which can conflict with char $ac_func (); below.
8636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8637     <limits.h> exists even on freestanding compilers.  */
8638 #ifdef __STDC__
8639 # include <limits.h>
8640 #else
8641 # include <assert.h>
8642 #endif
8643 /* Override any gcc2 internal prototype to avoid an error.  */
8644 #ifdef __cplusplus
8645 extern "C"
8646 {
8647 #endif
8648 /* We use char because int might match the return type of a gcc2
8649    builtin and then its argument prototype would still apply.  */
8650 char $ac_func ();
8651 /* The GNU C library defines this for functions which it implements
8652     to always fail with ENOSYS.  Some functions are actually named
8653     something starting with __ and the normal name is an alias.  */
8654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8655 choke me
8656 #else
8657 char (*f) () = $ac_func;
8658 #endif
8659 #ifdef __cplusplus
8660 }
8661 #endif
8662
8663 int
8664 main ()
8665 {
8666 return f != $ac_func;
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673   (eval $ac_link) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } &&
8677          { ac_try='test -s conftest$ac_exeext'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; }; then
8683   eval "$as_ac_var=yes"
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 eval "$as_ac_var=no"
8689 fi
8690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8691 fi
8692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8694 if test `eval echo '${'$as_ac_var'}'` = yes; then
8695   cat >>confdefs.h <<_ACEOF
8696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8697 _ACEOF
8698
8699 else
8700   mutt_cv_snprintf=yes
8701 fi
8702 done
8703
8704
8705 for ac_func in vsnprintf
8706 do
8707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8708 echo "$as_me:$LINENO: checking for $ac_func" >&5
8709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8710 if eval "test \"\${$as_ac_var+set}\" = set"; then
8711   echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713   cat >conftest.$ac_ext <<_ACEOF
8714 #line $LINENO "configure"
8715 /* confdefs.h.  */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h.  */
8720 /* System header to define __stub macros and hopefully few prototypes,
8721     which can conflict with char $ac_func (); below.
8722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8723     <limits.h> exists even on freestanding compilers.  */
8724 #ifdef __STDC__
8725 # include <limits.h>
8726 #else
8727 # include <assert.h>
8728 #endif
8729 /* Override any gcc2 internal prototype to avoid an error.  */
8730 #ifdef __cplusplus
8731 extern "C"
8732 {
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735    builtin and then its argument prototype would still apply.  */
8736 char $ac_func ();
8737 /* The GNU C library defines this for functions which it implements
8738     to always fail with ENOSYS.  Some functions are actually named
8739     something starting with __ and the normal name is an alias.  */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8741 choke me
8742 #else
8743 char (*f) () = $ac_func;
8744 #endif
8745 #ifdef __cplusplus
8746 }
8747 #endif
8748
8749 int
8750 main ()
8751 {
8752 return f != $ac_func;
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759   (eval $ac_link) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } &&
8763          { ac_try='test -s conftest$ac_exeext'
8764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765   (eval $ac_try) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; }; then
8769   eval "$as_ac_var=yes"
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 eval "$as_ac_var=no"
8775 fi
8776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8777 fi
8778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8780 if test `eval echo '${'$as_ac_var'}'` = yes; then
8781   cat >>confdefs.h <<_ACEOF
8782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8783 _ACEOF
8784
8785 else
8786   mutt_cv_snprintf=yes
8787 fi
8788 done
8789
8790 if test $mutt_cv_snprintf = yes; then
8791         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8792 fi
8793
8794
8795 for ac_func in ftruncate
8796 do
8797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8798 echo "$as_me:$LINENO: checking for $ac_func" >&5
8799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8800 if eval "test \"\${$as_ac_var+set}\" = set"; then
8801   echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803   cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810 /* System header to define __stub macros and hopefully few prototypes,
8811     which can conflict with char $ac_func (); below.
8812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8813     <limits.h> exists even on freestanding compilers.  */
8814 #ifdef __STDC__
8815 # include <limits.h>
8816 #else
8817 # include <assert.h>
8818 #endif
8819 /* Override any gcc2 internal prototype to avoid an error.  */
8820 #ifdef __cplusplus
8821 extern "C"
8822 {
8823 #endif
8824 /* We use char because int might match the return type of a gcc2
8825    builtin and then its argument prototype would still apply.  */
8826 char $ac_func ();
8827 /* The GNU C library defines this for functions which it implements
8828     to always fail with ENOSYS.  Some functions are actually named
8829     something starting with __ and the normal name is an alias.  */
8830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8831 choke me
8832 #else
8833 char (*f) () = $ac_func;
8834 #endif
8835 #ifdef __cplusplus
8836 }
8837 #endif
8838
8839 int
8840 main ()
8841 {
8842 return f != $ac_func;
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8849   (eval $ac_link) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); } &&
8853          { ac_try='test -s conftest$ac_exeext'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   eval "$as_ac_var=yes"
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864 eval "$as_ac_var=no"
8865 fi
8866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8867 fi
8868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8870 if test `eval echo '${'$as_ac_var'}'` = yes; then
8871   cat >>confdefs.h <<_ACEOF
8872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8873 _ACEOF
8874
8875 else
8876
8877 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8878 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8879 if test "${ac_cv_lib_x_chsize+set}" = set; then
8880   echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882   ac_check_lib_save_LIBS=$LIBS
8883 LIBS="-lx  $LIBS"
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891
8892 /* Override any gcc2 internal prototype to avoid an error.  */
8893 #ifdef __cplusplus
8894 extern "C"
8895 #endif
8896 /* We use char because int might match the return type of a gcc2
8897    builtin and then its argument prototype would still apply.  */
8898 char chsize ();
8899 int
8900 main ()
8901 {
8902 chsize ();
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909   (eval $ac_link) 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } &&
8913          { ac_try='test -s conftest$ac_exeext'
8914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915   (eval $ac_try) 2>&5
8916   ac_status=$?
8917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   (exit $ac_status); }; }; then
8919   ac_cv_lib_x_chsize=yes
8920 else
8921   echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924 ac_cv_lib_x_chsize=no
8925 fi
8926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8928 fi
8929 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8930 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8931 if test $ac_cv_lib_x_chsize = yes; then
8932   cat >>confdefs.h <<_ACEOF
8933 #define HAVE_LIBX 1
8934 _ACEOF
8935
8936   LIBS="-lx $LIBS"
8937
8938 fi
8939
8940 fi
8941 done
8942
8943
8944
8945 for ac_func in strftime
8946 do
8947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8948 echo "$as_me:$LINENO: checking for $ac_func" >&5
8949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8950 if eval "test \"\${$as_ac_var+set}\" = set"; then
8951   echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953   cat >conftest.$ac_ext <<_ACEOF
8954 #line $LINENO "configure"
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960 /* System header to define __stub macros and hopefully few prototypes,
8961     which can conflict with char $ac_func (); below.
8962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8963     <limits.h> exists even on freestanding compilers.  */
8964 #ifdef __STDC__
8965 # include <limits.h>
8966 #else
8967 # include <assert.h>
8968 #endif
8969 /* Override any gcc2 internal prototype to avoid an error.  */
8970 #ifdef __cplusplus
8971 extern "C"
8972 {
8973 #endif
8974 /* We use char because int might match the return type of a gcc2
8975    builtin and then its argument prototype would still apply.  */
8976 char $ac_func ();
8977 /* The GNU C library defines this for functions which it implements
8978     to always fail with ENOSYS.  Some functions are actually named
8979     something starting with __ and the normal name is an alias.  */
8980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8981 choke me
8982 #else
8983 char (*f) () = $ac_func;
8984 #endif
8985 #ifdef __cplusplus
8986 }
8987 #endif
8988
8989 int
8990 main ()
8991 {
8992 return f != $ac_func;
8993   ;
8994   return 0;
8995 }
8996 _ACEOF
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999   (eval $ac_link) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } &&
9003          { ac_try='test -s conftest$ac_exeext'
9004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005   (eval $ac_try) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; }; then
9009   eval "$as_ac_var=yes"
9010 else
9011   echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 eval "$as_ac_var=no"
9015 fi
9016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9017 fi
9018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9020 if test `eval echo '${'$as_ac_var'}'` = yes; then
9021   cat >>confdefs.h <<_ACEOF
9022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9023 _ACEOF
9024
9025 else
9026
9027 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9028 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9029 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032   ac_check_lib_save_LIBS=$LIBS
9033 LIBS="-lintl  $LIBS"
9034 cat >conftest.$ac_ext <<_ACEOF
9035 #line $LINENO "configure"
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 /* Override any gcc2 internal prototype to avoid an error.  */
9043 #ifdef __cplusplus
9044 extern "C"
9045 #endif
9046 /* We use char because int might match the return type of a gcc2
9047    builtin and then its argument prototype would still apply.  */
9048 char strftime ();
9049 int
9050 main ()
9051 {
9052 strftime ();
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059   (eval $ac_link) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); } &&
9063          { ac_try='test -s conftest$ac_exeext'
9064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065   (eval $ac_try) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); }; }; then
9069   ac_cv_lib_intl_strftime=yes
9070 else
9071   echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074 ac_cv_lib_intl_strftime=no
9075 fi
9076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9078 fi
9079 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9080 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9081 if test $ac_cv_lib_intl_strftime = yes; then
9082   cat >>confdefs.h <<_ACEOF
9083 #define HAVE_LIBINTL 1
9084 _ACEOF
9085
9086   LIBS="-lintl $LIBS"
9087
9088 fi
9089
9090 fi
9091 done
9092
9093
9094
9095 for ac_func in fchdir
9096 do
9097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9098 echo "$as_me:$LINENO: checking for $ac_func" >&5
9099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9100 if eval "test \"\${$as_ac_var+set}\" = set"; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110 /* System header to define __stub macros and hopefully few prototypes,
9111     which can conflict with char $ac_func (); below.
9112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9113     <limits.h> exists even on freestanding compilers.  */
9114 #ifdef __STDC__
9115 # include <limits.h>
9116 #else
9117 # include <assert.h>
9118 #endif
9119 /* Override any gcc2 internal prototype to avoid an error.  */
9120 #ifdef __cplusplus
9121 extern "C"
9122 {
9123 #endif
9124 /* We use char because int might match the return type of a gcc2
9125    builtin and then its argument prototype would still apply.  */
9126 char $ac_func ();
9127 /* The GNU C library defines this for functions which it implements
9128     to always fail with ENOSYS.  Some functions are actually named
9129     something starting with __ and the normal name is an alias.  */
9130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9131 choke me
9132 #else
9133 char (*f) () = $ac_func;
9134 #endif
9135 #ifdef __cplusplus
9136 }
9137 #endif
9138
9139 int
9140 main ()
9141 {
9142 return f != $ac_func;
9143   ;
9144   return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149   (eval $ac_link) 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -s conftest$ac_exeext'
9154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155   (eval $ac_try) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); }; }; then
9159   eval "$as_ac_var=yes"
9160 else
9161   echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9163
9164 eval "$as_ac_var=no"
9165 fi
9166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9167 fi
9168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9170 if test `eval echo '${'$as_ac_var'}'` = yes; then
9171   cat >>confdefs.h <<_ACEOF
9172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9173 _ACEOF
9174
9175 else
9176   mutt_cv_fchdir=no
9177 fi
9178 done
9179
9180
9181
9182 # Check whether --with-regex or --without-regex was given.
9183 if test "${with_regex+set}" = set; then
9184   withval="$with_regex"
9185   mutt_cv_regex=yes
9186 else
9187
9188 for ac_func in regcomp
9189 do
9190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9191 echo "$as_me:$LINENO: checking for $ac_func" >&5
9192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_var+set}\" = set"; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   cat >conftest.$ac_ext <<_ACEOF
9197 #line $LINENO "configure"
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203 /* System header to define __stub macros and hopefully few prototypes,
9204     which can conflict with char $ac_func (); below.
9205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9206     <limits.h> exists even on freestanding compilers.  */
9207 #ifdef __STDC__
9208 # include <limits.h>
9209 #else
9210 # include <assert.h>
9211 #endif
9212 /* Override any gcc2 internal prototype to avoid an error.  */
9213 #ifdef __cplusplus
9214 extern "C"
9215 {
9216 #endif
9217 /* We use char because int might match the return type of a gcc2
9218    builtin and then its argument prototype would still apply.  */
9219 char $ac_func ();
9220 /* The GNU C library defines this for functions which it implements
9221     to always fail with ENOSYS.  Some functions are actually named
9222     something starting with __ and the normal name is an alias.  */
9223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9224 choke me
9225 #else
9226 char (*f) () = $ac_func;
9227 #endif
9228 #ifdef __cplusplus
9229 }
9230 #endif
9231
9232 int
9233 main ()
9234 {
9235 return f != $ac_func;
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9242   (eval $ac_link) 2>&5
9243   ac_status=$?
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); } &&
9246          { ac_try='test -s conftest$ac_exeext'
9247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248   (eval $ac_try) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; }; then
9252   eval "$as_ac_var=yes"
9253 else
9254   echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257 eval "$as_ac_var=no"
9258 fi
9259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9260 fi
9261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9263 if test `eval echo '${'$as_ac_var'}'` = yes; then
9264   cat >>confdefs.h <<_ACEOF
9265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9266 _ACEOF
9267  mutt_cv_regex=no
9268 else
9269   mutt_cv_regex=yes
9270 fi
9271 done
9272
9273 fi;
9274
9275 if test $mutt_cv_regex = no ; then
9276 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9277 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9278 if test "${mutt_cv_regex_broken+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   if test "$cross_compiling" = yes; then
9282   mutt_cv_regex_broken=yes
9283 else
9284   cat >conftest.$ac_ext <<_ACEOF
9285 #line $LINENO "configure"
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291
9292 #include <unistd.h>
9293 #include <regex.h>
9294 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); }
9295 _ACEOF
9296 rm -f conftest$ac_exeext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298   (eval $ac_link) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303   (eval $ac_try) 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); }; }; then
9307   mutt_cv_regex_broken=no
9308 else
9309   echo "$as_me: program exited with status $ac_status" >&5
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9312
9313 ( exit $ac_status )
9314 mutt_cv_regex_broken=yes
9315 fi
9316 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9317 fi
9318 fi
9319 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9320 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9321         if test $mutt_cv_regex_broken = yes ; then
9322                 echo "Using the included GNU regex instead." >&6
9323                 mutt_cv_regex=yes
9324         fi
9325 fi
9326
9327 if test $mutt_cv_regex = yes; then
9328
9329 cat >>confdefs.h <<\_ACEOF
9330 #define USE_GNU_REGEX 1
9331 _ACEOF
9332
9333         LIBOBJS="$LIBOBJS regex.$ac_objext"
9334 fi
9335
9336
9337
9338 # Check whether --with-homespool or --without-homespool was given.
9339 if test "${with_homespool+set}" = set; then
9340   withval="$with_homespool"
9341   with_homespool=${withval}
9342 fi;
9343 if test x$with_homespool != x; then
9344         if test $with_homespool = yes; then
9345                 with_homespool=mailbox
9346         fi
9347
9348 cat >>confdefs.h <<_ACEOF
9349 #define MAILPATH "$with_homespool"
9350 _ACEOF
9351
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define HOMESPOOL 1
9355 _ACEOF
9356
9357
9358 cat >>confdefs.h <<\_ACEOF
9359 #define USE_DOTLOCK 1
9360 _ACEOF
9361
9362         mutt_cv_setgid=no
9363 else
9364
9365 # Check whether --with-mailpath or --without-mailpath was given.
9366 if test "${with_mailpath+set}" = set; then
9367   withval="$with_mailpath"
9368   mutt_cv_mailpath=$withval
9369 else
9370    echo "$as_me:$LINENO: checking where new mail is stored" >&5
9371 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9372 if test "${mutt_cv_mailpath+set}" = set; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   mutt_cv_mailpath=no
9376                         if test -d /var/mail; then
9377                                 mutt_cv_mailpath=/var/mail
9378                         elif test -d /var/spool/mail; then
9379                                 mutt_cv_mailpath=/var/spool/mail
9380                         elif test -d /usr/spool/mail; then
9381                                 mutt_cv_mailpath=/usr/spool/mail
9382                         elif test -d /usr/mail; then
9383                                 mutt_cv_mailpath=/usr/mail
9384                         fi
9385 fi
9386 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9387 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9388
9389 fi;
9390         if test "$mutt_cv_mailpath" = no; then
9391                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9392 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9393    { (exit 1); exit 1; }; }
9394         fi
9395
9396 cat >>confdefs.h <<_ACEOF
9397 #define MAILPATH "$mutt_cv_mailpath"
9398 _ACEOF
9399
9400
9401         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9402 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9403 if test "${mutt_cv_worldwrite+set}" = set; then
9404   echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406   if test "$cross_compiling" = yes; then
9407   mutt_cv_worldwrite=no
9408 else
9409   cat >conftest.$ac_ext <<_ACEOF
9410 #line $LINENO "configure"
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416 #include <sys/types.h>
9417 #include <sys/stat.h>
9418
9419 int main (int argc, char **argv)
9420 {
9421         struct stat s;
9422
9423         stat ("$mutt_cv_mailpath", &s);
9424         if (s.st_mode & S_IWOTH) exit (0);
9425         exit (1);
9426 }
9427 _ACEOF
9428 rm -f conftest$ac_exeext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430   (eval $ac_link) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; }; then
9439   mutt_cv_worldwrite=yes
9440 else
9441   echo "$as_me: program exited with status $ac_status" >&5
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 ( exit $ac_status )
9446 mutt_cv_worldwrite=no
9447 fi
9448 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 fi
9451 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9452 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9453
9454         mutt_cv_setgid=no
9455         if test $mutt_cv_worldwrite = yes; then
9456
9457 cat >>confdefs.h <<\_ACEOF
9458 #define USE_DOTLOCK 1
9459 _ACEOF
9460
9461         else
9462
9463                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9464 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9465 if test "${mutt_cv_groupwrite+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   if test "$cross_compiling" = yes; then
9469   mutt_cv_groupwrite=no
9470 else
9471   cat >conftest.$ac_ext <<_ACEOF
9472 #line $LINENO "configure"
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478 #include <sys/types.h>
9479 #include <sys/stat.h>
9480
9481 int main (int argc, char **argv)
9482 {
9483         struct stat s;
9484
9485         stat ("$mutt_cv_mailpath", &s);
9486         if (s.st_mode & S_IWGRP) exit (0);
9487         exit (1);
9488 }
9489 _ACEOF
9490 rm -f conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492   (eval $ac_link) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   mutt_cv_groupwrite=yes
9502 else
9503   echo "$as_me: program exited with status $ac_status" >&5
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9506
9507 ( exit $ac_status )
9508 mutt_cv_groupwrite=no
9509 fi
9510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9511 fi
9512 fi
9513 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9514 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9515
9516                 if test $mutt_cv_groupwrite = yes; then
9517
9518 cat >>confdefs.h <<\_ACEOF
9519 #define USE_DOTLOCK 1
9520 _ACEOF
9521
9522
9523 cat >>confdefs.h <<\_ACEOF
9524 #define USE_SETGID 1
9525 _ACEOF
9526
9527                         mutt_cv_setgid=yes
9528                 fi
9529         fi
9530 fi
9531
9532 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9533 if test "${enable_external_dotlock+set}" = set; then
9534   enableval="$enable_external_dotlock"
9535   mutt_cv_external_dotlock="$enableval"
9536 fi;
9537
9538 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9539         || test "x$mutt_cv_external_dotlock" = "xyes"
9540 then
9541
9542 cat >>confdefs.h <<\_ACEOF
9543 #define DL_STANDALONE 1
9544 _ACEOF
9545
9546         DOTLOCK_TARGET="mutt_dotlock"
9547 else
9548         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9549 fi
9550
9551
9552
9553
9554 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9555 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9556
9557 # Check whether --with-docdir or --without-docdir was given.
9558 if test "${with_docdir+set}" = set; then
9559   withval="$with_docdir"
9560   mutt_cv_docdir=$withval
9561 else
9562   mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
9563 fi;
9564 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9565 echo "${ECHO_T}$mutt_cv_docdir" >&6
9566
9567 docdir=$mutt_cv_docdir
9568
9569
9570 if test x$mutt_cv_setgid = xyes; then
9571         DOTLOCK_GROUP='mail'
9572         DOTLOCK_PERMISSION=2755
9573 else
9574         DOTLOCK_GROUP=''
9575         DOTLOCK_PERMISSION=755
9576 fi
9577
9578
9579
9580
9581 # Check whether --with-domain or --without-domain was given.
9582 if test "${with_domain+set}" = set; then
9583   withval="$with_domain"
9584   if test $withval != yes; then
9585
9586 cat >>confdefs.h <<_ACEOF
9587 #define DOMAIN "$withval"
9588 _ACEOF
9589
9590         fi
9591 fi;
9592
9593 need_socket="no"
9594
9595
9596 # Check whether --enable-pop or --disable-pop was given.
9597 if test "${enable_pop+set}" = set; then
9598   enableval="$enable_pop"
9599          if test x$enableval = xyes ; then
9600
9601 cat >>confdefs.h <<\_ACEOF
9602 #define USE_POP 1
9603 _ACEOF
9604
9605                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9606                 need_socket="yes"
9607                 need_md5="yes"
9608         fi
9609
9610 fi;
9611
9612 # Check whether --enable-imap or --disable-imap was given.
9613 if test "${enable_imap+set}" = set; then
9614   enableval="$enable_imap"
9615          if test x$enableval = xyes ; then
9616
9617 cat >>confdefs.h <<\_ACEOF
9618 #define USE_IMAP 1
9619 _ACEOF
9620
9621                 LIBIMAP="-Limap -limap"
9622                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9623                 need_imap="yes"
9624                 need_socket="yes"
9625                 need_md5="yes"
9626         fi
9627
9628 fi;
9629
9630
9631 if test x$need_imap = xyes; then
9632   BUILD_IMAP_TRUE=
9633   BUILD_IMAP_FALSE='#'
9634 else
9635   BUILD_IMAP_TRUE='#'
9636   BUILD_IMAP_FALSE=
9637 fi
9638
9639
9640 # Check whether --enable-nntp or --disable-nntp was given.
9641 if test "${enable_nntp+set}" = set; then
9642   enableval="$enable_nntp"
9643         if test x$enableval = xyes ; then
9644                 cat >>confdefs.h <<\_ACEOF
9645 #define USE_NNTP 1
9646 _ACEOF
9647
9648                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9649                 need_socket="yes"
9650         fi
9651
9652 fi;
9653
9654
9655 if test "$need_socket" = "yes"
9656 then
9657         echo "$as_me:$LINENO: checking for socklen_t" >&5
9658 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9659         cat >conftest.$ac_ext <<_ACEOF
9660 #line $LINENO "configure"
9661 /* confdefs.h.  */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h.  */
9666 #include <sys/socket.h>
9667
9668 _ACEOF
9669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9670   $EGREP "socklen_t" >/dev/null 2>&1; then
9671   echo "$as_me:$LINENO: result: yes" >&5
9672 echo "${ECHO_T}yes" >&6
9673 else
9674   echo "$as_me:$LINENO: result: no" >&5
9675 echo "${ECHO_T}no" >&6
9676
9677 cat >>confdefs.h <<\_ACEOF
9678 #define socklen_t int
9679 _ACEOF
9680
9681 fi
9682 rm -f conftest*
9683
9684         echo "$as_me:$LINENO: checking for gethostent" >&5
9685 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9686 if test "${ac_cv_func_gethostent+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   cat >conftest.$ac_ext <<_ACEOF
9690 #line $LINENO "configure"
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 /* System header to define __stub macros and hopefully few prototypes,
9697     which can conflict with char gethostent (); below.
9698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9699     <limits.h> exists even on freestanding compilers.  */
9700 #ifdef __STDC__
9701 # include <limits.h>
9702 #else
9703 # include <assert.h>
9704 #endif
9705 /* Override any gcc2 internal prototype to avoid an error.  */
9706 #ifdef __cplusplus
9707 extern "C"
9708 {
9709 #endif
9710 /* We use char because int might match the return type of a gcc2
9711    builtin and then its argument prototype would still apply.  */
9712 char gethostent ();
9713 /* The GNU C library defines this for functions which it implements
9714     to always fail with ENOSYS.  Some functions are actually named
9715     something starting with __ and the normal name is an alias.  */
9716 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9717 choke me
9718 #else
9719 char (*f) () = gethostent;
9720 #endif
9721 #ifdef __cplusplus
9722 }
9723 #endif
9724
9725 int
9726 main ()
9727 {
9728 return f != gethostent;
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735   (eval $ac_link) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } &&
9739          { ac_try='test -s conftest$ac_exeext'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; }; then
9745   ac_cv_func_gethostent=yes
9746 else
9747   echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 ac_cv_func_gethostent=no
9751 fi
9752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9753 fi
9754 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9755 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9756 if test $ac_cv_func_gethostent = yes; then
9757   :
9758 else
9759
9760 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9761 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9762 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-lnsl  $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 #line $LINENO "configure"
9769 /* confdefs.h.  */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h.  */
9774
9775 /* Override any gcc2 internal prototype to avoid an error.  */
9776 #ifdef __cplusplus
9777 extern "C"
9778 #endif
9779 /* We use char because int might match the return type of a gcc2
9780    builtin and then its argument prototype would still apply.  */
9781 char gethostent ();
9782 int
9783 main ()
9784 {
9785 gethostent ();
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792   (eval $ac_link) 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } &&
9796          { ac_try='test -s conftest$ac_exeext'
9797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798   (eval $ac_try) 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; }; then
9802   ac_cv_lib_nsl_gethostent=yes
9803 else
9804   echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9806
9807 ac_cv_lib_nsl_gethostent=no
9808 fi
9809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9810 LIBS=$ac_check_lib_save_LIBS
9811 fi
9812 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9813 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9814 if test $ac_cv_lib_nsl_gethostent = yes; then
9815   cat >>confdefs.h <<_ACEOF
9816 #define HAVE_LIBNSL 1
9817 _ACEOF
9818
9819   LIBS="-lnsl $LIBS"
9820
9821 fi
9822
9823 fi
9824
9825         echo "$as_me:$LINENO: checking for setsockopt" >&5
9826 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9827 if test "${ac_cv_func_setsockopt+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   cat >conftest.$ac_ext <<_ACEOF
9831 #line $LINENO "configure"
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 /* System header to define __stub macros and hopefully few prototypes,
9838     which can conflict with char setsockopt (); below.
9839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9840     <limits.h> exists even on freestanding compilers.  */
9841 #ifdef __STDC__
9842 # include <limits.h>
9843 #else
9844 # include <assert.h>
9845 #endif
9846 /* Override any gcc2 internal prototype to avoid an error.  */
9847 #ifdef __cplusplus
9848 extern "C"
9849 {
9850 #endif
9851 /* We use char because int might match the return type of a gcc2
9852    builtin and then its argument prototype would still apply.  */
9853 char setsockopt ();
9854 /* The GNU C library defines this for functions which it implements
9855     to always fail with ENOSYS.  Some functions are actually named
9856     something starting with __ and the normal name is an alias.  */
9857 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9858 choke me
9859 #else
9860 char (*f) () = setsockopt;
9861 #endif
9862 #ifdef __cplusplus
9863 }
9864 #endif
9865
9866 int
9867 main ()
9868 {
9869 return f != setsockopt;
9870   ;
9871   return 0;
9872 }
9873 _ACEOF
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9876   (eval $ac_link) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } &&
9880          { ac_try='test -s conftest$ac_exeext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   ac_cv_func_setsockopt=yes
9887 else
9888   echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_cv_func_setsockopt=no
9892 fi
9893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9894 fi
9895 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9896 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9897 if test $ac_cv_func_setsockopt = yes; then
9898   :
9899 else
9900
9901 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9902 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9903 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   ac_check_lib_save_LIBS=$LIBS
9907 LIBS="-lsocket  $LIBS"
9908 cat >conftest.$ac_ext <<_ACEOF
9909 #line $LINENO "configure"
9910 /* confdefs.h.  */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h.  */
9915
9916 /* Override any gcc2 internal prototype to avoid an error.  */
9917 #ifdef __cplusplus
9918 extern "C"
9919 #endif
9920 /* We use char because int might match the return type of a gcc2
9921    builtin and then its argument prototype would still apply.  */
9922 char setsockopt ();
9923 int
9924 main ()
9925 {
9926 setsockopt ();
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933   (eval $ac_link) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } &&
9937          { ac_try='test -s conftest$ac_exeext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_cv_lib_socket_setsockopt=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_cv_lib_socket_setsockopt=no
9949 fi
9950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9952 fi
9953 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9954 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9955 if test $ac_cv_lib_socket_setsockopt = yes; then
9956   cat >>confdefs.h <<_ACEOF
9957 #define HAVE_LIBSOCKET 1
9958 _ACEOF
9959
9960   LIBS="-lsocket $LIBS"
9961
9962 fi
9963
9964 fi
9965
9966
9967 for ac_func in getaddrinfo
9968 do
9969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9970 echo "$as_me:$LINENO: checking for $ac_func" >&5
9971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9972 if eval "test \"\${$as_ac_var+set}\" = set"; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   cat >conftest.$ac_ext <<_ACEOF
9976 #line $LINENO "configure"
9977 /* confdefs.h.  */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h.  */
9982 /* System header to define __stub macros and hopefully few prototypes,
9983     which can conflict with char $ac_func (); below.
9984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985     <limits.h> exists even on freestanding compilers.  */
9986 #ifdef __STDC__
9987 # include <limits.h>
9988 #else
9989 # include <assert.h>
9990 #endif
9991 /* Override any gcc2 internal prototype to avoid an error.  */
9992 #ifdef __cplusplus
9993 extern "C"
9994 {
9995 #endif
9996 /* We use char because int might match the return type of a gcc2
9997    builtin and then its argument prototype would still apply.  */
9998 char $ac_func ();
9999 /* The GNU C library defines this for functions which it implements
10000     to always fail with ENOSYS.  Some functions are actually named
10001     something starting with __ and the normal name is an alias.  */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10003 choke me
10004 #else
10005 char (*f) () = $ac_func;
10006 #endif
10007 #ifdef __cplusplus
10008 }
10009 #endif
10010
10011 int
10012 main ()
10013 {
10014 return f != $ac_func;
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021   (eval $ac_link) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } &&
10025          { ac_try='test -s conftest$ac_exeext'
10026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027   (eval $ac_try) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   eval "$as_ac_var=yes"
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 eval "$as_ac_var=no"
10037 fi
10038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10039 fi
10040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10042 if test `eval echo '${'$as_ac_var'}'` = yes; then
10043   cat >>confdefs.h <<_ACEOF
10044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10045 _ACEOF
10046
10047 fi
10048 done
10049
10050
10051 cat >>confdefs.h <<\_ACEOF
10052 #define USE_SOCKET 1
10053 _ACEOF
10054
10055         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10056 fi
10057
10058
10059
10060 # Check whether --with-gss or --without-gss was given.
10061 if test "${with_gss+set}" = set; then
10062   withval="$with_gss"
10063   gss_prefix="$withval"
10064 else
10065   gss_prefix="no"
10066 fi;
10067 if test "$gss_prefix" != "no"
10068 then
10069   if test "$need_imap" = "yes"
10070   then
10071
10072   GSSAPI_PREFIX=$gss_prefix
10073   GSSAPI_IMPL="none"
10074   saved_CPPFLAGS="$CPPFLAGS"
10075   saved_LDFLAGS="$LDFLAGS"
10076   saved_LIBS="$LIBS"
10077     if test "$GSSAPI_PREFIX" != "yes"
10078   then
10079     krb5_path="$GSSAPI_PREFIX/bin"
10080   else
10081     krb5_path="$PATH"
10082   fi
10083   # Extract the first word of "krb5-config", so it can be a program name with args.
10084 set dummy krb5-config; ac_word=$2
10085 echo "$as_me:$LINENO: checking for $ac_word" >&5
10086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10087 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   case $KRB5CFGPATH in
10091   [\\/]* | ?:[\\/]*)
10092   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10093   ;;
10094   *)
10095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $krb5_path
10097 do
10098   IFS=$as_save_IFS
10099   test -z "$as_dir" && as_dir=.
10100   for ac_exec_ext in '' $ac_executable_extensions; do
10101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10104     break 2
10105   fi
10106 done
10107 done
10108
10109   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10110   ;;
10111 esac
10112 fi
10113 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10114
10115 if test -n "$KRB5CFGPATH"; then
10116   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10117 echo "${ECHO_T}$KRB5CFGPATH" >&6
10118 else
10119   echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10121 fi
10122
10123   if test "$KRB5CFGPATH" != "none"
10124   then
10125     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10126     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10127     case "`$KRB5CFGPATH --version`" in
10128       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
10129       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
10130       *)                GSSAPI_IMPL="Unknown";;
10131    esac
10132   else
10133         if test "$GSSAPI_PREFIX" != "yes"
10134     then
10135       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10136       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10137       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10138       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10139     fi
10140
10141         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10142 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10143 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155
10156 /* Override any gcc2 internal prototype to avoid an error.  */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 /* We use char because int might match the return type of a gcc2
10161    builtin and then its argument prototype would still apply.  */
10162 char gss_init_sec_context ();
10163 int
10164 main ()
10165 {
10166 gss_init_sec_context ();
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173   (eval $ac_link) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } &&
10177          { ac_try='test -s conftest$ac_exeext'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10189 fi
10190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10191 LIBS=$ac_check_lib_save_LIBS
10192 fi
10193 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10194 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10195 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10196
10197       GSSAPI_IMPL="MIT",
10198       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10199
10200 fi
10201
10202
10203         if test "$GSSAPI_IMPL" = "none"
10204     then
10205       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10206 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10207 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10208   echo $ECHO_N "(cached) $ECHO_C" >&6
10209 else
10210   ac_check_lib_save_LIBS=$LIBS
10211 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10212 cat >conftest.$ac_ext <<_ACEOF
10213 #line $LINENO "configure"
10214 /* confdefs.h.  */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h.  */
10219
10220 /* Override any gcc2 internal prototype to avoid an error.  */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 /* We use char because int might match the return type of a gcc2
10225    builtin and then its argument prototype would still apply.  */
10226 char gss_init_sec_context ();
10227 int
10228 main ()
10229 {
10230 gss_init_sec_context ();
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10237   (eval $ac_link) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } &&
10241          { ac_try='test -s conftest$ac_exeext'
10242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243   (eval $ac_try) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   ac_cv_lib_gssapi_gss_init_sec_context=yes
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252 ac_cv_lib_gssapi_gss_init_sec_context=no
10253 fi
10254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10258 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10259 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10260
10261           GSSAPI_IMPL="Heimdal"
10262           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10263           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10264
10265 fi
10266
10267     fi
10268
10269                             if test "$GSSAPI_IMPL" = "none"
10270     then
10271       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10272 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10273 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10274   echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276   ac_check_lib_save_LIBS=$LIBS
10277 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10278 cat >conftest.$ac_ext <<_ACEOF
10279 #line $LINENO "configure"
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285
10286 /* Override any gcc2 internal prototype to avoid an error.  */
10287 #ifdef __cplusplus
10288 extern "C"
10289 #endif
10290 /* We use char because int might match the return type of a gcc2
10291    builtin and then its argument prototype would still apply.  */
10292 char g_order_init ();
10293 int
10294 main ()
10295 {
10296 g_order_init ();
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303   (eval $ac_link) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } &&
10307          { ac_try='test -s conftest$ac_exeext'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; }; then
10313   ac_cv_lib_gssapi_krb5_g_order_init=yes
10314 else
10315   echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 ac_cv_lib_gssapi_krb5_g_order_init=no
10319 fi
10320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10321 LIBS=$ac_check_lib_save_LIBS
10322 fi
10323 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10324 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10325 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10326
10327         GSSAPI_IMPL="OldMIT",
10328         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10329
10330 fi
10331
10332     fi
10333   fi
10334
10335   CPPFLAGS="$saved_CPPFLAGS"
10336   LDFLAGS="$saved_LDFLAGS"
10337   LIBS="$saved_LIBS"
10338
10339     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10340 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10341     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10342 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10343     if test "$GSSAPI_IMPL" = "none"
10344     then
10345       cat >confcache <<\_ACEOF
10346 # This file is a shell script that caches the results of configure
10347 # tests run on this system so they can be shared between configure
10348 # scripts and configure runs, see configure's option --config-cache.
10349 # It is not useful on other systems.  If it contains results you don't
10350 # want to keep, you may remove or edit it.
10351 #
10352 # config.status only pays attention to the cache file if you give it
10353 # the --recheck option to rerun configure.
10354 #
10355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10357 # following values.
10358
10359 _ACEOF
10360
10361 # The following way of writing the cache mishandles newlines in values,
10362 # but we know of no workaround that is simple, portable, and efficient.
10363 # So, don't put newlines in cache variables' values.
10364 # Ultrix sh set writes to stderr and can't be redirected directly,
10365 # and sets the high bit in the cache file unless we assign to the vars.
10366 {
10367   (set) 2>&1 |
10368     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10369     *ac_space=\ *)
10370       # `set' does not quote correctly, so add quotes (double-quote
10371       # substitution turns \\\\ into \\, and sed turns \\ into \).
10372       sed -n \
10373         "s/'/'\\\\''/g;
10374           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10375       ;;
10376     *)
10377       # `set' quotes correctly as required by POSIX, so do not add quotes.
10378       sed -n \
10379         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10380       ;;
10381     esac;
10382 } |
10383   sed '
10384      t clear
10385      : clear
10386      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10387      t end
10388      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10389      : end' >>confcache
10390 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10391   if test -w $cache_file; then
10392     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10393     cat confcache >$cache_file
10394   else
10395     echo "not updating unwritable cache $cache_file"
10396   fi
10397 fi
10398 rm -f confcache
10399       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10400 echo "${ECHO_T}GSSAPI libraries not found" >&6
10401     fi
10402     if test "$GSSAPI_IMPL" = "Heimdal"
10403     then
10404
10405 cat >>confdefs.h <<\_ACEOF
10406 #define HAVE_HEIMDAL 1
10407 _ACEOF
10408
10409     fi
10410     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10411     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10412
10413 cat >>confdefs.h <<\_ACEOF
10414 #define USE_GSS 1
10415 _ACEOF
10416
10417     need_gss="yes"
10418   else
10419     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10420 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10421   fi
10422 fi
10423
10424
10425 if test x$need_gss = xyes; then
10426   USE_GSS_TRUE=
10427   USE_GSS_FALSE='#'
10428 else
10429   USE_GSS_TRUE='#'
10430   USE_GSS_FALSE=
10431 fi
10432
10433
10434
10435
10436 # Check whether --with-ssl or --without-ssl was given.
10437 if test "${with_ssl+set}" = set; then
10438   withval="$with_ssl"
10439          if test "$with_ssl" != "no"
10440         then
10441           if test "$need_socket" != "yes"; then
10442            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10443 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10444    { (exit 1); exit 1; }; }
10445           fi
10446
10447           if test "$with_ssl" != "yes"
10448           then
10449            LDFLAGS="$LDFLAGS -L$withval/lib"
10450            CPPFLAGS="$CPPFLAGS -I$withval/include"
10451           fi
10452           saved_LIBS="$LIBS"
10453
10454
10455 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10456 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10457 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10458   echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460   ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lcrypto  $LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463 #line $LINENO "configure"
10464 /* confdefs.h.  */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h.  */
10469
10470 /* Override any gcc2 internal prototype to avoid an error.  */
10471 #ifdef __cplusplus
10472 extern "C"
10473 #endif
10474 /* We use char because int might match the return type of a gcc2
10475    builtin and then its argument prototype would still apply.  */
10476 char X509_new ();
10477 int
10478 main ()
10479 {
10480 X509_new ();
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487   (eval $ac_link) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } &&
10491          { ac_try='test -s conftest$ac_exeext'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; }; then
10497   ac_cv_lib_crypto_X509_new=yes
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502 ac_cv_lib_crypto_X509_new=no
10503 fi
10504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10506 fi
10507 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10508 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10509 if test $ac_cv_lib_crypto_X509_new = yes; then
10510   cat >>confdefs.h <<_ACEOF
10511 #define HAVE_LIBCRYPTO 1
10512 _ACEOF
10513
10514   LIBS="-lcrypto $LIBS"
10515
10516 else
10517   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10518 echo "$as_me: error: Unable to find SSL library" >&2;}
10519    { (exit 1); exit 1; }; }
10520 fi
10521
10522
10523 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10524 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10525 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10526   echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528   ac_check_lib_save_LIBS=$LIBS
10529 LIBS="-lssl -lcrypto $LIBS"
10530 cat >conftest.$ac_ext <<_ACEOF
10531 #line $LINENO "configure"
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537
10538 /* Override any gcc2 internal prototype to avoid an error.  */
10539 #ifdef __cplusplus
10540 extern "C"
10541 #endif
10542 /* We use char because int might match the return type of a gcc2
10543    builtin and then its argument prototype would still apply.  */
10544 char SSL_new ();
10545 int
10546 main ()
10547 {
10548 SSL_new ();
10549   ;
10550   return 0;
10551 }
10552 _ACEOF
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555   (eval $ac_link) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); } &&
10559          { ac_try='test -s conftest$ac_exeext'
10560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561   (eval $ac_try) 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }; then
10565   ac_cv_lib_ssl_SSL_new=yes
10566 else
10567   echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 ac_cv_lib_ssl_SSL_new=no
10571 fi
10572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10574 fi
10575 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10576 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10577 if test $ac_cv_lib_ssl_SSL_new = yes; then
10578   cat >>confdefs.h <<_ACEOF
10579 #define HAVE_LIBSSL 1
10580 _ACEOF
10581
10582   LIBS="-lssl $LIBS"
10583
10584 else
10585   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10586 echo "$as_me: error: Unable to find SSL library" >&2;}
10587    { (exit 1); exit 1; }; }
10588 fi
10589
10590
10591
10592
10593 for ac_func in RAND_status RAND_egd
10594 do
10595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10596 echo "$as_me:$LINENO: checking for $ac_func" >&5
10597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10598 if eval "test \"\${$as_ac_var+set}\" = set"; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 /* System header to define __stub macros and hopefully few prototypes,
10609     which can conflict with char $ac_func (); below.
10610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10611     <limits.h> exists even on freestanding compilers.  */
10612 #ifdef __STDC__
10613 # include <limits.h>
10614 #else
10615 # include <assert.h>
10616 #endif
10617 /* Override any gcc2 internal prototype to avoid an error.  */
10618 #ifdef __cplusplus
10619 extern "C"
10620 {
10621 #endif
10622 /* We use char because int might match the return type of a gcc2
10623    builtin and then its argument prototype would still apply.  */
10624 char $ac_func ();
10625 /* The GNU C library defines this for functions which it implements
10626     to always fail with ENOSYS.  Some functions are actually named
10627     something starting with __ and the normal name is an alias.  */
10628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10629 choke me
10630 #else
10631 char (*f) () = $ac_func;
10632 #endif
10633 #ifdef __cplusplus
10634 }
10635 #endif
10636
10637 int
10638 main ()
10639 {
10640 return f != $ac_func;
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 rm -f conftest.$ac_objext conftest$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647   (eval $ac_link) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } &&
10651          { ac_try='test -s conftest$ac_exeext'
10652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653   (eval $ac_try) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; }; then
10657   eval "$as_ac_var=yes"
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662 eval "$as_ac_var=no"
10663 fi
10664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10665 fi
10666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10668 if test `eval echo '${'$as_ac_var'}'` = yes; then
10669   cat >>confdefs.h <<_ACEOF
10670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10671 _ACEOF
10672
10673 fi
10674 done
10675
10676
10677
10678 cat >>confdefs.h <<\_ACEOF
10679 #define USE_SSL 1
10680 _ACEOF
10681
10682           LIBS="$saved_LIBS"
10683           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10684           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10685           need_ssl=yes
10686
10687         fi
10688
10689 fi;
10690
10691
10692 if test x$need_ssl = xyes; then
10693   USE_SSL_TRUE=
10694   USE_SSL_FALSE='#'
10695 else
10696   USE_SSL_TRUE='#'
10697   USE_SSL_FALSE=
10698 fi
10699
10700
10701
10702 # Check whether --with-gnutls or --without-gnutls was given.
10703 if test "${with_gnutls+set}" = set; then
10704   withval="$with_gnutls"
10705      if test "$need_ssl" = "yes"
10706     then
10707       { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
10708 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
10709    { (exit 1); exit 1; }; }
10710     fi
10711     if test "$with_gnutls" != "no"
10712     then
10713       if test "$need_socket" != "yes"; then
10714         { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
10715 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
10716    { (exit 1); exit 1; }; }
10717       fi
10718       if test "$with_gnutls" != "yes"
10719       then
10720         LDFLAGS="$LDFLAGS -L$withval/lib"
10721         CPPFLAGS="$CPPFLAGS -I$withval/include"
10722       fi
10723 #saved_LIBS="$LIBS"
10724
10725
10726 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10727 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
10728 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lgnutls  $LIBS"
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740
10741 /* Override any gcc2 internal prototype to avoid an error.  */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 /* We use char because int might match the return type of a gcc2
10746    builtin and then its argument prototype would still apply.  */
10747 char gnutls_init ();
10748 int
10749 main ()
10750 {
10751 gnutls_init ();
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758   (eval $ac_link) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -s conftest$ac_exeext'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   ac_cv_lib_gnutls_gnutls_init=yes
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773 ac_cv_lib_gnutls_gnutls_init=no
10774 fi
10775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10776 LIBS=$ac_check_lib_save_LIBS
10777 fi
10778 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10779 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
10780 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10781   cat >>confdefs.h <<_ACEOF
10782 #define HAVE_LIBGNUTLS 1
10783 _ACEOF
10784
10785   LIBS="-lgnutls $LIBS"
10786
10787 else
10788   { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
10789 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
10790    { (exit 1); exit 1; }; }
10791 fi
10792
10793
10794
10795 cat >>confdefs.h <<\_ACEOF
10796 #define USE_GNUTLS 1
10797 _ACEOF
10798
10799 #LIBS="$saved_LIBS"
10800 #MUTTLIBS="$MUTTLIBS -lgnutls"
10801       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
10802       need_gnutls=yes
10803     fi
10804
10805 fi;
10806
10807
10808 if test x$need_gnutls = xyes; then
10809   USE_GNUTLS_TRUE=
10810   USE_GNUTLS_FALSE='#'
10811 else
10812   USE_GNUTLS_TRUE='#'
10813   USE_GNUTLS_FALSE=
10814 fi
10815
10816
10817
10818 # Check whether --with-nss or --without-nss was given.
10819 if test "${with_nss+set}" = set; then
10820   withval="$with_nss"
10821          if test "$with_nss" != no
10822         then
10823           if test "$need_socket" != "yes"; then
10824            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10825 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10826    { (exit 1); exit 1; }; }
10827           fi
10828
10829           if test "$with_nss" != "yes"
10830           then
10831            LDFLAGS="$LDFLAGS -L$withval/lib"
10832            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10833           fi
10834
10835
10836 cat >>confdefs.h <<\_ACEOF
10837 #define USE_NSS 1
10838 _ACEOF
10839
10840           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10841           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10842           MUTTLIBS="$MUTTLIBS -lnspr4"
10843
10844           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10845           need_ssl=yes
10846         fi
10847
10848 fi;
10849
10850
10851 # Check whether --with-sasl or --without-sasl was given.
10852 if test "${with_sasl+set}" = set; then
10853   withval="$with_sasl"
10854
10855         if test "$need_socket" != "yes"
10856         then
10857           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10858 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10859    { (exit 1); exit 1; }; }
10860         fi
10861
10862         if test "$with_sasl" != "no"
10863         then
10864           if test "$with_sasl" != "yes"
10865           then
10866             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10867             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10868           fi
10869
10870           saved_LIBS="$LIBS"
10871
10872
10873 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10874 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10875 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10876   echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878   ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-lsasl  $LIBS"
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887
10888 /* Override any gcc2 internal prototype to avoid an error.  */
10889 #ifdef __cplusplus
10890 extern "C"
10891 #endif
10892 /* We use char because int might match the return type of a gcc2
10893    builtin and then its argument prototype would still apply.  */
10894 char sasl_client_init ();
10895 int
10896 main ()
10897 {
10898 sasl_client_init ();
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10905   (eval $ac_link) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); } &&
10909          { ac_try='test -s conftest$ac_exeext'
10910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911   (eval $ac_try) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; }; then
10915   ac_cv_lib_sasl_sasl_client_init=yes
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920 ac_cv_lib_sasl_sasl_client_init=no
10921 fi
10922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10924 fi
10925 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10926 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10927 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10928   cat >>confdefs.h <<_ACEOF
10929 #define HAVE_LIBSASL 1
10930 _ACEOF
10931
10932   LIBS="-lsasl $LIBS"
10933
10934 else
10935   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10936 echo "$as_me: error: could not find libsasl" >&2;}
10937    { (exit 1); exit 1; }; }
10938 fi
10939
10940
10941           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10942           MUTTLIBS="$MUTTLIBS -lsasl"
10943           LIBS="$saved_LIBS"
10944
10945 cat >>confdefs.h <<\_ACEOF
10946 #define USE_SASL 1
10947 _ACEOF
10948
10949           need_sasl=yes
10950         fi
10951
10952 fi;
10953
10954
10955 if test x$need_sasl = xyes; then
10956   USE_SASL_TRUE=
10957   USE_SASL_FALSE='#'
10958 else
10959   USE_SASL_TRUE='#'
10960   USE_SASL_FALSE=
10961 fi
10962
10963
10964
10965 # Check whether --with-sasl2 or --without-sasl2 was given.
10966 if test "${with_sasl2+set}" = set; then
10967   withval="$with_sasl2"
10968
10969         if test "$need_socket" != "yes"
10970         then
10971           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10972 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10973    { (exit 1); exit 1; }; }
10974         fi
10975
10976         if test "$with_sasl2" != "no"
10977         then
10978           if test "$with_sasl2" != "yes"
10979           then
10980             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10981             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10982           fi
10983
10984           saved_LIBS="$LIBS"
10985
10986
10987 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10988 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10989 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10990   echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992   ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-lsasl2  $LIBS"
10994 cat >conftest.$ac_ext <<_ACEOF
10995 #line $LINENO "configure"
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001
11002 /* Override any gcc2 internal prototype to avoid an error.  */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 /* We use char because int might match the return type of a gcc2
11007    builtin and then its argument prototype would still apply.  */
11008 char sasl_client_init ();
11009 int
11010 main ()
11011 {
11012 sasl_client_init ();
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11019   (eval $ac_link) 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -s conftest$ac_exeext'
11024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025   (eval $ac_try) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; }; then
11029   ac_cv_lib_sasl2_sasl_client_init=yes
11030 else
11031   echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ac_cv_lib_sasl2_sasl_client_init=no
11035 fi
11036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11038 fi
11039 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11040 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11041 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11042   cat >>confdefs.h <<_ACEOF
11043 #define HAVE_LIBSASL2 1
11044 _ACEOF
11045
11046   LIBS="-lsasl2 $LIBS"
11047
11048 else
11049   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
11050 echo "$as_me: error: could not find libsasl" >&2;}
11051    { (exit 1); exit 1; }; }
11052 fi
11053
11054
11055           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11056           MUTTLIBS="$MUTTLIBS -lsasl2"
11057           LIBS="$saved_LIBS"
11058
11059 cat >>confdefs.h <<\_ACEOF
11060 #define USE_SASL 1
11061 _ACEOF
11062
11063
11064 cat >>confdefs.h <<\_ACEOF
11065 #define USE_SASL2 1
11066 _ACEOF
11067
11068           need_sasl=yes
11069         fi
11070
11071 fi;
11072
11073
11074 if test x$need_sasl = xyes; then
11075   USE_SASL_TRUE=
11076   USE_SASL_FALSE='#'
11077 else
11078   USE_SASL_TRUE='#'
11079   USE_SASL_FALSE=
11080 fi
11081
11082
11083
11084 # Check whether --with-idn or --without-idn was given.
11085 if test "${with_idn+set}" = set; then
11086   withval="$with_idn"
11087
11088                   if test "$with_idn" != "no" ; then
11089                         if test "$with_idn" != "yes" ; then
11090                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11091                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
11092                         fi
11093                   fi
11094
11095
11096 fi;
11097
11098 if test "x$with_idn" != "xno"; then
11099
11100 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
11101 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
11102 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105   ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-lidn  $LIBS"
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114
11115 /* Override any gcc2 internal prototype to avoid an error.  */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 /* We use char because int might match the return type of a gcc2
11120    builtin and then its argument prototype would still apply.  */
11121 char stringprep_check_version ();
11122 int
11123 main ()
11124 {
11125 stringprep_check_version ();
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132   (eval $ac_link) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } &&
11136          { ac_try='test -s conftest$ac_exeext'
11137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138   (eval $ac_try) 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   ac_cv_lib_idn_stringprep_check_version=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_cv_lib_idn_stringprep_check_version=no
11148 fi
11149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11150 LIBS=$ac_check_lib_save_LIBS
11151 fi
11152 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11153 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11154 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11155   cat >>confdefs.h <<_ACEOF
11156 #define HAVE_LIBIDN 1
11157 _ACEOF
11158
11159   LIBS="-lidn $LIBS"
11160
11161 fi
11162
11163
11164
11165 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11166 do
11167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11168 echo "$as_me:$LINENO: checking for $ac_func" >&5
11169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11170 if eval "test \"\${$as_ac_var+set}\" = set"; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   cat >conftest.$ac_ext <<_ACEOF
11174 #line $LINENO "configure"
11175 /* confdefs.h.  */
11176 _ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h.  */
11180 /* System header to define __stub macros and hopefully few prototypes,
11181     which can conflict with char $ac_func (); below.
11182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11183     <limits.h> exists even on freestanding compilers.  */
11184 #ifdef __STDC__
11185 # include <limits.h>
11186 #else
11187 # include <assert.h>
11188 #endif
11189 /* Override any gcc2 internal prototype to avoid an error.  */
11190 #ifdef __cplusplus
11191 extern "C"
11192 {
11193 #endif
11194 /* We use char because int might match the return type of a gcc2
11195    builtin and then its argument prototype would still apply.  */
11196 char $ac_func ();
11197 /* The GNU C library defines this for functions which it implements
11198     to always fail with ENOSYS.  Some functions are actually named
11199     something starting with __ and the normal name is an alias.  */
11200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11201 choke me
11202 #else
11203 char (*f) () = $ac_func;
11204 #endif
11205 #ifdef __cplusplus
11206 }
11207 #endif
11208
11209 int
11210 main ()
11211 {
11212 return f != $ac_func;
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest.$ac_objext conftest$ac_exeext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11219   (eval $ac_link) 2>&5
11220   ac_status=$?
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } &&
11223          { ac_try='test -s conftest$ac_exeext'
11224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225   (eval $ac_try) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; }; then
11229   eval "$as_ac_var=yes"
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234 eval "$as_ac_var=no"
11235 fi
11236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11237 fi
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11240 if test `eval echo '${'$as_ac_var'}'` = yes; then
11241   cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11243 _ACEOF
11244
11245 fi
11246 done
11247
11248
11249
11250 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11251 do
11252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11253 echo "$as_me:$LINENO: checking for $ac_func" >&5
11254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11255 if eval "test \"\${$as_ac_var+set}\" = set"; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258   cat >conftest.$ac_ext <<_ACEOF
11259 #line $LINENO "configure"
11260 /* confdefs.h.  */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h.  */
11265 /* System header to define __stub macros and hopefully few prototypes,
11266     which can conflict with char $ac_func (); below.
11267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11268     <limits.h> exists even on freestanding compilers.  */
11269 #ifdef __STDC__
11270 # include <limits.h>
11271 #else
11272 # include <assert.h>
11273 #endif
11274 /* Override any gcc2 internal prototype to avoid an error.  */
11275 #ifdef __cplusplus
11276 extern "C"
11277 {
11278 #endif
11279 /* We use char because int might match the return type of a gcc2
11280    builtin and then its argument prototype would still apply.  */
11281 char $ac_func ();
11282 /* The GNU C library defines this for functions which it implements
11283     to always fail with ENOSYS.  Some functions are actually named
11284     something starting with __ and the normal name is an alias.  */
11285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11286 choke me
11287 #else
11288 char (*f) () = $ac_func;
11289 #endif
11290 #ifdef __cplusplus
11291 }
11292 #endif
11293
11294 int
11295 main ()
11296 {
11297 return f != $ac_func;
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304   (eval $ac_link) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); } &&
11308          { ac_try='test -s conftest$ac_exeext'
11309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310   (eval $ac_try) 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; }; then
11314   eval "$as_ac_var=yes"
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319 eval "$as_ac_var=no"
11320 fi
11321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11322 fi
11323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11325 if test `eval echo '${'$as_ac_var'}'` = yes; then
11326   cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11328 _ACEOF
11329
11330 fi
11331 done
11332
11333
11334
11335 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11336 do
11337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11338 echo "$as_me:$LINENO: checking for $ac_func" >&5
11339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11340 if eval "test \"\${$as_ac_var+set}\" = set"; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11345 /* confdefs.h.  */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h.  */
11350 /* System header to define __stub macros and hopefully few prototypes,
11351     which can conflict with char $ac_func (); below.
11352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11353     <limits.h> exists even on freestanding compilers.  */
11354 #ifdef __STDC__
11355 # include <limits.h>
11356 #else
11357 # include <assert.h>
11358 #endif
11359 /* Override any gcc2 internal prototype to avoid an error.  */
11360 #ifdef __cplusplus
11361 extern "C"
11362 {
11363 #endif
11364 /* We use char because int might match the return type of a gcc2
11365    builtin and then its argument prototype would still apply.  */
11366 char $ac_func ();
11367 /* The GNU C library defines this for functions which it implements
11368     to always fail with ENOSYS.  Some functions are actually named
11369     something starting with __ and the normal name is an alias.  */
11370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11371 choke me
11372 #else
11373 char (*f) () = $ac_func;
11374 #endif
11375 #ifdef __cplusplus
11376 }
11377 #endif
11378
11379 int
11380 main ()
11381 {
11382 return f != $ac_func;
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389   (eval $ac_link) 2>&5
11390   ac_status=$?
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } &&
11393          { ac_try='test -s conftest$ac_exeext'
11394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395   (eval $ac_try) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; }; then
11399   eval "$as_ac_var=yes"
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404 eval "$as_ac_var=no"
11405 fi
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11407 fi
11408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411   cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11413 _ACEOF
11414
11415 fi
11416 done
11417
11418 fi
11419
11420
11421 # Check whether --enable-debug or --disable-debug was given.
11422 if test "${enable_debug+set}" = set; then
11423   enableval="$enable_debug"
11424    if test x$enableval = xyes ; then
11425
11426 cat >>confdefs.h <<\_ACEOF
11427 #define DEBUG 1
11428 _ACEOF
11429
11430           fi
11431
11432 fi;
11433
11434 # Check whether --enable-flock or --disable-flock was given.
11435 if test "${enable_flock+set}" = set; then
11436   enableval="$enable_flock"
11437   if test $enableval = yes; then
11438
11439 cat >>confdefs.h <<\_ACEOF
11440 #define USE_FLOCK 1
11441 _ACEOF
11442
11443         fi
11444 fi;
11445
11446 mutt_cv_fcntl=yes
11447 # Check whether --enable-fcntl or --disable-fcntl was given.
11448 if test "${enable_fcntl+set}" = set; then
11449   enableval="$enable_fcntl"
11450   if test $enableval = no; then mutt_cv_fcntl=no; fi
11451 fi;
11452
11453 if test $mutt_cv_fcntl = yes; then
11454
11455 cat >>confdefs.h <<\_ACEOF
11456 #define USE_FCNTL 1
11457 _ACEOF
11458
11459 fi
11460
11461 mutt_cv_warnings=yes
11462 # Check whether --enable-warnings or --disable-warnings was given.
11463 if test "${enable_warnings+set}" = set; then
11464   enableval="$enable_warnings"
11465   if test $enableval = no; then
11466         mutt_cv_warnings=no
11467 fi
11468 fi;
11469
11470 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11471         CFLAGS="-Wall -pedantic $CFLAGS"
11472 fi
11473
11474 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11475 if test "${enable_nfs_fix+set}" = set; then
11476   enableval="$enable_nfs_fix"
11477   if test x$enableval = xyes; then
11478
11479 cat >>confdefs.h <<\_ACEOF
11480 #define NFS_ATTRIBUTE_HACK 1
11481 _ACEOF
11482
11483         fi
11484 fi;
11485
11486 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11487 if test "${enable_buffy_size+set}" = set; then
11488   enableval="$enable_buffy_size"
11489   if test x$enableval = xyes; then
11490
11491 cat >>confdefs.h <<\_ACEOF
11492 #define BUFFY_SIZE 1
11493 _ACEOF
11494
11495         fi
11496 fi;
11497
11498 # Check whether --enable-mailtool or --disable-mailtool was given.
11499 if test "${enable_mailtool+set}" = set; then
11500   enableval="$enable_mailtool"
11501   if test x$enableval = xyes; then
11502
11503 cat >>confdefs.h <<\_ACEOF
11504 #define SUN_ATTACHMENT 1
11505 _ACEOF
11506
11507         fi
11508 fi;
11509
11510 # Check whether --enable-compressed or --disable-compressed was given.
11511 if test "${enable_compressed+set}" = set; then
11512   enableval="$enable_compressed"
11513   if test x$enableval = xyes; then
11514                 cat >>confdefs.h <<\_ACEOF
11515 #define USE_COMPRESSED 1
11516 _ACEOF
11517
11518         fi
11519 fi;
11520
11521 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11522 if test "${enable_locales_fix+set}" = set; then
11523   enableval="$enable_locales_fix"
11524   if test x$enableval = xyes; then
11525
11526 cat >>confdefs.h <<\_ACEOF
11527 #define LOCALES_HACK 1
11528 _ACEOF
11529
11530         fi
11531 fi;
11532
11533
11534 # Check whether --with-exec-shell or --without-exec-shell was given.
11535 if test "${with_exec_shell+set}" = set; then
11536   withval="$with_exec_shell"
11537   if test $withval != yes; then
11538
11539 cat >>confdefs.h <<_ACEOF
11540 #define EXECSHELL "$withval"
11541 _ACEOF
11542
11543          else
11544                 cat >>confdefs.h <<_ACEOF
11545 #define EXECSHELL "/bin/sh"
11546 _ACEOF
11547
11548         fi
11549 else
11550   cat >>confdefs.h <<_ACEOF
11551 #define EXECSHELL "/bin/sh"
11552 _ACEOF
11553
11554 fi;
11555
11556 # Check whether --enable-exact-address or --disable-exact-address was given.
11557 if test "${enable_exact_address+set}" = set; then
11558   enableval="$enable_exact_address"
11559   if test $enableval = yes; then
11560
11561 cat >>confdefs.h <<\_ACEOF
11562 #define EXACT_ADDRESS 1
11563 _ACEOF
11564
11565
11566         fi
11567 fi;
11568
11569 # Check whether --enable-hcache or --disable-hcache was given.
11570 if test "${enable_hcache+set}" = set; then
11571   enableval="$enable_hcache"
11572   if test x$enableval = xyes; then
11573
11574 cat >>confdefs.h <<\_ACEOF
11575 #define USE_HCACHE 1
11576 _ACEOF
11577
11578
11579     OLDCPPFLAGS="$CPPFLAGS"
11580     OLDLIBS="$LIBS"
11581
11582     need_md5="yes"
11583     ac_prefer_gdbm=yes
11584
11585 # Check whether --with-gdbm or --without-gdbm was given.
11586 if test "${with_gdbm+set}" = set; then
11587   withval="$with_gdbm"
11588   ac_prefer_gdbm=$withval
11589 fi;
11590     if test x$ac_prefer_gdbm != xno; then
11591         CPPFLAGS="$OLDCPPFLAGS"
11592         LIBS="$OLDLIBS -lgdbm";
11593         echo "$as_me:$LINENO: checking for gdbm_open" >&5
11594 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
11595 if test "${ac_cv_gdbmopen+set}" = set; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598
11599             ac_cv_gdbmopen=no
11600             cat >conftest.$ac_ext <<_ACEOF
11601 #line $LINENO "configure"
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 #include <gdbm.h>
11608 int
11609 main ()
11610 {
11611 gdbm_open(0,0,0,0,0);
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618   (eval $ac_link) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); } &&
11622          { ac_try='test -s conftest$ac_exeext'
11623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624   (eval $ac_try) 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   ac_cv_gdbmopen=yes
11629 else
11630   echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 fi
11634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11635
11636 fi
11637 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
11638 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
11639     fi
11640
11641     ac_bdb_prefix=yes
11642
11643 # Check whether --with-bdb or --without-bdb was given.
11644 if test "${with_bdb+set}" = set; then
11645   withval="$with_bdb"
11646   ac_bdb_prefix=$withval
11647 fi;
11648     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
11649         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
11650         for d in $ac_bdb_prefix; do
11651             bdbpfx="$bdbpfx $d"
11652             for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
11653                 bdbpfx="$bdbpfx $d/$v"
11654             done
11655         done
11656         BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
11657         echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
11658 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
11659         for d in $bdbpfx; do
11660             BDB_INCLUDE_DIR=""
11661             BDB_LIB_DIR=""
11662             for v in / $BDB_VERSIONS; do
11663                 if test -r "$d/include/$v/db.h"; then
11664                     BDB_INCLUDE_DIR="$d/include/$v"
11665                     if test -d "$d/lib/$v"; then
11666                         BDB_LIB_DIR="$d/lib/$v"
11667                         for l in `echo $BDB_VERSIONS`; do
11668                             CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
11669                             LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
11670                             cat >conftest.$ac_ext <<_ACEOF
11671 #line $LINENO "configure"
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677
11678                                 #include <stdlib.h>
11679                                 #include <db.h>
11680
11681 int
11682 main ()
11683 {
11684
11685                                 DB *db = NULL;
11686                                 db->open(db,NULL,NULL,NULL,0,0,0);
11687
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694   (eval $ac_link) 2>&5
11695   ac_status=$?
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); } &&
11698          { ac_try='test -s conftest$ac_exeext'
11699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700   (eval $ac_try) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; }; then
11704
11705                                 ac_cv_dbcreate=yes
11706                                 BDB_LIB="$l"
11707                                 break
11708
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 fi
11714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11715                         done
11716                         test x$ac_dbcreate = xyes && break
11717                     fi
11718                 fi
11719             done
11720             test x$BDB_LIB != x && break
11721         done
11722         if test x$ac_cv_dbcreate = xyes; then
11723             echo "$as_me:$LINENO: result: yes" >&5
11724 echo "${ECHO_T}yes" >&6
11725         else
11726             echo "$as_me:$LINENO: result: no" >&5
11727 echo "${ECHO_T}no" >&6
11728         fi
11729     fi
11730
11731     if test x$ac_cv_gdbmopen = xyes; then
11732         CPPFLAGS="$OLDCPPFLAGS"
11733         LIBS="$OLDLIBS -lgdbm";
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_GDBM 1
11737 _ACEOF
11738
11739     elif test x$ac_cv_dbcreate = xyes; then
11740         CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
11741         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
11742
11743 cat >>confdefs.h <<\_ACEOF
11744 #define HAVE_DB4 1
11745 _ACEOF
11746
11747     else
11748         { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
11749 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
11750    { (exit 1); exit 1; }; }
11751     fi
11752 fi
11753 fi;
11754
11755 if test "$need_md5" = "yes"
11756 then
11757         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
11758 fi
11759
11760
11761
11762
11763
11764
11765
11766 # Check whether --enable-iconv or --disable-iconv was given.
11767 if test "${enable_iconv+set}" = set; then
11768   enableval="$enable_iconv"
11769   if test x$enableval = xno ; then
11770                 am_cv_func_iconv=no
11771         fi
11772
11773 fi;
11774
11775 echo "$as_me:$LINENO: checking for off_t" >&5
11776 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11777 if test "${ac_cv_type_off_t+set}" = set; then
11778   echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780   cat >conftest.$ac_ext <<_ACEOF
11781 #line $LINENO "configure"
11782 /* confdefs.h.  */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h.  */
11787 $ac_includes_default
11788 int
11789 main ()
11790 {
11791 if ((off_t *) 0)
11792   return 0;
11793 if (sizeof (off_t))
11794   return 0;
11795   ;
11796   return 0;
11797 }
11798 _ACEOF
11799 rm -f conftest.$ac_objext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11801   (eval $ac_compile) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } &&
11805          { ac_try='test -s conftest.$ac_objext'
11806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807   (eval $ac_try) 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); }; }; then
11811   ac_cv_type_off_t=yes
11812 else
11813   echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 ac_cv_type_off_t=no
11817 fi
11818 rm -f conftest.$ac_objext conftest.$ac_ext
11819 fi
11820 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11821 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11822 if test $ac_cv_type_off_t = yes; then
11823   :
11824 else
11825
11826 cat >>confdefs.h <<_ACEOF
11827 #define off_t long
11828 _ACEOF
11829
11830 fi
11831
11832 echo "$as_me:$LINENO: checking for size_t" >&5
11833 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11834 if test "${ac_cv_type_size_t+set}" = set; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837   cat >conftest.$ac_ext <<_ACEOF
11838 #line $LINENO "configure"
11839 /* confdefs.h.  */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h.  */
11844 $ac_includes_default
11845 int
11846 main ()
11847 {
11848 if ((size_t *) 0)
11849   return 0;
11850 if (sizeof (size_t))
11851   return 0;
11852   ;
11853   return 0;
11854 }
11855 _ACEOF
11856 rm -f conftest.$ac_objext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858   (eval $ac_compile) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } &&
11862          { ac_try='test -s conftest.$ac_objext'
11863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864   (eval $ac_try) 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); }; }; then
11868   ac_cv_type_size_t=yes
11869 else
11870   echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11872
11873 ac_cv_type_size_t=no
11874 fi
11875 rm -f conftest.$ac_objext conftest.$ac_ext
11876 fi
11877 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11878 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11879 if test $ac_cv_type_size_t = yes; then
11880   :
11881 else
11882
11883 cat >>confdefs.h <<_ACEOF
11884 #define size_t unsigned
11885 _ACEOF
11886
11887 fi
11888
11889 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11890 # for constant arguments.  Useless!
11891 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11892 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11893 if test "${ac_cv_working_alloca_h+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903 #include <alloca.h>
11904 int
11905 main ()
11906 {
11907 char *p = (char *) alloca (2 * sizeof (int));
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914   (eval $ac_link) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -s conftest$ac_exeext'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   ac_cv_working_alloca_h=yes
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 ac_cv_working_alloca_h=no
11930 fi
11931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11932 fi
11933 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11934 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11935 if test $ac_cv_working_alloca_h = yes; then
11936
11937 cat >>confdefs.h <<\_ACEOF
11938 #define HAVE_ALLOCA_H 1
11939 _ACEOF
11940
11941 fi
11942
11943 echo "$as_me:$LINENO: checking for alloca" >&5
11944 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11945 if test "${ac_cv_func_alloca_works+set}" = set; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   cat >conftest.$ac_ext <<_ACEOF
11949 #line $LINENO "configure"
11950 /* confdefs.h.  */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h.  */
11955 #ifdef __GNUC__
11956 # define alloca __builtin_alloca
11957 #else
11958 # ifdef _MSC_VER
11959 #  include <malloc.h>
11960 #  define alloca _alloca
11961 # else
11962 #  if HAVE_ALLOCA_H
11963 #   include <alloca.h>
11964 #  else
11965 #   ifdef _AIX
11966  #pragma alloca
11967 #   else
11968 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11969 char *alloca ();
11970 #    endif
11971 #   endif
11972 #  endif
11973 # endif
11974 #endif
11975
11976 int
11977 main ()
11978 {
11979 char *p = (char *) alloca (1);
11980   ;
11981   return 0;
11982 }
11983 _ACEOF
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986   (eval $ac_link) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); } &&
11990          { ac_try='test -s conftest$ac_exeext'
11991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992   (eval $ac_try) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; }; then
11996   ac_cv_func_alloca_works=yes
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 ac_cv_func_alloca_works=no
12002 fi
12003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12004 fi
12005 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12006 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12007
12008 if test $ac_cv_func_alloca_works = yes; then
12009
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_ALLOCA 1
12012 _ACEOF
12013
12014 else
12015   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12016 # that cause trouble.  Some versions do not even contain alloca or
12017 # contain a buggy version.  If you still want to use their alloca,
12018 # use ar to extract alloca.o from them instead of compiling alloca.c.
12019
12020 ALLOCA=alloca.$ac_objext
12021
12022 cat >>confdefs.h <<\_ACEOF
12023 #define C_ALLOCA 1
12024 _ACEOF
12025
12026
12027 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12028 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12029 if test "${ac_cv_os_cray+set}" = set; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032   cat >conftest.$ac_ext <<_ACEOF
12033 #line $LINENO "configure"
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039 #if defined(CRAY) && ! defined(CRAY2)
12040 webecray
12041 #else
12042 wenotbecray
12043 #endif
12044
12045 _ACEOF
12046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12047   $EGREP "webecray" >/dev/null 2>&1; then
12048   ac_cv_os_cray=yes
12049 else
12050   ac_cv_os_cray=no
12051 fi
12052 rm -f conftest*
12053
12054 fi
12055 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12056 echo "${ECHO_T}$ac_cv_os_cray" >&6
12057 if test $ac_cv_os_cray = yes; then
12058   for ac_func in _getb67 GETB67 getb67; do
12059     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12060 echo "$as_me:$LINENO: checking for $ac_func" >&5
12061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12062 if eval "test \"\${$as_ac_var+set}\" = set"; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   cat >conftest.$ac_ext <<_ACEOF
12066 #line $LINENO "configure"
12067 /* confdefs.h.  */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h.  */
12072 /* System header to define __stub macros and hopefully few prototypes,
12073     which can conflict with char $ac_func (); below.
12074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075     <limits.h> exists even on freestanding compilers.  */
12076 #ifdef __STDC__
12077 # include <limits.h>
12078 #else
12079 # include <assert.h>
12080 #endif
12081 /* Override any gcc2 internal prototype to avoid an error.  */
12082 #ifdef __cplusplus
12083 extern "C"
12084 {
12085 #endif
12086 /* We use char because int might match the return type of a gcc2
12087    builtin and then its argument prototype would still apply.  */
12088 char $ac_func ();
12089 /* The GNU C library defines this for functions which it implements
12090     to always fail with ENOSYS.  Some functions are actually named
12091     something starting with __ and the normal name is an alias.  */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12093 choke me
12094 #else
12095 char (*f) () = $ac_func;
12096 #endif
12097 #ifdef __cplusplus
12098 }
12099 #endif
12100
12101 int
12102 main ()
12103 {
12104 return f != $ac_func;
12105   ;
12106   return 0;
12107 }
12108 _ACEOF
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111   (eval $ac_link) 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); } &&
12115          { ac_try='test -s conftest$ac_exeext'
12116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117   (eval $ac_try) 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; }; then
12121   eval "$as_ac_var=yes"
12122 else
12123   echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 eval "$as_ac_var=no"
12127 fi
12128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12129 fi
12130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12132 if test `eval echo '${'$as_ac_var'}'` = yes; then
12133
12134 cat >>confdefs.h <<_ACEOF
12135 #define CRAY_STACKSEG_END $ac_func
12136 _ACEOF
12137
12138     break
12139 fi
12140
12141   done
12142 fi
12143
12144 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12145 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12146 if test "${ac_cv_c_stack_direction+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   if test "$cross_compiling" = yes; then
12150   ac_cv_c_stack_direction=0
12151 else
12152   cat >conftest.$ac_ext <<_ACEOF
12153 #line $LINENO "configure"
12154 /* confdefs.h.  */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h.  */
12159 int
12160 find_stack_direction ()
12161 {
12162   static char *addr = 0;
12163   auto char dummy;
12164   if (addr == 0)
12165     {
12166       addr = &dummy;
12167       return find_stack_direction ();
12168     }
12169   else
12170     return (&dummy > addr) ? 1 : -1;
12171 }
12172
12173 int
12174 main ()
12175 {
12176   exit (find_stack_direction () < 0);
12177 }
12178 _ACEOF
12179 rm -f conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181   (eval $ac_link) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186   (eval $ac_try) 2>&5
12187   ac_status=$?
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); }; }; then
12190   ac_cv_c_stack_direction=1
12191 else
12192   echo "$as_me: program exited with status $ac_status" >&5
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196 ( exit $ac_status )
12197 ac_cv_c_stack_direction=-1
12198 fi
12199 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12200 fi
12201 fi
12202 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12203 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12204
12205 cat >>confdefs.h <<_ACEOF
12206 #define STACK_DIRECTION $ac_cv_c_stack_direction
12207 _ACEOF
12208
12209
12210 fi
12211
12212
12213
12214 for ac_header in stdlib.h unistd.h
12215 do
12216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12218   echo "$as_me:$LINENO: checking for $ac_header" >&5
12219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 fi
12223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12225 else
12226   # Is the header compilable?
12227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12230 #line $LINENO "configure"
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 $ac_includes_default
12237 #include <$ac_header>
12238 _ACEOF
12239 rm -f conftest.$ac_objext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241   (eval $ac_compile) 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); } &&
12245          { ac_try='test -s conftest.$ac_objext'
12246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247   (eval $ac_try) 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); }; }; then
12251   ac_header_compiler=yes
12252 else
12253   echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 ac_header_compiler=no
12257 fi
12258 rm -f conftest.$ac_objext conftest.$ac_ext
12259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12260 echo "${ECHO_T}$ac_header_compiler" >&6
12261
12262 # Is the header present?
12263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12265 cat >conftest.$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12267 /* confdefs.h.  */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h.  */
12272 #include <$ac_header>
12273 _ACEOF
12274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12276   ac_status=$?
12277   grep -v '^ *+' conftest.er1 >conftest.err
12278   rm -f conftest.er1
12279   cat conftest.err >&5
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); } >/dev/null; then
12282   if test -s conftest.err; then
12283     ac_cpp_err=$ac_c_preproc_warn_flag
12284   else
12285     ac_cpp_err=
12286   fi
12287 else
12288   ac_cpp_err=yes
12289 fi
12290 if test -z "$ac_cpp_err"; then
12291   ac_header_preproc=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296   ac_header_preproc=no
12297 fi
12298 rm -f conftest.err conftest.$ac_ext
12299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12300 echo "${ECHO_T}$ac_header_preproc" >&6
12301
12302 # So?  What about this header?
12303 case $ac_header_compiler:$ac_header_preproc in
12304   yes:no )
12305     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12309     (
12310       cat <<\_ASBOX
12311 ## ------------------------------------ ##
12312 ## Report this to bug-autoconf@gnu.org. ##
12313 ## ------------------------------------ ##
12314 _ASBOX
12315     ) |
12316       sed "s/^/$as_me: WARNING:     /" >&2
12317     ;;
12318   no:yes )
12319     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12321     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12325     (
12326       cat <<\_ASBOX
12327 ## ------------------------------------ ##
12328 ## Report this to bug-autoconf@gnu.org. ##
12329 ## ------------------------------------ ##
12330 _ASBOX
12331     ) |
12332       sed "s/^/$as_me: WARNING:     /" >&2
12333     ;;
12334 esac
12335 echo "$as_me:$LINENO: checking for $ac_header" >&5
12336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   eval "$as_ac_Header=$ac_header_preproc"
12341 fi
12342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12344
12345 fi
12346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12347   cat >>confdefs.h <<_ACEOF
12348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12349 _ACEOF
12350
12351 fi
12352
12353 done
12354
12355
12356 for ac_func in getpagesize
12357 do
12358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12359 echo "$as_me:$LINENO: checking for $ac_func" >&5
12360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12361 if eval "test \"\${$as_ac_var+set}\" = set"; then
12362   echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364   cat >conftest.$ac_ext <<_ACEOF
12365 #line $LINENO "configure"
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371 /* System header to define __stub macros and hopefully few prototypes,
12372     which can conflict with char $ac_func (); below.
12373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12374     <limits.h> exists even on freestanding compilers.  */
12375 #ifdef __STDC__
12376 # include <limits.h>
12377 #else
12378 # include <assert.h>
12379 #endif
12380 /* Override any gcc2 internal prototype to avoid an error.  */
12381 #ifdef __cplusplus
12382 extern "C"
12383 {
12384 #endif
12385 /* We use char because int might match the return type of a gcc2
12386    builtin and then its argument prototype would still apply.  */
12387 char $ac_func ();
12388 /* The GNU C library defines this for functions which it implements
12389     to always fail with ENOSYS.  Some functions are actually named
12390     something starting with __ and the normal name is an alias.  */
12391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12392 choke me
12393 #else
12394 char (*f) () = $ac_func;
12395 #endif
12396 #ifdef __cplusplus
12397 }
12398 #endif
12399
12400 int
12401 main ()
12402 {
12403 return f != $ac_func;
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410   (eval $ac_link) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } &&
12414          { ac_try='test -s conftest$ac_exeext'
12415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416   (eval $ac_try) 2>&5
12417   ac_status=$?
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); }; }; then
12420   eval "$as_ac_var=yes"
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 eval "$as_ac_var=no"
12426 fi
12427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12428 fi
12429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12431 if test `eval echo '${'$as_ac_var'}'` = yes; then
12432   cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12434 _ACEOF
12435
12436 fi
12437 done
12438
12439 echo "$as_me:$LINENO: checking for working mmap" >&5
12440 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12441 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12442   echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444   if test "$cross_compiling" = yes; then
12445   ac_cv_func_mmap_fixed_mapped=no
12446 else
12447   cat >conftest.$ac_ext <<_ACEOF
12448 #line $LINENO "configure"
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454 $ac_includes_default
12455 /* malloc might have been renamed as rpl_malloc. */
12456 #undef malloc
12457
12458 /* Thanks to Mike Haertel and Jim Avera for this test.
12459    Here is a matrix of mmap possibilities:
12460         mmap private not fixed
12461         mmap private fixed at somewhere currently unmapped
12462         mmap private fixed at somewhere already mapped
12463         mmap shared not fixed
12464         mmap shared fixed at somewhere currently unmapped
12465         mmap shared fixed at somewhere already mapped
12466    For private mappings, we should verify that changes cannot be read()
12467    back from the file, nor mmap's back from the file at a different
12468    address.  (There have been systems where private was not correctly
12469    implemented like the infamous i386 svr4.0, and systems where the
12470    VM page cache was not coherent with the file system buffer cache
12471    like early versions of FreeBSD and possibly contemporary NetBSD.)
12472    For shared mappings, we should conversely verify that changes get
12473    propagated back to all the places they're supposed to be.
12474
12475    Grep wants private fixed already mapped.
12476    The main things grep needs to know about mmap are:
12477    * does it exist and is it safe to write into the mmap'd area
12478    * how to use it (BSD variants)  */
12479
12480 #include <fcntl.h>
12481 #include <sys/mman.h>
12482
12483 #if !STDC_HEADERS && !HAVE_STDLIB_H
12484 char *malloc ();
12485 #endif
12486
12487 /* This mess was copied from the GNU getpagesize.h.  */
12488 #if !HAVE_GETPAGESIZE
12489 /* Assume that all systems that can run configure have sys/param.h.  */
12490 # if !HAVE_SYS_PARAM_H
12491 #  define HAVE_SYS_PARAM_H 1
12492 # endif
12493
12494 # ifdef _SC_PAGESIZE
12495 #  define getpagesize() sysconf(_SC_PAGESIZE)
12496 # else /* no _SC_PAGESIZE */
12497 #  if HAVE_SYS_PARAM_H
12498 #   include <sys/param.h>
12499 #   ifdef EXEC_PAGESIZE
12500 #    define getpagesize() EXEC_PAGESIZE
12501 #   else /* no EXEC_PAGESIZE */
12502 #    ifdef NBPG
12503 #     define getpagesize() NBPG * CLSIZE
12504 #     ifndef CLSIZE
12505 #      define CLSIZE 1
12506 #     endif /* no CLSIZE */
12507 #    else /* no NBPG */
12508 #     ifdef NBPC
12509 #      define getpagesize() NBPC
12510 #     else /* no NBPC */
12511 #      ifdef PAGESIZE
12512 #       define getpagesize() PAGESIZE
12513 #      endif /* PAGESIZE */
12514 #     endif /* no NBPC */
12515 #    endif /* no NBPG */
12516 #   endif /* no EXEC_PAGESIZE */
12517 #  else /* no HAVE_SYS_PARAM_H */
12518 #   define getpagesize() 8192   /* punt totally */
12519 #  endif /* no HAVE_SYS_PARAM_H */
12520 # endif /* no _SC_PAGESIZE */
12521
12522 #endif /* no HAVE_GETPAGESIZE */
12523
12524 int
12525 main ()
12526 {
12527   char *data, *data2, *data3;
12528   int i, pagesize;
12529   int fd;
12530
12531   pagesize = getpagesize ();
12532
12533   /* First, make a file with some known garbage in it. */
12534   data = (char *) malloc (pagesize);
12535   if (!data)
12536     exit (1);
12537   for (i = 0; i < pagesize; ++i)
12538     *(data + i) = rand ();
12539   umask (0);
12540   fd = creat ("conftest.mmap", 0600);
12541   if (fd < 0)
12542     exit (1);
12543   if (write (fd, data, pagesize) != pagesize)
12544     exit (1);
12545   close (fd);
12546
12547   /* Next, try to mmap the file at a fixed address which already has
12548      something else allocated at it.  If we can, also make sure that
12549      we see the same garbage.  */
12550   fd = open ("conftest.mmap", O_RDWR);
12551   if (fd < 0)
12552     exit (1);
12553   data2 = (char *) malloc (2 * pagesize);
12554   if (!data2)
12555     exit (1);
12556   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12557   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12558                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12559     exit (1);
12560   for (i = 0; i < pagesize; ++i)
12561     if (*(data + i) != *(data2 + i))
12562       exit (1);
12563
12564   /* Finally, make sure that changes to the mapped area do not
12565      percolate back to the file as seen by read().  (This is a bug on
12566      some variants of i386 svr4.0.)  */
12567   for (i = 0; i < pagesize; ++i)
12568     *(data2 + i) = *(data2 + i) + 1;
12569   data3 = (char *) malloc (pagesize);
12570   if (!data3)
12571     exit (1);
12572   if (read (fd, data3, pagesize) != pagesize)
12573     exit (1);
12574   for (i = 0; i < pagesize; ++i)
12575     if (*(data + i) != *(data3 + i))
12576       exit (1);
12577   close (fd);
12578   exit (0);
12579 }
12580 _ACEOF
12581 rm -f conftest$ac_exeext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12583   (eval $ac_link) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588   (eval $ac_try) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; }; then
12592   ac_cv_func_mmap_fixed_mapped=yes
12593 else
12594   echo "$as_me: program exited with status $ac_status" >&5
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 ( exit $ac_status )
12599 ac_cv_func_mmap_fixed_mapped=no
12600 fi
12601 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12602 fi
12603 fi
12604 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12605 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12606 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12607
12608 cat >>confdefs.h <<\_ACEOF
12609 #define HAVE_MMAP 1
12610 _ACEOF
12611
12612 fi
12613 rm -f conftest.mmap
12614
12615
12616     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12617 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12618 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12619   echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621   cat >conftest.$ac_ext <<_ACEOF
12622 #line $LINENO "configure"
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628
12629 #include <features.h>
12630 #ifdef __GNU_LIBRARY__
12631  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12632   Lucky GNU user
12633  #endif
12634 #endif
12635
12636 _ACEOF
12637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12638   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12639   ac_cv_gnu_library_2_1=yes
12640 else
12641   ac_cv_gnu_library_2_1=no
12642 fi
12643 rm -f conftest*
12644
12645
12646
12647 fi
12648 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12649 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12650
12651     GLIBC21="$ac_cv_gnu_library_2_1"
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12666 stdlib.h string.h unistd.h sys/param.h
12667 do
12668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12670   echo "$as_me:$LINENO: checking for $ac_header" >&5
12671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12673   echo $ECHO_N "(cached) $ECHO_C" >&6
12674 fi
12675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12677 else
12678   # Is the header compilable?
12679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12681 cat >conftest.$ac_ext <<_ACEOF
12682 #line $LINENO "configure"
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688 $ac_includes_default
12689 #include <$ac_header>
12690 _ACEOF
12691 rm -f conftest.$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693   (eval $ac_compile) 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } &&
12697          { ac_try='test -s conftest.$ac_objext'
12698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699   (eval $ac_try) 2>&5
12700   ac_status=$?
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); }; }; then
12703   ac_header_compiler=yes
12704 else
12705   echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708 ac_header_compiler=no
12709 fi
12710 rm -f conftest.$ac_objext conftest.$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 echo "${ECHO_T}$ac_header_compiler" >&6
12713
12714 # Is the header present?
12715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12717 cat >conftest.$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12719 /* confdefs.h.  */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h.  */
12724 #include <$ac_header>
12725 _ACEOF
12726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12728   ac_status=$?
12729   grep -v '^ *+' conftest.er1 >conftest.err
12730   rm -f conftest.er1
12731   cat conftest.err >&5
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } >/dev/null; then
12734   if test -s conftest.err; then
12735     ac_cpp_err=$ac_c_preproc_warn_flag
12736   else
12737     ac_cpp_err=
12738   fi
12739 else
12740   ac_cpp_err=yes
12741 fi
12742 if test -z "$ac_cpp_err"; then
12743   ac_header_preproc=yes
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748   ac_header_preproc=no
12749 fi
12750 rm -f conftest.err conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 echo "${ECHO_T}$ac_header_preproc" >&6
12753
12754 # So?  What about this header?
12755 case $ac_header_compiler:$ac_header_preproc in
12756   yes:no )
12757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12761     (
12762       cat <<\_ASBOX
12763 ## ------------------------------------ ##
12764 ## Report this to bug-autoconf@gnu.org. ##
12765 ## ------------------------------------ ##
12766 _ASBOX
12767     ) |
12768       sed "s/^/$as_me: WARNING:     /" >&2
12769     ;;
12770   no:yes )
12771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12773     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12777     (
12778       cat <<\_ASBOX
12779 ## ------------------------------------ ##
12780 ## Report this to bug-autoconf@gnu.org. ##
12781 ## ------------------------------------ ##
12782 _ASBOX
12783     ) |
12784       sed "s/^/$as_me: WARNING:     /" >&2
12785     ;;
12786 esac
12787 echo "$as_me:$LINENO: checking for $ac_header" >&5
12788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   eval "$as_ac_Header=$ac_header_preproc"
12793 fi
12794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12796
12797 fi
12798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12799   cat >>confdefs.h <<_ACEOF
12800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12801 _ACEOF
12802
12803 fi
12804
12805 done
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12829 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12830 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12831 do
12832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833 echo "$as_me:$LINENO: checking for $ac_func" >&5
12834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12835 if eval "test \"\${$as_ac_var+set}\" = set"; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838   cat >conftest.$ac_ext <<_ACEOF
12839 #line $LINENO "configure"
12840 /* confdefs.h.  */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h.  */
12845 /* System header to define __stub macros and hopefully few prototypes,
12846     which can conflict with char $ac_func (); below.
12847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848     <limits.h> exists even on freestanding compilers.  */
12849 #ifdef __STDC__
12850 # include <limits.h>
12851 #else
12852 # include <assert.h>
12853 #endif
12854 /* Override any gcc2 internal prototype to avoid an error.  */
12855 #ifdef __cplusplus
12856 extern "C"
12857 {
12858 #endif
12859 /* We use char because int might match the return type of a gcc2
12860    builtin and then its argument prototype would still apply.  */
12861 char $ac_func ();
12862 /* The GNU C library defines this for functions which it implements
12863     to always fail with ENOSYS.  Some functions are actually named
12864     something starting with __ and the normal name is an alias.  */
12865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12866 choke me
12867 #else
12868 char (*f) () = $ac_func;
12869 #endif
12870 #ifdef __cplusplus
12871 }
12872 #endif
12873
12874 int
12875 main ()
12876 {
12877 return f != $ac_func;
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884   (eval $ac_link) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); } &&
12888          { ac_try='test -s conftest$ac_exeext'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   eval "$as_ac_var=yes"
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 eval "$as_ac_var=no"
12900 fi
12901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12902 fi
12903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12905 if test `eval echo '${'$as_ac_var'}'` = yes; then
12906   cat >>confdefs.h <<_ACEOF
12907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12908 _ACEOF
12909
12910 fi
12911 done
12912
12913
12914
12915
12916
12917 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12918 if test "${with_libiconv_prefix+set}" = set; then
12919   withval="$with_libiconv_prefix"
12920
12921     for dir in `echo "$withval" | tr : ' '`; do
12922       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12923       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12924     done
12925
12926 fi;
12927
12928   echo "$as_me:$LINENO: checking for iconv" >&5
12929 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12930 if test "${am_cv_func_iconv+set}" = set; then
12931   echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933
12934     am_cv_func_iconv="no, consider installing GNU libiconv"
12935     am_cv_lib_iconv=no
12936     cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12938 /* confdefs.h.  */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h.  */
12943 #include <stdlib.h>
12944 #include <iconv.h>
12945 int
12946 main ()
12947 {
12948 iconv_t cd = iconv_open("","");
12949        iconv(cd,NULL,NULL,NULL,NULL);
12950        iconv_close(cd);
12951   ;
12952   return 0;
12953 }
12954 _ACEOF
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957   (eval $ac_link) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } &&
12961          { ac_try='test -s conftest$ac_exeext'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; }; then
12967   am_cv_func_iconv=yes
12968 else
12969   echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 fi
12973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12974     if test "$am_cv_func_iconv" != yes; then
12975       am_save_LIBS="$LIBS"
12976       LIBS="$LIBS -liconv"
12977       cat >conftest.$ac_ext <<_ACEOF
12978 #line $LINENO "configure"
12979 /* confdefs.h.  */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h.  */
12984 #include <stdlib.h>
12985 #include <iconv.h>
12986 int
12987 main ()
12988 {
12989 iconv_t cd = iconv_open("","");
12990          iconv(cd,NULL,NULL,NULL,NULL);
12991          iconv_close(cd);
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998   (eval $ac_link) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } &&
13002          { ac_try='test -s conftest$ac_exeext'
13003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004   (eval $ac_try) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; }; then
13008   am_cv_lib_iconv=yes
13009         am_cv_func_iconv=yes
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014 fi
13015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13016       LIBS="$am_save_LIBS"
13017     fi
13018
13019 fi
13020 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13021 echo "${ECHO_T}$am_cv_func_iconv" >&6
13022   if test "$am_cv_func_iconv" = yes; then
13023
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_ICONV 1
13026 _ACEOF
13027
13028     echo "$as_me:$LINENO: checking for iconv declaration" >&5
13029 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13030     if test "${am_cv_proto_iconv+set}" = set; then
13031   echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033
13034       cat >conftest.$ac_ext <<_ACEOF
13035 #line $LINENO "configure"
13036 /* confdefs.h.  */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h.  */
13041
13042 #include <stdlib.h>
13043 #include <iconv.h>
13044 extern
13045 #ifdef __cplusplus
13046 "C"
13047 #endif
13048 #if defined(__STDC__) || defined(__cplusplus)
13049 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13050 #else
13051 size_t iconv();
13052 #endif
13053
13054 int
13055 main ()
13056 {
13057
13058   ;
13059   return 0;
13060 }
13061 _ACEOF
13062 rm -f conftest.$ac_objext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064   (eval $ac_compile) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } &&
13068          { ac_try='test -s conftest.$ac_objext'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; }; then
13074   am_cv_proto_iconv_arg1=""
13075 else
13076   echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079 am_cv_proto_iconv_arg1="const"
13080 fi
13081 rm -f conftest.$ac_objext conftest.$ac_ext
13082       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);"
13083 fi
13084
13085     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13086     echo "$as_me:$LINENO: result: ${ac_t:-
13087          }$am_cv_proto_iconv" >&5
13088 echo "${ECHO_T}${ac_t:-
13089          }$am_cv_proto_iconv" >&6
13090
13091 cat >>confdefs.h <<_ACEOF
13092 #define ICONV_CONST $am_cv_proto_iconv_arg1
13093 _ACEOF
13094
13095   fi
13096   LIBICONV=
13097   if test "$am_cv_lib_iconv" = yes; then
13098     LIBICONV="-liconv"
13099   fi
13100
13101
13102
13103   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13104 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13105 if test "${am_cv_langinfo_codeset+set}" = set; then
13106   echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108   cat >conftest.$ac_ext <<_ACEOF
13109 #line $LINENO "configure"
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115 #include <langinfo.h>
13116 int
13117 main ()
13118 {
13119 char* cs = nl_langinfo(CODESET);
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 rm -f conftest.$ac_objext conftest$ac_exeext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13126   (eval $ac_link) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } &&
13130          { ac_try='test -s conftest$ac_exeext'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; }; then
13136   am_cv_langinfo_codeset=yes
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 am_cv_langinfo_codeset=no
13142 fi
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13144
13145 fi
13146 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13147 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13148   if test $am_cv_langinfo_codeset = yes; then
13149
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_LANGINFO_CODESET 1
13152 _ACEOF
13153
13154   fi
13155
13156    if test $ac_cv_header_locale_h = yes; then
13157     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13158 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13159 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   cat >conftest.$ac_ext <<_ACEOF
13163 #line $LINENO "configure"
13164 /* confdefs.h.  */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h.  */
13169 #include <locale.h>
13170 int
13171 main ()
13172 {
13173 return LC_MESSAGES
13174   ;
13175   return 0;
13176 }
13177 _ACEOF
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180   (eval $ac_link) 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); } &&
13184          { ac_try='test -s conftest$ac_exeext'
13185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186   (eval $ac_try) 2>&5
13187   ac_status=$?
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); }; }; then
13190   am_cv_val_LC_MESSAGES=yes
13191 else
13192   echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195 am_cv_val_LC_MESSAGES=no
13196 fi
13197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13198 fi
13199 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13200 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13201     if test $am_cv_val_LC_MESSAGES = yes; then
13202
13203 cat >>confdefs.h <<\_ACEOF
13204 #define HAVE_LC_MESSAGES 1
13205 _ACEOF
13206
13207     fi
13208   fi
13209    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13210 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13211         # Check whether --enable-nls or --disable-nls was given.
13212 if test "${enable_nls+set}" = set; then
13213   enableval="$enable_nls"
13214   USE_NLS=$enableval
13215 else
13216   USE_NLS=yes
13217 fi;
13218     echo "$as_me:$LINENO: result: $USE_NLS" >&5
13219 echo "${ECHO_T}$USE_NLS" >&6
13220
13221
13222     BUILD_INCLUDED_LIBINTL=no
13223     USE_INCLUDED_LIBINTL=no
13224     INTLLIBS=
13225
13226         if test "$USE_NLS" = "yes"; then
13227
13228 cat >>confdefs.h <<\_ACEOF
13229 #define ENABLE_NLS 1
13230 _ACEOF
13231
13232       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13233 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13234
13235 # Check whether --with-included-gettext or --without-included-gettext was given.
13236 if test "${with_included_gettext+set}" = set; then
13237   withval="$with_included_gettext"
13238   nls_cv_force_use_gnu_gettext=$withval
13239 else
13240   nls_cv_force_use_gnu_gettext=no
13241 fi;
13242       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13243 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13244
13245       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13246       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13247                                 CATOBJEXT=NONE
13248
13249
13250
13251
13252         if test "${ac_cv_header_libintl_h+set}" = set; then
13253   echo "$as_me:$LINENO: checking for libintl.h" >&5
13254 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13255 if test "${ac_cv_header_libintl_h+set}" = set; then
13256   echo $ECHO_N "(cached) $ECHO_C" >&6
13257 fi
13258 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13259 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13260 else
13261   # Is the header compilable?
13262 echo "$as_me:$LINENO: checking libintl.h usability" >&5
13263 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
13264 cat >conftest.$ac_ext <<_ACEOF
13265 #line $LINENO "configure"
13266 /* confdefs.h.  */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h.  */
13271 $ac_includes_default
13272 #include <libintl.h>
13273 _ACEOF
13274 rm -f conftest.$ac_objext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276   (eval $ac_compile) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); } &&
13280          { ac_try='test -s conftest.$ac_objext'
13281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282   (eval $ac_try) 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; }; then
13286   ac_header_compiler=yes
13287 else
13288   echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 ac_header_compiler=no
13292 fi
13293 rm -f conftest.$ac_objext conftest.$ac_ext
13294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13295 echo "${ECHO_T}$ac_header_compiler" >&6
13296
13297 # Is the header present?
13298 echo "$as_me:$LINENO: checking libintl.h presence" >&5
13299 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
13300 cat >conftest.$ac_ext <<_ACEOF
13301 #line $LINENO "configure"
13302 /* confdefs.h.  */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h.  */
13307 #include <libintl.h>
13308 _ACEOF
13309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13310   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13311   ac_status=$?
13312   grep -v '^ *+' conftest.er1 >conftest.err
13313   rm -f conftest.er1
13314   cat conftest.err >&5
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } >/dev/null; then
13317   if test -s conftest.err; then
13318     ac_cpp_err=$ac_c_preproc_warn_flag
13319   else
13320     ac_cpp_err=
13321   fi
13322 else
13323   ac_cpp_err=yes
13324 fi
13325 if test -z "$ac_cpp_err"; then
13326   ac_header_preproc=yes
13327 else
13328   echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13330
13331   ac_header_preproc=no
13332 fi
13333 rm -f conftest.err conftest.$ac_ext
13334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13335 echo "${ECHO_T}$ac_header_preproc" >&6
13336
13337 # So?  What about this header?
13338 case $ac_header_compiler:$ac_header_preproc in
13339   yes:no )
13340     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13341 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13342     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13343 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13344     (
13345       cat <<\_ASBOX
13346 ## ------------------------------------ ##
13347 ## Report this to bug-autoconf@gnu.org. ##
13348 ## ------------------------------------ ##
13349 _ASBOX
13350     ) |
13351       sed "s/^/$as_me: WARNING:     /" >&2
13352     ;;
13353   no:yes )
13354     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13355 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13356     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13357 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13358     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13359 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13360     (
13361       cat <<\_ASBOX
13362 ## ------------------------------------ ##
13363 ## Report this to bug-autoconf@gnu.org. ##
13364 ## ------------------------------------ ##
13365 _ASBOX
13366     ) |
13367       sed "s/^/$as_me: WARNING:     /" >&2
13368     ;;
13369 esac
13370 echo "$as_me:$LINENO: checking for libintl.h" >&5
13371 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13372 if test "${ac_cv_header_libintl_h+set}" = set; then
13373   echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375   ac_cv_header_libintl_h=$ac_header_preproc
13376 fi
13377 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13378 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13379
13380 fi
13381 if test $ac_cv_header_libintl_h = yes; then
13382   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13383 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13384 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387   cat >conftest.$ac_ext <<_ACEOF
13388 #line $LINENO "configure"
13389 /* confdefs.h.  */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h.  */
13394 #include <libintl.h>
13395 extern int _nl_msg_cat_cntr;
13396 int
13397 main ()
13398 {
13399 bindtextdomain ("", "");
13400 return (int) gettext ("") + _nl_msg_cat_cntr
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13407   (eval $ac_link) 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); } &&
13411          { ac_try='test -s conftest$ac_exeext'
13412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413   (eval $ac_try) 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; }; then
13417   gt_cv_func_gnugettext1_libc=yes
13418 else
13419   echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 gt_cv_func_gnugettext1_libc=no
13423 fi
13424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13425 fi
13426 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13427 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13428
13429            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13430              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13431 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13432 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13433   echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435   gt_save_LIBS="$LIBS"
13436                 LIBS="$LIBS -lintl $LIBICONV"
13437                 cat >conftest.$ac_ext <<_ACEOF
13438 #line $LINENO "configure"
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444 #include <libintl.h>
13445 extern int _nl_msg_cat_cntr;
13446 int
13447 main ()
13448 {
13449 bindtextdomain ("", "");
13450 return (int) gettext ("") + _nl_msg_cat_cntr
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457   (eval $ac_link) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } &&
13461          { ac_try='test -s conftest$ac_exeext'
13462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; }; then
13467   gt_cv_func_gnugettext1_libintl=yes
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 gt_cv_func_gnugettext1_libintl=no
13473 fi
13474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13475                 LIBS="$gt_save_LIBS"
13476 fi
13477 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13478 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13479            fi
13480
13481                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13482               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13483                    && test "$PACKAGE" != gettext; }; then
13484
13485 cat >>confdefs.h <<\_ACEOF
13486 #define HAVE_GETTEXT 1
13487 _ACEOF
13488
13489
13490              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13491                                        INTLLIBS="-lintl $LIBICONV"
13492              fi
13493
13494              gt_save_LIBS="$LIBS"
13495              LIBS="$LIBS $INTLLIBS"
13496
13497 for ac_func in dcgettext
13498 do
13499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13500 echo "$as_me:$LINENO: checking for $ac_func" >&5
13501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_var+set}\" = set"; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   cat >conftest.$ac_ext <<_ACEOF
13506 #line $LINENO "configure"
13507 /* confdefs.h.  */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h.  */
13512 /* System header to define __stub macros and hopefully few prototypes,
13513     which can conflict with char $ac_func (); below.
13514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13515     <limits.h> exists even on freestanding compilers.  */
13516 #ifdef __STDC__
13517 # include <limits.h>
13518 #else
13519 # include <assert.h>
13520 #endif
13521 /* Override any gcc2 internal prototype to avoid an error.  */
13522 #ifdef __cplusplus
13523 extern "C"
13524 {
13525 #endif
13526 /* We use char because int might match the return type of a gcc2
13527    builtin and then its argument prototype would still apply.  */
13528 char $ac_func ();
13529 /* The GNU C library defines this for functions which it implements
13530     to always fail with ENOSYS.  Some functions are actually named
13531     something starting with __ and the normal name is an alias.  */
13532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13533 choke me
13534 #else
13535 char (*f) () = $ac_func;
13536 #endif
13537 #ifdef __cplusplus
13538 }
13539 #endif
13540
13541 int
13542 main ()
13543 {
13544 return f != $ac_func;
13545   ;
13546   return 0;
13547 }
13548 _ACEOF
13549 rm -f conftest.$ac_objext conftest$ac_exeext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13551   (eval $ac_link) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); } &&
13555          { ac_try='test -s conftest$ac_exeext'
13556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557   (eval $ac_try) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; }; then
13561   eval "$as_ac_var=yes"
13562 else
13563   echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566 eval "$as_ac_var=no"
13567 fi
13568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13569 fi
13570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13572 if test `eval echo '${'$as_ac_var'}'` = yes; then
13573   cat >>confdefs.h <<_ACEOF
13574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13575 _ACEOF
13576
13577 fi
13578 done
13579
13580              LIBS="$gt_save_LIBS"
13581
13582                      # Extract the first word of "msgfmt", so it can be a program name with args.
13583 set dummy msgfmt; ac_word=$2
13584 echo "$as_me:$LINENO: checking for $ac_word" >&5
13585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13586 if test "${ac_cv_path_MSGFMT+set}" = set; then
13587   echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589   case "$MSGFMT" in
13590   /*)
13591   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13592   ;;
13593   *)
13594   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13595   for ac_dir in $PATH; do
13596     test -z "$ac_dir" && ac_dir=.
13597     if test -f $ac_dir/$ac_word; then
13598       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13599         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13600         break
13601       fi
13602     fi
13603   done
13604   IFS="$ac_save_ifs"
13605   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13606   ;;
13607 esac
13608 fi
13609 MSGFMT="$ac_cv_path_MSGFMT"
13610 if test "$MSGFMT" != ":"; then
13611   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13612 echo "${ECHO_T}$MSGFMT" >&6
13613 else
13614   echo "$as_me:$LINENO: result: no" >&5
13615 echo "${ECHO_T}no" >&6
13616 fi
13617
13618              # Extract the first word of "gmsgfmt", so it can be a program name with args.
13619 set dummy gmsgfmt; ac_word=$2
13620 echo "$as_me:$LINENO: checking for $ac_word" >&5
13621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13622 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13623   echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625   case $GMSGFMT in
13626   [\\/]* | ?:[\\/]*)
13627   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13628   ;;
13629   *)
13630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13632 do
13633   IFS=$as_save_IFS
13634   test -z "$as_dir" && as_dir=.
13635   for ac_exec_ext in '' $ac_executable_extensions; do
13636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13639     break 2
13640   fi
13641 done
13642 done
13643
13644   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13645   ;;
13646 esac
13647 fi
13648 GMSGFMT=$ac_cv_path_GMSGFMT
13649
13650 if test -n "$GMSGFMT"; then
13651   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13652 echo "${ECHO_T}$GMSGFMT" >&6
13653 else
13654   echo "$as_me:$LINENO: result: no" >&5
13655 echo "${ECHO_T}no" >&6
13656 fi
13657
13658
13659                      # Extract the first word of "xgettext", so it can be a program name with args.
13660 set dummy xgettext; ac_word=$2
13661 echo "$as_me:$LINENO: checking for $ac_word" >&5
13662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13663 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13664   echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666   case "$XGETTEXT" in
13667   /*)
13668   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13669   ;;
13670   *)
13671   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13672   for ac_dir in $PATH; do
13673     test -z "$ac_dir" && ac_dir=.
13674     if test -f $ac_dir/$ac_word; then
13675       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13676         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13677         break
13678       fi
13679     fi
13680   done
13681   IFS="$ac_save_ifs"
13682   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13683   ;;
13684 esac
13685 fi
13686 XGETTEXT="$ac_cv_path_XGETTEXT"
13687 if test "$XGETTEXT" != ":"; then
13688   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13689 echo "${ECHO_T}$XGETTEXT" >&6
13690 else
13691   echo "$as_me:$LINENO: result: no" >&5
13692 echo "${ECHO_T}no" >&6
13693 fi
13694
13695
13696              CATOBJEXT=.gmo
13697            fi
13698
13699 fi
13700
13701
13702
13703         if test "$CATOBJEXT" = "NONE"; then
13704                           nls_cv_use_gnu_gettext=yes
13705         fi
13706       fi
13707
13708       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13709                 INTLOBJS="\$(GETTOBJS)"
13710         # Extract the first word of "msgfmt", so it can be a program name with args.
13711 set dummy msgfmt; ac_word=$2
13712 echo "$as_me:$LINENO: checking for $ac_word" >&5
13713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13714 if test "${ac_cv_path_MSGFMT+set}" = set; then
13715   echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717   case "$MSGFMT" in
13718   /*)
13719   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13720   ;;
13721   *)
13722   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13723   for ac_dir in $PATH; do
13724     test -z "$ac_dir" && ac_dir=.
13725     if test -f $ac_dir/$ac_word; then
13726       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13727         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13728         break
13729       fi
13730     fi
13731   done
13732   IFS="$ac_save_ifs"
13733   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13734   ;;
13735 esac
13736 fi
13737 MSGFMT="$ac_cv_path_MSGFMT"
13738 if test "$MSGFMT" != ":"; then
13739   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13740 echo "${ECHO_T}$MSGFMT" >&6
13741 else
13742   echo "$as_me:$LINENO: result: no" >&5
13743 echo "${ECHO_T}no" >&6
13744 fi
13745
13746         # Extract the first word of "gmsgfmt", so it can be a program name with args.
13747 set dummy gmsgfmt; ac_word=$2
13748 echo "$as_me:$LINENO: checking for $ac_word" >&5
13749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13750 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13751   echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753   case $GMSGFMT in
13754   [\\/]* | ?:[\\/]*)
13755   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13756   ;;
13757   *)
13758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13760 do
13761   IFS=$as_save_IFS
13762   test -z "$as_dir" && as_dir=.
13763   for ac_exec_ext in '' $ac_executable_extensions; do
13764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13765     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13767     break 2
13768   fi
13769 done
13770 done
13771
13772   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13773   ;;
13774 esac
13775 fi
13776 GMSGFMT=$ac_cv_path_GMSGFMT
13777
13778 if test -n "$GMSGFMT"; then
13779   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13780 echo "${ECHO_T}$GMSGFMT" >&6
13781 else
13782   echo "$as_me:$LINENO: result: no" >&5
13783 echo "${ECHO_T}no" >&6
13784 fi
13785
13786         # Extract the first word of "xgettext", so it can be a program name with args.
13787 set dummy xgettext; ac_word=$2
13788 echo "$as_me:$LINENO: checking for $ac_word" >&5
13789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13790 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793   case "$XGETTEXT" in
13794   /*)
13795   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13796   ;;
13797   *)
13798   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13799   for ac_dir in $PATH; do
13800     test -z "$ac_dir" && ac_dir=.
13801     if test -f $ac_dir/$ac_word; then
13802       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13803         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13804         break
13805       fi
13806     fi
13807   done
13808   IFS="$ac_save_ifs"
13809   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13810   ;;
13811 esac
13812 fi
13813 XGETTEXT="$ac_cv_path_XGETTEXT"
13814 if test "$XGETTEXT" != ":"; then
13815   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13816 echo "${ECHO_T}$XGETTEXT" >&6
13817 else
13818   echo "$as_me:$LINENO: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13820 fi
13821
13822
13823         BUILD_INCLUDED_LIBINTL=yes
13824         USE_INCLUDED_LIBINTL=yes
13825         CATOBJEXT=.gmo
13826         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13827         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13828       fi
13829
13830                   if test "$GMSGFMT" != ":"; then
13831                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13832           : ;
13833         else
13834           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13835 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13836           GMSGFMT=":"
13837         fi
13838       fi
13839
13840                   if test "$XGETTEXT" != ":"; then
13841                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13842           : ;
13843         else
13844           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13845 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13846           XGETTEXT=":"
13847         fi
13848       fi
13849
13850             POSUB=po
13851     fi
13852               ac_config_commands="$ac_config_commands default-1"
13853
13854
13855
13856             if test "$PACKAGE" = gettext; then
13857       BUILD_INCLUDED_LIBINTL=yes
13858     fi
13859
13860                                             for ac_prog in bison
13861 do
13862   # Extract the first word of "$ac_prog", so it can be a program name with args.
13863 set dummy $ac_prog; ac_word=$2
13864 echo "$as_me:$LINENO: checking for $ac_word" >&5
13865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13866 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13867   echo $ECHO_N "(cached) $ECHO_C" >&6
13868 else
13869   if test -n "$INTLBISON"; then
13870   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13871 else
13872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13873 for as_dir in $PATH
13874 do
13875   IFS=$as_save_IFS
13876   test -z "$as_dir" && as_dir=.
13877   for ac_exec_ext in '' $ac_executable_extensions; do
13878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13879     ac_cv_prog_INTLBISON="$ac_prog"
13880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13881     break 2
13882   fi
13883 done
13884 done
13885
13886 fi
13887 fi
13888 INTLBISON=$ac_cv_prog_INTLBISON
13889 if test -n "$INTLBISON"; then
13890   echo "$as_me:$LINENO: result: $INTLBISON" >&5
13891 echo "${ECHO_T}$INTLBISON" >&6
13892 else
13893   echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6
13895 fi
13896
13897   test -n "$INTLBISON" && break
13898 done
13899
13900     if test -z "$INTLBISON"; then
13901       ac_verc_fail=yes
13902     else
13903             echo "$as_me:$LINENO: checking version of bison" >&5
13904 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13905       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13906       case $ac_prog_version in
13907         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13908         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13909            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13910         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13911       esac
13912       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13913 echo "${ECHO_T}$ac_prog_version" >&6
13914     fi
13915     if test $ac_verc_fail = yes; then
13916       INTLBISON=:
13917     fi
13918
13919                 for lang in $ALL_LINGUAS; do
13920       GMOFILES="$GMOFILES $lang.gmo"
13921       POFILES="$POFILES $lang.po"
13922     done
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934         nls_cv_header_intl=
13935     nls_cv_header_libgt=
13936
13937         DATADIRNAME=share
13938
13939
13940         INSTOBJEXT=.mo
13941
13942
13943         GENCAT=gencat
13944
13945
13946
13947    if test "x$CATOBJEXT" != "x"; then
13948      if test "x$ALL_LINGUAS" = "x"; then
13949        LINGUAS=
13950      else
13951        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13952 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13953        NEW_LINGUAS=
13954        for presentlang in $ALL_LINGUAS; do
13955          useit=no
13956          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13957            # Use the presentlang catalog if desiredlang is
13958            #   a. equal to presentlang, or
13959            #   b. a variant of presentlang (because in this case,
13960            #      presentlang can be used as a fallback for messages
13961            #      which are not translated in the desiredlang catalog).
13962            case "$desiredlang" in
13963              "$presentlang"*) useit=yes;;
13964            esac
13965          done
13966          if test $useit = yes; then
13967            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13968          fi
13969        done
13970        LINGUAS=$NEW_LINGUAS
13971        echo "$as_me:$LINENO: result: $LINGUAS" >&5
13972 echo "${ECHO_T}$LINGUAS" >&6
13973      fi
13974
13975           if test -n "$LINGUAS"; then
13976        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13977      fi
13978    fi
13979
13980             MKINSTALLDIRS=
13981    if test -n "$ac_aux_dir"; then
13982      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13983    fi
13984    if test -z "$MKINSTALLDIRS"; then
13985      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13986    fi
13987
13988
13989       INTL_LIBTOOL_SUFFIX_PREFIX=
13990
13991
13992
13993 if test "$am_cv_func_iconv" != "yes"
13994 then
13995   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
13996 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
13997 else
13998
13999
14000 for ac_header in iconv.h
14001 do
14002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14004   echo "$as_me:$LINENO: checking for $ac_header" >&5
14005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14007   echo $ECHO_N "(cached) $ECHO_C" >&6
14008 fi
14009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14011 else
14012   # Is the header compilable?
14013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14015 cat >conftest.$ac_ext <<_ACEOF
14016 #line $LINENO "configure"
14017 /* confdefs.h.  */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h.  */
14022 $ac_includes_default
14023 #include <$ac_header>
14024 _ACEOF
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027   (eval $ac_compile) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -s conftest.$ac_objext'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; }; then
14037   ac_header_compiler=yes
14038 else
14039   echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 ac_header_compiler=no
14043 fi
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14046 echo "${ECHO_T}$ac_header_compiler" >&6
14047
14048 # Is the header present?
14049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14051 cat >conftest.$ac_ext <<_ACEOF
14052 #line $LINENO "configure"
14053 /* confdefs.h.  */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h.  */
14058 #include <$ac_header>
14059 _ACEOF
14060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14062   ac_status=$?
14063   grep -v '^ *+' conftest.er1 >conftest.err
14064   rm -f conftest.er1
14065   cat conftest.err >&5
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } >/dev/null; then
14068   if test -s conftest.err; then
14069     ac_cpp_err=$ac_c_preproc_warn_flag
14070   else
14071     ac_cpp_err=
14072   fi
14073 else
14074   ac_cpp_err=yes
14075 fi
14076 if test -z "$ac_cpp_err"; then
14077   ac_header_preproc=yes
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14081
14082   ac_header_preproc=no
14083 fi
14084 rm -f conftest.err conftest.$ac_ext
14085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14086 echo "${ECHO_T}$ac_header_preproc" >&6
14087
14088 # So?  What about this header?
14089 case $ac_header_compiler:$ac_header_preproc in
14090   yes:no )
14091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14095     (
14096       cat <<\_ASBOX
14097 ## ------------------------------------ ##
14098 ## Report this to bug-autoconf@gnu.org. ##
14099 ## ------------------------------------ ##
14100 _ASBOX
14101     ) |
14102       sed "s/^/$as_me: WARNING:     /" >&2
14103     ;;
14104   no:yes )
14105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14107     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14111     (
14112       cat <<\_ASBOX
14113 ## ------------------------------------ ##
14114 ## Report this to bug-autoconf@gnu.org. ##
14115 ## ------------------------------------ ##
14116 _ASBOX
14117     ) |
14118       sed "s/^/$as_me: WARNING:     /" >&2
14119     ;;
14120 esac
14121 echo "$as_me:$LINENO: checking for $ac_header" >&5
14122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   eval "$as_ac_Header=$ac_header_preproc"
14127 fi
14128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14130
14131 fi
14132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14133   cat >>confdefs.h <<_ACEOF
14134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14135 _ACEOF
14136  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
14137 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
14138          cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145 #include <iconv.h>
14146
14147 _ACEOF
14148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14149   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
14150   echo "$as_me:$LINENO: result: yes" >&5
14151 echo "${ECHO_T}yes" >&6
14152
14153 cat >>confdefs.h <<\_ACEOF
14154 #define HAVE_ICONV_T_DEF 1
14155 _ACEOF
14156
14157 else
14158   echo "$as_me:$LINENO: result: no" >&5
14159 echo "${ECHO_T}no" >&6
14160 fi
14161 rm -f conftest*
14162
14163 fi
14164
14165 done
14166
14167
14168 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
14169 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
14170 if test "${mutt_cv_iconv_good+set}" = set; then
14171   echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173   mutt_save_LIBS="$LIBS"
14174         LIBS="$LIBS $LIBICONV"
14175         if test "$cross_compiling" = yes; then
14176   mutt_cv_iconv_good=yes
14177 else
14178   cat >conftest.$ac_ext <<_ACEOF
14179 #line $LINENO "configure"
14180 /* confdefs.h.  */
14181 _ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h.  */
14185
14186 #include <iconv.h>
14187 int main()
14188 {
14189   iconv_t cd;
14190   char buf[4];
14191   char *ob;
14192   size_t obl;
14193   ob = buf, obl = sizeof(buf);
14194   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
14195           (iconv(cd, 0, 0, &ob, &obl) ||
14196            !(ob == buf && obl == sizeof(buf)) ||
14197            iconv_close(cd)));
14198 }
14199
14200 _ACEOF
14201 rm -f conftest$ac_exeext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203   (eval $ac_link) 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208   (eval $ac_try) 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; }; then
14212   mutt_cv_iconv_good=yes
14213 else
14214   echo "$as_me: program exited with status $ac_status" >&5
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 ( exit $ac_status )
14219 mutt_cv_iconv_good=no
14220 fi
14221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14222 fi
14223         LIBS="$mutt_save_LIBS"
14224 fi
14225 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
14226 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
14227 if test "$mutt_cv_iconv_good" = no; then
14228   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
14229 echo "$as_me: error: Try using libiconv instead" >&2;}
14230    { (exit 1); exit 1; }; }
14231 fi
14232
14233 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
14234 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
14235 if test "${mutt_cv_iconv_nontrans+set}" = set; then
14236   echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238   mutt_save_LIBS="$LIBS"
14239         LIBS="$LIBS $LIBICONV"
14240         if test "$cross_compiling" = yes; then
14241   mutt_cv_iconv_nontrans=no
14242 else
14243   cat >conftest.$ac_ext <<_ACEOF
14244 #line $LINENO "configure"
14245 /* confdefs.h.  */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h.  */
14250
14251 #include <iconv.h>
14252 #include <string.h>
14253 int main()
14254 {
14255   iconv_t cd;
14256   const char *ib;
14257   char *ob;
14258   size_t ibl, obl;
14259   const char *s = "\304\211";
14260   char t[3];
14261   ib = s, ibl = 2, ob = t, obl = 3;
14262   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
14263           iconv(cd, &ib, &ibl, &ob, &obl));
14264 }
14265
14266 _ACEOF
14267 rm -f conftest$ac_exeext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269   (eval $ac_link) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_iconv_nontrans=no
14279 else
14280   echo "$as_me: program exited with status $ac_status" >&5
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 ( exit $ac_status )
14285 mutt_cv_iconv_nontrans=yes
14286 fi
14287 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14288 fi
14289         LIBS="$mutt_save_LIBS"
14290 fi
14291 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
14292 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
14293 if test "$mutt_cv_iconv_nontrans" = yes; then
14294   cat >>confdefs.h <<\_ACEOF
14295 #define ICONV_NONTRANS 1
14296 _ACEOF
14297
14298 else
14299   cat >>confdefs.h <<\_ACEOF
14300 #define ICONV_NONTRANS 0
14301 _ACEOF
14302
14303 fi
14304
14305 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14306
14307 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14308
14309 cat >>confdefs.h <<\_ACEOF
14310 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14311 _ACEOF
14312
14313 else
14314
14315 for ac_func in bind_textdomain_codeset
14316 do
14317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14318 echo "$as_me:$LINENO: checking for $ac_func" >&5
14319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14320 if eval "test \"\${$as_ac_var+set}\" = set"; then
14321   echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323   cat >conftest.$ac_ext <<_ACEOF
14324 #line $LINENO "configure"
14325 /* confdefs.h.  */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h.  */
14330 /* System header to define __stub macros and hopefully few prototypes,
14331     which can conflict with char $ac_func (); below.
14332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14333     <limits.h> exists even on freestanding compilers.  */
14334 #ifdef __STDC__
14335 # include <limits.h>
14336 #else
14337 # include <assert.h>
14338 #endif
14339 /* Override any gcc2 internal prototype to avoid an error.  */
14340 #ifdef __cplusplus
14341 extern "C"
14342 {
14343 #endif
14344 /* We use char because int might match the return type of a gcc2
14345    builtin and then its argument prototype would still apply.  */
14346 char $ac_func ();
14347 /* The GNU C library defines this for functions which it implements
14348     to always fail with ENOSYS.  Some functions are actually named
14349     something starting with __ and the normal name is an alias.  */
14350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14351 choke me
14352 #else
14353 char (*f) () = $ac_func;
14354 #endif
14355 #ifdef __cplusplus
14356 }
14357 #endif
14358
14359 int
14360 main ()
14361 {
14362 return f != $ac_func;
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 rm -f conftest.$ac_objext conftest$ac_exeext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14369   (eval $ac_link) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -s conftest$ac_exeext'
14374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375   (eval $ac_try) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; }; then
14379   eval "$as_ac_var=yes"
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 eval "$as_ac_var=no"
14385 fi
14386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14387 fi
14388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14390 if test `eval echo '${'$as_ac_var'}'` = yes; then
14391   cat >>confdefs.h <<_ACEOF
14392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14393 _ACEOF
14394
14395 fi
14396 done
14397
14398 fi
14399
14400 fi # libiconv
14401
14402
14403
14404 for ac_header in wchar.h
14405 do
14406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14408   echo "$as_me:$LINENO: checking for $ac_header" >&5
14409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 fi
14413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14415 else
14416   # Is the header compilable?
14417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14419 cat >conftest.$ac_ext <<_ACEOF
14420 #line $LINENO "configure"
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426 $ac_includes_default
14427 #include <$ac_header>
14428 _ACEOF
14429 rm -f conftest.$ac_objext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431   (eval $ac_compile) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -s conftest.$ac_objext'
14436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437   (eval $ac_try) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); }; }; then
14441   ac_header_compiler=yes
14442 else
14443   echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14445
14446 ac_header_compiler=no
14447 fi
14448 rm -f conftest.$ac_objext conftest.$ac_ext
14449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14450 echo "${ECHO_T}$ac_header_compiler" >&6
14451
14452 # Is the header present?
14453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14455 cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14457 /* confdefs.h.  */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h.  */
14462 #include <$ac_header>
14463 _ACEOF
14464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14466   ac_status=$?
14467   grep -v '^ *+' conftest.er1 >conftest.err
14468   rm -f conftest.er1
14469   cat conftest.err >&5
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); } >/dev/null; then
14472   if test -s conftest.err; then
14473     ac_cpp_err=$ac_c_preproc_warn_flag
14474   else
14475     ac_cpp_err=
14476   fi
14477 else
14478   ac_cpp_err=yes
14479 fi
14480 if test -z "$ac_cpp_err"; then
14481   ac_header_preproc=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486   ac_header_preproc=no
14487 fi
14488 rm -f conftest.err conftest.$ac_ext
14489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14490 echo "${ECHO_T}$ac_header_preproc" >&6
14491
14492 # So?  What about this header?
14493 case $ac_header_compiler:$ac_header_preproc in
14494   yes:no )
14495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14499     (
14500       cat <<\_ASBOX
14501 ## ------------------------------------ ##
14502 ## Report this to bug-autoconf@gnu.org. ##
14503 ## ------------------------------------ ##
14504 _ASBOX
14505     ) |
14506       sed "s/^/$as_me: WARNING:     /" >&2
14507     ;;
14508   no:yes )
14509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14511     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14515     (
14516       cat <<\_ASBOX
14517 ## ------------------------------------ ##
14518 ## Report this to bug-autoconf@gnu.org. ##
14519 ## ------------------------------------ ##
14520 _ASBOX
14521     ) |
14522       sed "s/^/$as_me: WARNING:     /" >&2
14523     ;;
14524 esac
14525 echo "$as_me:$LINENO: checking for $ac_header" >&5
14526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14528   echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530   eval "$as_ac_Header=$ac_header_preproc"
14531 fi
14532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14534
14535 fi
14536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14537   cat >>confdefs.h <<_ACEOF
14538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14539 _ACEOF
14540
14541 fi
14542
14543 done
14544
14545
14546 echo "$as_me:$LINENO: checking for wchar_t" >&5
14547 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14548 if test "${mutt_cv_wchar_t+set}" = set; then
14549   echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551   cat >conftest.$ac_ext <<_ACEOF
14552 #line $LINENO "configure"
14553 /* confdefs.h.  */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h.  */
14558
14559 #include <stddef.h>
14560 #include <stdlib.h>
14561 #ifdef HAVE_WCHAR_H
14562 #include <wchar.h>
14563 #endif
14564
14565 int
14566 main ()
14567 {
14568  wchar_t wc; return 0;
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 rm -f conftest.$ac_objext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14575   (eval $ac_compile) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -s conftest.$ac_objext'
14580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581   (eval $ac_try) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; }; then
14585   mutt_cv_wchar_t=yes
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 mutt_cv_wchar_t=no
14591 fi
14592 rm -f conftest.$ac_objext conftest.$ac_ext
14593 fi
14594 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14595 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14596
14597 if test "$mutt_cv_wchar_t" = no; then
14598
14599 cat >>confdefs.h <<\_ACEOF
14600 #define wchar_t int
14601 _ACEOF
14602
14603 fi
14604
14605 echo "$as_me:$LINENO: checking for wint_t" >&5
14606 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14607 if test "${mutt_cv_wint_t+set}" = set; then
14608   echo $ECHO_N "(cached) $ECHO_C" >&6
14609 else
14610   cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617
14618 #include <stddef.h>
14619 #include <stdlib.h>
14620 #ifdef HAVE_WCHAR_H
14621 #include <wchar.h>
14622 #endif
14623
14624 int
14625 main ()
14626 {
14627  wint_t wc; return 0;
14628   ;
14629   return 0;
14630 }
14631 _ACEOF
14632 rm -f conftest.$ac_objext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634   (eval $ac_compile) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -s conftest.$ac_objext'
14639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640   (eval $ac_try) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   mutt_cv_wint_t=yes
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 mutt_cv_wint_t=no
14650 fi
14651 rm -f conftest.$ac_objext conftest.$ac_ext
14652 fi
14653 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14654 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14655
14656 if test "$mutt_cv_wint_t" = no; then
14657
14658 cat >>confdefs.h <<\_ACEOF
14659 #define wint_t int
14660 _ACEOF
14661
14662 fi
14663
14664
14665 for ac_header in wctype.h
14666 do
14667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14669   echo "$as_me:$LINENO: checking for $ac_header" >&5
14670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14672   echo $ECHO_N "(cached) $ECHO_C" >&6
14673 fi
14674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14676 else
14677   # Is the header compilable?
14678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14680 cat >conftest.$ac_ext <<_ACEOF
14681 #line $LINENO "configure"
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687 $ac_includes_default
14688 #include <$ac_header>
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692   (eval $ac_compile) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); } &&
14696          { ac_try='test -s conftest.$ac_objext'
14697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698   (eval $ac_try) 2>&5
14699   ac_status=$?
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); }; }; then
14702   ac_header_compiler=yes
14703 else
14704   echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707 ac_header_compiler=no
14708 fi
14709 rm -f conftest.$ac_objext conftest.$ac_ext
14710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14711 echo "${ECHO_T}$ac_header_compiler" >&6
14712
14713 # Is the header present?
14714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14716 cat >conftest.$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723 #include <$ac_header>
14724 _ACEOF
14725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } >/dev/null; then
14733   if test -s conftest.err; then
14734     ac_cpp_err=$ac_c_preproc_warn_flag
14735   else
14736     ac_cpp_err=
14737   fi
14738 else
14739   ac_cpp_err=yes
14740 fi
14741 if test -z "$ac_cpp_err"; then
14742   ac_header_preproc=yes
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747   ac_header_preproc=no
14748 fi
14749 rm -f conftest.err conftest.$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6
14752
14753 # So?  What about this header?
14754 case $ac_header_compiler:$ac_header_preproc in
14755   yes:no )
14756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14760     (
14761       cat <<\_ASBOX
14762 ## ------------------------------------ ##
14763 ## Report this to bug-autoconf@gnu.org. ##
14764 ## ------------------------------------ ##
14765 _ASBOX
14766     ) |
14767       sed "s/^/$as_me: WARNING:     /" >&2
14768     ;;
14769   no:yes )
14770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14772     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14776     (
14777       cat <<\_ASBOX
14778 ## ------------------------------------ ##
14779 ## Report this to bug-autoconf@gnu.org. ##
14780 ## ------------------------------------ ##
14781 _ASBOX
14782     ) |
14783       sed "s/^/$as_me: WARNING:     /" >&2
14784     ;;
14785 esac
14786 echo "$as_me:$LINENO: checking for $ac_header" >&5
14787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791   eval "$as_ac_Header=$ac_header_preproc"
14792 fi
14793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14795
14796 fi
14797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14798   cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14800 _ACEOF
14801
14802 fi
14803
14804 done
14805
14806
14807
14808
14809
14810 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
14811 do
14812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14813 echo "$as_me:$LINENO: checking for $ac_func" >&5
14814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14815 if eval "test \"\${$as_ac_var+set}\" = set"; then
14816   echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818   cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 /* System header to define __stub macros and hopefully few prototypes,
14826     which can conflict with char $ac_func (); below.
14827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828     <limits.h> exists even on freestanding compilers.  */
14829 #ifdef __STDC__
14830 # include <limits.h>
14831 #else
14832 # include <assert.h>
14833 #endif
14834 /* Override any gcc2 internal prototype to avoid an error.  */
14835 #ifdef __cplusplus
14836 extern "C"
14837 {
14838 #endif
14839 /* We use char because int might match the return type of a gcc2
14840    builtin and then its argument prototype would still apply.  */
14841 char $ac_func ();
14842 /* The GNU C library defines this for functions which it implements
14843     to always fail with ENOSYS.  Some functions are actually named
14844     something starting with __ and the normal name is an alias.  */
14845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14846 choke me
14847 #else
14848 char (*f) () = $ac_func;
14849 #endif
14850 #ifdef __cplusplus
14851 }
14852 #endif
14853
14854 int
14855 main ()
14856 {
14857 return f != $ac_func;
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   eval "$as_ac_var=yes"
14875 else
14876   echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 eval "$as_ac_var=no"
14880 fi
14881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14882 fi
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14885 if test `eval echo '${'$as_ac_var'}'` = yes; then
14886   cat >>confdefs.h <<_ACEOF
14887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14888 _ACEOF
14889
14890 fi
14891 done
14892
14893
14894
14895
14896
14897
14898
14899 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14900 do
14901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14902 echo "$as_me:$LINENO: checking for $ac_func" >&5
14903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14904 if eval "test \"\${$as_ac_var+set}\" = set"; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907   cat >conftest.$ac_ext <<_ACEOF
14908 #line $LINENO "configure"
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 /* System header to define __stub macros and hopefully few prototypes,
14915     which can conflict with char $ac_func (); below.
14916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14917     <limits.h> exists even on freestanding compilers.  */
14918 #ifdef __STDC__
14919 # include <limits.h>
14920 #else
14921 # include <assert.h>
14922 #endif
14923 /* Override any gcc2 internal prototype to avoid an error.  */
14924 #ifdef __cplusplus
14925 extern "C"
14926 {
14927 #endif
14928 /* We use char because int might match the return type of a gcc2
14929    builtin and then its argument prototype would still apply.  */
14930 char $ac_func ();
14931 /* The GNU C library defines this for functions which it implements
14932     to always fail with ENOSYS.  Some functions are actually named
14933     something starting with __ and the normal name is an alias.  */
14934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14935 choke me
14936 #else
14937 char (*f) () = $ac_func;
14938 #endif
14939 #ifdef __cplusplus
14940 }
14941 #endif
14942
14943 int
14944 main ()
14945 {
14946 return f != $ac_func;
14947   ;
14948   return 0;
14949 }
14950 _ACEOF
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953   (eval $ac_link) 2>&5
14954   ac_status=$?
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } &&
14957          { ac_try='test -s conftest$ac_exeext'
14958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959   (eval $ac_try) 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; }; then
14963   eval "$as_ac_var=yes"
14964 else
14965   echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 eval "$as_ac_var=no"
14969 fi
14970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14971 fi
14972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14974 if test `eval echo '${'$as_ac_var'}'` = yes; then
14975   cat >>confdefs.h <<_ACEOF
14976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14977 _ACEOF
14978
14979 fi
14980 done
14981
14982
14983
14984
14985 for ac_func in iswxdigit towupper towlower
14986 do
14987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14988 echo "$as_me:$LINENO: checking for $ac_func" >&5
14989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14990 if eval "test \"\${$as_ac_var+set}\" = set"; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   cat >conftest.$ac_ext <<_ACEOF
14994 #line $LINENO "configure"
14995 /* confdefs.h.  */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h.  */
15000 /* System header to define __stub macros and hopefully few prototypes,
15001     which can conflict with char $ac_func (); below.
15002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15003     <limits.h> exists even on freestanding compilers.  */
15004 #ifdef __STDC__
15005 # include <limits.h>
15006 #else
15007 # include <assert.h>
15008 #endif
15009 /* Override any gcc2 internal prototype to avoid an error.  */
15010 #ifdef __cplusplus
15011 extern "C"
15012 {
15013 #endif
15014 /* We use char because int might match the return type of a gcc2
15015    builtin and then its argument prototype would still apply.  */
15016 char $ac_func ();
15017 /* The GNU C library defines this for functions which it implements
15018     to always fail with ENOSYS.  Some functions are actually named
15019     something starting with __ and the normal name is an alias.  */
15020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15021 choke me
15022 #else
15023 char (*f) () = $ac_func;
15024 #endif
15025 #ifdef __cplusplus
15026 }
15027 #endif
15028
15029 int
15030 main ()
15031 {
15032 return f != $ac_func;
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039   (eval $ac_link) 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); } &&
15043          { ac_try='test -s conftest$ac_exeext'
15044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045   (eval $ac_try) 2>&5
15046   ac_status=$?
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); }; }; then
15049   eval "$as_ac_var=yes"
15050 else
15051   echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15053
15054 eval "$as_ac_var=no"
15055 fi
15056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15057 fi
15058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15060 if test `eval echo '${'$as_ac_var'}'` = yes; then
15061   cat >>confdefs.h <<_ACEOF
15062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15063 _ACEOF
15064
15065 fi
15066 done
15067
15068
15069 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15070 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15071 if test "${mutt_cv_mbstate_t+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074   cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081
15082 #include <stddef.h>
15083 #include <stdlib.h>
15084 #ifdef HAVE_WCHAR_H
15085 #include <wchar.h>
15086 #endif
15087
15088 int
15089 main ()
15090 {
15091  mbstate_t s; return 0;
15092   ;
15093   return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098   (eval $ac_compile) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } &&
15102          { ac_try='test -s conftest.$ac_objext'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; }; then
15108   mutt_cv_mbstate_t=yes
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113 mutt_cv_mbstate_t=no
15114 fi
15115 rm -f conftest.$ac_objext conftest.$ac_ext
15116 fi
15117 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
15118 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
15119
15120 if test "$mutt_cv_mbstate_t" = no; then
15121
15122 cat >>confdefs.h <<\_ACEOF
15123 #define mbstate_t int
15124 _ACEOF
15125
15126 fi
15127
15128 wc_funcs=maybe
15129
15130 # Check whether --with-wc-funcs or --without-wc-funcs was given.
15131 if test "${with_wc_funcs+set}" = set; then
15132   withval="$with_wc_funcs"
15133   wc_funcs=$withval
15134 fi;
15135
15136 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
15137         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
15138 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
15139 if test "${mutt_cv_wc_funcs+set}" = set; then
15140   echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142   mutt_cv_wc_funcs=no
15143                 cat >conftest.$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150
15151 #define _XOPEN_SOURCE 1
15152 #include <stddef.h>
15153 #include <stdlib.h>
15154 #ifdef HAVE_WCTYPE_H
15155 #include <wctype.h>
15156 #endif
15157 #ifdef HAVE_WCHAR_H
15158 #include <wchar.h>
15159 #endif
15160 int
15161 main ()
15162 {
15163 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
15164         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
15165   ;
15166   return 0;
15167 }
15168 _ACEOF
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15171   (eval $ac_link) 2>&5
15172   ac_status=$?
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } &&
15175          { ac_try='test -s conftest$ac_exeext'
15176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177   (eval $ac_try) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); }; }; then
15181   mutt_cv_wc_funcs=yes
15182 else
15183   echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 fi
15187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15188 fi
15189 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
15190 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
15191         wc_funcs=$mutt_cv_wc_funcs
15192 fi
15193
15194 if test $wc_funcs = yes; then
15195
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_WC_FUNCS 1
15198 _ACEOF
15199
15200 fi
15201
15202 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15203 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15204 if test "${mutt_cv_langinfo_codeset+set}" = set; then
15205   echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207   cat >conftest.$ac_ext <<_ACEOF
15208 #line $LINENO "configure"
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214 #include <langinfo.h>
15215 int
15216 main ()
15217 {
15218 char* cs = nl_langinfo(CODESET);
15219   ;
15220   return 0;
15221 }
15222 _ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225   (eval $ac_link) 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); } &&
15229          { ac_try='test -s conftest$ac_exeext'
15230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231   (eval $ac_try) 2>&5
15232   ac_status=$?
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); }; }; then
15235   mutt_cv_langinfo_codeset=yes
15236 else
15237   echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 mutt_cv_langinfo_codeset=no
15241 fi
15242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15243 fi
15244 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
15245 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
15246 if test $mutt_cv_langinfo_codeset = yes; then
15247
15248 cat >>confdefs.h <<\_ACEOF
15249 #define HAVE_LANGINFO_CODESET 1
15250 _ACEOF
15251
15252 fi
15253
15254 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
15255 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
15256 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   cat >conftest.$ac_ext <<_ACEOF
15260 #line $LINENO "configure"
15261 /* confdefs.h.  */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h.  */
15266 #include <langinfo.h>
15267 int
15268 main ()
15269 {
15270 char* cs = nl_langinfo(YESEXPR);
15271   ;
15272   return 0;
15273 }
15274 _ACEOF
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277   (eval $ac_link) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); } &&
15281          { ac_try='test -s conftest$ac_exeext'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   mutt_cv_langinfo_yesexpr=yes
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 mutt_cv_langinfo_yesexpr=no
15293 fi
15294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15295 fi
15296 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
15297 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
15298 if test $mutt_cv_langinfo_yesexpr = yes; then
15299
15300 cat >>confdefs.h <<\_ACEOF
15301 #define HAVE_LANGINFO_YESEXPR 1
15302 _ACEOF
15303
15304 fi
15305
15306
15307
15308 # Check whether --with-libesmtp or --without-libesmtp was given.
15309 if test "${with_libesmtp+set}" = set; then
15310   withval="$with_libesmtp"
15311    if test "$with_libesmtp" != "no"
15312       then
15313         mutt_libesmtp_check_path="$PATH"
15314
15315         if test "$with_libesmtp" != "yes"
15316         then
15317           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15318         fi
15319
15320                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15321 set dummy libesmtp-config; ac_word=$2
15322 echo "$as_me:$LINENO: checking for $ac_word" >&5
15323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15324 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15325   echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327   case $mutt_libesmtp_config_path in
15328   [\\/]* | ?:[\\/]*)
15329   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15330   ;;
15331   *)
15332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15333 for as_dir in $mutt_libesmtp_check_path
15334 do
15335   IFS=$as_save_IFS
15336   test -z "$as_dir" && as_dir=.
15337   for ac_exec_ext in '' $ac_executable_extensions; do
15338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15339     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15341     break 2
15342   fi
15343 done
15344 done
15345
15346   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15347   ;;
15348 esac
15349 fi
15350 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15351
15352 if test -n "$mutt_libesmtp_config_path"; then
15353   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15354 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15355 else
15356   echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15358 fi
15359
15360
15361         if test "$mutt_libesmtp_config_path" = "no"
15362         then
15363           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15364 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15365    { (exit 1); exit 1; }; }
15366         fi
15367
15368                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15369         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15370
15371                 temp_CFLAGS="$CFLAGS"
15372         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15373         if test "${ac_cv_header_libesmtp_h+set}" = set; then
15374   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15375 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15376 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15377   echo $ECHO_N "(cached) $ECHO_C" >&6
15378 fi
15379 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15380 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15381 else
15382   # Is the header compilable?
15383 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15384 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392 $ac_includes_default
15393 #include <libesmtp.h>
15394 _ACEOF
15395 rm -f conftest.$ac_objext
15396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15397   (eval $ac_compile) 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } &&
15401          { ac_try='test -s conftest.$ac_objext'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; }; then
15407   ac_header_compiler=yes
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 ac_header_compiler=no
15413 fi
15414 rm -f conftest.$ac_objext conftest.$ac_ext
15415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15416 echo "${ECHO_T}$ac_header_compiler" >&6
15417
15418 # Is the header present?
15419 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15420 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15421 cat >conftest.$ac_ext <<_ACEOF
15422 #line $LINENO "configure"
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428 #include <libesmtp.h>
15429 _ACEOF
15430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } >/dev/null; then
15438   if test -s conftest.err; then
15439     ac_cpp_err=$ac_c_preproc_warn_flag
15440   else
15441     ac_cpp_err=
15442   fi
15443 else
15444   ac_cpp_err=yes
15445 fi
15446 if test -z "$ac_cpp_err"; then
15447   ac_header_preproc=yes
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452   ac_header_preproc=no
15453 fi
15454 rm -f conftest.err conftest.$ac_ext
15455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15456 echo "${ECHO_T}$ac_header_preproc" >&6
15457
15458 # So?  What about this header?
15459 case $ac_header_compiler:$ac_header_preproc in
15460   yes:no )
15461     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15462 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15463     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15464 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15465     (
15466       cat <<\_ASBOX
15467 ## ------------------------------------ ##
15468 ## Report this to bug-autoconf@gnu.org. ##
15469 ## ------------------------------------ ##
15470 _ASBOX
15471     ) |
15472       sed "s/^/$as_me: WARNING:     /" >&2
15473     ;;
15474   no:yes )
15475     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15480 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15481     (
15482       cat <<\_ASBOX
15483 ## ------------------------------------ ##
15484 ## Report this to bug-autoconf@gnu.org. ##
15485 ## ------------------------------------ ##
15486 _ASBOX
15487     ) |
15488       sed "s/^/$as_me: WARNING:     /" >&2
15489     ;;
15490 esac
15491 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15492 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15493 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15494   echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496   ac_cv_header_libesmtp_h=$ac_header_preproc
15497 fi
15498 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15499 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15500
15501 fi
15502 if test $ac_cv_header_libesmtp_h = yes; then
15503   :
15504 else
15505   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15506 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15507    { (exit 1); exit 1; }; }
15508 fi
15509
15510
15511         CFLAGS="$temp_CFLAGS"
15512
15513                 temp_CFLAGS="$CFLAGS"
15514         temp_LIBS="$LIBS"
15515         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15516         LIBS="$LIBS $mutt_libesmtp_libs"
15517
15518 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15519 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15520 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15521   echo $ECHO_N "(cached) $ECHO_C" >&6
15522 else
15523   ac_check_lib_save_LIBS=$LIBS
15524 LIBS="-lesmtp  $LIBS"
15525 cat >conftest.$ac_ext <<_ACEOF
15526 #line $LINENO "configure"
15527 /* confdefs.h.  */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h.  */
15532
15533 /* Override any gcc2 internal prototype to avoid an error.  */
15534 #ifdef __cplusplus
15535 extern "C"
15536 #endif
15537 /* We use char because int might match the return type of a gcc2
15538    builtin and then its argument prototype would still apply.  */
15539 char smtp_create_session ();
15540 int
15541 main ()
15542 {
15543 smtp_create_session ();
15544   ;
15545   return 0;
15546 }
15547 _ACEOF
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550   (eval $ac_link) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -s conftest$ac_exeext'
15555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556   (eval $ac_try) 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; }; then
15560   ac_cv_lib_esmtp_smtp_create_session=yes
15561 else
15562   echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565 ac_cv_lib_esmtp_smtp_create_session=no
15566 fi
15567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15568 LIBS=$ac_check_lib_save_LIBS
15569 fi
15570 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15571 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15572 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15573   cat >>confdefs.h <<_ACEOF
15574 #define HAVE_LIBESMTP 1
15575 _ACEOF
15576
15577   LIBS="-lesmtp $LIBS"
15578
15579 else
15580   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15581 echo "$as_me: error: Could not find libesmtp" >&2;}
15582    { (exit 1); exit 1; }; }
15583 fi
15584
15585         CFLAGS="$temp_CFLAGS"
15586         LIBS="$temp_LIBS"
15587
15588                         use_libesmtp=yes
15589       fi
15590
15591
15592 fi;
15593
15594 if test x$use_libesmtp = xyes; then
15595     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15596     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15597     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15598
15599
15600 cat >>confdefs.h <<\_ACEOF
15601 #define USE_LIBESMTP 1
15602 _ACEOF
15603
15604 fi
15605
15606                                                                                                     ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttngrc.head doc/instdoc.sh"
15607 cat >confcache <<\_ACEOF
15608 # This file is a shell script that caches the results of configure
15609 # tests run on this system so they can be shared between configure
15610 # scripts and configure runs, see configure's option --config-cache.
15611 # It is not useful on other systems.  If it contains results you don't
15612 # want to keep, you may remove or edit it.
15613 #
15614 # config.status only pays attention to the cache file if you give it
15615 # the --recheck option to rerun configure.
15616 #
15617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15619 # following values.
15620
15621 _ACEOF
15622
15623 # The following way of writing the cache mishandles newlines in values,
15624 # but we know of no workaround that is simple, portable, and efficient.
15625 # So, don't put newlines in cache variables' values.
15626 # Ultrix sh set writes to stderr and can't be redirected directly,
15627 # and sets the high bit in the cache file unless we assign to the vars.
15628 {
15629   (set) 2>&1 |
15630     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15631     *ac_space=\ *)
15632       # `set' does not quote correctly, so add quotes (double-quote
15633       # substitution turns \\\\ into \\, and sed turns \\ into \).
15634       sed -n \
15635         "s/'/'\\\\''/g;
15636           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15637       ;;
15638     *)
15639       # `set' quotes correctly as required by POSIX, so do not add quotes.
15640       sed -n \
15641         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15642       ;;
15643     esac;
15644 } |
15645   sed '
15646      t clear
15647      : clear
15648      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15649      t end
15650      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15651      : end' >>confcache
15652 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15653   if test -w $cache_file; then
15654     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15655     cat confcache >$cache_file
15656   else
15657     echo "not updating unwritable cache $cache_file"
15658   fi
15659 fi
15660 rm -f confcache
15661
15662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15663 # Let make expand exec_prefix.
15664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15665
15666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15668 # trailing colons and then remove the whole line if VPATH becomes empty
15669 # (actually we leave an empty line to preserve line numbers).
15670 if test "x$srcdir" = x.; then
15671   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15672 s/:*\$(srcdir):*/:/;
15673 s/:*\${srcdir}:*/:/;
15674 s/:*@srcdir@:*/:/;
15675 s/^\([^=]*=[    ]*\):*/\1/;
15676 s/:*$//;
15677 s/^[^=]*=[      ]*$//;
15678 }'
15679 fi
15680
15681 DEFS=-DHAVE_CONFIG_H
15682
15683 ac_libobjs=
15684 ac_ltlibobjs=
15685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15686   # 1. Remove the extension, and $U if already installed.
15687   ac_i=`echo "$ac_i" |
15688          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15689   # 2. Add them.
15690   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15691   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15692 done
15693 LIBOBJS=$ac_libobjs
15694
15695 LTLIBOBJS=$ac_ltlibobjs
15696
15697
15698 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15699   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15700 Usually this means the macro was only invoked conditionally." >&5
15701 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15702 Usually this means the macro was only invoked conditionally." >&2;}
15703    { (exit 1); exit 1; }; }
15704 fi
15705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15706   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15707 Usually this means the macro was only invoked conditionally." >&5
15708 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15709 Usually this means the macro was only invoked conditionally." >&2;}
15710    { (exit 1); exit 1; }; }
15711 fi
15712 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15713   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15714 Usually this means the macro was only invoked conditionally." >&5
15715 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15716 Usually this means the macro was only invoked conditionally." >&2;}
15717    { (exit 1); exit 1; }; }
15718 fi
15719 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15720   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15721 Usually this means the macro was only invoked conditionally." >&5
15722 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15723 Usually this means the macro was only invoked conditionally." >&2;}
15724    { (exit 1); exit 1; }; }
15725 fi
15726 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15727   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15728 Usually this means the macro was only invoked conditionally." >&5
15729 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15730 Usually this means the macro was only invoked conditionally." >&2;}
15731    { (exit 1); exit 1; }; }
15732 fi
15733 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
15734   { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
15735 Usually this means the macro was only invoked conditionally." >&5
15736 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
15737 Usually this means the macro was only invoked conditionally." >&2;}
15738    { (exit 1); exit 1; }; }
15739 fi
15740 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15741   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15742 Usually this means the macro was only invoked conditionally." >&5
15743 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15744 Usually this means the macro was only invoked conditionally." >&2;}
15745    { (exit 1); exit 1; }; }
15746 fi
15747 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15748   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15749 Usually this means the macro was only invoked conditionally." >&5
15750 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15751 Usually this means the macro was only invoked conditionally." >&2;}
15752    { (exit 1); exit 1; }; }
15753 fi
15754
15755 : ${CONFIG_STATUS=./config.status}
15756 ac_clean_files_save=$ac_clean_files
15757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15760 cat >$CONFIG_STATUS <<_ACEOF
15761 #! $SHELL
15762 # Generated by $as_me.
15763 # Run this file to recreate the current configuration.
15764 # Compiler output produced by configure, useful for debugging
15765 # configure, is in config.log if it exists.
15766
15767 debug=false
15768 ac_cs_recheck=false
15769 ac_cs_silent=false
15770 SHELL=\${CONFIG_SHELL-$SHELL}
15771 _ACEOF
15772
15773 cat >>$CONFIG_STATUS <<\_ACEOF
15774 ## --------------------- ##
15775 ## M4sh Initialization.  ##
15776 ## --------------------- ##
15777
15778 # Be Bourne compatible
15779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15780   emulate sh
15781   NULLCMD=:
15782   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15783   # is contrary to our usage.  Disable this feature.
15784   alias -g '${1+"$@"}'='"$@"'
15785 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15786   set -o posix
15787 fi
15788
15789 # Support unset when possible.
15790 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15791   as_unset=unset
15792 else
15793   as_unset=false
15794 fi
15795
15796
15797 # Work around bugs in pre-3.0 UWIN ksh.
15798 $as_unset ENV MAIL MAILPATH
15799 PS1='$ '
15800 PS2='> '
15801 PS4='+ '
15802
15803 # NLS nuisances.
15804 for as_var in \
15805   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15806   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15807   LC_TELEPHONE LC_TIME
15808 do
15809   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15810     eval $as_var=C; export $as_var
15811   else
15812     $as_unset $as_var
15813   fi
15814 done
15815
15816 # Required to use basename.
15817 if expr a : '\(a\)' >/dev/null 2>&1; then
15818   as_expr=expr
15819 else
15820   as_expr=false
15821 fi
15822
15823 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15824   as_basename=basename
15825 else
15826   as_basename=false
15827 fi
15828
15829
15830 # Name of the executable.
15831 as_me=`$as_basename "$0" ||
15832 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15833          X"$0" : 'X\(//\)$' \| \
15834          X"$0" : 'X\(/\)$' \| \
15835          .     : '\(.\)' 2>/dev/null ||
15836 echo X/"$0" |
15837     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15838           /^X\/\(\/\/\)$/{ s//\1/; q; }
15839           /^X\/\(\/\).*/{ s//\1/; q; }
15840           s/.*/./; q'`
15841
15842
15843 # PATH needs CR, and LINENO needs CR and PATH.
15844 # Avoid depending upon Character Ranges.
15845 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15846 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15847 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15848 as_cr_digits='0123456789'
15849 as_cr_alnum=$as_cr_Letters$as_cr_digits
15850
15851 # The user is always right.
15852 if test "${PATH_SEPARATOR+set}" != set; then
15853   echo "#! /bin/sh" >conf$$.sh
15854   echo  "exit 0"   >>conf$$.sh
15855   chmod +x conf$$.sh
15856   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15857     PATH_SEPARATOR=';'
15858   else
15859     PATH_SEPARATOR=:
15860   fi
15861   rm -f conf$$.sh
15862 fi
15863
15864
15865   as_lineno_1=$LINENO
15866   as_lineno_2=$LINENO
15867   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15868   test "x$as_lineno_1" != "x$as_lineno_2" &&
15869   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15870   # Find who we are.  Look in the path if we contain no path at all
15871   # relative or not.
15872   case $0 in
15873     *[\\/]* ) as_myself=$0 ;;
15874     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15876 do
15877   IFS=$as_save_IFS
15878   test -z "$as_dir" && as_dir=.
15879   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15880 done
15881
15882        ;;
15883   esac
15884   # We did not find ourselves, most probably we were run as `sh COMMAND'
15885   # in which case we are not to be found in the path.
15886   if test "x$as_myself" = x; then
15887     as_myself=$0
15888   fi
15889   if test ! -f "$as_myself"; then
15890     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15891 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15892    { (exit 1); exit 1; }; }
15893   fi
15894   case $CONFIG_SHELL in
15895   '')
15896     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15898 do
15899   IFS=$as_save_IFS
15900   test -z "$as_dir" && as_dir=.
15901   for as_base in sh bash ksh sh5; do
15902          case $as_dir in
15903          /*)
15904            if ("$as_dir/$as_base" -c '
15905   as_lineno_1=$LINENO
15906   as_lineno_2=$LINENO
15907   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15908   test "x$as_lineno_1" != "x$as_lineno_2" &&
15909   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15910              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15911              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15912              CONFIG_SHELL=$as_dir/$as_base
15913              export CONFIG_SHELL
15914              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15915            fi;;
15916          esac
15917        done
15918 done
15919 ;;
15920   esac
15921
15922   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15923   # uniformly replaced by the line number.  The first 'sed' inserts a
15924   # line-number line before each line; the second 'sed' does the real
15925   # work.  The second script uses 'N' to pair each line-number line
15926   # with the numbered line, and appends trailing '-' during
15927   # substitution so that $LINENO is not a special case at line end.
15928   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15929   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15930   sed '=' <$as_myself |
15931     sed '
15932       N
15933       s,$,-,
15934       : loop
15935       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15936       t loop
15937       s,-$,,
15938       s,^['$as_cr_digits']*\n,,
15939     ' >$as_me.lineno &&
15940   chmod +x $as_me.lineno ||
15941     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15942 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15943    { (exit 1); exit 1; }; }
15944
15945   # Don't try to exec as it changes $[0], causing all sort of problems
15946   # (the dirname of $[0] is not the place where we might find the
15947   # original and so on.  Autoconf is especially sensible to this).
15948   . ./$as_me.lineno
15949   # Exit status is that of the last command.
15950   exit
15951 }
15952
15953
15954 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15955   *c*,-n*) ECHO_N= ECHO_C='
15956 ' ECHO_T='      ' ;;
15957   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15958   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15959 esac
15960
15961 if expr a : '\(a\)' >/dev/null 2>&1; then
15962   as_expr=expr
15963 else
15964   as_expr=false
15965 fi
15966
15967 rm -f conf$$ conf$$.exe conf$$.file
15968 echo >conf$$.file
15969 if ln -s conf$$.file conf$$ 2>/dev/null; then
15970   # We could just check for DJGPP; but this test a) works b) is more generic
15971   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15972   if test -f conf$$.exe; then
15973     # Don't use ln at all; we don't have any links
15974     as_ln_s='cp -p'
15975   else
15976     as_ln_s='ln -s'
15977   fi
15978 elif ln conf$$.file conf$$ 2>/dev/null; then
15979   as_ln_s=ln
15980 else
15981   as_ln_s='cp -p'
15982 fi
15983 rm -f conf$$ conf$$.exe conf$$.file
15984
15985 if mkdir -p . 2>/dev/null; then
15986   as_mkdir_p=:
15987 else
15988   as_mkdir_p=false
15989 fi
15990
15991 as_executable_p="test -f"
15992
15993 # Sed expression to map a string onto a valid CPP name.
15994 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15995
15996 # Sed expression to map a string onto a valid variable name.
15997 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15998
15999
16000 # IFS
16001 # We need space, tab and new line, in precisely that order.
16002 as_nl='
16003 '
16004 IFS="   $as_nl"
16005
16006 # CDPATH.
16007 $as_unset CDPATH
16008
16009 exec 6>&1
16010
16011 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16012 # report actual input values of CONFIG_FILES etc. instead of their
16013 # values after options handling.  Logging --version etc. is OK.
16014 exec 5>>config.log
16015 {
16016   echo
16017   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16018 ## Running $as_me. ##
16019 _ASBOX
16020 } >&5
16021 cat >&5 <<_CSEOF
16022
16023 This file was extended by $as_me, which was
16024 generated by GNU Autoconf 2.57.  Invocation command line was
16025
16026   CONFIG_FILES    = $CONFIG_FILES
16027   CONFIG_HEADERS  = $CONFIG_HEADERS
16028   CONFIG_LINKS    = $CONFIG_LINKS
16029   CONFIG_COMMANDS = $CONFIG_COMMANDS
16030   $ $0 $@
16031
16032 _CSEOF
16033 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16034 echo >&5
16035 _ACEOF
16036
16037 # Files that config.status was made for.
16038 if test -n "$ac_config_files"; then
16039   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16040 fi
16041
16042 if test -n "$ac_config_headers"; then
16043   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16044 fi
16045
16046 if test -n "$ac_config_links"; then
16047   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16048 fi
16049
16050 if test -n "$ac_config_commands"; then
16051   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16052 fi
16053
16054 cat >>$CONFIG_STATUS <<\_ACEOF
16055
16056 ac_cs_usage="\
16057 \`$as_me' instantiates files from templates according to the
16058 current configuration.
16059
16060 Usage: $0 [OPTIONS] [FILE]...
16061
16062   -h, --help       print this help, then exit
16063   -V, --version    print version number, then exit
16064   -q, --quiet      do not print progress messages
16065   -d, --debug      don't remove temporary files
16066       --recheck    update $as_me by reconfiguring in the same conditions
16067   --file=FILE[:TEMPLATE]
16068                    instantiate the configuration file FILE
16069   --header=FILE[:TEMPLATE]
16070                    instantiate the configuration header FILE
16071
16072 Configuration files:
16073 $config_files
16074
16075 Configuration headers:
16076 $config_headers
16077
16078 Configuration commands:
16079 $config_commands
16080
16081 Report bugs to <bug-autoconf@gnu.org>."
16082 _ACEOF
16083
16084 cat >>$CONFIG_STATUS <<_ACEOF
16085 ac_cs_version="\\
16086 config.status
16087 configured by $0, generated by GNU Autoconf 2.57,
16088   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16089
16090 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16091 Free Software Foundation, Inc.
16092 This config.status script is free software; the Free Software Foundation
16093 gives unlimited permission to copy, distribute and modify it."
16094 srcdir=$srcdir
16095 INSTALL="$INSTALL"
16096 _ACEOF
16097
16098 cat >>$CONFIG_STATUS <<\_ACEOF
16099 # If no file are specified by the user, then we need to provide default
16100 # value.  By we need to know if files were specified by the user.
16101 ac_need_defaults=:
16102 while test $# != 0
16103 do
16104   case $1 in
16105   --*=*)
16106     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16107     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16108     ac_shift=:
16109     ;;
16110   -*)
16111     ac_option=$1
16112     ac_optarg=$2
16113     ac_shift=shift
16114     ;;
16115   *) # This is not an option, so the user has probably given explicit
16116      # arguments.
16117      ac_option=$1
16118      ac_need_defaults=false;;
16119   esac
16120
16121   case $ac_option in
16122   # Handling of the options.
16123 _ACEOF
16124 cat >>$CONFIG_STATUS <<\_ACEOF
16125   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16126     ac_cs_recheck=: ;;
16127   --version | --vers* | -V )
16128     echo "$ac_cs_version"; exit 0 ;;
16129   --he | --h)
16130     # Conflict between --help and --header
16131     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16132 Try \`$0 --help' for more information." >&5
16133 echo "$as_me: error: ambiguous option: $1
16134 Try \`$0 --help' for more information." >&2;}
16135    { (exit 1); exit 1; }; };;
16136   --help | --hel | -h )
16137     echo "$ac_cs_usage"; exit 0 ;;
16138   --debug | --d* | -d )
16139     debug=: ;;
16140   --file | --fil | --fi | --f )
16141     $ac_shift
16142     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16143     ac_need_defaults=false;;
16144   --header | --heade | --head | --hea )
16145     $ac_shift
16146     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16147     ac_need_defaults=false;;
16148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16149   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16150     ac_cs_silent=: ;;
16151
16152   # This is an error.
16153   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16154 Try \`$0 --help' for more information." >&5
16155 echo "$as_me: error: unrecognized option: $1
16156 Try \`$0 --help' for more information." >&2;}
16157    { (exit 1); exit 1; }; } ;;
16158
16159   *) ac_config_targets="$ac_config_targets $1" ;;
16160
16161   esac
16162   shift
16163 done
16164
16165 ac_configure_extra_args=
16166
16167 if $ac_cs_silent; then
16168   exec 6>/dev/null
16169   ac_configure_extra_args="$ac_configure_extra_args --silent"
16170 fi
16171
16172 _ACEOF
16173 cat >>$CONFIG_STATUS <<_ACEOF
16174 if \$ac_cs_recheck; then
16175   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16176   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16177 fi
16178
16179 _ACEOF
16180
16181 cat >>$CONFIG_STATUS <<_ACEOF
16182 #
16183 # INIT-COMMANDS section.
16184 #
16185
16186 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16187
16188
16189 _ACEOF
16190
16191
16192
16193 cat >>$CONFIG_STATUS <<\_ACEOF
16194 for ac_config_target in $ac_config_targets
16195 do
16196   case "$ac_config_target" in
16197   # Handling of arguments.
16198   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16199   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16200   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16201   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16202   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16203   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16204   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
16205   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
16206   "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
16207   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
16208   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16209   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16210   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16211   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16212 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16213    { (exit 1); exit 1; }; };;
16214   esac
16215 done
16216
16217 # If the user did not use the arguments to specify the items to instantiate,
16218 # then the envvar interface is used.  Set only those that are not.
16219 # We use the long form for the default assignment because of an extremely
16220 # bizarre bug on SunOS 4.1.3.
16221 if $ac_need_defaults; then
16222   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16223   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16224   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16225 fi
16226
16227 # Have a temporary directory for convenience.  Make it in the build tree
16228 # simply because there is no reason to put it here, and in addition,
16229 # creating and moving files from /tmp can sometimes cause problems.
16230 # Create a temporary directory, and hook for its removal unless debugging.
16231 $debug ||
16232 {
16233   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16234   trap '{ (exit 1); exit 1; }' 1 2 13 15
16235 }
16236
16237 # Create a (secure) tmp directory for tmp files.
16238
16239 {
16240   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16241   test -n "$tmp" && test -d "$tmp"
16242 }  ||
16243 {
16244   tmp=./confstat$$-$RANDOM
16245   (umask 077 && mkdir $tmp)
16246 } ||
16247 {
16248    echo "$me: cannot create a temporary directory in ." >&2
16249    { (exit 1); exit 1; }
16250 }
16251
16252 _ACEOF
16253
16254 cat >>$CONFIG_STATUS <<_ACEOF
16255
16256 #
16257 # CONFIG_FILES section.
16258 #
16259
16260 # No need to generate the scripts if there are no CONFIG_FILES.
16261 # This happens for instance when ./config.status config.h
16262 if test -n "\$CONFIG_FILES"; then
16263   # Protect against being on the right side of a sed subst in config.status.
16264   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16265    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16266 s,@SHELL@,$SHELL,;t t
16267 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16268 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16269 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16270 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16271 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16272 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16273 s,@exec_prefix@,$exec_prefix,;t t
16274 s,@prefix@,$prefix,;t t
16275 s,@program_transform_name@,$program_transform_name,;t t
16276 s,@bindir@,$bindir,;t t
16277 s,@sbindir@,$sbindir,;t t
16278 s,@libexecdir@,$libexecdir,;t t
16279 s,@datadir@,$datadir,;t t
16280 s,@sysconfdir@,$sysconfdir,;t t
16281 s,@sharedstatedir@,$sharedstatedir,;t t
16282 s,@localstatedir@,$localstatedir,;t t
16283 s,@libdir@,$libdir,;t t
16284 s,@includedir@,$includedir,;t t
16285 s,@oldincludedir@,$oldincludedir,;t t
16286 s,@infodir@,$infodir,;t t
16287 s,@mandir@,$mandir,;t t
16288 s,@build_alias@,$build_alias,;t t
16289 s,@host_alias@,$host_alias,;t t
16290 s,@target_alias@,$target_alias,;t t
16291 s,@DEFS@,$DEFS,;t t
16292 s,@ECHO_C@,$ECHO_C,;t t
16293 s,@ECHO_N@,$ECHO_N,;t t
16294 s,@ECHO_T@,$ECHO_T,;t t
16295 s,@LIBS@,$LIBS,;t t
16296 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16297 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16298 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16299 s,@CYGPATH_W@,$CYGPATH_W,;t t
16300 s,@PACKAGE@,$PACKAGE,;t t
16301 s,@VERSION@,$VERSION,;t t
16302 s,@ACLOCAL@,$ACLOCAL,;t t
16303 s,@AUTOCONF@,$AUTOCONF,;t t
16304 s,@AUTOMAKE@,$AUTOMAKE,;t t
16305 s,@AUTOHEADER@,$AUTOHEADER,;t t
16306 s,@MAKEINFO@,$MAKEINFO,;t t
16307 s,@AMTAR@,$AMTAR,;t t
16308 s,@install_sh@,$install_sh,;t t
16309 s,@STRIP@,$STRIP,;t t
16310 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16311 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16312 s,@AWK@,$AWK,;t t
16313 s,@SET_MAKE@,$SET_MAKE,;t t
16314 s,@am__leading_dot@,$am__leading_dot,;t t
16315 s,@build@,$build,;t t
16316 s,@build_cpu@,$build_cpu,;t t
16317 s,@build_vendor@,$build_vendor,;t t
16318 s,@build_os@,$build_os,;t t
16319 s,@host@,$host,;t t
16320 s,@host_cpu@,$host_cpu,;t t
16321 s,@host_vendor@,$host_vendor,;t t
16322 s,@host_os@,$host_os,;t t
16323 s,@CC@,$CC,;t t
16324 s,@CFLAGS@,$CFLAGS,;t t
16325 s,@LDFLAGS@,$LDFLAGS,;t t
16326 s,@CPPFLAGS@,$CPPFLAGS,;t t
16327 s,@ac_ct_CC@,$ac_ct_CC,;t t
16328 s,@EXEEXT@,$EXEEXT,;t t
16329 s,@OBJEXT@,$OBJEXT,;t t
16330 s,@DEPDIR@,$DEPDIR,;t t
16331 s,@am__include@,$am__include,;t t
16332 s,@am__quote@,$am__quote,;t t
16333 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16334 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16335 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16336 s,@CCDEPMODE@,$CCDEPMODE,;t t
16337 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16338 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16339 s,@CPP@,$CPP,;t t
16340 s,@EGREP@,$EGREP,;t t
16341 s,@U@,$U,;t t
16342 s,@ANSI2KNR@,$ANSI2KNR,;t t
16343 s,@RANLIB@,$RANLIB,;t t
16344 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16345 s,@AR@,$AR,;t t
16346 s,@ac_ct_AR@,$ac_ct_AR,;t t
16347 s,@DBX@,$DBX,;t t
16348 s,@GDB@,$GDB,;t t
16349 s,@SDB@,$SDB,;t t
16350 s,@DEBUGGER@,$DEBUGGER,;t t
16351 s,@SENDMAIL@,$SENDMAIL,;t t
16352 s,@OPS@,$OPS,;t t
16353 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16354 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16355 s,@SUBVERSION@,$SUBVERSION,;t t
16356 s,@ISPELL@,$ISPELL,;t t
16357 s,@LIBOBJS@,$LIBOBJS,;t t
16358 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16359 s,@docdir@,$docdir,;t t
16360 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16361 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16362 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16363 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16364 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16365 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16366 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16367 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16368 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16369 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
16370 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
16371 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16372 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16373 s,@MUTTLIBS@,$MUTTLIBS,;t t
16374 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16375 s,@LIBIMAP@,$LIBIMAP,;t t
16376 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16377 s,@ALLOCA@,$ALLOCA,;t t
16378 s,@GLIBC21@,$GLIBC21,;t t
16379 s,@LIBICONV@,$LIBICONV,;t t
16380 s,@USE_NLS@,$USE_NLS,;t t
16381 s,@MSGFMT@,$MSGFMT,;t t
16382 s,@GMSGFMT@,$GMSGFMT,;t t
16383 s,@XGETTEXT@,$XGETTEXT,;t t
16384 s,@INTLBISON@,$INTLBISON,;t t
16385 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16386 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16387 s,@CATALOGS@,$CATALOGS,;t t
16388 s,@CATOBJEXT@,$CATOBJEXT,;t t
16389 s,@GMOFILES@,$GMOFILES,;t t
16390 s,@INTLLIBS@,$INTLLIBS,;t t
16391 s,@INTLOBJS@,$INTLOBJS,;t t
16392 s,@POFILES@,$POFILES,;t t
16393 s,@POSUB@,$POSUB,;t t
16394 s,@DATADIRNAME@,$DATADIRNAME,;t t
16395 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16396 s,@GENCAT@,$GENCAT,;t t
16397 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16398 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16399 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16400 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16401 CEOF
16402
16403 _ACEOF
16404
16405   cat >>$CONFIG_STATUS <<\_ACEOF
16406   # Split the substitutions into bite-sized pieces for seds with
16407   # small command number limits, like on Digital OSF/1 and HP-UX.
16408   ac_max_sed_lines=48
16409   ac_sed_frag=1 # Number of current file.
16410   ac_beg=1 # First line for current file.
16411   ac_end=$ac_max_sed_lines # Line after last line for current file.
16412   ac_more_lines=:
16413   ac_sed_cmds=
16414   while $ac_more_lines; do
16415     if test $ac_beg -gt 1; then
16416       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16417     else
16418       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16419     fi
16420     if test ! -s $tmp/subs.frag; then
16421       ac_more_lines=false
16422     else
16423       # The purpose of the label and of the branching condition is to
16424       # speed up the sed processing (if there are no `@' at all, there
16425       # is no need to browse any of the substitutions).
16426       # These are the two extra sed commands mentioned above.
16427       (echo ':t
16428   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16429       if test -z "$ac_sed_cmds"; then
16430         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16431       else
16432         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16433       fi
16434       ac_sed_frag=`expr $ac_sed_frag + 1`
16435       ac_beg=$ac_end
16436       ac_end=`expr $ac_end + $ac_max_sed_lines`
16437     fi
16438   done
16439   if test -z "$ac_sed_cmds"; then
16440     ac_sed_cmds=cat
16441   fi
16442 fi # test -n "$CONFIG_FILES"
16443
16444 _ACEOF
16445 cat >>$CONFIG_STATUS <<\_ACEOF
16446 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16447   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16448   case $ac_file in
16449   - | *:- | *:-:* ) # input from stdin
16450         cat >$tmp/stdin
16451         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16452         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16453   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16454         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16455   * )   ac_file_in=$ac_file.in ;;
16456   esac
16457
16458   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16459   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16461          X"$ac_file" : 'X\(//\)[^/]' \| \
16462          X"$ac_file" : 'X\(//\)$' \| \
16463          X"$ac_file" : 'X\(/\)' \| \
16464          .     : '\(.\)' 2>/dev/null ||
16465 echo X"$ac_file" |
16466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16467           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16468           /^X\(\/\/\)$/{ s//\1/; q; }
16469           /^X\(\/\).*/{ s//\1/; q; }
16470           s/.*/./; q'`
16471   { if $as_mkdir_p; then
16472     mkdir -p "$ac_dir"
16473   else
16474     as_dir="$ac_dir"
16475     as_dirs=
16476     while test ! -d "$as_dir"; do
16477       as_dirs="$as_dir $as_dirs"
16478       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480          X"$as_dir" : 'X\(//\)[^/]' \| \
16481          X"$as_dir" : 'X\(//\)$' \| \
16482          X"$as_dir" : 'X\(/\)' \| \
16483          .     : '\(.\)' 2>/dev/null ||
16484 echo X"$as_dir" |
16485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16486           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16487           /^X\(\/\/\)$/{ s//\1/; q; }
16488           /^X\(\/\).*/{ s//\1/; q; }
16489           s/.*/./; q'`
16490     done
16491     test ! -n "$as_dirs" || mkdir $as_dirs
16492   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16493 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16494    { (exit 1); exit 1; }; }; }
16495
16496   ac_builddir=.
16497
16498 if test "$ac_dir" != .; then
16499   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16500   # A "../" for each directory in $ac_dir_suffix.
16501   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16502 else
16503   ac_dir_suffix= ac_top_builddir=
16504 fi
16505
16506 case $srcdir in
16507   .)  # No --srcdir option.  We are building in place.
16508     ac_srcdir=.
16509     if test -z "$ac_top_builddir"; then
16510        ac_top_srcdir=.
16511     else
16512        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16513     fi ;;
16514   [\\/]* | ?:[\\/]* )  # Absolute path.
16515     ac_srcdir=$srcdir$ac_dir_suffix;
16516     ac_top_srcdir=$srcdir ;;
16517   *) # Relative path.
16518     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16519     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16520 esac
16521 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16522 # absolute.
16523 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16524 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16525 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16526 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16527
16528
16529   case $INSTALL in
16530   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16531   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16532   esac
16533
16534   if test x"$ac_file" != x-; then
16535     { echo "$as_me:$LINENO: creating $ac_file" >&5
16536 echo "$as_me: creating $ac_file" >&6;}
16537     rm -f "$ac_file"
16538   fi
16539   # Let's still pretend it is `configure' which instantiates (i.e., don't
16540   # use $as_me), people would be surprised to read:
16541   #    /* config.h.  Generated by config.status.  */
16542   if test x"$ac_file" = x-; then
16543     configure_input=
16544   else
16545     configure_input="$ac_file.  "
16546   fi
16547   configure_input=$configure_input"Generated from `echo $ac_file_in |
16548                                      sed 's,.*/,,'` by configure."
16549
16550   # First look for the input files in the build tree, otherwise in the
16551   # src tree.
16552   ac_file_inputs=`IFS=:
16553     for f in $ac_file_in; do
16554       case $f in
16555       -) echo $tmp/stdin ;;
16556       [\\/$]*)
16557          # Absolute (can't be DOS-style, as IFS=:)
16558          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16559 echo "$as_me: error: cannot find input file: $f" >&2;}
16560    { (exit 1); exit 1; }; }
16561          echo $f;;
16562       *) # Relative
16563          if test -f "$f"; then
16564            # Build tree
16565            echo $f
16566          elif test -f "$srcdir/$f"; then
16567            # Source tree
16568            echo $srcdir/$f
16569          else
16570            # /dev/null tree
16571            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16572 echo "$as_me: error: cannot find input file: $f" >&2;}
16573    { (exit 1); exit 1; }; }
16574          fi;;
16575       esac
16576     done` || { (exit 1); exit 1; }
16577 _ACEOF
16578 cat >>$CONFIG_STATUS <<_ACEOF
16579   sed "$ac_vpsub
16580 $extrasub
16581 _ACEOF
16582 cat >>$CONFIG_STATUS <<\_ACEOF
16583 :t
16584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16585 s,@configure_input@,$configure_input,;t t
16586 s,@srcdir@,$ac_srcdir,;t t
16587 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16588 s,@top_srcdir@,$ac_top_srcdir,;t t
16589 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16590 s,@builddir@,$ac_builddir,;t t
16591 s,@abs_builddir@,$ac_abs_builddir,;t t
16592 s,@top_builddir@,$ac_top_builddir,;t t
16593 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16594 s,@INSTALL@,$ac_INSTALL,;t t
16595 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16596   rm -f $tmp/stdin
16597   if test x"$ac_file" != x-; then
16598     mv $tmp/out $ac_file
16599   else
16600     cat $tmp/out
16601     rm -f $tmp/out
16602   fi
16603
16604 done
16605 _ACEOF
16606 cat >>$CONFIG_STATUS <<\_ACEOF
16607
16608 #
16609 # CONFIG_HEADER section.
16610 #
16611
16612 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16613 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16614 #
16615 # ac_d sets the value in "#define NAME VALUE" lines.
16616 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16617 ac_dB='[        ].*$,\1#\2'
16618 ac_dC=' '
16619 ac_dD=',;t'
16620 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16621 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16622 ac_uB='$,\1#\2define\3'
16623 ac_uC=' '
16624 ac_uD=',;t'
16625
16626 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16627   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16628   case $ac_file in
16629   - | *:- | *:-:* ) # input from stdin
16630         cat >$tmp/stdin
16631         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16632         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16633   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16634         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16635   * )   ac_file_in=$ac_file.in ;;
16636   esac
16637
16638   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16639 echo "$as_me: creating $ac_file" >&6;}
16640
16641   # First look for the input files in the build tree, otherwise in the
16642   # src tree.
16643   ac_file_inputs=`IFS=:
16644     for f in $ac_file_in; do
16645       case $f in
16646       -) echo $tmp/stdin ;;
16647       [\\/$]*)
16648          # Absolute (can't be DOS-style, as IFS=:)
16649          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16650 echo "$as_me: error: cannot find input file: $f" >&2;}
16651    { (exit 1); exit 1; }; }
16652          echo $f;;
16653       *) # Relative
16654          if test -f "$f"; then
16655            # Build tree
16656            echo $f
16657          elif test -f "$srcdir/$f"; then
16658            # Source tree
16659            echo $srcdir/$f
16660          else
16661            # /dev/null tree
16662            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16663 echo "$as_me: error: cannot find input file: $f" >&2;}
16664    { (exit 1); exit 1; }; }
16665          fi;;
16666       esac
16667     done` || { (exit 1); exit 1; }
16668   # Remove the trailing spaces.
16669   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16670
16671 _ACEOF
16672
16673 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16674 # `conftest.undefs', that substitutes the proper values into
16675 # config.h.in to produce config.h.  The first handles `#define'
16676 # templates, and the second `#undef' templates.
16677 # And first: Protect against being on the right side of a sed subst in
16678 # config.status.  Protect against being in an unquoted here document
16679 # in config.status.
16680 rm -f conftest.defines conftest.undefs
16681 # Using a here document instead of a string reduces the quoting nightmare.
16682 # Putting comments in sed scripts is not portable.
16683 #
16684 # `end' is used to avoid that the second main sed command (meant for
16685 # 0-ary CPP macros) applies to n-ary macro definitions.
16686 # See the Autoconf documentation for `clear'.
16687 cat >confdef2sed.sed <<\_ACEOF
16688 s/[\\&,]/\\&/g
16689 s,[\\$`],\\&,g
16690 t clear
16691 : clear
16692 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16693 t end
16694 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16695 : end
16696 _ACEOF
16697 # If some macros were called several times there might be several times
16698 # the same #defines, which is useless.  Nevertheless, we may not want to
16699 # sort them, since we want the *last* AC-DEFINE to be honored.
16700 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16701 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16702 rm -f confdef2sed.sed
16703
16704 # This sed command replaces #undef with comments.  This is necessary, for
16705 # example, in the case of _POSIX_SOURCE, which is predefined and required
16706 # on some systems where configure will not decide to define it.
16707 cat >>conftest.undefs <<\_ACEOF
16708 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16709 _ACEOF
16710
16711 # Break up conftest.defines because some shells have a limit on the size
16712 # of here documents, and old seds have small limits too (100 cmds).
16713 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16714 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16715 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16716 echo '  :' >>$CONFIG_STATUS
16717 rm -f conftest.tail
16718 while grep . conftest.defines >/dev/null
16719 do
16720   # Write a limited-size here document to $tmp/defines.sed.
16721   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16722   # Speed up: don't consider the non `#define' lines.
16723   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16724   # Work around the forget-to-reset-the-flag bug.
16725   echo 't clr' >>$CONFIG_STATUS
16726   echo ': clr' >>$CONFIG_STATUS
16727   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16728   echo 'CEOF
16729   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16730   rm -f $tmp/in
16731   mv $tmp/out $tmp/in
16732 ' >>$CONFIG_STATUS
16733   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16734   rm -f conftest.defines
16735   mv conftest.tail conftest.defines
16736 done
16737 rm -f conftest.defines
16738 echo '  fi # grep' >>$CONFIG_STATUS
16739 echo >>$CONFIG_STATUS
16740
16741 # Break up conftest.undefs because some shells have a limit on the size
16742 # of here documents, and old seds have small limits too (100 cmds).
16743 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16744 rm -f conftest.tail
16745 while grep . conftest.undefs >/dev/null
16746 do
16747   # Write a limited-size here document to $tmp/undefs.sed.
16748   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16749   # Speed up: don't consider the non `#undef'
16750   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16751   # Work around the forget-to-reset-the-flag bug.
16752   echo 't clr' >>$CONFIG_STATUS
16753   echo ': clr' >>$CONFIG_STATUS
16754   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16755   echo 'CEOF
16756   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16757   rm -f $tmp/in
16758   mv $tmp/out $tmp/in
16759 ' >>$CONFIG_STATUS
16760   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16761   rm -f conftest.undefs
16762   mv conftest.tail conftest.undefs
16763 done
16764 rm -f conftest.undefs
16765
16766 cat >>$CONFIG_STATUS <<\_ACEOF
16767   # Let's still pretend it is `configure' which instantiates (i.e., don't
16768   # use $as_me), people would be surprised to read:
16769   #    /* config.h.  Generated by config.status.  */
16770   if test x"$ac_file" = x-; then
16771     echo "/* Generated by configure.  */" >$tmp/config.h
16772   else
16773     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16774   fi
16775   cat $tmp/in >>$tmp/config.h
16776   rm -f $tmp/in
16777   if test x"$ac_file" != x-; then
16778     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16779       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16780 echo "$as_me: $ac_file is unchanged" >&6;}
16781     else
16782       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16784          X"$ac_file" : 'X\(//\)[^/]' \| \
16785          X"$ac_file" : 'X\(//\)$' \| \
16786          X"$ac_file" : 'X\(/\)' \| \
16787          .     : '\(.\)' 2>/dev/null ||
16788 echo X"$ac_file" |
16789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16790           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16791           /^X\(\/\/\)$/{ s//\1/; q; }
16792           /^X\(\/\).*/{ s//\1/; q; }
16793           s/.*/./; q'`
16794       { if $as_mkdir_p; then
16795     mkdir -p "$ac_dir"
16796   else
16797     as_dir="$ac_dir"
16798     as_dirs=
16799     while test ! -d "$as_dir"; do
16800       as_dirs="$as_dir $as_dirs"
16801       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16803          X"$as_dir" : 'X\(//\)[^/]' \| \
16804          X"$as_dir" : 'X\(//\)$' \| \
16805          X"$as_dir" : 'X\(/\)' \| \
16806          .     : '\(.\)' 2>/dev/null ||
16807 echo X"$as_dir" |
16808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16809           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16810           /^X\(\/\/\)$/{ s//\1/; q; }
16811           /^X\(\/\).*/{ s//\1/; q; }
16812           s/.*/./; q'`
16813     done
16814     test ! -n "$as_dirs" || mkdir $as_dirs
16815   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16817    { (exit 1); exit 1; }; }; }
16818
16819       rm -f $ac_file
16820       mv $tmp/config.h $ac_file
16821     fi
16822   else
16823     cat $tmp/config.h
16824     rm -f $tmp/config.h
16825   fi
16826 # Compute $ac_file's index in $config_headers.
16827 _am_stamp_count=1
16828 for _am_header in $config_headers :; do
16829   case $_am_header in
16830     $ac_file | $ac_file:* )
16831       break ;;
16832     * )
16833       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16834   esac
16835 done
16836 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16837 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16838          X$ac_file : 'X\(//\)[^/]' \| \
16839          X$ac_file : 'X\(//\)$' \| \
16840          X$ac_file : 'X\(/\)' \| \
16841          .     : '\(.\)' 2>/dev/null ||
16842 echo X$ac_file |
16843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16844           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16845           /^X\(\/\/\)$/{ s//\1/; q; }
16846           /^X\(\/\).*/{ s//\1/; q; }
16847           s/.*/./; q'`/stamp-h$_am_stamp_count
16848 done
16849 _ACEOF
16850 cat >>$CONFIG_STATUS <<\_ACEOF
16851
16852 #
16853 # CONFIG_COMMANDS section.
16854 #
16855 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16856   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16857   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16858   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16859 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860          X"$ac_dest" : 'X\(//\)[^/]' \| \
16861          X"$ac_dest" : 'X\(//\)$' \| \
16862          X"$ac_dest" : 'X\(/\)' \| \
16863          .     : '\(.\)' 2>/dev/null ||
16864 echo X"$ac_dest" |
16865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16867           /^X\(\/\/\)$/{ s//\1/; q; }
16868           /^X\(\/\).*/{ s//\1/; q; }
16869           s/.*/./; q'`
16870   ac_builddir=.
16871
16872 if test "$ac_dir" != .; then
16873   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16874   # A "../" for each directory in $ac_dir_suffix.
16875   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16876 else
16877   ac_dir_suffix= ac_top_builddir=
16878 fi
16879
16880 case $srcdir in
16881   .)  # No --srcdir option.  We are building in place.
16882     ac_srcdir=.
16883     if test -z "$ac_top_builddir"; then
16884        ac_top_srcdir=.
16885     else
16886        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16887     fi ;;
16888   [\\/]* | ?:[\\/]* )  # Absolute path.
16889     ac_srcdir=$srcdir$ac_dir_suffix;
16890     ac_top_srcdir=$srcdir ;;
16891   *) # Relative path.
16892     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16893     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16894 esac
16895 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16896 # absolute.
16897 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16898 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16899 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16900 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16901
16902
16903   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16904 echo "$as_me: executing $ac_dest commands" >&6;}
16905   case $ac_dest in
16906     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16907   # Strip MF so we end up with the name of the file.
16908   mf=`echo "$mf" | sed -e 's/:.*$//'`
16909   # Check whether this is an Automake generated Makefile or not.
16910   # We used to match only the files named `Makefile.in', but
16911   # some people rename them; so instead we look at the file content.
16912   # Grep'ing the first line is not enough: some people post-process
16913   # each Makefile.in and add a new line on top of each file to say so.
16914   # So let's grep whole file.
16915   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16916     dirpart=`(dirname "$mf") 2>/dev/null ||
16917 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16918          X"$mf" : 'X\(//\)[^/]' \| \
16919          X"$mf" : 'X\(//\)$' \| \
16920          X"$mf" : 'X\(/\)' \| \
16921          .     : '\(.\)' 2>/dev/null ||
16922 echo X"$mf" |
16923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16924           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16925           /^X\(\/\/\)$/{ s//\1/; q; }
16926           /^X\(\/\).*/{ s//\1/; q; }
16927           s/.*/./; q'`
16928   else
16929     continue
16930   fi
16931   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16932   # Extract the definition of DEP_FILES from the Makefile without
16933   # running `make'.
16934   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16935   test -z "$DEPDIR" && continue
16936   # When using ansi2knr, U may be empty or an underscore; expand it
16937   U=`sed -n -e '/^U = / s///p' < "$mf"`
16938   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16939   # We invoke sed twice because it is the simplest approach to
16940   # changing $(DEPDIR) to its actual value in the expansion.
16941   for file in `sed -n -e '
16942     /^DEP_FILES = .*\\\\$/ {
16943       s/^DEP_FILES = //
16944       :loop
16945         s/\\\\$//
16946         p
16947         n
16948         /\\\\$/ b loop
16949       p
16950     }
16951     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16952        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16953     # Make sure the directory exists.
16954     test -f "$dirpart/$file" && continue
16955     fdir=`(dirname "$file") 2>/dev/null ||
16956 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16957          X"$file" : 'X\(//\)[^/]' \| \
16958          X"$file" : 'X\(//\)$' \| \
16959          X"$file" : 'X\(/\)' \| \
16960          .     : '\(.\)' 2>/dev/null ||
16961 echo X"$file" |
16962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16964           /^X\(\/\/\)$/{ s//\1/; q; }
16965           /^X\(\/\).*/{ s//\1/; q; }
16966           s/.*/./; q'`
16967     { if $as_mkdir_p; then
16968     mkdir -p $dirpart/$fdir
16969   else
16970     as_dir=$dirpart/$fdir
16971     as_dirs=
16972     while test ! -d "$as_dir"; do
16973       as_dirs="$as_dir $as_dirs"
16974       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16976          X"$as_dir" : 'X\(//\)[^/]' \| \
16977          X"$as_dir" : 'X\(//\)$' \| \
16978          X"$as_dir" : 'X\(/\)' \| \
16979          .     : '\(.\)' 2>/dev/null ||
16980 echo X"$as_dir" |
16981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16982           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16983           /^X\(\/\/\)$/{ s//\1/; q; }
16984           /^X\(\/\).*/{ s//\1/; q; }
16985           s/.*/./; q'`
16986     done
16987     test ! -n "$as_dirs" || mkdir $as_dirs
16988   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16989 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16990    { (exit 1); exit 1; }; }; }
16991
16992     # echo "creating $dirpart/$file"
16993     echo '# dummy' > "$dirpart/$file"
16994   done
16995 done
16996  ;;
16997     default-1 ) for ac_file in $CONFIG_FILES; do
16998         # Support "outfile[:infile[:infile...]]"
16999         case "$ac_file" in
17000           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17001         esac
17002         # PO directories have a Makefile.in generated from Makefile.in.in.
17003         case "$ac_file" in */Makefile.in)
17004           # Adjust a relative srcdir.
17005           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17006           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17007           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17008           # In autoconf-2.13 it is called $ac_given_srcdir.
17009           # In autoconf-2.50 it is called $srcdir.
17010           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17011           case "$ac_given_srcdir" in
17012             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17013             /*) top_srcdir="$ac_given_srcdir" ;;
17014             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17015           esac
17016           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17017             rm -f "$ac_dir/POTFILES"
17018             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17019             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
17020             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17021             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17022           fi
17023           ;;
17024         esac
17025       done ;;
17026   esac
17027 done
17028 _ACEOF
17029
17030 cat >>$CONFIG_STATUS <<\_ACEOF
17031
17032 { (exit 0); exit 0; }
17033 _ACEOF
17034 chmod +x $CONFIG_STATUS
17035 ac_clean_files=$ac_clean_files_save
17036
17037
17038 # configure is writing to config.log, and then calls config.status.
17039 # config.status does its own redirection, appending to config.log.
17040 # Unfortunately, on DOS this fails, as config.log is still kept open
17041 # by configure, so config.status won't be able to write to it; its
17042 # output is simply discarded.  So we exec the FD to /dev/null,
17043 # effectively closing config.log, so it can be properly (re)opened and
17044 # appended to by config.status.  When coming back to configure, we
17045 # need to make the FD available again.
17046 if test "$no_create" != yes; then
17047   ac_cs_success=:
17048   ac_config_status_args=
17049   test "$silent" = yes &&
17050     ac_config_status_args="$ac_config_status_args --quiet"
17051   exec 5>/dev/null
17052   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17053   exec 5>>config.log
17054   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17055   # would make configure fail if this is the last instruction.
17056   $ac_cs_success || { (exit 1); exit 1; }
17057 fi
17058