configure revision 1.53
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libnbcompat noversion.
4#
5# Report bugs to <lib-bug-people@NetBSD.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='libnbcompat'
271PACKAGE_TARNAME='libnbcompat'
272PACKAGE_VERSION='noversion'
273PACKAGE_STRING='libnbcompat noversion'
274PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
275
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP BSHELL ALLOCA LIBOBJS LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672	      localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712	 X"$0" : 'X\(//\)[^/]' \| \
713	 X"$0" : 'X\(//\)$' \| \
714	 X"$0" : 'X\(/\)' \| \
715	 .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719  	  /^X\(\/\/\)$/{ s//\1/; q; }
720  	  /^X\(\/\).*/{ s//\1/; q; }
721  	  s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807			  [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809			  [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834_ACEOF
835fi
836
837if test -n "$ac_init_help"; then
838  case $ac_init_help in
839     short | recursive ) echo "Configuration of libnbcompat noversion:";;
840   esac
841  cat <<\_ACEOF
842
843Some influential environment variables:
844  CC          C compiler command
845  CFLAGS      C compiler flags
846  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
847              nonstandard directory <lib dir>
848  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
849              headers in a nonstandard directory <include dir>
850  CPP         C preprocessor
851
852Use these variables to override the choices made by `configure' or to help
853it to find libraries and programs with nonstandard names/locations.
854
855Report bugs to <lib-bug-people@NetBSD.org>.
856_ACEOF
857fi
858
859if test "$ac_init_help" = "recursive"; then
860  # If there are subdirs, report their specific --help.
861  ac_popdir=`pwd`
862  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
863    test -d $ac_dir || continue
864    ac_builddir=.
865
866if test "$ac_dir" != .; then
867  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
868  # A "../" for each directory in $ac_dir_suffix.
869  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
870else
871  ac_dir_suffix= ac_top_builddir=
872fi
873
874case $srcdir in
875  .)  # No --srcdir option.  We are building in place.
876    ac_srcdir=.
877    if test -z "$ac_top_builddir"; then
878       ac_top_srcdir=.
879    else
880       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
881    fi ;;
882  [\\/]* | ?:[\\/]* )  # Absolute path.
883    ac_srcdir=$srcdir$ac_dir_suffix;
884    ac_top_srcdir=$srcdir ;;
885  *) # Relative path.
886    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
887    ac_top_srcdir=$ac_top_builddir$srcdir ;;
888esac
889
890# Do not use `cd foo && pwd` to compute absolute paths, because
891# the directories may not exist.
892case `pwd` in
893.) ac_abs_builddir="$ac_dir";;
894*)
895  case "$ac_dir" in
896  .) ac_abs_builddir=`pwd`;;
897  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
898  *) ac_abs_builddir=`pwd`/"$ac_dir";;
899  esac;;
900esac
901case $ac_abs_builddir in
902.) ac_abs_top_builddir=${ac_top_builddir}.;;
903*)
904  case ${ac_top_builddir}. in
905  .) ac_abs_top_builddir=$ac_abs_builddir;;
906  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
907  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
908  esac;;
909esac
910case $ac_abs_builddir in
911.) ac_abs_srcdir=$ac_srcdir;;
912*)
913  case $ac_srcdir in
914  .) ac_abs_srcdir=$ac_abs_builddir;;
915  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
916  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
917  esac;;
918esac
919case $ac_abs_builddir in
920.) ac_abs_top_srcdir=$ac_top_srcdir;;
921*)
922  case $ac_top_srcdir in
923  .) ac_abs_top_srcdir=$ac_abs_builddir;;
924  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
925  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
926  esac;;
927esac
928
929    cd $ac_dir
930    # Check for guested configure; otherwise get Cygnus style configure.
931    if test -f $ac_srcdir/configure.gnu; then
932      echo
933      $SHELL $ac_srcdir/configure.gnu  --help=recursive
934    elif test -f $ac_srcdir/configure; then
935      echo
936      $SHELL $ac_srcdir/configure  --help=recursive
937    elif test -f $ac_srcdir/configure.ac ||
938	   test -f $ac_srcdir/configure.in; then
939      echo
940      $ac_configure --help
941    else
942      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943    fi
944    cd $ac_popdir
945  done
946fi
947
948test -n "$ac_init_help" && exit 0
949if $ac_init_version; then
950  cat <<\_ACEOF
951libnbcompat configure noversion
952generated by GNU Autoconf 2.59
953
954Copyright (C) 2003 Free Software Foundation, Inc.
955This configure script is free software; the Free Software Foundation
956gives unlimited permission to copy, distribute and modify it.
957_ACEOF
958  exit 0
959fi
960exec 5>config.log
961cat >&5 <<_ACEOF
962This file contains any messages produced by compilers while
963running configure, to aid debugging if configure makes a mistake.
964
965It was created by libnbcompat $as_me noversion, which was
966generated by GNU Autoconf 2.59.  Invocation command line was
967
968  $ $0 $@
969
970_ACEOF
971{
972cat <<_ASUNAME
973## --------- ##
974## Platform. ##
975## --------- ##
976
977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978uname -m = `(uname -m) 2>/dev/null || echo unknown`
979uname -r = `(uname -r) 2>/dev/null || echo unknown`
980uname -s = `(uname -s) 2>/dev/null || echo unknown`
981uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
985
986/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
987/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
990/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
991/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
992/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
993
994_ASUNAME
995
996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997for as_dir in $PATH
998do
999  IFS=$as_save_IFS
1000  test -z "$as_dir" && as_dir=.
1001  echo "PATH: $as_dir"
1002done
1003
1004} >&5
1005
1006cat >&5 <<_ACEOF
1007
1008
1009## ----------- ##
1010## Core tests. ##
1011## ----------- ##
1012
1013_ACEOF
1014
1015
1016# Keep a trace of the command line.
1017# Strip out --no-create and --no-recursion so they do not pile up.
1018# Strip out --silent because we don't want to record it for future runs.
1019# Also quote any args containing shell meta-characters.
1020# Make two passes to allow for proper duplicate-argument suppression.
1021ac_configure_args=
1022ac_configure_args0=
1023ac_configure_args1=
1024ac_sep=
1025ac_must_keep_next=false
1026for ac_pass in 1 2
1027do
1028  for ac_arg
1029  do
1030    case $ac_arg in
1031    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033    | -silent | --silent | --silen | --sile | --sil)
1034      continue ;;
1035    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037    esac
1038    case $ac_pass in
1039    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040    2)
1041      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042      if test $ac_must_keep_next = true; then
1043	ac_must_keep_next=false # Got value, back to normal.
1044      else
1045	case $ac_arg in
1046	  *=* | --config-cache | -C | -disable-* | --disable-* \
1047	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049	  | -with-* | --with-* | -without-* | --without-* | --x)
1050	    case "$ac_configure_args0 " in
1051	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052	    esac
1053	    ;;
1054	  -* ) ac_must_keep_next=true ;;
1055	esac
1056      fi
1057      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058      # Get rid of the leading space.
1059      ac_sep=" "
1060      ;;
1061    esac
1062  done
1063done
1064$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067# When interrupted or exit'd, cleanup temporary files, and complete
1068# config.log.  We remove comments because anyway the quotes in there
1069# would cause problems or look ugly.
1070# WARNING: Be sure not to use single quotes in there, as some shells,
1071# such as our DU 5.0 friend, will then `close' the trap.
1072trap 'exit_status=$?
1073  # Save into config.log some information that might help in debugging.
1074  {
1075    echo
1076
1077    cat <<\_ASBOX
1078## ---------------- ##
1079## Cache variables. ##
1080## ---------------- ##
1081_ASBOX
1082    echo
1083    # The following way of writing the cache mishandles newlines in values,
1084{
1085  (set) 2>&1 |
1086    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087    *ac_space=\ *)
1088      sed -n \
1089	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091      ;;
1092    *)
1093      sed -n \
1094	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095      ;;
1096    esac;
1097}
1098    echo
1099
1100    cat <<\_ASBOX
1101## ----------------- ##
1102## Output variables. ##
1103## ----------------- ##
1104_ASBOX
1105    echo
1106    for ac_var in $ac_subst_vars
1107    do
1108      eval ac_val=$`echo $ac_var`
1109      echo "$ac_var='"'"'$ac_val'"'"'"
1110    done | sort
1111    echo
1112
1113    if test -n "$ac_subst_files"; then
1114      cat <<\_ASBOX
1115## ------------- ##
1116## Output files. ##
1117## ------------- ##
1118_ASBOX
1119      echo
1120      for ac_var in $ac_subst_files
1121      do
1122	eval ac_val=$`echo $ac_var`
1123	echo "$ac_var='"'"'$ac_val'"'"'"
1124      done | sort
1125      echo
1126    fi
1127
1128    if test -s confdefs.h; then
1129      cat <<\_ASBOX
1130## ----------- ##
1131## confdefs.h. ##
1132## ----------- ##
1133_ASBOX
1134      echo
1135      sed "/^$/d" confdefs.h | sort
1136      echo
1137    fi
1138    test "$ac_signal" != 0 &&
1139      echo "$as_me: caught signal $ac_signal"
1140    echo "$as_me: exit $exit_status"
1141  } >&5
1142  rm -f core *.core &&
1143  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144    exit $exit_status
1145     ' 0
1146for ac_signal in 1 2 13 15; do
1147  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148done
1149ac_signal=0
1150
1151# confdefs.h avoids OS command line length limits that DEFS can exceed.
1152rm -rf conftest* confdefs.h
1153# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154echo >confdefs.h
1155
1156# Predefined preprocessor variables.
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_NAME "$PACKAGE_NAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_VERSION "$PACKAGE_VERSION"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_STRING "$PACKAGE_STRING"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180_ACEOF
1181
1182
1183# Let the site file select an alternate cache file if it wants to.
1184# Prefer explicitly selected file to automatically selected ones.
1185if test -z "$CONFIG_SITE"; then
1186  if test "x$prefix" != xNONE; then
1187    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188  else
1189    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190  fi
1191fi
1192for ac_site_file in $CONFIG_SITE; do
1193  if test -r "$ac_site_file"; then
1194    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195echo "$as_me: loading site script $ac_site_file" >&6;}
1196    sed 's/^/| /' "$ac_site_file" >&5
1197    . "$ac_site_file"
1198  fi
1199done
1200
1201if test -r "$cache_file"; then
1202  # Some versions of bash will fail to source /dev/null (special
1203  # files actually), so we avoid doing that.
1204  if test -f "$cache_file"; then
1205    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206echo "$as_me: loading cache $cache_file" >&6;}
1207    case $cache_file in
1208      [\\/]* | ?:[\\/]* ) . $cache_file;;
1209      *)                      . ./$cache_file;;
1210    esac
1211  fi
1212else
1213  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214echo "$as_me: creating cache $cache_file" >&6;}
1215  >$cache_file
1216fi
1217
1218# Check that the precious variables saved in the cache have kept the same
1219# value.
1220ac_cache_corrupted=false
1221for ac_var in `(set) 2>&1 |
1222	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224  eval ac_new_set=\$ac_env_${ac_var}_set
1225  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226  eval ac_new_val="\$ac_env_${ac_var}_value"
1227  case $ac_old_set,$ac_new_set in
1228    set,)
1229      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231      ac_cache_corrupted=: ;;
1232    ,set)
1233      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235      ac_cache_corrupted=: ;;
1236    ,);;
1237    *)
1238      if test "x$ac_old_val" != "x$ac_new_val"; then
1239	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1242echo "$as_me:   former value:  $ac_old_val" >&2;}
1243	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1244echo "$as_me:   current value: $ac_new_val" >&2;}
1245	ac_cache_corrupted=:
1246      fi;;
1247  esac
1248  # Pass precious variables to config.status.
1249  if test "$ac_new_set" = set; then
1250    case $ac_new_val in
1251    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253    *) ac_arg=$ac_var=$ac_new_val ;;
1254    esac
1255    case " $ac_configure_args " in
1256      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1257      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258    esac
1259  fi
1260done
1261if $ac_cache_corrupted; then
1262  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266   { (exit 1); exit 1; }; }
1267fi
1268
1269ac_ext=c
1270ac_cpp='$CPP $CPPFLAGS'
1271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301          ac_config_headers="$ac_config_headers nbtool_config.h"
1302
1303          ac_config_files="$ac_config_files defs.mk"
1304
1305
1306# AC_NETBSD
1307
1308ac_ext=c
1309ac_cpp='$CPP $CPPFLAGS'
1310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313if test -n "$ac_tool_prefix"; then
1314  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1315set dummy ${ac_tool_prefix}gcc; ac_word=$2
1316echo "$as_me:$LINENO: checking for $ac_word" >&5
1317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318if test "${ac_cv_prog_CC+set}" = set; then
1319  echo $ECHO_N "(cached) $ECHO_C" >&6
1320else
1321  if test -n "$CC"; then
1322  ac_cv_prog_CC="$CC" # Let the user override the test.
1323else
1324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325for as_dir in $PATH
1326do
1327  IFS=$as_save_IFS
1328  test -z "$as_dir" && as_dir=.
1329  for ac_exec_ext in '' $ac_executable_extensions; do
1330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333    break 2
1334  fi
1335done
1336done
1337
1338fi
1339fi
1340CC=$ac_cv_prog_CC
1341if test -n "$CC"; then
1342  echo "$as_me:$LINENO: result: $CC" >&5
1343echo "${ECHO_T}$CC" >&6
1344else
1345  echo "$as_me:$LINENO: result: no" >&5
1346echo "${ECHO_T}no" >&6
1347fi
1348
1349fi
1350if test -z "$ac_cv_prog_CC"; then
1351  ac_ct_CC=$CC
1352  # Extract the first word of "gcc", so it can be a program name with args.
1353set dummy gcc; ac_word=$2
1354echo "$as_me:$LINENO: checking for $ac_word" >&5
1355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1356if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1357  echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359  if test -n "$ac_ct_CC"; then
1360  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1361else
1362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365  IFS=$as_save_IFS
1366  test -z "$as_dir" && as_dir=.
1367  for ac_exec_ext in '' $ac_executable_extensions; do
1368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1369    ac_cv_prog_ac_ct_CC="gcc"
1370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1371    break 2
1372  fi
1373done
1374done
1375
1376fi
1377fi
1378ac_ct_CC=$ac_cv_prog_ac_ct_CC
1379if test -n "$ac_ct_CC"; then
1380  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1381echo "${ECHO_T}$ac_ct_CC" >&6
1382else
1383  echo "$as_me:$LINENO: result: no" >&5
1384echo "${ECHO_T}no" >&6
1385fi
1386
1387  CC=$ac_ct_CC
1388else
1389  CC="$ac_cv_prog_CC"
1390fi
1391
1392if test -z "$CC"; then
1393  if test -n "$ac_tool_prefix"; then
1394  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1395set dummy ${ac_tool_prefix}cc; ac_word=$2
1396echo "$as_me:$LINENO: checking for $ac_word" >&5
1397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398if test "${ac_cv_prog_CC+set}" = set; then
1399  echo $ECHO_N "(cached) $ECHO_C" >&6
1400else
1401  if test -n "$CC"; then
1402  ac_cv_prog_CC="$CC" # Let the user override the test.
1403else
1404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405for as_dir in $PATH
1406do
1407  IFS=$as_save_IFS
1408  test -z "$as_dir" && as_dir=.
1409  for ac_exec_ext in '' $ac_executable_extensions; do
1410  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1411    ac_cv_prog_CC="${ac_tool_prefix}cc"
1412    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413    break 2
1414  fi
1415done
1416done
1417
1418fi
1419fi
1420CC=$ac_cv_prog_CC
1421if test -n "$CC"; then
1422  echo "$as_me:$LINENO: result: $CC" >&5
1423echo "${ECHO_T}$CC" >&6
1424else
1425  echo "$as_me:$LINENO: result: no" >&5
1426echo "${ECHO_T}no" >&6
1427fi
1428
1429fi
1430if test -z "$ac_cv_prog_CC"; then
1431  ac_ct_CC=$CC
1432  # Extract the first word of "cc", so it can be a program name with args.
1433set dummy cc; ac_word=$2
1434echo "$as_me:$LINENO: checking for $ac_word" >&5
1435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1437  echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439  if test -n "$ac_ct_CC"; then
1440  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1441else
1442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443for as_dir in $PATH
1444do
1445  IFS=$as_save_IFS
1446  test -z "$as_dir" && as_dir=.
1447  for ac_exec_ext in '' $ac_executable_extensions; do
1448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1449    ac_cv_prog_ac_ct_CC="cc"
1450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451    break 2
1452  fi
1453done
1454done
1455
1456fi
1457fi
1458ac_ct_CC=$ac_cv_prog_ac_ct_CC
1459if test -n "$ac_ct_CC"; then
1460  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1461echo "${ECHO_T}$ac_ct_CC" >&6
1462else
1463  echo "$as_me:$LINENO: result: no" >&5
1464echo "${ECHO_T}no" >&6
1465fi
1466
1467  CC=$ac_ct_CC
1468else
1469  CC="$ac_cv_prog_CC"
1470fi
1471
1472fi
1473if test -z "$CC"; then
1474  # Extract the first word of "cc", so it can be a program name with args.
1475set dummy cc; ac_word=$2
1476echo "$as_me:$LINENO: checking for $ac_word" >&5
1477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478if test "${ac_cv_prog_CC+set}" = set; then
1479  echo $ECHO_N "(cached) $ECHO_C" >&6
1480else
1481  if test -n "$CC"; then
1482  ac_cv_prog_CC="$CC" # Let the user override the test.
1483else
1484  ac_prog_rejected=no
1485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486for as_dir in $PATH
1487do
1488  IFS=$as_save_IFS
1489  test -z "$as_dir" && as_dir=.
1490  for ac_exec_ext in '' $ac_executable_extensions; do
1491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1493       ac_prog_rejected=yes
1494       continue
1495     fi
1496    ac_cv_prog_CC="cc"
1497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498    break 2
1499  fi
1500done
1501done
1502
1503if test $ac_prog_rejected = yes; then
1504  # We found a bogon in the path, so make sure we never use it.
1505  set dummy $ac_cv_prog_CC
1506  shift
1507  if test $# != 0; then
1508    # We chose a different compiler from the bogus one.
1509    # However, it has the same basename, so the bogon will be chosen
1510    # first if we set CC to just the basename; use the full file name.
1511    shift
1512    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1513  fi
1514fi
1515fi
1516fi
1517CC=$ac_cv_prog_CC
1518if test -n "$CC"; then
1519  echo "$as_me:$LINENO: result: $CC" >&5
1520echo "${ECHO_T}$CC" >&6
1521else
1522  echo "$as_me:$LINENO: result: no" >&5
1523echo "${ECHO_T}no" >&6
1524fi
1525
1526fi
1527if test -z "$CC"; then
1528  if test -n "$ac_tool_prefix"; then
1529  for ac_prog in cl
1530  do
1531    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1533echo "$as_me:$LINENO: checking for $ac_word" >&5
1534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535if test "${ac_cv_prog_CC+set}" = set; then
1536  echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538  if test -n "$CC"; then
1539  ac_cv_prog_CC="$CC" # Let the user override the test.
1540else
1541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542for as_dir in $PATH
1543do
1544  IFS=$as_save_IFS
1545  test -z "$as_dir" && as_dir=.
1546  for ac_exec_ext in '' $ac_executable_extensions; do
1547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550    break 2
1551  fi
1552done
1553done
1554
1555fi
1556fi
1557CC=$ac_cv_prog_CC
1558if test -n "$CC"; then
1559  echo "$as_me:$LINENO: result: $CC" >&5
1560echo "${ECHO_T}$CC" >&6
1561else
1562  echo "$as_me:$LINENO: result: no" >&5
1563echo "${ECHO_T}no" >&6
1564fi
1565
1566    test -n "$CC" && break
1567  done
1568fi
1569if test -z "$CC"; then
1570  ac_ct_CC=$CC
1571  for ac_prog in cl
1572do
1573  # Extract the first word of "$ac_prog", so it can be a program name with args.
1574set dummy $ac_prog; ac_word=$2
1575echo "$as_me:$LINENO: checking for $ac_word" >&5
1576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1578  echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580  if test -n "$ac_ct_CC"; then
1581  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1582else
1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584for as_dir in $PATH
1585do
1586  IFS=$as_save_IFS
1587  test -z "$as_dir" && as_dir=.
1588  for ac_exec_ext in '' $ac_executable_extensions; do
1589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590    ac_cv_prog_ac_ct_CC="$ac_prog"
1591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592    break 2
1593  fi
1594done
1595done
1596
1597fi
1598fi
1599ac_ct_CC=$ac_cv_prog_ac_ct_CC
1600if test -n "$ac_ct_CC"; then
1601  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1602echo "${ECHO_T}$ac_ct_CC" >&6
1603else
1604  echo "$as_me:$LINENO: result: no" >&5
1605echo "${ECHO_T}no" >&6
1606fi
1607
1608  test -n "$ac_ct_CC" && break
1609done
1610
1611  CC=$ac_ct_CC
1612fi
1613
1614fi
1615
1616
1617test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1618See \`config.log' for more details." >&5
1619echo "$as_me: error: no acceptable C compiler found in \$PATH
1620See \`config.log' for more details." >&2;}
1621   { (exit 1); exit 1; }; }
1622
1623# Provide some information about the compiler.
1624echo "$as_me:$LINENO:" \
1625     "checking for C compiler version" >&5
1626ac_compiler=`set X $ac_compile; echo $2`
1627{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1628  (eval $ac_compiler --version </dev/null >&5) 2>&5
1629  ac_status=$?
1630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1631  (exit $ac_status); }
1632{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1633  (eval $ac_compiler -v </dev/null >&5) 2>&5
1634  ac_status=$?
1635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636  (exit $ac_status); }
1637{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1638  (eval $ac_compiler -V </dev/null >&5) 2>&5
1639  ac_status=$?
1640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641  (exit $ac_status); }
1642
1643cat >conftest.$ac_ext <<_ACEOF
1644/* confdefs.h.  */
1645_ACEOF
1646cat confdefs.h >>conftest.$ac_ext
1647cat >>conftest.$ac_ext <<_ACEOF
1648/* end confdefs.h.  */
1649
1650int
1651main ()
1652{
1653
1654  ;
1655  return 0;
1656}
1657_ACEOF
1658ac_clean_files_save=$ac_clean_files
1659ac_clean_files="$ac_clean_files a.out a.exe b.out"
1660# Try to create an executable without -o first, disregard a.out.
1661# It will help us diagnose broken compilers, and finding out an intuition
1662# of exeext.
1663echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1664echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1665ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1666if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1667  (eval $ac_link_default) 2>&5
1668  ac_status=$?
1669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1670  (exit $ac_status); }; then
1671  # Find the output, starting from the most likely.  This scheme is
1672# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1673# resort.
1674
1675# Be careful to initialize this variable, since it used to be cached.
1676# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1677ac_cv_exeext=
1678# b.out is created by i960 compilers.
1679for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1680do
1681  test -f "$ac_file" || continue
1682  case $ac_file in
1683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1684	;;
1685    conftest.$ac_ext )
1686	# This is the source file.
1687	;;
1688    [ab].out )
1689	# We found the default executable, but exeext='' is most
1690	# certainly right.
1691	break;;
1692    *.* )
1693	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1694	# FIXME: I believe we export ac_cv_exeext for Libtool,
1695	# but it would be cool to find out if it's true.  Does anybody
1696	# maintain Libtool? --akim.
1697	export ac_cv_exeext
1698	break;;
1699    * )
1700	break;;
1701  esac
1702done
1703else
1704  echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1708See \`config.log' for more details." >&5
1709echo "$as_me: error: C compiler cannot create executables
1710See \`config.log' for more details." >&2;}
1711   { (exit 77); exit 77; }; }
1712fi
1713
1714ac_exeext=$ac_cv_exeext
1715echo "$as_me:$LINENO: result: $ac_file" >&5
1716echo "${ECHO_T}$ac_file" >&6
1717
1718# Check the compiler produces executables we can run.  If not, either
1719# the compiler is broken, or we cross compile.
1720echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1721echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1722# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1723# If not cross compiling, check that we can run a simple program.
1724if test "$cross_compiling" != yes; then
1725  if { ac_try='./$ac_file'
1726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1727  (eval $ac_try) 2>&5
1728  ac_status=$?
1729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730  (exit $ac_status); }; }; then
1731    cross_compiling=no
1732  else
1733    if test "$cross_compiling" = maybe; then
1734	cross_compiling=yes
1735    else
1736	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1737If you meant to cross compile, use \`--host'.
1738See \`config.log' for more details." >&5
1739echo "$as_me: error: cannot run C compiled programs.
1740If you meant to cross compile, use \`--host'.
1741See \`config.log' for more details." >&2;}
1742   { (exit 1); exit 1; }; }
1743    fi
1744  fi
1745fi
1746echo "$as_me:$LINENO: result: yes" >&5
1747echo "${ECHO_T}yes" >&6
1748
1749rm -f a.out a.exe conftest$ac_cv_exeext b.out
1750ac_clean_files=$ac_clean_files_save
1751# Check the compiler produces executables we can run.  If not, either
1752# the compiler is broken, or we cross compile.
1753echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1754echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1755echo "$as_me:$LINENO: result: $cross_compiling" >&5
1756echo "${ECHO_T}$cross_compiling" >&6
1757
1758echo "$as_me:$LINENO: checking for suffix of executables" >&5
1759echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1761  (eval $ac_link) 2>&5
1762  ac_status=$?
1763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764  (exit $ac_status); }; then
1765  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1766# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1767# work properly (i.e., refer to `conftest.exe'), while it won't with
1768# `rm'.
1769for ac_file in conftest.exe conftest conftest.*; do
1770  test -f "$ac_file" || continue
1771  case $ac_file in
1772    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1773    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1774	  export ac_cv_exeext
1775	  break;;
1776    * ) break;;
1777  esac
1778done
1779else
1780  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1781See \`config.log' for more details." >&5
1782echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1783See \`config.log' for more details." >&2;}
1784   { (exit 1); exit 1; }; }
1785fi
1786
1787rm -f conftest$ac_cv_exeext
1788echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1789echo "${ECHO_T}$ac_cv_exeext" >&6
1790
1791rm -f conftest.$ac_ext
1792EXEEXT=$ac_cv_exeext
1793ac_exeext=$EXEEXT
1794echo "$as_me:$LINENO: checking for suffix of object files" >&5
1795echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1796if test "${ac_cv_objext+set}" = set; then
1797  echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799  cat >conftest.$ac_ext <<_ACEOF
1800/* confdefs.h.  */
1801_ACEOF
1802cat confdefs.h >>conftest.$ac_ext
1803cat >>conftest.$ac_ext <<_ACEOF
1804/* end confdefs.h.  */
1805
1806int
1807main ()
1808{
1809
1810  ;
1811  return 0;
1812}
1813_ACEOF
1814rm -f conftest.o conftest.obj
1815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1816  (eval $ac_compile) 2>&5
1817  ac_status=$?
1818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819  (exit $ac_status); }; then
1820  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1821  case $ac_file in
1822    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1823    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1824       break;;
1825  esac
1826done
1827else
1828  echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: cannot compute suffix of object files: cannot compile
1834See \`config.log' for more details." >&2;}
1835   { (exit 1); exit 1; }; }
1836fi
1837
1838rm -f conftest.$ac_cv_objext conftest.$ac_ext
1839fi
1840echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1841echo "${ECHO_T}$ac_cv_objext" >&6
1842OBJEXT=$ac_cv_objext
1843ac_objext=$OBJEXT
1844echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1845echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1846if test "${ac_cv_c_compiler_gnu+set}" = set; then
1847  echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849  cat >conftest.$ac_ext <<_ACEOF
1850/* confdefs.h.  */
1851_ACEOF
1852cat confdefs.h >>conftest.$ac_ext
1853cat >>conftest.$ac_ext <<_ACEOF
1854/* end confdefs.h.  */
1855
1856int
1857main ()
1858{
1859#ifndef __GNUC__
1860       choke me
1861#endif
1862
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867rm -f conftest.$ac_objext
1868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1869  (eval $ac_compile) 2>conftest.er1
1870  ac_status=$?
1871  grep -v '^ *+' conftest.er1 >conftest.err
1872  rm -f conftest.er1
1873  cat conftest.err >&5
1874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875  (exit $ac_status); } &&
1876	 { ac_try='test -z "$ac_c_werror_flag"
1877			 || test ! -s conftest.err'
1878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879  (eval $ac_try) 2>&5
1880  ac_status=$?
1881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882  (exit $ac_status); }; } &&
1883	 { ac_try='test -s conftest.$ac_objext'
1884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885  (eval $ac_try) 2>&5
1886  ac_status=$?
1887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888  (exit $ac_status); }; }; then
1889  ac_compiler_gnu=yes
1890else
1891  echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894ac_compiler_gnu=no
1895fi
1896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1897ac_cv_c_compiler_gnu=$ac_compiler_gnu
1898
1899fi
1900echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1901echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1902GCC=`test $ac_compiler_gnu = yes && echo yes`
1903ac_test_CFLAGS=${CFLAGS+set}
1904ac_save_CFLAGS=$CFLAGS
1905CFLAGS="-g"
1906echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1907echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1908if test "${ac_cv_prog_cc_g+set}" = set; then
1909  echo $ECHO_N "(cached) $ECHO_C" >&6
1910else
1911  cat >conftest.$ac_ext <<_ACEOF
1912/* confdefs.h.  */
1913_ACEOF
1914cat confdefs.h >>conftest.$ac_ext
1915cat >>conftest.$ac_ext <<_ACEOF
1916/* end confdefs.h.  */
1917
1918int
1919main ()
1920{
1921
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926rm -f conftest.$ac_objext
1927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928  (eval $ac_compile) 2>conftest.er1
1929  ac_status=$?
1930  grep -v '^ *+' conftest.er1 >conftest.err
1931  rm -f conftest.er1
1932  cat conftest.err >&5
1933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934  (exit $ac_status); } &&
1935	 { ac_try='test -z "$ac_c_werror_flag"
1936			 || test ! -s conftest.err'
1937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938  (eval $ac_try) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }; } &&
1942	 { ac_try='test -s conftest.$ac_objext'
1943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944  (eval $ac_try) 2>&5
1945  ac_status=$?
1946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947  (exit $ac_status); }; }; then
1948  ac_cv_prog_cc_g=yes
1949else
1950  echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953ac_cv_prog_cc_g=no
1954fi
1955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1958echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1959if test "$ac_test_CFLAGS" = set; then
1960  CFLAGS=$ac_save_CFLAGS
1961elif test $ac_cv_prog_cc_g = yes; then
1962  if test "$GCC" = yes; then
1963    CFLAGS="-g -O2"
1964  else
1965    CFLAGS="-g"
1966  fi
1967else
1968  if test "$GCC" = yes; then
1969    CFLAGS="-O2"
1970  else
1971    CFLAGS=
1972  fi
1973fi
1974echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1975echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1976if test "${ac_cv_prog_cc_stdc+set}" = set; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979  ac_cv_prog_cc_stdc=no
1980ac_save_CC=$CC
1981cat >conftest.$ac_ext <<_ACEOF
1982/* confdefs.h.  */
1983_ACEOF
1984cat confdefs.h >>conftest.$ac_ext
1985cat >>conftest.$ac_ext <<_ACEOF
1986/* end confdefs.h.  */
1987#include <stdarg.h>
1988#include <stdio.h>
1989#include <sys/types.h>
1990#include <sys/stat.h>
1991/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1992struct buf { int x; };
1993FILE * (*rcsopen) (struct buf *, struct stat *, int);
1994static char *e (p, i)
1995     char **p;
1996     int i;
1997{
1998  return p[i];
1999}
2000static char *f (char * (*g) (char **, int), char **p, ...)
2001{
2002  char *s;
2003  va_list v;
2004  va_start (v,p);
2005  s = g (p, va_arg (v,int));
2006  va_end (v);
2007  return s;
2008}
2009
2010/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2011   function prototypes and stuff, but not '\xHH' hex character constants.
2012   These don't provoke an error unfortunately, instead are silently treated
2013   as 'x'.  The following induces an error, until -std1 is added to get
2014   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2015   array size at least.  It's necessary to write '\x00'==0 to get something
2016   that's true only with -std1.  */
2017int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2018
2019int test (int i, double x);
2020struct s1 {int (*f) (int a);};
2021struct s2 {int (*f) (double a);};
2022int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2023int argc;
2024char **argv;
2025int
2026main ()
2027{
2028return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033# Don't try gcc -ansi; that turns off useful extensions and
2034# breaks some systems' header files.
2035# AIX			-qlanglvl=ansi
2036# Ultrix and OSF/1	-std1
2037# HP-UX 10.20 and later	-Ae
2038# HP-UX older versions	-Aa -D_HPUX_SOURCE
2039# SVR4			-Xc -D__EXTENSIONS__
2040for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2041do
2042  CC="$ac_save_CC $ac_arg"
2043  rm -f conftest.$ac_objext
2044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045  (eval $ac_compile) 2>conftest.er1
2046  ac_status=$?
2047  grep -v '^ *+' conftest.er1 >conftest.err
2048  rm -f conftest.er1
2049  cat conftest.err >&5
2050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051  (exit $ac_status); } &&
2052	 { ac_try='test -z "$ac_c_werror_flag"
2053			 || test ! -s conftest.err'
2054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055  (eval $ac_try) 2>&5
2056  ac_status=$?
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); }; } &&
2059	 { ac_try='test -s conftest.$ac_objext'
2060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061  (eval $ac_try) 2>&5
2062  ac_status=$?
2063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064  (exit $ac_status); }; }; then
2065  ac_cv_prog_cc_stdc=$ac_arg
2066break
2067else
2068  echo "$as_me: failed program was:" >&5
2069sed 's/^/| /' conftest.$ac_ext >&5
2070
2071fi
2072rm -f conftest.err conftest.$ac_objext
2073done
2074rm -f conftest.$ac_ext conftest.$ac_objext
2075CC=$ac_save_CC
2076
2077fi
2078
2079case "x$ac_cv_prog_cc_stdc" in
2080  x|xno)
2081    echo "$as_me:$LINENO: result: none needed" >&5
2082echo "${ECHO_T}none needed" >&6 ;;
2083  *)
2084    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2085echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2086    CC="$CC $ac_cv_prog_cc_stdc" ;;
2087esac
2088
2089# Some people use a C++ compiler to compile C.  Since we use `exit',
2090# in C++ we need to declare it.  In case someone uses the same compiler
2091# for both compiling C and C++ we need to have the C++ compiler decide
2092# the declaration of exit, since it's the most demanding environment.
2093cat >conftest.$ac_ext <<_ACEOF
2094#ifndef __cplusplus
2095  choke me
2096#endif
2097_ACEOF
2098rm -f conftest.$ac_objext
2099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100  (eval $ac_compile) 2>conftest.er1
2101  ac_status=$?
2102  grep -v '^ *+' conftest.er1 >conftest.err
2103  rm -f conftest.er1
2104  cat conftest.err >&5
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); } &&
2107	 { ac_try='test -z "$ac_c_werror_flag"
2108			 || test ! -s conftest.err'
2109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110  (eval $ac_try) 2>&5
2111  ac_status=$?
2112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113  (exit $ac_status); }; } &&
2114	 { ac_try='test -s conftest.$ac_objext'
2115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116  (eval $ac_try) 2>&5
2117  ac_status=$?
2118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119  (exit $ac_status); }; }; then
2120  for ac_declaration in \
2121   '' \
2122   'extern "C" void std::exit (int) throw (); using std::exit;' \
2123   'extern "C" void std::exit (int); using std::exit;' \
2124   'extern "C" void exit (int) throw ();' \
2125   'extern "C" void exit (int);' \
2126   'void exit (int);'
2127do
2128  cat >conftest.$ac_ext <<_ACEOF
2129/* confdefs.h.  */
2130_ACEOF
2131cat confdefs.h >>conftest.$ac_ext
2132cat >>conftest.$ac_ext <<_ACEOF
2133/* end confdefs.h.  */
2134$ac_declaration
2135#include <stdlib.h>
2136int
2137main ()
2138{
2139exit (42);
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146  (eval $ac_compile) 2>conftest.er1
2147  ac_status=$?
2148  grep -v '^ *+' conftest.er1 >conftest.err
2149  rm -f conftest.er1
2150  cat conftest.err >&5
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); } &&
2153	 { ac_try='test -z "$ac_c_werror_flag"
2154			 || test ! -s conftest.err'
2155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156  (eval $ac_try) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }; } &&
2160	 { ac_try='test -s conftest.$ac_objext'
2161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162  (eval $ac_try) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; }; then
2166  :
2167else
2168  echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171continue
2172fi
2173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174  cat >conftest.$ac_ext <<_ACEOF
2175/* confdefs.h.  */
2176_ACEOF
2177cat confdefs.h >>conftest.$ac_ext
2178cat >>conftest.$ac_ext <<_ACEOF
2179/* end confdefs.h.  */
2180$ac_declaration
2181int
2182main ()
2183{
2184exit (42);
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189rm -f conftest.$ac_objext
2190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191  (eval $ac_compile) 2>conftest.er1
2192  ac_status=$?
2193  grep -v '^ *+' conftest.er1 >conftest.err
2194  rm -f conftest.er1
2195  cat conftest.err >&5
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); } &&
2198	 { ac_try='test -z "$ac_c_werror_flag"
2199			 || test ! -s conftest.err'
2200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201  (eval $ac_try) 2>&5
2202  ac_status=$?
2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204  (exit $ac_status); }; } &&
2205	 { ac_try='test -s conftest.$ac_objext'
2206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207  (eval $ac_try) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; }; then
2211  break
2212else
2213  echo "$as_me: failed program was:" >&5
2214sed 's/^/| /' conftest.$ac_ext >&5
2215
2216fi
2217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218done
2219rm -f conftest*
2220if test -n "$ac_declaration"; then
2221  echo '#ifdef __cplusplus' >>confdefs.h
2222  echo $ac_declaration      >>confdefs.h
2223  echo '#endif'             >>confdefs.h
2224fi
2225
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232ac_ext=c
2233ac_cpp='$CPP $CPPFLAGS'
2234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237
2238
2239ac_ext=c
2240ac_cpp='$CPP $CPPFLAGS'
2241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2245echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2246# On Suns, sometimes $CPP names a directory.
2247if test -n "$CPP" && test -d "$CPP"; then
2248  CPP=
2249fi
2250if test -z "$CPP"; then
2251  if test "${ac_cv_prog_CPP+set}" = set; then
2252  echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254      # Double quotes because CPP needs to be expanded
2255    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2256    do
2257      ac_preproc_ok=false
2258for ac_c_preproc_warn_flag in '' yes
2259do
2260  # Use a header file that comes with gcc, so configuring glibc
2261  # with a fresh cross-compiler works.
2262  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2263  # <limits.h> exists even on freestanding compilers.
2264  # On the NeXT, cc -E runs the code through the compiler's parser,
2265  # not just through cpp. "Syntax error" is here to catch this case.
2266  cat >conftest.$ac_ext <<_ACEOF
2267/* confdefs.h.  */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h.  */
2272#ifdef __STDC__
2273# include <limits.h>
2274#else
2275# include <assert.h>
2276#endif
2277		     Syntax error
2278_ACEOF
2279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2280  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2281  ac_status=$?
2282  grep -v '^ *+' conftest.er1 >conftest.err
2283  rm -f conftest.er1
2284  cat conftest.err >&5
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); } >/dev/null; then
2287  if test -s conftest.err; then
2288    ac_cpp_err=$ac_c_preproc_warn_flag
2289    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2290  else
2291    ac_cpp_err=
2292  fi
2293else
2294  ac_cpp_err=yes
2295fi
2296if test -z "$ac_cpp_err"; then
2297  :
2298else
2299  echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
2301
2302  # Broken: fails on valid input.
2303continue
2304fi
2305rm -f conftest.err conftest.$ac_ext
2306
2307  # OK, works on sane cases.  Now check whether non-existent headers
2308  # can be detected and how.
2309  cat >conftest.$ac_ext <<_ACEOF
2310/* confdefs.h.  */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
2314/* end confdefs.h.  */
2315#include <ac_nonexistent.h>
2316_ACEOF
2317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2319  ac_status=$?
2320  grep -v '^ *+' conftest.er1 >conftest.err
2321  rm -f conftest.er1
2322  cat conftest.err >&5
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); } >/dev/null; then
2325  if test -s conftest.err; then
2326    ac_cpp_err=$ac_c_preproc_warn_flag
2327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2328  else
2329    ac_cpp_err=
2330  fi
2331else
2332  ac_cpp_err=yes
2333fi
2334if test -z "$ac_cpp_err"; then
2335  # Broken: success on invalid input.
2336continue
2337else
2338  echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341  # Passes both tests.
2342ac_preproc_ok=:
2343break
2344fi
2345rm -f conftest.err conftest.$ac_ext
2346
2347done
2348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2349rm -f conftest.err conftest.$ac_ext
2350if $ac_preproc_ok; then
2351  break
2352fi
2353
2354    done
2355    ac_cv_prog_CPP=$CPP
2356
2357fi
2358  CPP=$ac_cv_prog_CPP
2359else
2360  ac_cv_prog_CPP=$CPP
2361fi
2362echo "$as_me:$LINENO: result: $CPP" >&5
2363echo "${ECHO_T}$CPP" >&6
2364ac_preproc_ok=false
2365for ac_c_preproc_warn_flag in '' yes
2366do
2367  # Use a header file that comes with gcc, so configuring glibc
2368  # with a fresh cross-compiler works.
2369  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2370  # <limits.h> exists even on freestanding compilers.
2371  # On the NeXT, cc -E runs the code through the compiler's parser,
2372  # not just through cpp. "Syntax error" is here to catch this case.
2373  cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h.  */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h.  */
2379#ifdef __STDC__
2380# include <limits.h>
2381#else
2382# include <assert.h>
2383#endif
2384		     Syntax error
2385_ACEOF
2386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2387  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2388  ac_status=$?
2389  grep -v '^ *+' conftest.er1 >conftest.err
2390  rm -f conftest.er1
2391  cat conftest.err >&5
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); } >/dev/null; then
2394  if test -s conftest.err; then
2395    ac_cpp_err=$ac_c_preproc_warn_flag
2396    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2397  else
2398    ac_cpp_err=
2399  fi
2400else
2401  ac_cpp_err=yes
2402fi
2403if test -z "$ac_cpp_err"; then
2404  :
2405else
2406  echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409  # Broken: fails on valid input.
2410continue
2411fi
2412rm -f conftest.err conftest.$ac_ext
2413
2414  # OK, works on sane cases.  Now check whether non-existent headers
2415  # can be detected and how.
2416  cat >conftest.$ac_ext <<_ACEOF
2417/* confdefs.h.  */
2418_ACEOF
2419cat confdefs.h >>conftest.$ac_ext
2420cat >>conftest.$ac_ext <<_ACEOF
2421/* end confdefs.h.  */
2422#include <ac_nonexistent.h>
2423_ACEOF
2424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2425  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2426  ac_status=$?
2427  grep -v '^ *+' conftest.er1 >conftest.err
2428  rm -f conftest.er1
2429  cat conftest.err >&5
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); } >/dev/null; then
2432  if test -s conftest.err; then
2433    ac_cpp_err=$ac_c_preproc_warn_flag
2434    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2435  else
2436    ac_cpp_err=
2437  fi
2438else
2439  ac_cpp_err=yes
2440fi
2441if test -z "$ac_cpp_err"; then
2442  # Broken: success on invalid input.
2443continue
2444else
2445  echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448  # Passes both tests.
2449ac_preproc_ok=:
2450break
2451fi
2452rm -f conftest.err conftest.$ac_ext
2453
2454done
2455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2456rm -f conftest.err conftest.$ac_ext
2457if $ac_preproc_ok; then
2458  :
2459else
2460  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2461See \`config.log' for more details." >&5
2462echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2463See \`config.log' for more details." >&2;}
2464   { (exit 1); exit 1; }; }
2465fi
2466
2467ac_ext=c
2468ac_cpp='$CPP $CPPFLAGS'
2469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472
2473
2474echo "$as_me:$LINENO: checking for egrep" >&5
2475echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2476if test "${ac_cv_prog_egrep+set}" = set; then
2477  echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2480    then ac_cv_prog_egrep='grep -E'
2481    else ac_cv_prog_egrep='egrep'
2482    fi
2483fi
2484echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2485echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2486 EGREP=$ac_cv_prog_egrep
2487
2488
2489            echo "$as_me:$LINENO: checking for NetBSD" >&5
2490echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6
2491      cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h.  */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h.  */
2497#ifdef __NetBSD__
2498	yes
2499	#endif
2500
2501_ACEOF
2502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2503  $EGREP "yes" >/dev/null 2>&1; then
2504  echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6
2506	cat >>confdefs.h <<\_ACEOF
2507#define _POSIX_SOURCE 1
2508_ACEOF
2509 cat >>confdefs.h <<\_ACEOF
2510#define _POSIX_C_SOURCE 200112L
2511_ACEOF
2512 cat >>confdefs.h <<\_ACEOF
2513#define _XOPEN_SOURCE 600
2514_ACEOF
2515
2516else
2517  echo "$as_me:$LINENO: result: no" >&5
2518echo "${ECHO_T}no" >&6
2519fi
2520rm -f conftest*
2521
2522
2523# Extract the first word of "sh", so it can be a program name with args.
2524set dummy sh; ac_word=$2
2525echo "$as_me:$LINENO: checking for $ac_word" >&5
2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527if test "${ac_cv_path_BSHELL+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  case $BSHELL in
2531  [\\/]* | ?:[\\/]*)
2532  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
2533  ;;
2534  *)
2535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540  for ac_exec_ext in '' $ac_executable_extensions; do
2541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542    ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
2543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544    break 2
2545  fi
2546done
2547done
2548
2549  ;;
2550esac
2551fi
2552BSHELL=$ac_cv_path_BSHELL
2553
2554if test -n "$BSHELL"; then
2555  echo "$as_me:$LINENO: result: $BSHELL" >&5
2556echo "${ECHO_T}$BSHELL" >&6
2557else
2558  echo "$as_me:$LINENO: result: no" >&5
2559echo "${ECHO_T}no" >&6
2560fi
2561
2562if test x"$BSHELL" = x; then
2563	{ { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5
2564echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
2565   { (exit 1); exit 1; }; }
2566fi
2567cat >>confdefs.h <<_ACEOF
2568#define PATH_BSHELL "$BSHELL"
2569_ACEOF
2570
2571
2572echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2573echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2574if test "${ac_cv_c_bigendian+set}" = set; then
2575  echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577  # See if sys/param.h defines the BYTE_ORDER macro.
2578cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584#include <sys/types.h>
2585#include <sys/param.h>
2586
2587int
2588main ()
2589{
2590#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2591 bogus endian macros
2592#endif
2593
2594  ;
2595  return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600  (eval $ac_compile) 2>conftest.er1
2601  ac_status=$?
2602  grep -v '^ *+' conftest.er1 >conftest.err
2603  rm -f conftest.er1
2604  cat conftest.err >&5
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); } &&
2607	 { ac_try='test -z "$ac_c_werror_flag"
2608			 || test ! -s conftest.err'
2609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610  (eval $ac_try) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; } &&
2614	 { ac_try='test -s conftest.$ac_objext'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; }; then
2620  # It does; now see whether it defined to BIG_ENDIAN or not.
2621cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h.  */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h.  */
2627#include <sys/types.h>
2628#include <sys/param.h>
2629
2630int
2631main ()
2632{
2633#if BYTE_ORDER != BIG_ENDIAN
2634 not big endian
2635#endif
2636
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643  (eval $ac_compile) 2>conftest.er1
2644  ac_status=$?
2645  grep -v '^ *+' conftest.er1 >conftest.err
2646  rm -f conftest.er1
2647  cat conftest.err >&5
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650	 { ac_try='test -z "$ac_c_werror_flag"
2651			 || test ! -s conftest.err'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; } &&
2657	 { ac_try='test -s conftest.$ac_objext'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; }; then
2663  ac_cv_c_bigendian=yes
2664else
2665  echo "$as_me: failed program was:" >&5
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
2668ac_cv_c_bigendian=no
2669fi
2670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671else
2672  echo "$as_me: failed program was:" >&5
2673sed 's/^/| /' conftest.$ac_ext >&5
2674
2675# It does not; compile a test program.
2676if test "$cross_compiling" = yes; then
2677  # try to guess the endianness by grepping values into an object file
2678  ac_cv_c_bigendian=unknown
2679  cat >conftest.$ac_ext <<_ACEOF
2680/* confdefs.h.  */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h.  */
2685short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2686short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2687void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2688short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2689short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2690void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2691int
2692main ()
2693{
2694 _ascii (); _ebcdic ();
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701  (eval $ac_compile) 2>conftest.er1
2702  ac_status=$?
2703  grep -v '^ *+' conftest.er1 >conftest.err
2704  rm -f conftest.er1
2705  cat conftest.err >&5
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); } &&
2708	 { ac_try='test -z "$ac_c_werror_flag"
2709			 || test ! -s conftest.err'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; } &&
2715	 { ac_try='test -s conftest.$ac_objext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2722  ac_cv_c_bigendian=yes
2723fi
2724if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2725  if test "$ac_cv_c_bigendian" = unknown; then
2726    ac_cv_c_bigendian=no
2727  else
2728    # finding both strings is unlikely to happen, but who knows?
2729    ac_cv_c_bigendian=unknown
2730  fi
2731fi
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738else
2739  cat >conftest.$ac_ext <<_ACEOF
2740/* confdefs.h.  */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h.  */
2745int
2746main ()
2747{
2748  /* Are we little or big endian?  From Harbison&Steele.  */
2749  union
2750  {
2751    long l;
2752    char c[sizeof (long)];
2753  } u;
2754  u.l = 1;
2755  exit (u.c[sizeof (long) - 1] == 1);
2756}
2757_ACEOF
2758rm -f conftest$ac_exeext
2759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2760  (eval $ac_link) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765  (eval $ac_try) 2>&5
2766  ac_status=$?
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); }; }; then
2769  ac_cv_c_bigendian=no
2770else
2771  echo "$as_me: program exited with status $ac_status" >&5
2772echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775( exit $ac_status )
2776ac_cv_c_bigendian=yes
2777fi
2778rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2779fi
2780fi
2781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782fi
2783echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2784echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2785case $ac_cv_c_bigendian in
2786  yes)
2787
2788cat >>confdefs.h <<\_ACEOF
2789#define WORDS_BIGENDIAN 1
2790_ACEOF
2791 ;;
2792  no)
2793     ;;
2794  *)
2795    { { echo "$as_me:$LINENO: error: unknown endianness
2796presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2797echo "$as_me: error: unknown endianness
2798presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2799   { (exit 1); exit 1; }; } ;;
2800esac
2801
2802echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2804if test "${ac_cv_header_stdc+set}" = set; then
2805  echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
2807  cat >conftest.$ac_ext <<_ACEOF
2808/* confdefs.h.  */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
2812/* end confdefs.h.  */
2813#include <stdlib.h>
2814#include <stdarg.h>
2815#include <string.h>
2816#include <float.h>
2817
2818int
2819main ()
2820{
2821
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext
2827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828  (eval $ac_compile) 2>conftest.er1
2829  ac_status=$?
2830  grep -v '^ *+' conftest.er1 >conftest.err
2831  rm -f conftest.er1
2832  cat conftest.err >&5
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); } &&
2835	 { ac_try='test -z "$ac_c_werror_flag"
2836			 || test ! -s conftest.err'
2837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838  (eval $ac_try) 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }; } &&
2842	 { ac_try='test -s conftest.$ac_objext'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; }; then
2848  ac_cv_header_stdc=yes
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853ac_cv_header_stdc=no
2854fi
2855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856
2857if test $ac_cv_header_stdc = yes; then
2858  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2859  cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h.  */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h.  */
2865#include <string.h>
2866
2867_ACEOF
2868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2869  $EGREP "memchr" >/dev/null 2>&1; then
2870  :
2871else
2872  ac_cv_header_stdc=no
2873fi
2874rm -f conftest*
2875
2876fi
2877
2878if test $ac_cv_header_stdc = yes; then
2879  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2880  cat >conftest.$ac_ext <<_ACEOF
2881/* confdefs.h.  */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h.  */
2886#include <stdlib.h>
2887
2888_ACEOF
2889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2890  $EGREP "free" >/dev/null 2>&1; then
2891  :
2892else
2893  ac_cv_header_stdc=no
2894fi
2895rm -f conftest*
2896
2897fi
2898
2899if test $ac_cv_header_stdc = yes; then
2900  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2901  if test "$cross_compiling" = yes; then
2902  :
2903else
2904  cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h.  */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h.  */
2910#include <ctype.h>
2911#if ((' ' & 0x0FF) == 0x020)
2912# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2913# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2914#else
2915# define ISLOWER(c) \
2916		   (('a' <= (c) && (c) <= 'i') \
2917		     || ('j' <= (c) && (c) <= 'r') \
2918		     || ('s' <= (c) && (c) <= 'z'))
2919# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2920#endif
2921
2922#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2923int
2924main ()
2925{
2926  int i;
2927  for (i = 0; i < 256; i++)
2928    if (XOR (islower (i), ISLOWER (i))
2929	|| toupper (i) != TOUPPER (i))
2930      exit(2);
2931  exit (0);
2932}
2933_ACEOF
2934rm -f conftest$ac_exeext
2935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936  (eval $ac_link) 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; }; then
2945  :
2946else
2947  echo "$as_me: program exited with status $ac_status" >&5
2948echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951( exit $ac_status )
2952ac_cv_header_stdc=no
2953fi
2954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2955fi
2956fi
2957fi
2958echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2959echo "${ECHO_T}$ac_cv_header_stdc" >&6
2960if test $ac_cv_header_stdc = yes; then
2961
2962cat >>confdefs.h <<\_ACEOF
2963#define STDC_HEADERS 1
2964_ACEOF
2965
2966fi
2967
2968
2969# Confirm existence of zlib.  (This is available as a default install
2970# option on many OS's; this could be added as a reachover build in the
2971# future.)
2972# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2983		  inttypes.h stdint.h unistd.h
2984do
2985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2986echo "$as_me:$LINENO: checking for $ac_header" >&5
2987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2988if eval "test \"\${$as_ac_Header+set}\" = set"; then
2989  echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991  cat >conftest.$ac_ext <<_ACEOF
2992/* confdefs.h.  */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h.  */
2997$ac_includes_default
2998
2999#include <$ac_header>
3000_ACEOF
3001rm -f conftest.$ac_objext
3002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3003  (eval $ac_compile) 2>conftest.er1
3004  ac_status=$?
3005  grep -v '^ *+' conftest.er1 >conftest.err
3006  rm -f conftest.er1
3007  cat conftest.err >&5
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); } &&
3010	 { ac_try='test -z "$ac_c_werror_flag"
3011			 || test ! -s conftest.err'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; } &&
3017	 { ac_try='test -s conftest.$ac_objext'
3018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019  (eval $ac_try) 2>&5
3020  ac_status=$?
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); }; }; then
3023  eval "$as_ac_Header=yes"
3024else
3025  echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
3028eval "$as_ac_Header=no"
3029fi
3030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031fi
3032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3034if test `eval echo '${'$as_ac_Header'}'` = yes; then
3035  cat >>confdefs.h <<_ACEOF
3036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3037_ACEOF
3038
3039fi
3040
3041done
3042
3043
3044if test "${ac_cv_header_zlib_h+set}" = set; then
3045  echo "$as_me:$LINENO: checking for zlib.h" >&5
3046echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3047if test "${ac_cv_header_zlib_h+set}" = set; then
3048  echo $ECHO_N "(cached) $ECHO_C" >&6
3049fi
3050echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3051echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3052else
3053  # Is the header compilable?
3054echo "$as_me:$LINENO: checking zlib.h usability" >&5
3055echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
3056cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h.  */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h.  */
3062$ac_includes_default
3063#include <zlib.h>
3064_ACEOF
3065rm -f conftest.$ac_objext
3066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067  (eval $ac_compile) 2>conftest.er1
3068  ac_status=$?
3069  grep -v '^ *+' conftest.er1 >conftest.err
3070  rm -f conftest.er1
3071  cat conftest.err >&5
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); } &&
3074	 { ac_try='test -z "$ac_c_werror_flag"
3075			 || test ! -s conftest.err'
3076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077  (eval $ac_try) 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }; } &&
3081	 { ac_try='test -s conftest.$ac_objext'
3082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083  (eval $ac_try) 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }; }; then
3087  ac_header_compiler=yes
3088else
3089  echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092ac_header_compiler=no
3093fi
3094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3096echo "${ECHO_T}$ac_header_compiler" >&6
3097
3098# Is the header present?
3099echo "$as_me:$LINENO: checking zlib.h presence" >&5
3100echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
3101cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h.  */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h.  */
3107#include <zlib.h>
3108_ACEOF
3109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3110  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111  ac_status=$?
3112  grep -v '^ *+' conftest.er1 >conftest.err
3113  rm -f conftest.er1
3114  cat conftest.err >&5
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); } >/dev/null; then
3117  if test -s conftest.err; then
3118    ac_cpp_err=$ac_c_preproc_warn_flag
3119    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3120  else
3121    ac_cpp_err=
3122  fi
3123else
3124  ac_cpp_err=yes
3125fi
3126if test -z "$ac_cpp_err"; then
3127  ac_header_preproc=yes
3128else
3129  echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132  ac_header_preproc=no
3133fi
3134rm -f conftest.err conftest.$ac_ext
3135echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3136echo "${ECHO_T}$ac_header_preproc" >&6
3137
3138# So?  What about this header?
3139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3140  yes:no: )
3141    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3142echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3143    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
3144echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
3145    ac_header_preproc=yes
3146    ;;
3147  no:yes:* )
3148    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
3149echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
3150    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
3151echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
3152    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
3153echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
3154    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
3155echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3156    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
3157echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
3158    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
3159echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
3160    (
3161      cat <<\_ASBOX
3162## ---------------------------------------- ##
3163## Report this to lib-bug-people@NetBSD.org ##
3164## ---------------------------------------- ##
3165_ASBOX
3166    ) |
3167      sed "s/^/$as_me: WARNING:     /" >&2
3168    ;;
3169esac
3170echo "$as_me:$LINENO: checking for zlib.h" >&5
3171echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3172if test "${ac_cv_header_zlib_h+set}" = set; then
3173  echo $ECHO_N "(cached) $ECHO_C" >&6
3174else
3175  ac_cv_header_zlib_h=$ac_header_preproc
3176fi
3177echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3178echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3179
3180fi
3181if test $ac_cv_header_zlib_h = yes; then
3182  :
3183else
3184  { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3185echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3186   { (exit 1); exit 1; }; }
3187fi
3188
3189
3190
3191echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
3192echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
3193if test "${ac_cv_lib_z_gzdopen+set}" = set; then
3194  echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196  ac_check_lib_save_LIBS=$LIBS
3197LIBS="-lz  $LIBS"
3198cat >conftest.$ac_ext <<_ACEOF
3199/* confdefs.h.  */
3200_ACEOF
3201cat confdefs.h >>conftest.$ac_ext
3202cat >>conftest.$ac_ext <<_ACEOF
3203/* end confdefs.h.  */
3204
3205/* Override any gcc2 internal prototype to avoid an error.  */
3206#ifdef __cplusplus
3207extern "C"
3208#endif
3209/* We use char because int might match the return type of a gcc2
3210   builtin and then its argument prototype would still apply.  */
3211char gzdopen ();
3212int
3213main ()
3214{
3215gzdopen ();
3216  ;
3217  return 0;
3218}
3219_ACEOF
3220rm -f conftest.$ac_objext conftest$ac_exeext
3221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222  (eval $ac_link) 2>conftest.er1
3223  ac_status=$?
3224  grep -v '^ *+' conftest.er1 >conftest.err
3225  rm -f conftest.er1
3226  cat conftest.err >&5
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); } &&
3229	 { ac_try='test -z "$ac_c_werror_flag"
3230			 || test ! -s conftest.err'
3231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232  (eval $ac_try) 2>&5
3233  ac_status=$?
3234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235  (exit $ac_status); }; } &&
3236	 { ac_try='test -s conftest$ac_exeext'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; }; then
3242  ac_cv_lib_z_gzdopen=yes
3243else
3244  echo "$as_me: failed program was:" >&5
3245sed 's/^/| /' conftest.$ac_ext >&5
3246
3247ac_cv_lib_z_gzdopen=no
3248fi
3249rm -f conftest.err conftest.$ac_objext \
3250      conftest$ac_exeext conftest.$ac_ext
3251LIBS=$ac_check_lib_save_LIBS
3252fi
3253echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
3254echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
3255if test $ac_cv_lib_z_gzdopen = yes; then
3256  cat >>confdefs.h <<_ACEOF
3257#define HAVE_LIBZ 1
3258_ACEOF
3259
3260  LIBS="-lz $LIBS"
3261
3262else
3263  { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3264echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3265   { (exit 1); exit 1; }; }
3266fi
3267
3268
3269# Make sure certain required headers are available.
3270# These are not necessarily required by the code, but they are not
3271# currently conditionalized.
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
3299	sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
3300	sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
3301	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
3302	termios.h unistd.h
3303do
3304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3305if eval "test \"\${$as_ac_Header+set}\" = set"; then
3306  echo "$as_me:$LINENO: checking for $ac_header" >&5
3307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3308if eval "test \"\${$as_ac_Header+set}\" = set"; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310fi
3311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3313else
3314  # Is the header compilable?
3315echo "$as_me:$LINENO: checking $ac_header usability" >&5
3316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3317cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h.  */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h.  */
3323$ac_includes_default
3324#include <$ac_header>
3325_ACEOF
3326rm -f conftest.$ac_objext
3327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328  (eval $ac_compile) 2>conftest.er1
3329  ac_status=$?
3330  grep -v '^ *+' conftest.er1 >conftest.err
3331  rm -f conftest.er1
3332  cat conftest.err >&5
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); } &&
3335	 { ac_try='test -z "$ac_c_werror_flag"
3336			 || test ! -s conftest.err'
3337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338  (eval $ac_try) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; } &&
3342	 { ac_try='test -s conftest.$ac_objext'
3343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344  (eval $ac_try) 2>&5
3345  ac_status=$?
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); }; }; then
3348  ac_header_compiler=yes
3349else
3350  echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353ac_header_compiler=no
3354fi
3355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3357echo "${ECHO_T}$ac_header_compiler" >&6
3358
3359# Is the header present?
3360echo "$as_me:$LINENO: checking $ac_header presence" >&5
3361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3362cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h.  */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h.  */
3368#include <$ac_header>
3369_ACEOF
3370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3371  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372  ac_status=$?
3373  grep -v '^ *+' conftest.er1 >conftest.err
3374  rm -f conftest.er1
3375  cat conftest.err >&5
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); } >/dev/null; then
3378  if test -s conftest.err; then
3379    ac_cpp_err=$ac_c_preproc_warn_flag
3380    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381  else
3382    ac_cpp_err=
3383  fi
3384else
3385  ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388  ac_header_preproc=yes
3389else
3390  echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393  ac_header_preproc=no
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3397echo "${ECHO_T}$ac_header_preproc" >&6
3398
3399# So?  What about this header?
3400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3401  yes:no: )
3402    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3403echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3404    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3405echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3406    ac_header_preproc=yes
3407    ;;
3408  no:yes:* )
3409    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3411    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3412echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3413    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3414echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3415    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3416echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3417    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3419    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3420echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3421    (
3422      cat <<\_ASBOX
3423## ---------------------------------------- ##
3424## Report this to lib-bug-people@NetBSD.org ##
3425## ---------------------------------------- ##
3426_ASBOX
3427    ) |
3428      sed "s/^/$as_me: WARNING:     /" >&2
3429    ;;
3430esac
3431echo "$as_me:$LINENO: checking for $ac_header" >&5
3432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3433if eval "test \"\${$as_ac_Header+set}\" = set"; then
3434  echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436  eval "$as_ac_Header=\$ac_header_preproc"
3437fi
3438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3440
3441fi
3442if test `eval echo '${'$as_ac_Header'}'` = yes; then
3443  cat >>confdefs.h <<_ACEOF
3444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3445_ACEOF
3446
3447else
3448  { { echo "$as_me:$LINENO: error: standard system header file not found" >&5
3449echo "$as_me: error: standard system header file not found" >&2;}
3450   { (exit 1); exit 1; }; }
3451fi
3452
3453done
3454
3455
3456# Find headers that may not be available.
3457
3458
3459
3460
3461
3462ac_header_dirent=no
3463for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3464  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3465echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3466echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3467if eval "test \"\${$as_ac_Header+set}\" = set"; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h.  */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h.  */
3476#include <sys/types.h>
3477#include <$ac_hdr>
3478
3479int
3480main ()
3481{
3482if ((DIR *) 0)
3483return 0;
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488rm -f conftest.$ac_objext
3489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490  (eval $ac_compile) 2>conftest.er1
3491  ac_status=$?
3492  grep -v '^ *+' conftest.er1 >conftest.err
3493  rm -f conftest.er1
3494  cat conftest.err >&5
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); } &&
3497	 { ac_try='test -z "$ac_c_werror_flag"
3498			 || test ! -s conftest.err'
3499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500  (eval $ac_try) 2>&5
3501  ac_status=$?
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); }; } &&
3504	 { ac_try='test -s conftest.$ac_objext'
3505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506  (eval $ac_try) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }; }; then
3510  eval "$as_ac_Header=yes"
3511else
3512  echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515eval "$as_ac_Header=no"
3516fi
3517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3518fi
3519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3521if test `eval echo '${'$as_ac_Header'}'` = yes; then
3522  cat >>confdefs.h <<_ACEOF
3523#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3524_ACEOF
3525
3526ac_header_dirent=$ac_hdr; break
3527fi
3528
3529done
3530# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3531if test $ac_header_dirent = dirent.h; then
3532  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3533echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3534if test "${ac_cv_search_opendir+set}" = set; then
3535  echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537  ac_func_search_save_LIBS=$LIBS
3538ac_cv_search_opendir=no
3539cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545
3546/* Override any gcc2 internal prototype to avoid an error.  */
3547#ifdef __cplusplus
3548extern "C"
3549#endif
3550/* We use char because int might match the return type of a gcc2
3551   builtin and then its argument prototype would still apply.  */
3552char opendir ();
3553int
3554main ()
3555{
3556opendir ();
3557  ;
3558  return 0;
3559}
3560_ACEOF
3561rm -f conftest.$ac_objext conftest$ac_exeext
3562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3563  (eval $ac_link) 2>conftest.er1
3564  ac_status=$?
3565  grep -v '^ *+' conftest.er1 >conftest.err
3566  rm -f conftest.er1
3567  cat conftest.err >&5
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); } &&
3570	 { ac_try='test -z "$ac_c_werror_flag"
3571			 || test ! -s conftest.err'
3572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573  (eval $ac_try) 2>&5
3574  ac_status=$?
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); }; } &&
3577	 { ac_try='test -s conftest$ac_exeext'
3578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579  (eval $ac_try) 2>&5
3580  ac_status=$?
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); }; }; then
3583  ac_cv_search_opendir="none required"
3584else
3585  echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588fi
3589rm -f conftest.err conftest.$ac_objext \
3590      conftest$ac_exeext conftest.$ac_ext
3591if test "$ac_cv_search_opendir" = no; then
3592  for ac_lib in dir; do
3593    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3594    cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h.  */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h.  */
3600
3601/* Override any gcc2 internal prototype to avoid an error.  */
3602#ifdef __cplusplus
3603extern "C"
3604#endif
3605/* We use char because int might match the return type of a gcc2
3606   builtin and then its argument prototype would still apply.  */
3607char opendir ();
3608int
3609main ()
3610{
3611opendir ();
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616rm -f conftest.$ac_objext conftest$ac_exeext
3617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618  (eval $ac_link) 2>conftest.er1
3619  ac_status=$?
3620  grep -v '^ *+' conftest.er1 >conftest.err
3621  rm -f conftest.er1
3622  cat conftest.err >&5
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); } &&
3625	 { ac_try='test -z "$ac_c_werror_flag"
3626			 || test ! -s conftest.err'
3627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628  (eval $ac_try) 2>&5
3629  ac_status=$?
3630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631  (exit $ac_status); }; } &&
3632	 { ac_try='test -s conftest$ac_exeext'
3633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634  (eval $ac_try) 2>&5
3635  ac_status=$?
3636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637  (exit $ac_status); }; }; then
3638  ac_cv_search_opendir="-l$ac_lib"
3639break
3640else
3641  echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644fi
3645rm -f conftest.err conftest.$ac_objext \
3646      conftest$ac_exeext conftest.$ac_ext
3647  done
3648fi
3649LIBS=$ac_func_search_save_LIBS
3650fi
3651echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3652echo "${ECHO_T}$ac_cv_search_opendir" >&6
3653if test "$ac_cv_search_opendir" != no; then
3654  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3655
3656fi
3657
3658else
3659  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3660echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3661if test "${ac_cv_search_opendir+set}" = set; then
3662  echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664  ac_func_search_save_LIBS=$LIBS
3665ac_cv_search_opendir=no
3666cat >conftest.$ac_ext <<_ACEOF
3667/* confdefs.h.  */
3668_ACEOF
3669cat confdefs.h >>conftest.$ac_ext
3670cat >>conftest.$ac_ext <<_ACEOF
3671/* end confdefs.h.  */
3672
3673/* Override any gcc2 internal prototype to avoid an error.  */
3674#ifdef __cplusplus
3675extern "C"
3676#endif
3677/* We use char because int might match the return type of a gcc2
3678   builtin and then its argument prototype would still apply.  */
3679char opendir ();
3680int
3681main ()
3682{
3683opendir ();
3684  ;
3685  return 0;
3686}
3687_ACEOF
3688rm -f conftest.$ac_objext conftest$ac_exeext
3689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690  (eval $ac_link) 2>conftest.er1
3691  ac_status=$?
3692  grep -v '^ *+' conftest.er1 >conftest.err
3693  rm -f conftest.er1
3694  cat conftest.err >&5
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); } &&
3697	 { ac_try='test -z "$ac_c_werror_flag"
3698			 || test ! -s conftest.err'
3699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700  (eval $ac_try) 2>&5
3701  ac_status=$?
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); }; } &&
3704	 { ac_try='test -s conftest$ac_exeext'
3705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706  (eval $ac_try) 2>&5
3707  ac_status=$?
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); }; }; then
3710  ac_cv_search_opendir="none required"
3711else
3712  echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715fi
3716rm -f conftest.err conftest.$ac_objext \
3717      conftest$ac_exeext conftest.$ac_ext
3718if test "$ac_cv_search_opendir" = no; then
3719  for ac_lib in x; do
3720    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3721    cat >conftest.$ac_ext <<_ACEOF
3722/* confdefs.h.  */
3723_ACEOF
3724cat confdefs.h >>conftest.$ac_ext
3725cat >>conftest.$ac_ext <<_ACEOF
3726/* end confdefs.h.  */
3727
3728/* Override any gcc2 internal prototype to avoid an error.  */
3729#ifdef __cplusplus
3730extern "C"
3731#endif
3732/* We use char because int might match the return type of a gcc2
3733   builtin and then its argument prototype would still apply.  */
3734char opendir ();
3735int
3736main ()
3737{
3738opendir ();
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743rm -f conftest.$ac_objext conftest$ac_exeext
3744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3745  (eval $ac_link) 2>conftest.er1
3746  ac_status=$?
3747  grep -v '^ *+' conftest.er1 >conftest.err
3748  rm -f conftest.er1
3749  cat conftest.err >&5
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); } &&
3752	 { ac_try='test -z "$ac_c_werror_flag"
3753			 || test ! -s conftest.err'
3754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755  (eval $ac_try) 2>&5
3756  ac_status=$?
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); }; } &&
3759	 { ac_try='test -s conftest$ac_exeext'
3760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761  (eval $ac_try) 2>&5
3762  ac_status=$?
3763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764  (exit $ac_status); }; }; then
3765  ac_cv_search_opendir="-l$ac_lib"
3766break
3767else
3768  echo "$as_me: failed program was:" >&5
3769sed 's/^/| /' conftest.$ac_ext >&5
3770
3771fi
3772rm -f conftest.err conftest.$ac_objext \
3773      conftest$ac_exeext conftest.$ac_ext
3774  done
3775fi
3776LIBS=$ac_func_search_save_LIBS
3777fi
3778echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3779echo "${ECHO_T}$ac_cv_search_opendir" >&6
3780if test "$ac_cv_search_opendir" != no; then
3781  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3782
3783fi
3784
3785fi
3786
3787
3788
3789
3790
3791
3792
3793
3794for ac_header in sys/sysmacros.h sys/syslimits.h \
3795	getopt.h features.h malloc.h sys/poll.h stddef.h
3796do
3797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798if eval "test \"\${$as_ac_Header+set}\" = set"; then
3799  echo "$as_me:$LINENO: checking for $ac_header" >&5
3800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3801if eval "test \"\${$as_ac_Header+set}\" = set"; then
3802  echo $ECHO_N "(cached) $ECHO_C" >&6
3803fi
3804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3806else
3807  # Is the header compilable?
3808echo "$as_me:$LINENO: checking $ac_header usability" >&5
3809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3810cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h.  */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h.  */
3816$ac_includes_default
3817#include <$ac_header>
3818_ACEOF
3819rm -f conftest.$ac_objext
3820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3821  (eval $ac_compile) 2>conftest.er1
3822  ac_status=$?
3823  grep -v '^ *+' conftest.er1 >conftest.err
3824  rm -f conftest.er1
3825  cat conftest.err >&5
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); } &&
3828	 { ac_try='test -z "$ac_c_werror_flag"
3829			 || test ! -s conftest.err'
3830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831  (eval $ac_try) 2>&5
3832  ac_status=$?
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); }; } &&
3835	 { ac_try='test -s conftest.$ac_objext'
3836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837  (eval $ac_try) 2>&5
3838  ac_status=$?
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); }; }; then
3841  ac_header_compiler=yes
3842else
3843  echo "$as_me: failed program was:" >&5
3844sed 's/^/| /' conftest.$ac_ext >&5
3845
3846ac_header_compiler=no
3847fi
3848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3850echo "${ECHO_T}$ac_header_compiler" >&6
3851
3852# Is the header present?
3853echo "$as_me:$LINENO: checking $ac_header presence" >&5
3854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3855cat >conftest.$ac_ext <<_ACEOF
3856/* confdefs.h.  */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h.  */
3861#include <$ac_header>
3862_ACEOF
3863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3864  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } >/dev/null; then
3871  if test -s conftest.err; then
3872    ac_cpp_err=$ac_c_preproc_warn_flag
3873    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3874  else
3875    ac_cpp_err=
3876  fi
3877else
3878  ac_cpp_err=yes
3879fi
3880if test -z "$ac_cpp_err"; then
3881  ac_header_preproc=yes
3882else
3883  echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886  ac_header_preproc=no
3887fi
3888rm -f conftest.err conftest.$ac_ext
3889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3890echo "${ECHO_T}$ac_header_preproc" >&6
3891
3892# So?  What about this header?
3893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3894  yes:no: )
3895    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3897    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3899    ac_header_preproc=yes
3900    ;;
3901  no:yes:* )
3902    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3904    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3905echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3906    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3908    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3909echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3910    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3912    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3914    (
3915      cat <<\_ASBOX
3916## ---------------------------------------- ##
3917## Report this to lib-bug-people@NetBSD.org ##
3918## ---------------------------------------- ##
3919_ASBOX
3920    ) |
3921      sed "s/^/$as_me: WARNING:     /" >&2
3922    ;;
3923esac
3924echo "$as_me:$LINENO: checking for $ac_header" >&5
3925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3926if eval "test \"\${$as_ac_Header+set}\" = set"; then
3927  echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929  eval "$as_ac_Header=\$ac_header_preproc"
3930fi
3931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3933
3934fi
3935if test `eval echo '${'$as_ac_Header'}'` = yes; then
3936  cat >>confdefs.h <<_ACEOF
3937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3938_ACEOF
3939
3940fi
3941
3942done
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h sys/endian.h sys/featuretest.h \
3956	err.h inttypes.h libgen.h paths.h stdint.h util.h
3957do
3958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3959if eval "test \"\${$as_ac_Header+set}\" = set"; then
3960  echo "$as_me:$LINENO: checking for $ac_header" >&5
3961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3962if eval "test \"\${$as_ac_Header+set}\" = set"; then
3963  echo $ECHO_N "(cached) $ECHO_C" >&6
3964fi
3965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3967else
3968  # Is the header compilable?
3969echo "$as_me:$LINENO: checking $ac_header usability" >&5
3970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3971cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h.  */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h.  */
3977$ac_includes_default
3978#include <$ac_header>
3979_ACEOF
3980rm -f conftest.$ac_objext
3981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982  (eval $ac_compile) 2>conftest.er1
3983  ac_status=$?
3984  grep -v '^ *+' conftest.er1 >conftest.err
3985  rm -f conftest.er1
3986  cat conftest.err >&5
3987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988  (exit $ac_status); } &&
3989	 { ac_try='test -z "$ac_c_werror_flag"
3990			 || test ! -s conftest.err'
3991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992  (eval $ac_try) 2>&5
3993  ac_status=$?
3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995  (exit $ac_status); }; } &&
3996	 { ac_try='test -s conftest.$ac_objext'
3997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998  (eval $ac_try) 2>&5
3999  ac_status=$?
4000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); }; }; then
4002  ac_header_compiler=yes
4003else
4004  echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007ac_header_compiler=no
4008fi
4009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4011echo "${ECHO_T}$ac_header_compiler" >&6
4012
4013# Is the header present?
4014echo "$as_me:$LINENO: checking $ac_header presence" >&5
4015echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4016cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h.  */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h.  */
4022#include <$ac_header>
4023_ACEOF
4024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4025  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4026  ac_status=$?
4027  grep -v '^ *+' conftest.er1 >conftest.err
4028  rm -f conftest.er1
4029  cat conftest.err >&5
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); } >/dev/null; then
4032  if test -s conftest.err; then
4033    ac_cpp_err=$ac_c_preproc_warn_flag
4034    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4035  else
4036    ac_cpp_err=
4037  fi
4038else
4039  ac_cpp_err=yes
4040fi
4041if test -z "$ac_cpp_err"; then
4042  ac_header_preproc=yes
4043else
4044  echo "$as_me: failed program was:" >&5
4045sed 's/^/| /' conftest.$ac_ext >&5
4046
4047  ac_header_preproc=no
4048fi
4049rm -f conftest.err conftest.$ac_ext
4050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4051echo "${ECHO_T}$ac_header_preproc" >&6
4052
4053# So?  What about this header?
4054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4055  yes:no: )
4056    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4058    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4060    ac_header_preproc=yes
4061    ;;
4062  no:yes:* )
4063    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4065    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4066echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4067    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4069    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4070echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4071    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4073    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4075    (
4076      cat <<\_ASBOX
4077## ---------------------------------------- ##
4078## Report this to lib-bug-people@NetBSD.org ##
4079## ---------------------------------------- ##
4080_ASBOX
4081    ) |
4082      sed "s/^/$as_me: WARNING:     /" >&2
4083    ;;
4084esac
4085echo "$as_me:$LINENO: checking for $ac_header" >&5
4086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4087if eval "test \"\${$as_ac_Header+set}\" = set"; then
4088  echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090  eval "$as_ac_Header=\$ac_header_preproc"
4091fi
4092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4094
4095fi
4096if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097  cat >>confdefs.h <<_ACEOF
4098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4099_ACEOF
4100
4101else
4102  test -f include/$ac_header || touch include/$ac_header
4103fi
4104
4105done
4106
4107
4108
4109for ac_header in rpc/types.h netconfig.h
4110do
4111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4112if eval "test \"\${$as_ac_Header+set}\" = set"; then
4113  echo "$as_me:$LINENO: checking for $ac_header" >&5
4114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4115if eval "test \"\${$as_ac_Header+set}\" = set"; then
4116  echo $ECHO_N "(cached) $ECHO_C" >&6
4117fi
4118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4120else
4121  # Is the header compilable?
4122echo "$as_me:$LINENO: checking $ac_header usability" >&5
4123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4124cat >conftest.$ac_ext <<_ACEOF
4125/* confdefs.h.  */
4126_ACEOF
4127cat confdefs.h >>conftest.$ac_ext
4128cat >>conftest.$ac_ext <<_ACEOF
4129/* end confdefs.h.  */
4130$ac_includes_default
4131#include <$ac_header>
4132_ACEOF
4133rm -f conftest.$ac_objext
4134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135  (eval $ac_compile) 2>conftest.er1
4136  ac_status=$?
4137  grep -v '^ *+' conftest.er1 >conftest.err
4138  rm -f conftest.er1
4139  cat conftest.err >&5
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); } &&
4142	 { ac_try='test -z "$ac_c_werror_flag"
4143			 || test ! -s conftest.err'
4144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145  (eval $ac_try) 2>&5
4146  ac_status=$?
4147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148  (exit $ac_status); }; } &&
4149	 { ac_try='test -s conftest.$ac_objext'
4150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151  (eval $ac_try) 2>&5
4152  ac_status=$?
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); }; }; then
4155  ac_header_compiler=yes
4156else
4157  echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160ac_header_compiler=no
4161fi
4162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4164echo "${ECHO_T}$ac_header_compiler" >&6
4165
4166# Is the header present?
4167echo "$as_me:$LINENO: checking $ac_header presence" >&5
4168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4169cat >conftest.$ac_ext <<_ACEOF
4170/* confdefs.h.  */
4171_ACEOF
4172cat confdefs.h >>conftest.$ac_ext
4173cat >>conftest.$ac_ext <<_ACEOF
4174/* end confdefs.h.  */
4175#include <$ac_header>
4176_ACEOF
4177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4178  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4179  ac_status=$?
4180  grep -v '^ *+' conftest.er1 >conftest.err
4181  rm -f conftest.er1
4182  cat conftest.err >&5
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); } >/dev/null; then
4185  if test -s conftest.err; then
4186    ac_cpp_err=$ac_c_preproc_warn_flag
4187    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4188  else
4189    ac_cpp_err=
4190  fi
4191else
4192  ac_cpp_err=yes
4193fi
4194if test -z "$ac_cpp_err"; then
4195  ac_header_preproc=yes
4196else
4197  echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200  ac_header_preproc=no
4201fi
4202rm -f conftest.err conftest.$ac_ext
4203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4204echo "${ECHO_T}$ac_header_preproc" >&6
4205
4206# So?  What about this header?
4207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4208  yes:no: )
4209    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4211    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4213    ac_header_preproc=yes
4214    ;;
4215  no:yes:* )
4216    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4218    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4219echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4220    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4222    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4223echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4224    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4226    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4228    (
4229      cat <<\_ASBOX
4230## ---------------------------------------- ##
4231## Report this to lib-bug-people@NetBSD.org ##
4232## ---------------------------------------- ##
4233_ASBOX
4234    ) |
4235      sed "s/^/$as_me: WARNING:     /" >&2
4236    ;;
4237esac
4238echo "$as_me:$LINENO: checking for $ac_header" >&5
4239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4240if eval "test \"\${$as_ac_Header+set}\" = set"; then
4241  echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243  eval "$as_ac_Header=\$ac_header_preproc"
4244fi
4245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4247
4248fi
4249if test `eval echo '${'$as_ac_Header'}'` = yes; then
4250  cat >>confdefs.h <<_ACEOF
4251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4252_ACEOF
4253
4254else
4255  echo '#include "nbtool_config.h"' >include/$ac_header.new
4256	echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
4257	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4258		rm -f include/$ac_header.new
4259	else
4260		mv -f include/$ac_header.new include/$ac_header
4261	fi
4262fi
4263
4264done
4265
4266
4267# Typedefs.
4268echo "$as_me:$LINENO: checking for size_t" >&5
4269echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4270if test "${ac_cv_type_size_t+set}" = set; then
4271  echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273  cat >conftest.$ac_ext <<_ACEOF
4274/* confdefs.h.  */
4275_ACEOF
4276cat confdefs.h >>conftest.$ac_ext
4277cat >>conftest.$ac_ext <<_ACEOF
4278/* end confdefs.h.  */
4279$ac_includes_default
4280int
4281main ()
4282{
4283if ((size_t *) 0)
4284  return 0;
4285if (sizeof (size_t))
4286  return 0;
4287  ;
4288  return 0;
4289}
4290_ACEOF
4291rm -f conftest.$ac_objext
4292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293  (eval $ac_compile) 2>conftest.er1
4294  ac_status=$?
4295  grep -v '^ *+' conftest.er1 >conftest.err
4296  rm -f conftest.er1
4297  cat conftest.err >&5
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); } &&
4300	 { ac_try='test -z "$ac_c_werror_flag"
4301			 || test ! -s conftest.err'
4302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303  (eval $ac_try) 2>&5
4304  ac_status=$?
4305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306  (exit $ac_status); }; } &&
4307	 { ac_try='test -s conftest.$ac_objext'
4308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309  (eval $ac_try) 2>&5
4310  ac_status=$?
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); }; }; then
4313  ac_cv_type_size_t=yes
4314else
4315  echo "$as_me: failed program was:" >&5
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
4318ac_cv_type_size_t=no
4319fi
4320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321fi
4322echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4323echo "${ECHO_T}$ac_cv_type_size_t" >&6
4324if test $ac_cv_type_size_t = yes; then
4325  :
4326else
4327
4328cat >>confdefs.h <<_ACEOF
4329#define size_t unsigned
4330_ACEOF
4331
4332fi
4333
4334echo "$as_me:$LINENO: checking for id_t" >&5
4335echo $ECHO_N "checking for id_t... $ECHO_C" >&6
4336if test "${ac_cv_type_id_t+set}" = set; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339  cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h.  */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h.  */
4345$ac_includes_default
4346int
4347main ()
4348{
4349if ((id_t *) 0)
4350  return 0;
4351if (sizeof (id_t))
4352  return 0;
4353  ;
4354  return 0;
4355}
4356_ACEOF
4357rm -f conftest.$ac_objext
4358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359  (eval $ac_compile) 2>conftest.er1
4360  ac_status=$?
4361  grep -v '^ *+' conftest.er1 >conftest.err
4362  rm -f conftest.er1
4363  cat conftest.err >&5
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); } &&
4366	 { ac_try='test -z "$ac_c_werror_flag"
4367			 || test ! -s conftest.err'
4368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369  (eval $ac_try) 2>&5
4370  ac_status=$?
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); }; } &&
4373	 { ac_try='test -s conftest.$ac_objext'
4374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375  (eval $ac_try) 2>&5
4376  ac_status=$?
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); }; }; then
4379  ac_cv_type_id_t=yes
4380else
4381  echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384ac_cv_type_id_t=no
4385fi
4386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4387fi
4388echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
4389echo "${ECHO_T}$ac_cv_type_id_t" >&6
4390if test $ac_cv_type_id_t = yes; then
4391
4392cat >>confdefs.h <<_ACEOF
4393#define HAVE_ID_T 1
4394_ACEOF
4395
4396
4397fi
4398echo "$as_me:$LINENO: checking for long long" >&5
4399echo $ECHO_N "checking for long long... $ECHO_C" >&6
4400if test "${ac_cv_type_long_long+set}" = set; then
4401  echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403  cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409$ac_includes_default
4410int
4411main ()
4412{
4413if ((long long *) 0)
4414  return 0;
4415if (sizeof (long long))
4416  return 0;
4417  ;
4418  return 0;
4419}
4420_ACEOF
4421rm -f conftest.$ac_objext
4422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423  (eval $ac_compile) 2>conftest.er1
4424  ac_status=$?
4425  grep -v '^ *+' conftest.er1 >conftest.err
4426  rm -f conftest.er1
4427  cat conftest.err >&5
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); } &&
4430	 { ac_try='test -z "$ac_c_werror_flag"
4431			 || test ! -s conftest.err'
4432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433  (eval $ac_try) 2>&5
4434  ac_status=$?
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; } &&
4437	 { ac_try='test -s conftest.$ac_objext'
4438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439  (eval $ac_try) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); }; }; then
4443  ac_cv_type_long_long=yes
4444else
4445  echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448ac_cv_type_long_long=no
4449fi
4450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451fi
4452echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4453echo "${ECHO_T}$ac_cv_type_long_long" >&6
4454if test $ac_cv_type_long_long = yes; then
4455
4456cat >>confdefs.h <<_ACEOF
4457#define HAVE_LONG_LONG 1
4458_ACEOF
4459
4460
4461fi
4462echo "$as_me:$LINENO: checking for u_long" >&5
4463echo $ECHO_N "checking for u_long... $ECHO_C" >&6
4464if test "${ac_cv_type_u_long+set}" = set; then
4465  echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467  cat >conftest.$ac_ext <<_ACEOF
4468/* confdefs.h.  */
4469_ACEOF
4470cat confdefs.h >>conftest.$ac_ext
4471cat >>conftest.$ac_ext <<_ACEOF
4472/* end confdefs.h.  */
4473$ac_includes_default
4474int
4475main ()
4476{
4477if ((u_long *) 0)
4478  return 0;
4479if (sizeof (u_long))
4480  return 0;
4481  ;
4482  return 0;
4483}
4484_ACEOF
4485rm -f conftest.$ac_objext
4486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487  (eval $ac_compile) 2>conftest.er1
4488  ac_status=$?
4489  grep -v '^ *+' conftest.er1 >conftest.err
4490  rm -f conftest.er1
4491  cat conftest.err >&5
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); } &&
4494	 { ac_try='test -z "$ac_c_werror_flag"
4495			 || test ! -s conftest.err'
4496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497  (eval $ac_try) 2>&5
4498  ac_status=$?
4499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500  (exit $ac_status); }; } &&
4501	 { ac_try='test -s conftest.$ac_objext'
4502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503  (eval $ac_try) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); }; }; then
4507  ac_cv_type_u_long=yes
4508else
4509  echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512ac_cv_type_u_long=no
4513fi
4514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4515fi
4516echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
4517echo "${ECHO_T}$ac_cv_type_u_long" >&6
4518if test $ac_cv_type_u_long = yes; then
4519
4520cat >>confdefs.h <<_ACEOF
4521#define HAVE_U_LONG 1
4522_ACEOF
4523
4524
4525fi
4526echo "$as_me:$LINENO: checking for u_char" >&5
4527echo $ECHO_N "checking for u_char... $ECHO_C" >&6
4528if test "${ac_cv_type_u_char+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  cat >conftest.$ac_ext <<_ACEOF
4532/* confdefs.h.  */
4533_ACEOF
4534cat confdefs.h >>conftest.$ac_ext
4535cat >>conftest.$ac_ext <<_ACEOF
4536/* end confdefs.h.  */
4537$ac_includes_default
4538int
4539main ()
4540{
4541if ((u_char *) 0)
4542  return 0;
4543if (sizeof (u_char))
4544  return 0;
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549rm -f conftest.$ac_objext
4550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551  (eval $ac_compile) 2>conftest.er1
4552  ac_status=$?
4553  grep -v '^ *+' conftest.er1 >conftest.err
4554  rm -f conftest.er1
4555  cat conftest.err >&5
4556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); } &&
4558	 { ac_try='test -z "$ac_c_werror_flag"
4559			 || test ! -s conftest.err'
4560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561  (eval $ac_try) 2>&5
4562  ac_status=$?
4563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); }; } &&
4565	 { ac_try='test -s conftest.$ac_objext'
4566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567  (eval $ac_try) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }; }; then
4571  ac_cv_type_u_char=yes
4572else
4573  echo "$as_me: failed program was:" >&5
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576ac_cv_type_u_char=no
4577fi
4578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
4581echo "${ECHO_T}$ac_cv_type_u_char" >&6
4582if test $ac_cv_type_u_char = yes; then
4583
4584cat >>confdefs.h <<_ACEOF
4585#define HAVE_U_CHAR 1
4586_ACEOF
4587
4588
4589fi
4590echo "$as_me:$LINENO: checking for u_short" >&5
4591echo $ECHO_N "checking for u_short... $ECHO_C" >&6
4592if test "${ac_cv_type_u_short+set}" = set; then
4593  echo $ECHO_N "(cached) $ECHO_C" >&6
4594else
4595  cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h.  */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h.  */
4601$ac_includes_default
4602int
4603main ()
4604{
4605if ((u_short *) 0)
4606  return 0;
4607if (sizeof (u_short))
4608  return 0;
4609  ;
4610  return 0;
4611}
4612_ACEOF
4613rm -f conftest.$ac_objext
4614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615  (eval $ac_compile) 2>conftest.er1
4616  ac_status=$?
4617  grep -v '^ *+' conftest.er1 >conftest.err
4618  rm -f conftest.er1
4619  cat conftest.err >&5
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); } &&
4622	 { ac_try='test -z "$ac_c_werror_flag"
4623			 || test ! -s conftest.err'
4624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625  (eval $ac_try) 2>&5
4626  ac_status=$?
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); }; } &&
4629	 { ac_try='test -s conftest.$ac_objext'
4630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631  (eval $ac_try) 2>&5
4632  ac_status=$?
4633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634  (exit $ac_status); }; }; then
4635  ac_cv_type_u_short=yes
4636else
4637  echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640ac_cv_type_u_short=no
4641fi
4642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643fi
4644echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
4645echo "${ECHO_T}$ac_cv_type_u_short" >&6
4646if test $ac_cv_type_u_short = yes; then
4647
4648cat >>confdefs.h <<_ACEOF
4649#define HAVE_U_SHORT 1
4650_ACEOF
4651
4652
4653fi
4654echo "$as_me:$LINENO: checking for u_int" >&5
4655echo $ECHO_N "checking for u_int... $ECHO_C" >&6
4656if test "${ac_cv_type_u_int+set}" = set; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659  cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h.  */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h.  */
4665$ac_includes_default
4666int
4667main ()
4668{
4669if ((u_int *) 0)
4670  return 0;
4671if (sizeof (u_int))
4672  return 0;
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677rm -f conftest.$ac_objext
4678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679  (eval $ac_compile) 2>conftest.er1
4680  ac_status=$?
4681  grep -v '^ *+' conftest.er1 >conftest.err
4682  rm -f conftest.er1
4683  cat conftest.err >&5
4684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685  (exit $ac_status); } &&
4686	 { ac_try='test -z "$ac_c_werror_flag"
4687			 || test ! -s conftest.err'
4688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689  (eval $ac_try) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); }; } &&
4693	 { ac_try='test -s conftest.$ac_objext'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; }; then
4699  ac_cv_type_u_int=yes
4700else
4701  echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704ac_cv_type_u_int=no
4705fi
4706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707fi
4708echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
4709echo "${ECHO_T}$ac_cv_type_u_int" >&6
4710if test $ac_cv_type_u_int = yes; then
4711
4712cat >>confdefs.h <<_ACEOF
4713#define HAVE_U_INT 1
4714_ACEOF
4715
4716
4717fi
4718echo "$as_me:$LINENO: checking for u_quad_t" >&5
4719echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
4720if test "${ac_cv_type_u_quad_t+set}" = set; then
4721  echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723  cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h.  */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h.  */
4729$ac_includes_default
4730int
4731main ()
4732{
4733if ((u_quad_t *) 0)
4734  return 0;
4735if (sizeof (u_quad_t))
4736  return 0;
4737  ;
4738  return 0;
4739}
4740_ACEOF
4741rm -f conftest.$ac_objext
4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743  (eval $ac_compile) 2>conftest.er1
4744  ac_status=$?
4745  grep -v '^ *+' conftest.er1 >conftest.err
4746  rm -f conftest.er1
4747  cat conftest.err >&5
4748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749  (exit $ac_status); } &&
4750	 { ac_try='test -z "$ac_c_werror_flag"
4751			 || test ! -s conftest.err'
4752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753  (eval $ac_try) 2>&5
4754  ac_status=$?
4755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756  (exit $ac_status); }; } &&
4757	 { ac_try='test -s conftest.$ac_objext'
4758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759  (eval $ac_try) 2>&5
4760  ac_status=$?
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); }; }; then
4763  ac_cv_type_u_quad_t=yes
4764else
4765  echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768ac_cv_type_u_quad_t=no
4769fi
4770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771fi
4772echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
4773echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
4774if test $ac_cv_type_u_quad_t = yes; then
4775
4776cat >>confdefs.h <<_ACEOF
4777#define HAVE_U_QUAD_T 1
4778_ACEOF
4779
4780
4781fi
4782
4783echo "$as_me:$LINENO: checking for socklen_t" >&5
4784echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4785if test "${ac_cv_type_socklen_t+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h.  */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h.  */
4794#include <sys/types.h>
4795#include <sys/socket.h>
4796
4797int
4798main ()
4799{
4800if ((socklen_t *) 0)
4801  return 0;
4802if (sizeof (socklen_t))
4803  return 0;
4804  ;
4805  return 0;
4806}
4807_ACEOF
4808rm -f conftest.$ac_objext
4809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810  (eval $ac_compile) 2>conftest.er1
4811  ac_status=$?
4812  grep -v '^ *+' conftest.er1 >conftest.err
4813  rm -f conftest.er1
4814  cat conftest.err >&5
4815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816  (exit $ac_status); } &&
4817	 { ac_try='test -z "$ac_c_werror_flag"
4818			 || test ! -s conftest.err'
4819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820  (eval $ac_try) 2>&5
4821  ac_status=$?
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); }; } &&
4824	 { ac_try='test -s conftest.$ac_objext'
4825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826  (eval $ac_try) 2>&5
4827  ac_status=$?
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); }; }; then
4830  ac_cv_type_socklen_t=yes
4831else
4832  echo "$as_me: failed program was:" >&5
4833sed 's/^/| /' conftest.$ac_ext >&5
4834
4835ac_cv_type_socklen_t=no
4836fi
4837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838fi
4839echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4840echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4841if test $ac_cv_type_socklen_t = yes; then
4842  cat >>confdefs.h <<\_ACEOF
4843#define HAVE_SOCKLEN_T 1
4844_ACEOF
4845
4846fi
4847
4848
4849
4850
4851
4852	echo "$as_me:$LINENO: checking for uint8_t" >&5
4853echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4854if test "${ac_cv_type_uint8_t+set}" = set; then
4855  echo $ECHO_N "(cached) $ECHO_C" >&6
4856else
4857  cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h.  */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h.  */
4863$ac_includes_default
4864int
4865main ()
4866{
4867if ((uint8_t *) 0)
4868  return 0;
4869if (sizeof (uint8_t))
4870  return 0;
4871  ;
4872  return 0;
4873}
4874_ACEOF
4875rm -f conftest.$ac_objext
4876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877  (eval $ac_compile) 2>conftest.er1
4878  ac_status=$?
4879  grep -v '^ *+' conftest.er1 >conftest.err
4880  rm -f conftest.er1
4881  cat conftest.err >&5
4882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883  (exit $ac_status); } &&
4884	 { ac_try='test -z "$ac_c_werror_flag"
4885			 || test ! -s conftest.err'
4886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887  (eval $ac_try) 2>&5
4888  ac_status=$?
4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890  (exit $ac_status); }; } &&
4891	 { ac_try='test -s conftest.$ac_objext'
4892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893  (eval $ac_try) 2>&5
4894  ac_status=$?
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); }; }; then
4897  ac_cv_type_uint8_t=yes
4898else
4899  echo "$as_me: failed program was:" >&5
4900sed 's/^/| /' conftest.$ac_ext >&5
4901
4902ac_cv_type_uint8_t=no
4903fi
4904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4905fi
4906echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4907echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4908if test $ac_cv_type_uint8_t = yes; then
4909  :
4910else
4911
4912		echo "$as_me:$LINENO: checking for u_int8_t" >&5
4913echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4914if test "${ac_cv_type_u_int8_t+set}" = set; then
4915  echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
4917  cat >conftest.$ac_ext <<_ACEOF
4918/* confdefs.h.  */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h.  */
4923$ac_includes_default
4924int
4925main ()
4926{
4927if ((u_int8_t *) 0)
4928  return 0;
4929if (sizeof (u_int8_t))
4930  return 0;
4931  ;
4932  return 0;
4933}
4934_ACEOF
4935rm -f conftest.$ac_objext
4936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937  (eval $ac_compile) 2>conftest.er1
4938  ac_status=$?
4939  grep -v '^ *+' conftest.er1 >conftest.err
4940  rm -f conftest.er1
4941  cat conftest.err >&5
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); } &&
4944	 { ac_try='test -z "$ac_c_werror_flag"
4945			 || test ! -s conftest.err'
4946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947  (eval $ac_try) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); }; } &&
4951	 { ac_try='test -s conftest.$ac_objext'
4952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953  (eval $ac_try) 2>&5
4954  ac_status=$?
4955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956  (exit $ac_status); }; }; then
4957  ac_cv_type_u_int8_t=yes
4958else
4959  echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
4962ac_cv_type_u_int8_t=no
4963fi
4964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4965fi
4966echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4967echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
4968if test $ac_cv_type_u_int8_t = yes; then
4969  cat >>confdefs.h <<\_ACEOF
4970#define uint8_t u_int8_t
4971_ACEOF
4972
4973else
4974  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5
4975echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
4976   { (exit 1); exit 1; }; }
4977fi
4978
4979
4980fi
4981
4982	echo "$as_me:$LINENO: checking for u_int8_t" >&5
4983echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4984if test "${ac_cv_type_u_int8_t+set}" = set; then
4985  echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987  cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993$ac_includes_default
4994int
4995main ()
4996{
4997if ((u_int8_t *) 0)
4998  return 0;
4999if (sizeof (u_int8_t))
5000  return 0;
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005rm -f conftest.$ac_objext
5006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007  (eval $ac_compile) 2>conftest.er1
5008  ac_status=$?
5009  grep -v '^ *+' conftest.er1 >conftest.err
5010  rm -f conftest.er1
5011  cat conftest.err >&5
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); } &&
5014	 { ac_try='test -z "$ac_c_werror_flag"
5015			 || test ! -s conftest.err'
5016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017  (eval $ac_try) 2>&5
5018  ac_status=$?
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); }; } &&
5021	 { ac_try='test -s conftest.$ac_objext'
5022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023  (eval $ac_try) 2>&5
5024  ac_status=$?
5025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); }; }; then
5027  ac_cv_type_u_int8_t=yes
5028else
5029  echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032ac_cv_type_u_int8_t=no
5033fi
5034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035fi
5036echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5037echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
5038if test $ac_cv_type_u_int8_t = yes; then
5039  :
5040else
5041
5042		echo "$as_me:$LINENO: checking for uint8_t" >&5
5043echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5044if test "${ac_cv_type_uint8_t+set}" = set; then
5045  echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047  cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h.  */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h.  */
5053$ac_includes_default
5054int
5055main ()
5056{
5057if ((uint8_t *) 0)
5058  return 0;
5059if (sizeof (uint8_t))
5060  return 0;
5061  ;
5062  return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext
5066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067  (eval $ac_compile) 2>conftest.er1
5068  ac_status=$?
5069  grep -v '^ *+' conftest.er1 >conftest.err
5070  rm -f conftest.er1
5071  cat conftest.err >&5
5072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073  (exit $ac_status); } &&
5074	 { ac_try='test -z "$ac_c_werror_flag"
5075			 || test ! -s conftest.err'
5076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077  (eval $ac_try) 2>&5
5078  ac_status=$?
5079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080  (exit $ac_status); }; } &&
5081	 { ac_try='test -s conftest.$ac_objext'
5082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083  (eval $ac_try) 2>&5
5084  ac_status=$?
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); }; }; then
5087  ac_cv_type_uint8_t=yes
5088else
5089  echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092ac_cv_type_uint8_t=no
5093fi
5094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095fi
5096echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5097echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5098if test $ac_cv_type_uint8_t = yes; then
5099  cat >>confdefs.h <<\_ACEOF
5100#define u_int8_t uint8_t
5101_ACEOF
5102
5103else
5104  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5
5105echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
5106   { (exit 1); exit 1; }; }
5107fi
5108
5109
5110fi
5111
5112
5113
5114	echo "$as_me:$LINENO: checking for uint16_t" >&5
5115echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5116if test "${ac_cv_type_uint16_t+set}" = set; then
5117  echo $ECHO_N "(cached) $ECHO_C" >&6
5118else
5119  cat >conftest.$ac_ext <<_ACEOF
5120/* confdefs.h.  */
5121_ACEOF
5122cat confdefs.h >>conftest.$ac_ext
5123cat >>conftest.$ac_ext <<_ACEOF
5124/* end confdefs.h.  */
5125$ac_includes_default
5126int
5127main ()
5128{
5129if ((uint16_t *) 0)
5130  return 0;
5131if (sizeof (uint16_t))
5132  return 0;
5133  ;
5134  return 0;
5135}
5136_ACEOF
5137rm -f conftest.$ac_objext
5138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139  (eval $ac_compile) 2>conftest.er1
5140  ac_status=$?
5141  grep -v '^ *+' conftest.er1 >conftest.err
5142  rm -f conftest.er1
5143  cat conftest.err >&5
5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145  (exit $ac_status); } &&
5146	 { ac_try='test -z "$ac_c_werror_flag"
5147			 || test ! -s conftest.err'
5148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149  (eval $ac_try) 2>&5
5150  ac_status=$?
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); }; } &&
5153	 { ac_try='test -s conftest.$ac_objext'
5154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155  (eval $ac_try) 2>&5
5156  ac_status=$?
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); }; }; then
5159  ac_cv_type_uint16_t=yes
5160else
5161  echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
5164ac_cv_type_uint16_t=no
5165fi
5166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167fi
5168echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5169echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5170if test $ac_cv_type_uint16_t = yes; then
5171  :
5172else
5173
5174		echo "$as_me:$LINENO: checking for u_int16_t" >&5
5175echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5176if test "${ac_cv_type_u_int16_t+set}" = set; then
5177  echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179  cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h.  */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h.  */
5185$ac_includes_default
5186int
5187main ()
5188{
5189if ((u_int16_t *) 0)
5190  return 0;
5191if (sizeof (u_int16_t))
5192  return 0;
5193  ;
5194  return 0;
5195}
5196_ACEOF
5197rm -f conftest.$ac_objext
5198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199  (eval $ac_compile) 2>conftest.er1
5200  ac_status=$?
5201  grep -v '^ *+' conftest.er1 >conftest.err
5202  rm -f conftest.er1
5203  cat conftest.err >&5
5204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205  (exit $ac_status); } &&
5206	 { ac_try='test -z "$ac_c_werror_flag"
5207			 || test ! -s conftest.err'
5208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209  (eval $ac_try) 2>&5
5210  ac_status=$?
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); }; } &&
5213	 { ac_try='test -s conftest.$ac_objext'
5214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215  (eval $ac_try) 2>&5
5216  ac_status=$?
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); }; }; then
5219  ac_cv_type_u_int16_t=yes
5220else
5221  echo "$as_me: failed program was:" >&5
5222sed 's/^/| /' conftest.$ac_ext >&5
5223
5224ac_cv_type_u_int16_t=no
5225fi
5226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227fi
5228echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5229echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5230if test $ac_cv_type_u_int16_t = yes; then
5231  cat >>confdefs.h <<\_ACEOF
5232#define uint16_t u_int16_t
5233_ACEOF
5234
5235else
5236  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5
5237echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
5238   { (exit 1); exit 1; }; }
5239fi
5240
5241
5242fi
5243
5244	echo "$as_me:$LINENO: checking for u_int16_t" >&5
5245echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5246if test "${ac_cv_type_u_int16_t+set}" = set; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249  cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h.  */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h.  */
5255$ac_includes_default
5256int
5257main ()
5258{
5259if ((u_int16_t *) 0)
5260  return 0;
5261if (sizeof (u_int16_t))
5262  return 0;
5263  ;
5264  return 0;
5265}
5266_ACEOF
5267rm -f conftest.$ac_objext
5268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269  (eval $ac_compile) 2>conftest.er1
5270  ac_status=$?
5271  grep -v '^ *+' conftest.er1 >conftest.err
5272  rm -f conftest.er1
5273  cat conftest.err >&5
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); } &&
5276	 { ac_try='test -z "$ac_c_werror_flag"
5277			 || test ! -s conftest.err'
5278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279  (eval $ac_try) 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); }; } &&
5283	 { ac_try='test -s conftest.$ac_objext'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; }; then
5289  ac_cv_type_u_int16_t=yes
5290else
5291  echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
5294ac_cv_type_u_int16_t=no
5295fi
5296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297fi
5298echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5299echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5300if test $ac_cv_type_u_int16_t = yes; then
5301  :
5302else
5303
5304		echo "$as_me:$LINENO: checking for uint16_t" >&5
5305echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5306if test "${ac_cv_type_uint16_t+set}" = set; then
5307  echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309  cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h.  */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h.  */
5315$ac_includes_default
5316int
5317main ()
5318{
5319if ((uint16_t *) 0)
5320  return 0;
5321if (sizeof (uint16_t))
5322  return 0;
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327rm -f conftest.$ac_objext
5328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5329  (eval $ac_compile) 2>conftest.er1
5330  ac_status=$?
5331  grep -v '^ *+' conftest.er1 >conftest.err
5332  rm -f conftest.er1
5333  cat conftest.err >&5
5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335  (exit $ac_status); } &&
5336	 { ac_try='test -z "$ac_c_werror_flag"
5337			 || test ! -s conftest.err'
5338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339  (eval $ac_try) 2>&5
5340  ac_status=$?
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); }; } &&
5343	 { ac_try='test -s conftest.$ac_objext'
5344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345  (eval $ac_try) 2>&5
5346  ac_status=$?
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); }; }; then
5349  ac_cv_type_uint16_t=yes
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354ac_cv_type_uint16_t=no
5355fi
5356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357fi
5358echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5359echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5360if test $ac_cv_type_uint16_t = yes; then
5361  cat >>confdefs.h <<\_ACEOF
5362#define u_int16_t uint16_t
5363_ACEOF
5364
5365else
5366  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5
5367echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
5368   { (exit 1); exit 1; }; }
5369fi
5370
5371
5372fi
5373
5374
5375
5376	echo "$as_me:$LINENO: checking for uint32_t" >&5
5377echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5378if test "${ac_cv_type_uint32_t+set}" = set; then
5379  echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381  cat >conftest.$ac_ext <<_ACEOF
5382/* confdefs.h.  */
5383_ACEOF
5384cat confdefs.h >>conftest.$ac_ext
5385cat >>conftest.$ac_ext <<_ACEOF
5386/* end confdefs.h.  */
5387$ac_includes_default
5388int
5389main ()
5390{
5391if ((uint32_t *) 0)
5392  return 0;
5393if (sizeof (uint32_t))
5394  return 0;
5395  ;
5396  return 0;
5397}
5398_ACEOF
5399rm -f conftest.$ac_objext
5400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401  (eval $ac_compile) 2>conftest.er1
5402  ac_status=$?
5403  grep -v '^ *+' conftest.er1 >conftest.err
5404  rm -f conftest.er1
5405  cat conftest.err >&5
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); } &&
5408	 { ac_try='test -z "$ac_c_werror_flag"
5409			 || test ! -s conftest.err'
5410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411  (eval $ac_try) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }; } &&
5415	 { ac_try='test -s conftest.$ac_objext'
5416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417  (eval $ac_try) 2>&5
5418  ac_status=$?
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); }; }; then
5421  ac_cv_type_uint32_t=yes
5422else
5423  echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426ac_cv_type_uint32_t=no
5427fi
5428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429fi
5430echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5431echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5432if test $ac_cv_type_uint32_t = yes; then
5433  :
5434else
5435
5436		echo "$as_me:$LINENO: checking for u_int32_t" >&5
5437echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5438if test "${ac_cv_type_u_int32_t+set}" = set; then
5439  echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441  cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h.  */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h.  */
5447$ac_includes_default
5448int
5449main ()
5450{
5451if ((u_int32_t *) 0)
5452  return 0;
5453if (sizeof (u_int32_t))
5454  return 0;
5455  ;
5456  return 0;
5457}
5458_ACEOF
5459rm -f conftest.$ac_objext
5460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461  (eval $ac_compile) 2>conftest.er1
5462  ac_status=$?
5463  grep -v '^ *+' conftest.er1 >conftest.err
5464  rm -f conftest.er1
5465  cat conftest.err >&5
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); } &&
5468	 { ac_try='test -z "$ac_c_werror_flag"
5469			 || test ! -s conftest.err'
5470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471  (eval $ac_try) 2>&5
5472  ac_status=$?
5473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474  (exit $ac_status); }; } &&
5475	 { ac_try='test -s conftest.$ac_objext'
5476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477  (eval $ac_try) 2>&5
5478  ac_status=$?
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); }; }; then
5481  ac_cv_type_u_int32_t=yes
5482else
5483  echo "$as_me: failed program was:" >&5
5484sed 's/^/| /' conftest.$ac_ext >&5
5485
5486ac_cv_type_u_int32_t=no
5487fi
5488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5489fi
5490echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5491echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5492if test $ac_cv_type_u_int32_t = yes; then
5493  cat >>confdefs.h <<\_ACEOF
5494#define uint32_t u_int32_t
5495_ACEOF
5496
5497else
5498  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5
5499echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
5500   { (exit 1); exit 1; }; }
5501fi
5502
5503
5504fi
5505
5506	echo "$as_me:$LINENO: checking for u_int32_t" >&5
5507echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5508if test "${ac_cv_type_u_int32_t+set}" = set; then
5509  echo $ECHO_N "(cached) $ECHO_C" >&6
5510else
5511  cat >conftest.$ac_ext <<_ACEOF
5512/* confdefs.h.  */
5513_ACEOF
5514cat confdefs.h >>conftest.$ac_ext
5515cat >>conftest.$ac_ext <<_ACEOF
5516/* end confdefs.h.  */
5517$ac_includes_default
5518int
5519main ()
5520{
5521if ((u_int32_t *) 0)
5522  return 0;
5523if (sizeof (u_int32_t))
5524  return 0;
5525  ;
5526  return 0;
5527}
5528_ACEOF
5529rm -f conftest.$ac_objext
5530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531  (eval $ac_compile) 2>conftest.er1
5532  ac_status=$?
5533  grep -v '^ *+' conftest.er1 >conftest.err
5534  rm -f conftest.er1
5535  cat conftest.err >&5
5536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); } &&
5538	 { ac_try='test -z "$ac_c_werror_flag"
5539			 || test ! -s conftest.err'
5540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541  (eval $ac_try) 2>&5
5542  ac_status=$?
5543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544  (exit $ac_status); }; } &&
5545	 { ac_try='test -s conftest.$ac_objext'
5546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547  (eval $ac_try) 2>&5
5548  ac_status=$?
5549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550  (exit $ac_status); }; }; then
5551  ac_cv_type_u_int32_t=yes
5552else
5553  echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556ac_cv_type_u_int32_t=no
5557fi
5558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559fi
5560echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5561echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5562if test $ac_cv_type_u_int32_t = yes; then
5563  :
5564else
5565
5566		echo "$as_me:$LINENO: checking for uint32_t" >&5
5567echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5568if test "${ac_cv_type_uint32_t+set}" = set; then
5569  echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571  cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h.  */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
5576/* end confdefs.h.  */
5577$ac_includes_default
5578int
5579main ()
5580{
5581if ((uint32_t *) 0)
5582  return 0;
5583if (sizeof (uint32_t))
5584  return 0;
5585  ;
5586  return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext
5590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591  (eval $ac_compile) 2>conftest.er1
5592  ac_status=$?
5593  grep -v '^ *+' conftest.er1 >conftest.err
5594  rm -f conftest.er1
5595  cat conftest.err >&5
5596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597  (exit $ac_status); } &&
5598	 { ac_try='test -z "$ac_c_werror_flag"
5599			 || test ! -s conftest.err'
5600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601  (eval $ac_try) 2>&5
5602  ac_status=$?
5603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604  (exit $ac_status); }; } &&
5605	 { ac_try='test -s conftest.$ac_objext'
5606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607  (eval $ac_try) 2>&5
5608  ac_status=$?
5609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610  (exit $ac_status); }; }; then
5611  ac_cv_type_uint32_t=yes
5612else
5613  echo "$as_me: failed program was:" >&5
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
5616ac_cv_type_uint32_t=no
5617fi
5618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5619fi
5620echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5621echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5622if test $ac_cv_type_uint32_t = yes; then
5623  cat >>confdefs.h <<\_ACEOF
5624#define u_int32_t uint32_t
5625_ACEOF
5626
5627else
5628  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5
5629echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
5630   { (exit 1); exit 1; }; }
5631fi
5632
5633
5634fi
5635
5636
5637
5638	echo "$as_me:$LINENO: checking for uint64_t" >&5
5639echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5640if test "${ac_cv_type_uint64_t+set}" = set; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643  cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h.  */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h.  */
5649$ac_includes_default
5650int
5651main ()
5652{
5653if ((uint64_t *) 0)
5654  return 0;
5655if (sizeof (uint64_t))
5656  return 0;
5657  ;
5658  return 0;
5659}
5660_ACEOF
5661rm -f conftest.$ac_objext
5662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663  (eval $ac_compile) 2>conftest.er1
5664  ac_status=$?
5665  grep -v '^ *+' conftest.er1 >conftest.err
5666  rm -f conftest.er1
5667  cat conftest.err >&5
5668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669  (exit $ac_status); } &&
5670	 { ac_try='test -z "$ac_c_werror_flag"
5671			 || test ! -s conftest.err'
5672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673  (eval $ac_try) 2>&5
5674  ac_status=$?
5675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676  (exit $ac_status); }; } &&
5677	 { ac_try='test -s conftest.$ac_objext'
5678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679  (eval $ac_try) 2>&5
5680  ac_status=$?
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); }; }; then
5683  ac_cv_type_uint64_t=yes
5684else
5685  echo "$as_me: failed program was:" >&5
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
5688ac_cv_type_uint64_t=no
5689fi
5690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691fi
5692echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5693echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5694if test $ac_cv_type_uint64_t = yes; then
5695  :
5696else
5697
5698		echo "$as_me:$LINENO: checking for u_int64_t" >&5
5699echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5700if test "${ac_cv_type_u_int64_t+set}" = set; then
5701  echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703  cat >conftest.$ac_ext <<_ACEOF
5704/* confdefs.h.  */
5705_ACEOF
5706cat confdefs.h >>conftest.$ac_ext
5707cat >>conftest.$ac_ext <<_ACEOF
5708/* end confdefs.h.  */
5709$ac_includes_default
5710int
5711main ()
5712{
5713if ((u_int64_t *) 0)
5714  return 0;
5715if (sizeof (u_int64_t))
5716  return 0;
5717  ;
5718  return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext
5722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723  (eval $ac_compile) 2>conftest.er1
5724  ac_status=$?
5725  grep -v '^ *+' conftest.er1 >conftest.err
5726  rm -f conftest.er1
5727  cat conftest.err >&5
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); } &&
5730	 { ac_try='test -z "$ac_c_werror_flag"
5731			 || test ! -s conftest.err'
5732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733  (eval $ac_try) 2>&5
5734  ac_status=$?
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); }; } &&
5737	 { ac_try='test -s conftest.$ac_objext'
5738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739  (eval $ac_try) 2>&5
5740  ac_status=$?
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); }; }; then
5743  ac_cv_type_u_int64_t=yes
5744else
5745  echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748ac_cv_type_u_int64_t=no
5749fi
5750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5751fi
5752echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5753echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5754if test $ac_cv_type_u_int64_t = yes; then
5755  cat >>confdefs.h <<\_ACEOF
5756#define uint64_t u_int64_t
5757_ACEOF
5758
5759else
5760  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5
5761echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
5762   { (exit 1); exit 1; }; }
5763fi
5764
5765
5766fi
5767
5768	echo "$as_me:$LINENO: checking for u_int64_t" >&5
5769echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5770if test "${ac_cv_type_u_int64_t+set}" = set; then
5771  echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773  cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h.  */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h.  */
5779$ac_includes_default
5780int
5781main ()
5782{
5783if ((u_int64_t *) 0)
5784  return 0;
5785if (sizeof (u_int64_t))
5786  return 0;
5787  ;
5788  return 0;
5789}
5790_ACEOF
5791rm -f conftest.$ac_objext
5792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793  (eval $ac_compile) 2>conftest.er1
5794  ac_status=$?
5795  grep -v '^ *+' conftest.er1 >conftest.err
5796  rm -f conftest.er1
5797  cat conftest.err >&5
5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799  (exit $ac_status); } &&
5800	 { ac_try='test -z "$ac_c_werror_flag"
5801			 || test ! -s conftest.err'
5802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803  (eval $ac_try) 2>&5
5804  ac_status=$?
5805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806  (exit $ac_status); }; } &&
5807	 { ac_try='test -s conftest.$ac_objext'
5808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809  (eval $ac_try) 2>&5
5810  ac_status=$?
5811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812  (exit $ac_status); }; }; then
5813  ac_cv_type_u_int64_t=yes
5814else
5815  echo "$as_me: failed program was:" >&5
5816sed 's/^/| /' conftest.$ac_ext >&5
5817
5818ac_cv_type_u_int64_t=no
5819fi
5820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5823echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5824if test $ac_cv_type_u_int64_t = yes; then
5825  :
5826else
5827
5828		echo "$as_me:$LINENO: checking for uint64_t" >&5
5829echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5830if test "${ac_cv_type_uint64_t+set}" = set; then
5831  echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833  cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h.  */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h.  */
5839$ac_includes_default
5840int
5841main ()
5842{
5843if ((uint64_t *) 0)
5844  return 0;
5845if (sizeof (uint64_t))
5846  return 0;
5847  ;
5848  return 0;
5849}
5850_ACEOF
5851rm -f conftest.$ac_objext
5852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853  (eval $ac_compile) 2>conftest.er1
5854  ac_status=$?
5855  grep -v '^ *+' conftest.er1 >conftest.err
5856  rm -f conftest.er1
5857  cat conftest.err >&5
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); } &&
5860	 { ac_try='test -z "$ac_c_werror_flag"
5861			 || test ! -s conftest.err'
5862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863  (eval $ac_try) 2>&5
5864  ac_status=$?
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); }; } &&
5867	 { ac_try='test -s conftest.$ac_objext'
5868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869  (eval $ac_try) 2>&5
5870  ac_status=$?
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); }; }; then
5873  ac_cv_type_uint64_t=yes
5874else
5875  echo "$as_me: failed program was:" >&5
5876sed 's/^/| /' conftest.$ac_ext >&5
5877
5878ac_cv_type_uint64_t=no
5879fi
5880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5881fi
5882echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5883echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5884if test $ac_cv_type_uint64_t = yes; then
5885  cat >>confdefs.h <<\_ACEOF
5886#define u_int64_t uint64_t
5887_ACEOF
5888
5889else
5890  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5
5891echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
5892   { (exit 1); exit 1; }; }
5893fi
5894
5895
5896fi
5897
5898
5899
5900# Struct members.
5901echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
5902echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
5903if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
5904  echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906  cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h.  */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h.  */
5912#include <sys/types.h>
5913#include <dirent.h>
5914
5915int
5916main ()
5917{
5918static DIR ac_aggr;
5919if (ac_aggr.dd_fd)
5920return 0;
5921  ;
5922  return 0;
5923}
5924_ACEOF
5925rm -f conftest.$ac_objext
5926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927  (eval $ac_compile) 2>conftest.er1
5928  ac_status=$?
5929  grep -v '^ *+' conftest.er1 >conftest.err
5930  rm -f conftest.er1
5931  cat conftest.err >&5
5932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933  (exit $ac_status); } &&
5934	 { ac_try='test -z "$ac_c_werror_flag"
5935			 || test ! -s conftest.err'
5936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937  (eval $ac_try) 2>&5
5938  ac_status=$?
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); }; } &&
5941	 { ac_try='test -s conftest.$ac_objext'
5942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943  (eval $ac_try) 2>&5
5944  ac_status=$?
5945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946  (exit $ac_status); }; }; then
5947  ac_cv_member_DIR_dd_fd=yes
5948else
5949  echo "$as_me: failed program was:" >&5
5950sed 's/^/| /' conftest.$ac_ext >&5
5951
5952cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h.  */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h.  */
5958#include <sys/types.h>
5959#include <dirent.h>
5960
5961int
5962main ()
5963{
5964static DIR ac_aggr;
5965if (sizeof ac_aggr.dd_fd)
5966return 0;
5967  ;
5968  return 0;
5969}
5970_ACEOF
5971rm -f conftest.$ac_objext
5972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973  (eval $ac_compile) 2>conftest.er1
5974  ac_status=$?
5975  grep -v '^ *+' conftest.er1 >conftest.err
5976  rm -f conftest.er1
5977  cat conftest.err >&5
5978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979  (exit $ac_status); } &&
5980	 { ac_try='test -z "$ac_c_werror_flag"
5981			 || test ! -s conftest.err'
5982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983  (eval $ac_try) 2>&5
5984  ac_status=$?
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); }; } &&
5987	 { ac_try='test -s conftest.$ac_objext'
5988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989  (eval $ac_try) 2>&5
5990  ac_status=$?
5991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992  (exit $ac_status); }; }; then
5993  ac_cv_member_DIR_dd_fd=yes
5994else
5995  echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998ac_cv_member_DIR_dd_fd=no
5999fi
6000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001fi
6002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003fi
6004echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
6005echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
6006if test $ac_cv_member_DIR_dd_fd = yes; then
6007
6008cat >>confdefs.h <<_ACEOF
6009#define HAVE_DIR_DD_FD 1
6010_ACEOF
6011
6012
6013fi
6014echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
6015echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
6016if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
6017  echo $ECHO_N "(cached) $ECHO_C" >&6
6018else
6019  cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h.  */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h.  */
6025#include <sys/types.h>
6026#include <dirent.h>
6027
6028int
6029main ()
6030{
6031static struct dirent ac_aggr;
6032if (ac_aggr.d_namlen)
6033return 0;
6034  ;
6035  return 0;
6036}
6037_ACEOF
6038rm -f conftest.$ac_objext
6039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040  (eval $ac_compile) 2>conftest.er1
6041  ac_status=$?
6042  grep -v '^ *+' conftest.er1 >conftest.err
6043  rm -f conftest.er1
6044  cat conftest.err >&5
6045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046  (exit $ac_status); } &&
6047	 { ac_try='test -z "$ac_c_werror_flag"
6048			 || test ! -s conftest.err'
6049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050  (eval $ac_try) 2>&5
6051  ac_status=$?
6052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053  (exit $ac_status); }; } &&
6054	 { ac_try='test -s conftest.$ac_objext'
6055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056  (eval $ac_try) 2>&5
6057  ac_status=$?
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); }; }; then
6060  ac_cv_member_struct_dirent_d_namlen=yes
6061else
6062  echo "$as_me: failed program was:" >&5
6063sed 's/^/| /' conftest.$ac_ext >&5
6064
6065cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h.  */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h.  */
6071#include <sys/types.h>
6072#include <dirent.h>
6073
6074int
6075main ()
6076{
6077static struct dirent ac_aggr;
6078if (sizeof ac_aggr.d_namlen)
6079return 0;
6080  ;
6081  return 0;
6082}
6083_ACEOF
6084rm -f conftest.$ac_objext
6085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086  (eval $ac_compile) 2>conftest.er1
6087  ac_status=$?
6088  grep -v '^ *+' conftest.er1 >conftest.err
6089  rm -f conftest.er1
6090  cat conftest.err >&5
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); } &&
6093	 { ac_try='test -z "$ac_c_werror_flag"
6094			 || test ! -s conftest.err'
6095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096  (eval $ac_try) 2>&5
6097  ac_status=$?
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); }; } &&
6100	 { ac_try='test -s conftest.$ac_objext'
6101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102  (eval $ac_try) 2>&5
6103  ac_status=$?
6104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105  (exit $ac_status); }; }; then
6106  ac_cv_member_struct_dirent_d_namlen=yes
6107else
6108  echo "$as_me: failed program was:" >&5
6109sed 's/^/| /' conftest.$ac_ext >&5
6110
6111ac_cv_member_struct_dirent_d_namlen=no
6112fi
6113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114fi
6115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6116fi
6117echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
6118echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
6119if test $ac_cv_member_struct_dirent_d_namlen = yes; then
6120
6121cat >>confdefs.h <<_ACEOF
6122#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
6123_ACEOF
6124
6125
6126fi
6127
6128echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
6129echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
6130if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
6131  echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133  cat >conftest.$ac_ext <<_ACEOF
6134/* confdefs.h.  */
6135_ACEOF
6136cat confdefs.h >>conftest.$ac_ext
6137cat >>conftest.$ac_ext <<_ACEOF
6138/* end confdefs.h.  */
6139#include <sys/stat.h>
6140
6141int
6142main ()
6143{
6144static struct stat ac_aggr;
6145if (ac_aggr.st_flags)
6146return 0;
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>conftest.er1
6154  ac_status=$?
6155  grep -v '^ *+' conftest.er1 >conftest.err
6156  rm -f conftest.er1
6157  cat conftest.err >&5
6158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159  (exit $ac_status); } &&
6160	 { ac_try='test -z "$ac_c_werror_flag"
6161			 || test ! -s conftest.err'
6162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163  (eval $ac_try) 2>&5
6164  ac_status=$?
6165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); }; } &&
6167	 { ac_try='test -s conftest.$ac_objext'
6168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169  (eval $ac_try) 2>&5
6170  ac_status=$?
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); }; }; then
6173  ac_cv_member_struct_stat_st_flags=yes
6174else
6175  echo "$as_me: failed program was:" >&5
6176sed 's/^/| /' conftest.$ac_ext >&5
6177
6178cat >conftest.$ac_ext <<_ACEOF
6179/* confdefs.h.  */
6180_ACEOF
6181cat confdefs.h >>conftest.$ac_ext
6182cat >>conftest.$ac_ext <<_ACEOF
6183/* end confdefs.h.  */
6184#include <sys/stat.h>
6185
6186int
6187main ()
6188{
6189static struct stat ac_aggr;
6190if (sizeof ac_aggr.st_flags)
6191return 0;
6192  ;
6193  return 0;
6194}
6195_ACEOF
6196rm -f conftest.$ac_objext
6197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198  (eval $ac_compile) 2>conftest.er1
6199  ac_status=$?
6200  grep -v '^ *+' conftest.er1 >conftest.err
6201  rm -f conftest.er1
6202  cat conftest.err >&5
6203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); } &&
6205	 { ac_try='test -z "$ac_c_werror_flag"
6206			 || test ! -s conftest.err'
6207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208  (eval $ac_try) 2>&5
6209  ac_status=$?
6210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211  (exit $ac_status); }; } &&
6212	 { ac_try='test -s conftest.$ac_objext'
6213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214  (eval $ac_try) 2>&5
6215  ac_status=$?
6216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); }; }; then
6218  ac_cv_member_struct_stat_st_flags=yes
6219else
6220  echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223ac_cv_member_struct_stat_st_flags=no
6224fi
6225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226fi
6227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
6230echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
6231if test $ac_cv_member_struct_stat_st_flags = yes; then
6232
6233cat >>confdefs.h <<_ACEOF
6234#define HAVE_STRUCT_STAT_ST_FLAGS 1
6235_ACEOF
6236
6237
6238fi
6239echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
6240echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
6241if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
6242  echo $ECHO_N "(cached) $ECHO_C" >&6
6243else
6244  cat >conftest.$ac_ext <<_ACEOF
6245/* confdefs.h.  */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
6249/* end confdefs.h.  */
6250#include <sys/stat.h>
6251
6252int
6253main ()
6254{
6255static struct stat ac_aggr;
6256if (ac_aggr.st_gen)
6257return 0;
6258  ;
6259  return 0;
6260}
6261_ACEOF
6262rm -f conftest.$ac_objext
6263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264  (eval $ac_compile) 2>conftest.er1
6265  ac_status=$?
6266  grep -v '^ *+' conftest.er1 >conftest.err
6267  rm -f conftest.er1
6268  cat conftest.err >&5
6269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270  (exit $ac_status); } &&
6271	 { ac_try='test -z "$ac_c_werror_flag"
6272			 || test ! -s conftest.err'
6273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274  (eval $ac_try) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }; } &&
6278	 { ac_try='test -s conftest.$ac_objext'
6279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280  (eval $ac_try) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); }; }; then
6284  ac_cv_member_struct_stat_st_gen=yes
6285else
6286  echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
6289cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h.  */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h.  */
6295#include <sys/stat.h>
6296
6297int
6298main ()
6299{
6300static struct stat ac_aggr;
6301if (sizeof ac_aggr.st_gen)
6302return 0;
6303  ;
6304  return 0;
6305}
6306_ACEOF
6307rm -f conftest.$ac_objext
6308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309  (eval $ac_compile) 2>conftest.er1
6310  ac_status=$?
6311  grep -v '^ *+' conftest.er1 >conftest.err
6312  rm -f conftest.er1
6313  cat conftest.err >&5
6314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315  (exit $ac_status); } &&
6316	 { ac_try='test -z "$ac_c_werror_flag"
6317			 || test ! -s conftest.err'
6318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319  (eval $ac_try) 2>&5
6320  ac_status=$?
6321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322  (exit $ac_status); }; } &&
6323	 { ac_try='test -s conftest.$ac_objext'
6324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325  (eval $ac_try) 2>&5
6326  ac_status=$?
6327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328  (exit $ac_status); }; }; then
6329  ac_cv_member_struct_stat_st_gen=yes
6330else
6331  echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
6334ac_cv_member_struct_stat_st_gen=no
6335fi
6336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6339fi
6340echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
6341echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
6342if test $ac_cv_member_struct_stat_st_gen = yes; then
6343
6344cat >>confdefs.h <<_ACEOF
6345#define HAVE_STRUCT_STAT_ST_GEN 1
6346_ACEOF
6347
6348
6349fi
6350echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
6351echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
6352if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h.  */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h.  */
6361#include <sys/stat.h>
6362
6363int
6364main ()
6365{
6366static struct stat ac_aggr;
6367if (ac_aggr.st_birthtime)
6368return 0;
6369  ;
6370  return 0;
6371}
6372_ACEOF
6373rm -f conftest.$ac_objext
6374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375  (eval $ac_compile) 2>conftest.er1
6376  ac_status=$?
6377  grep -v '^ *+' conftest.er1 >conftest.err
6378  rm -f conftest.er1
6379  cat conftest.err >&5
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); } &&
6382	 { ac_try='test -z "$ac_c_werror_flag"
6383			 || test ! -s conftest.err'
6384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385  (eval $ac_try) 2>&5
6386  ac_status=$?
6387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388  (exit $ac_status); }; } &&
6389	 { ac_try='test -s conftest.$ac_objext'
6390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391  (eval $ac_try) 2>&5
6392  ac_status=$?
6393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394  (exit $ac_status); }; }; then
6395  ac_cv_member_struct_stat_st_birthtime=yes
6396else
6397  echo "$as_me: failed program was:" >&5
6398sed 's/^/| /' conftest.$ac_ext >&5
6399
6400cat >conftest.$ac_ext <<_ACEOF
6401/* confdefs.h.  */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h.  */
6406#include <sys/stat.h>
6407
6408int
6409main ()
6410{
6411static struct stat ac_aggr;
6412if (sizeof ac_aggr.st_birthtime)
6413return 0;
6414  ;
6415  return 0;
6416}
6417_ACEOF
6418rm -f conftest.$ac_objext
6419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420  (eval $ac_compile) 2>conftest.er1
6421  ac_status=$?
6422  grep -v '^ *+' conftest.er1 >conftest.err
6423  rm -f conftest.er1
6424  cat conftest.err >&5
6425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); } &&
6427	 { ac_try='test -z "$ac_c_werror_flag"
6428			 || test ! -s conftest.err'
6429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430  (eval $ac_try) 2>&5
6431  ac_status=$?
6432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433  (exit $ac_status); }; } &&
6434	 { ac_try='test -s conftest.$ac_objext'
6435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436  (eval $ac_try) 2>&5
6437  ac_status=$?
6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439  (exit $ac_status); }; }; then
6440  ac_cv_member_struct_stat_st_birthtime=yes
6441else
6442  echo "$as_me: failed program was:" >&5
6443sed 's/^/| /' conftest.$ac_ext >&5
6444
6445ac_cv_member_struct_stat_st_birthtime=no
6446fi
6447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448fi
6449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450fi
6451echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
6452echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
6453if test $ac_cv_member_struct_stat_st_birthtime = yes; then
6454
6455cat >>confdefs.h <<_ACEOF
6456#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
6457_ACEOF
6458
6459
6460fi
6461echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
6462echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6
6463if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
6464  echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466  cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h.  */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h.  */
6472#include <sys/stat.h>
6473
6474int
6475main ()
6476{
6477static struct stat ac_aggr;
6478if (ac_aggr.st_birthtimensec)
6479return 0;
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484rm -f conftest.$ac_objext
6485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486  (eval $ac_compile) 2>conftest.er1
6487  ac_status=$?
6488  grep -v '^ *+' conftest.er1 >conftest.err
6489  rm -f conftest.er1
6490  cat conftest.err >&5
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); } &&
6493	 { ac_try='test -z "$ac_c_werror_flag"
6494			 || test ! -s conftest.err'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; } &&
6500	 { ac_try='test -s conftest.$ac_objext'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; }; then
6506  ac_cv_member_struct_stat_st_birthtimensec=yes
6507else
6508  echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511cat >conftest.$ac_ext <<_ACEOF
6512/* confdefs.h.  */
6513_ACEOF
6514cat confdefs.h >>conftest.$ac_ext
6515cat >>conftest.$ac_ext <<_ACEOF
6516/* end confdefs.h.  */
6517#include <sys/stat.h>
6518
6519int
6520main ()
6521{
6522static struct stat ac_aggr;
6523if (sizeof ac_aggr.st_birthtimensec)
6524return 0;
6525  ;
6526  return 0;
6527}
6528_ACEOF
6529rm -f conftest.$ac_objext
6530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531  (eval $ac_compile) 2>conftest.er1
6532  ac_status=$?
6533  grep -v '^ *+' conftest.er1 >conftest.err
6534  rm -f conftest.er1
6535  cat conftest.err >&5
6536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); } &&
6538	 { ac_try='test -z "$ac_c_werror_flag"
6539			 || test ! -s conftest.err'
6540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541  (eval $ac_try) 2>&5
6542  ac_status=$?
6543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); }; } &&
6545	 { ac_try='test -s conftest.$ac_objext'
6546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547  (eval $ac_try) 2>&5
6548  ac_status=$?
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); }; }; then
6551  ac_cv_member_struct_stat_st_birthtimensec=yes
6552else
6553  echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
6555
6556ac_cv_member_struct_stat_st_birthtimensec=no
6557fi
6558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559fi
6560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6561fi
6562echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
6563echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6
6564if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
6565
6566cat >>confdefs.h <<_ACEOF
6567#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
6568_ACEOF
6569
6570
6571fi
6572echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
6573echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
6574if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
6575  echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577  cat >conftest.$ac_ext <<_ACEOF
6578/* confdefs.h.  */
6579_ACEOF
6580cat confdefs.h >>conftest.$ac_ext
6581cat >>conftest.$ac_ext <<_ACEOF
6582/* end confdefs.h.  */
6583#include <sys/stat.h>
6584
6585int
6586main ()
6587{
6588static struct stat ac_aggr;
6589if (ac_aggr.st_atim)
6590return 0;
6591  ;
6592  return 0;
6593}
6594_ACEOF
6595rm -f conftest.$ac_objext
6596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6597  (eval $ac_compile) 2>conftest.er1
6598  ac_status=$?
6599  grep -v '^ *+' conftest.er1 >conftest.err
6600  rm -f conftest.er1
6601  cat conftest.err >&5
6602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603  (exit $ac_status); } &&
6604	 { ac_try='test -z "$ac_c_werror_flag"
6605			 || test ! -s conftest.err'
6606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607  (eval $ac_try) 2>&5
6608  ac_status=$?
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); }; } &&
6611	 { ac_try='test -s conftest.$ac_objext'
6612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613  (eval $ac_try) 2>&5
6614  ac_status=$?
6615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); }; }; then
6617  ac_cv_member_struct_stat_st_atim=yes
6618else
6619  echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622cat >conftest.$ac_ext <<_ACEOF
6623/* confdefs.h.  */
6624_ACEOF
6625cat confdefs.h >>conftest.$ac_ext
6626cat >>conftest.$ac_ext <<_ACEOF
6627/* end confdefs.h.  */
6628#include <sys/stat.h>
6629
6630int
6631main ()
6632{
6633static struct stat ac_aggr;
6634if (sizeof ac_aggr.st_atim)
6635return 0;
6636  ;
6637  return 0;
6638}
6639_ACEOF
6640rm -f conftest.$ac_objext
6641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642  (eval $ac_compile) 2>conftest.er1
6643  ac_status=$?
6644  grep -v '^ *+' conftest.er1 >conftest.err
6645  rm -f conftest.er1
6646  cat conftest.err >&5
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); } &&
6649	 { ac_try='test -z "$ac_c_werror_flag"
6650			 || test ! -s conftest.err'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; } &&
6656	 { ac_try='test -s conftest.$ac_objext'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; }; then
6662  ac_cv_member_struct_stat_st_atim=yes
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667ac_cv_member_struct_stat_st_atim=no
6668fi
6669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670fi
6671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6672fi
6673echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
6674echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
6675if test $ac_cv_member_struct_stat_st_atim = yes; then
6676
6677cat >>confdefs.h <<_ACEOF
6678#define HAVE_STRUCT_STAT_ST_ATIM 1
6679_ACEOF
6680
6681
6682fi
6683echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
6684echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
6685if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
6686  echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688  cat >conftest.$ac_ext <<_ACEOF
6689/* confdefs.h.  */
6690_ACEOF
6691cat confdefs.h >>conftest.$ac_ext
6692cat >>conftest.$ac_ext <<_ACEOF
6693/* end confdefs.h.  */
6694#include <sys/stat.h>
6695
6696int
6697main ()
6698{
6699static struct stat ac_aggr;
6700if (ac_aggr.st_mtimensec)
6701return 0;
6702  ;
6703  return 0;
6704}
6705_ACEOF
6706rm -f conftest.$ac_objext
6707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708  (eval $ac_compile) 2>conftest.er1
6709  ac_status=$?
6710  grep -v '^ *+' conftest.er1 >conftest.err
6711  rm -f conftest.er1
6712  cat conftest.err >&5
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); } &&
6715	 { ac_try='test -z "$ac_c_werror_flag"
6716			 || test ! -s conftest.err'
6717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718  (eval $ac_try) 2>&5
6719  ac_status=$?
6720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721  (exit $ac_status); }; } &&
6722	 { ac_try='test -s conftest.$ac_objext'
6723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724  (eval $ac_try) 2>&5
6725  ac_status=$?
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); }; }; then
6728  ac_cv_member_struct_stat_st_mtimensec=yes
6729else
6730  echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
6732
6733cat >conftest.$ac_ext <<_ACEOF
6734/* confdefs.h.  */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h.  */
6739#include <sys/stat.h>
6740
6741int
6742main ()
6743{
6744static struct stat ac_aggr;
6745if (sizeof ac_aggr.st_mtimensec)
6746return 0;
6747  ;
6748  return 0;
6749}
6750_ACEOF
6751rm -f conftest.$ac_objext
6752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6753  (eval $ac_compile) 2>conftest.er1
6754  ac_status=$?
6755  grep -v '^ *+' conftest.er1 >conftest.err
6756  rm -f conftest.er1
6757  cat conftest.err >&5
6758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759  (exit $ac_status); } &&
6760	 { ac_try='test -z "$ac_c_werror_flag"
6761			 || test ! -s conftest.err'
6762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763  (eval $ac_try) 2>&5
6764  ac_status=$?
6765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); }; } &&
6767	 { ac_try='test -s conftest.$ac_objext'
6768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769  (eval $ac_try) 2>&5
6770  ac_status=$?
6771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772  (exit $ac_status); }; }; then
6773  ac_cv_member_struct_stat_st_mtimensec=yes
6774else
6775  echo "$as_me: failed program was:" >&5
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
6778ac_cv_member_struct_stat_st_mtimensec=no
6779fi
6780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6781fi
6782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6783fi
6784echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
6785echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
6786if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
6787
6788cat >>confdefs.h <<_ACEOF
6789#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
6790_ACEOF
6791
6792
6793fi
6794
6795echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5
6796echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
6797if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
6798  echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800  cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h.  */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h.  */
6806#include <sys/statvfs.h>
6807
6808int
6809main ()
6810{
6811static struct statvfs ac_aggr;
6812if (ac_aggr.f_iosize)
6813return 0;
6814  ;
6815  return 0;
6816}
6817_ACEOF
6818rm -f conftest.$ac_objext
6819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820  (eval $ac_compile) 2>conftest.er1
6821  ac_status=$?
6822  grep -v '^ *+' conftest.er1 >conftest.err
6823  rm -f conftest.er1
6824  cat conftest.err >&5
6825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826  (exit $ac_status); } &&
6827	 { ac_try='test -z "$ac_c_werror_flag"
6828			 || test ! -s conftest.err'
6829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830  (eval $ac_try) 2>&5
6831  ac_status=$?
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); }; } &&
6834	 { ac_try='test -s conftest.$ac_objext'
6835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836  (eval $ac_try) 2>&5
6837  ac_status=$?
6838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839  (exit $ac_status); }; }; then
6840  ac_cv_member_struct_statvfs_f_iosize=yes
6841else
6842  echo "$as_me: failed program was:" >&5
6843sed 's/^/| /' conftest.$ac_ext >&5
6844
6845cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851#include <sys/statvfs.h>
6852
6853int
6854main ()
6855{
6856static struct statvfs ac_aggr;
6857if (sizeof ac_aggr.f_iosize)
6858return 0;
6859  ;
6860  return 0;
6861}
6862_ACEOF
6863rm -f conftest.$ac_objext
6864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865  (eval $ac_compile) 2>conftest.er1
6866  ac_status=$?
6867  grep -v '^ *+' conftest.er1 >conftest.err
6868  rm -f conftest.er1
6869  cat conftest.err >&5
6870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871  (exit $ac_status); } &&
6872	 { ac_try='test -z "$ac_c_werror_flag"
6873			 || test ! -s conftest.err'
6874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875  (eval $ac_try) 2>&5
6876  ac_status=$?
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); }; } &&
6879	 { ac_try='test -s conftest.$ac_objext'
6880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881  (eval $ac_try) 2>&5
6882  ac_status=$?
6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); }; }; then
6885  ac_cv_member_struct_statvfs_f_iosize=yes
6886else
6887  echo "$as_me: failed program was:" >&5
6888sed 's/^/| /' conftest.$ac_ext >&5
6889
6890ac_cv_member_struct_statvfs_f_iosize=no
6891fi
6892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6893fi
6894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895fi
6896echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
6897echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
6898if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
6899
6900cat >>confdefs.h <<_ACEOF
6901#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
6902_ACEOF
6903
6904
6905fi
6906
6907
6908# Global variable decls.
6909echo "$as_me:$LINENO: checking whether optind is declared" >&5
6910echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
6911if test "${ac_cv_have_decl_optind+set}" = set; then
6912  echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914  cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h.  */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h.  */
6920
6921#include <stdio.h>
6922#include <stdlib.h>
6923#include <unistd.h>
6924
6925
6926int
6927main ()
6928{
6929#ifndef optind
6930  char *p = (char *) optind;
6931#endif
6932
6933  ;
6934  return 0;
6935}
6936_ACEOF
6937rm -f conftest.$ac_objext
6938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939  (eval $ac_compile) 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } &&
6946	 { ac_try='test -z "$ac_c_werror_flag"
6947			 || test ! -s conftest.err'
6948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949  (eval $ac_try) 2>&5
6950  ac_status=$?
6951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952  (exit $ac_status); }; } &&
6953	 { ac_try='test -s conftest.$ac_objext'
6954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955  (eval $ac_try) 2>&5
6956  ac_status=$?
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); }; }; then
6959  ac_cv_have_decl_optind=yes
6960else
6961  echo "$as_me: failed program was:" >&5
6962sed 's/^/| /' conftest.$ac_ext >&5
6963
6964ac_cv_have_decl_optind=no
6965fi
6966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6967fi
6968echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
6969echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
6970if test $ac_cv_have_decl_optind = yes; then
6971
6972cat >>confdefs.h <<_ACEOF
6973#define HAVE_DECL_OPTIND 1
6974_ACEOF
6975
6976
6977else
6978  cat >>confdefs.h <<_ACEOF
6979#define HAVE_DECL_OPTIND 0
6980_ACEOF
6981
6982
6983fi
6984echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6985echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
6986if test "${ac_cv_have_decl_optreset+set}" = set; then
6987  echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989  cat >conftest.$ac_ext <<_ACEOF
6990/* confdefs.h.  */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h.  */
6995
6996#include <stdio.h>
6997#include <stdlib.h>
6998#include <unistd.h>
6999
7000
7001int
7002main ()
7003{
7004#ifndef optreset
7005  char *p = (char *) optreset;
7006#endif
7007
7008  ;
7009  return 0;
7010}
7011_ACEOF
7012rm -f conftest.$ac_objext
7013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014  (eval $ac_compile) 2>conftest.er1
7015  ac_status=$?
7016  grep -v '^ *+' conftest.er1 >conftest.err
7017  rm -f conftest.er1
7018  cat conftest.err >&5
7019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020  (exit $ac_status); } &&
7021	 { ac_try='test -z "$ac_c_werror_flag"
7022			 || test ! -s conftest.err'
7023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024  (eval $ac_try) 2>&5
7025  ac_status=$?
7026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027  (exit $ac_status); }; } &&
7028	 { ac_try='test -s conftest.$ac_objext'
7029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030  (eval $ac_try) 2>&5
7031  ac_status=$?
7032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033  (exit $ac_status); }; }; then
7034  ac_cv_have_decl_optreset=yes
7035else
7036  echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039ac_cv_have_decl_optreset=no
7040fi
7041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042fi
7043echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7044echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
7045if test $ac_cv_have_decl_optreset = yes; then
7046
7047cat >>confdefs.h <<_ACEOF
7048#define HAVE_DECL_OPTRESET 1
7049_ACEOF
7050
7051
7052else
7053  cat >>confdefs.h <<_ACEOF
7054#define HAVE_DECL_OPTRESET 0
7055_ACEOF
7056
7057
7058fi
7059
7060
7061echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
7062echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
7063if test "${ac_cv_have_decl_sys_signame+set}" = set; then
7064  echo $ECHO_N "(cached) $ECHO_C" >&6
7065else
7066  cat >conftest.$ac_ext <<_ACEOF
7067/* confdefs.h.  */
7068_ACEOF
7069cat confdefs.h >>conftest.$ac_ext
7070cat >>conftest.$ac_ext <<_ACEOF
7071/* end confdefs.h.  */
7072#include <signal.h>
7073
7074int
7075main ()
7076{
7077#ifndef sys_signame
7078  char *p = (char *) sys_signame;
7079#endif
7080
7081  ;
7082  return 0;
7083}
7084_ACEOF
7085rm -f conftest.$ac_objext
7086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087  (eval $ac_compile) 2>conftest.er1
7088  ac_status=$?
7089  grep -v '^ *+' conftest.er1 >conftest.err
7090  rm -f conftest.er1
7091  cat conftest.err >&5
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); } &&
7094	 { ac_try='test -z "$ac_c_werror_flag"
7095			 || test ! -s conftest.err'
7096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097  (eval $ac_try) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); }; } &&
7101	 { ac_try='test -s conftest.$ac_objext'
7102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103  (eval $ac_try) 2>&5
7104  ac_status=$?
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); }; }; then
7107  ac_cv_have_decl_sys_signame=yes
7108else
7109  echo "$as_me: failed program was:" >&5
7110sed 's/^/| /' conftest.$ac_ext >&5
7111
7112ac_cv_have_decl_sys_signame=no
7113fi
7114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7115fi
7116echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
7117echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
7118if test $ac_cv_have_decl_sys_signame = yes; then
7119
7120cat >>confdefs.h <<_ACEOF
7121#define HAVE_DECL_SYS_SIGNAME 1
7122_ACEOF
7123
7124
7125else
7126  cat >>confdefs.h <<_ACEOF
7127#define HAVE_DECL_SYS_SIGNAME 0
7128_ACEOF
7129
7130
7131fi
7132
7133
7134
7135# Library functions (where a .h check isn't enough).
7136# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7137# for constant arguments.  Useless!
7138echo "$as_me:$LINENO: checking for working alloca.h" >&5
7139echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7140if test "${ac_cv_working_alloca_h+set}" = set; then
7141  echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143  cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h.  */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h.  */
7149#include <alloca.h>
7150int
7151main ()
7152{
7153char *p = (char *) alloca (2 * sizeof (int));
7154  ;
7155  return 0;
7156}
7157_ACEOF
7158rm -f conftest.$ac_objext conftest$ac_exeext
7159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7160  (eval $ac_link) 2>conftest.er1
7161  ac_status=$?
7162  grep -v '^ *+' conftest.er1 >conftest.err
7163  rm -f conftest.er1
7164  cat conftest.err >&5
7165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166  (exit $ac_status); } &&
7167	 { ac_try='test -z "$ac_c_werror_flag"
7168			 || test ! -s conftest.err'
7169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170  (eval $ac_try) 2>&5
7171  ac_status=$?
7172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173  (exit $ac_status); }; } &&
7174	 { ac_try='test -s conftest$ac_exeext'
7175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176  (eval $ac_try) 2>&5
7177  ac_status=$?
7178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179  (exit $ac_status); }; }; then
7180  ac_cv_working_alloca_h=yes
7181else
7182  echo "$as_me: failed program was:" >&5
7183sed 's/^/| /' conftest.$ac_ext >&5
7184
7185ac_cv_working_alloca_h=no
7186fi
7187rm -f conftest.err conftest.$ac_objext \
7188      conftest$ac_exeext conftest.$ac_ext
7189fi
7190echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7191echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7192if test $ac_cv_working_alloca_h = yes; then
7193
7194cat >>confdefs.h <<\_ACEOF
7195#define HAVE_ALLOCA_H 1
7196_ACEOF
7197
7198fi
7199
7200echo "$as_me:$LINENO: checking for alloca" >&5
7201echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7202if test "${ac_cv_func_alloca_works+set}" = set; then
7203  echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205  cat >conftest.$ac_ext <<_ACEOF
7206/* confdefs.h.  */
7207_ACEOF
7208cat confdefs.h >>conftest.$ac_ext
7209cat >>conftest.$ac_ext <<_ACEOF
7210/* end confdefs.h.  */
7211#ifdef __GNUC__
7212# define alloca __builtin_alloca
7213#else
7214# ifdef _MSC_VER
7215#  include <malloc.h>
7216#  define alloca _alloca
7217# else
7218#  if HAVE_ALLOCA_H
7219#   include <alloca.h>
7220#  else
7221#   ifdef _AIX
7222 #pragma alloca
7223#   else
7224#    ifndef alloca /* predefined by HP cc +Olibcalls */
7225char *alloca ();
7226#    endif
7227#   endif
7228#  endif
7229# endif
7230#endif
7231
7232int
7233main ()
7234{
7235char *p = (char *) alloca (1);
7236  ;
7237  return 0;
7238}
7239_ACEOF
7240rm -f conftest.$ac_objext conftest$ac_exeext
7241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242  (eval $ac_link) 2>conftest.er1
7243  ac_status=$?
7244  grep -v '^ *+' conftest.er1 >conftest.err
7245  rm -f conftest.er1
7246  cat conftest.err >&5
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); } &&
7249	 { ac_try='test -z "$ac_c_werror_flag"
7250			 || test ! -s conftest.err'
7251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252  (eval $ac_try) 2>&5
7253  ac_status=$?
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); }; } &&
7256	 { ac_try='test -s conftest$ac_exeext'
7257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258  (eval $ac_try) 2>&5
7259  ac_status=$?
7260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261  (exit $ac_status); }; }; then
7262  ac_cv_func_alloca_works=yes
7263else
7264  echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267ac_cv_func_alloca_works=no
7268fi
7269rm -f conftest.err conftest.$ac_objext \
7270      conftest$ac_exeext conftest.$ac_ext
7271fi
7272echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7273echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7274
7275if test $ac_cv_func_alloca_works = yes; then
7276
7277cat >>confdefs.h <<\_ACEOF
7278#define HAVE_ALLOCA 1
7279_ACEOF
7280
7281else
7282  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7283# that cause trouble.  Some versions do not even contain alloca or
7284# contain a buggy version.  If you still want to use their alloca,
7285# use ar to extract alloca.o from them instead of compiling alloca.c.
7286
7287ALLOCA=alloca.$ac_objext
7288
7289cat >>confdefs.h <<\_ACEOF
7290#define C_ALLOCA 1
7291_ACEOF
7292
7293
7294echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7295echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7296if test "${ac_cv_os_cray+set}" = set; then
7297  echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299  cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h.  */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
7304/* end confdefs.h.  */
7305#if defined(CRAY) && ! defined(CRAY2)
7306webecray
7307#else
7308wenotbecray
7309#endif
7310
7311_ACEOF
7312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313  $EGREP "webecray" >/dev/null 2>&1; then
7314  ac_cv_os_cray=yes
7315else
7316  ac_cv_os_cray=no
7317fi
7318rm -f conftest*
7319
7320fi
7321echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7322echo "${ECHO_T}$ac_cv_os_cray" >&6
7323if test $ac_cv_os_cray = yes; then
7324  for ac_func in _getb67 GETB67 getb67; do
7325    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7326echo "$as_me:$LINENO: checking for $ac_func" >&5
7327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7328if eval "test \"\${$as_ac_var+set}\" = set"; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331  cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h.  */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h.  */
7337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7338   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7339#define $ac_func innocuous_$ac_func
7340
7341/* System header to define __stub macros and hopefully few prototypes,
7342    which can conflict with char $ac_func (); below.
7343    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7344    <limits.h> exists even on freestanding compilers.  */
7345
7346#ifdef __STDC__
7347# include <limits.h>
7348#else
7349# include <assert.h>
7350#endif
7351
7352#undef $ac_func
7353
7354/* Override any gcc2 internal prototype to avoid an error.  */
7355#ifdef __cplusplus
7356extern "C"
7357{
7358#endif
7359/* We use char because int might match the return type of a gcc2
7360   builtin and then its argument prototype would still apply.  */
7361char $ac_func ();
7362/* The GNU C library defines this for functions which it implements
7363    to always fail with ENOSYS.  Some functions are actually named
7364    something starting with __ and the normal name is an alias.  */
7365#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7366choke me
7367#else
7368char (*f) () = $ac_func;
7369#endif
7370#ifdef __cplusplus
7371}
7372#endif
7373
7374int
7375main ()
7376{
7377return f != $ac_func;
7378  ;
7379  return 0;
7380}
7381_ACEOF
7382rm -f conftest.$ac_objext conftest$ac_exeext
7383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384  (eval $ac_link) 2>conftest.er1
7385  ac_status=$?
7386  grep -v '^ *+' conftest.er1 >conftest.err
7387  rm -f conftest.er1
7388  cat conftest.err >&5
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); } &&
7391	 { ac_try='test -z "$ac_c_werror_flag"
7392			 || test ! -s conftest.err'
7393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394  (eval $ac_try) 2>&5
7395  ac_status=$?
7396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397  (exit $ac_status); }; } &&
7398	 { ac_try='test -s conftest$ac_exeext'
7399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400  (eval $ac_try) 2>&5
7401  ac_status=$?
7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403  (exit $ac_status); }; }; then
7404  eval "$as_ac_var=yes"
7405else
7406  echo "$as_me: failed program was:" >&5
7407sed 's/^/| /' conftest.$ac_ext >&5
7408
7409eval "$as_ac_var=no"
7410fi
7411rm -f conftest.err conftest.$ac_objext \
7412      conftest$ac_exeext conftest.$ac_ext
7413fi
7414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7415echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7416if test `eval echo '${'$as_ac_var'}'` = yes; then
7417
7418cat >>confdefs.h <<_ACEOF
7419#define CRAY_STACKSEG_END $ac_func
7420_ACEOF
7421
7422    break
7423fi
7424
7425  done
7426fi
7427
7428echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7429echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7430if test "${ac_cv_c_stack_direction+set}" = set; then
7431  echo $ECHO_N "(cached) $ECHO_C" >&6
7432else
7433  if test "$cross_compiling" = yes; then
7434  ac_cv_c_stack_direction=0
7435else
7436  cat >conftest.$ac_ext <<_ACEOF
7437/* confdefs.h.  */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h.  */
7442int
7443find_stack_direction ()
7444{
7445  static char *addr = 0;
7446  auto char dummy;
7447  if (addr == 0)
7448    {
7449      addr = &dummy;
7450      return find_stack_direction ();
7451    }
7452  else
7453    return (&dummy > addr) ? 1 : -1;
7454}
7455
7456int
7457main ()
7458{
7459  exit (find_stack_direction () < 0);
7460}
7461_ACEOF
7462rm -f conftest$ac_exeext
7463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464  (eval $ac_link) 2>&5
7465  ac_status=$?
7466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469  (eval $ac_try) 2>&5
7470  ac_status=$?
7471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472  (exit $ac_status); }; }; then
7473  ac_cv_c_stack_direction=1
7474else
7475  echo "$as_me: program exited with status $ac_status" >&5
7476echo "$as_me: failed program was:" >&5
7477sed 's/^/| /' conftest.$ac_ext >&5
7478
7479( exit $ac_status )
7480ac_cv_c_stack_direction=-1
7481fi
7482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7483fi
7484fi
7485echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7486echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7487
7488cat >>confdefs.h <<_ACEOF
7489#define STACK_DIRECTION $ac_cv_c_stack_direction
7490_ACEOF
7491
7492
7493fi
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
7539	fgetln flock fparseln futimes getopt getopt_long group_from_gid \
7540	heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
7541	mkdtemp poll pread putc_unlocked pwcache_userdb pwrite random setenv \
7542	setgroupent setprogname setpassent snprintf strlcat strlcpy strsep \
7543	strsuftoll strtoll \
7544	user_from_uid vasprintf vasnprintf vsnprintf
7545do
7546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7547echo "$as_me:$LINENO: checking for $ac_func" >&5
7548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7549if eval "test \"\${$as_ac_var+set}\" = set"; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  cat >conftest.$ac_ext <<_ACEOF
7553/* confdefs.h.  */
7554_ACEOF
7555cat confdefs.h >>conftest.$ac_ext
7556cat >>conftest.$ac_ext <<_ACEOF
7557/* end confdefs.h.  */
7558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7559   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7560#define $ac_func innocuous_$ac_func
7561
7562/* System header to define __stub macros and hopefully few prototypes,
7563    which can conflict with char $ac_func (); below.
7564    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7565    <limits.h> exists even on freestanding compilers.  */
7566
7567#ifdef __STDC__
7568# include <limits.h>
7569#else
7570# include <assert.h>
7571#endif
7572
7573#undef $ac_func
7574
7575/* Override any gcc2 internal prototype to avoid an error.  */
7576#ifdef __cplusplus
7577extern "C"
7578{
7579#endif
7580/* We use char because int might match the return type of a gcc2
7581   builtin and then its argument prototype would still apply.  */
7582char $ac_func ();
7583/* The GNU C library defines this for functions which it implements
7584    to always fail with ENOSYS.  Some functions are actually named
7585    something starting with __ and the normal name is an alias.  */
7586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7587choke me
7588#else
7589char (*f) () = $ac_func;
7590#endif
7591#ifdef __cplusplus
7592}
7593#endif
7594
7595int
7596main ()
7597{
7598return f != $ac_func;
7599  ;
7600  return 0;
7601}
7602_ACEOF
7603rm -f conftest.$ac_objext conftest$ac_exeext
7604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605  (eval $ac_link) 2>conftest.er1
7606  ac_status=$?
7607  grep -v '^ *+' conftest.er1 >conftest.err
7608  rm -f conftest.er1
7609  cat conftest.err >&5
7610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611  (exit $ac_status); } &&
7612	 { ac_try='test -z "$ac_c_werror_flag"
7613			 || test ! -s conftest.err'
7614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615  (eval $ac_try) 2>&5
7616  ac_status=$?
7617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618  (exit $ac_status); }; } &&
7619	 { ac_try='test -s conftest$ac_exeext'
7620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621  (eval $ac_try) 2>&5
7622  ac_status=$?
7623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624  (exit $ac_status); }; }; then
7625  eval "$as_ac_var=yes"
7626else
7627  echo "$as_me: failed program was:" >&5
7628sed 's/^/| /' conftest.$ac_ext >&5
7629
7630eval "$as_ac_var=no"
7631fi
7632rm -f conftest.err conftest.$ac_objext \
7633      conftest$ac_exeext conftest.$ac_ext
7634fi
7635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7637if test `eval echo '${'$as_ac_var'}'` = yes; then
7638  cat >>confdefs.h <<_ACEOF
7639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7640_ACEOF
7641
7642fi
7643done
7644
7645
7646echo "$as_me:$LINENO: checking whether htobe16 is declared" >&5
7647echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6
7648if test "${ac_cv_have_decl_htobe16+set}" = set; then
7649  echo $ECHO_N "(cached) $ECHO_C" >&6
7650else
7651  cat >conftest.$ac_ext <<_ACEOF
7652/* confdefs.h.  */
7653_ACEOF
7654cat confdefs.h >>conftest.$ac_ext
7655cat >>conftest.$ac_ext <<_ACEOF
7656/* end confdefs.h.  */
7657
7658#include <sys/types.h>
7659
7660
7661int
7662main ()
7663{
7664#ifndef htobe16
7665  char *p = (char *) htobe16;
7666#endif
7667
7668  ;
7669  return 0;
7670}
7671_ACEOF
7672rm -f conftest.$ac_objext
7673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674  (eval $ac_compile) 2>conftest.er1
7675  ac_status=$?
7676  grep -v '^ *+' conftest.er1 >conftest.err
7677  rm -f conftest.er1
7678  cat conftest.err >&5
7679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680  (exit $ac_status); } &&
7681	 { ac_try='test -z "$ac_c_werror_flag"
7682			 || test ! -s conftest.err'
7683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684  (eval $ac_try) 2>&5
7685  ac_status=$?
7686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687  (exit $ac_status); }; } &&
7688	 { ac_try='test -s conftest.$ac_objext'
7689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690  (eval $ac_try) 2>&5
7691  ac_status=$?
7692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693  (exit $ac_status); }; }; then
7694  ac_cv_have_decl_htobe16=yes
7695else
7696  echo "$as_me: failed program was:" >&5
7697sed 's/^/| /' conftest.$ac_ext >&5
7698
7699ac_cv_have_decl_htobe16=no
7700fi
7701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7702fi
7703echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe16" >&5
7704echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6
7705if test $ac_cv_have_decl_htobe16 = yes; then
7706
7707cat >>confdefs.h <<_ACEOF
7708#define HAVE_DECL_HTOBE16 1
7709_ACEOF
7710
7711
7712else
7713  cat >>confdefs.h <<_ACEOF
7714#define HAVE_DECL_HTOBE16 0
7715_ACEOF
7716
7717
7718fi
7719echo "$as_me:$LINENO: checking whether htobe32 is declared" >&5
7720echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6
7721if test "${ac_cv_have_decl_htobe32+set}" = set; then
7722  echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724  cat >conftest.$ac_ext <<_ACEOF
7725/* confdefs.h.  */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
7729/* end confdefs.h.  */
7730
7731#include <sys/types.h>
7732
7733
7734int
7735main ()
7736{
7737#ifndef htobe32
7738  char *p = (char *) htobe32;
7739#endif
7740
7741  ;
7742  return 0;
7743}
7744_ACEOF
7745rm -f conftest.$ac_objext
7746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7747  (eval $ac_compile) 2>conftest.er1
7748  ac_status=$?
7749  grep -v '^ *+' conftest.er1 >conftest.err
7750  rm -f conftest.er1
7751  cat conftest.err >&5
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); } &&
7754	 { ac_try='test -z "$ac_c_werror_flag"
7755			 || test ! -s conftest.err'
7756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757  (eval $ac_try) 2>&5
7758  ac_status=$?
7759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760  (exit $ac_status); }; } &&
7761	 { ac_try='test -s conftest.$ac_objext'
7762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763  (eval $ac_try) 2>&5
7764  ac_status=$?
7765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); }; }; then
7767  ac_cv_have_decl_htobe32=yes
7768else
7769  echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772ac_cv_have_decl_htobe32=no
7773fi
7774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7775fi
7776echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe32" >&5
7777echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6
7778if test $ac_cv_have_decl_htobe32 = yes; then
7779
7780cat >>confdefs.h <<_ACEOF
7781#define HAVE_DECL_HTOBE32 1
7782_ACEOF
7783
7784
7785else
7786  cat >>confdefs.h <<_ACEOF
7787#define HAVE_DECL_HTOBE32 0
7788_ACEOF
7789
7790
7791fi
7792echo "$as_me:$LINENO: checking whether htobe64 is declared" >&5
7793echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6
7794if test "${ac_cv_have_decl_htobe64+set}" = set; then
7795  echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797  cat >conftest.$ac_ext <<_ACEOF
7798/* confdefs.h.  */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h.  */
7803
7804#include <sys/types.h>
7805
7806
7807int
7808main ()
7809{
7810#ifndef htobe64
7811  char *p = (char *) htobe64;
7812#endif
7813
7814  ;
7815  return 0;
7816}
7817_ACEOF
7818rm -f conftest.$ac_objext
7819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820  (eval $ac_compile) 2>conftest.er1
7821  ac_status=$?
7822  grep -v '^ *+' conftest.er1 >conftest.err
7823  rm -f conftest.er1
7824  cat conftest.err >&5
7825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826  (exit $ac_status); } &&
7827	 { ac_try='test -z "$ac_c_werror_flag"
7828			 || test ! -s conftest.err'
7829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830  (eval $ac_try) 2>&5
7831  ac_status=$?
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); }; } &&
7834	 { ac_try='test -s conftest.$ac_objext'
7835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836  (eval $ac_try) 2>&5
7837  ac_status=$?
7838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839  (exit $ac_status); }; }; then
7840  ac_cv_have_decl_htobe64=yes
7841else
7842  echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845ac_cv_have_decl_htobe64=no
7846fi
7847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7848fi
7849echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe64" >&5
7850echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6
7851if test $ac_cv_have_decl_htobe64 = yes; then
7852
7853cat >>confdefs.h <<_ACEOF
7854#define HAVE_DECL_HTOBE64 1
7855_ACEOF
7856
7857
7858else
7859  cat >>confdefs.h <<_ACEOF
7860#define HAVE_DECL_HTOBE64 0
7861_ACEOF
7862
7863
7864fi
7865echo "$as_me:$LINENO: checking whether htole16 is declared" >&5
7866echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6
7867if test "${ac_cv_have_decl_htole16+set}" = set; then
7868  echo $ECHO_N "(cached) $ECHO_C" >&6
7869else
7870  cat >conftest.$ac_ext <<_ACEOF
7871/* confdefs.h.  */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h.  */
7876
7877#include <sys/types.h>
7878
7879
7880int
7881main ()
7882{
7883#ifndef htole16
7884  char *p = (char *) htole16;
7885#endif
7886
7887  ;
7888  return 0;
7889}
7890_ACEOF
7891rm -f conftest.$ac_objext
7892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7893  (eval $ac_compile) 2>conftest.er1
7894  ac_status=$?
7895  grep -v '^ *+' conftest.er1 >conftest.err
7896  rm -f conftest.er1
7897  cat conftest.err >&5
7898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899  (exit $ac_status); } &&
7900	 { ac_try='test -z "$ac_c_werror_flag"
7901			 || test ! -s conftest.err'
7902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903  (eval $ac_try) 2>&5
7904  ac_status=$?
7905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906  (exit $ac_status); }; } &&
7907	 { ac_try='test -s conftest.$ac_objext'
7908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909  (eval $ac_try) 2>&5
7910  ac_status=$?
7911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912  (exit $ac_status); }; }; then
7913  ac_cv_have_decl_htole16=yes
7914else
7915  echo "$as_me: failed program was:" >&5
7916sed 's/^/| /' conftest.$ac_ext >&5
7917
7918ac_cv_have_decl_htole16=no
7919fi
7920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7921fi
7922echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole16" >&5
7923echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6
7924if test $ac_cv_have_decl_htole16 = yes; then
7925
7926cat >>confdefs.h <<_ACEOF
7927#define HAVE_DECL_HTOLE16 1
7928_ACEOF
7929
7930
7931else
7932  cat >>confdefs.h <<_ACEOF
7933#define HAVE_DECL_HTOLE16 0
7934_ACEOF
7935
7936
7937fi
7938echo "$as_me:$LINENO: checking whether htole32 is declared" >&5
7939echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6
7940if test "${ac_cv_have_decl_htole32+set}" = set; then
7941  echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943  cat >conftest.$ac_ext <<_ACEOF
7944/* confdefs.h.  */
7945_ACEOF
7946cat confdefs.h >>conftest.$ac_ext
7947cat >>conftest.$ac_ext <<_ACEOF
7948/* end confdefs.h.  */
7949
7950#include <sys/types.h>
7951
7952
7953int
7954main ()
7955{
7956#ifndef htole32
7957  char *p = (char *) htole32;
7958#endif
7959
7960  ;
7961  return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext
7965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7966  (eval $ac_compile) 2>conftest.er1
7967  ac_status=$?
7968  grep -v '^ *+' conftest.er1 >conftest.err
7969  rm -f conftest.er1
7970  cat conftest.err >&5
7971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972  (exit $ac_status); } &&
7973	 { ac_try='test -z "$ac_c_werror_flag"
7974			 || test ! -s conftest.err'
7975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976  (eval $ac_try) 2>&5
7977  ac_status=$?
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); }; } &&
7980	 { ac_try='test -s conftest.$ac_objext'
7981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982  (eval $ac_try) 2>&5
7983  ac_status=$?
7984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985  (exit $ac_status); }; }; then
7986  ac_cv_have_decl_htole32=yes
7987else
7988  echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991ac_cv_have_decl_htole32=no
7992fi
7993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7994fi
7995echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5
7996echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6
7997if test $ac_cv_have_decl_htole32 = yes; then
7998
7999cat >>confdefs.h <<_ACEOF
8000#define HAVE_DECL_HTOLE32 1
8001_ACEOF
8002
8003
8004else
8005  cat >>confdefs.h <<_ACEOF
8006#define HAVE_DECL_HTOLE32 0
8007_ACEOF
8008
8009
8010fi
8011echo "$as_me:$LINENO: checking whether htole64 is declared" >&5
8012echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6
8013if test "${ac_cv_have_decl_htole64+set}" = set; then
8014  echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016  cat >conftest.$ac_ext <<_ACEOF
8017/* confdefs.h.  */
8018_ACEOF
8019cat confdefs.h >>conftest.$ac_ext
8020cat >>conftest.$ac_ext <<_ACEOF
8021/* end confdefs.h.  */
8022
8023#include <sys/types.h>
8024
8025
8026int
8027main ()
8028{
8029#ifndef htole64
8030  char *p = (char *) htole64;
8031#endif
8032
8033  ;
8034  return 0;
8035}
8036_ACEOF
8037rm -f conftest.$ac_objext
8038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039  (eval $ac_compile) 2>conftest.er1
8040  ac_status=$?
8041  grep -v '^ *+' conftest.er1 >conftest.err
8042  rm -f conftest.er1
8043  cat conftest.err >&5
8044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045  (exit $ac_status); } &&
8046	 { ac_try='test -z "$ac_c_werror_flag"
8047			 || test ! -s conftest.err'
8048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049  (eval $ac_try) 2>&5
8050  ac_status=$?
8051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052  (exit $ac_status); }; } &&
8053	 { ac_try='test -s conftest.$ac_objext'
8054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055  (eval $ac_try) 2>&5
8056  ac_status=$?
8057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058  (exit $ac_status); }; }; then
8059  ac_cv_have_decl_htole64=yes
8060else
8061  echo "$as_me: failed program was:" >&5
8062sed 's/^/| /' conftest.$ac_ext >&5
8063
8064ac_cv_have_decl_htole64=no
8065fi
8066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8067fi
8068echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole64" >&5
8069echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6
8070if test $ac_cv_have_decl_htole64 = yes; then
8071
8072cat >>confdefs.h <<_ACEOF
8073#define HAVE_DECL_HTOLE64 1
8074_ACEOF
8075
8076
8077else
8078  cat >>confdefs.h <<_ACEOF
8079#define HAVE_DECL_HTOLE64 0
8080_ACEOF
8081
8082
8083fi
8084echo "$as_me:$LINENO: checking whether be16toh is declared" >&5
8085echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6
8086if test "${ac_cv_have_decl_be16toh+set}" = set; then
8087  echo $ECHO_N "(cached) $ECHO_C" >&6
8088else
8089  cat >conftest.$ac_ext <<_ACEOF
8090/* confdefs.h.  */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h.  */
8095
8096#include <sys/types.h>
8097
8098
8099int
8100main ()
8101{
8102#ifndef be16toh
8103  char *p = (char *) be16toh;
8104#endif
8105
8106  ;
8107  return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112  (eval $ac_compile) 2>conftest.er1
8113  ac_status=$?
8114  grep -v '^ *+' conftest.er1 >conftest.err
8115  rm -f conftest.er1
8116  cat conftest.err >&5
8117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118  (exit $ac_status); } &&
8119	 { ac_try='test -z "$ac_c_werror_flag"
8120			 || test ! -s conftest.err'
8121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122  (eval $ac_try) 2>&5
8123  ac_status=$?
8124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125  (exit $ac_status); }; } &&
8126	 { ac_try='test -s conftest.$ac_objext'
8127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128  (eval $ac_try) 2>&5
8129  ac_status=$?
8130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131  (exit $ac_status); }; }; then
8132  ac_cv_have_decl_be16toh=yes
8133else
8134  echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
8137ac_cv_have_decl_be16toh=no
8138fi
8139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8140fi
8141echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16toh" >&5
8142echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6
8143if test $ac_cv_have_decl_be16toh = yes; then
8144
8145cat >>confdefs.h <<_ACEOF
8146#define HAVE_DECL_BE16TOH 1
8147_ACEOF
8148
8149
8150else
8151  cat >>confdefs.h <<_ACEOF
8152#define HAVE_DECL_BE16TOH 0
8153_ACEOF
8154
8155
8156fi
8157echo "$as_me:$LINENO: checking whether be32toh is declared" >&5
8158echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6
8159if test "${ac_cv_have_decl_be32toh+set}" = set; then
8160  echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162  cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h.  */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h.  */
8168
8169#include <sys/types.h>
8170
8171
8172int
8173main ()
8174{
8175#ifndef be32toh
8176  char *p = (char *) be32toh;
8177#endif
8178
8179  ;
8180  return 0;
8181}
8182_ACEOF
8183rm -f conftest.$ac_objext
8184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185  (eval $ac_compile) 2>conftest.er1
8186  ac_status=$?
8187  grep -v '^ *+' conftest.er1 >conftest.err
8188  rm -f conftest.er1
8189  cat conftest.err >&5
8190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191  (exit $ac_status); } &&
8192	 { ac_try='test -z "$ac_c_werror_flag"
8193			 || test ! -s conftest.err'
8194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195  (eval $ac_try) 2>&5
8196  ac_status=$?
8197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198  (exit $ac_status); }; } &&
8199	 { ac_try='test -s conftest.$ac_objext'
8200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201  (eval $ac_try) 2>&5
8202  ac_status=$?
8203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204  (exit $ac_status); }; }; then
8205  ac_cv_have_decl_be32toh=yes
8206else
8207  echo "$as_me: failed program was:" >&5
8208sed 's/^/| /' conftest.$ac_ext >&5
8209
8210ac_cv_have_decl_be32toh=no
8211fi
8212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8213fi
8214echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32toh" >&5
8215echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6
8216if test $ac_cv_have_decl_be32toh = yes; then
8217
8218cat >>confdefs.h <<_ACEOF
8219#define HAVE_DECL_BE32TOH 1
8220_ACEOF
8221
8222
8223else
8224  cat >>confdefs.h <<_ACEOF
8225#define HAVE_DECL_BE32TOH 0
8226_ACEOF
8227
8228
8229fi
8230echo "$as_me:$LINENO: checking whether be64toh is declared" >&5
8231echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6
8232if test "${ac_cv_have_decl_be64toh+set}" = set; then
8233  echo $ECHO_N "(cached) $ECHO_C" >&6
8234else
8235  cat >conftest.$ac_ext <<_ACEOF
8236/* confdefs.h.  */
8237_ACEOF
8238cat confdefs.h >>conftest.$ac_ext
8239cat >>conftest.$ac_ext <<_ACEOF
8240/* end confdefs.h.  */
8241
8242#include <sys/types.h>
8243
8244
8245int
8246main ()
8247{
8248#ifndef be64toh
8249  char *p = (char *) be64toh;
8250#endif
8251
8252  ;
8253  return 0;
8254}
8255_ACEOF
8256rm -f conftest.$ac_objext
8257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258  (eval $ac_compile) 2>conftest.er1
8259  ac_status=$?
8260  grep -v '^ *+' conftest.er1 >conftest.err
8261  rm -f conftest.er1
8262  cat conftest.err >&5
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); } &&
8265	 { ac_try='test -z "$ac_c_werror_flag"
8266			 || test ! -s conftest.err'
8267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268  (eval $ac_try) 2>&5
8269  ac_status=$?
8270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271  (exit $ac_status); }; } &&
8272	 { ac_try='test -s conftest.$ac_objext'
8273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274  (eval $ac_try) 2>&5
8275  ac_status=$?
8276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277  (exit $ac_status); }; }; then
8278  ac_cv_have_decl_be64toh=yes
8279else
8280  echo "$as_me: failed program was:" >&5
8281sed 's/^/| /' conftest.$ac_ext >&5
8282
8283ac_cv_have_decl_be64toh=no
8284fi
8285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286fi
8287echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64toh" >&5
8288echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6
8289if test $ac_cv_have_decl_be64toh = yes; then
8290
8291cat >>confdefs.h <<_ACEOF
8292#define HAVE_DECL_BE64TOH 1
8293_ACEOF
8294
8295
8296else
8297  cat >>confdefs.h <<_ACEOF
8298#define HAVE_DECL_BE64TOH 0
8299_ACEOF
8300
8301
8302fi
8303echo "$as_me:$LINENO: checking whether le16toh is declared" >&5
8304echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6
8305if test "${ac_cv_have_decl_le16toh+set}" = set; then
8306  echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308  cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h.  */
8310_ACEOF
8311cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h.  */
8314
8315#include <sys/types.h>
8316
8317
8318int
8319main ()
8320{
8321#ifndef le16toh
8322  char *p = (char *) le16toh;
8323#endif
8324
8325  ;
8326  return 0;
8327}
8328_ACEOF
8329rm -f conftest.$ac_objext
8330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8331  (eval $ac_compile) 2>conftest.er1
8332  ac_status=$?
8333  grep -v '^ *+' conftest.er1 >conftest.err
8334  rm -f conftest.er1
8335  cat conftest.err >&5
8336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337  (exit $ac_status); } &&
8338	 { ac_try='test -z "$ac_c_werror_flag"
8339			 || test ! -s conftest.err'
8340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341  (eval $ac_try) 2>&5
8342  ac_status=$?
8343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344  (exit $ac_status); }; } &&
8345	 { ac_try='test -s conftest.$ac_objext'
8346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347  (eval $ac_try) 2>&5
8348  ac_status=$?
8349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350  (exit $ac_status); }; }; then
8351  ac_cv_have_decl_le16toh=yes
8352else
8353  echo "$as_me: failed program was:" >&5
8354sed 's/^/| /' conftest.$ac_ext >&5
8355
8356ac_cv_have_decl_le16toh=no
8357fi
8358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8359fi
8360echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16toh" >&5
8361echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6
8362if test $ac_cv_have_decl_le16toh = yes; then
8363
8364cat >>confdefs.h <<_ACEOF
8365#define HAVE_DECL_LE16TOH 1
8366_ACEOF
8367
8368
8369else
8370  cat >>confdefs.h <<_ACEOF
8371#define HAVE_DECL_LE16TOH 0
8372_ACEOF
8373
8374
8375fi
8376echo "$as_me:$LINENO: checking whether le32toh is declared" >&5
8377echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6
8378if test "${ac_cv_have_decl_le32toh+set}" = set; then
8379  echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381  cat >conftest.$ac_ext <<_ACEOF
8382/* confdefs.h.  */
8383_ACEOF
8384cat confdefs.h >>conftest.$ac_ext
8385cat >>conftest.$ac_ext <<_ACEOF
8386/* end confdefs.h.  */
8387
8388#include <sys/types.h>
8389
8390
8391int
8392main ()
8393{
8394#ifndef le32toh
8395  char *p = (char *) le32toh;
8396#endif
8397
8398  ;
8399  return 0;
8400}
8401_ACEOF
8402rm -f conftest.$ac_objext
8403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8404  (eval $ac_compile) 2>conftest.er1
8405  ac_status=$?
8406  grep -v '^ *+' conftest.er1 >conftest.err
8407  rm -f conftest.er1
8408  cat conftest.err >&5
8409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410  (exit $ac_status); } &&
8411	 { ac_try='test -z "$ac_c_werror_flag"
8412			 || test ! -s conftest.err'
8413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414  (eval $ac_try) 2>&5
8415  ac_status=$?
8416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417  (exit $ac_status); }; } &&
8418	 { ac_try='test -s conftest.$ac_objext'
8419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420  (eval $ac_try) 2>&5
8421  ac_status=$?
8422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423  (exit $ac_status); }; }; then
8424  ac_cv_have_decl_le32toh=yes
8425else
8426  echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429ac_cv_have_decl_le32toh=no
8430fi
8431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8432fi
8433echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32toh" >&5
8434echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6
8435if test $ac_cv_have_decl_le32toh = yes; then
8436
8437cat >>confdefs.h <<_ACEOF
8438#define HAVE_DECL_LE32TOH 1
8439_ACEOF
8440
8441
8442else
8443  cat >>confdefs.h <<_ACEOF
8444#define HAVE_DECL_LE32TOH 0
8445_ACEOF
8446
8447
8448fi
8449echo "$as_me:$LINENO: checking whether le64toh is declared" >&5
8450echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6
8451if test "${ac_cv_have_decl_le64toh+set}" = set; then
8452  echo $ECHO_N "(cached) $ECHO_C" >&6
8453else
8454  cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h.  */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h.  */
8460
8461#include <sys/types.h>
8462
8463
8464int
8465main ()
8466{
8467#ifndef le64toh
8468  char *p = (char *) le64toh;
8469#endif
8470
8471  ;
8472  return 0;
8473}
8474_ACEOF
8475rm -f conftest.$ac_objext
8476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8477  (eval $ac_compile) 2>conftest.er1
8478  ac_status=$?
8479  grep -v '^ *+' conftest.er1 >conftest.err
8480  rm -f conftest.er1
8481  cat conftest.err >&5
8482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); } &&
8484	 { ac_try='test -z "$ac_c_werror_flag"
8485			 || test ! -s conftest.err'
8486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487  (eval $ac_try) 2>&5
8488  ac_status=$?
8489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490  (exit $ac_status); }; } &&
8491	 { ac_try='test -s conftest.$ac_objext'
8492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493  (eval $ac_try) 2>&5
8494  ac_status=$?
8495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496  (exit $ac_status); }; }; then
8497  ac_cv_have_decl_le64toh=yes
8498else
8499  echo "$as_me: failed program was:" >&5
8500sed 's/^/| /' conftest.$ac_ext >&5
8501
8502ac_cv_have_decl_le64toh=no
8503fi
8504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8505fi
8506echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64toh" >&5
8507echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6
8508if test $ac_cv_have_decl_le64toh = yes; then
8509
8510cat >>confdefs.h <<_ACEOF
8511#define HAVE_DECL_LE64TOH 1
8512_ACEOF
8513
8514
8515else
8516  cat >>confdefs.h <<_ACEOF
8517#define HAVE_DECL_LE64TOH 0
8518_ACEOF
8519
8520
8521fi
8522
8523
8524
8525
8526
8527
8528for ac_func in bswap16 bswap32 bswap64
8529do
8530as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8531echo "$as_me:$LINENO: checking for $ac_func" >&5
8532echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8533if eval "test \"\${$as_ac_var+set}\" = set"; then
8534  echo $ECHO_N "(cached) $ECHO_C" >&6
8535else
8536  cat >conftest.$ac_ext <<_ACEOF
8537/* confdefs.h.  */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h.  */
8542/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8543   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8544#define $ac_func innocuous_$ac_func
8545
8546/* System header to define __stub macros and hopefully few prototypes,
8547    which can conflict with char $ac_func (); below.
8548    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8549    <limits.h> exists even on freestanding compilers.  */
8550
8551#ifdef __STDC__
8552# include <limits.h>
8553#else
8554# include <assert.h>
8555#endif
8556
8557#undef $ac_func
8558
8559/* Override any gcc2 internal prototype to avoid an error.  */
8560#ifdef __cplusplus
8561extern "C"
8562{
8563#endif
8564/* We use char because int might match the return type of a gcc2
8565   builtin and then its argument prototype would still apply.  */
8566char $ac_func ();
8567/* The GNU C library defines this for functions which it implements
8568    to always fail with ENOSYS.  Some functions are actually named
8569    something starting with __ and the normal name is an alias.  */
8570#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8571choke me
8572#else
8573char (*f) () = $ac_func;
8574#endif
8575#ifdef __cplusplus
8576}
8577#endif
8578
8579int
8580main ()
8581{
8582return f != $ac_func;
8583  ;
8584  return 0;
8585}
8586_ACEOF
8587rm -f conftest.$ac_objext conftest$ac_exeext
8588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8589  (eval $ac_link) 2>conftest.er1
8590  ac_status=$?
8591  grep -v '^ *+' conftest.er1 >conftest.err
8592  rm -f conftest.er1
8593  cat conftest.err >&5
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); } &&
8596	 { ac_try='test -z "$ac_c_werror_flag"
8597			 || test ! -s conftest.err'
8598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599  (eval $ac_try) 2>&5
8600  ac_status=$?
8601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602  (exit $ac_status); }; } &&
8603	 { ac_try='test -s conftest$ac_exeext'
8604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605  (eval $ac_try) 2>&5
8606  ac_status=$?
8607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608  (exit $ac_status); }; }; then
8609  eval "$as_ac_var=yes"
8610else
8611  echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614eval "$as_ac_var=no"
8615fi
8616rm -f conftest.err conftest.$ac_objext \
8617      conftest$ac_exeext conftest.$ac_ext
8618fi
8619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8620echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8621if test `eval echo '${'$as_ac_var'}'` = yes; then
8622  cat >>confdefs.h <<_ACEOF
8623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8624_ACEOF
8625
8626fi
8627done
8628
8629
8630
8631for ac_func in fstatvfs
8632do
8633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8634echo "$as_me:$LINENO: checking for $ac_func" >&5
8635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8636if eval "test \"\${$as_ac_var+set}\" = set"; then
8637  echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639  cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h.  */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h.  */
8645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8646   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8647#define $ac_func innocuous_$ac_func
8648
8649/* System header to define __stub macros and hopefully few prototypes,
8650    which can conflict with char $ac_func (); below.
8651    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652    <limits.h> exists even on freestanding compilers.  */
8653
8654#ifdef __STDC__
8655# include <limits.h>
8656#else
8657# include <assert.h>
8658#endif
8659
8660#undef $ac_func
8661
8662/* Override any gcc2 internal prototype to avoid an error.  */
8663#ifdef __cplusplus
8664extern "C"
8665{
8666#endif
8667/* We use char because int might match the return type of a gcc2
8668   builtin and then its argument prototype would still apply.  */
8669char $ac_func ();
8670/* The GNU C library defines this for functions which it implements
8671    to always fail with ENOSYS.  Some functions are actually named
8672    something starting with __ and the normal name is an alias.  */
8673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8674choke me
8675#else
8676char (*f) () = $ac_func;
8677#endif
8678#ifdef __cplusplus
8679}
8680#endif
8681
8682int
8683main ()
8684{
8685return f != $ac_func;
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692  (eval $ac_link) 2>conftest.er1
8693  ac_status=$?
8694  grep -v '^ *+' conftest.er1 >conftest.err
8695  rm -f conftest.er1
8696  cat conftest.err >&5
8697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698  (exit $ac_status); } &&
8699	 { ac_try='test -z "$ac_c_werror_flag"
8700			 || test ! -s conftest.err'
8701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702  (eval $ac_try) 2>&5
8703  ac_status=$?
8704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705  (exit $ac_status); }; } &&
8706	 { ac_try='test -s conftest$ac_exeext'
8707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708  (eval $ac_try) 2>&5
8709  ac_status=$?
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); }; }; then
8712  eval "$as_ac_var=yes"
8713else
8714  echo "$as_me: failed program was:" >&5
8715sed 's/^/| /' conftest.$ac_ext >&5
8716
8717eval "$as_ac_var=no"
8718fi
8719rm -f conftest.err conftest.$ac_objext \
8720      conftest$ac_exeext conftest.$ac_ext
8721fi
8722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8724if test `eval echo '${'$as_ac_var'}'` = yes; then
8725  cat >>confdefs.h <<_ACEOF
8726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8727_ACEOF
8728
8729fi
8730done
8731
8732
8733echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
8734echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
8735if test "${ac_cv_have_decl_setgroupent+set}" = set; then
8736  echo $ECHO_N "(cached) $ECHO_C" >&6
8737else
8738  cat >conftest.$ac_ext <<_ACEOF
8739/* confdefs.h.  */
8740_ACEOF
8741cat confdefs.h >>conftest.$ac_ext
8742cat >>conftest.$ac_ext <<_ACEOF
8743/* end confdefs.h.  */
8744
8745#include <sys/types.h>
8746#include <grp.h>
8747#include <pwd.h>
8748
8749
8750int
8751main ()
8752{
8753#ifndef setgroupent
8754  char *p = (char *) setgroupent;
8755#endif
8756
8757  ;
8758  return 0;
8759}
8760_ACEOF
8761rm -f conftest.$ac_objext
8762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763  (eval $ac_compile) 2>conftest.er1
8764  ac_status=$?
8765  grep -v '^ *+' conftest.er1 >conftest.err
8766  rm -f conftest.er1
8767  cat conftest.err >&5
8768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769  (exit $ac_status); } &&
8770	 { ac_try='test -z "$ac_c_werror_flag"
8771			 || test ! -s conftest.err'
8772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773  (eval $ac_try) 2>&5
8774  ac_status=$?
8775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776  (exit $ac_status); }; } &&
8777	 { ac_try='test -s conftest.$ac_objext'
8778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779  (eval $ac_try) 2>&5
8780  ac_status=$?
8781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782  (exit $ac_status); }; }; then
8783  ac_cv_have_decl_setgroupent=yes
8784else
8785  echo "$as_me: failed program was:" >&5
8786sed 's/^/| /' conftest.$ac_ext >&5
8787
8788ac_cv_have_decl_setgroupent=no
8789fi
8790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791fi
8792echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
8793echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
8794if test $ac_cv_have_decl_setgroupent = yes; then
8795
8796cat >>confdefs.h <<_ACEOF
8797#define HAVE_DECL_SETGROUPENT 1
8798_ACEOF
8799
8800
8801else
8802  cat >>confdefs.h <<_ACEOF
8803#define HAVE_DECL_SETGROUPENT 0
8804_ACEOF
8805
8806
8807fi
8808echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
8809echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
8810if test "${ac_cv_have_decl_setpassent+set}" = set; then
8811  echo $ECHO_N "(cached) $ECHO_C" >&6
8812else
8813  cat >conftest.$ac_ext <<_ACEOF
8814/* confdefs.h.  */
8815_ACEOF
8816cat confdefs.h >>conftest.$ac_ext
8817cat >>conftest.$ac_ext <<_ACEOF
8818/* end confdefs.h.  */
8819
8820#include <sys/types.h>
8821#include <grp.h>
8822#include <pwd.h>
8823
8824
8825int
8826main ()
8827{
8828#ifndef setpassent
8829  char *p = (char *) setpassent;
8830#endif
8831
8832  ;
8833  return 0;
8834}
8835_ACEOF
8836rm -f conftest.$ac_objext
8837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838  (eval $ac_compile) 2>conftest.er1
8839  ac_status=$?
8840  grep -v '^ *+' conftest.er1 >conftest.err
8841  rm -f conftest.er1
8842  cat conftest.err >&5
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); } &&
8845	 { ac_try='test -z "$ac_c_werror_flag"
8846			 || test ! -s conftest.err'
8847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848  (eval $ac_try) 2>&5
8849  ac_status=$?
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); }; } &&
8852	 { ac_try='test -s conftest.$ac_objext'
8853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854  (eval $ac_try) 2>&5
8855  ac_status=$?
8856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857  (exit $ac_status); }; }; then
8858  ac_cv_have_decl_setpassent=yes
8859else
8860  echo "$as_me: failed program was:" >&5
8861sed 's/^/| /' conftest.$ac_ext >&5
8862
8863ac_cv_have_decl_setpassent=no
8864fi
8865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8866fi
8867echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
8868echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
8869if test $ac_cv_have_decl_setpassent = yes; then
8870
8871cat >>confdefs.h <<_ACEOF
8872#define HAVE_DECL_SETPASSENT 1
8873_ACEOF
8874
8875
8876else
8877  cat >>confdefs.h <<_ACEOF
8878#define HAVE_DECL_SETPASSENT 0
8879_ACEOF
8880
8881
8882fi
8883
8884
8885
8886# regcomp() and regexec() are also names of functions in the old V8
8887# regexp package.  To avoid them, we need to find out who has regfree().
8888
8889
8890echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
8891echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
8892if test "${ac_cv_lib_regex_regfree+set}" = set; then
8893  echo $ECHO_N "(cached) $ECHO_C" >&6
8894else
8895  ac_check_lib_save_LIBS=$LIBS
8896LIBS="-lregex  $LIBS"
8897cat >conftest.$ac_ext <<_ACEOF
8898/* confdefs.h.  */
8899_ACEOF
8900cat confdefs.h >>conftest.$ac_ext
8901cat >>conftest.$ac_ext <<_ACEOF
8902/* end confdefs.h.  */
8903
8904/* Override any gcc2 internal prototype to avoid an error.  */
8905#ifdef __cplusplus
8906extern "C"
8907#endif
8908/* We use char because int might match the return type of a gcc2
8909   builtin and then its argument prototype would still apply.  */
8910char regfree ();
8911int
8912main ()
8913{
8914regfree ();
8915  ;
8916  return 0;
8917}
8918_ACEOF
8919rm -f conftest.$ac_objext conftest$ac_exeext
8920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921  (eval $ac_link) 2>conftest.er1
8922  ac_status=$?
8923  grep -v '^ *+' conftest.er1 >conftest.err
8924  rm -f conftest.er1
8925  cat conftest.err >&5
8926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927  (exit $ac_status); } &&
8928	 { ac_try='test -z "$ac_c_werror_flag"
8929			 || test ! -s conftest.err'
8930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931  (eval $ac_try) 2>&5
8932  ac_status=$?
8933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); }; } &&
8935	 { ac_try='test -s conftest$ac_exeext'
8936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937  (eval $ac_try) 2>&5
8938  ac_status=$?
8939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940  (exit $ac_status); }; }; then
8941  ac_cv_lib_regex_regfree=yes
8942else
8943  echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946ac_cv_lib_regex_regfree=no
8947fi
8948rm -f conftest.err conftest.$ac_objext \
8949      conftest$ac_exeext conftest.$ac_ext
8950LIBS=$ac_check_lib_save_LIBS
8951fi
8952echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
8953echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
8954if test $ac_cv_lib_regex_regfree = yes; then
8955  cat >>confdefs.h <<_ACEOF
8956#define HAVE_LIBREGEX 1
8957_ACEOF
8958
8959  LIBS="-lregex $LIBS"
8960
8961fi
8962
8963echo "$as_me:$LINENO: checking for library containing regfree" >&5
8964echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
8965if test "${ac_cv_search_regfree+set}" = set; then
8966  echo $ECHO_N "(cached) $ECHO_C" >&6
8967else
8968  ac_func_search_save_LIBS=$LIBS
8969ac_cv_search_regfree=no
8970cat >conftest.$ac_ext <<_ACEOF
8971/* confdefs.h.  */
8972_ACEOF
8973cat confdefs.h >>conftest.$ac_ext
8974cat >>conftest.$ac_ext <<_ACEOF
8975/* end confdefs.h.  */
8976
8977/* Override any gcc2 internal prototype to avoid an error.  */
8978#ifdef __cplusplus
8979extern "C"
8980#endif
8981/* We use char because int might match the return type of a gcc2
8982   builtin and then its argument prototype would still apply.  */
8983char regfree ();
8984int
8985main ()
8986{
8987regfree ();
8988  ;
8989  return 0;
8990}
8991_ACEOF
8992rm -f conftest.$ac_objext conftest$ac_exeext
8993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994  (eval $ac_link) 2>conftest.er1
8995  ac_status=$?
8996  grep -v '^ *+' conftest.er1 >conftest.err
8997  rm -f conftest.er1
8998  cat conftest.err >&5
8999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000  (exit $ac_status); } &&
9001	 { ac_try='test -z "$ac_c_werror_flag"
9002			 || test ! -s conftest.err'
9003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004  (eval $ac_try) 2>&5
9005  ac_status=$?
9006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007  (exit $ac_status); }; } &&
9008	 { ac_try='test -s conftest$ac_exeext'
9009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010  (eval $ac_try) 2>&5
9011  ac_status=$?
9012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013  (exit $ac_status); }; }; then
9014  ac_cv_search_regfree="none required"
9015else
9016  echo "$as_me: failed program was:" >&5
9017sed 's/^/| /' conftest.$ac_ext >&5
9018
9019fi
9020rm -f conftest.err conftest.$ac_objext \
9021      conftest$ac_exeext conftest.$ac_ext
9022if test "$ac_cv_search_regfree" = no; then
9023  for ac_lib in rx posix; do
9024    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9025    cat >conftest.$ac_ext <<_ACEOF
9026/* confdefs.h.  */
9027_ACEOF
9028cat confdefs.h >>conftest.$ac_ext
9029cat >>conftest.$ac_ext <<_ACEOF
9030/* end confdefs.h.  */
9031
9032/* Override any gcc2 internal prototype to avoid an error.  */
9033#ifdef __cplusplus
9034extern "C"
9035#endif
9036/* We use char because int might match the return type of a gcc2
9037   builtin and then its argument prototype would still apply.  */
9038char regfree ();
9039int
9040main ()
9041{
9042regfree ();
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047rm -f conftest.$ac_objext conftest$ac_exeext
9048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049  (eval $ac_link) 2>conftest.er1
9050  ac_status=$?
9051  grep -v '^ *+' conftest.er1 >conftest.err
9052  rm -f conftest.er1
9053  cat conftest.err >&5
9054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055  (exit $ac_status); } &&
9056	 { ac_try='test -z "$ac_c_werror_flag"
9057			 || test ! -s conftest.err'
9058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059  (eval $ac_try) 2>&5
9060  ac_status=$?
9061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062  (exit $ac_status); }; } &&
9063	 { ac_try='test -s conftest$ac_exeext'
9064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065  (eval $ac_try) 2>&5
9066  ac_status=$?
9067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068  (exit $ac_status); }; }; then
9069  ac_cv_search_regfree="-l$ac_lib"
9070break
9071else
9072  echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
9075fi
9076rm -f conftest.err conftest.$ac_objext \
9077      conftest$ac_exeext conftest.$ac_ext
9078  done
9079fi
9080LIBS=$ac_func_search_save_LIBS
9081fi
9082echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
9083echo "${ECHO_T}$ac_cv_search_regfree" >&6
9084if test "$ac_cv_search_regfree" != no; then
9085  test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9086
9087fi
9088
9089
9090cat >confcache <<\_ACEOF
9091# This file is a shell script that caches the results of configure
9092# tests run on this system so they can be shared between configure
9093# scripts and configure runs, see configure's option --config-cache.
9094# It is not useful on other systems.  If it contains results you don't
9095# want to keep, you may remove or edit it.
9096#
9097# config.status only pays attention to the cache file if you give it
9098# the --recheck option to rerun configure.
9099#
9100# `ac_cv_env_foo' variables (set or unset) will be overridden when
9101# loading this file, other *unset* `ac_cv_foo' will be assigned the
9102# following values.
9103
9104_ACEOF
9105
9106# The following way of writing the cache mishandles newlines in values,
9107# but we know of no workaround that is simple, portable, and efficient.
9108# So, don't put newlines in cache variables' values.
9109# Ultrix sh set writes to stderr and can't be redirected directly,
9110# and sets the high bit in the cache file unless we assign to the vars.
9111{
9112  (set) 2>&1 |
9113    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9114    *ac_space=\ *)
9115      # `set' does not quote correctly, so add quotes (double-quote
9116      # substitution turns \\\\ into \\, and sed turns \\ into \).
9117      sed -n \
9118	"s/'/'\\\\''/g;
9119	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9120      ;;
9121    *)
9122      # `set' quotes correctly as required by POSIX, so do not add quotes.
9123      sed -n \
9124	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9125      ;;
9126    esac;
9127} |
9128  sed '
9129     t clear
9130     : clear
9131     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9132     t end
9133     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9134     : end' >>confcache
9135if diff $cache_file confcache >/dev/null 2>&1; then :; else
9136  if test -w $cache_file; then
9137    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9138    cat confcache >$cache_file
9139  else
9140    echo "not updating unwritable cache $cache_file"
9141  fi
9142fi
9143rm -f confcache
9144
9145test "x$prefix" = xNONE && prefix=$ac_default_prefix
9146# Let make expand exec_prefix.
9147test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9148
9149# VPATH may cause trouble with some makes, so we remove $(srcdir),
9150# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9151# trailing colons and then remove the whole line if VPATH becomes empty
9152# (actually we leave an empty line to preserve line numbers).
9153if test "x$srcdir" = x.; then
9154  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9155s/:*\$(srcdir):*/:/;
9156s/:*\${srcdir}:*/:/;
9157s/:*@srcdir@:*/:/;
9158s/^\([^=]*=[	 ]*\):*/\1/;
9159s/:*$//;
9160s/^[^=]*=[	 ]*$//;
9161}'
9162fi
9163
9164DEFS=-DHAVE_CONFIG_H
9165
9166ac_libobjs=
9167ac_ltlibobjs=
9168for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9169  # 1. Remove the extension, and $U if already installed.
9170  ac_i=`echo "$ac_i" |
9171	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9172  # 2. Add them.
9173  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9174  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9175done
9176LIBOBJS=$ac_libobjs
9177
9178LTLIBOBJS=$ac_ltlibobjs
9179
9180
9181
9182: ${CONFIG_STATUS=./config.status}
9183ac_clean_files_save=$ac_clean_files
9184ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9185{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9186echo "$as_me: creating $CONFIG_STATUS" >&6;}
9187cat >$CONFIG_STATUS <<_ACEOF
9188#! $SHELL
9189# Generated by $as_me.
9190# Run this file to recreate the current configuration.
9191# Compiler output produced by configure, useful for debugging
9192# configure, is in config.log if it exists.
9193
9194debug=false
9195ac_cs_recheck=false
9196ac_cs_silent=false
9197SHELL=\${CONFIG_SHELL-$SHELL}
9198_ACEOF
9199
9200cat >>$CONFIG_STATUS <<\_ACEOF
9201## --------------------- ##
9202## M4sh Initialization.  ##
9203## --------------------- ##
9204
9205# Be Bourne compatible
9206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9207  emulate sh
9208  NULLCMD=:
9209  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9210  # is contrary to our usage.  Disable this feature.
9211  alias -g '${1+"$@"}'='"$@"'
9212elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9213  set -o posix
9214fi
9215DUALCASE=1; export DUALCASE # for MKS sh
9216
9217# Support unset when possible.
9218if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9219  as_unset=unset
9220else
9221  as_unset=false
9222fi
9223
9224
9225# Work around bugs in pre-3.0 UWIN ksh.
9226$as_unset ENV MAIL MAILPATH
9227PS1='$ '
9228PS2='> '
9229PS4='+ '
9230
9231# NLS nuisances.
9232for as_var in \
9233  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9234  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9235  LC_TELEPHONE LC_TIME
9236do
9237  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9238    eval $as_var=C; export $as_var
9239  else
9240    $as_unset $as_var
9241  fi
9242done
9243
9244# Required to use basename.
9245if expr a : '\(a\)' >/dev/null 2>&1; then
9246  as_expr=expr
9247else
9248  as_expr=false
9249fi
9250
9251if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9252  as_basename=basename
9253else
9254  as_basename=false
9255fi
9256
9257
9258# Name of the executable.
9259as_me=`$as_basename "$0" ||
9260$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9261	 X"$0" : 'X\(//\)$' \| \
9262	 X"$0" : 'X\(/\)$' \| \
9263	 .     : '\(.\)' 2>/dev/null ||
9264echo X/"$0" |
9265    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9266  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9267  	  /^X\/\(\/\).*/{ s//\1/; q; }
9268  	  s/.*/./; q'`
9269
9270
9271# PATH needs CR, and LINENO needs CR and PATH.
9272# Avoid depending upon Character Ranges.
9273as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9274as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9275as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9276as_cr_digits='0123456789'
9277as_cr_alnum=$as_cr_Letters$as_cr_digits
9278
9279# The user is always right.
9280if test "${PATH_SEPARATOR+set}" != set; then
9281  echo "#! /bin/sh" >conf$$.sh
9282  echo  "exit 0"   >>conf$$.sh
9283  chmod +x conf$$.sh
9284  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9285    PATH_SEPARATOR=';'
9286  else
9287    PATH_SEPARATOR=:
9288  fi
9289  rm -f conf$$.sh
9290fi
9291
9292
9293  as_lineno_1=$LINENO
9294  as_lineno_2=$LINENO
9295  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9296  test "x$as_lineno_1" != "x$as_lineno_2" &&
9297  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9298  # Find who we are.  Look in the path if we contain no path at all
9299  # relative or not.
9300  case $0 in
9301    *[\\/]* ) as_myself=$0 ;;
9302    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303for as_dir in $PATH
9304do
9305  IFS=$as_save_IFS
9306  test -z "$as_dir" && as_dir=.
9307  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9308done
9309
9310       ;;
9311  esac
9312  # We did not find ourselves, most probably we were run as `sh COMMAND'
9313  # in which case we are not to be found in the path.
9314  if test "x$as_myself" = x; then
9315    as_myself=$0
9316  fi
9317  if test ! -f "$as_myself"; then
9318    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9319echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9320   { (exit 1); exit 1; }; }
9321  fi
9322  case $CONFIG_SHELL in
9323  '')
9324    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9326do
9327  IFS=$as_save_IFS
9328  test -z "$as_dir" && as_dir=.
9329  for as_base in sh bash ksh sh5; do
9330	 case $as_dir in
9331	 /*)
9332	   if ("$as_dir/$as_base" -c '
9333  as_lineno_1=$LINENO
9334  as_lineno_2=$LINENO
9335  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9336  test "x$as_lineno_1" != "x$as_lineno_2" &&
9337  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9338	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9339	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9340	     CONFIG_SHELL=$as_dir/$as_base
9341	     export CONFIG_SHELL
9342	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9343	   fi;;
9344	 esac
9345       done
9346done
9347;;
9348  esac
9349
9350  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9351  # uniformly replaced by the line number.  The first 'sed' inserts a
9352  # line-number line before each line; the second 'sed' does the real
9353  # work.  The second script uses 'N' to pair each line-number line
9354  # with the numbered line, and appends trailing '-' during
9355  # substitution so that $LINENO is not a special case at line end.
9356  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9357  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9358  sed '=' <$as_myself |
9359    sed '
9360      N
9361      s,$,-,
9362      : loop
9363      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9364      t loop
9365      s,-$,,
9366      s,^['$as_cr_digits']*\n,,
9367    ' >$as_me.lineno &&
9368  chmod +x $as_me.lineno ||
9369    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9370echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9371   { (exit 1); exit 1; }; }
9372
9373  # Don't try to exec as it changes $[0], causing all sort of problems
9374  # (the dirname of $[0] is not the place where we might find the
9375  # original and so on.  Autoconf is especially sensible to this).
9376  . ./$as_me.lineno
9377  # Exit status is that of the last command.
9378  exit
9379}
9380
9381
9382case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9383  *c*,-n*) ECHO_N= ECHO_C='
9384' ECHO_T='	' ;;
9385  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9386  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9387esac
9388
9389if expr a : '\(a\)' >/dev/null 2>&1; then
9390  as_expr=expr
9391else
9392  as_expr=false
9393fi
9394
9395rm -f conf$$ conf$$.exe conf$$.file
9396echo >conf$$.file
9397if ln -s conf$$.file conf$$ 2>/dev/null; then
9398  # We could just check for DJGPP; but this test a) works b) is more generic
9399  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9400  if test -f conf$$.exe; then
9401    # Don't use ln at all; we don't have any links
9402    as_ln_s='cp -p'
9403  else
9404    as_ln_s='ln -s'
9405  fi
9406elif ln conf$$.file conf$$ 2>/dev/null; then
9407  as_ln_s=ln
9408else
9409  as_ln_s='cp -p'
9410fi
9411rm -f conf$$ conf$$.exe conf$$.file
9412
9413if mkdir -p . 2>/dev/null; then
9414  as_mkdir_p=:
9415else
9416  test -d ./-p && rmdir ./-p
9417  as_mkdir_p=false
9418fi
9419
9420as_executable_p="test -f"
9421
9422# Sed expression to map a string onto a valid CPP name.
9423as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9424
9425# Sed expression to map a string onto a valid variable name.
9426as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9427
9428
9429# IFS
9430# We need space, tab and new line, in precisely that order.
9431as_nl='
9432'
9433IFS=" 	$as_nl"
9434
9435# CDPATH.
9436$as_unset CDPATH
9437
9438exec 6>&1
9439
9440# Open the log real soon, to keep \$[0] and so on meaningful, and to
9441# report actual input values of CONFIG_FILES etc. instead of their
9442# values after options handling.  Logging --version etc. is OK.
9443exec 5>>config.log
9444{
9445  echo
9446  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9447## Running $as_me. ##
9448_ASBOX
9449} >&5
9450cat >&5 <<_CSEOF
9451
9452This file was extended by libnbcompat $as_me noversion, which was
9453generated by GNU Autoconf 2.59.  Invocation command line was
9454
9455  CONFIG_FILES    = $CONFIG_FILES
9456  CONFIG_HEADERS  = $CONFIG_HEADERS
9457  CONFIG_LINKS    = $CONFIG_LINKS
9458  CONFIG_COMMANDS = $CONFIG_COMMANDS
9459  $ $0 $@
9460
9461_CSEOF
9462echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9463echo >&5
9464_ACEOF
9465
9466# Files that config.status was made for.
9467if test -n "$ac_config_files"; then
9468  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9469fi
9470
9471if test -n "$ac_config_headers"; then
9472  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9473fi
9474
9475if test -n "$ac_config_links"; then
9476  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9477fi
9478
9479if test -n "$ac_config_commands"; then
9480  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9481fi
9482
9483cat >>$CONFIG_STATUS <<\_ACEOF
9484
9485ac_cs_usage="\
9486\`$as_me' instantiates files from templates according to the
9487current configuration.
9488
9489Usage: $0 [OPTIONS] [FILE]...
9490
9491  -h, --help       print this help, then exit
9492  -V, --version    print version number, then exit
9493  -q, --quiet      do not print progress messages
9494  -d, --debug      don't remove temporary files
9495      --recheck    update $as_me by reconfiguring in the same conditions
9496  --file=FILE[:TEMPLATE]
9497		   instantiate the configuration file FILE
9498  --header=FILE[:TEMPLATE]
9499		   instantiate the configuration header FILE
9500
9501Configuration files:
9502$config_files
9503
9504Configuration headers:
9505$config_headers
9506
9507Report bugs to <bug-autoconf@gnu.org>."
9508_ACEOF
9509
9510cat >>$CONFIG_STATUS <<_ACEOF
9511ac_cs_version="\\
9512libnbcompat config.status noversion
9513configured by $0, generated by GNU Autoconf 2.59,
9514  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9515
9516Copyright (C) 2003 Free Software Foundation, Inc.
9517This config.status script is free software; the Free Software Foundation
9518gives unlimited permission to copy, distribute and modify it."
9519srcdir=$srcdir
9520_ACEOF
9521
9522cat >>$CONFIG_STATUS <<\_ACEOF
9523# If no file are specified by the user, then we need to provide default
9524# value.  By we need to know if files were specified by the user.
9525ac_need_defaults=:
9526while test $# != 0
9527do
9528  case $1 in
9529  --*=*)
9530    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9531    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9532    ac_shift=:
9533    ;;
9534  -*)
9535    ac_option=$1
9536    ac_optarg=$2
9537    ac_shift=shift
9538    ;;
9539  *) # This is not an option, so the user has probably given explicit
9540     # arguments.
9541     ac_option=$1
9542     ac_need_defaults=false;;
9543  esac
9544
9545  case $ac_option in
9546  # Handling of the options.
9547_ACEOF
9548cat >>$CONFIG_STATUS <<\_ACEOF
9549  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9550    ac_cs_recheck=: ;;
9551  --version | --vers* | -V )
9552    echo "$ac_cs_version"; exit 0 ;;
9553  --he | --h)
9554    # Conflict between --help and --header
9555    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9556Try \`$0 --help' for more information." >&5
9557echo "$as_me: error: ambiguous option: $1
9558Try \`$0 --help' for more information." >&2;}
9559   { (exit 1); exit 1; }; };;
9560  --help | --hel | -h )
9561    echo "$ac_cs_usage"; exit 0 ;;
9562  --debug | --d* | -d )
9563    debug=: ;;
9564  --file | --fil | --fi | --f )
9565    $ac_shift
9566    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9567    ac_need_defaults=false;;
9568  --header | --heade | --head | --hea )
9569    $ac_shift
9570    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9571    ac_need_defaults=false;;
9572  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9573  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9574    ac_cs_silent=: ;;
9575
9576  # This is an error.
9577  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9578Try \`$0 --help' for more information." >&5
9579echo "$as_me: error: unrecognized option: $1
9580Try \`$0 --help' for more information." >&2;}
9581   { (exit 1); exit 1; }; } ;;
9582
9583  *) ac_config_targets="$ac_config_targets $1" ;;
9584
9585  esac
9586  shift
9587done
9588
9589ac_configure_extra_args=
9590
9591if $ac_cs_silent; then
9592  exec 6>/dev/null
9593  ac_configure_extra_args="$ac_configure_extra_args --silent"
9594fi
9595
9596_ACEOF
9597cat >>$CONFIG_STATUS <<_ACEOF
9598if \$ac_cs_recheck; then
9599  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9600  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9601fi
9602
9603_ACEOF
9604
9605
9606
9607
9608
9609cat >>$CONFIG_STATUS <<\_ACEOF
9610for ac_config_target in $ac_config_targets
9611do
9612  case "$ac_config_target" in
9613  # Handling of arguments.
9614  "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
9615  "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
9616  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9617echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9618   { (exit 1); exit 1; }; };;
9619  esac
9620done
9621
9622# If the user did not use the arguments to specify the items to instantiate,
9623# then the envvar interface is used.  Set only those that are not.
9624# We use the long form for the default assignment because of an extremely
9625# bizarre bug on SunOS 4.1.3.
9626if $ac_need_defaults; then
9627  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9628  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9629fi
9630
9631# Have a temporary directory for convenience.  Make it in the build tree
9632# simply because there is no reason to put it here, and in addition,
9633# creating and moving files from /tmp can sometimes cause problems.
9634# Create a temporary directory, and hook for its removal unless debugging.
9635$debug ||
9636{
9637  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9638  trap '{ (exit 1); exit 1; }' 1 2 13 15
9639}
9640
9641# Create a (secure) tmp directory for tmp files.
9642
9643{
9644  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9645  test -n "$tmp" && test -d "$tmp"
9646}  ||
9647{
9648  tmp=./confstat$$-$RANDOM
9649  (umask 077 && mkdir $tmp)
9650} ||
9651{
9652   echo "$me: cannot create a temporary directory in ." >&2
9653   { (exit 1); exit 1; }
9654}
9655
9656_ACEOF
9657
9658cat >>$CONFIG_STATUS <<_ACEOF
9659
9660#
9661# CONFIG_FILES section.
9662#
9663
9664# No need to generate the scripts if there are no CONFIG_FILES.
9665# This happens for instance when ./config.status config.h
9666if test -n "\$CONFIG_FILES"; then
9667  # Protect against being on the right side of a sed subst in config.status.
9668  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9669   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9670s,@SHELL@,$SHELL,;t t
9671s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9672s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9673s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9674s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9675s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9676s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9677s,@exec_prefix@,$exec_prefix,;t t
9678s,@prefix@,$prefix,;t t
9679s,@program_transform_name@,$program_transform_name,;t t
9680s,@bindir@,$bindir,;t t
9681s,@sbindir@,$sbindir,;t t
9682s,@libexecdir@,$libexecdir,;t t
9683s,@datadir@,$datadir,;t t
9684s,@sysconfdir@,$sysconfdir,;t t
9685s,@sharedstatedir@,$sharedstatedir,;t t
9686s,@localstatedir@,$localstatedir,;t t
9687s,@libdir@,$libdir,;t t
9688s,@includedir@,$includedir,;t t
9689s,@oldincludedir@,$oldincludedir,;t t
9690s,@infodir@,$infodir,;t t
9691s,@mandir@,$mandir,;t t
9692s,@build_alias@,$build_alias,;t t
9693s,@host_alias@,$host_alias,;t t
9694s,@target_alias@,$target_alias,;t t
9695s,@DEFS@,$DEFS,;t t
9696s,@ECHO_C@,$ECHO_C,;t t
9697s,@ECHO_N@,$ECHO_N,;t t
9698s,@ECHO_T@,$ECHO_T,;t t
9699s,@LIBS@,$LIBS,;t t
9700s,@CC@,$CC,;t t
9701s,@CFLAGS@,$CFLAGS,;t t
9702s,@LDFLAGS@,$LDFLAGS,;t t
9703s,@CPPFLAGS@,$CPPFLAGS,;t t
9704s,@ac_ct_CC@,$ac_ct_CC,;t t
9705s,@EXEEXT@,$EXEEXT,;t t
9706s,@OBJEXT@,$OBJEXT,;t t
9707s,@CPP@,$CPP,;t t
9708s,@EGREP@,$EGREP,;t t
9709s,@BSHELL@,$BSHELL,;t t
9710s,@ALLOCA@,$ALLOCA,;t t
9711s,@LIBOBJS@,$LIBOBJS,;t t
9712s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9713CEOF
9714
9715_ACEOF
9716
9717  cat >>$CONFIG_STATUS <<\_ACEOF
9718  # Split the substitutions into bite-sized pieces for seds with
9719  # small command number limits, like on Digital OSF/1 and HP-UX.
9720  ac_max_sed_lines=48
9721  ac_sed_frag=1 # Number of current file.
9722  ac_beg=1 # First line for current file.
9723  ac_end=$ac_max_sed_lines # Line after last line for current file.
9724  ac_more_lines=:
9725  ac_sed_cmds=
9726  while $ac_more_lines; do
9727    if test $ac_beg -gt 1; then
9728      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9729    else
9730      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9731    fi
9732    if test ! -s $tmp/subs.frag; then
9733      ac_more_lines=false
9734    else
9735      # The purpose of the label and of the branching condition is to
9736      # speed up the sed processing (if there are no `@' at all, there
9737      # is no need to browse any of the substitutions).
9738      # These are the two extra sed commands mentioned above.
9739      (echo ':t
9740  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9741      if test -z "$ac_sed_cmds"; then
9742	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9743      else
9744	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9745      fi
9746      ac_sed_frag=`expr $ac_sed_frag + 1`
9747      ac_beg=$ac_end
9748      ac_end=`expr $ac_end + $ac_max_sed_lines`
9749    fi
9750  done
9751  if test -z "$ac_sed_cmds"; then
9752    ac_sed_cmds=cat
9753  fi
9754fi # test -n "$CONFIG_FILES"
9755
9756_ACEOF
9757cat >>$CONFIG_STATUS <<\_ACEOF
9758for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9759  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9760  case $ac_file in
9761  - | *:- | *:-:* ) # input from stdin
9762	cat >$tmp/stdin
9763	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9764	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9765  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9766	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9767  * )   ac_file_in=$ac_file.in ;;
9768  esac
9769
9770  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9771  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9772$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9773	 X"$ac_file" : 'X\(//\)[^/]' \| \
9774	 X"$ac_file" : 'X\(//\)$' \| \
9775	 X"$ac_file" : 'X\(/\)' \| \
9776	 .     : '\(.\)' 2>/dev/null ||
9777echo X"$ac_file" |
9778    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9779  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9780  	  /^X\(\/\/\)$/{ s//\1/; q; }
9781  	  /^X\(\/\).*/{ s//\1/; q; }
9782  	  s/.*/./; q'`
9783  { if $as_mkdir_p; then
9784    mkdir -p "$ac_dir"
9785  else
9786    as_dir="$ac_dir"
9787    as_dirs=
9788    while test ! -d "$as_dir"; do
9789      as_dirs="$as_dir $as_dirs"
9790      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9792	 X"$as_dir" : 'X\(//\)[^/]' \| \
9793	 X"$as_dir" : 'X\(//\)$' \| \
9794	 X"$as_dir" : 'X\(/\)' \| \
9795	 .     : '\(.\)' 2>/dev/null ||
9796echo X"$as_dir" |
9797    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9798  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9799  	  /^X\(\/\/\)$/{ s//\1/; q; }
9800  	  /^X\(\/\).*/{ s//\1/; q; }
9801  	  s/.*/./; q'`
9802    done
9803    test ! -n "$as_dirs" || mkdir $as_dirs
9804  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9805echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9806   { (exit 1); exit 1; }; }; }
9807
9808  ac_builddir=.
9809
9810if test "$ac_dir" != .; then
9811  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9812  # A "../" for each directory in $ac_dir_suffix.
9813  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9814else
9815  ac_dir_suffix= ac_top_builddir=
9816fi
9817
9818case $srcdir in
9819  .)  # No --srcdir option.  We are building in place.
9820    ac_srcdir=.
9821    if test -z "$ac_top_builddir"; then
9822       ac_top_srcdir=.
9823    else
9824       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9825    fi ;;
9826  [\\/]* | ?:[\\/]* )  # Absolute path.
9827    ac_srcdir=$srcdir$ac_dir_suffix;
9828    ac_top_srcdir=$srcdir ;;
9829  *) # Relative path.
9830    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9831    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9832esac
9833
9834# Do not use `cd foo && pwd` to compute absolute paths, because
9835# the directories may not exist.
9836case `pwd` in
9837.) ac_abs_builddir="$ac_dir";;
9838*)
9839  case "$ac_dir" in
9840  .) ac_abs_builddir=`pwd`;;
9841  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9842  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9843  esac;;
9844esac
9845case $ac_abs_builddir in
9846.) ac_abs_top_builddir=${ac_top_builddir}.;;
9847*)
9848  case ${ac_top_builddir}. in
9849  .) ac_abs_top_builddir=$ac_abs_builddir;;
9850  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9851  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9852  esac;;
9853esac
9854case $ac_abs_builddir in
9855.) ac_abs_srcdir=$ac_srcdir;;
9856*)
9857  case $ac_srcdir in
9858  .) ac_abs_srcdir=$ac_abs_builddir;;
9859  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9860  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9861  esac;;
9862esac
9863case $ac_abs_builddir in
9864.) ac_abs_top_srcdir=$ac_top_srcdir;;
9865*)
9866  case $ac_top_srcdir in
9867  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9868  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9869  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9870  esac;;
9871esac
9872
9873
9874
9875  if test x"$ac_file" != x-; then
9876    { echo "$as_me:$LINENO: creating $ac_file" >&5
9877echo "$as_me: creating $ac_file" >&6;}
9878    rm -f "$ac_file"
9879  fi
9880  # Let's still pretend it is `configure' which instantiates (i.e., don't
9881  # use $as_me), people would be surprised to read:
9882  #    /* config.h.  Generated by config.status.  */
9883  if test x"$ac_file" = x-; then
9884    configure_input=
9885  else
9886    configure_input="$ac_file.  "
9887  fi
9888  configure_input=$configure_input"Generated from `echo $ac_file_in |
9889				     sed 's,.*/,,'` by configure."
9890
9891  # First look for the input files in the build tree, otherwise in the
9892  # src tree.
9893  ac_file_inputs=`IFS=:
9894    for f in $ac_file_in; do
9895      case $f in
9896      -) echo $tmp/stdin ;;
9897      [\\/$]*)
9898	 # Absolute (can't be DOS-style, as IFS=:)
9899	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9900echo "$as_me: error: cannot find input file: $f" >&2;}
9901   { (exit 1); exit 1; }; }
9902	 echo "$f";;
9903      *) # Relative
9904	 if test -f "$f"; then
9905	   # Build tree
9906	   echo "$f"
9907	 elif test -f "$srcdir/$f"; then
9908	   # Source tree
9909	   echo "$srcdir/$f"
9910	 else
9911	   # /dev/null tree
9912	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9913echo "$as_me: error: cannot find input file: $f" >&2;}
9914   { (exit 1); exit 1; }; }
9915	 fi;;
9916      esac
9917    done` || { (exit 1); exit 1; }
9918_ACEOF
9919cat >>$CONFIG_STATUS <<_ACEOF
9920  sed "$ac_vpsub
9921$extrasub
9922_ACEOF
9923cat >>$CONFIG_STATUS <<\_ACEOF
9924:t
9925/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9926s,@configure_input@,$configure_input,;t t
9927s,@srcdir@,$ac_srcdir,;t t
9928s,@abs_srcdir@,$ac_abs_srcdir,;t t
9929s,@top_srcdir@,$ac_top_srcdir,;t t
9930s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9931s,@builddir@,$ac_builddir,;t t
9932s,@abs_builddir@,$ac_abs_builddir,;t t
9933s,@top_builddir@,$ac_top_builddir,;t t
9934s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9935" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9936  rm -f $tmp/stdin
9937  if test x"$ac_file" != x-; then
9938    mv $tmp/out $ac_file
9939  else
9940    cat $tmp/out
9941    rm -f $tmp/out
9942  fi
9943
9944done
9945_ACEOF
9946cat >>$CONFIG_STATUS <<\_ACEOF
9947
9948#
9949# CONFIG_HEADER section.
9950#
9951
9952# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9953# NAME is the cpp macro being defined and VALUE is the value it is being given.
9954#
9955# ac_d sets the value in "#define NAME VALUE" lines.
9956ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9957ac_dB='[	 ].*$,\1#\2'
9958ac_dC=' '
9959ac_dD=',;t'
9960# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9961ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9962ac_uB='$,\1#\2define\3'
9963ac_uC=' '
9964ac_uD=',;t'
9965
9966for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9967  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9968  case $ac_file in
9969  - | *:- | *:-:* ) # input from stdin
9970	cat >$tmp/stdin
9971	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9972	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9973  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9974	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9975  * )   ac_file_in=$ac_file.in ;;
9976  esac
9977
9978  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9979echo "$as_me: creating $ac_file" >&6;}
9980
9981  # First look for the input files in the build tree, otherwise in the
9982  # src tree.
9983  ac_file_inputs=`IFS=:
9984    for f in $ac_file_in; do
9985      case $f in
9986      -) echo $tmp/stdin ;;
9987      [\\/$]*)
9988	 # Absolute (can't be DOS-style, as IFS=:)
9989	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9990echo "$as_me: error: cannot find input file: $f" >&2;}
9991   { (exit 1); exit 1; }; }
9992	 # Do quote $f, to prevent DOS paths from being IFS'd.
9993	 echo "$f";;
9994      *) # Relative
9995	 if test -f "$f"; then
9996	   # Build tree
9997	   echo "$f"
9998	 elif test -f "$srcdir/$f"; then
9999	   # Source tree
10000	   echo "$srcdir/$f"
10001	 else
10002	   # /dev/null tree
10003	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10004echo "$as_me: error: cannot find input file: $f" >&2;}
10005   { (exit 1); exit 1; }; }
10006	 fi;;
10007      esac
10008    done` || { (exit 1); exit 1; }
10009  # Remove the trailing spaces.
10010  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10011
10012_ACEOF
10013
10014# Transform confdefs.h into two sed scripts, `conftest.defines' and
10015# `conftest.undefs', that substitutes the proper values into
10016# config.h.in to produce config.h.  The first handles `#define'
10017# templates, and the second `#undef' templates.
10018# And first: Protect against being on the right side of a sed subst in
10019# config.status.  Protect against being in an unquoted here document
10020# in config.status.
10021rm -f conftest.defines conftest.undefs
10022# Using a here document instead of a string reduces the quoting nightmare.
10023# Putting comments in sed scripts is not portable.
10024#
10025# `end' is used to avoid that the second main sed command (meant for
10026# 0-ary CPP macros) applies to n-ary macro definitions.
10027# See the Autoconf documentation for `clear'.
10028cat >confdef2sed.sed <<\_ACEOF
10029s/[\\&,]/\\&/g
10030s,[\\$`],\\&,g
10031t clear
10032: clear
10033s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10034t end
10035s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10036: end
10037_ACEOF
10038# If some macros were called several times there might be several times
10039# the same #defines, which is useless.  Nevertheless, we may not want to
10040# sort them, since we want the *last* AC-DEFINE to be honored.
10041uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10042sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10043rm -f confdef2sed.sed
10044
10045# This sed command replaces #undef with comments.  This is necessary, for
10046# example, in the case of _POSIX_SOURCE, which is predefined and required
10047# on some systems where configure will not decide to define it.
10048cat >>conftest.undefs <<\_ACEOF
10049s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10050_ACEOF
10051
10052# Break up conftest.defines because some shells have a limit on the size
10053# of here documents, and old seds have small limits too (100 cmds).
10054echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10055echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10056echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10057echo '  :' >>$CONFIG_STATUS
10058rm -f conftest.tail
10059while grep . conftest.defines >/dev/null
10060do
10061  # Write a limited-size here document to $tmp/defines.sed.
10062  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10063  # Speed up: don't consider the non `#define' lines.
10064  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10065  # Work around the forget-to-reset-the-flag bug.
10066  echo 't clr' >>$CONFIG_STATUS
10067  echo ': clr' >>$CONFIG_STATUS
10068  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10069  echo 'CEOF
10070  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10071  rm -f $tmp/in
10072  mv $tmp/out $tmp/in
10073' >>$CONFIG_STATUS
10074  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10075  rm -f conftest.defines
10076  mv conftest.tail conftest.defines
10077done
10078rm -f conftest.defines
10079echo '  fi # grep' >>$CONFIG_STATUS
10080echo >>$CONFIG_STATUS
10081
10082# Break up conftest.undefs because some shells have a limit on the size
10083# of here documents, and old seds have small limits too (100 cmds).
10084echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10085rm -f conftest.tail
10086while grep . conftest.undefs >/dev/null
10087do
10088  # Write a limited-size here document to $tmp/undefs.sed.
10089  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10090  # Speed up: don't consider the non `#undef'
10091  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10092  # Work around the forget-to-reset-the-flag bug.
10093  echo 't clr' >>$CONFIG_STATUS
10094  echo ': clr' >>$CONFIG_STATUS
10095  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10096  echo 'CEOF
10097  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10098  rm -f $tmp/in
10099  mv $tmp/out $tmp/in
10100' >>$CONFIG_STATUS
10101  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10102  rm -f conftest.undefs
10103  mv conftest.tail conftest.undefs
10104done
10105rm -f conftest.undefs
10106
10107cat >>$CONFIG_STATUS <<\_ACEOF
10108  # Let's still pretend it is `configure' which instantiates (i.e., don't
10109  # use $as_me), people would be surprised to read:
10110  #    /* config.h.  Generated by config.status.  */
10111  if test x"$ac_file" = x-; then
10112    echo "/* Generated by configure.  */" >$tmp/config.h
10113  else
10114    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10115  fi
10116  cat $tmp/in >>$tmp/config.h
10117  rm -f $tmp/in
10118  if test x"$ac_file" != x-; then
10119    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10120      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10121echo "$as_me: $ac_file is unchanged" >&6;}
10122    else
10123      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10124$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10125	 X"$ac_file" : 'X\(//\)[^/]' \| \
10126	 X"$ac_file" : 'X\(//\)$' \| \
10127	 X"$ac_file" : 'X\(/\)' \| \
10128	 .     : '\(.\)' 2>/dev/null ||
10129echo X"$ac_file" |
10130    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10131  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10132  	  /^X\(\/\/\)$/{ s//\1/; q; }
10133  	  /^X\(\/\).*/{ s//\1/; q; }
10134  	  s/.*/./; q'`
10135      { if $as_mkdir_p; then
10136    mkdir -p "$ac_dir"
10137  else
10138    as_dir="$ac_dir"
10139    as_dirs=
10140    while test ! -d "$as_dir"; do
10141      as_dirs="$as_dir $as_dirs"
10142      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10143$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10144	 X"$as_dir" : 'X\(//\)[^/]' \| \
10145	 X"$as_dir" : 'X\(//\)$' \| \
10146	 X"$as_dir" : 'X\(/\)' \| \
10147	 .     : '\(.\)' 2>/dev/null ||
10148echo X"$as_dir" |
10149    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10150  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10151  	  /^X\(\/\/\)$/{ s//\1/; q; }
10152  	  /^X\(\/\).*/{ s//\1/; q; }
10153  	  s/.*/./; q'`
10154    done
10155    test ! -n "$as_dirs" || mkdir $as_dirs
10156  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10157echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10158   { (exit 1); exit 1; }; }; }
10159
10160      rm -f $ac_file
10161      mv $tmp/config.h $ac_file
10162    fi
10163  else
10164    cat $tmp/config.h
10165    rm -f $tmp/config.h
10166  fi
10167done
10168_ACEOF
10169
10170cat >>$CONFIG_STATUS <<\_ACEOF
10171
10172{ (exit 0); exit 0; }
10173_ACEOF
10174chmod +x $CONFIG_STATUS
10175ac_clean_files=$ac_clean_files_save
10176
10177
10178# configure is writing to config.log, and then calls config.status.
10179# config.status does its own redirection, appending to config.log.
10180# Unfortunately, on DOS this fails, as config.log is still kept open
10181# by configure, so config.status won't be able to write to it; its
10182# output is simply discarded.  So we exec the FD to /dev/null,
10183# effectively closing config.log, so it can be properly (re)opened and
10184# appended to by config.status.  When coming back to configure, we
10185# need to make the FD available again.
10186if test "$no_create" != yes; then
10187  ac_cs_success=:
10188  ac_config_status_args=
10189  test "$silent" = yes &&
10190    ac_config_status_args="$ac_config_status_args --quiet"
10191  exec 5>/dev/null
10192  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10193  exec 5>>config.log
10194  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10195  # would make configure fail if this is the last instruction.
10196  $ac_cs_success || { (exit 1); exit 1; }
10197fi
10198
10199