git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@59 e385b8ad-14ed-0310-8656-cc95a2468c6d
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="mutt.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815
816 Program names:
817   --program-prefix=PREFIX            prepend PREFIX to installed program names
818   --program-suffix=SUFFIX            append SUFFIX to installed program names
819   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
820
821 System types:
822   --build=BUILD     configure for building on BUILD [guessed]
823   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
824 _ACEOF
825 fi
826
827 if test -n "$ac_init_help"; then
828
829   cat <<\_ACEOF
830
831 Optional Features:
832   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
833   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
834   --disable-largefile     omit support for large files
835   --enable-gpgme           Enable GPGME support
836   --disable-pgp              Disable PGP support
837   --disable-smime            Disable SMIME support
838   --enable-external-dotlock  Force use of an external dotlock program
839   --enable-pop               Enable POP3 support
840   --enable-imap              Enable IMAP support
841   --enable-nntp              Enable NNTP support
842   --enable-debug             Enable debugging support
843   --enable-flock             Use flock() to lock files
844   --disable-fcntl            Do NOT use fcntl() to lock files
845   --enable-inodesort        Read files in maildir folders sorted by inode.
846   --disable-warnings         Turn off compiler warnings (not recommended)
847   --enable-nfs-fix           Work around an NFS with broken attributes caching
848   --enable-buffy-size        Use file size attribute instead of access time
849   --enable-mailtool          Enable Sun mailtool attachments support
850   --enable-compressed        Enable compressed folders support
851   --enable-locales-fix       The result of isprint() is unreliable
852   --enable-exact-address     Enable regeneration of email addresses
853   --enable-hcache            Enable header caching
854   --disable-iconv            Disable iconv support
855   --disable-nls              Do not use Native Language Support
856
857 Optional Packages:
858   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
859   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
860   --with-gpgme-prefix=PFX    prefix where GPGME is installed (optional)
861   --with-mixmaster=PATH    Include Mixmaster support
862   --with-slang=DIR         Use S-Lang instead of ncurses
863   --with-curses=DIR          Where ncurses is installed
864   --with-regex               Use the GNU regex library
865   --with-homespool=FILE    File in user's directory where new mail is spooled
866   --with-mailpath=DIR        Directory where spool mailboxes are located
867   --with-docdir=PATH         Specify where to put the documentation
868   --with-domain=DOMAIN       Specify your DNS domain name
869   --with-gss=PFX           Compile in GSSAPI authentication for IMAP
870   --with-ssl=PFX           Compile in SSL support for POP/IMAP
871   --with-gnutls=PFX        Compile in GNU TLS support for POP/IMAP
872   --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
873   --with-gnutls=PFX        Enable SSL support using gnutls
874   --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
875   --with-sasl2=PFX         Use Cyrus SASL library version 2 for POP/IMAP authentication
876   --with-idn=PFX           Use GNU libidn for domain names
877   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
878   --without-gdbm             Get rid of gdbm even if it is available
879   --with-bdb=DIR           Use BerkeleyDB4 if gdbm is not available
880   --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
881   --with-included-gettext    Use the GNU gettext library included here
882   --without-wc-funcs         Do not use the system's wchar_t functions
883   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
884
885 Some influential environment variables:
886   CC          C compiler command
887   CFLAGS      C compiler flags
888   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889               nonstandard directory <lib dir>
890   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891               headers in a nonstandard directory <include dir>
892   CPP         C preprocessor
893
894 Use these variables to override the choices made by `configure' or to help
895 it to find libraries and programs with nonstandard names/locations.
896
897 _ACEOF
898 fi
899
900 if test "$ac_init_help" = "recursive"; then
901   # If there are subdirs, report their specific --help.
902   ac_popdir=`pwd`
903   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904     test -d $ac_dir || continue
905     ac_builddir=.
906
907 if test "$ac_dir" != .; then
908   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909   # A "../" for each directory in $ac_dir_suffix.
910   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 else
912   ac_dir_suffix= ac_top_builddir=
913 fi
914
915 case $srcdir in
916   .)  # No --srcdir option.  We are building in place.
917     ac_srcdir=.
918     if test -z "$ac_top_builddir"; then
919        ac_top_srcdir=.
920     else
921        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922     fi ;;
923   [\\/]* | ?:[\\/]* )  # Absolute path.
924     ac_srcdir=$srcdir$ac_dir_suffix;
925     ac_top_srcdir=$srcdir ;;
926   *) # Relative path.
927     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928     ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 esac
930 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 # absolute.
932 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
933 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
934 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
935 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936
937     cd $ac_dir
938     # Check for guested configure; otherwise get Cygnus style configure.
939     if test -f $ac_srcdir/configure.gnu; then
940       echo
941       $SHELL $ac_srcdir/configure.gnu  --help=recursive
942     elif test -f $ac_srcdir/configure; then
943       echo
944       $SHELL $ac_srcdir/configure  --help=recursive
945     elif test -f $ac_srcdir/configure.ac ||
946            test -f $ac_srcdir/configure.in; then
947       echo
948       $ac_configure --help
949     else
950       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951     fi
952     cd $ac_popdir
953   done
954 fi
955
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
958   cat <<\_ACEOF
959
960 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
961 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
964 _ACEOF
965   exit 0
966 fi
967 exec 5>config.log
968 cat >&5 <<_ACEOF
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
971
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.53.  Invocation command line was
974
975   $ $0 $@
976
977 _ACEOF
978 {
979 cat <<_ASUNAME
980 ## --------- ##
981 ## Platform. ##
982 ## --------- ##
983
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
992
993 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
994 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
997 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
998 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
999 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1000
1001 _ASUNAME
1002
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $PATH
1005 do
1006   IFS=$as_save_IFS
1007   test -z "$as_dir" && as_dir=.
1008   echo "PATH: $as_dir"
1009 done
1010
1011 } >&5
1012
1013 cat >&5 <<_ACEOF
1014
1015
1016 ## ----------- ##
1017 ## Core tests. ##
1018 ## ----------- ##
1019
1020 _ACEOF
1021
1022
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Also quote any args containing shell meta-characters.
1026 ac_configure_args=
1027 ac_sep=
1028 for ac_arg
1029 do
1030   case $ac_arg in
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n ) continue ;;
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     continue ;;
1036   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038   esac
1039   case " $ac_configure_args " in
1040     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1041     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042        ac_sep=" " ;;
1043   esac
1044   # Get rid of the leading space.
1045 done
1046
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log.  We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053   # Save into config.log some information that might help in debugging.
1054   {
1055     echo
1056     cat <<\_ASBOX
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1060 _ASBOX
1061     echo
1062     # The following way of writing the cache mishandles newlines in values,
1063 {
1064   (set) 2>&1 |
1065     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066     *ac_space=\ *)
1067       sed -n \
1068         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070       ;;
1071     *)
1072       sed -n \
1073         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074       ;;
1075     esac;
1076 }
1077     echo
1078     if test -s confdefs.h; then
1079       cat <<\_ASBOX
1080 ## ----------- ##
1081 ## confdefs.h. ##
1082 ## ----------- ##
1083 _ASBOX
1084       echo
1085       sed "/^$/d" confdefs.h
1086       echo
1087     fi
1088     test "$ac_signal" != 0 &&
1089       echo "$as_me: caught signal $ac_signal"
1090     echo "$as_me: exit $exit_status"
1091   } >&5
1092   rm -f core core.* *.core &&
1093   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094     exit $exit_status
1095      ' 0
1096 for ac_signal in 1 2 13 15; do
1097   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 done
1099 ac_signal=0
1100
1101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1102 rm -rf conftest* confdefs.h
1103 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 echo >confdefs.h
1105
1106 # Predefined preprocessor variables.
1107
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 _ACEOF
1111
1112
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 _ACEOF
1116
1117
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 _ACEOF
1121
1122
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 _ACEOF
1126
1127
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 _ACEOF
1131
1132
1133 # Let the site file select an alternate cache file if it wants to.
1134 # Prefer explicitly selected file to automatically selected ones.
1135 if test -z "$CONFIG_SITE"; then
1136   if test "x$prefix" != xNONE; then
1137     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1138   else
1139     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140   fi
1141 fi
1142 for ac_site_file in $CONFIG_SITE; do
1143   if test -r "$ac_site_file"; then
1144     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1145 echo "$as_me: loading site script $ac_site_file" >&6;}
1146     sed 's/^/| /' "$ac_site_file" >&5
1147     . "$ac_site_file"
1148   fi
1149 done
1150
1151 if test -r "$cache_file"; then
1152   # Some versions of bash will fail to source /dev/null (special
1153   # files actually), so we avoid doing that.
1154   if test -f "$cache_file"; then
1155     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1156 echo "$as_me: loading cache $cache_file" >&6;}
1157     case $cache_file in
1158       [\\/]* | ?:[\\/]* ) . $cache_file;;
1159       *)                      . ./$cache_file;;
1160     esac
1161   fi
1162 else
1163   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1164 echo "$as_me: creating cache $cache_file" >&6;}
1165   >$cache_file
1166 fi
1167
1168 # Check that the precious variables saved in the cache have kept the same
1169 # value.
1170 ac_cache_corrupted=false
1171 for ac_var in `(set) 2>&1 |
1172                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1173   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1174   eval ac_new_set=\$ac_env_${ac_var}_set
1175   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1176   eval ac_new_val="\$ac_env_${ac_var}_value"
1177   case $ac_old_set,$ac_new_set in
1178     set,)
1179       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1181       ac_cache_corrupted=: ;;
1182     ,set)
1183       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1184 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1185       ac_cache_corrupted=: ;;
1186     ,);;
1187     *)
1188       if test "x$ac_old_val" != "x$ac_new_val"; then
1189         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1190 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1191         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1192 echo "$as_me:   former value:  $ac_old_val" >&2;}
1193         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1194 echo "$as_me:   current value: $ac_new_val" >&2;}
1195         ac_cache_corrupted=:
1196       fi;;
1197   esac
1198   # Pass precious variables to config.status.
1199   if test "$ac_new_set" = set; then
1200     case $ac_new_val in
1201     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1202       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1203     *) ac_arg=$ac_var=$ac_new_val ;;
1204     esac
1205     case " $ac_configure_args " in
1206       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1207       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208     esac
1209   fi
1210 done
1211 if $ac_cache_corrupted; then
1212   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1213 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1214   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1215 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1216    { (exit 1); exit 1; }; }
1217 fi
1218
1219 ac_ext=c
1220 ac_cpp='$CPP $CPPFLAGS'
1221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243 ac_config_headers="$ac_config_headers config.h"
1244
1245 ac_config_commands="$ac_config_commands default-1"
1246
1247
1248 mutt_cv_version=`cat $srcdir/VERSION`
1249
1250 ac_aux_dir=
1251 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1252   if test -f $ac_dir/install-sh; then
1253     ac_aux_dir=$ac_dir
1254     ac_install_sh="$ac_aux_dir/install-sh -c"
1255     break
1256   elif test -f $ac_dir/install.sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install.sh -c"
1259     break
1260   elif test -f $ac_dir/shtool; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/shtool install -c"
1263     break
1264   fi
1265 done
1266 if test -z "$ac_aux_dir"; then
1267   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1268 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1269    { (exit 1); exit 1; }; }
1270 fi
1271 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1272 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1273 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1274
1275 # Find a good install program.  We prefer a C program (faster),
1276 # so one script is as good as another.  But avoid the broken or
1277 # incompatible versions:
1278 # SysV /etc/install, /usr/sbin/install
1279 # SunOS /usr/etc/install
1280 # IRIX /sbin/install
1281 # AIX /bin/install
1282 # AmigaOS /C/install, which installs bootblocks on floppy discs
1283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1286 # ./install, which can be erroneously created by make from ./install.sh.
1287 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1289 if test -z "$INSTALL"; then
1290 if test "${ac_cv_path_install+set}" = set; then
1291   echo $ECHO_N "(cached) $ECHO_C" >&6
1292 else
1293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1294 for as_dir in $PATH
1295 do
1296   IFS=$as_save_IFS
1297   test -z "$as_dir" && as_dir=.
1298   # Account for people who put trailing slashes in PATH elements.
1299 case $as_dir/ in
1300   ./ | .// | /cC/* | \
1301   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1302   /usr/ucb/* ) ;;
1303   *)
1304     # OSF1 and SCO ODT 3.0 have their own names for install.
1305     # Don't use installbsd from OSF since it installs stuff as root
1306     # by default.
1307     for ac_prog in ginstall scoinst install; do
1308       for ac_exec_ext in '' $ac_executable_extensions; do
1309         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1310           if test $ac_prog = install &&
1311             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1312             # AIX install.  It has an incompatible calling convention.
1313             :
1314           elif test $ac_prog = install &&
1315             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1316             # program-specific install script used by HP pwplus--don't use.
1317             :
1318           else
1319             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1320             break 3
1321           fi
1322         fi
1323       done
1324     done
1325     ;;
1326 esac
1327 done
1328
1329
1330 fi
1331   if test "${ac_cv_path_install+set}" = set; then
1332     INSTALL=$ac_cv_path_install
1333   else
1334     # As a last resort, use the slow shell script.  We don't cache a
1335     # path for INSTALL within a source directory, because that will
1336     # break other packages using the cache if that directory is
1337     # removed, or if the path is relative.
1338     INSTALL=$ac_install_sh
1339   fi
1340 fi
1341 echo "$as_me:$LINENO: result: $INSTALL" >&5
1342 echo "${ECHO_T}$INSTALL" >&6
1343
1344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1345 # It thinks the first close brace ends the variable substitution.
1346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1347
1348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1349
1350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1351
1352 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1353 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1354 # Just in case
1355 sleep 1
1356 echo timestamp > conftestfile
1357 # Do `set' in a subshell so we don't clobber the current shell's
1358 # arguments.  Must try -L first in case configure is actually a
1359 # symlink; some systems play weird games with the mod time of symlinks
1360 # (eg FreeBSD returns the mod time of the symlink's containing
1361 # directory).
1362 if (
1363    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1364    if test "$*" = "X"; then
1365       # -L didn't work.
1366       set X `ls -t $srcdir/configure conftestfile`
1367    fi
1368    if test "$*" != "X $srcdir/configure conftestfile" \
1369       && test "$*" != "X conftestfile $srcdir/configure"; then
1370
1371       # If neither matched, then we have a broken ls.  This can happen
1372       # if, for instance, CONFIG_SHELL is bash and it inherits a
1373       # broken ls alias from the environment.  This has actually
1374       # happened.  Such a system could not be considered "sane".
1375       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1376 alias in your environment" >&5
1377 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1378 alias in your environment" >&2;}
1379    { (exit 1); exit 1; }; }
1380    fi
1381
1382    test "$2" = conftestfile
1383    )
1384 then
1385    # Ok.
1386    :
1387 else
1388    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1389 Check your system clock" >&5
1390 echo "$as_me: error: newly created file is older than distributed files!
1391 Check your system clock" >&2;}
1392    { (exit 1); exit 1; }; }
1393 fi
1394 rm -f conftest*
1395 echo "$as_me:$LINENO: result: yes" >&5
1396 echo "${ECHO_T}yes" >&6
1397 test "$program_prefix" != NONE &&
1398   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1399 # Use a double $ so make ignores it.
1400 test "$program_suffix" != NONE &&
1401   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1402 # Double any \ or $.  echo might interpret backslashes.
1403 # By default was `s,x,x', remove it if useless.
1404 cat <<\_ACEOF >conftest.sed
1405 s/[\\$]/&&/g;s/;s,x,x,$//
1406 _ACEOF
1407 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1408 rm conftest.sed
1409
1410 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1411 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1412 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1413 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1414   echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416   cat >conftest.make <<\_ACEOF
1417 all:
1418         @echo 'ac_maketemp="${MAKE}"'
1419 _ACEOF
1420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1421 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1422 if test -n "$ac_maketemp"; then
1423   eval ac_cv_prog_make_${ac_make}_set=yes
1424 else
1425   eval ac_cv_prog_make_${ac_make}_set=no
1426 fi
1427 rm -f conftest.make
1428 fi
1429 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1430   echo "$as_me:$LINENO: result: yes" >&5
1431 echo "${ECHO_T}yes" >&6
1432   SET_MAKE=
1433 else
1434   echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436   SET_MAKE="MAKE=${MAKE-make}"
1437 fi
1438
1439
1440 PACKAGE=muttng
1441
1442 VERSION=$mutt_cv_version
1443
1444 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1445   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1446 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1447    { (exit 1); exit 1; }; }
1448 fi
1449
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE "$PACKAGE"
1452 _ACEOF
1453
1454
1455 cat >>confdefs.h <<_ACEOF
1456 #define VERSION "$VERSION"
1457 _ACEOF
1458
1459
1460
1461 missing_dir=`cd $ac_aux_dir && pwd`
1462 echo "$as_me:$LINENO: checking for working aclocal" >&5
1463 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1464 # Run test in a subshell; some versions of sh will print an error if
1465 # an executable is not found, even if stderr is redirected.
1466 # Redirect stdin to placate older versions of autoconf.  Sigh.
1467 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1468    ACLOCAL=aclocal
1469    echo "$as_me:$LINENO: result: found" >&5
1470 echo "${ECHO_T}found" >&6
1471 else
1472    ACLOCAL="$missing_dir/missing aclocal"
1473    echo "$as_me:$LINENO: result: missing" >&5
1474 echo "${ECHO_T}missing" >&6
1475 fi
1476
1477 echo "$as_me:$LINENO: checking for working autoconf" >&5
1478 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1479 # Run test in a subshell; some versions of sh will print an error if
1480 # an executable is not found, even if stderr is redirected.
1481 # Redirect stdin to placate older versions of autoconf.  Sigh.
1482 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1483    AUTOCONF=autoconf
1484    echo "$as_me:$LINENO: result: found" >&5
1485 echo "${ECHO_T}found" >&6
1486 else
1487    AUTOCONF="$missing_dir/missing autoconf"
1488    echo "$as_me:$LINENO: result: missing" >&5
1489 echo "${ECHO_T}missing" >&6
1490 fi
1491
1492 echo "$as_me:$LINENO: checking for working automake" >&5
1493 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1494 # Run test in a subshell; some versions of sh will print an error if
1495 # an executable is not found, even if stderr is redirected.
1496 # Redirect stdin to placate older versions of autoconf.  Sigh.
1497 if (automake --version) < /dev/null > /dev/null 2>&1; then
1498    AUTOMAKE=automake
1499    echo "$as_me:$LINENO: result: found" >&5
1500 echo "${ECHO_T}found" >&6
1501 else
1502    AUTOMAKE="$missing_dir/missing automake"
1503    echo "$as_me:$LINENO: result: missing" >&5
1504 echo "${ECHO_T}missing" >&6
1505 fi
1506
1507 echo "$as_me:$LINENO: checking for working autoheader" >&5
1508 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1509 # Run test in a subshell; some versions of sh will print an error if
1510 # an executable is not found, even if stderr is redirected.
1511 # Redirect stdin to placate older versions of autoconf.  Sigh.
1512 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1513    AUTOHEADER=autoheader
1514    echo "$as_me:$LINENO: result: found" >&5
1515 echo "${ECHO_T}found" >&6
1516 else
1517    AUTOHEADER="$missing_dir/missing autoheader"
1518    echo "$as_me:$LINENO: result: missing" >&5
1519 echo "${ECHO_T}missing" >&6
1520 fi
1521
1522 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1523 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1524 # Run test in a subshell; some versions of sh will print an error if
1525 # an executable is not found, even if stderr is redirected.
1526 # Redirect stdin to placate older versions of autoconf.  Sigh.
1527 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1528    MAKEINFO=makeinfo
1529    echo "$as_me:$LINENO: result: found" >&5
1530 echo "${ECHO_T}found" >&6
1531 else
1532    MAKEINFO="$missing_dir/missing makeinfo"
1533    echo "$as_me:$LINENO: result: missing" >&5
1534 echo "${ECHO_T}missing" >&6
1535 fi
1536
1537
1538
1539
1540
1541 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"
1542
1543 # Make sure we can run config.sub.
1544 $ac_config_sub sun4 >/dev/null 2>&1 ||
1545   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547    { (exit 1); exit 1; }; }
1548
1549 echo "$as_me:$LINENO: checking build system type" >&5
1550 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551 if test "${ac_cv_build+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   ac_cv_build_alias=$build_alias
1555 test -z "$ac_cv_build_alias" &&
1556   ac_cv_build_alias=`$ac_config_guess`
1557 test -z "$ac_cv_build_alias" &&
1558   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560    { (exit 1); exit 1; }; }
1561 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564    { (exit 1); exit 1; }; }
1565
1566 fi
1567 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568 echo "${ECHO_T}$ac_cv_build" >&6
1569 build=$ac_cv_build
1570 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575 echo "$as_me:$LINENO: checking host system type" >&5
1576 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1577 if test "${ac_cv_host+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   ac_cv_host_alias=$host_alias
1581 test -z "$ac_cv_host_alias" &&
1582   ac_cv_host_alias=$ac_cv_build_alias
1583 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1584   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1586    { (exit 1); exit 1; }; }
1587
1588 fi
1589 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1590 echo "${ECHO_T}$ac_cv_host" >&6
1591 host=$ac_cv_host
1592 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597
1598 echo "$as_me:$LINENO: checking for prefix" >&5
1599 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1600 if test x$prefix = xNONE; then
1601         mutt_cv_prefix=$ac_default_prefix
1602 else
1603         mutt_cv_prefix=$prefix
1604 fi
1605 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1606 echo "${ECHO_T}$mutt_cv_prefix" >&6
1607
1608 ac_ext=c
1609 ac_cpp='$CPP $CPPFLAGS'
1610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613 if test -n "$ac_tool_prefix"; then
1614   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   if test -n "$CC"; then
1622   ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   for ac_exec_ext in '' $ac_executable_extensions; do
1630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633     break 2
1634   fi
1635 done
1636 done
1637
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642   echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645   echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 fi
1650 if test -z "$ac_cv_prog_CC"; then
1651   ac_ct_CC=$CC
1652   # Extract the first word of "gcc", so it can be a program name with args.
1653 set dummy gcc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$ac_ct_CC"; then
1660   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   for ac_exec_ext in '' $ac_executable_extensions; do
1668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669     ac_cv_prog_ac_ct_CC="gcc"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679 if test -n "$ac_ct_CC"; then
1680   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681 echo "${ECHO_T}$ac_ct_CC" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687   CC=$ac_ct_CC
1688 else
1689   CC="$ac_cv_prog_CC"
1690 fi
1691
1692 if test -z "$CC"; then
1693   if test -n "$ac_tool_prefix"; then
1694   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}cc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_CC+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$CC"; then
1702   ac_cv_prog_CC="$CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_CC="${ac_tool_prefix}cc"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 CC=$ac_cv_prog_CC
1721 if test -n "$CC"; then
1722   echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729 fi
1730 if test -z "$ac_cv_prog_CC"; then
1731   ac_ct_CC=$CC
1732   # Extract the first word of "cc", so it can be a program name with args.
1733 set dummy cc; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   if test -n "$ac_ct_CC"; then
1740   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745   IFS=$as_save_IFS
1746   test -z "$as_dir" && as_dir=.
1747   for ac_exec_ext in '' $ac_executable_extensions; do
1748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_ac_ct_CC="cc"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752   fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1762 else
1763   echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767   CC=$ac_ct_CC
1768 else
1769   CC="$ac_cv_prog_CC"
1770 fi
1771
1772 fi
1773 if test -z "$CC"; then
1774   # Extract the first word of "cc", so it can be a program name with args.
1775 set dummy cc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779   echo $ECHO_N "(cached) $ECHO_C" >&6
1780 else
1781   if test -n "$CC"; then
1782   ac_cv_prog_CC="$CC" # Let the user override the test.
1783 else
1784   ac_prog_rejected=no
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788   IFS=$as_save_IFS
1789   test -z "$as_dir" && as_dir=.
1790   for ac_exec_ext in '' $ac_executable_extensions; do
1791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793        ac_prog_rejected=yes
1794        continue
1795      fi
1796     ac_cv_prog_CC="cc"
1797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798     break 2
1799   fi
1800 done
1801 done
1802
1803 if test $ac_prog_rejected = yes; then
1804   # We found a bogon in the path, so make sure we never use it.
1805   set dummy $ac_cv_prog_CC
1806   shift
1807   if test $# != 0; then
1808     # We chose a different compiler from the bogus one.
1809     # However, it has the same basename, so the bogon will be chosen
1810     # first if we set CC to just the basename; use the full file name.
1811     shift
1812     set dummy "$as_dir/$ac_word" ${1+"$@"}
1813     shift
1814     ac_cv_prog_CC="$@"
1815   fi
1816 fi
1817 fi
1818 fi
1819 CC=$ac_cv_prog_CC
1820 if test -n "$CC"; then
1821   echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1823 else
1824   echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1826 fi
1827
1828 fi
1829 if test -z "$CC"; then
1830   if test -n "$ac_tool_prefix"; then
1831   for ac_prog in cl
1832   do
1833     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1834 set dummy $ac_tool_prefix$ac_prog; 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_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$CC"; then
1841   ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
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 CC=$ac_cv_prog_CC
1860 if test -n "$CC"; then
1861   echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 fi
1867
1868     test -n "$CC" && break
1869   done
1870 fi
1871 if test -z "$CC"; then
1872   ac_ct_CC=$CC
1873   for ac_prog in cl
1874 do
1875   # Extract the first word of "$ac_prog", so it can be a program name with args.
1876 set dummy $ac_prog; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880   echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882   if test -n "$ac_ct_CC"; then
1883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888   IFS=$as_save_IFS
1889   test -z "$as_dir" && as_dir=.
1890   for ac_exec_ext in '' $ac_executable_extensions; do
1891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892     ac_cv_prog_ac_ct_CC="$ac_prog"
1893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894     break 2
1895   fi
1896 done
1897 done
1898
1899 fi
1900 fi
1901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1902 if test -n "$ac_ct_CC"; then
1903   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1904 echo "${ECHO_T}$ac_ct_CC" >&6
1905 else
1906   echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910   test -n "$ac_ct_CC" && break
1911 done
1912
1913   CC=$ac_ct_CC
1914 fi
1915
1916 fi
1917
1918
1919 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1920 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1921    { (exit 1); exit 1; }; }
1922
1923 # Provide some information about the compiler.
1924 echo "$as_me:$LINENO:" \
1925      "checking for C compiler version" >&5
1926 ac_compiler=`set X $ac_compile; echo $2`
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1928   (eval $ac_compiler --version </dev/null >&5) 2>&5
1929   ac_status=$?
1930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931   (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1933   (eval $ac_compiler -v </dev/null >&5) 2>&5
1934   ac_status=$?
1935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936   (exit $ac_status); }
1937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1938   (eval $ac_compiler -V </dev/null >&5) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }
1942
1943 cat >conftest.$ac_ext <<_ACEOF
1944 #line $LINENO "configure"
1945 #include "confdefs.h"
1946
1947 #ifdef F77_DUMMY_MAIN
1948 #  ifdef __cplusplus
1949      extern "C"
1950 #  endif
1951    int F77_DUMMY_MAIN() { return 1; }
1952 #endif
1953 int
1954 main ()
1955 {
1956
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 ac_clean_files_save=$ac_clean_files
1962 ac_clean_files="$ac_clean_files a.out a.exe"
1963 # Try to create an executable without -o first, disregard a.out.
1964 # It will help us diagnose broken compilers, and finding out an intuition
1965 # of exeext.
1966 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1967 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970   (eval $ac_link_default) 2>&5
1971   ac_status=$?
1972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973   (exit $ac_status); }; then
1974   # Find the output, starting from the most likely.  This scheme is
1975 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976 # resort.
1977
1978 # Be careful to initialize this variable, since it used to be cached.
1979 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980 ac_cv_exeext=
1981 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1982                 ls a.out conftest 2>/dev/null;
1983                 ls a.* conftest.* 2>/dev/null`; do
1984   case $ac_file in
1985     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1986     a.out ) # We found the default executable, but exeext='' is most
1987             # certainly right.
1988             break;;
1989     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1991           export ac_cv_exeext
1992           break;;
1993     * ) break;;
1994   esac
1995 done
1996 else
1997   echo "$as_me: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2000 echo "$as_me: error: C compiler cannot create executables" >&2;}
2001    { (exit 77); exit 77; }; }
2002 fi
2003
2004 ac_exeext=$ac_cv_exeext
2005 echo "$as_me:$LINENO: result: $ac_file" >&5
2006 echo "${ECHO_T}$ac_file" >&6
2007
2008 # Check the compiler produces executables we can run.  If not, either
2009 # the compiler is broken, or we cross compile.
2010 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2011 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2012 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2013 # If not cross compiling, check that we can run a simple program.
2014 if test "$cross_compiling" != yes; then
2015   if { ac_try='./$ac_file'
2016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017   (eval $ac_try) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }; }; then
2021     cross_compiling=no
2022   else
2023     if test "$cross_compiling" = maybe; then
2024         cross_compiling=yes
2025     else
2026         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2027 If you meant to cross compile, use \`--host'." >&5
2028 echo "$as_me: error: cannot run C compiled programs.
2029 If you meant to cross compile, use \`--host'." >&2;}
2030    { (exit 1); exit 1; }; }
2031     fi
2032   fi
2033 fi
2034 echo "$as_me:$LINENO: result: yes" >&5
2035 echo "${ECHO_T}yes" >&6
2036
2037 rm -f a.out a.exe conftest$ac_cv_exeext
2038 ac_clean_files=$ac_clean_files_save
2039 # Check the compiler produces executables we can run.  If not, either
2040 # the compiler is broken, or we cross compile.
2041 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2042 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2043 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2044 echo "${ECHO_T}$cross_compiling" >&6
2045
2046 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2047 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2049   (eval $ac_link) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; then
2053   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2054 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2055 # work properly (i.e., refer to `conftest.exe'), while it won't with
2056 # `rm'.
2057 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2058   case $ac_file in
2059     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2060     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061           export ac_cv_exeext
2062           break;;
2063     * ) break;;
2064   esac
2065 done
2066 else
2067   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2068 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2069    { (exit 1); exit 1; }; }
2070 fi
2071
2072 rm -f conftest$ac_cv_exeext
2073 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074 echo "${ECHO_T}$ac_cv_exeext" >&6
2075
2076 rm -f conftest.$ac_ext
2077 EXEEXT=$ac_cv_exeext
2078 ac_exeext=$EXEEXT
2079 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081 if test "${ac_cv_objext+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   cat >conftest.$ac_ext <<_ACEOF
2085 #line $LINENO "configure"
2086 #include "confdefs.h"
2087
2088 #ifdef F77_DUMMY_MAIN
2089 #  ifdef __cplusplus
2090      extern "C"
2091 #  endif
2092    int F77_DUMMY_MAIN() { return 1; }
2093 #endif
2094 int
2095 main ()
2096 {
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 rm -f conftest.o conftest.obj
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104   (eval $ac_compile) 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }; then
2108   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2109   case $ac_file in
2110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2111     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2112        break;;
2113   esac
2114 done
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2119 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124 fi
2125 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126 echo "${ECHO_T}$ac_cv_objext" >&6
2127 OBJEXT=$ac_cv_objext
2128 ac_objext=$OBJEXT
2129 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   cat >conftest.$ac_ext <<_ACEOF
2135 #line $LINENO "configure"
2136 #include "confdefs.h"
2137
2138 #ifdef F77_DUMMY_MAIN
2139 #  ifdef __cplusplus
2140      extern "C"
2141 #  endif
2142    int F77_DUMMY_MAIN() { return 1; }
2143 #endif
2144 int
2145 main ()
2146 {
2147 #ifndef __GNUC__
2148        choke me
2149 #endif
2150
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 rm -f conftest.$ac_objext
2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157   (eval $ac_compile) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); } &&
2161          { ac_try='test -s conftest.$ac_objext'
2162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163   (eval $ac_try) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; }; then
2167   ac_compiler_gnu=yes
2168 else
2169   echo "$as_me: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 ac_compiler_gnu=no
2172 fi
2173 rm -f conftest.$ac_objext conftest.$ac_ext
2174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2175
2176 fi
2177 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2178 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2179 GCC=`test $ac_compiler_gnu = yes && echo yes`
2180 ac_test_CFLAGS=${CFLAGS+set}
2181 ac_save_CFLAGS=$CFLAGS
2182 CFLAGS="-g"
2183 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2184 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2185 if test "${ac_cv_prog_cc_g+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   cat >conftest.$ac_ext <<_ACEOF
2189 #line $LINENO "configure"
2190 #include "confdefs.h"
2191
2192 #ifdef F77_DUMMY_MAIN
2193 #  ifdef __cplusplus
2194      extern "C"
2195 #  endif
2196    int F77_DUMMY_MAIN() { return 1; }
2197 #endif
2198 int
2199 main ()
2200 {
2201
2202   ;
2203   return 0;
2204 }
2205 _ACEOF
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208   (eval $ac_compile) 2>&5
2209   ac_status=$?
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); } &&
2212          { ac_try='test -s conftest.$ac_objext'
2213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214   (eval $ac_try) 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }; }; then
2218   ac_cv_prog_cc_g=yes
2219 else
2220   echo "$as_me: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2222 ac_cv_prog_cc_g=no
2223 fi
2224 rm -f conftest.$ac_objext conftest.$ac_ext
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2227 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2228 if test "$ac_test_CFLAGS" = set; then
2229   CFLAGS=$ac_save_CFLAGS
2230 elif test $ac_cv_prog_cc_g = yes; then
2231   if test "$GCC" = yes; then
2232     CFLAGS="-g -O2"
2233   else
2234     CFLAGS="-g"
2235   fi
2236 else
2237   if test "$GCC" = yes; then
2238     CFLAGS="-O2"
2239   else
2240     CFLAGS=
2241   fi
2242 fi
2243 # Some people use a C++ compiler to compile C.  Since we use `exit',
2244 # in C++ we need to declare it.  In case someone uses the same compiler
2245 # for both compiling C and C++ we need to have the C++ compiler decide
2246 # the declaration of exit, since it's the most demanding environment.
2247 cat >conftest.$ac_ext <<_ACEOF
2248 #ifndef __cplusplus
2249   choke me
2250 #endif
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); } &&
2258          { ac_try='test -s conftest.$ac_objext'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264   for ac_declaration in \
2265    ''\
2266    '#include <stdlib.h>' \
2267    'extern "C" void std::exit (int) throw (); using std::exit;' \
2268    'extern "C" void std::exit (int); using std::exit;' \
2269    'extern "C" void exit (int) throw ();' \
2270    'extern "C" void exit (int);' \
2271    'void exit (int);'
2272 do
2273   cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 #include "confdefs.h"
2276 #include <stdlib.h>
2277 $ac_declaration
2278 #ifdef F77_DUMMY_MAIN
2279 #  ifdef __cplusplus
2280      extern "C"
2281 #  endif
2282    int F77_DUMMY_MAIN() { return 1; }
2283 #endif
2284 int
2285 main ()
2286 {
2287 exit (42);
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294   (eval $ac_compile) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); } &&
2298          { ac_try='test -s conftest.$ac_objext'
2299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300   (eval $ac_try) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; }; then
2304   :
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 continue
2309 fi
2310 rm -f conftest.$ac_objext conftest.$ac_ext
2311   cat >conftest.$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2313 #include "confdefs.h"
2314 $ac_declaration
2315 #ifdef F77_DUMMY_MAIN
2316 #  ifdef __cplusplus
2317      extern "C"
2318 #  endif
2319    int F77_DUMMY_MAIN() { return 1; }
2320 #endif
2321 int
2322 main ()
2323 {
2324 exit (42);
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 rm -f conftest.$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331   (eval $ac_compile) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); } &&
2335          { ac_try='test -s conftest.$ac_objext'
2336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337   (eval $ac_try) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }; }; then
2341   break
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2345 fi
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347 done
2348 rm -f conftest*
2349 if test -n "$ac_declaration"; then
2350   echo '#ifdef __cplusplus' >>confdefs.h
2351   echo $ac_declaration      >>confdefs.h
2352   echo '#endif'             >>confdefs.h
2353 fi
2354
2355 else
2356   echo "$as_me: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 fi
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
2367
2368         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2369 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2370 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   ac_check_lib_save_LIBS=$LIBS
2374 LIBS="-lcposix  $LIBS"
2375 cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 #include "confdefs.h"
2378
2379 /* Override any gcc2 internal prototype to avoid an error.  */
2380 #ifdef __cplusplus
2381 extern "C"
2382 #endif
2383 /* We use char because int might match the return type of a gcc2
2384    builtin and then its argument prototype would still apply.  */
2385 char strerror ();
2386 #ifdef F77_DUMMY_MAIN
2387 #  ifdef __cplusplus
2388      extern "C"
2389 #  endif
2390    int F77_DUMMY_MAIN() { return 1; }
2391 #endif
2392 int
2393 main ()
2394 {
2395 strerror ();
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext conftest$ac_exeext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2402   (eval $ac_link) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); } &&
2406          { ac_try='test -s conftest$ac_exeext'
2407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408   (eval $ac_try) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; }; then
2412   ac_cv_lib_cposix_strerror=yes
2413 else
2414   echo "$as_me: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 ac_cv_lib_cposix_strerror=no
2417 fi
2418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2419 LIBS=$ac_check_lib_save_LIBS
2420 fi
2421 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2422 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2423 if test $ac_cv_lib_cposix_strerror = yes; then
2424   LIBS="$LIBS -lcposix"
2425 fi
2426
2427
2428
2429
2430
2431
2432 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2433 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2434 if test "${am_cv_prog_cc_stdc+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   am_cv_prog_cc_stdc=no
2438 ac_save_CC="$CC"
2439 # Don't try gcc -ansi; that turns off useful extensions and
2440 # breaks some systems' header files.
2441 # AIX                   -qlanglvl=ansi
2442 # Ultrix and OSF/1      -std1
2443 # HP-UX                 -Aa -D_HPUX_SOURCE
2444 # SVR4                  -Xc -D__EXTENSIONS__
2445 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2446 do
2447   CC="$ac_save_CC $ac_arg"
2448   cat >conftest.$ac_ext <<_ACEOF
2449 #line $LINENO "configure"
2450 #include "confdefs.h"
2451 #include <stdarg.h>
2452 #include <stdio.h>
2453 #include <sys/types.h>
2454 #include <sys/stat.h>
2455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2456 struct buf { int x; };
2457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2458 static char *e (p, i)
2459      char **p;
2460      int i;
2461 {
2462   return p[i];
2463 }
2464 static char *f (char * (*g) (char **, int), char **p, ...)
2465 {
2466   char *s;
2467   va_list v;
2468   va_start (v,p);
2469   s = g (p, va_arg (v,int));
2470   va_end (v);
2471   return s;
2472 }
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2477 int argc;
2478 char **argv;
2479
2480 #ifdef F77_DUMMY_MAIN
2481 #  ifdef __cplusplus
2482      extern "C"
2483 #  endif
2484    int F77_DUMMY_MAIN() { return 1; }
2485 #endif
2486 int
2487 main ()
2488 {
2489
2490 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498   (eval $ac_compile) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -s conftest.$ac_objext'
2503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504   (eval $ac_try) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; }; then
2508   am_cv_prog_cc_stdc="$ac_arg"; break
2509 else
2510   echo "$as_me: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 fi
2513 rm -f conftest.$ac_objext conftest.$ac_ext
2514 done
2515 CC="$ac_save_CC"
2516
2517 fi
2518
2519 if test -z "$am_cv_prog_cc_stdc"; then
2520   echo "$as_me:$LINENO: result: none needed" >&5
2521 echo "${ECHO_T}none needed" >&6
2522 else
2523   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2524 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2525 fi
2526 case "x$am_cv_prog_cc_stdc" in
2527   x|xno) ;;
2528   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2529 esac
2530
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2537 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2538 # On Suns, sometimes $CPP names a directory.
2539 if test -n "$CPP" && test -d "$CPP"; then
2540   CPP=
2541 fi
2542 if test -z "$CPP"; then
2543   if test "${ac_cv_prog_CPP+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546       # Double quotes because CPP needs to be expanded
2547     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2548     do
2549       ac_preproc_ok=false
2550 for ac_c_preproc_warn_flag in '' yes
2551 do
2552   # Use a header file that comes with gcc, so configuring glibc
2553   # with a fresh cross-compiler works.
2554   # On the NeXT, cc -E runs the code through the compiler's parser,
2555   # not just through cpp. "Syntax error" is here to catch this case.
2556   cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2559 #include <assert.h>
2560                      Syntax error
2561 _ACEOF
2562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2564   ac_status=$?
2565   egrep -v '^ *\+' conftest.er1 >conftest.err
2566   rm -f conftest.er1
2567   cat conftest.err >&5
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); } >/dev/null; then
2570   if test -s conftest.err; then
2571     ac_cpp_err=$ac_c_preproc_warn_flag
2572   else
2573     ac_cpp_err=
2574   fi
2575 else
2576   ac_cpp_err=yes
2577 fi
2578 if test -z "$ac_cpp_err"; then
2579   :
2580 else
2581   echo "$as_me: failed program was:" >&5
2582   cat conftest.$ac_ext >&5
2583   # Broken: fails on valid input.
2584 continue
2585 fi
2586 rm -f conftest.err conftest.$ac_ext
2587
2588   # OK, works on sane cases.  Now check whether non-existent headers
2589   # can be detected and how.
2590   cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 #include "confdefs.h"
2593 #include <ac_nonexistent.h>
2594 _ACEOF
2595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2597   ac_status=$?
2598   egrep -v '^ *\+' conftest.er1 >conftest.err
2599   rm -f conftest.er1
2600   cat conftest.err >&5
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } >/dev/null; then
2603   if test -s conftest.err; then
2604     ac_cpp_err=$ac_c_preproc_warn_flag
2605   else
2606     ac_cpp_err=
2607   fi
2608 else
2609   ac_cpp_err=yes
2610 fi
2611 if test -z "$ac_cpp_err"; then
2612   # Broken: success on invalid input.
2613 continue
2614 else
2615   echo "$as_me: failed program was:" >&5
2616   cat conftest.$ac_ext >&5
2617   # Passes both tests.
2618 ac_preproc_ok=:
2619 break
2620 fi
2621 rm -f conftest.err conftest.$ac_ext
2622
2623 done
2624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2625 rm -f conftest.err conftest.$ac_ext
2626 if $ac_preproc_ok; then
2627   break
2628 fi
2629
2630     done
2631     ac_cv_prog_CPP=$CPP
2632
2633 fi
2634   CPP=$ac_cv_prog_CPP
2635 else
2636   ac_cv_prog_CPP=$CPP
2637 fi
2638 echo "$as_me:$LINENO: result: $CPP" >&5
2639 echo "${ECHO_T}$CPP" >&6
2640 ac_preproc_ok=false
2641 for ac_c_preproc_warn_flag in '' yes
2642 do
2643   # Use a header file that comes with gcc, so configuring glibc
2644   # with a fresh cross-compiler works.
2645   # On the NeXT, cc -E runs the code through the compiler's parser,
2646   # not just through cpp. "Syntax error" is here to catch this case.
2647   cat >conftest.$ac_ext <<_ACEOF
2648 #line $LINENO "configure"
2649 #include "confdefs.h"
2650 #include <assert.h>
2651                      Syntax error
2652 _ACEOF
2653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2655   ac_status=$?
2656   egrep -v '^ *\+' conftest.er1 >conftest.err
2657   rm -f conftest.er1
2658   cat conftest.err >&5
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); } >/dev/null; then
2661   if test -s conftest.err; then
2662     ac_cpp_err=$ac_c_preproc_warn_flag
2663   else
2664     ac_cpp_err=
2665   fi
2666 else
2667   ac_cpp_err=yes
2668 fi
2669 if test -z "$ac_cpp_err"; then
2670   :
2671 else
2672   echo "$as_me: failed program was:" >&5
2673   cat conftest.$ac_ext >&5
2674   # Broken: fails on valid input.
2675 continue
2676 fi
2677 rm -f conftest.err conftest.$ac_ext
2678
2679   # OK, works on sane cases.  Now check whether non-existent headers
2680   # can be detected and how.
2681   cat >conftest.$ac_ext <<_ACEOF
2682 #line $LINENO "configure"
2683 #include "confdefs.h"
2684 #include <ac_nonexistent.h>
2685 _ACEOF
2686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2688   ac_status=$?
2689   egrep -v '^ *\+' conftest.er1 >conftest.err
2690   rm -f conftest.er1
2691   cat conftest.err >&5
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); } >/dev/null; then
2694   if test -s conftest.err; then
2695     ac_cpp_err=$ac_c_preproc_warn_flag
2696   else
2697     ac_cpp_err=
2698   fi
2699 else
2700   ac_cpp_err=yes
2701 fi
2702 if test -z "$ac_cpp_err"; then
2703   # Broken: success on invalid input.
2704 continue
2705 else
2706   echo "$as_me: failed program was:" >&5
2707   cat conftest.$ac_ext >&5
2708   # Passes both tests.
2709 ac_preproc_ok=:
2710 break
2711 fi
2712 rm -f conftest.err conftest.$ac_ext
2713
2714 done
2715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2716 rm -f conftest.err conftest.$ac_ext
2717 if $ac_preproc_ok; then
2718   :
2719 else
2720   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2721 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2722    { (exit 1); exit 1; }; }
2723 fi
2724
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731
2732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2743                   inttypes.h stdint.h unistd.h
2744 do
2745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2746 echo "$as_me:$LINENO: checking for $ac_header" >&5
2747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754 $ac_includes_default
2755
2756 #include <$ac_header>
2757 _ACEOF
2758 rm -f conftest.$ac_objext
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760   (eval $ac_compile) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          { ac_try='test -s conftest.$ac_objext'
2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; }; then
2770   eval "$as_ac_Header=yes"
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 cat conftest.$ac_ext >&5
2774 eval "$as_ac_Header=no"
2775 fi
2776 rm -f conftest.$ac_objext conftest.$ac_ext
2777 fi
2778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2781   cat >>confdefs.h <<_ACEOF
2782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2783 _ACEOF
2784
2785 fi
2786
2787 done
2788
2789
2790
2791
2792 echo "$as_me:$LINENO: checking for function prototypes" >&5
2793 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2794 if test "$am_cv_prog_cc_stdc" != no; then
2795   echo "$as_me:$LINENO: result: yes" >&5
2796 echo "${ECHO_T}yes" >&6
2797
2798 cat >>confdefs.h <<\_ACEOF
2799 #define PROTOTYPES 1
2800 _ACEOF
2801
2802   U= ANSI2KNR=
2803 else
2804   echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806   U=_ ANSI2KNR=./ansi2knr
2807   # Ensure some checks needed by ansi2knr itself.
2808   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2810 if test "${ac_cv_header_stdc+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   cat >conftest.$ac_ext <<_ACEOF
2814 #line $LINENO "configure"
2815 #include "confdefs.h"
2816 #include <stdlib.h>
2817 #include <stdarg.h>
2818 #include <string.h>
2819 #include <float.h>
2820
2821 _ACEOF
2822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824   ac_status=$?
2825   egrep -v '^ *\+' conftest.er1 >conftest.err
2826   rm -f conftest.er1
2827   cat conftest.err >&5
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); } >/dev/null; then
2830   if test -s conftest.err; then
2831     ac_cpp_err=$ac_c_preproc_warn_flag
2832   else
2833     ac_cpp_err=
2834   fi
2835 else
2836   ac_cpp_err=yes
2837 fi
2838 if test -z "$ac_cpp_err"; then
2839   ac_cv_header_stdc=yes
2840 else
2841   echo "$as_me: failed program was:" >&5
2842   cat conftest.$ac_ext >&5
2843   ac_cv_header_stdc=no
2844 fi
2845 rm -f conftest.err conftest.$ac_ext
2846
2847 if test $ac_cv_header_stdc = yes; then
2848   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2849   cat >conftest.$ac_ext <<_ACEOF
2850 #line $LINENO "configure"
2851 #include "confdefs.h"
2852 #include <string.h>
2853
2854 _ACEOF
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856   egrep "memchr" >/dev/null 2>&1; then
2857   :
2858 else
2859   ac_cv_header_stdc=no
2860 fi
2861 rm -f conftest*
2862
2863 fi
2864
2865 if test $ac_cv_header_stdc = yes; then
2866   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2867   cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2869 #include "confdefs.h"
2870 #include <stdlib.h>
2871
2872 _ACEOF
2873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2874   egrep "free" >/dev/null 2>&1; then
2875   :
2876 else
2877   ac_cv_header_stdc=no
2878 fi
2879 rm -f conftest*
2880
2881 fi
2882
2883 if test $ac_cv_header_stdc = yes; then
2884   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2885   if test "$cross_compiling" = yes; then
2886   :
2887 else
2888   cat >conftest.$ac_ext <<_ACEOF
2889 #line $LINENO "configure"
2890 #include "confdefs.h"
2891 #include <ctype.h>
2892 #if ((' ' & 0x0FF) == 0x020)
2893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2895 #else
2896 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2897                      || ('j' <= (c) && (c) <= 'r') \
2898                      || ('s' <= (c) && (c) <= 'z'))
2899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2900 #endif
2901
2902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2903 int
2904 main ()
2905 {
2906   int i;
2907   for (i = 0; i < 256; i++)
2908     if (XOR (islower (i), ISLOWER (i))
2909         || toupper (i) != TOUPPER (i))
2910       exit(2);
2911   exit (0);
2912 }
2913 _ACEOF
2914 rm -f conftest$ac_exeext
2915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2916   (eval $ac_link) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925   :
2926 else
2927   echo "$as_me: program exited with status $ac_status" >&5
2928 echo "$as_me: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2930 ( exit $ac_status )
2931 ac_cv_header_stdc=no
2932 fi
2933 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2934 fi
2935 fi
2936 fi
2937 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2938 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2939 if test $ac_cv_header_stdc = yes; then
2940
2941 cat >>confdefs.h <<\_ACEOF
2942 #define STDC_HEADERS 1
2943 _ACEOF
2944
2945 fi
2946
2947
2948 for ac_header in string.h
2949 do
2950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2952   echo "$as_me:$LINENO: checking for $ac_header" >&5
2953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 fi
2957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2959 else
2960   # Is the header compilable?
2961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 #include "confdefs.h"
2966 $ac_includes_default
2967 #include <$ac_header>
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971   (eval $ac_compile) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } &&
2975          { ac_try='test -s conftest.$ac_objext'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; }; then
2981   ac_header_compiler=yes
2982 else
2983   echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 ac_header_compiler=no
2986 fi
2987 rm -f conftest.$ac_objext conftest.$ac_ext
2988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2989 echo "${ECHO_T}$ac_header_compiler" >&6
2990
2991 # Is the header present?
2992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2995 #line $LINENO "configure"
2996 #include "confdefs.h"
2997 #include <$ac_header>
2998 _ACEOF
2999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3001   ac_status=$?
3002   egrep -v '^ *\+' conftest.er1 >conftest.err
3003   rm -f conftest.er1
3004   cat conftest.err >&5
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); } >/dev/null; then
3007   if test -s conftest.err; then
3008     ac_cpp_err=$ac_c_preproc_warn_flag
3009   else
3010     ac_cpp_err=
3011   fi
3012 else
3013   ac_cpp_err=yes
3014 fi
3015 if test -z "$ac_cpp_err"; then
3016   ac_header_preproc=yes
3017 else
3018   echo "$as_me: failed program was:" >&5
3019   cat conftest.$ac_ext >&5
3020   ac_header_preproc=no
3021 fi
3022 rm -f conftest.err conftest.$ac_ext
3023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3024 echo "${ECHO_T}$ac_header_preproc" >&6
3025
3026 # So?  What about this header?
3027 case $ac_header_compiler:$ac_header_preproc in
3028   yes:no )
3029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3033   no:yes )
3034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3036     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3040 esac
3041 echo "$as_me:$LINENO: checking for $ac_header" >&5
3042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3044   echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046   eval "$as_ac_Header=$ac_header_preproc"
3047 fi
3048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3050
3051 fi
3052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3053   cat >>confdefs.h <<_ACEOF
3054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3055 _ACEOF
3056
3057 fi
3058
3059 done
3060
3061 fi
3062
3063 if test "x$U" != "x"; then
3064   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3065 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3066    { (exit 1); exit 1; }; }
3067 fi
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3074 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3075 # On Suns, sometimes $CPP names a directory.
3076 if test -n "$CPP" && test -d "$CPP"; then
3077   CPP=
3078 fi
3079 if test -z "$CPP"; then
3080   if test "${ac_cv_prog_CPP+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083       # Double quotes because CPP needs to be expanded
3084     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3085     do
3086       ac_preproc_ok=false
3087 for ac_c_preproc_warn_flag in '' yes
3088 do
3089   # Use a header file that comes with gcc, so configuring glibc
3090   # with a fresh cross-compiler works.
3091   # On the NeXT, cc -E runs the code through the compiler's parser,
3092   # not just through cpp. "Syntax error" is here to catch this case.
3093   cat >conftest.$ac_ext <<_ACEOF
3094 #line $LINENO "configure"
3095 #include "confdefs.h"
3096 #include <assert.h>
3097                      Syntax error
3098 _ACEOF
3099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101   ac_status=$?
3102   egrep -v '^ *\+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } >/dev/null; then
3107   if test -s conftest.err; then
3108     ac_cpp_err=$ac_c_preproc_warn_flag
3109   else
3110     ac_cpp_err=
3111   fi
3112 else
3113   ac_cpp_err=yes
3114 fi
3115 if test -z "$ac_cpp_err"; then
3116   :
3117 else
3118   echo "$as_me: failed program was:" >&5
3119   cat conftest.$ac_ext >&5
3120   # Broken: fails on valid input.
3121 continue
3122 fi
3123 rm -f conftest.err conftest.$ac_ext
3124
3125   # OK, works on sane cases.  Now check whether non-existent headers
3126   # can be detected and how.
3127   cat >conftest.$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3129 #include "confdefs.h"
3130 #include <ac_nonexistent.h>
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134   ac_status=$?
3135   egrep -v '^ *\+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } >/dev/null; then
3140   if test -s conftest.err; then
3141     ac_cpp_err=$ac_c_preproc_warn_flag
3142   else
3143     ac_cpp_err=
3144   fi
3145 else
3146   ac_cpp_err=yes
3147 fi
3148 if test -z "$ac_cpp_err"; then
3149   # Broken: success on invalid input.
3150 continue
3151 else
3152   echo "$as_me: failed program was:" >&5
3153   cat conftest.$ac_ext >&5
3154   # Passes both tests.
3155 ac_preproc_ok=:
3156 break
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159
3160 done
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.$ac_ext
3163 if $ac_preproc_ok; then
3164   break
3165 fi
3166
3167     done
3168     ac_cv_prog_CPP=$CPP
3169
3170 fi
3171   CPP=$ac_cv_prog_CPP
3172 else
3173   ac_cv_prog_CPP=$CPP
3174 fi
3175 echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6
3177 ac_preproc_ok=false
3178 for ac_c_preproc_warn_flag in '' yes
3179 do
3180   # Use a header file that comes with gcc, so configuring glibc
3181   # with a fresh cross-compiler works.
3182   # On the NeXT, cc -E runs the code through the compiler's parser,
3183   # not just through cpp. "Syntax error" is here to catch this case.
3184   cat >conftest.$ac_ext <<_ACEOF
3185 #line $LINENO "configure"
3186 #include "confdefs.h"
3187 #include <assert.h>
3188                      Syntax error
3189 _ACEOF
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192   ac_status=$?
3193   egrep -v '^ *\+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } >/dev/null; then
3198   if test -s conftest.err; then
3199     ac_cpp_err=$ac_c_preproc_warn_flag
3200   else
3201     ac_cpp_err=
3202   fi
3203 else
3204   ac_cpp_err=yes
3205 fi
3206 if test -z "$ac_cpp_err"; then
3207   :
3208 else
3209   echo "$as_me: failed program was:" >&5
3210   cat conftest.$ac_ext >&5
3211   # Broken: fails on valid input.
3212 continue
3213 fi
3214 rm -f conftest.err conftest.$ac_ext
3215
3216   # OK, works on sane cases.  Now check whether non-existent headers
3217   # can be detected and how.
3218   cat >conftest.$ac_ext <<_ACEOF
3219 #line $LINENO "configure"
3220 #include "confdefs.h"
3221 #include <ac_nonexistent.h>
3222 _ACEOF
3223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3225   ac_status=$?
3226   egrep -v '^ *\+' conftest.er1 >conftest.err
3227   rm -f conftest.er1
3228   cat conftest.err >&5
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); } >/dev/null; then
3231   if test -s conftest.err; then
3232     ac_cpp_err=$ac_c_preproc_warn_flag
3233   else
3234     ac_cpp_err=
3235   fi
3236 else
3237   ac_cpp_err=yes
3238 fi
3239 if test -z "$ac_cpp_err"; then
3240   # Broken: success on invalid input.
3241 continue
3242 else
3243   echo "$as_me: failed program was:" >&5
3244   cat conftest.$ac_ext >&5
3245   # Passes both tests.
3246 ac_preproc_ok=:
3247 break
3248 fi
3249 rm -f conftest.err conftest.$ac_ext
3250
3251 done
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3255   :
3256 else
3257   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3258 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3259    { (exit 1); exit 1; }; }
3260 fi
3261
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267
3268 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
3269 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3270 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3271 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   cat >conftest.make <<\_ACEOF
3275 all:
3276         @echo 'ac_maketemp="${MAKE}"'
3277 _ACEOF
3278 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3279 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3280 if test -n "$ac_maketemp"; then
3281   eval ac_cv_prog_make_${ac_make}_set=yes
3282 else
3283   eval ac_cv_prog_make_${ac_make}_set=no
3284 fi
3285 rm -f conftest.make
3286 fi
3287 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3288   echo "$as_me:$LINENO: result: yes" >&5
3289 echo "${ECHO_T}yes" >&6
3290   SET_MAKE=
3291 else
3292   echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3294   SET_MAKE="MAKE=${MAKE-make}"
3295 fi
3296
3297 # Find a good install program.  We prefer a C program (faster),
3298 # so one script is as good as another.  But avoid the broken or
3299 # incompatible versions:
3300 # SysV /etc/install, /usr/sbin/install
3301 # SunOS /usr/etc/install
3302 # IRIX /sbin/install
3303 # AIX /bin/install
3304 # AmigaOS /C/install, which installs bootblocks on floppy discs
3305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3308 # ./install, which can be erroneously created by make from ./install.sh.
3309 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3310 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3311 if test -z "$INSTALL"; then
3312 if test "${ac_cv_path_install+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318   IFS=$as_save_IFS
3319   test -z "$as_dir" && as_dir=.
3320   # Account for people who put trailing slashes in PATH elements.
3321 case $as_dir/ in
3322   ./ | .// | /cC/* | \
3323   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3324   /usr/ucb/* ) ;;
3325   *)
3326     # OSF1 and SCO ODT 3.0 have their own names for install.
3327     # Don't use installbsd from OSF since it installs stuff as root
3328     # by default.
3329     for ac_prog in ginstall scoinst install; do
3330       for ac_exec_ext in '' $ac_executable_extensions; do
3331         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3332           if test $ac_prog = install &&
3333             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3334             # AIX install.  It has an incompatible calling convention.
3335             :
3336           elif test $ac_prog = install &&
3337             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3338             # program-specific install script used by HP pwplus--don't use.
3339             :
3340           else
3341             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3342             break 3
3343           fi
3344         fi
3345       done
3346     done
3347     ;;
3348 esac
3349 done
3350
3351
3352 fi
3353   if test "${ac_cv_path_install+set}" = set; then
3354     INSTALL=$ac_cv_path_install
3355   else
3356     # As a last resort, use the slow shell script.  We don't cache a
3357     # path for INSTALL within a source directory, because that will
3358     # break other packages using the cache if that directory is
3359     # removed, or if the path is relative.
3360     INSTALL=$ac_install_sh
3361   fi
3362 fi
3363 echo "$as_me:$LINENO: result: $INSTALL" >&5
3364 echo "${ECHO_T}$INSTALL" >&6
3365
3366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3367 # It thinks the first close brace ends the variable substitution.
3368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3369
3370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3371
3372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3373
3374 if test -n "$ac_tool_prefix"; then
3375   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_RANLIB+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$RANLIB"; then
3383   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399 fi
3400 fi
3401 RANLIB=$ac_cv_prog_RANLIB
3402 if test -n "$RANLIB"; then
3403   echo "$as_me:$LINENO: result: $RANLIB" >&5
3404 echo "${ECHO_T}$RANLIB" >&6
3405 else
3406   echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3408 fi
3409
3410 fi
3411 if test -z "$ac_cv_prog_RANLIB"; then
3412   ac_ct_RANLIB=$RANLIB
3413   # Extract the first word of "ranlib", so it can be a program name with args.
3414 set dummy ranlib; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   if test -n "$ac_ct_RANLIB"; then
3421   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428   for ac_exec_ext in '' $ac_executable_extensions; do
3429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430     ac_cv_prog_ac_ct_RANLIB="ranlib"
3431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435 done
3436
3437   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3438 fi
3439 fi
3440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3441 if test -n "$ac_ct_RANLIB"; then
3442   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3443 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3444 else
3445   echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3447 fi
3448
3449   RANLIB=$ac_ct_RANLIB
3450 else
3451   RANLIB="$ac_cv_prog_RANLIB"
3452 fi
3453
3454 if test -n "$ac_tool_prefix"; then
3455   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}ar; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_prog_AR+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   if test -n "$AR"; then
3463   ac_cv_prog_AR="$AR" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470   for ac_exec_ext in '' $ac_executable_extensions; do
3471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472     ac_cv_prog_AR="${ac_tool_prefix}ar"
3473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477 done
3478
3479 fi
3480 fi
3481 AR=$ac_cv_prog_AR
3482 if test -n "$AR"; then
3483   echo "$as_me:$LINENO: result: $AR" >&5
3484 echo "${ECHO_T}$AR" >&6
3485 else
3486   echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3488 fi
3489
3490 fi
3491 if test -z "$ac_cv_prog_AR"; then
3492   ac_ct_AR=$AR
3493   # Extract the first word of "ar", so it can be a program name with args.
3494 set dummy ar; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   if test -n "$ac_ct_AR"; then
3501   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508   for ac_exec_ext in '' $ac_executable_extensions; do
3509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510     ac_cv_prog_ac_ct_AR="ar"
3511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515 done
3516
3517   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3518 fi
3519 fi
3520 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3521 if test -n "$ac_ct_AR"; then
3522   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3523 echo "${ECHO_T}$ac_ct_AR" >&6
3524 else
3525   echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527 fi
3528
3529   AR=$ac_ct_AR
3530 else
3531   AR="$ac_cv_prog_AR"
3532 fi
3533
3534
3535 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3536 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3537 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   ac_cv_prog_cc_stdc=no
3541 ac_save_CC=$CC
3542 cat >conftest.$ac_ext <<_ACEOF
3543 #line $LINENO "configure"
3544 #include "confdefs.h"
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3553      char **p;
3554      int i;
3555 {
3556   return p[i];
3557 }
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3559 {
3560   char *s;
3561   va_list v;
3562   va_start (v,p);
3563   s = g (p, va_arg (v,int));
3564   va_end (v);
3565   return s;
3566 }
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 int argc;
3572 char **argv;
3573 #ifdef F77_DUMMY_MAIN
3574 #  ifdef __cplusplus
3575      extern "C"
3576 #  endif
3577    int F77_DUMMY_MAIN() { return 1; }
3578 #endif
3579 int
3580 main ()
3581 {
3582 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 # Don't try gcc -ansi; that turns off useful extensions and
3588 # breaks some systems' header files.
3589 # AIX                   -qlanglvl=ansi
3590 # Ultrix and OSF/1      -std1
3591 # HP-UX 10.20 and later -Ae
3592 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3593 # SVR4                  -Xc -D__EXTENSIONS__
3594 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 do
3596   CC="$ac_save_CC $ac_arg"
3597   rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599   (eval $ac_compile) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } &&
3603          { ac_try='test -s conftest.$ac_objext'
3604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605   (eval $ac_try) 2>&5
3606   ac_status=$?
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); }; }; then
3609   ac_cv_prog_cc_stdc=$ac_arg
3610 break
3611 else
3612   echo "$as_me: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3614 fi
3615 rm -f conftest.$ac_objext
3616 done
3617 rm -f conftest.$ac_ext conftest.$ac_objext
3618 CC=$ac_save_CC
3619
3620 fi
3621
3622 case "x$ac_cv_prog_cc_stdc" in
3623   x|xno)
3624     echo "$as_me:$LINENO: result: none needed" >&5
3625 echo "${ECHO_T}none needed" >&6 ;;
3626   *)
3627     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3628 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3629     CC="$CC $ac_cv_prog_cc_stdc" ;;
3630 esac
3631
3632 echo "$as_me:$LINENO: checking for inline" >&5
3633 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3634 if test "${ac_cv_c_inline+set}" = set; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   ac_cv_c_inline=no
3638 for ac_kw in inline __inline__ __inline; do
3639   cat >conftest.$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3641 #include "confdefs.h"
3642 #ifndef __cplusplus
3643 static $ac_kw int static_foo () {return 0; }
3644 $ac_kw int foo () {return 0; }
3645 #endif
3646
3647 _ACEOF
3648 rm -f conftest.$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650   (eval $ac_compile) 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); } &&
3654          { ac_try='test -s conftest.$ac_objext'
3655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656   (eval $ac_try) 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); }; }; then
3660   ac_cv_c_inline=$ac_kw; break
3661 else
3662   echo "$as_me: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3664 fi
3665 rm -f conftest.$ac_objext conftest.$ac_ext
3666 done
3667
3668 fi
3669 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3670 echo "${ECHO_T}$ac_cv_c_inline" >&6
3671 case $ac_cv_c_inline in
3672   inline | yes) ;;
3673   no)
3674 cat >>confdefs.h <<\_ACEOF
3675 #define inline
3676 _ACEOF
3677  ;;
3678   *)  cat >>confdefs.h <<_ACEOF
3679 #define inline $ac_cv_c_inline
3680 _ACEOF
3681  ;;
3682 esac
3683
3684 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3685 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3686 if test "${ac_cv_c_const+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   cat >conftest.$ac_ext <<_ACEOF
3690 #line $LINENO "configure"
3691 #include "confdefs.h"
3692
3693 #ifdef F77_DUMMY_MAIN
3694 #  ifdef __cplusplus
3695      extern "C"
3696 #  endif
3697    int F77_DUMMY_MAIN() { return 1; }
3698 #endif
3699 int
3700 main ()
3701 {
3702 /* FIXME: Include the comments suggested by Paul. */
3703 #ifndef __cplusplus
3704   /* Ultrix mips cc rejects this.  */
3705   typedef int charset[2];
3706   const charset x;
3707   /* SunOS 4.1.1 cc rejects this.  */
3708   char const *const *ccp;
3709   char **p;
3710   /* NEC SVR4.0.2 mips cc rejects this.  */
3711   struct point {int x, y;};
3712   static struct point const zero = {0,0};
3713   /* AIX XL C 1.02.0.0 rejects this.
3714      It does not let you subtract one const X* pointer from another in
3715      an arm of an if-expression whose if-part is not a constant
3716      expression */
3717   const char *g = "string";
3718   ccp = &g + (g ? g-g : 0);
3719   /* HPUX 7.0 cc rejects these. */
3720   ++ccp;
3721   p = (char**) ccp;
3722   ccp = (char const *const *) p;
3723   { /* SCO 3.2v4 cc rejects this.  */
3724     char *t;
3725     char const *s = 0 ? (char *) 0 : (char const *) 0;
3726
3727     *t++ = 0;
3728   }
3729   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3730     int x[] = {25, 17};
3731     const int *foo = &x[0];
3732     ++foo;
3733   }
3734   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3735     typedef const int *iptr;
3736     iptr p = 0;
3737     ++p;
3738   }
3739   { /* AIX XL C 1.02.0.0 rejects this saying
3740        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3741     struct s { int j; const int *ap[3]; };
3742     struct s *b; b->j = 5;
3743   }
3744   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3745     const int foo = 10;
3746   }
3747 #endif
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755   (eval $ac_compile) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); } &&
3759          { ac_try='test -s conftest.$ac_objext'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; }; then
3765   ac_cv_c_const=yes
3766 else
3767   echo "$as_me: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3769 ac_cv_c_const=no
3770 fi
3771 rm -f conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3774 echo "${ECHO_T}$ac_cv_c_const" >&6
3775 if test $ac_cv_c_const = no; then
3776
3777 cat >>confdefs.h <<\_ACEOF
3778 #define const
3779 _ACEOF
3780
3781 fi
3782
3783
3784 # Check whether --enable-largefile or --disable-largefile was given.
3785 if test "${enable_largefile+set}" = set; then
3786   enableval="$enable_largefile"
3787
3788 fi;
3789 if test "$enable_largefile" != no; then
3790
3791   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3792 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3793 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   ac_cv_sys_largefile_CC=no
3797      if test "$GCC" != yes; then
3798        ac_save_CC=$CC
3799        while :; do
3800          # IRIX 6.2 and later do not support large files by default,
3801          # so use the C compiler's -n32 option if that helps.
3802          cat >conftest.$ac_ext <<_ACEOF
3803 #line $LINENO "configure"
3804 #include "confdefs.h"
3805 #include <sys/types.h>
3806  /* Check that off_t can represent 2**63 - 1 correctly.
3807     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3808     since some C++ compilers masquerading as C compilers
3809     incorrectly reject 9223372036854775807.  */
3810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3811   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3812                        && LARGE_OFF_T % 2147483647 == 1)
3813                       ? 1 : -1];
3814 #ifdef F77_DUMMY_MAIN
3815 #  ifdef __cplusplus
3816      extern "C"
3817 #  endif
3818    int F77_DUMMY_MAIN() { return 1; }
3819 #endif
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828          rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830   (eval $ac_compile) 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); } &&
3834          { ac_try='test -s conftest.$ac_objext'
3835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836   (eval $ac_try) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; }; then
3840   break
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3844 fi
3845 rm -f conftest.$ac_objext
3846          CC="$CC -n32"
3847          rm -f conftest.$ac_objext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849   (eval $ac_compile) 2>&5
3850   ac_status=$?
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } &&
3853          { ac_try='test -s conftest.$ac_objext'
3854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855   (eval $ac_try) 2>&5
3856   ac_status=$?
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); }; }; then
3859   ac_cv_sys_largefile_CC=' -n32'; break
3860 else
3861   echo "$as_me: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3863 fi
3864 rm -f conftest.$ac_objext
3865          break
3866        done
3867        CC=$ac_save_CC
3868        rm -f conftest.$ac_ext
3869     fi
3870 fi
3871 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3872 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3873   if test "$ac_cv_sys_largefile_CC" != no; then
3874     CC=$CC$ac_cv_sys_largefile_CC
3875   fi
3876
3877   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3878 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   while :; do
3883   ac_cv_sys_file_offset_bits=no
3884   cat >conftest.$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3886 #include "confdefs.h"
3887 #include <sys/types.h>
3888  /* Check that off_t can represent 2**63 - 1 correctly.
3889     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3890     since some C++ compilers masquerading as C compilers
3891     incorrectly reject 9223372036854775807.  */
3892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3893   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3894                        && LARGE_OFF_T % 2147483647 == 1)
3895                       ? 1 : -1];
3896 #ifdef F77_DUMMY_MAIN
3897 #  ifdef __cplusplus
3898      extern "C"
3899 #  endif
3900    int F77_DUMMY_MAIN() { return 1; }
3901 #endif
3902 int
3903 main ()
3904 {
3905
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 rm -f conftest.$ac_objext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912   (eval $ac_compile) 2>&5
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } &&
3916          { ac_try='test -s conftest.$ac_objext'
3917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918   (eval $ac_try) 2>&5
3919   ac_status=$?
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); }; }; then
3922   break
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3926 fi
3927 rm -f conftest.$ac_objext conftest.$ac_ext
3928   cat >conftest.$ac_ext <<_ACEOF
3929 #line $LINENO "configure"
3930 #include "confdefs.h"
3931 #define _FILE_OFFSET_BITS 64
3932 #include <sys/types.h>
3933  /* Check that off_t can represent 2**63 - 1 correctly.
3934     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3935     since some C++ compilers masquerading as C compilers
3936     incorrectly reject 9223372036854775807.  */
3937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3938   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3939                        && LARGE_OFF_T % 2147483647 == 1)
3940                       ? 1 : -1];
3941 #ifdef F77_DUMMY_MAIN
3942 #  ifdef __cplusplus
3943      extern "C"
3944 #  endif
3945    int F77_DUMMY_MAIN() { return 1; }
3946 #endif
3947 int
3948 main ()
3949 {
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957   (eval $ac_compile) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } &&
3961          { ac_try='test -s conftest.$ac_objext'
3962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963   (eval $ac_try) 2>&5
3964   ac_status=$?
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); }; }; then
3967   ac_cv_sys_file_offset_bits=64; break
3968 else
3969   echo "$as_me: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 fi
3972 rm -f conftest.$ac_objext conftest.$ac_ext
3973   break
3974 done
3975 fi
3976 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3977 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3978 if test "$ac_cv_sys_file_offset_bits" != no; then
3979
3980 cat >>confdefs.h <<_ACEOF
3981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3982 _ACEOF
3983
3984 fi
3985 rm -f conftest*
3986   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3987 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3988 if test "${ac_cv_sys_large_files+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   while :; do
3992   ac_cv_sys_large_files=no
3993   cat >conftest.$ac_ext <<_ACEOF
3994 #line $LINENO "configure"
3995 #include "confdefs.h"
3996 #include <sys/types.h>
3997  /* Check that off_t can represent 2**63 - 1 correctly.
3998     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3999     since some C++ compilers masquerading as C compilers
4000     incorrectly reject 9223372036854775807.  */
4001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4002   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4003                        && LARGE_OFF_T % 2147483647 == 1)
4004                       ? 1 : -1];
4005 #ifdef F77_DUMMY_MAIN
4006 #  ifdef __cplusplus
4007      extern "C"
4008 #  endif
4009    int F77_DUMMY_MAIN() { return 1; }
4010 #endif
4011 int
4012 main ()
4013 {
4014
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021   (eval $ac_compile) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); } &&
4025          { ac_try='test -s conftest.$ac_objext'
4026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027   (eval $ac_try) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; }; then
4031   break
4032 else
4033   echo "$as_me: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4035 fi
4036 rm -f conftest.$ac_objext conftest.$ac_ext
4037   cat >conftest.$ac_ext <<_ACEOF
4038 #line $LINENO "configure"
4039 #include "confdefs.h"
4040 #define _LARGE_FILES 1
4041 #include <sys/types.h>
4042  /* Check that off_t can represent 2**63 - 1 correctly.
4043     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4044     since some C++ compilers masquerading as C compilers
4045     incorrectly reject 9223372036854775807.  */
4046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4047   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4048                        && LARGE_OFF_T % 2147483647 == 1)
4049                       ? 1 : -1];
4050 #ifdef F77_DUMMY_MAIN
4051 #  ifdef __cplusplus
4052      extern "C"
4053 #  endif
4054    int F77_DUMMY_MAIN() { return 1; }
4055 #endif
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066   (eval $ac_compile) 2>&5
4067   ac_status=$?
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); } &&
4070          { ac_try='test -s conftest.$ac_objext'
4071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072   (eval $ac_try) 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; }; then
4076   ac_cv_sys_large_files=1; break
4077 else
4078   echo "$as_me: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4080 fi
4081 rm -f conftest.$ac_objext conftest.$ac_ext
4082   break
4083 done
4084 fi
4085 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4086 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4087 if test "$ac_cv_sys_large_files" != no; then
4088
4089 cat >>confdefs.h <<_ACEOF
4090 #define _LARGE_FILES $ac_cv_sys_large_files
4091 _ACEOF
4092
4093 fi
4094 rm -f conftest*
4095 fi
4096
4097
4098 # Extract the first word of "dbx", so it can be a program name with args.
4099 set dummy dbx; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_DBX+set}" = set; then
4103   echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105   case $DBX in
4106   [\\/]* | ?:[\\/]*)
4107   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4108   ;;
4109   *)
4110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115   for ac_exec_ext in '' $ac_executable_extensions; do
4116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122 done
4123
4124   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4125   ;;
4126 esac
4127 fi
4128 DBX=$ac_cv_path_DBX
4129
4130 if test -n "$DBX"; then
4131   echo "$as_me:$LINENO: result: $DBX" >&5
4132 echo "${ECHO_T}$DBX" >&6
4133 else
4134   echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 fi
4137
4138 # Extract the first word of "gdb", so it can be a program name with args.
4139 set dummy gdb; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_GDB+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   case $GDB in
4146   [\\/]* | ?:[\\/]*)
4147   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4148   ;;
4149   *)
4150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for ac_exec_ext in '' $ac_executable_extensions; do
4156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162 done
4163
4164   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4165   ;;
4166 esac
4167 fi
4168 GDB=$ac_cv_path_GDB
4169
4170 if test -n "$GDB"; then
4171   echo "$as_me:$LINENO: result: $GDB" >&5
4172 echo "${ECHO_T}$GDB" >&6
4173 else
4174   echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4176 fi
4177
4178 # Extract the first word of "sdb", so it can be a program name with args.
4179 set dummy sdb; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_path_SDB+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   case $SDB in
4186   [\\/]* | ?:[\\/]*)
4187   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4188   ;;
4189   *)
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203
4204   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4205   ;;
4206 esac
4207 fi
4208 SDB=$ac_cv_path_SDB
4209
4210 if test -n "$SDB"; then
4211   echo "$as_me:$LINENO: result: $SDB" >&5
4212 echo "${ECHO_T}$SDB" >&6
4213 else
4214   echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218
4219 if test $GDB != no ; then
4220         DEBUGGER=$GDB
4221 elif test $DBX != no ; then
4222         DEBUGGER=$DBX
4223 elif test $SDB != no ; then
4224         DEBUGGER=$SDB
4225 else
4226         DEBUGGER=no
4227 fi
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253 for ac_header in inttypes.h
4254 do
4255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4257   echo "$as_me:$LINENO: checking for $ac_header" >&5
4258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 fi
4262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4264 else
4265   # Is the header compilable?
4266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4269 #line $LINENO "configure"
4270 #include "confdefs.h"
4271 $ac_includes_default
4272 #include <$ac_header>
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276   (eval $ac_compile) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -s conftest.$ac_objext'
4281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282   (eval $ac_try) 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; }; then
4286   ac_header_compiler=yes
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4290 ac_header_compiler=no
4291 fi
4292 rm -f conftest.$ac_objext conftest.$ac_ext
4293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4294 echo "${ECHO_T}$ac_header_compiler" >&6
4295
4296 # Is the header present?
4297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4300 #line $LINENO "configure"
4301 #include "confdefs.h"
4302 #include <$ac_header>
4303 _ACEOF
4304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4306   ac_status=$?
4307   egrep -v '^ *\+' conftest.er1 >conftest.err
4308   rm -f conftest.er1
4309   cat conftest.err >&5
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); } >/dev/null; then
4312   if test -s conftest.err; then
4313     ac_cpp_err=$ac_c_preproc_warn_flag
4314   else
4315     ac_cpp_err=
4316   fi
4317 else
4318   ac_cpp_err=yes
4319 fi
4320 if test -z "$ac_cpp_err"; then
4321   ac_header_preproc=yes
4322 else
4323   echo "$as_me: failed program was:" >&5
4324   cat conftest.$ac_ext >&5
4325   ac_header_preproc=no
4326 fi
4327 rm -f conftest.err conftest.$ac_ext
4328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4329 echo "${ECHO_T}$ac_header_preproc" >&6
4330
4331 # So?  What about this header?
4332 case $ac_header_compiler:$ac_header_preproc in
4333   yes:no )
4334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4338   no:yes )
4339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4341     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4345 esac
4346 echo "$as_me:$LINENO: checking for $ac_header" >&5
4347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   eval "$as_ac_Header=$ac_header_preproc"
4352 fi
4353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4355
4356 fi
4357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4358   cat >>confdefs.h <<_ACEOF
4359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4360 _ACEOF
4361
4362 fi
4363
4364 done
4365
4366 echo "$as_me:$LINENO: checking for uint32_t" >&5
4367 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4368 if test "${ac_cv_type_uint32_t+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   cat >conftest.$ac_ext <<_ACEOF
4372 #line $LINENO "configure"
4373 #include "confdefs.h"
4374 $ac_includes_default
4375 #ifdef F77_DUMMY_MAIN
4376 #  ifdef __cplusplus
4377      extern "C"
4378 #  endif
4379    int F77_DUMMY_MAIN() { return 1; }
4380 #endif
4381 int
4382 main ()
4383 {
4384 if ((uint32_t *) 0)
4385   return 0;
4386 if (sizeof (uint32_t))
4387   return 0;
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394   (eval $ac_compile) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); } &&
4398          { ac_try='test -s conftest.$ac_objext'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; }; then
4404   ac_cv_type_uint32_t=yes
4405 else
4406   echo "$as_me: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4408 ac_cv_type_uint32_t=no
4409 fi
4410 rm -f conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4413 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4414 if test $ac_cv_type_uint32_t = yes; then
4415
4416 cat >>confdefs.h <<\_ACEOF
4417 #define HAVE_C99_INTTYPES 1
4418 _ACEOF
4419
4420 else
4421   echo "$as_me:$LINENO: checking for short" >&5
4422 echo $ECHO_N "checking for short... $ECHO_C" >&6
4423 if test "${ac_cv_type_short+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   cat >conftest.$ac_ext <<_ACEOF
4427 #line $LINENO "configure"
4428 #include "confdefs.h"
4429 $ac_includes_default
4430 #ifdef F77_DUMMY_MAIN
4431 #  ifdef __cplusplus
4432      extern "C"
4433 #  endif
4434    int F77_DUMMY_MAIN() { return 1; }
4435 #endif
4436 int
4437 main ()
4438 {
4439 if ((short *) 0)
4440   return 0;
4441 if (sizeof (short))
4442   return 0;
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449   (eval $ac_compile) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -s conftest.$ac_objext'
4454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455   (eval $ac_try) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); }; }; then
4459   ac_cv_type_short=yes
4460 else
4461   echo "$as_me: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 ac_cv_type_short=no
4464 fi
4465 rm -f conftest.$ac_objext conftest.$ac_ext
4466 fi
4467 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4468 echo "${ECHO_T}$ac_cv_type_short" >&6
4469
4470 echo "$as_me:$LINENO: checking size of short" >&5
4471 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4472 if test "${ac_cv_sizeof_short+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test "$ac_cv_type_short" = yes; then
4476   # The cast to unsigned long works around a bug in the HP C Compiler
4477   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4478   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4479   # This bug is HP SR number 8606223364.
4480   if test "$cross_compiling" = yes; then
4481   # Depending upon the size, compute the lo and hi bounds.
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4484 #include "confdefs.h"
4485 $ac_includes_default
4486 #ifdef F77_DUMMY_MAIN
4487 #  ifdef __cplusplus
4488      extern "C"
4489 #  endif
4490    int F77_DUMMY_MAIN() { return 1; }
4491 #endif
4492 int
4493 main ()
4494 {
4495 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4496 test_array [0] = 0
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 rm -f conftest.$ac_objext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504   (eval $ac_compile) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } &&
4508          { ac_try='test -s conftest.$ac_objext'
4509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510   (eval $ac_try) 2>&5
4511   ac_status=$?
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); }; }; then
4514   ac_lo=0 ac_mid=0
4515   while :; do
4516     cat >conftest.$ac_ext <<_ACEOF
4517 #line $LINENO "configure"
4518 #include "confdefs.h"
4519 $ac_includes_default
4520 #ifdef F77_DUMMY_MAIN
4521 #  ifdef __cplusplus
4522      extern "C"
4523 #  endif
4524    int F77_DUMMY_MAIN() { return 1; }
4525 #endif
4526 int
4527 main ()
4528 {
4529 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4530 test_array [0] = 0
4531
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538   (eval $ac_compile) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } &&
4542          { ac_try='test -s conftest.$ac_objext'
4543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544   (eval $ac_try) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; }; then
4548   ac_hi=$ac_mid; break
4549 else
4550   echo "$as_me: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 ac_lo=`expr $ac_mid + 1`
4553                     if test $ac_lo -le $ac_mid; then
4554                       ac_lo= ac_hi=
4555                       break
4556                     fi
4557                     ac_mid=`expr 2 '*' $ac_mid + 1`
4558 fi
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560   done
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4566 #include "confdefs.h"
4567 $ac_includes_default
4568 #ifdef F77_DUMMY_MAIN
4569 #  ifdef __cplusplus
4570      extern "C"
4571 #  endif
4572    int F77_DUMMY_MAIN() { return 1; }
4573 #endif
4574 int
4575 main ()
4576 {
4577 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4578 test_array [0] = 0
4579
4580   ;
4581   return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586   (eval $ac_compile) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } &&
4590          { ac_try='test -s conftest.$ac_objext'
4591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592   (eval $ac_try) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; }; then
4596   ac_hi=-1 ac_mid=-1
4597   while :; do
4598     cat >conftest.$ac_ext <<_ACEOF
4599 #line $LINENO "configure"
4600 #include "confdefs.h"
4601 $ac_includes_default
4602 #ifdef F77_DUMMY_MAIN
4603 #  ifdef __cplusplus
4604      extern "C"
4605 #  endif
4606    int F77_DUMMY_MAIN() { return 1; }
4607 #endif
4608 int
4609 main ()
4610 {
4611 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4612 test_array [0] = 0
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620   (eval $ac_compile) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } &&
4624          { ac_try='test -s conftest.$ac_objext'
4625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626   (eval $ac_try) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; }; then
4630   ac_lo=$ac_mid; break
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4634 ac_hi=`expr '(' $ac_mid ')' - 1`
4635                        if test $ac_mid -le $ac_hi; then
4636                          ac_lo= ac_hi=
4637                          break
4638                        fi
4639                        ac_mid=`expr 2 '*' $ac_mid`
4640 fi
4641 rm -f conftest.$ac_objext conftest.$ac_ext
4642   done
4643 else
4644   echo "$as_me: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4646 ac_lo= ac_hi=
4647 fi
4648 rm -f conftest.$ac_objext conftest.$ac_ext
4649 fi
4650 rm -f conftest.$ac_objext conftest.$ac_ext
4651 # Binary search between lo and hi bounds.
4652 while test "x$ac_lo" != "x$ac_hi"; do
4653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4654   cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 #include "confdefs.h"
4657 $ac_includes_default
4658 #ifdef F77_DUMMY_MAIN
4659 #  ifdef __cplusplus
4660      extern "C"
4661 #  endif
4662    int F77_DUMMY_MAIN() { return 1; }
4663 #endif
4664 int
4665 main ()
4666 {
4667 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4668 test_array [0] = 0
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676   (eval $ac_compile) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } &&
4680          { ac_try='test -s conftest.$ac_objext'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   ac_hi=$ac_mid
4687 else
4688   echo "$as_me: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4690 ac_lo=`expr '(' $ac_mid ')' + 1`
4691 fi
4692 rm -f conftest.$ac_objext conftest.$ac_ext
4693 done
4694 case $ac_lo in
4695 ?*) ac_cv_sizeof_short=$ac_lo;;
4696 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4697 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4698    { (exit 1); exit 1; }; } ;;
4699 esac
4700 else
4701   if test "$cross_compiling" = yes; then
4702   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4703 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4704    { (exit 1); exit 1; }; }
4705 else
4706   cat >conftest.$ac_ext <<_ACEOF
4707 #line $LINENO "configure"
4708 #include "confdefs.h"
4709 $ac_includes_default
4710 long longval () { return (long) (sizeof (short)); }
4711 unsigned long ulongval () { return (long) (sizeof (short)); }
4712 #include <stdio.h>
4713 #include <stdlib.h>
4714 #ifdef F77_DUMMY_MAIN
4715 #  ifdef __cplusplus
4716      extern "C"
4717 #  endif
4718    int F77_DUMMY_MAIN() { return 1; }
4719 #endif
4720 int
4721 main ()
4722 {
4723
4724   FILE *f = fopen ("conftest.val", "w");
4725   if (! f)
4726     exit (1);
4727   if (((long) (sizeof (short))) < 0)
4728     {
4729       long i = longval ();
4730       if (i != ((long) (sizeof (short))))
4731         exit (1);
4732       fprintf (f, "%ld\n", i);
4733     }
4734   else
4735     {
4736       unsigned long i = ulongval ();
4737       if (i != ((long) (sizeof (short))))
4738         exit (1);
4739       fprintf (f, "%lu\n", i);
4740     }
4741   exit (ferror (f) || fclose (f) != 0);
4742
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest$ac_exeext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749   (eval $ac_link) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; }; then
4758   ac_cv_sizeof_short=`cat conftest.val`
4759 else
4760   echo "$as_me: program exited with status $ac_status" >&5
4761 echo "$as_me: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 ( exit $ac_status )
4764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
4765 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
4766    { (exit 1); exit 1; }; }
4767 fi
4768 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 fi
4771 rm -f conftest.val
4772 else
4773   ac_cv_sizeof_short=0
4774 fi
4775 fi
4776 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4777 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4778 cat >>confdefs.h <<_ACEOF
4779 #define SIZEOF_SHORT $ac_cv_sizeof_short
4780 _ACEOF
4781
4782
4783    echo "$as_me:$LINENO: checking for int" >&5
4784 echo $ECHO_N "checking for int... $ECHO_C" >&6
4785 if test "${ac_cv_type_int+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   cat >conftest.$ac_ext <<_ACEOF
4789 #line $LINENO "configure"
4790 #include "confdefs.h"
4791 $ac_includes_default
4792 #ifdef F77_DUMMY_MAIN
4793 #  ifdef __cplusplus
4794      extern "C"
4795 #  endif
4796    int F77_DUMMY_MAIN() { return 1; }
4797 #endif
4798 int
4799 main ()
4800 {
4801 if ((int *) 0)
4802   return 0;
4803 if (sizeof (int))
4804   return 0;
4805   ;
4806   return 0;
4807 }
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811   (eval $ac_compile) 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } &&
4815          { ac_try='test -s conftest.$ac_objext'
4816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817   (eval $ac_try) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; }; then
4821   ac_cv_type_int=yes
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4825 ac_cv_type_int=no
4826 fi
4827 rm -f conftest.$ac_objext conftest.$ac_ext
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4830 echo "${ECHO_T}$ac_cv_type_int" >&6
4831
4832 echo "$as_me:$LINENO: checking size of int" >&5
4833 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_int+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   if test "$ac_cv_type_int" = yes; then
4838   # The cast to unsigned long works around a bug in the HP C Compiler
4839   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841   # This bug is HP SR number 8606223364.
4842   if test "$cross_compiling" = yes; then
4843   # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 #line $LINENO "configure"
4846 #include "confdefs.h"
4847 $ac_includes_default
4848 #ifdef F77_DUMMY_MAIN
4849 #  ifdef __cplusplus
4850      extern "C"
4851 #  endif
4852    int F77_DUMMY_MAIN() { return 1; }
4853 #endif
4854 int
4855 main ()
4856 {
4857 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4858 test_array [0] = 0
4859
4860   ;
4861   return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866   (eval $ac_compile) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } &&
4870          { ac_try='test -s conftest.$ac_objext'
4871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872   (eval $ac_try) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); }; }; then
4876   ac_lo=0 ac_mid=0
4877   while :; do
4878     cat >conftest.$ac_ext <<_ACEOF
4879 #line $LINENO "configure"
4880 #include "confdefs.h"
4881 $ac_includes_default
4882 #ifdef F77_DUMMY_MAIN
4883 #  ifdef __cplusplus
4884      extern "C"
4885 #  endif
4886    int F77_DUMMY_MAIN() { return 1; }
4887 #endif
4888 int
4889 main ()
4890 {
4891 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4892 test_array [0] = 0
4893
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900   (eval $ac_compile) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } &&
4904          { ac_try='test -s conftest.$ac_objext'
4905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906   (eval $ac_try) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; }; then
4910   ac_hi=$ac_mid; break
4911 else
4912   echo "$as_me: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4914 ac_lo=`expr $ac_mid + 1`
4915                     if test $ac_lo -le $ac_mid; then
4916                       ac_lo= ac_hi=
4917                       break
4918                     fi
4919                     ac_mid=`expr 2 '*' $ac_mid + 1`
4920 fi
4921 rm -f conftest.$ac_objext conftest.$ac_ext
4922   done
4923 else
4924   echo "$as_me: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 cat >conftest.$ac_ext <<_ACEOF
4927 #line $LINENO "configure"
4928 #include "confdefs.h"
4929 $ac_includes_default
4930 #ifdef F77_DUMMY_MAIN
4931 #  ifdef __cplusplus
4932      extern "C"
4933 #  endif
4934    int F77_DUMMY_MAIN() { return 1; }
4935 #endif
4936 int
4937 main ()
4938 {
4939 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4940 test_array [0] = 0
4941
4942   ;
4943   return 0;
4944 }
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948   (eval $ac_compile) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); } &&
4952          { ac_try='test -s conftest.$ac_objext'
4953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954   (eval $ac_try) 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }; }; then
4958   ac_hi=-1 ac_mid=-1
4959   while :; do
4960     cat >conftest.$ac_ext <<_ACEOF
4961 #line $LINENO "configure"
4962 #include "confdefs.h"
4963 $ac_includes_default
4964 #ifdef F77_DUMMY_MAIN
4965 #  ifdef __cplusplus
4966      extern "C"
4967 #  endif
4968    int F77_DUMMY_MAIN() { return 1; }
4969 #endif
4970 int
4971 main ()
4972 {
4973 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4974 test_array [0] = 0
4975
4976   ;
4977   return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982   (eval $ac_compile) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); } &&
4986          { ac_try='test -s conftest.$ac_objext'
4987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988   (eval $ac_try) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   ac_lo=$ac_mid; break
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 ac_hi=`expr '(' $ac_mid ')' - 1`
4997                        if test $ac_mid -le $ac_hi; then
4998                          ac_lo= ac_hi=
4999                          break
5000                        fi
5001                        ac_mid=`expr 2 '*' $ac_mid`
5002 fi
5003 rm -f conftest.$ac_objext conftest.$ac_ext
5004   done
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 ac_lo= ac_hi=
5009 fi
5010 rm -f conftest.$ac_objext conftest.$ac_ext
5011 fi
5012 rm -f conftest.$ac_objext conftest.$ac_ext
5013 # Binary search between lo and hi bounds.
5014 while test "x$ac_lo" != "x$ac_hi"; do
5015   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5016   cat >conftest.$ac_ext <<_ACEOF
5017 #line $LINENO "configure"
5018 #include "confdefs.h"
5019 $ac_includes_default
5020 #ifdef F77_DUMMY_MAIN
5021 #  ifdef __cplusplus
5022      extern "C"
5023 #  endif
5024    int F77_DUMMY_MAIN() { return 1; }
5025 #endif
5026 int
5027 main ()
5028 {
5029 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5030 test_array [0] = 0
5031
5032   ;
5033   return 0;
5034 }
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038   (eval $ac_compile) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } &&
5042          { ac_try='test -s conftest.$ac_objext'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; }; then
5048   ac_hi=$ac_mid
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5052 ac_lo=`expr '(' $ac_mid ')' + 1`
5053 fi
5054 rm -f conftest.$ac_objext conftest.$ac_ext
5055 done
5056 case $ac_lo in
5057 ?*) ac_cv_sizeof_int=$ac_lo;;
5058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5059 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5060    { (exit 1); exit 1; }; } ;;
5061 esac
5062 else
5063   if test "$cross_compiling" = yes; then
5064   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5065 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5066    { (exit 1); exit 1; }; }
5067 else
5068   cat >conftest.$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5070 #include "confdefs.h"
5071 $ac_includes_default
5072 long longval () { return (long) (sizeof (int)); }
5073 unsigned long ulongval () { return (long) (sizeof (int)); }
5074 #include <stdio.h>
5075 #include <stdlib.h>
5076 #ifdef F77_DUMMY_MAIN
5077 #  ifdef __cplusplus
5078      extern "C"
5079 #  endif
5080    int F77_DUMMY_MAIN() { return 1; }
5081 #endif
5082 int
5083 main ()
5084 {
5085
5086   FILE *f = fopen ("conftest.val", "w");
5087   if (! f)
5088     exit (1);
5089   if (((long) (sizeof (int))) < 0)
5090     {
5091       long i = longval ();
5092       if (i != ((long) (sizeof (int))))
5093         exit (1);
5094       fprintf (f, "%ld\n", i);
5095     }
5096   else
5097     {
5098       unsigned long i = ulongval ();
5099       if (i != ((long) (sizeof (int))))
5100         exit (1);
5101       fprintf (f, "%lu\n", i);
5102     }
5103   exit (ferror (f) || fclose (f) != 0);
5104
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111   (eval $ac_link) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116   (eval $ac_try) 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); }; }; then
5120   ac_cv_sizeof_int=`cat conftest.val`
5121 else
5122   echo "$as_me: program exited with status $ac_status" >&5
5123 echo "$as_me: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 ( exit $ac_status )
5126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5127 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5128    { (exit 1); exit 1; }; }
5129 fi
5130 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5131 fi
5132 fi
5133 rm -f conftest.val
5134 else
5135   ac_cv_sizeof_int=0
5136 fi
5137 fi
5138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5139 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5140 cat >>confdefs.h <<_ACEOF
5141 #define SIZEOF_INT $ac_cv_sizeof_int
5142 _ACEOF
5143
5144
5145    echo "$as_me:$LINENO: checking for long" >&5
5146 echo $ECHO_N "checking for long... $ECHO_C" >&6
5147 if test "${ac_cv_type_long+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   cat >conftest.$ac_ext <<_ACEOF
5151 #line $LINENO "configure"
5152 #include "confdefs.h"
5153 $ac_includes_default
5154 #ifdef F77_DUMMY_MAIN
5155 #  ifdef __cplusplus
5156      extern "C"
5157 #  endif
5158    int F77_DUMMY_MAIN() { return 1; }
5159 #endif
5160 int
5161 main ()
5162 {
5163 if ((long *) 0)
5164   return 0;
5165 if (sizeof (long))
5166   return 0;
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173   (eval $ac_compile) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } &&
5177          { ac_try='test -s conftest.$ac_objext'
5178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179   (eval $ac_try) 2>&5
5180   ac_status=$?
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); }; }; then
5183   ac_cv_type_long=yes
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5187 ac_cv_type_long=no
5188 fi
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5190 fi
5191 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5192 echo "${ECHO_T}$ac_cv_type_long" >&6
5193
5194 echo "$as_me:$LINENO: checking size of long" >&5
5195 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5196 if test "${ac_cv_sizeof_long+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   if test "$ac_cv_type_long" = yes; then
5200   # The cast to unsigned long works around a bug in the HP C Compiler
5201   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5202   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5203   # This bug is HP SR number 8606223364.
5204   if test "$cross_compiling" = yes; then
5205   # Depending upon the size, compute the lo and hi bounds.
5206 cat >conftest.$ac_ext <<_ACEOF
5207 #line $LINENO "configure"
5208 #include "confdefs.h"
5209 $ac_includes_default
5210 #ifdef F77_DUMMY_MAIN
5211 #  ifdef __cplusplus
5212      extern "C"
5213 #  endif
5214    int F77_DUMMY_MAIN() { return 1; }
5215 #endif
5216 int
5217 main ()
5218 {
5219 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5220 test_array [0] = 0
5221
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228   (eval $ac_compile) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } &&
5232          { ac_try='test -s conftest.$ac_objext'
5233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234   (eval $ac_try) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; }; then
5238   ac_lo=0 ac_mid=0
5239   while :; do
5240     cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 #include "confdefs.h"
5243 $ac_includes_default
5244 #ifdef F77_DUMMY_MAIN
5245 #  ifdef __cplusplus
5246      extern "C"
5247 #  endif
5248    int F77_DUMMY_MAIN() { return 1; }
5249 #endif
5250 int
5251 main ()
5252 {
5253 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5254 test_array [0] = 0
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } &&
5266          { ac_try='test -s conftest.$ac_objext'
5267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268   (eval $ac_try) 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); }; }; then
5272   ac_hi=$ac_mid; break
5273 else
5274   echo "$as_me: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5276 ac_lo=`expr $ac_mid + 1`
5277                     if test $ac_lo -le $ac_mid; then
5278                       ac_lo= ac_hi=
5279                       break
5280                     fi
5281                     ac_mid=`expr 2 '*' $ac_mid + 1`
5282 fi
5283 rm -f conftest.$ac_objext conftest.$ac_ext
5284   done
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 #include "confdefs.h"
5291 $ac_includes_default
5292 #ifdef F77_DUMMY_MAIN
5293 #  ifdef __cplusplus
5294      extern "C"
5295 #  endif
5296    int F77_DUMMY_MAIN() { return 1; }
5297 #endif
5298 int
5299 main ()
5300 {
5301 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5302 test_array [0] = 0
5303
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310   (eval $ac_compile) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } &&
5314          { ac_try='test -s conftest.$ac_objext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_hi=-1 ac_mid=-1
5321   while :; do
5322     cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 #include "confdefs.h"
5325 $ac_includes_default
5326 #ifdef F77_DUMMY_MAIN
5327 #  ifdef __cplusplus
5328      extern "C"
5329 #  endif
5330    int F77_DUMMY_MAIN() { return 1; }
5331 #endif
5332 int
5333 main ()
5334 {
5335 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5336 test_array [0] = 0
5337
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344   (eval $ac_compile) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -s conftest.$ac_objext'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   ac_lo=$ac_mid; break
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5358 ac_hi=`expr '(' $ac_mid ')' - 1`
5359                        if test $ac_mid -le $ac_hi; then
5360                          ac_lo= ac_hi=
5361                          break
5362                        fi
5363                        ac_mid=`expr 2 '*' $ac_mid`
5364 fi
5365 rm -f conftest.$ac_objext conftest.$ac_ext
5366   done
5367 else
5368   echo "$as_me: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5370 ac_lo= ac_hi=
5371 fi
5372 rm -f conftest.$ac_objext conftest.$ac_ext
5373 fi
5374 rm -f conftest.$ac_objext conftest.$ac_ext
5375 # Binary search between lo and hi bounds.
5376 while test "x$ac_lo" != "x$ac_hi"; do
5377   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5378   cat >conftest.$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 #include "confdefs.h"
5381 $ac_includes_default
5382 #ifdef F77_DUMMY_MAIN
5383 #  ifdef __cplusplus
5384      extern "C"
5385 #  endif
5386    int F77_DUMMY_MAIN() { return 1; }
5387 #endif
5388 int
5389 main ()
5390 {
5391 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5392 test_array [0] = 0
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400   (eval $ac_compile) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } &&
5404          { ac_try='test -s conftest.$ac_objext'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }; then
5410   ac_hi=$ac_mid
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5414 ac_lo=`expr '(' $ac_mid ')' + 1`
5415 fi
5416 rm -f conftest.$ac_objext conftest.$ac_ext
5417 done
5418 case $ac_lo in
5419 ?*) ac_cv_sizeof_long=$ac_lo;;
5420 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5421 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5422    { (exit 1); exit 1; }; } ;;
5423 esac
5424 else
5425   if test "$cross_compiling" = yes; then
5426   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5427 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5428    { (exit 1); exit 1; }; }
5429 else
5430   cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5432 #include "confdefs.h"
5433 $ac_includes_default
5434 long longval () { return (long) (sizeof (long)); }
5435 unsigned long ulongval () { return (long) (sizeof (long)); }
5436 #include <stdio.h>
5437 #include <stdlib.h>
5438 #ifdef F77_DUMMY_MAIN
5439 #  ifdef __cplusplus
5440      extern "C"
5441 #  endif
5442    int F77_DUMMY_MAIN() { return 1; }
5443 #endif
5444 int
5445 main ()
5446 {
5447
5448   FILE *f = fopen ("conftest.val", "w");
5449   if (! f)
5450     exit (1);
5451   if (((long) (sizeof (long))) < 0)
5452     {
5453       long i = longval ();
5454       if (i != ((long) (sizeof (long))))
5455         exit (1);
5456       fprintf (f, "%ld\n", i);
5457     }
5458   else
5459     {
5460       unsigned long i = ulongval ();
5461       if (i != ((long) (sizeof (long))))
5462         exit (1);
5463       fprintf (f, "%lu\n", i);
5464     }
5465   exit (ferror (f) || fclose (f) != 0);
5466
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473   (eval $ac_link) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478   (eval $ac_try) 2>&5
5479   ac_status=$?
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); }; }; then
5482   ac_cv_sizeof_long=`cat conftest.val`
5483 else
5484   echo "$as_me: program exited with status $ac_status" >&5
5485 echo "$as_me: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5487 ( exit $ac_status )
5488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5489 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5490    { (exit 1); exit 1; }; }
5491 fi
5492 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5493 fi
5494 fi
5495 rm -f conftest.val
5496 else
5497   ac_cv_sizeof_long=0
5498 fi
5499 fi
5500 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5501 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5502 cat >>confdefs.h <<_ACEOF
5503 #define SIZEOF_LONG $ac_cv_sizeof_long
5504 _ACEOF
5505
5506
5507    echo "$as_me:$LINENO: checking for long long" >&5
5508 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5509 if test "${ac_cv_type_long_long+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5514 #include "confdefs.h"
5515 $ac_includes_default
5516 #ifdef F77_DUMMY_MAIN
5517 #  ifdef __cplusplus
5518      extern "C"
5519 #  endif
5520    int F77_DUMMY_MAIN() { return 1; }
5521 #endif
5522 int
5523 main ()
5524 {
5525 if ((long long *) 0)
5526   return 0;
5527 if (sizeof (long long))
5528   return 0;
5529   ;
5530   return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535   (eval $ac_compile) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -s conftest.$ac_objext'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; }; then
5545   ac_cv_type_long_long=yes
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 cat conftest.$ac_ext >&5
5549 ac_cv_type_long_long=no
5550 fi
5551 rm -f conftest.$ac_objext conftest.$ac_ext
5552 fi
5553 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5554 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5555
5556 echo "$as_me:$LINENO: checking size of long long" >&5
5557 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5558 if test "${ac_cv_sizeof_long_long+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   if test "$ac_cv_type_long_long" = yes; then
5562   # The cast to unsigned long works around a bug in the HP C Compiler
5563   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5564   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5565   # This bug is HP SR number 8606223364.
5566   if test "$cross_compiling" = yes; then
5567   # Depending upon the size, compute the lo and hi bounds.
5568 cat >conftest.$ac_ext <<_ACEOF
5569 #line $LINENO "configure"
5570 #include "confdefs.h"
5571 $ac_includes_default
5572 #ifdef F77_DUMMY_MAIN
5573 #  ifdef __cplusplus
5574      extern "C"
5575 #  endif
5576    int F77_DUMMY_MAIN() { return 1; }
5577 #endif
5578 int
5579 main ()
5580 {
5581 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5582 test_array [0] = 0
5583
5584   ;
5585   return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590   (eval $ac_compile) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } &&
5594          { ac_try='test -s conftest.$ac_objext'
5595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596   (eval $ac_try) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; }; then
5600   ac_lo=0 ac_mid=0
5601   while :; do
5602     cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 #include "confdefs.h"
5605 $ac_includes_default
5606 #ifdef F77_DUMMY_MAIN
5607 #  ifdef __cplusplus
5608      extern "C"
5609 #  endif
5610    int F77_DUMMY_MAIN() { return 1; }
5611 #endif
5612 int
5613 main ()
5614 {
5615 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5616 test_array [0] = 0
5617
5618   ;
5619   return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624   (eval $ac_compile) 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); } &&
5628          { ac_try='test -s conftest.$ac_objext'
5629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630   (eval $ac_try) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); }; }; then
5634   ac_hi=$ac_mid; break
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 ac_lo=`expr $ac_mid + 1`
5639                     if test $ac_lo -le $ac_mid; then
5640                       ac_lo= ac_hi=
5641                       break
5642                     fi
5643                     ac_mid=`expr 2 '*' $ac_mid + 1`
5644 fi
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5646   done
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 #include "confdefs.h"
5653 $ac_includes_default
5654 #ifdef F77_DUMMY_MAIN
5655 #  ifdef __cplusplus
5656      extern "C"
5657 #  endif
5658    int F77_DUMMY_MAIN() { return 1; }
5659 #endif
5660 int
5661 main ()
5662 {
5663 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5664 test_array [0] = 0
5665
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672   (eval $ac_compile) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } &&
5676          { ac_try='test -s conftest.$ac_objext'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; }; then
5682   ac_hi=-1 ac_mid=-1
5683   while :; do
5684     cat >conftest.$ac_ext <<_ACEOF
5685 #line $LINENO "configure"
5686 #include "confdefs.h"
5687 $ac_includes_default
5688 #ifdef F77_DUMMY_MAIN
5689 #  ifdef __cplusplus
5690      extern "C"
5691 #  endif
5692    int F77_DUMMY_MAIN() { return 1; }
5693 #endif
5694 int
5695 main ()
5696 {
5697 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5698 test_array [0] = 0
5699
5700   ;
5701   return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706   (eval $ac_compile) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -s conftest.$ac_objext'
5711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712   (eval $ac_try) 2>&5
5713   ac_status=$?
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); }; }; then
5716   ac_lo=$ac_mid; break
5717 else
5718   echo "$as_me: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5720 ac_hi=`expr '(' $ac_mid ')' - 1`
5721                        if test $ac_mid -le $ac_hi; then
5722                          ac_lo= ac_hi=
5723                          break
5724                        fi
5725                        ac_mid=`expr 2 '*' $ac_mid`
5726 fi
5727 rm -f conftest.$ac_objext conftest.$ac_ext
5728   done
5729 else
5730   echo "$as_me: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 ac_lo= ac_hi=
5733 fi
5734 rm -f conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 rm -f conftest.$ac_objext conftest.$ac_ext
5737 # Binary search between lo and hi bounds.
5738 while test "x$ac_lo" != "x$ac_hi"; do
5739   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5740   cat >conftest.$ac_ext <<_ACEOF
5741 #line $LINENO "configure"
5742 #include "confdefs.h"
5743 $ac_includes_default
5744 #ifdef F77_DUMMY_MAIN
5745 #  ifdef __cplusplus
5746      extern "C"
5747 #  endif
5748    int F77_DUMMY_MAIN() { return 1; }
5749 #endif
5750 int
5751 main ()
5752 {
5753 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5754 test_array [0] = 0
5755
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762   (eval $ac_compile) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } &&
5766          { ac_try='test -s conftest.$ac_objext'
5767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768   (eval $ac_try) 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; }; then
5772   ac_hi=$ac_mid
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5776 ac_lo=`expr '(' $ac_mid ')' + 1`
5777 fi
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5779 done
5780 case $ac_lo in
5781 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5782 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
5783 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
5784    { (exit 1); exit 1; }; } ;;
5785 esac
5786 else
5787   if test "$cross_compiling" = yes; then
5788   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5789 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5790    { (exit 1); exit 1; }; }
5791 else
5792   cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5795 $ac_includes_default
5796 long longval () { return (long) (sizeof (long long)); }
5797 unsigned long ulongval () { return (long) (sizeof (long long)); }
5798 #include <stdio.h>
5799 #include <stdlib.h>
5800 #ifdef F77_DUMMY_MAIN
5801 #  ifdef __cplusplus
5802      extern "C"
5803 #  endif
5804    int F77_DUMMY_MAIN() { return 1; }
5805 #endif
5806 int
5807 main ()
5808 {
5809
5810   FILE *f = fopen ("conftest.val", "w");
5811   if (! f)
5812     exit (1);
5813   if (((long) (sizeof (long long))) < 0)
5814     {
5815       long i = longval ();
5816       if (i != ((long) (sizeof (long long))))
5817         exit (1);
5818       fprintf (f, "%ld\n", i);
5819     }
5820   else
5821     {
5822       unsigned long i = ulongval ();
5823       if (i != ((long) (sizeof (long long))))
5824         exit (1);
5825       fprintf (f, "%lu\n", i);
5826     }
5827   exit (ferror (f) || fclose (f) != 0);
5828
5829   ;
5830   return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest$ac_exeext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5835   (eval $ac_link) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; }; then
5844   ac_cv_sizeof_long_long=`cat conftest.val`
5845 else
5846   echo "$as_me: program exited with status $ac_status" >&5
5847 echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 ( exit $ac_status )
5850 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
5851 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
5852    { (exit 1); exit 1; }; }
5853 fi
5854 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5855 fi
5856 fi
5857 rm -f conftest.val
5858 else
5859   ac_cv_sizeof_long_long=0
5860 fi
5861 fi
5862 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5863 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5866 _ACEOF
5867
5868
5869 fi
5870
5871
5872
5873
5874
5875 ac_aux_path_sendmail=/usr/sbin:/usr/lib
5876 # Extract the first word of "sendmail", so it can be a program name with args.
5877 set dummy sendmail; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_path_SENDMAIL+set}" = set; then
5881   echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883   case $SENDMAIL in
5884   [\\/]* | ?:[\\/]*)
5885   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5886   ;;
5887   *)
5888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH:$ac_aux_path_sendmail
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893   for ac_exec_ext in '' $ac_executable_extensions; do
5894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900 done
5901
5902   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
5903   ;;
5904 esac
5905 fi
5906 SENDMAIL=$ac_cv_path_SENDMAIL
5907
5908 if test -n "$SENDMAIL"; then
5909   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
5910 echo "${ECHO_T}$SENDMAIL" >&6
5911 else
5912   echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6
5914 fi
5915
5916
5917 cat >>confdefs.h <<_ACEOF
5918 #define SENDMAIL "$ac_cv_path_SENDMAIL"
5919 _ACEOF
5920
5921
5922 OPS='$(srcdir)/OPS'
5923 if test -f $srcdir/EXPORTABLE ; then
5924         SUBVERSION="us"
5925 else
5926         SUBVERSION="i"
5927
5928         # Check whether --enable-gpgme or --disable-gpgme was given.
5929 if test "${enable_gpgme+set}" = set; then
5930   enableval="$enable_gpgme"
5931          if test x$enableval = xyes; then
5932                         have_gpgme=yes
5933                 fi
5934
5935 fi;
5936
5937 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
5938 if test "${with_gpgme_prefix+set}" = set; then
5939   withval="$with_gpgme_prefix"
5940   gpgme_config_prefix="$withval"
5941 else
5942   gpgme_config_prefix=""
5943 fi;
5944
5945         if test x$have_gpgme = xyes; then
5946                 if test x$gpgme_config_prefix != x; then
5947                         GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
5948                 else
5949                         # Extract the first word of "gpgme-config", so it can be a program name with args.
5950 set dummy gpgme-config; ac_word=$2
5951 echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   case $GPGME_CONFIG in
5957   [\\/]* | ?:[\\/]*)
5958   ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
5959   ;;
5960   *)
5961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966   for ac_exec_ext in '' $ac_executable_extensions; do
5967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968     ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973 done
5974
5975   test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
5976   ;;
5977 esac
5978 fi
5979 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
5980
5981 if test -n "$GPGME_CONFIG"; then
5982   echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
5983 echo "${ECHO_T}$GPGME_CONFIG" >&6
5984 else
5985   echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5987 fi
5988
5989                 fi
5990                 if test "x$GPGME_CONFIG" = "xno"; then
5991                         { { echo "$as_me:$LINENO: error: GPGME not found" >&5
5992 echo "$as_me: error: GPGME not found" >&2;}
5993    { (exit 1); exit 1; }; }
5994                 else
5995                         LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
5996                         LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
5997                         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
5998
5999 cat >>confdefs.h <<\_ACEOF
6000 #define CRYPT_BACKEND_GPGME 1
6001 _ACEOF
6002
6003                 fi
6004         fi
6005
6006
6007
6008         # Check whether --enable-pgp or --disable-pgp was given.
6009 if test "${enable_pgp+set}" = set; then
6010   enableval="$enable_pgp"
6011          if test x$enableval = xno ; then
6012                         have_pgp=no
6013                 fi
6014
6015 fi;
6016
6017         if test x$have_pgp != xno ; then
6018
6019 cat >>confdefs.h <<\_ACEOF
6020 #define CRYPT_BACKEND_CLASSIC_PGP 1
6021 _ACEOF
6022
6023                 PGPAUX_TARGET="pgpring pgpewrap"
6024                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
6025         fi
6026
6027         # Check whether --enable-smime or --disable-smime was given.
6028 if test "${enable_smime+set}" = set; then
6029   enableval="$enable_smime"
6030         if test x$enableval = xno ; then
6031                         have_smime=no
6032                 fi
6033
6034 fi;
6035
6036         if test x$have_smime != xno ; then
6037
6038 cat >>confdefs.h <<\_ACEOF
6039 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6040 _ACEOF
6041
6042                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6043                 SMIMEAUX_TARGET="smime_keys"
6044         fi
6045
6046
6047 # Check whether --with-mixmaster or --without-mixmaster was given.
6048 if test "${with_mixmaster+set}" = set; then
6049   withval="$with_mixmaster"
6050   if test -x "$withval" ; then
6051                         MIXMASTER="$withval"
6052                  else
6053                         MIXMASTER="mixmaster"
6054                  fi
6055                  OPS="$OPS \$(srcdir)/OPS.MIX"
6056                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6057
6058 cat >>confdefs.h <<_ACEOF
6059 #define MIXMASTER "$MIXMASTER"
6060 _ACEOF
6061
6062
6063 fi;
6064
6065 fi
6066 # We now require all OPS
6067 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6068
6069
6070
6071
6072
6073
6074
6075 cat >>confdefs.h <<_ACEOF
6076 #define SUBVERSION "$SUBVERSION"
6077 _ACEOF
6078
6079
6080
6081 # Extract the first word of "ispell", so it can be a program name with args.
6082 set dummy ispell; ac_word=$2
6083 echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085 if test "${ac_cv_path_ISPELL+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   case $ISPELL in
6089   [\\/]* | ?:[\\/]*)
6090   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
6091   ;;
6092   *)
6093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098   for ac_exec_ext in '' $ac_executable_extensions; do
6099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
6101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105 done
6106
6107   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
6108   ;;
6109 esac
6110 fi
6111 ISPELL=$ac_cv_path_ISPELL
6112
6113 if test -n "$ISPELL"; then
6114   echo "$as_me:$LINENO: result: $ISPELL" >&5
6115 echo "${ECHO_T}$ISPELL" >&6
6116 else
6117   echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6
6119 fi
6120
6121 if test $ISPELL != no; then
6122
6123 cat >>confdefs.h <<_ACEOF
6124 #define ISPELL "$ISPELL"
6125 _ACEOF
6126
6127 fi
6128
6129
6130 # Check whether --with-slang or --without-slang was given.
6131 if test "${with_slang+set}" = set; then
6132   withval="$with_slang"
6133   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
6134 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
6135 if test "${mutt_cv_bsdish+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   if test "$cross_compiling" = yes; then
6139   mutt_cv_bsdish=no
6140 else
6141   cat >conftest.$ac_ext <<_ACEOF
6142 #line $LINENO "configure"
6143 #include "confdefs.h"
6144 #include <sys/param.h>
6145
6146 main ()
6147 {
6148 #ifdef BSD
6149         exit (0);
6150 #else
6151         exit (1);
6152 #endif
6153 }
6154 _ACEOF
6155 rm -f conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157   (eval $ac_link) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162   (eval $ac_try) 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); }; }; then
6166   mutt_cv_bsdish=yes
6167 else
6168   echo "$as_me: program exited with status $ac_status" >&5
6169 echo "$as_me: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6171 ( exit $ac_status )
6172 mutt_cv_bsdish=no
6173 fi
6174 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6175 fi
6176 fi
6177 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
6178 echo "${ECHO_T}$mutt_cv_bsdish" >&6
6179
6180         echo "$as_me:$LINENO: checking for S-Lang" >&5
6181 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
6182         if test $withval = yes; then
6183                 if test -d $srcdir/../slang; then
6184                         mutt_cv_slang=$srcdir/../slang/src
6185                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
6186                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6187                 else
6188                         if test -d $mutt_cv_prefix/include/slang; then
6189                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
6190                         elif test -d /usr/include/slang; then
6191                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
6192                         fi
6193                         mutt_cv_slang=yes
6194                 fi
6195         else
6196                                 if test -f $withval/src/slang.h; then
6197                         mutt_cv_slang=$withval/src
6198                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
6199                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6200                 else
6201                                                 mutt_cv_slang=$withval
6202                         if test -d $withval/include/slang; then
6203                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
6204                         elif test -d $withval/include; then
6205                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6206                         fi
6207                         LDFLAGS="$LDFLAGS -L${withval}/lib"
6208                 fi
6209         fi
6210         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
6211 echo "${ECHO_T}$mutt_cv_slang" >&6
6212         if test $mutt_cv_bsdish = yes; then
6213
6214 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
6215 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
6216 if test "${ac_cv_lib_termlib_main+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   ac_check_lib_save_LIBS=$LIBS
6220 LIBS="-ltermlib  $LIBS"
6221 cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6223 #include "confdefs.h"
6224
6225
6226 #ifdef F77_DUMMY_MAIN
6227 #  ifdef __cplusplus
6228      extern "C"
6229 #  endif
6230    int F77_DUMMY_MAIN() { return 1; }
6231 #endif
6232 int
6233 main ()
6234 {
6235 main ();
6236   ;
6237   return 0;
6238 }
6239 _ACEOF
6240 rm -f conftest.$ac_objext conftest$ac_exeext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6242   (eval $ac_link) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } &&
6246          { ac_try='test -s conftest$ac_exeext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   ac_cv_lib_termlib_main=yes
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6256 ac_cv_lib_termlib_main=no
6257 fi
6258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6259 LIBS=$ac_check_lib_save_LIBS
6260 fi
6261 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
6262 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
6263 if test $ac_cv_lib_termlib_main = yes; then
6264   cat >>confdefs.h <<_ACEOF
6265 #define HAVE_LIBTERMLIB 1
6266 _ACEOF
6267
6268   LIBS="-ltermlib $LIBS"
6269
6270 fi
6271
6272         fi
6273
6274 cat >>confdefs.h <<\_ACEOF
6275 #define USE_SLANG_CURSES 1
6276 _ACEOF
6277
6278
6279 cat >>confdefs.h <<\_ACEOF
6280 #define HAVE_COLOR 1
6281 _ACEOF
6282
6283         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6284
6285
6286         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
6287 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
6288 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291   ac_check_lib_save_LIBS=$LIBS
6292 LIBS="-lslang -lm $LIBS"
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 #include "confdefs.h"
6296
6297 /* Override any gcc2 internal prototype to avoid an error.  */
6298 #ifdef __cplusplus
6299 extern "C"
6300 #endif
6301 /* We use char because int might match the return type of a gcc2
6302    builtin and then its argument prototype would still apply.  */
6303 char SLtt_get_terminfo ();
6304 #ifdef F77_DUMMY_MAIN
6305 #  ifdef __cplusplus
6306      extern "C"
6307 #  endif
6308    int F77_DUMMY_MAIN() { return 1; }
6309 #endif
6310 int
6311 main ()
6312 {
6313 SLtt_get_terminfo ();
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6320   (eval $ac_link) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -s conftest$ac_exeext'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   ac_cv_lib_slang_SLtt_get_terminfo=yes
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6334 ac_cv_lib_slang_SLtt_get_terminfo=no
6335 fi
6336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6337 LIBS=$ac_check_lib_save_LIBS
6338 fi
6339 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
6340 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
6341 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
6342   MUTTLIBS="$MUTTLIBS -lslang -lm"
6343 else
6344   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
6345 echo "$as_me: error: unable to compile.  check config.log" >&2;}
6346    { (exit 1); exit 1; }; }
6347 fi
6348
6349
6350
6351 else
6352   mutt_cv_curses=/usr
6353
6354 # Check whether --with-curses or --without-curses was given.
6355 if test "${with_curses+set}" = set; then
6356   withval="$with_curses"
6357   if test $withval != yes; then
6358                         mutt_cv_curses=$withval
6359                 fi
6360                 if test x$mutt_cv_curses != x/usr; then
6361                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
6362                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
6363                 fi
6364 fi;
6365
6366         echo "$as_me:$LINENO: checking for initscr" >&5
6367 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6368 if test "${ac_cv_func_initscr+set}" = set; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   cat >conftest.$ac_ext <<_ACEOF
6372 #line $LINENO "configure"
6373 #include "confdefs.h"
6374 /* System header to define __stub macros and hopefully few prototypes,
6375     which can conflict with char initscr (); below.  */
6376 #include <assert.h>
6377 /* Override any gcc2 internal prototype to avoid an error.  */
6378 #ifdef __cplusplus
6379 extern "C"
6380 #endif
6381 /* We use char because int might match the return type of a gcc2
6382    builtin and then its argument prototype would still apply.  */
6383 char initscr ();
6384 char (*f) ();
6385
6386 #ifdef F77_DUMMY_MAIN
6387 #  ifdef __cplusplus
6388      extern "C"
6389 #  endif
6390    int F77_DUMMY_MAIN() { return 1; }
6391 #endif
6392 int
6393 main ()
6394 {
6395 /* The GNU C library defines this for functions which it implements
6396     to always fail with ENOSYS.  Some functions are actually named
6397     something starting with __ and the normal name is an alias.  */
6398 #if defined (__stub_initscr) || defined (__stub___initscr)
6399 choke me
6400 #else
6401 f = initscr;
6402 #endif
6403
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410   (eval $ac_link) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } &&
6414          { ac_try='test -s conftest$ac_exeext'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; }; then
6420   ac_cv_func_initscr=yes
6421 else
6422   echo "$as_me: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 ac_cv_func_initscr=no
6425 fi
6426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6427 fi
6428 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
6429 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6430 if test $ac_cv_func_initscr = yes; then
6431   :
6432 else
6433
6434         cf_ncurses="ncurses"
6435         for lib in ncurses ncursesw
6436         do
6437                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
6438 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
6439 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   ac_check_lib_save_LIBS=$LIBS
6444 LIBS="-l$lib  $LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6448
6449 /* Override any gcc2 internal prototype to avoid an error.  */
6450 #ifdef __cplusplus
6451 extern "C"
6452 #endif
6453 /* We use char because int might match the return type of a gcc2
6454    builtin and then its argument prototype would still apply.  */
6455 char waddnwstr ();
6456 #ifdef F77_DUMMY_MAIN
6457 #  ifdef __cplusplus
6458      extern "C"
6459 #  endif
6460    int F77_DUMMY_MAIN() { return 1; }
6461 #endif
6462 int
6463 main ()
6464 {
6465 waddnwstr ();
6466   ;
6467   return 0;
6468 }
6469 _ACEOF
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472   (eval $ac_link) 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); } &&
6476          { ac_try='test -s conftest$ac_exeext'
6477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478   (eval $ac_try) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; }; then
6482   eval "$as_ac_Lib=yes"
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 eval "$as_ac_Lib=no"
6487 fi
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_check_lib_save_LIBS
6490 fi
6491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6492 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6493 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6494   cf_ncurses="$lib"; break
6495 fi
6496
6497         done
6498         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
6499 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
6500 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   ac_check_lib_save_LIBS=$LIBS
6505 LIBS="-l$cf_ncurses  $LIBS"
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 #include "confdefs.h"
6509
6510 /* Override any gcc2 internal prototype to avoid an error.  */
6511 #ifdef __cplusplus
6512 extern "C"
6513 #endif
6514 /* We use char because int might match the return type of a gcc2
6515    builtin and then its argument prototype would still apply.  */
6516 char initscr ();
6517 #ifdef F77_DUMMY_MAIN
6518 #  ifdef __cplusplus
6519      extern "C"
6520 #  endif
6521    int F77_DUMMY_MAIN() { return 1; }
6522 #endif
6523 int
6524 main ()
6525 {
6526 initscr ();
6527   ;
6528   return 0;
6529 }
6530 _ACEOF
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6533   (eval $ac_link) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); } &&
6537          { ac_try='test -s conftest$ac_exeext'
6538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539   (eval $ac_try) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; }; then
6543   eval "$as_ac_Lib=yes"
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6547 eval "$as_ac_Lib=no"
6548 fi
6549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6550 LIBS=$ac_check_lib_save_LIBS
6551 fi
6552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6553 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6554 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6555   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
6556                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
6557                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
6558                 fi
6559
6560                 if test "$cf_ncurses" = ncursesw; then
6561
6562 for ac_header in ncursesw/ncurses.h
6563 do
6564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566   echo "$as_me:$LINENO: checking for $ac_header" >&5
6567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 fi
6571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6573 else
6574   # Is the header compilable?
6575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6577 cat >conftest.$ac_ext <<_ACEOF
6578 #line $LINENO "configure"
6579 #include "confdefs.h"
6580 $ac_includes_default
6581 #include <$ac_header>
6582 _ACEOF
6583 rm -f conftest.$ac_objext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585   (eval $ac_compile) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); } &&
6589          { ac_try='test -s conftest.$ac_objext'
6590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591   (eval $ac_try) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; }; then
6595   ac_header_compiler=yes
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6599 ac_header_compiler=no
6600 fi
6601 rm -f conftest.$ac_objext conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6603 echo "${ECHO_T}$ac_header_compiler" >&6
6604
6605 # Is the header present?
6606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6608 cat >conftest.$ac_ext <<_ACEOF
6609 #line $LINENO "configure"
6610 #include "confdefs.h"
6611 #include <$ac_header>
6612 _ACEOF
6613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6615   ac_status=$?
6616   egrep -v '^ *\+' conftest.er1 >conftest.err
6617   rm -f conftest.er1
6618   cat conftest.err >&5
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); } >/dev/null; then
6621   if test -s conftest.err; then
6622     ac_cpp_err=$ac_c_preproc_warn_flag
6623   else
6624     ac_cpp_err=
6625   fi
6626 else
6627   ac_cpp_err=yes
6628 fi
6629 if test -z "$ac_cpp_err"; then
6630   ac_header_preproc=yes
6631 else
6632   echo "$as_me: failed program was:" >&5
6633   cat conftest.$ac_ext >&5
6634   ac_header_preproc=no
6635 fi
6636 rm -f conftest.err conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6
6639
6640 # So?  What about this header?
6641 case $ac_header_compiler:$ac_header_preproc in
6642   yes:no )
6643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6647   no:yes )
6648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6650     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6654 esac
6655 echo "$as_me:$LINENO: checking for $ac_header" >&5
6656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   eval "$as_ac_Header=$ac_header_preproc"
6661 fi
6662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6664
6665 fi
6666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667   cat >>confdefs.h <<_ACEOF
6668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6669 _ACEOF
6670  cf_cv_ncurses_header="ncursesw/ncurses.h"
6671 fi
6672
6673 done
6674
6675                 else
6676
6677 for ac_header in ncurses.h
6678 do
6679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681   echo "$as_me:$LINENO: checking for $ac_header" >&5
6682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 fi
6686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6688 else
6689   # Is the header compilable?
6690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6695 $ac_includes_default
6696 #include <$ac_header>
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6700   (eval $ac_compile) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } &&
6704          { ac_try='test -s conftest.$ac_objext'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; }; then
6710   ac_header_compiler=yes
6711 else
6712   echo "$as_me: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 ac_header_compiler=no
6715 fi
6716 rm -f conftest.$ac_objext conftest.$ac_ext
6717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6718 echo "${ECHO_T}$ac_header_compiler" >&6
6719
6720 # Is the header present?
6721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6723 cat >conftest.$ac_ext <<_ACEOF
6724 #line $LINENO "configure"
6725 #include "confdefs.h"
6726 #include <$ac_header>
6727 _ACEOF
6728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6730   ac_status=$?
6731   egrep -v '^ *\+' conftest.er1 >conftest.err
6732   rm -f conftest.er1
6733   cat conftest.err >&5
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } >/dev/null; then
6736   if test -s conftest.err; then
6737     ac_cpp_err=$ac_c_preproc_warn_flag
6738   else
6739     ac_cpp_err=
6740   fi
6741 else
6742   ac_cpp_err=yes
6743 fi
6744 if test -z "$ac_cpp_err"; then
6745   ac_header_preproc=yes
6746 else
6747   echo "$as_me: failed program was:" >&5
6748   cat conftest.$ac_ext >&5
6749   ac_header_preproc=no
6750 fi
6751 rm -f conftest.err conftest.$ac_ext
6752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6753 echo "${ECHO_T}$ac_header_preproc" >&6
6754
6755 # So?  What about this header?
6756 case $ac_header_compiler:$ac_header_preproc in
6757   yes:no )
6758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6762   no:yes )
6763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6765     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6769 esac
6770 echo "$as_me:$LINENO: checking for $ac_header" >&5
6771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   eval "$as_ac_Header=$ac_header_preproc"
6776 fi
6777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6779
6780 fi
6781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6782   cat >>confdefs.h <<_ACEOF
6783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6784 _ACEOF
6785  cf_cv_ncurses_header="ncurses.h"
6786 fi
6787
6788 done
6789
6790                 fi
6791 else
6792
6793 echo "$as_me:$LINENO: checking for initscr" >&5
6794 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6795 if test "${ac_cv_func_initscr+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   cat >conftest.$ac_ext <<_ACEOF
6799 #line $LINENO "configure"
6800 #include "confdefs.h"
6801 /* System header to define __stub macros and hopefully few prototypes,
6802     which can conflict with char initscr (); below.  */
6803 #include <assert.h>
6804 /* Override any gcc2 internal prototype to avoid an error.  */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 /* We use char because int might match the return type of a gcc2
6809    builtin and then its argument prototype would still apply.  */
6810 char initscr ();
6811 char (*f) ();
6812
6813 #ifdef F77_DUMMY_MAIN
6814 #  ifdef __cplusplus
6815      extern "C"
6816 #  endif
6817    int F77_DUMMY_MAIN() { return 1; }
6818 #endif
6819 int
6820 main ()
6821 {
6822 /* The GNU C library defines this for functions which it implements
6823     to always fail with ENOSYS.  Some functions are actually named
6824     something starting with __ and the normal name is an alias.  */
6825 #if defined (__stub_initscr) || defined (__stub___initscr)
6826 choke me
6827 #else
6828 f = initscr;
6829 #endif
6830
6831   ;
6832   return 0;
6833 }
6834 _ACEOF
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6837   (eval $ac_link) 2>&5
6838   ac_status=$?
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); } &&
6841          { ac_try='test -s conftest$ac_exeext'
6842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843   (eval $ac_try) 2>&5
6844   ac_status=$?
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); }; }; then
6847   ac_cv_func_initscr=yes
6848 else
6849   echo "$as_me: failed program was:" >&5
6850 cat conftest.$ac_ext >&5
6851 ac_cv_func_initscr=no
6852 fi
6853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6854 fi
6855 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
6856 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6857 if test $ac_cv_func_initscr = yes; then
6858   :
6859 else
6860
6861 case $host_os in #(vi
6862 freebsd*) #(vi
6863         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
6864 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6865 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   ac_check_lib_save_LIBS=$LIBS
6869 LIBS="-lmytinfo  $LIBS"
6870 cat >conftest.$ac_ext <<_ACEOF
6871 #line $LINENO "configure"
6872 #include "confdefs.h"
6873
6874 /* Override any gcc2 internal prototype to avoid an error.  */
6875 #ifdef __cplusplus
6876 extern "C"
6877 #endif
6878 /* We use char because int might match the return type of a gcc2
6879    builtin and then its argument prototype would still apply.  */
6880 char tgoto ();
6881 #ifdef F77_DUMMY_MAIN
6882 #  ifdef __cplusplus
6883      extern "C"
6884 #  endif
6885    int F77_DUMMY_MAIN() { return 1; }
6886 #endif
6887 int
6888 main ()
6889 {
6890 tgoto ();
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897   (eval $ac_link) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); } &&
6901          { ac_try='test -s conftest$ac_exeext'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; }; then
6907   ac_cv_lib_mytinfo_tgoto=yes
6908 else
6909   echo "$as_me: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6911 ac_cv_lib_mytinfo_tgoto=no
6912 fi
6913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6914 LIBS=$ac_check_lib_save_LIBS
6915 fi
6916 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
6917 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6918 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6919   LIBS="-lmytinfo $LIBS"
6920 fi
6921
6922         ;;
6923 hpux10.*|hpux11.*)
6924         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
6925 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
6926 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   ac_check_lib_save_LIBS=$LIBS
6930 LIBS="-lcur_colr  $LIBS"
6931 cat >conftest.$ac_ext <<_ACEOF
6932 #line $LINENO "configure"
6933 #include "confdefs.h"
6934
6935 /* Override any gcc2 internal prototype to avoid an error.  */
6936 #ifdef __cplusplus
6937 extern "C"
6938 #endif
6939 /* We use char because int might match the return type of a gcc2
6940    builtin and then its argument prototype would still apply.  */
6941 char initscr ();
6942 #ifdef F77_DUMMY_MAIN
6943 #  ifdef __cplusplus
6944      extern "C"
6945 #  endif
6946    int F77_DUMMY_MAIN() { return 1; }
6947 #endif
6948 int
6949 main ()
6950 {
6951 initscr ();
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958   (eval $ac_link) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } &&
6962          { ac_try='test -s conftest$ac_exeext'
6963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964   (eval $ac_try) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); }; }; then
6968   ac_cv_lib_cur_colr_initscr=yes
6969 else
6970   echo "$as_me: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6972 ac_cv_lib_cur_colr_initscr=no
6973 fi
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 LIBS=$ac_check_lib_save_LIBS
6976 fi
6977 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
6978 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
6979 if test $ac_cv_lib_cur_colr_initscr = yes; then
6980
6981                 LIBS="-lcur_colr $LIBS"
6982                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
6983                 ac_cv_func_initscr=yes
6984
6985 else
6986
6987         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
6988 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
6989 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   ac_check_lib_save_LIBS=$LIBS
6993 LIBS="-lHcurses  $LIBS"
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 #include "confdefs.h"
6997
6998 /* Override any gcc2 internal prototype to avoid an error.  */
6999 #ifdef __cplusplus
7000 extern "C"
7001 #endif
7002 /* We use char because int might match the return type of a gcc2
7003    builtin and then its argument prototype would still apply.  */
7004 char initscr ();
7005 #ifdef F77_DUMMY_MAIN
7006 #  ifdef __cplusplus
7007      extern "C"
7008 #  endif
7009    int F77_DUMMY_MAIN() { return 1; }
7010 #endif
7011 int
7012 main ()
7013 {
7014 initscr ();
7015   ;
7016   return 0;
7017 }
7018 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021   (eval $ac_link) 2>&5
7022   ac_status=$?
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } &&
7025          { ac_try='test -s conftest$ac_exeext'
7026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027   (eval $ac_try) 2>&5
7028   ac_status=$?
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); }; }; then
7031   ac_cv_lib_Hcurses_initscr=yes
7032 else
7033   echo "$as_me: failed program was:" >&5
7034 cat conftest.$ac_ext >&5
7035 ac_cv_lib_Hcurses_initscr=no
7036 fi
7037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7038 LIBS=$ac_check_lib_save_LIBS
7039 fi
7040 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
7041 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7042 if test $ac_cv_lib_Hcurses_initscr = yes; then
7043
7044                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7045                 LIBS="-lHcurses $LIBS"
7046                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7047                 ac_cv_func_initscr=yes
7048
7049 fi
7050
7051 fi
7052
7053         ;;
7054 linux*) # Suse Linux does not follow /usr/lib convention
7055         LIBS="$LIBS -L/lib"
7056         ;;
7057 esac
7058
7059 if test ".$With5lib" != ".no" ; then
7060 if test -d /usr/5lib ; then
7061         # SunOS 3.x or 4.x
7062         CPPFLAGS="$CPPFLAGS -I/usr/5include"
7063         LIBS="$LIBS -L/usr/5lib"
7064 fi
7065 fi
7066
7067 if test ".$ac_cv_func_initscr" != .yes ; then
7068         cf_save_LIBS="$LIBS"
7069         cf_term_lib=""
7070         cf_curs_lib=""
7071
7072         # Check for library containing tgoto.  Do this before curses library
7073         # because it may be needed to link the test-case for initscr.
7074         echo "$as_me:$LINENO: checking for tgoto" >&5
7075 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7076 if test "${ac_cv_func_tgoto+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   cat >conftest.$ac_ext <<_ACEOF
7080 #line $LINENO "configure"
7081 #include "confdefs.h"
7082 /* System header to define __stub macros and hopefully few prototypes,
7083     which can conflict with char tgoto (); below.  */
7084 #include <assert.h>
7085 /* Override any gcc2 internal prototype to avoid an error.  */
7086 #ifdef __cplusplus
7087 extern "C"
7088 #endif
7089 /* We use char because int might match the return type of a gcc2
7090    builtin and then its argument prototype would still apply.  */
7091 char tgoto ();
7092 char (*f) ();
7093
7094 #ifdef F77_DUMMY_MAIN
7095 #  ifdef __cplusplus
7096      extern "C"
7097 #  endif
7098    int F77_DUMMY_MAIN() { return 1; }
7099 #endif
7100 int
7101 main ()
7102 {
7103 /* The GNU C library defines this for functions which it implements
7104     to always fail with ENOSYS.  Some functions are actually named
7105     something starting with __ and the normal name is an alias.  */
7106 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7107 choke me
7108 #else
7109 f = tgoto;
7110 #endif
7111
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118   (eval $ac_link) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } &&
7122          { ac_try='test -s conftest$ac_exeext'
7123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124   (eval $ac_try) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; }; then
7128   ac_cv_func_tgoto=yes
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 ac_cv_func_tgoto=no
7133 fi
7134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7135 fi
7136 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
7137 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7138 if test $ac_cv_func_tgoto = yes; then
7139   cf_term_lib=predefined
7140 else
7141
7142                 for cf_term_lib in termcap termlib unknown
7143                 do
7144                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7145 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
7146 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7147 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   ac_check_lib_save_LIBS=$LIBS
7151 LIBS="-l$cf_term_lib  $LIBS"
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line $LINENO "configure"
7154 #include "confdefs.h"
7155
7156 /* Override any gcc2 internal prototype to avoid an error.  */
7157 #ifdef __cplusplus
7158 extern "C"
7159 #endif
7160 /* We use char because int might match the return type of a gcc2
7161    builtin and then its argument prototype would still apply.  */
7162 char tgoto ();
7163 #ifdef F77_DUMMY_MAIN
7164 #  ifdef __cplusplus
7165      extern "C"
7166 #  endif
7167    int F77_DUMMY_MAIN() { return 1; }
7168 #endif
7169 int
7170 main ()
7171 {
7172 tgoto ();
7173   ;
7174   return 0;
7175 }
7176 _ACEOF
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179   (eval $ac_link) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } &&
7183          { ac_try='test -s conftest$ac_exeext'
7184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; }; then
7189   eval "$as_ac_Lib=yes"
7190 else
7191   echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 eval "$as_ac_Lib=no"
7194 fi
7195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7196 LIBS=$ac_check_lib_save_LIBS
7197 fi
7198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7199 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7200 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7201   break
7202 fi
7203
7204                 done
7205
7206 fi
7207
7208
7209         # Check for library containing initscr
7210         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7211         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
7212         do
7213                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
7214 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
7215 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   ac_check_lib_save_LIBS=$LIBS
7220 LIBS="-l$cf_curs_lib  $LIBS"
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7224
7225 /* Override any gcc2 internal prototype to avoid an error.  */
7226 #ifdef __cplusplus
7227 extern "C"
7228 #endif
7229 /* We use char because int might match the return type of a gcc2
7230    builtin and then its argument prototype would still apply.  */
7231 char initscr ();
7232 #ifdef F77_DUMMY_MAIN
7233 #  ifdef __cplusplus
7234      extern "C"
7235 #  endif
7236    int F77_DUMMY_MAIN() { return 1; }
7237 #endif
7238 int
7239 main ()
7240 {
7241 initscr ();
7242   ;
7243   return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7248   (eval $ac_link) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); } &&
7252          { ac_try='test -s conftest$ac_exeext'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; }; then
7258   eval "$as_ac_Lib=yes"
7259 else
7260   echo "$as_me: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7262 eval "$as_ac_Lib=no"
7263 fi
7264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7265 LIBS=$ac_check_lib_save_LIBS
7266 fi
7267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7268 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7269 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7270   break
7271 fi
7272
7273         done
7274         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
7275 echo "$as_me: error: no curses library found" >&2;}
7276    { (exit 1); exit 1; }; }
7277
7278         LIBS="-l$cf_curs_lib $cf_save_LIBS"
7279         if test "$cf_term_lib" = unknown ; then
7280                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
7281 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7282                 cat >conftest.$ac_ext <<_ACEOF
7283 #line $LINENO "configure"
7284 #include "confdefs.h"
7285 #include <${cf_cv_ncurses_header-curses.h}>
7286 #ifdef F77_DUMMY_MAIN
7287 #  ifdef __cplusplus
7288      extern "C"
7289 #  endif
7290    int F77_DUMMY_MAIN() { return 1; }
7291 #endif
7292 int
7293 main ()
7294 {
7295 initscr()
7296   ;
7297   return 0;
7298 }
7299 _ACEOF
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302   (eval $ac_link) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } &&
7306          { ac_try='test -s conftest$ac_exeext'
7307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308   (eval $ac_try) 2>&5
7309   ac_status=$?
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); }; }; then
7312   cf_result=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7316 cf_result=no
7317 fi
7318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7319                 echo "$as_me:$LINENO: result: $cf_result" >&5
7320 echo "${ECHO_T}$cf_result" >&6
7321                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
7322 echo "$as_me: error: Cannot link curses library" >&2;}
7323    { (exit 1); exit 1; }; }
7324         elif test "$cf_term_lib" != predefined ; then
7325                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7326 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
7327                 cat >conftest.$ac_ext <<_ACEOF
7328 #line $LINENO "configure"
7329 #include "confdefs.h"
7330 #include <${cf_cv_ncurses_header-curses.h}>
7331 #ifdef F77_DUMMY_MAIN
7332 #  ifdef __cplusplus
7333      extern "C"
7334 #  endif
7335    int F77_DUMMY_MAIN() { return 1; }
7336 #endif
7337 int
7338 main ()
7339 {
7340 initscr(); tgoto((char *)0, 0, 0);
7341   ;
7342   return 0;
7343 }
7344 _ACEOF
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347   (eval $ac_link) 2>&5
7348   ac_status=$?
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); } &&
7351          { ac_try='test -s conftest$ac_exeext'
7352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353   (eval $ac_try) 2>&5
7354   ac_status=$?
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); }; }; then
7357   cf_result=no
7358 else
7359   echo "$as_me: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361
7362                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7363                         cat >conftest.$ac_ext <<_ACEOF
7364 #line $LINENO "configure"
7365 #include "confdefs.h"
7366 #include <${cf_cv_ncurses_header-curses.h}>
7367 #ifdef F77_DUMMY_MAIN
7368 #  ifdef __cplusplus
7369      extern "C"
7370 #  endif
7371    int F77_DUMMY_MAIN() { return 1; }
7372 #endif
7373 int
7374 main ()
7375 {
7376 initscr()
7377   ;
7378   return 0;
7379 }
7380 _ACEOF
7381 rm -f conftest.$ac_objext conftest$ac_exeext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383   (eval $ac_link) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } &&
7387          { ac_try='test -s conftest$ac_exeext'
7388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389   (eval $ac_try) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); }; }; then
7393   cf_result=yes
7394 else
7395   echo "$as_me: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7397 cf_result=error
7398 fi
7399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7400
7401 fi
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7403                 echo "$as_me:$LINENO: result: $cf_result" >&5
7404 echo "${ECHO_T}$cf_result" >&6
7405         fi
7406 fi
7407
7408
7409 fi
7410
7411 fi
7412
7413
7414 fi
7415
7416
7417         old_LIBS="$LIBS"
7418         LIBS="$LIBS $MUTTLIBS"
7419         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
7420 do
7421
7422 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
7423 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
7424 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   cat >conftest.$ac_ext <<_ACEOF
7428 #line $LINENO "configure"
7429 #include "confdefs.h"
7430 #include <${cf_cv_ncurses_header-curses.h}>
7431 #ifdef F77_DUMMY_MAIN
7432 #  ifdef __cplusplus
7433      extern "C"
7434 #  endif
7435    int F77_DUMMY_MAIN() { return 1; }
7436 #endif
7437 int
7438 main ()
7439 {
7440 #ifndef ${ac_func}
7441 extern  int     ${ac_func}();
7442 #endif
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449   (eval $ac_compile) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } &&
7453          { ac_try='test -s conftest.$ac_objext'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459
7460 cat >conftest.$ac_ext <<_ACEOF
7461 #line $LINENO "configure"
7462 #include "confdefs.h"
7463 #include <${cf_cv_ncurses_header-curses.h}>
7464 #ifdef F77_DUMMY_MAIN
7465 #  ifdef __cplusplus
7466      extern "C"
7467 #  endif
7468    int F77_DUMMY_MAIN() { return 1; }
7469 #endif
7470 int
7471 main ()
7472 {
7473 #ifndef ${ac_func}
7474 int     (*p)() = ${ac_func};
7475 #endif
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482   (eval $ac_compile) 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } &&
7486          { ac_try='test -s conftest.$ac_objext'
7487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488   (eval $ac_try) 2>&5
7489   ac_status=$?
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); }; }; then
7492
7493 eval "ac_cv_func_decl_$ac_func=yes"
7494 else
7495   echo "$as_me: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7497
7498 eval "ac_cv_func_decl_$ac_func=no"
7499 fi
7500 rm -f conftest.$ac_objext conftest.$ac_ext
7501 else
7502   echo "$as_me: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7504
7505 eval "ac_cv_func_decl_$ac_func=yes"
7506 fi
7507 rm -f conftest.$ac_objext conftest.$ac_ext
7508 fi
7509
7510 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
7511   echo "$as_me:$LINENO: result: yes" >&5
7512 echo "${ECHO_T}yes" >&6
7513
7514
7515 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
7516
7517   cat >>confdefs.h <<_ACEOF
7518 #define $ac_tr_func 1
7519 _ACEOF
7520
7521 else
7522   echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6
7524 fi
7525 done
7526
7527         if test "$ac_cv_func_decl_start_color" = yes; then
7528
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_COLOR 1
7531 _ACEOF
7532
7533         fi
7534         if test "$ac_cv_func_decl_resizeterm" = yes; then
7535                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
7536         fi
7537         LIBS="$old_LIBS"
7538
7539 fi;
7540
7541 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7542 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7543 if test "${ac_cv_header_stdc+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   cat >conftest.$ac_ext <<_ACEOF
7547 #line $LINENO "configure"
7548 #include "confdefs.h"
7549 #include <stdlib.h>
7550 #include <stdarg.h>
7551 #include <string.h>
7552 #include <float.h>
7553
7554 _ACEOF
7555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7557   ac_status=$?
7558   egrep -v '^ *\+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } >/dev/null; then
7563   if test -s conftest.err; then
7564     ac_cpp_err=$ac_c_preproc_warn_flag
7565   else
7566     ac_cpp_err=
7567   fi
7568 else
7569   ac_cpp_err=yes
7570 fi
7571 if test -z "$ac_cpp_err"; then
7572   ac_cv_header_stdc=yes
7573 else
7574   echo "$as_me: failed program was:" >&5
7575   cat conftest.$ac_ext >&5
7576   ac_cv_header_stdc=no
7577 fi
7578 rm -f conftest.err conftest.$ac_ext
7579
7580 if test $ac_cv_header_stdc = yes; then
7581   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7582   cat >conftest.$ac_ext <<_ACEOF
7583 #line $LINENO "configure"
7584 #include "confdefs.h"
7585 #include <string.h>
7586
7587 _ACEOF
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589   egrep "memchr" >/dev/null 2>&1; then
7590   :
7591 else
7592   ac_cv_header_stdc=no
7593 fi
7594 rm -f conftest*
7595
7596 fi
7597
7598 if test $ac_cv_header_stdc = yes; then
7599   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7600   cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 #include "confdefs.h"
7603 #include <stdlib.h>
7604
7605 _ACEOF
7606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7607   egrep "free" >/dev/null 2>&1; then
7608   :
7609 else
7610   ac_cv_header_stdc=no
7611 fi
7612 rm -f conftest*
7613
7614 fi
7615
7616 if test $ac_cv_header_stdc = yes; then
7617   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7618   if test "$cross_compiling" = yes; then
7619   :
7620 else
7621   cat >conftest.$ac_ext <<_ACEOF
7622 #line $LINENO "configure"
7623 #include "confdefs.h"
7624 #include <ctype.h>
7625 #if ((' ' & 0x0FF) == 0x020)
7626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7628 #else
7629 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7630                      || ('j' <= (c) && (c) <= 'r') \
7631                      || ('s' <= (c) && (c) <= 'z'))
7632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7633 #endif
7634
7635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7636 int
7637 main ()
7638 {
7639   int i;
7640   for (i = 0; i < 256; i++)
7641     if (XOR (islower (i), ISLOWER (i))
7642         || toupper (i) != TOUPPER (i))
7643       exit(2);
7644   exit (0);
7645 }
7646 _ACEOF
7647 rm -f conftest$ac_exeext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7649   (eval $ac_link) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654   (eval $ac_try) 2>&5
7655   ac_status=$?
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); }; }; then
7658   :
7659 else
7660   echo "$as_me: program exited with status $ac_status" >&5
7661 echo "$as_me: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7663 ( exit $ac_status )
7664 ac_cv_header_stdc=no
7665 fi
7666 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 fi
7669 fi
7670 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7671 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7672 if test $ac_cv_header_stdc = yes; then
7673
7674 cat >>confdefs.h <<\_ACEOF
7675 #define STDC_HEADERS 1
7676 _ACEOF
7677
7678 fi
7679
7680
7681
7682
7683
7684
7685 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
7686 do
7687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7689   echo "$as_me:$LINENO: checking for $ac_header" >&5
7690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 fi
7694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7696 else
7697   # Is the header compilable?
7698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7700 cat >conftest.$ac_ext <<_ACEOF
7701 #line $LINENO "configure"
7702 #include "confdefs.h"
7703 $ac_includes_default
7704 #include <$ac_header>
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708   (eval $ac_compile) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); } &&
7712          { ac_try='test -s conftest.$ac_objext'
7713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714   (eval $ac_try) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); }; }; then
7718   ac_header_compiler=yes
7719 else
7720   echo "$as_me: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7722 ac_header_compiler=no
7723 fi
7724 rm -f conftest.$ac_objext conftest.$ac_ext
7725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7726 echo "${ECHO_T}$ac_header_compiler" >&6
7727
7728 # Is the header present?
7729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7731 cat >conftest.$ac_ext <<_ACEOF
7732 #line $LINENO "configure"
7733 #include "confdefs.h"
7734 #include <$ac_header>
7735 _ACEOF
7736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7738   ac_status=$?
7739   egrep -v '^ *\+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } >/dev/null; then
7744   if test -s conftest.err; then
7745     ac_cpp_err=$ac_c_preproc_warn_flag
7746   else
7747     ac_cpp_err=
7748   fi
7749 else
7750   ac_cpp_err=yes
7751 fi
7752 if test -z "$ac_cpp_err"; then
7753   ac_header_preproc=yes
7754 else
7755   echo "$as_me: failed program was:" >&5
7756   cat conftest.$ac_ext >&5
7757   ac_header_preproc=no
7758 fi
7759 rm -f conftest.err conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7761 echo "${ECHO_T}$ac_header_preproc" >&6
7762
7763 # So?  What about this header?
7764 case $ac_header_compiler:$ac_header_preproc in
7765   yes:no )
7766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7770   no:yes )
7771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7773     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7777 esac
7778 echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   eval "$as_ac_Header=$ac_header_preproc"
7784 fi
7785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7787
7788 fi
7789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7790   cat >>confdefs.h <<_ACEOF
7791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7792 _ACEOF
7793
7794 fi
7795
7796 done
7797
7798
7799
7800 for ac_header in sys/time.h sys/resource.h
7801 do
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804   echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 fi
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7811 else
7812   # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7819 #include <$ac_header>
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823   (eval $ac_compile) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -s conftest.$ac_objext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   ac_header_compiler=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 ac_header_compiler=no
7838 fi
7839 rm -f conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841 echo "${ECHO_T}$ac_header_compiler" >&6
7842
7843 # Is the header present?
7844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7846 cat >conftest.$ac_ext <<_ACEOF
7847 #line $LINENO "configure"
7848 #include "confdefs.h"
7849 #include <$ac_header>
7850 _ACEOF
7851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7853   ac_status=$?
7854   egrep -v '^ *\+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } >/dev/null; then
7859   if test -s conftest.err; then
7860     ac_cpp_err=$ac_c_preproc_warn_flag
7861   else
7862     ac_cpp_err=
7863   fi
7864 else
7865   ac_cpp_err=yes
7866 fi
7867 if test -z "$ac_cpp_err"; then
7868   ac_header_preproc=yes
7869 else
7870   echo "$as_me: failed program was:" >&5
7871   cat conftest.$ac_ext >&5
7872   ac_header_preproc=no
7873 fi
7874 rm -f conftest.err conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7876 echo "${ECHO_T}$ac_header_preproc" >&6
7877
7878 # So?  What about this header?
7879 case $ac_header_compiler:$ac_header_preproc in
7880   yes:no )
7881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7885   no:yes )
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7892 esac
7893 echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898   eval "$as_ac_Header=$ac_header_preproc"
7899 fi
7900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7902
7903 fi
7904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905   cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907 _ACEOF
7908
7909 fi
7910
7911 done
7912
7913
7914 for ac_header in unix.h
7915 do
7916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918   echo "$as_me:$LINENO: checking for $ac_header" >&5
7919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 fi
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925 else
7926   # Is the header compilable?
7927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 #include "confdefs.h"
7932 $ac_includes_default
7933 #include <$ac_header>
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937   (eval $ac_compile) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } &&
7941          { ac_try='test -s conftest.$ac_objext'
7942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; }; then
7947   ac_header_compiler=yes
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7951 ac_header_compiler=no
7952 fi
7953 rm -f conftest.$ac_objext conftest.$ac_ext
7954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7955 echo "${ECHO_T}$ac_header_compiler" >&6
7956
7957 # Is the header present?
7958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 #include "confdefs.h"
7963 #include <$ac_header>
7964 _ACEOF
7965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7967   ac_status=$?
7968   egrep -v '^ *\+' conftest.er1 >conftest.err
7969   rm -f conftest.er1
7970   cat conftest.err >&5
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); } >/dev/null; then
7973   if test -s conftest.err; then
7974     ac_cpp_err=$ac_c_preproc_warn_flag
7975   else
7976     ac_cpp_err=
7977   fi
7978 else
7979   ac_cpp_err=yes
7980 fi
7981 if test -z "$ac_cpp_err"; then
7982   ac_header_preproc=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985   cat conftest.$ac_ext >&5
7986   ac_header_preproc=no
7987 fi
7988 rm -f conftest.err conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7990 echo "${ECHO_T}$ac_header_preproc" >&6
7991
7992 # So?  What about this header?
7993 case $ac_header_compiler:$ac_header_preproc in
7994   yes:no )
7995     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7999   no:yes )
8000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8002     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8006 esac
8007 echo "$as_me:$LINENO: checking for $ac_header" >&5
8008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8010   echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012   eval "$as_ac_Header=$ac_header_preproc"
8013 fi
8014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8016
8017 fi
8018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8019   cat >>confdefs.h <<_ACEOF
8020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8021 _ACEOF
8022
8023 fi
8024
8025 done
8026
8027
8028
8029
8030
8031 for ac_func in setrlimit getsid isctype
8032 do
8033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8034 echo "$as_me:$LINENO: checking for $ac_func" >&5
8035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8036 if eval "test \"\${$as_ac_var+set}\" = set"; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 #include "confdefs.h"
8042 /* System header to define __stub macros and hopefully few prototypes,
8043     which can conflict with char $ac_func (); below.  */
8044 #include <assert.h>
8045 /* Override any gcc2 internal prototype to avoid an error.  */
8046 #ifdef __cplusplus
8047 extern "C"
8048 #endif
8049 /* We use char because int might match the return type of a gcc2
8050    builtin and then its argument prototype would still apply.  */
8051 char $ac_func ();
8052 char (*f) ();
8053
8054 #ifdef F77_DUMMY_MAIN
8055 #  ifdef __cplusplus
8056      extern "C"
8057 #  endif
8058    int F77_DUMMY_MAIN() { return 1; }
8059 #endif
8060 int
8061 main ()
8062 {
8063 /* The GNU C library defines this for functions which it implements
8064     to always fail with ENOSYS.  Some functions are actually named
8065     something starting with __ and the normal name is an alias.  */
8066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8067 choke me
8068 #else
8069 f = $ac_func;
8070 #endif
8071
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078   (eval $ac_link) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } &&
8082          { ac_try='test -s conftest$ac_exeext'
8083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084   (eval $ac_try) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; }; then
8088   eval "$as_ac_var=yes"
8089 else
8090   echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 eval "$as_ac_var=no"
8093 fi
8094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8095 fi
8096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8098 if test `eval echo '${'$as_ac_var'}'` = yes; then
8099   cat >>confdefs.h <<_ACEOF
8100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8101 _ACEOF
8102
8103 fi
8104 done
8105
8106
8107 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8108 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8109 if test "${ac_cv_type_signal+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   cat >conftest.$ac_ext <<_ACEOF
8113 #line $LINENO "configure"
8114 #include "confdefs.h"
8115 #include <sys/types.h>
8116 #include <signal.h>
8117 #ifdef signal
8118 # undef signal
8119 #endif
8120 #ifdef __cplusplus
8121 extern "C" void (*signal (int, void (*)(int)))(int);
8122 #else
8123 void (*signal ()) ();
8124 #endif
8125
8126 #ifdef F77_DUMMY_MAIN
8127 #  ifdef __cplusplus
8128      extern "C"
8129 #  endif
8130    int F77_DUMMY_MAIN() { return 1; }
8131 #endif
8132 int
8133 main ()
8134 {
8135 int i;
8136   ;
8137   return 0;
8138 }
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142   (eval $ac_compile) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } &&
8146          { ac_try='test -s conftest.$ac_objext'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; }; then
8152   ac_cv_type_signal=void
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 ac_cv_type_signal=int
8157 fi
8158 rm -f conftest.$ac_objext conftest.$ac_ext
8159 fi
8160 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8161 echo "${ECHO_T}$ac_cv_type_signal" >&6
8162
8163 cat >>confdefs.h <<_ACEOF
8164 #define RETSIGTYPE $ac_cv_type_signal
8165 _ACEOF
8166
8167
8168
8169 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
8170 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8172 #line $LINENO "configure"
8173 #include "confdefs.h"
8174 #include <signal.h>
8175
8176 _ACEOF
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178   egrep "sig_atomic_t" >/dev/null 2>&1; then
8179
8180     ac_cv_type_sig_atomic_t=yes;
8181     cat >conftest.$ac_ext <<_ACEOF
8182 #line $LINENO "configure"
8183 #include "confdefs.h"
8184 #include <signal.h>
8185
8186 _ACEOF
8187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8188   egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
8189
8190                         is_sig_atomic_t_volatile=yes;
8191                         echo "$as_me:$LINENO: result: yes, volatile" >&5
8192 echo "${ECHO_T}yes, volatile" >&6
8193
8194 else
8195
8196                         is_sig_atomic_t_volatile=no;
8197                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
8198 echo "${ECHO_T}yes, non volatile" >&6
8199
8200 fi
8201 rm -f conftest*
8202
8203
8204 else
8205
8206     echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8208     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
8209 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
8210 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
8211   echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213   cat >conftest.$ac_ext <<_ACEOF
8214 #line $LINENO "configure"
8215 #include "confdefs.h"
8216 $ac_includes_default
8217 #ifdef F77_DUMMY_MAIN
8218 #  ifdef __cplusplus
8219      extern "C"
8220 #  endif
8221    int F77_DUMMY_MAIN() { return 1; }
8222 #endif
8223 int
8224 main ()
8225 {
8226 if ((sig_atomic_t *) 0)
8227   return 0;
8228 if (sizeof (sig_atomic_t))
8229   return 0;
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236   (eval $ac_compile) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -s conftest.$ac_objext'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; }; then
8246   ac_cv_type_sig_atomic_t=yes
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8250 ac_cv_type_sig_atomic_t=no
8251 fi
8252 rm -f conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
8255 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
8256 if test $ac_cv_type_sig_atomic_t = yes; then
8257   :
8258 else
8259
8260 cat >>confdefs.h <<_ACEOF
8261 #define sig_atomic_t int
8262 _ACEOF
8263
8264 fi
8265
8266     is_sig_atomic_t_volatile=no
8267
8268 fi
8269 rm -f conftest*
8270
8271 if test $is_sig_atomic_t_volatile = 'yes'
8272 then
8273     cat >>confdefs.h <<\_ACEOF
8274 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
8275 _ACEOF
8276
8277 else
8278     cat >>confdefs.h <<\_ACEOF
8279 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
8280 _ACEOF
8281
8282 fi
8283
8284 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
8285 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
8286 if test "${ac_cv_decl_sys_siglist+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8291 #include "confdefs.h"
8292 #include <sys/types.h>
8293 #include <signal.h>
8294 /* NetBSD declares sys_siglist in unistd.h.  */
8295 #if HAVE_UNISTD_H
8296 # include <unistd.h>
8297 #endif
8298
8299 #ifdef F77_DUMMY_MAIN
8300 #  ifdef __cplusplus
8301      extern "C"
8302 #  endif
8303    int F77_DUMMY_MAIN() { return 1; }
8304 #endif
8305 int
8306 main ()
8307 {
8308 char *msg = *(sys_siglist + 1);
8309   ;
8310   return 0;
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315   (eval $ac_compile) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); } &&
8319          { ac_try='test -s conftest.$ac_objext'
8320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321   (eval $ac_try) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }; }; then
8325   ac_cv_decl_sys_siglist=yes
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8329 ac_cv_decl_sys_siglist=no
8330 fi
8331 rm -f conftest.$ac_objext conftest.$ac_ext
8332 fi
8333 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
8334 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
8335 if test $ac_cv_decl_sys_siglist = yes; then
8336
8337 cat >>confdefs.h <<\_ACEOF
8338 #define SYS_SIGLIST_DECLARED 1
8339 _ACEOF
8340
8341 fi
8342
8343
8344 echo "$as_me:$LINENO: checking for pid_t" >&5
8345 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8346 if test "${ac_cv_type_pid_t+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8351 #include "confdefs.h"
8352 $ac_includes_default
8353 #ifdef F77_DUMMY_MAIN
8354 #  ifdef __cplusplus
8355      extern "C"
8356 #  endif
8357    int F77_DUMMY_MAIN() { return 1; }
8358 #endif
8359 int
8360 main ()
8361 {
8362 if ((pid_t *) 0)
8363   return 0;
8364 if (sizeof (pid_t))
8365   return 0;
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372   (eval $ac_compile) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } &&
8376          { ac_try='test -s conftest.$ac_objext'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; }; then
8382   ac_cv_type_pid_t=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8386 ac_cv_type_pid_t=no
8387 fi
8388 rm -f conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8391 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8392 if test $ac_cv_type_pid_t = yes; then
8393   :
8394 else
8395
8396 cat >>confdefs.h <<_ACEOF
8397 #define pid_t int
8398 _ACEOF
8399
8400 fi
8401
8402
8403
8404
8405
8406
8407
8408 for ac_func in fgetpos memmove setegid srand48 strerror
8409 do
8410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8411 echo "$as_me:$LINENO: checking for $ac_func" >&5
8412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8413 if eval "test \"\${$as_ac_var+set}\" = set"; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   cat >conftest.$ac_ext <<_ACEOF
8417 #line $LINENO "configure"
8418 #include "confdefs.h"
8419 /* System header to define __stub macros and hopefully few prototypes,
8420     which can conflict with char $ac_func (); below.  */
8421 #include <assert.h>
8422 /* Override any gcc2 internal prototype to avoid an error.  */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427    builtin and then its argument prototype would still apply.  */
8428 char $ac_func ();
8429 char (*f) ();
8430
8431 #ifdef F77_DUMMY_MAIN
8432 #  ifdef __cplusplus
8433      extern "C"
8434 #  endif
8435    int F77_DUMMY_MAIN() { return 1; }
8436 #endif
8437 int
8438 main ()
8439 {
8440 /* The GNU C library defines this for functions which it implements
8441     to always fail with ENOSYS.  Some functions are actually named
8442     something starting with __ and the normal name is an alias.  */
8443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8444 choke me
8445 #else
8446 f = $ac_func;
8447 #endif
8448
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455   (eval $ac_link) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); } &&
8459          { ac_try='test -s conftest$ac_exeext'
8460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461   (eval $ac_try) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   eval "$as_ac_var=yes"
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8469 eval "$as_ac_var=no"
8470 fi
8471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8472 fi
8473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8475 if test `eval echo '${'$as_ac_var'}'` = yes; then
8476   cat >>confdefs.h <<_ACEOF
8477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8478 _ACEOF
8479
8480 fi
8481 done
8482
8483
8484
8485
8486 for ac_func in strcasecmp strdup
8487 do
8488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8489 echo "$as_me:$LINENO: checking for $ac_func" >&5
8490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8491 if eval "test \"\${$as_ac_var+set}\" = set"; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   cat >conftest.$ac_ext <<_ACEOF
8495 #line $LINENO "configure"
8496 #include "confdefs.h"
8497 /* System header to define __stub macros and hopefully few prototypes,
8498     which can conflict with char $ac_func (); below.  */
8499 #include <assert.h>
8500 /* Override any gcc2 internal prototype to avoid an error.  */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 /* We use char because int might match the return type of a gcc2
8505    builtin and then its argument prototype would still apply.  */
8506 char $ac_func ();
8507 char (*f) ();
8508
8509 #ifdef F77_DUMMY_MAIN
8510 #  ifdef __cplusplus
8511      extern "C"
8512 #  endif
8513    int F77_DUMMY_MAIN() { return 1; }
8514 #endif
8515 int
8516 main ()
8517 {
8518 /* The GNU C library defines this for functions which it implements
8519     to always fail with ENOSYS.  Some functions are actually named
8520     something starting with __ and the normal name is an alias.  */
8521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8522 choke me
8523 #else
8524 f = $ac_func;
8525 #endif
8526
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); } &&
8537          { ac_try='test -s conftest$ac_exeext'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   eval "$as_ac_var=yes"
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 cat conftest.$ac_ext >&5
8547 eval "$as_ac_var=no"
8548 fi
8549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8550 fi
8551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8553 if test `eval echo '${'$as_ac_var'}'` = yes; then
8554   cat >>confdefs.h <<_ACEOF
8555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8556 _ACEOF
8557
8558 else
8559   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8560 fi
8561 done
8562
8563
8564
8565 echo "$as_me:$LINENO: checking for getopt" >&5
8566 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8567 if test "${ac_cv_func_getopt+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   cat >conftest.$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8572 #include "confdefs.h"
8573 /* System header to define __stub macros and hopefully few prototypes,
8574     which can conflict with char getopt (); below.  */
8575 #include <assert.h>
8576 /* Override any gcc2 internal prototype to avoid an error.  */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 /* We use char because int might match the return type of a gcc2
8581    builtin and then its argument prototype would still apply.  */
8582 char getopt ();
8583 char (*f) ();
8584
8585 #ifdef F77_DUMMY_MAIN
8586 #  ifdef __cplusplus
8587      extern "C"
8588 #  endif
8589    int F77_DUMMY_MAIN() { return 1; }
8590 #endif
8591 int
8592 main ()
8593 {
8594 /* The GNU C library defines this for functions which it implements
8595     to always fail with ENOSYS.  Some functions are actually named
8596     something starting with __ and the normal name is an alias.  */
8597 #if defined (__stub_getopt) || defined (__stub___getopt)
8598 choke me
8599 #else
8600 f = getopt;
8601 #endif
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609   (eval $ac_link) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } &&
8613          { ac_try='test -s conftest$ac_exeext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   ac_cv_func_getopt=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8623 ac_cv_func_getopt=no
8624 fi
8625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8626 fi
8627 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8628 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8629
8630 if test $ac_cv_func_getopt = yes; then
8631
8632 for ac_header in getopt.h
8633 do
8634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636   echo "$as_me:$LINENO: checking for $ac_header" >&5
8637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 fi
8641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8643 else
8644   # Is the header compilable?
8645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8647 cat >conftest.$ac_ext <<_ACEOF
8648 #line $LINENO "configure"
8649 #include "confdefs.h"
8650 $ac_includes_default
8651 #include <$ac_header>
8652 _ACEOF
8653 rm -f conftest.$ac_objext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655   (eval $ac_compile) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } &&
8659          { ac_try='test -s conftest.$ac_objext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_header_compiler=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 ac_header_compiler=no
8670 fi
8671 rm -f conftest.$ac_objext conftest.$ac_ext
8672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8673 echo "${ECHO_T}$ac_header_compiler" >&6
8674
8675 # Is the header present?
8676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8678 cat >conftest.$ac_ext <<_ACEOF
8679 #line $LINENO "configure"
8680 #include "confdefs.h"
8681 #include <$ac_header>
8682 _ACEOF
8683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8685   ac_status=$?
8686   egrep -v '^ *\+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } >/dev/null; then
8691   if test -s conftest.err; then
8692     ac_cpp_err=$ac_c_preproc_warn_flag
8693   else
8694     ac_cpp_err=
8695   fi
8696 else
8697   ac_cpp_err=yes
8698 fi
8699 if test -z "$ac_cpp_err"; then
8700   ac_header_preproc=yes
8701 else
8702   echo "$as_me: failed program was:" >&5
8703   cat conftest.$ac_ext >&5
8704   ac_header_preproc=no
8705 fi
8706 rm -f conftest.err conftest.$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708 echo "${ECHO_T}$ac_header_preproc" >&6
8709
8710 # So?  What about this header?
8711 case $ac_header_compiler:$ac_header_preproc in
8712   yes:no )
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8717   no:yes )
8718     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8720     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8724 esac
8725 echo "$as_me:$LINENO: checking for $ac_header" >&5
8726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   eval "$as_ac_Header=$ac_header_preproc"
8731 fi
8732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8734
8735 fi
8736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8737   cat >>confdefs.h <<_ACEOF
8738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8739 _ACEOF
8740
8741 fi
8742
8743 done
8744
8745 fi
8746
8747 mutt_cv_snprintf=no
8748 SNPRINTFOBJS=""
8749
8750 for ac_func in snprintf
8751 do
8752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8753 echo "$as_me:$LINENO: checking for $ac_func" >&5
8754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8755 if eval "test \"\${$as_ac_var+set}\" = set"; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   cat >conftest.$ac_ext <<_ACEOF
8759 #line $LINENO "configure"
8760 #include "confdefs.h"
8761 /* System header to define __stub macros and hopefully few prototypes,
8762     which can conflict with char $ac_func (); below.  */
8763 #include <assert.h>
8764 /* Override any gcc2 internal prototype to avoid an error.  */
8765 #ifdef __cplusplus
8766 extern "C"
8767 #endif
8768 /* We use char because int might match the return type of a gcc2
8769    builtin and then its argument prototype would still apply.  */
8770 char $ac_func ();
8771 char (*f) ();
8772
8773 #ifdef F77_DUMMY_MAIN
8774 #  ifdef __cplusplus
8775      extern "C"
8776 #  endif
8777    int F77_DUMMY_MAIN() { return 1; }
8778 #endif
8779 int
8780 main ()
8781 {
8782 /* The GNU C library defines this for functions which it implements
8783     to always fail with ENOSYS.  Some functions are actually named
8784     something starting with __ and the normal name is an alias.  */
8785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8786 choke me
8787 #else
8788 f = $ac_func;
8789 #endif
8790
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797   (eval $ac_link) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } &&
8801          { ac_try='test -s conftest$ac_exeext'
8802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803   (eval $ac_try) 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); }; }; then
8807   eval "$as_ac_var=yes"
8808 else
8809   echo "$as_me: failed program was:" >&5
8810 cat conftest.$ac_ext >&5
8811 eval "$as_ac_var=no"
8812 fi
8813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8814 fi
8815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8817 if test `eval echo '${'$as_ac_var'}'` = yes; then
8818   cat >>confdefs.h <<_ACEOF
8819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8820 _ACEOF
8821
8822 else
8823   mutt_cv_snprintf=yes
8824 fi
8825 done
8826
8827
8828 for ac_func in vsnprintf
8829 do
8830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8831 echo "$as_me:$LINENO: checking for $ac_func" >&5
8832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8833 if eval "test \"\${$as_ac_var+set}\" = set"; then
8834   echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836   cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 /* System header to define __stub macros and hopefully few prototypes,
8840     which can conflict with char $ac_func (); below.  */
8841 #include <assert.h>
8842 /* Override any gcc2 internal prototype to avoid an error.  */
8843 #ifdef __cplusplus
8844 extern "C"
8845 #endif
8846 /* We use char because int might match the return type of a gcc2
8847    builtin and then its argument prototype would still apply.  */
8848 char $ac_func ();
8849 char (*f) ();
8850
8851 #ifdef F77_DUMMY_MAIN
8852 #  ifdef __cplusplus
8853      extern "C"
8854 #  endif
8855    int F77_DUMMY_MAIN() { return 1; }
8856 #endif
8857 int
8858 main ()
8859 {
8860 /* The GNU C library defines this for functions which it implements
8861     to always fail with ENOSYS.  Some functions are actually named
8862     something starting with __ and the normal name is an alias.  */
8863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8864 choke me
8865 #else
8866 f = $ac_func;
8867 #endif
8868
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875   (eval $ac_link) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } &&
8879          { ac_try='test -s conftest$ac_exeext'
8880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881   (eval $ac_try) 2>&5
8882   ac_status=$?
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); }; }; then
8885   eval "$as_ac_var=yes"
8886 else
8887   echo "$as_me: failed program was:" >&5
8888 cat conftest.$ac_ext >&5
8889 eval "$as_ac_var=no"
8890 fi
8891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8892 fi
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8895 if test `eval echo '${'$as_ac_var'}'` = yes; then
8896   cat >>confdefs.h <<_ACEOF
8897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8898 _ACEOF
8899
8900 else
8901   mutt_cv_snprintf=yes
8902 fi
8903 done
8904
8905 if test $mutt_cv_snprintf = yes; then
8906         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8907 fi
8908
8909
8910 for ac_func in ftruncate
8911 do
8912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8913 echo "$as_me:$LINENO: checking for $ac_func" >&5
8914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8915 if eval "test \"\${$as_ac_var+set}\" = set"; then
8916   echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918   cat >conftest.$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8920 #include "confdefs.h"
8921 /* System header to define __stub macros and hopefully few prototypes,
8922     which can conflict with char $ac_func (); below.  */
8923 #include <assert.h>
8924 /* Override any gcc2 internal prototype to avoid an error.  */
8925 #ifdef __cplusplus
8926 extern "C"
8927 #endif
8928 /* We use char because int might match the return type of a gcc2
8929    builtin and then its argument prototype would still apply.  */
8930 char $ac_func ();
8931 char (*f) ();
8932
8933 #ifdef F77_DUMMY_MAIN
8934 #  ifdef __cplusplus
8935      extern "C"
8936 #  endif
8937    int F77_DUMMY_MAIN() { return 1; }
8938 #endif
8939 int
8940 main ()
8941 {
8942 /* The GNU C library defines this for functions which it implements
8943     to always fail with ENOSYS.  Some functions are actually named
8944     something starting with __ and the normal name is an alias.  */
8945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8946 choke me
8947 #else
8948 f = $ac_func;
8949 #endif
8950
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957   (eval $ac_link) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } &&
8961          { ac_try='test -s conftest$ac_exeext'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   eval "$as_ac_var=yes"
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 eval "$as_ac_var=no"
8972 fi
8973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8974 fi
8975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8977 if test `eval echo '${'$as_ac_var'}'` = yes; then
8978   cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8980 _ACEOF
8981
8982 else
8983
8984 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8985 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8986 if test "${ac_cv_lib_x_chsize+set}" = set; then
8987   echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989   ac_check_lib_save_LIBS=$LIBS
8990 LIBS="-lx  $LIBS"
8991 cat >conftest.$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8993 #include "confdefs.h"
8994
8995 /* Override any gcc2 internal prototype to avoid an error.  */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 /* We use char because int might match the return type of a gcc2
9000    builtin and then its argument prototype would still apply.  */
9001 char chsize ();
9002 #ifdef F77_DUMMY_MAIN
9003 #  ifdef __cplusplus
9004      extern "C"
9005 #  endif
9006    int F77_DUMMY_MAIN() { return 1; }
9007 #endif
9008 int
9009 main ()
9010 {
9011 chsize ();
9012   ;
9013   return 0;
9014 }
9015 _ACEOF
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018   (eval $ac_link) 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); } &&
9022          { ac_try='test -s conftest$ac_exeext'
9023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024   (eval $ac_try) 2>&5
9025   ac_status=$?
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); }; }; then
9028   ac_cv_lib_x_chsize=yes
9029 else
9030   echo "$as_me: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9032 ac_cv_lib_x_chsize=no
9033 fi
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
9038 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
9039 if test $ac_cv_lib_x_chsize = yes; then
9040   cat >>confdefs.h <<_ACEOF
9041 #define HAVE_LIBX 1
9042 _ACEOF
9043
9044   LIBS="-lx $LIBS"
9045
9046 fi
9047
9048 fi
9049 done
9050
9051
9052
9053 for ac_func in strftime
9054 do
9055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056 echo "$as_me:$LINENO: checking for $ac_func" >&5
9057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9058 if eval "test \"\${$as_ac_var+set}\" = set"; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   cat >conftest.$ac_ext <<_ACEOF
9062 #line $LINENO "configure"
9063 #include "confdefs.h"
9064 /* System header to define __stub macros and hopefully few prototypes,
9065     which can conflict with char $ac_func (); below.  */
9066 #include <assert.h>
9067 /* Override any gcc2 internal prototype to avoid an error.  */
9068 #ifdef __cplusplus
9069 extern "C"
9070 #endif
9071 /* We use char because int might match the return type of a gcc2
9072    builtin and then its argument prototype would still apply.  */
9073 char $ac_func ();
9074 char (*f) ();
9075
9076 #ifdef F77_DUMMY_MAIN
9077 #  ifdef __cplusplus
9078      extern "C"
9079 #  endif
9080    int F77_DUMMY_MAIN() { return 1; }
9081 #endif
9082 int
9083 main ()
9084 {
9085 /* The GNU C library defines this for functions which it implements
9086     to always fail with ENOSYS.  Some functions are actually named
9087     something starting with __ and the normal name is an alias.  */
9088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9089 choke me
9090 #else
9091 f = $ac_func;
9092 #endif
9093
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100   (eval $ac_link) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } &&
9104          { ac_try='test -s conftest$ac_exeext'
9105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106   (eval $ac_try) 2>&5
9107   ac_status=$?
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); }; }; then
9110   eval "$as_ac_var=yes"
9111 else
9112   echo "$as_me: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9114 eval "$as_ac_var=no"
9115 fi
9116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9117 fi
9118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9120 if test `eval echo '${'$as_ac_var'}'` = yes; then
9121   cat >>confdefs.h <<_ACEOF
9122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9123 _ACEOF
9124
9125 else
9126
9127 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9128 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9129 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9130   echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132   ac_check_lib_save_LIBS=$LIBS
9133 LIBS="-lintl  $LIBS"
9134 cat >conftest.$ac_ext <<_ACEOF
9135 #line $LINENO "configure"
9136 #include "confdefs.h"
9137
9138 /* Override any gcc2 internal prototype to avoid an error.  */
9139 #ifdef __cplusplus
9140 extern "C"
9141 #endif
9142 /* We use char because int might match the return type of a gcc2
9143    builtin and then its argument prototype would still apply.  */
9144 char strftime ();
9145 #ifdef F77_DUMMY_MAIN
9146 #  ifdef __cplusplus
9147      extern "C"
9148 #  endif
9149    int F77_DUMMY_MAIN() { return 1; }
9150 #endif
9151 int
9152 main ()
9153 {
9154 strftime ();
9155   ;
9156   return 0;
9157 }
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161   (eval $ac_link) 2>&5
9162   ac_status=$?
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); } &&
9165          { ac_try='test -s conftest$ac_exeext'
9166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167   (eval $ac_try) 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); }; }; then
9171   ac_cv_lib_intl_strftime=yes
9172 else
9173   echo "$as_me: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9175 ac_cv_lib_intl_strftime=no
9176 fi
9177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9179 fi
9180 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9181 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9182 if test $ac_cv_lib_intl_strftime = yes; then
9183   cat >>confdefs.h <<_ACEOF
9184 #define HAVE_LIBINTL 1
9185 _ACEOF
9186
9187   LIBS="-lintl $LIBS"
9188
9189 fi
9190
9191 fi
9192 done
9193
9194
9195
9196 for ac_func in fchdir
9197 do
9198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9199 echo "$as_me:$LINENO: checking for $ac_func" >&5
9200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9201 if eval "test \"\${$as_ac_var+set}\" = set"; then
9202   echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204   cat >conftest.$ac_ext <<_ACEOF
9205 #line $LINENO "configure"
9206 #include "confdefs.h"
9207 /* System header to define __stub macros and hopefully few prototypes,
9208     which can conflict with char $ac_func (); below.  */
9209 #include <assert.h>
9210 /* Override any gcc2 internal prototype to avoid an error.  */
9211 #ifdef __cplusplus
9212 extern "C"
9213 #endif
9214 /* We use char because int might match the return type of a gcc2
9215    builtin and then its argument prototype would still apply.  */
9216 char $ac_func ();
9217 char (*f) ();
9218
9219 #ifdef F77_DUMMY_MAIN
9220 #  ifdef __cplusplus
9221      extern "C"
9222 #  endif
9223    int F77_DUMMY_MAIN() { return 1; }
9224 #endif
9225 int
9226 main ()
9227 {
9228 /* The GNU C library defines this for functions which it implements
9229     to always fail with ENOSYS.  Some functions are actually named
9230     something starting with __ and the normal name is an alias.  */
9231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9232 choke me
9233 #else
9234 f = $ac_func;
9235 #endif
9236
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 rm -f conftest.$ac_objext conftest$ac_exeext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243   (eval $ac_link) 2>&5
9244   ac_status=$?
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -s conftest$ac_exeext'
9248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249   (eval $ac_try) 2>&5
9250   ac_status=$?
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); }; }; then
9253   eval "$as_ac_var=yes"
9254 else
9255   echo "$as_me: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
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
9268 else
9269   mutt_cv_fchdir=no
9270 fi
9271 done
9272
9273
9274
9275 # Check whether --with-regex or --without-regex was given.
9276 if test "${with_regex+set}" = set; then
9277   withval="$with_regex"
9278   mutt_cv_regex=yes
9279 else
9280
9281 for ac_func in regcomp
9282 do
9283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9284 echo "$as_me:$LINENO: checking for $ac_func" >&5
9285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9286 if eval "test \"\${$as_ac_var+set}\" = set"; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   cat >conftest.$ac_ext <<_ACEOF
9290 #line $LINENO "configure"
9291 #include "confdefs.h"
9292 /* System header to define __stub macros and hopefully few prototypes,
9293     which can conflict with char $ac_func (); below.  */
9294 #include <assert.h>
9295 /* Override any gcc2 internal prototype to avoid an error.  */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 /* We use char because int might match the return type of a gcc2
9300    builtin and then its argument prototype would still apply.  */
9301 char $ac_func ();
9302 char (*f) ();
9303
9304 #ifdef F77_DUMMY_MAIN
9305 #  ifdef __cplusplus
9306      extern "C"
9307 #  endif
9308    int F77_DUMMY_MAIN() { return 1; }
9309 #endif
9310 int
9311 main ()
9312 {
9313 /* The GNU C library defines this for functions which it implements
9314     to always fail with ENOSYS.  Some functions are actually named
9315     something starting with __ and the normal name is an alias.  */
9316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9317 choke me
9318 #else
9319 f = $ac_func;
9320 #endif
9321
9322   ;
9323   return 0;
9324 }
9325 _ACEOF
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328   (eval $ac_link) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); } &&
9332          { ac_try='test -s conftest$ac_exeext'
9333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334   (eval $ac_try) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); }; }; then
9338   eval "$as_ac_var=yes"
9339 else
9340   echo "$as_me: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9342 eval "$as_ac_var=no"
9343 fi
9344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9345 fi
9346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9348 if test `eval echo '${'$as_ac_var'}'` = yes; then
9349   cat >>confdefs.h <<_ACEOF
9350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9351 _ACEOF
9352  mutt_cv_regex=no
9353 else
9354   mutt_cv_regex=yes
9355 fi
9356 done
9357
9358 fi;
9359
9360 if test $mutt_cv_regex = no ; then
9361 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9362 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9363 if test "${mutt_cv_regex_broken+set}" = set; then
9364   echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366   if test "$cross_compiling" = yes; then
9367   mutt_cv_regex_broken=yes
9368 else
9369   cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 #include "confdefs.h"
9372
9373 #include <unistd.h>
9374 #include <regex.h>
9375 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); }
9376 _ACEOF
9377 rm -f conftest$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379   (eval $ac_link) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   mutt_cv_regex_broken=no
9389 else
9390   echo "$as_me: program exited with status $ac_status" >&5
9391 echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 ( exit $ac_status )
9394 mutt_cv_regex_broken=yes
9395 fi
9396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9397 fi
9398 fi
9399 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9400 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9401         if test $mutt_cv_regex_broken = yes ; then
9402                 echo "Using the included GNU regex instead." >&6
9403                 mutt_cv_regex=yes
9404         fi
9405 fi
9406
9407 if test $mutt_cv_regex = yes; then
9408
9409 cat >>confdefs.h <<\_ACEOF
9410 #define USE_GNU_REGEX 1
9411 _ACEOF
9412
9413         LIBOBJS="$LIBOBJS regex.$ac_objext"
9414 fi
9415
9416
9417
9418 # Check whether --with-homespool or --without-homespool was given.
9419 if test "${with_homespool+set}" = set; then
9420   withval="$with_homespool"
9421   with_homespool=${withval}
9422 fi;
9423 if test x$with_homespool != x; then
9424         if test $with_homespool = yes; then
9425                 with_homespool=mailbox
9426         fi
9427
9428 cat >>confdefs.h <<_ACEOF
9429 #define MAILPATH "$with_homespool"
9430 _ACEOF
9431
9432
9433 cat >>confdefs.h <<\_ACEOF
9434 #define HOMESPOOL 1
9435 _ACEOF
9436
9437
9438 cat >>confdefs.h <<\_ACEOF
9439 #define USE_DOTLOCK 1
9440 _ACEOF
9441
9442         mutt_cv_setgid=no
9443 else
9444
9445 # Check whether --with-mailpath or --without-mailpath was given.
9446 if test "${with_mailpath+set}" = set; then
9447   withval="$with_mailpath"
9448   mutt_cv_mailpath=$withval
9449 else
9450    echo "$as_me:$LINENO: checking where new mail is stored" >&5
9451 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9452 if test "${mutt_cv_mailpath+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   mutt_cv_mailpath=no
9456                         if test -d /var/mail; then
9457                                 mutt_cv_mailpath=/var/mail
9458                         elif test -d /var/spool/mail; then
9459                                 mutt_cv_mailpath=/var/spool/mail
9460                         elif test -d /usr/spool/mail; then
9461                                 mutt_cv_mailpath=/usr/spool/mail
9462                         elif test -d /usr/mail; then
9463                                 mutt_cv_mailpath=/usr/mail
9464                         fi
9465 fi
9466 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9467 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9468
9469 fi;
9470         if test "$mutt_cv_mailpath" = no; then
9471                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9472 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9473    { (exit 1); exit 1; }; }
9474         fi
9475
9476 cat >>confdefs.h <<_ACEOF
9477 #define MAILPATH "$mutt_cv_mailpath"
9478 _ACEOF
9479
9480
9481         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9482 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9483 if test "${mutt_cv_worldwrite+set}" = set; then
9484   echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486   if test "$cross_compiling" = yes; then
9487   mutt_cv_worldwrite=no
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 #include "confdefs.h"
9492 #include <sys/types.h>
9493 #include <sys/stat.h>
9494
9495 int main (int argc, char **argv)
9496 {
9497         struct stat s;
9498
9499         stat ("$mutt_cv_mailpath", &s);
9500         if (s.st_mode & S_IWOTH) exit (0);
9501         exit (1);
9502 }
9503 _ACEOF
9504 rm -f conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506   (eval $ac_link) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511   (eval $ac_try) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); }; }; then
9515   mutt_cv_worldwrite=yes
9516 else
9517   echo "$as_me: program exited with status $ac_status" >&5
9518 echo "$as_me: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 ( exit $ac_status )
9521 mutt_cv_worldwrite=no
9522 fi
9523 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9524 fi
9525 fi
9526 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9527 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9528
9529         mutt_cv_setgid=no
9530         if test $mutt_cv_worldwrite = yes; then
9531
9532 cat >>confdefs.h <<\_ACEOF
9533 #define USE_DOTLOCK 1
9534 _ACEOF
9535
9536         else
9537
9538                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9539 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9540 if test "${mutt_cv_groupwrite+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   if test "$cross_compiling" = yes; then
9544   mutt_cv_groupwrite=no
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9549 #include <sys/types.h>
9550 #include <sys/stat.h>
9551
9552 int main (int argc, char **argv)
9553 {
9554         struct stat s;
9555
9556         stat ("$mutt_cv_mailpath", &s);
9557         if (s.st_mode & S_IWGRP) exit (0);
9558         exit (1);
9559 }
9560 _ACEOF
9561 rm -f conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563   (eval $ac_link) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; }; then
9572   mutt_cv_groupwrite=yes
9573 else
9574   echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9577 ( exit $ac_status )
9578 mutt_cv_groupwrite=no
9579 fi
9580 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9581 fi
9582 fi
9583 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9584 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9585
9586                 if test $mutt_cv_groupwrite = yes; then
9587
9588 cat >>confdefs.h <<\_ACEOF
9589 #define USE_DOTLOCK 1
9590 _ACEOF
9591
9592
9593 cat >>confdefs.h <<\_ACEOF
9594 #define USE_SETGID 1
9595 _ACEOF
9596
9597                         mutt_cv_setgid=yes
9598                 fi
9599         fi
9600 fi
9601
9602 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9603 if test "${enable_external_dotlock+set}" = set; then
9604   enableval="$enable_external_dotlock"
9605   mutt_cv_external_dotlock="$enableval"
9606 fi;
9607
9608 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9609         || test "x$mutt_cv_external_dotlock" = "xyes"
9610 then
9611
9612 cat >>confdefs.h <<\_ACEOF
9613 #define DL_STANDALONE 1
9614 _ACEOF
9615
9616         DOTLOCK_TARGET="muttng_dotlock"
9617 else
9618         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9619 fi
9620
9621
9622
9623
9624 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9625 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9626
9627 # Check whether --with-docdir or --without-docdir was given.
9628 if test "${with_docdir+set}" = set; then
9629   withval="$with_docdir"
9630   mutt_cv_docdir=$withval
9631 else
9632   mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
9633 fi;
9634 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9635 echo "${ECHO_T}$mutt_cv_docdir" >&6
9636
9637 docdir=$mutt_cv_docdir
9638
9639
9640 if test x$mutt_cv_setgid = xyes; then
9641         DOTLOCK_GROUP='mail'
9642         DOTLOCK_PERMISSION=2755
9643 else
9644         DOTLOCK_GROUP=''
9645         DOTLOCK_PERMISSION=755
9646 fi
9647
9648
9649
9650
9651 # Check whether --with-domain or --without-domain was given.
9652 if test "${with_domain+set}" = set; then
9653   withval="$with_domain"
9654   if test $withval != yes; then
9655
9656 cat >>confdefs.h <<_ACEOF
9657 #define DOMAIN "$withval"
9658 _ACEOF
9659
9660         fi
9661 fi;
9662
9663 need_socket="no"
9664
9665
9666 # Check whether --enable-pop or --disable-pop was given.
9667 if test "${enable_pop+set}" = set; then
9668   enableval="$enable_pop"
9669          if test x$enableval = xyes ; then
9670
9671 cat >>confdefs.h <<\_ACEOF
9672 #define USE_POP 1
9673 _ACEOF
9674
9675                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9676                 need_socket="yes"
9677                 need_pop="yes"
9678                 need_md5="yes"
9679         fi
9680
9681 fi;
9682
9683 # Check whether --enable-imap or --disable-imap was given.
9684 if test "${enable_imap+set}" = set; then
9685   enableval="$enable_imap"
9686          if test x$enableval = xyes ; then
9687
9688 cat >>confdefs.h <<\_ACEOF
9689 #define USE_IMAP 1
9690 _ACEOF
9691
9692                 LIBIMAP="-Limap -limap"
9693                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9694                 need_imap="yes"
9695                 need_socket="yes"
9696                 need_md5="yes"
9697         fi
9698
9699 fi;
9700
9701
9702 if test x$need_imap = xyes; then
9703   BUILD_IMAP_TRUE=
9704   BUILD_IMAP_FALSE='#'
9705 else
9706   BUILD_IMAP_TRUE='#'
9707   BUILD_IMAP_FALSE=
9708 fi
9709
9710 # Check whether --enable-nntp or --disable-nntp was given.
9711 if test "${enable_nntp+set}" = set; then
9712   enableval="$enable_nntp"
9713         if test x$enableval = xyes ; then
9714                 cat >>confdefs.h <<\_ACEOF
9715 #define USE_NNTP 1
9716 _ACEOF
9717
9718                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9719                 need_socket="yes"
9720         fi
9721
9722 fi;
9723
9724
9725 if test "$need_socket" = "yes"
9726 then
9727         echo "$as_me:$LINENO: checking for socklen_t" >&5
9728 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9729         cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 #include "confdefs.h"
9732 #include <sys/socket.h>
9733
9734 _ACEOF
9735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9736   egrep "socklen_t" >/dev/null 2>&1; then
9737   echo "$as_me:$LINENO: result: yes" >&5
9738 echo "${ECHO_T}yes" >&6
9739 else
9740   echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6
9742
9743 cat >>confdefs.h <<\_ACEOF
9744 #define socklen_t int
9745 _ACEOF
9746
9747 fi
9748 rm -f conftest*
9749
9750         echo "$as_me:$LINENO: checking for gethostent" >&5
9751 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9752 if test "${ac_cv_func_gethostent+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755   cat >conftest.$ac_ext <<_ACEOF
9756 #line $LINENO "configure"
9757 #include "confdefs.h"
9758 /* System header to define __stub macros and hopefully few prototypes,
9759     which can conflict with char gethostent (); below.  */
9760 #include <assert.h>
9761 /* Override any gcc2 internal prototype to avoid an error.  */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 /* We use char because int might match the return type of a gcc2
9766    builtin and then its argument prototype would still apply.  */
9767 char gethostent ();
9768 char (*f) ();
9769
9770 #ifdef F77_DUMMY_MAIN
9771 #  ifdef __cplusplus
9772      extern "C"
9773 #  endif
9774    int F77_DUMMY_MAIN() { return 1; }
9775 #endif
9776 int
9777 main ()
9778 {
9779 /* The GNU C library defines this for functions which it implements
9780     to always fail with ENOSYS.  Some functions are actually named
9781     something starting with __ and the normal name is an alias.  */
9782 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9783 choke me
9784 #else
9785 f = gethostent;
9786 #endif
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794   (eval $ac_link) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -s conftest$ac_exeext'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; }; then
9804   ac_cv_func_gethostent=yes
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 cat conftest.$ac_ext >&5
9808 ac_cv_func_gethostent=no
9809 fi
9810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9811 fi
9812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9813 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9814 if test $ac_cv_func_gethostent = yes; then
9815   :
9816 else
9817
9818 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9819 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9820 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   ac_check_lib_save_LIBS=$LIBS
9824 LIBS="-lnsl  $LIBS"
9825 cat >conftest.$ac_ext <<_ACEOF
9826 #line $LINENO "configure"
9827 #include "confdefs.h"
9828
9829 /* Override any gcc2 internal prototype to avoid an error.  */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 /* We use char because int might match the return type of a gcc2
9834    builtin and then its argument prototype would still apply.  */
9835 char gethostent ();
9836 #ifdef F77_DUMMY_MAIN
9837 #  ifdef __cplusplus
9838      extern "C"
9839 #  endif
9840    int F77_DUMMY_MAIN() { return 1; }
9841 #endif
9842 int
9843 main ()
9844 {
9845 gethostent ();
9846   ;
9847   return 0;
9848 }
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852   (eval $ac_link) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -s conftest$ac_exeext'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; }; then
9862   ac_cv_lib_nsl_gethostent=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 ac_cv_lib_nsl_gethostent=no
9867 fi
9868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9870 fi
9871 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9872 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9873 if test $ac_cv_lib_nsl_gethostent = yes; then
9874   cat >>confdefs.h <<_ACEOF
9875 #define HAVE_LIBNSL 1
9876 _ACEOF
9877
9878   LIBS="-lnsl $LIBS"
9879
9880 fi
9881
9882 fi
9883
9884         echo "$as_me:$LINENO: checking for setsockopt" >&5
9885 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9886 if test "${ac_cv_func_setsockopt+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9891 #include "confdefs.h"
9892 /* System header to define __stub macros and hopefully few prototypes,
9893     which can conflict with char setsockopt (); below.  */
9894 #include <assert.h>
9895 /* Override any gcc2 internal prototype to avoid an error.  */
9896 #ifdef __cplusplus
9897 extern "C"
9898 #endif
9899 /* We use char because int might match the return type of a gcc2
9900    builtin and then its argument prototype would still apply.  */
9901 char setsockopt ();
9902 char (*f) ();
9903
9904 #ifdef F77_DUMMY_MAIN
9905 #  ifdef __cplusplus
9906      extern "C"
9907 #  endif
9908    int F77_DUMMY_MAIN() { return 1; }
9909 #endif
9910 int
9911 main ()
9912 {
9913 /* The GNU C library defines this for functions which it implements
9914     to always fail with ENOSYS.  Some functions are actually named
9915     something starting with __ and the normal name is an alias.  */
9916 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9917 choke me
9918 #else
9919 f = setsockopt;
9920 #endif
9921
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928   (eval $ac_link) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } &&
9932          { ac_try='test -s conftest$ac_exeext'
9933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; }; then
9938   ac_cv_func_setsockopt=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9942 ac_cv_func_setsockopt=no
9943 fi
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9945 fi
9946 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9947 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9948 if test $ac_cv_func_setsockopt = yes; then
9949   :
9950 else
9951
9952 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9953 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9954 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   ac_check_lib_save_LIBS=$LIBS
9958 LIBS="-lsocket  $LIBS"
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line $LINENO "configure"
9961 #include "confdefs.h"
9962
9963 /* Override any gcc2 internal prototype to avoid an error.  */
9964 #ifdef __cplusplus
9965 extern "C"
9966 #endif
9967 /* We use char because int might match the return type of a gcc2
9968    builtin and then its argument prototype would still apply.  */
9969 char setsockopt ();
9970 #ifdef F77_DUMMY_MAIN
9971 #  ifdef __cplusplus
9972      extern "C"
9973 #  endif
9974    int F77_DUMMY_MAIN() { return 1; }
9975 #endif
9976 int
9977 main ()
9978 {
9979 setsockopt ();
9980   ;
9981   return 0;
9982 }
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986   (eval $ac_link) 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } &&
9990          { ac_try='test -s conftest$ac_exeext'
9991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992   (eval $ac_try) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; }; then
9996   ac_cv_lib_socket_setsockopt=yes
9997 else
9998   echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 ac_cv_lib_socket_setsockopt=no
10001 fi
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10004 fi
10005 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10006 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
10007 if test $ac_cv_lib_socket_setsockopt = yes; then
10008   cat >>confdefs.h <<_ACEOF
10009 #define HAVE_LIBSOCKET 1
10010 _ACEOF
10011
10012   LIBS="-lsocket $LIBS"
10013
10014 fi
10015
10016 fi
10017
10018
10019 for ac_func in getaddrinfo
10020 do
10021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10022 echo "$as_me:$LINENO: checking for $ac_func" >&5
10023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10024 if eval "test \"\${$as_ac_var+set}\" = set"; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 #include "confdefs.h"
10030 /* System header to define __stub macros and hopefully few prototypes,
10031     which can conflict with char $ac_func (); below.  */
10032 #include <assert.h>
10033 /* Override any gcc2 internal prototype to avoid an error.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 /* We use char because int might match the return type of a gcc2
10038    builtin and then its argument prototype would still apply.  */
10039 char $ac_func ();
10040 char (*f) ();
10041
10042 #ifdef F77_DUMMY_MAIN
10043 #  ifdef __cplusplus
10044      extern "C"
10045 #  endif
10046    int F77_DUMMY_MAIN() { return 1; }
10047 #endif
10048 int
10049 main ()
10050 {
10051 /* The GNU C library defines this for functions which it implements
10052     to always fail with ENOSYS.  Some functions are actually named
10053     something starting with __ and the normal name is an alias.  */
10054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10055 choke me
10056 #else
10057 f = $ac_func;
10058 #endif
10059
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066   (eval $ac_link) 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -s conftest$ac_exeext'
10071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072   (eval $ac_try) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; }; then
10076   eval "$as_ac_var=yes"
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10080 eval "$as_ac_var=no"
10081 fi
10082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10083 fi
10084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10086 if test `eval echo '${'$as_ac_var'}'` = yes; then
10087   cat >>confdefs.h <<_ACEOF
10088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10089 _ACEOF
10090
10091 fi
10092 done
10093
10094
10095 cat >>confdefs.h <<\_ACEOF
10096 #define USE_SOCKET 1
10097 _ACEOF
10098
10099         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10100 fi
10101
10102
10103
10104 # Check whether --with-gss or --without-gss was given.
10105 if test "${with_gss+set}" = set; then
10106   withval="$with_gss"
10107   gss_prefix="$withval"
10108 else
10109   gss_prefix="no"
10110 fi;
10111 if test "$gss_prefix" != "no"
10112 then
10113   if test "$need_imap" = "yes"
10114   then
10115
10116   GSSAPI_PREFIX=$gss_prefix
10117   GSSAPI_IMPL="none"
10118   saved_CPPFLAGS="$CPPFLAGS"
10119   saved_LDFLAGS="$LDFLAGS"
10120   saved_LIBS="$LIBS"
10121     if test "$GSSAPI_PREFIX" != "yes"
10122   then
10123     krb5_path="$GSSAPI_PREFIX/bin"
10124   else
10125     krb5_path="$PATH"
10126   fi
10127   # Extract the first word of "krb5-config", so it can be a program name with args.
10128 set dummy krb5-config; ac_word=$2
10129 echo "$as_me:$LINENO: checking for $ac_word" >&5
10130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10131 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   case $KRB5CFGPATH in
10135   [\\/]* | ?:[\\/]*)
10136   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10137   ;;
10138   *)
10139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $krb5_path
10141 do
10142   IFS=$as_save_IFS
10143   test -z "$as_dir" && as_dir=.
10144   for ac_exec_ext in '' $ac_executable_extensions; do
10145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10146     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10148     break 2
10149   fi
10150 done
10151 done
10152
10153   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10154   ;;
10155 esac
10156 fi
10157 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10158
10159 if test -n "$KRB5CFGPATH"; then
10160   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10161 echo "${ECHO_T}$KRB5CFGPATH" >&6
10162 else
10163   echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10165 fi
10166
10167   if test "$KRB5CFGPATH" != "none"
10168   then
10169     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10170     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10171     case "`$KRB5CFGPATH --version`" in
10172       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
10173       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
10174       *)                GSSAPI_IMPL="Unknown";;
10175    esac
10176   else
10177         if test "$GSSAPI_PREFIX" != "yes"
10178     then
10179       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10180       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10181       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10182       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10183     fi
10184
10185         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10186 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10187 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10188   echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190   ac_check_lib_save_LIBS=$LIBS
10191 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10192 cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 #include "confdefs.h"
10195
10196 /* Override any gcc2 internal prototype to avoid an error.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 /* We use char because int might match the return type of a gcc2
10201    builtin and then its argument prototype would still apply.  */
10202 char gss_init_sec_context ();
10203 #ifdef F77_DUMMY_MAIN
10204 #  ifdef __cplusplus
10205      extern "C"
10206 #  endif
10207    int F77_DUMMY_MAIN() { return 1; }
10208 #endif
10209 int
10210 main ()
10211 {
10212 gss_init_sec_context ();
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219   (eval $ac_link) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -s conftest$ac_exeext'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10234 fi
10235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10236 LIBS=$ac_check_lib_save_LIBS
10237 fi
10238 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10239 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10240 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10241
10242       GSSAPI_IMPL="MIT",
10243       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10244
10245 fi
10246
10247
10248         if test "$GSSAPI_IMPL" = "none"
10249     then
10250       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10251 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10252 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10253   echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255   ac_check_lib_save_LIBS=$LIBS
10256 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10257 cat >conftest.$ac_ext <<_ACEOF
10258 #line $LINENO "configure"
10259 #include "confdefs.h"
10260
10261 /* Override any gcc2 internal prototype to avoid an error.  */
10262 #ifdef __cplusplus
10263 extern "C"
10264 #endif
10265 /* We use char because int might match the return type of a gcc2
10266    builtin and then its argument prototype would still apply.  */
10267 char gss_init_sec_context ();
10268 #ifdef F77_DUMMY_MAIN
10269 #  ifdef __cplusplus
10270      extern "C"
10271 #  endif
10272    int F77_DUMMY_MAIN() { return 1; }
10273 #endif
10274 int
10275 main ()
10276 {
10277 gss_init_sec_context ();
10278   ;
10279   return 0;
10280 }
10281 _ACEOF
10282 rm -f conftest.$ac_objext conftest$ac_exeext
10283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10284   (eval $ac_link) 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); } &&
10288          { ac_try='test -s conftest$ac_exeext'
10289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290   (eval $ac_try) 2>&5
10291   ac_status=$?
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); }; }; then
10294   ac_cv_lib_gssapi_gss_init_sec_context=yes
10295 else
10296   echo "$as_me: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10298 ac_cv_lib_gssapi_gss_init_sec_context=no
10299 fi
10300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10301 LIBS=$ac_check_lib_save_LIBS
10302 fi
10303 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10304 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10305 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10306
10307           GSSAPI_IMPL="Heimdal"
10308           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10309           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10310
10311 fi
10312
10313     fi
10314
10315                             if test "$GSSAPI_IMPL" = "none"
10316     then
10317       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10318 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10319 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322   ac_check_lib_save_LIBS=$LIBS
10323 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10324 cat >conftest.$ac_ext <<_ACEOF
10325 #line $LINENO "configure"
10326 #include "confdefs.h"
10327
10328 /* Override any gcc2 internal prototype to avoid an error.  */
10329 #ifdef __cplusplus
10330 extern "C"
10331 #endif
10332 /* We use char because int might match the return type of a gcc2
10333    builtin and then its argument prototype would still apply.  */
10334 char g_order_init ();
10335 #ifdef F77_DUMMY_MAIN
10336 #  ifdef __cplusplus
10337      extern "C"
10338 #  endif
10339    int F77_DUMMY_MAIN() { return 1; }
10340 #endif
10341 int
10342 main ()
10343 {
10344 g_order_init ();
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351   (eval $ac_link) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -s conftest$ac_exeext'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; }; then
10361   ac_cv_lib_gssapi_krb5_g_order_init=yes
10362 else
10363   echo "$as_me: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 ac_cv_lib_gssapi_krb5_g_order_init=no
10366 fi
10367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10368 LIBS=$ac_check_lib_save_LIBS
10369 fi
10370 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10371 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10372 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10373
10374         GSSAPI_IMPL="OldMIT",
10375         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10376
10377 fi
10378
10379     fi
10380   fi
10381
10382   CPPFLAGS="$saved_CPPFLAGS"
10383   LDFLAGS="$saved_LDFLAGS"
10384   LIBS="$saved_LIBS"
10385
10386     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10387 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10388     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10389 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10390     if test "$GSSAPI_IMPL" = "none"
10391     then
10392       cat >confcache <<\_ACEOF
10393 # This file is a shell script that caches the results of configure
10394 # tests run on this system so they can be shared between configure
10395 # scripts and configure runs, see configure's option --config-cache.
10396 # It is not useful on other systems.  If it contains results you don't
10397 # want to keep, you may remove or edit it.
10398 #
10399 # config.status only pays attention to the cache file if you give it
10400 # the --recheck option to rerun configure.
10401 #
10402 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10404 # following values.
10405
10406 _ACEOF
10407
10408 # The following way of writing the cache mishandles newlines in values,
10409 # but we know of no workaround that is simple, portable, and efficient.
10410 # So, don't put newlines in cache variables' values.
10411 # Ultrix sh set writes to stderr and can't be redirected directly,
10412 # and sets the high bit in the cache file unless we assign to the vars.
10413 {
10414   (set) 2>&1 |
10415     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10416     *ac_space=\ *)
10417       # `set' does not quote correctly, so add quotes (double-quote
10418       # substitution turns \\\\ into \\, and sed turns \\ into \).
10419       sed -n \
10420         "s/'/'\\\\''/g;
10421           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10422       ;;
10423     *)
10424       # `set' quotes correctly as required by POSIX, so do not add quotes.
10425       sed -n \
10426         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10427       ;;
10428     esac;
10429 } |
10430   sed '
10431      t clear
10432      : clear
10433      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10434      t end
10435      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10436      : end' >>confcache
10437 if cmp -s $cache_file confcache; then :; else
10438   if test -w $cache_file; then
10439     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10440     cat confcache >$cache_file
10441   else
10442     echo "not updating unwritable cache $cache_file"
10443   fi
10444 fi
10445 rm -f confcache
10446       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10447 echo "${ECHO_T}GSSAPI libraries not found" >&6
10448     fi
10449     if test "$GSSAPI_IMPL" = "Heimdal"
10450     then
10451
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_HEIMDAL 1
10454 _ACEOF
10455
10456     fi
10457     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10458     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define USE_GSS 1
10462 _ACEOF
10463
10464     need_gss="yes"
10465   else
10466     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10467 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10468   fi
10469 fi
10470
10471
10472 if test x$need_gss = xyes; then
10473   USE_GSS_TRUE=
10474   USE_GSS_FALSE='#'
10475 else
10476   USE_GSS_TRUE='#'
10477   USE_GSS_FALSE=
10478 fi
10479
10480
10481
10482 # Check whether --with-ssl or --without-ssl was given.
10483 if test "${with_ssl+set}" = set; then
10484   withval="$with_ssl"
10485          if test "$with_ssl" != "no"
10486         then
10487           if test "$need_socket" != "yes"; then
10488            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10489 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10490    { (exit 1); exit 1; }; }
10491           fi
10492
10493           if test "$with_ssl" != "yes"
10494           then
10495            LDFLAGS="$LDFLAGS -L$withval/lib"
10496            CPPFLAGS="$CPPFLAGS -I$withval/include"
10497           fi
10498           saved_LIBS="$LIBS"
10499
10500
10501 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10502 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10503 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-lcrypto  $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511
10512 /* Override any gcc2 internal prototype to avoid an error.  */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 /* We use char because int might match the return type of a gcc2
10517    builtin and then its argument prototype would still apply.  */
10518 char X509_new ();
10519 #ifdef F77_DUMMY_MAIN
10520 #  ifdef __cplusplus
10521      extern "C"
10522 #  endif
10523    int F77_DUMMY_MAIN() { return 1; }
10524 #endif
10525 int
10526 main ()
10527 {
10528 X509_new ();
10529   ;
10530   return 0;
10531 }
10532 _ACEOF
10533 rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535   (eval $ac_link) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -s conftest$ac_exeext'
10540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541   (eval $ac_try) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); }; }; then
10545   ac_cv_lib_crypto_X509_new=yes
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10549 ac_cv_lib_crypto_X509_new=no
10550 fi
10551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10553 fi
10554 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10555 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10556 if test $ac_cv_lib_crypto_X509_new = yes; then
10557   cat >>confdefs.h <<_ACEOF
10558 #define HAVE_LIBCRYPTO 1
10559 _ACEOF
10560
10561   LIBS="-lcrypto $LIBS"
10562
10563 else
10564   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10565 echo "$as_me: error: Unable to find SSL library" >&2;}
10566    { (exit 1); exit 1; }; }
10567 fi
10568
10569
10570 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10571 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10572 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lssl -lcrypto $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 #include "confdefs.h"
10580
10581 /* Override any gcc2 internal prototype to avoid an error.  */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 /* We use char because int might match the return type of a gcc2
10586    builtin and then its argument prototype would still apply.  */
10587 char SSL_new ();
10588 #ifdef F77_DUMMY_MAIN
10589 #  ifdef __cplusplus
10590      extern "C"
10591 #  endif
10592    int F77_DUMMY_MAIN() { return 1; }
10593 #endif
10594 int
10595 main ()
10596 {
10597 SSL_new ();
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604   (eval $ac_link) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -s conftest$ac_exeext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614   ac_cv_lib_ssl_SSL_new=yes
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 ac_cv_lib_ssl_SSL_new=no
10619 fi
10620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10622 fi
10623 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10624 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10625 if test $ac_cv_lib_ssl_SSL_new = yes; then
10626   cat >>confdefs.h <<_ACEOF
10627 #define HAVE_LIBSSL 1
10628 _ACEOF
10629
10630   LIBS="-lssl $LIBS"
10631
10632 else
10633   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10634 echo "$as_me: error: Unable to find SSL library" >&2;}
10635    { (exit 1); exit 1; }; }
10636 fi
10637
10638
10639
10640
10641 for ac_func in RAND_status RAND_egd
10642 do
10643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10644 echo "$as_me:$LINENO: checking for $ac_func" >&5
10645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10646 if eval "test \"\${$as_ac_var+set}\" = set"; then
10647   echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649   cat >conftest.$ac_ext <<_ACEOF
10650 #line $LINENO "configure"
10651 #include "confdefs.h"
10652 /* System header to define __stub macros and hopefully few prototypes,
10653     which can conflict with char $ac_func (); below.  */
10654 #include <assert.h>
10655 /* Override any gcc2 internal prototype to avoid an error.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 /* We use char because int might match the return type of a gcc2
10660    builtin and then its argument prototype would still apply.  */
10661 char $ac_func ();
10662 char (*f) ();
10663
10664 #ifdef F77_DUMMY_MAIN
10665 #  ifdef __cplusplus
10666      extern "C"
10667 #  endif
10668    int F77_DUMMY_MAIN() { return 1; }
10669 #endif
10670 int
10671 main ()
10672 {
10673 /* The GNU C library defines this for functions which it implements
10674     to always fail with ENOSYS.  Some functions are actually named
10675     something starting with __ and the normal name is an alias.  */
10676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10677 choke me
10678 #else
10679 f = $ac_func;
10680 #endif
10681
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688   (eval $ac_link) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } &&
10692          { ac_try='test -s conftest$ac_exeext'
10693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694   (eval $ac_try) 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); }; }; then
10698   eval "$as_ac_var=yes"
10699 else
10700   echo "$as_me: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10702 eval "$as_ac_var=no"
10703 fi
10704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10705 fi
10706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10708 if test `eval echo '${'$as_ac_var'}'` = yes; then
10709   cat >>confdefs.h <<_ACEOF
10710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10711 _ACEOF
10712
10713 fi
10714 done
10715
10716
10717
10718 cat >>confdefs.h <<\_ACEOF
10719 #define USE_SSL 1
10720 _ACEOF
10721
10722           LIBS="$saved_LIBS"
10723           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10724           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10725           need_ssl=yes
10726
10727         fi
10728
10729 fi;
10730
10731
10732 if test x$need_ssl = xyes; then
10733   USE_SSL_TRUE=
10734   USE_SSL_FALSE='#'
10735 else
10736   USE_SSL_TRUE='#'
10737   USE_SSL_FALSE=
10738 fi
10739
10740
10741 # Check whether --with-gnutls or --without-gnutls was given.
10742 if test "${with_gnutls+set}" = set; then
10743   withval="$with_gnutls"
10744      if test "$need_ssl" = "yes"
10745     then
10746       { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
10747 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
10748    { (exit 1); exit 1; }; }
10749     fi
10750     if test "$with_gnutls" != "no"
10751     then
10752       if test "$need_socket" != "yes"; then
10753         { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
10754 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
10755    { (exit 1); exit 1; }; }
10756       fi
10757       if test "$with_gnutls" != "yes"
10758       then
10759         LDFLAGS="$LDFLAGS -L$withval/lib"
10760         CPPFLAGS="$CPPFLAGS -I$withval/include"
10761       fi
10762 #saved_LIBS="$LIBS"
10763
10764
10765 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10766 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
10767 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770   ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-lgnutls  $LIBS"
10772 cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10775
10776 /* Override any gcc2 internal prototype to avoid an error.  */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 /* We use char because int might match the return type of a gcc2
10781    builtin and then its argument prototype would still apply.  */
10782 char gnutls_init ();
10783 #ifdef F77_DUMMY_MAIN
10784 #  ifdef __cplusplus
10785      extern "C"
10786 #  endif
10787    int F77_DUMMY_MAIN() { return 1; }
10788 #endif
10789 int
10790 main ()
10791 {
10792 gnutls_init ();
10793   ;
10794   return 0;
10795 }
10796 _ACEOF
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10799   (eval $ac_link) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); } &&
10803          { ac_try='test -s conftest$ac_exeext'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; }; then
10809   ac_cv_lib_gnutls_gnutls_init=yes
10810 else
10811   echo "$as_me: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10813 ac_cv_lib_gnutls_gnutls_init=no
10814 fi
10815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10817 fi
10818 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10819 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
10820 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10821   cat >>confdefs.h <<_ACEOF
10822 #define HAVE_LIBGNUTLS 1
10823 _ACEOF
10824
10825   LIBS="-lgnutls $LIBS"
10826
10827 else
10828   { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
10829 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
10830    { (exit 1); exit 1; }; }
10831 fi
10832
10833
10834
10835 cat >>confdefs.h <<\_ACEOF
10836 #define USE_GNUTLS 1
10837 _ACEOF
10838
10839 #LIBS="$saved_LIBS"
10840 #MUTTLIBS="$MUTTLIBS -lgnutls"
10841       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
10842       need_gnutls=yes
10843     fi
10844
10845 fi;
10846
10847
10848 if test x$need_gnutls = xyes; then
10849   USE_GNUTLS_TRUE=
10850   USE_GNUTLS_FALSE='#'
10851 else
10852   USE_GNUTLS_TRUE='#'
10853   USE_GNUTLS_FALSE=
10854 fi
10855
10856
10857 # Check whether --with-nss or --without-nss was given.
10858 if test "${with_nss+set}" = set; then
10859   withval="$with_nss"
10860          if test "$with_nss" != no
10861         then
10862           if test "$need_socket" != "yes"; then
10863            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10864 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10865    { (exit 1); exit 1; }; }
10866           fi
10867
10868           if test "$with_nss" != "yes"
10869           then
10870            LDFLAGS="$LDFLAGS -L$withval/lib"
10871            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10872           fi
10873
10874
10875 cat >>confdefs.h <<\_ACEOF
10876 #define USE_NSS 1
10877 _ACEOF
10878
10879           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10880           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10881           MUTTLIBS="$MUTTLIBS -lnspr4"
10882
10883           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10884           need_ssl=yes
10885         fi
10886
10887 fi;
10888
10889
10890 # Check whether --with-gnutls or --without-gnutls was given.
10891 if test "${with_gnutls+set}" = set; then
10892   withval="$with_gnutls"
10893   gnutls_prefix="$withval"
10894 else
10895   gnutls_prefix="no"
10896 fi;
10897 if test "$gnutls_prefix" != "no"
10898 then
10899   if test "$need_socket" != "yes"
10900   then
10901     { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10902 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10903    { (exit 1); exit 1; }; }
10904   fi
10905     libgnutls_config_prefix=$gnutls_prefix
10906   min_libgnutls_version=0.1.0
10907
10908   if test x$libgnutls_config_prefix != x ; then
10909      if test x${LIBGNUTLS_CONFIG+set} != xset ; then
10910         LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
10911      fi
10912   fi
10913
10914   # Extract the first word of "libgnutls-config", so it can be a program name with args.
10915 set dummy libgnutls-config; ac_word=$2
10916 echo "$as_me:$LINENO: checking for $ac_word" >&5
10917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10918 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921   case $LIBGNUTLS_CONFIG in
10922   [\\/]* | ?:[\\/]*)
10923   ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
10924   ;;
10925   *)
10926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10928 do
10929   IFS=$as_save_IFS
10930   test -z "$as_dir" && as_dir=.
10931   for ac_exec_ext in '' $ac_executable_extensions; do
10932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933     ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10935     break 2
10936   fi
10937 done
10938 done
10939
10940   test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
10941   ;;
10942 esac
10943 fi
10944 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
10945
10946 if test -n "$LIBGNUTLS_CONFIG"; then
10947   echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
10948 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
10949 else
10950   echo "$as_me:$LINENO: result: no" >&5
10951 echo "${ECHO_T}no" >&6
10952 fi
10953
10954   echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
10955 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
10956   no_libgnutls=""
10957   if test "$LIBGNUTLS_CONFIG" = "no" ; then
10958     no_libgnutls=yes
10959   else
10960     LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
10961     LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
10962     libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
10963
10964
10965       ac_save_CFLAGS="$CFLAGS"
10966       ac_save_LIBS="$LIBS"
10967       CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
10968       LIBS="$LIBS $LIBGNUTLS_LIBS"
10969
10970       rm -f conf.libgnutlstest
10971       if test "$cross_compiling" = yes; then
10972   echo $ac_n "cross compiling; assumed OK... $ac_c"
10973 else
10974   cat >conftest.$ac_ext <<_ACEOF
10975 #line $LINENO "configure"
10976 #include "confdefs.h"
10977
10978 #include <stdio.h>
10979 #include <stdlib.h>
10980 #include <string.h>
10981 #include <gnutls/gnutls.h>
10982
10983 int
10984 main ()
10985 {
10986     system ("touch conf.libgnutlstest");
10987
10988     if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
10989     {
10990       printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
10991              "$libgnutls_config_version", gnutls_check_version(NULL) );
10992       printf("*** was found! If libgnutls-config was correct, then it is best\n");
10993       printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
10994       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10995       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10996       printf("*** required on your system.\n");
10997       printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
10998       printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
10999       printf("*** before re-running configure\n");
11000     }
11001     else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
11002     {
11003       printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
11004       printf("*** library (version %s)\n", gnutls_check_version(NULL) );
11005     }
11006     else
11007     {
11008       if ( gnutls_check_version( "$min_libgnutls_version" ) )
11009       {
11010         return 0;
11011       }
11012      else
11013       {
11014         printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
11015                 gnutls_check_version(NULL) );
11016         printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
11017                "$min_libgnutls_version" );
11018         printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
11019         printf("*** \n");
11020         printf("*** If you have already installed a sufficiently new version, this error\n");
11021         printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
11022         printf("*** being found. The easiest way to fix this is to remove the old version\n");
11023         printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
11024         printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
11025         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11026         printf("*** so that the correct libraries are found at run-time))\n");
11027       }
11028     }
11029   return 1;
11030 }
11031
11032 _ACEOF
11033 rm -f conftest$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035   (eval $ac_link) 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040   (eval $ac_try) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; }; then
11044   :
11045 else
11046   echo "$as_me: program exited with status $ac_status" >&5
11047 echo "$as_me: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11049 ( exit $ac_status )
11050 no_libgnutls=yes
11051 fi
11052 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11053 fi
11054        CFLAGS="$ac_save_CFLAGS"
11055        LIBS="$ac_save_LIBS"
11056   fi
11057
11058   if test "x$no_libgnutls" = x ; then
11059      echo "$as_me:$LINENO: result: yes" >&5
11060 echo "${ECHO_T}yes" >&6
11061
11062 for ac_header in gnutls/openssl.h
11063 do
11064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11066   echo "$as_me:$LINENO: checking for $ac_header" >&5
11067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11069   echo $ECHO_N "(cached) $ECHO_C" >&6
11070 fi
11071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11073 else
11074   # Is the header compilable?
11075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11077 cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11079 #include "confdefs.h"
11080 $ac_includes_default
11081 #include <$ac_header>
11082 _ACEOF
11083 rm -f conftest.$ac_objext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085   (eval $ac_compile) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } &&
11089          { ac_try='test -s conftest.$ac_objext'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_header_compiler=yes
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11099 ac_header_compiler=no
11100 fi
11101 rm -f conftest.$ac_objext conftest.$ac_ext
11102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11103 echo "${ECHO_T}$ac_header_compiler" >&6
11104
11105 # Is the header present?
11106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11108 cat >conftest.$ac_ext <<_ACEOF
11109 #line $LINENO "configure"
11110 #include "confdefs.h"
11111 #include <$ac_header>
11112 _ACEOF
11113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11115   ac_status=$?
11116   egrep -v '^ *\+' conftest.er1 >conftest.err
11117   rm -f conftest.er1
11118   cat conftest.err >&5
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } >/dev/null; then
11121   if test -s conftest.err; then
11122     ac_cpp_err=$ac_c_preproc_warn_flag
11123   else
11124     ac_cpp_err=
11125   fi
11126 else
11127   ac_cpp_err=yes
11128 fi
11129 if test -z "$ac_cpp_err"; then
11130   ac_header_preproc=yes
11131 else
11132   echo "$as_me: failed program was:" >&5
11133   cat conftest.$ac_ext >&5
11134   ac_header_preproc=no
11135 fi
11136 rm -f conftest.err conftest.$ac_ext
11137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11138 echo "${ECHO_T}$ac_header_preproc" >&6
11139
11140 # So?  What about this header?
11141 case $ac_header_compiler:$ac_header_preproc in
11142   yes:no )
11143     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11147   no:yes )
11148     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11154 esac
11155 echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11158   echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160   eval "$as_ac_Header=$ac_header_preproc"
11161 fi
11162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164
11165 fi
11166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11167   cat >>confdefs.h <<_ACEOF
11168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11169 _ACEOF
11170
11171 fi
11172
11173 done
11174
11175          CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
11176     MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
11177
11178 cat >>confdefs.h <<\_ACEOF
11179 #define USE_GNUTLS 1
11180 _ACEOF
11181
11182
11183     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
11184     need_ssl=yes
11185   else
11186      if test -f conf.libgnutlstest ; then
11187         :
11188      else
11189         echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6
11191      fi
11192      if test "$LIBGNUTLS_CONFIG" = "no" ; then
11193        echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
11194        echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
11195        echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
11196        echo "*** full path to libgnutls-config."
11197      else
11198        if test -f conf.libgnutlstest ; then
11199         :
11200        else
11201           echo "*** Could not run libgnutls test program, checking why..."
11202           CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11203           LIBS="$LIBS $LIBGNUTLS_LIBS"
11204           cat >conftest.$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11206 #include "confdefs.h"
11207
11208 #include <stdio.h>
11209 #include <stdlib.h>
11210 #include <string.h>
11211 #include <gnutls/gnutls.h>
11212
11213 #ifdef F77_DUMMY_MAIN
11214 #  ifdef __cplusplus
11215      extern "C"
11216 #  endif
11217    int F77_DUMMY_MAIN() { return 1; }
11218 #endif
11219 int
11220 main ()
11221 {
11222  return !!gnutls_check_version(NULL);
11223   ;
11224   return 0;
11225 }
11226 _ACEOF
11227 rm -f conftest.$ac_objext conftest$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229   (eval $ac_link) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } &&
11233          { ac_try='test -s conftest$ac_exeext'
11234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235   (eval $ac_try) 2>&5
11236   ac_status=$?
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); }; }; then
11239    echo "*** The test program compiled, but did not run. This usually means"
11240           echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
11241           echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
11242           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11243           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11244           echo "*** is required on your system"
11245           echo "***"
11246           echo "*** If you have an old version installed, it is best to remove it, although"
11247           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11248           echo "***"
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11252  echo "*** The test program failed to compile or link. See the file config.log for the"
11253           echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
11254           echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
11255           echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
11256 fi
11257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11258           CFLAGS="$ac_save_CFLAGS"
11259           LIBS="$ac_save_LIBS"
11260        fi
11261      fi
11262      LIBGNUTLS_CFLAGS=""
11263      LIBGNUTLS_LIBS=""
11264            { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
11265 echo "$as_me: error: could not find libgnutls" >&2;}
11266    { (exit 1); exit 1; }; }
11267
11268   fi
11269   rm -f conf.libgnutlstest
11270
11271
11272
11273 fi
11274
11275
11276 # Check whether --with-sasl or --without-sasl was given.
11277 if test "${with_sasl+set}" = set; then
11278   withval="$with_sasl"
11279
11280         if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
11281         then
11282           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
11283 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
11284    { (exit 1); exit 1; }; }
11285         fi
11286
11287         if test "$with_sasl" != "no"
11288         then
11289           if test "$with_sasl" != "yes"
11290           then
11291             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
11292             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
11293           fi
11294
11295           saved_LIBS="$LIBS"
11296
11297
11298 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
11299 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
11300 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303   ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lsasl  $LIBS"
11305 cat >conftest.$ac_ext <<_ACEOF
11306 #line $LINENO "configure"
11307 #include "confdefs.h"
11308
11309 /* Override any gcc2 internal prototype to avoid an error.  */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 /* We use char because int might match the return type of a gcc2
11314    builtin and then its argument prototype would still apply.  */
11315 char sasl_client_init ();
11316 #ifdef F77_DUMMY_MAIN
11317 #  ifdef __cplusplus
11318      extern "C"
11319 #  endif
11320    int F77_DUMMY_MAIN() { return 1; }
11321 #endif
11322 int
11323 main ()
11324 {
11325 sasl_client_init ();
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332   (eval $ac_link) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); } &&
11336          { ac_try='test -s conftest$ac_exeext'
11337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338   (eval $ac_try) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); }; }; then
11342   ac_cv_lib_sasl_sasl_client_init=yes
11343 else
11344   echo "$as_me: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 ac_cv_lib_sasl_sasl_client_init=no
11347 fi
11348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11350 fi
11351 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
11352 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
11353 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
11354   cat >>confdefs.h <<_ACEOF
11355 #define HAVE_LIBSASL 1
11356 _ACEOF
11357
11358   LIBS="-lsasl $LIBS"
11359
11360 else
11361   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
11362 echo "$as_me: error: could not find libsasl" >&2;}
11363    { (exit 1); exit 1; }; }
11364 fi
11365
11366
11367           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11368           MUTTLIBS="$MUTTLIBS -lsasl"
11369           LIBS="$saved_LIBS"
11370
11371 cat >>confdefs.h <<\_ACEOF
11372 #define USE_SASL 1
11373 _ACEOF
11374
11375           need_sasl=yes
11376         fi
11377
11378 fi;
11379
11380
11381 if test x$need_sasl = xyes; then
11382   USE_SASL_TRUE=
11383   USE_SASL_FALSE='#'
11384 else
11385   USE_SASL_TRUE='#'
11386   USE_SASL_FALSE=
11387 fi
11388
11389
11390 # Check whether --with-sasl2 or --without-sasl2 was given.
11391 if test "${with_sasl2+set}" = set; then
11392   withval="$with_sasl2"
11393
11394         if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
11395         then
11396           { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
11397 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
11398    { (exit 1); exit 1; }; }
11399         fi
11400
11401         if test "$with_sasl2" != "no"
11402         then
11403           if test "$with_sasl2" != "yes"
11404           then
11405             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
11406             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
11407           fi
11408
11409           saved_LIBS="$LIBS"
11410
11411
11412 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
11413 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
11414 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   ac_check_lib_save_LIBS=$LIBS
11418 LIBS="-lsasl2  $LIBS"
11419 cat >conftest.$ac_ext <<_ACEOF
11420 #line $LINENO "configure"
11421 #include "confdefs.h"
11422
11423 /* Override any gcc2 internal prototype to avoid an error.  */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 /* We use char because int might match the return type of a gcc2
11428    builtin and then its argument prototype would still apply.  */
11429 char sasl_client_init ();
11430 #ifdef F77_DUMMY_MAIN
11431 #  ifdef __cplusplus
11432      extern "C"
11433 #  endif
11434    int F77_DUMMY_MAIN() { return 1; }
11435 #endif
11436 int
11437 main ()
11438 {
11439 sasl_client_init ();
11440   ;
11441   return 0;
11442 }
11443 _ACEOF
11444 rm -f conftest.$ac_objext conftest$ac_exeext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11446   (eval $ac_link) 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); } &&
11450          { ac_try='test -s conftest$ac_exeext'
11451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452   (eval $ac_try) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }; then
11456   ac_cv_lib_sasl2_sasl_client_init=yes
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11460 ac_cv_lib_sasl2_sasl_client_init=no
11461 fi
11462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11464 fi
11465 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11466 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11467 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11468   cat >>confdefs.h <<_ACEOF
11469 #define HAVE_LIBSASL2 1
11470 _ACEOF
11471
11472   LIBS="-lsasl2 $LIBS"
11473
11474 else
11475   { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
11476 echo "$as_me: error: could not find libsasl2" >&2;}
11477    { (exit 1); exit 1; }; }
11478 fi
11479
11480
11481           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11482           MUTTLIBS="$MUTTLIBS -lsasl2"
11483           LIBS="$saved_LIBS"
11484
11485 cat >>confdefs.h <<\_ACEOF
11486 #define USE_SASL 1
11487 _ACEOF
11488
11489
11490 cat >>confdefs.h <<\_ACEOF
11491 #define USE_SASL2 1
11492 _ACEOF
11493
11494           need_sasl=yes
11495         fi
11496
11497 fi;
11498
11499
11500 if test x$need_sasl = xyes; then
11501   USE_SASL_TRUE=
11502   USE_SASL_FALSE='#'
11503 else
11504   USE_SASL_TRUE='#'
11505   USE_SASL_FALSE=
11506 fi
11507
11508
11509 # Check whether --with-idn or --without-idn was given.
11510 if test "${with_idn+set}" = set; then
11511   withval="$with_idn"
11512
11513                   if test "$with_idn" != "no" ; then
11514                         if test "$with_idn" != "yes" ; then
11515                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11516                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
11517                         fi
11518                   fi
11519
11520
11521 fi;
11522
11523 if test "x$with_idn" != "xno"; then
11524
11525 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
11526 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
11527 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-lidn  $LIBS"
11532 cat >conftest.$ac_ext <<_ACEOF
11533 #line $LINENO "configure"
11534 #include "confdefs.h"
11535
11536 /* Override any gcc2 internal prototype to avoid an error.  */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 /* We use char because int might match the return type of a gcc2
11541    builtin and then its argument prototype would still apply.  */
11542 char stringprep_check_version ();
11543 #ifdef F77_DUMMY_MAIN
11544 #  ifdef __cplusplus
11545      extern "C"
11546 #  endif
11547    int F77_DUMMY_MAIN() { return 1; }
11548 #endif
11549 int
11550 main ()
11551 {
11552 stringprep_check_version ();
11553   ;
11554   return 0;
11555 }
11556 _ACEOF
11557 rm -f conftest.$ac_objext conftest$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559   (eval $ac_link) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -s conftest$ac_exeext'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; }; then
11569   ac_cv_lib_idn_stringprep_check_version=yes
11570 else
11571   echo "$as_me: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 ac_cv_lib_idn_stringprep_check_version=no
11574 fi
11575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11577 fi
11578 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11579 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11580 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11581   cat >>confdefs.h <<_ACEOF
11582 #define HAVE_LIBIDN 1
11583 _ACEOF
11584
11585   LIBS="-lidn $LIBS"
11586
11587 fi
11588
11589
11590
11591 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11592 do
11593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11594 echo "$as_me:$LINENO: checking for $ac_func" >&5
11595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11596 if eval "test \"\${$as_ac_var+set}\" = set"; then
11597   echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599   cat >conftest.$ac_ext <<_ACEOF
11600 #line $LINENO "configure"
11601 #include "confdefs.h"
11602 /* System header to define __stub macros and hopefully few prototypes,
11603     which can conflict with char $ac_func (); below.  */
11604 #include <assert.h>
11605 /* Override any gcc2 internal prototype to avoid an error.  */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 /* We use char because int might match the return type of a gcc2
11610    builtin and then its argument prototype would still apply.  */
11611 char $ac_func ();
11612 char (*f) ();
11613
11614 #ifdef F77_DUMMY_MAIN
11615 #  ifdef __cplusplus
11616      extern "C"
11617 #  endif
11618    int F77_DUMMY_MAIN() { return 1; }
11619 #endif
11620 int
11621 main ()
11622 {
11623 /* The GNU C library defines this for functions which it implements
11624     to always fail with ENOSYS.  Some functions are actually named
11625     something starting with __ and the normal name is an alias.  */
11626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11627 choke me
11628 #else
11629 f = $ac_func;
11630 #endif
11631
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638   (eval $ac_link) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -s conftest$ac_exeext'
11643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644   (eval $ac_try) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; }; then
11648   eval "$as_ac_var=yes"
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 eval "$as_ac_var=no"
11653 fi
11654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11655 fi
11656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11658 if test `eval echo '${'$as_ac_var'}'` = yes; then
11659   cat >>confdefs.h <<_ACEOF
11660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11661 _ACEOF
11662
11663 fi
11664 done
11665
11666
11667
11668 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11669 do
11670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11671 echo "$as_me:$LINENO: checking for $ac_func" >&5
11672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11673 if eval "test \"\${$as_ac_var+set}\" = set"; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   cat >conftest.$ac_ext <<_ACEOF
11677 #line $LINENO "configure"
11678 #include "confdefs.h"
11679 /* System header to define __stub macros and hopefully few prototypes,
11680     which can conflict with char $ac_func (); below.  */
11681 #include <assert.h>
11682 /* Override any gcc2 internal prototype to avoid an error.  */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 /* We use char because int might match the return type of a gcc2
11687    builtin and then its argument prototype would still apply.  */
11688 char $ac_func ();
11689 char (*f) ();
11690
11691 #ifdef F77_DUMMY_MAIN
11692 #  ifdef __cplusplus
11693      extern "C"
11694 #  endif
11695    int F77_DUMMY_MAIN() { return 1; }
11696 #endif
11697 int
11698 main ()
11699 {
11700 /* The GNU C library defines this for functions which it implements
11701     to always fail with ENOSYS.  Some functions are actually named
11702     something starting with __ and the normal name is an alias.  */
11703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11704 choke me
11705 #else
11706 f = $ac_func;
11707 #endif
11708
11709   ;
11710   return 0;
11711 }
11712 _ACEOF
11713 rm -f conftest.$ac_objext conftest$ac_exeext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11715   (eval $ac_link) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } &&
11719          { ac_try='test -s conftest$ac_exeext'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; }; then
11725   eval "$as_ac_var=yes"
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 eval "$as_ac_var=no"
11730 fi
11731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11732 fi
11733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736   cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11739
11740 fi
11741 done
11742
11743
11744
11745 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11746 do
11747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11748 echo "$as_me:$LINENO: checking for $ac_func" >&5
11749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11750 if eval "test \"\${$as_ac_var+set}\" = set"; then
11751   echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753   cat >conftest.$ac_ext <<_ACEOF
11754 #line $LINENO "configure"
11755 #include "confdefs.h"
11756 /* System header to define __stub macros and hopefully few prototypes,
11757     which can conflict with char $ac_func (); below.  */
11758 #include <assert.h>
11759 /* Override any gcc2 internal prototype to avoid an error.  */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 /* We use char because int might match the return type of a gcc2
11764    builtin and then its argument prototype would still apply.  */
11765 char $ac_func ();
11766 char (*f) ();
11767
11768 #ifdef F77_DUMMY_MAIN
11769 #  ifdef __cplusplus
11770      extern "C"
11771 #  endif
11772    int F77_DUMMY_MAIN() { return 1; }
11773 #endif
11774 int
11775 main ()
11776 {
11777 /* The GNU C library defines this for functions which it implements
11778     to always fail with ENOSYS.  Some functions are actually named
11779     something starting with __ and the normal name is an alias.  */
11780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11781 choke me
11782 #else
11783 f = $ac_func;
11784 #endif
11785
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792   (eval $ac_link) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -s conftest$ac_exeext'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   eval "$as_ac_var=yes"
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11806 eval "$as_ac_var=no"
11807 fi
11808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11809 fi
11810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813   cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11815 _ACEOF
11816
11817 fi
11818 done
11819
11820 fi
11821
11822
11823 # Check whether --enable-debug or --disable-debug was given.
11824 if test "${enable_debug+set}" = set; then
11825   enableval="$enable_debug"
11826    if test x$enableval = xyes ; then
11827
11828 cat >>confdefs.h <<\_ACEOF
11829 #define DEBUG 1
11830 _ACEOF
11831
11832           fi
11833
11834 fi;
11835
11836 # Check whether --enable-flock or --disable-flock was given.
11837 if test "${enable_flock+set}" = set; then
11838   enableval="$enable_flock"
11839   if test $enableval = yes; then
11840
11841 cat >>confdefs.h <<\_ACEOF
11842 #define USE_FLOCK 1
11843 _ACEOF
11844
11845         fi
11846 fi;
11847
11848 mutt_cv_fcntl=yes
11849 # Check whether --enable-fcntl or --disable-fcntl was given.
11850 if test "${enable_fcntl+set}" = set; then
11851   enableval="$enable_fcntl"
11852   if test $enableval = no; then mutt_cv_fcntl=no; fi
11853 fi;
11854
11855 if test $mutt_cv_fcntl = yes; then
11856
11857 cat >>confdefs.h <<\_ACEOF
11858 #define USE_FCNTL 1
11859 _ACEOF
11860
11861 fi
11862
11863 mutt_cv_inodesort=no
11864 # Check whether --enable-inodesort or --disable-inodesort was given.
11865 if test "${enable_inodesort+set}" = set; then
11866   enableval="$enable_inodesort"
11867   if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
11868 fi;
11869
11870 if test $mutt_cv_inodesort = yes; then
11871
11872 cat >>confdefs.h <<\_ACEOF
11873 #define USE_INODESORT 1
11874 _ACEOF
11875
11876 fi
11877
11878 mutt_cv_warnings=yes
11879 # Check whether --enable-warnings or --disable-warnings was given.
11880 if test "${enable_warnings+set}" = set; then
11881   enableval="$enable_warnings"
11882   if test $enableval = no; then
11883         mutt_cv_warnings=no
11884 fi
11885 fi;
11886
11887 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11888         CFLAGS="-Wall -pedantic $CFLAGS"
11889 fi
11890
11891 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11892 if test "${enable_nfs_fix+set}" = set; then
11893   enableval="$enable_nfs_fix"
11894   if test x$enableval = xyes; then
11895
11896 cat >>confdefs.h <<\_ACEOF
11897 #define NFS_ATTRIBUTE_HACK 1
11898 _ACEOF
11899
11900         fi
11901 fi;
11902
11903 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11904 if test "${enable_buffy_size+set}" = set; then
11905   enableval="$enable_buffy_size"
11906   if test x$enableval = xyes; then
11907
11908 cat >>confdefs.h <<\_ACEOF
11909 #define BUFFY_SIZE 1
11910 _ACEOF
11911
11912         fi
11913 fi;
11914
11915 # Check whether --enable-mailtool or --disable-mailtool was given.
11916 if test "${enable_mailtool+set}" = set; then
11917   enableval="$enable_mailtool"
11918   if test x$enableval = xyes; then
11919
11920 cat >>confdefs.h <<\_ACEOF
11921 #define SUN_ATTACHMENT 1
11922 _ACEOF
11923
11924         fi
11925 fi;
11926
11927 # Check whether --enable-compressed or --disable-compressed was given.
11928 if test "${enable_compressed+set}" = set; then
11929   enableval="$enable_compressed"
11930   if test x$enableval = xyes; then
11931                 cat >>confdefs.h <<\_ACEOF
11932 #define USE_COMPRESSED 1
11933 _ACEOF
11934
11935         fi
11936 fi;
11937
11938 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11939 if test "${enable_locales_fix+set}" = set; then
11940   enableval="$enable_locales_fix"
11941   if test x$enableval = xyes; then
11942
11943 cat >>confdefs.h <<\_ACEOF
11944 #define LOCALES_HACK 1
11945 _ACEOF
11946
11947         fi
11948 fi;
11949
11950
11951 # Check whether --with-exec-shell or --without-exec-shell was given.
11952 if test "${with_exec_shell+set}" = set; then
11953   withval="$with_exec_shell"
11954   if test $withval != yes; then
11955
11956 cat >>confdefs.h <<_ACEOF
11957 #define EXECSHELL "$withval"
11958 _ACEOF
11959
11960          else
11961                 cat >>confdefs.h <<_ACEOF
11962 #define EXECSHELL "/bin/sh"
11963 _ACEOF
11964
11965         fi
11966 else
11967   cat >>confdefs.h <<_ACEOF
11968 #define EXECSHELL "/bin/sh"
11969 _ACEOF
11970
11971 fi;
11972
11973 # Check whether --enable-exact-address or --disable-exact-address was given.
11974 if test "${enable_exact_address+set}" = set; then
11975   enableval="$enable_exact_address"
11976   if test $enableval = yes; then
11977
11978 cat >>confdefs.h <<\_ACEOF
11979 #define EXACT_ADDRESS 1
11980 _ACEOF
11981
11982
11983         fi
11984 fi;
11985
11986 # Check whether --enable-hcache or --disable-hcache was given.
11987 if test "${enable_hcache+set}" = set; then
11988   enableval="$enable_hcache"
11989   if test x$enableval = xyes; then
11990
11991 cat >>confdefs.h <<\_ACEOF
11992 #define USE_HCACHE 1
11993 _ACEOF
11994
11995
11996     OLDCPPFLAGS="$CPPFLAGS"
11997     OLDLIBS="$LIBS"
11998
11999     need_md5="yes"
12000     ac_prefer_gdbm=yes
12001
12002 # Check whether --with-gdbm or --without-gdbm was given.
12003 if test "${with_gdbm+set}" = set; then
12004   withval="$with_gdbm"
12005   ac_prefer_gdbm=$withval
12006 fi;
12007     if test x$ac_prefer_gdbm != xno; then
12008         CPPFLAGS="$OLDCPPFLAGS"
12009         LIBS="$OLDLIBS -lgdbm";
12010         echo "$as_me:$LINENO: checking for gdbm_open" >&5
12011 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
12012 if test "${ac_cv_gdbmopen+set}" = set; then
12013   echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12015
12016             ac_cv_gdbmopen=no
12017             cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12019 #include "confdefs.h"
12020 #include <gdbm.h>
12021 #ifdef F77_DUMMY_MAIN
12022 #  ifdef __cplusplus
12023      extern "C"
12024 #  endif
12025    int F77_DUMMY_MAIN() { return 1; }
12026 #endif
12027 int
12028 main ()
12029 {
12030 gdbm_open(0,0,0,0,0);
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037   (eval $ac_link) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -s conftest$ac_exeext'
12042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043   (eval $ac_try) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; }; then
12047   ac_cv_gdbmopen=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12051 fi
12052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12053
12054 fi
12055 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
12056 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
12057     fi
12058
12059     ac_bdb_prefix=yes
12060
12061 # Check whether --with-bdb or --without-bdb was given.
12062 if test "${with_bdb+set}" = set; then
12063   withval="$with_bdb"
12064   ac_bdb_prefix=$withval
12065 fi;
12066     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
12067         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
12068         for d in $ac_bdb_prefix; do
12069             bdbpfx="$bdbpfx $d"
12070             for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
12071                 bdbpfx="$bdbpfx $d/$v"
12072             done
12073         done
12074         BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
12075         echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
12076 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
12077         for d in $bdbpfx; do
12078             BDB_INCLUDE_DIR=""
12079             BDB_LIB_DIR=""
12080             for v in / $BDB_VERSIONS; do
12081                 if test -r "$d/include/$v/db.h"; then
12082                     BDB_INCLUDE_DIR="$d/include/$v"
12083                     if test -d "$d/lib/$v"; then
12084                         BDB_LIB_DIR="$d/lib/$v"
12085                         for l in `echo $BDB_VERSIONS`; do
12086                             CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12087                             LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
12088                             cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 #include "confdefs.h"
12091
12092                                 #include <stdlib.h>
12093                                 #include <db.h>
12094
12095 #ifdef F77_DUMMY_MAIN
12096 #  ifdef __cplusplus
12097      extern "C"
12098 #  endif
12099    int F77_DUMMY_MAIN() { return 1; }
12100 #endif
12101 int
12102 main ()
12103 {
12104
12105                                 DB *db = NULL;
12106                                 db->open(db,NULL,NULL,NULL,0,0,0);
12107
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124
12125                                 ac_cv_dbcreate=yes
12126                                 BDB_LIB="$l"
12127                                 break
12128
12129 else
12130   echo "$as_me: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 fi
12133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12134                         done
12135                         test x$ac_dbcreate = xyes && break
12136                     fi
12137                 fi
12138             done
12139             test x$BDB_LIB != x && break
12140         done
12141         if test x$ac_cv_dbcreate = xyes; then
12142             echo "$as_me:$LINENO: result: yes" >&5
12143 echo "${ECHO_T}yes" >&6
12144         else
12145             echo "$as_me:$LINENO: result: no" >&5
12146 echo "${ECHO_T}no" >&6
12147         fi
12148     fi
12149
12150     if test x$ac_cv_gdbmopen = xyes; then
12151         CPPFLAGS="$OLDCPPFLAGS"
12152         LIBS="$OLDLIBS -lgdbm";
12153
12154 cat >>confdefs.h <<\_ACEOF
12155 #define HAVE_GDBM 1
12156 _ACEOF
12157
12158     elif test x$ac_cv_dbcreate = xyes; then
12159         CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12160         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
12161
12162 cat >>confdefs.h <<\_ACEOF
12163 #define HAVE_DB4 1
12164 _ACEOF
12165
12166     else
12167         { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
12168 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
12169    { (exit 1); exit 1; }; }
12170     fi
12171 fi
12172 fi;
12173
12174
12175
12176
12177
12178
12179
12180 # Check whether --enable-iconv or --disable-iconv was given.
12181 if test "${enable_iconv+set}" = set; then
12182   enableval="$enable_iconv"
12183   if test x$enableval = xno ; then
12184                 am_cv_func_iconv=no
12185         fi
12186
12187 fi;
12188
12189 echo "$as_me:$LINENO: checking for off_t" >&5
12190 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12191 if test "${ac_cv_type_off_t+set}" = set; then
12192   echo $ECHO_N "(cached) $ECHO_C" >&6
12193 else
12194   cat >conftest.$ac_ext <<_ACEOF
12195 #line $LINENO "configure"
12196 #include "confdefs.h"
12197 $ac_includes_default
12198 #ifdef F77_DUMMY_MAIN
12199 #  ifdef __cplusplus
12200      extern "C"
12201 #  endif
12202    int F77_DUMMY_MAIN() { return 1; }
12203 #endif
12204 int
12205 main ()
12206 {
12207 if ((off_t *) 0)
12208   return 0;
12209 if (sizeof (off_t))
12210   return 0;
12211   ;
12212   return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217   (eval $ac_compile) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); } &&
12221          { ac_try='test -s conftest.$ac_objext'
12222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223   (eval $ac_try) 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; }; then
12227   ac_cv_type_off_t=yes
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12231 ac_cv_type_off_t=no
12232 fi
12233 rm -f conftest.$ac_objext conftest.$ac_ext
12234 fi
12235 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12236 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12237 if test $ac_cv_type_off_t = yes; then
12238   :
12239 else
12240
12241 cat >>confdefs.h <<_ACEOF
12242 #define off_t long
12243 _ACEOF
12244
12245 fi
12246
12247 echo "$as_me:$LINENO: checking for size_t" >&5
12248 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12249 if test "${ac_cv_type_size_t+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12254 #include "confdefs.h"
12255 $ac_includes_default
12256 #ifdef F77_DUMMY_MAIN
12257 #  ifdef __cplusplus
12258      extern "C"
12259 #  endif
12260    int F77_DUMMY_MAIN() { return 1; }
12261 #endif
12262 int
12263 main ()
12264 {
12265 if ((size_t *) 0)
12266   return 0;
12267 if (sizeof (size_t))
12268   return 0;
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12275   (eval $ac_compile) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } &&
12279          { ac_try='test -s conftest.$ac_objext'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; }; then
12285   ac_cv_type_size_t=yes
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12289 ac_cv_type_size_t=no
12290 fi
12291 rm -f conftest.$ac_objext conftest.$ac_ext
12292 fi
12293 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12294 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12295 if test $ac_cv_type_size_t = yes; then
12296   :
12297 else
12298
12299 cat >>confdefs.h <<_ACEOF
12300 #define size_t unsigned
12301 _ACEOF
12302
12303 fi
12304
12305 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12306 # for constant arguments.  Useless!
12307 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12308 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12309 if test "${ac_cv_working_alloca_h+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   cat >conftest.$ac_ext <<_ACEOF
12313 #line $LINENO "configure"
12314 #include "confdefs.h"
12315 #include <alloca.h>
12316 #ifdef F77_DUMMY_MAIN
12317 #  ifdef __cplusplus
12318      extern "C"
12319 #  endif
12320    int F77_DUMMY_MAIN() { return 1; }
12321 #endif
12322 int
12323 main ()
12324 {
12325 char *p = (char *) alloca (2 * sizeof (int));
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332   (eval $ac_link) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } &&
12336          { ac_try='test -s conftest$ac_exeext'
12337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338   (eval $ac_try) 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }; }; then
12342   ac_cv_working_alloca_h=yes
12343 else
12344   echo "$as_me: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 ac_cv_working_alloca_h=no
12347 fi
12348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12349 fi
12350 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12351 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12352 if test $ac_cv_working_alloca_h = yes; then
12353
12354 cat >>confdefs.h <<\_ACEOF
12355 #define HAVE_ALLOCA_H 1
12356 _ACEOF
12357
12358 fi
12359
12360 echo "$as_me:$LINENO: checking for alloca" >&5
12361 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12362 if test "${ac_cv_func_alloca_works+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   cat >conftest.$ac_ext <<_ACEOF
12366 #line $LINENO "configure"
12367 #include "confdefs.h"
12368 #ifdef __GNUC__
12369 # define alloca __builtin_alloca
12370 #else
12371 # ifdef _MSC_VER
12372 #  include <malloc.h>
12373 #  define alloca _alloca
12374 # else
12375 #  if HAVE_ALLOCA_H
12376 #   include <alloca.h>
12377 #  else
12378 #   ifdef _AIX
12379  #pragma alloca
12380 #   else
12381 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12382 char *alloca ();
12383 #    endif
12384 #   endif
12385 #  endif
12386 # endif
12387 #endif
12388
12389 #ifdef F77_DUMMY_MAIN
12390 #  ifdef __cplusplus
12391      extern "C"
12392 #  endif
12393    int F77_DUMMY_MAIN() { return 1; }
12394 #endif
12395 int
12396 main ()
12397 {
12398 char *p = (char *) alloca (1);
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405   (eval $ac_link) 2>&5
12406   ac_status=$?
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); } &&
12409          { ac_try='test -s conftest$ac_exeext'
12410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411   (eval $ac_try) 2>&5
12412   ac_status=$?
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); }; }; then
12415   ac_cv_func_alloca_works=yes
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
12419 ac_cv_func_alloca_works=no
12420 fi
12421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12422 fi
12423 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12424 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12425
12426 if test $ac_cv_func_alloca_works = yes; then
12427
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_ALLOCA 1
12430 _ACEOF
12431
12432 else
12433   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12434 # that cause trouble.  Some versions do not even contain alloca or
12435 # contain a buggy version.  If you still want to use their alloca,
12436 # use ar to extract alloca.o from them instead of compiling alloca.c.
12437
12438 ALLOCA=alloca.$ac_objext
12439
12440 cat >>confdefs.h <<\_ACEOF
12441 #define C_ALLOCA 1
12442 _ACEOF
12443
12444
12445 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12446 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12447 if test "${ac_cv_os_cray+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   cat >conftest.$ac_ext <<_ACEOF
12451 #line $LINENO "configure"
12452 #include "confdefs.h"
12453 #if defined(CRAY) && ! defined(CRAY2)
12454 webecray
12455 #else
12456 wenotbecray
12457 #endif
12458
12459 _ACEOF
12460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12461   egrep "webecray" >/dev/null 2>&1; then
12462   ac_cv_os_cray=yes
12463 else
12464   ac_cv_os_cray=no
12465 fi
12466 rm -f conftest*
12467
12468 fi
12469 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12470 echo "${ECHO_T}$ac_cv_os_cray" >&6
12471 if test $ac_cv_os_cray = yes; then
12472   for ac_func in _getb67 GETB67 getb67; do
12473     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12474 echo "$as_me:$LINENO: checking for $ac_func" >&5
12475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12476 if eval "test \"\${$as_ac_var+set}\" = set"; then
12477   echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479   cat >conftest.$ac_ext <<_ACEOF
12480 #line $LINENO "configure"
12481 #include "confdefs.h"
12482 /* System header to define __stub macros and hopefully few prototypes,
12483     which can conflict with char $ac_func (); below.  */
12484 #include <assert.h>
12485 /* Override any gcc2 internal prototype to avoid an error.  */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 /* We use char because int might match the return type of a gcc2
12490    builtin and then its argument prototype would still apply.  */
12491 char $ac_func ();
12492 char (*f) ();
12493
12494 #ifdef F77_DUMMY_MAIN
12495 #  ifdef __cplusplus
12496      extern "C"
12497 #  endif
12498    int F77_DUMMY_MAIN() { return 1; }
12499 #endif
12500 int
12501 main ()
12502 {
12503 /* The GNU C library defines this for functions which it implements
12504     to always fail with ENOSYS.  Some functions are actually named
12505     something starting with __ and the normal name is an alias.  */
12506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12507 choke me
12508 #else
12509 f = $ac_func;
12510 #endif
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518   (eval $ac_link) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } &&
12522          { ac_try='test -s conftest$ac_exeext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   eval "$as_ac_var=yes"
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 eval "$as_ac_var=no"
12533 fi
12534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12535 fi
12536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12538 if test `eval echo '${'$as_ac_var'}'` = yes; then
12539
12540 cat >>confdefs.h <<_ACEOF
12541 #define CRAY_STACKSEG_END $ac_func
12542 _ACEOF
12543
12544     break
12545 fi
12546
12547   done
12548 fi
12549
12550 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12551 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12552 if test "${ac_cv_c_stack_direction+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   if test "$cross_compiling" = yes; then
12556   ac_cv_c_stack_direction=0
12557 else
12558   cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 #include "confdefs.h"
12561 int
12562 find_stack_direction ()
12563 {
12564   static char *addr = 0;
12565   auto char dummy;
12566   if (addr == 0)
12567     {
12568       addr = &dummy;
12569       return find_stack_direction ();
12570     }
12571   else
12572     return (&dummy > addr) ? 1 : -1;
12573 }
12574
12575 int
12576 main ()
12577 {
12578   exit (find_stack_direction () < 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_c_stack_direction=1
12593 else
12594   echo "$as_me: program exited with status $ac_status" >&5
12595 echo "$as_me: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12597 ( exit $ac_status )
12598 ac_cv_c_stack_direction=-1
12599 fi
12600 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12601 fi
12602 fi
12603 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12604 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12605
12606 cat >>confdefs.h <<_ACEOF
12607 #define STACK_DIRECTION $ac_cv_c_stack_direction
12608 _ACEOF
12609
12610
12611 fi
12612
12613
12614
12615 for ac_header in stdlib.h unistd.h
12616 do
12617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12619   echo "$as_me:$LINENO: checking for $ac_header" >&5
12620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12622   echo $ECHO_N "(cached) $ECHO_C" >&6
12623 fi
12624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12626 else
12627   # Is the header compilable?
12628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12630 cat >conftest.$ac_ext <<_ACEOF
12631 #line $LINENO "configure"
12632 #include "confdefs.h"
12633 $ac_includes_default
12634 #include <$ac_header>
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638   (eval $ac_compile) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -s conftest.$ac_objext'
12643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644   (eval $ac_try) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; }; then
12648   ac_header_compiler=yes
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12652 ac_header_compiler=no
12653 fi
12654 rm -f conftest.$ac_objext conftest.$ac_ext
12655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12656 echo "${ECHO_T}$ac_header_compiler" >&6
12657
12658 # Is the header present?
12659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12661 cat >conftest.$ac_ext <<_ACEOF
12662 #line $LINENO "configure"
12663 #include "confdefs.h"
12664 #include <$ac_header>
12665 _ACEOF
12666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12668   ac_status=$?
12669   egrep -v '^ *\+' conftest.er1 >conftest.err
12670   rm -f conftest.er1
12671   cat conftest.err >&5
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); } >/dev/null; then
12674   if test -s conftest.err; then
12675     ac_cpp_err=$ac_c_preproc_warn_flag
12676   else
12677     ac_cpp_err=
12678   fi
12679 else
12680   ac_cpp_err=yes
12681 fi
12682 if test -z "$ac_cpp_err"; then
12683   ac_header_preproc=yes
12684 else
12685   echo "$as_me: failed program was:" >&5
12686   cat conftest.$ac_ext >&5
12687   ac_header_preproc=no
12688 fi
12689 rm -f conftest.err conftest.$ac_ext
12690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12691 echo "${ECHO_T}$ac_header_preproc" >&6
12692
12693 # So?  What about this header?
12694 case $ac_header_compiler:$ac_header_preproc in
12695   yes:no )
12696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12700   no:yes )
12701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12703     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12707 esac
12708 echo "$as_me:$LINENO: checking for $ac_header" >&5
12709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713   eval "$as_ac_Header=$ac_header_preproc"
12714 fi
12715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12717
12718 fi
12719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12720   cat >>confdefs.h <<_ACEOF
12721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12722 _ACEOF
12723
12724 fi
12725
12726 done
12727
12728
12729 for ac_func in getpagesize
12730 do
12731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12732 echo "$as_me:$LINENO: checking for $ac_func" >&5
12733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12734 if eval "test \"\${$as_ac_var+set}\" = set"; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737   cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12739 #include "confdefs.h"
12740 /* System header to define __stub macros and hopefully few prototypes,
12741     which can conflict with char $ac_func (); below.  */
12742 #include <assert.h>
12743 /* Override any gcc2 internal prototype to avoid an error.  */
12744 #ifdef __cplusplus
12745 extern "C"
12746 #endif
12747 /* We use char because int might match the return type of a gcc2
12748    builtin and then its argument prototype would still apply.  */
12749 char $ac_func ();
12750 char (*f) ();
12751
12752 #ifdef F77_DUMMY_MAIN
12753 #  ifdef __cplusplus
12754      extern "C"
12755 #  endif
12756    int F77_DUMMY_MAIN() { return 1; }
12757 #endif
12758 int
12759 main ()
12760 {
12761 /* The GNU C library defines this for functions which it implements
12762     to always fail with ENOSYS.  Some functions are actually named
12763     something starting with __ and the normal name is an alias.  */
12764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12765 choke me
12766 #else
12767 f = $ac_func;
12768 #endif
12769
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776   (eval $ac_link) 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); } &&
12780          { ac_try='test -s conftest$ac_exeext'
12781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782   (eval $ac_try) 2>&5
12783   ac_status=$?
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); }; }; then
12786   eval "$as_ac_var=yes"
12787 else
12788   echo "$as_me: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 eval "$as_ac_var=no"
12791 fi
12792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12793 fi
12794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12796 if test `eval echo '${'$as_ac_var'}'` = yes; then
12797   cat >>confdefs.h <<_ACEOF
12798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12799 _ACEOF
12800
12801 fi
12802 done
12803
12804 echo "$as_me:$LINENO: checking for working mmap" >&5
12805 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12806 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12807   echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809   if test "$cross_compiling" = yes; then
12810   ac_cv_func_mmap_fixed_mapped=no
12811 else
12812   cat >conftest.$ac_ext <<_ACEOF
12813 #line $LINENO "configure"
12814 #include "confdefs.h"
12815 $ac_includes_default
12816 /* malloc might have been renamed as rpl_malloc. */
12817 #undef malloc
12818
12819 /* Thanks to Mike Haertel and Jim Avera for this test.
12820    Here is a matrix of mmap possibilities:
12821         mmap private not fixed
12822         mmap private fixed at somewhere currently unmapped
12823         mmap private fixed at somewhere already mapped
12824         mmap shared not fixed
12825         mmap shared fixed at somewhere currently unmapped
12826         mmap shared fixed at somewhere already mapped
12827    For private mappings, we should verify that changes cannot be read()
12828    back from the file, nor mmap's back from the file at a different
12829    address.  (There have been systems where private was not correctly
12830    implemented like the infamous i386 svr4.0, and systems where the
12831    VM page cache was not coherent with the file system buffer cache
12832    like early versions of FreeBSD and possibly contemporary NetBSD.)
12833    For shared mappings, we should conversely verify that changes get
12834    propagated back to all the places they're supposed to be.
12835
12836    Grep wants private fixed already mapped.
12837    The main things grep needs to know about mmap are:
12838    * does it exist and is it safe to write into the mmap'd area
12839    * how to use it (BSD variants)  */
12840
12841 #include <fcntl.h>
12842 #include <sys/mman.h>
12843
12844 #if !STDC_HEADERS && !HAVE_STDLIB_H
12845 char *malloc ();
12846 #endif
12847
12848 /* This mess was copied from the GNU getpagesize.h.  */
12849 #if !HAVE_GETPAGESIZE
12850 /* Assume that all systems that can run configure have sys/param.h.  */
12851 # if !HAVE_SYS_PARAM_H
12852 #  define HAVE_SYS_PARAM_H 1
12853 # endif
12854
12855 # ifdef _SC_PAGESIZE
12856 #  define getpagesize() sysconf(_SC_PAGESIZE)
12857 # else /* no _SC_PAGESIZE */
12858 #  if HAVE_SYS_PARAM_H
12859 #   include <sys/param.h>
12860 #   ifdef EXEC_PAGESIZE
12861 #    define getpagesize() EXEC_PAGESIZE
12862 #   else /* no EXEC_PAGESIZE */
12863 #    ifdef NBPG
12864 #     define getpagesize() NBPG * CLSIZE
12865 #     ifndef CLSIZE
12866 #      define CLSIZE 1
12867 #     endif /* no CLSIZE */
12868 #    else /* no NBPG */
12869 #     ifdef NBPC
12870 #      define getpagesize() NBPC
12871 #     else /* no NBPC */
12872 #      ifdef PAGESIZE
12873 #       define getpagesize() PAGESIZE
12874 #      endif /* PAGESIZE */
12875 #     endif /* no NBPC */
12876 #    endif /* no NBPG */
12877 #   endif /* no EXEC_PAGESIZE */
12878 #  else /* no HAVE_SYS_PARAM_H */
12879 #   define getpagesize() 8192   /* punt totally */
12880 #  endif /* no HAVE_SYS_PARAM_H */
12881 # endif /* no _SC_PAGESIZE */
12882
12883 #endif /* no HAVE_GETPAGESIZE */
12884
12885 int
12886 main ()
12887 {
12888   char *data, *data2, *data3;
12889   int i, pagesize;
12890   int fd;
12891
12892   pagesize = getpagesize ();
12893
12894   /* First, make a file with some known garbage in it. */
12895   data = (char *) malloc (pagesize);
12896   if (!data)
12897     exit (1);
12898   for (i = 0; i < pagesize; ++i)
12899     *(data + i) = rand ();
12900   umask (0);
12901   fd = creat ("conftest.mmap", 0600);
12902   if (fd < 0)
12903     exit (1);
12904   if (write (fd, data, pagesize) != pagesize)
12905     exit (1);
12906   close (fd);
12907
12908   /* Next, try to mmap the file at a fixed address which already has
12909      something else allocated at it.  If we can, also make sure that
12910      we see the same garbage.  */
12911   fd = open ("conftest.mmap", O_RDWR);
12912   if (fd < 0)
12913     exit (1);
12914   data2 = (char *) malloc (2 * pagesize);
12915   if (!data2)
12916     exit (1);
12917   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12918   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12919                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12920     exit (1);
12921   for (i = 0; i < pagesize; ++i)
12922     if (*(data + i) != *(data2 + i))
12923       exit (1);
12924
12925   /* Finally, make sure that changes to the mapped area do not
12926      percolate back to the file as seen by read().  (This is a bug on
12927      some variants of i386 svr4.0.)  */
12928   for (i = 0; i < pagesize; ++i)
12929     *(data2 + i) = *(data2 + i) + 1;
12930   data3 = (char *) malloc (pagesize);
12931   if (!data3)
12932     exit (1);
12933   if (read (fd, data3, pagesize) != pagesize)
12934     exit (1);
12935   for (i = 0; i < pagesize; ++i)
12936     if (*(data + i) != *(data3 + i))
12937       exit (1);
12938   close (fd);
12939   exit (0);
12940 }
12941 _ACEOF
12942 rm -f conftest$ac_exeext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12944   (eval $ac_link) 2>&5
12945   ac_status=$?
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949   (eval $ac_try) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; }; then
12953   ac_cv_func_mmap_fixed_mapped=yes
12954 else
12955   echo "$as_me: program exited with status $ac_status" >&5
12956 echo "$as_me: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12958 ( exit $ac_status )
12959 ac_cv_func_mmap_fixed_mapped=no
12960 fi
12961 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12962 fi
12963 fi
12964 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12965 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12966 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12967
12968 cat >>confdefs.h <<\_ACEOF
12969 #define HAVE_MMAP 1
12970 _ACEOF
12971
12972 fi
12973 rm -f conftest.mmap
12974
12975
12976     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12977 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12978 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12979   echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981   cat >conftest.$ac_ext <<_ACEOF
12982 #line $LINENO "configure"
12983 #include "confdefs.h"
12984
12985 #include <features.h>
12986 #ifdef __GNU_LIBRARY__
12987  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12988   Lucky GNU user
12989  #endif
12990 #endif
12991
12992 _ACEOF
12993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12994   egrep "Lucky GNU user" >/dev/null 2>&1; then
12995   ac_cv_gnu_library_2_1=yes
12996 else
12997   ac_cv_gnu_library_2_1=no
12998 fi
12999 rm -f conftest*
13000
13001
13002
13003 fi
13004 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13005 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
13006
13007     GLIBC21="$ac_cv_gnu_library_2_1"
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13022 stdlib.h string.h unistd.h sys/param.h
13023 do
13024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13026   echo "$as_me:$LINENO: checking for $ac_header" >&5
13027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029   echo $ECHO_N "(cached) $ECHO_C" >&6
13030 fi
13031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13033 else
13034   # Is the header compilable?
13035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13037 cat >conftest.$ac_ext <<_ACEOF
13038 #line $LINENO "configure"
13039 #include "confdefs.h"
13040 $ac_includes_default
13041 #include <$ac_header>
13042 _ACEOF
13043 rm -f conftest.$ac_objext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045   (eval $ac_compile) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } &&
13049          { ac_try='test -s conftest.$ac_objext'
13050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051   (eval $ac_try) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; }; then
13055   ac_header_compiler=yes
13056 else
13057   echo "$as_me: failed program was:" >&5
13058 cat conftest.$ac_ext >&5
13059 ac_header_compiler=no
13060 fi
13061 rm -f conftest.$ac_objext conftest.$ac_ext
13062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13063 echo "${ECHO_T}$ac_header_compiler" >&6
13064
13065 # Is the header present?
13066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13068 cat >conftest.$ac_ext <<_ACEOF
13069 #line $LINENO "configure"
13070 #include "confdefs.h"
13071 #include <$ac_header>
13072 _ACEOF
13073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13075   ac_status=$?
13076   egrep -v '^ *\+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } >/dev/null; then
13081   if test -s conftest.err; then
13082     ac_cpp_err=$ac_c_preproc_warn_flag
13083   else
13084     ac_cpp_err=
13085   fi
13086 else
13087   ac_cpp_err=yes
13088 fi
13089 if test -z "$ac_cpp_err"; then
13090   ac_header_preproc=yes
13091 else
13092   echo "$as_me: failed program was:" >&5
13093   cat conftest.$ac_ext >&5
13094   ac_header_preproc=no
13095 fi
13096 rm -f conftest.err conftest.$ac_ext
13097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13098 echo "${ECHO_T}$ac_header_preproc" >&6
13099
13100 # So?  What about this header?
13101 case $ac_header_compiler:$ac_header_preproc in
13102   yes:no )
13103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13107   no:yes )
13108     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13110     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13114 esac
13115 echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13118   echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120   eval "$as_ac_Header=$ac_header_preproc"
13121 fi
13122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13124
13125 fi
13126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13127   cat >>confdefs.h <<_ACEOF
13128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13129 _ACEOF
13130
13131 fi
13132
13133 done
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
13157 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
13158 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
13159 do
13160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13161 echo "$as_me:$LINENO: checking for $ac_func" >&5
13162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13163 if eval "test \"\${$as_ac_var+set}\" = set"; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13168 #include "confdefs.h"
13169 /* System header to define __stub macros and hopefully few prototypes,
13170     which can conflict with char $ac_func (); below.  */
13171 #include <assert.h>
13172 /* Override any gcc2 internal prototype to avoid an error.  */
13173 #ifdef __cplusplus
13174 extern "C"
13175 #endif
13176 /* We use char because int might match the return type of a gcc2
13177    builtin and then its argument prototype would still apply.  */
13178 char $ac_func ();
13179 char (*f) ();
13180
13181 #ifdef F77_DUMMY_MAIN
13182 #  ifdef __cplusplus
13183      extern "C"
13184 #  endif
13185    int F77_DUMMY_MAIN() { return 1; }
13186 #endif
13187 int
13188 main ()
13189 {
13190 /* The GNU C library defines this for functions which it implements
13191     to always fail with ENOSYS.  Some functions are actually named
13192     something starting with __ and the normal name is an alias.  */
13193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13194 choke me
13195 #else
13196 f = $ac_func;
13197 #endif
13198
13199   ;
13200   return 0;
13201 }
13202 _ACEOF
13203 rm -f conftest.$ac_objext conftest$ac_exeext
13204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13205   (eval $ac_link) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); } &&
13209          { ac_try='test -s conftest$ac_exeext'
13210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211   (eval $ac_try) 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); }; }; then
13215   eval "$as_ac_var=yes"
13216 else
13217   echo "$as_me: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 eval "$as_ac_var=no"
13220 fi
13221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13222 fi
13223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13225 if test `eval echo '${'$as_ac_var'}'` = yes; then
13226   cat >>confdefs.h <<_ACEOF
13227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13228 _ACEOF
13229
13230 fi
13231 done
13232
13233
13234
13235
13236
13237 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13238 if test "${with_libiconv_prefix+set}" = set; then
13239   withval="$with_libiconv_prefix"
13240
13241     for dir in `echo "$withval" | tr : ' '`; do
13242       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
13243       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
13244     done
13245
13246 fi;
13247
13248   echo "$as_me:$LINENO: checking for iconv" >&5
13249 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
13250 if test "${am_cv_func_iconv+set}" = set; then
13251   echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253
13254     am_cv_func_iconv="no, consider installing GNU libiconv"
13255     am_cv_lib_iconv=no
13256     cat >conftest.$ac_ext <<_ACEOF
13257 #line $LINENO "configure"
13258 #include "confdefs.h"
13259 #include <stdlib.h>
13260 #include <iconv.h>
13261 #ifdef F77_DUMMY_MAIN
13262 #  ifdef __cplusplus
13263      extern "C"
13264 #  endif
13265    int F77_DUMMY_MAIN() { return 1; }
13266 #endif
13267 int
13268 main ()
13269 {
13270 iconv_t cd = iconv_open("","");
13271        iconv(cd,NULL,NULL,NULL,NULL);
13272        iconv_close(cd);
13273   ;
13274   return 0;
13275 }
13276 _ACEOF
13277 rm -f conftest.$ac_objext conftest$ac_exeext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13279   (eval $ac_link) 2>&5
13280   ac_status=$?
13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); } &&
13283          { ac_try='test -s conftest$ac_exeext'
13284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285   (eval $ac_try) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; }; then
13289   am_cv_func_iconv=yes
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 fi
13294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13295     if test "$am_cv_func_iconv" != yes; then
13296       am_save_LIBS="$LIBS"
13297       LIBS="$LIBS -liconv"
13298       cat >conftest.$ac_ext <<_ACEOF
13299 #line $LINENO "configure"
13300 #include "confdefs.h"
13301 #include <stdlib.h>
13302 #include <iconv.h>
13303 #ifdef F77_DUMMY_MAIN
13304 #  ifdef __cplusplus
13305      extern "C"
13306 #  endif
13307    int F77_DUMMY_MAIN() { return 1; }
13308 #endif
13309 int
13310 main ()
13311 {
13312 iconv_t cd = iconv_open("","");
13313          iconv(cd,NULL,NULL,NULL,NULL);
13314          iconv_close(cd);
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13321   (eval $ac_link) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); } &&
13325          { ac_try='test -s conftest$ac_exeext'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; }; then
13331   am_cv_lib_iconv=yes
13332         am_cv_func_iconv=yes
13333 else
13334   echo "$as_me: failed program was:" >&5
13335 cat conftest.$ac_ext >&5
13336 fi
13337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13338       LIBS="$am_save_LIBS"
13339     fi
13340
13341 fi
13342 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13343 echo "${ECHO_T}$am_cv_func_iconv" >&6
13344   if test "$am_cv_func_iconv" = yes; then
13345
13346 cat >>confdefs.h <<\_ACEOF
13347 #define HAVE_ICONV 1
13348 _ACEOF
13349
13350     echo "$as_me:$LINENO: checking for iconv declaration" >&5
13351 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13352     if test "${am_cv_proto_iconv+set}" = set; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355
13356       cat >conftest.$ac_ext <<_ACEOF
13357 #line $LINENO "configure"
13358 #include "confdefs.h"
13359
13360 #include <stdlib.h>
13361 #include <iconv.h>
13362 extern
13363 #ifdef __cplusplus
13364 "C"
13365 #endif
13366 #if defined(__STDC__) || defined(__cplusplus)
13367 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13368 #else
13369 size_t iconv();
13370 #endif
13371
13372 #ifdef F77_DUMMY_MAIN
13373 #  ifdef __cplusplus
13374      extern "C"
13375 #  endif
13376    int F77_DUMMY_MAIN() { return 1; }
13377 #endif
13378 int
13379 main ()
13380 {
13381
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388   (eval $ac_compile) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } &&
13392          { ac_try='test -s conftest.$ac_objext'
13393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394   (eval $ac_try) 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; }; then
13398   am_cv_proto_iconv_arg1=""
13399 else
13400   echo "$as_me: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13402 am_cv_proto_iconv_arg1="const"
13403 fi
13404 rm -f conftest.$ac_objext conftest.$ac_ext
13405       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);"
13406 fi
13407
13408     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13409     echo "$as_me:$LINENO: result: ${ac_t:-
13410          }$am_cv_proto_iconv" >&5
13411 echo "${ECHO_T}${ac_t:-
13412          }$am_cv_proto_iconv" >&6
13413
13414 cat >>confdefs.h <<_ACEOF
13415 #define ICONV_CONST $am_cv_proto_iconv_arg1
13416 _ACEOF
13417
13418   fi
13419   LIBICONV=
13420   if test "$am_cv_lib_iconv" = yes; then
13421     LIBICONV="-liconv"
13422   fi
13423
13424
13425
13426   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13427 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13428 if test "${am_cv_langinfo_codeset+set}" = set; then
13429   echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431   cat >conftest.$ac_ext <<_ACEOF
13432 #line $LINENO "configure"
13433 #include "confdefs.h"
13434 #include <langinfo.h>
13435 #ifdef F77_DUMMY_MAIN
13436 #  ifdef __cplusplus
13437      extern "C"
13438 #  endif
13439    int F77_DUMMY_MAIN() { return 1; }
13440 #endif
13441 int
13442 main ()
13443 {
13444 char* cs = nl_langinfo(CODESET);
13445   ;
13446   return 0;
13447 }
13448 _ACEOF
13449 rm -f conftest.$ac_objext conftest$ac_exeext
13450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451   (eval $ac_link) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -s conftest$ac_exeext'
13456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457   (eval $ac_try) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; }; then
13461   am_cv_langinfo_codeset=yes
13462 else
13463   echo "$as_me: failed program was:" >&5
13464 cat conftest.$ac_ext >&5
13465 am_cv_langinfo_codeset=no
13466 fi
13467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13468
13469 fi
13470 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13471 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13472   if test $am_cv_langinfo_codeset = yes; then
13473
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_LANGINFO_CODESET 1
13476 _ACEOF
13477
13478   fi
13479
13480    if test $ac_cv_header_locale_h = yes; then
13481     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13482 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13483 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 #include <locale.h>
13490 #ifdef F77_DUMMY_MAIN
13491 #  ifdef __cplusplus
13492      extern "C"
13493 #  endif
13494    int F77_DUMMY_MAIN() { return 1; }
13495 #endif
13496 int
13497 main ()
13498 {
13499 return LC_MESSAGES
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13506   (eval $ac_link) 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } &&
13510          { ac_try='test -s conftest$ac_exeext'
13511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512   (eval $ac_try) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; }; then
13516   am_cv_val_LC_MESSAGES=yes
13517 else
13518   echo "$as_me: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13520 am_cv_val_LC_MESSAGES=no
13521 fi
13522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13523 fi
13524 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13525 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13526     if test $am_cv_val_LC_MESSAGES = yes; then
13527
13528 cat >>confdefs.h <<\_ACEOF
13529 #define HAVE_LC_MESSAGES 1
13530 _ACEOF
13531
13532     fi
13533   fi
13534    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13535 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13536         # Check whether --enable-nls or --disable-nls was given.
13537 if test "${enable_nls+set}" = set; then
13538   enableval="$enable_nls"
13539   USE_NLS=$enableval
13540 else
13541   USE_NLS=yes
13542 fi;
13543     echo "$as_me:$LINENO: result: $USE_NLS" >&5
13544 echo "${ECHO_T}$USE_NLS" >&6
13545
13546
13547     BUILD_INCLUDED_LIBINTL=no
13548     USE_INCLUDED_LIBINTL=no
13549     INTLLIBS=
13550
13551         if test "$USE_NLS" = "yes"; then
13552
13553 cat >>confdefs.h <<\_ACEOF
13554 #define ENABLE_NLS 1
13555 _ACEOF
13556
13557       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13558 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13559
13560 # Check whether --with-included-gettext or --without-included-gettext was given.
13561 if test "${with_included_gettext+set}" = set; then
13562   withval="$with_included_gettext"
13563   nls_cv_force_use_gnu_gettext=$withval
13564 else
13565   nls_cv_force_use_gnu_gettext=no
13566 fi;
13567       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13568 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13569
13570       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13571       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13572                                 CATOBJEXT=NONE
13573
13574
13575
13576
13577         if test "${ac_cv_header_libintl_h+set}" = set; then
13578   echo "$as_me:$LINENO: checking for libintl.h" >&5
13579 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13580 if test "${ac_cv_header_libintl_h+set}" = set; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 fi
13583 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13584 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13585 else
13586   # Is the header compilable?
13587 echo "$as_me:$LINENO: checking libintl.h usability" >&5
13588 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
13589 cat >conftest.$ac_ext <<_ACEOF
13590 #line $LINENO "configure"
13591 #include "confdefs.h"
13592 $ac_includes_default
13593 #include <libintl.h>
13594 _ACEOF
13595 rm -f conftest.$ac_objext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597   (eval $ac_compile) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); } &&
13601          { ac_try='test -s conftest.$ac_objext'
13602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603   (eval $ac_try) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); }; }; then
13607   ac_header_compiler=yes
13608 else
13609   echo "$as_me: failed program was:" >&5
13610 cat conftest.$ac_ext >&5
13611 ac_header_compiler=no
13612 fi
13613 rm -f conftest.$ac_objext conftest.$ac_ext
13614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13615 echo "${ECHO_T}$ac_header_compiler" >&6
13616
13617 # Is the header present?
13618 echo "$as_me:$LINENO: checking libintl.h presence" >&5
13619 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
13620 cat >conftest.$ac_ext <<_ACEOF
13621 #line $LINENO "configure"
13622 #include "confdefs.h"
13623 #include <libintl.h>
13624 _ACEOF
13625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13626   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13627   ac_status=$?
13628   egrep -v '^ *\+' conftest.er1 >conftest.err
13629   rm -f conftest.er1
13630   cat conftest.err >&5
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); } >/dev/null; then
13633   if test -s conftest.err; then
13634     ac_cpp_err=$ac_c_preproc_warn_flag
13635   else
13636     ac_cpp_err=
13637   fi
13638 else
13639   ac_cpp_err=yes
13640 fi
13641 if test -z "$ac_cpp_err"; then
13642   ac_header_preproc=yes
13643 else
13644   echo "$as_me: failed program was:" >&5
13645   cat conftest.$ac_ext >&5
13646   ac_header_preproc=no
13647 fi
13648 rm -f conftest.err conftest.$ac_ext
13649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13650 echo "${ECHO_T}$ac_header_preproc" >&6
13651
13652 # So?  What about this header?
13653 case $ac_header_compiler:$ac_header_preproc in
13654   yes:no )
13655     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13656 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13657     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13658 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
13659   no:yes )
13660     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13661 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13662     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13663 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13664     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13665 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
13666 esac
13667 echo "$as_me:$LINENO: checking for libintl.h" >&5
13668 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13669 if test "${ac_cv_header_libintl_h+set}" = set; then
13670   echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672   ac_cv_header_libintl_h=$ac_header_preproc
13673 fi
13674 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13675 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13676
13677 fi
13678 if test $ac_cv_header_libintl_h = yes; then
13679   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13680 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13681 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 #include "confdefs.h"
13687 #include <libintl.h>
13688 extern int _nl_msg_cat_cntr;
13689 #ifdef F77_DUMMY_MAIN
13690 #  ifdef __cplusplus
13691      extern "C"
13692 #  endif
13693    int F77_DUMMY_MAIN() { return 1; }
13694 #endif
13695 int
13696 main ()
13697 {
13698 bindtextdomain ("", "");
13699 return (int) gettext ("") + _nl_msg_cat_cntr
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 rm -f conftest.$ac_objext conftest$ac_exeext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13706   (eval $ac_link) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } &&
13710          { ac_try='test -s conftest$ac_exeext'
13711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712   (eval $ac_try) 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; }; then
13716   gt_cv_func_gnugettext1_libc=yes
13717 else
13718   echo "$as_me: failed program was:" >&5
13719 cat conftest.$ac_ext >&5
13720 gt_cv_func_gnugettext1_libc=no
13721 fi
13722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13723 fi
13724 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13725 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13726
13727            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13728              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13729 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13730 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13731   echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733   gt_save_LIBS="$LIBS"
13734                 LIBS="$LIBS -lintl $LIBICONV"
13735                 cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13737 #include "confdefs.h"
13738 #include <libintl.h>
13739 extern int _nl_msg_cat_cntr;
13740 #ifdef F77_DUMMY_MAIN
13741 #  ifdef __cplusplus
13742      extern "C"
13743 #  endif
13744    int F77_DUMMY_MAIN() { return 1; }
13745 #endif
13746 int
13747 main ()
13748 {
13749 bindtextdomain ("", "");
13750 return (int) gettext ("") + _nl_msg_cat_cntr
13751   ;
13752   return 0;
13753 }
13754 _ACEOF
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757   (eval $ac_link) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); } &&
13761          { ac_try='test -s conftest$ac_exeext'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767   gt_cv_func_gnugettext1_libintl=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 gt_cv_func_gnugettext1_libintl=no
13772 fi
13773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13774                 LIBS="$gt_save_LIBS"
13775 fi
13776 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13777 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13778            fi
13779
13780                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13781               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13782                    && test "$PACKAGE" != gettext; }; then
13783
13784 cat >>confdefs.h <<\_ACEOF
13785 #define HAVE_GETTEXT 1
13786 _ACEOF
13787
13788
13789              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13790                                        INTLLIBS="-lintl $LIBICONV"
13791              fi
13792
13793              gt_save_LIBS="$LIBS"
13794              LIBS="$LIBS $INTLLIBS"
13795
13796 for ac_func in dcgettext
13797 do
13798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13799 echo "$as_me:$LINENO: checking for $ac_func" >&5
13800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13801 if eval "test \"\${$as_ac_var+set}\" = set"; then
13802   echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804   cat >conftest.$ac_ext <<_ACEOF
13805 #line $LINENO "configure"
13806 #include "confdefs.h"
13807 /* System header to define __stub macros and hopefully few prototypes,
13808     which can conflict with char $ac_func (); below.  */
13809 #include <assert.h>
13810 /* Override any gcc2 internal prototype to avoid an error.  */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 /* We use char because int might match the return type of a gcc2
13815    builtin and then its argument prototype would still apply.  */
13816 char $ac_func ();
13817 char (*f) ();
13818
13819 #ifdef F77_DUMMY_MAIN
13820 #  ifdef __cplusplus
13821      extern "C"
13822 #  endif
13823    int F77_DUMMY_MAIN() { return 1; }
13824 #endif
13825 int
13826 main ()
13827 {
13828 /* The GNU C library defines this for functions which it implements
13829     to always fail with ENOSYS.  Some functions are actually named
13830     something starting with __ and the normal name is an alias.  */
13831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13832 choke me
13833 #else
13834 f = $ac_func;
13835 #endif
13836
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843   (eval $ac_link) 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); } &&
13847          { ac_try='test -s conftest$ac_exeext'
13848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849   (eval $ac_try) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; }; then
13853   eval "$as_ac_var=yes"
13854 else
13855   echo "$as_me: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 eval "$as_ac_var=no"
13858 fi
13859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13860 fi
13861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13863 if test `eval echo '${'$as_ac_var'}'` = yes; then
13864   cat >>confdefs.h <<_ACEOF
13865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13866 _ACEOF
13867
13868 fi
13869 done
13870
13871              LIBS="$gt_save_LIBS"
13872
13873                      # Extract the first word of "msgfmt", so it can be a program name with args.
13874 set dummy msgfmt; ac_word=$2
13875 echo "$as_me:$LINENO: checking for $ac_word" >&5
13876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13877 if test "${ac_cv_path_MSGFMT+set}" = set; then
13878   echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13880   case "$MSGFMT" in
13881   /*)
13882   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13883   ;;
13884   *)
13885   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13886   for ac_dir in $PATH; do
13887     test -z "$ac_dir" && ac_dir=.
13888     if test -f $ac_dir/$ac_word; then
13889       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13890         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13891         break
13892       fi
13893     fi
13894   done
13895   IFS="$ac_save_ifs"
13896   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13897   ;;
13898 esac
13899 fi
13900 MSGFMT="$ac_cv_path_MSGFMT"
13901 if test "$MSGFMT" != ":"; then
13902   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13903 echo "${ECHO_T}$MSGFMT" >&6
13904 else
13905   echo "$as_me:$LINENO: result: no" >&5
13906 echo "${ECHO_T}no" >&6
13907 fi
13908
13909              # Extract the first word of "gmsgfmt", so it can be a program name with args.
13910 set dummy gmsgfmt; ac_word=$2
13911 echo "$as_me:$LINENO: checking for $ac_word" >&5
13912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13913 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   case $GMSGFMT in
13917   [\\/]* | ?:[\\/]*)
13918   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13919   ;;
13920   *)
13921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13923 do
13924   IFS=$as_save_IFS
13925   test -z "$as_dir" && as_dir=.
13926   for ac_exec_ext in '' $ac_executable_extensions; do
13927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13930     break 2
13931   fi
13932 done
13933 done
13934
13935   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13936   ;;
13937 esac
13938 fi
13939 GMSGFMT=$ac_cv_path_GMSGFMT
13940
13941 if test -n "$GMSGFMT"; then
13942   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13943 echo "${ECHO_T}$GMSGFMT" >&6
13944 else
13945   echo "$as_me:$LINENO: result: no" >&5
13946 echo "${ECHO_T}no" >&6
13947 fi
13948
13949
13950                      # Extract the first word of "xgettext", so it can be a program name with args.
13951 set dummy xgettext; ac_word=$2
13952 echo "$as_me:$LINENO: checking for $ac_word" >&5
13953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13954 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   case "$XGETTEXT" in
13958   /*)
13959   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13960   ;;
13961   *)
13962   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13963   for ac_dir in $PATH; do
13964     test -z "$ac_dir" && ac_dir=.
13965     if test -f $ac_dir/$ac_word; then
13966       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13967         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13968         break
13969       fi
13970     fi
13971   done
13972   IFS="$ac_save_ifs"
13973   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13974   ;;
13975 esac
13976 fi
13977 XGETTEXT="$ac_cv_path_XGETTEXT"
13978 if test "$XGETTEXT" != ":"; then
13979   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13980 echo "${ECHO_T}$XGETTEXT" >&6
13981 else
13982   echo "$as_me:$LINENO: result: no" >&5
13983 echo "${ECHO_T}no" >&6
13984 fi
13985
13986
13987              CATOBJEXT=.gmo
13988            fi
13989
13990 fi
13991
13992
13993
13994         if test "$CATOBJEXT" = "NONE"; then
13995                           nls_cv_use_gnu_gettext=yes
13996         fi
13997       fi
13998
13999       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14000                 INTLOBJS="\$(GETTOBJS)"
14001         # Extract the first word of "msgfmt", so it can be a program name with args.
14002 set dummy msgfmt; ac_word=$2
14003 echo "$as_me:$LINENO: checking for $ac_word" >&5
14004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14005 if test "${ac_cv_path_MSGFMT+set}" = set; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008   case "$MSGFMT" in
14009   /*)
14010   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14011   ;;
14012   *)
14013   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14014   for ac_dir in $PATH; do
14015     test -z "$ac_dir" && ac_dir=.
14016     if test -f $ac_dir/$ac_word; then
14017       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14018         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14019         break
14020       fi
14021     fi
14022   done
14023   IFS="$ac_save_ifs"
14024   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14025   ;;
14026 esac
14027 fi
14028 MSGFMT="$ac_cv_path_MSGFMT"
14029 if test "$MSGFMT" != ":"; then
14030   echo "$as_me:$LINENO: result: $MSGFMT" >&5
14031 echo "${ECHO_T}$MSGFMT" >&6
14032 else
14033   echo "$as_me:$LINENO: result: no" >&5
14034 echo "${ECHO_T}no" >&6
14035 fi
14036
14037         # Extract the first word of "gmsgfmt", so it can be a program name with args.
14038 set dummy gmsgfmt; ac_word=$2
14039 echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14041 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044   case $GMSGFMT in
14045   [\\/]* | ?:[\\/]*)
14046   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14047   ;;
14048   *)
14049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14051 do
14052   IFS=$as_save_IFS
14053   test -z "$as_dir" && as_dir=.
14054   for ac_exec_ext in '' $ac_executable_extensions; do
14055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14056     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14058     break 2
14059   fi
14060 done
14061 done
14062
14063   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14064   ;;
14065 esac
14066 fi
14067 GMSGFMT=$ac_cv_path_GMSGFMT
14068
14069 if test -n "$GMSGFMT"; then
14070   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14071 echo "${ECHO_T}$GMSGFMT" >&6
14072 else
14073   echo "$as_me:$LINENO: result: no" >&5
14074 echo "${ECHO_T}no" >&6
14075 fi
14076
14077         # Extract the first word of "xgettext", so it can be a program name with args.
14078 set dummy xgettext; ac_word=$2
14079 echo "$as_me:$LINENO: checking for $ac_word" >&5
14080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14081 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084   case "$XGETTEXT" in
14085   /*)
14086   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14087   ;;
14088   *)
14089   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14090   for ac_dir in $PATH; do
14091     test -z "$ac_dir" && ac_dir=.
14092     if test -f $ac_dir/$ac_word; then
14093       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
14094         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14095         break
14096       fi
14097     fi
14098   done
14099   IFS="$ac_save_ifs"
14100   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14101   ;;
14102 esac
14103 fi
14104 XGETTEXT="$ac_cv_path_XGETTEXT"
14105 if test "$XGETTEXT" != ":"; then
14106   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14107 echo "${ECHO_T}$XGETTEXT" >&6
14108 else
14109   echo "$as_me:$LINENO: result: no" >&5
14110 echo "${ECHO_T}no" >&6
14111 fi
14112
14113
14114         BUILD_INCLUDED_LIBINTL=yes
14115         USE_INCLUDED_LIBINTL=yes
14116         CATOBJEXT=.gmo
14117         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
14118         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14119       fi
14120
14121                   if test "$GMSGFMT" != ":"; then
14122                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
14123           : ;
14124         else
14125           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
14126 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
14127           GMSGFMT=":"
14128         fi
14129       fi
14130
14131                   if test "$XGETTEXT" != ":"; then
14132                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
14133           : ;
14134         else
14135           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
14136 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
14137           XGETTEXT=":"
14138         fi
14139       fi
14140
14141             POSUB=po
14142     fi
14143     ac_config_commands="$ac_config_commands default-2"
14144
14145
14146
14147             if test "$PACKAGE" = gettext; then
14148       BUILD_INCLUDED_LIBINTL=yes
14149     fi
14150
14151                                             for ac_prog in bison
14152 do
14153   # Extract the first word of "$ac_prog", so it can be a program name with args.
14154 set dummy $ac_prog; ac_word=$2
14155 echo "$as_me:$LINENO: checking for $ac_word" >&5
14156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14157 if test "${ac_cv_prog_INTLBISON+set}" = set; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160   if test -n "$INTLBISON"; then
14161   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14162 else
14163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14165 do
14166   IFS=$as_save_IFS
14167   test -z "$as_dir" && as_dir=.
14168   for ac_exec_ext in '' $ac_executable_extensions; do
14169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14170     ac_cv_prog_INTLBISON="$ac_prog"
14171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14172     break 2
14173   fi
14174 done
14175 done
14176
14177 fi
14178 fi
14179 INTLBISON=$ac_cv_prog_INTLBISON
14180 if test -n "$INTLBISON"; then
14181   echo "$as_me:$LINENO: result: $INTLBISON" >&5
14182 echo "${ECHO_T}$INTLBISON" >&6
14183 else
14184   echo "$as_me:$LINENO: result: no" >&5
14185 echo "${ECHO_T}no" >&6
14186 fi
14187
14188   test -n "$INTLBISON" && break
14189 done
14190
14191     if test -z "$INTLBISON"; then
14192       ac_verc_fail=yes
14193     else
14194             echo "$as_me:$LINENO: checking version of bison" >&5
14195 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
14196       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14197       case $ac_prog_version in
14198         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14199         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14200            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14201         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14202       esac
14203       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
14204 echo "${ECHO_T}$ac_prog_version" >&6
14205     fi
14206     if test $ac_verc_fail = yes; then
14207       INTLBISON=:
14208     fi
14209
14210                 for lang in $ALL_LINGUAS; do
14211       GMOFILES="$GMOFILES $lang.gmo"
14212       POFILES="$POFILES $lang.po"
14213     done
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225         nls_cv_header_intl=
14226     nls_cv_header_libgt=
14227
14228         DATADIRNAME=share
14229
14230
14231         INSTOBJEXT=.mo
14232
14233
14234         GENCAT=gencat
14235
14236
14237
14238    if test "x$CATOBJEXT" != "x"; then
14239      if test "x$ALL_LINGUAS" = "x"; then
14240        LINGUAS=
14241      else
14242        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
14243 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
14244        NEW_LINGUAS=
14245        for presentlang in $ALL_LINGUAS; do
14246          useit=no
14247          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
14248            # Use the presentlang catalog if desiredlang is
14249            #   a. equal to presentlang, or
14250            #   b. a variant of presentlang (because in this case,
14251            #      presentlang can be used as a fallback for messages
14252            #      which are not translated in the desiredlang catalog).
14253            case "$desiredlang" in
14254              "$presentlang"*) useit=yes;;
14255            esac
14256          done
14257          if test $useit = yes; then
14258            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
14259          fi
14260        done
14261        LINGUAS=$NEW_LINGUAS
14262        echo "$as_me:$LINENO: result: $LINGUAS" >&5
14263 echo "${ECHO_T}$LINGUAS" >&6
14264      fi
14265
14266           if test -n "$LINGUAS"; then
14267        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
14268      fi
14269    fi
14270
14271             MKINSTALLDIRS=
14272    if test -n "$ac_aux_dir"; then
14273      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14274    fi
14275    if test -z "$MKINSTALLDIRS"; then
14276      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14277    fi
14278
14279
14280       INTL_LIBTOOL_SUFFIX_PREFIX=
14281
14282
14283
14284 if test "$am_cv_func_iconv" != "yes"
14285 then
14286   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
14287 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
14288 else
14289
14290
14291 for ac_header in iconv.h
14292 do
14293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295   echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 fi
14300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14302 else
14303   # Is the header compilable?
14304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14306 cat >conftest.$ac_ext <<_ACEOF
14307 #line $LINENO "configure"
14308 #include "confdefs.h"
14309 $ac_includes_default
14310 #include <$ac_header>
14311 _ACEOF
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314   (eval $ac_compile) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -s conftest.$ac_objext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_header_compiler=yes
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 cat conftest.$ac_ext >&5
14328 ac_header_compiler=no
14329 fi
14330 rm -f conftest.$ac_objext conftest.$ac_ext
14331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14332 echo "${ECHO_T}$ac_header_compiler" >&6
14333
14334 # Is the header present?
14335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14338 #line $LINENO "configure"
14339 #include "confdefs.h"
14340 #include <$ac_header>
14341 _ACEOF
14342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14344   ac_status=$?
14345   egrep -v '^ *\+' conftest.er1 >conftest.err
14346   rm -f conftest.er1
14347   cat conftest.err >&5
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); } >/dev/null; then
14350   if test -s conftest.err; then
14351     ac_cpp_err=$ac_c_preproc_warn_flag
14352   else
14353     ac_cpp_err=
14354   fi
14355 else
14356   ac_cpp_err=yes
14357 fi
14358 if test -z "$ac_cpp_err"; then
14359   ac_header_preproc=yes
14360 else
14361   echo "$as_me: failed program was:" >&5
14362   cat conftest.$ac_ext >&5
14363   ac_header_preproc=no
14364 fi
14365 rm -f conftest.err conftest.$ac_ext
14366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14367 echo "${ECHO_T}$ac_header_preproc" >&6
14368
14369 # So?  What about this header?
14370 case $ac_header_compiler:$ac_header_preproc in
14371   yes:no )
14372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14376   no:yes )
14377     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14379     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14383 esac
14384 echo "$as_me:$LINENO: checking for $ac_header" >&5
14385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14387   echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389   eval "$as_ac_Header=$ac_header_preproc"
14390 fi
14391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14393
14394 fi
14395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14396   cat >>confdefs.h <<_ACEOF
14397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14398 _ACEOF
14399  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
14400 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
14401          cat >conftest.$ac_ext <<_ACEOF
14402 #line $LINENO "configure"
14403 #include "confdefs.h"
14404 #include <iconv.h>
14405
14406 _ACEOF
14407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14408   egrep "typedef.*iconv_t" >/dev/null 2>&1; then
14409   echo "$as_me:$LINENO: result: yes" >&5
14410 echo "${ECHO_T}yes" >&6
14411
14412 cat >>confdefs.h <<\_ACEOF
14413 #define HAVE_ICONV_T_DEF 1
14414 _ACEOF
14415
14416 else
14417   echo "$as_me:$LINENO: result: no" >&5
14418 echo "${ECHO_T}no" >&6
14419 fi
14420 rm -f conftest*
14421
14422 fi
14423
14424 done
14425
14426
14427 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
14428 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
14429 if test "${mutt_cv_iconv_good+set}" = set; then
14430   echo $ECHO_N "(cached) $ECHO_C" >&6
14431 else
14432   mutt_save_LIBS="$LIBS"
14433         LIBS="$LIBS $LIBICONV"
14434         if test "$cross_compiling" = yes; then
14435   mutt_cv_iconv_good=yes
14436 else
14437   cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 #include "confdefs.h"
14440
14441 #include <iconv.h>
14442 int main()
14443 {
14444   iconv_t cd;
14445   char buf[4];
14446   char *ob;
14447   size_t obl;
14448   ob = buf, obl = sizeof(buf);
14449   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
14450           (iconv(cd, 0, 0, &ob, &obl) ||
14451            !(ob == buf && obl == sizeof(buf)) ||
14452            iconv_close(cd)));
14453 }
14454
14455 _ACEOF
14456 rm -f conftest$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458   (eval $ac_link) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463   (eval $ac_try) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; }; then
14467   mutt_cv_iconv_good=yes
14468 else
14469   echo "$as_me: program exited with status $ac_status" >&5
14470 echo "$as_me: failed program was:" >&5
14471 cat conftest.$ac_ext >&5
14472 ( exit $ac_status )
14473 mutt_cv_iconv_good=no
14474 fi
14475 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14476 fi
14477         LIBS="$mutt_save_LIBS"
14478 fi
14479 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
14480 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
14481 if test "$mutt_cv_iconv_good" = no; then
14482   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
14483 echo "$as_me: error: Try using libiconv instead" >&2;}
14484    { (exit 1); exit 1; }; }
14485 fi
14486
14487 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
14488 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
14489 if test "${mutt_cv_iconv_nontrans+set}" = set; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492   mutt_save_LIBS="$LIBS"
14493         LIBS="$LIBS $LIBICONV"
14494         if test "$cross_compiling" = yes; then
14495   mutt_cv_iconv_nontrans=no
14496 else
14497   cat >conftest.$ac_ext <<_ACEOF
14498 #line $LINENO "configure"
14499 #include "confdefs.h"
14500
14501 #include <iconv.h>
14502 #include <string.h>
14503 int main()
14504 {
14505   iconv_t cd;
14506   const char *ib;
14507   char *ob;
14508   size_t ibl, obl;
14509   const char *s = "\304\211";
14510   char t[3];
14511   ib = s, ibl = 2, ob = t, obl = 3;
14512   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
14513           iconv(cd, &ib, &ibl, &ob, &obl));
14514 }
14515
14516 _ACEOF
14517 rm -f conftest$ac_exeext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14519   (eval $ac_link) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524   (eval $ac_try) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   mutt_cv_iconv_nontrans=no
14529 else
14530   echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 ( exit $ac_status )
14534 mutt_cv_iconv_nontrans=yes
14535 fi
14536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14537 fi
14538         LIBS="$mutt_save_LIBS"
14539 fi
14540 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
14541 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
14542 if test "$mutt_cv_iconv_nontrans" = yes; then
14543   cat >>confdefs.h <<\_ACEOF
14544 #define ICONV_NONTRANS 1
14545 _ACEOF
14546
14547 else
14548   cat >>confdefs.h <<\_ACEOF
14549 #define ICONV_NONTRANS 0
14550 _ACEOF
14551
14552 fi
14553
14554 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14555
14556 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14557
14558 cat >>confdefs.h <<\_ACEOF
14559 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14560 _ACEOF
14561
14562 else
14563
14564 for ac_func in bind_textdomain_codeset
14565 do
14566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14567 echo "$as_me:$LINENO: checking for $ac_func" >&5
14568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14569 if eval "test \"\${$as_ac_var+set}\" = set"; then
14570   echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572   cat >conftest.$ac_ext <<_ACEOF
14573 #line $LINENO "configure"
14574 #include "confdefs.h"
14575 /* System header to define __stub macros and hopefully few prototypes,
14576     which can conflict with char $ac_func (); below.  */
14577 #include <assert.h>
14578 /* Override any gcc2 internal prototype to avoid an error.  */
14579 #ifdef __cplusplus
14580 extern "C"
14581 #endif
14582 /* We use char because int might match the return type of a gcc2
14583    builtin and then its argument prototype would still apply.  */
14584 char $ac_func ();
14585 char (*f) ();
14586
14587 #ifdef F77_DUMMY_MAIN
14588 #  ifdef __cplusplus
14589      extern "C"
14590 #  endif
14591    int F77_DUMMY_MAIN() { return 1; }
14592 #endif
14593 int
14594 main ()
14595 {
14596 /* The GNU C library defines this for functions which it implements
14597     to always fail with ENOSYS.  Some functions are actually named
14598     something starting with __ and the normal name is an alias.  */
14599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14600 choke me
14601 #else
14602 f = $ac_func;
14603 #endif
14604
14605   ;
14606   return 0;
14607 }
14608 _ACEOF
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611   (eval $ac_link) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } &&
14615          { ac_try='test -s conftest$ac_exeext'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; }; then
14621   eval "$as_ac_var=yes"
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 cat conftest.$ac_ext >&5
14625 eval "$as_ac_var=no"
14626 fi
14627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14628 fi
14629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14631 if test `eval echo '${'$as_ac_var'}'` = yes; then
14632   cat >>confdefs.h <<_ACEOF
14633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14634 _ACEOF
14635
14636 fi
14637 done
14638
14639 fi
14640
14641 fi # libiconv
14642
14643
14644
14645 for ac_header in wchar.h
14646 do
14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14649   echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14652   echo $ECHO_N "(cached) $ECHO_C" >&6
14653 fi
14654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14656 else
14657   # Is the header compilable?
14658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14660 cat >conftest.$ac_ext <<_ACEOF
14661 #line $LINENO "configure"
14662 #include "confdefs.h"
14663 $ac_includes_default
14664 #include <$ac_header>
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668   (eval $ac_compile) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -s conftest.$ac_objext'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; }; then
14678   ac_header_compiler=yes
14679 else
14680   echo "$as_me: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 ac_header_compiler=no
14683 fi
14684 rm -f conftest.$ac_objext conftest.$ac_ext
14685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6
14687
14688 # Is the header present?
14689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14693 #include "confdefs.h"
14694 #include <$ac_header>
14695 _ACEOF
14696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14698   ac_status=$?
14699   egrep -v '^ *\+' conftest.er1 >conftest.err
14700   rm -f conftest.er1
14701   cat conftest.err >&5
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } >/dev/null; then
14704   if test -s conftest.err; then
14705     ac_cpp_err=$ac_c_preproc_warn_flag
14706   else
14707     ac_cpp_err=
14708   fi
14709 else
14710   ac_cpp_err=yes
14711 fi
14712 if test -z "$ac_cpp_err"; then
14713   ac_header_preproc=yes
14714 else
14715   echo "$as_me: failed program was:" >&5
14716   cat conftest.$ac_ext >&5
14717   ac_header_preproc=no
14718 fi
14719 rm -f conftest.err conftest.$ac_ext
14720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14721 echo "${ECHO_T}$ac_header_preproc" >&6
14722
14723 # So?  What about this header?
14724 case $ac_header_compiler:$ac_header_preproc in
14725   yes:no )
14726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14730   no:yes )
14731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14733     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14737 esac
14738 echo "$as_me:$LINENO: checking for $ac_header" >&5
14739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14741   echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743   eval "$as_ac_Header=$ac_header_preproc"
14744 fi
14745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14747
14748 fi
14749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14750   cat >>confdefs.h <<_ACEOF
14751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14752 _ACEOF
14753
14754 fi
14755
14756 done
14757
14758
14759 echo "$as_me:$LINENO: checking for wchar_t" >&5
14760 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14761 if test "${mutt_cv_wchar_t+set}" = set; then
14762   echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764   cat >conftest.$ac_ext <<_ACEOF
14765 #line $LINENO "configure"
14766 #include "confdefs.h"
14767
14768 #include <stddef.h>
14769 #include <stdlib.h>
14770 #ifdef HAVE_WCHAR_H
14771 #include <wchar.h>
14772 #endif
14773
14774 #ifdef F77_DUMMY_MAIN
14775 #  ifdef __cplusplus
14776      extern "C"
14777 #  endif
14778    int F77_DUMMY_MAIN() { return 1; }
14779 #endif
14780 int
14781 main ()
14782 {
14783  wchar_t wc; return 0;
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790   (eval $ac_compile) 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); } &&
14794          { ac_try='test -s conftest.$ac_objext'
14795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796   (eval $ac_try) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); }; }; then
14800   mutt_cv_wchar_t=yes
14801 else
14802   echo "$as_me: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14804 mutt_cv_wchar_t=no
14805 fi
14806 rm -f conftest.$ac_objext conftest.$ac_ext
14807 fi
14808 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14809 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14810
14811 if test "$mutt_cv_wchar_t" = no; then
14812
14813 cat >>confdefs.h <<\_ACEOF
14814 #define wchar_t int
14815 _ACEOF
14816
14817 fi
14818
14819 echo "$as_me:$LINENO: checking for wint_t" >&5
14820 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14821 if test "${mutt_cv_wint_t+set}" = set; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   cat >conftest.$ac_ext <<_ACEOF
14825 #line $LINENO "configure"
14826 #include "confdefs.h"
14827
14828 #include <stddef.h>
14829 #include <stdlib.h>
14830 #ifdef HAVE_WCHAR_H
14831 #include <wchar.h>
14832 #endif
14833
14834 #ifdef F77_DUMMY_MAIN
14835 #  ifdef __cplusplus
14836      extern "C"
14837 #  endif
14838    int F77_DUMMY_MAIN() { return 1; }
14839 #endif
14840 int
14841 main ()
14842 {
14843  wint_t wc; return 0;
14844   ;
14845   return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850   (eval $ac_compile) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } &&
14854          { ac_try='test -s conftest.$ac_objext'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; }; then
14860   mutt_cv_wint_t=yes
14861 else
14862   echo "$as_me: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14864 mutt_cv_wint_t=no
14865 fi
14866 rm -f conftest.$ac_objext conftest.$ac_ext
14867 fi
14868 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14869 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14870
14871 if test "$mutt_cv_wint_t" = no; then
14872
14873 cat >>confdefs.h <<\_ACEOF
14874 #define wint_t int
14875 _ACEOF
14876
14877 fi
14878
14879
14880 for ac_header in wctype.h
14881 do
14882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14884   echo "$as_me:$LINENO: checking for $ac_header" >&5
14885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14887   echo $ECHO_N "(cached) $ECHO_C" >&6
14888 fi
14889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14891 else
14892   # Is the header compilable?
14893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14895 cat >conftest.$ac_ext <<_ACEOF
14896 #line $LINENO "configure"
14897 #include "confdefs.h"
14898 $ac_includes_default
14899 #include <$ac_header>
14900 _ACEOF
14901 rm -f conftest.$ac_objext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903   (eval $ac_compile) 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); } &&
14907          { ac_try='test -s conftest.$ac_objext'
14908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909   (eval $ac_try) 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); }; }; then
14913   ac_header_compiler=yes
14914 else
14915   echo "$as_me: failed program was:" >&5
14916 cat conftest.$ac_ext >&5
14917 ac_header_compiler=no
14918 fi
14919 rm -f conftest.$ac_objext conftest.$ac_ext
14920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14921 echo "${ECHO_T}$ac_header_compiler" >&6
14922
14923 # Is the header present?
14924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14926 cat >conftest.$ac_ext <<_ACEOF
14927 #line $LINENO "configure"
14928 #include "confdefs.h"
14929 #include <$ac_header>
14930 _ACEOF
14931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14933   ac_status=$?
14934   egrep -v '^ *\+' conftest.er1 >conftest.err
14935   rm -f conftest.er1
14936   cat conftest.err >&5
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); } >/dev/null; then
14939   if test -s conftest.err; then
14940     ac_cpp_err=$ac_c_preproc_warn_flag
14941   else
14942     ac_cpp_err=
14943   fi
14944 else
14945   ac_cpp_err=yes
14946 fi
14947 if test -z "$ac_cpp_err"; then
14948   ac_header_preproc=yes
14949 else
14950   echo "$as_me: failed program was:" >&5
14951   cat conftest.$ac_ext >&5
14952   ac_header_preproc=no
14953 fi
14954 rm -f conftest.err conftest.$ac_ext
14955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14956 echo "${ECHO_T}$ac_header_preproc" >&6
14957
14958 # So?  What about this header?
14959 case $ac_header_compiler:$ac_header_preproc in
14960   yes:no )
14961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14965   no:yes )
14966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14968     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14972 esac
14973 echo "$as_me:$LINENO: checking for $ac_header" >&5
14974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14976   echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978   eval "$as_ac_Header=$ac_header_preproc"
14979 fi
14980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14982
14983 fi
14984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14985   cat >>confdefs.h <<_ACEOF
14986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14987 _ACEOF
14988
14989 fi
14990
14991 done
14992
14993
14994
14995
14996
14997 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
14998 do
14999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15000 echo "$as_me:$LINENO: checking for $ac_func" >&5
15001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15002 if eval "test \"\${$as_ac_var+set}\" = set"; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15008 /* System header to define __stub macros and hopefully few prototypes,
15009     which can conflict with char $ac_func (); below.  */
15010 #include <assert.h>
15011 /* Override any gcc2 internal prototype to avoid an error.  */
15012 #ifdef __cplusplus
15013 extern "C"
15014 #endif
15015 /* We use char because int might match the return type of a gcc2
15016    builtin and then its argument prototype would still apply.  */
15017 char $ac_func ();
15018 char (*f) ();
15019
15020 #ifdef F77_DUMMY_MAIN
15021 #  ifdef __cplusplus
15022      extern "C"
15023 #  endif
15024    int F77_DUMMY_MAIN() { return 1; }
15025 #endif
15026 int
15027 main ()
15028 {
15029 /* The GNU C library defines this for functions which it implements
15030     to always fail with ENOSYS.  Some functions are actually named
15031     something starting with __ and the normal name is an alias.  */
15032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15033 choke me
15034 #else
15035 f = $ac_func;
15036 #endif
15037
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044   (eval $ac_link) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -s conftest$ac_exeext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054   eval "$as_ac_var=yes"
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15058 eval "$as_ac_var=no"
15059 fi
15060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15061 fi
15062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15064 if test `eval echo '${'$as_ac_var'}'` = yes; then
15065   cat >>confdefs.h <<_ACEOF
15066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15067 _ACEOF
15068
15069 fi
15070 done
15071
15072
15073
15074
15075
15076
15077
15078 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
15079 do
15080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15081 echo "$as_me:$LINENO: checking for $ac_func" >&5
15082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15083 if eval "test \"\${$as_ac_var+set}\" = set"; then
15084   echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086   cat >conftest.$ac_ext <<_ACEOF
15087 #line $LINENO "configure"
15088 #include "confdefs.h"
15089 /* System header to define __stub macros and hopefully few prototypes,
15090     which can conflict with char $ac_func (); below.  */
15091 #include <assert.h>
15092 /* Override any gcc2 internal prototype to avoid an error.  */
15093 #ifdef __cplusplus
15094 extern "C"
15095 #endif
15096 /* We use char because int might match the return type of a gcc2
15097    builtin and then its argument prototype would still apply.  */
15098 char $ac_func ();
15099 char (*f) ();
15100
15101 #ifdef F77_DUMMY_MAIN
15102 #  ifdef __cplusplus
15103      extern "C"
15104 #  endif
15105    int F77_DUMMY_MAIN() { return 1; }
15106 #endif
15107 int
15108 main ()
15109 {
15110 /* The GNU C library defines this for functions which it implements
15111     to always fail with ENOSYS.  Some functions are actually named
15112     something starting with __ and the normal name is an alias.  */
15113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15114 choke me
15115 #else
15116 f = $ac_func;
15117 #endif
15118
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125   (eval $ac_link) 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); } &&
15129          { ac_try='test -s conftest$ac_exeext'
15130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131   (eval $ac_try) 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); }; }; then
15135   eval "$as_ac_var=yes"
15136 else
15137   echo "$as_me: failed program was:" >&5
15138 cat conftest.$ac_ext >&5
15139 eval "$as_ac_var=no"
15140 fi
15141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15142 fi
15143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15145 if test `eval echo '${'$as_ac_var'}'` = yes; then
15146   cat >>confdefs.h <<_ACEOF
15147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15148 _ACEOF
15149
15150 fi
15151 done
15152
15153
15154
15155
15156 for ac_func in iswxdigit towupper towlower
15157 do
15158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15159 echo "$as_me:$LINENO: checking for $ac_func" >&5
15160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15161 if eval "test \"\${$as_ac_var+set}\" = set"; then
15162   echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164   cat >conftest.$ac_ext <<_ACEOF
15165 #line $LINENO "configure"
15166 #include "confdefs.h"
15167 /* System header to define __stub macros and hopefully few prototypes,
15168     which can conflict with char $ac_func (); below.  */
15169 #include <assert.h>
15170 /* Override any gcc2 internal prototype to avoid an error.  */
15171 #ifdef __cplusplus
15172 extern "C"
15173 #endif
15174 /* We use char because int might match the return type of a gcc2
15175    builtin and then its argument prototype would still apply.  */
15176 char $ac_func ();
15177 char (*f) ();
15178
15179 #ifdef F77_DUMMY_MAIN
15180 #  ifdef __cplusplus
15181      extern "C"
15182 #  endif
15183    int F77_DUMMY_MAIN() { return 1; }
15184 #endif
15185 int
15186 main ()
15187 {
15188 /* The GNU C library defines this for functions which it implements
15189     to always fail with ENOSYS.  Some functions are actually named
15190     something starting with __ and the normal name is an alias.  */
15191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15192 choke me
15193 #else
15194 f = $ac_func;
15195 #endif
15196
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15203   (eval $ac_link) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } &&
15207          { ac_try='test -s conftest$ac_exeext'
15208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209   (eval $ac_try) 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); }; }; then
15213   eval "$as_ac_var=yes"
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 eval "$as_ac_var=no"
15218 fi
15219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15220 fi
15221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15223 if test `eval echo '${'$as_ac_var'}'` = yes; then
15224   cat >>confdefs.h <<_ACEOF
15225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15226 _ACEOF
15227
15228 fi
15229 done
15230
15231
15232 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15233 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15234 if test "${mutt_cv_mbstate_t+set}" = set; then
15235   echo $ECHO_N "(cached) $ECHO_C" >&6
15236 else
15237   cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15239 #include "confdefs.h"
15240
15241 #include <stddef.h>
15242 #include <stdlib.h>
15243 #ifdef HAVE_WCHAR_H
15244 #include <wchar.h>
15245 #endif
15246
15247 #ifdef F77_DUMMY_MAIN
15248 #  ifdef __cplusplus
15249      extern "C"
15250 #  endif
15251    int F77_DUMMY_MAIN() { return 1; }
15252 #endif
15253 int
15254 main ()
15255 {
15256  mbstate_t s; return 0;
15257   ;
15258   return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext
15262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15263   (eval $ac_compile) 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); } &&
15267          { ac_try='test -s conftest.$ac_objext'
15268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269   (eval $ac_try) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }; }; then
15273   mutt_cv_mbstate_t=yes
15274 else
15275   echo "$as_me: failed program was:" >&5
15276 cat conftest.$ac_ext >&5
15277 mutt_cv_mbstate_t=no
15278 fi
15279 rm -f conftest.$ac_objext conftest.$ac_ext
15280 fi
15281 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
15282 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
15283
15284 if test "$mutt_cv_mbstate_t" = no; then
15285
15286 cat >>confdefs.h <<\_ACEOF
15287 #define mbstate_t int
15288 _ACEOF
15289
15290 fi
15291
15292 wc_funcs=maybe
15293
15294 # Check whether --with-wc-funcs or --without-wc-funcs was given.
15295 if test "${with_wc_funcs+set}" = set; then
15296   withval="$with_wc_funcs"
15297   wc_funcs=$withval
15298 fi;
15299
15300 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
15301         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
15302 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
15303 if test "${mutt_cv_wc_funcs+set}" = set; then
15304   echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306   mutt_cv_wc_funcs=no
15307                 cat >conftest.$ac_ext <<_ACEOF
15308 #line $LINENO "configure"
15309 #include "confdefs.h"
15310
15311 #define _XOPEN_SOURCE 1
15312 #include <stddef.h>
15313 #include <stdlib.h>
15314 #ifdef HAVE_WCTYPE_H
15315 #include <wctype.h>
15316 #endif
15317 #ifdef HAVE_WCHAR_H
15318 #include <wchar.h>
15319 #endif
15320 #ifdef F77_DUMMY_MAIN
15321 #  ifdef __cplusplus
15322      extern "C"
15323 #  endif
15324    int F77_DUMMY_MAIN() { return 1; }
15325 #endif
15326 int
15327 main ()
15328 {
15329 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
15330         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
15331   ;
15332   return 0;
15333 }
15334 _ACEOF
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337   (eval $ac_link) 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); } &&
15341          { ac_try='test -s conftest$ac_exeext'
15342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343   (eval $ac_try) 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; }; then
15347   mutt_cv_wc_funcs=yes
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 cat conftest.$ac_ext >&5
15351 fi
15352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15353 fi
15354 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
15355 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
15356         wc_funcs=$mutt_cv_wc_funcs
15357 fi
15358
15359 if test $wc_funcs = yes; then
15360
15361 cat >>confdefs.h <<\_ACEOF
15362 #define HAVE_WC_FUNCS 1
15363 _ACEOF
15364
15365 fi
15366
15367 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15368 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15369 if test "${mutt_cv_langinfo_codeset+set}" = set; then
15370   echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372   cat >conftest.$ac_ext <<_ACEOF
15373 #line $LINENO "configure"
15374 #include "confdefs.h"
15375 #include <langinfo.h>
15376 #ifdef F77_DUMMY_MAIN
15377 #  ifdef __cplusplus
15378      extern "C"
15379 #  endif
15380    int F77_DUMMY_MAIN() { return 1; }
15381 #endif
15382 int
15383 main ()
15384 {
15385 char* cs = nl_langinfo(CODESET);
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392   (eval $ac_link) 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); } &&
15396          { ac_try='test -s conftest$ac_exeext'
15397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398   (eval $ac_try) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; }; then
15402   mutt_cv_langinfo_codeset=yes
15403 else
15404   echo "$as_me: failed program was:" >&5
15405 cat conftest.$ac_ext >&5
15406 mutt_cv_langinfo_codeset=no
15407 fi
15408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15409 fi
15410 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
15411 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
15412 if test $mutt_cv_langinfo_codeset = yes; then
15413
15414 cat >>confdefs.h <<\_ACEOF
15415 #define HAVE_LANGINFO_CODESET 1
15416 _ACEOF
15417
15418 fi
15419
15420 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
15421 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
15422 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
15423   echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425   cat >conftest.$ac_ext <<_ACEOF
15426 #line $LINENO "configure"
15427 #include "confdefs.h"
15428 #include <langinfo.h>
15429 #ifdef F77_DUMMY_MAIN
15430 #  ifdef __cplusplus
15431      extern "C"
15432 #  endif
15433    int F77_DUMMY_MAIN() { return 1; }
15434 #endif
15435 int
15436 main ()
15437 {
15438 char* cs = nl_langinfo(YESEXPR);
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 rm -f conftest.$ac_objext conftest$ac_exeext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15445   (eval $ac_link) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); } &&
15449          { ac_try='test -s conftest$ac_exeext'
15450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451   (eval $ac_try) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; }; then
15455   mutt_cv_langinfo_yesexpr=yes
15456 else
15457   echo "$as_me: failed program was:" >&5
15458 cat conftest.$ac_ext >&5
15459 mutt_cv_langinfo_yesexpr=no
15460 fi
15461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15462 fi
15463 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
15464 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
15465 if test $mutt_cv_langinfo_yesexpr = yes; then
15466
15467 cat >>confdefs.h <<\_ACEOF
15468 #define HAVE_LANGINFO_YESEXPR 1
15469 _ACEOF
15470
15471 fi
15472
15473
15474
15475 # Check whether --with-libesmtp or --without-libesmtp was given.
15476 if test "${with_libesmtp+set}" = set; then
15477   withval="$with_libesmtp"
15478    if test "$with_libesmtp" != "no"
15479       then
15480         mutt_libesmtp_check_path="$PATH"
15481
15482         if test "$with_libesmtp" != "yes"
15483         then
15484           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15485         fi
15486
15487                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15488 set dummy libesmtp-config; ac_word=$2
15489 echo "$as_me:$LINENO: checking for $ac_word" >&5
15490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15491 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494   case $mutt_libesmtp_config_path in
15495   [\\/]* | ?:[\\/]*)
15496   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15497   ;;
15498   *)
15499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15500 for as_dir in $mutt_libesmtp_check_path
15501 do
15502   IFS=$as_save_IFS
15503   test -z "$as_dir" && as_dir=.
15504   for ac_exec_ext in '' $ac_executable_extensions; do
15505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15506     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15508     break 2
15509   fi
15510 done
15511 done
15512
15513   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15514   ;;
15515 esac
15516 fi
15517 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15518
15519 if test -n "$mutt_libesmtp_config_path"; then
15520   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15521 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15522 else
15523   echo "$as_me:$LINENO: result: no" >&5
15524 echo "${ECHO_T}no" >&6
15525 fi
15526
15527
15528         if test "$mutt_libesmtp_config_path" = "no"
15529         then
15530           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15531 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15532    { (exit 1); exit 1; }; }
15533         fi
15534
15535                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15536         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15537
15538                 temp_CFLAGS="$CFLAGS"
15539         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15540         if test "${ac_cv_header_libesmtp_h+set}" = set; then
15541   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15542 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15543 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 fi
15546 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15547 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15548 else
15549   # Is the header compilable?
15550 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15551 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15552 cat >conftest.$ac_ext <<_ACEOF
15553 #line $LINENO "configure"
15554 #include "confdefs.h"
15555 $ac_includes_default
15556 #include <libesmtp.h>
15557 _ACEOF
15558 rm -f conftest.$ac_objext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560   (eval $ac_compile) 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } &&
15564          { ac_try='test -s conftest.$ac_objext'
15565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566   (eval $ac_try) 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; }; then
15570   ac_header_compiler=yes
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 ac_header_compiler=no
15575 fi
15576 rm -f conftest.$ac_objext conftest.$ac_ext
15577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15578 echo "${ECHO_T}$ac_header_compiler" >&6
15579
15580 # Is the header present?
15581 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15582 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15583 cat >conftest.$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15585 #include "confdefs.h"
15586 #include <libesmtp.h>
15587 _ACEOF
15588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15590   ac_status=$?
15591   egrep -v '^ *\+' conftest.er1 >conftest.err
15592   rm -f conftest.er1
15593   cat conftest.err >&5
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } >/dev/null; then
15596   if test -s conftest.err; then
15597     ac_cpp_err=$ac_c_preproc_warn_flag
15598   else
15599     ac_cpp_err=
15600   fi
15601 else
15602   ac_cpp_err=yes
15603 fi
15604 if test -z "$ac_cpp_err"; then
15605   ac_header_preproc=yes
15606 else
15607   echo "$as_me: failed program was:" >&5
15608   cat conftest.$ac_ext >&5
15609   ac_header_preproc=no
15610 fi
15611 rm -f conftest.err conftest.$ac_ext
15612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15613 echo "${ECHO_T}$ac_header_preproc" >&6
15614
15615 # So?  What about this header?
15616 case $ac_header_compiler:$ac_header_preproc in
15617   yes:no )
15618     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15619 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15620     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15621 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;};;
15622   no:yes )
15623     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15624 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15625     { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15626 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15628 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;};;
15629 esac
15630 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15631 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15632 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15633   echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635   ac_cv_header_libesmtp_h=$ac_header_preproc
15636 fi
15637 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15638 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15639
15640 fi
15641 if test $ac_cv_header_libesmtp_h = yes; then
15642   :
15643 else
15644   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15645 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15646    { (exit 1); exit 1; }; }
15647 fi
15648
15649
15650         CFLAGS="$temp_CFLAGS"
15651
15652                 temp_CFLAGS="$CFLAGS"
15653         temp_LIBS="$LIBS"
15654         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15655         LIBS="$LIBS $mutt_libesmtp_libs"
15656
15657 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15658 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15659 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15660   echo $ECHO_N "(cached) $ECHO_C" >&6
15661 else
15662   ac_check_lib_save_LIBS=$LIBS
15663 LIBS="-lesmtp  $LIBS"
15664 cat >conftest.$ac_ext <<_ACEOF
15665 #line $LINENO "configure"
15666 #include "confdefs.h"
15667
15668 /* Override any gcc2 internal prototype to avoid an error.  */
15669 #ifdef __cplusplus
15670 extern "C"
15671 #endif
15672 /* We use char because int might match the return type of a gcc2
15673    builtin and then its argument prototype would still apply.  */
15674 char smtp_create_session ();
15675 #ifdef F77_DUMMY_MAIN
15676 #  ifdef __cplusplus
15677      extern "C"
15678 #  endif
15679    int F77_DUMMY_MAIN() { return 1; }
15680 #endif
15681 int
15682 main ()
15683 {
15684 smtp_create_session ();
15685   ;
15686   return 0;
15687 }
15688 _ACEOF
15689 rm -f conftest.$ac_objext conftest$ac_exeext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691   (eval $ac_link) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -s conftest$ac_exeext'
15696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697   (eval $ac_try) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; }; then
15701   ac_cv_lib_esmtp_smtp_create_session=yes
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 ac_cv_lib_esmtp_smtp_create_session=no
15706 fi
15707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_lib_save_LIBS
15709 fi
15710 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15711 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15712 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15713   cat >>confdefs.h <<_ACEOF
15714 #define HAVE_LIBESMTP 1
15715 _ACEOF
15716
15717   LIBS="-lesmtp $LIBS"
15718
15719 else
15720   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15721 echo "$as_me: error: Could not find libesmtp" >&2;}
15722    { (exit 1); exit 1; }; }
15723 fi
15724
15725         CFLAGS="$temp_CFLAGS"
15726         LIBS="$temp_LIBS"
15727
15728                         use_libesmtp=yes
15729       fi
15730
15731
15732 fi;
15733
15734 if test x$use_libesmtp = xyes; then
15735     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15736     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15737     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15738
15739
15740 cat >>confdefs.h <<\_ACEOF
15741 #define USE_LIBESMTP 1
15742 _ACEOF
15743
15744 fi
15745
15746 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"
15747 cat >confcache <<\_ACEOF
15748 # This file is a shell script that caches the results of configure
15749 # tests run on this system so they can be shared between configure
15750 # scripts and configure runs, see configure's option --config-cache.
15751 # It is not useful on other systems.  If it contains results you don't
15752 # want to keep, you may remove or edit it.
15753 #
15754 # config.status only pays attention to the cache file if you give it
15755 # the --recheck option to rerun configure.
15756 #
15757 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15758 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15759 # following values.
15760
15761 _ACEOF
15762
15763 # The following way of writing the cache mishandles newlines in values,
15764 # but we know of no workaround that is simple, portable, and efficient.
15765 # So, don't put newlines in cache variables' values.
15766 # Ultrix sh set writes to stderr and can't be redirected directly,
15767 # and sets the high bit in the cache file unless we assign to the vars.
15768 {
15769   (set) 2>&1 |
15770     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15771     *ac_space=\ *)
15772       # `set' does not quote correctly, so add quotes (double-quote
15773       # substitution turns \\\\ into \\, and sed turns \\ into \).
15774       sed -n \
15775         "s/'/'\\\\''/g;
15776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15777       ;;
15778     *)
15779       # `set' quotes correctly as required by POSIX, so do not add quotes.
15780       sed -n \
15781         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15782       ;;
15783     esac;
15784 } |
15785   sed '
15786      t clear
15787      : clear
15788      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15789      t end
15790      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15791      : end' >>confcache
15792 if cmp -s $cache_file confcache; then :; else
15793   if test -w $cache_file; then
15794     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15795     cat confcache >$cache_file
15796   else
15797     echo "not updating unwritable cache $cache_file"
15798   fi
15799 fi
15800 rm -f confcache
15801
15802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15803 # Let make expand exec_prefix.
15804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15805
15806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15808 # trailing colons and then remove the whole line if VPATH becomes empty
15809 # (actually we leave an empty line to preserve line numbers).
15810 if test "x$srcdir" = x.; then
15811   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15812 s/:*\$(srcdir):*/:/;
15813 s/:*\${srcdir}:*/:/;
15814 s/:*@srcdir@:*/:/;
15815 s/^\([^=]*=[    ]*\):*/\1/;
15816 s/:*$//;
15817 s/^[^=]*=[      ]*$//;
15818 }'
15819 fi
15820
15821 DEFS=-DHAVE_CONFIG_H
15822
15823
15824 : ${CONFIG_STATUS=./config.status}
15825 ac_clean_files_save=$ac_clean_files
15826 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15827 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15828 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15829 cat >$CONFIG_STATUS <<_ACEOF
15830 #! $SHELL
15831 # Generated by $as_me.
15832 # Run this file to recreate the current configuration.
15833 # Compiler output produced by configure, useful for debugging
15834 # configure, is in config.log if it exists.
15835
15836 debug=false
15837 SHELL=\${CONFIG_SHELL-$SHELL}
15838 _ACEOF
15839
15840 cat >>$CONFIG_STATUS <<\_ACEOF
15841
15842 ## --------------------- ##
15843 ## M4sh Initialization.  ##
15844 ## --------------------- ##
15845
15846 # Be Bourne compatible
15847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15848   emulate sh
15849   NULLCMD=:
15850 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15851   set -o posix
15852 fi
15853
15854 # NLS nuisances.
15855 # Support unset when possible.
15856 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15857   as_unset=unset
15858 else
15859   as_unset=false
15860 fi
15861
15862 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15863     { $as_unset LANG || test "${LANG+set}" != set; } ||
15864       { LANG=C; export LANG; }
15865 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15866     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15867       { LC_ALL=C; export LC_ALL; }
15868 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15869     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15870       { LC_TIME=C; export LC_TIME; }
15871 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15872     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15873       { LC_CTYPE=C; export LC_CTYPE; }
15874 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15875     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15876       { LANGUAGE=C; export LANGUAGE; }
15877 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15878     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15879       { LC_COLLATE=C; export LC_COLLATE; }
15880 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15881     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15882       { LC_NUMERIC=C; export LC_NUMERIC; }
15883 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15884     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15885       { LC_MESSAGES=C; export LC_MESSAGES; }
15886
15887
15888 # Name of the executable.
15889 as_me=`(basename "$0") 2>/dev/null ||
15890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15891          X"$0" : 'X\(//\)$' \| \
15892          X"$0" : 'X\(/\)$' \| \
15893          .     : '\(.\)' 2>/dev/null ||
15894 echo X/"$0" |
15895     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15896           /^X\/\(\/\/\)$/{ s//\1/; q; }
15897           /^X\/\(\/\).*/{ s//\1/; q; }
15898           s/.*/./; q'`
15899
15900 # PATH needs CR, and LINENO needs CR and PATH.
15901 # Avoid depending upon Character Ranges.
15902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15905 as_cr_digits='0123456789'
15906 as_cr_alnum=$as_cr_Letters$as_cr_digits
15907
15908 # The user is always right.
15909 if test "${PATH_SEPARATOR+set}" != set; then
15910   echo "#! /bin/sh" >conftest.sh
15911   echo  "exit 0"   >>conftest.sh
15912   chmod +x conftest.sh
15913   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15914     PATH_SEPARATOR=';'
15915   else
15916     PATH_SEPARATOR=:
15917   fi
15918   rm -f conftest.sh
15919 fi
15920
15921
15922   as_lineno_1=$LINENO
15923   as_lineno_2=$LINENO
15924   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15925   test "x$as_lineno_1" != "x$as_lineno_2" &&
15926   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15927   # Find who we are.  Look in the path if we contain no path at all
15928   # relative or not.
15929   case $0 in
15930     *[\\/]* ) as_myself=$0 ;;
15931     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932 for as_dir in $PATH
15933 do
15934   IFS=$as_save_IFS
15935   test -z "$as_dir" && as_dir=.
15936   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15937 done
15938
15939        ;;
15940   esac
15941   # We did not find ourselves, most probably we were run as `sh COMMAND'
15942   # in which case we are not to be found in the path.
15943   if test "x$as_myself" = x; then
15944     as_myself=$0
15945   fi
15946   if test ! -f "$as_myself"; then
15947     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15948 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15949    { (exit 1); exit 1; }; }
15950   fi
15951   case $CONFIG_SHELL in
15952   '')
15953     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15955 do
15956   IFS=$as_save_IFS
15957   test -z "$as_dir" && as_dir=.
15958   for as_base in sh bash ksh sh5; do
15959          case $as_dir in
15960          /*)
15961            if ("$as_dir/$as_base" -c '
15962   as_lineno_1=$LINENO
15963   as_lineno_2=$LINENO
15964   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15965   test "x$as_lineno_1" != "x$as_lineno_2" &&
15966   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15967              CONFIG_SHELL=$as_dir/$as_base
15968              export CONFIG_SHELL
15969              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15970            fi;;
15971          esac
15972        done
15973 done
15974 ;;
15975   esac
15976
15977   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15978   # uniformly replaced by the line number.  The first 'sed' inserts a
15979   # line-number line before each line; the second 'sed' does the real
15980   # work.  The second script uses 'N' to pair each line-number line
15981   # with the numbered line, and appends trailing '-' during
15982   # substitution so that $LINENO is not a special case at line end.
15983   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15984   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15985   sed '=' <$as_myself |
15986     sed '
15987       N
15988       s,$,-,
15989       : loop
15990       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15991       t loop
15992       s,-$,,
15993       s,^['$as_cr_digits']*\n,,
15994     ' >$as_me.lineno &&
15995   chmod +x $as_me.lineno ||
15996     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15997 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15998    { (exit 1); exit 1; }; }
15999
16000   # Don't try to exec as it changes $[0], causing all sort of problems
16001   # (the dirname of $[0] is not the place where we might find the
16002   # original and so on.  Autoconf is especially sensible to this).
16003   . ./$as_me.lineno
16004   # Exit status is that of the last command.
16005   exit
16006 }
16007
16008
16009 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16010   *c*,-n*) ECHO_N= ECHO_C='
16011 ' ECHO_T='      ' ;;
16012   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16013   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16014 esac
16015
16016 if expr a : '\(a\)' >/dev/null 2>&1; then
16017   as_expr=expr
16018 else
16019   as_expr=false
16020 fi
16021
16022 rm -f conf$$ conf$$.exe conf$$.file
16023 echo >conf$$.file
16024 if ln -s conf$$.file conf$$ 2>/dev/null; then
16025   # We could just check for DJGPP; but this test a) works b) is more generic
16026   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16027   if test -f conf$$.exe; then
16028     # Don't use ln at all; we don't have any links
16029     as_ln_s='cp -p'
16030   else
16031     as_ln_s='ln -s'
16032   fi
16033 elif ln conf$$.file conf$$ 2>/dev/null; then
16034   as_ln_s=ln
16035 else
16036   as_ln_s='cp -p'
16037 fi
16038 rm -f conf$$ conf$$.exe conf$$.file
16039
16040 as_executable_p="test -f"
16041
16042 # Sed expression to map a string onto a valid CPP name.
16043 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16044
16045 # Sed expression to map a string onto a valid variable name.
16046 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16047
16048
16049 # IFS
16050 # We need space, tab and new line, in precisely that order.
16051 as_nl='
16052 '
16053 IFS="   $as_nl"
16054
16055 # CDPATH.
16056 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16057
16058 exec 6>&1
16059
16060 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16061 # report actual input values of CONFIG_FILES etc. instead of their
16062 # values after options handling.  Logging --version etc. is OK.
16063 exec 5>>config.log
16064 {
16065   echo
16066   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16067 ## Running $as_me. ##
16068 _ASBOX
16069 } >&5
16070 cat >&5 <<_CSEOF
16071
16072 This file was extended by $as_me, which was
16073 generated by GNU Autoconf 2.53.  Invocation command line was
16074
16075   CONFIG_FILES    = $CONFIG_FILES
16076   CONFIG_HEADERS  = $CONFIG_HEADERS
16077   CONFIG_LINKS    = $CONFIG_LINKS
16078   CONFIG_COMMANDS = $CONFIG_COMMANDS
16079   $ $0 $@
16080
16081 _CSEOF
16082 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16083 echo >&5
16084 _ACEOF
16085
16086 # Files that config.status was made for.
16087 if test -n "$ac_config_files"; then
16088   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16089 fi
16090
16091 if test -n "$ac_config_headers"; then
16092   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16093 fi
16094
16095 if test -n "$ac_config_links"; then
16096   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16097 fi
16098
16099 if test -n "$ac_config_commands"; then
16100   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16101 fi
16102
16103 cat >>$CONFIG_STATUS <<\_ACEOF
16104
16105 ac_cs_usage="\
16106 \`$as_me' instantiates files from templates according to the
16107 current configuration.
16108
16109 Usage: $0 [OPTIONS] [FILE]...
16110
16111   -h, --help       print this help, then exit
16112   -V, --version    print version number, then exit
16113   -d, --debug      don't remove temporary files
16114       --recheck    update $as_me by reconfiguring in the same conditions
16115   --file=FILE[:TEMPLATE]
16116                    instantiate the configuration file FILE
16117   --header=FILE[:TEMPLATE]
16118                    instantiate the configuration header FILE
16119
16120 Configuration files:
16121 $config_files
16122
16123 Configuration headers:
16124 $config_headers
16125
16126 Configuration commands:
16127 $config_commands
16128
16129 Report bugs to <bug-autoconf@gnu.org>."
16130 _ACEOF
16131
16132 cat >>$CONFIG_STATUS <<_ACEOF
16133 ac_cs_version="\\
16134 config.status
16135 configured by $0, generated by GNU Autoconf 2.53,
16136   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16137
16138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16139 Free Software Foundation, Inc.
16140 This config.status script is free software; the Free Software Foundation
16141 gives unlimited permission to copy, distribute and modify it."
16142 srcdir=$srcdir
16143 INSTALL="$INSTALL"
16144 _ACEOF
16145
16146 cat >>$CONFIG_STATUS <<\_ACEOF
16147 # If no file are specified by the user, then we need to provide default
16148 # value.  By we need to know if files were specified by the user.
16149 ac_need_defaults=:
16150 while test $# != 0
16151 do
16152   case $1 in
16153   --*=*)
16154     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16155     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16156     shift
16157     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16158     shift
16159     ;;
16160   -*);;
16161   *) # This is not an option, so the user has probably given explicit
16162      # arguments.
16163      ac_need_defaults=false;;
16164   esac
16165
16166   case $1 in
16167   # Handling of the options.
16168 _ACEOF
16169 cat >>$CONFIG_STATUS <<_ACEOF
16170   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16171     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16172     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16173 _ACEOF
16174 cat >>$CONFIG_STATUS <<\_ACEOF
16175   --version | --vers* | -V )
16176     echo "$ac_cs_version"; exit 0 ;;
16177   --he | --h)
16178     # Conflict between --help and --header
16179     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16180 Try \`$0 --help' for more information." >&5
16181 echo "$as_me: error: ambiguous option: $1
16182 Try \`$0 --help' for more information." >&2;}
16183    { (exit 1); exit 1; }; };;
16184   --help | --hel | -h )
16185     echo "$ac_cs_usage"; exit 0 ;;
16186   --debug | --d* | -d )
16187     debug=: ;;
16188   --file | --fil | --fi | --f )
16189     shift
16190     CONFIG_FILES="$CONFIG_FILES $1"
16191     ac_need_defaults=false;;
16192   --header | --heade | --head | --hea )
16193     shift
16194     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16195     ac_need_defaults=false;;
16196
16197   # This is an error.
16198   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16199 Try \`$0 --help' for more information." >&5
16200 echo "$as_me: error: unrecognized option: $1
16201 Try \`$0 --help' for more information." >&2;}
16202    { (exit 1); exit 1; }; } ;;
16203
16204   *) ac_config_targets="$ac_config_targets $1" ;;
16205
16206   esac
16207   shift
16208 done
16209
16210 _ACEOF
16211
16212 cat >>$CONFIG_STATUS <<_ACEOF
16213 #
16214 # INIT-COMMANDS section.
16215 #
16216
16217
16218
16219
16220 _ACEOF
16221
16222
16223
16224 cat >>$CONFIG_STATUS <<\_ACEOF
16225 for ac_config_target in $ac_config_targets
16226 do
16227   case "$ac_config_target" in
16228   # Handling of arguments.
16229   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16230   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16231   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16232   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16233   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16234   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16235   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
16236   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
16237   "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
16238   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
16239   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16240   "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
16241   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16242   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16243 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16244    { (exit 1); exit 1; }; };;
16245   esac
16246 done
16247
16248 # If the user did not use the arguments to specify the items to instantiate,
16249 # then the envvar interface is used.  Set only those that are not.
16250 # We use the long form for the default assignment because of an extremely
16251 # bizarre bug on SunOS 4.1.3.
16252 if $ac_need_defaults; then
16253   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16254   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16255   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16256 fi
16257
16258 # Create a temporary directory, and hook for its removal unless debugging.
16259 $debug ||
16260 {
16261   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16262   trap '{ (exit 1); exit 1; }' 1 2 13 15
16263 }
16264
16265 # Create a (secure) tmp directory for tmp files.
16266 : ${TMPDIR=/tmp}
16267 {
16268   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16269   test -n "$tmp" && test -d "$tmp"
16270 }  ||
16271 {
16272   tmp=$TMPDIR/cs$$-$RANDOM
16273   (umask 077 && mkdir $tmp)
16274 } ||
16275 {
16276    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16277    { (exit 1); exit 1; }
16278 }
16279
16280 _ACEOF
16281
16282 cat >>$CONFIG_STATUS <<_ACEOF
16283
16284 #
16285 # CONFIG_FILES section.
16286 #
16287
16288 # No need to generate the scripts if there are no CONFIG_FILES.
16289 # This happens for instance when ./config.status config.h
16290 if test -n "\$CONFIG_FILES"; then
16291   # Protect against being on the right side of a sed subst in config.status.
16292   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16293    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16294 s,@SHELL@,$SHELL,;t t
16295 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16296 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16297 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16298 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16299 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16300 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16301 s,@exec_prefix@,$exec_prefix,;t t
16302 s,@prefix@,$prefix,;t t
16303 s,@program_transform_name@,$program_transform_name,;t t
16304 s,@bindir@,$bindir,;t t
16305 s,@sbindir@,$sbindir,;t t
16306 s,@libexecdir@,$libexecdir,;t t
16307 s,@datadir@,$datadir,;t t
16308 s,@sysconfdir@,$sysconfdir,;t t
16309 s,@sharedstatedir@,$sharedstatedir,;t t
16310 s,@localstatedir@,$localstatedir,;t t
16311 s,@libdir@,$libdir,;t t
16312 s,@includedir@,$includedir,;t t
16313 s,@oldincludedir@,$oldincludedir,;t t
16314 s,@infodir@,$infodir,;t t
16315 s,@mandir@,$mandir,;t t
16316 s,@build_alias@,$build_alias,;t t
16317 s,@host_alias@,$host_alias,;t t
16318 s,@target_alias@,$target_alias,;t t
16319 s,@DEFS@,$DEFS,;t t
16320 s,@ECHO_C@,$ECHO_C,;t t
16321 s,@ECHO_N@,$ECHO_N,;t t
16322 s,@ECHO_T@,$ECHO_T,;t t
16323 s,@LIBS@,$LIBS,;t t
16324 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16325 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16326 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16327 s,@PACKAGE@,$PACKAGE,;t t
16328 s,@VERSION@,$VERSION,;t t
16329 s,@ACLOCAL@,$ACLOCAL,;t t
16330 s,@AUTOCONF@,$AUTOCONF,;t t
16331 s,@AUTOMAKE@,$AUTOMAKE,;t t
16332 s,@AUTOHEADER@,$AUTOHEADER,;t t
16333 s,@MAKEINFO@,$MAKEINFO,;t t
16334 s,@SET_MAKE@,$SET_MAKE,;t t
16335 s,@build@,$build,;t t
16336 s,@build_cpu@,$build_cpu,;t t
16337 s,@build_vendor@,$build_vendor,;t t
16338 s,@build_os@,$build_os,;t t
16339 s,@host@,$host,;t t
16340 s,@host_cpu@,$host_cpu,;t t
16341 s,@host_vendor@,$host_vendor,;t t
16342 s,@host_os@,$host_os,;t t
16343 s,@CC@,$CC,;t t
16344 s,@CFLAGS@,$CFLAGS,;t t
16345 s,@LDFLAGS@,$LDFLAGS,;t t
16346 s,@CPPFLAGS@,$CPPFLAGS,;t t
16347 s,@ac_ct_CC@,$ac_ct_CC,;t t
16348 s,@EXEEXT@,$EXEEXT,;t t
16349 s,@OBJEXT@,$OBJEXT,;t t
16350 s,@CPP@,$CPP,;t t
16351 s,@U@,$U,;t t
16352 s,@ANSI2KNR@,$ANSI2KNR,;t t
16353 s,@RANLIB@,$RANLIB,;t t
16354 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16355 s,@AR@,$AR,;t t
16356 s,@ac_ct_AR@,$ac_ct_AR,;t t
16357 s,@DBX@,$DBX,;t t
16358 s,@GDB@,$GDB,;t t
16359 s,@SDB@,$SDB,;t t
16360 s,@DEBUGGER@,$DEBUGGER,;t t
16361 s,@SENDMAIL@,$SENDMAIL,;t t
16362 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
16363 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
16364 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
16365 s,@OPS@,$OPS,;t t
16366 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16367 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16368 s,@SUBVERSION@,$SUBVERSION,;t t
16369 s,@ISPELL@,$ISPELL,;t t
16370 s,@LIBOBJS@,$LIBOBJS,;t t
16371 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16372 s,@docdir@,$docdir,;t t
16373 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16374 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16375 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16376 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16377 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16378 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16379 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16380 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16381 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16382 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
16383 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
16384 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
16385 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
16386 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
16387 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16388 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16389 s,@MUTTLIBS@,$MUTTLIBS,;t t
16390 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16391 s,@LIBIMAP@,$LIBIMAP,;t t
16392 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16393 s,@ALLOCA@,$ALLOCA,;t t
16394 s,@GLIBC21@,$GLIBC21,;t t
16395 s,@LIBICONV@,$LIBICONV,;t t
16396 s,@USE_NLS@,$USE_NLS,;t t
16397 s,@MSGFMT@,$MSGFMT,;t t
16398 s,@GMSGFMT@,$GMSGFMT,;t t
16399 s,@XGETTEXT@,$XGETTEXT,;t t
16400 s,@INTLBISON@,$INTLBISON,;t t
16401 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16402 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16403 s,@CATALOGS@,$CATALOGS,;t t
16404 s,@CATOBJEXT@,$CATOBJEXT,;t t
16405 s,@GMOFILES@,$GMOFILES,;t t
16406 s,@INTLLIBS@,$INTLLIBS,;t t
16407 s,@INTLOBJS@,$INTLOBJS,;t t
16408 s,@POFILES@,$POFILES,;t t
16409 s,@POSUB@,$POSUB,;t t
16410 s,@DATADIRNAME@,$DATADIRNAME,;t t
16411 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16412 s,@GENCAT@,$GENCAT,;t t
16413 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16414 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16415 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16416 CEOF
16417
16418 _ACEOF
16419
16420   cat >>$CONFIG_STATUS <<\_ACEOF
16421   # Split the substitutions into bite-sized pieces for seds with
16422   # small command number limits, like on Digital OSF/1 and HP-UX.
16423   ac_max_sed_lines=48
16424   ac_sed_frag=1 # Number of current file.
16425   ac_beg=1 # First line for current file.
16426   ac_end=$ac_max_sed_lines # Line after last line for current file.
16427   ac_more_lines=:
16428   ac_sed_cmds=
16429   while $ac_more_lines; do
16430     if test $ac_beg -gt 1; then
16431       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16432     else
16433       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16434     fi
16435     if test ! -s $tmp/subs.frag; then
16436       ac_more_lines=false
16437     else
16438       # The purpose of the label and of the branching condition is to
16439       # speed up the sed processing (if there are no `@' at all, there
16440       # is no need to browse any of the substitutions).
16441       # These are the two extra sed commands mentioned above.
16442       (echo ':t
16443   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16444       if test -z "$ac_sed_cmds"; then
16445         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16446       else
16447         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16448       fi
16449       ac_sed_frag=`expr $ac_sed_frag + 1`
16450       ac_beg=$ac_end
16451       ac_end=`expr $ac_end + $ac_max_sed_lines`
16452     fi
16453   done
16454   if test -z "$ac_sed_cmds"; then
16455     ac_sed_cmds=cat
16456   fi
16457 fi # test -n "$CONFIG_FILES"
16458
16459 _ACEOF
16460 cat >>$CONFIG_STATUS <<\_ACEOF
16461 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16462   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16463   case $ac_file in
16464   - | *:- | *:-:* ) # input from stdin
16465         cat >$tmp/stdin
16466         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16467         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16468   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16469         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16470   * )   ac_file_in=$ac_file.in ;;
16471   esac
16472
16473   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16474   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16476          X"$ac_file" : 'X\(//\)[^/]' \| \
16477          X"$ac_file" : 'X\(//\)$' \| \
16478          X"$ac_file" : 'X\(/\)' \| \
16479          .     : '\(.\)' 2>/dev/null ||
16480 echo X"$ac_file" |
16481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16482           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16483           /^X\(\/\/\)$/{ s//\1/; q; }
16484           /^X\(\/\).*/{ s//\1/; q; }
16485           s/.*/./; q'`
16486   { case "$ac_dir" in
16487   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16488   *)                      as_incr_dir=.;;
16489 esac
16490 as_dummy="$ac_dir"
16491 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16492   case $as_mkdir_dir in
16493     # Skip DOS drivespec
16494     ?:) as_incr_dir=$as_mkdir_dir ;;
16495     *)
16496       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16497       test -d "$as_incr_dir" ||
16498         mkdir "$as_incr_dir" ||
16499         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16500 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16501    { (exit 1); exit 1; }; }
16502     ;;
16503   esac
16504 done; }
16505
16506   ac_builddir=.
16507
16508 if test "$ac_dir" != .; then
16509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16510   # A "../" for each directory in $ac_dir_suffix.
16511   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16512 else
16513   ac_dir_suffix= ac_top_builddir=
16514 fi
16515
16516 case $srcdir in
16517   .)  # No --srcdir option.  We are building in place.
16518     ac_srcdir=.
16519     if test -z "$ac_top_builddir"; then
16520        ac_top_srcdir=.
16521     else
16522        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16523     fi ;;
16524   [\\/]* | ?:[\\/]* )  # Absolute path.
16525     ac_srcdir=$srcdir$ac_dir_suffix;
16526     ac_top_srcdir=$srcdir ;;
16527   *) # Relative path.
16528     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16529     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16530 esac
16531 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16532 # absolute.
16533 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16534 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16535 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16536 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16537
16538
16539   case $INSTALL in
16540   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16541   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16542   esac
16543
16544   if test x"$ac_file" != x-; then
16545     { echo "$as_me:$LINENO: creating $ac_file" >&5
16546 echo "$as_me: creating $ac_file" >&6;}
16547     rm -f "$ac_file"
16548   fi
16549   # Let's still pretend it is `configure' which instantiates (i.e., don't
16550   # use $as_me), people would be surprised to read:
16551   #    /* config.h.  Generated by config.status.  */
16552   if test x"$ac_file" = x-; then
16553     configure_input=
16554   else
16555     configure_input="$ac_file.  "
16556   fi
16557   configure_input=$configure_input"Generated from `echo $ac_file_in |
16558                                      sed 's,.*/,,'` by configure."
16559
16560   # First look for the input files in the build tree, otherwise in the
16561   # src tree.
16562   ac_file_inputs=`IFS=:
16563     for f in $ac_file_in; do
16564       case $f in
16565       -) echo $tmp/stdin ;;
16566       [\\/$]*)
16567          # Absolute (can't be DOS-style, as IFS=:)
16568          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16569 echo "$as_me: error: cannot find input file: $f" >&2;}
16570    { (exit 1); exit 1; }; }
16571          echo $f;;
16572       *) # Relative
16573          if test -f "$f"; then
16574            # Build tree
16575            echo $f
16576          elif test -f "$srcdir/$f"; then
16577            # Source tree
16578            echo $srcdir/$f
16579          else
16580            # /dev/null tree
16581            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16582 echo "$as_me: error: cannot find input file: $f" >&2;}
16583    { (exit 1); exit 1; }; }
16584          fi;;
16585       esac
16586     done` || { (exit 1); exit 1; }
16587 _ACEOF
16588 cat >>$CONFIG_STATUS <<_ACEOF
16589   sed "$ac_vpsub
16590 $extrasub
16591 _ACEOF
16592 cat >>$CONFIG_STATUS <<\_ACEOF
16593 :t
16594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16595 s,@configure_input@,$configure_input,;t t
16596 s,@srcdir@,$ac_srcdir,;t t
16597 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16598 s,@top_srcdir@,$ac_top_srcdir,;t t
16599 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16600 s,@builddir@,$ac_builddir,;t t
16601 s,@abs_builddir@,$ac_abs_builddir,;t t
16602 s,@top_builddir@,$ac_top_builddir,;t t
16603 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16604 s,@INSTALL@,$ac_INSTALL,;t t
16605 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16606   rm -f $tmp/stdin
16607   if test x"$ac_file" != x-; then
16608     mv $tmp/out $ac_file
16609   else
16610     cat $tmp/out
16611     rm -f $tmp/out
16612   fi
16613
16614 done
16615 _ACEOF
16616 cat >>$CONFIG_STATUS <<\_ACEOF
16617
16618 #
16619 # CONFIG_HEADER section.
16620 #
16621
16622 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16623 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16624 #
16625 # ac_d sets the value in "#define NAME VALUE" lines.
16626 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16627 ac_dB='[        ].*$,\1#\2'
16628 ac_dC=' '
16629 ac_dD=',;t'
16630 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16631 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16632 ac_uB='$,\1#\2define\3'
16633 ac_uC=' '
16634 ac_uD=',;t'
16635
16636 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16637   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16638   case $ac_file in
16639   - | *:- | *:-:* ) # input from stdin
16640         cat >$tmp/stdin
16641         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16642         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16643   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16644         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16645   * )   ac_file_in=$ac_file.in ;;
16646   esac
16647
16648   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16649 echo "$as_me: creating $ac_file" >&6;}
16650
16651   # First look for the input files in the build tree, otherwise in the
16652   # src tree.
16653   ac_file_inputs=`IFS=:
16654     for f in $ac_file_in; do
16655       case $f in
16656       -) echo $tmp/stdin ;;
16657       [\\/$]*)
16658          # Absolute (can't be DOS-style, as IFS=:)
16659          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16660 echo "$as_me: error: cannot find input file: $f" >&2;}
16661    { (exit 1); exit 1; }; }
16662          echo $f;;
16663       *) # Relative
16664          if test -f "$f"; then
16665            # Build tree
16666            echo $f
16667          elif test -f "$srcdir/$f"; then
16668            # Source tree
16669            echo $srcdir/$f
16670          else
16671            # /dev/null tree
16672            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16673 echo "$as_me: error: cannot find input file: $f" >&2;}
16674    { (exit 1); exit 1; }; }
16675          fi;;
16676       esac
16677     done` || { (exit 1); exit 1; }
16678   # Remove the trailing spaces.
16679   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16680
16681 _ACEOF
16682
16683 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16684 # `conftest.undefs', that substitutes the proper values into
16685 # config.h.in to produce config.h.  The first handles `#define'
16686 # templates, and the second `#undef' templates.
16687 # And first: Protect against being on the right side of a sed subst in
16688 # config.status.  Protect against being in an unquoted here document
16689 # in config.status.
16690 rm -f conftest.defines conftest.undefs
16691 # Using a here document instead of a string reduces the quoting nightmare.
16692 # Putting comments in sed scripts is not portable.
16693 #
16694 # `end' is used to avoid that the second main sed command (meant for
16695 # 0-ary CPP macros) applies to n-ary macro definitions.
16696 # See the Autoconf documentation for `clear'.
16697 cat >confdef2sed.sed <<\_ACEOF
16698 s/[\\&,]/\\&/g
16699 s,[\\$`],\\&,g
16700 t clear
16701 : clear
16702 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16703 t end
16704 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16705 : end
16706 _ACEOF
16707 # If some macros were called several times there might be several times
16708 # the same #defines, which is useless.  Nevertheless, we may not want to
16709 # sort them, since we want the *last* AC-DEFINE to be honored.
16710 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16711 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16712 rm -f confdef2sed.sed
16713
16714 # This sed command replaces #undef with comments.  This is necessary, for
16715 # example, in the case of _POSIX_SOURCE, which is predefined and required
16716 # on some systems where configure will not decide to define it.
16717 cat >>conftest.undefs <<\_ACEOF
16718 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16719 _ACEOF
16720
16721 # Break up conftest.defines because some shells have a limit on the size
16722 # of here documents, and old seds have small limits too (100 cmds).
16723 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16724 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16725 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16726 echo '  :' >>$CONFIG_STATUS
16727 rm -f conftest.tail
16728 while grep . conftest.defines >/dev/null
16729 do
16730   # Write a limited-size here document to $tmp/defines.sed.
16731   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16732   # Speed up: don't consider the non `#define' lines.
16733   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16734   # Work around the forget-to-reset-the-flag bug.
16735   echo 't clr' >>$CONFIG_STATUS
16736   echo ': clr' >>$CONFIG_STATUS
16737   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16738   echo 'CEOF
16739   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16740   rm -f $tmp/in
16741   mv $tmp/out $tmp/in
16742 ' >>$CONFIG_STATUS
16743   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16744   rm -f conftest.defines
16745   mv conftest.tail conftest.defines
16746 done
16747 rm -f conftest.defines
16748 echo '  fi # egrep' >>$CONFIG_STATUS
16749 echo >>$CONFIG_STATUS
16750
16751 # Break up conftest.undefs because some shells have a limit on the size
16752 # of here documents, and old seds have small limits too (100 cmds).
16753 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16754 rm -f conftest.tail
16755 while grep . conftest.undefs >/dev/null
16756 do
16757   # Write a limited-size here document to $tmp/undefs.sed.
16758   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16759   # Speed up: don't consider the non `#undef'
16760   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16761   # Work around the forget-to-reset-the-flag bug.
16762   echo 't clr' >>$CONFIG_STATUS
16763   echo ': clr' >>$CONFIG_STATUS
16764   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16765   echo 'CEOF
16766   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16767   rm -f $tmp/in
16768   mv $tmp/out $tmp/in
16769 ' >>$CONFIG_STATUS
16770   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16771   rm -f conftest.undefs
16772   mv conftest.tail conftest.undefs
16773 done
16774 rm -f conftest.undefs
16775
16776 cat >>$CONFIG_STATUS <<\_ACEOF
16777   # Let's still pretend it is `configure' which instantiates (i.e., don't
16778   # use $as_me), people would be surprised to read:
16779   #    /* config.h.  Generated by config.status.  */
16780   if test x"$ac_file" = x-; then
16781     echo "/* Generated by configure.  */" >$tmp/config.h
16782   else
16783     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16784   fi
16785   cat $tmp/in >>$tmp/config.h
16786   rm -f $tmp/in
16787   if test x"$ac_file" != x-; then
16788     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16789       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16790 echo "$as_me: $ac_file is unchanged" >&6;}
16791     else
16792       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16793 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16794          X"$ac_file" : 'X\(//\)[^/]' \| \
16795          X"$ac_file" : 'X\(//\)$' \| \
16796          X"$ac_file" : 'X\(/\)' \| \
16797          .     : '\(.\)' 2>/dev/null ||
16798 echo X"$ac_file" |
16799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16800           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16801           /^X\(\/\/\)$/{ s//\1/; q; }
16802           /^X\(\/\).*/{ s//\1/; q; }
16803           s/.*/./; q'`
16804       { case "$ac_dir" in
16805   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16806   *)                      as_incr_dir=.;;
16807 esac
16808 as_dummy="$ac_dir"
16809 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16810   case $as_mkdir_dir in
16811     # Skip DOS drivespec
16812     ?:) as_incr_dir=$as_mkdir_dir ;;
16813     *)
16814       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16815       test -d "$as_incr_dir" ||
16816         mkdir "$as_incr_dir" ||
16817         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16818 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16819    { (exit 1); exit 1; }; }
16820     ;;
16821   esac
16822 done; }
16823
16824       rm -f $ac_file
16825       mv $tmp/config.h $ac_file
16826     fi
16827   else
16828     cat $tmp/config.h
16829     rm -f $tmp/config.h
16830   fi
16831 done
16832 _ACEOF
16833 cat >>$CONFIG_STATUS <<\_ACEOF
16834
16835 #
16836 # CONFIG_COMMANDS section.
16837 #
16838 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16839   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16840   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16841   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16842 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16843          X"$ac_dest" : 'X\(//\)[^/]' \| \
16844          X"$ac_dest" : 'X\(//\)$' \| \
16845          X"$ac_dest" : 'X\(/\)' \| \
16846          .     : '\(.\)' 2>/dev/null ||
16847 echo X"$ac_dest" |
16848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16849           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16850           /^X\(\/\/\)$/{ s//\1/; q; }
16851           /^X\(\/\).*/{ s//\1/; q; }
16852           s/.*/./; q'`
16853   ac_builddir=.
16854
16855 if test "$ac_dir" != .; then
16856   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16857   # A "../" for each directory in $ac_dir_suffix.
16858   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16859 else
16860   ac_dir_suffix= ac_top_builddir=
16861 fi
16862
16863 case $srcdir in
16864   .)  # No --srcdir option.  We are building in place.
16865     ac_srcdir=.
16866     if test -z "$ac_top_builddir"; then
16867        ac_top_srcdir=.
16868     else
16869        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16870     fi ;;
16871   [\\/]* | ?:[\\/]* )  # Absolute path.
16872     ac_srcdir=$srcdir$ac_dir_suffix;
16873     ac_top_srcdir=$srcdir ;;
16874   *) # Relative path.
16875     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16876     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16877 esac
16878 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16879 # absolute.
16880 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16881 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16882 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16883 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16884
16885
16886   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16887 echo "$as_me: executing $ac_dest commands" >&6;}
16888   case $ac_dest in
16889     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
16890     default-2 ) for ac_file in $CONFIG_FILES; do
16891         # Support "outfile[:infile[:infile...]]"
16892         case "$ac_file" in
16893           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16894         esac
16895         # PO directories have a Makefile.in generated from Makefile.in.in.
16896         case "$ac_file" in */Makefile.in)
16897           # Adjust a relative srcdir.
16898           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16899           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16900           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16901           # In autoconf-2.13 it is called $ac_given_srcdir.
16902           # In autoconf-2.50 it is called $srcdir.
16903           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16904           case "$ac_given_srcdir" in
16905             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16906             /*) top_srcdir="$ac_given_srcdir" ;;
16907             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16908           esac
16909           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16910             rm -f "$ac_dir/POTFILES"
16911             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16912             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16913             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16914             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16915           fi
16916           ;;
16917         esac
16918       done ;;
16919   esac
16920 done
16921 _ACEOF
16922
16923 cat >>$CONFIG_STATUS <<\_ACEOF
16924
16925 { (exit 0); exit 0; }
16926 _ACEOF
16927 chmod +x $CONFIG_STATUS
16928 ac_clean_files=$ac_clean_files_save
16929
16930
16931 # configure is writing to config.log, and then calls config.status.
16932 # config.status does its own redirection, appending to config.log.
16933 # Unfortunately, on DOS this fails, as config.log is still kept open
16934 # by configure, so config.status won't be able to write to it; its
16935 # output is simply discarded.  So we exec the FD to /dev/null,
16936 # effectively closing config.log, so it can be properly (re)opened and
16937 # appended to by config.status.  When coming back to configure, we
16938 # need to make the FD available again.
16939 if test "$no_create" != yes; then
16940   ac_cs_success=:
16941   exec 5>/dev/null
16942   $SHELL $CONFIG_STATUS || ac_cs_success=false
16943   exec 5>>config.log
16944   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16945   # would make configure fail if this is the last instruction.
16946   $ac_cs_success || { (exit 1); exit 1; }
16947 fi
16948