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