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