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