configure revision 133359
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
14if 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+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_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.
230as_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.
235as_nl='
236'
237IFS=" 	$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.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${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.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="src/file.c"
274# Factoring default headers for most tests.
275ac_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
311ac_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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fsect FSECT5_TRUE FSECT5_FALSE 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 LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB LIBTOOL CPP EGREP LIBOBJS LTLIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_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.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
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
626Try \`$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
649done
650
651if 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; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
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
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670              localstatedir libdir includedir oldincludedir infodir mandir
671do
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
678done
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.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if 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
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if 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 ||
714echo 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
724else
725  ac_srcdir_defaulted=no
726fi
727if 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
735fi
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; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
772
773#
774# Report the --help message.
775#
776if 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
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
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
803Installation 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
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine 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
833Program 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
838System 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
842fi
843
844if test -n "$ac_init_help"; then
845
846  cat <<\_ACEOF
847
848Optional Features:
849  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851  --enable-maintainer-mode enable make rules and dependencies not useful
852                          (and sometimes confusing) to the casual installer
853  --disable-elf            disable builtin ELF support
854  --disable-elf-core       disable ELF core file support
855  --enable-fsect-man5      enable file formats in man section 5
856  --disable-dependency-tracking Speeds up one-time builds
857  --enable-dependency-tracking  Do not reject slow dependency extractors
858  --enable-shared=PKGS  build shared libraries default=yes
859  --enable-static=PKGS  build static libraries default=yes
860  --enable-fast-install=PKGS  optimize for fast installation default=yes
861  --disable-libtool-lock  avoid locking (might break parallel builds)
862  --disable-largefile     omit support for large files
863
864Optional Packages:
865  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
866  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
867  --with-gnu-ld           assume the C compiler uses GNU ld default=no
868  --with-pic              try to use only PIC/non-PIC objects default=use both
869
870Some influential environment variables:
871  CC          C compiler command
872  CFLAGS      C compiler flags
873  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
874              nonstandard directory <lib dir>
875  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
876              headers in a nonstandard directory <include dir>
877  CPP         C preprocessor
878
879Use these variables to override the choices made by `configure' or to help
880it to find libraries and programs with nonstandard names/locations.
881
882_ACEOF
883fi
884
885if test "$ac_init_help" = "recursive"; then
886  # If there are subdirs, report their specific --help.
887  ac_popdir=`pwd`
888  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889    test -d $ac_dir || continue
890    ac_builddir=.
891
892if test "$ac_dir" != .; then
893  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894  # A "../" for each directory in $ac_dir_suffix.
895  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896else
897  ac_dir_suffix= ac_top_builddir=
898fi
899
900case $srcdir in
901  .)  # No --srcdir option.  We are building in place.
902    ac_srcdir=.
903    if test -z "$ac_top_builddir"; then
904       ac_top_srcdir=.
905    else
906       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907    fi ;;
908  [\\/]* | ?:[\\/]* )  # Absolute path.
909    ac_srcdir=$srcdir$ac_dir_suffix;
910    ac_top_srcdir=$srcdir ;;
911  *) # Relative path.
912    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913    ac_top_srcdir=$ac_top_builddir$srcdir ;;
914esac
915# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
916# absolute.
917ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
918ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
919ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
920ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
921
922    cd $ac_dir
923    # Check for guested configure; otherwise get Cygnus style configure.
924    if test -f $ac_srcdir/configure.gnu; then
925      echo
926      $SHELL $ac_srcdir/configure.gnu  --help=recursive
927    elif test -f $ac_srcdir/configure; then
928      echo
929      $SHELL $ac_srcdir/configure  --help=recursive
930    elif test -f $ac_srcdir/configure.ac ||
931           test -f $ac_srcdir/configure.in; then
932      echo
933      $ac_configure --help
934    else
935      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936    fi
937    cd $ac_popdir
938  done
939fi
940
941test -n "$ac_init_help" && exit 0
942if $ac_init_version; then
943  cat <<\_ACEOF
944
945Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
946Free Software Foundation, Inc.
947This configure script is free software; the Free Software Foundation
948gives unlimited permission to copy, distribute and modify it.
949_ACEOF
950  exit 0
951fi
952exec 5>config.log
953cat >&5 <<_ACEOF
954This file contains any messages produced by compilers while
955running configure, to aid debugging if configure makes a mistake.
956
957It was created by $as_me, which was
958generated by GNU Autoconf 2.57.  Invocation command line was
959
960  $ $0 $@
961
962_ACEOF
963{
964cat <<_ASUNAME
965## --------- ##
966## Platform. ##
967## --------- ##
968
969hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
970uname -m = `(uname -m) 2>/dev/null || echo unknown`
971uname -r = `(uname -r) 2>/dev/null || echo unknown`
972uname -s = `(uname -s) 2>/dev/null || echo unknown`
973uname -v = `(uname -v) 2>/dev/null || echo unknown`
974
975/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
976/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
977
978/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
979/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
980/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
981hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
982/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
983/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
984/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
985
986_ASUNAME
987
988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
989for as_dir in $PATH
990do
991  IFS=$as_save_IFS
992  test -z "$as_dir" && as_dir=.
993  echo "PATH: $as_dir"
994done
995
996} >&5
997
998cat >&5 <<_ACEOF
999
1000
1001## ----------- ##
1002## Core tests. ##
1003## ----------- ##
1004
1005_ACEOF
1006
1007
1008# Keep a trace of the command line.
1009# Strip out --no-create and --no-recursion so they do not pile up.
1010# Strip out --silent because we don't want to record it for future runs.
1011# Also quote any args containing shell meta-characters.
1012# Make two passes to allow for proper duplicate-argument suppression.
1013ac_configure_args=
1014ac_configure_args0=
1015ac_configure_args1=
1016ac_sep=
1017ac_must_keep_next=false
1018for ac_pass in 1 2
1019do
1020  for ac_arg
1021  do
1022    case $ac_arg in
1023    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1024    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025    | -silent | --silent | --silen | --sile | --sil)
1026      continue ;;
1027    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1028      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1029    esac
1030    case $ac_pass in
1031    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1032    2)
1033      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1034      if test $ac_must_keep_next = true; then
1035        ac_must_keep_next=false # Got value, back to normal.
1036      else
1037        case $ac_arg in
1038          *=* | --config-cache | -C | -disable-* | --disable-* \
1039          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1040          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1041          | -with-* | --with-* | -without-* | --without-* | --x)
1042            case "$ac_configure_args0 " in
1043              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1044            esac
1045            ;;
1046          -* ) ac_must_keep_next=true ;;
1047        esac
1048      fi
1049      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1050      # Get rid of the leading space.
1051      ac_sep=" "
1052      ;;
1053    esac
1054  done
1055done
1056$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1057$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1058
1059# When interrupted or exit'd, cleanup temporary files, and complete
1060# config.log.  We remove comments because anyway the quotes in there
1061# would cause problems or look ugly.
1062# WARNING: Be sure not to use single quotes in there, as some shells,
1063# such as our DU 5.0 friend, will then `close' the trap.
1064trap 'exit_status=$?
1065  # Save into config.log some information that might help in debugging.
1066  {
1067    echo
1068
1069    cat <<\_ASBOX
1070## ---------------- ##
1071## Cache variables. ##
1072## ---------------- ##
1073_ASBOX
1074    echo
1075    # The following way of writing the cache mishandles newlines in values,
1076{
1077  (set) 2>&1 |
1078    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1079    *ac_space=\ *)
1080      sed -n \
1081        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1082    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1083      ;;
1084    *)
1085      sed -n \
1086        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1087      ;;
1088    esac;
1089}
1090    echo
1091
1092    cat <<\_ASBOX
1093## ----------------- ##
1094## Output variables. ##
1095## ----------------- ##
1096_ASBOX
1097    echo
1098    for ac_var in $ac_subst_vars
1099    do
1100      eval ac_val=$`echo $ac_var`
1101      echo "$ac_var='"'"'$ac_val'"'"'"
1102    done | sort
1103    echo
1104
1105    if test -n "$ac_subst_files"; then
1106      cat <<\_ASBOX
1107## ------------- ##
1108## Output files. ##
1109## ------------- ##
1110_ASBOX
1111      echo
1112      for ac_var in $ac_subst_files
1113      do
1114	eval ac_val=$`echo $ac_var`
1115        echo "$ac_var='"'"'$ac_val'"'"'"
1116      done | sort
1117      echo
1118    fi
1119
1120    if test -s confdefs.h; then
1121      cat <<\_ASBOX
1122## ----------- ##
1123## confdefs.h. ##
1124## ----------- ##
1125_ASBOX
1126      echo
1127      sed "/^$/d" confdefs.h | sort
1128      echo
1129    fi
1130    test "$ac_signal" != 0 &&
1131      echo "$as_me: caught signal $ac_signal"
1132    echo "$as_me: exit $exit_status"
1133  } >&5
1134  rm -f core core.* *.core &&
1135  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1136    exit $exit_status
1137     ' 0
1138for ac_signal in 1 2 13 15; do
1139  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1140done
1141ac_signal=0
1142
1143# confdefs.h avoids OS command line length limits that DEFS can exceed.
1144rm -rf conftest* confdefs.h
1145# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1146echo >confdefs.h
1147
1148# Predefined preprocessor variables.
1149
1150cat >>confdefs.h <<_ACEOF
1151#define PACKAGE_NAME "$PACKAGE_NAME"
1152_ACEOF
1153
1154
1155cat >>confdefs.h <<_ACEOF
1156#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1157_ACEOF
1158
1159
1160cat >>confdefs.h <<_ACEOF
1161#define PACKAGE_VERSION "$PACKAGE_VERSION"
1162_ACEOF
1163
1164
1165cat >>confdefs.h <<_ACEOF
1166#define PACKAGE_STRING "$PACKAGE_STRING"
1167_ACEOF
1168
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1172_ACEOF
1173
1174
1175# Let the site file select an alternate cache file if it wants to.
1176# Prefer explicitly selected file to automatically selected ones.
1177if test -z "$CONFIG_SITE"; then
1178  if test "x$prefix" != xNONE; then
1179    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1180  else
1181    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1182  fi
1183fi
1184for ac_site_file in $CONFIG_SITE; do
1185  if test -r "$ac_site_file"; then
1186    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1187echo "$as_me: loading site script $ac_site_file" >&6;}
1188    sed 's/^/| /' "$ac_site_file" >&5
1189    . "$ac_site_file"
1190  fi
1191done
1192
1193if test -r "$cache_file"; then
1194  # Some versions of bash will fail to source /dev/null (special
1195  # files actually), so we avoid doing that.
1196  if test -f "$cache_file"; then
1197    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1198echo "$as_me: loading cache $cache_file" >&6;}
1199    case $cache_file in
1200      [\\/]* | ?:[\\/]* ) . $cache_file;;
1201      *)                      . ./$cache_file;;
1202    esac
1203  fi
1204else
1205  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1206echo "$as_me: creating cache $cache_file" >&6;}
1207  >$cache_file
1208fi
1209
1210# Check that the precious variables saved in the cache have kept the same
1211# value.
1212ac_cache_corrupted=false
1213for ac_var in `(set) 2>&1 |
1214               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1215  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1216  eval ac_new_set=\$ac_env_${ac_var}_set
1217  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1218  eval ac_new_val="\$ac_env_${ac_var}_value"
1219  case $ac_old_set,$ac_new_set in
1220    set,)
1221      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1222echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1223      ac_cache_corrupted=: ;;
1224    ,set)
1225      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1226echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1227      ac_cache_corrupted=: ;;
1228    ,);;
1229    *)
1230      if test "x$ac_old_val" != "x$ac_new_val"; then
1231        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1232echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1233        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1234echo "$as_me:   former value:  $ac_old_val" >&2;}
1235        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1236echo "$as_me:   current value: $ac_new_val" >&2;}
1237        ac_cache_corrupted=:
1238      fi;;
1239  esac
1240  # Pass precious variables to config.status.
1241  if test "$ac_new_set" = set; then
1242    case $ac_new_val in
1243    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1245    *) ac_arg=$ac_var=$ac_new_val ;;
1246    esac
1247    case " $ac_configure_args " in
1248      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1249      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1250    esac
1251  fi
1252done
1253if $ac_cache_corrupted; then
1254  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1255echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1256  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1257echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1258   { (exit 1); exit 1; }; }
1259fi
1260
1261ac_ext=c
1262ac_cpp='$CPP $CPPFLAGS'
1263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1265ac_compiler_gnu=$ac_cv_c_compiler_gnu
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285am__api_version="1.7"
1286ac_aux_dir=
1287for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1288  if test -f $ac_dir/install-sh; then
1289    ac_aux_dir=$ac_dir
1290    ac_install_sh="$ac_aux_dir/install-sh -c"
1291    break
1292  elif test -f $ac_dir/install.sh; then
1293    ac_aux_dir=$ac_dir
1294    ac_install_sh="$ac_aux_dir/install.sh -c"
1295    break
1296  elif test -f $ac_dir/shtool; then
1297    ac_aux_dir=$ac_dir
1298    ac_install_sh="$ac_aux_dir/shtool install -c"
1299    break
1300  fi
1301done
1302if test -z "$ac_aux_dir"; then
1303  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1304echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1305   { (exit 1); exit 1; }; }
1306fi
1307ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1308ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1309ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1310
1311# Find a good install program.  We prefer a C program (faster),
1312# so one script is as good as another.  But avoid the broken or
1313# incompatible versions:
1314# SysV /etc/install, /usr/sbin/install
1315# SunOS /usr/etc/install
1316# IRIX /sbin/install
1317# AIX /bin/install
1318# AmigaOS /C/install, which installs bootblocks on floppy discs
1319# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1320# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1321# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1322# ./install, which can be erroneously created by make from ./install.sh.
1323echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1324echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1325if test -z "$INSTALL"; then
1326if test "${ac_cv_path_install+set}" = set; then
1327  echo $ECHO_N "(cached) $ECHO_C" >&6
1328else
1329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1330for as_dir in $PATH
1331do
1332  IFS=$as_save_IFS
1333  test -z "$as_dir" && as_dir=.
1334  # Account for people who put trailing slashes in PATH elements.
1335case $as_dir/ in
1336  ./ | .// | /cC/* | \
1337  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1338  /usr/ucb/* ) ;;
1339  *)
1340    # OSF1 and SCO ODT 3.0 have their own names for install.
1341    # Don't use installbsd from OSF since it installs stuff as root
1342    # by default.
1343    for ac_prog in ginstall scoinst install; do
1344      for ac_exec_ext in '' $ac_executable_extensions; do
1345        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1346          if test $ac_prog = install &&
1347            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1348            # AIX install.  It has an incompatible calling convention.
1349            :
1350          elif test $ac_prog = install &&
1351            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1352            # program-specific install script used by HP pwplus--don't use.
1353            :
1354          else
1355            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1356            break 3
1357          fi
1358        fi
1359      done
1360    done
1361    ;;
1362esac
1363done
1364
1365
1366fi
1367  if test "${ac_cv_path_install+set}" = set; then
1368    INSTALL=$ac_cv_path_install
1369  else
1370    # As a last resort, use the slow shell script.  We don't cache a
1371    # path for INSTALL within a source directory, because that will
1372    # break other packages using the cache if that directory is
1373    # removed, or if the path is relative.
1374    INSTALL=$ac_install_sh
1375  fi
1376fi
1377echo "$as_me:$LINENO: result: $INSTALL" >&5
1378echo "${ECHO_T}$INSTALL" >&6
1379
1380# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1381# It thinks the first close brace ends the variable substitution.
1382test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1383
1384test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1385
1386test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1387
1388echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1389echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1390# Just in case
1391sleep 1
1392echo timestamp > conftest.file
1393# Do `set' in a subshell so we don't clobber the current shell's
1394# arguments.  Must try -L first in case configure is actually a
1395# symlink; some systems play weird games with the mod time of symlinks
1396# (eg FreeBSD returns the mod time of the symlink's containing
1397# directory).
1398if (
1399   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1400   if test "$*" = "X"; then
1401      # -L didn't work.
1402      set X `ls -t $srcdir/configure conftest.file`
1403   fi
1404   rm -f conftest.file
1405   if test "$*" != "X $srcdir/configure conftest.file" \
1406      && test "$*" != "X conftest.file $srcdir/configure"; then
1407
1408      # If neither matched, then we have a broken ls.  This can happen
1409      # if, for instance, CONFIG_SHELL is bash and it inherits a
1410      # broken ls alias from the environment.  This has actually
1411      # happened.  Such a system could not be considered "sane".
1412      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1413alias in your environment" >&5
1414echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1415alias in your environment" >&2;}
1416   { (exit 1); exit 1; }; }
1417   fi
1418
1419   test "$2" = conftest.file
1420   )
1421then
1422   # Ok.
1423   :
1424else
1425   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1426Check your system clock" >&5
1427echo "$as_me: error: newly created file is older than distributed files!
1428Check your system clock" >&2;}
1429   { (exit 1); exit 1; }; }
1430fi
1431echo "$as_me:$LINENO: result: yes" >&5
1432echo "${ECHO_T}yes" >&6
1433test "$program_prefix" != NONE &&
1434  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1435# Use a double $ so make ignores it.
1436test "$program_suffix" != NONE &&
1437  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1438# Double any \ or $.  echo might interpret backslashes.
1439# By default was `s,x,x', remove it if useless.
1440cat <<\_ACEOF >conftest.sed
1441s/[\\$]/&&/g;s/;s,x,x,$//
1442_ACEOF
1443program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1444rm conftest.sed
1445
1446
1447# expand $ac_aux_dir to an absolute path
1448am_aux_dir=`cd $ac_aux_dir && pwd`
1449
1450test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1451# Use eval to expand $SHELL
1452if eval "$MISSING --run true"; then
1453  am_missing_run="$MISSING --run "
1454else
1455  am_missing_run=
1456  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1457echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1458fi
1459
1460for ac_prog in gawk mawk nawk awk
1461do
1462  # Extract the first word of "$ac_prog", so it can be a program name with args.
1463set dummy $ac_prog; ac_word=$2
1464echo "$as_me:$LINENO: checking for $ac_word" >&5
1465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_AWK+set}" = set; then
1467  echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469  if test -n "$AWK"; then
1470  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1471else
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475  IFS=$as_save_IFS
1476  test -z "$as_dir" && as_dir=.
1477  for ac_exec_ext in '' $ac_executable_extensions; do
1478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479    ac_cv_prog_AWK="$ac_prog"
1480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481    break 2
1482  fi
1483done
1484done
1485
1486fi
1487fi
1488AWK=$ac_cv_prog_AWK
1489if test -n "$AWK"; then
1490  echo "$as_me:$LINENO: result: $AWK" >&5
1491echo "${ECHO_T}$AWK" >&6
1492else
1493  echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
1495fi
1496
1497  test -n "$AWK" && break
1498done
1499
1500echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1501echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1502set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1503if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1504  echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
1506  cat >conftest.make <<\_ACEOF
1507all:
1508	@echo 'ac_maketemp="$(MAKE)"'
1509_ACEOF
1510# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1511eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1512if test -n "$ac_maketemp"; then
1513  eval ac_cv_prog_make_${ac_make}_set=yes
1514else
1515  eval ac_cv_prog_make_${ac_make}_set=no
1516fi
1517rm -f conftest.make
1518fi
1519if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1520  echo "$as_me:$LINENO: result: yes" >&5
1521echo "${ECHO_T}yes" >&6
1522  SET_MAKE=
1523else
1524  echo "$as_me:$LINENO: result: no" >&5
1525echo "${ECHO_T}no" >&6
1526  SET_MAKE="MAKE=${MAKE-make}"
1527fi
1528
1529rm -rf .tst 2>/dev/null
1530mkdir .tst 2>/dev/null
1531if test -d .tst; then
1532  am__leading_dot=.
1533else
1534  am__leading_dot=_
1535fi
1536rmdir .tst 2>/dev/null
1537
1538 # test to see if srcdir already configured
1539if test "`cd $srcdir && pwd`" != "`pwd`" &&
1540   test -f $srcdir/config.status; then
1541  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1542echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1543   { (exit 1); exit 1; }; }
1544fi
1545
1546# test whether we have cygpath
1547if test -z "$CYGPATH_W"; then
1548  if (cygpath --version) >/dev/null 2>/dev/null; then
1549    CYGPATH_W='cygpath -w'
1550  else
1551    CYGPATH_W=echo
1552  fi
1553fi
1554
1555
1556# Define the identity of the package.
1557 PACKAGE=file
1558 VERSION=4.10
1559
1560
1561cat >>confdefs.h <<_ACEOF
1562#define PACKAGE "$PACKAGE"
1563_ACEOF
1564
1565
1566cat >>confdefs.h <<_ACEOF
1567#define VERSION "$VERSION"
1568_ACEOF
1569
1570# Some tools Automake needs.
1571
1572ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1573
1574
1575AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1576
1577
1578AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1579
1580
1581AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1582
1583
1584MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1585
1586
1587AMTAR=${AMTAR-"${am_missing_run}tar"}
1588
1589install_sh=${install_sh-"$am_aux_dir/install-sh"}
1590
1591# Installed binaries are usually stripped using `strip' when the user
1592# run `make install-strip'.  However `strip' might not be the right
1593# tool to use in cross-compilation environments, therefore Automake
1594# will honor the `STRIP' environment variable to overrule this program.
1595if test "$cross_compiling" != no; then
1596  if test -n "$ac_tool_prefix"; then
1597  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1598set dummy ${ac_tool_prefix}strip; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_STRIP+set}" = set; then
1602  echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604  if test -n "$STRIP"; then
1605  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1606else
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610  IFS=$as_save_IFS
1611  test -z "$as_dir" && as_dir=.
1612  for ac_exec_ext in '' $ac_executable_extensions; do
1613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616    break 2
1617  fi
1618done
1619done
1620
1621fi
1622fi
1623STRIP=$ac_cv_prog_STRIP
1624if test -n "$STRIP"; then
1625  echo "$as_me:$LINENO: result: $STRIP" >&5
1626echo "${ECHO_T}$STRIP" >&6
1627else
1628  echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
1630fi
1631
1632fi
1633if test -z "$ac_cv_prog_STRIP"; then
1634  ac_ct_STRIP=$STRIP
1635  # Extract the first word of "strip", so it can be a program name with args.
1636set dummy strip; ac_word=$2
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1640  echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642  if test -n "$ac_ct_STRIP"; then
1643  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648  IFS=$as_save_IFS
1649  test -z "$as_dir" && as_dir=.
1650  for ac_exec_ext in '' $ac_executable_extensions; do
1651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652    ac_cv_prog_ac_ct_STRIP="strip"
1653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654    break 2
1655  fi
1656done
1657done
1658
1659  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1660fi
1661fi
1662ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1663if test -n "$ac_ct_STRIP"; then
1664  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1665echo "${ECHO_T}$ac_ct_STRIP" >&6
1666else
1667  echo "$as_me:$LINENO: result: no" >&5
1668echo "${ECHO_T}no" >&6
1669fi
1670
1671  STRIP=$ac_ct_STRIP
1672else
1673  STRIP="$ac_cv_prog_STRIP"
1674fi
1675
1676fi
1677INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1678
1679# We need awk for the "check" target.  The system "awk" is bad on
1680# some platforms.
1681
1682
1683
1684          ac_config_headers="$ac_config_headers config.h"
1685
1686echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1687echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1688    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1689if test "${enable_maintainer_mode+set}" = set; then
1690  enableval="$enable_maintainer_mode"
1691  USE_MAINTAINER_MODE=$enableval
1692else
1693  USE_MAINTAINER_MODE=no
1694fi;
1695  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1696echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1697
1698
1699if test $USE_MAINTAINER_MODE = yes; then
1700  MAINTAINER_MODE_TRUE=
1701  MAINTAINER_MODE_FALSE='#'
1702else
1703  MAINTAINER_MODE_TRUE='#'
1704  MAINTAINER_MODE_FALSE=
1705fi
1706
1707  MAINT=$MAINTAINER_MODE_TRUE
1708
1709
1710
1711echo "$as_me:$LINENO: checking for builtin ELF support" >&5
1712echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6
1713# Check whether --enable-elf or --disable-elf was given.
1714if test "${enable_elf+set}" = set; then
1715  enableval="$enable_elf"
1716  if test "${enableval}" = yes; then
1717  echo "$as_me:$LINENO: result: yes" >&5
1718echo "${ECHO_T}yes" >&6
1719  cat >>confdefs.h <<\_ACEOF
1720#define BUILTIN_ELF 1
1721_ACEOF
1722
1723else
1724  echo "$as_me:$LINENO: result: no" >&5
1725echo "${ECHO_T}no" >&6
1726fi
1727else
1728
1729  # enable by default
1730  echo "$as_me:$LINENO: result: yes" >&5
1731echo "${ECHO_T}yes" >&6
1732  cat >>confdefs.h <<\_ACEOF
1733#define BUILTIN_ELF 1
1734_ACEOF
1735
1736
1737fi;
1738
1739echo "$as_me:$LINENO: checking for ELF core file support" >&5
1740echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6
1741# Check whether --enable-elf-core or --disable-elf-core was given.
1742if test "${enable_elf_core+set}" = set; then
1743  enableval="$enable_elf_core"
1744  if test "${enableval}" = yes; then
1745  echo "$as_me:$LINENO: result: yes" >&5
1746echo "${ECHO_T}yes" >&6
1747  cat >>confdefs.h <<\_ACEOF
1748#define ELFCORE 1
1749_ACEOF
1750
1751else
1752  echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755else
1756
1757  # enable by default
1758  echo "$as_me:$LINENO: result: yes" >&5
1759echo "${ECHO_T}yes" >&6
1760  cat >>confdefs.h <<\_ACEOF
1761#define ELFCORE 1
1762_ACEOF
1763
1764
1765fi;
1766
1767echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
1768echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6
1769# Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
1770if test "${enable_fsect_man5+set}" = set; then
1771  enableval="$enable_fsect_man5"
1772  if test "${enableval}" = yes; then
1773  echo "$as_me:$LINENO: result: yes" >&5
1774echo "${ECHO_T}yes" >&6
1775  fsect=5
1776else
1777  echo "$as_me:$LINENO: result: no" >&5
1778echo "${ECHO_T}no" >&6
1779  fsect=4
1780fi
1781else
1782
1783  # disable by default
1784  echo "$as_me:$LINENO: result: no" >&5
1785echo "${ECHO_T}no" >&6
1786  fsect=4
1787
1788fi;
1789
1790
1791
1792if test x$fsect = x5; then
1793  FSECT5_TRUE=
1794  FSECT5_FALSE='#'
1795else
1796  FSECT5_TRUE='#'
1797  FSECT5_FALSE=
1798fi
1799
1800
1801ac_ext=c
1802ac_cpp='$CPP $CPPFLAGS'
1803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806if test -n "$ac_tool_prefix"; then
1807  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1808set dummy ${ac_tool_prefix}gcc; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_CC+set}" = set; then
1812  echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814  if test -n "$CC"; then
1815  ac_cv_prog_CC="$CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820  IFS=$as_save_IFS
1821  test -z "$as_dir" && as_dir=.
1822  for ac_exec_ext in '' $ac_executable_extensions; do
1823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826    break 2
1827  fi
1828done
1829done
1830
1831fi
1832fi
1833CC=$ac_cv_prog_CC
1834if test -n "$CC"; then
1835  echo "$as_me:$LINENO: result: $CC" >&5
1836echo "${ECHO_T}$CC" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842fi
1843if test -z "$ac_cv_prog_CC"; then
1844  ac_ct_CC=$CC
1845  # Extract the first word of "gcc", so it can be a program name with args.
1846set dummy gcc; ac_word=$2
1847echo "$as_me:$LINENO: checking for $ac_word" >&5
1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850  echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852  if test -n "$ac_ct_CC"; then
1853  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854else
1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856for as_dir in $PATH
1857do
1858  IFS=$as_save_IFS
1859  test -z "$as_dir" && as_dir=.
1860  for ac_exec_ext in '' $ac_executable_extensions; do
1861  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862    ac_cv_prog_ac_ct_CC="gcc"
1863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864    break 2
1865  fi
1866done
1867done
1868
1869fi
1870fi
1871ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872if test -n "$ac_ct_CC"; then
1873  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874echo "${ECHO_T}$ac_ct_CC" >&6
1875else
1876  echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
1878fi
1879
1880  CC=$ac_ct_CC
1881else
1882  CC="$ac_cv_prog_CC"
1883fi
1884
1885if test -z "$CC"; then
1886  if test -n "$ac_tool_prefix"; then
1887  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1888set dummy ${ac_tool_prefix}cc; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_CC+set}" = set; then
1892  echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894  if test -n "$CC"; then
1895  ac_cv_prog_CC="$CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900  IFS=$as_save_IFS
1901  test -z "$as_dir" && as_dir=.
1902  for ac_exec_ext in '' $ac_executable_extensions; do
1903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904    ac_cv_prog_CC="${ac_tool_prefix}cc"
1905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906    break 2
1907  fi
1908done
1909done
1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
1915  echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6
1917else
1918  echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922fi
1923if test -z "$ac_cv_prog_CC"; then
1924  ac_ct_CC=$CC
1925  # Extract the first word of "cc", so it can be a program name with args.
1926set dummy cc; ac_word=$2
1927echo "$as_me:$LINENO: checking for $ac_word" >&5
1928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930  echo $ECHO_N "(cached) $ECHO_C" >&6
1931else
1932  if test -n "$ac_ct_CC"; then
1933  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934else
1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936for as_dir in $PATH
1937do
1938  IFS=$as_save_IFS
1939  test -z "$as_dir" && as_dir=.
1940  for ac_exec_ext in '' $ac_executable_extensions; do
1941  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942    ac_cv_prog_ac_ct_CC="cc"
1943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944    break 2
1945  fi
1946done
1947done
1948
1949fi
1950fi
1951ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952if test -n "$ac_ct_CC"; then
1953  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954echo "${ECHO_T}$ac_ct_CC" >&6
1955else
1956  echo "$as_me:$LINENO: result: no" >&5
1957echo "${ECHO_T}no" >&6
1958fi
1959
1960  CC=$ac_ct_CC
1961else
1962  CC="$ac_cv_prog_CC"
1963fi
1964
1965fi
1966if test -z "$CC"; then
1967  # Extract the first word of "cc", so it can be a program name with args.
1968set dummy cc; ac_word=$2
1969echo "$as_me:$LINENO: checking for $ac_word" >&5
1970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971if test "${ac_cv_prog_CC+set}" = set; then
1972  echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974  if test -n "$CC"; then
1975  ac_cv_prog_CC="$CC" # Let the user override the test.
1976else
1977  ac_prog_rejected=no
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981  IFS=$as_save_IFS
1982  test -z "$as_dir" && as_dir=.
1983  for ac_exec_ext in '' $ac_executable_extensions; do
1984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986       ac_prog_rejected=yes
1987       continue
1988     fi
1989    ac_cv_prog_CC="cc"
1990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991    break 2
1992  fi
1993done
1994done
1995
1996if test $ac_prog_rejected = yes; then
1997  # We found a bogon in the path, so make sure we never use it.
1998  set dummy $ac_cv_prog_CC
1999  shift
2000  if test $# != 0; then
2001    # We chose a different compiler from the bogus one.
2002    # However, it has the same basename, so the bogon will be chosen
2003    # first if we set CC to just the basename; use the full file name.
2004    shift
2005    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2006  fi
2007fi
2008fi
2009fi
2010CC=$ac_cv_prog_CC
2011if test -n "$CC"; then
2012  echo "$as_me:$LINENO: result: $CC" >&5
2013echo "${ECHO_T}$CC" >&6
2014else
2015  echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6
2017fi
2018
2019fi
2020if test -z "$CC"; then
2021  if test -n "$ac_tool_prefix"; then
2022  for ac_prog in cl
2023  do
2024    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2026echo "$as_me:$LINENO: checking for $ac_word" >&5
2027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028if test "${ac_cv_prog_CC+set}" = set; then
2029  echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031  if test -n "$CC"; then
2032  ac_cv_prog_CC="$CC" # Let the user override the test.
2033else
2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035for as_dir in $PATH
2036do
2037  IFS=$as_save_IFS
2038  test -z "$as_dir" && as_dir=.
2039  for ac_exec_ext in '' $ac_executable_extensions; do
2040  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043    break 2
2044  fi
2045done
2046done
2047
2048fi
2049fi
2050CC=$ac_cv_prog_CC
2051if test -n "$CC"; then
2052  echo "$as_me:$LINENO: result: $CC" >&5
2053echo "${ECHO_T}$CC" >&6
2054else
2055  echo "$as_me:$LINENO: result: no" >&5
2056echo "${ECHO_T}no" >&6
2057fi
2058
2059    test -n "$CC" && break
2060  done
2061fi
2062if test -z "$CC"; then
2063  ac_ct_CC=$CC
2064  for ac_prog in cl
2065do
2066  # Extract the first word of "$ac_prog", so it can be a program name with args.
2067set dummy $ac_prog; ac_word=$2
2068echo "$as_me:$LINENO: checking for $ac_word" >&5
2069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071  echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073  if test -n "$ac_ct_CC"; then
2074  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075else
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079  IFS=$as_save_IFS
2080  test -z "$as_dir" && as_dir=.
2081  for ac_exec_ext in '' $ac_executable_extensions; do
2082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083    ac_cv_prog_ac_ct_CC="$ac_prog"
2084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085    break 2
2086  fi
2087done
2088done
2089
2090fi
2091fi
2092ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093if test -n "$ac_ct_CC"; then
2094  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095echo "${ECHO_T}$ac_ct_CC" >&6
2096else
2097  echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6
2099fi
2100
2101  test -n "$ac_ct_CC" && break
2102done
2103
2104  CC=$ac_ct_CC
2105fi
2106
2107fi
2108
2109
2110test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111See \`config.log' for more details." >&5
2112echo "$as_me: error: no acceptable C compiler found in \$PATH
2113See \`config.log' for more details." >&2;}
2114   { (exit 1); exit 1; }; }
2115
2116# Provide some information about the compiler.
2117echo "$as_me:$LINENO:" \
2118     "checking for C compiler version" >&5
2119ac_compiler=`set X $ac_compile; echo $2`
2120{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2121  (eval $ac_compiler --version </dev/null >&5) 2>&5
2122  ac_status=$?
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); }
2125{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2126  (eval $ac_compiler -v </dev/null >&5) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2131  (eval $ac_compiler -V </dev/null >&5) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }
2135
2136cat >conftest.$ac_ext <<_ACEOF
2137#line $LINENO "configure"
2138/* confdefs.h.  */
2139_ACEOF
2140cat confdefs.h >>conftest.$ac_ext
2141cat >>conftest.$ac_ext <<_ACEOF
2142/* end confdefs.h.  */
2143
2144int
2145main ()
2146{
2147
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152ac_clean_files_save=$ac_clean_files
2153ac_clean_files="$ac_clean_files a.out a.exe b.out"
2154# Try to create an executable without -o first, disregard a.out.
2155# It will help us diagnose broken compilers, and finding out an intuition
2156# of exeext.
2157echo "$as_me:$LINENO: checking for C compiler default output" >&5
2158echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2159ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2161  (eval $ac_link_default) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; then
2165  # Find the output, starting from the most likely.  This scheme is
2166# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167# resort.
2168
2169# Be careful to initialize this variable, since it used to be cached.
2170# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2171ac_cv_exeext=
2172# b.out is created by i960 compilers.
2173for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2174do
2175  test -f "$ac_file" || continue
2176  case $ac_file in
2177    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178        ;;
2179    conftest.$ac_ext )
2180        # This is the source file.
2181        ;;
2182    [ab].out )
2183        # We found the default executable, but exeext='' is most
2184        # certainly right.
2185        break;;
2186    *.* )
2187        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188        # FIXME: I believe we export ac_cv_exeext for Libtool,
2189        # but it would be cool to find out if it's true.  Does anybody
2190        # maintain Libtool? --akim.
2191        export ac_cv_exeext
2192        break;;
2193    * )
2194        break;;
2195  esac
2196done
2197else
2198  echo "$as_me: failed program was:" >&5
2199sed 's/^/| /' conftest.$ac_ext >&5
2200
2201{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202See \`config.log' for more details." >&5
2203echo "$as_me: error: C compiler cannot create executables
2204See \`config.log' for more details." >&2;}
2205   { (exit 77); exit 77; }; }
2206fi
2207
2208ac_exeext=$ac_cv_exeext
2209echo "$as_me:$LINENO: result: $ac_file" >&5
2210echo "${ECHO_T}$ac_file" >&6
2211
2212# Check the compiler produces executables we can run.  If not, either
2213# the compiler is broken, or we cross compile.
2214echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2216# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217# If not cross compiling, check that we can run a simple program.
2218if test "$cross_compiling" != yes; then
2219  if { ac_try='./$ac_file'
2220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221  (eval $ac_try) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }; }; then
2225    cross_compiling=no
2226  else
2227    if test "$cross_compiling" = maybe; then
2228	cross_compiling=yes
2229    else
2230	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&2;}
2236   { (exit 1); exit 1; }; }
2237    fi
2238  fi
2239fi
2240echo "$as_me:$LINENO: result: yes" >&5
2241echo "${ECHO_T}yes" >&6
2242
2243rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244ac_clean_files=$ac_clean_files_save
2245# Check the compiler produces executables we can run.  If not, either
2246# the compiler is broken, or we cross compile.
2247echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2249echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250echo "${ECHO_T}$cross_compiling" >&6
2251
2252echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2255  (eval $ac_link) 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }; then
2259  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
2263for ac_file in conftest.exe conftest conftest.*; do
2264  test -f "$ac_file" || continue
2265  case $ac_file in
2266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2267    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268          export ac_cv_exeext
2269          break;;
2270    * ) break;;
2271  esac
2272done
2273else
2274  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2275See \`config.log' for more details." >&5
2276echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2277See \`config.log' for more details." >&2;}
2278   { (exit 1); exit 1; }; }
2279fi
2280
2281rm -f conftest$ac_cv_exeext
2282echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2283echo "${ECHO_T}$ac_cv_exeext" >&6
2284
2285rm -f conftest.$ac_ext
2286EXEEXT=$ac_cv_exeext
2287ac_exeext=$EXEEXT
2288echo "$as_me:$LINENO: checking for suffix of object files" >&5
2289echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2290if test "${ac_cv_objext+set}" = set; then
2291  echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293  cat >conftest.$ac_ext <<_ACEOF
2294#line $LINENO "configure"
2295/* confdefs.h.  */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h.  */
2300
2301int
2302main ()
2303{
2304
2305  ;
2306  return 0;
2307}
2308_ACEOF
2309rm -f conftest.o conftest.obj
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311  (eval $ac_compile) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; then
2315  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316  case $ac_file in
2317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2318    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319       break;;
2320  esac
2321done
2322else
2323  echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&2;}
2330   { (exit 1); exit 1; }; }
2331fi
2332
2333rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334fi
2335echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336echo "${ECHO_T}$ac_cv_objext" >&6
2337OBJEXT=$ac_cv_objext
2338ac_objext=$OBJEXT
2339echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  cat >conftest.$ac_ext <<_ACEOF
2345#line $LINENO "configure"
2346/* confdefs.h.  */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h.  */
2351
2352int
2353main ()
2354{
2355#ifndef __GNUC__
2356       choke me
2357#endif
2358
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363rm -f conftest.$ac_objext
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365  (eval $ac_compile) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); } &&
2369         { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_compiler_gnu=yes
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380ac_compiler_gnu=no
2381fi
2382rm -f conftest.$ac_objext conftest.$ac_ext
2383ac_cv_c_compiler_gnu=$ac_compiler_gnu
2384
2385fi
2386echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2387echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2388GCC=`test $ac_compiler_gnu = yes && echo yes`
2389ac_test_CFLAGS=${CFLAGS+set}
2390ac_save_CFLAGS=$CFLAGS
2391CFLAGS="-g"
2392echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2393echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2394if test "${ac_cv_prog_cc_g+set}" = set; then
2395  echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397  cat >conftest.$ac_ext <<_ACEOF
2398#line $LINENO "configure"
2399/* confdefs.h.  */
2400_ACEOF
2401cat confdefs.h >>conftest.$ac_ext
2402cat >>conftest.$ac_ext <<_ACEOF
2403/* end confdefs.h.  */
2404
2405int
2406main ()
2407{
2408
2409  ;
2410  return 0;
2411}
2412_ACEOF
2413rm -f conftest.$ac_objext
2414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415  (eval $ac_compile) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); } &&
2419         { ac_try='test -s conftest.$ac_objext'
2420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421  (eval $ac_try) 2>&5
2422  ac_status=$?
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); }; }; then
2425  ac_cv_prog_cc_g=yes
2426else
2427  echo "$as_me: failed program was:" >&5
2428sed 's/^/| /' conftest.$ac_ext >&5
2429
2430ac_cv_prog_cc_g=no
2431fi
2432rm -f conftest.$ac_objext conftest.$ac_ext
2433fi
2434echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2435echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2436if test "$ac_test_CFLAGS" = set; then
2437  CFLAGS=$ac_save_CFLAGS
2438elif test $ac_cv_prog_cc_g = yes; then
2439  if test "$GCC" = yes; then
2440    CFLAGS="-g -O2"
2441  else
2442    CFLAGS="-g"
2443  fi
2444else
2445  if test "$GCC" = yes; then
2446    CFLAGS="-O2"
2447  else
2448    CFLAGS=
2449  fi
2450fi
2451echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2452echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2453if test "${ac_cv_prog_cc_stdc+set}" = set; then
2454  echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456  ac_cv_prog_cc_stdc=no
2457ac_save_CC=$CC
2458cat >conftest.$ac_ext <<_ACEOF
2459#line $LINENO "configure"
2460/* confdefs.h.  */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h.  */
2465#include <stdarg.h>
2466#include <stdio.h>
2467#include <sys/types.h>
2468#include <sys/stat.h>
2469/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2470struct buf { int x; };
2471FILE * (*rcsopen) (struct buf *, struct stat *, int);
2472static char *e (p, i)
2473     char **p;
2474     int i;
2475{
2476  return p[i];
2477}
2478static char *f (char * (*g) (char **, int), char **p, ...)
2479{
2480  char *s;
2481  va_list v;
2482  va_start (v,p);
2483  s = g (p, va_arg (v,int));
2484  va_end (v);
2485  return s;
2486}
2487int test (int i, double x);
2488struct s1 {int (*f) (int a);};
2489struct s2 {int (*f) (double a);};
2490int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491int argc;
2492char **argv;
2493int
2494main ()
2495{
2496return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2497  ;
2498  return 0;
2499}
2500_ACEOF
2501# Don't try gcc -ansi; that turns off useful extensions and
2502# breaks some systems' header files.
2503# AIX			-qlanglvl=ansi
2504# Ultrix and OSF/1	-std1
2505# HP-UX 10.20 and later	-Ae
2506# HP-UX older versions	-Aa -D_HPUX_SOURCE
2507# SVR4			-Xc -D__EXTENSIONS__
2508for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2509do
2510  CC="$ac_save_CC $ac_arg"
2511  rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>&5
2514  ac_status=$?
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); } &&
2517         { ac_try='test -s conftest.$ac_objext'
2518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519  (eval $ac_try) 2>&5
2520  ac_status=$?
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); }; }; then
2523  ac_cv_prog_cc_stdc=$ac_arg
2524break
2525else
2526  echo "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529fi
2530rm -f conftest.$ac_objext
2531done
2532rm -f conftest.$ac_ext conftest.$ac_objext
2533CC=$ac_save_CC
2534
2535fi
2536
2537case "x$ac_cv_prog_cc_stdc" in
2538  x|xno)
2539    echo "$as_me:$LINENO: result: none needed" >&5
2540echo "${ECHO_T}none needed" >&6 ;;
2541  *)
2542    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544    CC="$CC $ac_cv_prog_cc_stdc" ;;
2545esac
2546
2547# Some people use a C++ compiler to compile C.  Since we use `exit',
2548# in C++ we need to declare it.  In case someone uses the same compiler
2549# for both compiling C and C++ we need to have the C++ compiler decide
2550# the declaration of exit, since it's the most demanding environment.
2551cat >conftest.$ac_ext <<_ACEOF
2552#ifndef __cplusplus
2553  choke me
2554#endif
2555_ACEOF
2556rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558  (eval $ac_compile) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); } &&
2562         { ac_try='test -s conftest.$ac_objext'
2563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564  (eval $ac_try) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; }; then
2568  for ac_declaration in \
2569   ''\
2570   '#include <stdlib.h>' \
2571   'extern "C" void std::exit (int) throw (); using std::exit;' \
2572   'extern "C" void std::exit (int); using std::exit;' \
2573   'extern "C" void exit (int) throw ();' \
2574   'extern "C" void exit (int);' \
2575   'void exit (int);'
2576do
2577  cat >conftest.$ac_ext <<_ACEOF
2578#line $LINENO "configure"
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584#include <stdlib.h>
2585$ac_declaration
2586int
2587main ()
2588{
2589exit (42);
2590  ;
2591  return 0;
2592}
2593_ACEOF
2594rm -f conftest.$ac_objext
2595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596  (eval $ac_compile) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); } &&
2600         { ac_try='test -s conftest.$ac_objext'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; }; then
2606  :
2607else
2608  echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611continue
2612fi
2613rm -f conftest.$ac_objext conftest.$ac_ext
2614  cat >conftest.$ac_ext <<_ACEOF
2615#line $LINENO "configure"
2616/* confdefs.h.  */
2617_ACEOF
2618cat confdefs.h >>conftest.$ac_ext
2619cat >>conftest.$ac_ext <<_ACEOF
2620/* end confdefs.h.  */
2621$ac_declaration
2622int
2623main ()
2624{
2625exit (42);
2626  ;
2627  return 0;
2628}
2629_ACEOF
2630rm -f conftest.$ac_objext
2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632  (eval $ac_compile) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); } &&
2636         { ac_try='test -s conftest.$ac_objext'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642  break
2643else
2644  echo "$as_me: failed program was:" >&5
2645sed 's/^/| /' conftest.$ac_ext >&5
2646
2647fi
2648rm -f conftest.$ac_objext conftest.$ac_ext
2649done
2650rm -f conftest*
2651if test -n "$ac_declaration"; then
2652  echo '#ifdef __cplusplus' >>confdefs.h
2653  echo $ac_declaration      >>confdefs.h
2654  echo '#endif'             >>confdefs.h
2655fi
2656
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.$ac_objext conftest.$ac_ext
2663ac_ext=c
2664ac_cpp='$CPP $CPPFLAGS'
2665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668DEPDIR="${am__leading_dot}deps"
2669
2670          ac_config_commands="$ac_config_commands depfiles"
2671
2672
2673am_make=${MAKE-make}
2674cat > confinc << 'END'
2675am__doit:
2676	@echo done
2677.PHONY: am__doit
2678END
2679# If we don't find an include directive, just comment out the code.
2680echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2681echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2682am__include="#"
2683am__quote=
2684_am_result=none
2685# First try GNU make style include.
2686echo "include confinc" > confmf
2687# We grep out `Entering directory' and `Leaving directory'
2688# messages which can occur if `w' ends up in MAKEFLAGS.
2689# In particular we don't look at `^make:' because GNU make might
2690# be invoked under some other name (usually "gmake"), in which
2691# case it prints its new name instead of `make'.
2692if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2693   am__include=include
2694   am__quote=
2695   _am_result=GNU
2696fi
2697# Now try BSD make style include.
2698if test "$am__include" = "#"; then
2699   echo '.include "confinc"' > confmf
2700   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2701      am__include=.include
2702      am__quote="\""
2703      _am_result=BSD
2704   fi
2705fi
2706
2707
2708echo "$as_me:$LINENO: result: $_am_result" >&5
2709echo "${ECHO_T}$_am_result" >&6
2710rm -f confinc confmf
2711
2712# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2713if test "${enable_dependency_tracking+set}" = set; then
2714  enableval="$enable_dependency_tracking"
2715
2716fi;
2717if test "x$enable_dependency_tracking" != xno; then
2718  am_depcomp="$ac_aux_dir/depcomp"
2719  AMDEPBACKSLASH='\'
2720fi
2721
2722
2723if test "x$enable_dependency_tracking" != xno; then
2724  AMDEP_TRUE=
2725  AMDEP_FALSE='#'
2726else
2727  AMDEP_TRUE='#'
2728  AMDEP_FALSE=
2729fi
2730
2731
2732
2733
2734depcc="$CC"   am_compiler_list=
2735
2736echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2737echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2738if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2739  echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2742  # We make a subdir and do the tests there.  Otherwise we can end up
2743  # making bogus files that we don't know about and never remove.  For
2744  # instance it was reported that on HP-UX the gcc test will end up
2745  # making a dummy file named `D' -- because `-MD' means `put the output
2746  # in D'.
2747  mkdir conftest.dir
2748  # Copy depcomp to subdir because otherwise we won't find it if we're
2749  # using a relative directory.
2750  cp "$am_depcomp" conftest.dir
2751  cd conftest.dir
2752  # We will build objects and dependencies in a subdirectory because
2753  # it helps to detect inapplicable dependency modes.  For instance
2754  # both Tru64's cc and ICC support -MD to output dependencies as a
2755  # side effect of compilation, but ICC will put the dependencies in
2756  # the current directory while Tru64 will put them in the object
2757  # directory.
2758  mkdir sub
2759
2760  am_cv_CC_dependencies_compiler_type=none
2761  if test "$am_compiler_list" = ""; then
2762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2763  fi
2764  for depmode in $am_compiler_list; do
2765    # Setup a source with many dependencies, because some compilers
2766    # like to wrap large dependency lists on column 80 (with \), and
2767    # we should not choose a depcomp mode which is confused by this.
2768    #
2769    # We need to recreate these files for each test, as the compiler may
2770    # overwrite some of them when testing with obscure command lines.
2771    # This happens at least with the AIX C compiler.
2772    : > sub/conftest.c
2773    for i in 1 2 3 4 5 6; do
2774      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2775      : > sub/conftst$i.h
2776    done
2777    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2778
2779    case $depmode in
2780    nosideeffect)
2781      # after this tag, mechanisms are not by side-effect, so they'll
2782      # only be used when explicitly requested
2783      if test "x$enable_dependency_tracking" = xyes; then
2784	continue
2785      else
2786	break
2787      fi
2788      ;;
2789    none) break ;;
2790    esac
2791    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2792    # mode.  It turns out that the SunPro C++ compiler does not properly
2793    # handle `-M -o', and we need to detect this.
2794    if depmode=$depmode \
2795       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2796       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2797       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2798         >/dev/null 2>conftest.err &&
2799       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2800       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2801       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2802      # icc doesn't choke on unknown options, it will just issue warnings
2803      # (even with -Werror).  So we grep stderr for any message
2804      # that says an option was ignored.
2805      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2806        am_cv_CC_dependencies_compiler_type=$depmode
2807        break
2808      fi
2809    fi
2810  done
2811
2812  cd ..
2813  rm -rf conftest.dir
2814else
2815  am_cv_CC_dependencies_compiler_type=none
2816fi
2817
2818fi
2819echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2820echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2821CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2822
2823
2824
2825if
2826  test "x$enable_dependency_tracking" != xno \
2827  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2828  am__fastdepCC_TRUE=
2829  am__fastdepCC_FALSE='#'
2830else
2831  am__fastdepCC_TRUE='#'
2832  am__fastdepCC_FALSE=
2833fi
2834
2835
2836# Find a good install program.  We prefer a C program (faster),
2837# so one script is as good as another.  But avoid the broken or
2838# incompatible versions:
2839# SysV /etc/install, /usr/sbin/install
2840# SunOS /usr/etc/install
2841# IRIX /sbin/install
2842# AIX /bin/install
2843# AmigaOS /C/install, which installs bootblocks on floppy discs
2844# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2845# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2846# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2847# ./install, which can be erroneously created by make from ./install.sh.
2848echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2849echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2850if test -z "$INSTALL"; then
2851if test "${ac_cv_path_install+set}" = set; then
2852  echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
2854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  test -z "$as_dir" && as_dir=.
2859  # Account for people who put trailing slashes in PATH elements.
2860case $as_dir/ in
2861  ./ | .// | /cC/* | \
2862  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2863  /usr/ucb/* ) ;;
2864  *)
2865    # OSF1 and SCO ODT 3.0 have their own names for install.
2866    # Don't use installbsd from OSF since it installs stuff as root
2867    # by default.
2868    for ac_prog in ginstall scoinst install; do
2869      for ac_exec_ext in '' $ac_executable_extensions; do
2870        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2871          if test $ac_prog = install &&
2872            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873            # AIX install.  It has an incompatible calling convention.
2874            :
2875          elif test $ac_prog = install &&
2876            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877            # program-specific install script used by HP pwplus--don't use.
2878            :
2879          else
2880            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2881            break 3
2882          fi
2883        fi
2884      done
2885    done
2886    ;;
2887esac
2888done
2889
2890
2891fi
2892  if test "${ac_cv_path_install+set}" = set; then
2893    INSTALL=$ac_cv_path_install
2894  else
2895    # As a last resort, use the slow shell script.  We don't cache a
2896    # path for INSTALL within a source directory, because that will
2897    # break other packages using the cache if that directory is
2898    # removed, or if the path is relative.
2899    INSTALL=$ac_install_sh
2900  fi
2901fi
2902echo "$as_me:$LINENO: result: $INSTALL" >&5
2903echo "${ECHO_T}$INSTALL" >&6
2904
2905# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2906# It thinks the first close brace ends the variable substitution.
2907test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2908
2909test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2910
2911test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2912
2913echo "$as_me:$LINENO: checking whether ln -s works" >&5
2914echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2915LN_S=$as_ln_s
2916if test "$LN_S" = "ln -s"; then
2917  echo "$as_me:$LINENO: result: yes" >&5
2918echo "${ECHO_T}yes" >&6
2919else
2920  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2921echo "${ECHO_T}no, using $LN_S" >&6
2922fi
2923
2924# Check whether --enable-shared or --disable-shared was given.
2925if test "${enable_shared+set}" = set; then
2926  enableval="$enable_shared"
2927  p=${PACKAGE-default}
2928case $enableval in
2929yes) enable_shared=yes ;;
2930no) enable_shared=no ;;
2931*)
2932  enable_shared=no
2933  # Look at the argument we got.  We use all the common list separators.
2934  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2935  for pkg in $enableval; do
2936    if test "X$pkg" = "X$p"; then
2937      enable_shared=yes
2938    fi
2939  done
2940  IFS="$ac_save_ifs"
2941  ;;
2942esac
2943else
2944  enable_shared=yes
2945fi;
2946# Check whether --enable-static or --disable-static was given.
2947if test "${enable_static+set}" = set; then
2948  enableval="$enable_static"
2949  p=${PACKAGE-default}
2950case $enableval in
2951yes) enable_static=yes ;;
2952no) enable_static=no ;;
2953*)
2954  enable_static=no
2955  # Look at the argument we got.  We use all the common list separators.
2956  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2957  for pkg in $enableval; do
2958    if test "X$pkg" = "X$p"; then
2959      enable_static=yes
2960    fi
2961  done
2962  IFS="$ac_save_ifs"
2963  ;;
2964esac
2965else
2966  enable_static=yes
2967fi;
2968# Check whether --enable-fast-install or --disable-fast-install was given.
2969if test "${enable_fast_install+set}" = set; then
2970  enableval="$enable_fast_install"
2971  p=${PACKAGE-default}
2972case $enableval in
2973yes) enable_fast_install=yes ;;
2974no) enable_fast_install=no ;;
2975*)
2976  enable_fast_install=no
2977  # Look at the argument we got.  We use all the common list separators.
2978  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2979  for pkg in $enableval; do
2980    if test "X$pkg" = "X$p"; then
2981      enable_fast_install=yes
2982    fi
2983  done
2984  IFS="$ac_save_ifs"
2985  ;;
2986esac
2987else
2988  enable_fast_install=yes
2989fi;
2990# Make sure we can run config.sub.
2991$ac_config_sub sun4 >/dev/null 2>&1 ||
2992  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2993echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2994   { (exit 1); exit 1; }; }
2995
2996echo "$as_me:$LINENO: checking build system type" >&5
2997echo $ECHO_N "checking build system type... $ECHO_C" >&6
2998if test "${ac_cv_build+set}" = set; then
2999  echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001  ac_cv_build_alias=$build_alias
3002test -z "$ac_cv_build_alias" &&
3003  ac_cv_build_alias=`$ac_config_guess`
3004test -z "$ac_cv_build_alias" &&
3005  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3006echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3007   { (exit 1); exit 1; }; }
3008ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3009  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3010echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3011   { (exit 1); exit 1; }; }
3012
3013fi
3014echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3015echo "${ECHO_T}$ac_cv_build" >&6
3016build=$ac_cv_build
3017build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3018build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3019build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3020
3021
3022echo "$as_me:$LINENO: checking host system type" >&5
3023echo $ECHO_N "checking host system type... $ECHO_C" >&6
3024if test "${ac_cv_host+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  ac_cv_host_alias=$host_alias
3028test -z "$ac_cv_host_alias" &&
3029  ac_cv_host_alias=$ac_cv_build_alias
3030ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3031  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3032echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3033   { (exit 1); exit 1; }; }
3034
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3037echo "${ECHO_T}$ac_cv_host" >&6
3038host=$ac_cv_host
3039host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3040host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3041host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3042
3043
3044
3045# Check whether --with-gnu-ld or --without-gnu-ld was given.
3046if test "${with_gnu_ld+set}" = set; then
3047  withval="$with_gnu_ld"
3048  test "$withval" = no || with_gnu_ld=yes
3049else
3050  with_gnu_ld=no
3051fi;
3052ac_prog=ld
3053if test "$GCC" = yes; then
3054  # Check if gcc -print-prog-name=ld gives a path.
3055  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3056echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3057  case $host in
3058  *-*-mingw*)
3059    # gcc leaves a trailing carriage return which upsets mingw
3060    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3061  *)
3062    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3063  esac
3064  case $ac_prog in
3065    # Accept absolute paths.
3066    [\\/]* | [A-Za-z]:[\\/]*)
3067      re_direlt='/[^/][^/]*/\.\./'
3068      # Canonicalize the path of ld
3069      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3070      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3071	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3072      done
3073      test -z "$LD" && LD="$ac_prog"
3074      ;;
3075  "")
3076    # If it fails, then pretend we aren't using GCC.
3077    ac_prog=ld
3078    ;;
3079  *)
3080    # If it is relative, then search for the first ld in PATH.
3081    with_gnu_ld=unknown
3082    ;;
3083  esac
3084elif test "$with_gnu_ld" = yes; then
3085  echo "$as_me:$LINENO: checking for GNU ld" >&5
3086echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3087else
3088  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3089echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3090fi
3091if test "${lt_cv_path_LD+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  if test -z "$LD"; then
3095  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3096  for ac_dir in $PATH; do
3097    test -z "$ac_dir" && ac_dir=.
3098    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3099      lt_cv_path_LD="$ac_dir/$ac_prog"
3100      # Check to see if the program is GNU ld.  I'd rather use --version,
3101      # but apparently some GNU ld's only accept -v.
3102      # Break only if it was the GNU/non-GNU ld that we prefer.
3103      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3104	test "$with_gnu_ld" != no && break
3105      else
3106	test "$with_gnu_ld" != yes && break
3107      fi
3108    fi
3109  done
3110  IFS="$ac_save_ifs"
3111else
3112  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3113fi
3114fi
3115
3116LD="$lt_cv_path_LD"
3117if test -n "$LD"; then
3118  echo "$as_me:$LINENO: result: $LD" >&5
3119echo "${ECHO_T}$LD" >&6
3120else
3121  echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
3123fi
3124test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3125echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3126   { (exit 1); exit 1; }; }
3127echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3128echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3129if test "${lt_cv_prog_gnu_ld+set}" = set; then
3130  echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3133if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3134  lt_cv_prog_gnu_ld=yes
3135else
3136  lt_cv_prog_gnu_ld=no
3137fi
3138fi
3139echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3140echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3141with_gnu_ld=$lt_cv_prog_gnu_ld
3142
3143
3144echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3145echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3146if test "${lt_cv_ld_reload_flag+set}" = set; then
3147  echo $ECHO_N "(cached) $ECHO_C" >&6
3148else
3149  lt_cv_ld_reload_flag='-r'
3150fi
3151echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3152echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3153reload_flag=$lt_cv_ld_reload_flag
3154test -n "$reload_flag" && reload_flag=" $reload_flag"
3155
3156echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3157echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3158if test "${lt_cv_path_NM+set}" = set; then
3159  echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161  if test -n "$NM"; then
3162  # Let the user override the test.
3163  lt_cv_path_NM="$NM"
3164else
3165  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3166  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3167    test -z "$ac_dir" && ac_dir=.
3168    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3169    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3170      # Check to see if the nm accepts a BSD-compat flag.
3171      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3172      #   nm: unknown option "B" ignored
3173      # Tru64's nm complains that /dev/null is an invalid object file
3174      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3175	lt_cv_path_NM="$tmp_nm -B"
3176	break
3177      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3178	lt_cv_path_NM="$tmp_nm -p"
3179	break
3180      else
3181	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3182	continue # so that we can try to find one that supports BSD flags
3183      fi
3184    fi
3185  done
3186  IFS="$ac_save_ifs"
3187  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3188fi
3189fi
3190
3191NM="$lt_cv_path_NM"
3192echo "$as_me:$LINENO: result: $NM" >&5
3193echo "${ECHO_T}$NM" >&6
3194
3195echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3196echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3197if test "${lt_cv_deplibs_check_method+set}" = set; then
3198  echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200  lt_cv_file_magic_cmd='$MAGIC_CMD'
3201lt_cv_file_magic_test_file=
3202lt_cv_deplibs_check_method='unknown'
3203# Need to set the preceding variable on all platforms that support
3204# interlibrary dependencies.
3205# 'none' -- dependencies not supported.
3206# `unknown' -- same as none, but documents that we really don't know.
3207# 'pass_all' -- all dependencies passed with no checks.
3208# 'test_compile' -- check by making test program.
3209# 'file_magic [regex]' -- check by looking for files in library path
3210# which responds to the $file_magic_cmd with a given egrep regex.
3211# If you have `file' or equivalent on your system and you're not sure
3212# whether `pass_all' will *always* work, you probably want this one.
3213
3214case $host_os in
3215aix*)
3216  lt_cv_deplibs_check_method=pass_all
3217  ;;
3218
3219beos*)
3220  lt_cv_deplibs_check_method=pass_all
3221  ;;
3222
3223bsdi4*)
3224  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3225  lt_cv_file_magic_cmd='/usr/bin/file -L'
3226  lt_cv_file_magic_test_file=/shlib/libc.so
3227  ;;
3228
3229cygwin* | mingw* |pw32*)
3230  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3231  lt_cv_file_magic_cmd='$OBJDUMP -f'
3232  ;;
3233
3234darwin* | rhapsody*)
3235  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3236  lt_cv_file_magic_cmd='/usr/bin/file -L'
3237  case "$host_os" in
3238  rhapsody* | darwin1.012)
3239    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3240    ;;
3241  *) # Darwin 1.3 on
3242    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3243    ;;
3244  esac
3245  ;;
3246
3247freebsd* )
3248  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3249    case $host_cpu in
3250    i*86 )
3251      # Not sure whether the presence of OpenBSD here was a mistake.
3252      # Let's accept both of them until this is cleared up.
3253      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3254      lt_cv_file_magic_cmd=/usr/bin/file
3255      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3256      ;;
3257    esac
3258  else
3259    lt_cv_deplibs_check_method=pass_all
3260  fi
3261  ;;
3262
3263gnu*)
3264  lt_cv_deplibs_check_method=pass_all
3265  ;;
3266
3267hpux10.20*|hpux11*)
3268  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3269  lt_cv_file_magic_cmd=/usr/bin/file
3270  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3271  ;;
3272
3273irix5* | irix6*)
3274  case $host_os in
3275  irix5*)
3276    # this will be overridden with pass_all, but let us keep it just in case
3277    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3278    ;;
3279  *)
3280    case $LD in
3281    *-32|*"-32 ") libmagic=32-bit;;
3282    *-n32|*"-n32 ") libmagic=N32;;
3283    *-64|*"-64 ") libmagic=64-bit;;
3284    *) libmagic=never-match;;
3285    esac
3286    # this will be overridden with pass_all, but let us keep it just in case
3287    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3288    ;;
3289  esac
3290  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3291  lt_cv_deplibs_check_method=pass_all
3292  ;;
3293
3294# This must be Linux ELF.
3295linux-gnu*)
3296  case $host_cpu in
3297  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3298    lt_cv_deplibs_check_method=pass_all ;;
3299  *)
3300    # glibc up to 2.1.1 does not perform some relocations on ARM
3301    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3302  esac
3303  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3304  ;;
3305
3306netbsd*)
3307  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3308    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3309  else
3310    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3311  fi
3312  ;;
3313
3314newsos6)
3315  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3316  lt_cv_file_magic_cmd=/usr/bin/file
3317  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3318  ;;
3319
3320osf3* | osf4* | osf5*)
3321  # this will be overridden with pass_all, but let us keep it just in case
3322  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3323  lt_cv_file_magic_test_file=/shlib/libc.so
3324  lt_cv_deplibs_check_method=pass_all
3325  ;;
3326
3327sco3.2v5*)
3328  lt_cv_deplibs_check_method=pass_all
3329  ;;
3330
3331solaris*)
3332  lt_cv_deplibs_check_method=pass_all
3333  lt_cv_file_magic_test_file=/lib/libc.so
3334  ;;
3335
3336sysv5uw[78]* | sysv4*uw2*)
3337  lt_cv_deplibs_check_method=pass_all
3338  ;;
3339
3340sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3341  case $host_vendor in
3342  ncr)
3343    lt_cv_deplibs_check_method=pass_all
3344    ;;
3345  motorola)
3346    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3347    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3348    ;;
3349  esac
3350  ;;
3351esac
3352
3353fi
3354echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3355echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3356file_magic_cmd=$lt_cv_file_magic_cmd
3357deplibs_check_method=$lt_cv_deplibs_check_method
3358
3359
3360
3361
3362
3363# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3364
3365# Only perform the check for file, if the check method requires it
3366case $deplibs_check_method in
3367file_magic*)
3368  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3369    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3370echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3371if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3372  echo $ECHO_N "(cached) $ECHO_C" >&6
3373else
3374  case $MAGIC_CMD in
3375  /*)
3376  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3377  ;;
3378  ?:/*)
3379  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3380  ;;
3381  *)
3382  ac_save_MAGIC_CMD="$MAGIC_CMD"
3383  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3384  ac_dummy="/usr/bin:$PATH"
3385  for ac_dir in $ac_dummy; do
3386    test -z "$ac_dir" && ac_dir=.
3387    if test -f $ac_dir/${ac_tool_prefix}file; then
3388      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3389      if test -n "$file_magic_test_file"; then
3390	case $deplibs_check_method in
3391	"file_magic "*)
3392	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3393	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3394	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3395	    egrep "$file_magic_regex" > /dev/null; then
3396	    :
3397	  else
3398	    cat <<EOF 1>&2
3399
3400*** Warning: the command libtool uses to detect shared libraries,
3401*** $file_magic_cmd, produces output that libtool cannot recognize.
3402*** The result is that libtool may fail to recognize shared libraries
3403*** as such.  This will affect the creation of libtool libraries that
3404*** depend on shared libraries, but programs linked with such libtool
3405*** libraries will work regardless of this problem.  Nevertheless, you
3406*** may want to report the problem to your system manager and/or to
3407*** bug-libtool@gnu.org
3408
3409EOF
3410	  fi ;;
3411	esac
3412      fi
3413      break
3414    fi
3415  done
3416  IFS="$ac_save_ifs"
3417  MAGIC_CMD="$ac_save_MAGIC_CMD"
3418  ;;
3419esac
3420fi
3421
3422MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3423if test -n "$MAGIC_CMD"; then
3424  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3425echo "${ECHO_T}$MAGIC_CMD" >&6
3426else
3427  echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429fi
3430
3431if test -z "$lt_cv_path_MAGIC_CMD"; then
3432  if test -n "$ac_tool_prefix"; then
3433    echo "$as_me:$LINENO: checking for file" >&5
3434echo $ECHO_N "checking for file... $ECHO_C" >&6
3435if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3436  echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438  case $MAGIC_CMD in
3439  /*)
3440  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3441  ;;
3442  ?:/*)
3443  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3444  ;;
3445  *)
3446  ac_save_MAGIC_CMD="$MAGIC_CMD"
3447  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3448  ac_dummy="/usr/bin:$PATH"
3449  for ac_dir in $ac_dummy; do
3450    test -z "$ac_dir" && ac_dir=.
3451    if test -f $ac_dir/file; then
3452      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3453      if test -n "$file_magic_test_file"; then
3454	case $deplibs_check_method in
3455	"file_magic "*)
3456	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3457	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3458	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3459	    egrep "$file_magic_regex" > /dev/null; then
3460	    :
3461	  else
3462	    cat <<EOF 1>&2
3463
3464*** Warning: the command libtool uses to detect shared libraries,
3465*** $file_magic_cmd, produces output that libtool cannot recognize.
3466*** The result is that libtool may fail to recognize shared libraries
3467*** as such.  This will affect the creation of libtool libraries that
3468*** depend on shared libraries, but programs linked with such libtool
3469*** libraries will work regardless of this problem.  Nevertheless, you
3470*** may want to report the problem to your system manager and/or to
3471*** bug-libtool@gnu.org
3472
3473EOF
3474	  fi ;;
3475	esac
3476      fi
3477      break
3478    fi
3479  done
3480  IFS="$ac_save_ifs"
3481  MAGIC_CMD="$ac_save_MAGIC_CMD"
3482  ;;
3483esac
3484fi
3485
3486MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3487if test -n "$MAGIC_CMD"; then
3488  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3489echo "${ECHO_T}$MAGIC_CMD" >&6
3490else
3491  echo "$as_me:$LINENO: result: no" >&5
3492echo "${ECHO_T}no" >&6
3493fi
3494
3495  else
3496    MAGIC_CMD=:
3497  fi
3498fi
3499
3500  fi
3501  ;;
3502esac
3503
3504if test -n "$ac_tool_prefix"; then
3505  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3506set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3507echo "$as_me:$LINENO: checking for $ac_word" >&5
3508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509if test "${ac_cv_prog_RANLIB+set}" = set; then
3510  echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512  if test -n "$RANLIB"; then
3513  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518  IFS=$as_save_IFS
3519  test -z "$as_dir" && as_dir=.
3520  for ac_exec_ext in '' $ac_executable_extensions; do
3521  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524    break 2
3525  fi
3526done
3527done
3528
3529fi
3530fi
3531RANLIB=$ac_cv_prog_RANLIB
3532if test -n "$RANLIB"; then
3533  echo "$as_me:$LINENO: result: $RANLIB" >&5
3534echo "${ECHO_T}$RANLIB" >&6
3535else
3536  echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538fi
3539
3540fi
3541if test -z "$ac_cv_prog_RANLIB"; then
3542  ac_ct_RANLIB=$RANLIB
3543  # Extract the first word of "ranlib", so it can be a program name with args.
3544set dummy ranlib; ac_word=$2
3545echo "$as_me:$LINENO: checking for $ac_word" >&5
3546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3548  echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550  if test -n "$ac_ct_RANLIB"; then
3551  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3552else
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556  IFS=$as_save_IFS
3557  test -z "$as_dir" && as_dir=.
3558  for ac_exec_ext in '' $ac_executable_extensions; do
3559  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560    ac_cv_prog_ac_ct_RANLIB="ranlib"
3561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562    break 2
3563  fi
3564done
3565done
3566
3567  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3568fi
3569fi
3570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3571if test -n "$ac_ct_RANLIB"; then
3572  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3573echo "${ECHO_T}$ac_ct_RANLIB" >&6
3574else
3575  echo "$as_me:$LINENO: result: no" >&5
3576echo "${ECHO_T}no" >&6
3577fi
3578
3579  RANLIB=$ac_ct_RANLIB
3580else
3581  RANLIB="$ac_cv_prog_RANLIB"
3582fi
3583
3584if test -n "$ac_tool_prefix"; then
3585  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3586set dummy ${ac_tool_prefix}strip; ac_word=$2
3587echo "$as_me:$LINENO: checking for $ac_word" >&5
3588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589if test "${ac_cv_prog_STRIP+set}" = set; then
3590  echo $ECHO_N "(cached) $ECHO_C" >&6
3591else
3592  if test -n "$STRIP"; then
3593  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598  IFS=$as_save_IFS
3599  test -z "$as_dir" && as_dir=.
3600  for ac_exec_ext in '' $ac_executable_extensions; do
3601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604    break 2
3605  fi
3606done
3607done
3608
3609fi
3610fi
3611STRIP=$ac_cv_prog_STRIP
3612if test -n "$STRIP"; then
3613  echo "$as_me:$LINENO: result: $STRIP" >&5
3614echo "${ECHO_T}$STRIP" >&6
3615else
3616  echo "$as_me:$LINENO: result: no" >&5
3617echo "${ECHO_T}no" >&6
3618fi
3619
3620fi
3621if test -z "$ac_cv_prog_STRIP"; then
3622  ac_ct_STRIP=$STRIP
3623  # Extract the first word of "strip", so it can be a program name with args.
3624set dummy strip; ac_word=$2
3625echo "$as_me:$LINENO: checking for $ac_word" >&5
3626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3628  echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630  if test -n "$ac_ct_STRIP"; then
3631  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638  for ac_exec_ext in '' $ac_executable_extensions; do
3639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640    ac_cv_prog_ac_ct_STRIP="strip"
3641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645done
3646
3647  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3648fi
3649fi
3650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3651if test -n "$ac_ct_STRIP"; then
3652  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3653echo "${ECHO_T}$ac_ct_STRIP" >&6
3654else
3655  echo "$as_me:$LINENO: result: no" >&5
3656echo "${ECHO_T}no" >&6
3657fi
3658
3659  STRIP=$ac_ct_STRIP
3660else
3661  STRIP="$ac_cv_prog_STRIP"
3662fi
3663
3664
3665# Check for any special flags to pass to ltconfig.
3666libtool_flags="--cache-file=$cache_file"
3667test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3668test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3669test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3670test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3671test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3672
3673
3674# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3675if test "${enable_libtool_lock+set}" = set; then
3676  enableval="$enable_libtool_lock"
3677
3678fi;
3679test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3680test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3681
3682
3683# Check whether --with-pic or --without-pic was given.
3684if test "${with_pic+set}" = set; then
3685  withval="$with_pic"
3686  pic_mode="$withval"
3687else
3688  pic_mode=default
3689fi;
3690test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3691test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3692
3693# Some flags need to be propagated to the compiler or linker for good
3694# libtool support.
3695case $host in
3696*-*-irix6*)
3697  # Find out which ABI we are using.
3698  echo '#line 3698 "configure"' > conftest.$ac_ext
3699  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700  (eval $ac_compile) 2>&5
3701  ac_status=$?
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); }; then
3704    case `/usr/bin/file conftest.$ac_objext` in
3705    *32-bit*)
3706      LD="${LD-ld} -32"
3707      ;;
3708    *N32*)
3709      LD="${LD-ld} -n32"
3710      ;;
3711    *64-bit*)
3712      LD="${LD-ld} -64"
3713      ;;
3714    esac
3715  fi
3716  rm -rf conftest*
3717  ;;
3718
3719*-*-sco3.2v5*)
3720  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3721  SAVE_CFLAGS="$CFLAGS"
3722  CFLAGS="$CFLAGS -belf"
3723  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3724echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3725if test "${lt_cv_cc_needs_belf+set}" = set; then
3726  echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728
3729
3730     ac_ext=c
3731ac_cpp='$CPP $CPPFLAGS'
3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735
3736     cat >conftest.$ac_ext <<_ACEOF
3737#line $LINENO "configure"
3738/* confdefs.h.  */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h.  */
3743
3744int
3745main ()
3746{
3747
3748  ;
3749  return 0;
3750}
3751_ACEOF
3752rm -f conftest.$ac_objext conftest$ac_exeext
3753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754  (eval $ac_link) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); } &&
3758         { ac_try='test -s conftest$ac_exeext'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; }; then
3764  lt_cv_cc_needs_belf=yes
3765else
3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769lt_cv_cc_needs_belf=no
3770fi
3771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3772     ac_ext=c
3773ac_cpp='$CPP $CPPFLAGS'
3774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777
3778fi
3779echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3780echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3781  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3782    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3783    CFLAGS="$SAVE_CFLAGS"
3784  fi
3785  ;;
3786
3787
3788esac
3789
3790
3791# Save cache, so that ltconfig can load it
3792cat >confcache <<\_ACEOF
3793# This file is a shell script that caches the results of configure
3794# tests run on this system so they can be shared between configure
3795# scripts and configure runs, see configure's option --config-cache.
3796# It is not useful on other systems.  If it contains results you don't
3797# want to keep, you may remove or edit it.
3798#
3799# config.status only pays attention to the cache file if you give it
3800# the --recheck option to rerun configure.
3801#
3802# `ac_cv_env_foo' variables (set or unset) will be overridden when
3803# loading this file, other *unset* `ac_cv_foo' will be assigned the
3804# following values.
3805
3806_ACEOF
3807
3808# The following way of writing the cache mishandles newlines in values,
3809# but we know of no workaround that is simple, portable, and efficient.
3810# So, don't put newlines in cache variables' values.
3811# Ultrix sh set writes to stderr and can't be redirected directly,
3812# and sets the high bit in the cache file unless we assign to the vars.
3813{
3814  (set) 2>&1 |
3815    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3816    *ac_space=\ *)
3817      # `set' does not quote correctly, so add quotes (double-quote
3818      # substitution turns \\\\ into \\, and sed turns \\ into \).
3819      sed -n \
3820        "s/'/'\\\\''/g;
3821    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3822      ;;
3823    *)
3824      # `set' quotes correctly as required by POSIX, so do not add quotes.
3825      sed -n \
3826        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3827      ;;
3828    esac;
3829} |
3830  sed '
3831     t clear
3832     : clear
3833     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3834     t end
3835     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3836     : end' >>confcache
3837if diff $cache_file confcache >/dev/null 2>&1; then :; else
3838  if test -w $cache_file; then
3839    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3840    cat confcache >$cache_file
3841  else
3842    echo "not updating unwritable cache $cache_file"
3843  fi
3844fi
3845rm -f confcache
3846
3847# Actually configure libtool.  ac_aux_dir is where install-sh is found.
3848AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3849MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3850LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3851AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3852objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3853deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3854${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3855$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3856|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3857echo "$as_me: error: libtool configure failed" >&2;}
3858   { (exit 1); exit 1; }; }
3859
3860# Reload cache, that may have been modified by ltconfig
3861if test -r "$cache_file"; then
3862  # Some versions of bash will fail to source /dev/null (special
3863  # files actually), so we avoid doing that.
3864  if test -f "$cache_file"; then
3865    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3866echo "$as_me: loading cache $cache_file" >&6;}
3867    case $cache_file in
3868      [\\/]* | ?:[\\/]* ) . $cache_file;;
3869      *)                      . ./$cache_file;;
3870    esac
3871  fi
3872else
3873  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3874echo "$as_me: creating cache $cache_file" >&6;}
3875  >$cache_file
3876fi
3877
3878
3879# This can be used to rebuild libtool when needed
3880LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3881
3882# Always use our own libtool.
3883LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3884
3885# Redirect the config.log output again, so that the ltconfig log is not
3886# clobbered by the next message.
3887exec 5>>./config.log
3888
3889
3890
3891
3892
3893
3894
3895ac_ext=c
3896ac_cpp='$CPP $CPPFLAGS'
3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3901echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3902# On Suns, sometimes $CPP names a directory.
3903if test -n "$CPP" && test -d "$CPP"; then
3904  CPP=
3905fi
3906if test -z "$CPP"; then
3907  if test "${ac_cv_prog_CPP+set}" = set; then
3908  echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910      # Double quotes because CPP needs to be expanded
3911    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3912    do
3913      ac_preproc_ok=false
3914for ac_c_preproc_warn_flag in '' yes
3915do
3916  # Use a header file that comes with gcc, so configuring glibc
3917  # with a fresh cross-compiler works.
3918  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3919  # <limits.h> exists even on freestanding compilers.
3920  # On the NeXT, cc -E runs the code through the compiler's parser,
3921  # not just through cpp. "Syntax error" is here to catch this case.
3922  cat >conftest.$ac_ext <<_ACEOF
3923#line $LINENO "configure"
3924/* confdefs.h.  */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h.  */
3929#ifdef __STDC__
3930# include <limits.h>
3931#else
3932# include <assert.h>
3933#endif
3934                     Syntax error
3935_ACEOF
3936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3938  ac_status=$?
3939  grep -v '^ *+' conftest.er1 >conftest.err
3940  rm -f conftest.er1
3941  cat conftest.err >&5
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); } >/dev/null; then
3944  if test -s conftest.err; then
3945    ac_cpp_err=$ac_c_preproc_warn_flag
3946  else
3947    ac_cpp_err=
3948  fi
3949else
3950  ac_cpp_err=yes
3951fi
3952if test -z "$ac_cpp_err"; then
3953  :
3954else
3955  echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958  # Broken: fails on valid input.
3959continue
3960fi
3961rm -f conftest.err conftest.$ac_ext
3962
3963  # OK, works on sane cases.  Now check whether non-existent headers
3964  # can be detected and how.
3965  cat >conftest.$ac_ext <<_ACEOF
3966#line $LINENO "configure"
3967/* confdefs.h.  */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h.  */
3972#include <ac_nonexistent.h>
3973_ACEOF
3974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976  ac_status=$?
3977  grep -v '^ *+' conftest.er1 >conftest.err
3978  rm -f conftest.er1
3979  cat conftest.err >&5
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); } >/dev/null; then
3982  if test -s conftest.err; then
3983    ac_cpp_err=$ac_c_preproc_warn_flag
3984  else
3985    ac_cpp_err=
3986  fi
3987else
3988  ac_cpp_err=yes
3989fi
3990if test -z "$ac_cpp_err"; then
3991  # Broken: success on invalid input.
3992continue
3993else
3994  echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5
3996
3997  # Passes both tests.
3998ac_preproc_ok=:
3999break
4000fi
4001rm -f conftest.err conftest.$ac_ext
4002
4003done
4004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4005rm -f conftest.err conftest.$ac_ext
4006if $ac_preproc_ok; then
4007  break
4008fi
4009
4010    done
4011    ac_cv_prog_CPP=$CPP
4012
4013fi
4014  CPP=$ac_cv_prog_CPP
4015else
4016  ac_cv_prog_CPP=$CPP
4017fi
4018echo "$as_me:$LINENO: result: $CPP" >&5
4019echo "${ECHO_T}$CPP" >&6
4020ac_preproc_ok=false
4021for ac_c_preproc_warn_flag in '' yes
4022do
4023  # Use a header file that comes with gcc, so configuring glibc
4024  # with a fresh cross-compiler works.
4025  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026  # <limits.h> exists even on freestanding compilers.
4027  # On the NeXT, cc -E runs the code through the compiler's parser,
4028  # not just through cpp. "Syntax error" is here to catch this case.
4029  cat >conftest.$ac_ext <<_ACEOF
4030#line $LINENO "configure"
4031/* confdefs.h.  */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h.  */
4036#ifdef __STDC__
4037# include <limits.h>
4038#else
4039# include <assert.h>
4040#endif
4041                     Syntax error
4042_ACEOF
4043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045  ac_status=$?
4046  grep -v '^ *+' conftest.er1 >conftest.err
4047  rm -f conftest.er1
4048  cat conftest.err >&5
4049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050  (exit $ac_status); } >/dev/null; then
4051  if test -s conftest.err; then
4052    ac_cpp_err=$ac_c_preproc_warn_flag
4053  else
4054    ac_cpp_err=
4055  fi
4056else
4057  ac_cpp_err=yes
4058fi
4059if test -z "$ac_cpp_err"; then
4060  :
4061else
4062  echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065  # Broken: fails on valid input.
4066continue
4067fi
4068rm -f conftest.err conftest.$ac_ext
4069
4070  # OK, works on sane cases.  Now check whether non-existent headers
4071  # can be detected and how.
4072  cat >conftest.$ac_ext <<_ACEOF
4073#line $LINENO "configure"
4074/* confdefs.h.  */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h.  */
4079#include <ac_nonexistent.h>
4080_ACEOF
4081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083  ac_status=$?
4084  grep -v '^ *+' conftest.er1 >conftest.err
4085  rm -f conftest.er1
4086  cat conftest.err >&5
4087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088  (exit $ac_status); } >/dev/null; then
4089  if test -s conftest.err; then
4090    ac_cpp_err=$ac_c_preproc_warn_flag
4091  else
4092    ac_cpp_err=
4093  fi
4094else
4095  ac_cpp_err=yes
4096fi
4097if test -z "$ac_cpp_err"; then
4098  # Broken: success on invalid input.
4099continue
4100else
4101  echo "$as_me: failed program was:" >&5
4102sed 's/^/| /' conftest.$ac_ext >&5
4103
4104  # Passes both tests.
4105ac_preproc_ok=:
4106break
4107fi
4108rm -f conftest.err conftest.$ac_ext
4109
4110done
4111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112rm -f conftest.err conftest.$ac_ext
4113if $ac_preproc_ok; then
4114  :
4115else
4116  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4117See \`config.log' for more details." >&5
4118echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4119See \`config.log' for more details." >&2;}
4120   { (exit 1); exit 1; }; }
4121fi
4122
4123ac_ext=c
4124ac_cpp='$CPP $CPPFLAGS'
4125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
4129
4130echo "$as_me:$LINENO: checking for egrep" >&5
4131echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4132if test "${ac_cv_prog_egrep+set}" = set; then
4133  echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4136    then ac_cv_prog_egrep='grep -E'
4137    else ac_cv_prog_egrep='egrep'
4138    fi
4139fi
4140echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4141echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4142 EGREP=$ac_cv_prog_egrep
4143
4144
4145echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4146echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4147if test "${ac_cv_header_stdc+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  cat >conftest.$ac_ext <<_ACEOF
4151#line $LINENO "configure"
4152/* confdefs.h.  */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h.  */
4157#include <stdlib.h>
4158#include <stdarg.h>
4159#include <string.h>
4160#include <float.h>
4161
4162int
4163main ()
4164{
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170rm -f conftest.$ac_objext
4171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172  (eval $ac_compile) 2>&5
4173  ac_status=$?
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); } &&
4176         { ac_try='test -s conftest.$ac_objext'
4177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178  (eval $ac_try) 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; }; then
4182  ac_cv_header_stdc=yes
4183else
4184  echo "$as_me: failed program was:" >&5
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
4187ac_cv_header_stdc=no
4188fi
4189rm -f conftest.$ac_objext conftest.$ac_ext
4190
4191if test $ac_cv_header_stdc = yes; then
4192  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4193  cat >conftest.$ac_ext <<_ACEOF
4194#line $LINENO "configure"
4195/* confdefs.h.  */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
4199/* end confdefs.h.  */
4200#include <string.h>
4201
4202_ACEOF
4203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204  $EGREP "memchr" >/dev/null 2>&1; then
4205  :
4206else
4207  ac_cv_header_stdc=no
4208fi
4209rm -f conftest*
4210
4211fi
4212
4213if test $ac_cv_header_stdc = yes; then
4214  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4215  cat >conftest.$ac_ext <<_ACEOF
4216#line $LINENO "configure"
4217/* confdefs.h.  */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h.  */
4222#include <stdlib.h>
4223
4224_ACEOF
4225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226  $EGREP "free" >/dev/null 2>&1; then
4227  :
4228else
4229  ac_cv_header_stdc=no
4230fi
4231rm -f conftest*
4232
4233fi
4234
4235if test $ac_cv_header_stdc = yes; then
4236  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4237  if test "$cross_compiling" = yes; then
4238  :
4239else
4240  cat >conftest.$ac_ext <<_ACEOF
4241#line $LINENO "configure"
4242/* confdefs.h.  */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h.  */
4247#include <ctype.h>
4248#if ((' ' & 0x0FF) == 0x020)
4249# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4250# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4251#else
4252# define ISLOWER(c) \
4253                   (('a' <= (c) && (c) <= 'i') \
4254                     || ('j' <= (c) && (c) <= 'r') \
4255                     || ('s' <= (c) && (c) <= 'z'))
4256# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4257#endif
4258
4259#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4260int
4261main ()
4262{
4263  int i;
4264  for (i = 0; i < 256; i++)
4265    if (XOR (islower (i), ISLOWER (i))
4266        || toupper (i) != TOUPPER (i))
4267      exit(2);
4268  exit (0);
4269}
4270_ACEOF
4271rm -f conftest$ac_exeext
4272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273  (eval $ac_link) 2>&5
4274  ac_status=$?
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278  (eval $ac_try) 2>&5
4279  ac_status=$?
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); }; }; then
4282  :
4283else
4284  echo "$as_me: program exited with status $ac_status" >&5
4285echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288( exit $ac_status )
4289ac_cv_header_stdc=no
4290fi
4291rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4292fi
4293fi
4294fi
4295echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4296echo "${ECHO_T}$ac_cv_header_stdc" >&6
4297if test $ac_cv_header_stdc = yes; then
4298
4299cat >>confdefs.h <<\_ACEOF
4300#define STDC_HEADERS 1
4301_ACEOF
4302
4303fi
4304
4305# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316                  inttypes.h stdint.h unistd.h
4317do
4318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319echo "$as_me:$LINENO: checking for $ac_header" >&5
4320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4321if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324  cat >conftest.$ac_ext <<_ACEOF
4325#line $LINENO "configure"
4326/* confdefs.h.  */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
4330/* end confdefs.h.  */
4331$ac_includes_default
4332
4333#include <$ac_header>
4334_ACEOF
4335rm -f conftest.$ac_objext
4336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337  (eval $ac_compile) 2>&5
4338  ac_status=$?
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); } &&
4341         { ac_try='test -s conftest.$ac_objext'
4342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343  (eval $ac_try) 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }; }; then
4347  eval "$as_ac_Header=yes"
4348else
4349  echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352eval "$as_ac_Header=no"
4353fi
4354rm -f conftest.$ac_objext conftest.$ac_ext
4355fi
4356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4358if test `eval echo '${'$as_ac_Header'}'` = yes; then
4359  cat >>confdefs.h <<_ACEOF
4360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361_ACEOF
4362
4363fi
4364
4365done
4366
4367
4368echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4369echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
4370if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4371  echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373  cat >conftest.$ac_ext <<_ACEOF
4374#line $LINENO "configure"
4375/* confdefs.h.  */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h.  */
4380#include <sys/types.h>
4381int
4382main ()
4383{
4384return makedev(0, 0);
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389rm -f conftest.$ac_objext conftest$ac_exeext
4390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4391  (eval $ac_link) 2>&5
4392  ac_status=$?
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); } &&
4395         { ac_try='test -s conftest$ac_exeext'
4396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397  (eval $ac_try) 2>&5
4398  ac_status=$?
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); }; }; then
4401  ac_cv_header_sys_types_h_makedev=yes
4402else
4403  echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406ac_cv_header_sys_types_h_makedev=no
4407fi
4408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4409
4410fi
4411echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4412echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
4413
4414if test $ac_cv_header_sys_types_h_makedev = no; then
4415if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4416  echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4417echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4418if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4419  echo $ECHO_N "(cached) $ECHO_C" >&6
4420fi
4421echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4422echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4423else
4424  # Is the header compilable?
4425echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4426echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
4427cat >conftest.$ac_ext <<_ACEOF
4428#line $LINENO "configure"
4429/* confdefs.h.  */
4430_ACEOF
4431cat confdefs.h >>conftest.$ac_ext
4432cat >>conftest.$ac_ext <<_ACEOF
4433/* end confdefs.h.  */
4434$ac_includes_default
4435#include <sys/mkdev.h>
4436_ACEOF
4437rm -f conftest.$ac_objext
4438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439  (eval $ac_compile) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); } &&
4443         { ac_try='test -s conftest.$ac_objext'
4444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445  (eval $ac_try) 2>&5
4446  ac_status=$?
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); }; }; then
4449  ac_header_compiler=yes
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454ac_header_compiler=no
4455fi
4456rm -f conftest.$ac_objext conftest.$ac_ext
4457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4458echo "${ECHO_T}$ac_header_compiler" >&6
4459
4460# Is the header present?
4461echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4462echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
4463cat >conftest.$ac_ext <<_ACEOF
4464#line $LINENO "configure"
4465/* confdefs.h.  */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h.  */
4470#include <sys/mkdev.h>
4471_ACEOF
4472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4473  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4474  ac_status=$?
4475  grep -v '^ *+' conftest.er1 >conftest.err
4476  rm -f conftest.er1
4477  cat conftest.err >&5
4478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479  (exit $ac_status); } >/dev/null; then
4480  if test -s conftest.err; then
4481    ac_cpp_err=$ac_c_preproc_warn_flag
4482  else
4483    ac_cpp_err=
4484  fi
4485else
4486  ac_cpp_err=yes
4487fi
4488if test -z "$ac_cpp_err"; then
4489  ac_header_preproc=yes
4490else
4491  echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
4494  ac_header_preproc=no
4495fi
4496rm -f conftest.err conftest.$ac_ext
4497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4498echo "${ECHO_T}$ac_header_preproc" >&6
4499
4500# So?  What about this header?
4501case $ac_header_compiler:$ac_header_preproc in
4502  yes:no )
4503    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4504echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4505    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4506echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4507    (
4508      cat <<\_ASBOX
4509## ------------------------------------ ##
4510## Report this to bug-autoconf@gnu.org. ##
4511## ------------------------------------ ##
4512_ASBOX
4513    ) |
4514      sed "s/^/$as_me: WARNING:     /" >&2
4515    ;;
4516  no:yes )
4517    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4518echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4519    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4520echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4521    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4522echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4523    (
4524      cat <<\_ASBOX
4525## ------------------------------------ ##
4526## Report this to bug-autoconf@gnu.org. ##
4527## ------------------------------------ ##
4528_ASBOX
4529    ) |
4530      sed "s/^/$as_me: WARNING:     /" >&2
4531    ;;
4532esac
4533echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4534echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
4535if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4536  echo $ECHO_N "(cached) $ECHO_C" >&6
4537else
4538  ac_cv_header_sys_mkdev_h=$ac_header_preproc
4539fi
4540echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4541echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
4542
4543fi
4544if test $ac_cv_header_sys_mkdev_h = yes; then
4545
4546cat >>confdefs.h <<\_ACEOF
4547#define MAJOR_IN_MKDEV 1
4548_ACEOF
4549
4550fi
4551
4552
4553
4554  if test $ac_cv_header_sys_mkdev_h = no; then
4555    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4556  echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4557echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4558if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4559  echo $ECHO_N "(cached) $ECHO_C" >&6
4560fi
4561echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4562echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4563else
4564  # Is the header compilable?
4565echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4566echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
4567cat >conftest.$ac_ext <<_ACEOF
4568#line $LINENO "configure"
4569/* confdefs.h.  */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h.  */
4574$ac_includes_default
4575#include <sys/sysmacros.h>
4576_ACEOF
4577rm -f conftest.$ac_objext
4578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579  (eval $ac_compile) 2>&5
4580  ac_status=$?
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); } &&
4583         { ac_try='test -s conftest.$ac_objext'
4584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585  (eval $ac_try) 2>&5
4586  ac_status=$?
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); }; }; then
4589  ac_header_compiler=yes
4590else
4591  echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594ac_header_compiler=no
4595fi
4596rm -f conftest.$ac_objext conftest.$ac_ext
4597echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4598echo "${ECHO_T}$ac_header_compiler" >&6
4599
4600# Is the header present?
4601echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4602echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
4603cat >conftest.$ac_ext <<_ACEOF
4604#line $LINENO "configure"
4605/* confdefs.h.  */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h.  */
4610#include <sys/sysmacros.h>
4611_ACEOF
4612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4614  ac_status=$?
4615  grep -v '^ *+' conftest.er1 >conftest.err
4616  rm -f conftest.er1
4617  cat conftest.err >&5
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); } >/dev/null; then
4620  if test -s conftest.err; then
4621    ac_cpp_err=$ac_c_preproc_warn_flag
4622  else
4623    ac_cpp_err=
4624  fi
4625else
4626  ac_cpp_err=yes
4627fi
4628if test -z "$ac_cpp_err"; then
4629  ac_header_preproc=yes
4630else
4631  echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
4633
4634  ac_header_preproc=no
4635fi
4636rm -f conftest.err conftest.$ac_ext
4637echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4638echo "${ECHO_T}$ac_header_preproc" >&6
4639
4640# So?  What about this header?
4641case $ac_header_compiler:$ac_header_preproc in
4642  yes:no )
4643    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4644echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4645    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4646echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4647    (
4648      cat <<\_ASBOX
4649## ------------------------------------ ##
4650## Report this to bug-autoconf@gnu.org. ##
4651## ------------------------------------ ##
4652_ASBOX
4653    ) |
4654      sed "s/^/$as_me: WARNING:     /" >&2
4655    ;;
4656  no:yes )
4657    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4658echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4659    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4660echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4661    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4662echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4663    (
4664      cat <<\_ASBOX
4665## ------------------------------------ ##
4666## Report this to bug-autoconf@gnu.org. ##
4667## ------------------------------------ ##
4668_ASBOX
4669    ) |
4670      sed "s/^/$as_me: WARNING:     /" >&2
4671    ;;
4672esac
4673echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4674echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
4675if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4676  echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4679fi
4680echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4681echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
4682
4683fi
4684if test $ac_cv_header_sys_sysmacros_h = yes; then
4685
4686cat >>confdefs.h <<\_ACEOF
4687#define MAJOR_IN_SYSMACROS 1
4688_ACEOF
4689
4690fi
4691
4692
4693  fi
4694fi
4695
4696echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4697echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4698if test "${ac_cv_header_sys_wait_h+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  cat >conftest.$ac_ext <<_ACEOF
4702#line $LINENO "configure"
4703/* confdefs.h.  */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h.  */
4708#include <sys/types.h>
4709#include <sys/wait.h>
4710#ifndef WEXITSTATUS
4711# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4712#endif
4713#ifndef WIFEXITED
4714# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4715#endif
4716
4717int
4718main ()
4719{
4720  int s;
4721  wait (&s);
4722  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4723  ;
4724  return 0;
4725}
4726_ACEOF
4727rm -f conftest.$ac_objext
4728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729  (eval $ac_compile) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } &&
4733         { ac_try='test -s conftest.$ac_objext'
4734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735  (eval $ac_try) 2>&5
4736  ac_status=$?
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); }; }; then
4739  ac_cv_header_sys_wait_h=yes
4740else
4741  echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
4743
4744ac_cv_header_sys_wait_h=no
4745fi
4746rm -f conftest.$ac_objext conftest.$ac_ext
4747fi
4748echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4749echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4750if test $ac_cv_header_sys_wait_h = yes; then
4751
4752cat >>confdefs.h <<\_ACEOF
4753#define HAVE_SYS_WAIT_H 1
4754_ACEOF
4755
4756fi
4757
4758
4759for ac_header in stdint.h
4760do
4761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4762if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763  echo "$as_me:$LINENO: checking for $ac_header" >&5
4764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4765if eval "test \"\${$as_ac_Header+set}\" = set"; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767fi
4768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4770else
4771  # Is the header compilable?
4772echo "$as_me:$LINENO: checking $ac_header usability" >&5
4773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4774cat >conftest.$ac_ext <<_ACEOF
4775#line $LINENO "configure"
4776/* confdefs.h.  */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h.  */
4781$ac_includes_default
4782#include <$ac_header>
4783_ACEOF
4784rm -f conftest.$ac_objext
4785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786  (eval $ac_compile) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); } &&
4790         { ac_try='test -s conftest.$ac_objext'
4791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792  (eval $ac_try) 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); }; }; then
4796  ac_header_compiler=yes
4797else
4798  echo "$as_me: failed program was:" >&5
4799sed 's/^/| /' conftest.$ac_ext >&5
4800
4801ac_header_compiler=no
4802fi
4803rm -f conftest.$ac_objext conftest.$ac_ext
4804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4805echo "${ECHO_T}$ac_header_compiler" >&6
4806
4807# Is the header present?
4808echo "$as_me:$LINENO: checking $ac_header presence" >&5
4809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4810cat >conftest.$ac_ext <<_ACEOF
4811#line $LINENO "configure"
4812/* confdefs.h.  */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h.  */
4817#include <$ac_header>
4818_ACEOF
4819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4820  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4821  ac_status=$?
4822  grep -v '^ *+' conftest.er1 >conftest.err
4823  rm -f conftest.er1
4824  cat conftest.err >&5
4825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826  (exit $ac_status); } >/dev/null; then
4827  if test -s conftest.err; then
4828    ac_cpp_err=$ac_c_preproc_warn_flag
4829  else
4830    ac_cpp_err=
4831  fi
4832else
4833  ac_cpp_err=yes
4834fi
4835if test -z "$ac_cpp_err"; then
4836  ac_header_preproc=yes
4837else
4838  echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841  ac_header_preproc=no
4842fi
4843rm -f conftest.err conftest.$ac_ext
4844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4845echo "${ECHO_T}$ac_header_preproc" >&6
4846
4847# So?  What about this header?
4848case $ac_header_compiler:$ac_header_preproc in
4849  yes:no )
4850    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4852    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4854    (
4855      cat <<\_ASBOX
4856## ------------------------------------ ##
4857## Report this to bug-autoconf@gnu.org. ##
4858## ------------------------------------ ##
4859_ASBOX
4860    ) |
4861      sed "s/^/$as_me: WARNING:     /" >&2
4862    ;;
4863  no:yes )
4864    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4866    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4870    (
4871      cat <<\_ASBOX
4872## ------------------------------------ ##
4873## Report this to bug-autoconf@gnu.org. ##
4874## ------------------------------------ ##
4875_ASBOX
4876    ) |
4877      sed "s/^/$as_me: WARNING:     /" >&2
4878    ;;
4879esac
4880echo "$as_me:$LINENO: checking for $ac_header" >&5
4881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4882if eval "test \"\${$as_ac_Header+set}\" = set"; then
4883  echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885  eval "$as_ac_Header=$ac_header_preproc"
4886fi
4887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4889
4890fi
4891if test `eval echo '${'$as_ac_Header'}'` = yes; then
4892  cat >>confdefs.h <<_ACEOF
4893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4894_ACEOF
4895
4896fi
4897
4898done
4899
4900
4901
4902for ac_header in fcntl.h locale.h
4903do
4904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4905if eval "test \"\${$as_ac_Header+set}\" = set"; then
4906  echo "$as_me:$LINENO: checking for $ac_header" >&5
4907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4908if eval "test \"\${$as_ac_Header+set}\" = set"; then
4909  echo $ECHO_N "(cached) $ECHO_C" >&6
4910fi
4911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4913else
4914  # Is the header compilable?
4915echo "$as_me:$LINENO: checking $ac_header usability" >&5
4916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4917cat >conftest.$ac_ext <<_ACEOF
4918#line $LINENO "configure"
4919/* confdefs.h.  */
4920_ACEOF
4921cat confdefs.h >>conftest.$ac_ext
4922cat >>conftest.$ac_ext <<_ACEOF
4923/* end confdefs.h.  */
4924$ac_includes_default
4925#include <$ac_header>
4926_ACEOF
4927rm -f conftest.$ac_objext
4928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929  (eval $ac_compile) 2>&5
4930  ac_status=$?
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); } &&
4933         { ac_try='test -s conftest.$ac_objext'
4934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935  (eval $ac_try) 2>&5
4936  ac_status=$?
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); }; }; then
4939  ac_header_compiler=yes
4940else
4941  echo "$as_me: failed program was:" >&5
4942sed 's/^/| /' conftest.$ac_ext >&5
4943
4944ac_header_compiler=no
4945fi
4946rm -f conftest.$ac_objext conftest.$ac_ext
4947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4948echo "${ECHO_T}$ac_header_compiler" >&6
4949
4950# Is the header present?
4951echo "$as_me:$LINENO: checking $ac_header presence" >&5
4952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4953cat >conftest.$ac_ext <<_ACEOF
4954#line $LINENO "configure"
4955/* confdefs.h.  */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h.  */
4960#include <$ac_header>
4961_ACEOF
4962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4963  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4964  ac_status=$?
4965  grep -v '^ *+' conftest.er1 >conftest.err
4966  rm -f conftest.er1
4967  cat conftest.err >&5
4968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969  (exit $ac_status); } >/dev/null; then
4970  if test -s conftest.err; then
4971    ac_cpp_err=$ac_c_preproc_warn_flag
4972  else
4973    ac_cpp_err=
4974  fi
4975else
4976  ac_cpp_err=yes
4977fi
4978if test -z "$ac_cpp_err"; then
4979  ac_header_preproc=yes
4980else
4981  echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984  ac_header_preproc=no
4985fi
4986rm -f conftest.err conftest.$ac_ext
4987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4988echo "${ECHO_T}$ac_header_preproc" >&6
4989
4990# So?  What about this header?
4991case $ac_header_compiler:$ac_header_preproc in
4992  yes:no )
4993    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4995    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4997    (
4998      cat <<\_ASBOX
4999## ------------------------------------ ##
5000## Report this to bug-autoconf@gnu.org. ##
5001## ------------------------------------ ##
5002_ASBOX
5003    ) |
5004      sed "s/^/$as_me: WARNING:     /" >&2
5005    ;;
5006  no:yes )
5007    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5009    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5013    (
5014      cat <<\_ASBOX
5015## ------------------------------------ ##
5016## Report this to bug-autoconf@gnu.org. ##
5017## ------------------------------------ ##
5018_ASBOX
5019    ) |
5020      sed "s/^/$as_me: WARNING:     /" >&2
5021    ;;
5022esac
5023echo "$as_me:$LINENO: checking for $ac_header" >&5
5024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5025if eval "test \"\${$as_ac_Header+set}\" = set"; then
5026  echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028  eval "$as_ac_Header=$ac_header_preproc"
5029fi
5030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5032
5033fi
5034if test `eval echo '${'$as_ac_Header'}'` = yes; then
5035  cat >>confdefs.h <<_ACEOF
5036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5037_ACEOF
5038
5039fi
5040
5041done
5042
5043
5044
5045
5046for ac_header in sys/mman.h sys/stat.h sys/types.h
5047do
5048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050  echo "$as_me:$LINENO: checking for $ac_header" >&5
5051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5052if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053  echo $ECHO_N "(cached) $ECHO_C" >&6
5054fi
5055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5057else
5058  # Is the header compilable?
5059echo "$as_me:$LINENO: checking $ac_header usability" >&5
5060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5061cat >conftest.$ac_ext <<_ACEOF
5062#line $LINENO "configure"
5063/* confdefs.h.  */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h.  */
5068$ac_includes_default
5069#include <$ac_header>
5070_ACEOF
5071rm -f conftest.$ac_objext
5072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073  (eval $ac_compile) 2>&5
5074  ac_status=$?
5075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076  (exit $ac_status); } &&
5077         { ac_try='test -s conftest.$ac_objext'
5078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079  (eval $ac_try) 2>&5
5080  ac_status=$?
5081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); }; }; then
5083  ac_header_compiler=yes
5084else
5085  echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088ac_header_compiler=no
5089fi
5090rm -f conftest.$ac_objext conftest.$ac_ext
5091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092echo "${ECHO_T}$ac_header_compiler" >&6
5093
5094# Is the header present?
5095echo "$as_me:$LINENO: checking $ac_header presence" >&5
5096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5097cat >conftest.$ac_ext <<_ACEOF
5098#line $LINENO "configure"
5099/* confdefs.h.  */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h.  */
5104#include <$ac_header>
5105_ACEOF
5106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5107  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108  ac_status=$?
5109  grep -v '^ *+' conftest.er1 >conftest.err
5110  rm -f conftest.er1
5111  cat conftest.err >&5
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); } >/dev/null; then
5114  if test -s conftest.err; then
5115    ac_cpp_err=$ac_c_preproc_warn_flag
5116  else
5117    ac_cpp_err=
5118  fi
5119else
5120  ac_cpp_err=yes
5121fi
5122if test -z "$ac_cpp_err"; then
5123  ac_header_preproc=yes
5124else
5125  echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128  ac_header_preproc=no
5129fi
5130rm -f conftest.err conftest.$ac_ext
5131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5132echo "${ECHO_T}$ac_header_preproc" >&6
5133
5134# So?  What about this header?
5135case $ac_header_compiler:$ac_header_preproc in
5136  yes:no )
5137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5141    (
5142      cat <<\_ASBOX
5143## ------------------------------------ ##
5144## Report this to bug-autoconf@gnu.org. ##
5145## ------------------------------------ ##
5146_ASBOX
5147    ) |
5148      sed "s/^/$as_me: WARNING:     /" >&2
5149    ;;
5150  no:yes )
5151    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5157    (
5158      cat <<\_ASBOX
5159## ------------------------------------ ##
5160## Report this to bug-autoconf@gnu.org. ##
5161## ------------------------------------ ##
5162_ASBOX
5163    ) |
5164      sed "s/^/$as_me: WARNING:     /" >&2
5165    ;;
5166esac
5167echo "$as_me:$LINENO: checking for $ac_header" >&5
5168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5169if eval "test \"\${$as_ac_Header+set}\" = set"; then
5170  echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172  eval "$as_ac_Header=$ac_header_preproc"
5173fi
5174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5176
5177fi
5178if test `eval echo '${'$as_ac_Header'}'` = yes; then
5179  cat >>confdefs.h <<_ACEOF
5180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5181_ACEOF
5182
5183fi
5184
5185done
5186
5187
5188
5189for ac_header in stdint.h inttypes.h
5190do
5191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5192if eval "test \"\${$as_ac_Header+set}\" = set"; then
5193  echo "$as_me:$LINENO: checking for $ac_header" >&5
5194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5195if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196  echo $ECHO_N "(cached) $ECHO_C" >&6
5197fi
5198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5200else
5201  # Is the header compilable?
5202echo "$as_me:$LINENO: checking $ac_header usability" >&5
5203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5204cat >conftest.$ac_ext <<_ACEOF
5205#line $LINENO "configure"
5206/* confdefs.h.  */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h.  */
5211$ac_includes_default
5212#include <$ac_header>
5213_ACEOF
5214rm -f conftest.$ac_objext
5215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5216  (eval $ac_compile) 2>&5
5217  ac_status=$?
5218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219  (exit $ac_status); } &&
5220         { ac_try='test -s conftest.$ac_objext'
5221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222  (eval $ac_try) 2>&5
5223  ac_status=$?
5224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225  (exit $ac_status); }; }; then
5226  ac_header_compiler=yes
5227else
5228  echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231ac_header_compiler=no
5232fi
5233rm -f conftest.$ac_objext conftest.$ac_ext
5234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5235echo "${ECHO_T}$ac_header_compiler" >&6
5236
5237# Is the header present?
5238echo "$as_me:$LINENO: checking $ac_header presence" >&5
5239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5240cat >conftest.$ac_ext <<_ACEOF
5241#line $LINENO "configure"
5242/* confdefs.h.  */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h.  */
5247#include <$ac_header>
5248_ACEOF
5249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5250  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5251  ac_status=$?
5252  grep -v '^ *+' conftest.er1 >conftest.err
5253  rm -f conftest.er1
5254  cat conftest.err >&5
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); } >/dev/null; then
5257  if test -s conftest.err; then
5258    ac_cpp_err=$ac_c_preproc_warn_flag
5259  else
5260    ac_cpp_err=
5261  fi
5262else
5263  ac_cpp_err=yes
5264fi
5265if test -z "$ac_cpp_err"; then
5266  ac_header_preproc=yes
5267else
5268  echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271  ac_header_preproc=no
5272fi
5273rm -f conftest.err conftest.$ac_ext
5274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5275echo "${ECHO_T}$ac_header_preproc" >&6
5276
5277# So?  What about this header?
5278case $ac_header_compiler:$ac_header_preproc in
5279  yes:no )
5280    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5282    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5284    (
5285      cat <<\_ASBOX
5286## ------------------------------------ ##
5287## Report this to bug-autoconf@gnu.org. ##
5288## ------------------------------------ ##
5289_ASBOX
5290    ) |
5291      sed "s/^/$as_me: WARNING:     /" >&2
5292    ;;
5293  no:yes )
5294    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5296    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5298    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5300    (
5301      cat <<\_ASBOX
5302## ------------------------------------ ##
5303## Report this to bug-autoconf@gnu.org. ##
5304## ------------------------------------ ##
5305_ASBOX
5306    ) |
5307      sed "s/^/$as_me: WARNING:     /" >&2
5308    ;;
5309esac
5310echo "$as_me:$LINENO: checking for $ac_header" >&5
5311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5312if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313  echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315  eval "$as_ac_Header=$ac_header_preproc"
5316fi
5317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5319
5320fi
5321if test `eval echo '${'$as_ac_Header'}'` = yes; then
5322  cat >>confdefs.h <<_ACEOF
5323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5324_ACEOF
5325
5326fi
5327
5328done
5329
5330
5331for ac_header in unistd.h
5332do
5333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5334if eval "test \"\${$as_ac_Header+set}\" = set"; then
5335  echo "$as_me:$LINENO: checking for $ac_header" >&5
5336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5337if eval "test \"\${$as_ac_Header+set}\" = set"; then
5338  echo $ECHO_N "(cached) $ECHO_C" >&6
5339fi
5340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5342else
5343  # Is the header compilable?
5344echo "$as_me:$LINENO: checking $ac_header usability" >&5
5345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5346cat >conftest.$ac_ext <<_ACEOF
5347#line $LINENO "configure"
5348/* confdefs.h.  */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h.  */
5353$ac_includes_default
5354#include <$ac_header>
5355_ACEOF
5356rm -f conftest.$ac_objext
5357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358  (eval $ac_compile) 2>&5
5359  ac_status=$?
5360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361  (exit $ac_status); } &&
5362         { ac_try='test -s conftest.$ac_objext'
5363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364  (eval $ac_try) 2>&5
5365  ac_status=$?
5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367  (exit $ac_status); }; }; then
5368  ac_header_compiler=yes
5369else
5370  echo "$as_me: failed program was:" >&5
5371sed 's/^/| /' conftest.$ac_ext >&5
5372
5373ac_header_compiler=no
5374fi
5375rm -f conftest.$ac_objext conftest.$ac_ext
5376echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5377echo "${ECHO_T}$ac_header_compiler" >&6
5378
5379# Is the header present?
5380echo "$as_me:$LINENO: checking $ac_header presence" >&5
5381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5382cat >conftest.$ac_ext <<_ACEOF
5383#line $LINENO "configure"
5384/* confdefs.h.  */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h.  */
5389#include <$ac_header>
5390_ACEOF
5391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5392  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5393  ac_status=$?
5394  grep -v '^ *+' conftest.er1 >conftest.err
5395  rm -f conftest.er1
5396  cat conftest.err >&5
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); } >/dev/null; then
5399  if test -s conftest.err; then
5400    ac_cpp_err=$ac_c_preproc_warn_flag
5401  else
5402    ac_cpp_err=
5403  fi
5404else
5405  ac_cpp_err=yes
5406fi
5407if test -z "$ac_cpp_err"; then
5408  ac_header_preproc=yes
5409else
5410  echo "$as_me: failed program was:" >&5
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
5413  ac_header_preproc=no
5414fi
5415rm -f conftest.err conftest.$ac_ext
5416echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5417echo "${ECHO_T}$ac_header_preproc" >&6
5418
5419# So?  What about this header?
5420case $ac_header_compiler:$ac_header_preproc in
5421  yes:no )
5422    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5424    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5426    (
5427      cat <<\_ASBOX
5428## ------------------------------------ ##
5429## Report this to bug-autoconf@gnu.org. ##
5430## ------------------------------------ ##
5431_ASBOX
5432    ) |
5433      sed "s/^/$as_me: WARNING:     /" >&2
5434    ;;
5435  no:yes )
5436    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5438    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5440    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5442    (
5443      cat <<\_ASBOX
5444## ------------------------------------ ##
5445## Report this to bug-autoconf@gnu.org. ##
5446## ------------------------------------ ##
5447_ASBOX
5448    ) |
5449      sed "s/^/$as_me: WARNING:     /" >&2
5450    ;;
5451esac
5452echo "$as_me:$LINENO: checking for $ac_header" >&5
5453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5454if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
5457  eval "$as_ac_Header=$ac_header_preproc"
5458fi
5459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5461
5462fi
5463if test `eval echo '${'$as_ac_Header'}'` = yes; then
5464  cat >>confdefs.h <<_ACEOF
5465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466_ACEOF
5467
5468fi
5469
5470done
5471
5472
5473for ac_header in getopt.h
5474do
5475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5476if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477  echo "$as_me:$LINENO: checking for $ac_header" >&5
5478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5479if eval "test \"\${$as_ac_Header+set}\" = set"; then
5480  echo $ECHO_N "(cached) $ECHO_C" >&6
5481fi
5482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5484else
5485  # Is the header compilable?
5486echo "$as_me:$LINENO: checking $ac_header usability" >&5
5487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5488cat >conftest.$ac_ext <<_ACEOF
5489#line $LINENO "configure"
5490/* confdefs.h.  */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h.  */
5495$ac_includes_default
5496#include <$ac_header>
5497_ACEOF
5498rm -f conftest.$ac_objext
5499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500  (eval $ac_compile) 2>&5
5501  ac_status=$?
5502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); } &&
5504         { ac_try='test -s conftest.$ac_objext'
5505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506  (eval $ac_try) 2>&5
5507  ac_status=$?
5508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509  (exit $ac_status); }; }; then
5510  ac_header_compiler=yes
5511else
5512  echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515ac_header_compiler=no
5516fi
5517rm -f conftest.$ac_objext conftest.$ac_ext
5518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5519echo "${ECHO_T}$ac_header_compiler" >&6
5520
5521# Is the header present?
5522echo "$as_me:$LINENO: checking $ac_header presence" >&5
5523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5524cat >conftest.$ac_ext <<_ACEOF
5525#line $LINENO "configure"
5526/* confdefs.h.  */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h.  */
5531#include <$ac_header>
5532_ACEOF
5533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5534  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5535  ac_status=$?
5536  grep -v '^ *+' conftest.er1 >conftest.err
5537  rm -f conftest.er1
5538  cat conftest.err >&5
5539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540  (exit $ac_status); } >/dev/null; then
5541  if test -s conftest.err; then
5542    ac_cpp_err=$ac_c_preproc_warn_flag
5543  else
5544    ac_cpp_err=
5545  fi
5546else
5547  ac_cpp_err=yes
5548fi
5549if test -z "$ac_cpp_err"; then
5550  ac_header_preproc=yes
5551else
5552  echo "$as_me: failed program was:" >&5
5553sed 's/^/| /' conftest.$ac_ext >&5
5554
5555  ac_header_preproc=no
5556fi
5557rm -f conftest.err conftest.$ac_ext
5558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5559echo "${ECHO_T}$ac_header_preproc" >&6
5560
5561# So?  What about this header?
5562case $ac_header_compiler:$ac_header_preproc in
5563  yes:no )
5564    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5568    (
5569      cat <<\_ASBOX
5570## ------------------------------------ ##
5571## Report this to bug-autoconf@gnu.org. ##
5572## ------------------------------------ ##
5573_ASBOX
5574    ) |
5575      sed "s/^/$as_me: WARNING:     /" >&2
5576    ;;
5577  no:yes )
5578    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5580    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5582    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5584    (
5585      cat <<\_ASBOX
5586## ------------------------------------ ##
5587## Report this to bug-autoconf@gnu.org. ##
5588## ------------------------------------ ##
5589_ASBOX
5590    ) |
5591      sed "s/^/$as_me: WARNING:     /" >&2
5592    ;;
5593esac
5594echo "$as_me:$LINENO: checking for $ac_header" >&5
5595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5596if eval "test \"\${$as_ac_Header+set}\" = set"; then
5597  echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599  eval "$as_ac_Header=$ac_header_preproc"
5600fi
5601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5603
5604fi
5605if test `eval echo '${'$as_ac_Header'}'` = yes; then
5606  cat >>confdefs.h <<_ACEOF
5607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5608_ACEOF
5609
5610fi
5611
5612done
5613
5614
5615for ac_header in locale.h
5616do
5617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618if eval "test \"\${$as_ac_Header+set}\" = set"; then
5619  echo "$as_me:$LINENO: checking for $ac_header" >&5
5620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5621if eval "test \"\${$as_ac_Header+set}\" = set"; then
5622  echo $ECHO_N "(cached) $ECHO_C" >&6
5623fi
5624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5626else
5627  # Is the header compilable?
5628echo "$as_me:$LINENO: checking $ac_header usability" >&5
5629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5630cat >conftest.$ac_ext <<_ACEOF
5631#line $LINENO "configure"
5632/* confdefs.h.  */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h.  */
5637$ac_includes_default
5638#include <$ac_header>
5639_ACEOF
5640rm -f conftest.$ac_objext
5641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642  (eval $ac_compile) 2>&5
5643  ac_status=$?
5644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645  (exit $ac_status); } &&
5646         { ac_try='test -s conftest.$ac_objext'
5647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648  (eval $ac_try) 2>&5
5649  ac_status=$?
5650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651  (exit $ac_status); }; }; then
5652  ac_header_compiler=yes
5653else
5654  echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
5657ac_header_compiler=no
5658fi
5659rm -f conftest.$ac_objext conftest.$ac_ext
5660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5661echo "${ECHO_T}$ac_header_compiler" >&6
5662
5663# Is the header present?
5664echo "$as_me:$LINENO: checking $ac_header presence" >&5
5665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5666cat >conftest.$ac_ext <<_ACEOF
5667#line $LINENO "configure"
5668/* confdefs.h.  */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h.  */
5673#include <$ac_header>
5674_ACEOF
5675if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5676  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5677  ac_status=$?
5678  grep -v '^ *+' conftest.er1 >conftest.err
5679  rm -f conftest.er1
5680  cat conftest.err >&5
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); } >/dev/null; then
5683  if test -s conftest.err; then
5684    ac_cpp_err=$ac_c_preproc_warn_flag
5685  else
5686    ac_cpp_err=
5687  fi
5688else
5689  ac_cpp_err=yes
5690fi
5691if test -z "$ac_cpp_err"; then
5692  ac_header_preproc=yes
5693else
5694  echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697  ac_header_preproc=no
5698fi
5699rm -f conftest.err conftest.$ac_ext
5700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5701echo "${ECHO_T}$ac_header_preproc" >&6
5702
5703# So?  What about this header?
5704case $ac_header_compiler:$ac_header_preproc in
5705  yes:no )
5706    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5708    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5710    (
5711      cat <<\_ASBOX
5712## ------------------------------------ ##
5713## Report this to bug-autoconf@gnu.org. ##
5714## ------------------------------------ ##
5715_ASBOX
5716    ) |
5717      sed "s/^/$as_me: WARNING:     /" >&2
5718    ;;
5719  no:yes )
5720    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5722    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5724    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5726    (
5727      cat <<\_ASBOX
5728## ------------------------------------ ##
5729## Report this to bug-autoconf@gnu.org. ##
5730## ------------------------------------ ##
5731_ASBOX
5732    ) |
5733      sed "s/^/$as_me: WARNING:     /" >&2
5734    ;;
5735esac
5736echo "$as_me:$LINENO: checking for $ac_header" >&5
5737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5738if eval "test \"\${$as_ac_Header+set}\" = set"; then
5739  echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741  eval "$as_ac_Header=$ac_header_preproc"
5742fi
5743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745
5746fi
5747if test `eval echo '${'$as_ac_Header'}'` = yes; then
5748  cat >>confdefs.h <<_ACEOF
5749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750_ACEOF
5751
5752fi
5753
5754done
5755
5756
5757for ac_header in utime.h
5758do
5759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5760if eval "test \"\${$as_ac_Header+set}\" = set"; then
5761  echo "$as_me:$LINENO: checking for $ac_header" >&5
5762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5763if eval "test \"\${$as_ac_Header+set}\" = set"; then
5764  echo $ECHO_N "(cached) $ECHO_C" >&6
5765fi
5766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5768else
5769  # Is the header compilable?
5770echo "$as_me:$LINENO: checking $ac_header usability" >&5
5771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5772cat >conftest.$ac_ext <<_ACEOF
5773#line $LINENO "configure"
5774/* confdefs.h.  */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h.  */
5779$ac_includes_default
5780#include <$ac_header>
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784  (eval $ac_compile) 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); } &&
5788         { ac_try='test -s conftest.$ac_objext'
5789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790  (eval $ac_try) 2>&5
5791  ac_status=$?
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); }; }; then
5794  ac_header_compiler=yes
5795else
5796  echo "$as_me: failed program was:" >&5
5797sed 's/^/| /' conftest.$ac_ext >&5
5798
5799ac_header_compiler=no
5800fi
5801rm -f conftest.$ac_objext conftest.$ac_ext
5802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5803echo "${ECHO_T}$ac_header_compiler" >&6
5804
5805# Is the header present?
5806echo "$as_me:$LINENO: checking $ac_header presence" >&5
5807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5808cat >conftest.$ac_ext <<_ACEOF
5809#line $LINENO "configure"
5810/* confdefs.h.  */
5811_ACEOF
5812cat confdefs.h >>conftest.$ac_ext
5813cat >>conftest.$ac_ext <<_ACEOF
5814/* end confdefs.h.  */
5815#include <$ac_header>
5816_ACEOF
5817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5818  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5819  ac_status=$?
5820  grep -v '^ *+' conftest.er1 >conftest.err
5821  rm -f conftest.er1
5822  cat conftest.err >&5
5823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824  (exit $ac_status); } >/dev/null; then
5825  if test -s conftest.err; then
5826    ac_cpp_err=$ac_c_preproc_warn_flag
5827  else
5828    ac_cpp_err=
5829  fi
5830else
5831  ac_cpp_err=yes
5832fi
5833if test -z "$ac_cpp_err"; then
5834  ac_header_preproc=yes
5835else
5836  echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
5838
5839  ac_header_preproc=no
5840fi
5841rm -f conftest.err conftest.$ac_ext
5842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5843echo "${ECHO_T}$ac_header_preproc" >&6
5844
5845# So?  What about this header?
5846case $ac_header_compiler:$ac_header_preproc in
5847  yes:no )
5848    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5852    (
5853      cat <<\_ASBOX
5854## ------------------------------------ ##
5855## Report this to bug-autoconf@gnu.org. ##
5856## ------------------------------------ ##
5857_ASBOX
5858    ) |
5859      sed "s/^/$as_me: WARNING:     /" >&2
5860    ;;
5861  no:yes )
5862    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5864    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5866    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5868    (
5869      cat <<\_ASBOX
5870## ------------------------------------ ##
5871## Report this to bug-autoconf@gnu.org. ##
5872## ------------------------------------ ##
5873_ASBOX
5874    ) |
5875      sed "s/^/$as_me: WARNING:     /" >&2
5876    ;;
5877esac
5878echo "$as_me:$LINENO: checking for $ac_header" >&5
5879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5880if eval "test \"\${$as_ac_Header+set}\" = set"; then
5881  echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883  eval "$as_ac_Header=$ac_header_preproc"
5884fi
5885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5887
5888fi
5889if test `eval echo '${'$as_ac_Header'}'` = yes; then
5890  cat >>confdefs.h <<_ACEOF
5891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5892_ACEOF
5893
5894fi
5895
5896done
5897
5898
5899for ac_header in sys/utime.h
5900do
5901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5902if eval "test \"\${$as_ac_Header+set}\" = set"; then
5903  echo "$as_me:$LINENO: checking for $ac_header" >&5
5904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5905if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907fi
5908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5910else
5911  # Is the header compilable?
5912echo "$as_me:$LINENO: checking $ac_header usability" >&5
5913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5914cat >conftest.$ac_ext <<_ACEOF
5915#line $LINENO "configure"
5916/* confdefs.h.  */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
5920/* end confdefs.h.  */
5921$ac_includes_default
5922#include <$ac_header>
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926  (eval $ac_compile) 2>&5
5927  ac_status=$?
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); } &&
5930         { ac_try='test -s conftest.$ac_objext'
5931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932  (eval $ac_try) 2>&5
5933  ac_status=$?
5934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935  (exit $ac_status); }; }; then
5936  ac_header_compiler=yes
5937else
5938  echo "$as_me: failed program was:" >&5
5939sed 's/^/| /' conftest.$ac_ext >&5
5940
5941ac_header_compiler=no
5942fi
5943rm -f conftest.$ac_objext conftest.$ac_ext
5944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5945echo "${ECHO_T}$ac_header_compiler" >&6
5946
5947# Is the header present?
5948echo "$as_me:$LINENO: checking $ac_header presence" >&5
5949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5950cat >conftest.$ac_ext <<_ACEOF
5951#line $LINENO "configure"
5952/* confdefs.h.  */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
5956/* end confdefs.h.  */
5957#include <$ac_header>
5958_ACEOF
5959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5960  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5961  ac_status=$?
5962  grep -v '^ *+' conftest.er1 >conftest.err
5963  rm -f conftest.er1
5964  cat conftest.err >&5
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); } >/dev/null; then
5967  if test -s conftest.err; then
5968    ac_cpp_err=$ac_c_preproc_warn_flag
5969  else
5970    ac_cpp_err=
5971  fi
5972else
5973  ac_cpp_err=yes
5974fi
5975if test -z "$ac_cpp_err"; then
5976  ac_header_preproc=yes
5977else
5978  echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981  ac_header_preproc=no
5982fi
5983rm -f conftest.err conftest.$ac_ext
5984echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5985echo "${ECHO_T}$ac_header_preproc" >&6
5986
5987# So?  What about this header?
5988case $ac_header_compiler:$ac_header_preproc in
5989  yes:no )
5990    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5991echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5992    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5994    (
5995      cat <<\_ASBOX
5996## ------------------------------------ ##
5997## Report this to bug-autoconf@gnu.org. ##
5998## ------------------------------------ ##
5999_ASBOX
6000    ) |
6001      sed "s/^/$as_me: WARNING:     /" >&2
6002    ;;
6003  no:yes )
6004    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6005echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6006    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6007echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6008    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6010    (
6011      cat <<\_ASBOX
6012## ------------------------------------ ##
6013## Report this to bug-autoconf@gnu.org. ##
6014## ------------------------------------ ##
6015_ASBOX
6016    ) |
6017      sed "s/^/$as_me: WARNING:     /" >&2
6018    ;;
6019esac
6020echo "$as_me:$LINENO: checking for $ac_header" >&5
6021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6022if eval "test \"\${$as_ac_Header+set}\" = set"; then
6023  echo $ECHO_N "(cached) $ECHO_C" >&6
6024else
6025  eval "$as_ac_Header=$ac_header_preproc"
6026fi
6027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6028echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6029
6030fi
6031if test `eval echo '${'$as_ac_Header'}'` = yes; then
6032  cat >>confdefs.h <<_ACEOF
6033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6034_ACEOF
6035
6036fi
6037
6038done
6039
6040
6041for ac_header in wchar.h
6042do
6043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6044if eval "test \"\${$as_ac_Header+set}\" = set"; then
6045  echo "$as_me:$LINENO: checking for $ac_header" >&5
6046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6047if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048  echo $ECHO_N "(cached) $ECHO_C" >&6
6049fi
6050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6052else
6053  # Is the header compilable?
6054echo "$as_me:$LINENO: checking $ac_header usability" >&5
6055echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6056cat >conftest.$ac_ext <<_ACEOF
6057#line $LINENO "configure"
6058/* confdefs.h.  */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h.  */
6063$ac_includes_default
6064#include <$ac_header>
6065_ACEOF
6066rm -f conftest.$ac_objext
6067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068  (eval $ac_compile) 2>&5
6069  ac_status=$?
6070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071  (exit $ac_status); } &&
6072         { ac_try='test -s conftest.$ac_objext'
6073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074  (eval $ac_try) 2>&5
6075  ac_status=$?
6076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077  (exit $ac_status); }; }; then
6078  ac_header_compiler=yes
6079else
6080  echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083ac_header_compiler=no
6084fi
6085rm -f conftest.$ac_objext conftest.$ac_ext
6086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6087echo "${ECHO_T}$ac_header_compiler" >&6
6088
6089# Is the header present?
6090echo "$as_me:$LINENO: checking $ac_header presence" >&5
6091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6092cat >conftest.$ac_ext <<_ACEOF
6093#line $LINENO "configure"
6094/* confdefs.h.  */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h.  */
6099#include <$ac_header>
6100_ACEOF
6101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6102  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6103  ac_status=$?
6104  grep -v '^ *+' conftest.er1 >conftest.err
6105  rm -f conftest.er1
6106  cat conftest.err >&5
6107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108  (exit $ac_status); } >/dev/null; then
6109  if test -s conftest.err; then
6110    ac_cpp_err=$ac_c_preproc_warn_flag
6111  else
6112    ac_cpp_err=
6113  fi
6114else
6115  ac_cpp_err=yes
6116fi
6117if test -z "$ac_cpp_err"; then
6118  ac_header_preproc=yes
6119else
6120  echo "$as_me: failed program was:" >&5
6121sed 's/^/| /' conftest.$ac_ext >&5
6122
6123  ac_header_preproc=no
6124fi
6125rm -f conftest.err conftest.$ac_ext
6126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6127echo "${ECHO_T}$ac_header_preproc" >&6
6128
6129# So?  What about this header?
6130case $ac_header_compiler:$ac_header_preproc in
6131  yes:no )
6132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6136    (
6137      cat <<\_ASBOX
6138## ------------------------------------ ##
6139## Report this to bug-autoconf@gnu.org. ##
6140## ------------------------------------ ##
6141_ASBOX
6142    ) |
6143      sed "s/^/$as_me: WARNING:     /" >&2
6144    ;;
6145  no:yes )
6146    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6148    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6149echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6150    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6152    (
6153      cat <<\_ASBOX
6154## ------------------------------------ ##
6155## Report this to bug-autoconf@gnu.org. ##
6156## ------------------------------------ ##
6157_ASBOX
6158    ) |
6159      sed "s/^/$as_me: WARNING:     /" >&2
6160    ;;
6161esac
6162echo "$as_me:$LINENO: checking for $ac_header" >&5
6163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6164if eval "test \"\${$as_ac_Header+set}\" = set"; then
6165  echo $ECHO_N "(cached) $ECHO_C" >&6
6166else
6167  eval "$as_ac_Header=$ac_header_preproc"
6168fi
6169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6171
6172fi
6173if test `eval echo '${'$as_ac_Header'}'` = yes; then
6174  cat >>confdefs.h <<_ACEOF
6175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6176_ACEOF
6177
6178fi
6179
6180done
6181
6182
6183echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6184echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6185if test "${ac_cv_c_const+set}" = set; then
6186  echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188  cat >conftest.$ac_ext <<_ACEOF
6189#line $LINENO "configure"
6190/* confdefs.h.  */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h.  */
6195
6196int
6197main ()
6198{
6199/* FIXME: Include the comments suggested by Paul. */
6200#ifndef __cplusplus
6201  /* Ultrix mips cc rejects this.  */
6202  typedef int charset[2];
6203  const charset x;
6204  /* SunOS 4.1.1 cc rejects this.  */
6205  char const *const *ccp;
6206  char **p;
6207  /* NEC SVR4.0.2 mips cc rejects this.  */
6208  struct point {int x, y;};
6209  static struct point const zero = {0,0};
6210  /* AIX XL C 1.02.0.0 rejects this.
6211     It does not let you subtract one const X* pointer from another in
6212     an arm of an if-expression whose if-part is not a constant
6213     expression */
6214  const char *g = "string";
6215  ccp = &g + (g ? g-g : 0);
6216  /* HPUX 7.0 cc rejects these. */
6217  ++ccp;
6218  p = (char**) ccp;
6219  ccp = (char const *const *) p;
6220  { /* SCO 3.2v4 cc rejects this.  */
6221    char *t;
6222    char const *s = 0 ? (char *) 0 : (char const *) 0;
6223
6224    *t++ = 0;
6225  }
6226  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6227    int x[] = {25, 17};
6228    const int *foo = &x[0];
6229    ++foo;
6230  }
6231  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6232    typedef const int *iptr;
6233    iptr p = 0;
6234    ++p;
6235  }
6236  { /* AIX XL C 1.02.0.0 rejects this saying
6237       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6238    struct s { int j; const int *ap[3]; };
6239    struct s *b; b->j = 5;
6240  }
6241  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6242    const int foo = 10;
6243  }
6244#endif
6245
6246  ;
6247  return 0;
6248}
6249_ACEOF
6250rm -f conftest.$ac_objext
6251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252  (eval $ac_compile) 2>&5
6253  ac_status=$?
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); } &&
6256         { ac_try='test -s conftest.$ac_objext'
6257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258  (eval $ac_try) 2>&5
6259  ac_status=$?
6260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261  (exit $ac_status); }; }; then
6262  ac_cv_c_const=yes
6263else
6264  echo "$as_me: failed program was:" >&5
6265sed 's/^/| /' conftest.$ac_ext >&5
6266
6267ac_cv_c_const=no
6268fi
6269rm -f conftest.$ac_objext conftest.$ac_ext
6270fi
6271echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6272echo "${ECHO_T}$ac_cv_c_const" >&6
6273if test $ac_cv_c_const = no; then
6274
6275cat >>confdefs.h <<\_ACEOF
6276#define const
6277_ACEOF
6278
6279fi
6280
6281echo "$as_me:$LINENO: checking for off_t" >&5
6282echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6283if test "${ac_cv_type_off_t+set}" = set; then
6284  echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286  cat >conftest.$ac_ext <<_ACEOF
6287#line $LINENO "configure"
6288/* confdefs.h.  */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h.  */
6293$ac_includes_default
6294int
6295main ()
6296{
6297if ((off_t *) 0)
6298  return 0;
6299if (sizeof (off_t))
6300  return 0;
6301  ;
6302  return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307  (eval $ac_compile) 2>&5
6308  ac_status=$?
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); } &&
6311         { ac_try='test -s conftest.$ac_objext'
6312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313  (eval $ac_try) 2>&5
6314  ac_status=$?
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }; }; then
6317  ac_cv_type_off_t=yes
6318else
6319  echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322ac_cv_type_off_t=no
6323fi
6324rm -f conftest.$ac_objext conftest.$ac_ext
6325fi
6326echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6327echo "${ECHO_T}$ac_cv_type_off_t" >&6
6328if test $ac_cv_type_off_t = yes; then
6329  :
6330else
6331
6332cat >>confdefs.h <<_ACEOF
6333#define off_t long
6334_ACEOF
6335
6336fi
6337
6338echo "$as_me:$LINENO: checking for size_t" >&5
6339echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6340if test "${ac_cv_type_size_t+set}" = set; then
6341  echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343  cat >conftest.$ac_ext <<_ACEOF
6344#line $LINENO "configure"
6345/* confdefs.h.  */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h.  */
6350$ac_includes_default
6351int
6352main ()
6353{
6354if ((size_t *) 0)
6355  return 0;
6356if (sizeof (size_t))
6357  return 0;
6358  ;
6359  return 0;
6360}
6361_ACEOF
6362rm -f conftest.$ac_objext
6363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364  (eval $ac_compile) 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); } &&
6368         { ac_try='test -s conftest.$ac_objext'
6369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370  (eval $ac_try) 2>&5
6371  ac_status=$?
6372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); }; }; then
6374  ac_cv_type_size_t=yes
6375else
6376  echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379ac_cv_type_size_t=no
6380fi
6381rm -f conftest.$ac_objext conftest.$ac_ext
6382fi
6383echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6384echo "${ECHO_T}$ac_cv_type_size_t" >&6
6385if test $ac_cv_type_size_t = yes; then
6386  :
6387else
6388
6389cat >>confdefs.h <<_ACEOF
6390#define size_t unsigned
6391_ACEOF
6392
6393fi
6394
6395
6396echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6397echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6398if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6399  echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401  cat >conftest.$ac_ext <<_ACEOF
6402#line $LINENO "configure"
6403/* confdefs.h.  */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h.  */
6408$ac_includes_default
6409int
6410main ()
6411{
6412static struct stat ac_aggr;
6413if (ac_aggr.st_rdev)
6414return 0;
6415  ;
6416  return 0;
6417}
6418_ACEOF
6419rm -f conftest.$ac_objext
6420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421  (eval $ac_compile) 2>&5
6422  ac_status=$?
6423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424  (exit $ac_status); } &&
6425         { ac_try='test -s conftest.$ac_objext'
6426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427  (eval $ac_try) 2>&5
6428  ac_status=$?
6429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430  (exit $ac_status); }; }; then
6431  ac_cv_member_struct_stat_st_rdev=yes
6432else
6433  echo "$as_me: failed program was:" >&5
6434sed 's/^/| /' conftest.$ac_ext >&5
6435
6436cat >conftest.$ac_ext <<_ACEOF
6437#line $LINENO "configure"
6438/* confdefs.h.  */
6439_ACEOF
6440cat confdefs.h >>conftest.$ac_ext
6441cat >>conftest.$ac_ext <<_ACEOF
6442/* end confdefs.h.  */
6443$ac_includes_default
6444int
6445main ()
6446{
6447static struct stat ac_aggr;
6448if (sizeof ac_aggr.st_rdev)
6449return 0;
6450  ;
6451  return 0;
6452}
6453_ACEOF
6454rm -f conftest.$ac_objext
6455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456  (eval $ac_compile) 2>&5
6457  ac_status=$?
6458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459  (exit $ac_status); } &&
6460         { ac_try='test -s conftest.$ac_objext'
6461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462  (eval $ac_try) 2>&5
6463  ac_status=$?
6464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465  (exit $ac_status); }; }; then
6466  ac_cv_member_struct_stat_st_rdev=yes
6467else
6468  echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471ac_cv_member_struct_stat_st_rdev=no
6472fi
6473rm -f conftest.$ac_objext conftest.$ac_ext
6474fi
6475rm -f conftest.$ac_objext conftest.$ac_ext
6476fi
6477echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6478echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
6479if test $ac_cv_member_struct_stat_st_rdev = yes; then
6480
6481cat >>confdefs.h <<_ACEOF
6482#define HAVE_STRUCT_STAT_ST_RDEV 1
6483_ACEOF
6484
6485
6486cat >>confdefs.h <<\_ACEOF
6487#define HAVE_ST_RDEV 1
6488_ACEOF
6489
6490fi
6491
6492
6493echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6494echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6495if test "${ac_cv_struct_tm+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498  cat >conftest.$ac_ext <<_ACEOF
6499#line $LINENO "configure"
6500/* confdefs.h.  */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h.  */
6505#include <sys/types.h>
6506#include <time.h>
6507
6508int
6509main ()
6510{
6511struct tm *tp; tp->tm_sec;
6512  ;
6513  return 0;
6514}
6515_ACEOF
6516rm -f conftest.$ac_objext
6517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6518  (eval $ac_compile) 2>&5
6519  ac_status=$?
6520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521  (exit $ac_status); } &&
6522         { ac_try='test -s conftest.$ac_objext'
6523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524  (eval $ac_try) 2>&5
6525  ac_status=$?
6526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); }; }; then
6528  ac_cv_struct_tm=time.h
6529else
6530  echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533ac_cv_struct_tm=sys/time.h
6534fi
6535rm -f conftest.$ac_objext conftest.$ac_ext
6536fi
6537echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6538echo "${ECHO_T}$ac_cv_struct_tm" >&6
6539if test $ac_cv_struct_tm = sys/time.h; then
6540
6541cat >>confdefs.h <<\_ACEOF
6542#define TM_IN_SYS_TIME 1
6543_ACEOF
6544
6545fi
6546
6547echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
6548echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
6549if test "${ac_cv_struct_tm_zone+set}" = set; then
6550  echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
6552  cat >conftest.$ac_ext <<_ACEOF
6553#line $LINENO "configure"
6554/* confdefs.h.  */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h.  */
6559#include <sys/types.h>
6560#include <$ac_cv_struct_tm>
6561int
6562main ()
6563{
6564struct tm tm; tm.tm_zone;
6565  ;
6566  return 0;
6567}
6568_ACEOF
6569rm -f conftest.$ac_objext
6570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571  (eval $ac_compile) 2>&5
6572  ac_status=$?
6573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574  (exit $ac_status); } &&
6575         { ac_try='test -s conftest.$ac_objext'
6576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577  (eval $ac_try) 2>&5
6578  ac_status=$?
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); }; }; then
6581  ac_cv_struct_tm_zone=yes
6582else
6583  echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586ac_cv_struct_tm_zone=no
6587fi
6588rm -f conftest.$ac_objext conftest.$ac_ext
6589fi
6590echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
6591echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6
6592if test "$ac_cv_struct_tm_zone" = yes; then
6593
6594cat >>confdefs.h <<\_ACEOF
6595#define HAVE_TM_ZONE 1
6596_ACEOF
6597
6598fi
6599echo "$as_me:$LINENO: checking for tzname" >&5
6600echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6601if test "${ac_cv_var_tzname+set}" = set; then
6602  echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604  cat >conftest.$ac_ext <<_ACEOF
6605#line $LINENO "configure"
6606/* confdefs.h.  */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h.  */
6611#include <time.h>
6612#ifndef tzname /* For SGI.  */
6613extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
6614#endif
6615int
6616main ()
6617{
6618atoi(*tzname);
6619  ;
6620  return 0;
6621}
6622_ACEOF
6623rm -f conftest.$ac_objext conftest$ac_exeext
6624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625  (eval $ac_link) 2>&5
6626  ac_status=$?
6627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628  (exit $ac_status); } &&
6629         { ac_try='test -s conftest$ac_exeext'
6630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631  (eval $ac_try) 2>&5
6632  ac_status=$?
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); }; }; then
6635  ac_cv_var_tzname=yes
6636else
6637  echo "$as_me: failed program was:" >&5
6638sed 's/^/| /' conftest.$ac_ext >&5
6639
6640ac_cv_var_tzname=no
6641fi
6642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6643fi
6644echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6645echo "${ECHO_T}$ac_cv_var_tzname" >&6
6646  if test $ac_cv_var_tzname = yes; then
6647
6648cat >>confdefs.h <<\_ACEOF
6649#define HAVE_TZNAME 1
6650_ACEOF
6651
6652  fi
6653
6654echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
6655echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6
6656if test "${ac_cv_struct_tm_isdst+set}" = set; then
6657  echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659  cat >conftest.$ac_ext <<_ACEOF
6660#line $LINENO "configure"
6661/* confdefs.h.  */
6662_ACEOF
6663cat confdefs.h >>conftest.$ac_ext
6664cat >>conftest.$ac_ext <<_ACEOF
6665/* end confdefs.h.  */
6666#include <sys/types.h>
6667#include <$ac_cv_struct_tm>
6668int
6669main ()
6670{
6671struct tm tm; tm.tm_isdst;
6672  ;
6673  return 0;
6674}
6675_ACEOF
6676rm -f conftest.$ac_objext
6677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678  (eval $ac_compile) 2>&5
6679  ac_status=$?
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); } &&
6682         { ac_try='test -s conftest.$ac_objext'
6683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684  (eval $ac_try) 2>&5
6685  ac_status=$?
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); }; }; then
6688  ac_cv_struct_tm_isdst=yes
6689else
6690  echo "$as_me: failed program was:" >&5
6691sed 's/^/| /' conftest.$ac_ext >&5
6692
6693ac_cv_struct_tm_isdst=no
6694fi
6695rm -f conftest.$ac_objext conftest.$ac_ext
6696fi
6697echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
6698echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6
6699if test "$ac_cv_struct_tm_isdst" = yes; then
6700  cat >>confdefs.h <<\_ACEOF
6701#define HAVE_TM_ISDST 1
6702_ACEOF
6703
6704fi
6705echo "$as_me:$LINENO: checking for daylight" >&5
6706echo $ECHO_N "checking for daylight... $ECHO_C" >&6
6707if test "${ac_cv_var_daylight+set}" = set; then
6708  echo $ECHO_N "(cached) $ECHO_C" >&6
6709else
6710  cat >conftest.$ac_ext <<_ACEOF
6711#line $LINENO "configure"
6712/* confdefs.h.  */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h.  */
6717#include <time.h>
6718#ifndef daylight /* In case IRIX #defines this, too  */
6719extern int daylight;
6720#endif
6721int
6722main ()
6723{
6724atoi(daylight);
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729rm -f conftest.$ac_objext conftest$ac_exeext
6730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731  (eval $ac_link) 2>&5
6732  ac_status=$?
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); } &&
6735         { ac_try='test -s conftest$ac_exeext'
6736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737  (eval $ac_try) 2>&5
6738  ac_status=$?
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); }; }; then
6741  ac_cv_var_daylight=yes
6742else
6743  echo "$as_me: failed program was:" >&5
6744sed 's/^/| /' conftest.$ac_ext >&5
6745
6746ac_cv_var_daylight=no
6747fi
6748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749fi
6750echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
6751echo "${ECHO_T}$ac_cv_var_daylight" >&6
6752  if test $ac_cv_var_daylight = yes; then
6753    cat >>confdefs.h <<\_ACEOF
6754#define HAVE_DAYLIGHT 1
6755_ACEOF
6756
6757  fi
6758
6759
6760   # Check whether --enable-largefile or --disable-largefile was given.
6761if test "${enable_largefile+set}" = set; then
6762  enableval="$enable_largefile"
6763
6764fi;
6765   if test "$enable_largefile" != no; then
6766
6767     echo "$as_me:$LINENO: checking for special C compiler options needed for large files=
6768" >&5
6769echo $ECHO_N "checking for special C compiler options needed for large files=
6770... $ECHO_C" >&6
6771if test "${ac_cv_sys_largefile_CC+set}" = set; then
6772  echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774  ac_cv_sys_largefile_CC=no
6775        if test "$GCC" != yes; then
6776	  # IRIX 6.2 and later do not support large files by default,
6777	  # so use the C compiler's -n32 option if that helps.
6778	  cat >conftest.$ac_ext <<_ACEOF
6779#line $LINENO "configure"
6780/* confdefs.h.  */
6781_ACEOF
6782cat confdefs.h >>conftest.$ac_ext
6783cat >>conftest.$ac_ext <<_ACEOF
6784/* end confdefs.h.  */
6785#include <sys/types.h>
6786    /* Check that off_t can represent 2**63 - 1 correctly.
6787       We can't simply "#define LARGE_OFF_T 9223372036854775807",
6788       since some C++ compilers masquerading as C compilers
6789       incorrectly reject 9223372036854775807.  */
6790#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6791    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6792			&& LARGE_OFF_T % 2147483647 == 1)
6793		       ? 1 : -1];
6794
6795int
6796main ()
6797{
6798
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803rm -f conftest.$ac_objext
6804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6805  (eval $ac_compile) 2>&5
6806  ac_status=$?
6807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808  (exit $ac_status); } &&
6809         { ac_try='test -s conftest.$ac_objext'
6810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811  (eval $ac_try) 2>&5
6812  ac_status=$?
6813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814  (exit $ac_status); }; }; then
6815  :
6816else
6817  echo "$as_me: failed program was:" >&5
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
6820ac_save_CC="$CC"
6821	     CC="$CC -n32"
6822	     cat >conftest.$ac_ext <<_ACEOF
6823#line $LINENO "configure"
6824/* confdefs.h.  */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h.  */
6829#include <sys/types.h>
6830    /* Check that off_t can represent 2**63 - 1 correctly.
6831       We can't simply "#define LARGE_OFF_T 9223372036854775807",
6832       since some C++ compilers masquerading as C compilers
6833       incorrectly reject 9223372036854775807.  */
6834#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6835    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6836			&& LARGE_OFF_T % 2147483647 == 1)
6837		       ? 1 : -1];
6838
6839int
6840main ()
6841{
6842
6843  ;
6844  return 0;
6845}
6846_ACEOF
6847rm -f conftest.$ac_objext
6848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849  (eval $ac_compile) 2>&5
6850  ac_status=$?
6851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852  (exit $ac_status); } &&
6853         { ac_try='test -s conftest.$ac_objext'
6854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855  (eval $ac_try) 2>&5
6856  ac_status=$?
6857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858  (exit $ac_status); }; }; then
6859  ac_cv_sys_largefile_CC=' -n32'
6860else
6861  echo "$as_me: failed program was:" >&5
6862sed 's/^/| /' conftest.$ac_ext >&5
6863
6864fi
6865rm -f conftest.$ac_objext conftest.$ac_ext
6866	     CC="$ac_save_CC"
6867fi
6868rm -f conftest.$ac_objext conftest.$ac_ext
6869        fi
6870fi
6871echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6872echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
6873     if test "$ac_cv_sys_largefile_CC" != no; then
6874       CC="$CC$ac_cv_sys_largefile_CC"
6875     fi
6876
6877     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6878echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
6879if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6880  echo $ECHO_N "(cached) $ECHO_C" >&6
6881else
6882  ac_cv_sys_file_offset_bits=no
6883      cat >conftest.$ac_ext <<_ACEOF
6884#line $LINENO "configure"
6885/* confdefs.h.  */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h.  */
6890#include <sys/types.h>
6891    /* Check that off_t can represent 2**63 - 1 correctly.
6892       We can't simply "#define LARGE_OFF_T 9223372036854775807",
6893       since some C++ compilers masquerading as C compilers
6894       incorrectly reject 9223372036854775807.  */
6895#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6896    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6897			&& LARGE_OFF_T % 2147483647 == 1)
6898		       ? 1 : -1];
6899
6900int
6901main ()
6902{
6903
6904  ;
6905  return 0;
6906}
6907_ACEOF
6908rm -f conftest.$ac_objext
6909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910  (eval $ac_compile) 2>&5
6911  ac_status=$?
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); } &&
6914         { ac_try='test -s conftest.$ac_objext'
6915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916  (eval $ac_try) 2>&5
6917  ac_status=$?
6918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919  (exit $ac_status); }; }; then
6920  :
6921else
6922  echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925cat >conftest.$ac_ext <<_ACEOF
6926#line $LINENO "configure"
6927/* confdefs.h.  */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h.  */
6932#define _FILE_OFFSET_BITS 64
6933#include <sys/types.h>
6934    /* Check that off_t can represent 2**63 - 1 correctly.
6935       We can't simply "#define LARGE_OFF_T 9223372036854775807",
6936       since some C++ compilers masquerading as C compilers
6937       incorrectly reject 9223372036854775807.  */
6938#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6939    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6940			&& LARGE_OFF_T % 2147483647 == 1)
6941		       ? 1 : -1];
6942
6943
6944int
6945main ()
6946{
6947
6948  ;
6949  return 0;
6950}
6951_ACEOF
6952rm -f conftest.$ac_objext
6953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954  (eval $ac_compile) 2>&5
6955  ac_status=$?
6956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957  (exit $ac_status); } &&
6958         { ac_try='test -s conftest.$ac_objext'
6959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960  (eval $ac_try) 2>&5
6961  ac_status=$?
6962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963  (exit $ac_status); }; }; then
6964  ac_cv_sys_file_offset_bits=64
6965else
6966  echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969fi
6970rm -f conftest.$ac_objext conftest.$ac_ext
6971fi
6972rm -f conftest.$ac_objext conftest.$ac_ext
6973fi
6974echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6975echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
6976   if test "$ac_cv_sys_file_offset_bits" != no; then
6977
6978cat >>confdefs.h <<_ACEOF
6979#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6980_ACEOF
6981
6982   fi
6983     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6984echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
6985if test "${ac_cv_sys_large_files+set}" = set; then
6986  echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988  ac_cv_sys_large_files=no
6989      cat >conftest.$ac_ext <<_ACEOF
6990#line $LINENO "configure"
6991/* confdefs.h.  */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h.  */
6996#include <sys/types.h>
6997    /* Check that off_t can represent 2**63 - 1 correctly.
6998       We can't simply "#define LARGE_OFF_T 9223372036854775807",
6999       since some C++ compilers masquerading as C compilers
7000       incorrectly reject 9223372036854775807.  */
7001#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7002    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7003			&& LARGE_OFF_T % 2147483647 == 1)
7004		       ? 1 : -1];
7005
7006int
7007main ()
7008{
7009
7010  ;
7011  return 0;
7012}
7013_ACEOF
7014rm -f conftest.$ac_objext
7015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016  (eval $ac_compile) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); } &&
7020         { ac_try='test -s conftest.$ac_objext'
7021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022  (eval $ac_try) 2>&5
7023  ac_status=$?
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); }; }; then
7026  :
7027else
7028  echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031cat >conftest.$ac_ext <<_ACEOF
7032#line $LINENO "configure"
7033/* confdefs.h.  */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h.  */
7038#define _LARGE_FILES 1
7039#include <sys/types.h>
7040    /* Check that off_t can represent 2**63 - 1 correctly.
7041       We can't simply "#define LARGE_OFF_T 9223372036854775807",
7042       since some C++ compilers masquerading as C compilers
7043       incorrectly reject 9223372036854775807.  */
7044#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7045    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7046			&& LARGE_OFF_T % 2147483647 == 1)
7047		       ? 1 : -1];
7048
7049
7050int
7051main ()
7052{
7053
7054  ;
7055  return 0;
7056}
7057_ACEOF
7058rm -f conftest.$ac_objext
7059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060  (eval $ac_compile) 2>&5
7061  ac_status=$?
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); } &&
7064         { ac_try='test -s conftest.$ac_objext'
7065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066  (eval $ac_try) 2>&5
7067  ac_status=$?
7068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069  (exit $ac_status); }; }; then
7070  ac_cv_sys_large_files=1
7071else
7072  echo "$as_me: failed program was:" >&5
7073sed 's/^/| /' conftest.$ac_ext >&5
7074
7075fi
7076rm -f conftest.$ac_objext conftest.$ac_ext
7077fi
7078rm -f conftest.$ac_objext conftest.$ac_ext
7079fi
7080echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7081echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7082   if test "$ac_cv_sys_large_files" != no; then
7083
7084cat >>confdefs.h <<_ACEOF
7085#define _LARGE_FILES $ac_cv_sys_large_files
7086_ACEOF
7087
7088   fi
7089   fi
7090
7091
7092
7093for ac_header in stdlib.h
7094do
7095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7096if eval "test \"\${$as_ac_Header+set}\" = set"; then
7097  echo "$as_me:$LINENO: checking for $ac_header" >&5
7098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7099if eval "test \"\${$as_ac_Header+set}\" = set"; then
7100  echo $ECHO_N "(cached) $ECHO_C" >&6
7101fi
7102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7104else
7105  # Is the header compilable?
7106echo "$as_me:$LINENO: checking $ac_header usability" >&5
7107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7108cat >conftest.$ac_ext <<_ACEOF
7109#line $LINENO "configure"
7110/* confdefs.h.  */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h.  */
7115$ac_includes_default
7116#include <$ac_header>
7117_ACEOF
7118rm -f conftest.$ac_objext
7119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120  (eval $ac_compile) 2>&5
7121  ac_status=$?
7122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123  (exit $ac_status); } &&
7124         { ac_try='test -s conftest.$ac_objext'
7125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126  (eval $ac_try) 2>&5
7127  ac_status=$?
7128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129  (exit $ac_status); }; }; then
7130  ac_header_compiler=yes
7131else
7132  echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
7135ac_header_compiler=no
7136fi
7137rm -f conftest.$ac_objext conftest.$ac_ext
7138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7139echo "${ECHO_T}$ac_header_compiler" >&6
7140
7141# Is the header present?
7142echo "$as_me:$LINENO: checking $ac_header presence" >&5
7143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7144cat >conftest.$ac_ext <<_ACEOF
7145#line $LINENO "configure"
7146/* confdefs.h.  */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h.  */
7151#include <$ac_header>
7152_ACEOF
7153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155  ac_status=$?
7156  grep -v '^ *+' conftest.er1 >conftest.err
7157  rm -f conftest.er1
7158  cat conftest.err >&5
7159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160  (exit $ac_status); } >/dev/null; then
7161  if test -s conftest.err; then
7162    ac_cpp_err=$ac_c_preproc_warn_flag
7163  else
7164    ac_cpp_err=
7165  fi
7166else
7167  ac_cpp_err=yes
7168fi
7169if test -z "$ac_cpp_err"; then
7170  ac_header_preproc=yes
7171else
7172  echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175  ac_header_preproc=no
7176fi
7177rm -f conftest.err conftest.$ac_ext
7178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7179echo "${ECHO_T}$ac_header_preproc" >&6
7180
7181# So?  What about this header?
7182case $ac_header_compiler:$ac_header_preproc in
7183  yes:no )
7184    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7186    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7188    (
7189      cat <<\_ASBOX
7190## ------------------------------------ ##
7191## Report this to bug-autoconf@gnu.org. ##
7192## ------------------------------------ ##
7193_ASBOX
7194    ) |
7195      sed "s/^/$as_me: WARNING:     /" >&2
7196    ;;
7197  no:yes )
7198    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7200    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204    (
7205      cat <<\_ASBOX
7206## ------------------------------------ ##
7207## Report this to bug-autoconf@gnu.org. ##
7208## ------------------------------------ ##
7209_ASBOX
7210    ) |
7211      sed "s/^/$as_me: WARNING:     /" >&2
7212    ;;
7213esac
7214echo "$as_me:$LINENO: checking for $ac_header" >&5
7215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217  echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219  eval "$as_ac_Header=$ac_header_preproc"
7220fi
7221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223
7224fi
7225if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226  cat >>confdefs.h <<_ACEOF
7227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7228_ACEOF
7229
7230fi
7231
7232done
7233
7234
7235   echo "$as_me:$LINENO: checking for mbstate_t" >&5
7236echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
7237if test "${ac_cv_type_mbstate_t+set}" = set; then
7238  echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240  cat >conftest.$ac_ext <<_ACEOF
7241#line $LINENO "configure"
7242/* confdefs.h.  */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h.  */
7247
7248#if HAVE_STDLIB_H
7249# include <stdlib.h>
7250#endif
7251#include <wchar.h>
7252int
7253main ()
7254{
7255mbstate_t x; return sizeof x;
7256  ;
7257  return 0;
7258}
7259_ACEOF
7260rm -f conftest.$ac_objext
7261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262  (eval $ac_compile) 2>&5
7263  ac_status=$?
7264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265  (exit $ac_status); } &&
7266         { ac_try='test -s conftest.$ac_objext'
7267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268  (eval $ac_try) 2>&5
7269  ac_status=$?
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); }; }; then
7272  ac_cv_type_mbstate_t=yes
7273else
7274  echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277ac_cv_type_mbstate_t=no
7278fi
7279rm -f conftest.$ac_objext conftest.$ac_ext
7280fi
7281echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
7282echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
7283   if test $ac_cv_type_mbstate_t = no; then
7284
7285cat >>confdefs.h <<\_ACEOF
7286#define mbstate_t int
7287_ACEOF
7288
7289   fi
7290
7291echo "$as_me:$LINENO: checking for uint8_t" >&5
7292echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
7293if test "${ac_cv_type_uint8_t+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  cat >conftest.$ac_ext <<_ACEOF
7297#line $LINENO "configure"
7298/* confdefs.h.  */
7299_ACEOF
7300cat confdefs.h >>conftest.$ac_ext
7301cat >>conftest.$ac_ext <<_ACEOF
7302/* end confdefs.h.  */
7303#if HAVE_STDINT_H
7304#include <stdint.h>
7305#endif
7306#include <sys/types.h>
7307#if STDC_HEADERS
7308#include <stdlib.h>
7309#include <stddef.h>
7310#endif
7311_ACEOF
7312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7314  ac_cv_type_uint8_t=yes
7315else
7316  ac_cv_type_uint8_t=no
7317fi
7318rm -f conftest*
7319
7320fi
7321echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
7322echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
7323if test $ac_cv_type_uint8_t = no; then
7324  cat >>confdefs.h <<\_ACEOF
7325#define uint8_t unsigned char
7326_ACEOF
7327
7328fi
7329
7330echo "$as_me:$LINENO: checking for uint16_t" >&5
7331echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7332if test "${ac_cv_type_uint16_t+set}" = set; then
7333  echo $ECHO_N "(cached) $ECHO_C" >&6
7334else
7335  cat >conftest.$ac_ext <<_ACEOF
7336#line $LINENO "configure"
7337/* confdefs.h.  */
7338_ACEOF
7339cat confdefs.h >>conftest.$ac_ext
7340cat >>conftest.$ac_ext <<_ACEOF
7341/* end confdefs.h.  */
7342#if HAVE_STDINT_H
7343#include <stdint.h>
7344#endif
7345#include <sys/types.h>
7346#if STDC_HEADERS
7347#include <stdlib.h>
7348#include <stddef.h>
7349#endif
7350_ACEOF
7351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7352  $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7353  ac_cv_type_uint16_t=yes
7354else
7355  ac_cv_type_uint16_t=no
7356fi
7357rm -f conftest*
7358
7359fi
7360echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7361echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7362if test $ac_cv_type_uint16_t = no; then
7363  cat >>confdefs.h <<\_ACEOF
7364#define uint16_t unsigned short
7365_ACEOF
7366
7367fi
7368
7369echo "$as_me:$LINENO: checking for uint32_t" >&5
7370echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7371if test "${ac_cv_type_uint32_t+set}" = set; then
7372  echo $ECHO_N "(cached) $ECHO_C" >&6
7373else
7374  cat >conftest.$ac_ext <<_ACEOF
7375#line $LINENO "configure"
7376/* confdefs.h.  */
7377_ACEOF
7378cat confdefs.h >>conftest.$ac_ext
7379cat >>conftest.$ac_ext <<_ACEOF
7380/* end confdefs.h.  */
7381#if HAVE_STDINT_H
7382#include <stdint.h>
7383#endif
7384#include <sys/types.h>
7385#if STDC_HEADERS
7386#include <stdlib.h>
7387#include <stddef.h>
7388#endif
7389_ACEOF
7390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7391  $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7392  ac_cv_type_uint32_t=yes
7393else
7394  ac_cv_type_uint32_t=no
7395fi
7396rm -f conftest*
7397
7398fi
7399echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7400echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7401if test $ac_cv_type_uint32_t = no; then
7402  cat >>confdefs.h <<\_ACEOF
7403#define uint32_t unsigned int
7404_ACEOF
7405
7406fi
7407
7408echo "$as_me:$LINENO: checking for int32_t" >&5
7409echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7410if test "${ac_cv_type_int32_t+set}" = set; then
7411  echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413  cat >conftest.$ac_ext <<_ACEOF
7414#line $LINENO "configure"
7415/* confdefs.h.  */
7416_ACEOF
7417cat confdefs.h >>conftest.$ac_ext
7418cat >>conftest.$ac_ext <<_ACEOF
7419/* end confdefs.h.  */
7420#if HAVE_STDINT_H
7421#include <stdint.h>
7422#endif
7423#include <sys/types.h>
7424#if STDC_HEADERS
7425#include <stdlib.h>
7426#include <stddef.h>
7427#endif
7428_ACEOF
7429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7430  $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7431  ac_cv_type_int32_t=yes
7432else
7433  ac_cv_type_int32_t=no
7434fi
7435rm -f conftest*
7436
7437fi
7438echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7439echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7440if test $ac_cv_type_int32_t = no; then
7441  cat >>confdefs.h <<\_ACEOF
7442#define int32_t int
7443_ACEOF
7444
7445fi
7446
7447echo "$as_me:$LINENO: checking for long long" >&5
7448echo $ECHO_N "checking for long long... $ECHO_C" >&6
7449if test "${ac_cv_c_long_long+set}" = set; then
7450  echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452  if test "$GCC" = yes; then
7453  ac_cv_c_long_long=yes
7454else
7455if test "$cross_compiling" = yes; then
7456  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7457See \`config.log' for more details." >&5
7458echo "$as_me: error: cannot run test program while cross compiling
7459See \`config.log' for more details." >&2;}
7460   { (exit 1); exit 1; }; }
7461else
7462  cat >conftest.$ac_ext <<_ACEOF
7463#line $LINENO "configure"
7464/* confdefs.h.  */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h.  */
7469int main() {
7470long long foo = 0;
7471exit(sizeof(long long) < sizeof(long)); }
7472_ACEOF
7473rm -f conftest$ac_exeext
7474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7475  (eval $ac_link) 2>&5
7476  ac_status=$?
7477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480  (eval $ac_try) 2>&5
7481  ac_status=$?
7482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483  (exit $ac_status); }; }; then
7484  ac_cv_c_long_long=yes
7485else
7486  echo "$as_me: program exited with status $ac_status" >&5
7487echo "$as_me: failed program was:" >&5
7488sed 's/^/| /' conftest.$ac_ext >&5
7489
7490( exit $ac_status )
7491ac_cv_c_long_long=no
7492fi
7493rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7494fi
7495fi
7496fi
7497echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
7498echo "${ECHO_T}$ac_cv_c_long_long" >&6
7499if test $ac_cv_c_long_long = yes; then
7500  cat >>confdefs.h <<\_ACEOF
7501#define HAVE_LONG_LONG 1
7502_ACEOF
7503
7504fi
7505
7506if test $ac_cv_c_long_long = yes; then
7507  long64='unsigned long long';
7508else
7509  long64='unsigned long';
7510fi
7511echo "$as_me:$LINENO: checking for uint64_t" >&5
7512echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7513if test "${ac_cv_type_uint64_t+set}" = set; then
7514  echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516  cat >conftest.$ac_ext <<_ACEOF
7517#line $LINENO "configure"
7518/* confdefs.h.  */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h.  */
7523#if HAVE_STDINT_H
7524#include <stdint.h>
7525#endif
7526#include <sys/types.h>
7527#if STDC_HEADERS
7528#include <stdlib.h>
7529#include <stddef.h>
7530#endif
7531_ACEOF
7532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7533  $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7534  eval "ac_cv_type_uint64_t=yes"
7535else
7536  eval "ac_cv_type_uint64_t=no"
7537fi
7538rm -f conftest*
7539
7540fi
7541if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
7542  echo "$as_me:$LINENO: result: yes" >&5
7543echo "${ECHO_T}yes" >&6
7544else
7545  echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547  cat >>confdefs.h <<_ACEOF
7548#define uint64_t $long64
7549_ACEOF
7550
7551fi
7552
7553
7554echo "$as_me:$LINENO: checking size of uint8_t" >&5
7555echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6
7556if test "${ac_cv_sizeof_uint8_t+set}" = set; then
7557  echo $ECHO_N "(cached) $ECHO_C" >&6
7558else
7559  if test "$cross_compiling" = yes; then
7560  ac_cv_sizeof_uint8_t=0
7561else
7562  cat >conftest.$ac_ext <<_ACEOF
7563#line $LINENO "configure"
7564/* confdefs.h.  */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h.  */
7569#if HAVE_STDINT_H
7570#include <stdint.h>
7571#endif
7572#include <sys/types.h>
7573#ifdef STDC_HEADERS
7574#include <stdlib.h>
7575#endif
7576
7577#include <stdio.h>
7578main()
7579{
7580  FILE *f=fopen("conftestval", "w");
7581  if (!f) exit(1);
7582  fprintf(f, "%d\n", sizeof(uint8_t));
7583  exit(0);
7584}
7585_ACEOF
7586rm -f conftest$ac_exeext
7587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588  (eval $ac_link) 2>&5
7589  ac_status=$?
7590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593  (eval $ac_try) 2>&5
7594  ac_status=$?
7595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596  (exit $ac_status); }; }; then
7597  ac_cv_sizeof_uint8_t=`cat conftestval`
7598else
7599  echo "$as_me: program exited with status $ac_status" >&5
7600echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
7603( exit $ac_status )
7604ac_cv_sizeof_uint8_t=0
7605fi
7606rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7607fi
7608fi
7609echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
7610echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6
7611cat >>confdefs.h <<_ACEOF
7612#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
7613_ACEOF
7614
7615
7616
7617echo "$as_me:$LINENO: checking size of uint16_t" >&5
7618echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6
7619if test "${ac_cv_sizeof_uint16_t+set}" = set; then
7620  echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622  if test "$cross_compiling" = yes; then
7623  ac_cv_sizeof_uint16_t=0
7624else
7625  cat >conftest.$ac_ext <<_ACEOF
7626#line $LINENO "configure"
7627/* confdefs.h.  */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h.  */
7632#if HAVE_STDINT_H
7633#include <stdint.h>
7634#endif
7635#include <sys/types.h>
7636#ifdef STDC_HEADERS
7637#include <stdlib.h>
7638#endif
7639
7640#include <stdio.h>
7641main()
7642{
7643  FILE *f=fopen("conftestval", "w");
7644  if (!f) exit(1);
7645  fprintf(f, "%d\n", sizeof(uint16_t));
7646  exit(0);
7647}
7648_ACEOF
7649rm -f conftest$ac_exeext
7650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7651  (eval $ac_link) 2>&5
7652  ac_status=$?
7653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656  (eval $ac_try) 2>&5
7657  ac_status=$?
7658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659  (exit $ac_status); }; }; then
7660  ac_cv_sizeof_uint16_t=`cat conftestval`
7661else
7662  echo "$as_me: program exited with status $ac_status" >&5
7663echo "$as_me: failed program was:" >&5
7664sed 's/^/| /' conftest.$ac_ext >&5
7665
7666( exit $ac_status )
7667ac_cv_sizeof_uint16_t=0
7668fi
7669rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7670fi
7671fi
7672echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
7673echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6
7674cat >>confdefs.h <<_ACEOF
7675#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
7676_ACEOF
7677
7678
7679
7680echo "$as_me:$LINENO: checking size of uint32_t" >&5
7681echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6
7682if test "${ac_cv_sizeof_uint32_t+set}" = set; then
7683  echo $ECHO_N "(cached) $ECHO_C" >&6
7684else
7685  if test "$cross_compiling" = yes; then
7686  ac_cv_sizeof_uint32_t=0
7687else
7688  cat >conftest.$ac_ext <<_ACEOF
7689#line $LINENO "configure"
7690/* confdefs.h.  */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h.  */
7695#if HAVE_STDINT_H
7696#include <stdint.h>
7697#endif
7698#include <sys/types.h>
7699#ifdef STDC_HEADERS
7700#include <stdlib.h>
7701#endif
7702
7703#include <stdio.h>
7704main()
7705{
7706  FILE *f=fopen("conftestval", "w");
7707  if (!f) exit(1);
7708  fprintf(f, "%d\n", sizeof(uint32_t));
7709  exit(0);
7710}
7711_ACEOF
7712rm -f conftest$ac_exeext
7713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714  (eval $ac_link) 2>&5
7715  ac_status=$?
7716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719  (eval $ac_try) 2>&5
7720  ac_status=$?
7721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722  (exit $ac_status); }; }; then
7723  ac_cv_sizeof_uint32_t=`cat conftestval`
7724else
7725  echo "$as_me: program exited with status $ac_status" >&5
7726echo "$as_me: failed program was:" >&5
7727sed 's/^/| /' conftest.$ac_ext >&5
7728
7729( exit $ac_status )
7730ac_cv_sizeof_uint32_t=0
7731fi
7732rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7733fi
7734fi
7735echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
7736echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6
7737cat >>confdefs.h <<_ACEOF
7738#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
7739_ACEOF
7740
7741
7742
7743echo "$as_me:$LINENO: checking size of uint64_t" >&5
7744echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
7745if test "${ac_cv_sizeof_uint64_t+set}" = set; then
7746  echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748  if test "$cross_compiling" = yes; then
7749  ac_cv_sizeof_uint64_t=0
7750else
7751  cat >conftest.$ac_ext <<_ACEOF
7752#line $LINENO "configure"
7753/* confdefs.h.  */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h.  */
7758#if HAVE_STDINT_H
7759#include <stdint.h>
7760#endif
7761#include <sys/types.h>
7762#ifdef STDC_HEADERS
7763#include <stdlib.h>
7764#endif
7765
7766#include <stdio.h>
7767main()
7768{
7769  FILE *f=fopen("conftestval", "w");
7770  if (!f) exit(1);
7771  fprintf(f, "%d\n", sizeof(uint64_t));
7772  exit(0);
7773}
7774_ACEOF
7775rm -f conftest$ac_exeext
7776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777  (eval $ac_link) 2>&5
7778  ac_status=$?
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782  (eval $ac_try) 2>&5
7783  ac_status=$?
7784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785  (exit $ac_status); }; }; then
7786  ac_cv_sizeof_uint64_t=`cat conftestval`
7787else
7788  echo "$as_me: program exited with status $ac_status" >&5
7789echo "$as_me: failed program was:" >&5
7790sed 's/^/| /' conftest.$ac_ext >&5
7791
7792( exit $ac_status )
7793ac_cv_sizeof_uint64_t=0
7794fi
7795rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7796fi
7797fi
7798echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
7799echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
7800cat >>confdefs.h <<_ACEOF
7801#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
7802_ACEOF
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816for ac_func in mmap strerror strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth
7817do
7818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7819echo "$as_me:$LINENO: checking for $ac_func" >&5
7820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7821if eval "test \"\${$as_ac_var+set}\" = set"; then
7822  echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824  cat >conftest.$ac_ext <<_ACEOF
7825#line $LINENO "configure"
7826/* confdefs.h.  */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
7830/* end confdefs.h.  */
7831/* System header to define __stub macros and hopefully few prototypes,
7832    which can conflict with char $ac_func (); below.
7833    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7834    <limits.h> exists even on freestanding compilers.  */
7835#ifdef __STDC__
7836# include <limits.h>
7837#else
7838# include <assert.h>
7839#endif
7840/* Override any gcc2 internal prototype to avoid an error.  */
7841#ifdef __cplusplus
7842extern "C"
7843{
7844#endif
7845/* We use char because int might match the return type of a gcc2
7846   builtin and then its argument prototype would still apply.  */
7847char $ac_func ();
7848/* The GNU C library defines this for functions which it implements
7849    to always fail with ENOSYS.  Some functions are actually named
7850    something starting with __ and the normal name is an alias.  */
7851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7852choke me
7853#else
7854char (*f) () = $ac_func;
7855#endif
7856#ifdef __cplusplus
7857}
7858#endif
7859
7860int
7861main ()
7862{
7863return f != $ac_func;
7864  ;
7865  return 0;
7866}
7867_ACEOF
7868rm -f conftest.$ac_objext conftest$ac_exeext
7869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870  (eval $ac_link) 2>&5
7871  ac_status=$?
7872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873  (exit $ac_status); } &&
7874         { ac_try='test -s conftest$ac_exeext'
7875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876  (eval $ac_try) 2>&5
7877  ac_status=$?
7878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879  (exit $ac_status); }; }; then
7880  eval "$as_ac_var=yes"
7881else
7882  echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885eval "$as_ac_var=no"
7886fi
7887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7888fi
7889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7891if test `eval echo '${'$as_ac_var'}'` = yes; then
7892  cat >>confdefs.h <<_ACEOF
7893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7894_ACEOF
7895
7896fi
7897done
7898
7899
7900
7901echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
7902echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
7903if test "${ac_cv_lib_z_gzopen+set}" = set; then
7904  echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906  ac_check_lib_save_LIBS=$LIBS
7907LIBS="-lz  $LIBS"
7908cat >conftest.$ac_ext <<_ACEOF
7909#line $LINENO "configure"
7910/* confdefs.h.  */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h.  */
7915
7916/* Override any gcc2 internal prototype to avoid an error.  */
7917#ifdef __cplusplus
7918extern "C"
7919#endif
7920/* We use char because int might match the return type of a gcc2
7921   builtin and then its argument prototype would still apply.  */
7922char gzopen ();
7923int
7924main ()
7925{
7926gzopen ();
7927  ;
7928  return 0;
7929}
7930_ACEOF
7931rm -f conftest.$ac_objext conftest$ac_exeext
7932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7933  (eval $ac_link) 2>&5
7934  ac_status=$?
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); } &&
7937         { ac_try='test -s conftest$ac_exeext'
7938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939  (eval $ac_try) 2>&5
7940  ac_status=$?
7941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942  (exit $ac_status); }; }; then
7943  ac_cv_lib_z_gzopen=yes
7944else
7945  echo "$as_me: failed program was:" >&5
7946sed 's/^/| /' conftest.$ac_ext >&5
7947
7948ac_cv_lib_z_gzopen=no
7949fi
7950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7951LIBS=$ac_check_lib_save_LIBS
7952fi
7953echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
7954echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
7955if test $ac_cv_lib_z_gzopen = yes; then
7956  cat >>confdefs.h <<_ACEOF
7957#define HAVE_LIBZ 1
7958_ACEOF
7959
7960  LIBS="-lz $LIBS"
7961
7962fi
7963
7964
7965                                        ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile"
7966cat >confcache <<\_ACEOF
7967# This file is a shell script that caches the results of configure
7968# tests run on this system so they can be shared between configure
7969# scripts and configure runs, see configure's option --config-cache.
7970# It is not useful on other systems.  If it contains results you don't
7971# want to keep, you may remove or edit it.
7972#
7973# config.status only pays attention to the cache file if you give it
7974# the --recheck option to rerun configure.
7975#
7976# `ac_cv_env_foo' variables (set or unset) will be overridden when
7977# loading this file, other *unset* `ac_cv_foo' will be assigned the
7978# following values.
7979
7980_ACEOF
7981
7982# The following way of writing the cache mishandles newlines in values,
7983# but we know of no workaround that is simple, portable, and efficient.
7984# So, don't put newlines in cache variables' values.
7985# Ultrix sh set writes to stderr and can't be redirected directly,
7986# and sets the high bit in the cache file unless we assign to the vars.
7987{
7988  (set) 2>&1 |
7989    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7990    *ac_space=\ *)
7991      # `set' does not quote correctly, so add quotes (double-quote
7992      # substitution turns \\\\ into \\, and sed turns \\ into \).
7993      sed -n \
7994        "s/'/'\\\\''/g;
7995    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7996      ;;
7997    *)
7998      # `set' quotes correctly as required by POSIX, so do not add quotes.
7999      sed -n \
8000        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8001      ;;
8002    esac;
8003} |
8004  sed '
8005     t clear
8006     : clear
8007     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8008     t end
8009     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8010     : end' >>confcache
8011if diff $cache_file confcache >/dev/null 2>&1; then :; else
8012  if test -w $cache_file; then
8013    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8014    cat confcache >$cache_file
8015  else
8016    echo "not updating unwritable cache $cache_file"
8017  fi
8018fi
8019rm -f confcache
8020
8021test "x$prefix" = xNONE && prefix=$ac_default_prefix
8022# Let make expand exec_prefix.
8023test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8024
8025# VPATH may cause trouble with some makes, so we remove $(srcdir),
8026# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8027# trailing colons and then remove the whole line if VPATH becomes empty
8028# (actually we leave an empty line to preserve line numbers).
8029if test "x$srcdir" = x.; then
8030  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
8031s/:*\$(srcdir):*/:/;
8032s/:*\${srcdir}:*/:/;
8033s/:*@srcdir@:*/:/;
8034s/^\([^=]*=[ 	]*\):*/\1/;
8035s/:*$//;
8036s/^[^=]*=[ 	]*$//;
8037}'
8038fi
8039
8040DEFS=-DHAVE_CONFIG_H
8041
8042ac_libobjs=
8043ac_ltlibobjs=
8044for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8045  # 1. Remove the extension, and $U if already installed.
8046  ac_i=`echo "$ac_i" |
8047         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8048  # 2. Add them.
8049  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8050  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8051done
8052LIBOBJS=$ac_libobjs
8053
8054LTLIBOBJS=$ac_ltlibobjs
8055
8056
8057if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8058  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8059Usually this means the macro was only invoked conditionally." >&5
8060echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8061Usually this means the macro was only invoked conditionally." >&2;}
8062   { (exit 1); exit 1; }; }
8063fi
8064if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
8065  { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
8066Usually this means the macro was only invoked conditionally." >&5
8067echo "$as_me: error: conditional \"FSECT5\" was never defined.
8068Usually this means the macro was only invoked conditionally." >&2;}
8069   { (exit 1); exit 1; }; }
8070fi
8071if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8072  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8073Usually this means the macro was only invoked conditionally." >&5
8074echo "$as_me: error: conditional \"AMDEP\" was never defined.
8075Usually this means the macro was only invoked conditionally." >&2;}
8076   { (exit 1); exit 1; }; }
8077fi
8078if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8079  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8080Usually this means the macro was only invoked conditionally." >&5
8081echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8082Usually this means the macro was only invoked conditionally." >&2;}
8083   { (exit 1); exit 1; }; }
8084fi
8085
8086: ${CONFIG_STATUS=./config.status}
8087ac_clean_files_save=$ac_clean_files
8088ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8089{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8090echo "$as_me: creating $CONFIG_STATUS" >&6;}
8091cat >$CONFIG_STATUS <<_ACEOF
8092#! $SHELL
8093# Generated by $as_me.
8094# Run this file to recreate the current configuration.
8095# Compiler output produced by configure, useful for debugging
8096# configure, is in config.log if it exists.
8097
8098debug=false
8099ac_cs_recheck=false
8100ac_cs_silent=false
8101SHELL=\${CONFIG_SHELL-$SHELL}
8102_ACEOF
8103
8104cat >>$CONFIG_STATUS <<\_ACEOF
8105## --------------------- ##
8106## M4sh Initialization.  ##
8107## --------------------- ##
8108
8109# Be Bourne compatible
8110if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8111  emulate sh
8112  NULLCMD=:
8113  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8114  # is contrary to our usage.  Disable this feature.
8115  alias -g '${1+"$@"}'='"$@"'
8116elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8117  set -o posix
8118fi
8119
8120# Support unset when possible.
8121if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8122  as_unset=unset
8123else
8124  as_unset=false
8125fi
8126
8127
8128# Work around bugs in pre-3.0 UWIN ksh.
8129$as_unset ENV MAIL MAILPATH
8130PS1='$ '
8131PS2='> '
8132PS4='+ '
8133
8134# NLS nuisances.
8135for as_var in \
8136  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8137  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8138  LC_TELEPHONE LC_TIME
8139do
8140  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8141    eval $as_var=C; export $as_var
8142  else
8143    $as_unset $as_var
8144  fi
8145done
8146
8147# Required to use basename.
8148if expr a : '\(a\)' >/dev/null 2>&1; then
8149  as_expr=expr
8150else
8151  as_expr=false
8152fi
8153
8154if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8155  as_basename=basename
8156else
8157  as_basename=false
8158fi
8159
8160
8161# Name of the executable.
8162as_me=`$as_basename "$0" ||
8163$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8164	 X"$0" : 'X\(//\)$' \| \
8165	 X"$0" : 'X\(/\)$' \| \
8166	 .     : '\(.\)' 2>/dev/null ||
8167echo X/"$0" |
8168    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8169  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8170  	  /^X\/\(\/\).*/{ s//\1/; q; }
8171  	  s/.*/./; q'`
8172
8173
8174# PATH needs CR, and LINENO needs CR and PATH.
8175# Avoid depending upon Character Ranges.
8176as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8177as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8178as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8179as_cr_digits='0123456789'
8180as_cr_alnum=$as_cr_Letters$as_cr_digits
8181
8182# The user is always right.
8183if test "${PATH_SEPARATOR+set}" != set; then
8184  echo "#! /bin/sh" >conf$$.sh
8185  echo  "exit 0"   >>conf$$.sh
8186  chmod +x conf$$.sh
8187  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8188    PATH_SEPARATOR=';'
8189  else
8190    PATH_SEPARATOR=:
8191  fi
8192  rm -f conf$$.sh
8193fi
8194
8195
8196  as_lineno_1=$LINENO
8197  as_lineno_2=$LINENO
8198  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8199  test "x$as_lineno_1" != "x$as_lineno_2" &&
8200  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8201  # Find who we are.  Look in the path if we contain no path at all
8202  # relative or not.
8203  case $0 in
8204    *[\\/]* ) as_myself=$0 ;;
8205    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206for as_dir in $PATH
8207do
8208  IFS=$as_save_IFS
8209  test -z "$as_dir" && as_dir=.
8210  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8211done
8212
8213       ;;
8214  esac
8215  # We did not find ourselves, most probably we were run as `sh COMMAND'
8216  # in which case we are not to be found in the path.
8217  if test "x$as_myself" = x; then
8218    as_myself=$0
8219  fi
8220  if test ! -f "$as_myself"; then
8221    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8222echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8223   { (exit 1); exit 1; }; }
8224  fi
8225  case $CONFIG_SHELL in
8226  '')
8227    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8229do
8230  IFS=$as_save_IFS
8231  test -z "$as_dir" && as_dir=.
8232  for as_base in sh bash ksh sh5; do
8233	 case $as_dir in
8234	 /*)
8235	   if ("$as_dir/$as_base" -c '
8236  as_lineno_1=$LINENO
8237  as_lineno_2=$LINENO
8238  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8239  test "x$as_lineno_1" != "x$as_lineno_2" &&
8240  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8241	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8242	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8243	     CONFIG_SHELL=$as_dir/$as_base
8244	     export CONFIG_SHELL
8245	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8246	   fi;;
8247	 esac
8248       done
8249done
8250;;
8251  esac
8252
8253  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8254  # uniformly replaced by the line number.  The first 'sed' inserts a
8255  # line-number line before each line; the second 'sed' does the real
8256  # work.  The second script uses 'N' to pair each line-number line
8257  # with the numbered line, and appends trailing '-' during
8258  # substitution so that $LINENO is not a special case at line end.
8259  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8260  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8261  sed '=' <$as_myself |
8262    sed '
8263      N
8264      s,$,-,
8265      : loop
8266      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8267      t loop
8268      s,-$,,
8269      s,^['$as_cr_digits']*\n,,
8270    ' >$as_me.lineno &&
8271  chmod +x $as_me.lineno ||
8272    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8273echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8274   { (exit 1); exit 1; }; }
8275
8276  # Don't try to exec as it changes $[0], causing all sort of problems
8277  # (the dirname of $[0] is not the place where we might find the
8278  # original and so on.  Autoconf is especially sensible to this).
8279  . ./$as_me.lineno
8280  # Exit status is that of the last command.
8281  exit
8282}
8283
8284
8285case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8286  *c*,-n*) ECHO_N= ECHO_C='
8287' ECHO_T='	' ;;
8288  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8289  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8290esac
8291
8292if expr a : '\(a\)' >/dev/null 2>&1; then
8293  as_expr=expr
8294else
8295  as_expr=false
8296fi
8297
8298rm -f conf$$ conf$$.exe conf$$.file
8299echo >conf$$.file
8300if ln -s conf$$.file conf$$ 2>/dev/null; then
8301  # We could just check for DJGPP; but this test a) works b) is more generic
8302  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8303  if test -f conf$$.exe; then
8304    # Don't use ln at all; we don't have any links
8305    as_ln_s='cp -p'
8306  else
8307    as_ln_s='ln -s'
8308  fi
8309elif ln conf$$.file conf$$ 2>/dev/null; then
8310  as_ln_s=ln
8311else
8312  as_ln_s='cp -p'
8313fi
8314rm -f conf$$ conf$$.exe conf$$.file
8315
8316if mkdir -p . 2>/dev/null; then
8317  as_mkdir_p=:
8318else
8319  as_mkdir_p=false
8320fi
8321
8322as_executable_p="test -f"
8323
8324# Sed expression to map a string onto a valid CPP name.
8325as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8326
8327# Sed expression to map a string onto a valid variable name.
8328as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8329
8330
8331# IFS
8332# We need space, tab and new line, in precisely that order.
8333as_nl='
8334'
8335IFS=" 	$as_nl"
8336
8337# CDPATH.
8338$as_unset CDPATH
8339
8340exec 6>&1
8341
8342# Open the log real soon, to keep \$[0] and so on meaningful, and to
8343# report actual input values of CONFIG_FILES etc. instead of their
8344# values after options handling.  Logging --version etc. is OK.
8345exec 5>>config.log
8346{
8347  echo
8348  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8349## Running $as_me. ##
8350_ASBOX
8351} >&5
8352cat >&5 <<_CSEOF
8353
8354This file was extended by $as_me, which was
8355generated by GNU Autoconf 2.57.  Invocation command line was
8356
8357  CONFIG_FILES    = $CONFIG_FILES
8358  CONFIG_HEADERS  = $CONFIG_HEADERS
8359  CONFIG_LINKS    = $CONFIG_LINKS
8360  CONFIG_COMMANDS = $CONFIG_COMMANDS
8361  $ $0 $@
8362
8363_CSEOF
8364echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8365echo >&5
8366_ACEOF
8367
8368# Files that config.status was made for.
8369if test -n "$ac_config_files"; then
8370  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8371fi
8372
8373if test -n "$ac_config_headers"; then
8374  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8375fi
8376
8377if test -n "$ac_config_links"; then
8378  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8379fi
8380
8381if test -n "$ac_config_commands"; then
8382  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8383fi
8384
8385cat >>$CONFIG_STATUS <<\_ACEOF
8386
8387ac_cs_usage="\
8388\`$as_me' instantiates files from templates according to the
8389current configuration.
8390
8391Usage: $0 [OPTIONS] [FILE]...
8392
8393  -h, --help       print this help, then exit
8394  -V, --version    print version number, then exit
8395  -q, --quiet      do not print progress messages
8396  -d, --debug      don't remove temporary files
8397      --recheck    update $as_me by reconfiguring in the same conditions
8398  --file=FILE[:TEMPLATE]
8399                   instantiate the configuration file FILE
8400  --header=FILE[:TEMPLATE]
8401                   instantiate the configuration header FILE
8402
8403Configuration files:
8404$config_files
8405
8406Configuration headers:
8407$config_headers
8408
8409Configuration commands:
8410$config_commands
8411
8412Report bugs to <bug-autoconf@gnu.org>."
8413_ACEOF
8414
8415cat >>$CONFIG_STATUS <<_ACEOF
8416ac_cs_version="\\
8417config.status
8418configured by $0, generated by GNU Autoconf 2.57,
8419  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8420
8421Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8422Free Software Foundation, Inc.
8423This config.status script is free software; the Free Software Foundation
8424gives unlimited permission to copy, distribute and modify it."
8425srcdir=$srcdir
8426INSTALL="$INSTALL"
8427_ACEOF
8428
8429cat >>$CONFIG_STATUS <<\_ACEOF
8430# If no file are specified by the user, then we need to provide default
8431# value.  By we need to know if files were specified by the user.
8432ac_need_defaults=:
8433while test $# != 0
8434do
8435  case $1 in
8436  --*=*)
8437    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8438    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8439    ac_shift=:
8440    ;;
8441  -*)
8442    ac_option=$1
8443    ac_optarg=$2
8444    ac_shift=shift
8445    ;;
8446  *) # This is not an option, so the user has probably given explicit
8447     # arguments.
8448     ac_option=$1
8449     ac_need_defaults=false;;
8450  esac
8451
8452  case $ac_option in
8453  # Handling of the options.
8454_ACEOF
8455cat >>$CONFIG_STATUS <<\_ACEOF
8456  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8457    ac_cs_recheck=: ;;
8458  --version | --vers* | -V )
8459    echo "$ac_cs_version"; exit 0 ;;
8460  --he | --h)
8461    # Conflict between --help and --header
8462    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8463Try \`$0 --help' for more information." >&5
8464echo "$as_me: error: ambiguous option: $1
8465Try \`$0 --help' for more information." >&2;}
8466   { (exit 1); exit 1; }; };;
8467  --help | --hel | -h )
8468    echo "$ac_cs_usage"; exit 0 ;;
8469  --debug | --d* | -d )
8470    debug=: ;;
8471  --file | --fil | --fi | --f )
8472    $ac_shift
8473    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8474    ac_need_defaults=false;;
8475  --header | --heade | --head | --hea )
8476    $ac_shift
8477    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8478    ac_need_defaults=false;;
8479  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8480  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8481    ac_cs_silent=: ;;
8482
8483  # This is an error.
8484  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8485Try \`$0 --help' for more information." >&5
8486echo "$as_me: error: unrecognized option: $1
8487Try \`$0 --help' for more information." >&2;}
8488   { (exit 1); exit 1; }; } ;;
8489
8490  *) ac_config_targets="$ac_config_targets $1" ;;
8491
8492  esac
8493  shift
8494done
8495
8496ac_configure_extra_args=
8497
8498if $ac_cs_silent; then
8499  exec 6>/dev/null
8500  ac_configure_extra_args="$ac_configure_extra_args --silent"
8501fi
8502
8503_ACEOF
8504cat >>$CONFIG_STATUS <<_ACEOF
8505if \$ac_cs_recheck; then
8506  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8507  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8508fi
8509
8510_ACEOF
8511
8512cat >>$CONFIG_STATUS <<_ACEOF
8513#
8514# INIT-COMMANDS section.
8515#
8516
8517AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8518
8519_ACEOF
8520
8521
8522
8523cat >>$CONFIG_STATUS <<\_ACEOF
8524for ac_config_target in $ac_config_targets
8525do
8526  case "$ac_config_target" in
8527  # Handling of arguments.
8528  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8529  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8530  "magic/Makefile" ) CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
8531  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8532  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8533  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8534  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8535echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8536   { (exit 1); exit 1; }; };;
8537  esac
8538done
8539
8540# If the user did not use the arguments to specify the items to instantiate,
8541# then the envvar interface is used.  Set only those that are not.
8542# We use the long form for the default assignment because of an extremely
8543# bizarre bug on SunOS 4.1.3.
8544if $ac_need_defaults; then
8545  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8546  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8547  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8548fi
8549
8550# Have a temporary directory for convenience.  Make it in the build tree
8551# simply because there is no reason to put it here, and in addition,
8552# creating and moving files from /tmp can sometimes cause problems.
8553# Create a temporary directory, and hook for its removal unless debugging.
8554$debug ||
8555{
8556  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8557  trap '{ (exit 1); exit 1; }' 1 2 13 15
8558}
8559
8560# Create a (secure) tmp directory for tmp files.
8561
8562{
8563  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8564  test -n "$tmp" && test -d "$tmp"
8565}  ||
8566{
8567  tmp=./confstat$$-$RANDOM
8568  (umask 077 && mkdir $tmp)
8569} ||
8570{
8571   echo "$me: cannot create a temporary directory in ." >&2
8572   { (exit 1); exit 1; }
8573}
8574
8575_ACEOF
8576
8577cat >>$CONFIG_STATUS <<_ACEOF
8578
8579#
8580# CONFIG_FILES section.
8581#
8582
8583# No need to generate the scripts if there are no CONFIG_FILES.
8584# This happens for instance when ./config.status config.h
8585if test -n "\$CONFIG_FILES"; then
8586  # Protect against being on the right side of a sed subst in config.status.
8587  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8588   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8589s,@SHELL@,$SHELL,;t t
8590s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8591s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8592s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8593s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8594s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8595s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8596s,@exec_prefix@,$exec_prefix,;t t
8597s,@prefix@,$prefix,;t t
8598s,@program_transform_name@,$program_transform_name,;t t
8599s,@bindir@,$bindir,;t t
8600s,@sbindir@,$sbindir,;t t
8601s,@libexecdir@,$libexecdir,;t t
8602s,@datadir@,$datadir,;t t
8603s,@sysconfdir@,$sysconfdir,;t t
8604s,@sharedstatedir@,$sharedstatedir,;t t
8605s,@localstatedir@,$localstatedir,;t t
8606s,@libdir@,$libdir,;t t
8607s,@includedir@,$includedir,;t t
8608s,@oldincludedir@,$oldincludedir,;t t
8609s,@infodir@,$infodir,;t t
8610s,@mandir@,$mandir,;t t
8611s,@build_alias@,$build_alias,;t t
8612s,@host_alias@,$host_alias,;t t
8613s,@target_alias@,$target_alias,;t t
8614s,@DEFS@,$DEFS,;t t
8615s,@ECHO_C@,$ECHO_C,;t t
8616s,@ECHO_N@,$ECHO_N,;t t
8617s,@ECHO_T@,$ECHO_T,;t t
8618s,@LIBS@,$LIBS,;t t
8619s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8620s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8621s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8622s,@CYGPATH_W@,$CYGPATH_W,;t t
8623s,@PACKAGE@,$PACKAGE,;t t
8624s,@VERSION@,$VERSION,;t t
8625s,@ACLOCAL@,$ACLOCAL,;t t
8626s,@AUTOCONF@,$AUTOCONF,;t t
8627s,@AUTOMAKE@,$AUTOMAKE,;t t
8628s,@AUTOHEADER@,$AUTOHEADER,;t t
8629s,@MAKEINFO@,$MAKEINFO,;t t
8630s,@AMTAR@,$AMTAR,;t t
8631s,@install_sh@,$install_sh,;t t
8632s,@STRIP@,$STRIP,;t t
8633s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8634s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8635s,@AWK@,$AWK,;t t
8636s,@SET_MAKE@,$SET_MAKE,;t t
8637s,@am__leading_dot@,$am__leading_dot,;t t
8638s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8639s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8640s,@MAINT@,$MAINT,;t t
8641s,@fsect@,$fsect,;t t
8642s,@FSECT5_TRUE@,$FSECT5_TRUE,;t t
8643s,@FSECT5_FALSE@,$FSECT5_FALSE,;t t
8644s,@CC@,$CC,;t t
8645s,@CFLAGS@,$CFLAGS,;t t
8646s,@LDFLAGS@,$LDFLAGS,;t t
8647s,@CPPFLAGS@,$CPPFLAGS,;t t
8648s,@ac_ct_CC@,$ac_ct_CC,;t t
8649s,@EXEEXT@,$EXEEXT,;t t
8650s,@OBJEXT@,$OBJEXT,;t t
8651s,@DEPDIR@,$DEPDIR,;t t
8652s,@am__include@,$am__include,;t t
8653s,@am__quote@,$am__quote,;t t
8654s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8655s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8656s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8657s,@CCDEPMODE@,$CCDEPMODE,;t t
8658s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8659s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8660s,@LN_S@,$LN_S,;t t
8661s,@build@,$build,;t t
8662s,@build_cpu@,$build_cpu,;t t
8663s,@build_vendor@,$build_vendor,;t t
8664s,@build_os@,$build_os,;t t
8665s,@host@,$host,;t t
8666s,@host_cpu@,$host_cpu,;t t
8667s,@host_vendor@,$host_vendor,;t t
8668s,@host_os@,$host_os,;t t
8669s,@RANLIB@,$RANLIB,;t t
8670s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8671s,@LIBTOOL@,$LIBTOOL,;t t
8672s,@CPP@,$CPP,;t t
8673s,@EGREP@,$EGREP,;t t
8674s,@LIBOBJS@,$LIBOBJS,;t t
8675s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8676CEOF
8677
8678_ACEOF
8679
8680  cat >>$CONFIG_STATUS <<\_ACEOF
8681  # Split the substitutions into bite-sized pieces for seds with
8682  # small command number limits, like on Digital OSF/1 and HP-UX.
8683  ac_max_sed_lines=48
8684  ac_sed_frag=1 # Number of current file.
8685  ac_beg=1 # First line for current file.
8686  ac_end=$ac_max_sed_lines # Line after last line for current file.
8687  ac_more_lines=:
8688  ac_sed_cmds=
8689  while $ac_more_lines; do
8690    if test $ac_beg -gt 1; then
8691      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8692    else
8693      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8694    fi
8695    if test ! -s $tmp/subs.frag; then
8696      ac_more_lines=false
8697    else
8698      # The purpose of the label and of the branching condition is to
8699      # speed up the sed processing (if there are no `@' at all, there
8700      # is no need to browse any of the substitutions).
8701      # These are the two extra sed commands mentioned above.
8702      (echo ':t
8703  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8704      if test -z "$ac_sed_cmds"; then
8705  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8706      else
8707  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8708      fi
8709      ac_sed_frag=`expr $ac_sed_frag + 1`
8710      ac_beg=$ac_end
8711      ac_end=`expr $ac_end + $ac_max_sed_lines`
8712    fi
8713  done
8714  if test -z "$ac_sed_cmds"; then
8715    ac_sed_cmds=cat
8716  fi
8717fi # test -n "$CONFIG_FILES"
8718
8719_ACEOF
8720cat >>$CONFIG_STATUS <<\_ACEOF
8721for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8722  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8723  case $ac_file in
8724  - | *:- | *:-:* ) # input from stdin
8725        cat >$tmp/stdin
8726        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8727        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8728  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8729        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8730  * )   ac_file_in=$ac_file.in ;;
8731  esac
8732
8733  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8734  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8736         X"$ac_file" : 'X\(//\)[^/]' \| \
8737         X"$ac_file" : 'X\(//\)$' \| \
8738         X"$ac_file" : 'X\(/\)' \| \
8739         .     : '\(.\)' 2>/dev/null ||
8740echo X"$ac_file" |
8741    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8742  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8743  	  /^X\(\/\/\)$/{ s//\1/; q; }
8744  	  /^X\(\/\).*/{ s//\1/; q; }
8745  	  s/.*/./; q'`
8746  { if $as_mkdir_p; then
8747    mkdir -p "$ac_dir"
8748  else
8749    as_dir="$ac_dir"
8750    as_dirs=
8751    while test ! -d "$as_dir"; do
8752      as_dirs="$as_dir $as_dirs"
8753      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8755         X"$as_dir" : 'X\(//\)[^/]' \| \
8756         X"$as_dir" : 'X\(//\)$' \| \
8757         X"$as_dir" : 'X\(/\)' \| \
8758         .     : '\(.\)' 2>/dev/null ||
8759echo X"$as_dir" |
8760    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8761  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8762  	  /^X\(\/\/\)$/{ s//\1/; q; }
8763  	  /^X\(\/\).*/{ s//\1/; q; }
8764  	  s/.*/./; q'`
8765    done
8766    test ! -n "$as_dirs" || mkdir $as_dirs
8767  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8768echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8769   { (exit 1); exit 1; }; }; }
8770
8771  ac_builddir=.
8772
8773if test "$ac_dir" != .; then
8774  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8775  # A "../" for each directory in $ac_dir_suffix.
8776  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8777else
8778  ac_dir_suffix= ac_top_builddir=
8779fi
8780
8781case $srcdir in
8782  .)  # No --srcdir option.  We are building in place.
8783    ac_srcdir=.
8784    if test -z "$ac_top_builddir"; then
8785       ac_top_srcdir=.
8786    else
8787       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8788    fi ;;
8789  [\\/]* | ?:[\\/]* )  # Absolute path.
8790    ac_srcdir=$srcdir$ac_dir_suffix;
8791    ac_top_srcdir=$srcdir ;;
8792  *) # Relative path.
8793    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8794    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8795esac
8796# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8797# absolute.
8798ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8799ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8800ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8801ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8802
8803
8804  case $INSTALL in
8805  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8806  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8807  esac
8808
8809  if test x"$ac_file" != x-; then
8810    { echo "$as_me:$LINENO: creating $ac_file" >&5
8811echo "$as_me: creating $ac_file" >&6;}
8812    rm -f "$ac_file"
8813  fi
8814  # Let's still pretend it is `configure' which instantiates (i.e., don't
8815  # use $as_me), people would be surprised to read:
8816  #    /* config.h.  Generated by config.status.  */
8817  if test x"$ac_file" = x-; then
8818    configure_input=
8819  else
8820    configure_input="$ac_file.  "
8821  fi
8822  configure_input=$configure_input"Generated from `echo $ac_file_in |
8823                                     sed 's,.*/,,'` by configure."
8824
8825  # First look for the input files in the build tree, otherwise in the
8826  # src tree.
8827  ac_file_inputs=`IFS=:
8828    for f in $ac_file_in; do
8829      case $f in
8830      -) echo $tmp/stdin ;;
8831      [\\/$]*)
8832         # Absolute (can't be DOS-style, as IFS=:)
8833         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8834echo "$as_me: error: cannot find input file: $f" >&2;}
8835   { (exit 1); exit 1; }; }
8836         echo $f;;
8837      *) # Relative
8838         if test -f "$f"; then
8839           # Build tree
8840           echo $f
8841         elif test -f "$srcdir/$f"; then
8842           # Source tree
8843           echo $srcdir/$f
8844         else
8845           # /dev/null tree
8846           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8847echo "$as_me: error: cannot find input file: $f" >&2;}
8848   { (exit 1); exit 1; }; }
8849         fi;;
8850      esac
8851    done` || { (exit 1); exit 1; }
8852_ACEOF
8853cat >>$CONFIG_STATUS <<_ACEOF
8854  sed "$ac_vpsub
8855$extrasub
8856_ACEOF
8857cat >>$CONFIG_STATUS <<\_ACEOF
8858:t
8859/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8860s,@configure_input@,$configure_input,;t t
8861s,@srcdir@,$ac_srcdir,;t t
8862s,@abs_srcdir@,$ac_abs_srcdir,;t t
8863s,@top_srcdir@,$ac_top_srcdir,;t t
8864s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8865s,@builddir@,$ac_builddir,;t t
8866s,@abs_builddir@,$ac_abs_builddir,;t t
8867s,@top_builddir@,$ac_top_builddir,;t t
8868s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8869s,@INSTALL@,$ac_INSTALL,;t t
8870" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8871  rm -f $tmp/stdin
8872  if test x"$ac_file" != x-; then
8873    mv $tmp/out $ac_file
8874  else
8875    cat $tmp/out
8876    rm -f $tmp/out
8877  fi
8878
8879done
8880_ACEOF
8881cat >>$CONFIG_STATUS <<\_ACEOF
8882
8883#
8884# CONFIG_HEADER section.
8885#
8886
8887# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8888# NAME is the cpp macro being defined and VALUE is the value it is being given.
8889#
8890# ac_d sets the value in "#define NAME VALUE" lines.
8891ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
8892ac_dB='[ 	].*$,\1#\2'
8893ac_dC=' '
8894ac_dD=',;t'
8895# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8896ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
8897ac_uB='$,\1#\2define\3'
8898ac_uC=' '
8899ac_uD=',;t'
8900
8901for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8902  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8903  case $ac_file in
8904  - | *:- | *:-:* ) # input from stdin
8905        cat >$tmp/stdin
8906        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8907        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8908  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8909        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8910  * )   ac_file_in=$ac_file.in ;;
8911  esac
8912
8913  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8914echo "$as_me: creating $ac_file" >&6;}
8915
8916  # First look for the input files in the build tree, otherwise in the
8917  # src tree.
8918  ac_file_inputs=`IFS=:
8919    for f in $ac_file_in; do
8920      case $f in
8921      -) echo $tmp/stdin ;;
8922      [\\/$]*)
8923         # Absolute (can't be DOS-style, as IFS=:)
8924         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8925echo "$as_me: error: cannot find input file: $f" >&2;}
8926   { (exit 1); exit 1; }; }
8927         echo $f;;
8928      *) # Relative
8929         if test -f "$f"; then
8930           # Build tree
8931           echo $f
8932         elif test -f "$srcdir/$f"; then
8933           # Source tree
8934           echo $srcdir/$f
8935         else
8936           # /dev/null tree
8937           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8938echo "$as_me: error: cannot find input file: $f" >&2;}
8939   { (exit 1); exit 1; }; }
8940         fi;;
8941      esac
8942    done` || { (exit 1); exit 1; }
8943  # Remove the trailing spaces.
8944  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
8945
8946_ACEOF
8947
8948# Transform confdefs.h into two sed scripts, `conftest.defines' and
8949# `conftest.undefs', that substitutes the proper values into
8950# config.h.in to produce config.h.  The first handles `#define'
8951# templates, and the second `#undef' templates.
8952# And first: Protect against being on the right side of a sed subst in
8953# config.status.  Protect against being in an unquoted here document
8954# in config.status.
8955rm -f conftest.defines conftest.undefs
8956# Using a here document instead of a string reduces the quoting nightmare.
8957# Putting comments in sed scripts is not portable.
8958#
8959# `end' is used to avoid that the second main sed command (meant for
8960# 0-ary CPP macros) applies to n-ary macro definitions.
8961# See the Autoconf documentation for `clear'.
8962cat >confdef2sed.sed <<\_ACEOF
8963s/[\\&,]/\\&/g
8964s,[\\$`],\\&,g
8965t clear
8966: clear
8967s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8968t end
8969s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8970: end
8971_ACEOF
8972# If some macros were called several times there might be several times
8973# the same #defines, which is useless.  Nevertheless, we may not want to
8974# sort them, since we want the *last* AC-DEFINE to be honored.
8975uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8976sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8977rm -f confdef2sed.sed
8978
8979# This sed command replaces #undef with comments.  This is necessary, for
8980# example, in the case of _POSIX_SOURCE, which is predefined and required
8981# on some systems where configure will not decide to define it.
8982cat >>conftest.undefs <<\_ACEOF
8983s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8984_ACEOF
8985
8986# Break up conftest.defines because some shells have a limit on the size
8987# of here documents, and old seds have small limits too (100 cmds).
8988echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8989echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8990echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8991echo '  :' >>$CONFIG_STATUS
8992rm -f conftest.tail
8993while grep . conftest.defines >/dev/null
8994do
8995  # Write a limited-size here document to $tmp/defines.sed.
8996  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8997  # Speed up: don't consider the non `#define' lines.
8998  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
8999  # Work around the forget-to-reset-the-flag bug.
9000  echo 't clr' >>$CONFIG_STATUS
9001  echo ': clr' >>$CONFIG_STATUS
9002  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9003  echo 'CEOF
9004  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9005  rm -f $tmp/in
9006  mv $tmp/out $tmp/in
9007' >>$CONFIG_STATUS
9008  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9009  rm -f conftest.defines
9010  mv conftest.tail conftest.defines
9011done
9012rm -f conftest.defines
9013echo '  fi # grep' >>$CONFIG_STATUS
9014echo >>$CONFIG_STATUS
9015
9016# Break up conftest.undefs because some shells have a limit on the size
9017# of here documents, and old seds have small limits too (100 cmds).
9018echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9019rm -f conftest.tail
9020while grep . conftest.undefs >/dev/null
9021do
9022  # Write a limited-size here document to $tmp/undefs.sed.
9023  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9024  # Speed up: don't consider the non `#undef'
9025  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
9026  # Work around the forget-to-reset-the-flag bug.
9027  echo 't clr' >>$CONFIG_STATUS
9028  echo ': clr' >>$CONFIG_STATUS
9029  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9030  echo 'CEOF
9031  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9032  rm -f $tmp/in
9033  mv $tmp/out $tmp/in
9034' >>$CONFIG_STATUS
9035  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9036  rm -f conftest.undefs
9037  mv conftest.tail conftest.undefs
9038done
9039rm -f conftest.undefs
9040
9041cat >>$CONFIG_STATUS <<\_ACEOF
9042  # Let's still pretend it is `configure' which instantiates (i.e., don't
9043  # use $as_me), people would be surprised to read:
9044  #    /* config.h.  Generated by config.status.  */
9045  if test x"$ac_file" = x-; then
9046    echo "/* Generated by configure.  */" >$tmp/config.h
9047  else
9048    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9049  fi
9050  cat $tmp/in >>$tmp/config.h
9051  rm -f $tmp/in
9052  if test x"$ac_file" != x-; then
9053    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9054      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9055echo "$as_me: $ac_file is unchanged" >&6;}
9056    else
9057      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9058$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9059         X"$ac_file" : 'X\(//\)[^/]' \| \
9060         X"$ac_file" : 'X\(//\)$' \| \
9061         X"$ac_file" : 'X\(/\)' \| \
9062         .     : '\(.\)' 2>/dev/null ||
9063echo X"$ac_file" |
9064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9065  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9066  	  /^X\(\/\/\)$/{ s//\1/; q; }
9067  	  /^X\(\/\).*/{ s//\1/; q; }
9068  	  s/.*/./; q'`
9069      { if $as_mkdir_p; then
9070    mkdir -p "$ac_dir"
9071  else
9072    as_dir="$ac_dir"
9073    as_dirs=
9074    while test ! -d "$as_dir"; do
9075      as_dirs="$as_dir $as_dirs"
9076      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9078         X"$as_dir" : 'X\(//\)[^/]' \| \
9079         X"$as_dir" : 'X\(//\)$' \| \
9080         X"$as_dir" : 'X\(/\)' \| \
9081         .     : '\(.\)' 2>/dev/null ||
9082echo X"$as_dir" |
9083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9084  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9085  	  /^X\(\/\/\)$/{ s//\1/; q; }
9086  	  /^X\(\/\).*/{ s//\1/; q; }
9087  	  s/.*/./; q'`
9088    done
9089    test ! -n "$as_dirs" || mkdir $as_dirs
9090  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9091echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9092   { (exit 1); exit 1; }; }; }
9093
9094      rm -f $ac_file
9095      mv $tmp/config.h $ac_file
9096    fi
9097  else
9098    cat $tmp/config.h
9099    rm -f $tmp/config.h
9100  fi
9101# Compute $ac_file's index in $config_headers.
9102_am_stamp_count=1
9103for _am_header in $config_headers :; do
9104  case $_am_header in
9105    $ac_file | $ac_file:* )
9106      break ;;
9107    * )
9108      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9109  esac
9110done
9111echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9112$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9113         X$ac_file : 'X\(//\)[^/]' \| \
9114         X$ac_file : 'X\(//\)$' \| \
9115         X$ac_file : 'X\(/\)' \| \
9116         .     : '\(.\)' 2>/dev/null ||
9117echo X$ac_file |
9118    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9119  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9120  	  /^X\(\/\/\)$/{ s//\1/; q; }
9121  	  /^X\(\/\).*/{ s//\1/; q; }
9122  	  s/.*/./; q'`/stamp-h$_am_stamp_count
9123done
9124_ACEOF
9125cat >>$CONFIG_STATUS <<\_ACEOF
9126
9127#
9128# CONFIG_COMMANDS section.
9129#
9130for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9131  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9132  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9133  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9134$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9135         X"$ac_dest" : 'X\(//\)[^/]' \| \
9136         X"$ac_dest" : 'X\(//\)$' \| \
9137         X"$ac_dest" : 'X\(/\)' \| \
9138         .     : '\(.\)' 2>/dev/null ||
9139echo X"$ac_dest" |
9140    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9141  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9142  	  /^X\(\/\/\)$/{ s//\1/; q; }
9143  	  /^X\(\/\).*/{ s//\1/; q; }
9144  	  s/.*/./; q'`
9145  ac_builddir=.
9146
9147if test "$ac_dir" != .; then
9148  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9149  # A "../" for each directory in $ac_dir_suffix.
9150  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9151else
9152  ac_dir_suffix= ac_top_builddir=
9153fi
9154
9155case $srcdir in
9156  .)  # No --srcdir option.  We are building in place.
9157    ac_srcdir=.
9158    if test -z "$ac_top_builddir"; then
9159       ac_top_srcdir=.
9160    else
9161       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9162    fi ;;
9163  [\\/]* | ?:[\\/]* )  # Absolute path.
9164    ac_srcdir=$srcdir$ac_dir_suffix;
9165    ac_top_srcdir=$srcdir ;;
9166  *) # Relative path.
9167    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9168    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9169esac
9170# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9171# absolute.
9172ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9173ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9174ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9175ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9176
9177
9178  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9179echo "$as_me: executing $ac_dest commands" >&6;}
9180  case $ac_dest in
9181    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9182  # Strip MF so we end up with the name of the file.
9183  mf=`echo "$mf" | sed -e 's/:.*$//'`
9184  # Check whether this is an Automake generated Makefile or not.
9185  # We used to match only the files named `Makefile.in', but
9186  # some people rename them; so instead we look at the file content.
9187  # Grep'ing the first line is not enough: some people post-process
9188  # each Makefile.in and add a new line on top of each file to say so.
9189  # So let's grep whole file.
9190  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9191    dirpart=`(dirname "$mf") 2>/dev/null ||
9192$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9193         X"$mf" : 'X\(//\)[^/]' \| \
9194         X"$mf" : 'X\(//\)$' \| \
9195         X"$mf" : 'X\(/\)' \| \
9196         .     : '\(.\)' 2>/dev/null ||
9197echo X"$mf" |
9198    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9199  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9200  	  /^X\(\/\/\)$/{ s//\1/; q; }
9201  	  /^X\(\/\).*/{ s//\1/; q; }
9202  	  s/.*/./; q'`
9203  else
9204    continue
9205  fi
9206  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9207  # Extract the definition of DEP_FILES from the Makefile without
9208  # running `make'.
9209  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9210  test -z "$DEPDIR" && continue
9211  # When using ansi2knr, U may be empty or an underscore; expand it
9212  U=`sed -n -e '/^U = / s///p' < "$mf"`
9213  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9214  # We invoke sed twice because it is the simplest approach to
9215  # changing $(DEPDIR) to its actual value in the expansion.
9216  for file in `sed -n -e '
9217    /^DEP_FILES = .*\\\\$/ {
9218      s/^DEP_FILES = //
9219      :loop
9220	s/\\\\$//
9221	p
9222	n
9223	/\\\\$/ b loop
9224      p
9225    }
9226    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9227       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9228    # Make sure the directory exists.
9229    test -f "$dirpart/$file" && continue
9230    fdir=`(dirname "$file") 2>/dev/null ||
9231$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9232         X"$file" : 'X\(//\)[^/]' \| \
9233         X"$file" : 'X\(//\)$' \| \
9234         X"$file" : 'X\(/\)' \| \
9235         .     : '\(.\)' 2>/dev/null ||
9236echo X"$file" |
9237    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9238  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9239  	  /^X\(\/\/\)$/{ s//\1/; q; }
9240  	  /^X\(\/\).*/{ s//\1/; q; }
9241  	  s/.*/./; q'`
9242    { if $as_mkdir_p; then
9243    mkdir -p $dirpart/$fdir
9244  else
9245    as_dir=$dirpart/$fdir
9246    as_dirs=
9247    while test ! -d "$as_dir"; do
9248      as_dirs="$as_dir $as_dirs"
9249      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9251         X"$as_dir" : 'X\(//\)[^/]' \| \
9252         X"$as_dir" : 'X\(//\)$' \| \
9253         X"$as_dir" : 'X\(/\)' \| \
9254         .     : '\(.\)' 2>/dev/null ||
9255echo X"$as_dir" |
9256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9257  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9258  	  /^X\(\/\/\)$/{ s//\1/; q; }
9259  	  /^X\(\/\).*/{ s//\1/; q; }
9260  	  s/.*/./; q'`
9261    done
9262    test ! -n "$as_dirs" || mkdir $as_dirs
9263  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9264echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9265   { (exit 1); exit 1; }; }; }
9266
9267    # echo "creating $dirpart/$file"
9268    echo '# dummy' > "$dirpart/$file"
9269  done
9270done
9271 ;;
9272  esac
9273done
9274_ACEOF
9275
9276cat >>$CONFIG_STATUS <<\_ACEOF
9277
9278{ (exit 0); exit 0; }
9279_ACEOF
9280chmod +x $CONFIG_STATUS
9281ac_clean_files=$ac_clean_files_save
9282
9283
9284# configure is writing to config.log, and then calls config.status.
9285# config.status does its own redirection, appending to config.log.
9286# Unfortunately, on DOS this fails, as config.log is still kept open
9287# by configure, so config.status won't be able to write to it; its
9288# output is simply discarded.  So we exec the FD to /dev/null,
9289# effectively closing config.log, so it can be properly (re)opened and
9290# appended to by config.status.  When coming back to configure, we
9291# need to make the FD available again.
9292if test "$no_create" != yes; then
9293  ac_cs_success=:
9294  ac_config_status_args=
9295  test "$silent" = yes &&
9296    ac_config_status_args="$ac_config_status_args --quiet"
9297  exec 5>/dev/null
9298  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9299  exec 5>>config.log
9300  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9301  # would make configure fail if this is the last instruction.
9302  $ac_cs_success || { (exit 1); exit 1; }
9303fi
9304
9305