configure revision 1.40
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57 for libnbcompat noversion.
4#
5# Report bugs to <lib-bug-people@netbsd.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" 	$as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
256ac_config_libobj_dir=.
257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete.  It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME='libnbcompat'
270PACKAGE_TARNAME='libnbcompat'
271PACKAGE_VERSION='noversion'
272PACKAGE_STRING='libnbcompat noversion'
273PACKAGE_BUGREPORT='lib-bug-people@netbsd.org'
274
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 BSHELL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP ALLOCA LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671              localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711         X"$0" : 'X\(//\)[^/]' \| \
712         X"$0" : 'X\(//\)$' \| \
713         X"$0" : 'X\(/\)' \| \
714         .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806                          [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                          [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833_ACEOF
834fi
835
836if test -n "$ac_init_help"; then
837  case $ac_init_help in
838     short | recursive ) echo "Configuration of libnbcompat noversion:";;
839   esac
840  cat <<\_ACEOF
841
842Some influential environment variables:
843  CC          C compiler command
844  CFLAGS      C compiler flags
845  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
846              nonstandard directory <lib dir>
847  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
848              headers in a nonstandard directory <include dir>
849  CPP         C preprocessor
850
851Use these variables to override the choices made by `configure' or to help
852it to find libraries and programs with nonstandard names/locations.
853
854Report bugs to <lib-bug-people@netbsd.org>.
855_ACEOF
856fi
857
858if test "$ac_init_help" = "recursive"; then
859  # If there are subdirs, report their specific --help.
860  ac_popdir=`pwd`
861  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
862    test -d $ac_dir || continue
863    ac_builddir=.
864
865if test "$ac_dir" != .; then
866  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
867  # A "../" for each directory in $ac_dir_suffix.
868  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
869else
870  ac_dir_suffix= ac_top_builddir=
871fi
872
873case $srcdir in
874  .)  # No --srcdir option.  We are building in place.
875    ac_srcdir=.
876    if test -z "$ac_top_builddir"; then
877       ac_top_srcdir=.
878    else
879       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
880    fi ;;
881  [\\/]* | ?:[\\/]* )  # Absolute path.
882    ac_srcdir=$srcdir$ac_dir_suffix;
883    ac_top_srcdir=$srcdir ;;
884  *) # Relative path.
885    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
886    ac_top_srcdir=$ac_top_builddir$srcdir ;;
887esac
888# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
889# absolute.
890ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
891ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
892ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
893ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
894
895    cd $ac_dir
896    # Check for guested configure; otherwise get Cygnus style configure.
897    if test -f $ac_srcdir/configure.gnu; then
898      echo
899      $SHELL $ac_srcdir/configure.gnu  --help=recursive
900    elif test -f $ac_srcdir/configure; then
901      echo
902      $SHELL $ac_srcdir/configure  --help=recursive
903    elif test -f $ac_srcdir/configure.ac ||
904           test -f $ac_srcdir/configure.in; then
905      echo
906      $ac_configure --help
907    else
908      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
909    fi
910    cd $ac_popdir
911  done
912fi
913
914test -n "$ac_init_help" && exit 0
915if $ac_init_version; then
916  cat <<\_ACEOF
917libnbcompat configure noversion
918generated by GNU Autoconf 2.57
919
920Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
921Free Software Foundation, Inc.
922This configure script is free software; the Free Software Foundation
923gives unlimited permission to copy, distribute and modify it.
924_ACEOF
925  exit 0
926fi
927exec 5>config.log
928cat >&5 <<_ACEOF
929This file contains any messages produced by compilers while
930running configure, to aid debugging if configure makes a mistake.
931
932It was created by libnbcompat $as_me noversion, which was
933generated by GNU Autoconf 2.57.  Invocation command line was
934
935  $ $0 $@
936
937_ACEOF
938{
939cat <<_ASUNAME
940## --------- ##
941## Platform. ##
942## --------- ##
943
944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
945uname -m = `(uname -m) 2>/dev/null || echo unknown`
946uname -r = `(uname -r) 2>/dev/null || echo unknown`
947uname -s = `(uname -s) 2>/dev/null || echo unknown`
948uname -v = `(uname -v) 2>/dev/null || echo unknown`
949
950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
951/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
952
953/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
954/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
956hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
957/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
958/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
959/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
960
961_ASUNAME
962
963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
964for as_dir in $PATH
965do
966  IFS=$as_save_IFS
967  test -z "$as_dir" && as_dir=.
968  echo "PATH: $as_dir"
969done
970
971} >&5
972
973cat >&5 <<_ACEOF
974
975
976## ----------- ##
977## Core tests. ##
978## ----------- ##
979
980_ACEOF
981
982
983# Keep a trace of the command line.
984# Strip out --no-create and --no-recursion so they do not pile up.
985# Strip out --silent because we don't want to record it for future runs.
986# Also quote any args containing shell meta-characters.
987# Make two passes to allow for proper duplicate-argument suppression.
988ac_configure_args=
989ac_configure_args0=
990ac_configure_args1=
991ac_sep=
992ac_must_keep_next=false
993for ac_pass in 1 2
994do
995  for ac_arg
996  do
997    case $ac_arg in
998    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
999    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000    | -silent | --silent | --silen | --sile | --sil)
1001      continue ;;
1002    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1004    esac
1005    case $ac_pass in
1006    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1007    2)
1008      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1009      if test $ac_must_keep_next = true; then
1010        ac_must_keep_next=false # Got value, back to normal.
1011      else
1012        case $ac_arg in
1013          *=* | --config-cache | -C | -disable-* | --disable-* \
1014          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1015          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1016          | -with-* | --with-* | -without-* | --without-* | --x)
1017            case "$ac_configure_args0 " in
1018              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1019            esac
1020            ;;
1021          -* ) ac_must_keep_next=true ;;
1022        esac
1023      fi
1024      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1025      # Get rid of the leading space.
1026      ac_sep=" "
1027      ;;
1028    esac
1029  done
1030done
1031$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1032$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1033
1034# When interrupted or exit'd, cleanup temporary files, and complete
1035# config.log.  We remove comments because anyway the quotes in there
1036# would cause problems or look ugly.
1037# WARNING: Be sure not to use single quotes in there, as some shells,
1038# such as our DU 5.0 friend, will then `close' the trap.
1039trap 'exit_status=$?
1040  # Save into config.log some information that might help in debugging.
1041  {
1042    echo
1043
1044    cat <<\_ASBOX
1045## ---------------- ##
1046## Cache variables. ##
1047## ---------------- ##
1048_ASBOX
1049    echo
1050    # The following way of writing the cache mishandles newlines in values,
1051{
1052  (set) 2>&1 |
1053    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1054    *ac_space=\ *)
1055      sed -n \
1056        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1057    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1058      ;;
1059    *)
1060      sed -n \
1061        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1062      ;;
1063    esac;
1064}
1065    echo
1066
1067    cat <<\_ASBOX
1068## ----------------- ##
1069## Output variables. ##
1070## ----------------- ##
1071_ASBOX
1072    echo
1073    for ac_var in $ac_subst_vars
1074    do
1075      eval ac_val=$`echo $ac_var`
1076      echo "$ac_var='"'"'$ac_val'"'"'"
1077    done | sort
1078    echo
1079
1080    if test -n "$ac_subst_files"; then
1081      cat <<\_ASBOX
1082## ------------- ##
1083## Output files. ##
1084## ------------- ##
1085_ASBOX
1086      echo
1087      for ac_var in $ac_subst_files
1088      do
1089	eval ac_val=$`echo $ac_var`
1090        echo "$ac_var='"'"'$ac_val'"'"'"
1091      done | sort
1092      echo
1093    fi
1094
1095    if test -s confdefs.h; then
1096      cat <<\_ASBOX
1097## ----------- ##
1098## confdefs.h. ##
1099## ----------- ##
1100_ASBOX
1101      echo
1102      sed "/^$/d" confdefs.h | sort
1103      echo
1104    fi
1105    test "$ac_signal" != 0 &&
1106      echo "$as_me: caught signal $ac_signal"
1107    echo "$as_me: exit $exit_status"
1108  } >&5
1109  rm -f core core.* *.core &&
1110  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1111    exit $exit_status
1112     ' 0
1113for ac_signal in 1 2 13 15; do
1114  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1115done
1116ac_signal=0
1117
1118# confdefs.h avoids OS command line length limits that DEFS can exceed.
1119rm -rf conftest* confdefs.h
1120# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1121echo >confdefs.h
1122
1123# Predefined preprocessor variables.
1124
1125cat >>confdefs.h <<_ACEOF
1126#define PACKAGE_NAME "$PACKAGE_NAME"
1127_ACEOF
1128
1129
1130cat >>confdefs.h <<_ACEOF
1131#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1132_ACEOF
1133
1134
1135cat >>confdefs.h <<_ACEOF
1136#define PACKAGE_VERSION "$PACKAGE_VERSION"
1137_ACEOF
1138
1139
1140cat >>confdefs.h <<_ACEOF
1141#define PACKAGE_STRING "$PACKAGE_STRING"
1142_ACEOF
1143
1144
1145cat >>confdefs.h <<_ACEOF
1146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1147_ACEOF
1148
1149
1150# Let the site file select an alternate cache file if it wants to.
1151# Prefer explicitly selected file to automatically selected ones.
1152if test -z "$CONFIG_SITE"; then
1153  if test "x$prefix" != xNONE; then
1154    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155  else
1156    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1157  fi
1158fi
1159for ac_site_file in $CONFIG_SITE; do
1160  if test -r "$ac_site_file"; then
1161    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162echo "$as_me: loading site script $ac_site_file" >&6;}
1163    sed 's/^/| /' "$ac_site_file" >&5
1164    . "$ac_site_file"
1165  fi
1166done
1167
1168if test -r "$cache_file"; then
1169  # Some versions of bash will fail to source /dev/null (special
1170  # files actually), so we avoid doing that.
1171  if test -f "$cache_file"; then
1172    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173echo "$as_me: loading cache $cache_file" >&6;}
1174    case $cache_file in
1175      [\\/]* | ?:[\\/]* ) . $cache_file;;
1176      *)                      . ./$cache_file;;
1177    esac
1178  fi
1179else
1180  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1181echo "$as_me: creating cache $cache_file" >&6;}
1182  >$cache_file
1183fi
1184
1185# Check that the precious variables saved in the cache have kept the same
1186# value.
1187ac_cache_corrupted=false
1188for ac_var in `(set) 2>&1 |
1189               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1190  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191  eval ac_new_set=\$ac_env_${ac_var}_set
1192  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193  eval ac_new_val="\$ac_env_${ac_var}_value"
1194  case $ac_old_set,$ac_new_set in
1195    set,)
1196      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1197echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1198      ac_cache_corrupted=: ;;
1199    ,set)
1200      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1201echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1202      ac_cache_corrupted=: ;;
1203    ,);;
1204    *)
1205      if test "x$ac_old_val" != "x$ac_new_val"; then
1206        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1207echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1208        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1209echo "$as_me:   former value:  $ac_old_val" >&2;}
1210        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1211echo "$as_me:   current value: $ac_new_val" >&2;}
1212        ac_cache_corrupted=:
1213      fi;;
1214  esac
1215  # Pass precious variables to config.status.
1216  if test "$ac_new_set" = set; then
1217    case $ac_new_val in
1218    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220    *) ac_arg=$ac_var=$ac_new_val ;;
1221    esac
1222    case " $ac_configure_args " in
1223      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1224      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1225    esac
1226  fi
1227done
1228if $ac_cache_corrupted; then
1229  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1230echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1231  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1232echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1233   { (exit 1); exit 1; }; }
1234fi
1235
1236ac_ext=c
1237ac_cpp='$CPP $CPPFLAGS'
1238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1240ac_compiler_gnu=$ac_cv_c_compiler_gnu
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268          ac_config_headers="$ac_config_headers config.h"
1269
1270          ac_config_files="$ac_config_files defs.mk"
1271
1272
1273# Extract the first word of "sh", so it can be a program name with args.
1274set dummy sh; ac_word=$2
1275echo "$as_me:$LINENO: checking for $ac_word" >&5
1276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1277if test "${ac_cv_path_BSHELL+set}" = set; then
1278  echo $ECHO_N "(cached) $ECHO_C" >&6
1279else
1280  case $BSHELL in
1281  [\\/]* | ?:[\\/]*)
1282  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
1283  ;;
1284  *)
1285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286for as_dir in $PATH
1287do
1288  IFS=$as_save_IFS
1289  test -z "$as_dir" && as_dir=.
1290  for ac_exec_ext in '' $ac_executable_extensions; do
1291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1292    ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
1293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1294    break 2
1295  fi
1296done
1297done
1298
1299  ;;
1300esac
1301fi
1302BSHELL=$ac_cv_path_BSHELL
1303
1304if test -n "$BSHELL"; then
1305  echo "$as_me:$LINENO: result: $BSHELL" >&5
1306echo "${ECHO_T}$BSHELL" >&6
1307else
1308  echo "$as_me:$LINENO: result: no" >&5
1309echo "${ECHO_T}no" >&6
1310fi
1311
1312if test x"$BSHELL" = x; then
1313	{ { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5
1314echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
1315   { (exit 1); exit 1; }; }
1316fi
1317cat >>confdefs.h <<_ACEOF
1318#define PATH_BSHELL "$BSHELL"
1319_ACEOF
1320
1321
1322ac_ext=c
1323ac_cpp='$CPP $CPPFLAGS'
1324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327if test -n "$ac_tool_prefix"; then
1328  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1329set dummy ${ac_tool_prefix}gcc; ac_word=$2
1330echo "$as_me:$LINENO: checking for $ac_word" >&5
1331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1332if test "${ac_cv_prog_CC+set}" = set; then
1333  echo $ECHO_N "(cached) $ECHO_C" >&6
1334else
1335  if test -n "$CC"; then
1336  ac_cv_prog_CC="$CC" # Let the user override the test.
1337else
1338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1339for as_dir in $PATH
1340do
1341  IFS=$as_save_IFS
1342  test -z "$as_dir" && as_dir=.
1343  for ac_exec_ext in '' $ac_executable_extensions; do
1344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1345    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1347    break 2
1348  fi
1349done
1350done
1351
1352fi
1353fi
1354CC=$ac_cv_prog_CC
1355if test -n "$CC"; then
1356  echo "$as_me:$LINENO: result: $CC" >&5
1357echo "${ECHO_T}$CC" >&6
1358else
1359  echo "$as_me:$LINENO: result: no" >&5
1360echo "${ECHO_T}no" >&6
1361fi
1362
1363fi
1364if test -z "$ac_cv_prog_CC"; then
1365  ac_ct_CC=$CC
1366  # Extract the first word of "gcc", so it can be a program name with args.
1367set dummy gcc; ac_word=$2
1368echo "$as_me:$LINENO: checking for $ac_word" >&5
1369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1371  echo $ECHO_N "(cached) $ECHO_C" >&6
1372else
1373  if test -n "$ac_ct_CC"; then
1374  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1375else
1376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377for as_dir in $PATH
1378do
1379  IFS=$as_save_IFS
1380  test -z "$as_dir" && as_dir=.
1381  for ac_exec_ext in '' $ac_executable_extensions; do
1382  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1383    ac_cv_prog_ac_ct_CC="gcc"
1384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1385    break 2
1386  fi
1387done
1388done
1389
1390fi
1391fi
1392ac_ct_CC=$ac_cv_prog_ac_ct_CC
1393if test -n "$ac_ct_CC"; then
1394  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1395echo "${ECHO_T}$ac_ct_CC" >&6
1396else
1397  echo "$as_me:$LINENO: result: no" >&5
1398echo "${ECHO_T}no" >&6
1399fi
1400
1401  CC=$ac_ct_CC
1402else
1403  CC="$ac_cv_prog_CC"
1404fi
1405
1406if test -z "$CC"; then
1407  if test -n "$ac_tool_prefix"; then
1408  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1409set dummy ${ac_tool_prefix}cc; ac_word=$2
1410echo "$as_me:$LINENO: checking for $ac_word" >&5
1411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412if test "${ac_cv_prog_CC+set}" = set; then
1413  echo $ECHO_N "(cached) $ECHO_C" >&6
1414else
1415  if test -n "$CC"; then
1416  ac_cv_prog_CC="$CC" # Let the user override the test.
1417else
1418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419for as_dir in $PATH
1420do
1421  IFS=$as_save_IFS
1422  test -z "$as_dir" && as_dir=.
1423  for ac_exec_ext in '' $ac_executable_extensions; do
1424  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425    ac_cv_prog_CC="${ac_tool_prefix}cc"
1426    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427    break 2
1428  fi
1429done
1430done
1431
1432fi
1433fi
1434CC=$ac_cv_prog_CC
1435if test -n "$CC"; then
1436  echo "$as_me:$LINENO: result: $CC" >&5
1437echo "${ECHO_T}$CC" >&6
1438else
1439  echo "$as_me:$LINENO: result: no" >&5
1440echo "${ECHO_T}no" >&6
1441fi
1442
1443fi
1444if test -z "$ac_cv_prog_CC"; then
1445  ac_ct_CC=$CC
1446  # Extract the first word of "cc", so it can be a program name with args.
1447set dummy cc; ac_word=$2
1448echo "$as_me:$LINENO: checking for $ac_word" >&5
1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1451  echo $ECHO_N "(cached) $ECHO_C" >&6
1452else
1453  if test -n "$ac_ct_CC"; then
1454  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1455else
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459  IFS=$as_save_IFS
1460  test -z "$as_dir" && as_dir=.
1461  for ac_exec_ext in '' $ac_executable_extensions; do
1462  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463    ac_cv_prog_ac_ct_CC="cc"
1464    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465    break 2
1466  fi
1467done
1468done
1469
1470fi
1471fi
1472ac_ct_CC=$ac_cv_prog_ac_ct_CC
1473if test -n "$ac_ct_CC"; then
1474  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1475echo "${ECHO_T}$ac_ct_CC" >&6
1476else
1477  echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
1479fi
1480
1481  CC=$ac_ct_CC
1482else
1483  CC="$ac_cv_prog_CC"
1484fi
1485
1486fi
1487if test -z "$CC"; then
1488  # Extract the first word of "cc", so it can be a program name with args.
1489set dummy cc; ac_word=$2
1490echo "$as_me:$LINENO: checking for $ac_word" >&5
1491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492if test "${ac_cv_prog_CC+set}" = set; then
1493  echo $ECHO_N "(cached) $ECHO_C" >&6
1494else
1495  if test -n "$CC"; then
1496  ac_cv_prog_CC="$CC" # Let the user override the test.
1497else
1498  ac_prog_rejected=no
1499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502  IFS=$as_save_IFS
1503  test -z "$as_dir" && as_dir=.
1504  for ac_exec_ext in '' $ac_executable_extensions; do
1505  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1506    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1507       ac_prog_rejected=yes
1508       continue
1509     fi
1510    ac_cv_prog_CC="cc"
1511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512    break 2
1513  fi
1514done
1515done
1516
1517if test $ac_prog_rejected = yes; then
1518  # We found a bogon in the path, so make sure we never use it.
1519  set dummy $ac_cv_prog_CC
1520  shift
1521  if test $# != 0; then
1522    # We chose a different compiler from the bogus one.
1523    # However, it has the same basename, so the bogon will be chosen
1524    # first if we set CC to just the basename; use the full file name.
1525    shift
1526    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1527  fi
1528fi
1529fi
1530fi
1531CC=$ac_cv_prog_CC
1532if test -n "$CC"; then
1533  echo "$as_me:$LINENO: result: $CC" >&5
1534echo "${ECHO_T}$CC" >&6
1535else
1536  echo "$as_me:$LINENO: result: no" >&5
1537echo "${ECHO_T}no" >&6
1538fi
1539
1540fi
1541if test -z "$CC"; then
1542  if test -n "$ac_tool_prefix"; then
1543  for ac_prog in cl
1544  do
1545    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1546set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1547echo "$as_me:$LINENO: checking for $ac_word" >&5
1548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549if test "${ac_cv_prog_CC+set}" = set; then
1550  echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552  if test -n "$CC"; then
1553  ac_cv_prog_CC="$CC" # Let the user override the test.
1554else
1555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556for as_dir in $PATH
1557do
1558  IFS=$as_save_IFS
1559  test -z "$as_dir" && as_dir=.
1560  for ac_exec_ext in '' $ac_executable_extensions; do
1561  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564    break 2
1565  fi
1566done
1567done
1568
1569fi
1570fi
1571CC=$ac_cv_prog_CC
1572if test -n "$CC"; then
1573  echo "$as_me:$LINENO: result: $CC" >&5
1574echo "${ECHO_T}$CC" >&6
1575else
1576  echo "$as_me:$LINENO: result: no" >&5
1577echo "${ECHO_T}no" >&6
1578fi
1579
1580    test -n "$CC" && break
1581  done
1582fi
1583if test -z "$CC"; then
1584  ac_ct_CC=$CC
1585  for ac_prog in cl
1586do
1587  # Extract the first word of "$ac_prog", so it can be a program name with args.
1588set dummy $ac_prog; ac_word=$2
1589echo "$as_me:$LINENO: checking for $ac_word" >&5
1590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1592  echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594  if test -n "$ac_ct_CC"; then
1595  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1596else
1597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598for as_dir in $PATH
1599do
1600  IFS=$as_save_IFS
1601  test -z "$as_dir" && as_dir=.
1602  for ac_exec_ext in '' $ac_executable_extensions; do
1603  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604    ac_cv_prog_ac_ct_CC="$ac_prog"
1605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606    break 2
1607  fi
1608done
1609done
1610
1611fi
1612fi
1613ac_ct_CC=$ac_cv_prog_ac_ct_CC
1614if test -n "$ac_ct_CC"; then
1615  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1616echo "${ECHO_T}$ac_ct_CC" >&6
1617else
1618  echo "$as_me:$LINENO: result: no" >&5
1619echo "${ECHO_T}no" >&6
1620fi
1621
1622  test -n "$ac_ct_CC" && break
1623done
1624
1625  CC=$ac_ct_CC
1626fi
1627
1628fi
1629
1630
1631test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1632See \`config.log' for more details." >&5
1633echo "$as_me: error: no acceptable C compiler found in \$PATH
1634See \`config.log' for more details." >&2;}
1635   { (exit 1); exit 1; }; }
1636
1637# Provide some information about the compiler.
1638echo "$as_me:$LINENO:" \
1639     "checking for C compiler version" >&5
1640ac_compiler=`set X $ac_compile; echo $2`
1641{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1642  (eval $ac_compiler --version </dev/null >&5) 2>&5
1643  ac_status=$?
1644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645  (exit $ac_status); }
1646{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1647  (eval $ac_compiler -v </dev/null >&5) 2>&5
1648  ac_status=$?
1649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650  (exit $ac_status); }
1651{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1652  (eval $ac_compiler -V </dev/null >&5) 2>&5
1653  ac_status=$?
1654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655  (exit $ac_status); }
1656
1657cat >conftest.$ac_ext <<_ACEOF
1658#line $LINENO "configure"
1659/* confdefs.h.  */
1660_ACEOF
1661cat confdefs.h >>conftest.$ac_ext
1662cat >>conftest.$ac_ext <<_ACEOF
1663/* end confdefs.h.  */
1664
1665int
1666main ()
1667{
1668
1669  ;
1670  return 0;
1671}
1672_ACEOF
1673ac_clean_files_save=$ac_clean_files
1674ac_clean_files="$ac_clean_files a.out a.exe b.out"
1675# Try to create an executable without -o first, disregard a.out.
1676# It will help us diagnose broken compilers, and finding out an intuition
1677# of exeext.
1678echo "$as_me:$LINENO: checking for C compiler default output" >&5
1679echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1680ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1681if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1682  (eval $ac_link_default) 2>&5
1683  ac_status=$?
1684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685  (exit $ac_status); }; then
1686  # Find the output, starting from the most likely.  This scheme is
1687# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1688# resort.
1689
1690# Be careful to initialize this variable, since it used to be cached.
1691# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1692ac_cv_exeext=
1693# b.out is created by i960 compilers.
1694for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1695do
1696  test -f "$ac_file" || continue
1697  case $ac_file in
1698    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1699        ;;
1700    conftest.$ac_ext )
1701        # This is the source file.
1702        ;;
1703    [ab].out )
1704        # We found the default executable, but exeext='' is most
1705        # certainly right.
1706        break;;
1707    *.* )
1708        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1709        # FIXME: I believe we export ac_cv_exeext for Libtool,
1710        # but it would be cool to find out if it's true.  Does anybody
1711        # maintain Libtool? --akim.
1712        export ac_cv_exeext
1713        break;;
1714    * )
1715        break;;
1716  esac
1717done
1718else
1719  echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1723See \`config.log' for more details." >&5
1724echo "$as_me: error: C compiler cannot create executables
1725See \`config.log' for more details." >&2;}
1726   { (exit 77); exit 77; }; }
1727fi
1728
1729ac_exeext=$ac_cv_exeext
1730echo "$as_me:$LINENO: result: $ac_file" >&5
1731echo "${ECHO_T}$ac_file" >&6
1732
1733# Check the compiler produces executables we can run.  If not, either
1734# the compiler is broken, or we cross compile.
1735echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1736echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1737# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1738# If not cross compiling, check that we can run a simple program.
1739if test "$cross_compiling" != yes; then
1740  if { ac_try='./$ac_file'
1741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1742  (eval $ac_try) 2>&5
1743  ac_status=$?
1744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745  (exit $ac_status); }; }; then
1746    cross_compiling=no
1747  else
1748    if test "$cross_compiling" = maybe; then
1749	cross_compiling=yes
1750    else
1751	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1752If you meant to cross compile, use \`--host'.
1753See \`config.log' for more details." >&5
1754echo "$as_me: error: cannot run C compiled programs.
1755If you meant to cross compile, use \`--host'.
1756See \`config.log' for more details." >&2;}
1757   { (exit 1); exit 1; }; }
1758    fi
1759  fi
1760fi
1761echo "$as_me:$LINENO: result: yes" >&5
1762echo "${ECHO_T}yes" >&6
1763
1764rm -f a.out a.exe conftest$ac_cv_exeext b.out
1765ac_clean_files=$ac_clean_files_save
1766# Check the compiler produces executables we can run.  If not, either
1767# the compiler is broken, or we cross compile.
1768echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1769echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1770echo "$as_me:$LINENO: result: $cross_compiling" >&5
1771echo "${ECHO_T}$cross_compiling" >&6
1772
1773echo "$as_me:$LINENO: checking for suffix of executables" >&5
1774echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1776  (eval $ac_link) 2>&5
1777  ac_status=$?
1778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779  (exit $ac_status); }; then
1780  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1781# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1782# work properly (i.e., refer to `conftest.exe'), while it won't with
1783# `rm'.
1784for ac_file in conftest.exe conftest conftest.*; do
1785  test -f "$ac_file" || continue
1786  case $ac_file in
1787    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1788    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1789          export ac_cv_exeext
1790          break;;
1791    * ) break;;
1792  esac
1793done
1794else
1795  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1796See \`config.log' for more details." >&5
1797echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1798See \`config.log' for more details." >&2;}
1799   { (exit 1); exit 1; }; }
1800fi
1801
1802rm -f conftest$ac_cv_exeext
1803echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1804echo "${ECHO_T}$ac_cv_exeext" >&6
1805
1806rm -f conftest.$ac_ext
1807EXEEXT=$ac_cv_exeext
1808ac_exeext=$EXEEXT
1809echo "$as_me:$LINENO: checking for suffix of object files" >&5
1810echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1811if test "${ac_cv_objext+set}" = set; then
1812  echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814  cat >conftest.$ac_ext <<_ACEOF
1815#line $LINENO "configure"
1816/* confdefs.h.  */
1817_ACEOF
1818cat confdefs.h >>conftest.$ac_ext
1819cat >>conftest.$ac_ext <<_ACEOF
1820/* end confdefs.h.  */
1821
1822int
1823main ()
1824{
1825
1826  ;
1827  return 0;
1828}
1829_ACEOF
1830rm -f conftest.o conftest.obj
1831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1832  (eval $ac_compile) 2>&5
1833  ac_status=$?
1834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835  (exit $ac_status); }; then
1836  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1837  case $ac_file in
1838    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1839    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1840       break;;
1841  esac
1842done
1843else
1844  echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1848See \`config.log' for more details." >&5
1849echo "$as_me: error: cannot compute suffix of object files: cannot compile
1850See \`config.log' for more details." >&2;}
1851   { (exit 1); exit 1; }; }
1852fi
1853
1854rm -f conftest.$ac_cv_objext conftest.$ac_ext
1855fi
1856echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1857echo "${ECHO_T}$ac_cv_objext" >&6
1858OBJEXT=$ac_cv_objext
1859ac_objext=$OBJEXT
1860echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1861echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1862if test "${ac_cv_c_compiler_gnu+set}" = set; then
1863  echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865  cat >conftest.$ac_ext <<_ACEOF
1866#line $LINENO "configure"
1867/* confdefs.h.  */
1868_ACEOF
1869cat confdefs.h >>conftest.$ac_ext
1870cat >>conftest.$ac_ext <<_ACEOF
1871/* end confdefs.h.  */
1872
1873int
1874main ()
1875{
1876#ifndef __GNUC__
1877       choke me
1878#endif
1879
1880  ;
1881  return 0;
1882}
1883_ACEOF
1884rm -f conftest.$ac_objext
1885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886  (eval $ac_compile) 2>&5
1887  ac_status=$?
1888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889  (exit $ac_status); } &&
1890         { ac_try='test -s conftest.$ac_objext'
1891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892  (eval $ac_try) 2>&5
1893  ac_status=$?
1894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895  (exit $ac_status); }; }; then
1896  ac_compiler_gnu=yes
1897else
1898  echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901ac_compiler_gnu=no
1902fi
1903rm -f conftest.$ac_objext conftest.$ac_ext
1904ac_cv_c_compiler_gnu=$ac_compiler_gnu
1905
1906fi
1907echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1908echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1909GCC=`test $ac_compiler_gnu = yes && echo yes`
1910ac_test_CFLAGS=${CFLAGS+set}
1911ac_save_CFLAGS=$CFLAGS
1912CFLAGS="-g"
1913echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1914echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1915if test "${ac_cv_prog_cc_g+set}" = set; then
1916  echo $ECHO_N "(cached) $ECHO_C" >&6
1917else
1918  cat >conftest.$ac_ext <<_ACEOF
1919#line $LINENO "configure"
1920/* confdefs.h.  */
1921_ACEOF
1922cat confdefs.h >>conftest.$ac_ext
1923cat >>conftest.$ac_ext <<_ACEOF
1924/* end confdefs.h.  */
1925
1926int
1927main ()
1928{
1929
1930  ;
1931  return 0;
1932}
1933_ACEOF
1934rm -f conftest.$ac_objext
1935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936  (eval $ac_compile) 2>&5
1937  ac_status=$?
1938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939  (exit $ac_status); } &&
1940         { ac_try='test -s conftest.$ac_objext'
1941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942  (eval $ac_try) 2>&5
1943  ac_status=$?
1944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945  (exit $ac_status); }; }; then
1946  ac_cv_prog_cc_g=yes
1947else
1948  echo "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
1951ac_cv_prog_cc_g=no
1952fi
1953rm -f conftest.$ac_objext conftest.$ac_ext
1954fi
1955echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1956echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1957if test "$ac_test_CFLAGS" = set; then
1958  CFLAGS=$ac_save_CFLAGS
1959elif test $ac_cv_prog_cc_g = yes; then
1960  if test "$GCC" = yes; then
1961    CFLAGS="-g -O2"
1962  else
1963    CFLAGS="-g"
1964  fi
1965else
1966  if test "$GCC" = yes; then
1967    CFLAGS="-O2"
1968  else
1969    CFLAGS=
1970  fi
1971fi
1972echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1973echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1974if test "${ac_cv_prog_cc_stdc+set}" = set; then
1975  echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977  ac_cv_prog_cc_stdc=no
1978ac_save_CC=$CC
1979cat >conftest.$ac_ext <<_ACEOF
1980#line $LINENO "configure"
1981/* confdefs.h.  */
1982_ACEOF
1983cat confdefs.h >>conftest.$ac_ext
1984cat >>conftest.$ac_ext <<_ACEOF
1985/* end confdefs.h.  */
1986#include <stdarg.h>
1987#include <stdio.h>
1988#include <sys/types.h>
1989#include <sys/stat.h>
1990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1991struct buf { int x; };
1992FILE * (*rcsopen) (struct buf *, struct stat *, int);
1993static char *e (p, i)
1994     char **p;
1995     int i;
1996{
1997  return p[i];
1998}
1999static char *f (char * (*g) (char **, int), char **p, ...)
2000{
2001  char *s;
2002  va_list v;
2003  va_start (v,p);
2004  s = g (p, va_arg (v,int));
2005  va_end (v);
2006  return s;
2007}
2008int test (int i, double x);
2009struct s1 {int (*f) (int a);};
2010struct s2 {int (*f) (double a);};
2011int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2012int argc;
2013char **argv;
2014int
2015main ()
2016{
2017return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2018  ;
2019  return 0;
2020}
2021_ACEOF
2022# Don't try gcc -ansi; that turns off useful extensions and
2023# breaks some systems' header files.
2024# AIX			-qlanglvl=ansi
2025# Ultrix and OSF/1	-std1
2026# HP-UX 10.20 and later	-Ae
2027# HP-UX older versions	-Aa -D_HPUX_SOURCE
2028# SVR4			-Xc -D__EXTENSIONS__
2029for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2030do
2031  CC="$ac_save_CC $ac_arg"
2032  rm -f conftest.$ac_objext
2033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034  (eval $ac_compile) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); } &&
2038         { ac_try='test -s conftest.$ac_objext'
2039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040  (eval $ac_try) 2>&5
2041  ac_status=$?
2042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043  (exit $ac_status); }; }; then
2044  ac_cv_prog_cc_stdc=$ac_arg
2045break
2046else
2047  echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050fi
2051rm -f conftest.$ac_objext
2052done
2053rm -f conftest.$ac_ext conftest.$ac_objext
2054CC=$ac_save_CC
2055
2056fi
2057
2058case "x$ac_cv_prog_cc_stdc" in
2059  x|xno)
2060    echo "$as_me:$LINENO: result: none needed" >&5
2061echo "${ECHO_T}none needed" >&6 ;;
2062  *)
2063    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2064echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2065    CC="$CC $ac_cv_prog_cc_stdc" ;;
2066esac
2067
2068# Some people use a C++ compiler to compile C.  Since we use `exit',
2069# in C++ we need to declare it.  In case someone uses the same compiler
2070# for both compiling C and C++ we need to have the C++ compiler decide
2071# the declaration of exit, since it's the most demanding environment.
2072cat >conftest.$ac_ext <<_ACEOF
2073#ifndef __cplusplus
2074  choke me
2075#endif
2076_ACEOF
2077rm -f conftest.$ac_objext
2078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079  (eval $ac_compile) 2>&5
2080  ac_status=$?
2081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082  (exit $ac_status); } &&
2083         { ac_try='test -s conftest.$ac_objext'
2084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085  (eval $ac_try) 2>&5
2086  ac_status=$?
2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088  (exit $ac_status); }; }; then
2089  for ac_declaration in \
2090   ''\
2091   '#include <stdlib.h>' \
2092   'extern "C" void std::exit (int) throw (); using std::exit;' \
2093   'extern "C" void std::exit (int); using std::exit;' \
2094   'extern "C" void exit (int) throw ();' \
2095   'extern "C" void exit (int);' \
2096   'void exit (int);'
2097do
2098  cat >conftest.$ac_ext <<_ACEOF
2099#line $LINENO "configure"
2100/* confdefs.h.  */
2101_ACEOF
2102cat confdefs.h >>conftest.$ac_ext
2103cat >>conftest.$ac_ext <<_ACEOF
2104/* end confdefs.h.  */
2105#include <stdlib.h>
2106$ac_declaration
2107int
2108main ()
2109{
2110exit (42);
2111  ;
2112  return 0;
2113}
2114_ACEOF
2115rm -f conftest.$ac_objext
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117  (eval $ac_compile) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); } &&
2121         { ac_try='test -s conftest.$ac_objext'
2122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123  (eval $ac_try) 2>&5
2124  ac_status=$?
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); }; }; then
2127  :
2128else
2129  echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
2132continue
2133fi
2134rm -f conftest.$ac_objext conftest.$ac_ext
2135  cat >conftest.$ac_ext <<_ACEOF
2136#line $LINENO "configure"
2137/* confdefs.h.  */
2138_ACEOF
2139cat confdefs.h >>conftest.$ac_ext
2140cat >>conftest.$ac_ext <<_ACEOF
2141/* end confdefs.h.  */
2142$ac_declaration
2143int
2144main ()
2145{
2146exit (42);
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151rm -f conftest.$ac_objext
2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153  (eval $ac_compile) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); } &&
2157         { ac_try='test -s conftest.$ac_objext'
2158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159  (eval $ac_try) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }; }; then
2163  break
2164else
2165  echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168fi
2169rm -f conftest.$ac_objext conftest.$ac_ext
2170done
2171rm -f conftest*
2172if test -n "$ac_declaration"; then
2173  echo '#ifdef __cplusplus' >>confdefs.h
2174  echo $ac_declaration      >>confdefs.h
2175  echo '#endif'             >>confdefs.h
2176fi
2177
2178else
2179  echo "$as_me: failed program was:" >&5
2180sed 's/^/| /' conftest.$ac_ext >&5
2181
2182fi
2183rm -f conftest.$ac_objext conftest.$ac_ext
2184ac_ext=c
2185ac_cpp='$CPP $CPPFLAGS'
2186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189
2190
2191echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2192echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2193if test "${ac_cv_c_bigendian+set}" = set; then
2194  echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196  # See if sys/param.h defines the BYTE_ORDER macro.
2197cat >conftest.$ac_ext <<_ACEOF
2198#line $LINENO "configure"
2199/* confdefs.h.  */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h.  */
2204#include <sys/types.h>
2205#include <sys/param.h>
2206
2207int
2208main ()
2209{
2210#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2211 bogus endian macros
2212#endif
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218rm -f conftest.$ac_objext
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220  (eval $ac_compile) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); } &&
2224         { ac_try='test -s conftest.$ac_objext'
2225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226  (eval $ac_try) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; }; then
2230  # It does; now see whether it defined to BIG_ENDIAN or not.
2231cat >conftest.$ac_ext <<_ACEOF
2232#line $LINENO "configure"
2233/* confdefs.h.  */
2234_ACEOF
2235cat confdefs.h >>conftest.$ac_ext
2236cat >>conftest.$ac_ext <<_ACEOF
2237/* end confdefs.h.  */
2238#include <sys/types.h>
2239#include <sys/param.h>
2240
2241int
2242main ()
2243{
2244#if BYTE_ORDER != BIG_ENDIAN
2245 not big endian
2246#endif
2247
2248  ;
2249  return 0;
2250}
2251_ACEOF
2252rm -f conftest.$ac_objext
2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254  (eval $ac_compile) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); } &&
2258         { ac_try='test -s conftest.$ac_objext'
2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260  (eval $ac_try) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; }; then
2264  ac_cv_c_bigendian=yes
2265else
2266  echo "$as_me: failed program was:" >&5
2267sed 's/^/| /' conftest.$ac_ext >&5
2268
2269ac_cv_c_bigendian=no
2270fi
2271rm -f conftest.$ac_objext conftest.$ac_ext
2272else
2273  echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276# It does not; compile a test program.
2277if test "$cross_compiling" = yes; then
2278  # try to guess the endianness by grepping values into an object file
2279  ac_cv_c_bigendian=unknown
2280  cat >conftest.$ac_ext <<_ACEOF
2281#line $LINENO "configure"
2282/* confdefs.h.  */
2283_ACEOF
2284cat confdefs.h >>conftest.$ac_ext
2285cat >>conftest.$ac_ext <<_ACEOF
2286/* end confdefs.h.  */
2287short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2288short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2289void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2290short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2291short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2292void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2293int
2294main ()
2295{
2296 _ascii (); _ebcdic ();
2297  ;
2298  return 0;
2299}
2300_ACEOF
2301rm -f conftest.$ac_objext
2302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303  (eval $ac_compile) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); } &&
2307         { ac_try='test -s conftest.$ac_objext'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2314  ac_cv_c_bigendian=yes
2315fi
2316if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2317  if test "$ac_cv_c_bigendian" = unknown; then
2318    ac_cv_c_bigendian=no
2319  else
2320    # finding both strings is unlikely to happen, but who knows?
2321    ac_cv_c_bigendian=unknown
2322  fi
2323fi
2324else
2325  echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328fi
2329rm -f conftest.$ac_objext conftest.$ac_ext
2330else
2331  cat >conftest.$ac_ext <<_ACEOF
2332#line $LINENO "configure"
2333/* confdefs.h.  */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h.  */
2338int
2339main ()
2340{
2341  /* Are we little or big endian?  From Harbison&Steele.  */
2342  union
2343  {
2344    long l;
2345    char c[sizeof (long)];
2346  } u;
2347  u.l = 1;
2348  exit (u.c[sizeof (long) - 1] == 1);
2349}
2350_ACEOF
2351rm -f conftest$ac_exeext
2352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353  (eval $ac_link) 2>&5
2354  ac_status=$?
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358  (eval $ac_try) 2>&5
2359  ac_status=$?
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); }; }; then
2362  ac_cv_c_bigendian=no
2363else
2364  echo "$as_me: program exited with status $ac_status" >&5
2365echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368( exit $ac_status )
2369ac_cv_c_bigendian=yes
2370fi
2371rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2372fi
2373fi
2374rm -f conftest.$ac_objext conftest.$ac_ext
2375fi
2376echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2377echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2378case $ac_cv_c_bigendian in
2379  yes)
2380
2381cat >>confdefs.h <<\_ACEOF
2382#define WORDS_BIGENDIAN 1
2383_ACEOF
2384 ;;
2385  no)
2386     ;;
2387  *)
2388    { { echo "$as_me:$LINENO: error: unknown endianness
2389presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2390echo "$as_me: error: unknown endianness
2391presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2392   { (exit 1); exit 1; }; } ;;
2393esac
2394
2395ac_ext=c
2396ac_cpp='$CPP $CPPFLAGS'
2397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2401echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2402# On Suns, sometimes $CPP names a directory.
2403if test -n "$CPP" && test -d "$CPP"; then
2404  CPP=
2405fi
2406if test -z "$CPP"; then
2407  if test "${ac_cv_prog_CPP+set}" = set; then
2408  echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410      # Double quotes because CPP needs to be expanded
2411    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2412    do
2413      ac_preproc_ok=false
2414for ac_c_preproc_warn_flag in '' yes
2415do
2416  # Use a header file that comes with gcc, so configuring glibc
2417  # with a fresh cross-compiler works.
2418  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2419  # <limits.h> exists even on freestanding compilers.
2420  # On the NeXT, cc -E runs the code through the compiler's parser,
2421  # not just through cpp. "Syntax error" is here to catch this case.
2422  cat >conftest.$ac_ext <<_ACEOF
2423#line $LINENO "configure"
2424/* confdefs.h.  */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h.  */
2429#ifdef __STDC__
2430# include <limits.h>
2431#else
2432# include <assert.h>
2433#endif
2434                     Syntax error
2435_ACEOF
2436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2437  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438  ac_status=$?
2439  grep -v '^ *+' conftest.er1 >conftest.err
2440  rm -f conftest.er1
2441  cat conftest.err >&5
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); } >/dev/null; then
2444  if test -s conftest.err; then
2445    ac_cpp_err=$ac_c_preproc_warn_flag
2446  else
2447    ac_cpp_err=
2448  fi
2449else
2450  ac_cpp_err=yes
2451fi
2452if test -z "$ac_cpp_err"; then
2453  :
2454else
2455  echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
2457
2458  # Broken: fails on valid input.
2459continue
2460fi
2461rm -f conftest.err conftest.$ac_ext
2462
2463  # OK, works on sane cases.  Now check whether non-existent headers
2464  # can be detected and how.
2465  cat >conftest.$ac_ext <<_ACEOF
2466#line $LINENO "configure"
2467/* confdefs.h.  */
2468_ACEOF
2469cat confdefs.h >>conftest.$ac_ext
2470cat >>conftest.$ac_ext <<_ACEOF
2471/* end confdefs.h.  */
2472#include <ac_nonexistent.h>
2473_ACEOF
2474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2475  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2476  ac_status=$?
2477  grep -v '^ *+' conftest.er1 >conftest.err
2478  rm -f conftest.er1
2479  cat conftest.err >&5
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); } >/dev/null; then
2482  if test -s conftest.err; then
2483    ac_cpp_err=$ac_c_preproc_warn_flag
2484  else
2485    ac_cpp_err=
2486  fi
2487else
2488  ac_cpp_err=yes
2489fi
2490if test -z "$ac_cpp_err"; then
2491  # Broken: success on invalid input.
2492continue
2493else
2494  echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497  # Passes both tests.
2498ac_preproc_ok=:
2499break
2500fi
2501rm -f conftest.err conftest.$ac_ext
2502
2503done
2504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2505rm -f conftest.err conftest.$ac_ext
2506if $ac_preproc_ok; then
2507  break
2508fi
2509
2510    done
2511    ac_cv_prog_CPP=$CPP
2512
2513fi
2514  CPP=$ac_cv_prog_CPP
2515else
2516  ac_cv_prog_CPP=$CPP
2517fi
2518echo "$as_me:$LINENO: result: $CPP" >&5
2519echo "${ECHO_T}$CPP" >&6
2520ac_preproc_ok=false
2521for ac_c_preproc_warn_flag in '' yes
2522do
2523  # Use a header file that comes with gcc, so configuring glibc
2524  # with a fresh cross-compiler works.
2525  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2526  # <limits.h> exists even on freestanding compilers.
2527  # On the NeXT, cc -E runs the code through the compiler's parser,
2528  # not just through cpp. "Syntax error" is here to catch this case.
2529  cat >conftest.$ac_ext <<_ACEOF
2530#line $LINENO "configure"
2531/* confdefs.h.  */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h.  */
2536#ifdef __STDC__
2537# include <limits.h>
2538#else
2539# include <assert.h>
2540#endif
2541                     Syntax error
2542_ACEOF
2543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2545  ac_status=$?
2546  grep -v '^ *+' conftest.er1 >conftest.err
2547  rm -f conftest.er1
2548  cat conftest.err >&5
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); } >/dev/null; then
2551  if test -s conftest.err; then
2552    ac_cpp_err=$ac_c_preproc_warn_flag
2553  else
2554    ac_cpp_err=
2555  fi
2556else
2557  ac_cpp_err=yes
2558fi
2559if test -z "$ac_cpp_err"; then
2560  :
2561else
2562  echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565  # Broken: fails on valid input.
2566continue
2567fi
2568rm -f conftest.err conftest.$ac_ext
2569
2570  # OK, works on sane cases.  Now check whether non-existent headers
2571  # can be detected and how.
2572  cat >conftest.$ac_ext <<_ACEOF
2573#line $LINENO "configure"
2574/* confdefs.h.  */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h.  */
2579#include <ac_nonexistent.h>
2580_ACEOF
2581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2582  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2583  ac_status=$?
2584  grep -v '^ *+' conftest.er1 >conftest.err
2585  rm -f conftest.er1
2586  cat conftest.err >&5
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); } >/dev/null; then
2589  if test -s conftest.err; then
2590    ac_cpp_err=$ac_c_preproc_warn_flag
2591  else
2592    ac_cpp_err=
2593  fi
2594else
2595  ac_cpp_err=yes
2596fi
2597if test -z "$ac_cpp_err"; then
2598  # Broken: success on invalid input.
2599continue
2600else
2601  echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604  # Passes both tests.
2605ac_preproc_ok=:
2606break
2607fi
2608rm -f conftest.err conftest.$ac_ext
2609
2610done
2611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2612rm -f conftest.err conftest.$ac_ext
2613if $ac_preproc_ok; then
2614  :
2615else
2616  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2617See \`config.log' for more details." >&5
2618echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2619See \`config.log' for more details." >&2;}
2620   { (exit 1); exit 1; }; }
2621fi
2622
2623ac_ext=c
2624ac_cpp='$CPP $CPPFLAGS'
2625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628
2629
2630echo "$as_me:$LINENO: checking for egrep" >&5
2631echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2632if test "${ac_cv_prog_egrep+set}" = set; then
2633  echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
2635  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2636    then ac_cv_prog_egrep='grep -E'
2637    else ac_cv_prog_egrep='egrep'
2638    fi
2639fi
2640echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2641echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2642 EGREP=$ac_cv_prog_egrep
2643
2644
2645echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2646echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2647if test "${ac_cv_header_stdc+set}" = set; then
2648  echo $ECHO_N "(cached) $ECHO_C" >&6
2649else
2650  cat >conftest.$ac_ext <<_ACEOF
2651#line $LINENO "configure"
2652/* confdefs.h.  */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h.  */
2657#include <stdlib.h>
2658#include <stdarg.h>
2659#include <string.h>
2660#include <float.h>
2661
2662int
2663main ()
2664{
2665
2666  ;
2667  return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672  (eval $ac_compile) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); } &&
2676         { ac_try='test -s conftest.$ac_objext'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; }; then
2682  ac_cv_header_stdc=yes
2683else
2684  echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687ac_cv_header_stdc=no
2688fi
2689rm -f conftest.$ac_objext conftest.$ac_ext
2690
2691if test $ac_cv_header_stdc = yes; then
2692  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2693  cat >conftest.$ac_ext <<_ACEOF
2694#line $LINENO "configure"
2695/* confdefs.h.  */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h.  */
2700#include <string.h>
2701
2702_ACEOF
2703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2704  $EGREP "memchr" >/dev/null 2>&1; then
2705  :
2706else
2707  ac_cv_header_stdc=no
2708fi
2709rm -f conftest*
2710
2711fi
2712
2713if test $ac_cv_header_stdc = yes; then
2714  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2715  cat >conftest.$ac_ext <<_ACEOF
2716#line $LINENO "configure"
2717/* confdefs.h.  */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h.  */
2722#include <stdlib.h>
2723
2724_ACEOF
2725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2726  $EGREP "free" >/dev/null 2>&1; then
2727  :
2728else
2729  ac_cv_header_stdc=no
2730fi
2731rm -f conftest*
2732
2733fi
2734
2735if test $ac_cv_header_stdc = yes; then
2736  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2737  if test "$cross_compiling" = yes; then
2738  :
2739else
2740  cat >conftest.$ac_ext <<_ACEOF
2741#line $LINENO "configure"
2742/* confdefs.h.  */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h.  */
2747#include <ctype.h>
2748#if ((' ' & 0x0FF) == 0x020)
2749# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2750# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2751#else
2752# define ISLOWER(c) \
2753                   (('a' <= (c) && (c) <= 'i') \
2754                     || ('j' <= (c) && (c) <= 'r') \
2755                     || ('s' <= (c) && (c) <= 'z'))
2756# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2757#endif
2758
2759#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2760int
2761main ()
2762{
2763  int i;
2764  for (i = 0; i < 256; i++)
2765    if (XOR (islower (i), ISLOWER (i))
2766        || toupper (i) != TOUPPER (i))
2767      exit(2);
2768  exit (0);
2769}
2770_ACEOF
2771rm -f conftest$ac_exeext
2772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2773  (eval $ac_link) 2>&5
2774  ac_status=$?
2775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778  (eval $ac_try) 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }; }; then
2782  :
2783else
2784  echo "$as_me: program exited with status $ac_status" >&5
2785echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788( exit $ac_status )
2789ac_cv_header_stdc=no
2790fi
2791rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2792fi
2793fi
2794fi
2795echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2796echo "${ECHO_T}$ac_cv_header_stdc" >&6
2797if test $ac_cv_header_stdc = yes; then
2798
2799cat >>confdefs.h <<\_ACEOF
2800#define STDC_HEADERS 1
2801_ACEOF
2802
2803fi
2804
2805
2806# Confirm existence of zlib.  (This is available as a default install
2807# option on many OS's; this could be added as a reachover build in the
2808# future.)
2809# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2820                  inttypes.h stdint.h unistd.h
2821do
2822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2823echo "$as_me:$LINENO: checking for $ac_header" >&5
2824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2825if eval "test \"\${$as_ac_Header+set}\" = set"; then
2826  echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828  cat >conftest.$ac_ext <<_ACEOF
2829#line $LINENO "configure"
2830/* confdefs.h.  */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h.  */
2835$ac_includes_default
2836
2837#include <$ac_header>
2838_ACEOF
2839rm -f conftest.$ac_objext
2840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841  (eval $ac_compile) 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); } &&
2845         { ac_try='test -s conftest.$ac_objext'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; }; then
2851  eval "$as_ac_Header=yes"
2852else
2853  echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856eval "$as_ac_Header=no"
2857fi
2858rm -f conftest.$ac_objext conftest.$ac_ext
2859fi
2860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2862if test `eval echo '${'$as_ac_Header'}'` = yes; then
2863  cat >>confdefs.h <<_ACEOF
2864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2865_ACEOF
2866
2867fi
2868
2869done
2870
2871
2872if test "${ac_cv_header_zlib_h+set}" = set; then
2873  echo "$as_me:$LINENO: checking for zlib.h" >&5
2874echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2875if test "${ac_cv_header_zlib_h+set}" = set; then
2876  echo $ECHO_N "(cached) $ECHO_C" >&6
2877fi
2878echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
2879echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
2880else
2881  # Is the header compilable?
2882echo "$as_me:$LINENO: checking zlib.h usability" >&5
2883echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
2884cat >conftest.$ac_ext <<_ACEOF
2885#line $LINENO "configure"
2886/* confdefs.h.  */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h.  */
2891$ac_includes_default
2892#include <zlib.h>
2893_ACEOF
2894rm -f conftest.$ac_objext
2895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896  (eval $ac_compile) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); } &&
2900         { ac_try='test -s conftest.$ac_objext'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; }; then
2906  ac_header_compiler=yes
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911ac_header_compiler=no
2912fi
2913rm -f conftest.$ac_objext conftest.$ac_ext
2914echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2915echo "${ECHO_T}$ac_header_compiler" >&6
2916
2917# Is the header present?
2918echo "$as_me:$LINENO: checking zlib.h presence" >&5
2919echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
2920cat >conftest.$ac_ext <<_ACEOF
2921#line $LINENO "configure"
2922/* confdefs.h.  */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h.  */
2927#include <zlib.h>
2928_ACEOF
2929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931  ac_status=$?
2932  grep -v '^ *+' conftest.er1 >conftest.err
2933  rm -f conftest.er1
2934  cat conftest.err >&5
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); } >/dev/null; then
2937  if test -s conftest.err; then
2938    ac_cpp_err=$ac_c_preproc_warn_flag
2939  else
2940    ac_cpp_err=
2941  fi
2942else
2943  ac_cpp_err=yes
2944fi
2945if test -z "$ac_cpp_err"; then
2946  ac_header_preproc=yes
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951  ac_header_preproc=no
2952fi
2953rm -f conftest.err conftest.$ac_ext
2954echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2955echo "${ECHO_T}$ac_header_preproc" >&6
2956
2957# So?  What about this header?
2958case $ac_header_compiler:$ac_header_preproc in
2959  yes:no )
2960    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
2961echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2962    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
2963echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
2964    (
2965      cat <<\_ASBOX
2966## ------------------------------------ ##
2967## Report this to bug-autoconf@gnu.org. ##
2968## ------------------------------------ ##
2969_ASBOX
2970    ) |
2971      sed "s/^/$as_me: WARNING:     /" >&2
2972    ;;
2973  no:yes )
2974    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
2975echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
2976    { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
2977echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
2978    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
2979echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
2980    (
2981      cat <<\_ASBOX
2982## ------------------------------------ ##
2983## Report this to bug-autoconf@gnu.org. ##
2984## ------------------------------------ ##
2985_ASBOX
2986    ) |
2987      sed "s/^/$as_me: WARNING:     /" >&2
2988    ;;
2989esac
2990echo "$as_me:$LINENO: checking for zlib.h" >&5
2991echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2992if test "${ac_cv_header_zlib_h+set}" = set; then
2993  echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995  ac_cv_header_zlib_h=$ac_header_preproc
2996fi
2997echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
2998echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
2999
3000fi
3001if test $ac_cv_header_zlib_h = yes; then
3002  :
3003else
3004  { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3005echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3006   { (exit 1); exit 1; }; }
3007fi
3008
3009
3010
3011echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
3012echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
3013if test "${ac_cv_lib_z_gzdopen+set}" = set; then
3014  echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016  ac_check_lib_save_LIBS=$LIBS
3017LIBS="-lz  $LIBS"
3018cat >conftest.$ac_ext <<_ACEOF
3019#line $LINENO "configure"
3020/* confdefs.h.  */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h.  */
3025
3026/* Override any gcc2 internal prototype to avoid an error.  */
3027#ifdef __cplusplus
3028extern "C"
3029#endif
3030/* We use char because int might match the return type of a gcc2
3031   builtin and then its argument prototype would still apply.  */
3032char gzdopen ();
3033int
3034main ()
3035{
3036gzdopen ();
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext conftest$ac_exeext
3042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3043  (eval $ac_link) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } &&
3047         { ac_try='test -s conftest$ac_exeext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_cv_lib_z_gzdopen=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058ac_cv_lib_z_gzdopen=no
3059fi
3060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3061LIBS=$ac_check_lib_save_LIBS
3062fi
3063echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
3064echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
3065if test $ac_cv_lib_z_gzdopen = yes; then
3066  cat >>confdefs.h <<_ACEOF
3067#define HAVE_LIBZ 1
3068_ACEOF
3069
3070  LIBS="-lz $LIBS"
3071
3072else
3073  { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3074echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3075   { (exit 1); exit 1; }; }
3076fi
3077
3078
3079# Make sure certain required headers are available.
3080# These are not necessarily required by the code, but they are not
3081# currently conditionalized.
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
3109	sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
3110	sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
3111	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
3112	termios.h unistd.h
3113do
3114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3115if eval "test \"\${$as_ac_Header+set}\" = set"; then
3116  echo "$as_me:$LINENO: checking for $ac_header" >&5
3117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3118if eval "test \"\${$as_ac_Header+set}\" = set"; then
3119  echo $ECHO_N "(cached) $ECHO_C" >&6
3120fi
3121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3123else
3124  # Is the header compilable?
3125echo "$as_me:$LINENO: checking $ac_header usability" >&5
3126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3127cat >conftest.$ac_ext <<_ACEOF
3128#line $LINENO "configure"
3129/* confdefs.h.  */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h.  */
3134$ac_includes_default
3135#include <$ac_header>
3136_ACEOF
3137rm -f conftest.$ac_objext
3138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139  (eval $ac_compile) 2>&5
3140  ac_status=$?
3141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); } &&
3143         { ac_try='test -s conftest.$ac_objext'
3144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145  (eval $ac_try) 2>&5
3146  ac_status=$?
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); }; }; then
3149  ac_header_compiler=yes
3150else
3151  echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154ac_header_compiler=no
3155fi
3156rm -f conftest.$ac_objext conftest.$ac_ext
3157echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3158echo "${ECHO_T}$ac_header_compiler" >&6
3159
3160# Is the header present?
3161echo "$as_me:$LINENO: checking $ac_header presence" >&5
3162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3163cat >conftest.$ac_ext <<_ACEOF
3164#line $LINENO "configure"
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170#include <$ac_header>
3171_ACEOF
3172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3173  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174  ac_status=$?
3175  grep -v '^ *+' conftest.er1 >conftest.err
3176  rm -f conftest.er1
3177  cat conftest.err >&5
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); } >/dev/null; then
3180  if test -s conftest.err; then
3181    ac_cpp_err=$ac_c_preproc_warn_flag
3182  else
3183    ac_cpp_err=
3184  fi
3185else
3186  ac_cpp_err=yes
3187fi
3188if test -z "$ac_cpp_err"; then
3189  ac_header_preproc=yes
3190else
3191  echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194  ac_header_preproc=no
3195fi
3196rm -f conftest.err conftest.$ac_ext
3197echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3198echo "${ECHO_T}$ac_header_preproc" >&6
3199
3200# So?  What about this header?
3201case $ac_header_compiler:$ac_header_preproc in
3202  yes:no )
3203    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3205    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3207    (
3208      cat <<\_ASBOX
3209## ------------------------------------ ##
3210## Report this to bug-autoconf@gnu.org. ##
3211## ------------------------------------ ##
3212_ASBOX
3213    ) |
3214      sed "s/^/$as_me: WARNING:     /" >&2
3215    ;;
3216  no:yes )
3217    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3218echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3219    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3220echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3221    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3223    (
3224      cat <<\_ASBOX
3225## ------------------------------------ ##
3226## Report this to bug-autoconf@gnu.org. ##
3227## ------------------------------------ ##
3228_ASBOX
3229    ) |
3230      sed "s/^/$as_me: WARNING:     /" >&2
3231    ;;
3232esac
3233echo "$as_me:$LINENO: checking for $ac_header" >&5
3234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3235if eval "test \"\${$as_ac_Header+set}\" = set"; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  eval "$as_ac_Header=$ac_header_preproc"
3239fi
3240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3242
3243fi
3244if test `eval echo '${'$as_ac_Header'}'` = yes; then
3245  cat >>confdefs.h <<_ACEOF
3246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3247_ACEOF
3248
3249else
3250  { { echo "$as_me:$LINENO: error: standard system header file not found" >&5
3251echo "$as_me: error: standard system header file not found" >&2;}
3252   { (exit 1); exit 1; }; }
3253fi
3254
3255done
3256
3257
3258# Find headers that may not be available.
3259
3260
3261
3262
3263
3264ac_header_dirent=no
3265for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3266  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3267echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3268echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3269if eval "test \"\${$as_ac_Header+set}\" = set"; then
3270  echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272  cat >conftest.$ac_ext <<_ACEOF
3273#line $LINENO "configure"
3274/* confdefs.h.  */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h.  */
3279#include <sys/types.h>
3280#include <$ac_hdr>
3281
3282int
3283main ()
3284{
3285if ((DIR *) 0)
3286return 0;
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291rm -f conftest.$ac_objext
3292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293  (eval $ac_compile) 2>&5
3294  ac_status=$?
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); } &&
3297         { ac_try='test -s conftest.$ac_objext'
3298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299  (eval $ac_try) 2>&5
3300  ac_status=$?
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); }; }; then
3303  eval "$as_ac_Header=yes"
3304else
3305  echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
3308eval "$as_ac_Header=no"
3309fi
3310rm -f conftest.$ac_objext conftest.$ac_ext
3311fi
3312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3314if test `eval echo '${'$as_ac_Header'}'` = yes; then
3315  cat >>confdefs.h <<_ACEOF
3316#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3317_ACEOF
3318
3319ac_header_dirent=$ac_hdr; break
3320fi
3321
3322done
3323# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3324if test $ac_header_dirent = dirent.h; then
3325  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3326echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3327if test "${ac_cv_search_opendir+set}" = set; then
3328  echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330  ac_func_search_save_LIBS=$LIBS
3331ac_cv_search_opendir=no
3332cat >conftest.$ac_ext <<_ACEOF
3333#line $LINENO "configure"
3334/* confdefs.h.  */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h.  */
3339
3340/* Override any gcc2 internal prototype to avoid an error.  */
3341#ifdef __cplusplus
3342extern "C"
3343#endif
3344/* We use char because int might match the return type of a gcc2
3345   builtin and then its argument prototype would still apply.  */
3346char opendir ();
3347int
3348main ()
3349{
3350opendir ();
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355rm -f conftest.$ac_objext conftest$ac_exeext
3356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3357  (eval $ac_link) 2>&5
3358  ac_status=$?
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); } &&
3361         { ac_try='test -s conftest$ac_exeext'
3362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363  (eval $ac_try) 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; }; then
3367  ac_cv_search_opendir="none required"
3368else
3369  echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372fi
3373rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3374if test "$ac_cv_search_opendir" = no; then
3375  for ac_lib in dir; do
3376    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3377    cat >conftest.$ac_ext <<_ACEOF
3378#line $LINENO "configure"
3379/* confdefs.h.  */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h.  */
3384
3385/* Override any gcc2 internal prototype to avoid an error.  */
3386#ifdef __cplusplus
3387extern "C"
3388#endif
3389/* We use char because int might match the return type of a gcc2
3390   builtin and then its argument prototype would still apply.  */
3391char opendir ();
3392int
3393main ()
3394{
3395opendir ();
3396  ;
3397  return 0;
3398}
3399_ACEOF
3400rm -f conftest.$ac_objext conftest$ac_exeext
3401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3402  (eval $ac_link) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); } &&
3406         { ac_try='test -s conftest$ac_exeext'
3407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408  (eval $ac_try) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }; }; then
3412  ac_cv_search_opendir="-l$ac_lib"
3413break
3414else
3415  echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3418fi
3419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3420  done
3421fi
3422LIBS=$ac_func_search_save_LIBS
3423fi
3424echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3425echo "${ECHO_T}$ac_cv_search_opendir" >&6
3426if test "$ac_cv_search_opendir" != no; then
3427  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3428
3429fi
3430
3431else
3432  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3433echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3434if test "${ac_cv_search_opendir+set}" = set; then
3435  echo $ECHO_N "(cached) $ECHO_C" >&6
3436else
3437  ac_func_search_save_LIBS=$LIBS
3438ac_cv_search_opendir=no
3439cat >conftest.$ac_ext <<_ACEOF
3440#line $LINENO "configure"
3441/* confdefs.h.  */
3442_ACEOF
3443cat confdefs.h >>conftest.$ac_ext
3444cat >>conftest.$ac_ext <<_ACEOF
3445/* end confdefs.h.  */
3446
3447/* Override any gcc2 internal prototype to avoid an error.  */
3448#ifdef __cplusplus
3449extern "C"
3450#endif
3451/* We use char because int might match the return type of a gcc2
3452   builtin and then its argument prototype would still apply.  */
3453char opendir ();
3454int
3455main ()
3456{
3457opendir ();
3458  ;
3459  return 0;
3460}
3461_ACEOF
3462rm -f conftest.$ac_objext conftest$ac_exeext
3463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3464  (eval $ac_link) 2>&5
3465  ac_status=$?
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); } &&
3468         { ac_try='test -s conftest$ac_exeext'
3469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470  (eval $ac_try) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); }; }; then
3474  ac_cv_search_opendir="none required"
3475else
3476  echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479fi
3480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3481if test "$ac_cv_search_opendir" = no; then
3482  for ac_lib in x; do
3483    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3484    cat >conftest.$ac_ext <<_ACEOF
3485#line $LINENO "configure"
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491
3492/* Override any gcc2 internal prototype to avoid an error.  */
3493#ifdef __cplusplus
3494extern "C"
3495#endif
3496/* We use char because int might match the return type of a gcc2
3497   builtin and then its argument prototype would still apply.  */
3498char opendir ();
3499int
3500main ()
3501{
3502opendir ();
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507rm -f conftest.$ac_objext conftest$ac_exeext
3508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509  (eval $ac_link) 2>&5
3510  ac_status=$?
3511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512  (exit $ac_status); } &&
3513         { ac_try='test -s conftest$ac_exeext'
3514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515  (eval $ac_try) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }; }; then
3519  ac_cv_search_opendir="-l$ac_lib"
3520break
3521else
3522  echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525fi
3526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3527  done
3528fi
3529LIBS=$ac_func_search_save_LIBS
3530fi
3531echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3532echo "${ECHO_T}$ac_cv_search_opendir" >&6
3533if test "$ac_cv_search_opendir" != no; then
3534  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3535
3536fi
3537
3538fi
3539
3540
3541
3542
3543
3544
3545
3546for ac_header in sys/sysmacros.h sys/syslimits.h \
3547	features.h malloc.h poll.h stddef.h
3548do
3549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3550if eval "test \"\${$as_ac_Header+set}\" = set"; then
3551  echo "$as_me:$LINENO: checking for $ac_header" >&5
3552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3553if eval "test \"\${$as_ac_Header+set}\" = set"; then
3554  echo $ECHO_N "(cached) $ECHO_C" >&6
3555fi
3556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3558else
3559  # Is the header compilable?
3560echo "$as_me:$LINENO: checking $ac_header usability" >&5
3561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3562cat >conftest.$ac_ext <<_ACEOF
3563#line $LINENO "configure"
3564/* confdefs.h.  */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h.  */
3569$ac_includes_default
3570#include <$ac_header>
3571_ACEOF
3572rm -f conftest.$ac_objext
3573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574  (eval $ac_compile) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); } &&
3578         { ac_try='test -s conftest.$ac_objext'
3579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580  (eval $ac_try) 2>&5
3581  ac_status=$?
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); }; }; then
3584  ac_header_compiler=yes
3585else
3586  echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589ac_header_compiler=no
3590fi
3591rm -f conftest.$ac_objext conftest.$ac_ext
3592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3593echo "${ECHO_T}$ac_header_compiler" >&6
3594
3595# Is the header present?
3596echo "$as_me:$LINENO: checking $ac_header presence" >&5
3597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3598cat >conftest.$ac_ext <<_ACEOF
3599#line $LINENO "configure"
3600/* confdefs.h.  */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h.  */
3605#include <$ac_header>
3606_ACEOF
3607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3608  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3609  ac_status=$?
3610  grep -v '^ *+' conftest.er1 >conftest.err
3611  rm -f conftest.er1
3612  cat conftest.err >&5
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); } >/dev/null; then
3615  if test -s conftest.err; then
3616    ac_cpp_err=$ac_c_preproc_warn_flag
3617  else
3618    ac_cpp_err=
3619  fi
3620else
3621  ac_cpp_err=yes
3622fi
3623if test -z "$ac_cpp_err"; then
3624  ac_header_preproc=yes
3625else
3626  echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629  ac_header_preproc=no
3630fi
3631rm -f conftest.err conftest.$ac_ext
3632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3633echo "${ECHO_T}$ac_header_preproc" >&6
3634
3635# So?  What about this header?
3636case $ac_header_compiler:$ac_header_preproc in
3637  yes:no )
3638    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3642    (
3643      cat <<\_ASBOX
3644## ------------------------------------ ##
3645## Report this to bug-autoconf@gnu.org. ##
3646## ------------------------------------ ##
3647_ASBOX
3648    ) |
3649      sed "s/^/$as_me: WARNING:     /" >&2
3650    ;;
3651  no:yes )
3652    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3654    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3656    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3658    (
3659      cat <<\_ASBOX
3660## ------------------------------------ ##
3661## Report this to bug-autoconf@gnu.org. ##
3662## ------------------------------------ ##
3663_ASBOX
3664    ) |
3665      sed "s/^/$as_me: WARNING:     /" >&2
3666    ;;
3667esac
3668echo "$as_me:$LINENO: checking for $ac_header" >&5
3669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3670if eval "test \"\${$as_ac_Header+set}\" = set"; then
3671  echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673  eval "$as_ac_Header=$ac_header_preproc"
3674fi
3675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3677
3678fi
3679if test `eval echo '${'$as_ac_Header'}'` = yes; then
3680  cat >>confdefs.h <<_ACEOF
3681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3682_ACEOF
3683
3684fi
3685
3686done
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698for ac_header in machine/bswap.h sys/cdefs.h sys/endian.h sys/featuretest.h \
3699	err.h inttypes.h libgen.h paths.h stdint.h util.h
3700do
3701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3702if eval "test \"\${$as_ac_Header+set}\" = set"; then
3703  echo "$as_me:$LINENO: checking for $ac_header" >&5
3704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3705if eval "test \"\${$as_ac_Header+set}\" = set"; then
3706  echo $ECHO_N "(cached) $ECHO_C" >&6
3707fi
3708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3710else
3711  # Is the header compilable?
3712echo "$as_me:$LINENO: checking $ac_header usability" >&5
3713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3714cat >conftest.$ac_ext <<_ACEOF
3715#line $LINENO "configure"
3716/* confdefs.h.  */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h.  */
3721$ac_includes_default
3722#include <$ac_header>
3723_ACEOF
3724rm -f conftest.$ac_objext
3725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726  (eval $ac_compile) 2>&5
3727  ac_status=$?
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); } &&
3730         { ac_try='test -s conftest.$ac_objext'
3731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732  (eval $ac_try) 2>&5
3733  ac_status=$?
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); }; }; then
3736  ac_header_compiler=yes
3737else
3738  echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741ac_header_compiler=no
3742fi
3743rm -f conftest.$ac_objext conftest.$ac_ext
3744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3745echo "${ECHO_T}$ac_header_compiler" >&6
3746
3747# Is the header present?
3748echo "$as_me:$LINENO: checking $ac_header presence" >&5
3749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3750cat >conftest.$ac_ext <<_ACEOF
3751#line $LINENO "configure"
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757#include <$ac_header>
3758_ACEOF
3759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3761  ac_status=$?
3762  grep -v '^ *+' conftest.er1 >conftest.err
3763  rm -f conftest.er1
3764  cat conftest.err >&5
3765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766  (exit $ac_status); } >/dev/null; then
3767  if test -s conftest.err; then
3768    ac_cpp_err=$ac_c_preproc_warn_flag
3769  else
3770    ac_cpp_err=
3771  fi
3772else
3773  ac_cpp_err=yes
3774fi
3775if test -z "$ac_cpp_err"; then
3776  ac_header_preproc=yes
3777else
3778  echo "$as_me: failed program was:" >&5
3779sed 's/^/| /' conftest.$ac_ext >&5
3780
3781  ac_header_preproc=no
3782fi
3783rm -f conftest.err conftest.$ac_ext
3784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3785echo "${ECHO_T}$ac_header_preproc" >&6
3786
3787# So?  What about this header?
3788case $ac_header_compiler:$ac_header_preproc in
3789  yes:no )
3790    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3792    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3794    (
3795      cat <<\_ASBOX
3796## ------------------------------------ ##
3797## Report this to bug-autoconf@gnu.org. ##
3798## ------------------------------------ ##
3799_ASBOX
3800    ) |
3801      sed "s/^/$as_me: WARNING:     /" >&2
3802    ;;
3803  no:yes )
3804    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3806    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3808    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3810    (
3811      cat <<\_ASBOX
3812## ------------------------------------ ##
3813## Report this to bug-autoconf@gnu.org. ##
3814## ------------------------------------ ##
3815_ASBOX
3816    ) |
3817      sed "s/^/$as_me: WARNING:     /" >&2
3818    ;;
3819esac
3820echo "$as_me:$LINENO: checking for $ac_header" >&5
3821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3822if eval "test \"\${$as_ac_Header+set}\" = set"; then
3823  echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825  eval "$as_ac_Header=$ac_header_preproc"
3826fi
3827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3829
3830fi
3831if test `eval echo '${'$as_ac_Header'}'` = yes; then
3832  cat >>confdefs.h <<_ACEOF
3833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3834_ACEOF
3835
3836else
3837  test -f include/$ac_header || touch include/$ac_header
3838fi
3839
3840done
3841
3842
3843
3844
3845for ac_header in rpc/types.h getopt.h netconfig.h
3846do
3847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3848if eval "test \"\${$as_ac_Header+set}\" = set"; then
3849  echo "$as_me:$LINENO: checking for $ac_header" >&5
3850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3851if eval "test \"\${$as_ac_Header+set}\" = set"; then
3852  echo $ECHO_N "(cached) $ECHO_C" >&6
3853fi
3854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3856else
3857  # Is the header compilable?
3858echo "$as_me:$LINENO: checking $ac_header usability" >&5
3859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3860cat >conftest.$ac_ext <<_ACEOF
3861#line $LINENO "configure"
3862/* confdefs.h.  */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
3866/* end confdefs.h.  */
3867$ac_includes_default
3868#include <$ac_header>
3869_ACEOF
3870rm -f conftest.$ac_objext
3871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872  (eval $ac_compile) 2>&5
3873  ac_status=$?
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); } &&
3876         { ac_try='test -s conftest.$ac_objext'
3877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878  (eval $ac_try) 2>&5
3879  ac_status=$?
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); }; }; then
3882  ac_header_compiler=yes
3883else
3884  echo "$as_me: failed program was:" >&5
3885sed 's/^/| /' conftest.$ac_ext >&5
3886
3887ac_header_compiler=no
3888fi
3889rm -f conftest.$ac_objext conftest.$ac_ext
3890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3891echo "${ECHO_T}$ac_header_compiler" >&6
3892
3893# Is the header present?
3894echo "$as_me:$LINENO: checking $ac_header presence" >&5
3895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3896cat >conftest.$ac_ext <<_ACEOF
3897#line $LINENO "configure"
3898/* confdefs.h.  */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h.  */
3903#include <$ac_header>
3904_ACEOF
3905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } >/dev/null; then
3913  if test -s conftest.err; then
3914    ac_cpp_err=$ac_c_preproc_warn_flag
3915  else
3916    ac_cpp_err=
3917  fi
3918else
3919  ac_cpp_err=yes
3920fi
3921if test -z "$ac_cpp_err"; then
3922  ac_header_preproc=yes
3923else
3924  echo "$as_me: failed program was:" >&5
3925sed 's/^/| /' conftest.$ac_ext >&5
3926
3927  ac_header_preproc=no
3928fi
3929rm -f conftest.err conftest.$ac_ext
3930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3931echo "${ECHO_T}$ac_header_preproc" >&6
3932
3933# So?  What about this header?
3934case $ac_header_compiler:$ac_header_preproc in
3935  yes:no )
3936    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3938    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3940    (
3941      cat <<\_ASBOX
3942## ------------------------------------ ##
3943## Report this to bug-autoconf@gnu.org. ##
3944## ------------------------------------ ##
3945_ASBOX
3946    ) |
3947      sed "s/^/$as_me: WARNING:     /" >&2
3948    ;;
3949  no:yes )
3950    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3952    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3954    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3956    (
3957      cat <<\_ASBOX
3958## ------------------------------------ ##
3959## Report this to bug-autoconf@gnu.org. ##
3960## ------------------------------------ ##
3961_ASBOX
3962    ) |
3963      sed "s/^/$as_me: WARNING:     /" >&2
3964    ;;
3965esac
3966echo "$as_me:$LINENO: checking for $ac_header" >&5
3967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3968if eval "test \"\${$as_ac_Header+set}\" = set"; then
3969  echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971  eval "$as_ac_Header=$ac_header_preproc"
3972fi
3973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3975
3976fi
3977if test `eval echo '${'$as_ac_Header'}'` = yes; then
3978  cat >>confdefs.h <<_ACEOF
3979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3980_ACEOF
3981
3982else
3983  echo '#include "config.h"' >include/$ac_header.new
3984	echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
3985	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
3986		rm -f include/$ac_header.new
3987	else
3988		mv -f include/$ac_header.new include/$ac_header
3989	fi
3990fi
3991
3992done
3993
3994
3995# Typedefs.
3996echo "$as_me:$LINENO: checking for size_t" >&5
3997echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3998if test "${ac_cv_type_size_t+set}" = set; then
3999  echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001  cat >conftest.$ac_ext <<_ACEOF
4002#line $LINENO "configure"
4003/* confdefs.h.  */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h.  */
4008$ac_includes_default
4009int
4010main ()
4011{
4012if ((size_t *) 0)
4013  return 0;
4014if (sizeof (size_t))
4015  return 0;
4016  ;
4017  return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext
4021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022  (eval $ac_compile) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); } &&
4026         { ac_try='test -s conftest.$ac_objext'
4027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028  (eval $ac_try) 2>&5
4029  ac_status=$?
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); }; }; then
4032  ac_cv_type_size_t=yes
4033else
4034  echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037ac_cv_type_size_t=no
4038fi
4039rm -f conftest.$ac_objext conftest.$ac_ext
4040fi
4041echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4042echo "${ECHO_T}$ac_cv_type_size_t" >&6
4043if test $ac_cv_type_size_t = yes; then
4044  :
4045else
4046
4047cat >>confdefs.h <<_ACEOF
4048#define size_t unsigned
4049_ACEOF
4050
4051fi
4052
4053echo "$as_me:$LINENO: checking for id_t" >&5
4054echo $ECHO_N "checking for id_t... $ECHO_C" >&6
4055if test "${ac_cv_type_id_t+set}" = set; then
4056  echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058  cat >conftest.$ac_ext <<_ACEOF
4059#line $LINENO "configure"
4060/* confdefs.h.  */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h.  */
4065$ac_includes_default
4066int
4067main ()
4068{
4069if ((id_t *) 0)
4070  return 0;
4071if (sizeof (id_t))
4072  return 0;
4073  ;
4074  return 0;
4075}
4076_ACEOF
4077rm -f conftest.$ac_objext
4078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079  (eval $ac_compile) 2>&5
4080  ac_status=$?
4081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082  (exit $ac_status); } &&
4083         { ac_try='test -s conftest.$ac_objext'
4084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085  (eval $ac_try) 2>&5
4086  ac_status=$?
4087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088  (exit $ac_status); }; }; then
4089  ac_cv_type_id_t=yes
4090else
4091  echo "$as_me: failed program was:" >&5
4092sed 's/^/| /' conftest.$ac_ext >&5
4093
4094ac_cv_type_id_t=no
4095fi
4096rm -f conftest.$ac_objext conftest.$ac_ext
4097fi
4098echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
4099echo "${ECHO_T}$ac_cv_type_id_t" >&6
4100if test $ac_cv_type_id_t = yes; then
4101
4102cat >>confdefs.h <<_ACEOF
4103#define HAVE_ID_T 1
4104_ACEOF
4105
4106
4107fi
4108echo "$as_me:$LINENO: checking for long long" >&5
4109echo $ECHO_N "checking for long long... $ECHO_C" >&6
4110if test "${ac_cv_type_long_long+set}" = set; then
4111  echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113  cat >conftest.$ac_ext <<_ACEOF
4114#line $LINENO "configure"
4115/* confdefs.h.  */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h.  */
4120$ac_includes_default
4121int
4122main ()
4123{
4124if ((long long *) 0)
4125  return 0;
4126if (sizeof (long long))
4127  return 0;
4128  ;
4129  return 0;
4130}
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134  (eval $ac_compile) 2>&5
4135  ac_status=$?
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); } &&
4138         { ac_try='test -s conftest.$ac_objext'
4139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140  (eval $ac_try) 2>&5
4141  ac_status=$?
4142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143  (exit $ac_status); }; }; then
4144  ac_cv_type_long_long=yes
4145else
4146  echo "$as_me: failed program was:" >&5
4147sed 's/^/| /' conftest.$ac_ext >&5
4148
4149ac_cv_type_long_long=no
4150fi
4151rm -f conftest.$ac_objext conftest.$ac_ext
4152fi
4153echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4154echo "${ECHO_T}$ac_cv_type_long_long" >&6
4155if test $ac_cv_type_long_long = yes; then
4156
4157cat >>confdefs.h <<_ACEOF
4158#define HAVE_LONG_LONG 1
4159_ACEOF
4160
4161
4162fi
4163echo "$as_me:$LINENO: checking for u_long" >&5
4164echo $ECHO_N "checking for u_long... $ECHO_C" >&6
4165if test "${ac_cv_type_u_long+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  cat >conftest.$ac_ext <<_ACEOF
4169#line $LINENO "configure"
4170/* confdefs.h.  */
4171_ACEOF
4172cat confdefs.h >>conftest.$ac_ext
4173cat >>conftest.$ac_ext <<_ACEOF
4174/* end confdefs.h.  */
4175$ac_includes_default
4176int
4177main ()
4178{
4179if ((u_long *) 0)
4180  return 0;
4181if (sizeof (u_long))
4182  return 0;
4183  ;
4184  return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext
4188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189  (eval $ac_compile) 2>&5
4190  ac_status=$?
4191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192  (exit $ac_status); } &&
4193         { ac_try='test -s conftest.$ac_objext'
4194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195  (eval $ac_try) 2>&5
4196  ac_status=$?
4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198  (exit $ac_status); }; }; then
4199  ac_cv_type_u_long=yes
4200else
4201  echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
4203
4204ac_cv_type_u_long=no
4205fi
4206rm -f conftest.$ac_objext conftest.$ac_ext
4207fi
4208echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
4209echo "${ECHO_T}$ac_cv_type_u_long" >&6
4210if test $ac_cv_type_u_long = yes; then
4211
4212cat >>confdefs.h <<_ACEOF
4213#define HAVE_U_LONG 1
4214_ACEOF
4215
4216
4217fi
4218echo "$as_me:$LINENO: checking for u_quad_t" >&5
4219echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
4220if test "${ac_cv_type_u_quad_t+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  cat >conftest.$ac_ext <<_ACEOF
4224#line $LINENO "configure"
4225/* confdefs.h.  */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h.  */
4230$ac_includes_default
4231int
4232main ()
4233{
4234if ((u_quad_t *) 0)
4235  return 0;
4236if (sizeof (u_quad_t))
4237  return 0;
4238  ;
4239  return 0;
4240}
4241_ACEOF
4242rm -f conftest.$ac_objext
4243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244  (eval $ac_compile) 2>&5
4245  ac_status=$?
4246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247  (exit $ac_status); } &&
4248         { ac_try='test -s conftest.$ac_objext'
4249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250  (eval $ac_try) 2>&5
4251  ac_status=$?
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); }; }; then
4254  ac_cv_type_u_quad_t=yes
4255else
4256  echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
4258
4259ac_cv_type_u_quad_t=no
4260fi
4261rm -f conftest.$ac_objext conftest.$ac_ext
4262fi
4263echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
4264echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
4265if test $ac_cv_type_u_quad_t = yes; then
4266
4267cat >>confdefs.h <<_ACEOF
4268#define HAVE_U_QUAD_T 1
4269_ACEOF
4270
4271
4272fi
4273
4274echo "$as_me:$LINENO: checking for socklen_t" >&5
4275echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4276if test "${ac_cv_type_socklen_t+set}" = set; then
4277  echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279  cat >conftest.$ac_ext <<_ACEOF
4280#line $LINENO "configure"
4281/* confdefs.h.  */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h.  */
4286#include <sys/types.h>
4287#include <sys/socket.h>
4288
4289int
4290main ()
4291{
4292if ((socklen_t *) 0)
4293  return 0;
4294if (sizeof (socklen_t))
4295  return 0;
4296  ;
4297  return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext
4301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302  (eval $ac_compile) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); } &&
4306         { ac_try='test -s conftest.$ac_objext'
4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308  (eval $ac_try) 2>&5
4309  ac_status=$?
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); }; }; then
4312  ac_cv_type_socklen_t=yes
4313else
4314  echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317ac_cv_type_socklen_t=no
4318fi
4319rm -f conftest.$ac_objext conftest.$ac_ext
4320fi
4321echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4322echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4323if test $ac_cv_type_socklen_t = yes; then
4324  cat >>confdefs.h <<\_ACEOF
4325#define HAVE_SOCKLEN_T 1
4326_ACEOF
4327
4328fi
4329
4330
4331
4332
4333
4334	echo "$as_me:$LINENO: checking for uint8_t" >&5
4335echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4336if test "${ac_cv_type_uint8_t+set}" = set; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339  cat >conftest.$ac_ext <<_ACEOF
4340#line $LINENO "configure"
4341/* confdefs.h.  */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h.  */
4346$ac_includes_default
4347int
4348main ()
4349{
4350if ((uint8_t *) 0)
4351  return 0;
4352if (sizeof (uint8_t))
4353  return 0;
4354  ;
4355  return 0;
4356}
4357_ACEOF
4358rm -f conftest.$ac_objext
4359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360  (eval $ac_compile) 2>&5
4361  ac_status=$?
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); } &&
4364         { ac_try='test -s conftest.$ac_objext'
4365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366  (eval $ac_try) 2>&5
4367  ac_status=$?
4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369  (exit $ac_status); }; }; then
4370  ac_cv_type_uint8_t=yes
4371else
4372  echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375ac_cv_type_uint8_t=no
4376fi
4377rm -f conftest.$ac_objext conftest.$ac_ext
4378fi
4379echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4380echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4381if test $ac_cv_type_uint8_t = yes; then
4382  :
4383else
4384
4385		echo "$as_me:$LINENO: checking for u_int8_t" >&5
4386echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4387if test "${ac_cv_type_u_int8_t+set}" = set; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  cat >conftest.$ac_ext <<_ACEOF
4391#line $LINENO "configure"
4392/* confdefs.h.  */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h.  */
4397$ac_includes_default
4398int
4399main ()
4400{
4401if ((u_int8_t *) 0)
4402  return 0;
4403if (sizeof (u_int8_t))
4404  return 0;
4405  ;
4406  return 0;
4407}
4408_ACEOF
4409rm -f conftest.$ac_objext
4410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411  (eval $ac_compile) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); } &&
4415         { ac_try='test -s conftest.$ac_objext'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; }; then
4421  ac_cv_type_u_int8_t=yes
4422else
4423  echo "$as_me: failed program was:" >&5
4424sed 's/^/| /' conftest.$ac_ext >&5
4425
4426ac_cv_type_u_int8_t=no
4427fi
4428rm -f conftest.$ac_objext conftest.$ac_ext
4429fi
4430echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4431echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
4432if test $ac_cv_type_u_int8_t = yes; then
4433  cat >>confdefs.h <<\_ACEOF
4434#define uint8_t u_int8_t
4435_ACEOF
4436
4437else
4438  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5
4439echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
4440   { (exit 1); exit 1; }; }
4441fi
4442
4443
4444fi
4445
4446	echo "$as_me:$LINENO: checking for u_int8_t" >&5
4447echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4448if test "${ac_cv_type_u_int8_t+set}" = set; then
4449  echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451  cat >conftest.$ac_ext <<_ACEOF
4452#line $LINENO "configure"
4453/* confdefs.h.  */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h.  */
4458$ac_includes_default
4459int
4460main ()
4461{
4462if ((u_int8_t *) 0)
4463  return 0;
4464if (sizeof (u_int8_t))
4465  return 0;
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470rm -f conftest.$ac_objext
4471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472  (eval $ac_compile) 2>&5
4473  ac_status=$?
4474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475  (exit $ac_status); } &&
4476         { ac_try='test -s conftest.$ac_objext'
4477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478  (eval $ac_try) 2>&5
4479  ac_status=$?
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); }; }; then
4482  ac_cv_type_u_int8_t=yes
4483else
4484  echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487ac_cv_type_u_int8_t=no
4488fi
4489rm -f conftest.$ac_objext conftest.$ac_ext
4490fi
4491echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4492echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
4493if test $ac_cv_type_u_int8_t = yes; then
4494  :
4495else
4496
4497		echo "$as_me:$LINENO: checking for uint8_t" >&5
4498echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4499if test "${ac_cv_type_uint8_t+set}" = set; then
4500  echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
4502  cat >conftest.$ac_ext <<_ACEOF
4503#line $LINENO "configure"
4504/* confdefs.h.  */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h.  */
4509$ac_includes_default
4510int
4511main ()
4512{
4513if ((uint8_t *) 0)
4514  return 0;
4515if (sizeof (uint8_t))
4516  return 0;
4517  ;
4518  return 0;
4519}
4520_ACEOF
4521rm -f conftest.$ac_objext
4522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523  (eval $ac_compile) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); } &&
4527         { ac_try='test -s conftest.$ac_objext'
4528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529  (eval $ac_try) 2>&5
4530  ac_status=$?
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; }; then
4533  ac_cv_type_uint8_t=yes
4534else
4535  echo "$as_me: failed program was:" >&5
4536sed 's/^/| /' conftest.$ac_ext >&5
4537
4538ac_cv_type_uint8_t=no
4539fi
4540rm -f conftest.$ac_objext conftest.$ac_ext
4541fi
4542echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4543echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4544if test $ac_cv_type_uint8_t = yes; then
4545  cat >>confdefs.h <<\_ACEOF
4546#define u_int8_t uint8_t
4547_ACEOF
4548
4549else
4550  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5
4551echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
4552   { (exit 1); exit 1; }; }
4553fi
4554
4555
4556fi
4557
4558
4559
4560	echo "$as_me:$LINENO: checking for uint16_t" >&5
4561echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
4562if test "${ac_cv_type_uint16_t+set}" = set; then
4563  echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565  cat >conftest.$ac_ext <<_ACEOF
4566#line $LINENO "configure"
4567/* confdefs.h.  */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h.  */
4572$ac_includes_default
4573int
4574main ()
4575{
4576if ((uint16_t *) 0)
4577  return 0;
4578if (sizeof (uint16_t))
4579  return 0;
4580  ;
4581  return 0;
4582}
4583_ACEOF
4584rm -f conftest.$ac_objext
4585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586  (eval $ac_compile) 2>&5
4587  ac_status=$?
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); } &&
4590         { ac_try='test -s conftest.$ac_objext'
4591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592  (eval $ac_try) 2>&5
4593  ac_status=$?
4594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595  (exit $ac_status); }; }; then
4596  ac_cv_type_uint16_t=yes
4597else
4598  echo "$as_me: failed program was:" >&5
4599sed 's/^/| /' conftest.$ac_ext >&5
4600
4601ac_cv_type_uint16_t=no
4602fi
4603rm -f conftest.$ac_objext conftest.$ac_ext
4604fi
4605echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
4606echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
4607if test $ac_cv_type_uint16_t = yes; then
4608  :
4609else
4610
4611		echo "$as_me:$LINENO: checking for u_int16_t" >&5
4612echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
4613if test "${ac_cv_type_u_int16_t+set}" = set; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  cat >conftest.$ac_ext <<_ACEOF
4617#line $LINENO "configure"
4618/* confdefs.h.  */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h.  */
4623$ac_includes_default
4624int
4625main ()
4626{
4627if ((u_int16_t *) 0)
4628  return 0;
4629if (sizeof (u_int16_t))
4630  return 0;
4631  ;
4632  return 0;
4633}
4634_ACEOF
4635rm -f conftest.$ac_objext
4636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637  (eval $ac_compile) 2>&5
4638  ac_status=$?
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); } &&
4641         { ac_try='test -s conftest.$ac_objext'
4642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643  (eval $ac_try) 2>&5
4644  ac_status=$?
4645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646  (exit $ac_status); }; }; then
4647  ac_cv_type_u_int16_t=yes
4648else
4649  echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652ac_cv_type_u_int16_t=no
4653fi
4654rm -f conftest.$ac_objext conftest.$ac_ext
4655fi
4656echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4657echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
4658if test $ac_cv_type_u_int16_t = yes; then
4659  cat >>confdefs.h <<\_ACEOF
4660#define uint16_t u_int16_t
4661_ACEOF
4662
4663else
4664  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5
4665echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
4666   { (exit 1); exit 1; }; }
4667fi
4668
4669
4670fi
4671
4672	echo "$as_me:$LINENO: checking for u_int16_t" >&5
4673echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
4674if test "${ac_cv_type_u_int16_t+set}" = set; then
4675  echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677  cat >conftest.$ac_ext <<_ACEOF
4678#line $LINENO "configure"
4679/* confdefs.h.  */
4680_ACEOF
4681cat confdefs.h >>conftest.$ac_ext
4682cat >>conftest.$ac_ext <<_ACEOF
4683/* end confdefs.h.  */
4684$ac_includes_default
4685int
4686main ()
4687{
4688if ((u_int16_t *) 0)
4689  return 0;
4690if (sizeof (u_int16_t))
4691  return 0;
4692  ;
4693  return 0;
4694}
4695_ACEOF
4696rm -f conftest.$ac_objext
4697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698  (eval $ac_compile) 2>&5
4699  ac_status=$?
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); } &&
4702         { ac_try='test -s conftest.$ac_objext'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; }; then
4708  ac_cv_type_u_int16_t=yes
4709else
4710  echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
4713ac_cv_type_u_int16_t=no
4714fi
4715rm -f conftest.$ac_objext conftest.$ac_ext
4716fi
4717echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4718echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
4719if test $ac_cv_type_u_int16_t = yes; then
4720  :
4721else
4722
4723		echo "$as_me:$LINENO: checking for uint16_t" >&5
4724echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
4725if test "${ac_cv_type_uint16_t+set}" = set; then
4726  echo $ECHO_N "(cached) $ECHO_C" >&6
4727else
4728  cat >conftest.$ac_ext <<_ACEOF
4729#line $LINENO "configure"
4730/* confdefs.h.  */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h.  */
4735$ac_includes_default
4736int
4737main ()
4738{
4739if ((uint16_t *) 0)
4740  return 0;
4741if (sizeof (uint16_t))
4742  return 0;
4743  ;
4744  return 0;
4745}
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749  (eval $ac_compile) 2>&5
4750  ac_status=$?
4751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752  (exit $ac_status); } &&
4753         { ac_try='test -s conftest.$ac_objext'
4754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755  (eval $ac_try) 2>&5
4756  ac_status=$?
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); }; }; then
4759  ac_cv_type_uint16_t=yes
4760else
4761  echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764ac_cv_type_uint16_t=no
4765fi
4766rm -f conftest.$ac_objext conftest.$ac_ext
4767fi
4768echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
4769echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
4770if test $ac_cv_type_uint16_t = yes; then
4771  cat >>confdefs.h <<\_ACEOF
4772#define u_int16_t uint16_t
4773_ACEOF
4774
4775else
4776  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5
4777echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
4778   { (exit 1); exit 1; }; }
4779fi
4780
4781
4782fi
4783
4784
4785
4786	echo "$as_me:$LINENO: checking for uint32_t" >&5
4787echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4788if test "${ac_cv_type_uint32_t+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  cat >conftest.$ac_ext <<_ACEOF
4792#line $LINENO "configure"
4793/* confdefs.h.  */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h.  */
4798$ac_includes_default
4799int
4800main ()
4801{
4802if ((uint32_t *) 0)
4803  return 0;
4804if (sizeof (uint32_t))
4805  return 0;
4806  ;
4807  return 0;
4808}
4809_ACEOF
4810rm -f conftest.$ac_objext
4811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812  (eval $ac_compile) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); } &&
4816         { ac_try='test -s conftest.$ac_objext'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; }; then
4822  ac_cv_type_uint32_t=yes
4823else
4824  echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827ac_cv_type_uint32_t=no
4828fi
4829rm -f conftest.$ac_objext conftest.$ac_ext
4830fi
4831echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4832echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4833if test $ac_cv_type_uint32_t = yes; then
4834  :
4835else
4836
4837		echo "$as_me:$LINENO: checking for u_int32_t" >&5
4838echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4839if test "${ac_cv_type_u_int32_t+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842  cat >conftest.$ac_ext <<_ACEOF
4843#line $LINENO "configure"
4844/* confdefs.h.  */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h.  */
4849$ac_includes_default
4850int
4851main ()
4852{
4853if ((u_int32_t *) 0)
4854  return 0;
4855if (sizeof (u_int32_t))
4856  return 0;
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861rm -f conftest.$ac_objext
4862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863  (eval $ac_compile) 2>&5
4864  ac_status=$?
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); } &&
4867         { ac_try='test -s conftest.$ac_objext'
4868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869  (eval $ac_try) 2>&5
4870  ac_status=$?
4871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872  (exit $ac_status); }; }; then
4873  ac_cv_type_u_int32_t=yes
4874else
4875  echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878ac_cv_type_u_int32_t=no
4879fi
4880rm -f conftest.$ac_objext conftest.$ac_ext
4881fi
4882echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4883echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4884if test $ac_cv_type_u_int32_t = yes; then
4885  cat >>confdefs.h <<\_ACEOF
4886#define uint32_t u_int32_t
4887_ACEOF
4888
4889else
4890  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5
4891echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
4892   { (exit 1); exit 1; }; }
4893fi
4894
4895
4896fi
4897
4898	echo "$as_me:$LINENO: checking for u_int32_t" >&5
4899echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4900if test "${ac_cv_type_u_int32_t+set}" = set; then
4901  echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903  cat >conftest.$ac_ext <<_ACEOF
4904#line $LINENO "configure"
4905/* confdefs.h.  */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h.  */
4910$ac_includes_default
4911int
4912main ()
4913{
4914if ((u_int32_t *) 0)
4915  return 0;
4916if (sizeof (u_int32_t))
4917  return 0;
4918  ;
4919  return 0;
4920}
4921_ACEOF
4922rm -f conftest.$ac_objext
4923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924  (eval $ac_compile) 2>&5
4925  ac_status=$?
4926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927  (exit $ac_status); } &&
4928         { ac_try='test -s conftest.$ac_objext'
4929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930  (eval $ac_try) 2>&5
4931  ac_status=$?
4932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933  (exit $ac_status); }; }; then
4934  ac_cv_type_u_int32_t=yes
4935else
4936  echo "$as_me: failed program was:" >&5
4937sed 's/^/| /' conftest.$ac_ext >&5
4938
4939ac_cv_type_u_int32_t=no
4940fi
4941rm -f conftest.$ac_objext conftest.$ac_ext
4942fi
4943echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4944echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4945if test $ac_cv_type_u_int32_t = yes; then
4946  :
4947else
4948
4949		echo "$as_me:$LINENO: checking for uint32_t" >&5
4950echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4951if test "${ac_cv_type_uint32_t+set}" = set; then
4952  echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
4954  cat >conftest.$ac_ext <<_ACEOF
4955#line $LINENO "configure"
4956/* confdefs.h.  */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h.  */
4961$ac_includes_default
4962int
4963main ()
4964{
4965if ((uint32_t *) 0)
4966  return 0;
4967if (sizeof (uint32_t))
4968  return 0;
4969  ;
4970  return 0;
4971}
4972_ACEOF
4973rm -f conftest.$ac_objext
4974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975  (eval $ac_compile) 2>&5
4976  ac_status=$?
4977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978  (exit $ac_status); } &&
4979         { ac_try='test -s conftest.$ac_objext'
4980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981  (eval $ac_try) 2>&5
4982  ac_status=$?
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); }; }; then
4985  ac_cv_type_uint32_t=yes
4986else
4987  echo "$as_me: failed program was:" >&5
4988sed 's/^/| /' conftest.$ac_ext >&5
4989
4990ac_cv_type_uint32_t=no
4991fi
4992rm -f conftest.$ac_objext conftest.$ac_ext
4993fi
4994echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4995echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4996if test $ac_cv_type_uint32_t = yes; then
4997  cat >>confdefs.h <<\_ACEOF
4998#define u_int32_t uint32_t
4999_ACEOF
5000
5001else
5002  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5
5003echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
5004   { (exit 1); exit 1; }; }
5005fi
5006
5007
5008fi
5009
5010
5011
5012	echo "$as_me:$LINENO: checking for uint64_t" >&5
5013echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5014if test "${ac_cv_type_uint64_t+set}" = set; then
5015  echo $ECHO_N "(cached) $ECHO_C" >&6
5016else
5017  cat >conftest.$ac_ext <<_ACEOF
5018#line $LINENO "configure"
5019/* confdefs.h.  */
5020_ACEOF
5021cat confdefs.h >>conftest.$ac_ext
5022cat >>conftest.$ac_ext <<_ACEOF
5023/* end confdefs.h.  */
5024$ac_includes_default
5025int
5026main ()
5027{
5028if ((uint64_t *) 0)
5029  return 0;
5030if (sizeof (uint64_t))
5031  return 0;
5032  ;
5033  return 0;
5034}
5035_ACEOF
5036rm -f conftest.$ac_objext
5037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038  (eval $ac_compile) 2>&5
5039  ac_status=$?
5040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041  (exit $ac_status); } &&
5042         { ac_try='test -s conftest.$ac_objext'
5043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044  (eval $ac_try) 2>&5
5045  ac_status=$?
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); }; }; then
5048  ac_cv_type_uint64_t=yes
5049else
5050  echo "$as_me: failed program was:" >&5
5051sed 's/^/| /' conftest.$ac_ext >&5
5052
5053ac_cv_type_uint64_t=no
5054fi
5055rm -f conftest.$ac_objext conftest.$ac_ext
5056fi
5057echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5058echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5059if test $ac_cv_type_uint64_t = yes; then
5060  :
5061else
5062
5063		echo "$as_me:$LINENO: checking for u_int64_t" >&5
5064echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5065if test "${ac_cv_type_u_int64_t+set}" = set; then
5066  echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068  cat >conftest.$ac_ext <<_ACEOF
5069#line $LINENO "configure"
5070/* confdefs.h.  */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h.  */
5075$ac_includes_default
5076int
5077main ()
5078{
5079if ((u_int64_t *) 0)
5080  return 0;
5081if (sizeof (u_int64_t))
5082  return 0;
5083  ;
5084  return 0;
5085}
5086_ACEOF
5087rm -f conftest.$ac_objext
5088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089  (eval $ac_compile) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } &&
5093         { ac_try='test -s conftest.$ac_objext'
5094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095  (eval $ac_try) 2>&5
5096  ac_status=$?
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); }; }; then
5099  ac_cv_type_u_int64_t=yes
5100else
5101  echo "$as_me: failed program was:" >&5
5102sed 's/^/| /' conftest.$ac_ext >&5
5103
5104ac_cv_type_u_int64_t=no
5105fi
5106rm -f conftest.$ac_objext conftest.$ac_ext
5107fi
5108echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5109echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5110if test $ac_cv_type_u_int64_t = yes; then
5111  cat >>confdefs.h <<\_ACEOF
5112#define uint64_t u_int64_t
5113_ACEOF
5114
5115else
5116  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5
5117echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
5118   { (exit 1); exit 1; }; }
5119fi
5120
5121
5122fi
5123
5124	echo "$as_me:$LINENO: checking for u_int64_t" >&5
5125echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5126if test "${ac_cv_type_u_int64_t+set}" = set; then
5127  echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129  cat >conftest.$ac_ext <<_ACEOF
5130#line $LINENO "configure"
5131/* confdefs.h.  */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h.  */
5136$ac_includes_default
5137int
5138main ()
5139{
5140if ((u_int64_t *) 0)
5141  return 0;
5142if (sizeof (u_int64_t))
5143  return 0;
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148rm -f conftest.$ac_objext
5149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150  (eval $ac_compile) 2>&5
5151  ac_status=$?
5152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); } &&
5154         { ac_try='test -s conftest.$ac_objext'
5155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156  (eval $ac_try) 2>&5
5157  ac_status=$?
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); }; }; then
5160  ac_cv_type_u_int64_t=yes
5161else
5162  echo "$as_me: failed program was:" >&5
5163sed 's/^/| /' conftest.$ac_ext >&5
5164
5165ac_cv_type_u_int64_t=no
5166fi
5167rm -f conftest.$ac_objext conftest.$ac_ext
5168fi
5169echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5170echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5171if test $ac_cv_type_u_int64_t = yes; then
5172  :
5173else
5174
5175		echo "$as_me:$LINENO: checking for uint64_t" >&5
5176echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5177if test "${ac_cv_type_uint64_t+set}" = set; then
5178  echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180  cat >conftest.$ac_ext <<_ACEOF
5181#line $LINENO "configure"
5182/* confdefs.h.  */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h.  */
5187$ac_includes_default
5188int
5189main ()
5190{
5191if ((uint64_t *) 0)
5192  return 0;
5193if (sizeof (uint64_t))
5194  return 0;
5195  ;
5196  return 0;
5197}
5198_ACEOF
5199rm -f conftest.$ac_objext
5200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201  (eval $ac_compile) 2>&5
5202  ac_status=$?
5203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204  (exit $ac_status); } &&
5205         { ac_try='test -s conftest.$ac_objext'
5206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207  (eval $ac_try) 2>&5
5208  ac_status=$?
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); }; }; then
5211  ac_cv_type_uint64_t=yes
5212else
5213  echo "$as_me: failed program was:" >&5
5214sed 's/^/| /' conftest.$ac_ext >&5
5215
5216ac_cv_type_uint64_t=no
5217fi
5218rm -f conftest.$ac_objext conftest.$ac_ext
5219fi
5220echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5221echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5222if test $ac_cv_type_uint64_t = yes; then
5223  cat >>confdefs.h <<\_ACEOF
5224#define u_int64_t uint64_t
5225_ACEOF
5226
5227else
5228  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5
5229echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
5230   { (exit 1); exit 1; }; }
5231fi
5232
5233
5234fi
5235
5236
5237
5238# Struct members.
5239echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
5240echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
5241if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244  cat >conftest.$ac_ext <<_ACEOF
5245#line $LINENO "configure"
5246/* confdefs.h.  */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h.  */
5251#include <sys/types.h>
5252#include <dirent.h>
5253
5254int
5255main ()
5256{
5257static DIR ac_aggr;
5258if (ac_aggr.dd_fd)
5259return 0;
5260  ;
5261  return 0;
5262}
5263_ACEOF
5264rm -f conftest.$ac_objext
5265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266  (eval $ac_compile) 2>&5
5267  ac_status=$?
5268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269  (exit $ac_status); } &&
5270         { ac_try='test -s conftest.$ac_objext'
5271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272  (eval $ac_try) 2>&5
5273  ac_status=$?
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); }; }; then
5276  ac_cv_member_DIR_dd_fd=yes
5277else
5278  echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281cat >conftest.$ac_ext <<_ACEOF
5282#line $LINENO "configure"
5283/* confdefs.h.  */
5284_ACEOF
5285cat confdefs.h >>conftest.$ac_ext
5286cat >>conftest.$ac_ext <<_ACEOF
5287/* end confdefs.h.  */
5288#include <sys/types.h>
5289#include <dirent.h>
5290
5291int
5292main ()
5293{
5294static DIR ac_aggr;
5295if (sizeof ac_aggr.dd_fd)
5296return 0;
5297  ;
5298  return 0;
5299}
5300_ACEOF
5301rm -f conftest.$ac_objext
5302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303  (eval $ac_compile) 2>&5
5304  ac_status=$?
5305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306  (exit $ac_status); } &&
5307         { ac_try='test -s conftest.$ac_objext'
5308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309  (eval $ac_try) 2>&5
5310  ac_status=$?
5311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312  (exit $ac_status); }; }; then
5313  ac_cv_member_DIR_dd_fd=yes
5314else
5315  echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
5318ac_cv_member_DIR_dd_fd=no
5319fi
5320rm -f conftest.$ac_objext conftest.$ac_ext
5321fi
5322rm -f conftest.$ac_objext conftest.$ac_ext
5323fi
5324echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
5325echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
5326if test $ac_cv_member_DIR_dd_fd = yes; then
5327
5328cat >>confdefs.h <<_ACEOF
5329#define HAVE_DIR_DD_FD 1
5330_ACEOF
5331
5332
5333fi
5334echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
5335echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
5336if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
5337  echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339  cat >conftest.$ac_ext <<_ACEOF
5340#line $LINENO "configure"
5341/* confdefs.h.  */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h.  */
5346#include <sys/types.h>
5347#include <dirent.h>
5348
5349int
5350main ()
5351{
5352static struct dirent ac_aggr;
5353if (ac_aggr.d_namlen)
5354return 0;
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359rm -f conftest.$ac_objext
5360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361  (eval $ac_compile) 2>&5
5362  ac_status=$?
5363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364  (exit $ac_status); } &&
5365         { ac_try='test -s conftest.$ac_objext'
5366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367  (eval $ac_try) 2>&5
5368  ac_status=$?
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); }; }; then
5371  ac_cv_member_struct_dirent_d_namlen=yes
5372else
5373  echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376cat >conftest.$ac_ext <<_ACEOF
5377#line $LINENO "configure"
5378/* confdefs.h.  */
5379_ACEOF
5380cat confdefs.h >>conftest.$ac_ext
5381cat >>conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h.  */
5383#include <sys/types.h>
5384#include <dirent.h>
5385
5386int
5387main ()
5388{
5389static struct dirent ac_aggr;
5390if (sizeof ac_aggr.d_namlen)
5391return 0;
5392  ;
5393  return 0;
5394}
5395_ACEOF
5396rm -f conftest.$ac_objext
5397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398  (eval $ac_compile) 2>&5
5399  ac_status=$?
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); } &&
5402         { ac_try='test -s conftest.$ac_objext'
5403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404  (eval $ac_try) 2>&5
5405  ac_status=$?
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); }; }; then
5408  ac_cv_member_struct_dirent_d_namlen=yes
5409else
5410  echo "$as_me: failed program was:" >&5
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
5413ac_cv_member_struct_dirent_d_namlen=no
5414fi
5415rm -f conftest.$ac_objext conftest.$ac_ext
5416fi
5417rm -f conftest.$ac_objext conftest.$ac_ext
5418fi
5419echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
5420echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
5421if test $ac_cv_member_struct_dirent_d_namlen = yes; then
5422
5423cat >>confdefs.h <<_ACEOF
5424#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
5425_ACEOF
5426
5427
5428fi
5429
5430echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
5431echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
5432if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
5433  echo $ECHO_N "(cached) $ECHO_C" >&6
5434else
5435  cat >conftest.$ac_ext <<_ACEOF
5436#line $LINENO "configure"
5437/* confdefs.h.  */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h.  */
5442#include <sys/stat.h>
5443
5444int
5445main ()
5446{
5447static struct stat ac_aggr;
5448if (ac_aggr.st_flags)
5449return 0;
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454rm -f conftest.$ac_objext
5455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456  (eval $ac_compile) 2>&5
5457  ac_status=$?
5458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); } &&
5460         { ac_try='test -s conftest.$ac_objext'
5461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462  (eval $ac_try) 2>&5
5463  ac_status=$?
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); }; }; then
5466  ac_cv_member_struct_stat_st_flags=yes
5467else
5468  echo "$as_me: failed program was:" >&5
5469sed 's/^/| /' conftest.$ac_ext >&5
5470
5471cat >conftest.$ac_ext <<_ACEOF
5472#line $LINENO "configure"
5473/* confdefs.h.  */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h.  */
5478#include <sys/stat.h>
5479
5480int
5481main ()
5482{
5483static struct stat ac_aggr;
5484if (sizeof ac_aggr.st_flags)
5485return 0;
5486  ;
5487  return 0;
5488}
5489_ACEOF
5490rm -f conftest.$ac_objext
5491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492  (eval $ac_compile) 2>&5
5493  ac_status=$?
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } &&
5496         { ac_try='test -s conftest.$ac_objext'
5497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498  (eval $ac_try) 2>&5
5499  ac_status=$?
5500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501  (exit $ac_status); }; }; then
5502  ac_cv_member_struct_stat_st_flags=yes
5503else
5504  echo "$as_me: failed program was:" >&5
5505sed 's/^/| /' conftest.$ac_ext >&5
5506
5507ac_cv_member_struct_stat_st_flags=no
5508fi
5509rm -f conftest.$ac_objext conftest.$ac_ext
5510fi
5511rm -f conftest.$ac_objext conftest.$ac_ext
5512fi
5513echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
5514echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
5515if test $ac_cv_member_struct_stat_st_flags = yes; then
5516
5517cat >>confdefs.h <<_ACEOF
5518#define HAVE_STRUCT_STAT_ST_FLAGS 1
5519_ACEOF
5520
5521
5522fi
5523echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
5524echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
5525if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
5526  echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528  cat >conftest.$ac_ext <<_ACEOF
5529#line $LINENO "configure"
5530/* confdefs.h.  */
5531_ACEOF
5532cat confdefs.h >>conftest.$ac_ext
5533cat >>conftest.$ac_ext <<_ACEOF
5534/* end confdefs.h.  */
5535#include <sys/stat.h>
5536
5537int
5538main ()
5539{
5540static struct stat ac_aggr;
5541if (ac_aggr.st_gen)
5542return 0;
5543  ;
5544  return 0;
5545}
5546_ACEOF
5547rm -f conftest.$ac_objext
5548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549  (eval $ac_compile) 2>&5
5550  ac_status=$?
5551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552  (exit $ac_status); } &&
5553         { ac_try='test -s conftest.$ac_objext'
5554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555  (eval $ac_try) 2>&5
5556  ac_status=$?
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); }; }; then
5559  ac_cv_member_struct_stat_st_gen=yes
5560else
5561  echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564cat >conftest.$ac_ext <<_ACEOF
5565#line $LINENO "configure"
5566/* confdefs.h.  */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h.  */
5571#include <sys/stat.h>
5572
5573int
5574main ()
5575{
5576static struct stat ac_aggr;
5577if (sizeof ac_aggr.st_gen)
5578return 0;
5579  ;
5580  return 0;
5581}
5582_ACEOF
5583rm -f conftest.$ac_objext
5584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585  (eval $ac_compile) 2>&5
5586  ac_status=$?
5587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588  (exit $ac_status); } &&
5589         { ac_try='test -s conftest.$ac_objext'
5590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591  (eval $ac_try) 2>&5
5592  ac_status=$?
5593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); }; }; then
5595  ac_cv_member_struct_stat_st_gen=yes
5596else
5597  echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
5600ac_cv_member_struct_stat_st_gen=no
5601fi
5602rm -f conftest.$ac_objext conftest.$ac_ext
5603fi
5604rm -f conftest.$ac_objext conftest.$ac_ext
5605fi
5606echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
5607echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
5608if test $ac_cv_member_struct_stat_st_gen = yes; then
5609
5610cat >>confdefs.h <<_ACEOF
5611#define HAVE_STRUCT_STAT_ST_GEN 1
5612_ACEOF
5613
5614
5615fi
5616echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
5617echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
5618if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
5619  echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621  cat >conftest.$ac_ext <<_ACEOF
5622#line $LINENO "configure"
5623/* confdefs.h.  */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h.  */
5628#include <sys/stat.h>
5629
5630int
5631main ()
5632{
5633static struct stat ac_aggr;
5634if (ac_aggr.st_birthtime)
5635return 0;
5636  ;
5637  return 0;
5638}
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_cv_member_struct_stat_st_birthtime=yes
5653else
5654  echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
5656
5657cat >conftest.$ac_ext <<_ACEOF
5658#line $LINENO "configure"
5659/* confdefs.h.  */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h.  */
5664#include <sys/stat.h>
5665
5666int
5667main ()
5668{
5669static struct stat ac_aggr;
5670if (sizeof ac_aggr.st_birthtime)
5671return 0;
5672  ;
5673  return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678  (eval $ac_compile) 2>&5
5679  ac_status=$?
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); } &&
5682         { ac_try='test -s conftest.$ac_objext'
5683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684  (eval $ac_try) 2>&5
5685  ac_status=$?
5686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687  (exit $ac_status); }; }; then
5688  ac_cv_member_struct_stat_st_birthtime=yes
5689else
5690  echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693ac_cv_member_struct_stat_st_birthtime=no
5694fi
5695rm -f conftest.$ac_objext conftest.$ac_ext
5696fi
5697rm -f conftest.$ac_objext conftest.$ac_ext
5698fi
5699echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
5700echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
5701if test $ac_cv_member_struct_stat_st_birthtime = yes; then
5702
5703cat >>confdefs.h <<_ACEOF
5704#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
5705_ACEOF
5706
5707
5708fi
5709echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
5710echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
5711if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
5712  echo $ECHO_N "(cached) $ECHO_C" >&6
5713else
5714  cat >conftest.$ac_ext <<_ACEOF
5715#line $LINENO "configure"
5716/* confdefs.h.  */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h.  */
5721#include <sys/stat.h>
5722
5723int
5724main ()
5725{
5726static struct stat ac_aggr;
5727if (ac_aggr.st_atim)
5728return 0;
5729  ;
5730  return 0;
5731}
5732_ACEOF
5733rm -f conftest.$ac_objext
5734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735  (eval $ac_compile) 2>&5
5736  ac_status=$?
5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738  (exit $ac_status); } &&
5739         { ac_try='test -s conftest.$ac_objext'
5740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741  (eval $ac_try) 2>&5
5742  ac_status=$?
5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744  (exit $ac_status); }; }; then
5745  ac_cv_member_struct_stat_st_atim=yes
5746else
5747  echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750cat >conftest.$ac_ext <<_ACEOF
5751#line $LINENO "configure"
5752/* confdefs.h.  */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
5756/* end confdefs.h.  */
5757#include <sys/stat.h>
5758
5759int
5760main ()
5761{
5762static struct stat ac_aggr;
5763if (sizeof ac_aggr.st_atim)
5764return 0;
5765  ;
5766  return 0;
5767}
5768_ACEOF
5769rm -f conftest.$ac_objext
5770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771  (eval $ac_compile) 2>&5
5772  ac_status=$?
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); } &&
5775         { ac_try='test -s conftest.$ac_objext'
5776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777  (eval $ac_try) 2>&5
5778  ac_status=$?
5779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780  (exit $ac_status); }; }; then
5781  ac_cv_member_struct_stat_st_atim=yes
5782else
5783  echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
5786ac_cv_member_struct_stat_st_atim=no
5787fi
5788rm -f conftest.$ac_objext conftest.$ac_ext
5789fi
5790rm -f conftest.$ac_objext conftest.$ac_ext
5791fi
5792echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
5793echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
5794if test $ac_cv_member_struct_stat_st_atim = yes; then
5795
5796cat >>confdefs.h <<_ACEOF
5797#define HAVE_STRUCT_STAT_ST_ATIM 1
5798_ACEOF
5799
5800
5801fi
5802echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
5803echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
5804if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
5805  echo $ECHO_N "(cached) $ECHO_C" >&6
5806else
5807  cat >conftest.$ac_ext <<_ACEOF
5808#line $LINENO "configure"
5809/* confdefs.h.  */
5810_ACEOF
5811cat confdefs.h >>conftest.$ac_ext
5812cat >>conftest.$ac_ext <<_ACEOF
5813/* end confdefs.h.  */
5814#include <sys/stat.h>
5815
5816int
5817main ()
5818{
5819static struct stat ac_aggr;
5820if (ac_aggr.st_mtimensec)
5821return 0;
5822  ;
5823  return 0;
5824}
5825_ACEOF
5826rm -f conftest.$ac_objext
5827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828  (eval $ac_compile) 2>&5
5829  ac_status=$?
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); } &&
5832         { ac_try='test -s conftest.$ac_objext'
5833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834  (eval $ac_try) 2>&5
5835  ac_status=$?
5836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837  (exit $ac_status); }; }; then
5838  ac_cv_member_struct_stat_st_mtimensec=yes
5839else
5840  echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843cat >conftest.$ac_ext <<_ACEOF
5844#line $LINENO "configure"
5845/* confdefs.h.  */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
5849/* end confdefs.h.  */
5850#include <sys/stat.h>
5851
5852int
5853main ()
5854{
5855static struct stat ac_aggr;
5856if (sizeof ac_aggr.st_mtimensec)
5857return 0;
5858  ;
5859  return 0;
5860}
5861_ACEOF
5862rm -f conftest.$ac_objext
5863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864  (eval $ac_compile) 2>&5
5865  ac_status=$?
5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); } &&
5868         { ac_try='test -s conftest.$ac_objext'
5869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870  (eval $ac_try) 2>&5
5871  ac_status=$?
5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873  (exit $ac_status); }; }; then
5874  ac_cv_member_struct_stat_st_mtimensec=yes
5875else
5876  echo "$as_me: failed program was:" >&5
5877sed 's/^/| /' conftest.$ac_ext >&5
5878
5879ac_cv_member_struct_stat_st_mtimensec=no
5880fi
5881rm -f conftest.$ac_objext conftest.$ac_ext
5882fi
5883rm -f conftest.$ac_objext conftest.$ac_ext
5884fi
5885echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
5886echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
5887if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
5888
5889cat >>confdefs.h <<_ACEOF
5890#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
5891_ACEOF
5892
5893
5894fi
5895
5896echo "$as_me:$LINENO: checking for struct statfs.f_iosize" >&5
5897echo $ECHO_N "checking for struct statfs.f_iosize... $ECHO_C" >&6
5898if test "${ac_cv_member_struct_statfs_f_iosize+set}" = set; then
5899  echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901  cat >conftest.$ac_ext <<_ACEOF
5902#line $LINENO "configure"
5903/* confdefs.h.  */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h.  */
5908#include <sys/mount.h>
5909
5910int
5911main ()
5912{
5913static struct statfs ac_aggr;
5914if (ac_aggr.f_iosize)
5915return 0;
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext
5921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922  (eval $ac_compile) 2>&5
5923  ac_status=$?
5924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925  (exit $ac_status); } &&
5926         { ac_try='test -s conftest.$ac_objext'
5927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928  (eval $ac_try) 2>&5
5929  ac_status=$?
5930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931  (exit $ac_status); }; }; then
5932  ac_cv_member_struct_statfs_f_iosize=yes
5933else
5934  echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937cat >conftest.$ac_ext <<_ACEOF
5938#line $LINENO "configure"
5939/* confdefs.h.  */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h.  */
5944#include <sys/mount.h>
5945
5946int
5947main ()
5948{
5949static struct statfs ac_aggr;
5950if (sizeof ac_aggr.f_iosize)
5951return 0;
5952  ;
5953  return 0;
5954}
5955_ACEOF
5956rm -f conftest.$ac_objext
5957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958  (eval $ac_compile) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); } &&
5962         { ac_try='test -s conftest.$ac_objext'
5963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964  (eval $ac_try) 2>&5
5965  ac_status=$?
5966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967  (exit $ac_status); }; }; then
5968  ac_cv_member_struct_statfs_f_iosize=yes
5969else
5970  echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973ac_cv_member_struct_statfs_f_iosize=no
5974fi
5975rm -f conftest.$ac_objext conftest.$ac_ext
5976fi
5977rm -f conftest.$ac_objext conftest.$ac_ext
5978fi
5979echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_iosize" >&5
5980echo "${ECHO_T}$ac_cv_member_struct_statfs_f_iosize" >&6
5981if test $ac_cv_member_struct_statfs_f_iosize = yes; then
5982
5983cat >>confdefs.h <<_ACEOF
5984#define HAVE_STRUCT_STATFS_F_IOSIZE 1
5985_ACEOF
5986
5987
5988fi
5989
5990
5991# Global variable decls.
5992echo "$as_me:$LINENO: checking whether optind is declared" >&5
5993echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
5994if test "${ac_cv_have_decl_optind+set}" = set; then
5995  echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997  cat >conftest.$ac_ext <<_ACEOF
5998#line $LINENO "configure"
5999/* confdefs.h.  */
6000_ACEOF
6001cat confdefs.h >>conftest.$ac_ext
6002cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h.  */
6004
6005#include <stdio.h>
6006#include <stdlib.h>
6007#include <unistd.h>
6008
6009
6010int
6011main ()
6012{
6013#ifndef optind
6014  char *p = (char *) optind;
6015#endif
6016
6017  ;
6018  return 0;
6019}
6020_ACEOF
6021rm -f conftest.$ac_objext
6022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023  (eval $ac_compile) 2>&5
6024  ac_status=$?
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); } &&
6027         { ac_try='test -s conftest.$ac_objext'
6028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029  (eval $ac_try) 2>&5
6030  ac_status=$?
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); }; }; then
6033  ac_cv_have_decl_optind=yes
6034else
6035  echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038ac_cv_have_decl_optind=no
6039fi
6040rm -f conftest.$ac_objext conftest.$ac_ext
6041fi
6042echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
6043echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
6044if test $ac_cv_have_decl_optind = yes; then
6045
6046cat >>confdefs.h <<_ACEOF
6047#define HAVE_DECL_OPTIND 1
6048_ACEOF
6049
6050
6051else
6052  cat >>confdefs.h <<_ACEOF
6053#define HAVE_DECL_OPTIND 0
6054_ACEOF
6055
6056
6057fi
6058echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6059echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
6060if test "${ac_cv_have_decl_optreset+set}" = set; then
6061  echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063  cat >conftest.$ac_ext <<_ACEOF
6064#line $LINENO "configure"
6065/* confdefs.h.  */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h.  */
6070
6071#include <stdio.h>
6072#include <stdlib.h>
6073#include <unistd.h>
6074
6075
6076int
6077main ()
6078{
6079#ifndef optreset
6080  char *p = (char *) optreset;
6081#endif
6082
6083  ;
6084  return 0;
6085}
6086_ACEOF
6087rm -f conftest.$ac_objext
6088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089  (eval $ac_compile) 2>&5
6090  ac_status=$?
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); } &&
6093         { ac_try='test -s conftest.$ac_objext'
6094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095  (eval $ac_try) 2>&5
6096  ac_status=$?
6097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098  (exit $ac_status); }; }; then
6099  ac_cv_have_decl_optreset=yes
6100else
6101  echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
6103
6104ac_cv_have_decl_optreset=no
6105fi
6106rm -f conftest.$ac_objext conftest.$ac_ext
6107fi
6108echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
6109echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
6110if test $ac_cv_have_decl_optreset = yes; then
6111
6112cat >>confdefs.h <<_ACEOF
6113#define HAVE_DECL_OPTRESET 1
6114_ACEOF
6115
6116
6117else
6118  cat >>confdefs.h <<_ACEOF
6119#define HAVE_DECL_OPTRESET 0
6120_ACEOF
6121
6122
6123fi
6124
6125
6126echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
6127echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
6128if test "${ac_cv_have_decl_sys_signame+set}" = set; then
6129  echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131  cat >conftest.$ac_ext <<_ACEOF
6132#line $LINENO "configure"
6133/* confdefs.h.  */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h.  */
6138#include <signal.h>
6139
6140int
6141main ()
6142{
6143#ifndef sys_signame
6144  char *p = (char *) sys_signame;
6145#endif
6146
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151rm -f conftest.$ac_objext
6152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153  (eval $ac_compile) 2>&5
6154  ac_status=$?
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); } &&
6157         { ac_try='test -s conftest.$ac_objext'
6158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159  (eval $ac_try) 2>&5
6160  ac_status=$?
6161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162  (exit $ac_status); }; }; then
6163  ac_cv_have_decl_sys_signame=yes
6164else
6165  echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168ac_cv_have_decl_sys_signame=no
6169fi
6170rm -f conftest.$ac_objext conftest.$ac_ext
6171fi
6172echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
6173echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
6174if test $ac_cv_have_decl_sys_signame = yes; then
6175
6176cat >>confdefs.h <<_ACEOF
6177#define HAVE_DECL_SYS_SIGNAME 1
6178_ACEOF
6179
6180
6181else
6182  cat >>confdefs.h <<_ACEOF
6183#define HAVE_DECL_SYS_SIGNAME 0
6184_ACEOF
6185
6186
6187fi
6188
6189
6190
6191# Library functions (where a .h check isn't enough).
6192# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6193# for constant arguments.  Useless!
6194echo "$as_me:$LINENO: checking for working alloca.h" >&5
6195echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6196if test "${ac_cv_working_alloca_h+set}" = set; then
6197  echo $ECHO_N "(cached) $ECHO_C" >&6
6198else
6199  cat >conftest.$ac_ext <<_ACEOF
6200#line $LINENO "configure"
6201/* confdefs.h.  */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h.  */
6206#include <alloca.h>
6207int
6208main ()
6209{
6210char *p = (char *) alloca (2 * sizeof (int));
6211  ;
6212  return 0;
6213}
6214_ACEOF
6215rm -f conftest.$ac_objext conftest$ac_exeext
6216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217  (eval $ac_link) 2>&5
6218  ac_status=$?
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); } &&
6221         { ac_try='test -s conftest$ac_exeext'
6222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223  (eval $ac_try) 2>&5
6224  ac_status=$?
6225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226  (exit $ac_status); }; }; then
6227  ac_cv_working_alloca_h=yes
6228else
6229  echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232ac_cv_working_alloca_h=no
6233fi
6234rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235fi
6236echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6237echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6238if test $ac_cv_working_alloca_h = yes; then
6239
6240cat >>confdefs.h <<\_ACEOF
6241#define HAVE_ALLOCA_H 1
6242_ACEOF
6243
6244fi
6245
6246echo "$as_me:$LINENO: checking for alloca" >&5
6247echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6248if test "${ac_cv_func_alloca_works+set}" = set; then
6249  echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251  cat >conftest.$ac_ext <<_ACEOF
6252#line $LINENO "configure"
6253/* confdefs.h.  */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h.  */
6258#ifdef __GNUC__
6259# define alloca __builtin_alloca
6260#else
6261# ifdef _MSC_VER
6262#  include <malloc.h>
6263#  define alloca _alloca
6264# else
6265#  if HAVE_ALLOCA_H
6266#   include <alloca.h>
6267#  else
6268#   ifdef _AIX
6269 #pragma alloca
6270#   else
6271#    ifndef alloca /* predefined by HP cc +Olibcalls */
6272char *alloca ();
6273#    endif
6274#   endif
6275#  endif
6276# endif
6277#endif
6278
6279int
6280main ()
6281{
6282char *p = (char *) alloca (1);
6283  ;
6284  return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289  (eval $ac_link) 2>&5
6290  ac_status=$?
6291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292  (exit $ac_status); } &&
6293         { ac_try='test -s conftest$ac_exeext'
6294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295  (eval $ac_try) 2>&5
6296  ac_status=$?
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); }; }; then
6299  ac_cv_func_alloca_works=yes
6300else
6301  echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304ac_cv_func_alloca_works=no
6305fi
6306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6307fi
6308echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6309echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6310
6311if test $ac_cv_func_alloca_works = yes; then
6312
6313cat >>confdefs.h <<\_ACEOF
6314#define HAVE_ALLOCA 1
6315_ACEOF
6316
6317else
6318  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6319# that cause trouble.  Some versions do not even contain alloca or
6320# contain a buggy version.  If you still want to use their alloca,
6321# use ar to extract alloca.o from them instead of compiling alloca.c.
6322
6323ALLOCA=alloca.$ac_objext
6324
6325cat >>confdefs.h <<\_ACEOF
6326#define C_ALLOCA 1
6327_ACEOF
6328
6329
6330echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6331echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6332if test "${ac_cv_os_cray+set}" = set; then
6333  echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335  cat >conftest.$ac_ext <<_ACEOF
6336#line $LINENO "configure"
6337/* confdefs.h.  */
6338_ACEOF
6339cat confdefs.h >>conftest.$ac_ext
6340cat >>conftest.$ac_ext <<_ACEOF
6341/* end confdefs.h.  */
6342#if defined(CRAY) && ! defined(CRAY2)
6343webecray
6344#else
6345wenotbecray
6346#endif
6347
6348_ACEOF
6349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6350  $EGREP "webecray" >/dev/null 2>&1; then
6351  ac_cv_os_cray=yes
6352else
6353  ac_cv_os_cray=no
6354fi
6355rm -f conftest*
6356
6357fi
6358echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6359echo "${ECHO_T}$ac_cv_os_cray" >&6
6360if test $ac_cv_os_cray = yes; then
6361  for ac_func in _getb67 GETB67 getb67; do
6362    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6363echo "$as_me:$LINENO: checking for $ac_func" >&5
6364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6365if eval "test \"\${$as_ac_var+set}\" = set"; then
6366  echo $ECHO_N "(cached) $ECHO_C" >&6
6367else
6368  cat >conftest.$ac_ext <<_ACEOF
6369#line $LINENO "configure"
6370/* confdefs.h.  */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h.  */
6375/* System header to define __stub macros and hopefully few prototypes,
6376    which can conflict with char $ac_func (); below.
6377    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6378    <limits.h> exists even on freestanding compilers.  */
6379#ifdef __STDC__
6380# include <limits.h>
6381#else
6382# include <assert.h>
6383#endif
6384/* Override any gcc2 internal prototype to avoid an error.  */
6385#ifdef __cplusplus
6386extern "C"
6387{
6388#endif
6389/* We use char because int might match the return type of a gcc2
6390   builtin and then its argument prototype would still apply.  */
6391char $ac_func ();
6392/* The GNU C library defines this for functions which it implements
6393    to always fail with ENOSYS.  Some functions are actually named
6394    something starting with __ and the normal name is an alias.  */
6395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6396choke me
6397#else
6398char (*f) () = $ac_func;
6399#endif
6400#ifdef __cplusplus
6401}
6402#endif
6403
6404int
6405main ()
6406{
6407return f != $ac_func;
6408  ;
6409  return 0;
6410}
6411_ACEOF
6412rm -f conftest.$ac_objext conftest$ac_exeext
6413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414  (eval $ac_link) 2>&5
6415  ac_status=$?
6416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); } &&
6418         { ac_try='test -s conftest$ac_exeext'
6419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420  (eval $ac_try) 2>&5
6421  ac_status=$?
6422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423  (exit $ac_status); }; }; then
6424  eval "$as_ac_var=yes"
6425else
6426  echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429eval "$as_ac_var=no"
6430fi
6431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432fi
6433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6435if test `eval echo '${'$as_ac_var'}'` = yes; then
6436
6437cat >>confdefs.h <<_ACEOF
6438#define CRAY_STACKSEG_END $ac_func
6439_ACEOF
6440
6441    break
6442fi
6443
6444  done
6445fi
6446
6447echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6448echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6449if test "${ac_cv_c_stack_direction+set}" = set; then
6450  echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452  if test "$cross_compiling" = yes; then
6453  ac_cv_c_stack_direction=0
6454else
6455  cat >conftest.$ac_ext <<_ACEOF
6456#line $LINENO "configure"
6457/* confdefs.h.  */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h.  */
6462int
6463find_stack_direction ()
6464{
6465  static char *addr = 0;
6466  auto char dummy;
6467  if (addr == 0)
6468    {
6469      addr = &dummy;
6470      return find_stack_direction ();
6471    }
6472  else
6473    return (&dummy > addr) ? 1 : -1;
6474}
6475
6476int
6477main ()
6478{
6479  exit (find_stack_direction () < 0);
6480}
6481_ACEOF
6482rm -f conftest$ac_exeext
6483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484  (eval $ac_link) 2>&5
6485  ac_status=$?
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489  (eval $ac_try) 2>&5
6490  ac_status=$?
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); }; }; then
6493  ac_cv_c_stack_direction=1
6494else
6495  echo "$as_me: program exited with status $ac_status" >&5
6496echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499( exit $ac_status )
6500ac_cv_c_stack_direction=-1
6501fi
6502rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6503fi
6504fi
6505echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6506echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6507
6508cat >>confdefs.h <<_ACEOF
6509#define STACK_DIRECTION $ac_cv_c_stack_direction
6510_ACEOF
6511
6512
6513fi
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
6557	fgetln flock fparseln futimes getopt getopt_long \
6558	isblank issetugid lchflags lchmod lchown lutimes mkstemp mkdtemp \
6559	poll pread putc_unlocked pwcache_userdb pwrite random setenv \
6560	setgroupent setprogname setpassent snprintf strlcat strlcpy strsep \
6561	strsuftoll strtoll \
6562	user_from_uid vasprintf vasnprintf vsnprintf
6563do
6564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6565echo "$as_me:$LINENO: checking for $ac_func" >&5
6566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6567if eval "test \"\${$as_ac_var+set}\" = set"; then
6568  echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570  cat >conftest.$ac_ext <<_ACEOF
6571#line $LINENO "configure"
6572/* confdefs.h.  */
6573_ACEOF
6574cat confdefs.h >>conftest.$ac_ext
6575cat >>conftest.$ac_ext <<_ACEOF
6576/* end confdefs.h.  */
6577/* System header to define __stub macros and hopefully few prototypes,
6578    which can conflict with char $ac_func (); below.
6579    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6580    <limits.h> exists even on freestanding compilers.  */
6581#ifdef __STDC__
6582# include <limits.h>
6583#else
6584# include <assert.h>
6585#endif
6586/* Override any gcc2 internal prototype to avoid an error.  */
6587#ifdef __cplusplus
6588extern "C"
6589{
6590#endif
6591/* We use char because int might match the return type of a gcc2
6592   builtin and then its argument prototype would still apply.  */
6593char $ac_func ();
6594/* The GNU C library defines this for functions which it implements
6595    to always fail with ENOSYS.  Some functions are actually named
6596    something starting with __ and the normal name is an alias.  */
6597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6598choke me
6599#else
6600char (*f) () = $ac_func;
6601#endif
6602#ifdef __cplusplus
6603}
6604#endif
6605
6606int
6607main ()
6608{
6609return f != $ac_func;
6610  ;
6611  return 0;
6612}
6613_ACEOF
6614rm -f conftest.$ac_objext conftest$ac_exeext
6615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616  (eval $ac_link) 2>&5
6617  ac_status=$?
6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); } &&
6620         { ac_try='test -s conftest$ac_exeext'
6621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622  (eval $ac_try) 2>&5
6623  ac_status=$?
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); }; }; then
6626  eval "$as_ac_var=yes"
6627else
6628  echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631eval "$as_ac_var=no"
6632fi
6633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6634fi
6635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6637if test `eval echo '${'$as_ac_var'}'` = yes; then
6638  cat >>confdefs.h <<_ACEOF
6639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6640_ACEOF
6641
6642fi
6643done
6644
6645
6646echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
6647echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
6648if test "${ac_cv_have_decl_setgroupent+set}" = set; then
6649  echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651  cat >conftest.$ac_ext <<_ACEOF
6652#line $LINENO "configure"
6653/* confdefs.h.  */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h.  */
6658
6659#include <sys/types.h>
6660#include <grp.h>
6661#include <pwd.h>
6662
6663
6664int
6665main ()
6666{
6667#ifndef setgroupent
6668  char *p = (char *) setgroupent;
6669#endif
6670
6671  ;
6672  return 0;
6673}
6674_ACEOF
6675rm -f conftest.$ac_objext
6676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6677  (eval $ac_compile) 2>&5
6678  ac_status=$?
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); } &&
6681         { ac_try='test -s conftest.$ac_objext'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; }; then
6687  ac_cv_have_decl_setgroupent=yes
6688else
6689  echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5
6691
6692ac_cv_have_decl_setgroupent=no
6693fi
6694rm -f conftest.$ac_objext conftest.$ac_ext
6695fi
6696echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
6697echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
6698if test $ac_cv_have_decl_setgroupent = yes; then
6699
6700cat >>confdefs.h <<_ACEOF
6701#define HAVE_DECL_SETGROUPENT 1
6702_ACEOF
6703
6704
6705else
6706  cat >>confdefs.h <<_ACEOF
6707#define HAVE_DECL_SETGROUPENT 0
6708_ACEOF
6709
6710
6711fi
6712echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
6713echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
6714if test "${ac_cv_have_decl_setpassent+set}" = set; then
6715  echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717  cat >conftest.$ac_ext <<_ACEOF
6718#line $LINENO "configure"
6719/* confdefs.h.  */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h.  */
6724
6725#include <sys/types.h>
6726#include <grp.h>
6727#include <pwd.h>
6728
6729
6730int
6731main ()
6732{
6733#ifndef setpassent
6734  char *p = (char *) setpassent;
6735#endif
6736
6737  ;
6738  return 0;
6739}
6740_ACEOF
6741rm -f conftest.$ac_objext
6742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743  (eval $ac_compile) 2>&5
6744  ac_status=$?
6745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746  (exit $ac_status); } &&
6747         { ac_try='test -s conftest.$ac_objext'
6748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749  (eval $ac_try) 2>&5
6750  ac_status=$?
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); }; }; then
6753  ac_cv_have_decl_setpassent=yes
6754else
6755  echo "$as_me: failed program was:" >&5
6756sed 's/^/| /' conftest.$ac_ext >&5
6757
6758ac_cv_have_decl_setpassent=no
6759fi
6760rm -f conftest.$ac_objext conftest.$ac_ext
6761fi
6762echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
6763echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
6764if test $ac_cv_have_decl_setpassent = yes; then
6765
6766cat >>confdefs.h <<_ACEOF
6767#define HAVE_DECL_SETPASSENT 1
6768_ACEOF
6769
6770
6771else
6772  cat >>confdefs.h <<_ACEOF
6773#define HAVE_DECL_SETPASSENT 0
6774_ACEOF
6775
6776
6777fi
6778
6779
6780
6781# regcomp() and regexec() are also names of functions in the old V8
6782# regexp package.  To avoid them, we need to find out who has regfree().
6783
6784
6785echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
6786echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
6787if test "${ac_cv_lib_regex_regfree+set}" = set; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790  ac_check_lib_save_LIBS=$LIBS
6791LIBS="-lregex  $LIBS"
6792cat >conftest.$ac_ext <<_ACEOF
6793#line $LINENO "configure"
6794/* confdefs.h.  */
6795_ACEOF
6796cat confdefs.h >>conftest.$ac_ext
6797cat >>conftest.$ac_ext <<_ACEOF
6798/* end confdefs.h.  */
6799
6800/* Override any gcc2 internal prototype to avoid an error.  */
6801#ifdef __cplusplus
6802extern "C"
6803#endif
6804/* We use char because int might match the return type of a gcc2
6805   builtin and then its argument prototype would still apply.  */
6806char regfree ();
6807int
6808main ()
6809{
6810regfree ();
6811  ;
6812  return 0;
6813}
6814_ACEOF
6815rm -f conftest.$ac_objext conftest$ac_exeext
6816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6817  (eval $ac_link) 2>&5
6818  ac_status=$?
6819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820  (exit $ac_status); } &&
6821         { ac_try='test -s conftest$ac_exeext'
6822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823  (eval $ac_try) 2>&5
6824  ac_status=$?
6825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826  (exit $ac_status); }; }; then
6827  ac_cv_lib_regex_regfree=yes
6828else
6829  echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
6831
6832ac_cv_lib_regex_regfree=no
6833fi
6834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6835LIBS=$ac_check_lib_save_LIBS
6836fi
6837echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
6838echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
6839if test $ac_cv_lib_regex_regfree = yes; then
6840  cat >>confdefs.h <<_ACEOF
6841#define HAVE_LIBREGEX 1
6842_ACEOF
6843
6844  LIBS="-lregex $LIBS"
6845
6846fi
6847
6848echo "$as_me:$LINENO: checking for library containing regfree" >&5
6849echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
6850if test "${ac_cv_search_regfree+set}" = set; then
6851  echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853  ac_func_search_save_LIBS=$LIBS
6854ac_cv_search_regfree=no
6855cat >conftest.$ac_ext <<_ACEOF
6856#line $LINENO "configure"
6857/* confdefs.h.  */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h.  */
6862
6863/* Override any gcc2 internal prototype to avoid an error.  */
6864#ifdef __cplusplus
6865extern "C"
6866#endif
6867/* We use char because int might match the return type of a gcc2
6868   builtin and then its argument prototype would still apply.  */
6869char regfree ();
6870int
6871main ()
6872{
6873regfree ();
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878rm -f conftest.$ac_objext conftest$ac_exeext
6879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880  (eval $ac_link) 2>&5
6881  ac_status=$?
6882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883  (exit $ac_status); } &&
6884         { ac_try='test -s conftest$ac_exeext'
6885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886  (eval $ac_try) 2>&5
6887  ac_status=$?
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); }; }; then
6890  ac_cv_search_regfree="none required"
6891else
6892  echo "$as_me: failed program was:" >&5
6893sed 's/^/| /' conftest.$ac_ext >&5
6894
6895fi
6896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6897if test "$ac_cv_search_regfree" = no; then
6898  for ac_lib in rx posix; do
6899    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6900    cat >conftest.$ac_ext <<_ACEOF
6901#line $LINENO "configure"
6902/* confdefs.h.  */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h.  */
6907
6908/* Override any gcc2 internal prototype to avoid an error.  */
6909#ifdef __cplusplus
6910extern "C"
6911#endif
6912/* We use char because int might match the return type of a gcc2
6913   builtin and then its argument prototype would still apply.  */
6914char regfree ();
6915int
6916main ()
6917{
6918regfree ();
6919  ;
6920  return 0;
6921}
6922_ACEOF
6923rm -f conftest.$ac_objext conftest$ac_exeext
6924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6925  (eval $ac_link) 2>&5
6926  ac_status=$?
6927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928  (exit $ac_status); } &&
6929         { ac_try='test -s conftest$ac_exeext'
6930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931  (eval $ac_try) 2>&5
6932  ac_status=$?
6933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934  (exit $ac_status); }; }; then
6935  ac_cv_search_regfree="-l$ac_lib"
6936break
6937else
6938  echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941fi
6942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6943  done
6944fi
6945LIBS=$ac_func_search_save_LIBS
6946fi
6947echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
6948echo "${ECHO_T}$ac_cv_search_regfree" >&6
6949if test "$ac_cv_search_regfree" != no; then
6950  test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
6951
6952fi
6953
6954
6955cat >confcache <<\_ACEOF
6956# This file is a shell script that caches the results of configure
6957# tests run on this system so they can be shared between configure
6958# scripts and configure runs, see configure's option --config-cache.
6959# It is not useful on other systems.  If it contains results you don't
6960# want to keep, you may remove or edit it.
6961#
6962# config.status only pays attention to the cache file if you give it
6963# the --recheck option to rerun configure.
6964#
6965# `ac_cv_env_foo' variables (set or unset) will be overridden when
6966# loading this file, other *unset* `ac_cv_foo' will be assigned the
6967# following values.
6968
6969_ACEOF
6970
6971# The following way of writing the cache mishandles newlines in values,
6972# but we know of no workaround that is simple, portable, and efficient.
6973# So, don't put newlines in cache variables' values.
6974# Ultrix sh set writes to stderr and can't be redirected directly,
6975# and sets the high bit in the cache file unless we assign to the vars.
6976{
6977  (set) 2>&1 |
6978    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6979    *ac_space=\ *)
6980      # `set' does not quote correctly, so add quotes (double-quote
6981      # substitution turns \\\\ into \\, and sed turns \\ into \).
6982      sed -n \
6983        "s/'/'\\\\''/g;
6984    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6985      ;;
6986    *)
6987      # `set' quotes correctly as required by POSIX, so do not add quotes.
6988      sed -n \
6989        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6990      ;;
6991    esac;
6992} |
6993  sed '
6994     t clear
6995     : clear
6996     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6997     t end
6998     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6999     : end' >>confcache
7000if diff $cache_file confcache >/dev/null 2>&1; then :; else
7001  if test -w $cache_file; then
7002    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7003    cat confcache >$cache_file
7004  else
7005    echo "not updating unwritable cache $cache_file"
7006  fi
7007fi
7008rm -f confcache
7009
7010test "x$prefix" = xNONE && prefix=$ac_default_prefix
7011# Let make expand exec_prefix.
7012test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7013
7014# VPATH may cause trouble with some makes, so we remove $(srcdir),
7015# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7016# trailing colons and then remove the whole line if VPATH becomes empty
7017# (actually we leave an empty line to preserve line numbers).
7018if test "x$srcdir" = x.; then
7019  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
7020s/:*\$(srcdir):*/:/;
7021s/:*\${srcdir}:*/:/;
7022s/:*@srcdir@:*/:/;
7023s/^\([^=]*=[ 	]*\):*/\1/;
7024s/:*$//;
7025s/^[^=]*=[ 	]*$//;
7026}'
7027fi
7028
7029DEFS=-DHAVE_CONFIG_H
7030
7031ac_libobjs=
7032ac_ltlibobjs=
7033for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7034  # 1. Remove the extension, and $U if already installed.
7035  ac_i=`echo "$ac_i" |
7036         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7037  # 2. Add them.
7038  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7039  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7040done
7041LIBOBJS=$ac_libobjs
7042
7043LTLIBOBJS=$ac_ltlibobjs
7044
7045
7046
7047: ${CONFIG_STATUS=./config.status}
7048ac_clean_files_save=$ac_clean_files
7049ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7050{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7051echo "$as_me: creating $CONFIG_STATUS" >&6;}
7052cat >$CONFIG_STATUS <<_ACEOF
7053#! $SHELL
7054# Generated by $as_me.
7055# Run this file to recreate the current configuration.
7056# Compiler output produced by configure, useful for debugging
7057# configure, is in config.log if it exists.
7058
7059debug=false
7060ac_cs_recheck=false
7061ac_cs_silent=false
7062SHELL=\${CONFIG_SHELL-$SHELL}
7063_ACEOF
7064
7065cat >>$CONFIG_STATUS <<\_ACEOF
7066## --------------------- ##
7067## M4sh Initialization.  ##
7068## --------------------- ##
7069
7070# Be Bourne compatible
7071if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7072  emulate sh
7073  NULLCMD=:
7074  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7075  # is contrary to our usage.  Disable this feature.
7076  alias -g '${1+"$@"}'='"$@"'
7077elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7078  set -o posix
7079fi
7080
7081# Support unset when possible.
7082if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7083  as_unset=unset
7084else
7085  as_unset=false
7086fi
7087
7088
7089# Work around bugs in pre-3.0 UWIN ksh.
7090$as_unset ENV MAIL MAILPATH
7091PS1='$ '
7092PS2='> '
7093PS4='+ '
7094
7095# NLS nuisances.
7096for as_var in \
7097  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7098  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7099  LC_TELEPHONE LC_TIME
7100do
7101  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7102    eval $as_var=C; export $as_var
7103  else
7104    $as_unset $as_var
7105  fi
7106done
7107
7108# Required to use basename.
7109if expr a : '\(a\)' >/dev/null 2>&1; then
7110  as_expr=expr
7111else
7112  as_expr=false
7113fi
7114
7115if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7116  as_basename=basename
7117else
7118  as_basename=false
7119fi
7120
7121
7122# Name of the executable.
7123as_me=`$as_basename "$0" ||
7124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7125	 X"$0" : 'X\(//\)$' \| \
7126	 X"$0" : 'X\(/\)$' \| \
7127	 .     : '\(.\)' 2>/dev/null ||
7128echo X/"$0" |
7129    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7130  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
7131  	  /^X\/\(\/\).*/{ s//\1/; q; }
7132  	  s/.*/./; q'`
7133
7134
7135# PATH needs CR, and LINENO needs CR and PATH.
7136# Avoid depending upon Character Ranges.
7137as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7139as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7140as_cr_digits='0123456789'
7141as_cr_alnum=$as_cr_Letters$as_cr_digits
7142
7143# The user is always right.
7144if test "${PATH_SEPARATOR+set}" != set; then
7145  echo "#! /bin/sh" >conf$$.sh
7146  echo  "exit 0"   >>conf$$.sh
7147  chmod +x conf$$.sh
7148  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7149    PATH_SEPARATOR=';'
7150  else
7151    PATH_SEPARATOR=:
7152  fi
7153  rm -f conf$$.sh
7154fi
7155
7156
7157  as_lineno_1=$LINENO
7158  as_lineno_2=$LINENO
7159  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7160  test "x$as_lineno_1" != "x$as_lineno_2" &&
7161  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7162  # Find who we are.  Look in the path if we contain no path at all
7163  # relative or not.
7164  case $0 in
7165    *[\\/]* ) as_myself=$0 ;;
7166    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169  IFS=$as_save_IFS
7170  test -z "$as_dir" && as_dir=.
7171  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7172done
7173
7174       ;;
7175  esac
7176  # We did not find ourselves, most probably we were run as `sh COMMAND'
7177  # in which case we are not to be found in the path.
7178  if test "x$as_myself" = x; then
7179    as_myself=$0
7180  fi
7181  if test ! -f "$as_myself"; then
7182    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7183echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7184   { (exit 1); exit 1; }; }
7185  fi
7186  case $CONFIG_SHELL in
7187  '')
7188    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7190do
7191  IFS=$as_save_IFS
7192  test -z "$as_dir" && as_dir=.
7193  for as_base in sh bash ksh sh5; do
7194	 case $as_dir in
7195	 /*)
7196	   if ("$as_dir/$as_base" -c '
7197  as_lineno_1=$LINENO
7198  as_lineno_2=$LINENO
7199  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7200  test "x$as_lineno_1" != "x$as_lineno_2" &&
7201  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7202	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7203	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7204	     CONFIG_SHELL=$as_dir/$as_base
7205	     export CONFIG_SHELL
7206	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7207	   fi;;
7208	 esac
7209       done
7210done
7211;;
7212  esac
7213
7214  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7215  # uniformly replaced by the line number.  The first 'sed' inserts a
7216  # line-number line before each line; the second 'sed' does the real
7217  # work.  The second script uses 'N' to pair each line-number line
7218  # with the numbered line, and appends trailing '-' during
7219  # substitution so that $LINENO is not a special case at line end.
7220  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7221  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7222  sed '=' <$as_myself |
7223    sed '
7224      N
7225      s,$,-,
7226      : loop
7227      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7228      t loop
7229      s,-$,,
7230      s,^['$as_cr_digits']*\n,,
7231    ' >$as_me.lineno &&
7232  chmod +x $as_me.lineno ||
7233    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7234echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7235   { (exit 1); exit 1; }; }
7236
7237  # Don't try to exec as it changes $[0], causing all sort of problems
7238  # (the dirname of $[0] is not the place where we might find the
7239  # original and so on.  Autoconf is especially sensible to this).
7240  . ./$as_me.lineno
7241  # Exit status is that of the last command.
7242  exit
7243}
7244
7245
7246case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7247  *c*,-n*) ECHO_N= ECHO_C='
7248' ECHO_T='	' ;;
7249  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7250  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7251esac
7252
7253if expr a : '\(a\)' >/dev/null 2>&1; then
7254  as_expr=expr
7255else
7256  as_expr=false
7257fi
7258
7259rm -f conf$$ conf$$.exe conf$$.file
7260echo >conf$$.file
7261if ln -s conf$$.file conf$$ 2>/dev/null; then
7262  # We could just check for DJGPP; but this test a) works b) is more generic
7263  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7264  if test -f conf$$.exe; then
7265    # Don't use ln at all; we don't have any links
7266    as_ln_s='cp -p'
7267  else
7268    as_ln_s='ln -s'
7269  fi
7270elif ln conf$$.file conf$$ 2>/dev/null; then
7271  as_ln_s=ln
7272else
7273  as_ln_s='cp -p'
7274fi
7275rm -f conf$$ conf$$.exe conf$$.file
7276
7277if mkdir -p . 2>/dev/null; then
7278  as_mkdir_p=:
7279else
7280  as_mkdir_p=false
7281fi
7282
7283as_executable_p="test -f"
7284
7285# Sed expression to map a string onto a valid CPP name.
7286as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7287
7288# Sed expression to map a string onto a valid variable name.
7289as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7290
7291
7292# IFS
7293# We need space, tab and new line, in precisely that order.
7294as_nl='
7295'
7296IFS=" 	$as_nl"
7297
7298# CDPATH.
7299$as_unset CDPATH
7300
7301exec 6>&1
7302
7303# Open the log real soon, to keep \$[0] and so on meaningful, and to
7304# report actual input values of CONFIG_FILES etc. instead of their
7305# values after options handling.  Logging --version etc. is OK.
7306exec 5>>config.log
7307{
7308  echo
7309  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7310## Running $as_me. ##
7311_ASBOX
7312} >&5
7313cat >&5 <<_CSEOF
7314
7315This file was extended by libnbcompat $as_me noversion, which was
7316generated by GNU Autoconf 2.57.  Invocation command line was
7317
7318  CONFIG_FILES    = $CONFIG_FILES
7319  CONFIG_HEADERS  = $CONFIG_HEADERS
7320  CONFIG_LINKS    = $CONFIG_LINKS
7321  CONFIG_COMMANDS = $CONFIG_COMMANDS
7322  $ $0 $@
7323
7324_CSEOF
7325echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7326echo >&5
7327_ACEOF
7328
7329# Files that config.status was made for.
7330if test -n "$ac_config_files"; then
7331  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7332fi
7333
7334if test -n "$ac_config_headers"; then
7335  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7336fi
7337
7338if test -n "$ac_config_links"; then
7339  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7340fi
7341
7342if test -n "$ac_config_commands"; then
7343  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7344fi
7345
7346cat >>$CONFIG_STATUS <<\_ACEOF
7347
7348ac_cs_usage="\
7349\`$as_me' instantiates files from templates according to the
7350current configuration.
7351
7352Usage: $0 [OPTIONS] [FILE]...
7353
7354  -h, --help       print this help, then exit
7355  -V, --version    print version number, then exit
7356  -q, --quiet      do not print progress messages
7357  -d, --debug      don't remove temporary files
7358      --recheck    update $as_me by reconfiguring in the same conditions
7359  --file=FILE[:TEMPLATE]
7360                   instantiate the configuration file FILE
7361  --header=FILE[:TEMPLATE]
7362                   instantiate the configuration header FILE
7363
7364Configuration files:
7365$config_files
7366
7367Configuration headers:
7368$config_headers
7369
7370Report bugs to <bug-autoconf@gnu.org>."
7371_ACEOF
7372
7373cat >>$CONFIG_STATUS <<_ACEOF
7374ac_cs_version="\\
7375libnbcompat config.status noversion
7376configured by $0, generated by GNU Autoconf 2.57,
7377  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7378
7379Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7380Free Software Foundation, Inc.
7381This config.status script is free software; the Free Software Foundation
7382gives unlimited permission to copy, distribute and modify it."
7383srcdir=$srcdir
7384_ACEOF
7385
7386cat >>$CONFIG_STATUS <<\_ACEOF
7387# If no file are specified by the user, then we need to provide default
7388# value.  By we need to know if files were specified by the user.
7389ac_need_defaults=:
7390while test $# != 0
7391do
7392  case $1 in
7393  --*=*)
7394    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7395    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7396    ac_shift=:
7397    ;;
7398  -*)
7399    ac_option=$1
7400    ac_optarg=$2
7401    ac_shift=shift
7402    ;;
7403  *) # This is not an option, so the user has probably given explicit
7404     # arguments.
7405     ac_option=$1
7406     ac_need_defaults=false;;
7407  esac
7408
7409  case $ac_option in
7410  # Handling of the options.
7411_ACEOF
7412cat >>$CONFIG_STATUS <<\_ACEOF
7413  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7414    ac_cs_recheck=: ;;
7415  --version | --vers* | -V )
7416    echo "$ac_cs_version"; exit 0 ;;
7417  --he | --h)
7418    # Conflict between --help and --header
7419    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7420Try \`$0 --help' for more information." >&5
7421echo "$as_me: error: ambiguous option: $1
7422Try \`$0 --help' for more information." >&2;}
7423   { (exit 1); exit 1; }; };;
7424  --help | --hel | -h )
7425    echo "$ac_cs_usage"; exit 0 ;;
7426  --debug | --d* | -d )
7427    debug=: ;;
7428  --file | --fil | --fi | --f )
7429    $ac_shift
7430    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7431    ac_need_defaults=false;;
7432  --header | --heade | --head | --hea )
7433    $ac_shift
7434    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7435    ac_need_defaults=false;;
7436  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7437  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7438    ac_cs_silent=: ;;
7439
7440  # This is an error.
7441  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7442Try \`$0 --help' for more information." >&5
7443echo "$as_me: error: unrecognized option: $1
7444Try \`$0 --help' for more information." >&2;}
7445   { (exit 1); exit 1; }; } ;;
7446
7447  *) ac_config_targets="$ac_config_targets $1" ;;
7448
7449  esac
7450  shift
7451done
7452
7453ac_configure_extra_args=
7454
7455if $ac_cs_silent; then
7456  exec 6>/dev/null
7457  ac_configure_extra_args="$ac_configure_extra_args --silent"
7458fi
7459
7460_ACEOF
7461cat >>$CONFIG_STATUS <<_ACEOF
7462if \$ac_cs_recheck; then
7463  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7464  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7465fi
7466
7467_ACEOF
7468
7469
7470
7471
7472
7473cat >>$CONFIG_STATUS <<\_ACEOF
7474for ac_config_target in $ac_config_targets
7475do
7476  case "$ac_config_target" in
7477  # Handling of arguments.
7478  "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
7479  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7480  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7481echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7482   { (exit 1); exit 1; }; };;
7483  esac
7484done
7485
7486# If the user did not use the arguments to specify the items to instantiate,
7487# then the envvar interface is used.  Set only those that are not.
7488# We use the long form for the default assignment because of an extremely
7489# bizarre bug on SunOS 4.1.3.
7490if $ac_need_defaults; then
7491  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7492  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7493fi
7494
7495# Have a temporary directory for convenience.  Make it in the build tree
7496# simply because there is no reason to put it here, and in addition,
7497# creating and moving files from /tmp can sometimes cause problems.
7498# Create a temporary directory, and hook for its removal unless debugging.
7499$debug ||
7500{
7501  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7502  trap '{ (exit 1); exit 1; }' 1 2 13 15
7503}
7504
7505# Create a (secure) tmp directory for tmp files.
7506
7507{
7508  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7509  test -n "$tmp" && test -d "$tmp"
7510}  ||
7511{
7512  tmp=./confstat$$-$RANDOM
7513  (umask 077 && mkdir $tmp)
7514} ||
7515{
7516   echo "$me: cannot create a temporary directory in ." >&2
7517   { (exit 1); exit 1; }
7518}
7519
7520_ACEOF
7521
7522cat >>$CONFIG_STATUS <<_ACEOF
7523
7524#
7525# CONFIG_FILES section.
7526#
7527
7528# No need to generate the scripts if there are no CONFIG_FILES.
7529# This happens for instance when ./config.status config.h
7530if test -n "\$CONFIG_FILES"; then
7531  # Protect against being on the right side of a sed subst in config.status.
7532  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7533   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7534s,@SHELL@,$SHELL,;t t
7535s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7536s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7537s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7538s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7539s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7540s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7541s,@exec_prefix@,$exec_prefix,;t t
7542s,@prefix@,$prefix,;t t
7543s,@program_transform_name@,$program_transform_name,;t t
7544s,@bindir@,$bindir,;t t
7545s,@sbindir@,$sbindir,;t t
7546s,@libexecdir@,$libexecdir,;t t
7547s,@datadir@,$datadir,;t t
7548s,@sysconfdir@,$sysconfdir,;t t
7549s,@sharedstatedir@,$sharedstatedir,;t t
7550s,@localstatedir@,$localstatedir,;t t
7551s,@libdir@,$libdir,;t t
7552s,@includedir@,$includedir,;t t
7553s,@oldincludedir@,$oldincludedir,;t t
7554s,@infodir@,$infodir,;t t
7555s,@mandir@,$mandir,;t t
7556s,@build_alias@,$build_alias,;t t
7557s,@host_alias@,$host_alias,;t t
7558s,@target_alias@,$target_alias,;t t
7559s,@DEFS@,$DEFS,;t t
7560s,@ECHO_C@,$ECHO_C,;t t
7561s,@ECHO_N@,$ECHO_N,;t t
7562s,@ECHO_T@,$ECHO_T,;t t
7563s,@LIBS@,$LIBS,;t t
7564s,@BSHELL@,$BSHELL,;t t
7565s,@CC@,$CC,;t t
7566s,@CFLAGS@,$CFLAGS,;t t
7567s,@LDFLAGS@,$LDFLAGS,;t t
7568s,@CPPFLAGS@,$CPPFLAGS,;t t
7569s,@ac_ct_CC@,$ac_ct_CC,;t t
7570s,@EXEEXT@,$EXEEXT,;t t
7571s,@OBJEXT@,$OBJEXT,;t t
7572s,@CPP@,$CPP,;t t
7573s,@EGREP@,$EGREP,;t t
7574s,@ALLOCA@,$ALLOCA,;t t
7575s,@LIBOBJS@,$LIBOBJS,;t t
7576s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7577CEOF
7578
7579_ACEOF
7580
7581  cat >>$CONFIG_STATUS <<\_ACEOF
7582  # Split the substitutions into bite-sized pieces for seds with
7583  # small command number limits, like on Digital OSF/1 and HP-UX.
7584  ac_max_sed_lines=48
7585  ac_sed_frag=1 # Number of current file.
7586  ac_beg=1 # First line for current file.
7587  ac_end=$ac_max_sed_lines # Line after last line for current file.
7588  ac_more_lines=:
7589  ac_sed_cmds=
7590  while $ac_more_lines; do
7591    if test $ac_beg -gt 1; then
7592      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7593    else
7594      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7595    fi
7596    if test ! -s $tmp/subs.frag; then
7597      ac_more_lines=false
7598    else
7599      # The purpose of the label and of the branching condition is to
7600      # speed up the sed processing (if there are no `@' at all, there
7601      # is no need to browse any of the substitutions).
7602      # These are the two extra sed commands mentioned above.
7603      (echo ':t
7604  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7605      if test -z "$ac_sed_cmds"; then
7606  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7607      else
7608  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7609      fi
7610      ac_sed_frag=`expr $ac_sed_frag + 1`
7611      ac_beg=$ac_end
7612      ac_end=`expr $ac_end + $ac_max_sed_lines`
7613    fi
7614  done
7615  if test -z "$ac_sed_cmds"; then
7616    ac_sed_cmds=cat
7617  fi
7618fi # test -n "$CONFIG_FILES"
7619
7620_ACEOF
7621cat >>$CONFIG_STATUS <<\_ACEOF
7622for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7623  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7624  case $ac_file in
7625  - | *:- | *:-:* ) # input from stdin
7626        cat >$tmp/stdin
7627        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7628        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7629  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7630        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7631  * )   ac_file_in=$ac_file.in ;;
7632  esac
7633
7634  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7635  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7636$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7637         X"$ac_file" : 'X\(//\)[^/]' \| \
7638         X"$ac_file" : 'X\(//\)$' \| \
7639         X"$ac_file" : 'X\(/\)' \| \
7640         .     : '\(.\)' 2>/dev/null ||
7641echo X"$ac_file" |
7642    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7643  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7644  	  /^X\(\/\/\)$/{ s//\1/; q; }
7645  	  /^X\(\/\).*/{ s//\1/; q; }
7646  	  s/.*/./; q'`
7647  { if $as_mkdir_p; then
7648    mkdir -p "$ac_dir"
7649  else
7650    as_dir="$ac_dir"
7651    as_dirs=
7652    while test ! -d "$as_dir"; do
7653      as_dirs="$as_dir $as_dirs"
7654      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7656         X"$as_dir" : 'X\(//\)[^/]' \| \
7657         X"$as_dir" : 'X\(//\)$' \| \
7658         X"$as_dir" : 'X\(/\)' \| \
7659         .     : '\(.\)' 2>/dev/null ||
7660echo X"$as_dir" |
7661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7662  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7663  	  /^X\(\/\/\)$/{ s//\1/; q; }
7664  	  /^X\(\/\).*/{ s//\1/; q; }
7665  	  s/.*/./; q'`
7666    done
7667    test ! -n "$as_dirs" || mkdir $as_dirs
7668  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7669echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7670   { (exit 1); exit 1; }; }; }
7671
7672  ac_builddir=.
7673
7674if test "$ac_dir" != .; then
7675  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7676  # A "../" for each directory in $ac_dir_suffix.
7677  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7678else
7679  ac_dir_suffix= ac_top_builddir=
7680fi
7681
7682case $srcdir in
7683  .)  # No --srcdir option.  We are building in place.
7684    ac_srcdir=.
7685    if test -z "$ac_top_builddir"; then
7686       ac_top_srcdir=.
7687    else
7688       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7689    fi ;;
7690  [\\/]* | ?:[\\/]* )  # Absolute path.
7691    ac_srcdir=$srcdir$ac_dir_suffix;
7692    ac_top_srcdir=$srcdir ;;
7693  *) # Relative path.
7694    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7695    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7696esac
7697# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7698# absolute.
7699ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7700ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7701ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7702ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7703
7704
7705
7706  if test x"$ac_file" != x-; then
7707    { echo "$as_me:$LINENO: creating $ac_file" >&5
7708echo "$as_me: creating $ac_file" >&6;}
7709    rm -f "$ac_file"
7710  fi
7711  # Let's still pretend it is `configure' which instantiates (i.e., don't
7712  # use $as_me), people would be surprised to read:
7713  #    /* config.h.  Generated by config.status.  */
7714  if test x"$ac_file" = x-; then
7715    configure_input=
7716  else
7717    configure_input="$ac_file.  "
7718  fi
7719  configure_input=$configure_input"Generated from `echo $ac_file_in |
7720                                     sed 's,.*/,,'` by configure."
7721
7722  # First look for the input files in the build tree, otherwise in the
7723  # src tree.
7724  ac_file_inputs=`IFS=:
7725    for f in $ac_file_in; do
7726      case $f in
7727      -) echo $tmp/stdin ;;
7728      [\\/$]*)
7729         # Absolute (can't be DOS-style, as IFS=:)
7730         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7731echo "$as_me: error: cannot find input file: $f" >&2;}
7732   { (exit 1); exit 1; }; }
7733         echo $f;;
7734      *) # Relative
7735         if test -f "$f"; then
7736           # Build tree
7737           echo $f
7738         elif test -f "$srcdir/$f"; then
7739           # Source tree
7740           echo $srcdir/$f
7741         else
7742           # /dev/null tree
7743           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7744echo "$as_me: error: cannot find input file: $f" >&2;}
7745   { (exit 1); exit 1; }; }
7746         fi;;
7747      esac
7748    done` || { (exit 1); exit 1; }
7749_ACEOF
7750cat >>$CONFIG_STATUS <<_ACEOF
7751  sed "$ac_vpsub
7752$extrasub
7753_ACEOF
7754cat >>$CONFIG_STATUS <<\_ACEOF
7755:t
7756/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7757s,@configure_input@,$configure_input,;t t
7758s,@srcdir@,$ac_srcdir,;t t
7759s,@abs_srcdir@,$ac_abs_srcdir,;t t
7760s,@top_srcdir@,$ac_top_srcdir,;t t
7761s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7762s,@builddir@,$ac_builddir,;t t
7763s,@abs_builddir@,$ac_abs_builddir,;t t
7764s,@top_builddir@,$ac_top_builddir,;t t
7765s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7766" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7767  rm -f $tmp/stdin
7768  if test x"$ac_file" != x-; then
7769    mv $tmp/out $ac_file
7770  else
7771    cat $tmp/out
7772    rm -f $tmp/out
7773  fi
7774
7775done
7776_ACEOF
7777cat >>$CONFIG_STATUS <<\_ACEOF
7778
7779#
7780# CONFIG_HEADER section.
7781#
7782
7783# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7784# NAME is the cpp macro being defined and VALUE is the value it is being given.
7785#
7786# ac_d sets the value in "#define NAME VALUE" lines.
7787ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
7788ac_dB='[ 	].*$,\1#\2'
7789ac_dC=' '
7790ac_dD=',;t'
7791# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7792ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
7793ac_uB='$,\1#\2define\3'
7794ac_uC=' '
7795ac_uD=',;t'
7796
7797for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7798  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7799  case $ac_file in
7800  - | *:- | *:-:* ) # input from stdin
7801        cat >$tmp/stdin
7802        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7803        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7804  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7805        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7806  * )   ac_file_in=$ac_file.in ;;
7807  esac
7808
7809  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7810echo "$as_me: creating $ac_file" >&6;}
7811
7812  # First look for the input files in the build tree, otherwise in the
7813  # src tree.
7814  ac_file_inputs=`IFS=:
7815    for f in $ac_file_in; do
7816      case $f in
7817      -) echo $tmp/stdin ;;
7818      [\\/$]*)
7819         # Absolute (can't be DOS-style, as IFS=:)
7820         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7821echo "$as_me: error: cannot find input file: $f" >&2;}
7822   { (exit 1); exit 1; }; }
7823         echo $f;;
7824      *) # Relative
7825         if test -f "$f"; then
7826           # Build tree
7827           echo $f
7828         elif test -f "$srcdir/$f"; then
7829           # Source tree
7830           echo $srcdir/$f
7831         else
7832           # /dev/null tree
7833           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7834echo "$as_me: error: cannot find input file: $f" >&2;}
7835   { (exit 1); exit 1; }; }
7836         fi;;
7837      esac
7838    done` || { (exit 1); exit 1; }
7839  # Remove the trailing spaces.
7840  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
7841
7842_ACEOF
7843
7844# Transform confdefs.h into two sed scripts, `conftest.defines' and
7845# `conftest.undefs', that substitutes the proper values into
7846# config.h.in to produce config.h.  The first handles `#define'
7847# templates, and the second `#undef' templates.
7848# And first: Protect against being on the right side of a sed subst in
7849# config.status.  Protect against being in an unquoted here document
7850# in config.status.
7851rm -f conftest.defines conftest.undefs
7852# Using a here document instead of a string reduces the quoting nightmare.
7853# Putting comments in sed scripts is not portable.
7854#
7855# `end' is used to avoid that the second main sed command (meant for
7856# 0-ary CPP macros) applies to n-ary macro definitions.
7857# See the Autoconf documentation for `clear'.
7858cat >confdef2sed.sed <<\_ACEOF
7859s/[\\&,]/\\&/g
7860s,[\\$`],\\&,g
7861t clear
7862: clear
7863s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7864t end
7865s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7866: end
7867_ACEOF
7868# If some macros were called several times there might be several times
7869# the same #defines, which is useless.  Nevertheless, we may not want to
7870# sort them, since we want the *last* AC-DEFINE to be honored.
7871uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7872sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7873rm -f confdef2sed.sed
7874
7875# This sed command replaces #undef with comments.  This is necessary, for
7876# example, in the case of _POSIX_SOURCE, which is predefined and required
7877# on some systems where configure will not decide to define it.
7878cat >>conftest.undefs <<\_ACEOF
7879s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7880_ACEOF
7881
7882# Break up conftest.defines because some shells have a limit on the size
7883# of here documents, and old seds have small limits too (100 cmds).
7884echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7885echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7886echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7887echo '  :' >>$CONFIG_STATUS
7888rm -f conftest.tail
7889while grep . conftest.defines >/dev/null
7890do
7891  # Write a limited-size here document to $tmp/defines.sed.
7892  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7893  # Speed up: don't consider the non `#define' lines.
7894  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
7895  # Work around the forget-to-reset-the-flag bug.
7896  echo 't clr' >>$CONFIG_STATUS
7897  echo ': clr' >>$CONFIG_STATUS
7898  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7899  echo 'CEOF
7900  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7901  rm -f $tmp/in
7902  mv $tmp/out $tmp/in
7903' >>$CONFIG_STATUS
7904  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7905  rm -f conftest.defines
7906  mv conftest.tail conftest.defines
7907done
7908rm -f conftest.defines
7909echo '  fi # grep' >>$CONFIG_STATUS
7910echo >>$CONFIG_STATUS
7911
7912# Break up conftest.undefs because some shells have a limit on the size
7913# of here documents, and old seds have small limits too (100 cmds).
7914echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7915rm -f conftest.tail
7916while grep . conftest.undefs >/dev/null
7917do
7918  # Write a limited-size here document to $tmp/undefs.sed.
7919  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7920  # Speed up: don't consider the non `#undef'
7921  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
7922  # Work around the forget-to-reset-the-flag bug.
7923  echo 't clr' >>$CONFIG_STATUS
7924  echo ': clr' >>$CONFIG_STATUS
7925  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7926  echo 'CEOF
7927  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7928  rm -f $tmp/in
7929  mv $tmp/out $tmp/in
7930' >>$CONFIG_STATUS
7931  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7932  rm -f conftest.undefs
7933  mv conftest.tail conftest.undefs
7934done
7935rm -f conftest.undefs
7936
7937cat >>$CONFIG_STATUS <<\_ACEOF
7938  # Let's still pretend it is `configure' which instantiates (i.e., don't
7939  # use $as_me), people would be surprised to read:
7940  #    /* config.h.  Generated by config.status.  */
7941  if test x"$ac_file" = x-; then
7942    echo "/* Generated by configure.  */" >$tmp/config.h
7943  else
7944    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7945  fi
7946  cat $tmp/in >>$tmp/config.h
7947  rm -f $tmp/in
7948  if test x"$ac_file" != x-; then
7949    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7950      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7951echo "$as_me: $ac_file is unchanged" >&6;}
7952    else
7953      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7954$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7955         X"$ac_file" : 'X\(//\)[^/]' \| \
7956         X"$ac_file" : 'X\(//\)$' \| \
7957         X"$ac_file" : 'X\(/\)' \| \
7958         .     : '\(.\)' 2>/dev/null ||
7959echo X"$ac_file" |
7960    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7961  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7962  	  /^X\(\/\/\)$/{ s//\1/; q; }
7963  	  /^X\(\/\).*/{ s//\1/; q; }
7964  	  s/.*/./; q'`
7965      { if $as_mkdir_p; then
7966    mkdir -p "$ac_dir"
7967  else
7968    as_dir="$ac_dir"
7969    as_dirs=
7970    while test ! -d "$as_dir"; do
7971      as_dirs="$as_dir $as_dirs"
7972      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7973$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7974         X"$as_dir" : 'X\(//\)[^/]' \| \
7975         X"$as_dir" : 'X\(//\)$' \| \
7976         X"$as_dir" : 'X\(/\)' \| \
7977         .     : '\(.\)' 2>/dev/null ||
7978echo X"$as_dir" |
7979    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7980  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7981  	  /^X\(\/\/\)$/{ s//\1/; q; }
7982  	  /^X\(\/\).*/{ s//\1/; q; }
7983  	  s/.*/./; q'`
7984    done
7985    test ! -n "$as_dirs" || mkdir $as_dirs
7986  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7987echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7988   { (exit 1); exit 1; }; }; }
7989
7990      rm -f $ac_file
7991      mv $tmp/config.h $ac_file
7992    fi
7993  else
7994    cat $tmp/config.h
7995    rm -f $tmp/config.h
7996  fi
7997done
7998_ACEOF
7999
8000cat >>$CONFIG_STATUS <<\_ACEOF
8001
8002{ (exit 0); exit 0; }
8003_ACEOF
8004chmod +x $CONFIG_STATUS
8005ac_clean_files=$ac_clean_files_save
8006
8007
8008# configure is writing to config.log, and then calls config.status.
8009# config.status does its own redirection, appending to config.log.
8010# Unfortunately, on DOS this fails, as config.log is still kept open
8011# by configure, so config.status won't be able to write to it; its
8012# output is simply discarded.  So we exec the FD to /dev/null,
8013# effectively closing config.log, so it can be properly (re)opened and
8014# appended to by config.status.  When coming back to configure, we
8015# need to make the FD available again.
8016if test "$no_create" != yes; then
8017  ac_cs_success=:
8018  ac_config_status_args=
8019  test "$silent" = yes &&
8020    ac_config_status_args="$ac_config_status_args --quiet"
8021  exec 5>/dev/null
8022  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8023  exec 5>>config.log
8024  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8025  # would make configure fail if this is the last instruction.
8026  $ac_cs_success || { (exit 1); exit 1; }
8027fi
8028
8029