Andreas Krennmair:
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --disable-pgp              Disable PGP support
854   --disable-smime            Disable SMIME support
855   --enable-external-dotlock  Force use of an external dotlock program
856   --enable-pop               Enable POP3 support
857   --enable-imap              Enable IMAP support
858   --enable-nntp              Enable NNTP support
859   --enable-debug             Enable debugging support
860   --enable-flock             Use flock() to lock files
861   --disable-fcntl            Do NOT use fcntl() to lock files
862   --disable-warnings         Turn off compiler warnings (not recommended)
863   --enable-nfs-fix           Work around an NFS with broken attributes caching
864   --enable-buffy-size        Use file size attribute instead of access time
865   --enable-mailtool          Enable Sun mailtool attachments support
866   --enable-compressed        Enable compressed folders support
867   --enable-locales-fix       The result of isprint() is unreliable
868   --enable-exact-address     Enable regeneration of email addresses
869   --enable-hcache            Enable header caching
870   --disable-iconv            Disable iconv support
871   --disable-nls              Do not use Native Language Support
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-mixmaster=PATH    Include Mixmaster support
877   --with-slang=DIR         Use S-Lang instead of ncurses
878   --with-curses=DIR          Where ncurses is installed
879   --with-regex               Use the GNU regex library
880   --with-homespool=FILE    File in user's directory where new mail is spooled
881   --with-mailpath=DIR        Directory where spool mailboxes are located
882   --with-docdir=PATH         Specify where to put the documentation
883   --with-domain=DOMAIN       Specify your DNS domain name
884     --with-gss=PFX         Compile in GSSAPI authentication for IMAP
885   --with-ssl=PFX           Compile in SSL support for POP/IMAP
886   --with-gnutls=PFX        Compile in GNU TLS support for POP/IMAP
887   --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
888   --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
889   --with-sasl2=PFX         Use Cyrus SASL library version 2 for POP/IMAP authentication
890   --with-idn=PFX                Use GNU libidn for domain names
891   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
892   --without-gdbm             Get rid of gdbm even if it is available
893   --with-bdb=DIR          Use BerkeleyDB4 if gdbm is not available
894   --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
895   --with-included-gettext    Use the GNU gettext library included here
896   --without-wc-funcs         Do not use the system's wchar_t functions
897   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
898
899 Some influential environment variables:
900   CC          C compiler command
901   CFLAGS      C compiler flags
902   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
903               nonstandard directory <lib dir>
904   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
905               headers in a nonstandard directory <include dir>
906   CPP         C preprocessor
907
908 Use these variables to override the choices made by `configure' or to help
909 it to find libraries and programs with nonstandard names/locations.
910
911 _ACEOF
912 fi
913
914 if test "$ac_init_help" = "recursive"; then
915   # If there are subdirs, report their specific --help.
916   ac_popdir=`pwd`
917   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918     test -d $ac_dir || continue
919     ac_builddir=.
920
921 if test "$ac_dir" != .; then
922   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923   # A "../" for each directory in $ac_dir_suffix.
924   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 else
926   ac_dir_suffix= ac_top_builddir=
927 fi
928
929 case $srcdir in
930   .)  # No --srcdir option.  We are building in place.
931     ac_srcdir=.
932     if test -z "$ac_top_builddir"; then
933        ac_top_srcdir=.
934     else
935        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936     fi ;;
937   [\\/]* | ?:[\\/]* )  # Absolute path.
938     ac_srcdir=$srcdir$ac_dir_suffix;
939     ac_top_srcdir=$srcdir ;;
940   *) # Relative path.
941     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942     ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 esac
944 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
945 # absolute.
946 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
947 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
948 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
949 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950
951     cd $ac_dir
952     # Check for guested configure; otherwise get Cygnus style configure.
953     if test -f $ac_srcdir/configure.gnu; then
954       echo
955       $SHELL $ac_srcdir/configure.gnu  --help=recursive
956     elif test -f $ac_srcdir/configure; then
957       echo
958       $SHELL $ac_srcdir/configure  --help=recursive
959     elif test -f $ac_srcdir/configure.ac ||
960            test -f $ac_srcdir/configure.in; then
961       echo
962       $ac_configure --help
963     else
964       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965     fi
966     cd $ac_popdir
967   done
968 fi
969
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972   cat <<\_ACEOF
973
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979   exit 0
980 fi
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
985
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.57.  Invocation command line was
988
989   $ $0 $@
990
991 _ACEOF
992 {
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
997
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1006
1007 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1008 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1011 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1012 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1013 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1014
1015 _ASUNAME
1016
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1019 do
1020   IFS=$as_save_IFS
1021   test -z "$as_dir" && as_dir=.
1022   echo "PATH: $as_dir"
1023 done
1024
1025 } >&5
1026
1027 cat >&5 <<_ACEOF
1028
1029
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1033
1034 _ACEOF
1035
1036
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1048 do
1049   for ac_arg
1050   do
1051     case $ac_arg in
1052     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054     | -silent | --silent | --silen | --sile | --sil)
1055       continue ;;
1056     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058     esac
1059     case $ac_pass in
1060     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061     2)
1062       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063       if test $ac_must_keep_next = true; then
1064         ac_must_keep_next=false # Got value, back to normal.
1065       else
1066         case $ac_arg in
1067           *=* | --config-cache | -C | -disable-* | --disable-* \
1068           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070           | -with-* | --with-* | -without-* | --without-* | --x)
1071             case "$ac_configure_args0 " in
1072               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073             esac
1074             ;;
1075           -* ) ac_must_keep_next=true ;;
1076         esac
1077       fi
1078       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079       # Get rid of the leading space.
1080       ac_sep=" "
1081       ;;
1082     esac
1083   done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log.  We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094   # Save into config.log some information that might help in debugging.
1095   {
1096     echo
1097
1098     cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103     echo
1104     # The following way of writing the cache mishandles newlines in values,
1105 {
1106   (set) 2>&1 |
1107     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108     *ac_space=\ *)
1109       sed -n \
1110         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112       ;;
1113     *)
1114       sed -n \
1115         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116       ;;
1117     esac;
1118 }
1119     echo
1120
1121     cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126     echo
1127     for ac_var in $ac_subst_vars
1128     do
1129       eval ac_val=$`echo $ac_var`
1130       echo "$ac_var='"'"'$ac_val'"'"'"
1131     done | sort
1132     echo
1133
1134     if test -n "$ac_subst_files"; then
1135       cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140       echo
1141       for ac_var in $ac_subst_files
1142       do
1143         eval ac_val=$`echo $ac_var`
1144         echo "$ac_var='"'"'$ac_val'"'"'"
1145       done | sort
1146       echo
1147     fi
1148
1149     if test -s confdefs.h; then
1150       cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155       echo
1156       sed "/^$/d" confdefs.h | sort
1157       echo
1158     fi
1159     test "$ac_signal" != 0 &&
1160       echo "$as_me: caught signal $ac_signal"
1161     echo "$as_me: exit $exit_status"
1162   } >&5
1163   rm -f core core.* *.core &&
1164   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165     exit $exit_status
1166      ' 0
1167 for ac_signal in 1 2 13 15; do
1168   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1171
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1176
1177 # Predefined preprocessor variables.
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1202
1203
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207   if test "x$prefix" != xNONE; then
1208     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209   else
1210     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211   fi
1212 fi
1213 for ac_site_file in $CONFIG_SITE; do
1214   if test -r "$ac_site_file"; then
1215     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217     sed 's/^/| /' "$ac_site_file" >&5
1218     . "$ac_site_file"
1219   fi
1220 done
1221
1222 if test -r "$cache_file"; then
1223   # Some versions of bash will fail to source /dev/null (special
1224   # files actually), so we avoid doing that.
1225   if test -f "$cache_file"; then
1226     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228     case $cache_file in
1229       [\\/]* | ?:[\\/]* ) . $cache_file;;
1230       *)                      . ./$cache_file;;
1231     esac
1232   fi
1233 else
1234   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236   >$cache_file
1237 fi
1238
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245   eval ac_new_set=\$ac_env_${ac_var}_set
1246   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247   eval ac_new_val="\$ac_env_${ac_var}_value"
1248   case $ac_old_set,$ac_new_set in
1249     set,)
1250       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252       ac_cache_corrupted=: ;;
1253     ,set)
1254       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256       ac_cache_corrupted=: ;;
1257     ,);;
1258     *)
1259       if test "x$ac_old_val" != "x$ac_new_val"; then
1260         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1263 echo "$as_me:   former value:  $ac_old_val" >&2;}
1264         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1265 echo "$as_me:   current value: $ac_new_val" >&2;}
1266         ac_cache_corrupted=:
1267       fi;;
1268   esac
1269   # Pass precious variables to config.status.
1270   if test "$ac_new_set" = set; then
1271     case $ac_new_val in
1272     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274     *) ac_arg=$ac_var=$ac_new_val ;;
1275     esac
1276     case " $ac_configure_args " in
1277       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1278       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279     esac
1280   fi
1281 done
1282 if $ac_cache_corrupted; then
1283   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287    { (exit 1); exit 1; }; }
1288 fi
1289
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314           ac_config_headers="$ac_config_headers config.h"
1315
1316
1317 mutt_cv_version=`cat $srcdir/VERSION`
1318
1319
1320 am__api_version="1.7"
1321 ac_aux_dir=
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323   if test -f $ac_dir/install-sh; then
1324     ac_aux_dir=$ac_dir
1325     ac_install_sh="$ac_aux_dir/install-sh -c"
1326     break
1327   elif test -f $ac_dir/install.sh; then
1328     ac_aux_dir=$ac_dir
1329     ac_install_sh="$ac_aux_dir/install.sh -c"
1330     break
1331   elif test -f $ac_dir/shtool; then
1332     ac_aux_dir=$ac_dir
1333     ac_install_sh="$ac_aux_dir/shtool install -c"
1334     break
1335   fi
1336 done
1337 if test -z "$ac_aux_dir"; then
1338   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340    { (exit 1); exit 1; }; }
1341 fi
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346 # Find a good install program.  We prefer a C program (faster),
1347 # so one script is as good as another.  But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1352 # AIX /bin/install
1353 # AmigaOS /C/install, which installs bootblocks on floppy discs
1354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1357 # ./install, which can be erroneously created by make from ./install.sh.
1358 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1359 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1360 if test -z "$INSTALL"; then
1361 if test "${ac_cv_path_install+set}" = set; then
1362   echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 for as_dir in $PATH
1366 do
1367   IFS=$as_save_IFS
1368   test -z "$as_dir" && as_dir=.
1369   # Account for people who put trailing slashes in PATH elements.
1370 case $as_dir/ in
1371   ./ | .// | /cC/* | \
1372   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1373   /usr/ucb/* ) ;;
1374   *)
1375     # OSF1 and SCO ODT 3.0 have their own names for install.
1376     # Don't use installbsd from OSF since it installs stuff as root
1377     # by default.
1378     for ac_prog in ginstall scoinst install; do
1379       for ac_exec_ext in '' $ac_executable_extensions; do
1380         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381           if test $ac_prog = install &&
1382             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383             # AIX install.  It has an incompatible calling convention.
1384             :
1385           elif test $ac_prog = install &&
1386             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387             # program-specific install script used by HP pwplus--don't use.
1388             :
1389           else
1390             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1391             break 3
1392           fi
1393         fi
1394       done
1395     done
1396     ;;
1397 esac
1398 done
1399
1400
1401 fi
1402   if test "${ac_cv_path_install+set}" = set; then
1403     INSTALL=$ac_cv_path_install
1404   else
1405     # As a last resort, use the slow shell script.  We don't cache a
1406     # path for INSTALL within a source directory, because that will
1407     # break other packages using the cache if that directory is
1408     # removed, or if the path is relative.
1409     INSTALL=$ac_install_sh
1410   fi
1411 fi
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1414
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1425 # Just in case
1426 sleep 1
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments.  Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1432 # directory).
1433 if (
1434    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435    if test "$*" = "X"; then
1436       # -L didn't work.
1437       set X `ls -t $srcdir/configure conftest.file`
1438    fi
1439    rm -f conftest.file
1440    if test "$*" != "X $srcdir/configure conftest.file" \
1441       && test "$*" != "X conftest.file $srcdir/configure"; then
1442
1443       # If neither matched, then we have a broken ls.  This can happen
1444       # if, for instance, CONFIG_SHELL is bash and it inherits a
1445       # broken ls alias from the environment.  This has actually
1446       # happened.  Such a system could not be considered "sane".
1447       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1450 alias in your environment" >&2;}
1451    { (exit 1); exit 1; }; }
1452    fi
1453
1454    test "$2" = conftest.file
1455    )
1456 then
1457    # Ok.
1458    :
1459 else
1460    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464    { (exit 1); exit 1; }; }
1465 fi
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $.  echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1477 _ACEOF
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 rm conftest.sed
1480
1481
1482 # expand $ac_aux_dir to an absolute path
1483 am_aux_dir=`cd $ac_aux_dir && pwd`
1484
1485 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1486 # Use eval to expand $SHELL
1487 if eval "$MISSING --run true"; then
1488   am_missing_run="$MISSING --run "
1489 else
1490   am_missing_run=
1491   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1492 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1493 fi
1494
1495 for ac_prog in gawk mawk nawk awk
1496 do
1497   # Extract the first word of "$ac_prog", so it can be a program name with args.
1498 set dummy $ac_prog; ac_word=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_AWK+set}" = set; then
1502   echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504   if test -n "$AWK"; then
1505   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1506 else
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510   IFS=$as_save_IFS
1511   test -z "$as_dir" && as_dir=.
1512   for ac_exec_ext in '' $ac_executable_extensions; do
1513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514     ac_cv_prog_AWK="$ac_prog"
1515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516     break 2
1517   fi
1518 done
1519 done
1520
1521 fi
1522 fi
1523 AWK=$ac_cv_prog_AWK
1524 if test -n "$AWK"; then
1525   echo "$as_me:$LINENO: result: $AWK" >&5
1526 echo "${ECHO_T}$AWK" >&6
1527 else
1528   echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530 fi
1531
1532   test -n "$AWK" && break
1533 done
1534
1535 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1536 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1537 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1538 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1539   echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541   cat >conftest.make <<\_ACEOF
1542 all:
1543         @echo 'ac_maketemp="$(MAKE)"'
1544 _ACEOF
1545 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1546 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1547 if test -n "$ac_maketemp"; then
1548   eval ac_cv_prog_make_${ac_make}_set=yes
1549 else
1550   eval ac_cv_prog_make_${ac_make}_set=no
1551 fi
1552 rm -f conftest.make
1553 fi
1554 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1555   echo "$as_me:$LINENO: result: yes" >&5
1556 echo "${ECHO_T}yes" >&6
1557   SET_MAKE=
1558 else
1559   echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561   SET_MAKE="MAKE=${MAKE-make}"
1562 fi
1563
1564 rm -rf .tst 2>/dev/null
1565 mkdir .tst 2>/dev/null
1566 if test -d .tst; then
1567   am__leading_dot=.
1568 else
1569   am__leading_dot=_
1570 fi
1571 rmdir .tst 2>/dev/null
1572
1573  # test to see if srcdir already configured
1574 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1575    test -f $srcdir/config.status; then
1576   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1577 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1578    { (exit 1); exit 1; }; }
1579 fi
1580
1581 # test whether we have cygpath
1582 if test -z "$CYGPATH_W"; then
1583   if (cygpath --version) >/dev/null 2>/dev/null; then
1584     CYGPATH_W='cygpath -w'
1585   else
1586     CYGPATH_W=echo
1587   fi
1588 fi
1589
1590
1591 # Define the identity of the package.
1592  PACKAGE=muttng
1593  VERSION=$mutt_cv_version
1594
1595
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE "$PACKAGE"
1598 _ACEOF
1599
1600
1601 cat >>confdefs.h <<_ACEOF
1602 #define VERSION "$VERSION"
1603 _ACEOF
1604
1605 # Some tools Automake needs.
1606
1607 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1608
1609
1610 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1611
1612
1613 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1614
1615
1616 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1617
1618
1619 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1620
1621
1622 AMTAR=${AMTAR-"${am_missing_run}tar"}
1623
1624 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1625
1626 # Installed binaries are usually stripped using `strip' when the user
1627 # run `make install-strip'.  However `strip' might not be the right
1628 # tool to use in cross-compilation environments, therefore Automake
1629 # will honor the `STRIP' environment variable to overrule this program.
1630 if test "$cross_compiling" != no; then
1631   if test -n "$ac_tool_prefix"; then
1632   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1633 set dummy ${ac_tool_prefix}strip; ac_word=$2
1634 echo "$as_me:$LINENO: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_STRIP+set}" = set; then
1637   echo $ECHO_N "(cached) $ECHO_C" >&6
1638 else
1639   if test -n "$STRIP"; then
1640   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1641 else
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1644 do
1645   IFS=$as_save_IFS
1646   test -z "$as_dir" && as_dir=.
1647   for ac_exec_ext in '' $ac_executable_extensions; do
1648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651     break 2
1652   fi
1653 done
1654 done
1655
1656 fi
1657 fi
1658 STRIP=$ac_cv_prog_STRIP
1659 if test -n "$STRIP"; then
1660   echo "$as_me:$LINENO: result: $STRIP" >&5
1661 echo "${ECHO_T}$STRIP" >&6
1662 else
1663   echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1665 fi
1666
1667 fi
1668 if test -z "$ac_cv_prog_STRIP"; then
1669   ac_ct_STRIP=$STRIP
1670   # Extract the first word of "strip", so it can be a program name with args.
1671 set dummy strip; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   if test -n "$ac_ct_STRIP"; then
1678   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1679 else
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1682 do
1683   IFS=$as_save_IFS
1684   test -z "$as_dir" && as_dir=.
1685   for ac_exec_ext in '' $ac_executable_extensions; do
1686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687     ac_cv_prog_ac_ct_STRIP="strip"
1688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689     break 2
1690   fi
1691 done
1692 done
1693
1694   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1695 fi
1696 fi
1697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1698 if test -n "$ac_ct_STRIP"; then
1699   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1700 echo "${ECHO_T}$ac_ct_STRIP" >&6
1701 else
1702   echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 fi
1705
1706   STRIP=$ac_ct_STRIP
1707 else
1708   STRIP="$ac_cv_prog_STRIP"
1709 fi
1710
1711 fi
1712 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1713
1714 # We need awk for the "check" target.  The system "awk" is bad on
1715 # some platforms.
1716
1717
1718
1719
1720
1721
1722 ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg"
1723
1724 # Make sure we can run config.sub.
1725 $ac_config_sub sun4 >/dev/null 2>&1 ||
1726   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728    { (exit 1); exit 1; }; }
1729
1730 echo "$as_me:$LINENO: checking build system type" >&5
1731 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732 if test "${ac_cv_build+set}" = set; then
1733   echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735   ac_cv_build_alias=$build_alias
1736 test -z "$ac_cv_build_alias" &&
1737   ac_cv_build_alias=`$ac_config_guess`
1738 test -z "$ac_cv_build_alias" &&
1739   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741    { (exit 1); exit 1; }; }
1742 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745    { (exit 1); exit 1; }; }
1746
1747 fi
1748 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749 echo "${ECHO_T}$ac_cv_build" >&6
1750 build=$ac_cv_build
1751 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756 echo "$as_me:$LINENO: checking host system type" >&5
1757 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1758 if test "${ac_cv_host+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   ac_cv_host_alias=$host_alias
1762 test -z "$ac_cv_host_alias" &&
1763   ac_cv_host_alias=$ac_cv_build_alias
1764 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1765   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1766 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1767    { (exit 1); exit 1; }; }
1768
1769 fi
1770 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1771 echo "${ECHO_T}$ac_cv_host" >&6
1772 host=$ac_cv_host
1773 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778
1779 echo "$as_me:$LINENO: checking for prefix" >&5
1780 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1781 if test x$prefix = xNONE; then
1782         mutt_cv_prefix=$ac_default_prefix
1783 else
1784         mutt_cv_prefix=$prefix
1785 fi
1786 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1787 echo "${ECHO_T}$mutt_cv_prefix" >&6
1788
1789 ac_ext=c
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794 if test -n "$ac_tool_prefix"; then
1795   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$CC"; then
1803   ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808   IFS=$as_save_IFS
1809   test -z "$as_dir" && as_dir=.
1810   for ac_exec_ext in '' $ac_executable_extensions; do
1811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1818
1819 fi
1820 fi
1821 CC=$ac_cv_prog_CC
1822 if test -n "$CC"; then
1823   echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830 fi
1831 if test -z "$ac_cv_prog_CC"; then
1832   ac_ct_CC=$CC
1833   # Extract the first word of "gcc", so it can be a program name with args.
1834 set dummy gcc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$ac_ct_CC"; then
1841   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846   IFS=$as_save_IFS
1847   test -z "$as_dir" && as_dir=.
1848   for ac_exec_ext in '' $ac_executable_extensions; do
1849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850     ac_cv_prog_ac_ct_CC="gcc"
1851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852     break 2
1853   fi
1854 done
1855 done
1856
1857 fi
1858 fi
1859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1860 if test -n "$ac_ct_CC"; then
1861   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1862 echo "${ECHO_T}$ac_ct_CC" >&6
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 fi
1867
1868   CC=$ac_ct_CC
1869 else
1870   CC="$ac_cv_prog_CC"
1871 fi
1872
1873 if test -z "$CC"; then
1874   if test -n "$ac_tool_prefix"; then
1875   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1876 set dummy ${ac_tool_prefix}cc; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_CC+set}" = set; then
1880   echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882   if test -n "$CC"; then
1883   ac_cv_prog_CC="$CC" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888   IFS=$as_save_IFS
1889   test -z "$as_dir" && as_dir=.
1890   for ac_exec_ext in '' $ac_executable_extensions; do
1891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892     ac_cv_prog_CC="${ac_tool_prefix}cc"
1893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894     break 2
1895   fi
1896 done
1897 done
1898
1899 fi
1900 fi
1901 CC=$ac_cv_prog_CC
1902 if test -n "$CC"; then
1903   echo "$as_me:$LINENO: result: $CC" >&5
1904 echo "${ECHO_T}$CC" >&6
1905 else
1906   echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910 fi
1911 if test -z "$ac_cv_prog_CC"; then
1912   ac_ct_CC=$CC
1913   # Extract the first word of "cc", so it can be a program name with args.
1914 set dummy cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$ac_ct_CC"; then
1921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_ac_ct_CC="cc"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1940 if test -n "$ac_ct_CC"; then
1941   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1942 echo "${ECHO_T}$ac_ct_CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948   CC=$ac_ct_CC
1949 else
1950   CC="$ac_cv_prog_CC"
1951 fi
1952
1953 fi
1954 if test -z "$CC"; then
1955   # Extract the first word of "cc", so it can be a program name with args.
1956 set dummy cc; ac_word=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   if test -n "$CC"; then
1963   ac_cv_prog_CC="$CC" # Let the user override the test.
1964 else
1965   ac_prog_rejected=no
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971   for ac_exec_ext in '' $ac_executable_extensions; do
1972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1974        ac_prog_rejected=yes
1975        continue
1976      fi
1977     ac_cv_prog_CC="cc"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 if test $ac_prog_rejected = yes; then
1985   # We found a bogon in the path, so make sure we never use it.
1986   set dummy $ac_cv_prog_CC
1987   shift
1988   if test $# != 0; then
1989     # We chose a different compiler from the bogus one.
1990     # However, it has the same basename, so the bogon will be chosen
1991     # first if we set CC to just the basename; use the full file name.
1992     shift
1993     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1994   fi
1995 fi
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007 fi
2008 if test -z "$CC"; then
2009   if test -n "$ac_tool_prefix"; then
2010   for ac_prog in cl
2011   do
2012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017   echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019   if test -n "$CC"; then
2020   ac_cv_prog_CC="$CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027   for ac_exec_ext in '' $ac_executable_extensions; do
2028   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031     break 2
2032   fi
2033 done
2034 done
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040   echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6
2042 else
2043   echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2045 fi
2046
2047     test -n "$CC" && break
2048   done
2049 fi
2050 if test -z "$CC"; then
2051   ac_ct_CC=$CC
2052   for ac_prog in cl
2053 do
2054   # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$ac_ct_CC"; then
2062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071     ac_cv_prog_ac_ct_CC="$ac_prog"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077
2078 fi
2079 fi
2080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081 if test -n "$ac_ct_CC"; then
2082   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083 echo "${ECHO_T}$ac_ct_CC" >&6
2084 else
2085   echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2087 fi
2088
2089   test -n "$ac_ct_CC" && break
2090 done
2091
2092   CC=$ac_ct_CC
2093 fi
2094
2095 fi
2096
2097
2098 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&5
2100 echo "$as_me: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&2;}
2102    { (exit 1); exit 1; }; }
2103
2104 # Provide some information about the compiler.
2105 echo "$as_me:$LINENO:" \
2106      "checking for C compiler version" >&5
2107 ac_compiler=`set X $ac_compile; echo $2`
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2109   (eval $ac_compiler --version </dev/null >&5) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2114   (eval $ac_compiler -v </dev/null >&5) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2119   (eval $ac_compiler -V </dev/null >&5) 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131
2132 int
2133 main ()
2134 {
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 ac_clean_files_save=$ac_clean_files
2141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2142 # Try to create an executable without -o first, disregard a.out.
2143 # It will help us diagnose broken compilers, and finding out an intuition
2144 # of exeext.
2145 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2146 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2149   (eval $ac_link_default) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; then
2153   # Find the output, starting from the most likely.  This scheme is
2154 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2155 # resort.
2156
2157 # Be careful to initialize this variable, since it used to be cached.
2158 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2159 ac_cv_exeext=
2160 # b.out is created by i960 compilers.
2161 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2162 do
2163   test -f "$ac_file" || continue
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2166         ;;
2167     conftest.$ac_ext )
2168         # This is the source file.
2169         ;;
2170     [ab].out )
2171         # We found the default executable, but exeext='' is most
2172         # certainly right.
2173         break;;
2174     *.* )
2175         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176         # FIXME: I believe we export ac_cv_exeext for Libtool,
2177         # but it would be cool to find out if it's true.  Does anybody
2178         # maintain Libtool? --akim.
2179         export ac_cv_exeext
2180         break;;
2181     * )
2182         break;;
2183   esac
2184 done
2185 else
2186   echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193    { (exit 77); exit 77; }; }
2194 fi
2195
2196 ac_exeext=$ac_cv_exeext
2197 echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6
2199
2200 # Check the compiler produces executables we can run.  If not, either
2201 # the compiler is broken, or we cross compile.
2202 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207   if { ac_try='./$ac_file'
2208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209   (eval $ac_try) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; }; then
2213     cross_compiling=no
2214   else
2215     if test "$cross_compiling" = maybe; then
2216         cross_compiling=yes
2217     else
2218         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&2;}
2224    { (exit 1); exit 1; }; }
2225     fi
2226   fi
2227 fi
2228 echo "$as_me:$LINENO: result: yes" >&5
2229 echo "${ECHO_T}yes" >&6
2230
2231 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2232 ac_clean_files=$ac_clean_files_save
2233 # Check the compiler produces executables we can run.  If not, either
2234 # the compiler is broken, or we cross compile.
2235 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2236 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2237 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2238 echo "${ECHO_T}$cross_compiling" >&6
2239
2240 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2241 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2243   (eval $ac_link) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; then
2247   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2248 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2249 # work properly (i.e., refer to `conftest.exe'), while it won't with
2250 # `rm'.
2251 for ac_file in conftest.exe conftest conftest.*; do
2252   test -f "$ac_file" || continue
2253   case $ac_file in
2254     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2255     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256           export ac_cv_exeext
2257           break;;
2258     * ) break;;
2259   esac
2260 done
2261 else
2262   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&2;}
2266    { (exit 1); exit 1; }; }
2267 fi
2268
2269 rm -f conftest$ac_cv_exeext
2270 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2271 echo "${ECHO_T}$ac_cv_exeext" >&6
2272
2273 rm -f conftest.$ac_ext
2274 EXEEXT=$ac_cv_exeext
2275 ac_exeext=$EXEEXT
2276 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2277 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2278 if test "${ac_cv_objext+set}" = set; then
2279   echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288
2289 int
2290 main ()
2291 {
2292
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }; then
2303   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2306     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2307        break;;
2308   esac
2309 done
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2322 fi
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2326 ac_objext=$OBJEXT
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2329 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339
2340 int
2341 main ()
2342 {
2343 #ifndef __GNUC__
2344        choke me
2345 #endif
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); } &&
2357          { ac_try='test -s conftest.$ac_objext'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363   ac_compiler_gnu=yes
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 ac_compiler_gnu=no
2369 fi
2370 rm -f conftest.$ac_objext conftest.$ac_ext
2371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2372
2373 fi
2374 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2376 GCC=`test $ac_compiler_gnu = yes && echo yes`
2377 ac_test_CFLAGS=${CFLAGS+set}
2378 ac_save_CFLAGS=$CFLAGS
2379 CFLAGS="-g"
2380 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2382 if test "${ac_cv_prog_cc_g+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2387 /* confdefs.h.  */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h.  */
2392
2393 int
2394 main ()
2395 {
2396
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403   (eval $ac_compile) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -s conftest.$ac_objext'
2408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409   (eval $ac_try) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; }; then
2413   ac_cv_prog_cc_g=yes
2414 else
2415   echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 ac_cv_prog_cc_g=no
2419 fi
2420 rm -f conftest.$ac_objext conftest.$ac_ext
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2423 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2424 if test "$ac_test_CFLAGS" = set; then
2425   CFLAGS=$ac_save_CFLAGS
2426 elif test $ac_cv_prog_cc_g = yes; then
2427   if test "$GCC" = yes; then
2428     CFLAGS="-g -O2"
2429   else
2430     CFLAGS="-g"
2431   fi
2432 else
2433   if test "$GCC" = yes; then
2434     CFLAGS="-O2"
2435   else
2436     CFLAGS=
2437   fi
2438 fi
2439 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2440 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2441 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   ac_cv_prog_cc_stdc=no
2445 ac_save_CC=$CC
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453 #include <stdarg.h>
2454 #include <stdio.h>
2455 #include <sys/types.h>
2456 #include <sys/stat.h>
2457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2458 struct buf { int x; };
2459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2460 static char *e (p, i)
2461      char **p;
2462      int i;
2463 {
2464   return p[i];
2465 }
2466 static char *f (char * (*g) (char **, int), char **p, ...)
2467 {
2468   char *s;
2469   va_list v;
2470   va_start (v,p);
2471   s = g (p, va_arg (v,int));
2472   va_end (v);
2473   return s;
2474 }
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 int argc;
2480 char **argv;
2481 int
2482 main ()
2483 {
2484 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 # Don't try gcc -ansi; that turns off useful extensions and
2490 # breaks some systems' header files.
2491 # AIX                   -qlanglvl=ansi
2492 # Ultrix and OSF/1      -std1
2493 # HP-UX 10.20 and later -Ae
2494 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2495 # SVR4                  -Xc -D__EXTENSIONS__
2496 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 do
2498   CC="$ac_save_CC $ac_arg"
2499   rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501   (eval $ac_compile) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); } &&
2505          { ac_try='test -s conftest.$ac_objext'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; }; then
2511   ac_cv_prog_cc_stdc=$ac_arg
2512 break
2513 else
2514   echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 fi
2518 rm -f conftest.$ac_objext
2519 done
2520 rm -f conftest.$ac_ext conftest.$ac_objext
2521 CC=$ac_save_CC
2522
2523 fi
2524
2525 case "x$ac_cv_prog_cc_stdc" in
2526   x|xno)
2527     echo "$as_me:$LINENO: result: none needed" >&5
2528 echo "${ECHO_T}none needed" >&6 ;;
2529   *)
2530     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2531 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2532     CC="$CC $ac_cv_prog_cc_stdc" ;;
2533 esac
2534
2535 # Some people use a C++ compiler to compile C.  Since we use `exit',
2536 # in C++ we need to declare it.  In case someone uses the same compiler
2537 # for both compiling C and C++ we need to have the C++ compiler decide
2538 # the declaration of exit, since it's the most demanding environment.
2539 cat >conftest.$ac_ext <<_ACEOF
2540 #ifndef __cplusplus
2541   choke me
2542 #endif
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } &&
2550          { ac_try='test -s conftest.$ac_objext'
2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552   (eval $ac_try) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; }; then
2556   for ac_declaration in \
2557    ''\
2558    '#include <stdlib.h>' \
2559    'extern "C" void std::exit (int) throw (); using std::exit;' \
2560    'extern "C" void std::exit (int); using std::exit;' \
2561    'extern "C" void exit (int) throw ();' \
2562    'extern "C" void exit (int);' \
2563    'void exit (int);'
2564 do
2565   cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572 #include <stdlib.h>
2573 $ac_declaration
2574 int
2575 main ()
2576 {
2577 exit (42);
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584   (eval $ac_compile) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   :
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 continue
2600 fi
2601 rm -f conftest.$ac_objext conftest.$ac_ext
2602   cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609 $ac_declaration
2610 int
2611 main ()
2612 {
2613 exit (42);
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620   (eval $ac_compile) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -s conftest.$ac_objext'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630   break
2631 else
2632   echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 fi
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2637 done
2638 rm -f conftest*
2639 if test -n "$ac_declaration"; then
2640   echo '#ifdef __cplusplus' >>confdefs.h
2641   echo $ac_declaration      >>confdefs.h
2642   echo '#endif'             >>confdefs.h
2643 fi
2644
2645 else
2646   echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2648
2649 fi
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 DEPDIR="${am__leading_dot}deps"
2657
2658           ac_config_commands="$ac_config_commands depfiles"
2659
2660
2661 am_make=${MAKE-make}
2662 cat > confinc << 'END'
2663 am__doit:
2664         @echo done
2665 .PHONY: am__doit
2666 END
2667 # If we don't find an include directive, just comment out the code.
2668 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2669 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2670 am__include="#"
2671 am__quote=
2672 _am_result=none
2673 # First try GNU make style include.
2674 echo "include confinc" > confmf
2675 # We grep out `Entering directory' and `Leaving directory'
2676 # messages which can occur if `w' ends up in MAKEFLAGS.
2677 # In particular we don't look at `^make:' because GNU make might
2678 # be invoked under some other name (usually "gmake"), in which
2679 # case it prints its new name instead of `make'.
2680 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2681    am__include=include
2682    am__quote=
2683    _am_result=GNU
2684 fi
2685 # Now try BSD make style include.
2686 if test "$am__include" = "#"; then
2687    echo '.include "confinc"' > confmf
2688    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2689       am__include=.include
2690       am__quote="\""
2691       _am_result=BSD
2692    fi
2693 fi
2694
2695
2696 echo "$as_me:$LINENO: result: $_am_result" >&5
2697 echo "${ECHO_T}$_am_result" >&6
2698 rm -f confinc confmf
2699
2700 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2701 if test "${enable_dependency_tracking+set}" = set; then
2702   enableval="$enable_dependency_tracking"
2703
2704 fi;
2705 if test "x$enable_dependency_tracking" != xno; then
2706   am_depcomp="$ac_aux_dir/depcomp"
2707   AMDEPBACKSLASH='\'
2708 fi
2709
2710
2711 if test "x$enable_dependency_tracking" != xno; then
2712   AMDEP_TRUE=
2713   AMDEP_FALSE='#'
2714 else
2715   AMDEP_TRUE='#'
2716   AMDEP_FALSE=
2717 fi
2718
2719
2720
2721
2722 depcc="$CC"   am_compiler_list=
2723
2724 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2725 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2730   # We make a subdir and do the tests there.  Otherwise we can end up
2731   # making bogus files that we don't know about and never remove.  For
2732   # instance it was reported that on HP-UX the gcc test will end up
2733   # making a dummy file named `D' -- because `-MD' means `put the output
2734   # in D'.
2735   mkdir conftest.dir
2736   # Copy depcomp to subdir because otherwise we won't find it if we're
2737   # using a relative directory.
2738   cp "$am_depcomp" conftest.dir
2739   cd conftest.dir
2740   # We will build objects and dependencies in a subdirectory because
2741   # it helps to detect inapplicable dependency modes.  For instance
2742   # both Tru64's cc and ICC support -MD to output dependencies as a
2743   # side effect of compilation, but ICC will put the dependencies in
2744   # the current directory while Tru64 will put them in the object
2745   # directory.
2746   mkdir sub
2747
2748   am_cv_CC_dependencies_compiler_type=none
2749   if test "$am_compiler_list" = ""; then
2750      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2751   fi
2752   for depmode in $am_compiler_list; do
2753     # Setup a source with many dependencies, because some compilers
2754     # like to wrap large dependency lists on column 80 (with \), and
2755     # we should not choose a depcomp mode which is confused by this.
2756     #
2757     # We need to recreate these files for each test, as the compiler may
2758     # overwrite some of them when testing with obscure command lines.
2759     # This happens at least with the AIX C compiler.
2760     : > sub/conftest.c
2761     for i in 1 2 3 4 5 6; do
2762       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2763       : > sub/conftst$i.h
2764     done
2765     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2766
2767     case $depmode in
2768     nosideeffect)
2769       # after this tag, mechanisms are not by side-effect, so they'll
2770       # only be used when explicitly requested
2771       if test "x$enable_dependency_tracking" = xyes; then
2772         continue
2773       else
2774         break
2775       fi
2776       ;;
2777     none) break ;;
2778     esac
2779     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2780     # mode.  It turns out that the SunPro C++ compiler does not properly
2781     # handle `-M -o', and we need to detect this.
2782     if depmode=$depmode \
2783        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2784        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2785        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2786          >/dev/null 2>conftest.err &&
2787        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2788        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2789        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790       # icc doesn't choke on unknown options, it will just issue warnings
2791       # (even with -Werror).  So we grep stderr for any message
2792       # that says an option was ignored.
2793       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2794         am_cv_CC_dependencies_compiler_type=$depmode
2795         break
2796       fi
2797     fi
2798   done
2799
2800   cd ..
2801   rm -rf conftest.dir
2802 else
2803   am_cv_CC_dependencies_compiler_type=none
2804 fi
2805
2806 fi
2807 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2808 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2810
2811
2812
2813 if
2814   test "x$enable_dependency_tracking" != xno \
2815   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2816   am__fastdepCC_TRUE=
2817   am__fastdepCC_FALSE='#'
2818 else
2819   am__fastdepCC_TRUE='#'
2820   am__fastdepCC_FALSE=
2821 fi
2822
2823
2824
2825
2826         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2827 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2828 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   ac_check_lib_save_LIBS=$LIBS
2832 LIBS="-lcposix  $LIBS"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line $LINENO "configure"
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840
2841 /* Override any gcc2 internal prototype to avoid an error.  */
2842 #ifdef __cplusplus
2843 extern "C"
2844 #endif
2845 /* We use char because int might match the return type of a gcc2
2846    builtin and then its argument prototype would still apply.  */
2847 char strerror ();
2848 int
2849 main ()
2850 {
2851 strerror ();
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 rm -f conftest.$ac_objext conftest$ac_exeext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2858   (eval $ac_link) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862          { ac_try='test -s conftest$ac_exeext'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868   ac_cv_lib_cposix_strerror=yes
2869 else
2870   echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 ac_cv_lib_cposix_strerror=no
2874 fi
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS=$ac_check_lib_save_LIBS
2877 fi
2878 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2879 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2880 if test $ac_cv_lib_cposix_strerror = yes; then
2881   LIBS="$LIBS -lcposix"
2882 fi
2883
2884
2885
2886
2887
2888
2889 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2890 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2891 if test "${am_cv_prog_cc_stdc+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   am_cv_prog_cc_stdc=no
2895 ac_save_CC="$CC"
2896 # Don't try gcc -ansi; that turns off useful extensions and
2897 # breaks some systems' header files.
2898 # AIX                   -qlanglvl=ansi
2899 # Ultrix and OSF/1      -std1
2900 # HP-UX 10.20 and later -Ae
2901 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2902 # SVR4                  -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2904 do
2905   CC="$ac_save_CC $ac_arg"
2906   cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 #include <stdarg.h>
2914 #include <stdio.h>
2915 #include <sys/types.h>
2916 #include <sys/stat.h>
2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2918 struct buf { int x; };
2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2920 static char *e (p, i)
2921      char **p;
2922      int i;
2923 {
2924   return p[i];
2925 }
2926 static char *f (char * (*g) (char **, int), char **p, ...)
2927 {
2928   char *s;
2929   va_list v;
2930   va_start (v,p);
2931   s = g (p, va_arg (v,int));
2932   va_end (v);
2933   return s;
2934 }
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939 int argc;
2940 char **argv;
2941
2942 int
2943 main ()
2944 {
2945
2946 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954   (eval $ac_compile) 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } &&
2958          { ac_try='test -s conftest.$ac_objext'
2959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960   (eval $ac_try) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; }; then
2964   am_cv_prog_cc_stdc="$ac_arg"; break
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 fi
2970 rm -f conftest.$ac_objext conftest.$ac_ext
2971 done
2972 CC="$ac_save_CC"
2973
2974 fi
2975
2976 if test -z "$am_cv_prog_cc_stdc"; then
2977   echo "$as_me:$LINENO: result: none needed" >&5
2978 echo "${ECHO_T}none needed" >&6
2979 else
2980   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2981 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2982 fi
2983 case "x$am_cv_prog_cc_stdc" in
2984   x|xno) ;;
2985   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2986 esac
2987
2988 ac_ext=c
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2997   CPP=
2998 fi
2999 if test -z "$CPP"; then
3000   if test "${ac_cv_prog_CPP+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003       # Double quotes because CPP needs to be expanded
3004     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3005     do
3006       ac_preproc_ok=false
3007 for ac_c_preproc_warn_flag in '' yes
3008 do
3009   # Use a header file that comes with gcc, so configuring glibc
3010   # with a fresh cross-compiler works.
3011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012   # <limits.h> exists even on freestanding compilers.
3013   # On the NeXT, cc -E runs the code through the compiler's parser,
3014   # not just through cpp. "Syntax error" is here to catch this case.
3015   cat >conftest.$ac_ext <<_ACEOF
3016 #line $LINENO "configure"
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022 #ifdef __STDC__
3023 # include <limits.h>
3024 #else
3025 # include <assert.h>
3026 #endif
3027                      Syntax error
3028 _ACEOF
3029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } >/dev/null; then
3037   if test -s conftest.err; then
3038     ac_cpp_err=$ac_c_preproc_warn_flag
3039   else
3040     ac_cpp_err=
3041   fi
3042 else
3043   ac_cpp_err=yes
3044 fi
3045 if test -z "$ac_cpp_err"; then
3046   :
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051   # Broken: fails on valid input.
3052 continue
3053 fi
3054 rm -f conftest.err conftest.$ac_ext
3055
3056   # OK, works on sane cases.  Now check whether non-existent headers
3057   # can be detected and how.
3058   cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #include <ac_nonexistent.h>
3066 _ACEOF
3067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } >/dev/null; then
3075   if test -s conftest.err; then
3076     ac_cpp_err=$ac_c_preproc_warn_flag
3077   else
3078     ac_cpp_err=
3079   fi
3080 else
3081   ac_cpp_err=yes
3082 fi
3083 if test -z "$ac_cpp_err"; then
3084   # Broken: success on invalid input.
3085 continue
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090   # Passes both tests.
3091 ac_preproc_ok=:
3092 break
3093 fi
3094 rm -f conftest.err conftest.$ac_ext
3095
3096 done
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then
3100   break
3101 fi
3102
3103     done
3104     ac_cv_prog_CPP=$CPP
3105
3106 fi
3107   CPP=$ac_cv_prog_CPP
3108 else
3109   ac_cv_prog_CPP=$CPP
3110 fi
3111 echo "$as_me:$LINENO: result: $CPP" >&5
3112 echo "${ECHO_T}$CPP" >&6
3113 ac_preproc_ok=false
3114 for ac_c_preproc_warn_flag in '' yes
3115 do
3116   # Use a header file that comes with gcc, so configuring glibc
3117   # with a fresh cross-compiler works.
3118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119   # <limits.h> exists even on freestanding compilers.
3120   # On the NeXT, cc -E runs the code through the compiler's parser,
3121   # not just through cpp. "Syntax error" is here to catch this case.
3122   cat >conftest.$ac_ext <<_ACEOF
3123 #line $LINENO "configure"
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129 #ifdef __STDC__
3130 # include <limits.h>
3131 #else
3132 # include <assert.h>
3133 #endif
3134                      Syntax error
3135 _ACEOF
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } >/dev/null; then
3144   if test -s conftest.err; then
3145     ac_cpp_err=$ac_c_preproc_warn_flag
3146   else
3147     ac_cpp_err=
3148   fi
3149 else
3150   ac_cpp_err=yes
3151 fi
3152 if test -z "$ac_cpp_err"; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158   # Broken: fails on valid input.
3159 continue
3160 fi
3161 rm -f conftest.err conftest.$ac_ext
3162
3163   # OK, works on sane cases.  Now check whether non-existent headers
3164   # can be detected and how.
3165   cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <ac_nonexistent.h>
3173 _ACEOF
3174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176   ac_status=$?
3177   grep -v '^ *+' conftest.er1 >conftest.err
3178   rm -f conftest.er1
3179   cat conftest.err >&5
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); } >/dev/null; then
3182   if test -s conftest.err; then
3183     ac_cpp_err=$ac_c_preproc_warn_flag
3184   else
3185     ac_cpp_err=
3186   fi
3187 else
3188   ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191   # Broken: success on invalid input.
3192 continue
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197   # Passes both tests.
3198 ac_preproc_ok=:
3199 break
3200 fi
3201 rm -f conftest.err conftest.$ac_ext
3202
3203 done
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then
3207   :
3208 else
3209   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3212 See \`config.log' for more details." >&2;}
3213    { (exit 1); exit 1; }; }
3214 fi
3215
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222
3223 echo "$as_me:$LINENO: checking for egrep" >&5
3224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225 if test "${ac_cv_prog_egrep+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229     then ac_cv_prog_egrep='grep -E'
3230     else ac_cv_prog_egrep='egrep'
3231     fi
3232 fi
3233 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235  EGREP=$ac_cv_prog_egrep
3236
3237
3238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3249                   inttypes.h stdint.h unistd.h
3250 do
3251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3252 echo "$as_me:$LINENO: checking for $ac_header" >&5
3253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   cat >conftest.$ac_ext <<_ACEOF
3258 #line $LINENO "configure"
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 $ac_includes_default
3265
3266 #include <$ac_header>
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270   (eval $ac_compile) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } &&
3274          { ac_try='test -s conftest.$ac_objext'
3275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276   (eval $ac_try) 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }; }; then
3280   eval "$as_ac_Header=yes"
3281 else
3282   echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 eval "$as_ac_Header=no"
3286 fi
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3288 fi
3289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3292   cat >>confdefs.h <<_ACEOF
3293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3294 _ACEOF
3295
3296 fi
3297
3298 done
3299
3300
3301
3302
3303 echo "$as_me:$LINENO: checking for function prototypes" >&5
3304 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3305 if test "$am_cv_prog_cc_stdc" != no; then
3306   echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3308
3309 cat >>confdefs.h <<\_ACEOF
3310 #define PROTOTYPES 1
3311 _ACEOF
3312
3313   U= ANSI2KNR=
3314 else
3315   echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317   U=_ ANSI2KNR=./ansi2knr
3318 fi
3319 # Ensure some checks needed by ansi2knr itself.
3320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3322 if test "${ac_cv_header_stdc+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3327 /* confdefs.h.  */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h.  */
3332 #include <stdlib.h>
3333 #include <stdarg.h>
3334 #include <string.h>
3335 #include <float.h>
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347   (eval $ac_compile) 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } &&
3351          { ac_try='test -s conftest.$ac_objext'
3352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353   (eval $ac_try) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; }; then
3357   ac_cv_header_stdc=yes
3358 else
3359   echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 ac_cv_header_stdc=no
3363 fi
3364 rm -f conftest.$ac_objext conftest.$ac_ext
3365
3366 if test $ac_cv_header_stdc = yes; then
3367   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3368   cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #include <string.h>
3376
3377 _ACEOF
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379   $EGREP "memchr" >/dev/null 2>&1; then
3380   :
3381 else
3382   ac_cv_header_stdc=no
3383 fi
3384 rm -f conftest*
3385
3386 fi
3387
3388 if test $ac_cv_header_stdc = yes; then
3389   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3390   cat >conftest.$ac_ext <<_ACEOF
3391 #line $LINENO "configure"
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397 #include <stdlib.h>
3398
3399 _ACEOF
3400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401   $EGREP "free" >/dev/null 2>&1; then
3402   :
3403 else
3404   ac_cv_header_stdc=no
3405 fi
3406 rm -f conftest*
3407
3408 fi
3409
3410 if test $ac_cv_header_stdc = yes; then
3411   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3412   if test "$cross_compiling" = yes; then
3413   :
3414 else
3415   cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422 #include <ctype.h>
3423 #if ((' ' & 0x0FF) == 0x020)
3424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3426 #else
3427 # define ISLOWER(c) \
3428                    (('a' <= (c) && (c) <= 'i') \
3429                      || ('j' <= (c) && (c) <= 'r') \
3430                      || ('s' <= (c) && (c) <= 'z'))
3431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3432 #endif
3433
3434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3435 int
3436 main ()
3437 {
3438   int i;
3439   for (i = 0; i < 256; i++)
3440     if (XOR (islower (i), ISLOWER (i))
3441         || toupper (i) != TOUPPER (i))
3442       exit(2);
3443   exit (0);
3444 }
3445 _ACEOF
3446 rm -f conftest$ac_exeext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448   (eval $ac_link) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   :
3458 else
3459   echo "$as_me: program exited with status $ac_status" >&5
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 ( exit $ac_status )
3464 ac_cv_header_stdc=no
3465 fi
3466 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3467 fi
3468 fi
3469 fi
3470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3472 if test $ac_cv_header_stdc = yes; then
3473
3474 cat >>confdefs.h <<\_ACEOF
3475 #define STDC_HEADERS 1
3476 _ACEOF
3477
3478 fi
3479
3480
3481 for ac_header in string.h
3482 do
3483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485   echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 fi
3490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3492 else
3493   # Is the header compilable?
3494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3496 cat >conftest.$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 $ac_includes_default
3504 #include <$ac_header>
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508   (eval $ac_compile) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } &&
3512          { ac_try='test -s conftest.$ac_objext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   ac_header_compiler=yes
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 ac_header_compiler=no
3524 fi
3525 rm -f conftest.$ac_objext conftest.$ac_ext
3526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3527 echo "${ECHO_T}$ac_header_compiler" >&6
3528
3529 # Is the header present?
3530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539 #include <$ac_header>
3540 _ACEOF
3541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } >/dev/null; then
3549   if test -s conftest.err; then
3550     ac_cpp_err=$ac_c_preproc_warn_flag
3551   else
3552     ac_cpp_err=
3553   fi
3554 else
3555   ac_cpp_err=yes
3556 fi
3557 if test -z "$ac_cpp_err"; then
3558   ac_header_preproc=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563   ac_header_preproc=no
3564 fi
3565 rm -f conftest.err conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3567 echo "${ECHO_T}$ac_header_preproc" >&6
3568
3569 # So?  What about this header?
3570 case $ac_header_compiler:$ac_header_preproc in
3571   yes:no )
3572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3576     (
3577       cat <<\_ASBOX
3578 ## ------------------------------------ ##
3579 ## Report this to bug-autoconf@gnu.org. ##
3580 ## ------------------------------------ ##
3581 _ASBOX
3582     ) |
3583       sed "s/^/$as_me: WARNING:     /" >&2
3584     ;;
3585   no:yes )
3586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3588     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3592     (
3593       cat <<\_ASBOX
3594 ## ------------------------------------ ##
3595 ## Report this to bug-autoconf@gnu.org. ##
3596 ## ------------------------------------ ##
3597 _ASBOX
3598     ) |
3599       sed "s/^/$as_me: WARNING:     /" >&2
3600     ;;
3601 esac
3602 echo "$as_me:$LINENO: checking for $ac_header" >&5
3603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3605   echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607   eval "$as_ac_Header=$ac_header_preproc"
3608 fi
3609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3611
3612 fi
3613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3614   cat >>confdefs.h <<_ACEOF
3615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3616 _ACEOF
3617
3618 fi
3619
3620 done
3621
3622
3623 if test "x$U" != "x"; then
3624   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3625 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3626    { (exit 1); exit 1; }; }
3627 fi
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3634 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3635 # On Suns, sometimes $CPP names a directory.
3636 if test -n "$CPP" && test -d "$CPP"; then
3637   CPP=
3638 fi
3639 if test -z "$CPP"; then
3640   if test "${ac_cv_prog_CPP+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643       # Double quotes because CPP needs to be expanded
3644     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3645     do
3646       ac_preproc_ok=false
3647 for ac_c_preproc_warn_flag in '' yes
3648 do
3649   # Use a header file that comes with gcc, so configuring glibc
3650   # with a fresh cross-compiler works.
3651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652   # <limits.h> exists even on freestanding compilers.
3653   # On the NeXT, cc -E runs the code through the compiler's parser,
3654   # not just through cpp. "Syntax error" is here to catch this case.
3655   cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #ifdef __STDC__
3663 # include <limits.h>
3664 #else
3665 # include <assert.h>
3666 #endif
3667                      Syntax error
3668 _ACEOF
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } >/dev/null; then
3677   if test -s conftest.err; then
3678     ac_cpp_err=$ac_c_preproc_warn_flag
3679   else
3680     ac_cpp_err=
3681   fi
3682 else
3683   ac_cpp_err=yes
3684 fi
3685 if test -z "$ac_cpp_err"; then
3686   :
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691   # Broken: fails on valid input.
3692 continue
3693 fi
3694 rm -f conftest.err conftest.$ac_ext
3695
3696   # OK, works on sane cases.  Now check whether non-existent headers
3697   # can be detected and how.
3698   cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 #include <ac_nonexistent.h>
3706 _ACEOF
3707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3708   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } >/dev/null; then
3715   if test -s conftest.err; then
3716     ac_cpp_err=$ac_c_preproc_warn_flag
3717   else
3718     ac_cpp_err=
3719   fi
3720 else
3721   ac_cpp_err=yes
3722 fi
3723 if test -z "$ac_cpp_err"; then
3724   # Broken: success on invalid input.
3725 continue
3726 else
3727   echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730   # Passes both tests.
3731 ac_preproc_ok=:
3732 break
3733 fi
3734 rm -f conftest.err conftest.$ac_ext
3735
3736 done
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3740   break
3741 fi
3742
3743     done
3744     ac_cv_prog_CPP=$CPP
3745
3746 fi
3747   CPP=$ac_cv_prog_CPP
3748 else
3749   ac_cv_prog_CPP=$CPP
3750 fi
3751 echo "$as_me:$LINENO: result: $CPP" >&5
3752 echo "${ECHO_T}$CPP" >&6
3753 ac_preproc_ok=false
3754 for ac_c_preproc_warn_flag in '' yes
3755 do
3756   # Use a header file that comes with gcc, so configuring glibc
3757   # with a fresh cross-compiler works.
3758   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759   # <limits.h> exists even on freestanding compilers.
3760   # On the NeXT, cc -E runs the code through the compiler's parser,
3761   # not just through cpp. "Syntax error" is here to catch this case.
3762   cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 /* confdefs.h.  */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h.  */
3769 #ifdef __STDC__
3770 # include <limits.h>
3771 #else
3772 # include <assert.h>
3773 #endif
3774                      Syntax error
3775 _ACEOF
3776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3778   ac_status=$?
3779   grep -v '^ *+' conftest.er1 >conftest.err
3780   rm -f conftest.er1
3781   cat conftest.err >&5
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } >/dev/null; then
3784   if test -s conftest.err; then
3785     ac_cpp_err=$ac_c_preproc_warn_flag
3786   else
3787     ac_cpp_err=
3788   fi
3789 else
3790   ac_cpp_err=yes
3791 fi
3792 if test -z "$ac_cpp_err"; then
3793   :
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798   # Broken: fails on valid input.
3799 continue
3800 fi
3801 rm -f conftest.err conftest.$ac_ext
3802
3803   # OK, works on sane cases.  Now check whether non-existent headers
3804   # can be detected and how.
3805   cat >conftest.$ac_ext <<_ACEOF
3806 #line $LINENO "configure"
3807 /* confdefs.h.  */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h.  */
3812 #include <ac_nonexistent.h>
3813 _ACEOF
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } >/dev/null; then
3822   if test -s conftest.err; then
3823     ac_cpp_err=$ac_c_preproc_warn_flag
3824   else
3825     ac_cpp_err=
3826   fi
3827 else
3828   ac_cpp_err=yes
3829 fi
3830 if test -z "$ac_cpp_err"; then
3831   # Broken: success on invalid input.
3832 continue
3833 else
3834   echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837   # Passes both tests.
3838 ac_preproc_ok=:
3839 break
3840 fi
3841 rm -f conftest.err conftest.$ac_ext
3842
3843 done
3844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3845 rm -f conftest.err conftest.$ac_ext
3846 if $ac_preproc_ok; then
3847   :
3848 else
3849   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3850 See \`config.log' for more details." >&5
3851 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3852 See \`config.log' for more details." >&2;}
3853    { (exit 1); exit 1; }; }
3854 fi
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3863 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3864 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3865 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   cat >conftest.make <<\_ACEOF
3869 all:
3870         @echo 'ac_maketemp="$(MAKE)"'
3871 _ACEOF
3872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3873 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3874 if test -n "$ac_maketemp"; then
3875   eval ac_cv_prog_make_${ac_make}_set=yes
3876 else
3877   eval ac_cv_prog_make_${ac_make}_set=no
3878 fi
3879 rm -f conftest.make
3880 fi
3881 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3882   echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6
3884   SET_MAKE=
3885 else
3886   echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3888   SET_MAKE="MAKE=${MAKE-make}"
3889 fi
3890
3891 # Find a good install program.  We prefer a C program (faster),
3892 # so one script is as good as another.  But avoid the broken or
3893 # incompatible versions:
3894 # SysV /etc/install, /usr/sbin/install
3895 # SunOS /usr/etc/install
3896 # IRIX /sbin/install
3897 # AIX /bin/install
3898 # AmigaOS /C/install, which installs bootblocks on floppy discs
3899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914   # Account for people who put trailing slashes in PATH elements.
3915 case $as_dir/ in
3916   ./ | .// | /cC/* | \
3917   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918   /usr/ucb/* ) ;;
3919   *)
3920     # OSF1 and SCO ODT 3.0 have their own names for install.
3921     # Don't use installbsd from OSF since it installs stuff as root
3922     # by default.
3923     for ac_prog in ginstall scoinst install; do
3924       for ac_exec_ext in '' $ac_executable_extensions; do
3925         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926           if test $ac_prog = install &&
3927             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928             # AIX install.  It has an incompatible calling convention.
3929             :
3930           elif test $ac_prog = install &&
3931             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932             # program-specific install script used by HP pwplus--don't use.
3933             :
3934           else
3935             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936             break 3
3937           fi
3938         fi
3939       done
3940     done
3941     ;;
3942 esac
3943 done
3944
3945
3946 fi
3947   if test "${ac_cv_path_install+set}" = set; then
3948     INSTALL=$ac_cv_path_install
3949   else
3950     # As a last resort, use the slow shell script.  We don't cache a
3951     # path for INSTALL within a source directory, because that will
3952     # break other packages using the cache if that directory is
3953     # removed, or if the path is relative.
3954     INSTALL=$ac_install_sh
3955   fi
3956 fi
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3959
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3963
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3965
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967
3968 if test -n "$ac_tool_prefix"; then
3969   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_RANLIB+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   if test -n "$RANLIB"; then
3977   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991 done
3992
3993 fi
3994 fi
3995 RANLIB=$ac_cv_prog_RANLIB
3996 if test -n "$RANLIB"; then
3997   echo "$as_me:$LINENO: result: $RANLIB" >&5
3998 echo "${ECHO_T}$RANLIB" >&6
3999 else
4000   echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4002 fi
4003
4004 fi
4005 if test -z "$ac_cv_prog_RANLIB"; then
4006   ac_ct_RANLIB=$RANLIB
4007   # Extract the first word of "ranlib", so it can be a program name with args.
4008 set dummy ranlib; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -n "$ac_ct_RANLIB"; then
4015   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_ac_ct_RANLIB="ranlib"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4032 fi
4033 fi
4034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4035 if test -n "$ac_ct_RANLIB"; then
4036   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4038 else
4039   echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 fi
4042
4043   RANLIB=$ac_ct_RANLIB
4044 else
4045   RANLIB="$ac_cv_prog_RANLIB"
4046 fi
4047
4048 if test -n "$ac_tool_prefix"; then
4049   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4050 set dummy ${ac_tool_prefix}ar; ac_word=$2
4051 echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4053 if test "${ac_cv_prog_AR+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   if test -n "$AR"; then
4057   ac_cv_prog_AR="$AR" # Let the user override the test.
4058 else
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062   IFS=$as_save_IFS
4063   test -z "$as_dir" && as_dir=.
4064   for ac_exec_ext in '' $ac_executable_extensions; do
4065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066     ac_cv_prog_AR="${ac_tool_prefix}ar"
4067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4068     break 2
4069   fi
4070 done
4071 done
4072
4073 fi
4074 fi
4075 AR=$ac_cv_prog_AR
4076 if test -n "$AR"; then
4077   echo "$as_me:$LINENO: result: $AR" >&5
4078 echo "${ECHO_T}$AR" >&6
4079 else
4080   echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4082 fi
4083
4084 fi
4085 if test -z "$ac_cv_prog_AR"; then
4086   ac_ct_AR=$AR
4087   # Extract the first word of "ar", so it can be a program name with args.
4088 set dummy ar; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   if test -n "$ac_ct_AR"; then
4095   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102   for ac_exec_ext in '' $ac_executable_extensions; do
4103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104     ac_cv_prog_ac_ct_AR="ar"
4105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109 done
4110
4111   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4112 fi
4113 fi
4114 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4115 if test -n "$ac_ct_AR"; then
4116   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4117 echo "${ECHO_T}$ac_ct_AR" >&6
4118 else
4119   echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4121 fi
4122
4123   AR=$ac_ct_AR
4124 else
4125   AR="$ac_cv_prog_AR"
4126 fi
4127
4128
4129 echo "$as_me:$LINENO: checking for inline" >&5
4130 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4131 if test "${ac_cv_c_inline+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   ac_cv_c_inline=no
4135 for ac_kw in inline __inline__ __inline; do
4136   cat >conftest.$ac_ext <<_ACEOF
4137 #line $LINENO "configure"
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #ifndef __cplusplus
4144 typedef int foo_t;
4145 static $ac_kw foo_t static_foo () {return 0; }
4146 $ac_kw foo_t foo () {return 0; }
4147 #endif
4148
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152   (eval $ac_compile) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } &&
4156          { ac_try='test -s conftest.$ac_objext'
4157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158   (eval $ac_try) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; }; then
4162   ac_cv_c_inline=$ac_kw; break
4163 else
4164   echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4166
4167 fi
4168 rm -f conftest.$ac_objext conftest.$ac_ext
4169 done
4170
4171 fi
4172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4173 echo "${ECHO_T}$ac_cv_c_inline" >&6
4174 case $ac_cv_c_inline in
4175   inline | yes) ;;
4176   no)
4177 cat >>confdefs.h <<\_ACEOF
4178 #define inline
4179 _ACEOF
4180  ;;
4181   *)  cat >>confdefs.h <<_ACEOF
4182 #define inline $ac_cv_c_inline
4183 _ACEOF
4184  ;;
4185 esac
4186
4187 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4188 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4189 if test "${ac_cv_c_const+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199
4200 int
4201 main ()
4202 {
4203 /* FIXME: Include the comments suggested by Paul. */
4204 #ifndef __cplusplus
4205   /* Ultrix mips cc rejects this.  */
4206   typedef int charset[2];
4207   const charset x;
4208   /* SunOS 4.1.1 cc rejects this.  */
4209   char const *const *ccp;
4210   char **p;
4211   /* NEC SVR4.0.2 mips cc rejects this.  */
4212   struct point {int x, y;};
4213   static struct point const zero = {0,0};
4214   /* AIX XL C 1.02.0.0 rejects this.
4215      It does not let you subtract one const X* pointer from another in
4216      an arm of an if-expression whose if-part is not a constant
4217      expression */
4218   const char *g = "string";
4219   ccp = &g + (g ? g-g : 0);
4220   /* HPUX 7.0 cc rejects these. */
4221   ++ccp;
4222   p = (char**) ccp;
4223   ccp = (char const *const *) p;
4224   { /* SCO 3.2v4 cc rejects this.  */
4225     char *t;
4226     char const *s = 0 ? (char *) 0 : (char const *) 0;
4227
4228     *t++ = 0;
4229   }
4230   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4231     int x[] = {25, 17};
4232     const int *foo = &x[0];
4233     ++foo;
4234   }
4235   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4236     typedef const int *iptr;
4237     iptr p = 0;
4238     ++p;
4239   }
4240   { /* AIX XL C 1.02.0.0 rejects this saying
4241        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4242     struct s { int j; const int *ap[3]; };
4243     struct s *b; b->j = 5;
4244   }
4245   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4246     const int foo = 10;
4247   }
4248 #endif
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256   (eval $ac_compile) 2>&5
4257   ac_status=$?
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); } &&
4260          { ac_try='test -s conftest.$ac_objext'
4261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262   (eval $ac_try) 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; }; then
4266   ac_cv_c_const=yes
4267 else
4268   echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4270
4271 ac_cv_c_const=no
4272 fi
4273 rm -f conftest.$ac_objext conftest.$ac_ext
4274 fi
4275 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4276 echo "${ECHO_T}$ac_cv_c_const" >&6
4277 if test $ac_cv_c_const = no; then
4278
4279 cat >>confdefs.h <<\_ACEOF
4280 #define const
4281 _ACEOF
4282
4283 fi
4284
4285
4286 # Extract the first word of "dbx", so it can be a program name with args.
4287 set dummy dbx; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_DBX+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   case $DBX in
4294   [\\/]* | ?:[\\/]*)
4295   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4296   ;;
4297   *)
4298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310 done
4311
4312   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4313   ;;
4314 esac
4315 fi
4316 DBX=$ac_cv_path_DBX
4317
4318 if test -n "$DBX"; then
4319   echo "$as_me:$LINENO: result: $DBX" >&5
4320 echo "${ECHO_T}$DBX" >&6
4321 else
4322   echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4324 fi
4325
4326 # Extract the first word of "gdb", so it can be a program name with args.
4327 set dummy gdb; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_GDB+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   case $GDB in
4334   [\\/]* | ?:[\\/]*)
4335   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4336   ;;
4337   *)
4338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343   for ac_exec_ext in '' $ac_executable_extensions; do
4344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350 done
4351
4352   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4353   ;;
4354 esac
4355 fi
4356 GDB=$ac_cv_path_GDB
4357
4358 if test -n "$GDB"; then
4359   echo "$as_me:$LINENO: result: $GDB" >&5
4360 echo "${ECHO_T}$GDB" >&6
4361 else
4362   echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364 fi
4365
4366 # Extract the first word of "sdb", so it can be a program name with args.
4367 set dummy sdb; ac_word=$2
4368 echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4370 if test "${ac_cv_path_SDB+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   case $SDB in
4374   [\\/]* | ?:[\\/]*)
4375   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4376   ;;
4377   *)
4378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391
4392   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4393   ;;
4394 esac
4395 fi
4396 SDB=$ac_cv_path_SDB
4397
4398 if test -n "$SDB"; then
4399   echo "$as_me:$LINENO: result: $SDB" >&5
4400 echo "${ECHO_T}$SDB" >&6
4401 else
4402   echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 if test $GDB != no ; then
4408         DEBUGGER=$GDB
4409 elif test $DBX != no ; then
4410         DEBUGGER=$DBX
4411 elif test $SDB != no ; then
4412         DEBUGGER=$SDB
4413 else
4414         DEBUGGER=no
4415 fi
4416
4417
4418
4419 # The following templates should be used with newer automakes
4420 # instead of acconfig.h
4421 #
4422 #AH_TEMPLATE([sig_atomic_t],
4423 #            [/* Define to `int' if <signal.h> doesn't define.])
4424 #AH_TEMPLATE([HAVE_START_COLOR],
4425 #            [Define if you have start_color, as a function or macro.])
4426 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4427 #            [Define if you have typeahead, as a function or macro.])
4428 #AH_TEMPLATE([HAVE_BKGDSET],
4429 #            [Define if you have bkgdset, as a function or macro.])
4430 #AH_TEMPLATE([HAVE_CURS_SET],
4431 #            [Define if you have curs_set, as a function or macro.])
4432 #AH_TEMPLATE([HAVE_META],
4433 #            [Define if you have meta, as a function or macro.])
4434 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4435 #            [Define if you have use_default_colors, as a function or macro.])
4436 #AH_TEMPLATE([HAVE_RESIZETERM],
4437 #            [Define if you have resizeterm, as a function or macro.])
4438 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4439 #            [Some systems declare sig_atomic_t as volatile, some others -- no.
4440 #             This define will have value `sig_atomic_t' or
4441 #             `volatile sig_atomic_t' accordingly.])
4442 #AH_TEMPLATE([ICONV_NONTRANS],
4443 #            [Define as 1 if iconv() only converts exactly and we should treat
4444 #             all return values other than (size_t)(-1) as equivalent.])
4445
4446
4447 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4448 # Extract the first word of "sendmail", so it can be a program name with args.
4449 set dummy sendmail; ac_word=$2
4450 echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   case $SENDMAIL in
4456   [\\/]* | ?:[\\/]*)
4457   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4458   ;;
4459   *)
4460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 as_dummy="$PATH:$ac_aux_path_sendmail"
4462 for as_dir in $as_dummy
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466   for ac_exec_ext in '' $ac_executable_extensions; do
4467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473 done
4474
4475   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4476   ;;
4477 esac
4478 fi
4479 SENDMAIL=$ac_cv_path_SENDMAIL
4480
4481 if test -n "$SENDMAIL"; then
4482   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4483 echo "${ECHO_T}$SENDMAIL" >&6
4484 else
4485   echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6
4487 fi
4488
4489
4490 cat >>confdefs.h <<_ACEOF
4491 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4492 _ACEOF
4493
4494
4495 OPS='$(srcdir)/OPS'
4496 if test -f $srcdir/EXPORTABLE ; then
4497         SUBVERSION="us"
4498 else
4499         SUBVERSION="i"
4500
4501         # Check whether --enable-pgp or --disable-pgp was given.
4502 if test "${enable_pgp+set}" = set; then
4503   enableval="$enable_pgp"
4504          if test x$enableval = xno ; then
4505                         have_pgp=no
4506                 fi
4507
4508 fi;
4509
4510         if test x$have_pgp != xno ; then
4511
4512 cat >>confdefs.h <<\_ACEOF
4513 #define CRYPT_BACKEND_CLASSIC_PGP 1
4514 _ACEOF
4515
4516                 PGPAUX_TARGET="pgpring pgpewrap"
4517                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4518         fi
4519
4520         # Check whether --enable-smime or --disable-smime was given.
4521 if test "${enable_smime+set}" = set; then
4522   enableval="$enable_smime"
4523         if test x$enableval = xno ; then
4524                         have_smime=no
4525                 fi
4526
4527 fi;
4528
4529         if test x$have_smime != xno ; then
4530
4531 cat >>confdefs.h <<\_ACEOF
4532 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4533 _ACEOF
4534
4535                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4536                 SMIMEAUX_TARGET="smime_keys"
4537         fi
4538
4539
4540 # Check whether --with-mixmaster or --without-mixmaster was given.
4541 if test "${with_mixmaster+set}" = set; then
4542   withval="$with_mixmaster"
4543   if test -x "$withval" ; then
4544                         MIXMASTER="$withval"
4545                  else
4546                         MIXMASTER="mixmaster"
4547                  fi
4548                  OPS="$OPS \$(srcdir)/OPS.MIX"
4549                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4550
4551 cat >>confdefs.h <<_ACEOF
4552 #define MIXMASTER "$MIXMASTER"
4553 _ACEOF
4554
4555
4556 fi;
4557
4558 fi
4559 # We now require all OPS
4560 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4561
4562
4563
4564
4565
4566
4567
4568 cat >>confdefs.h <<_ACEOF
4569 #define SUBVERSION "$SUBVERSION"
4570 _ACEOF
4571
4572
4573
4574 # Extract the first word of "ispell", so it can be a program name with args.
4575 set dummy ispell; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_path_ISPELL+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   case $ISPELL in
4582   [\\/]* | ?:[\\/]*)
4583   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4584   ;;
4585   *)
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599
4600   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4601   ;;
4602 esac
4603 fi
4604 ISPELL=$ac_cv_path_ISPELL
4605
4606 if test -n "$ISPELL"; then
4607   echo "$as_me:$LINENO: result: $ISPELL" >&5
4608 echo "${ECHO_T}$ISPELL" >&6
4609 else
4610   echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4612 fi
4613
4614 if test $ISPELL != no; then
4615
4616 cat >>confdefs.h <<_ACEOF
4617 #define ISPELL "$ISPELL"
4618 _ACEOF
4619
4620 fi
4621
4622
4623 # Check whether --with-slang or --without-slang was given.
4624 if test "${with_slang+set}" = set; then
4625   withval="$with_slang"
4626   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4627 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4628 if test "${mutt_cv_bsdish+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   if test "$cross_compiling" = yes; then
4632   mutt_cv_bsdish=no
4633 else
4634   cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #include <sys/param.h>
4642
4643 main ()
4644 {
4645 #ifdef BSD
4646         exit (0);
4647 #else
4648         exit (1);
4649 #endif
4650 }
4651 _ACEOF
4652 rm -f conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654   (eval $ac_link) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659   (eval $ac_try) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }; }; then
4663   mutt_cv_bsdish=yes
4664 else
4665   echo "$as_me: program exited with status $ac_status" >&5
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 ( exit $ac_status )
4670 mutt_cv_bsdish=no
4671 fi
4672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4673 fi
4674 fi
4675 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4676 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4677
4678         echo "$as_me:$LINENO: checking for S-Lang" >&5
4679 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4680         if test $withval = yes; then
4681                 if test -d $srcdir/../slang; then
4682                         mutt_cv_slang=$srcdir/../slang/src
4683                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4684                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4685                 else
4686                         if test -d $mutt_cv_prefix/include/slang; then
4687                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4688                         elif test -d /usr/include/slang; then
4689                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4690                         fi
4691                         mutt_cv_slang=yes
4692                 fi
4693         else
4694                                 if test -f $withval/src/slang.h; then
4695                         mutt_cv_slang=$withval/src
4696                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4697                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4698                 else
4699                                                 mutt_cv_slang=$withval
4700                         if test -d $withval/include/slang; then
4701                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4702                         elif test -d $withval/include; then
4703                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4704                         fi
4705                         LDFLAGS="$LDFLAGS -L${withval}/lib"
4706                 fi
4707         fi
4708         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4709 echo "${ECHO_T}$mutt_cv_slang" >&6
4710         if test $mutt_cv_bsdish = yes; then
4711
4712 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4713 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4714 if test "${ac_cv_lib_termlib_main+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   ac_check_lib_save_LIBS=$LIBS
4718 LIBS="-ltermlib  $LIBS"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726
4727
4728 int
4729 main ()
4730 {
4731 main ();
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4738   (eval $ac_link) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -s conftest$ac_exeext'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; }; then
4748   ac_cv_lib_termlib_main=yes
4749 else
4750   echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 ac_cv_lib_termlib_main=no
4754 fi
4755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4756 LIBS=$ac_check_lib_save_LIBS
4757 fi
4758 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4759 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4760 if test $ac_cv_lib_termlib_main = yes; then
4761   cat >>confdefs.h <<_ACEOF
4762 #define HAVE_LIBTERMLIB 1
4763 _ACEOF
4764
4765   LIBS="-ltermlib $LIBS"
4766
4767 fi
4768
4769         fi
4770
4771 cat >>confdefs.h <<\_ACEOF
4772 #define USE_SLANG_CURSES 1
4773 _ACEOF
4774
4775
4776 cat >>confdefs.h <<\_ACEOF
4777 #define HAVE_COLOR 1
4778 _ACEOF
4779
4780         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4781
4782
4783         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4784 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4785 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   ac_check_lib_save_LIBS=$LIBS
4789 LIBS="-lslang -lm $LIBS"
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797
4798 /* Override any gcc2 internal prototype to avoid an error.  */
4799 #ifdef __cplusplus
4800 extern "C"
4801 #endif
4802 /* We use char because int might match the return type of a gcc2
4803    builtin and then its argument prototype would still apply.  */
4804 char SLtt_get_terminfo ();
4805 int
4806 main ()
4807 {
4808 SLtt_get_terminfo ();
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 rm -f conftest.$ac_objext conftest$ac_exeext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4815   (eval $ac_link) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -s conftest$ac_exeext'
4820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821   (eval $ac_try) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; }; then
4825   ac_cv_lib_slang_SLtt_get_terminfo=yes
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 ac_cv_lib_slang_SLtt_get_terminfo=no
4831 fi
4832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4833 LIBS=$ac_check_lib_save_LIBS
4834 fi
4835 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4836 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4837 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4838   MUTTLIBS="$MUTTLIBS -lslang -lm"
4839 else
4840   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
4841 echo "$as_me: error: unable to compile.  check config.log" >&2;}
4842    { (exit 1); exit 1; }; }
4843 fi
4844
4845
4846
4847 else
4848   mutt_cv_curses=/usr
4849
4850 # Check whether --with-curses or --without-curses was given.
4851 if test "${with_curses+set}" = set; then
4852   withval="$with_curses"
4853   if test $withval != yes; then
4854    &n