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