configure revision 1.48
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
3954for ac_header in machine/bswap.h sys/cdefs.h sys/endian.h sys/featuretest.h \
3955	err.h inttypes.h libgen.h paths.h stdint.h util.h
3956do
3957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3958if eval "test \"\${$as_ac_Header+set}\" = set"; then
3959  echo "$as_me:$LINENO: checking for $ac_header" >&5
3960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3961if eval "test \"\${$as_ac_Header+set}\" = set"; then
3962  echo $ECHO_N "(cached) $ECHO_C" >&6
3963fi
3964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3966else
3967  # Is the header compilable?
3968echo "$as_me:$LINENO: checking $ac_header usability" >&5
3969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3970cat >conftest.$ac_ext <<_ACEOF
3971/* confdefs.h.  */
3972_ACEOF
3973cat confdefs.h >>conftest.$ac_ext
3974cat >>conftest.$ac_ext <<_ACEOF
3975/* end confdefs.h.  */
3976$ac_includes_default
3977#include <$ac_header>
3978_ACEOF
3979rm -f conftest.$ac_objext
3980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981  (eval $ac_compile) 2>conftest.er1
3982  ac_status=$?
3983  grep -v '^ *+' conftest.er1 >conftest.err
3984  rm -f conftest.er1
3985  cat conftest.err >&5
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); } &&
3988	 { ac_try='test -z "$ac_c_werror_flag"
3989			 || test ! -s conftest.err'
3990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991  (eval $ac_try) 2>&5
3992  ac_status=$?
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); }; } &&
3995	 { ac_try='test -s conftest.$ac_objext'
3996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997  (eval $ac_try) 2>&5
3998  ac_status=$?
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); }; }; then
4001  ac_header_compiler=yes
4002else
4003  echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006ac_header_compiler=no
4007fi
4008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4010echo "${ECHO_T}$ac_header_compiler" >&6
4011
4012# Is the header present?
4013echo "$as_me:$LINENO: checking $ac_header presence" >&5
4014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4015cat >conftest.$ac_ext <<_ACEOF
4016/* confdefs.h.  */
4017_ACEOF
4018cat confdefs.h >>conftest.$ac_ext
4019cat >>conftest.$ac_ext <<_ACEOF
4020/* end confdefs.h.  */
4021#include <$ac_header>
4022_ACEOF
4023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4024  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4025  ac_status=$?
4026  grep -v '^ *+' conftest.er1 >conftest.err
4027  rm -f conftest.er1
4028  cat conftest.err >&5
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); } >/dev/null; then
4031  if test -s conftest.err; then
4032    ac_cpp_err=$ac_c_preproc_warn_flag
4033    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4034  else
4035    ac_cpp_err=
4036  fi
4037else
4038  ac_cpp_err=yes
4039fi
4040if test -z "$ac_cpp_err"; then
4041  ac_header_preproc=yes
4042else
4043  echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046  ac_header_preproc=no
4047fi
4048rm -f conftest.err conftest.$ac_ext
4049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4050echo "${ECHO_T}$ac_header_preproc" >&6
4051
4052# So?  What about this header?
4053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4054  yes:no: )
4055    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4057    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4059    ac_header_preproc=yes
4060    ;;
4061  no:yes:* )
4062    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4064    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4065echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4066    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4068    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4069echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4070    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4072    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4074    (
4075      cat <<\_ASBOX
4076## ---------------------------------------- ##
4077## Report this to lib-bug-people@NetBSD.org ##
4078## ---------------------------------------- ##
4079_ASBOX
4080    ) |
4081      sed "s/^/$as_me: WARNING:     /" >&2
4082    ;;
4083esac
4084echo "$as_me:$LINENO: checking for $ac_header" >&5
4085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4086if eval "test \"\${$as_ac_Header+set}\" = set"; then
4087  echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089  eval "$as_ac_Header=\$ac_header_preproc"
4090fi
4091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4093
4094fi
4095if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096  cat >>confdefs.h <<_ACEOF
4097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098_ACEOF
4099
4100else
4101  test -f include/$ac_header || touch include/$ac_header
4102fi
4103
4104done
4105
4106
4107
4108for ac_header in rpc/types.h netconfig.h
4109do
4110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4111if eval "test \"\${$as_ac_Header+set}\" = set"; then
4112  echo "$as_me:$LINENO: checking for $ac_header" >&5
4113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4114if eval "test \"\${$as_ac_Header+set}\" = set"; then
4115  echo $ECHO_N "(cached) $ECHO_C" >&6
4116fi
4117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4119else
4120  # Is the header compilable?
4121echo "$as_me:$LINENO: checking $ac_header usability" >&5
4122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4123cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h.  */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h.  */
4129$ac_includes_default
4130#include <$ac_header>
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134  (eval $ac_compile) 2>conftest.er1
4135  ac_status=$?
4136  grep -v '^ *+' conftest.er1 >conftest.err
4137  rm -f conftest.er1
4138  cat conftest.err >&5
4139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140  (exit $ac_status); } &&
4141	 { ac_try='test -z "$ac_c_werror_flag"
4142			 || test ! -s conftest.err'
4143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144  (eval $ac_try) 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; } &&
4148	 { ac_try='test -s conftest.$ac_objext'
4149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150  (eval $ac_try) 2>&5
4151  ac_status=$?
4152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153  (exit $ac_status); }; }; then
4154  ac_header_compiler=yes
4155else
4156  echo "$as_me: failed program was:" >&5
4157sed 's/^/| /' conftest.$ac_ext >&5
4158
4159ac_header_compiler=no
4160fi
4161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4163echo "${ECHO_T}$ac_header_compiler" >&6
4164
4165# Is the header present?
4166echo "$as_me:$LINENO: checking $ac_header presence" >&5
4167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4168cat >conftest.$ac_ext <<_ACEOF
4169/* confdefs.h.  */
4170_ACEOF
4171cat confdefs.h >>conftest.$ac_ext
4172cat >>conftest.$ac_ext <<_ACEOF
4173/* end confdefs.h.  */
4174#include <$ac_header>
4175_ACEOF
4176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4177  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4178  ac_status=$?
4179  grep -v '^ *+' conftest.er1 >conftest.err
4180  rm -f conftest.er1
4181  cat conftest.err >&5
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); } >/dev/null; then
4184  if test -s conftest.err; then
4185    ac_cpp_err=$ac_c_preproc_warn_flag
4186    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4187  else
4188    ac_cpp_err=
4189  fi
4190else
4191  ac_cpp_err=yes
4192fi
4193if test -z "$ac_cpp_err"; then
4194  ac_header_preproc=yes
4195else
4196  echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199  ac_header_preproc=no
4200fi
4201rm -f conftest.err conftest.$ac_ext
4202echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4203echo "${ECHO_T}$ac_header_preproc" >&6
4204
4205# So?  What about this header?
4206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4207  yes:no: )
4208    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4210    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4212    ac_header_preproc=yes
4213    ;;
4214  no:yes:* )
4215    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4217    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4218echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4219    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4221    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4222echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4223    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4225    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4227    (
4228      cat <<\_ASBOX
4229## ---------------------------------------- ##
4230## Report this to lib-bug-people@NetBSD.org ##
4231## ---------------------------------------- ##
4232_ASBOX
4233    ) |
4234      sed "s/^/$as_me: WARNING:     /" >&2
4235    ;;
4236esac
4237echo "$as_me:$LINENO: checking for $ac_header" >&5
4238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4239if eval "test \"\${$as_ac_Header+set}\" = set"; then
4240  echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
4242  eval "$as_ac_Header=\$ac_header_preproc"
4243fi
4244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4246
4247fi
4248if test `eval echo '${'$as_ac_Header'}'` = yes; then
4249  cat >>confdefs.h <<_ACEOF
4250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4251_ACEOF
4252
4253else
4254  echo '#include "nbtool_config.h"' >include/$ac_header.new
4255	echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
4256	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4257		rm -f include/$ac_header.new
4258	else
4259		mv -f include/$ac_header.new include/$ac_header
4260	fi
4261fi
4262
4263done
4264
4265
4266# Typedefs.
4267echo "$as_me:$LINENO: checking for size_t" >&5
4268echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4269if test "${ac_cv_type_size_t+set}" = set; then
4270  echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272  cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h.  */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h.  */
4278$ac_includes_default
4279int
4280main ()
4281{
4282if ((size_t *) 0)
4283  return 0;
4284if (sizeof (size_t))
4285  return 0;
4286  ;
4287  return 0;
4288}
4289_ACEOF
4290rm -f conftest.$ac_objext
4291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292  (eval $ac_compile) 2>conftest.er1
4293  ac_status=$?
4294  grep -v '^ *+' conftest.er1 >conftest.err
4295  rm -f conftest.er1
4296  cat conftest.err >&5
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); } &&
4299	 { ac_try='test -z "$ac_c_werror_flag"
4300			 || test ! -s conftest.err'
4301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302  (eval $ac_try) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }; } &&
4306	 { ac_try='test -s conftest.$ac_objext'
4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308  (eval $ac_try) 2>&5
4309  ac_status=$?
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); }; }; then
4312  ac_cv_type_size_t=yes
4313else
4314  echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317ac_cv_type_size_t=no
4318fi
4319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320fi
4321echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4322echo "${ECHO_T}$ac_cv_type_size_t" >&6
4323if test $ac_cv_type_size_t = yes; then
4324  :
4325else
4326
4327cat >>confdefs.h <<_ACEOF
4328#define size_t unsigned
4329_ACEOF
4330
4331fi
4332
4333echo "$as_me:$LINENO: checking for id_t" >&5
4334echo $ECHO_N "checking for id_t... $ECHO_C" >&6
4335if test "${ac_cv_type_id_t+set}" = set; then
4336  echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338  cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h.  */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h.  */
4344$ac_includes_default
4345int
4346main ()
4347{
4348if ((id_t *) 0)
4349  return 0;
4350if (sizeof (id_t))
4351  return 0;
4352  ;
4353  return 0;
4354}
4355_ACEOF
4356rm -f conftest.$ac_objext
4357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358  (eval $ac_compile) 2>conftest.er1
4359  ac_status=$?
4360  grep -v '^ *+' conftest.er1 >conftest.err
4361  rm -f conftest.er1
4362  cat conftest.err >&5
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); } &&
4365	 { ac_try='test -z "$ac_c_werror_flag"
4366			 || test ! -s conftest.err'
4367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368  (eval $ac_try) 2>&5
4369  ac_status=$?
4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); }; } &&
4372	 { ac_try='test -s conftest.$ac_objext'
4373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374  (eval $ac_try) 2>&5
4375  ac_status=$?
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); }; }; then
4378  ac_cv_type_id_t=yes
4379else
4380  echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
4383ac_cv_type_id_t=no
4384fi
4385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386fi
4387echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
4388echo "${ECHO_T}$ac_cv_type_id_t" >&6
4389if test $ac_cv_type_id_t = yes; then
4390
4391cat >>confdefs.h <<_ACEOF
4392#define HAVE_ID_T 1
4393_ACEOF
4394
4395
4396fi
4397echo "$as_me:$LINENO: checking for long long" >&5
4398echo $ECHO_N "checking for long long... $ECHO_C" >&6
4399if test "${ac_cv_type_long_long+set}" = set; then
4400  echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402  cat >conftest.$ac_ext <<_ACEOF
4403/* confdefs.h.  */
4404_ACEOF
4405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
4407/* end confdefs.h.  */
4408$ac_includes_default
4409int
4410main ()
4411{
4412if ((long long *) 0)
4413  return 0;
4414if (sizeof (long long))
4415  return 0;
4416  ;
4417  return 0;
4418}
4419_ACEOF
4420rm -f conftest.$ac_objext
4421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422  (eval $ac_compile) 2>conftest.er1
4423  ac_status=$?
4424  grep -v '^ *+' conftest.er1 >conftest.err
4425  rm -f conftest.er1
4426  cat conftest.err >&5
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); } &&
4429	 { ac_try='test -z "$ac_c_werror_flag"
4430			 || test ! -s conftest.err'
4431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432  (eval $ac_try) 2>&5
4433  ac_status=$?
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); }; } &&
4436	 { ac_try='test -s conftest.$ac_objext'
4437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438  (eval $ac_try) 2>&5
4439  ac_status=$?
4440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); }; }; then
4442  ac_cv_type_long_long=yes
4443else
4444  echo "$as_me: failed program was:" >&5
4445sed 's/^/| /' conftest.$ac_ext >&5
4446
4447ac_cv_type_long_long=no
4448fi
4449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4450fi
4451echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4452echo "${ECHO_T}$ac_cv_type_long_long" >&6
4453if test $ac_cv_type_long_long = yes; then
4454
4455cat >>confdefs.h <<_ACEOF
4456#define HAVE_LONG_LONG 1
4457_ACEOF
4458
4459
4460fi
4461echo "$as_me:$LINENO: checking for u_long" >&5
4462echo $ECHO_N "checking for u_long... $ECHO_C" >&6
4463if test "${ac_cv_type_u_long+set}" = set; then
4464  echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466  cat >conftest.$ac_ext <<_ACEOF
4467/* confdefs.h.  */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h.  */
4472$ac_includes_default
4473int
4474main ()
4475{
4476if ((u_long *) 0)
4477  return 0;
4478if (sizeof (u_long))
4479  return 0;
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484rm -f conftest.$ac_objext
4485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486  (eval $ac_compile) 2>conftest.er1
4487  ac_status=$?
4488  grep -v '^ *+' conftest.er1 >conftest.err
4489  rm -f conftest.er1
4490  cat conftest.err >&5
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); } &&
4493	 { ac_try='test -z "$ac_c_werror_flag"
4494			 || test ! -s conftest.err'
4495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496  (eval $ac_try) 2>&5
4497  ac_status=$?
4498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499  (exit $ac_status); }; } &&
4500	 { ac_try='test -s conftest.$ac_objext'
4501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502  (eval $ac_try) 2>&5
4503  ac_status=$?
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); }; }; then
4506  ac_cv_type_u_long=yes
4507else
4508  echo "$as_me: failed program was:" >&5
4509sed 's/^/| /' conftest.$ac_ext >&5
4510
4511ac_cv_type_u_long=no
4512fi
4513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4514fi
4515echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
4516echo "${ECHO_T}$ac_cv_type_u_long" >&6
4517if test $ac_cv_type_u_long = yes; then
4518
4519cat >>confdefs.h <<_ACEOF
4520#define HAVE_U_LONG 1
4521_ACEOF
4522
4523
4524fi
4525echo "$as_me:$LINENO: checking for u_char" >&5
4526echo $ECHO_N "checking for u_char... $ECHO_C" >&6
4527if test "${ac_cv_type_u_char+set}" = set; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536$ac_includes_default
4537int
4538main ()
4539{
4540if ((u_char *) 0)
4541  return 0;
4542if (sizeof (u_char))
4543  return 0;
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548rm -f conftest.$ac_objext
4549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550  (eval $ac_compile) 2>conftest.er1
4551  ac_status=$?
4552  grep -v '^ *+' conftest.er1 >conftest.err
4553  rm -f conftest.er1
4554  cat conftest.err >&5
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); } &&
4557	 { ac_try='test -z "$ac_c_werror_flag"
4558			 || test ! -s conftest.err'
4559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560  (eval $ac_try) 2>&5
4561  ac_status=$?
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; } &&
4564	 { ac_try='test -s conftest.$ac_objext'
4565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566  (eval $ac_try) 2>&5
4567  ac_status=$?
4568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); }; }; then
4570  ac_cv_type_u_char=yes
4571else
4572  echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575ac_cv_type_u_char=no
4576fi
4577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578fi
4579echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
4580echo "${ECHO_T}$ac_cv_type_u_char" >&6
4581if test $ac_cv_type_u_char = yes; then
4582
4583cat >>confdefs.h <<_ACEOF
4584#define HAVE_U_CHAR 1
4585_ACEOF
4586
4587
4588fi
4589echo "$as_me:$LINENO: checking for u_short" >&5
4590echo $ECHO_N "checking for u_short... $ECHO_C" >&6
4591if test "${ac_cv_type_u_short+set}" = set; then
4592  echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594  cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h.  */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h.  */
4600$ac_includes_default
4601int
4602main ()
4603{
4604if ((u_short *) 0)
4605  return 0;
4606if (sizeof (u_short))
4607  return 0;
4608  ;
4609  return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext
4613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614  (eval $ac_compile) 2>conftest.er1
4615  ac_status=$?
4616  grep -v '^ *+' conftest.er1 >conftest.err
4617  rm -f conftest.er1
4618  cat conftest.err >&5
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); } &&
4621	 { ac_try='test -z "$ac_c_werror_flag"
4622			 || test ! -s conftest.err'
4623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624  (eval $ac_try) 2>&5
4625  ac_status=$?
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); }; } &&
4628	 { ac_try='test -s conftest.$ac_objext'
4629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630  (eval $ac_try) 2>&5
4631  ac_status=$?
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); }; }; then
4634  ac_cv_type_u_short=yes
4635else
4636  echo "$as_me: failed program was:" >&5
4637sed 's/^/| /' conftest.$ac_ext >&5
4638
4639ac_cv_type_u_short=no
4640fi
4641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642fi
4643echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
4644echo "${ECHO_T}$ac_cv_type_u_short" >&6
4645if test $ac_cv_type_u_short = yes; then
4646
4647cat >>confdefs.h <<_ACEOF
4648#define HAVE_U_SHORT 1
4649_ACEOF
4650
4651
4652fi
4653echo "$as_me:$LINENO: checking for u_int" >&5
4654echo $ECHO_N "checking for u_int... $ECHO_C" >&6
4655if test "${ac_cv_type_u_int+set}" = set; then
4656  echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658  cat >conftest.$ac_ext <<_ACEOF
4659/* confdefs.h.  */
4660_ACEOF
4661cat confdefs.h >>conftest.$ac_ext
4662cat >>conftest.$ac_ext <<_ACEOF
4663/* end confdefs.h.  */
4664$ac_includes_default
4665int
4666main ()
4667{
4668if ((u_int *) 0)
4669  return 0;
4670if (sizeof (u_int))
4671  return 0;
4672  ;
4673  return 0;
4674}
4675_ACEOF
4676rm -f conftest.$ac_objext
4677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678  (eval $ac_compile) 2>conftest.er1
4679  ac_status=$?
4680  grep -v '^ *+' conftest.er1 >conftest.err
4681  rm -f conftest.er1
4682  cat conftest.err >&5
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); } &&
4685	 { ac_try='test -z "$ac_c_werror_flag"
4686			 || test ! -s conftest.err'
4687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688  (eval $ac_try) 2>&5
4689  ac_status=$?
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); }; } &&
4692	 { ac_try='test -s conftest.$ac_objext'
4693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694  (eval $ac_try) 2>&5
4695  ac_status=$?
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); }; }; then
4698  ac_cv_type_u_int=yes
4699else
4700  echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703ac_cv_type_u_int=no
4704fi
4705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4706fi
4707echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
4708echo "${ECHO_T}$ac_cv_type_u_int" >&6
4709if test $ac_cv_type_u_int = yes; then
4710
4711cat >>confdefs.h <<_ACEOF
4712#define HAVE_U_INT 1
4713_ACEOF
4714
4715
4716fi
4717echo "$as_me:$LINENO: checking for u_quad_t" >&5
4718echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
4719if test "${ac_cv_type_u_quad_t+set}" = set; then
4720  echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722  cat >conftest.$ac_ext <<_ACEOF
4723/* confdefs.h.  */
4724_ACEOF
4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h.  */
4728$ac_includes_default
4729int
4730main ()
4731{
4732if ((u_quad_t *) 0)
4733  return 0;
4734if (sizeof (u_quad_t))
4735  return 0;
4736  ;
4737  return 0;
4738}
4739_ACEOF
4740rm -f conftest.$ac_objext
4741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742  (eval $ac_compile) 2>conftest.er1
4743  ac_status=$?
4744  grep -v '^ *+' conftest.er1 >conftest.err
4745  rm -f conftest.er1
4746  cat conftest.err >&5
4747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748  (exit $ac_status); } &&
4749	 { ac_try='test -z "$ac_c_werror_flag"
4750			 || test ! -s conftest.err'
4751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752  (eval $ac_try) 2>&5
4753  ac_status=$?
4754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755  (exit $ac_status); }; } &&
4756	 { ac_try='test -s conftest.$ac_objext'
4757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758  (eval $ac_try) 2>&5
4759  ac_status=$?
4760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761  (exit $ac_status); }; }; then
4762  ac_cv_type_u_quad_t=yes
4763else
4764  echo "$as_me: failed program was:" >&5
4765sed 's/^/| /' conftest.$ac_ext >&5
4766
4767ac_cv_type_u_quad_t=no
4768fi
4769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770fi
4771echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
4772echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
4773if test $ac_cv_type_u_quad_t = yes; then
4774
4775cat >>confdefs.h <<_ACEOF
4776#define HAVE_U_QUAD_T 1
4777_ACEOF
4778
4779
4780fi
4781
4782echo "$as_me:$LINENO: checking for socklen_t" >&5
4783echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4784if test "${ac_cv_type_socklen_t+set}" = set; then
4785  echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787  cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h.  */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h.  */
4793#include <sys/types.h>
4794#include <sys/socket.h>
4795
4796int
4797main ()
4798{
4799if ((socklen_t *) 0)
4800  return 0;
4801if (sizeof (socklen_t))
4802  return 0;
4803  ;
4804  return 0;
4805}
4806_ACEOF
4807rm -f conftest.$ac_objext
4808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809  (eval $ac_compile) 2>conftest.er1
4810  ac_status=$?
4811  grep -v '^ *+' conftest.er1 >conftest.err
4812  rm -f conftest.er1
4813  cat conftest.err >&5
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); } &&
4816	 { ac_try='test -z "$ac_c_werror_flag"
4817			 || test ! -s conftest.err'
4818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819  (eval $ac_try) 2>&5
4820  ac_status=$?
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); }; } &&
4823	 { ac_try='test -s conftest.$ac_objext'
4824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825  (eval $ac_try) 2>&5
4826  ac_status=$?
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); }; }; then
4829  ac_cv_type_socklen_t=yes
4830else
4831  echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834ac_cv_type_socklen_t=no
4835fi
4836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837fi
4838echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4839echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4840if test $ac_cv_type_socklen_t = yes; then
4841  cat >>confdefs.h <<\_ACEOF
4842#define HAVE_SOCKLEN_T 1
4843_ACEOF
4844
4845fi
4846
4847
4848
4849
4850
4851	echo "$as_me:$LINENO: checking for uint8_t" >&5
4852echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4853if test "${ac_cv_type_uint8_t+set}" = set; then
4854  echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856  cat >conftest.$ac_ext <<_ACEOF
4857/* confdefs.h.  */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h.  */
4862$ac_includes_default
4863int
4864main ()
4865{
4866if ((uint8_t *) 0)
4867  return 0;
4868if (sizeof (uint8_t))
4869  return 0;
4870  ;
4871  return 0;
4872}
4873_ACEOF
4874rm -f conftest.$ac_objext
4875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876  (eval $ac_compile) 2>conftest.er1
4877  ac_status=$?
4878  grep -v '^ *+' conftest.er1 >conftest.err
4879  rm -f conftest.er1
4880  cat conftest.err >&5
4881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882  (exit $ac_status); } &&
4883	 { ac_try='test -z "$ac_c_werror_flag"
4884			 || test ! -s conftest.err'
4885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886  (eval $ac_try) 2>&5
4887  ac_status=$?
4888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889  (exit $ac_status); }; } &&
4890	 { ac_try='test -s conftest.$ac_objext'
4891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892  (eval $ac_try) 2>&5
4893  ac_status=$?
4894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895  (exit $ac_status); }; }; then
4896  ac_cv_type_uint8_t=yes
4897else
4898  echo "$as_me: failed program was:" >&5
4899sed 's/^/| /' conftest.$ac_ext >&5
4900
4901ac_cv_type_uint8_t=no
4902fi
4903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4904fi
4905echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4906echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4907if test $ac_cv_type_uint8_t = yes; then
4908  :
4909else
4910
4911		echo "$as_me:$LINENO: checking for u_int8_t" >&5
4912echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4913if test "${ac_cv_type_u_int8_t+set}" = set; then
4914  echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916  cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h.  */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h.  */
4922$ac_includes_default
4923int
4924main ()
4925{
4926if ((u_int8_t *) 0)
4927  return 0;
4928if (sizeof (u_int8_t))
4929  return 0;
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext
4935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936  (eval $ac_compile) 2>conftest.er1
4937  ac_status=$?
4938  grep -v '^ *+' conftest.er1 >conftest.err
4939  rm -f conftest.er1
4940  cat conftest.err >&5
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } &&
4943	 { ac_try='test -z "$ac_c_werror_flag"
4944			 || test ! -s conftest.err'
4945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946  (eval $ac_try) 2>&5
4947  ac_status=$?
4948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); }; } &&
4950	 { ac_try='test -s conftest.$ac_objext'
4951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952  (eval $ac_try) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; }; then
4956  ac_cv_type_u_int8_t=yes
4957else
4958  echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961ac_cv_type_u_int8_t=no
4962fi
4963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964fi
4965echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4966echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
4967if test $ac_cv_type_u_int8_t = yes; then
4968  cat >>confdefs.h <<\_ACEOF
4969#define uint8_t u_int8_t
4970_ACEOF
4971
4972else
4973  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5
4974echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
4975   { (exit 1); exit 1; }; }
4976fi
4977
4978
4979fi
4980
4981	echo "$as_me:$LINENO: checking for u_int8_t" >&5
4982echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4983if test "${ac_cv_type_u_int8_t+set}" = set; then
4984  echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986  cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h.  */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h.  */
4992$ac_includes_default
4993int
4994main ()
4995{
4996if ((u_int8_t *) 0)
4997  return 0;
4998if (sizeof (u_int8_t))
4999  return 0;
5000  ;
5001  return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext
5005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006  (eval $ac_compile) 2>conftest.er1
5007  ac_status=$?
5008  grep -v '^ *+' conftest.er1 >conftest.err
5009  rm -f conftest.er1
5010  cat conftest.err >&5
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); } &&
5013	 { ac_try='test -z "$ac_c_werror_flag"
5014			 || test ! -s conftest.err'
5015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016  (eval $ac_try) 2>&5
5017  ac_status=$?
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); }; } &&
5020	 { ac_try='test -s conftest.$ac_objext'
5021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022  (eval $ac_try) 2>&5
5023  ac_status=$?
5024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025  (exit $ac_status); }; }; then
5026  ac_cv_type_u_int8_t=yes
5027else
5028  echo "$as_me: failed program was:" >&5
5029sed 's/^/| /' conftest.$ac_ext >&5
5030
5031ac_cv_type_u_int8_t=no
5032fi
5033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034fi
5035echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5036echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
5037if test $ac_cv_type_u_int8_t = yes; then
5038  :
5039else
5040
5041		echo "$as_me:$LINENO: checking for uint8_t" >&5
5042echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5043if test "${ac_cv_type_uint8_t+set}" = set; then
5044  echo $ECHO_N "(cached) $ECHO_C" >&6
5045else
5046  cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h.  */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h.  */
5052$ac_includes_default
5053int
5054main ()
5055{
5056if ((uint8_t *) 0)
5057  return 0;
5058if (sizeof (uint8_t))
5059  return 0;
5060  ;
5061  return 0;
5062}
5063_ACEOF
5064rm -f conftest.$ac_objext
5065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066  (eval $ac_compile) 2>conftest.er1
5067  ac_status=$?
5068  grep -v '^ *+' conftest.er1 >conftest.err
5069  rm -f conftest.er1
5070  cat conftest.err >&5
5071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072  (exit $ac_status); } &&
5073	 { ac_try='test -z "$ac_c_werror_flag"
5074			 || test ! -s conftest.err'
5075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076  (eval $ac_try) 2>&5
5077  ac_status=$?
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); }; } &&
5080	 { ac_try='test -s conftest.$ac_objext'
5081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082  (eval $ac_try) 2>&5
5083  ac_status=$?
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); }; }; then
5086  ac_cv_type_uint8_t=yes
5087else
5088  echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091ac_cv_type_uint8_t=no
5092fi
5093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094fi
5095echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5096echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5097if test $ac_cv_type_uint8_t = yes; then
5098  cat >>confdefs.h <<\_ACEOF
5099#define u_int8_t uint8_t
5100_ACEOF
5101
5102else
5103  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5
5104echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
5105   { (exit 1); exit 1; }; }
5106fi
5107
5108
5109fi
5110
5111
5112
5113	echo "$as_me:$LINENO: checking for uint16_t" >&5
5114echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5115if test "${ac_cv_type_uint16_t+set}" = set; then
5116  echo $ECHO_N "(cached) $ECHO_C" >&6
5117else
5118  cat >conftest.$ac_ext <<_ACEOF
5119/* confdefs.h.  */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h.  */
5124$ac_includes_default
5125int
5126main ()
5127{
5128if ((uint16_t *) 0)
5129  return 0;
5130if (sizeof (uint16_t))
5131  return 0;
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136rm -f conftest.$ac_objext
5137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138  (eval $ac_compile) 2>conftest.er1
5139  ac_status=$?
5140  grep -v '^ *+' conftest.er1 >conftest.err
5141  rm -f conftest.er1
5142  cat conftest.err >&5
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); } &&
5145	 { ac_try='test -z "$ac_c_werror_flag"
5146			 || test ! -s conftest.err'
5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148  (eval $ac_try) 2>&5
5149  ac_status=$?
5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151  (exit $ac_status); }; } &&
5152	 { ac_try='test -s conftest.$ac_objext'
5153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154  (eval $ac_try) 2>&5
5155  ac_status=$?
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); }; }; then
5158  ac_cv_type_uint16_t=yes
5159else
5160  echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163ac_cv_type_uint16_t=no
5164fi
5165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5166fi
5167echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5168echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5169if test $ac_cv_type_uint16_t = yes; then
5170  :
5171else
5172
5173		echo "$as_me:$LINENO: checking for u_int16_t" >&5
5174echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5175if test "${ac_cv_type_u_int16_t+set}" = set; then
5176  echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178  cat >conftest.$ac_ext <<_ACEOF
5179/* confdefs.h.  */
5180_ACEOF
5181cat confdefs.h >>conftest.$ac_ext
5182cat >>conftest.$ac_ext <<_ACEOF
5183/* end confdefs.h.  */
5184$ac_includes_default
5185int
5186main ()
5187{
5188if ((u_int16_t *) 0)
5189  return 0;
5190if (sizeof (u_int16_t))
5191  return 0;
5192  ;
5193  return 0;
5194}
5195_ACEOF
5196rm -f conftest.$ac_objext
5197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198  (eval $ac_compile) 2>conftest.er1
5199  ac_status=$?
5200  grep -v '^ *+' conftest.er1 >conftest.err
5201  rm -f conftest.er1
5202  cat conftest.err >&5
5203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204  (exit $ac_status); } &&
5205	 { ac_try='test -z "$ac_c_werror_flag"
5206			 || test ! -s conftest.err'
5207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208  (eval $ac_try) 2>&5
5209  ac_status=$?
5210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211  (exit $ac_status); }; } &&
5212	 { ac_try='test -s conftest.$ac_objext'
5213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214  (eval $ac_try) 2>&5
5215  ac_status=$?
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); }; }; then
5218  ac_cv_type_u_int16_t=yes
5219else
5220  echo "$as_me: failed program was:" >&5
5221sed 's/^/| /' conftest.$ac_ext >&5
5222
5223ac_cv_type_u_int16_t=no
5224fi
5225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5226fi
5227echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5228echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5229if test $ac_cv_type_u_int16_t = yes; then
5230  cat >>confdefs.h <<\_ACEOF
5231#define uint16_t u_int16_t
5232_ACEOF
5233
5234else
5235  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5
5236echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
5237   { (exit 1); exit 1; }; }
5238fi
5239
5240
5241fi
5242
5243	echo "$as_me:$LINENO: checking for u_int16_t" >&5
5244echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5245if test "${ac_cv_type_u_int16_t+set}" = set; then
5246  echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248  cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h.  */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h.  */
5254$ac_includes_default
5255int
5256main ()
5257{
5258if ((u_int16_t *) 0)
5259  return 0;
5260if (sizeof (u_int16_t))
5261  return 0;
5262  ;
5263  return 0;
5264}
5265_ACEOF
5266rm -f conftest.$ac_objext
5267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268  (eval $ac_compile) 2>conftest.er1
5269  ac_status=$?
5270  grep -v '^ *+' conftest.er1 >conftest.err
5271  rm -f conftest.er1
5272  cat conftest.err >&5
5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); } &&
5275	 { ac_try='test -z "$ac_c_werror_flag"
5276			 || test ! -s conftest.err'
5277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278  (eval $ac_try) 2>&5
5279  ac_status=$?
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); }; } &&
5282	 { ac_try='test -s conftest.$ac_objext'
5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284  (eval $ac_try) 2>&5
5285  ac_status=$?
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); }; }; then
5288  ac_cv_type_u_int16_t=yes
5289else
5290  echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293ac_cv_type_u_int16_t=no
5294fi
5295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296fi
5297echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5298echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5299if test $ac_cv_type_u_int16_t = yes; then
5300  :
5301else
5302
5303		echo "$as_me:$LINENO: checking for uint16_t" >&5
5304echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5305if test "${ac_cv_type_uint16_t+set}" = set; then
5306  echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308  cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h.  */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h.  */
5314$ac_includes_default
5315int
5316main ()
5317{
5318if ((uint16_t *) 0)
5319  return 0;
5320if (sizeof (uint16_t))
5321  return 0;
5322  ;
5323  return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext
5327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328  (eval $ac_compile) 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } &&
5335	 { ac_try='test -z "$ac_c_werror_flag"
5336			 || test ! -s conftest.err'
5337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338  (eval $ac_try) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }; } &&
5342	 { ac_try='test -s conftest.$ac_objext'
5343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344  (eval $ac_try) 2>&5
5345  ac_status=$?
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); }; }; then
5348  ac_cv_type_uint16_t=yes
5349else
5350  echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353ac_cv_type_uint16_t=no
5354fi
5355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356fi
5357echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5358echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5359if test $ac_cv_type_uint16_t = yes; then
5360  cat >>confdefs.h <<\_ACEOF
5361#define u_int16_t uint16_t
5362_ACEOF
5363
5364else
5365  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5
5366echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
5367   { (exit 1); exit 1; }; }
5368fi
5369
5370
5371fi
5372
5373
5374
5375	echo "$as_me:$LINENO: checking for uint32_t" >&5
5376echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5377if test "${ac_cv_type_uint32_t+set}" = set; then
5378  echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380  cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h.  */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h.  */
5386$ac_includes_default
5387int
5388main ()
5389{
5390if ((uint32_t *) 0)
5391  return 0;
5392if (sizeof (uint32_t))
5393  return 0;
5394  ;
5395  return 0;
5396}
5397_ACEOF
5398rm -f conftest.$ac_objext
5399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400  (eval $ac_compile) 2>conftest.er1
5401  ac_status=$?
5402  grep -v '^ *+' conftest.er1 >conftest.err
5403  rm -f conftest.er1
5404  cat conftest.err >&5
5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406  (exit $ac_status); } &&
5407	 { ac_try='test -z "$ac_c_werror_flag"
5408			 || test ! -s conftest.err'
5409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410  (eval $ac_try) 2>&5
5411  ac_status=$?
5412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413  (exit $ac_status); }; } &&
5414	 { ac_try='test -s conftest.$ac_objext'
5415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416  (eval $ac_try) 2>&5
5417  ac_status=$?
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); }; }; then
5420  ac_cv_type_uint32_t=yes
5421else
5422  echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425ac_cv_type_uint32_t=no
5426fi
5427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428fi
5429echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5430echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5431if test $ac_cv_type_uint32_t = yes; then
5432  :
5433else
5434
5435		echo "$as_me:$LINENO: checking for u_int32_t" >&5
5436echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5437if test "${ac_cv_type_u_int32_t+set}" = set; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440  cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h.  */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h.  */
5446$ac_includes_default
5447int
5448main ()
5449{
5450if ((u_int32_t *) 0)
5451  return 0;
5452if (sizeof (u_int32_t))
5453  return 0;
5454  ;
5455  return 0;
5456}
5457_ACEOF
5458rm -f conftest.$ac_objext
5459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460  (eval $ac_compile) 2>conftest.er1
5461  ac_status=$?
5462  grep -v '^ *+' conftest.er1 >conftest.err
5463  rm -f conftest.er1
5464  cat conftest.err >&5
5465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466  (exit $ac_status); } &&
5467	 { ac_try='test -z "$ac_c_werror_flag"
5468			 || test ! -s conftest.err'
5469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470  (eval $ac_try) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }; } &&
5474	 { ac_try='test -s conftest.$ac_objext'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; }; then
5480  ac_cv_type_u_int32_t=yes
5481else
5482  echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485ac_cv_type_u_int32_t=no
5486fi
5487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488fi
5489echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5490echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5491if test $ac_cv_type_u_int32_t = yes; then
5492  cat >>confdefs.h <<\_ACEOF
5493#define uint32_t u_int32_t
5494_ACEOF
5495
5496else
5497  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5
5498echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
5499   { (exit 1); exit 1; }; }
5500fi
5501
5502
5503fi
5504
5505	echo "$as_me:$LINENO: checking for u_int32_t" >&5
5506echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5507if test "${ac_cv_type_u_int32_t+set}" = set; then
5508  echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510  cat >conftest.$ac_ext <<_ACEOF
5511/* confdefs.h.  */
5512_ACEOF
5513cat confdefs.h >>conftest.$ac_ext
5514cat >>conftest.$ac_ext <<_ACEOF
5515/* end confdefs.h.  */
5516$ac_includes_default
5517int
5518main ()
5519{
5520if ((u_int32_t *) 0)
5521  return 0;
5522if (sizeof (u_int32_t))
5523  return 0;
5524  ;
5525  return 0;
5526}
5527_ACEOF
5528rm -f conftest.$ac_objext
5529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530  (eval $ac_compile) 2>conftest.er1
5531  ac_status=$?
5532  grep -v '^ *+' conftest.er1 >conftest.err
5533  rm -f conftest.er1
5534  cat conftest.err >&5
5535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536  (exit $ac_status); } &&
5537	 { ac_try='test -z "$ac_c_werror_flag"
5538			 || test ! -s conftest.err'
5539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540  (eval $ac_try) 2>&5
5541  ac_status=$?
5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543  (exit $ac_status); }; } &&
5544	 { ac_try='test -s conftest.$ac_objext'
5545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546  (eval $ac_try) 2>&5
5547  ac_status=$?
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); }; }; then
5550  ac_cv_type_u_int32_t=yes
5551else
5552  echo "$as_me: failed program was:" >&5
5553sed 's/^/| /' conftest.$ac_ext >&5
5554
5555ac_cv_type_u_int32_t=no
5556fi
5557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558fi
5559echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5560echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5561if test $ac_cv_type_u_int32_t = yes; then
5562  :
5563else
5564
5565		echo "$as_me:$LINENO: checking for uint32_t" >&5
5566echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5567if test "${ac_cv_type_uint32_t+set}" = set; then
5568  echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570  cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h.  */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h.  */
5576$ac_includes_default
5577int
5578main ()
5579{
5580if ((uint32_t *) 0)
5581  return 0;
5582if (sizeof (uint32_t))
5583  return 0;
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588rm -f conftest.$ac_objext
5589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590  (eval $ac_compile) 2>conftest.er1
5591  ac_status=$?
5592  grep -v '^ *+' conftest.er1 >conftest.err
5593  rm -f conftest.er1
5594  cat conftest.err >&5
5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596  (exit $ac_status); } &&
5597	 { ac_try='test -z "$ac_c_werror_flag"
5598			 || test ! -s conftest.err'
5599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600  (eval $ac_try) 2>&5
5601  ac_status=$?
5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); }; } &&
5604	 { ac_try='test -s conftest.$ac_objext'
5605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606  (eval $ac_try) 2>&5
5607  ac_status=$?
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); }; }; then
5610  ac_cv_type_uint32_t=yes
5611else
5612  echo "$as_me: failed program was:" >&5
5613sed 's/^/| /' conftest.$ac_ext >&5
5614
5615ac_cv_type_uint32_t=no
5616fi
5617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5618fi
5619echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5620echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5621if test $ac_cv_type_uint32_t = yes; then
5622  cat >>confdefs.h <<\_ACEOF
5623#define u_int32_t uint32_t
5624_ACEOF
5625
5626else
5627  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5
5628echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
5629   { (exit 1); exit 1; }; }
5630fi
5631
5632
5633fi
5634
5635
5636
5637	echo "$as_me:$LINENO: checking for uint64_t" >&5
5638echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5639if test "${ac_cv_type_uint64_t+set}" = set; then
5640  echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642  cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h.  */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h.  */
5648$ac_includes_default
5649int
5650main ()
5651{
5652if ((uint64_t *) 0)
5653  return 0;
5654if (sizeof (uint64_t))
5655  return 0;
5656  ;
5657  return 0;
5658}
5659_ACEOF
5660rm -f conftest.$ac_objext
5661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662  (eval $ac_compile) 2>conftest.er1
5663  ac_status=$?
5664  grep -v '^ *+' conftest.er1 >conftest.err
5665  rm -f conftest.er1
5666  cat conftest.err >&5
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); } &&
5669	 { ac_try='test -z "$ac_c_werror_flag"
5670			 || test ! -s conftest.err'
5671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672  (eval $ac_try) 2>&5
5673  ac_status=$?
5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675  (exit $ac_status); }; } &&
5676	 { ac_try='test -s conftest.$ac_objext'
5677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678  (eval $ac_try) 2>&5
5679  ac_status=$?
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); }; }; then
5682  ac_cv_type_uint64_t=yes
5683else
5684  echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687ac_cv_type_uint64_t=no
5688fi
5689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690fi
5691echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5692echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5693if test $ac_cv_type_uint64_t = yes; then
5694  :
5695else
5696
5697		echo "$as_me:$LINENO: checking for u_int64_t" >&5
5698echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5699if test "${ac_cv_type_u_int64_t+set}" = set; then
5700  echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702  cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h.  */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h.  */
5708$ac_includes_default
5709int
5710main ()
5711{
5712if ((u_int64_t *) 0)
5713  return 0;
5714if (sizeof (u_int64_t))
5715  return 0;
5716  ;
5717  return 0;
5718}
5719_ACEOF
5720rm -f conftest.$ac_objext
5721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722  (eval $ac_compile) 2>conftest.er1
5723  ac_status=$?
5724  grep -v '^ *+' conftest.er1 >conftest.err
5725  rm -f conftest.er1
5726  cat conftest.err >&5
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); } &&
5729	 { ac_try='test -z "$ac_c_werror_flag"
5730			 || test ! -s conftest.err'
5731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732  (eval $ac_try) 2>&5
5733  ac_status=$?
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); }; } &&
5736	 { ac_try='test -s conftest.$ac_objext'
5737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738  (eval $ac_try) 2>&5
5739  ac_status=$?
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); }; }; then
5742  ac_cv_type_u_int64_t=yes
5743else
5744  echo "$as_me: failed program was:" >&5
5745sed 's/^/| /' conftest.$ac_ext >&5
5746
5747ac_cv_type_u_int64_t=no
5748fi
5749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5750fi
5751echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5752echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5753if test $ac_cv_type_u_int64_t = yes; then
5754  cat >>confdefs.h <<\_ACEOF
5755#define uint64_t u_int64_t
5756_ACEOF
5757
5758else
5759  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5
5760echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
5761   { (exit 1); exit 1; }; }
5762fi
5763
5764
5765fi
5766
5767	echo "$as_me:$LINENO: checking for u_int64_t" >&5
5768echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5769if test "${ac_cv_type_u_int64_t+set}" = set; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h.  */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h.  */
5778$ac_includes_default
5779int
5780main ()
5781{
5782if ((u_int64_t *) 0)
5783  return 0;
5784if (sizeof (u_int64_t))
5785  return 0;
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792  (eval $ac_compile) 2>conftest.er1
5793  ac_status=$?
5794  grep -v '^ *+' conftest.er1 >conftest.err
5795  rm -f conftest.er1
5796  cat conftest.err >&5
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); } &&
5799	 { ac_try='test -z "$ac_c_werror_flag"
5800			 || test ! -s conftest.err'
5801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802  (eval $ac_try) 2>&5
5803  ac_status=$?
5804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805  (exit $ac_status); }; } &&
5806	 { ac_try='test -s conftest.$ac_objext'
5807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808  (eval $ac_try) 2>&5
5809  ac_status=$?
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); }; }; then
5812  ac_cv_type_u_int64_t=yes
5813else
5814  echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817ac_cv_type_u_int64_t=no
5818fi
5819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5820fi
5821echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5822echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5823if test $ac_cv_type_u_int64_t = yes; then
5824  :
5825else
5826
5827		echo "$as_me:$LINENO: checking for uint64_t" >&5
5828echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5829if test "${ac_cv_type_uint64_t+set}" = set; then
5830  echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832  cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h.  */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h.  */
5838$ac_includes_default
5839int
5840main ()
5841{
5842if ((uint64_t *) 0)
5843  return 0;
5844if (sizeof (uint64_t))
5845  return 0;
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850rm -f conftest.$ac_objext
5851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852  (eval $ac_compile) 2>conftest.er1
5853  ac_status=$?
5854  grep -v '^ *+' conftest.er1 >conftest.err
5855  rm -f conftest.er1
5856  cat conftest.err >&5
5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858  (exit $ac_status); } &&
5859	 { ac_try='test -z "$ac_c_werror_flag"
5860			 || test ! -s conftest.err'
5861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862  (eval $ac_try) 2>&5
5863  ac_status=$?
5864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); }; } &&
5866	 { ac_try='test -s conftest.$ac_objext'
5867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868  (eval $ac_try) 2>&5
5869  ac_status=$?
5870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871  (exit $ac_status); }; }; then
5872  ac_cv_type_uint64_t=yes
5873else
5874  echo "$as_me: failed program was:" >&5
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877ac_cv_type_uint64_t=no
5878fi
5879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5880fi
5881echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5882echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5883if test $ac_cv_type_uint64_t = yes; then
5884  cat >>confdefs.h <<\_ACEOF
5885#define u_int64_t uint64_t
5886_ACEOF
5887
5888else
5889  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5
5890echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
5891   { (exit 1); exit 1; }; }
5892fi
5893
5894
5895fi
5896
5897
5898
5899# Struct members.
5900echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
5901echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
5902if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
5903  echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905  cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h.  */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h.  */
5911#include <sys/types.h>
5912#include <dirent.h>
5913
5914int
5915main ()
5916{
5917static DIR ac_aggr;
5918if (ac_aggr.dd_fd)
5919return 0;
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926  (eval $ac_compile) 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } &&
5933	 { ac_try='test -z "$ac_c_werror_flag"
5934			 || test ! -s conftest.err'
5935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936  (eval $ac_try) 2>&5
5937  ac_status=$?
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); }; } &&
5940	 { ac_try='test -s conftest.$ac_objext'
5941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942  (eval $ac_try) 2>&5
5943  ac_status=$?
5944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); }; }; then
5946  ac_cv_member_DIR_dd_fd=yes
5947else
5948  echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951cat >conftest.$ac_ext <<_ACEOF
5952/* confdefs.h.  */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
5956/* end confdefs.h.  */
5957#include <sys/types.h>
5958#include <dirent.h>
5959
5960int
5961main ()
5962{
5963static DIR ac_aggr;
5964if (sizeof ac_aggr.dd_fd)
5965return 0;
5966  ;
5967  return 0;
5968}
5969_ACEOF
5970rm -f conftest.$ac_objext
5971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972  (eval $ac_compile) 2>conftest.er1
5973  ac_status=$?
5974  grep -v '^ *+' conftest.er1 >conftest.err
5975  rm -f conftest.er1
5976  cat conftest.err >&5
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); } &&
5979	 { ac_try='test -z "$ac_c_werror_flag"
5980			 || test ! -s conftest.err'
5981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982  (eval $ac_try) 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); }; } &&
5986	 { ac_try='test -s conftest.$ac_objext'
5987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988  (eval $ac_try) 2>&5
5989  ac_status=$?
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); }; }; then
5992  ac_cv_member_DIR_dd_fd=yes
5993else
5994  echo "$as_me: failed program was:" >&5
5995sed 's/^/| /' conftest.$ac_ext >&5
5996
5997ac_cv_member_DIR_dd_fd=no
5998fi
5999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6000fi
6001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002fi
6003echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
6004echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
6005if test $ac_cv_member_DIR_dd_fd = yes; then
6006
6007cat >>confdefs.h <<_ACEOF
6008#define HAVE_DIR_DD_FD 1
6009_ACEOF
6010
6011
6012fi
6013echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
6014echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
6015if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h.  */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h.  */
6024#include <sys/types.h>
6025#include <dirent.h>
6026
6027int
6028main ()
6029{
6030static struct dirent ac_aggr;
6031if (ac_aggr.d_namlen)
6032return 0;
6033  ;
6034  return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext
6038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039  (eval $ac_compile) 2>conftest.er1
6040  ac_status=$?
6041  grep -v '^ *+' conftest.er1 >conftest.err
6042  rm -f conftest.er1
6043  cat conftest.err >&5
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); } &&
6046	 { ac_try='test -z "$ac_c_werror_flag"
6047			 || test ! -s conftest.err'
6048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049  (eval $ac_try) 2>&5
6050  ac_status=$?
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); }; } &&
6053	 { ac_try='test -s conftest.$ac_objext'
6054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055  (eval $ac_try) 2>&5
6056  ac_status=$?
6057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058  (exit $ac_status); }; }; then
6059  ac_cv_member_struct_dirent_d_namlen=yes
6060else
6061  echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h.  */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h.  */
6070#include <sys/types.h>
6071#include <dirent.h>
6072
6073int
6074main ()
6075{
6076static struct dirent ac_aggr;
6077if (sizeof ac_aggr.d_namlen)
6078return 0;
6079  ;
6080  return 0;
6081}
6082_ACEOF
6083rm -f conftest.$ac_objext
6084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085  (eval $ac_compile) 2>conftest.er1
6086  ac_status=$?
6087  grep -v '^ *+' conftest.er1 >conftest.err
6088  rm -f conftest.er1
6089  cat conftest.err >&5
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); } &&
6092	 { ac_try='test -z "$ac_c_werror_flag"
6093			 || test ! -s conftest.err'
6094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095  (eval $ac_try) 2>&5
6096  ac_status=$?
6097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098  (exit $ac_status); }; } &&
6099	 { ac_try='test -s conftest.$ac_objext'
6100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101  (eval $ac_try) 2>&5
6102  ac_status=$?
6103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104  (exit $ac_status); }; }; then
6105  ac_cv_member_struct_dirent_d_namlen=yes
6106else
6107  echo "$as_me: failed program was:" >&5
6108sed 's/^/| /' conftest.$ac_ext >&5
6109
6110ac_cv_member_struct_dirent_d_namlen=no
6111fi
6112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113fi
6114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6115fi
6116echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
6117echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
6118if test $ac_cv_member_struct_dirent_d_namlen = yes; then
6119
6120cat >>confdefs.h <<_ACEOF
6121#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
6122_ACEOF
6123
6124
6125fi
6126
6127echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
6128echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
6129if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
6130  echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132  cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h.  */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h.  */
6138#include <sys/stat.h>
6139
6140int
6141main ()
6142{
6143static struct stat ac_aggr;
6144if (ac_aggr.st_flags)
6145return 0;
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150rm -f conftest.$ac_objext
6151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152  (eval $ac_compile) 2>conftest.er1
6153  ac_status=$?
6154  grep -v '^ *+' conftest.er1 >conftest.err
6155  rm -f conftest.er1
6156  cat conftest.err >&5
6157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); } &&
6159	 { ac_try='test -z "$ac_c_werror_flag"
6160			 || test ! -s conftest.err'
6161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162  (eval $ac_try) 2>&5
6163  ac_status=$?
6164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165  (exit $ac_status); }; } &&
6166	 { ac_try='test -s conftest.$ac_objext'
6167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168  (eval $ac_try) 2>&5
6169  ac_status=$?
6170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171  (exit $ac_status); }; }; then
6172  ac_cv_member_struct_stat_st_flags=yes
6173else
6174  echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
6177cat >conftest.$ac_ext <<_ACEOF
6178/* confdefs.h.  */
6179_ACEOF
6180cat confdefs.h >>conftest.$ac_ext
6181cat >>conftest.$ac_ext <<_ACEOF
6182/* end confdefs.h.  */
6183#include <sys/stat.h>
6184
6185int
6186main ()
6187{
6188static struct stat ac_aggr;
6189if (sizeof ac_aggr.st_flags)
6190return 0;
6191  ;
6192  return 0;
6193}
6194_ACEOF
6195rm -f conftest.$ac_objext
6196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197  (eval $ac_compile) 2>conftest.er1
6198  ac_status=$?
6199  grep -v '^ *+' conftest.er1 >conftest.err
6200  rm -f conftest.er1
6201  cat conftest.err >&5
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); } &&
6204	 { ac_try='test -z "$ac_c_werror_flag"
6205			 || test ! -s conftest.err'
6206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207  (eval $ac_try) 2>&5
6208  ac_status=$?
6209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210  (exit $ac_status); }; } &&
6211	 { ac_try='test -s conftest.$ac_objext'
6212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213  (eval $ac_try) 2>&5
6214  ac_status=$?
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); }; }; then
6217  ac_cv_member_struct_stat_st_flags=yes
6218else
6219  echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222ac_cv_member_struct_stat_st_flags=no
6223fi
6224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6227fi
6228echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
6229echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
6230if test $ac_cv_member_struct_stat_st_flags = yes; then
6231
6232cat >>confdefs.h <<_ACEOF
6233#define HAVE_STRUCT_STAT_ST_FLAGS 1
6234_ACEOF
6235
6236
6237fi
6238echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
6239echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
6240if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
6241  echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243  cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h.  */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h.  */
6249#include <sys/stat.h>
6250
6251int
6252main ()
6253{
6254static struct stat ac_aggr;
6255if (ac_aggr.st_gen)
6256return 0;
6257  ;
6258  return 0;
6259}
6260_ACEOF
6261rm -f conftest.$ac_objext
6262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263  (eval $ac_compile) 2>conftest.er1
6264  ac_status=$?
6265  grep -v '^ *+' conftest.er1 >conftest.err
6266  rm -f conftest.er1
6267  cat conftest.err >&5
6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); } &&
6270	 { ac_try='test -z "$ac_c_werror_flag"
6271			 || test ! -s conftest.err'
6272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273  (eval $ac_try) 2>&5
6274  ac_status=$?
6275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276  (exit $ac_status); }; } &&
6277	 { ac_try='test -s conftest.$ac_objext'
6278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279  (eval $ac_try) 2>&5
6280  ac_status=$?
6281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282  (exit $ac_status); }; }; then
6283  ac_cv_member_struct_stat_st_gen=yes
6284else
6285  echo "$as_me: failed program was:" >&5
6286sed 's/^/| /' conftest.$ac_ext >&5
6287
6288cat >conftest.$ac_ext <<_ACEOF
6289/* confdefs.h.  */
6290_ACEOF
6291cat confdefs.h >>conftest.$ac_ext
6292cat >>conftest.$ac_ext <<_ACEOF
6293/* end confdefs.h.  */
6294#include <sys/stat.h>
6295
6296int
6297main ()
6298{
6299static struct stat ac_aggr;
6300if (sizeof ac_aggr.st_gen)
6301return 0;
6302  ;
6303  return 0;
6304}
6305_ACEOF
6306rm -f conftest.$ac_objext
6307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308  (eval $ac_compile) 2>conftest.er1
6309  ac_status=$?
6310  grep -v '^ *+' conftest.er1 >conftest.err
6311  rm -f conftest.er1
6312  cat conftest.err >&5
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); } &&
6315	 { ac_try='test -z "$ac_c_werror_flag"
6316			 || test ! -s conftest.err'
6317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318  (eval $ac_try) 2>&5
6319  ac_status=$?
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); }; } &&
6322	 { ac_try='test -s conftest.$ac_objext'
6323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324  (eval $ac_try) 2>&5
6325  ac_status=$?
6326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); }; }; then
6328  ac_cv_member_struct_stat_st_gen=yes
6329else
6330  echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333ac_cv_member_struct_stat_st_gen=no
6334fi
6335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336fi
6337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338fi
6339echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
6340echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
6341if test $ac_cv_member_struct_stat_st_gen = yes; then
6342
6343cat >>confdefs.h <<_ACEOF
6344#define HAVE_STRUCT_STAT_ST_GEN 1
6345_ACEOF
6346
6347
6348fi
6349echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
6350echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
6351if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
6352  echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354  cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h.  */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h.  */
6360#include <sys/stat.h>
6361
6362int
6363main ()
6364{
6365static struct stat ac_aggr;
6366if (ac_aggr.st_birthtime)
6367return 0;
6368  ;
6369  return 0;
6370}
6371_ACEOF
6372rm -f conftest.$ac_objext
6373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374  (eval $ac_compile) 2>conftest.er1
6375  ac_status=$?
6376  grep -v '^ *+' conftest.er1 >conftest.err
6377  rm -f conftest.er1
6378  cat conftest.err >&5
6379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380  (exit $ac_status); } &&
6381	 { ac_try='test -z "$ac_c_werror_flag"
6382			 || test ! -s conftest.err'
6383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384  (eval $ac_try) 2>&5
6385  ac_status=$?
6386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387  (exit $ac_status); }; } &&
6388	 { ac_try='test -s conftest.$ac_objext'
6389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390  (eval $ac_try) 2>&5
6391  ac_status=$?
6392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393  (exit $ac_status); }; }; then
6394  ac_cv_member_struct_stat_st_birthtime=yes
6395else
6396  echo "$as_me: failed program was:" >&5
6397sed 's/^/| /' conftest.$ac_ext >&5
6398
6399cat >conftest.$ac_ext <<_ACEOF
6400/* confdefs.h.  */
6401_ACEOF
6402cat confdefs.h >>conftest.$ac_ext
6403cat >>conftest.$ac_ext <<_ACEOF
6404/* end confdefs.h.  */
6405#include <sys/stat.h>
6406
6407int
6408main ()
6409{
6410static struct stat ac_aggr;
6411if (sizeof ac_aggr.st_birthtime)
6412return 0;
6413  ;
6414  return 0;
6415}
6416_ACEOF
6417rm -f conftest.$ac_objext
6418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419  (eval $ac_compile) 2>conftest.er1
6420  ac_status=$?
6421  grep -v '^ *+' conftest.er1 >conftest.err
6422  rm -f conftest.er1
6423  cat conftest.err >&5
6424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425  (exit $ac_status); } &&
6426	 { ac_try='test -z "$ac_c_werror_flag"
6427			 || test ! -s conftest.err'
6428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429  (eval $ac_try) 2>&5
6430  ac_status=$?
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); }; } &&
6433	 { ac_try='test -s conftest.$ac_objext'
6434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435  (eval $ac_try) 2>&5
6436  ac_status=$?
6437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438  (exit $ac_status); }; }; then
6439  ac_cv_member_struct_stat_st_birthtime=yes
6440else
6441  echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
6443
6444ac_cv_member_struct_stat_st_birthtime=no
6445fi
6446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447fi
6448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449fi
6450echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
6451echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
6452if test $ac_cv_member_struct_stat_st_birthtime = yes; then
6453
6454cat >>confdefs.h <<_ACEOF
6455#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
6456_ACEOF
6457
6458
6459fi
6460echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
6461echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
6462if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
6463  echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465  cat >conftest.$ac_ext <<_ACEOF
6466/* confdefs.h.  */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h.  */
6471#include <sys/stat.h>
6472
6473int
6474main ()
6475{
6476static struct stat ac_aggr;
6477if (ac_aggr.st_atim)
6478return 0;
6479  ;
6480  return 0;
6481}
6482_ACEOF
6483rm -f conftest.$ac_objext
6484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485  (eval $ac_compile) 2>conftest.er1
6486  ac_status=$?
6487  grep -v '^ *+' conftest.er1 >conftest.err
6488  rm -f conftest.er1
6489  cat conftest.err >&5
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); } &&
6492	 { ac_try='test -z "$ac_c_werror_flag"
6493			 || test ! -s conftest.err'
6494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495  (eval $ac_try) 2>&5
6496  ac_status=$?
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); }; } &&
6499	 { ac_try='test -s conftest.$ac_objext'
6500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501  (eval $ac_try) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; }; then
6505  ac_cv_member_struct_stat_st_atim=yes
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h.  */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h.  */
6516#include <sys/stat.h>
6517
6518int
6519main ()
6520{
6521static struct stat ac_aggr;
6522if (sizeof ac_aggr.st_atim)
6523return 0;
6524  ;
6525  return 0;
6526}
6527_ACEOF
6528rm -f conftest.$ac_objext
6529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530  (eval $ac_compile) 2>conftest.er1
6531  ac_status=$?
6532  grep -v '^ *+' conftest.er1 >conftest.err
6533  rm -f conftest.er1
6534  cat conftest.err >&5
6535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536  (exit $ac_status); } &&
6537	 { ac_try='test -z "$ac_c_werror_flag"
6538			 || test ! -s conftest.err'
6539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540  (eval $ac_try) 2>&5
6541  ac_status=$?
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; } &&
6544	 { ac_try='test -s conftest.$ac_objext'
6545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546  (eval $ac_try) 2>&5
6547  ac_status=$?
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); }; }; then
6550  ac_cv_member_struct_stat_st_atim=yes
6551else
6552  echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555ac_cv_member_struct_stat_st_atim=no
6556fi
6557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558fi
6559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560fi
6561echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
6562echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
6563if test $ac_cv_member_struct_stat_st_atim = yes; then
6564
6565cat >>confdefs.h <<_ACEOF
6566#define HAVE_STRUCT_STAT_ST_ATIM 1
6567_ACEOF
6568
6569
6570fi
6571echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
6572echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
6573if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
6574  echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576  cat >conftest.$ac_ext <<_ACEOF
6577/* confdefs.h.  */
6578_ACEOF
6579cat confdefs.h >>conftest.$ac_ext
6580cat >>conftest.$ac_ext <<_ACEOF
6581/* end confdefs.h.  */
6582#include <sys/stat.h>
6583
6584int
6585main ()
6586{
6587static struct stat ac_aggr;
6588if (ac_aggr.st_mtimensec)
6589return 0;
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext
6595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596  (eval $ac_compile) 2>conftest.er1
6597  ac_status=$?
6598  grep -v '^ *+' conftest.er1 >conftest.err
6599  rm -f conftest.er1
6600  cat conftest.err >&5
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); } &&
6603	 { ac_try='test -z "$ac_c_werror_flag"
6604			 || test ! -s conftest.err'
6605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606  (eval $ac_try) 2>&5
6607  ac_status=$?
6608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609  (exit $ac_status); }; } &&
6610	 { ac_try='test -s conftest.$ac_objext'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; }; then
6616  ac_cv_member_struct_stat_st_mtimensec=yes
6617else
6618  echo "$as_me: failed program was:" >&5
6619sed 's/^/| /' conftest.$ac_ext >&5
6620
6621cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h.  */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h.  */
6627#include <sys/stat.h>
6628
6629int
6630main ()
6631{
6632static struct stat ac_aggr;
6633if (sizeof ac_aggr.st_mtimensec)
6634return 0;
6635  ;
6636  return 0;
6637}
6638_ACEOF
6639rm -f conftest.$ac_objext
6640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6641  (eval $ac_compile) 2>conftest.er1
6642  ac_status=$?
6643  grep -v '^ *+' conftest.er1 >conftest.err
6644  rm -f conftest.er1
6645  cat conftest.err >&5
6646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647  (exit $ac_status); } &&
6648	 { ac_try='test -z "$ac_c_werror_flag"
6649			 || test ! -s conftest.err'
6650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651  (eval $ac_try) 2>&5
6652  ac_status=$?
6653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654  (exit $ac_status); }; } &&
6655	 { ac_try='test -s conftest.$ac_objext'
6656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657  (eval $ac_try) 2>&5
6658  ac_status=$?
6659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660  (exit $ac_status); }; }; then
6661  ac_cv_member_struct_stat_st_mtimensec=yes
6662else
6663  echo "$as_me: failed program was:" >&5
6664sed 's/^/| /' conftest.$ac_ext >&5
6665
6666ac_cv_member_struct_stat_st_mtimensec=no
6667fi
6668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6669fi
6670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6671fi
6672echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
6673echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
6674if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
6675
6676cat >>confdefs.h <<_ACEOF
6677#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
6678_ACEOF
6679
6680
6681fi
6682
6683echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5
6684echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
6685if test "${ac_cv_member_struct_statvfs_f_iosize+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/statvfs.h>
6695
6696int
6697main ()
6698{
6699static struct statvfs ac_aggr;
6700if (ac_aggr.f_iosize)
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_statvfs_f_iosize=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/statvfs.h>
6740
6741int
6742main ()
6743{
6744static struct statvfs ac_aggr;
6745if (sizeof ac_aggr.f_iosize)
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_statvfs_f_iosize=yes
6774else
6775  echo "$as_me: failed program was:" >&5
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
6778ac_cv_member_struct_statvfs_f_iosize=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_statvfs_f_iosize" >&5
6785echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
6786if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
6787
6788cat >>confdefs.h <<_ACEOF
6789#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
6790_ACEOF
6791
6792
6793fi
6794
6795
6796# Global variable decls.
6797echo "$as_me:$LINENO: checking whether optind is declared" >&5
6798echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
6799if test "${ac_cv_have_decl_optind+set}" = set; then
6800  echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808
6809#include <stdio.h>
6810#include <stdlib.h>
6811#include <unistd.h>
6812
6813
6814int
6815main ()
6816{
6817#ifndef optind
6818  char *p = (char *) optind;
6819#endif
6820
6821  ;
6822  return 0;
6823}
6824_ACEOF
6825rm -f conftest.$ac_objext
6826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827  (eval $ac_compile) 2>conftest.er1
6828  ac_status=$?
6829  grep -v '^ *+' conftest.er1 >conftest.err
6830  rm -f conftest.er1
6831  cat conftest.err >&5
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); } &&
6834	 { ac_try='test -z "$ac_c_werror_flag"
6835			 || test ! -s conftest.err'
6836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837  (eval $ac_try) 2>&5
6838  ac_status=$?
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); }; } &&
6841	 { ac_try='test -s conftest.$ac_objext'
6842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843  (eval $ac_try) 2>&5
6844  ac_status=$?
6845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846  (exit $ac_status); }; }; then
6847  ac_cv_have_decl_optind=yes
6848else
6849  echo "$as_me: failed program was:" >&5
6850sed 's/^/| /' conftest.$ac_ext >&5
6851
6852ac_cv_have_decl_optind=no
6853fi
6854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6855fi
6856echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
6857echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
6858if test $ac_cv_have_decl_optind = yes; then
6859
6860cat >>confdefs.h <<_ACEOF
6861#define HAVE_DECL_OPTIND 1
6862_ACEOF
6863
6864
6865else
6866  cat >>confdefs.h <<_ACEOF
6867#define HAVE_DECL_OPTIND 0
6868_ACEOF
6869
6870
6871fi
6872echo "$as_me:$LINENO: checking whether optreset is declared" >&5
6873echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
6874if test "${ac_cv_have_decl_optreset+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877  cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h.  */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h.  */
6883
6884#include <stdio.h>
6885#include <stdlib.h>
6886#include <unistd.h>
6887
6888
6889int
6890main ()
6891{
6892#ifndef optreset
6893  char *p = (char *) optreset;
6894#endif
6895
6896  ;
6897  return 0;
6898}
6899_ACEOF
6900rm -f conftest.$ac_objext
6901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902  (eval $ac_compile) 2>conftest.er1
6903  ac_status=$?
6904  grep -v '^ *+' conftest.er1 >conftest.err
6905  rm -f conftest.er1
6906  cat conftest.err >&5
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); } &&
6909	 { ac_try='test -z "$ac_c_werror_flag"
6910			 || test ! -s conftest.err'
6911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912  (eval $ac_try) 2>&5
6913  ac_status=$?
6914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915  (exit $ac_status); }; } &&
6916	 { ac_try='test -s conftest.$ac_objext'
6917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918  (eval $ac_try) 2>&5
6919  ac_status=$?
6920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); }; }; then
6922  ac_cv_have_decl_optreset=yes
6923else
6924  echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927ac_cv_have_decl_optreset=no
6928fi
6929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
6932echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
6933if test $ac_cv_have_decl_optreset = yes; then
6934
6935cat >>confdefs.h <<_ACEOF
6936#define HAVE_DECL_OPTRESET 1
6937_ACEOF
6938
6939
6940else
6941  cat >>confdefs.h <<_ACEOF
6942#define HAVE_DECL_OPTRESET 0
6943_ACEOF
6944
6945
6946fi
6947
6948
6949echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
6950echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
6951if test "${ac_cv_have_decl_sys_signame+set}" = set; then
6952  echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954  cat >conftest.$ac_ext <<_ACEOF
6955/* confdefs.h.  */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h.  */
6960#include <signal.h>
6961
6962int
6963main ()
6964{
6965#ifndef sys_signame
6966  char *p = (char *) sys_signame;
6967#endif
6968
6969  ;
6970  return 0;
6971}
6972_ACEOF
6973rm -f conftest.$ac_objext
6974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6975  (eval $ac_compile) 2>conftest.er1
6976  ac_status=$?
6977  grep -v '^ *+' conftest.er1 >conftest.err
6978  rm -f conftest.er1
6979  cat conftest.err >&5
6980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981  (exit $ac_status); } &&
6982	 { ac_try='test -z "$ac_c_werror_flag"
6983			 || test ! -s conftest.err'
6984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985  (eval $ac_try) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); }; } &&
6989	 { ac_try='test -s conftest.$ac_objext'
6990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991  (eval $ac_try) 2>&5
6992  ac_status=$?
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); }; }; then
6995  ac_cv_have_decl_sys_signame=yes
6996else
6997  echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000ac_cv_have_decl_sys_signame=no
7001fi
7002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003fi
7004echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
7005echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
7006if test $ac_cv_have_decl_sys_signame = yes; then
7007
7008cat >>confdefs.h <<_ACEOF
7009#define HAVE_DECL_SYS_SIGNAME 1
7010_ACEOF
7011
7012
7013else
7014  cat >>confdefs.h <<_ACEOF
7015#define HAVE_DECL_SYS_SIGNAME 0
7016_ACEOF
7017
7018
7019fi
7020
7021
7022
7023# Library functions (where a .h check isn't enough).
7024# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7025# for constant arguments.  Useless!
7026echo "$as_me:$LINENO: checking for working alloca.h" >&5
7027echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7028if test "${ac_cv_working_alloca_h+set}" = set; then
7029  echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031  cat >conftest.$ac_ext <<_ACEOF
7032/* confdefs.h.  */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h.  */
7037#include <alloca.h>
7038int
7039main ()
7040{
7041char *p = (char *) alloca (2 * sizeof (int));
7042  ;
7043  return 0;
7044}
7045_ACEOF
7046rm -f conftest.$ac_objext conftest$ac_exeext
7047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7048  (eval $ac_link) 2>conftest.er1
7049  ac_status=$?
7050  grep -v '^ *+' conftest.er1 >conftest.err
7051  rm -f conftest.er1
7052  cat conftest.err >&5
7053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054  (exit $ac_status); } &&
7055	 { ac_try='test -z "$ac_c_werror_flag"
7056			 || test ! -s conftest.err'
7057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058  (eval $ac_try) 2>&5
7059  ac_status=$?
7060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061  (exit $ac_status); }; } &&
7062	 { ac_try='test -s conftest$ac_exeext'
7063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064  (eval $ac_try) 2>&5
7065  ac_status=$?
7066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067  (exit $ac_status); }; }; then
7068  ac_cv_working_alloca_h=yes
7069else
7070  echo "$as_me: failed program was:" >&5
7071sed 's/^/| /' conftest.$ac_ext >&5
7072
7073ac_cv_working_alloca_h=no
7074fi
7075rm -f conftest.err conftest.$ac_objext \
7076      conftest$ac_exeext conftest.$ac_ext
7077fi
7078echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7079echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7080if test $ac_cv_working_alloca_h = yes; then
7081
7082cat >>confdefs.h <<\_ACEOF
7083#define HAVE_ALLOCA_H 1
7084_ACEOF
7085
7086fi
7087
7088echo "$as_me:$LINENO: checking for alloca" >&5
7089echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7090if test "${ac_cv_func_alloca_works+set}" = set; then
7091  echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093  cat >conftest.$ac_ext <<_ACEOF
7094/* confdefs.h.  */
7095_ACEOF
7096cat confdefs.h >>conftest.$ac_ext
7097cat >>conftest.$ac_ext <<_ACEOF
7098/* end confdefs.h.  */
7099#ifdef __GNUC__
7100# define alloca __builtin_alloca
7101#else
7102# ifdef _MSC_VER
7103#  include <malloc.h>
7104#  define alloca _alloca
7105# else
7106#  if HAVE_ALLOCA_H
7107#   include <alloca.h>
7108#  else
7109#   ifdef _AIX
7110 #pragma alloca
7111#   else
7112#    ifndef alloca /* predefined by HP cc +Olibcalls */
7113char *alloca ();
7114#    endif
7115#   endif
7116#  endif
7117# endif
7118#endif
7119
7120int
7121main ()
7122{
7123char *p = (char *) alloca (1);
7124  ;
7125  return 0;
7126}
7127_ACEOF
7128rm -f conftest.$ac_objext conftest$ac_exeext
7129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130  (eval $ac_link) 2>conftest.er1
7131  ac_status=$?
7132  grep -v '^ *+' conftest.er1 >conftest.err
7133  rm -f conftest.er1
7134  cat conftest.err >&5
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); } &&
7137	 { ac_try='test -z "$ac_c_werror_flag"
7138			 || test ! -s conftest.err'
7139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140  (eval $ac_try) 2>&5
7141  ac_status=$?
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); }; } &&
7144	 { ac_try='test -s conftest$ac_exeext'
7145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146  (eval $ac_try) 2>&5
7147  ac_status=$?
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); }; }; then
7150  ac_cv_func_alloca_works=yes
7151else
7152  echo "$as_me: failed program was:" >&5
7153sed 's/^/| /' conftest.$ac_ext >&5
7154
7155ac_cv_func_alloca_works=no
7156fi
7157rm -f conftest.err conftest.$ac_objext \
7158      conftest$ac_exeext conftest.$ac_ext
7159fi
7160echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7161echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7162
7163if test $ac_cv_func_alloca_works = yes; then
7164
7165cat >>confdefs.h <<\_ACEOF
7166#define HAVE_ALLOCA 1
7167_ACEOF
7168
7169else
7170  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7171# that cause trouble.  Some versions do not even contain alloca or
7172# contain a buggy version.  If you still want to use their alloca,
7173# use ar to extract alloca.o from them instead of compiling alloca.c.
7174
7175ALLOCA=alloca.$ac_objext
7176
7177cat >>confdefs.h <<\_ACEOF
7178#define C_ALLOCA 1
7179_ACEOF
7180
7181
7182echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7183echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7184if test "${ac_cv_os_cray+set}" = set; then
7185  echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187  cat >conftest.$ac_ext <<_ACEOF
7188/* confdefs.h.  */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h.  */
7193#if defined(CRAY) && ! defined(CRAY2)
7194webecray
7195#else
7196wenotbecray
7197#endif
7198
7199_ACEOF
7200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201  $EGREP "webecray" >/dev/null 2>&1; then
7202  ac_cv_os_cray=yes
7203else
7204  ac_cv_os_cray=no
7205fi
7206rm -f conftest*
7207
7208fi
7209echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7210echo "${ECHO_T}$ac_cv_os_cray" >&6
7211if test $ac_cv_os_cray = yes; then
7212  for ac_func in _getb67 GETB67 getb67; do
7213    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7214echo "$as_me:$LINENO: checking for $ac_func" >&5
7215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7216if eval "test \"\${$as_ac_var+set}\" = set"; then
7217  echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219  cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h.  */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h.  */
7225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7227#define $ac_func innocuous_$ac_func
7228
7229/* System header to define __stub macros and hopefully few prototypes,
7230    which can conflict with char $ac_func (); below.
7231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7232    <limits.h> exists even on freestanding compilers.  */
7233
7234#ifdef __STDC__
7235# include <limits.h>
7236#else
7237# include <assert.h>
7238#endif
7239
7240#undef $ac_func
7241
7242/* Override any gcc2 internal prototype to avoid an error.  */
7243#ifdef __cplusplus
7244extern "C"
7245{
7246#endif
7247/* We use char because int might match the return type of a gcc2
7248   builtin and then its argument prototype would still apply.  */
7249char $ac_func ();
7250/* The GNU C library defines this for functions which it implements
7251    to always fail with ENOSYS.  Some functions are actually named
7252    something starting with __ and the normal name is an alias.  */
7253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7254choke me
7255#else
7256char (*f) () = $ac_func;
7257#endif
7258#ifdef __cplusplus
7259}
7260#endif
7261
7262int
7263main ()
7264{
7265return f != $ac_func;
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270rm -f conftest.$ac_objext conftest$ac_exeext
7271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272  (eval $ac_link) 2>conftest.er1
7273  ac_status=$?
7274  grep -v '^ *+' conftest.er1 >conftest.err
7275  rm -f conftest.er1
7276  cat conftest.err >&5
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); } &&
7279	 { ac_try='test -z "$ac_c_werror_flag"
7280			 || test ! -s conftest.err'
7281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282  (eval $ac_try) 2>&5
7283  ac_status=$?
7284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285  (exit $ac_status); }; } &&
7286	 { ac_try='test -s conftest$ac_exeext'
7287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288  (eval $ac_try) 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }; }; then
7292  eval "$as_ac_var=yes"
7293else
7294  echo "$as_me: failed program was:" >&5
7295sed 's/^/| /' conftest.$ac_ext >&5
7296
7297eval "$as_ac_var=no"
7298fi
7299rm -f conftest.err conftest.$ac_objext \
7300      conftest$ac_exeext conftest.$ac_ext
7301fi
7302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7304if test `eval echo '${'$as_ac_var'}'` = yes; then
7305
7306cat >>confdefs.h <<_ACEOF
7307#define CRAY_STACKSEG_END $ac_func
7308_ACEOF
7309
7310    break
7311fi
7312
7313  done
7314fi
7315
7316echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7317echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7318if test "${ac_cv_c_stack_direction+set}" = set; then
7319  echo $ECHO_N "(cached) $ECHO_C" >&6
7320else
7321  if test "$cross_compiling" = yes; then
7322  ac_cv_c_stack_direction=0
7323else
7324  cat >conftest.$ac_ext <<_ACEOF
7325/* confdefs.h.  */
7326_ACEOF
7327cat confdefs.h >>conftest.$ac_ext
7328cat >>conftest.$ac_ext <<_ACEOF
7329/* end confdefs.h.  */
7330int
7331find_stack_direction ()
7332{
7333  static char *addr = 0;
7334  auto char dummy;
7335  if (addr == 0)
7336    {
7337      addr = &dummy;
7338      return find_stack_direction ();
7339    }
7340  else
7341    return (&dummy > addr) ? 1 : -1;
7342}
7343
7344int
7345main ()
7346{
7347  exit (find_stack_direction () < 0);
7348}
7349_ACEOF
7350rm -f conftest$ac_exeext
7351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352  (eval $ac_link) 2>&5
7353  ac_status=$?
7354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357  (eval $ac_try) 2>&5
7358  ac_status=$?
7359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360  (exit $ac_status); }; }; then
7361  ac_cv_c_stack_direction=1
7362else
7363  echo "$as_me: program exited with status $ac_status" >&5
7364echo "$as_me: failed program was:" >&5
7365sed 's/^/| /' conftest.$ac_ext >&5
7366
7367( exit $ac_status )
7368ac_cv_c_stack_direction=-1
7369fi
7370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7371fi
7372fi
7373echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7374echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7375
7376cat >>confdefs.h <<_ACEOF
7377#define STACK_DIRECTION $ac_cv_c_stack_direction
7378_ACEOF
7379
7380
7381fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
7426	fgetln flock fparseln futimes getopt getopt_long group_from_gid \
7427	isblank issetugid lchflags lchmod lchown lutimes mkstemp mkdtemp \
7428	poll pread putc_unlocked pwcache_userdb pwrite random setenv \
7429	setgroupent setprogname setpassent snprintf strlcat strlcpy strsep \
7430	strsuftoll strtoll \
7431	user_from_uid vasprintf vasnprintf vsnprintf
7432do
7433as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7434echo "$as_me:$LINENO: checking for $ac_func" >&5
7435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7436if eval "test \"\${$as_ac_var+set}\" = set"; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439  cat >conftest.$ac_ext <<_ACEOF
7440/* confdefs.h.  */
7441_ACEOF
7442cat confdefs.h >>conftest.$ac_ext
7443cat >>conftest.$ac_ext <<_ACEOF
7444/* end confdefs.h.  */
7445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7446   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7447#define $ac_func innocuous_$ac_func
7448
7449/* System header to define __stub macros and hopefully few prototypes,
7450    which can conflict with char $ac_func (); below.
7451    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7452    <limits.h> exists even on freestanding compilers.  */
7453
7454#ifdef __STDC__
7455# include <limits.h>
7456#else
7457# include <assert.h>
7458#endif
7459
7460#undef $ac_func
7461
7462/* Override any gcc2 internal prototype to avoid an error.  */
7463#ifdef __cplusplus
7464extern "C"
7465{
7466#endif
7467/* We use char because int might match the return type of a gcc2
7468   builtin and then its argument prototype would still apply.  */
7469char $ac_func ();
7470/* The GNU C library defines this for functions which it implements
7471    to always fail with ENOSYS.  Some functions are actually named
7472    something starting with __ and the normal name is an alias.  */
7473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7474choke me
7475#else
7476char (*f) () = $ac_func;
7477#endif
7478#ifdef __cplusplus
7479}
7480#endif
7481
7482int
7483main ()
7484{
7485return f != $ac_func;
7486  ;
7487  return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext conftest$ac_exeext
7491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492  (eval $ac_link) 2>conftest.er1
7493  ac_status=$?
7494  grep -v '^ *+' conftest.er1 >conftest.err
7495  rm -f conftest.er1
7496  cat conftest.err >&5
7497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498  (exit $ac_status); } &&
7499	 { ac_try='test -z "$ac_c_werror_flag"
7500			 || test ! -s conftest.err'
7501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502  (eval $ac_try) 2>&5
7503  ac_status=$?
7504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505  (exit $ac_status); }; } &&
7506	 { ac_try='test -s conftest$ac_exeext'
7507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508  (eval $ac_try) 2>&5
7509  ac_status=$?
7510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511  (exit $ac_status); }; }; then
7512  eval "$as_ac_var=yes"
7513else
7514  echo "$as_me: failed program was:" >&5
7515sed 's/^/| /' conftest.$ac_ext >&5
7516
7517eval "$as_ac_var=no"
7518fi
7519rm -f conftest.err conftest.$ac_objext \
7520      conftest$ac_exeext conftest.$ac_ext
7521fi
7522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7524if test `eval echo '${'$as_ac_var'}'` = yes; then
7525  cat >>confdefs.h <<_ACEOF
7526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7527_ACEOF
7528
7529fi
7530done
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545for ac_func in htobe16, htobe32, htobe64, htole16, htole32, htole64, be16toh, be32toh, be64toh, le16toh, le32toh, le64toh
7546do
7547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7548echo "$as_me:$LINENO: checking for $ac_func" >&5
7549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7550if eval "test \"\${$as_ac_var+set}\" = set"; then
7551  echo $ECHO_N "(cached) $ECHO_C" >&6
7552else
7553  cat >conftest.$ac_ext <<_ACEOF
7554/* confdefs.h.  */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h.  */
7559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7560   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7561#define $ac_func innocuous_$ac_func
7562
7563/* System header to define __stub macros and hopefully few prototypes,
7564    which can conflict with char $ac_func (); below.
7565    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566    <limits.h> exists even on freestanding compilers.  */
7567
7568#ifdef __STDC__
7569# include <limits.h>
7570#else
7571# include <assert.h>
7572#endif
7573
7574#undef $ac_func
7575
7576/* Override any gcc2 internal prototype to avoid an error.  */
7577#ifdef __cplusplus
7578extern "C"
7579{
7580#endif
7581/* We use char because int might match the return type of a gcc2
7582   builtin and then its argument prototype would still apply.  */
7583char $ac_func ();
7584/* The GNU C library defines this for functions which it implements
7585    to always fail with ENOSYS.  Some functions are actually named
7586    something starting with __ and the normal name is an alias.  */
7587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7588choke me
7589#else
7590char (*f) () = $ac_func;
7591#endif
7592#ifdef __cplusplus
7593}
7594#endif
7595
7596int
7597main ()
7598{
7599return f != $ac_func;
7600  ;
7601  return 0;
7602}
7603_ACEOF
7604rm -f conftest.$ac_objext conftest$ac_exeext
7605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606  (eval $ac_link) 2>conftest.er1
7607  ac_status=$?
7608  grep -v '^ *+' conftest.er1 >conftest.err
7609  rm -f conftest.er1
7610  cat conftest.err >&5
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); } &&
7613	 { ac_try='test -z "$ac_c_werror_flag"
7614			 || test ! -s conftest.err'
7615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616  (eval $ac_try) 2>&5
7617  ac_status=$?
7618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619  (exit $ac_status); }; } &&
7620	 { ac_try='test -s conftest$ac_exeext'
7621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622  (eval $ac_try) 2>&5
7623  ac_status=$?
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); }; }; then
7626  eval "$as_ac_var=yes"
7627else
7628  echo "$as_me: failed program was:" >&5
7629sed 's/^/| /' conftest.$ac_ext >&5
7630
7631eval "$as_ac_var=no"
7632fi
7633rm -f conftest.err conftest.$ac_objext \
7634      conftest$ac_exeext conftest.$ac_ext
7635fi
7636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7638if test `eval echo '${'$as_ac_var'}'` = yes; then
7639  cat >>confdefs.h <<_ACEOF
7640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7641_ACEOF
7642
7643fi
7644done
7645
7646
7647
7648
7649
7650for ac_func in bswap16, bswap32, bswap64
7651do
7652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7653echo "$as_me:$LINENO: checking for $ac_func" >&5
7654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7655if eval "test \"\${$as_ac_var+set}\" = set"; then
7656  echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658  cat >conftest.$ac_ext <<_ACEOF
7659/* confdefs.h.  */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h.  */
7664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7665   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7666#define $ac_func innocuous_$ac_func
7667
7668/* System header to define __stub macros and hopefully few prototypes,
7669    which can conflict with char $ac_func (); below.
7670    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671    <limits.h> exists even on freestanding compilers.  */
7672
7673#ifdef __STDC__
7674# include <limits.h>
7675#else
7676# include <assert.h>
7677#endif
7678
7679#undef $ac_func
7680
7681/* Override any gcc2 internal prototype to avoid an error.  */
7682#ifdef __cplusplus
7683extern "C"
7684{
7685#endif
7686/* We use char because int might match the return type of a gcc2
7687   builtin and then its argument prototype would still apply.  */
7688char $ac_func ();
7689/* The GNU C library defines this for functions which it implements
7690    to always fail with ENOSYS.  Some functions are actually named
7691    something starting with __ and the normal name is an alias.  */
7692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7693choke me
7694#else
7695char (*f) () = $ac_func;
7696#endif
7697#ifdef __cplusplus
7698}
7699#endif
7700
7701int
7702main ()
7703{
7704return f != $ac_func;
7705  ;
7706  return 0;
7707}
7708_ACEOF
7709rm -f conftest.$ac_objext conftest$ac_exeext
7710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711  (eval $ac_link) 2>conftest.er1
7712  ac_status=$?
7713  grep -v '^ *+' conftest.er1 >conftest.err
7714  rm -f conftest.er1
7715  cat conftest.err >&5
7716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717  (exit $ac_status); } &&
7718	 { ac_try='test -z "$ac_c_werror_flag"
7719			 || test ! -s conftest.err'
7720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721  (eval $ac_try) 2>&5
7722  ac_status=$?
7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); }; } &&
7725	 { ac_try='test -s conftest$ac_exeext'
7726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727  (eval $ac_try) 2>&5
7728  ac_status=$?
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); }; }; then
7731  eval "$as_ac_var=yes"
7732else
7733  echo "$as_me: failed program was:" >&5
7734sed 's/^/| /' conftest.$ac_ext >&5
7735
7736eval "$as_ac_var=no"
7737fi
7738rm -f conftest.err conftest.$ac_objext \
7739      conftest$ac_exeext conftest.$ac_ext
7740fi
7741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7743if test `eval echo '${'$as_ac_var'}'` = yes; then
7744  cat >>confdefs.h <<_ACEOF
7745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7746_ACEOF
7747
7748fi
7749done
7750
7751
7752
7753for ac_func in fstatvfs
7754do
7755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7756echo "$as_me:$LINENO: checking for $ac_func" >&5
7757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7758if eval "test \"\${$as_ac_var+set}\" = set"; then
7759  echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761  cat >conftest.$ac_ext <<_ACEOF
7762/* confdefs.h.  */
7763_ACEOF
7764cat confdefs.h >>conftest.$ac_ext
7765cat >>conftest.$ac_ext <<_ACEOF
7766/* end confdefs.h.  */
7767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7768   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7769#define $ac_func innocuous_$ac_func
7770
7771/* System header to define __stub macros and hopefully few prototypes,
7772    which can conflict with char $ac_func (); below.
7773    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7774    <limits.h> exists even on freestanding compilers.  */
7775
7776#ifdef __STDC__
7777# include <limits.h>
7778#else
7779# include <assert.h>
7780#endif
7781
7782#undef $ac_func
7783
7784/* Override any gcc2 internal prototype to avoid an error.  */
7785#ifdef __cplusplus
7786extern "C"
7787{
7788#endif
7789/* We use char because int might match the return type of a gcc2
7790   builtin and then its argument prototype would still apply.  */
7791char $ac_func ();
7792/* The GNU C library defines this for functions which it implements
7793    to always fail with ENOSYS.  Some functions are actually named
7794    something starting with __ and the normal name is an alias.  */
7795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7796choke me
7797#else
7798char (*f) () = $ac_func;
7799#endif
7800#ifdef __cplusplus
7801}
7802#endif
7803
7804int
7805main ()
7806{
7807return f != $ac_func;
7808  ;
7809  return 0;
7810}
7811_ACEOF
7812rm -f conftest.$ac_objext conftest$ac_exeext
7813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814  (eval $ac_link) 2>conftest.er1
7815  ac_status=$?
7816  grep -v '^ *+' conftest.er1 >conftest.err
7817  rm -f conftest.er1
7818  cat conftest.err >&5
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); } &&
7821	 { ac_try='test -z "$ac_c_werror_flag"
7822			 || test ! -s conftest.err'
7823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824  (eval $ac_try) 2>&5
7825  ac_status=$?
7826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827  (exit $ac_status); }; } &&
7828	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7834  eval "$as_ac_var=yes"
7835else
7836  echo "$as_me: failed program was:" >&5
7837sed 's/^/| /' conftest.$ac_ext >&5
7838
7839eval "$as_ac_var=no"
7840fi
7841rm -f conftest.err conftest.$ac_objext \
7842      conftest$ac_exeext conftest.$ac_ext
7843fi
7844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7846if test `eval echo '${'$as_ac_var'}'` = yes; then
7847  cat >>confdefs.h <<_ACEOF
7848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7849_ACEOF
7850
7851fi
7852done
7853
7854
7855echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
7856echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
7857if test "${ac_cv_have_decl_setgroupent+set}" = set; then
7858  echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860  cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h.  */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h.  */
7866
7867#include <sys/types.h>
7868#include <grp.h>
7869#include <pwd.h>
7870
7871
7872int
7873main ()
7874{
7875#ifndef setgroupent
7876  char *p = (char *) setgroupent;
7877#endif
7878
7879  ;
7880  return 0;
7881}
7882_ACEOF
7883rm -f conftest.$ac_objext
7884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7885  (eval $ac_compile) 2>conftest.er1
7886  ac_status=$?
7887  grep -v '^ *+' conftest.er1 >conftest.err
7888  rm -f conftest.er1
7889  cat conftest.err >&5
7890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891  (exit $ac_status); } &&
7892	 { ac_try='test -z "$ac_c_werror_flag"
7893			 || test ! -s conftest.err'
7894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895  (eval $ac_try) 2>&5
7896  ac_status=$?
7897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898  (exit $ac_status); }; } &&
7899	 { ac_try='test -s conftest.$ac_objext'
7900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901  (eval $ac_try) 2>&5
7902  ac_status=$?
7903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904  (exit $ac_status); }; }; then
7905  ac_cv_have_decl_setgroupent=yes
7906else
7907  echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910ac_cv_have_decl_setgroupent=no
7911fi
7912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7913fi
7914echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
7915echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
7916if test $ac_cv_have_decl_setgroupent = yes; then
7917
7918cat >>confdefs.h <<_ACEOF
7919#define HAVE_DECL_SETGROUPENT 1
7920_ACEOF
7921
7922
7923else
7924  cat >>confdefs.h <<_ACEOF
7925#define HAVE_DECL_SETGROUPENT 0
7926_ACEOF
7927
7928
7929fi
7930echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
7931echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
7932if test "${ac_cv_have_decl_setpassent+set}" = set; then
7933  echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935  cat >conftest.$ac_ext <<_ACEOF
7936/* confdefs.h.  */
7937_ACEOF
7938cat confdefs.h >>conftest.$ac_ext
7939cat >>conftest.$ac_ext <<_ACEOF
7940/* end confdefs.h.  */
7941
7942#include <sys/types.h>
7943#include <grp.h>
7944#include <pwd.h>
7945
7946
7947int
7948main ()
7949{
7950#ifndef setpassent
7951  char *p = (char *) setpassent;
7952#endif
7953
7954  ;
7955  return 0;
7956}
7957_ACEOF
7958rm -f conftest.$ac_objext
7959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960  (eval $ac_compile) 2>conftest.er1
7961  ac_status=$?
7962  grep -v '^ *+' conftest.er1 >conftest.err
7963  rm -f conftest.er1
7964  cat conftest.err >&5
7965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966  (exit $ac_status); } &&
7967	 { ac_try='test -z "$ac_c_werror_flag"
7968			 || test ! -s conftest.err'
7969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970  (eval $ac_try) 2>&5
7971  ac_status=$?
7972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973  (exit $ac_status); }; } &&
7974	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7980  ac_cv_have_decl_setpassent=yes
7981else
7982  echo "$as_me: failed program was:" >&5
7983sed 's/^/| /' conftest.$ac_ext >&5
7984
7985ac_cv_have_decl_setpassent=no
7986fi
7987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7988fi
7989echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
7990echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
7991if test $ac_cv_have_decl_setpassent = yes; then
7992
7993cat >>confdefs.h <<_ACEOF
7994#define HAVE_DECL_SETPASSENT 1
7995_ACEOF
7996
7997
7998else
7999  cat >>confdefs.h <<_ACEOF
8000#define HAVE_DECL_SETPASSENT 0
8001_ACEOF
8002
8003
8004fi
8005
8006
8007
8008# regcomp() and regexec() are also names of functions in the old V8
8009# regexp package.  To avoid them, we need to find out who has regfree().
8010
8011
8012echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
8013echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
8014if test "${ac_cv_lib_regex_regfree+set}" = set; then
8015  echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017  ac_check_lib_save_LIBS=$LIBS
8018LIBS="-lregex  $LIBS"
8019cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h.  */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h.  */
8025
8026/* Override any gcc2 internal prototype to avoid an error.  */
8027#ifdef __cplusplus
8028extern "C"
8029#endif
8030/* We use char because int might match the return type of a gcc2
8031   builtin and then its argument prototype would still apply.  */
8032char regfree ();
8033int
8034main ()
8035{
8036regfree ();
8037  ;
8038  return 0;
8039}
8040_ACEOF
8041rm -f conftest.$ac_objext conftest$ac_exeext
8042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043  (eval $ac_link) 2>conftest.er1
8044  ac_status=$?
8045  grep -v '^ *+' conftest.er1 >conftest.err
8046  rm -f conftest.er1
8047  cat conftest.err >&5
8048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049  (exit $ac_status); } &&
8050	 { ac_try='test -z "$ac_c_werror_flag"
8051			 || test ! -s conftest.err'
8052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053  (eval $ac_try) 2>&5
8054  ac_status=$?
8055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056  (exit $ac_status); }; } &&
8057	 { ac_try='test -s conftest$ac_exeext'
8058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059  (eval $ac_try) 2>&5
8060  ac_status=$?
8061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062  (exit $ac_status); }; }; then
8063  ac_cv_lib_regex_regfree=yes
8064else
8065  echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068ac_cv_lib_regex_regfree=no
8069fi
8070rm -f conftest.err conftest.$ac_objext \
8071      conftest$ac_exeext conftest.$ac_ext
8072LIBS=$ac_check_lib_save_LIBS
8073fi
8074echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
8075echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
8076if test $ac_cv_lib_regex_regfree = yes; then
8077  cat >>confdefs.h <<_ACEOF
8078#define HAVE_LIBREGEX 1
8079_ACEOF
8080
8081  LIBS="-lregex $LIBS"
8082
8083fi
8084
8085echo "$as_me:$LINENO: checking for library containing regfree" >&5
8086echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
8087if test "${ac_cv_search_regfree+set}" = set; then
8088  echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090  ac_func_search_save_LIBS=$LIBS
8091ac_cv_search_regfree=no
8092cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h.  */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h.  */
8098
8099/* Override any gcc2 internal prototype to avoid an error.  */
8100#ifdef __cplusplus
8101extern "C"
8102#endif
8103/* We use char because int might match the return type of a gcc2
8104   builtin and then its argument prototype would still apply.  */
8105char regfree ();
8106int
8107main ()
8108{
8109regfree ();
8110  ;
8111  return 0;
8112}
8113_ACEOF
8114rm -f conftest.$ac_objext conftest$ac_exeext
8115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116  (eval $ac_link) 2>conftest.er1
8117  ac_status=$?
8118  grep -v '^ *+' conftest.er1 >conftest.err
8119  rm -f conftest.er1
8120  cat conftest.err >&5
8121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122  (exit $ac_status); } &&
8123	 { ac_try='test -z "$ac_c_werror_flag"
8124			 || test ! -s conftest.err'
8125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126  (eval $ac_try) 2>&5
8127  ac_status=$?
8128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129  (exit $ac_status); }; } &&
8130	 { ac_try='test -s conftest$ac_exeext'
8131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132  (eval $ac_try) 2>&5
8133  ac_status=$?
8134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135  (exit $ac_status); }; }; then
8136  ac_cv_search_regfree="none required"
8137else
8138  echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141fi
8142rm -f conftest.err conftest.$ac_objext \
8143      conftest$ac_exeext conftest.$ac_ext
8144if test "$ac_cv_search_regfree" = no; then
8145  for ac_lib in rx posix; do
8146    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8147    cat >conftest.$ac_ext <<_ACEOF
8148/* confdefs.h.  */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h.  */
8153
8154/* Override any gcc2 internal prototype to avoid an error.  */
8155#ifdef __cplusplus
8156extern "C"
8157#endif
8158/* We use char because int might match the return type of a gcc2
8159   builtin and then its argument prototype would still apply.  */
8160char regfree ();
8161int
8162main ()
8163{
8164regfree ();
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169rm -f conftest.$ac_objext conftest$ac_exeext
8170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171  (eval $ac_link) 2>conftest.er1
8172  ac_status=$?
8173  grep -v '^ *+' conftest.er1 >conftest.err
8174  rm -f conftest.er1
8175  cat conftest.err >&5
8176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177  (exit $ac_status); } &&
8178	 { ac_try='test -z "$ac_c_werror_flag"
8179			 || test ! -s conftest.err'
8180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181  (eval $ac_try) 2>&5
8182  ac_status=$?
8183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184  (exit $ac_status); }; } &&
8185	 { ac_try='test -s conftest$ac_exeext'
8186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187  (eval $ac_try) 2>&5
8188  ac_status=$?
8189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190  (exit $ac_status); }; }; then
8191  ac_cv_search_regfree="-l$ac_lib"
8192break
8193else
8194  echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197fi
8198rm -f conftest.err conftest.$ac_objext \
8199      conftest$ac_exeext conftest.$ac_ext
8200  done
8201fi
8202LIBS=$ac_func_search_save_LIBS
8203fi
8204echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
8205echo "${ECHO_T}$ac_cv_search_regfree" >&6
8206if test "$ac_cv_search_regfree" != no; then
8207  test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
8208
8209fi
8210
8211
8212cat >confcache <<\_ACEOF
8213# This file is a shell script that caches the results of configure
8214# tests run on this system so they can be shared between configure
8215# scripts and configure runs, see configure's option --config-cache.
8216# It is not useful on other systems.  If it contains results you don't
8217# want to keep, you may remove or edit it.
8218#
8219# config.status only pays attention to the cache file if you give it
8220# the --recheck option to rerun configure.
8221#
8222# `ac_cv_env_foo' variables (set or unset) will be overridden when
8223# loading this file, other *unset* `ac_cv_foo' will be assigned the
8224# following values.
8225
8226_ACEOF
8227
8228# The following way of writing the cache mishandles newlines in values,
8229# but we know of no workaround that is simple, portable, and efficient.
8230# So, don't put newlines in cache variables' values.
8231# Ultrix sh set writes to stderr and can't be redirected directly,
8232# and sets the high bit in the cache file unless we assign to the vars.
8233{
8234  (set) 2>&1 |
8235    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8236    *ac_space=\ *)
8237      # `set' does not quote correctly, so add quotes (double-quote
8238      # substitution turns \\\\ into \\, and sed turns \\ into \).
8239      sed -n \
8240	"s/'/'\\\\''/g;
8241	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8242      ;;
8243    *)
8244      # `set' quotes correctly as required by POSIX, so do not add quotes.
8245      sed -n \
8246	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8247      ;;
8248    esac;
8249} |
8250  sed '
8251     t clear
8252     : clear
8253     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8254     t end
8255     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8256     : end' >>confcache
8257if diff $cache_file confcache >/dev/null 2>&1; then :; else
8258  if test -w $cache_file; then
8259    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8260    cat confcache >$cache_file
8261  else
8262    echo "not updating unwritable cache $cache_file"
8263  fi
8264fi
8265rm -f confcache
8266
8267test "x$prefix" = xNONE && prefix=$ac_default_prefix
8268# Let make expand exec_prefix.
8269test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8270
8271# VPATH may cause trouble with some makes, so we remove $(srcdir),
8272# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8273# trailing colons and then remove the whole line if VPATH becomes empty
8274# (actually we leave an empty line to preserve line numbers).
8275if test "x$srcdir" = x.; then
8276  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8277s/:*\$(srcdir):*/:/;
8278s/:*\${srcdir}:*/:/;
8279s/:*@srcdir@:*/:/;
8280s/^\([^=]*=[	 ]*\):*/\1/;
8281s/:*$//;
8282s/^[^=]*=[	 ]*$//;
8283}'
8284fi
8285
8286DEFS=-DHAVE_CONFIG_H
8287
8288ac_libobjs=
8289ac_ltlibobjs=
8290for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8291  # 1. Remove the extension, and $U if already installed.
8292  ac_i=`echo "$ac_i" |
8293	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8294  # 2. Add them.
8295  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8296  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8297done
8298LIBOBJS=$ac_libobjs
8299
8300LTLIBOBJS=$ac_ltlibobjs
8301
8302
8303
8304: ${CONFIG_STATUS=./config.status}
8305ac_clean_files_save=$ac_clean_files
8306ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8307{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8308echo "$as_me: creating $CONFIG_STATUS" >&6;}
8309cat >$CONFIG_STATUS <<_ACEOF
8310#! $SHELL
8311# Generated by $as_me.
8312# Run this file to recreate the current configuration.
8313# Compiler output produced by configure, useful for debugging
8314# configure, is in config.log if it exists.
8315
8316debug=false
8317ac_cs_recheck=false
8318ac_cs_silent=false
8319SHELL=\${CONFIG_SHELL-$SHELL}
8320_ACEOF
8321
8322cat >>$CONFIG_STATUS <<\_ACEOF
8323## --------------------- ##
8324## M4sh Initialization.  ##
8325## --------------------- ##
8326
8327# Be Bourne compatible
8328if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8329  emulate sh
8330  NULLCMD=:
8331  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8332  # is contrary to our usage.  Disable this feature.
8333  alias -g '${1+"$@"}'='"$@"'
8334elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8335  set -o posix
8336fi
8337DUALCASE=1; export DUALCASE # for MKS sh
8338
8339# Support unset when possible.
8340if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8341  as_unset=unset
8342else
8343  as_unset=false
8344fi
8345
8346
8347# Work around bugs in pre-3.0 UWIN ksh.
8348$as_unset ENV MAIL MAILPATH
8349PS1='$ '
8350PS2='> '
8351PS4='+ '
8352
8353# NLS nuisances.
8354for as_var in \
8355  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8356  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8357  LC_TELEPHONE LC_TIME
8358do
8359  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8360    eval $as_var=C; export $as_var
8361  else
8362    $as_unset $as_var
8363  fi
8364done
8365
8366# Required to use basename.
8367if expr a : '\(a\)' >/dev/null 2>&1; then
8368  as_expr=expr
8369else
8370  as_expr=false
8371fi
8372
8373if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8374  as_basename=basename
8375else
8376  as_basename=false
8377fi
8378
8379
8380# Name of the executable.
8381as_me=`$as_basename "$0" ||
8382$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8383	 X"$0" : 'X\(//\)$' \| \
8384	 X"$0" : 'X\(/\)$' \| \
8385	 .     : '\(.\)' 2>/dev/null ||
8386echo X/"$0" |
8387    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8388  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8389  	  /^X\/\(\/\).*/{ s//\1/; q; }
8390  	  s/.*/./; q'`
8391
8392
8393# PATH needs CR, and LINENO needs CR and PATH.
8394# Avoid depending upon Character Ranges.
8395as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8396as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8397as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8398as_cr_digits='0123456789'
8399as_cr_alnum=$as_cr_Letters$as_cr_digits
8400
8401# The user is always right.
8402if test "${PATH_SEPARATOR+set}" != set; then
8403  echo "#! /bin/sh" >conf$$.sh
8404  echo  "exit 0"   >>conf$$.sh
8405  chmod +x conf$$.sh
8406  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8407    PATH_SEPARATOR=';'
8408  else
8409    PATH_SEPARATOR=:
8410  fi
8411  rm -f conf$$.sh
8412fi
8413
8414
8415  as_lineno_1=$LINENO
8416  as_lineno_2=$LINENO
8417  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8418  test "x$as_lineno_1" != "x$as_lineno_2" &&
8419  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8420  # Find who we are.  Look in the path if we contain no path at all
8421  # relative or not.
8422  case $0 in
8423    *[\\/]* ) as_myself=$0 ;;
8424    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425for as_dir in $PATH
8426do
8427  IFS=$as_save_IFS
8428  test -z "$as_dir" && as_dir=.
8429  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8430done
8431
8432       ;;
8433  esac
8434  # We did not find ourselves, most probably we were run as `sh COMMAND'
8435  # in which case we are not to be found in the path.
8436  if test "x$as_myself" = x; then
8437    as_myself=$0
8438  fi
8439  if test ! -f "$as_myself"; then
8440    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8441echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8442   { (exit 1); exit 1; }; }
8443  fi
8444  case $CONFIG_SHELL in
8445  '')
8446    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8448do
8449  IFS=$as_save_IFS
8450  test -z "$as_dir" && as_dir=.
8451  for as_base in sh bash ksh sh5; do
8452	 case $as_dir in
8453	 /*)
8454	   if ("$as_dir/$as_base" -c '
8455  as_lineno_1=$LINENO
8456  as_lineno_2=$LINENO
8457  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8458  test "x$as_lineno_1" != "x$as_lineno_2" &&
8459  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8460	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8461	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8462	     CONFIG_SHELL=$as_dir/$as_base
8463	     export CONFIG_SHELL
8464	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8465	   fi;;
8466	 esac
8467       done
8468done
8469;;
8470  esac
8471
8472  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8473  # uniformly replaced by the line number.  The first 'sed' inserts a
8474  # line-number line before each line; the second 'sed' does the real
8475  # work.  The second script uses 'N' to pair each line-number line
8476  # with the numbered line, and appends trailing '-' during
8477  # substitution so that $LINENO is not a special case at line end.
8478  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8479  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8480  sed '=' <$as_myself |
8481    sed '
8482      N
8483      s,$,-,
8484      : loop
8485      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8486      t loop
8487      s,-$,,
8488      s,^['$as_cr_digits']*\n,,
8489    ' >$as_me.lineno &&
8490  chmod +x $as_me.lineno ||
8491    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8492echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8493   { (exit 1); exit 1; }; }
8494
8495  # Don't try to exec as it changes $[0], causing all sort of problems
8496  # (the dirname of $[0] is not the place where we might find the
8497  # original and so on.  Autoconf is especially sensible to this).
8498  . ./$as_me.lineno
8499  # Exit status is that of the last command.
8500  exit
8501}
8502
8503
8504case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8505  *c*,-n*) ECHO_N= ECHO_C='
8506' ECHO_T='	' ;;
8507  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8508  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8509esac
8510
8511if expr a : '\(a\)' >/dev/null 2>&1; then
8512  as_expr=expr
8513else
8514  as_expr=false
8515fi
8516
8517rm -f conf$$ conf$$.exe conf$$.file
8518echo >conf$$.file
8519if ln -s conf$$.file conf$$ 2>/dev/null; then
8520  # We could just check for DJGPP; but this test a) works b) is more generic
8521  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8522  if test -f conf$$.exe; then
8523    # Don't use ln at all; we don't have any links
8524    as_ln_s='cp -p'
8525  else
8526    as_ln_s='ln -s'
8527  fi
8528elif ln conf$$.file conf$$ 2>/dev/null; then
8529  as_ln_s=ln
8530else
8531  as_ln_s='cp -p'
8532fi
8533rm -f conf$$ conf$$.exe conf$$.file
8534
8535if mkdir -p . 2>/dev/null; then
8536  as_mkdir_p=:
8537else
8538  test -d ./-p && rmdir ./-p
8539  as_mkdir_p=false
8540fi
8541
8542as_executable_p="test -f"
8543
8544# Sed expression to map a string onto a valid CPP name.
8545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8546
8547# Sed expression to map a string onto a valid variable name.
8548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8549
8550
8551# IFS
8552# We need space, tab and new line, in precisely that order.
8553as_nl='
8554'
8555IFS=" 	$as_nl"
8556
8557# CDPATH.
8558$as_unset CDPATH
8559
8560exec 6>&1
8561
8562# Open the log real soon, to keep \$[0] and so on meaningful, and to
8563# report actual input values of CONFIG_FILES etc. instead of their
8564# values after options handling.  Logging --version etc. is OK.
8565exec 5>>config.log
8566{
8567  echo
8568  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8569## Running $as_me. ##
8570_ASBOX
8571} >&5
8572cat >&5 <<_CSEOF
8573
8574This file was extended by libnbcompat $as_me noversion, which was
8575generated by GNU Autoconf 2.59.  Invocation command line was
8576
8577  CONFIG_FILES    = $CONFIG_FILES
8578  CONFIG_HEADERS  = $CONFIG_HEADERS
8579  CONFIG_LINKS    = $CONFIG_LINKS
8580  CONFIG_COMMANDS = $CONFIG_COMMANDS
8581  $ $0 $@
8582
8583_CSEOF
8584echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8585echo >&5
8586_ACEOF
8587
8588# Files that config.status was made for.
8589if test -n "$ac_config_files"; then
8590  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8591fi
8592
8593if test -n "$ac_config_headers"; then
8594  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8595fi
8596
8597if test -n "$ac_config_links"; then
8598  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8599fi
8600
8601if test -n "$ac_config_commands"; then
8602  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8603fi
8604
8605cat >>$CONFIG_STATUS <<\_ACEOF
8606
8607ac_cs_usage="\
8608\`$as_me' instantiates files from templates according to the
8609current configuration.
8610
8611Usage: $0 [OPTIONS] [FILE]...
8612
8613  -h, --help       print this help, then exit
8614  -V, --version    print version number, then exit
8615  -q, --quiet      do not print progress messages
8616  -d, --debug      don't remove temporary files
8617      --recheck    update $as_me by reconfiguring in the same conditions
8618  --file=FILE[:TEMPLATE]
8619		   instantiate the configuration file FILE
8620  --header=FILE[:TEMPLATE]
8621		   instantiate the configuration header FILE
8622
8623Configuration files:
8624$config_files
8625
8626Configuration headers:
8627$config_headers
8628
8629Report bugs to <bug-autoconf@gnu.org>."
8630_ACEOF
8631
8632cat >>$CONFIG_STATUS <<_ACEOF
8633ac_cs_version="\\
8634libnbcompat config.status noversion
8635configured by $0, generated by GNU Autoconf 2.59,
8636  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8637
8638Copyright (C) 2003 Free Software Foundation, Inc.
8639This config.status script is free software; the Free Software Foundation
8640gives unlimited permission to copy, distribute and modify it."
8641srcdir=$srcdir
8642_ACEOF
8643
8644cat >>$CONFIG_STATUS <<\_ACEOF
8645# If no file are specified by the user, then we need to provide default
8646# value.  By we need to know if files were specified by the user.
8647ac_need_defaults=:
8648while test $# != 0
8649do
8650  case $1 in
8651  --*=*)
8652    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8653    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8654    ac_shift=:
8655    ;;
8656  -*)
8657    ac_option=$1
8658    ac_optarg=$2
8659    ac_shift=shift
8660    ;;
8661  *) # This is not an option, so the user has probably given explicit
8662     # arguments.
8663     ac_option=$1
8664     ac_need_defaults=false;;
8665  esac
8666
8667  case $ac_option in
8668  # Handling of the options.
8669_ACEOF
8670cat >>$CONFIG_STATUS <<\_ACEOF
8671  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8672    ac_cs_recheck=: ;;
8673  --version | --vers* | -V )
8674    echo "$ac_cs_version"; exit 0 ;;
8675  --he | --h)
8676    # Conflict between --help and --header
8677    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8678Try \`$0 --help' for more information." >&5
8679echo "$as_me: error: ambiguous option: $1
8680Try \`$0 --help' for more information." >&2;}
8681   { (exit 1); exit 1; }; };;
8682  --help | --hel | -h )
8683    echo "$ac_cs_usage"; exit 0 ;;
8684  --debug | --d* | -d )
8685    debug=: ;;
8686  --file | --fil | --fi | --f )
8687    $ac_shift
8688    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8689    ac_need_defaults=false;;
8690  --header | --heade | --head | --hea )
8691    $ac_shift
8692    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8693    ac_need_defaults=false;;
8694  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8695  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8696    ac_cs_silent=: ;;
8697
8698  # This is an error.
8699  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8700Try \`$0 --help' for more information." >&5
8701echo "$as_me: error: unrecognized option: $1
8702Try \`$0 --help' for more information." >&2;}
8703   { (exit 1); exit 1; }; } ;;
8704
8705  *) ac_config_targets="$ac_config_targets $1" ;;
8706
8707  esac
8708  shift
8709done
8710
8711ac_configure_extra_args=
8712
8713if $ac_cs_silent; then
8714  exec 6>/dev/null
8715  ac_configure_extra_args="$ac_configure_extra_args --silent"
8716fi
8717
8718_ACEOF
8719cat >>$CONFIG_STATUS <<_ACEOF
8720if \$ac_cs_recheck; then
8721  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8722  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8723fi
8724
8725_ACEOF
8726
8727
8728
8729
8730
8731cat >>$CONFIG_STATUS <<\_ACEOF
8732for ac_config_target in $ac_config_targets
8733do
8734  case "$ac_config_target" in
8735  # Handling of arguments.
8736  "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
8737  "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
8738  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8739echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8740   { (exit 1); exit 1; }; };;
8741  esac
8742done
8743
8744# If the user did not use the arguments to specify the items to instantiate,
8745# then the envvar interface is used.  Set only those that are not.
8746# We use the long form for the default assignment because of an extremely
8747# bizarre bug on SunOS 4.1.3.
8748if $ac_need_defaults; then
8749  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8750  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8751fi
8752
8753# Have a temporary directory for convenience.  Make it in the build tree
8754# simply because there is no reason to put it here, and in addition,
8755# creating and moving files from /tmp can sometimes cause problems.
8756# Create a temporary directory, and hook for its removal unless debugging.
8757$debug ||
8758{
8759  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8760  trap '{ (exit 1); exit 1; }' 1 2 13 15
8761}
8762
8763# Create a (secure) tmp directory for tmp files.
8764
8765{
8766  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8767  test -n "$tmp" && test -d "$tmp"
8768}  ||
8769{
8770  tmp=./confstat$$-$RANDOM
8771  (umask 077 && mkdir $tmp)
8772} ||
8773{
8774   echo "$me: cannot create a temporary directory in ." >&2
8775   { (exit 1); exit 1; }
8776}
8777
8778_ACEOF
8779
8780cat >>$CONFIG_STATUS <<_ACEOF
8781
8782#
8783# CONFIG_FILES section.
8784#
8785
8786# No need to generate the scripts if there are no CONFIG_FILES.
8787# This happens for instance when ./config.status config.h
8788if test -n "\$CONFIG_FILES"; then
8789  # Protect against being on the right side of a sed subst in config.status.
8790  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8791   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8792s,@SHELL@,$SHELL,;t t
8793s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8794s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8795s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8796s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8797s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8798s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8799s,@exec_prefix@,$exec_prefix,;t t
8800s,@prefix@,$prefix,;t t
8801s,@program_transform_name@,$program_transform_name,;t t
8802s,@bindir@,$bindir,;t t
8803s,@sbindir@,$sbindir,;t t
8804s,@libexecdir@,$libexecdir,;t t
8805s,@datadir@,$datadir,;t t
8806s,@sysconfdir@,$sysconfdir,;t t
8807s,@sharedstatedir@,$sharedstatedir,;t t
8808s,@localstatedir@,$localstatedir,;t t
8809s,@libdir@,$libdir,;t t
8810s,@includedir@,$includedir,;t t
8811s,@oldincludedir@,$oldincludedir,;t t
8812s,@infodir@,$infodir,;t t
8813s,@mandir@,$mandir,;t t
8814s,@build_alias@,$build_alias,;t t
8815s,@host_alias@,$host_alias,;t t
8816s,@target_alias@,$target_alias,;t t
8817s,@DEFS@,$DEFS,;t t
8818s,@ECHO_C@,$ECHO_C,;t t
8819s,@ECHO_N@,$ECHO_N,;t t
8820s,@ECHO_T@,$ECHO_T,;t t
8821s,@LIBS@,$LIBS,;t t
8822s,@CC@,$CC,;t t
8823s,@CFLAGS@,$CFLAGS,;t t
8824s,@LDFLAGS@,$LDFLAGS,;t t
8825s,@CPPFLAGS@,$CPPFLAGS,;t t
8826s,@ac_ct_CC@,$ac_ct_CC,;t t
8827s,@EXEEXT@,$EXEEXT,;t t
8828s,@OBJEXT@,$OBJEXT,;t t
8829s,@CPP@,$CPP,;t t
8830s,@EGREP@,$EGREP,;t t
8831s,@BSHELL@,$BSHELL,;t t
8832s,@ALLOCA@,$ALLOCA,;t t
8833s,@LIBOBJS@,$LIBOBJS,;t t
8834s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8835CEOF
8836
8837_ACEOF
8838
8839  cat >>$CONFIG_STATUS <<\_ACEOF
8840  # Split the substitutions into bite-sized pieces for seds with
8841  # small command number limits, like on Digital OSF/1 and HP-UX.
8842  ac_max_sed_lines=48
8843  ac_sed_frag=1 # Number of current file.
8844  ac_beg=1 # First line for current file.
8845  ac_end=$ac_max_sed_lines # Line after last line for current file.
8846  ac_more_lines=:
8847  ac_sed_cmds=
8848  while $ac_more_lines; do
8849    if test $ac_beg -gt 1; then
8850      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8851    else
8852      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8853    fi
8854    if test ! -s $tmp/subs.frag; then
8855      ac_more_lines=false
8856    else
8857      # The purpose of the label and of the branching condition is to
8858      # speed up the sed processing (if there are no `@' at all, there
8859      # is no need to browse any of the substitutions).
8860      # These are the two extra sed commands mentioned above.
8861      (echo ':t
8862  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8863      if test -z "$ac_sed_cmds"; then
8864	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8865      else
8866	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8867      fi
8868      ac_sed_frag=`expr $ac_sed_frag + 1`
8869      ac_beg=$ac_end
8870      ac_end=`expr $ac_end + $ac_max_sed_lines`
8871    fi
8872  done
8873  if test -z "$ac_sed_cmds"; then
8874    ac_sed_cmds=cat
8875  fi
8876fi # test -n "$CONFIG_FILES"
8877
8878_ACEOF
8879cat >>$CONFIG_STATUS <<\_ACEOF
8880for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8881  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8882  case $ac_file in
8883  - | *:- | *:-:* ) # input from stdin
8884	cat >$tmp/stdin
8885	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8886	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8887  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8888	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8889  * )   ac_file_in=$ac_file.in ;;
8890  esac
8891
8892  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8893  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8894$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8895	 X"$ac_file" : 'X\(//\)[^/]' \| \
8896	 X"$ac_file" : 'X\(//\)$' \| \
8897	 X"$ac_file" : 'X\(/\)' \| \
8898	 .     : '\(.\)' 2>/dev/null ||
8899echo X"$ac_file" |
8900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8901  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8902  	  /^X\(\/\/\)$/{ s//\1/; q; }
8903  	  /^X\(\/\).*/{ s//\1/; q; }
8904  	  s/.*/./; q'`
8905  { if $as_mkdir_p; then
8906    mkdir -p "$ac_dir"
8907  else
8908    as_dir="$ac_dir"
8909    as_dirs=
8910    while test ! -d "$as_dir"; do
8911      as_dirs="$as_dir $as_dirs"
8912      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8913$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8914	 X"$as_dir" : 'X\(//\)[^/]' \| \
8915	 X"$as_dir" : 'X\(//\)$' \| \
8916	 X"$as_dir" : 'X\(/\)' \| \
8917	 .     : '\(.\)' 2>/dev/null ||
8918echo X"$as_dir" |
8919    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8920  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8921  	  /^X\(\/\/\)$/{ s//\1/; q; }
8922  	  /^X\(\/\).*/{ s//\1/; q; }
8923  	  s/.*/./; q'`
8924    done
8925    test ! -n "$as_dirs" || mkdir $as_dirs
8926  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8927echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8928   { (exit 1); exit 1; }; }; }
8929
8930  ac_builddir=.
8931
8932if test "$ac_dir" != .; then
8933  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8934  # A "../" for each directory in $ac_dir_suffix.
8935  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8936else
8937  ac_dir_suffix= ac_top_builddir=
8938fi
8939
8940case $srcdir in
8941  .)  # No --srcdir option.  We are building in place.
8942    ac_srcdir=.
8943    if test -z "$ac_top_builddir"; then
8944       ac_top_srcdir=.
8945    else
8946       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8947    fi ;;
8948  [\\/]* | ?:[\\/]* )  # Absolute path.
8949    ac_srcdir=$srcdir$ac_dir_suffix;
8950    ac_top_srcdir=$srcdir ;;
8951  *) # Relative path.
8952    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8953    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8954esac
8955
8956# Do not use `cd foo && pwd` to compute absolute paths, because
8957# the directories may not exist.
8958case `pwd` in
8959.) ac_abs_builddir="$ac_dir";;
8960*)
8961  case "$ac_dir" in
8962  .) ac_abs_builddir=`pwd`;;
8963  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8964  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8965  esac;;
8966esac
8967case $ac_abs_builddir in
8968.) ac_abs_top_builddir=${ac_top_builddir}.;;
8969*)
8970  case ${ac_top_builddir}. in
8971  .) ac_abs_top_builddir=$ac_abs_builddir;;
8972  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8973  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8974  esac;;
8975esac
8976case $ac_abs_builddir in
8977.) ac_abs_srcdir=$ac_srcdir;;
8978*)
8979  case $ac_srcdir in
8980  .) ac_abs_srcdir=$ac_abs_builddir;;
8981  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8982  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8983  esac;;
8984esac
8985case $ac_abs_builddir in
8986.) ac_abs_top_srcdir=$ac_top_srcdir;;
8987*)
8988  case $ac_top_srcdir in
8989  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8990  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8991  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8992  esac;;
8993esac
8994
8995
8996
8997  if test x"$ac_file" != x-; then
8998    { echo "$as_me:$LINENO: creating $ac_file" >&5
8999echo "$as_me: creating $ac_file" >&6;}
9000    rm -f "$ac_file"
9001  fi
9002  # Let's still pretend it is `configure' which instantiates (i.e., don't
9003  # use $as_me), people would be surprised to read:
9004  #    /* config.h.  Generated by config.status.  */
9005  if test x"$ac_file" = x-; then
9006    configure_input=
9007  else
9008    configure_input="$ac_file.  "
9009  fi
9010  configure_input=$configure_input"Generated from `echo $ac_file_in |
9011				     sed 's,.*/,,'` by configure."
9012
9013  # First look for the input files in the build tree, otherwise in the
9014  # src tree.
9015  ac_file_inputs=`IFS=:
9016    for f in $ac_file_in; do
9017      case $f in
9018      -) echo $tmp/stdin ;;
9019      [\\/$]*)
9020	 # Absolute (can't be DOS-style, as IFS=:)
9021	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9022echo "$as_me: error: cannot find input file: $f" >&2;}
9023   { (exit 1); exit 1; }; }
9024	 echo "$f";;
9025      *) # Relative
9026	 if test -f "$f"; then
9027	   # Build tree
9028	   echo "$f"
9029	 elif test -f "$srcdir/$f"; then
9030	   # Source tree
9031	   echo "$srcdir/$f"
9032	 else
9033	   # /dev/null tree
9034	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9035echo "$as_me: error: cannot find input file: $f" >&2;}
9036   { (exit 1); exit 1; }; }
9037	 fi;;
9038      esac
9039    done` || { (exit 1); exit 1; }
9040_ACEOF
9041cat >>$CONFIG_STATUS <<_ACEOF
9042  sed "$ac_vpsub
9043$extrasub
9044_ACEOF
9045cat >>$CONFIG_STATUS <<\_ACEOF
9046:t
9047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9048s,@configure_input@,$configure_input,;t t
9049s,@srcdir@,$ac_srcdir,;t t
9050s,@abs_srcdir@,$ac_abs_srcdir,;t t
9051s,@top_srcdir@,$ac_top_srcdir,;t t
9052s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9053s,@builddir@,$ac_builddir,;t t
9054s,@abs_builddir@,$ac_abs_builddir,;t t
9055s,@top_builddir@,$ac_top_builddir,;t t
9056s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9057" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9058  rm -f $tmp/stdin
9059  if test x"$ac_file" != x-; then
9060    mv $tmp/out $ac_file
9061  else
9062    cat $tmp/out
9063    rm -f $tmp/out
9064  fi
9065
9066done
9067_ACEOF
9068cat >>$CONFIG_STATUS <<\_ACEOF
9069
9070#
9071# CONFIG_HEADER section.
9072#
9073
9074# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9075# NAME is the cpp macro being defined and VALUE is the value it is being given.
9076#
9077# ac_d sets the value in "#define NAME VALUE" lines.
9078ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9079ac_dB='[	 ].*$,\1#\2'
9080ac_dC=' '
9081ac_dD=',;t'
9082# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9083ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9084ac_uB='$,\1#\2define\3'
9085ac_uC=' '
9086ac_uD=',;t'
9087
9088for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9089  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9090  case $ac_file in
9091  - | *:- | *:-:* ) # input from stdin
9092	cat >$tmp/stdin
9093	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9094	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9095  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9096	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9097  * )   ac_file_in=$ac_file.in ;;
9098  esac
9099
9100  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9101echo "$as_me: creating $ac_file" >&6;}
9102
9103  # First look for the input files in the build tree, otherwise in the
9104  # src tree.
9105  ac_file_inputs=`IFS=:
9106    for f in $ac_file_in; do
9107      case $f in
9108      -) echo $tmp/stdin ;;
9109      [\\/$]*)
9110	 # Absolute (can't be DOS-style, as IFS=:)
9111	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9112echo "$as_me: error: cannot find input file: $f" >&2;}
9113   { (exit 1); exit 1; }; }
9114	 # Do quote $f, to prevent DOS paths from being IFS'd.
9115	 echo "$f";;
9116      *) # Relative
9117	 if test -f "$f"; then
9118	   # Build tree
9119	   echo "$f"
9120	 elif test -f "$srcdir/$f"; then
9121	   # Source tree
9122	   echo "$srcdir/$f"
9123	 else
9124	   # /dev/null tree
9125	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9126echo "$as_me: error: cannot find input file: $f" >&2;}
9127   { (exit 1); exit 1; }; }
9128	 fi;;
9129      esac
9130    done` || { (exit 1); exit 1; }
9131  # Remove the trailing spaces.
9132  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
9133
9134_ACEOF
9135
9136# Transform confdefs.h into two sed scripts, `conftest.defines' and
9137# `conftest.undefs', that substitutes the proper values into
9138# config.h.in to produce config.h.  The first handles `#define'
9139# templates, and the second `#undef' templates.
9140# And first: Protect against being on the right side of a sed subst in
9141# config.status.  Protect against being in an unquoted here document
9142# in config.status.
9143rm -f conftest.defines conftest.undefs
9144# Using a here document instead of a string reduces the quoting nightmare.
9145# Putting comments in sed scripts is not portable.
9146#
9147# `end' is used to avoid that the second main sed command (meant for
9148# 0-ary CPP macros) applies to n-ary macro definitions.
9149# See the Autoconf documentation for `clear'.
9150cat >confdef2sed.sed <<\_ACEOF
9151s/[\\&,]/\\&/g
9152s,[\\$`],\\&,g
9153t clear
9154: clear
9155s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9156t end
9157s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9158: end
9159_ACEOF
9160# If some macros were called several times there might be several times
9161# the same #defines, which is useless.  Nevertheless, we may not want to
9162# sort them, since we want the *last* AC-DEFINE to be honored.
9163uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9164sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9165rm -f confdef2sed.sed
9166
9167# This sed command replaces #undef with comments.  This is necessary, for
9168# example, in the case of _POSIX_SOURCE, which is predefined and required
9169# on some systems where configure will not decide to define it.
9170cat >>conftest.undefs <<\_ACEOF
9171s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9172_ACEOF
9173
9174# Break up conftest.defines because some shells have a limit on the size
9175# of here documents, and old seds have small limits too (100 cmds).
9176echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9177echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9178echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9179echo '  :' >>$CONFIG_STATUS
9180rm -f conftest.tail
9181while grep . conftest.defines >/dev/null
9182do
9183  # Write a limited-size here document to $tmp/defines.sed.
9184  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9185  # Speed up: don't consider the non `#define' lines.
9186  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
9187  # Work around the forget-to-reset-the-flag bug.
9188  echo 't clr' >>$CONFIG_STATUS
9189  echo ': clr' >>$CONFIG_STATUS
9190  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9191  echo 'CEOF
9192  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9193  rm -f $tmp/in
9194  mv $tmp/out $tmp/in
9195' >>$CONFIG_STATUS
9196  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9197  rm -f conftest.defines
9198  mv conftest.tail conftest.defines
9199done
9200rm -f conftest.defines
9201echo '  fi # grep' >>$CONFIG_STATUS
9202echo >>$CONFIG_STATUS
9203
9204# Break up conftest.undefs because some shells have a limit on the size
9205# of here documents, and old seds have small limits too (100 cmds).
9206echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9207rm -f conftest.tail
9208while grep . conftest.undefs >/dev/null
9209do
9210  # Write a limited-size here document to $tmp/undefs.sed.
9211  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9212  # Speed up: don't consider the non `#undef'
9213  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
9214  # Work around the forget-to-reset-the-flag bug.
9215  echo 't clr' >>$CONFIG_STATUS
9216  echo ': clr' >>$CONFIG_STATUS
9217  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9218  echo 'CEOF
9219  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9220  rm -f $tmp/in
9221  mv $tmp/out $tmp/in
9222' >>$CONFIG_STATUS
9223  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9224  rm -f conftest.undefs
9225  mv conftest.tail conftest.undefs
9226done
9227rm -f conftest.undefs
9228
9229cat >>$CONFIG_STATUS <<\_ACEOF
9230  # Let's still pretend it is `configure' which instantiates (i.e., don't
9231  # use $as_me), people would be surprised to read:
9232  #    /* config.h.  Generated by config.status.  */
9233  if test x"$ac_file" = x-; then
9234    echo "/* Generated by configure.  */" >$tmp/config.h
9235  else
9236    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9237  fi
9238  cat $tmp/in >>$tmp/config.h
9239  rm -f $tmp/in
9240  if test x"$ac_file" != x-; then
9241    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9242      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9243echo "$as_me: $ac_file is unchanged" >&6;}
9244    else
9245      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9246$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9247	 X"$ac_file" : 'X\(//\)[^/]' \| \
9248	 X"$ac_file" : 'X\(//\)$' \| \
9249	 X"$ac_file" : 'X\(/\)' \| \
9250	 .     : '\(.\)' 2>/dev/null ||
9251echo X"$ac_file" |
9252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9253  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9254  	  /^X\(\/\/\)$/{ s//\1/; q; }
9255  	  /^X\(\/\).*/{ s//\1/; q; }
9256  	  s/.*/./; q'`
9257      { if $as_mkdir_p; then
9258    mkdir -p "$ac_dir"
9259  else
9260    as_dir="$ac_dir"
9261    as_dirs=
9262    while test ! -d "$as_dir"; do
9263      as_dirs="$as_dir $as_dirs"
9264      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9265$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9266	 X"$as_dir" : 'X\(//\)[^/]' \| \
9267	 X"$as_dir" : 'X\(//\)$' \| \
9268	 X"$as_dir" : 'X\(/\)' \| \
9269	 .     : '\(.\)' 2>/dev/null ||
9270echo X"$as_dir" |
9271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9272  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9273  	  /^X\(\/\/\)$/{ s//\1/; q; }
9274  	  /^X\(\/\).*/{ s//\1/; q; }
9275  	  s/.*/./; q'`
9276    done
9277    test ! -n "$as_dirs" || mkdir $as_dirs
9278  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9279echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9280   { (exit 1); exit 1; }; }; }
9281
9282      rm -f $ac_file
9283      mv $tmp/config.h $ac_file
9284    fi
9285  else
9286    cat $tmp/config.h
9287    rm -f $tmp/config.h
9288  fi
9289done
9290_ACEOF
9291
9292cat >>$CONFIG_STATUS <<\_ACEOF
9293
9294{ (exit 0); exit 0; }
9295_ACEOF
9296chmod +x $CONFIG_STATUS
9297ac_clean_files=$ac_clean_files_save
9298
9299
9300# configure is writing to config.log, and then calls config.status.
9301# config.status does its own redirection, appending to config.log.
9302# Unfortunately, on DOS this fails, as config.log is still kept open
9303# by configure, so config.status won't be able to write to it; its
9304# output is simply discarded.  So we exec the FD to /dev/null,
9305# effectively closing config.log, so it can be properly (re)opened and
9306# appended to by config.status.  When coming back to configure, we
9307# need to make the FD available again.
9308if test "$no_create" != yes; then
9309  ac_cs_success=:
9310  ac_config_status_args=
9311  test "$silent" = yes &&
9312    ac_config_status_args="$ac_config_status_args --quiet"
9313  exec 5>/dev/null
9314  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9315  exec 5>>config.log
9316  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9317  # would make configure fail if this is the last instruction.
9318  $ac_cs_success || { (exit 1); exit 1; }
9319fi
9320
9321