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