1#! /bin/sh 2 3# From configure.in 1.309 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291#serial 18 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343# Guess values for system-dependent variables and create Makefiles. 344# Generated automatically using autoconf version 2.13 1.24-Schily 345# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 346# Copyright (C) 1998-2021 J. Schilling 347# 348# This configure script is free software; the Free Software Foundation 349# gives unlimited permission to copy, distribute and modify it. 350 351# Defaults: 352ac_help= 353ac_default_prefix=/usr/local 354# Any additions from configure.in: 355ac_help="$ac_help 356 --disable-largefile omit support for large files" 357 358# Initialize some variables et by options. 359# The variables have the same names as the options, with 360# dashes changed to underlines. 361build=NONE 362cache_file=./config.cache 363exec_prefix=NONE 364host=NONE 365no_create= 366nonopt=NONE 367no_recursion= 368prefix=NONE 369program_prefix=NONE 370program_suffix=NONE 371program_transform_name=s,x,x, 372silent= 373site= 374srcdir= 375target=NONE 376verbose= 377rmttest=test 378rmtcall= 379CONFIG_RMTCALL=${CONFIG_RMTCALL-NONE} 380x_includes=NONE 381x_libraries=NONE 382bindir='${exec_prefix}/bin' 383sbindir='${exec_prefix}/sbin' 384libexecdir='${exec_prefix}/libexec' 385datadir='${prefix}/share' 386sysconfdir='${prefix}/etc' 387sharedstatedir='${prefix}/com' 388localstatedir='${prefix}/var' 389libdir='${exec_prefix}/lib' 390includedir='${prefix}/include' 391oldincludedir='/usr/include' 392infodir='${prefix}/info' 393mandir='${prefix}/man' 394ac_os_name=`(uname -s) 2> /dev/null` 395 396# Initialize some other variables. 397subdirs= 398MFLAGS= MAKEFLAGS= 399SHELL=${CONFIG_SHELL-/bin/sh} 400# Maximum number of lines to put in a shell here document. 401ac_max_here_lines=12 402 403ac_prev= 404for ac_option 405do 406 407 # If the previous option needs an argument, assign it. 408 if test -n "$ac_prev"; then 409 eval "$ac_prev=\$ac_option" 410 ac_prev= 411 continue 412 fi 413 414 case "$ac_option" in 415 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 416 *) ac_optarg= ;; 417 esac 418 419 # Accept the important Cygnus configure options, so we can diagnose typos. 420 421 case "$ac_option" in 422 423 -bindir | --bindir | --bindi | --bind | --bin | --bi) 424 ac_prev=bindir ;; 425 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 426 bindir="$ac_optarg" ;; 427 428 -build | --build | --buil | --bui | --bu) 429 ac_prev=build ;; 430 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 431 build="$ac_optarg" ;; 432 433 -cache-file | --cache-file | --cache-fil | --cache-fi \ 434 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 435 ac_prev=cache_file ;; 436 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 437 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 438 cache_file="$ac_optarg" ;; 439 440 -cc=* | --cc=* ) 441 CC="$ac_optarg" ; echo using $CC as compiler ;; 442 443 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 444 ac_prev=datadir ;; 445 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 446 | --da=*) 447 datadir="$ac_optarg" ;; 448 449 -disable-* | --disable-*) 450 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 451 # Reject names that are not valid shell variable names. 452 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 453 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 454 fi 455 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 456 eval "enable_${ac_feature}=no" ;; 457 458 -enable-* | --enable-*) 459 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 460 # Reject names that are not valid shell variable names. 461 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 462 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 463 fi 464 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 465 case "$ac_option" in 466 *=*) ;; 467 *) ac_optarg=yes ;; 468 esac 469 eval "enable_${ac_feature}='$ac_optarg'" ;; 470 471 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 472 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 473 | --exec | --exe | --ex) 474 ac_prev=exec_prefix ;; 475 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 476 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 477 | --exec=* | --exe=* | --ex=*) 478 exec_prefix="$ac_optarg" ;; 479 480 -gas | --gas | --ga | --g) 481 # Obsolete; use --with-gas. 482 with_gas=yes ;; 483 484 -help | --help | --hel | --he) 485 # Omit some internal or obsolete options to make the list less imposing. 486 # This message is too long to be a string in the A/UX 3.1 sh. 487 cat << EOF 488Usage: configure [options] [host] 489Options: [defaults in brackets after descriptions] 490Configuration: 491 --cache-file=FILE cache test results in FILE 492 --help print this message 493 --no-create do not create output files 494 --quiet, --silent do not print \`checking...' messages 495 --version print the version of autoconf that created configure 496Directory and file names: 497 --prefix=PREFIX install architecture-independent files in PREFIX 498 [$ac_default_prefix] 499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 500 [same as prefix] 501 --bindir=DIR user executables in DIR [EPREFIX/bin] 502 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 503 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 504 --datadir=DIR read-only architecture-independent data in DIR 505 [PREFIX/share] 506 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 507 --sharedstatedir=DIR modifiable architecture-independent data in DIR 508 [PREFIX/com] 509 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 510 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 511 --includedir=DIR C header files in DIR [PREFIX/include] 512 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 513 --infodir=DIR info documentation in DIR [PREFIX/info] 514 --mandir=DIR man documentation in DIR [PREFIX/man] 515 --srcdir=DIR find the sources in DIR [configure dir or ..] 516 --program-prefix=PREFIX prepend PREFIX to installed program names 517 --program-suffix=SUFFIX append SUFFIX to installed program names 518 --program-transform-name=PROGRAM 519 run sed PROGRAM on installed program names 520EOF 521 cat << EOF 522Host type: 523 --build=BUILD configure for building on BUILD [BUILD=HOST] 524 --host=HOST configure for HOST [guessed] 525 --target=TARGET configure for TARGET [TARGET=HOST] 526Features and packages: 527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 531 --x-includes=DIR X include files are in DIR 532 --x-libraries=DIR X library files are in DIR 533EOF 534 if test -n "$ac_help"; then 535 echo "--enable and --with options recognized:$ac_help" 536 fi 537 exit 0 ;; 538 539 -host | --host | --hos | --ho) 540 ac_prev=host ;; 541 -host=* | --host=* | --hos=* | --ho=*) 542 host="$ac_optarg" ;; 543 544 -includedir | --includedir | --includedi | --included | --include \ 545 | --includ | --inclu | --incl | --inc) 546 ac_prev=includedir ;; 547 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 548 | --includ=* | --inclu=* | --incl=* | --inc=*) 549 includedir="$ac_optarg" ;; 550 551 -infodir | --infodir | --infodi | --infod | --info | --inf) 552 ac_prev=infodir ;; 553 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 554 infodir="$ac_optarg" ;; 555 556 -libdir | --libdir | --libdi | --libd) 557 ac_prev=libdir ;; 558 -libdir=* | --libdir=* | --libdi=* | --libd=*) 559 libdir="$ac_optarg" ;; 560 561 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 562 | --libexe | --libex | --libe) 563 ac_prev=libexecdir ;; 564 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 565 | --libexe=* | --libex=* | --libe=*) 566 libexecdir="$ac_optarg" ;; 567 568 -localstatedir | --localstatedir | --localstatedi | --localstated \ 569 | --localstate | --localstat | --localsta | --localst \ 570 | --locals | --local | --loca | --loc | --lo) 571 ac_prev=localstatedir ;; 572 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 573 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 574 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 575 localstatedir="$ac_optarg" ;; 576 577 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 578 ac_prev=mandir ;; 579 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 580 mandir="$ac_optarg" ;; 581 582 -nfp | --nfp | --nf) 583 # Obsolete; use --without-fp. 584 with_fp=no ;; 585 586 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 587 | --no-cr | --no-c) 588 no_create=yes ;; 589 590 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 591 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 592 no_recursion=yes ;; 593 594 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 595 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 596 | --oldin | --oldi | --old | --ol | --o) 597 ac_prev=oldincludedir ;; 598 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 599 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 600 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 601 oldincludedir="$ac_optarg" ;; 602 603 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 604 ac_prev=prefix ;; 605 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 606 prefix="$ac_optarg" ;; 607 608 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 609 | --program-pre | --program-pr | --program-p) 610 ac_prev=program_prefix ;; 611 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 612 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 613 program_prefix="$ac_optarg" ;; 614 615 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 616 | --program-suf | --program-su | --program-s) 617 ac_prev=program_suffix ;; 618 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 619 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 620 program_suffix="$ac_optarg" ;; 621 622 -program-transform-name | --program-transform-name \ 623 | --program-transform-nam | --program-transform-na \ 624 | --program-transform-n | --program-transform- \ 625 | --program-transform | --program-transfor \ 626 | --program-transfo | --program-transf \ 627 | --program-trans | --program-tran \ 628 | --progr-tra | --program-tr | --program-t) 629 ac_prev=program_transform_name ;; 630 -program-transform-name=* | --program-transform-name=* \ 631 | --program-transform-nam=* | --program-transform-na=* \ 632 | --program-transform-n=* | --program-transform-=* \ 633 | --program-transform=* | --program-transfor=* \ 634 | --program-transfo=* | --program-transf=* \ 635 | --program-trans=* | --program-tran=* \ 636 | --progr-tra=* | --program-tr=* | --program-t=*) 637 program_transform_name="$ac_optarg" ;; 638 639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 640 | -silent | --silent | --silen | --sile | --sil) 641 silent=yes ;; 642 643 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 644 ac_prev=sbindir ;; 645 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 646 | --sbi=* | --sb=*) 647 sbindir="$ac_optarg" ;; 648 649 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 650 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 651 | --sharedst | --shareds | --shared | --share | --shar \ 652 | --sha | --sh) 653 ac_prev=sharedstatedir ;; 654 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 655 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 656 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 657 | --sha=* | --sh=*) 658 sharedstatedir="$ac_optarg" ;; 659 660 -site | --site | --sit) 661 ac_prev=site ;; 662 -site=* | --site=* | --sit=*) 663 site="$ac_optarg" ;; 664 665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 666 ac_prev=srcdir ;; 667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 668 srcdir="$ac_optarg" ;; 669 670 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 671 | --syscon | --sysco | --sysc | --sys | --sy) 672 ac_prev=sysconfdir ;; 673 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 674 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 675 sysconfdir="$ac_optarg" ;; 676 677 -target | --target | --targe | --targ | --tar | --ta | --t) 678 ac_prev=target ;; 679 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 680 target="$ac_optarg" ;; 681 682 -v | -verbose | --verbose | --verbos | --verbo | --verb) 683 verbose=yes ;; 684 685 -version | --version | --versio | --versi | --vers) 686 echo "configure generated by autoconf version 2.13 1.24-Schily" 687 exit 0 ;; 688 689 -with-* | --with-*) 690 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 691 # Reject names that are not valid shell variable names. 692 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 693 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 694 fi 695 ac_package=`echo $ac_package| sed 's/-/_/g'` 696 case "$ac_option" in 697 *=*) ;; 698 *) ac_optarg=yes ;; 699 esac 700 eval "with_${ac_package}='$ac_optarg'" ;; 701 702 -without-* | --without-*) 703 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 704 # Reject names that are not valid shell variable names. 705 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 706 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 707 fi 708 ac_package=`echo $ac_package| sed 's/-/_/g'` 709 eval "with_${ac_package}=no" ;; 710 711 --x) 712 # Obsolete; use --with-x. 713 with_x=yes ;; 714 715 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 716 | --x-incl | --x-inc | --x-in | --x-i) 717 ac_prev=x_includes ;; 718 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 719 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 720 x_includes="$ac_optarg" ;; 721 722 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 723 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 724 ac_prev=x_libraries ;; 725 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 726 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 727 x_libraries="$ac_optarg" ;; 728 729 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 730 ;; 731 732 *) 733 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 734 echo "configure: warning: $ac_option: invalid host type" 1>&2 735 fi 736 if test "x$nonopt" != xNONE; then 737 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 738 fi 739 nonopt="$ac_option" 740 ;; 741 742 esac 743done 744 745if test -n "$ac_prev"; then 746 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 747fi 748 749trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 750 751# File descriptor usage: 752# 0 standard input 753# 1 file creation 754# 2 errors and warnings 755# 3 some systems may open it to /dev/tty 756# 4 used on the Kubota Titan 757# 6 checking for... messages and results 758# 5 compiler messages saved in config.log 759if test "$silent" = yes; then 760 exec 6>/dev/null 761else 762 exec 6>&1 763fi 764exec 5>./config.log 765 766echo "\ 767This file contains any messages produced by compilers while 768running configure, to aid debugging if configure makes a mistake. 769" 1>&5 770 771# Strip out --no-create and --no-recursion so they do not pile up. 772# Also quote any args containing shell metacharacters. 773ac_configure_args= 774for ac_arg 775do 776 case "$ac_arg" in 777 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 778 | --no-cr | --no-c) ;; 779 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 780 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 781 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 782 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 783 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 784 esac 785done 786 787# NLS nuisances. 788# Only set these to C if already set. These must not be set unconditionally 789# because not all systems understand e.g. LANG=C (notably SCO). 790# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 791# Non-C LC_CTYPE values break the ctype check. 792if test "${LANG+set}" = set; then LANG=C; export LANG; fi 793if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 794if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 795if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 796 797# confdefs.h avoids OS command line length limits that DEFS can exceed. 798rm -rf conftest* confdefs.h 799# AIX cpp loses on an empty file, so make sure it contains at least a newline. 800echo > confdefs.h 801 802# A filename unique to this package, relative to the directory that 803# configure is in, which we can look for to find out if srcdir is correct. 804ac_unique_file=config.guess 805 806# Find the source files, if location was not specified. 807if test -z "$srcdir"; then 808 ac_srcdir_defaulted=yes 809 # Try the directory containing this script, then its parent. 810 ac_prog=$0 811 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 812 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 813 srcdir=$ac_confdir 814 if test ! -r $srcdir/$ac_unique_file; then 815 srcdir=.. 816 fi 817else 818 ac_srcdir_defaulted=no 819fi 820if test ! -r $srcdir/$ac_unique_file; then 821 if test "$ac_srcdir_defaulted" = yes; then 822 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 823 else 824 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 825 fi 826fi 827srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 828 829# Prefer explicitly selected file to automatically selected ones. 830if test -z "$CONFIG_SITE"; then 831 if test "x$prefix" != xNONE; then 832 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 833 else 834 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 835 fi 836fi 837for ac_site_file in $CONFIG_SITE; do 838 if test -r "$ac_site_file"; then 839 echo "loading site script $ac_site_file" 840 . "$ac_site_file" 841 fi 842done 843 844if test -r "$cache_file"; then 845 echo "loading cache $cache_file" 846 . $cache_file 847else 848 echo "creating cache $cache_file" 849 > $cache_file 850fi 851 852ac_ext=c 853# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 854ac_cpp='$CPP $CPPFLAGS' 855ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 856ac_compile2='${CC-cc} -c $CFLAGS $CPPFLAGS conftest2.$ac_ext 1>&5' 857if test ."$ac_os_name" = ".OS/390" ; then 858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 859else 860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&5' 861fi 862cross_compiling=$ac_cv_prog_cc_cross 863if test "$cross_compiling" = yes -a "$CONFIG_RMTCALL" != NONE ; then 864 cross_compiling=remote 865 rmtcall="$CONFIG_RMTCALL" 866 rmttest="$CONFIG_RMTCALL" 867fi 868 869ac_exeext= 870ac_xexeext= 871ac_objext=o 872if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 873 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 874 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 875 ac_n= ac_c=' 876' ac_t=' ' 877 else 878 ac_n=-n ac_c= ac_t= 879 fi 880else 881 ac_n= ac_c='\c' ac_t= 882fi 883 884 885 886ac_aux_dir= 887for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 888 if test -f $ac_dir/install-sh; then 889 ac_aux_dir=$ac_dir 890 ac_install_sh="$ac_aux_dir/install-sh -c" 891 break 892 elif test -f $ac_dir/install.sh; then 893 ac_aux_dir=$ac_dir 894 ac_install_sh="$ac_aux_dir/install.sh -c" 895 break 896 fi 897done 898if test -z "$ac_aux_dir"; then 899 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 900fi 901ac_config_guess=$ac_aux_dir/config.guess 902ac_config_sub=$ac_aux_dir/config.sub 903ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 904 905 906# Make sure we can run config.sub. 907if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 908else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 909fi 910 911echo $ac_n "checking host system type""... $ac_c" 1>&6 912echo "configure:913: checking host system type" >&5 913 914host_alias=$host 915case "$host_alias" in 916NONE) 917 case $nonopt in 918 NONE) 919 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 920 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 921 fi ;; 922 *) host_alias=$nonopt ;; 923 esac ;; 924esac 925 926host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 927host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 928host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 929host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 930echo "$ac_t""$host" 1>&6 931 932 933echo $ac_n "checking if sh is bash""... $ac_c" 1>&6 934echo "configure:935: checking if sh is bash" >&5 935if eval "test \"`echo '$''{'ac_cv_shell_is_bash'+set}'`\" = set"; then 936 echo $ac_n "(cached) $ac_c" 1>&6 937else 938 939ac_err=`< /dev/null sh --version 2> /dev/null | egrep 'GNU sh|bash'` 940if test -n "$ac_err"; then 941 ac_cv_shell_is_bash=yes 942else 943 ac_cv_shell_is_bash=no 944fi 945 946fi 947 948echo "$ac_t""$ac_cv_shell_is_bash" 1>&6 949if test $ac_cv_shell_is_bash = yes; then 950 cat >> confdefs.h <<\EOF 951#define SHELL_IS_BASH 1 952EOF 953 954fi 955echo $ac_n "checking if /bin/sh is bash""... $ac_c" 1>&6 956echo "configure:957: checking if /bin/sh is bash" >&5 957if eval "test \"`echo '$''{'ac_cv_bin_shell_is_bash'+set}'`\" = set"; then 958 echo $ac_n "(cached) $ac_c" 1>&6 959else 960 961ac_err=`< /dev/null /bin/sh --version 2> /dev/null | egrep 'GNU sh|bash'` 962if test -n "$ac_err"; then 963 ac_cv_bin_shell_is_bash=yes 964else 965 ac_cv_bin_shell_is_bash=no 966fi 967 968fi 969 970echo "$ac_t""$ac_cv_bin_shell_is_bash" 1>&6 971if test $ac_cv_bin_shell_is_bash = yes; then 972 cat >> confdefs.h <<\EOF 973#define BIN_SHELL_IS_BASH 1 974EOF 975 976fi 977echo $ac_n "checking whether sh -ce is broken""... $ac_c" 1>&6 978echo "configure:979: checking whether sh -ce is broken" >&5 979if eval "test \"`echo '$''{'ac_cv_shell_ce_is_broken'+set}'`\" = set"; then 980 echo $ac_n "(cached) $ac_c" 1>&6 981else 982 983ac_err=`sh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` 984if test -n "$ac_err"; then 985 ac_cv_shell_ce_is_broken=yes 986else 987 ac_cv_shell_ce_is_broken=no 988fi 989 990fi 991 992echo "$ac_t""$ac_cv_shell_ce_is_broken" 1>&6 993if test $ac_cv_shell_ce_is_broken = yes; then 994 cat >> confdefs.h <<\EOF 995#define SHELL_CE_IS_BROKEN 1 996EOF 997 998fi 999echo $ac_n "checking whether /bin/sh -ce is broken""... $ac_c" 1>&6 1000echo "configure:1001: checking whether /bin/sh -ce is broken" >&5 1001if eval "test \"`echo '$''{'ac_cv_bin_shell_ce_is_broken'+set}'`\" = set"; then 1002 echo $ac_n "(cached) $ac_c" 1>&6 1003else 1004 1005ac_err=`/bin/sh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` 1006if test -n "$ac_err"; then 1007 ac_cv_bin_shell_ce_is_broken=yes 1008else 1009 ac_cv_bin_shell_ce_is_broken=no 1010fi 1011 1012fi 1013 1014echo "$ac_t""$ac_cv_bin_shell_ce_is_broken" 1>&6 1015if test $ac_cv_bin_shell_ce_is_broken = yes; then 1016 cat >> confdefs.h <<\EOF 1017#define BIN_SHELL_CE_IS_BROKEN 1 1018EOF 1019 1020fi 1021echo $ac_n "checking whether /bin/bosh is a working shell""... $ac_c" 1>&6 1022echo "configure:1023: checking whether /bin/bosh is a working shell" >&5 1023if eval "test \"`echo '$''{'ac_cv_bin_shell_bosh'+set}'`\" = set"; then 1024 echo $ac_n "(cached) $ac_c" 1>&6 1025else 1026 1027ac_err=`< /dev/null /bin/bosh -c 'echo abc' 2> /dev/null | grep abc` 1028if test "$ac_err" != "abc"; then 1029 ac_cv_bin_shell_bosh=no 1030else 1031 ac_err=`/bin/bosh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` 1032 if test -z "$ac_err"; then 1033 ac_cv_bin_shell_bosh=yes 1034 else 1035 ac_cv_bin_shell_bosh=no 1036 fi 1037fi 1038 1039fi 1040 1041echo "$ac_t""$ac_cv_bin_shell_bosh" 1>&6 1042if test $ac_cv_bin_shell_bosh = yes; then 1043 cat >> confdefs.h <<\EOF 1044#define BIN_SHELL_BOSH 1 1045EOF 1046 1047fi 1048echo $ac_n "checking whether /opt/schily/bin/bosh is a working shell""... $ac_c" 1>&6 1049echo "configure:1050: checking whether /opt/schily/bin/bosh is a working shell" >&5 1050if eval "test \"`echo '$''{'ac_cv_opt_schily_bin_shell_bosh'+set}'`\" = set"; then 1051 echo $ac_n "(cached) $ac_c" 1>&6 1052else 1053 1054ac_err=`< /dev/null /opt/schily/bin/bosh -c 'echo abc' 2> /dev/null | grep abc` 1055if test "$ac_err" != "abc"; then 1056 ac_cv_opt_schily_bin_shell_bosh=no 1057else 1058 ac_err=`/opt/schily/bin/bosh -ce 'for i in 1 2 3; do ( echo $i; if test -d . ; then (false; echo 4); fi ) ; done' | grep 2` 1059 if test -z "$ac_err"; then 1060 ac_cv_opt_schily_bin_shell_bosh=yes 1061 else 1062 ac_cv_opt_schily_bin_shell_bosh=no 1063 fi 1064fi 1065 1066fi 1067 1068echo "$ac_t""$ac_cv_opt_schily_bin_shell_bosh" 1>&6 1069if test $ac_cv_opt_schily_bin_shell_bosh = yes; then 1070 cat >> confdefs.h <<\EOF 1071#define OPT_SCHILY_BIN_SHELL_BOSH 1 1072EOF 1073 1074fi 1075# Extract the first word of "cc", so it can be a program name with args. 1076set dummy cc; ac_word=$2 1077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1078echo "configure:1079: checking for $ac_word" >&5 1079if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1080 echo $ac_n "(cached) $ac_c" 1>&6 1081else 1082 if test -n "$CC"; then 1083 ac_cv_prog_CC="$CC" # Let the user override the test. 1084else 1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1086 ac_dummy="$PATH" 1087 for ac_dir in $ac_dummy; do 1088 test -z "$ac_dir" && ac_dir=. 1089 if test -f $ac_dir/$ac_word; then 1090 ac_cv_prog_CC="cc" 1091 break 1092 fi 1093 done 1094 IFS="$ac_save_ifs" 1095 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc" 1096fi 1097fi 1098CC="$ac_cv_prog_CC" 1099if test -n "$CC"; then 1100 echo "$ac_t""$CC" 1>&6 1101else 1102 echo "$ac_t""no" 1>&6 1103fi 1104 # Extract the first word of "gcc", so it can be a program name with args. 1105set dummy gcc; ac_word=$2 1106echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1107echo "configure:1108: checking for $ac_word" >&5 1108if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1109 echo $ac_n "(cached) $ac_c" 1>&6 1110else 1111 if test -n "$CC"; then 1112 ac_cv_prog_CC="$CC" # Let the user override the test. 1113else 1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1115 ac_dummy="$PATH" 1116 for ac_dir in $ac_dummy; do 1117 test -z "$ac_dir" && ac_dir=. 1118 if test -f $ac_dir/$ac_word; then 1119 ac_cv_prog_CC="gcc" 1120 break 1121 fi 1122 done 1123 IFS="$ac_save_ifs" 1124fi 1125fi 1126CC="$ac_cv_prog_CC" 1127if test -n "$CC"; then 1128 echo "$ac_t""$CC" 1>&6 1129else 1130 echo "$ac_t""no" 1>&6 1131fi 1132 1133if test -z "$CC"; then 1134 # Extract the first word of "cc", so it can be a program name with args. 1135set dummy cc; ac_word=$2 1136echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1137echo "configure:1138: checking for $ac_word" >&5 1138if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1139 echo $ac_n "(cached) $ac_c" 1>&6 1140else 1141 if test -n "$CC"; then 1142 ac_cv_prog_CC="$CC" # Let the user override the test. 1143else 1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1145 ac_prog_rejected=no 1146 ac_dummy="$PATH" 1147 for ac_dir in $ac_dummy; do 1148 test -z "$ac_dir" && ac_dir=. 1149 if test -f $ac_dir/$ac_word; then 1150 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1151 ac_prog_rejected=yes 1152 continue 1153 fi 1154 ac_cv_prog_CC="cc" 1155 break 1156 fi 1157 done 1158 IFS="$ac_save_ifs" 1159if test $ac_prog_rejected = yes; then 1160 # We found a bogon in the path, so make sure we never use it. 1161 set dummy $ac_cv_prog_CC 1162 shift 1163 if test $# -gt 0; then 1164 # We chose a different compiler from the bogus one. 1165 # However, it has the same basename, so the bogon will be chosen 1166 # first if we set CC to just the basename; use the full file name. 1167 shift 1168 set dummy "$ac_dir/$ac_word" "$@" 1169 shift 1170 ac_cv_prog_CC="$@" 1171 fi 1172fi 1173fi 1174fi 1175CC="$ac_cv_prog_CC" 1176if test -n "$CC"; then 1177 echo "$ac_t""$CC" 1>&6 1178else 1179 echo "$ac_t""no" 1>&6 1180fi 1181 1182 if test -z "$CC"; then 1183 case "`uname -s`" in 1184 *win32* | *WIN32*) 1185 # Extract the first word of "cl", so it can be a program name with args. 1186set dummy cl; ac_word=$2 1187echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1188echo "configure:1189: checking for $ac_word" >&5 1189if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1190 echo $ac_n "(cached) $ac_c" 1>&6 1191else 1192 if test -n "$CC"; then 1193 ac_cv_prog_CC="$CC" # Let the user override the test. 1194else 1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1196 ac_dummy="$PATH" 1197 for ac_dir in $ac_dummy; do 1198 test -z "$ac_dir" && ac_dir=. 1199 if test -f $ac_dir/$ac_word; then 1200 ac_cv_prog_CC="cl" 1201 break 1202 fi 1203 done 1204 IFS="$ac_save_ifs" 1205fi 1206fi 1207CC="$ac_cv_prog_CC" 1208if test -n "$CC"; then 1209 echo "$ac_t""$CC" 1>&6 1210else 1211 echo "$ac_t""no" 1>&6 1212fi 1213 ;; 1214 esac 1215 fi 1216 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1217fi 1218 1219echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1220echo "configure:1221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1221 1222ac_ext=c 1223# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1224ac_cpp='$CPP $CPPFLAGS' 1225ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1226ac_compile2='${CC-cc} -c $CFLAGS $CPPFLAGS conftest2.$ac_ext 1>&5' 1227if test ."$ac_os_name" = ".OS/390" ; then 1228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1229else 1230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&5' 1231fi 1232cross_compiling=$ac_cv_prog_cc_cross 1233if test "$cross_compiling" = yes -a "$CONFIG_RMTCALL" != NONE ; then 1234 cross_compiling=remote 1235 rmtcall="$CONFIG_RMTCALL" 1236 rmttest="$CONFIG_RMTCALL" 1237fi 1238 1239cat > conftest.$ac_ext << EOF 1240 1241#line 1242 "configure" 1242#include "confdefs.h" 1243 1244int main(){return(0);} 1245EOF 1246if { { eval echo configure:1247: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 1247 ac_cv_prog_cc_works=yes 1248 # If we can't run a trivial program, we are probably using a cross compiler. 1249 if (./conftest${ac_xexeext}; exit) 2>/dev/null; then 1250 ac_cv_prog_cc_cross=no 1251 else 1252 ac_cv_prog_cc_cross=yes 1253 fi 1254else 1255 echo "configure: failed program was:" >&5 1256 cat conftest.$ac_ext >&5 1257 ac_cv_prog_cc_works=no 1258fi 1259rm -fr conftest* 1260ac_ext=c 1261# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1262ac_cpp='$CPP $CPPFLAGS' 1263ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1264ac_compile2='${CC-cc} -c $CFLAGS $CPPFLAGS conftest2.$ac_ext 1>&5' 1265if test ."$ac_os_name" = ".OS/390" ; then 1266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1267else 1268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS conftest.$ac_ext $LDFLAGS $LIBS 1>&5' 1269fi 1270cross_compiling=$ac_cv_prog_cc_cross 1271if test "$cross_compiling" = yes -a "$CONFIG_RMTCALL" != NONE ; then 1272 cross_compiling=remote 1273 rmtcall="$CONFIG_RMTCALL" 1274 rmttest="$CONFIG_RMTCALL" 1275fi 1276 1277echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1278if test $ac_cv_prog_cc_works = no; then 1279 ccout=`eval "${CC-cc} 2>&1" 2> /dev/null` 1280 ret=$? 1281 nf=`echo "$ccout" | grep 'not found'` 1282 if test $ret = 127 -a -n "$nf" ; then # Korn Shell 1283 ccout="" 1284 fi 1285 if test "$ret" -ne 0 -a ! -n "$ccout" ; then 1286 { echo "configure: error: installation or configuration problem: C compiler ${CC-cc} not found." 1>&2; exit 1; } 1287 fi 1288 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1289fi 1290echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1291echo "configure:1292: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1292echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1293cross_compiling=$ac_cv_prog_cc_cross 1294if test "$cross_compiling" = yes -a "$CONFIG_RMTCALL" != NONE ; then 1295 cross_compiling=remote 1296 rmtcall="$CONFIG_RMTCALL" 1297 rmttest="$CONFIG_RMTCALL" 1298fi 1299 1300echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1301echo "configure:1302: checking whether we are using GNU C" >&5 1302if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1303 echo $ac_n "(cached) $ac_c" 1>&6 1304else 1305 cat > conftest.c <<EOF 1306#ifdef __GNUC__ 1307 yes; 1308#endif 1309EOF 1310if { ac_try='${CC-cc} -E conftest.c'; { { eval echo configure:1311: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1311 ac_cv_prog_gcc=yes 1312else 1313 ac_cv_prog_gcc=no 1314fi 1315fi 1316 1317echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1318 1319if test $ac_cv_prog_gcc = yes; then 1320 GCC=yes 1321else 1322 GCC= 1323fi 1324 1325ac_test_CFLAGS="${CFLAGS+set}" 1326ac_save_CFLAGS="$CFLAGS" 1327CFLAGS= 1328echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1329echo "configure:1330: checking whether ${CC-cc} accepts -g" >&5 1330if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1331 echo $ac_n "(cached) $ac_c" 1>&6 1332else 1333 echo 'void f(){}' > conftest.c 1334if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1335 ac_cv_prog_cc_g=yes 1336else 1337 ac_cv_prog_cc_g=no 1338fi 1339rm -rf conftest* 1340 1341fi 1342 1343echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1344if test "$ac_test_CFLAGS" = set; then 1345 CFLAGS="$ac_save_CFLAGS" 1346elif test $ac_cv_prog_cc_g = yes; then 1347 if test "$GCC" = yes; then 1348 CFLAGS="-g -O2" 1349 else 1350 CFLAGS="-g" 1351 fi 1352else 1353 if test "$GCC" = yes; then 1354 CFLAGS="-O2" 1355 else 1356 CFLAGS= 1357 fi 1358fi 1359 1360if test "$cross_compiling" = remote -a ."$CONFIG_RMTCALL" = . ; then 1361 echo 'CONFIG_RMTCALL=script-path required for remote execution' 1>&2 1362 exit 1 1363fi 1364if test "$cross_compiling" = remote -a ."$CONFIG_RMTHOST" = . ; then 1365 echo 'CONFIG_RMTHOST=host or CONFIG_RMTHOST=user@host required for remote execution' 1>&2 1366 exit 1 1367fi 1368if test "$cross_compiling" = remote ; then 1369 echo "Cross-Compiling with remote execution of test programs" 1370 echo "Cross-Compile script: $CONFIG_RMTCALL" 1371 echo "Cross-Compile host: $CONFIG_RMTHOST" 1372fi 1373 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 1374echo "configure:1375: checking for object suffix" >&5 1375if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 1376 echo $ac_n "(cached) $ac_c" 1>&6 1377else 1378 rm -rf conftest* 1379echo 'int i = 1;' > conftest.$ac_ext 1380if { { eval echo configure:1381: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 1381 for ac_file in conftest.*; do 1382 case $ac_file in 1383 *.c) ;; 1384 *.dSYM) ;; # Ignore strange directory found on Mac OS X with cc -g 1385 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 1386 esac 1387 done 1388else 1389 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 1390fi 1391rm -rf conftest* 1392fi 1393 1394echo "$ac_t""$ac_cv_objext" 1>&6 1395OBJEXT=$ac_cv_objext 1396ac_objext=$ac_cv_objext 1397 1398echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 1399echo "configure:1400: checking for Cygwin environment" >&5 1400if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 1401 echo $ac_n "(cached) $ac_c" 1>&6 1402else 1403 cat > conftest.$ac_ext <<EOF 1404#line 1405 "configure" 1405#include "confdefs.h" 1406 1407int main() { 1408 1409#ifndef __CYGWIN__ 1410#define __CYGWIN__ __CYGWIN32__ 1411#endif 1412return __CYGWIN__; 1413; return 0; } 1414EOF 1415if { { eval echo configure:1416: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 1416 rm -rf conftest* 1417 ac_cv_cygwin=yes 1418else 1419 echo "configure: failed program was:" >&5 1420 cat conftest.$ac_ext >&5 1421 rm -rf conftest* 1422 ac_cv_cygwin=no 1423fi 1424rm -f conftest* 1425rm -rf conftest* 1426fi 1427 1428echo "$ac_t""$ac_cv_cygwin" 1>&6 1429CYGWIN= 1430test "$ac_cv_cygwin" = yes && CYGWIN=yes 1431echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 1432echo "configure:1433: checking for mingw32 environment" >&5 1433if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 1434 echo $ac_n "(cached) $ac_c" 1>&6 1435else 1436 cat > conftest.$ac_ext <<EOF 1437#line 1438 "configure" 1438#include "confdefs.h" 1439 1440int main() { 1441return __MINGW32__; 1442; return 0; } 1443EOF 1444if { { eval echo configure:1445: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 1445 rm -rf conftest* 1446 ac_cv_mingw32=yes 1447else 1448 echo "configure: failed program was:" >&5 1449 cat conftest.$ac_ext >&5 1450 rm -rf conftest* 1451 ac_cv_mingw32=no 1452fi 1453rm -f conftest* 1454rm -rf conftest* 1455fi 1456 1457echo "$ac_t""$ac_cv_mingw32" 1>&6 1458MINGW32= 1459test "$ac_cv_mingw32" = yes && MINGW32=yes 1460echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 1461echo "configure:1462: checking for EMX/OS2 environment" >&5 1462if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then 1463 echo $ac_n "(cached) $ac_c" 1>&6 1464else 1465 cat > conftest.$ac_ext <<EOF 1466#line 1467 "configure" 1467#include "confdefs.h" 1468 1469int main() { 1470return __EMX__; 1471; return 0; } 1472EOF 1473if { { eval echo configure:1474: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 1474 rm -rf conftest* 1475 ac_cv_emxos2=yes 1476else 1477 echo "configure: failed program was:" >&5 1478 cat conftest.$ac_ext >&5 1479 rm -rf conftest* 1480 ac_cv_emxos2=no 1481fi 1482rm -f conftest* 1483rm -rf conftest* 1484fi 1485 1486echo "$ac_t""$ac_cv_emxos2" 1>&6 1487if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then 1488 echo $ac_n "(cached) $ac_c" 1>&6 1489else 1490 if test "$ac_cv_emxos2" = yes ; then 1491 ac_cv_libpre= 1492else 1493 ac_cv_libpre=lib 1494fi 1495 1496fi 1497 1498EMXOS2= 1499test "$ac_cv_emxos2" = yes && EMXOS2=yes 1500 1501 1502 1503echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1504echo "configure:1505: checking for executable suffix" >&5 1505if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1506 echo $ac_n "(cached) $ac_c" 1>&6 1507else 1508 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then 1509 ac_cv_exeext=.exe 1510 ac_cv_xexeext="" 1511else 1512 rm -rf conftest* 1513 echo 'int main () { return 0; }' > conftest.$ac_ext 1514 ac_cv_exeext= 1515 if { { eval echo configure:1516: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; }; then 1516 for file in conftest.*; do 1517 case $file in 1518 *.c | *.o | *.obj) ;; 1519 *.dSYM) ;; # Ignore strange directory found on Mac OS X with cc -g 1520 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1521 esac 1522 done 1523 else 1524 ccout=`eval "${CC-cc} 2>&1" 2> /dev/null` 1525 ret=$? 1526 nf=`echo "$ccout" | grep 'not found'` 1527 if test $ret = 127 -a -n "$nf" ; then # Korn Shell 1528 ccout="" 1529 fi 1530 if test "$ret" -ne 0 -a ! -n "$ccout" ; then 1531 { echo "configure: error: installation or configuration problem: C compiler ${CC-cc} not found." 1>&2; exit 1; } 1532 fi 1533 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1534 fi 1535 (./conftest ; exit) 2> /dev/null 1536 if test $? != 0 ; then 1537 ac_cv_xexeext="${ac_cv_exeext}" 1538 (./conftest${ac_cv_xexeext} ; exit) 2> /dev/null 1539 if test $? != 0 ; then 1540 ac_cv_xexeext="" 1541 fi 1542 fi 1543 rm -rf conftest* 1544 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1545 test x"${ac_cv_xexeext}" = x && ac_cv_xexeext=no 1546fi 1547fi 1548 1549EXEEXT="" 1550XEXEEXT="" 1551test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1552test x"${ac_cv_xexeext}" != xno && XEXEEXT=${ac_cv_xexeext} 1553echo "$ac_t""${ac_cv_exeext}" 1>&6 1554echo $ac_n "checking for executable calling suffix""... $ac_c" 1>&6 1555echo "configure:1556: checking for executable calling suffix" >&5 1556echo "$ac_t""${ac_cv_xexeext}" 1>&6 1557ac_exeext=$EXEEXT 1558ac_xexeext=$XEXEEXT 1559 1560 1561 1562echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1563echo "configure:1564: checking how to run the C preprocessor" >&5 1564# On Suns, sometimes $CPP names a directory. 1565if test -n "$CPP" && test -d "$CPP"; then 1566 CPP= 1567fi 1568if test -z "$CPP"; then 1569if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1570 echo $ac_n "(cached) $ac_c" 1>&6 1571else 1572 # This must be in double quotes, not single quotes, because CPP may get 1573 # substituted into the Makefile and "${CC-cc}" will confuse make. 1574 CPP="${CC-cc} -E" 1575 # On the NeXT, cc -E runs the code through the compiler's parser, 1576 # not just through cpp. 1577 cat > conftest.$ac_ext <<EOF 1578#line 1579 "configure" 1579#include "confdefs.h" 1580#include <assert.h> 1581Syntax Error 1582EOF 1583ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1584{ { eval echo configure:1585: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 1585ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 1586if test -z "$ac_err"; then 1587 : 1588else 1589 echo "$ac_err" >&5 1590 echo "configure: failed program was:" >&5 1591 cat conftest.$ac_ext >&5 1592 rm -rf conftest* 1593 CPP="${CC-cc} -E -traditional-cpp" 1594 cat > conftest.$ac_ext <<EOF 1595#line 1596 "configure" 1596#include "confdefs.h" 1597#include <assert.h> 1598Syntax Error 1599EOF 1600ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1601{ { eval echo configure:1602: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 1602ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 1603if test -z "$ac_err"; then 1604 : 1605else 1606 echo "$ac_err" >&5 1607 echo "configure: failed program was:" >&5 1608 cat conftest.$ac_ext >&5 1609 rm -rf conftest* 1610 CPP="${CC-cc} -nologo -E" 1611 cat > conftest.$ac_ext <<EOF 1612#line 1613 "configure" 1613#include "confdefs.h" 1614#include <assert.h> 1615Syntax Error 1616EOF 1617ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1618{ { eval echo configure:1619: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 1619ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 1620if test -z "$ac_err"; then 1621 : 1622else 1623 echo "$ac_err" >&5 1624 echo "configure: failed program was:" >&5 1625 cat conftest.$ac_ext >&5 1626 rm -rf conftest* 1627 CPP=/lib/cpp 1628fi 1629rm -f conftest* 1630fi 1631rm -f conftest* 1632fi 1633rm -f conftest* 1634 ac_cv_prog_CPP="$CPP" 1635fi 1636 CPP="$ac_cv_prog_CPP" 1637else 1638 ac_cv_prog_CPP="$CPP" 1639fi 1640echo "$ac_t""$CPP" 1>&6 1641 1642# Extract the first word of "${CC-cc}", so it can be a program name with args. 1643set dummy ${CC-cc}; ac_word=$2 1644echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1645echo "configure:1646: checking for $ac_word" >&5 1646if eval "test \"`echo '$''{'ac_cv_path_ac_path_cc'+set}'`\" = set"; then 1647 echo $ac_n "(cached) $ac_c" 1>&6 1648else 1649 case "$ac_path_cc" in 1650 /*) 1651 ac_cv_path_ac_path_cc="$ac_path_cc" # Let the user override the test with a path. 1652 ;; 1653 ?:/*) 1654 ac_cv_path_ac_path_cc="$ac_path_cc" # Let the user override the test with a dos path. 1655 ;; 1656 *) 1657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1658 ac_dummy="$PATH" 1659 for ac_dir in $ac_dummy; do 1660 test -z "$ac_dir" && ac_dir=. 1661 if test -f $ac_dir/$ac_word; then 1662 ac_cv_path_ac_path_cc="$ac_dir/$ac_word" 1663 break 1664 fi 1665 done 1666 IFS="$ac_save_ifs" 1667 ;; 1668esac 1669fi 1670ac_path_cc="$ac_cv_path_ac_path_cc" 1671if test -n "$ac_path_cc"; then 1672 echo "$ac_t""$ac_path_cc" 1>&6 1673else 1674 echo "$ac_t""no" 1>&6 1675fi 1676 1677 1678echo $ac_n "checking how to run the C preprocessor for any type of file""... $ac_c" 1>&6 1679echo "configure:1680: checking how to run the C preprocessor for any type of file" >&5 1680if test -z "$CPPX"; then 1681if eval "test \"`echo '$''{'ac_cv_prog_CPPX'+set}'`\" = set"; then 1682 echo $ac_n "(cached) $ac_c" 1>&6 1683else 1684 1685 # This must be in double quotes, not single quotes, because CPP may get 1686 # substituted in the Makefile and "${CC-cc}" will confuse make. 1687 CPPX="$CPP" 1688 CPPX_IN="" 1689 cat > conftestcpp << EOF 1690 xxzzy 1691EOF 1692 # gcc -E does not accept any file suffix, so we need to test 1693 # and if $CC -E fails, we try to use dirname(which($CC))/cpp 1694 # We cannot use AC_TRY_EVAL(CPPX conftestcpp | grep xxzzy) because 1695 # of a bug in the parser from bash 1696 ac_result=`(echo configure:1697: "$CPPX conftestcpp | grep xxzzy" 1>&5; eval $CPPX conftestcpp | grep xxzzy) 2>&5` 1697 if test -z "$ac_result"; then 1698 # Cannot use type(1) here as this should work with a V7 shell 1699 # So we use the result from AC_PATH_PROG 1700 ac_file="$ac_path_cc" 1701 # Remove last slash and all that follows it. Not all systems have dirname. 1702 ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'` 1703 if test -f "$ac_dir"/cpp; then 1704 CPPX="$ac_dir"/cpp 1705 else 1706 # gcc -E does not like all file types, but 1707 # gcc -E - < does. Test whether this works. 1708 # WARNING: eval needs a subshell for the V7 shell 1709 ac_result=`(echo configure:1710: "$CPPX - < conftestcpp | grep xxzzy" 1>&5; (eval $CPPX -) < conftestcpp | grep xxzzy) 2>&5` 1710 if test -n "$ac_result"; then 1711 CPPX_IN="- <" 1712 fi 1713 fi 1714 fi 1715 ac_cv_prog_CPPX="$CPPX" 1716 ac_cv_prog_CPPX_IN="$CPPX_IN" 1717fi 1718 CPPX="$ac_cv_prog_CPPX" 1719 CPPX_IN="$ac_cv_prog_CPPX_IN" 1720else 1721 ac_cv_prog_CPPX="$CPPX" 1722 ac_cv_prog_CPPX_IN="$CPPX_IN" 1723fi 1724echo "$ac_t""$CPPX '"$CPPX_IN"'" 1>&6 1725 1726echo $ac_n "checking if suncc/cc supports -m64""... $ac_c" 1>&6 1727echo "configure:1728: checking if suncc/cc supports -m64" >&5 1728if eval "test \"`echo '$''{'ac_cv_sun_cc64_opt'+set}'`\" = set"; then 1729 echo $ac_n "(cached) $ac_c" 1>&6 1730else 1731 1732sun_cc64=cc 1733sun_cc64_opt='' 1734ac_cv_sun_cc64_opt=no 1735if test "$GCC" != yes; then 1736 if test "$CC" = suncc; then 1737 sun_cc64=suncc 1738 fi 1739 ac_err=`(eval $sun_cc64 -m64 -c) < /dev/null 2>&1 | grep illegal` 1740 if test -n "$ac_err"; then 1741 ac_cv_sun_cc64_opt=no 1742 else 1743 ac_cv_sun_cc64_opt=yes 1744 fi 1745fi 1746 1747fi 1748 1749echo "$ac_t""$ac_cv_sun_cc64_opt" 1>&6 1750if test $ac_cv_sun_cc64_opt = yes; then 1751 sun_cc64_opt='-m64' 1752fi 1753echo $ac_n "checking if HP cc supports -Ae""... $ac_c" 1>&6 1754echo "configure:1755: checking if HP cc supports -Ae" >&5 1755if eval "test \"`echo '$''{'ac_cv_hp_cc_ansi_opt'+set}'`\" = set"; then 1756 echo $ac_n "(cached) $ac_c" 1>&6 1757else 1758 1759hp_cc=cc 1760hp_cc_ansi_opt='' 1761ac_cv_hp_cc_ansi_opt=no 1762if test "$GCC" != yes; then 1763 os_name=`(uname -s) 2> /dev/null` 1764 if test ."$os_name" = .HP-UX ; then 1765 ac_err=`(eval $hp_cc -Ae -c) < /dev/null 2>&1 | grep 'Bundled.*option is available only'` 1766 if test -n "$ac_err"; then 1767 ac_cv_hp_cc_ansi_opt=no 1768 else 1769 ac_cv_hp_cc_ansi_opt=yes 1770 fi 1771 fi 1772fi 1773 1774fi 1775 1776echo "$ac_t""$ac_cv_hp_cc_ansi_opt" 1>&6 1777if test $ac_cv_hp_cc_ansi_opt = yes; then 1778 hp_cc_ansi_opt='-Ae' 1779fi 1780echo $ac_n "checking if HP cc supports -O""... $ac_c" 1>&6 1781echo "configure:1782: checking if HP cc supports -O" >&5 1782if eval "test \"`echo '$''{'ac_cv_hp_cc_opt_opt'+set}'`\" = set"; then 1783 echo $ac_n "(cached) $ac_c" 1>&6 1784else 1785 1786hp_cc=cc 1787hp_cc_opt_opt='' 1788ac_cv_hp_cc_opt_opt=no 1789if test "$GCC" != yes; then 1790 os_name=`(uname -s) 2> /dev/null` 1791 if test ."$os_name" = .HP-UX ; then 1792 ac_err=`(eval $hp_cc -O -c) < /dev/null 2>&1 | grep 'Bundled.*option is available only'` 1793 if test -n "$ac_err"; then 1794 ac_cv_hp_cc_opt_opt=no 1795 else 1796 ac_cv_hp_cc_opt_opt=yes 1797 fi 1798 fi 1799fi 1800 1801fi 1802 1803echo "$ac_t""$ac_cv_hp_cc_opt_opt" 1>&6 1804if test $ac_cv_hp_cc_opt_opt = yes; then 1805 hp_cc_opt_opt='-O' 1806fi 1807echo $ac_n "checking if HP cc supports -G""... $ac_c" 1>&6 1808echo "configure:1809: checking if HP cc supports -G" >&5 1809if eval "test \"`echo '$''{'ac_cv_hp_cc_gprof_opt'+set}'`\" = set"; then 1810 echo $ac_n "(cached) $ac_c" 1>&6 1811else 1812 1813hp_cc=cc 1814hp_cc_gprof_opt='' 1815ac_cv_hp_cc_gprof_opt=no 1816if test "$GCC" != yes; then 1817 os_name=`(uname -s) 2> /dev/null` 1818 if test ."$os_name" = .HP-UX ; then 1819 ac_err=`(eval $hp_cc -O -c) < /dev/null 2>&1 | grep 'Bundled.*option is available only'` 1820 if test -n "$ac_err"; then 1821 ac_cv_hp_cc_gprof_opt=no 1822 else 1823 ac_cv_hp_cc_gprof_opt=yes 1824 fi 1825 fi 1826fi 1827 1828fi 1829 1830echo "$ac_t""$ac_cv_hp_cc_gprof_opt" 1>&6 1831if test $ac_cv_hp_cc_gprof_opt = yes; then 1832 hp_cc_gprof_opt='-G' 1833fi 1834# Extract the first word of "ranlib", so it can be a program name with args. 1835set dummy ranlib; ac_word=$2 1836echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1837echo "configure:1838: checking for $ac_word" >&5 1838if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1839 echo $ac_n "(cached) $ac_c" 1>&6 1840else 1841 if test -n "$RANLIB"; then 1842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1843else 1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1845 ac_dummy="$PATH" 1846 for ac_dir in $ac_dummy; do 1847 test -z "$ac_dir" && ac_dir=. 1848 if test -f $ac_dir/$ac_word; then 1849 ac_cv_prog_RANLIB="ranlib" 1850 break 1851 fi 1852 done 1853 IFS="$ac_save_ifs" 1854 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1855fi 1856fi 1857RANLIB="$ac_cv_prog_RANLIB" 1858if test -n "$RANLIB"; then 1859 echo "$ac_t""$RANLIB" 1>&6 1860else 1861 echo "$ac_t""no" 1>&6 1862fi 1863 1864echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1865echo "configure:1866: checking whether ${MAKE-make} sets \${MAKE}" >&5 1866set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1867if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1868 echo $ac_n "(cached) $ac_c" 1>&6 1869else 1870 cat > conftestmake <<\EOF 1871all: 1872 @echo 'ac_maketemp="${MAKE}"' 1873EOF 1874# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1875eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1876if test -n "$ac_maketemp"; then 1877 eval ac_cv_prog_make_${ac_make}_set=yes 1878else 1879 eval ac_cv_prog_make_${ac_make}_set=no 1880fi 1881rm -f conftestmake 1882fi 1883if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1884 echo "$ac_t""yes" 1>&6 1885 SET_MAKE= 1886else 1887 echo "$ac_t""no" 1>&6 1888 SET_MAKE="MAKE=${MAKE-make}" 1889fi 1890 1891for ac_prog in yacc 'bison -y' byacc 1892do 1893# Extract the first word of "$ac_prog", so it can be a program name with args. 1894set dummy $ac_prog; ac_word=$2 1895echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1896echo "configure:1897: checking for $ac_word" >&5 1897if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 1898 echo $ac_n "(cached) $ac_c" 1>&6 1899else 1900 if test -n "$YACC"; then 1901 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1902else 1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1904 ac_dummy="$PATH" 1905 for ac_dir in $ac_dummy; do 1906 test -z "$ac_dir" && ac_dir=. 1907 if test -f $ac_dir/$ac_word; then 1908 ac_cv_prog_YACC="$ac_prog" 1909 break 1910 fi 1911 done 1912 IFS="$ac_save_ifs" 1913fi 1914fi 1915YACC="$ac_cv_prog_YACC" 1916if test -n "$YACC"; then 1917 echo "$ac_t""$YACC" 1>&6 1918else 1919 echo "$ac_t""no" 1>&6 1920fi 1921 1922test -n "$YACC" && break 1923done 1924test -n "$YACC" || YACC="noyacc" 1925 1926for ac_prog in bison 1927do 1928# Extract the first word of "$ac_prog", so it can be a program name with args. 1929set dummy $ac_prog; ac_word=$2 1930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1931echo "configure:1932: checking for $ac_word" >&5 1932if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 1933 echo $ac_n "(cached) $ac_c" 1>&6 1934else 1935 if test -n "$BISON"; then 1936 ac_cv_prog_BISON="$BISON" # Let the user override the test. 1937else 1938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1939 ac_dummy="$PATH" 1940 for ac_dir in $ac_dummy; do 1941 test -z "$ac_dir" && ac_dir=. 1942 if test -f $ac_dir/$ac_word; then 1943 ac_cv_prog_BISON="$ac_prog" 1944 break 1945 fi 1946 done 1947 IFS="$ac_save_ifs" 1948fi 1949fi 1950BISON="$ac_cv_prog_BISON" 1951if test -n "$BISON"; then 1952 echo "$ac_t""$BISON" 1>&6 1953else 1954 echo "$ac_t""no" 1>&6 1955fi 1956 1957test -n "$BISON" && break 1958done 1959test -n "$BISON" || BISON="nobison" 1960 1961# 1962# We need both tsort/lorder or none of them 1963# 1964# Extract the first word of "lorder", so it can be a program name with args. 1965set dummy lorder; ac_word=$2 1966echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1967echo "configure:1968: checking for $ac_word" >&5 1968if eval "test \"`echo '$''{'ac_cv_path_LORDER'+set}'`\" = set"; then 1969 echo $ac_n "(cached) $ac_c" 1>&6 1970else 1971 case "$LORDER" in 1972 /*) 1973 ac_cv_path_LORDER="$LORDER" # Let the user override the test with a path. 1974 ;; 1975 ?:/*) 1976 ac_cv_path_LORDER="$LORDER" # Let the user override the test with a dos path. 1977 ;; 1978 *) 1979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1980 ac_dummy="$PATH:/usr/ccs/bin" 1981 for ac_dir in $ac_dummy; do 1982 test -z "$ac_dir" && ac_dir=. 1983 if test -f $ac_dir/$ac_word; then 1984 ac_cv_path_LORDER="$ac_dir/$ac_word" 1985 break 1986 fi 1987 done 1988 IFS="$ac_save_ifs" 1989 test -z "$ac_cv_path_LORDER" && ac_cv_path_LORDER="echo" 1990 ;; 1991esac 1992fi 1993LORDER="$ac_cv_path_LORDER" 1994if test -n "$LORDER"; then 1995 echo "$ac_t""$LORDER" 1>&6 1996else 1997 echo "$ac_t""no" 1>&6 1998fi 1999 2000if test "$LORDER" = echo; then 2001 TSORT=cat 2002else 2003 # Extract the first word of "tsort", so it can be a program name with args. 2004set dummy tsort; ac_word=$2 2005echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2006echo "configure:2007: checking for $ac_word" >&5 2007if eval "test \"`echo '$''{'ac_cv_path_TSORT'+set}'`\" = set"; then 2008 echo $ac_n "(cached) $ac_c" 1>&6 2009else 2010 case "$TSORT" in 2011 /*) 2012 ac_cv_path_TSORT="$TSORT" # Let the user override the test with a path. 2013 ;; 2014 ?:/*) 2015 ac_cv_path_TSORT="$TSORT" # Let the user override the test with a dos path. 2016 ;; 2017 *) 2018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2019 ac_dummy="$PATH:/usr/ccs/bin" 2020 for ac_dir in $ac_dummy; do 2021 test -z "$ac_dir" && ac_dir=. 2022 if test -f $ac_dir/$ac_word; then 2023 ac_cv_path_TSORT="$ac_dir/$ac_word" 2024 break 2025 fi 2026 done 2027 IFS="$ac_save_ifs" 2028 test -z "$ac_cv_path_TSORT" && ac_cv_path_TSORT="cat" 2029 ;; 2030esac 2031fi 2032TSORT="$ac_cv_path_TSORT" 2033if test -n "$TSORT"; then 2034 echo "$ac_t""$TSORT" 1>&6 2035else 2036 echo "$ac_t""no" 1>&6 2037fi 2038 2039 if test "$TSORT" = cat; then 2040 LORDER=echo 2041 fi 2042fi 2043 2044# 2045# patch(1) needs the PATH to ed(1) and red(1) 2046# 2047# Extract the first word of "ed", so it can be a program name with args. 2048set dummy ed; ac_word=$2 2049echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2050echo "configure:2051: checking for $ac_word" >&5 2051if eval "test \"`echo '$''{'ac_cv_path_path_ed'+set}'`\" = set"; then 2052 echo $ac_n "(cached) $ac_c" 1>&6 2053else 2054 case "$path_ed" in 2055 /*) 2056 ac_cv_path_path_ed="$path_ed" # Let the user override the test with a path. 2057 ;; 2058 ?:/*) 2059 ac_cv_path_path_ed="$path_ed" # Let the user override the test with a dos path. 2060 ;; 2061 *) 2062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2063 ac_dummy="$PATH" 2064 for ac_dir in $ac_dummy; do 2065 test -z "$ac_dir" && ac_dir=. 2066 if test -f $ac_dir/$ac_word; then 2067 ac_cv_path_path_ed="$ac_dir/$ac_word" 2068 break 2069 fi 2070 done 2071 IFS="$ac_save_ifs" 2072 test -z "$ac_cv_path_path_ed" && ac_cv_path_path_ed="false" 2073 ;; 2074esac 2075fi 2076path_ed="$ac_cv_path_path_ed" 2077if test -n "$path_ed"; then 2078 echo "$ac_t""$path_ed" 1>&6 2079else 2080 echo "$ac_t""no" 1>&6 2081fi 2082 2083# Extract the first word of "red", so it can be a program name with args. 2084set dummy red; ac_word=$2 2085echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2086echo "configure:2087: checking for $ac_word" >&5 2087if eval "test \"`echo '$''{'ac_cv_path_path_red'+set}'`\" = set"; then 2088 echo $ac_n "(cached) $ac_c" 1>&6 2089else 2090 case "$path_red" in 2091 /*) 2092 ac_cv_path_path_red="$path_red" # Let the user override the test with a path. 2093 ;; 2094 ?:/*) 2095 ac_cv_path_path_red="$path_red" # Let the user override the test with a dos path. 2096 ;; 2097 *) 2098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2099 ac_dummy="$PATH" 2100 for ac_dir in $ac_dummy; do 2101 test -z "$ac_dir" && ac_dir=. 2102 if test -f $ac_dir/$ac_word; then 2103 ac_cv_path_path_red="$ac_dir/$ac_word" 2104 break 2105 fi 2106 done 2107 IFS="$ac_save_ifs" 2108 test -z "$ac_cv_path_path_red" && ac_cv_path_path_red="$path_ed" 2109 ;; 2110esac 2111fi 2112path_red="$ac_cv_path_path_red" 2113if test -n "$path_red"; then 2114 echo "$ac_t""$path_red" 1>&6 2115else 2116 echo "$ac_t""no" 1>&6 2117fi 2118 2119if test "$cross_compiling" = remote ; then 2120path_ed=/bin/ed 2121path_red=/bin/red 2122echo "$ac_t""cross compiling is not yet supported using /bin/ed and /bin/red" 1>&6 2123fi 2124cat >> confdefs.h <<EOF 2125#define CNF_PATH_ED "$path_ed" 2126EOF 2127 2128cat >> confdefs.h <<EOF 2129#define CNF_PATH_RED "$path_red" 2130EOF 2131 2132 2133echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2134echo "configure:2135: checking for ANSI C header files" >&5 2135if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2136 echo $ac_n "(cached) $ac_c" 1>&6 2137else 2138 cat > conftest.$ac_ext <<EOF 2139#line 2140 "configure" 2140#include "confdefs.h" 2141#include <stdlib.h> 2142#include <stdarg.h> 2143#include <string.h> 2144#include <float.h> 2145EOF 2146ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2147{ { eval echo configure:2148: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 2148ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 2149if test -z "$ac_err"; then 2150 rm -rf conftest* 2151 ac_cv_header_stdc=yes 2152else 2153 echo "$ac_err" >&5 2154 echo "configure: failed program was:" >&5 2155 cat conftest.$ac_ext >&5 2156 rm -rf conftest* 2157 ac_cv_header_stdc=no 2158fi 2159rm -f conftest* 2160 2161if test $ac_cv_header_stdc = yes; then 2162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2163cat > conftest.$ac_ext <<EOF 2164#line 2165 "configure" 2165#include "confdefs.h" 2166#include <string.h> 2167EOF 2168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2169 egrep "memchr" >/dev/null 2>&1; then 2170 : 2171else 2172 rm -rf conftest* 2173 ac_cv_header_stdc=no 2174fi 2175rm -f conftest* 2176 2177fi 2178 2179if test $ac_cv_header_stdc = yes; then 2180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2181cat > conftest.$ac_ext <<EOF 2182#line 2183 "configure" 2183#include "confdefs.h" 2184#include <stdlib.h> 2185EOF 2186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2187 egrep "free" >/dev/null 2>&1; then 2188 : 2189else 2190 rm -rf conftest* 2191 ac_cv_header_stdc=no 2192fi 2193rm -f conftest* 2194 2195fi 2196 2197if test $ac_cv_header_stdc = yes; then 2198 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2199if test "$cross_compiling" = yes; then 2200 : 2201else 2202 cat > conftest.$ac_ext <<EOF 2203#line 2204 "configure" 2204#include "confdefs.h" 2205#include <ctype.h> 2206#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2207#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2208#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2209int main () { int i; for (i = 0; i < 256; i++) 2210if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return(2); 2211return (0); } 2212 2213EOF 2214if { { eval echo configure:2215: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 2215then 2216 : 2217else 2218 echo "configure: failed program was:" >&5 2219 cat conftest.$ac_ext >&5 2220 rm -fr conftest* 2221 ac_cv_header_stdc=no 2222fi 2223rm -fr conftest* 2224fi 2225 2226fi 2227fi 2228 2229echo "$ac_t""$ac_cv_header_stdc" 1>&6 2230if test $ac_cv_header_stdc = yes; then 2231 cat >> confdefs.h <<\EOF 2232#define STDC_HEADERS 1 2233EOF 2234 2235 cat >> confdefs.h <<\EOF 2236#define HAVE_STDARG_H 1 2237EOF 2238 2239 cat >> confdefs.h <<\EOF 2240#define HAVE_STDLIB_H 1 2241EOF 2242 2243 cat >> confdefs.h <<\EOF 2244#define HAVE_STRING_H 1 2245EOF 2246 2247 cat >> confdefs.h <<\EOF 2248#define HAVE_FLOAT_H 1 2249EOF 2250 2251fi 2252 2253for ac_hdr in stdarg.h stdlib.h string.h float.h 2254do 2255ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2256echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2257echo "configure:2258: checking for $ac_hdr" >&5 2258if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2259 echo $ac_n "(cached) $ac_c" 1>&6 2260else 2261 cat > conftest.$ac_ext <<EOF 2262#line 2263 "configure" 2263#include "confdefs.h" 2264#include <$ac_hdr> 2265EOF 2266ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2267{ { eval echo configure:2268: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 2268ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 2269if test -z "$ac_err"; then 2270 rm -rf conftest* 2271 eval "ac_cv_header_$ac_safe=yes" 2272else 2273 echo "$ac_err" >&5 2274 echo "configure: failed program was:" >&5 2275 cat conftest.$ac_ext >&5 2276 rm -rf conftest* 2277 eval "ac_cv_header_$ac_safe=no" 2278fi 2279rm -f conftest* 2280fi 2281if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2282 echo "$ac_t""yes" 1>&6 2283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2284 cat >> confdefs.h <<EOF 2285#define $ac_tr_hdr 1 2286EOF 2287 2288else 2289 echo "$ac_t""no" 1>&6 2290fi 2291done 2292 echo $ac_n "checking for UNIX-98 compliant inttypes.h""... $ac_c" 1>&6 2293echo "configure:2294: checking for UNIX-98 compliant inttypes.h" >&5 2294if eval "test \"`echo '$''{'ac_cv_header_inttypes'+set}'`\" = set"; then 2295 echo $ac_n "(cached) $ac_c" 1>&6 2296else 2297 cat > conftest.$ac_ext <<EOF 2298#line 2299 "configure" 2299#include "confdefs.h" 2300#include <inttypes.h> 2301int main() { 2302int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; 2303int64_t ll; uint64_t ull; 2304intptr_t ip; uintptr_t uip; 2305; return 0; } 2306EOF 2307if { { eval echo configure:2308: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 2308 rm -rf conftest* 2309 ac_cv_header_inttypes=yes 2310else 2311 echo "configure: failed program was:" >&5 2312 cat conftest.$ac_ext >&5 2313 rm -rf conftest* 2314 ac_cv_header_inttypes=no 2315fi 2316rm -f conftest* 2317fi 2318 2319echo "$ac_t""$ac_cv_header_inttypes" 1>&6 2320if test $ac_cv_header_inttypes = yes; then 2321 cat >> confdefs.h <<\EOF 2322#define HAVE_INTTYPES_H 1 2323EOF 2324 2325fi 2326echo $ac_n "checking for SUSv3 compliant stdint.h""... $ac_c" 1>&6 2327echo "configure:2328: checking for SUSv3 compliant stdint.h" >&5 2328if eval "test \"`echo '$''{'ac_cv_header_stdint'+set}'`\" = set"; then 2329 echo $ac_n "(cached) $ac_c" 1>&6 2330else 2331 cat > conftest.$ac_ext <<EOF 2332#line 2333 "configure" 2333#include "confdefs.h" 2334#include <stdint.h> 2335int main() { 2336int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui; 2337int64_t ll; uint64_t ull; 2338intptr_t ip; uintptr_t uip; 2339intmax_t im; uintmax_t uim; 2340; return 0; } 2341EOF 2342if { { eval echo configure:2343: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 2343 rm -rf conftest* 2344 ac_cv_header_stdint=yes 2345else 2346 echo "configure: failed program was:" >&5 2347 cat conftest.$ac_ext >&5 2348 rm -rf conftest* 2349 ac_cv_header_stdint=no 2350fi 2351rm -f conftest* 2352fi 2353 2354echo "$ac_t""$ac_cv_header_stdint" 1>&6 2355if test $ac_cv_header_stdint = yes; then 2356 cat >> confdefs.h <<\EOF 2357#define HAVE_STDINT_H 1 2358EOF 2359 2360 cat >> confdefs.h <<\EOF 2361#define HAVE_TYPE_INTMAX_T 1 2362EOF 2363 2364 cat >> confdefs.h <<\EOF 2365#define HAVE_TYPE_UINTMAX_T 1 2366EOF 2367 2368fi 2369ac_xsave_LIBS="$LIBS" 2370LIBS="" 2371ac_header_dirent=no 2372for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 2373do 2374ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2375echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 2376echo "configure:2377: checking for $ac_hdr that defines DIR" >&5 2377if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 2378 echo $ac_n "(cached) $ac_c" 1>&6 2379else 2380 cat > conftest.$ac_ext <<EOF 2381#line 2382 "configure" 2382#include "confdefs.h" 2383#include <sys/types.h> 2384#include <$ac_hdr> 2385int main() { 2386DIR *dirp = 0; 2387; return 0; } 2388EOF 2389if { { eval echo configure:2390: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 2390 rm -rf conftest* 2391 eval "ac_cv_header_dirent_$ac_safe=yes" 2392else 2393 echo "configure: failed program was:" >&5 2394 cat conftest.$ac_ext >&5 2395 rm -rf conftest* 2396 eval "ac_cv_header_dirent_$ac_safe=no" 2397fi 2398rm -f conftest* 2399fi 2400if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 2401 echo "$ac_t""yes" 1>&6 2402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2403 cat >> confdefs.h <<EOF 2404#define $ac_tr_hdr 1 2405EOF 2406 ac_header_dirent=$ac_hdr; break 2407else 2408 echo "$ac_t""no" 1>&6 2409fi 2410done 2411# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 2412if test $ac_header_dirent = dirent.h; then 2413echo $ac_n "checking for opendir in -lc""... $ac_c" 1>&6 2414echo "configure:2415: checking for opendir in -lc" >&5 2415ac_lib_var=`echo c'_'opendir | sed 'y%./+-%__p_%'` 2416if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2417 echo $ac_n "(cached) $ac_c" 1>&6 2418else 2419 ac_save_LIBS="$LIBS" 2420LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 2421cat > conftest.$ac_ext <<EOF 2422#line 2423 "configure" 2423#include "confdefs.h" 2424/* Override any gcc2 internal prototype to avoid an error. */ 2425/* We use char because int might match the return type of a gcc2 2426 builtin and then its argument prototype would still apply. */ 2427char opendir(); 2428 2429int main() { 2430opendir() 2431; return 0; } 2432EOF 2433if { { eval echo configure:2434: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 2434 rm -rf conftest* 2435 eval "ac_cv_lib_$ac_lib_var=yes" 2436else 2437 echo "configure: failed program was:" >&5 2438 cat conftest.$ac_ext >&5 2439 rm -rf conftest* 2440 eval "ac_cv_lib_$ac_lib_var=no" 2441fi 2442rm -f conftest* 2443LIBS="$ac_save_LIBS" 2444 2445fi 2446if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2447 echo "$ac_t""yes" 1>&6 2448 : 2449else 2450 echo "$ac_t""no" 1>&6 2451echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 2452echo "configure:2453: checking for opendir in -ldir" >&5 2453ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 2454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2455 echo $ac_n "(cached) $ac_c" 1>&6 2456else 2457 ac_save_LIBS="$LIBS" 2458LIBS=`echo "-ldir $LIBS" | sed -e 's/-lc //'` 2459cat > conftest.$ac_ext <<EOF 2460#line 2461 "configure" 2461#include "confdefs.h" 2462/* Override any gcc2 internal prototype to avoid an error. */ 2463/* We use char because int might match the return type of a gcc2 2464 builtin and then its argument prototype would still apply. */ 2465char opendir(); 2466 2467int main() { 2468opendir() 2469; return 0; } 2470EOF 2471if { { eval echo configure:2472: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 2472 rm -rf conftest* 2473 eval "ac_cv_lib_$ac_lib_var=yes" 2474else 2475 echo "configure: failed program was:" >&5 2476 cat conftest.$ac_ext >&5 2477 rm -rf conftest* 2478 eval "ac_cv_lib_$ac_lib_var=no" 2479fi 2480rm -f conftest* 2481LIBS="$ac_save_LIBS" 2482 2483fi 2484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2485 echo "$ac_t""yes" 1>&6 2486 LIBS="$LIBS -ldir" 2487else 2488 echo "$ac_t""no" 1>&6 2489fi 2490 2491fi 2492 2493else 2494echo $ac_n "checking for opendir in -lc""... $ac_c" 1>&6 2495echo "configure:2496: checking for opendir in -lc" >&5 2496ac_lib_var=`echo c'_'opendir | sed 'y%./+-%__p_%'` 2497if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2498 echo $ac_n "(cached) $ac_c" 1>&6 2499else 2500 ac_save_LIBS="$LIBS" 2501LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 2502cat > conftest.$ac_ext <<EOF 2503#line 2504 "configure" 2504#include "confdefs.h" 2505/* Override any gcc2 internal prototype to avoid an error. */ 2506/* We use char because int might match the return type of a gcc2 2507 builtin and then its argument prototype would still apply. */ 2508char opendir(); 2509 2510int main() { 2511opendir() 2512; return 0; } 2513EOF 2514if { { eval echo configure:2515: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 2515 rm -rf conftest* 2516 eval "ac_cv_lib_$ac_lib_var=yes" 2517else 2518 echo "configure: failed program was:" >&5 2519 cat conftest.$ac_ext >&5 2520 rm -rf conftest* 2521 eval "ac_cv_lib_$ac_lib_var=no" 2522fi 2523rm -f conftest* 2524LIBS="$ac_save_LIBS" 2525 2526fi 2527if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2528 echo "$ac_t""yes" 1>&6 2529 : 2530else 2531 echo "$ac_t""no" 1>&6 2532echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 2533echo "configure:2534: checking for opendir in -lx" >&5 2534ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 2535if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2536 echo $ac_n "(cached) $ac_c" 1>&6 2537else 2538 ac_save_LIBS="$LIBS" 2539LIBS=`echo "-lx $LIBS" | sed -e 's/-lc //'` 2540cat > conftest.$ac_ext <<EOF 2541#line 2542 "configure" 2542#include "confdefs.h" 2543/* Override any gcc2 internal prototype to avoid an error. */ 2544/* We use char because int might match the return type of a gcc2 2545 builtin and then its argument prototype would still apply. */ 2546char opendir(); 2547 2548int main() { 2549opendir() 2550; return 0; } 2551EOF 2552if { { eval echo configure:2553: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 2553 rm -rf conftest* 2554 eval "ac_cv_lib_$ac_lib_var=yes" 2555else 2556 echo "configure: failed program was:" >&5 2557 cat conftest.$ac_ext >&5 2558 rm -rf conftest* 2559 eval "ac_cv_lib_$ac_lib_var=no" 2560fi 2561rm -f conftest* 2562LIBS="$ac_save_LIBS" 2563 2564fi 2565if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2566 echo "$ac_t""yes" 1>&6 2567 LIBS="$LIBS -lx" 2568else 2569 echo "$ac_t""no" 1>&6 2570fi 2571 2572fi 2573 2574fi 2575 2576lib_dir="$LIBS" 2577LIBS="$ac_xsave_LIBS" 2578echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 2579echo "configure:2580: checking whether stat file-mode macros are broken" >&5 2580if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then 2581 echo $ac_n "(cached) $ac_c" 1>&6 2582else 2583 cat > conftest.$ac_ext <<EOF 2584#line 2585 "configure" 2585#include "confdefs.h" 2586#include <sys/types.h> 2587#include <sys/stat.h> 2588 2589#if defined(S_ISBLK) && defined(S_IFDIR) 2590# if S_ISBLK (S_IFDIR) 2591You lose. 2592# endif 2593#endif 2594 2595#if defined(S_ISBLK) && defined(S_IFCHR) 2596# if S_ISBLK (S_IFCHR) 2597You lose. 2598# endif 2599#endif 2600 2601#if defined(S_ISLNK) && defined(S_IFREG) 2602# if S_ISLNK (S_IFREG) 2603You lose. 2604# endif 2605#endif 2606 2607#if defined(S_ISSOCK) && defined(S_IFREG) 2608# if S_ISSOCK (S_IFREG) 2609You lose. 2610# endif 2611#endif 2612 2613EOF 2614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2615 egrep "You lose" >/dev/null 2>&1; then 2616 rm -rf conftest* 2617 ac_cv_header_stat_broken=yes 2618else 2619 rm -rf conftest* 2620 ac_cv_header_stat_broken=no 2621fi 2622rm -f conftest* 2623 2624fi 2625 2626echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 2627if test $ac_cv_header_stat_broken = yes; then 2628 cat >> confdefs.h <<\EOF 2629#define STAT_MACROS_BROKEN 1 2630EOF 2631 2632fi 2633 2634echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2635echo "configure:2636: checking whether time.h and sys/time.h may both be included" >&5 2636if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2637 echo $ac_n "(cached) $ac_c" 1>&6 2638else 2639 cat > conftest.$ac_ext <<EOF 2640#line 2641 "configure" 2641#include "confdefs.h" 2642#include <sys/types.h> 2643#include <sys/time.h> 2644#include <time.h> 2645int main() { 2646struct tm *tp; 2647; return 0; } 2648EOF 2649if { { eval echo configure:2650: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 2650 rm -rf conftest* 2651 ac_cv_header_time=yes 2652else 2653 echo "configure: failed program was:" >&5 2654 cat conftest.$ac_ext >&5 2655 rm -rf conftest* 2656 ac_cv_header_time=no 2657fi 2658rm -f conftest* 2659fi 2660 2661echo "$ac_t""$ac_cv_header_time" 1>&6 2662if test $ac_cv_header_time = yes; then 2663 cat >> confdefs.h <<\EOF 2664#define TIME_WITH_SYS_TIME 1 2665EOF 2666 2667fi 2668 2669echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2670echo "configure:2671: checking for sys/wait.h that is POSIX.1 compatible" >&5 2671if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 2672 echo $ac_n "(cached) $ac_c" 1>&6 2673else 2674 cat > conftest.$ac_ext <<EOF 2675#line 2676 "configure" 2676#include "confdefs.h" 2677#include <sys/types.h> 2678#include <sys/wait.h> 2679#ifndef WEXITSTATUS 2680#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2681#endif 2682#ifndef WIFEXITED 2683#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 2684#endif 2685int main() { 2686int s; 2687wait (&s); 2688s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2689; return 0; } 2690EOF 2691if { { eval echo configure:2692: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 2692 rm -rf conftest* 2693 ac_cv_header_sys_wait_h=yes 2694else 2695 echo "configure: failed program was:" >&5 2696 cat conftest.$ac_ext >&5 2697 rm -rf conftest* 2698 ac_cv_header_sys_wait_h=no 2699fi 2700rm -f conftest* 2701fi 2702 2703echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 2704if test $ac_cv_header_sys_wait_h = yes; then 2705 cat >> confdefs.h <<\EOF 2706#define HAVE_SYS_WAIT_H 1 2707EOF 2708 2709fi 2710 2711echo $ac_n "checking if select needs nonstd include files""... $ac_c" 1>&6 2712echo "configure:2713: checking if select needs nonstd include files" >&5 2713if eval "test \"`echo '$''{'ac_cv_header_slect_nonstd_hdr'+set}'`\" = set"; then 2714 echo $ac_n "(cached) $ac_c" 1>&6 2715else 2716 cat > conftest.$ac_ext <<EOF 2717#line 2718 "configure" 2718#include "confdefs.h" 2719#include <sys/types.h> 2720#include <sys/time.h> 2721int main() { 2722fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); 2723; return 0; } 2724EOF 2725if { { eval echo configure:2726: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 2726 rm -rf conftest* 2727 ac_cv_header_slect_nonstd_hdr=no 2728else 2729 echo "configure: failed program was:" >&5 2730 cat conftest.$ac_ext >&5 2731 rm -rf conftest* 2732 ac_cv_header_slect_nonstd_hdr=yes 2733fi 2734rm -f conftest* 2735fi 2736 2737echo "$ac_t""$ac_cv_header_slect_nonstd_hdr" 1>&6 2738if test $ac_cv_header_slect_nonstd_hdr = yes; then 2739 cat >> confdefs.h <<\EOF 2740#define SELECT_NONSTD_HDR 1 2741EOF 2742 2743fi 2744echo $ac_n "checking if sys/select.h is needed for select""... $ac_c" 1>&6 2745echo "configure:2746: checking if sys/select.h is needed for select" >&5 2746if eval "test \"`echo '$''{'ac_cv_header_need_sys_select_h'+set}'`\" = set"; then 2747 echo $ac_n "(cached) $ac_c" 1>&6 2748else 2749 cat > conftest.$ac_ext <<EOF 2750#line 2751 "configure" 2751#include "confdefs.h" 2752#include <sys/types.h> 2753#include <sys/time.h> 2754#include <sys/select.h> 2755#ifndef SELECT_NONSTD_HDR 2756do not compile if we do not need nonstandard headers 2757#endif 2758int main() { 2759fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); 2760; return 0; } 2761EOF 2762if { { eval echo configure:2763: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 2763 rm -rf conftest* 2764 ac_cv_header_need_sys_select_h=yes 2765else 2766 echo "configure: failed program was:" >&5 2767 cat conftest.$ac_ext >&5 2768 rm -rf conftest* 2769 ac_cv_header_need_sys_select_h=no 2770fi 2771rm -f conftest* 2772fi 2773 2774echo "$ac_t""$ac_cv_header_need_sys_select_h" 1>&6 2775if test $ac_cv_header_need_sys_select_h = yes; then 2776 cat >> confdefs.h <<\EOF 2777#define NEED_SYS_SELECT_H 1 2778EOF 2779 2780fi 2781echo $ac_n "checking if sys/socket.h is needed for select""... $ac_c" 1>&6 2782echo "configure:2783: checking if sys/socket.h is needed for select" >&5 2783if eval "test \"`echo '$''{'ac_cv_header_need_sys_socket_h'+set}'`\" = set"; then 2784 echo $ac_n "(cached) $ac_c" 1>&6 2785else 2786 cat > conftest.$ac_ext <<EOF 2787#line 2788 "configure" 2788#include "confdefs.h" 2789#include <sys/types.h> 2790#include <sys/time.h> 2791#include <sys/socket.h> 2792#ifndef SELECT_NONSTD_HDR 2793do not compile if we do not need nonstandard headers 2794#endif 2795int main() { 2796fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0); 2797; return 0; } 2798EOF 2799if { { eval echo configure:2800: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 2800 rm -rf conftest* 2801 ac_cv_header_need_sys_socket_h=yes 2802else 2803 echo "configure: failed program was:" >&5 2804 cat conftest.$ac_ext >&5 2805 rm -rf conftest* 2806 ac_cv_header_need_sys_socket_h=no 2807fi 2808rm -f conftest* 2809fi 2810 2811echo "$ac_t""$ac_cv_header_need_sys_socket_h" 1>&6 2812if test $ac_cv_header_need_sys_socket_h = yes; then 2813 cat >> confdefs.h <<\EOF 2814#define NEED_SYS_SOCKET_H 1 2815EOF 2816 2817fi 2818for ac_hdr in ar.h 2819do 2820ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2821echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2822echo "configure:2823: checking for $ac_hdr" >&5 2823if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2824 echo $ac_n "(cached) $ac_c" 1>&6 2825else 2826 cat > conftest.$ac_ext <<EOF 2827#line 2828 "configure" 2828#include "confdefs.h" 2829#include <$ac_hdr> 2830EOF 2831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2832{ { eval echo configure:2833: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 2833ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 2834if test -z "$ac_err"; then 2835 rm -rf conftest* 2836 eval "ac_cv_header_$ac_safe=yes" 2837else 2838 echo "$ac_err" >&5 2839 echo "configure: failed program was:" >&5 2840 cat conftest.$ac_ext >&5 2841 rm -rf conftest* 2842 eval "ac_cv_header_$ac_safe=no" 2843fi 2844rm -f conftest* 2845fi 2846if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2847 echo "$ac_t""yes" 1>&6 2848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2849 cat >> confdefs.h <<EOF 2850#define $ac_tr_hdr 1 2851EOF 2852 2853else 2854 echo "$ac_t""no" 1>&6 2855fi 2856done 2857 2858for ac_hdr in assert.h 2859do 2860ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2861echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2862echo "configure:2863: checking for $ac_hdr" >&5 2863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2864 echo $ac_n "(cached) $ac_c" 1>&6 2865else 2866 cat > conftest.$ac_ext <<EOF 2867#line 2868 "configure" 2868#include "confdefs.h" 2869#include <$ac_hdr> 2870EOF 2871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2872{ { eval echo configure:2873: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 2873ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 2874if test -z "$ac_err"; then 2875 rm -rf conftest* 2876 eval "ac_cv_header_$ac_safe=yes" 2877else 2878 echo "$ac_err" >&5 2879 echo "configure: failed program was:" >&5 2880 cat conftest.$ac_ext >&5 2881 rm -rf conftest* 2882 eval "ac_cv_header_$ac_safe=no" 2883fi 2884rm -f conftest* 2885fi 2886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2887 echo "$ac_t""yes" 1>&6 2888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2889 cat >> confdefs.h <<EOF 2890#define $ac_tr_hdr 1 2891EOF 2892 2893else 2894 echo "$ac_t""no" 1>&6 2895fi 2896done 2897 2898for ac_hdr in stdio.h varargs.h stdarg.h stdlib.h stddef.h string.h strings.h unistd.h fcntl.h io.h sys/file.h 2899do 2900ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2901echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2902echo "configure:2903: checking for $ac_hdr" >&5 2903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2904 echo $ac_n "(cached) $ac_c" 1>&6 2905else 2906 cat > conftest.$ac_ext <<EOF 2907#line 2908 "configure" 2908#include "confdefs.h" 2909#include <$ac_hdr> 2910EOF 2911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2912{ { eval echo configure:2913: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 2913ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 2914if test -z "$ac_err"; then 2915 rm -rf conftest* 2916 eval "ac_cv_header_$ac_safe=yes" 2917else 2918 echo "$ac_err" >&5 2919 echo "configure: failed program was:" >&5 2920 cat conftest.$ac_ext >&5 2921 rm -rf conftest* 2922 eval "ac_cv_header_$ac_safe=no" 2923fi 2924rm -f conftest* 2925fi 2926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2927 echo "$ac_t""yes" 1>&6 2928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2929 cat >> confdefs.h <<EOF 2930#define $ac_tr_hdr 1 2931EOF 2932 2933else 2934 echo "$ac_t""no" 1>&6 2935fi 2936done 2937 2938for ac_hdr in conio.h 2939do 2940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2942echo "configure:2943: checking for $ac_hdr" >&5 2943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2944 echo $ac_n "(cached) $ac_c" 1>&6 2945else 2946 cat > conftest.$ac_ext <<EOF 2947#line 2948 "configure" 2948#include "confdefs.h" 2949#include <$ac_hdr> 2950EOF 2951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2952{ { eval echo configure:2953: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 2953ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 2954if test -z "$ac_err"; then 2955 rm -rf conftest* 2956 eval "ac_cv_header_$ac_safe=yes" 2957else 2958 echo "$ac_err" >&5 2959 echo "configure: failed program was:" >&5 2960 cat conftest.$ac_ext >&5 2961 rm -rf conftest* 2962 eval "ac_cv_header_$ac_safe=no" 2963fi 2964rm -f conftest* 2965fi 2966if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2967 echo "$ac_t""yes" 1>&6 2968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2969 cat >> confdefs.h <<EOF 2970#define $ac_tr_hdr 1 2971EOF 2972 2973else 2974 echo "$ac_t""no" 1>&6 2975fi 2976done 2977 2978for ac_hdr in getopt.h 2979do 2980ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2981echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2982echo "configure:2983: checking for $ac_hdr" >&5 2983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2984 echo $ac_n "(cached) $ac_c" 1>&6 2985else 2986 cat > conftest.$ac_ext <<EOF 2987#line 2988 "configure" 2988#include "confdefs.h" 2989#include <$ac_hdr> 2990EOF 2991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2992{ { eval echo configure:2993: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 2993ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 2994if test -z "$ac_err"; then 2995 rm -rf conftest* 2996 eval "ac_cv_header_$ac_safe=yes" 2997else 2998 echo "$ac_err" >&5 2999 echo "configure: failed program was:" >&5 3000 cat conftest.$ac_ext >&5 3001 rm -rf conftest* 3002 eval "ac_cv_header_$ac_safe=no" 3003fi 3004rm -f conftest* 3005fi 3006if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3007 echo "$ac_t""yes" 1>&6 3008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3009 cat >> confdefs.h <<EOF 3010#define $ac_tr_hdr 1 3011EOF 3012 3013else 3014 echo "$ac_t""no" 1>&6 3015fi 3016done 3017 3018for ac_hdr in limits.h 3019do 3020ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3021echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3022echo "configure:3023: checking for $ac_hdr" >&5 3023if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3024 echo $ac_n "(cached) $ac_c" 1>&6 3025else 3026 cat > conftest.$ac_ext <<EOF 3027#line 3028 "configure" 3028#include "confdefs.h" 3029#include <$ac_hdr> 3030EOF 3031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3032{ { eval echo configure:3033: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3033ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3034if test -z "$ac_err"; then 3035 rm -rf conftest* 3036 eval "ac_cv_header_$ac_safe=yes" 3037else 3038 echo "$ac_err" >&5 3039 echo "configure: failed program was:" >&5 3040 cat conftest.$ac_ext >&5 3041 rm -rf conftest* 3042 eval "ac_cv_header_$ac_safe=no" 3043fi 3044rm -f conftest* 3045fi 3046if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3047 echo "$ac_t""yes" 1>&6 3048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3049 cat >> confdefs.h <<EOF 3050#define $ac_tr_hdr 1 3051EOF 3052 3053else 3054 echo "$ac_t""no" 1>&6 3055fi 3056done 3057 3058for ac_hdr in a.out.h aouthdr.h elf.h 3059do 3060ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3061echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3062echo "configure:3063: checking for $ac_hdr" >&5 3063if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3064 echo $ac_n "(cached) $ac_c" 1>&6 3065else 3066 cat > conftest.$ac_ext <<EOF 3067#line 3068 "configure" 3068#include "confdefs.h" 3069#include <$ac_hdr> 3070EOF 3071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3072{ { eval echo configure:3073: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3073ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3074if test -z "$ac_err"; then 3075 rm -rf conftest* 3076 eval "ac_cv_header_$ac_safe=yes" 3077else 3078 echo "$ac_err" >&5 3079 echo "configure: failed program was:" >&5 3080 cat conftest.$ac_ext >&5 3081 rm -rf conftest* 3082 eval "ac_cv_header_$ac_safe=no" 3083fi 3084rm -f conftest* 3085fi 3086if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3087 echo "$ac_t""yes" 1>&6 3088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3089 cat >> confdefs.h <<EOF 3090#define $ac_tr_hdr 1 3091EOF 3092 3093else 3094 echo "$ac_t""no" 1>&6 3095fi 3096done 3097 3098for ac_hdr in sysexits.h 3099do 3100ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3101echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3102echo "configure:3103: checking for $ac_hdr" >&5 3103if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3104 echo $ac_n "(cached) $ac_c" 1>&6 3105else 3106 cat > conftest.$ac_ext <<EOF 3107#line 3108 "configure" 3108#include "confdefs.h" 3109#include <$ac_hdr> 3110EOF 3111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3112{ { eval echo configure:3113: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3113ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3114if test -z "$ac_err"; then 3115 rm -rf conftest* 3116 eval "ac_cv_header_$ac_safe=yes" 3117else 3118 echo "$ac_err" >&5 3119 echo "configure: failed program was:" >&5 3120 cat conftest.$ac_ext >&5 3121 rm -rf conftest* 3122 eval "ac_cv_header_$ac_safe=no" 3123fi 3124rm -f conftest* 3125fi 3126if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3127 echo "$ac_t""yes" 1>&6 3128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3129 cat >> confdefs.h <<EOF 3130#define $ac_tr_hdr 1 3131EOF 3132 3133else 3134 echo "$ac_t""no" 1>&6 3135fi 3136done 3137 3138for ac_hdr in malloc.h posix/malloc.h sgtty.h termios.h termio.h 3139do 3140ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3141echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3142echo "configure:3143: checking for $ac_hdr" >&5 3143if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3144 echo $ac_n "(cached) $ac_c" 1>&6 3145else 3146 cat > conftest.$ac_ext <<EOF 3147#line 3148 "configure" 3148#include "confdefs.h" 3149#include <$ac_hdr> 3150EOF 3151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3152{ { eval echo configure:3153: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3153ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3154if test -z "$ac_err"; then 3155 rm -rf conftest* 3156 eval "ac_cv_header_$ac_safe=yes" 3157else 3158 echo "$ac_err" >&5 3159 echo "configure: failed program was:" >&5 3160 cat conftest.$ac_ext >&5 3161 rm -rf conftest* 3162 eval "ac_cv_header_$ac_safe=no" 3163fi 3164rm -f conftest* 3165fi 3166if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3167 echo "$ac_t""yes" 1>&6 3168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3169 cat >> confdefs.h <<EOF 3170#define $ac_tr_hdr 1 3171EOF 3172 3173else 3174 echo "$ac_t""no" 1>&6 3175fi 3176done 3177 3178for ac_hdr in pwd.h grp.h sys/acl.h aclutils.h acllib.h acl/libacl.h 3179do 3180ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3181echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3182echo "configure:3183: checking for $ac_hdr" >&5 3183if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3184 echo $ac_n "(cached) $ac_c" 1>&6 3185else 3186 cat > conftest.$ac_ext <<EOF 3187#line 3188 "configure" 3188#include "confdefs.h" 3189#include <$ac_hdr> 3190EOF 3191ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3192{ { eval echo configure:3193: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3193ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3194if test -z "$ac_err"; then 3195 rm -rf conftest* 3196 eval "ac_cv_header_$ac_safe=yes" 3197else 3198 echo "$ac_err" >&5 3199 echo "configure: failed program was:" >&5 3200 cat conftest.$ac_ext >&5 3201 rm -rf conftest* 3202 eval "ac_cv_header_$ac_safe=no" 3203fi 3204rm -f conftest* 3205fi 3206if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3207 echo "$ac_t""yes" 1>&6 3208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3209 cat >> confdefs.h <<EOF 3210#define $ac_tr_hdr 1 3211EOF 3212 3213else 3214 echo "$ac_t""no" 1>&6 3215fi 3216done 3217 3218for ac_hdr in signal.h siginfo.h sys/siginfo.h ucontext.h 3219do 3220ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3221echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3222echo "configure:3223: checking for $ac_hdr" >&5 3223if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3224 echo $ac_n "(cached) $ac_c" 1>&6 3225else 3226 cat > conftest.$ac_ext <<EOF 3227#line 3228 "configure" 3228#include "confdefs.h" 3229#include <$ac_hdr> 3230EOF 3231ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3232{ { eval echo configure:3233: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3233ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3234if test -z "$ac_err"; then 3235 rm -rf conftest* 3236 eval "ac_cv_header_$ac_safe=yes" 3237else 3238 echo "$ac_err" >&5 3239 echo "configure: failed program was:" >&5 3240 cat conftest.$ac_ext >&5 3241 rm -rf conftest* 3242 eval "ac_cv_header_$ac_safe=no" 3243fi 3244rm -f conftest* 3245fi 3246if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3247 echo "$ac_t""yes" 1>&6 3248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3249 cat >> confdefs.h <<EOF 3250#define $ac_tr_hdr 1 3251EOF 3252 3253else 3254 echo "$ac_t""no" 1>&6 3255fi 3256done 3257 3258for ac_hdr in shadow.h syslog.h 3259do 3260ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3261echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3262echo "configure:3263: checking for $ac_hdr" >&5 3263if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3264 echo $ac_n "(cached) $ac_c" 1>&6 3265else 3266 cat > conftest.$ac_ext <<EOF 3267#line 3268 "configure" 3268#include "confdefs.h" 3269#include <$ac_hdr> 3270EOF 3271ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3272{ { eval echo configure:3273: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3273ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3274if test -z "$ac_err"; then 3275 rm -rf conftest* 3276 eval "ac_cv_header_$ac_safe=yes" 3277else 3278 echo "$ac_err" >&5 3279 echo "configure: failed program was:" >&5 3280 cat conftest.$ac_ext >&5 3281 rm -rf conftest* 3282 eval "ac_cv_header_$ac_safe=no" 3283fi 3284rm -f conftest* 3285fi 3286if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3287 echo "$ac_t""yes" 1>&6 3288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3289 cat >> confdefs.h <<EOF 3290#define $ac_tr_hdr 1 3291EOF 3292 3293else 3294 echo "$ac_t""no" 1>&6 3295fi 3296done 3297 3298for ac_hdr in sys/time.h sys/times.h utime.h sys/utime.h sys/ioctl.h sys/filio.h sys/param.h sys/systeminfo.h sys/sysctl.h 3299do 3300ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3301echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3302echo "configure:3303: checking for $ac_hdr" >&5 3303if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3304 echo $ac_n "(cached) $ac_c" 1>&6 3305else 3306 cat > conftest.$ac_ext <<EOF 3307#line 3308 "configure" 3308#include "confdefs.h" 3309#include <$ac_hdr> 3310EOF 3311ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3312{ { eval echo configure:3313: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3313ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3314if test -z "$ac_err"; then 3315 rm -rf conftest* 3316 eval "ac_cv_header_$ac_safe=yes" 3317else 3318 echo "$ac_err" >&5 3319 echo "configure: failed program was:" >&5 3320 cat conftest.$ac_ext >&5 3321 rm -rf conftest* 3322 eval "ac_cv_header_$ac_safe=no" 3323fi 3324rm -f conftest* 3325fi 3326if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3327 echo "$ac_t""yes" 1>&6 3328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3329 cat >> confdefs.h <<EOF 3330#define $ac_tr_hdr 1 3331EOF 3332 3333else 3334 echo "$ac_t""no" 1>&6 3335fi 3336done 3337 3338for ac_hdr in sys/loadavg.h 3339do 3340ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3341echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3342echo "configure:3343: checking for $ac_hdr" >&5 3343if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3344 echo $ac_n "(cached) $ac_c" 1>&6 3345else 3346 cat > conftest.$ac_ext <<EOF 3347#line 3348 "configure" 3348#include "confdefs.h" 3349#include <$ac_hdr> 3350EOF 3351ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3352{ { eval echo configure:3353: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3353ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3354if test -z "$ac_err"; then 3355 rm -rf conftest* 3356 eval "ac_cv_header_$ac_safe=yes" 3357else 3358 echo "$ac_err" >&5 3359 echo "configure: failed program was:" >&5 3360 cat conftest.$ac_ext >&5 3361 rm -rf conftest* 3362 eval "ac_cv_header_$ac_safe=no" 3363fi 3364rm -f conftest* 3365fi 3366if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3367 echo "$ac_t""yes" 1>&6 3368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3369 cat >> confdefs.h <<EOF 3370#define $ac_tr_hdr 1 3371EOF 3372 3373else 3374 echo "$ac_t""no" 1>&6 3375fi 3376done 3377 3378for ac_hdr in sys/syscall.h 3379do 3380ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3381echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3382echo "configure:3383: checking for $ac_hdr" >&5 3383if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3384 echo $ac_n "(cached) $ac_c" 1>&6 3385else 3386 cat > conftest.$ac_ext <<EOF 3387#line 3388 "configure" 3388#include "confdefs.h" 3389#include <$ac_hdr> 3390EOF 3391ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3392{ { eval echo configure:3393: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3393ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3394if test -z "$ac_err"; then 3395 rm -rf conftest* 3396 eval "ac_cv_header_$ac_safe=yes" 3397else 3398 echo "$ac_err" >&5 3399 echo "configure: failed program was:" >&5 3400 cat conftest.$ac_ext >&5 3401 rm -rf conftest* 3402 eval "ac_cv_header_$ac_safe=no" 3403fi 3404rm -f conftest* 3405fi 3406if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3407 echo "$ac_t""yes" 1>&6 3408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3409 cat >> confdefs.h <<EOF 3410#define $ac_tr_hdr 1 3411EOF 3412 3413else 3414 echo "$ac_t""no" 1>&6 3415fi 3416done 3417 3418for ac_hdr in mach/machine.h 3419do 3420ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3421echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3422echo "configure:3423: checking for $ac_hdr" >&5 3423if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3424 echo $ac_n "(cached) $ac_c" 1>&6 3425else 3426 cat > conftest.$ac_ext <<EOF 3427#line 3428 "configure" 3428#include "confdefs.h" 3429#include <$ac_hdr> 3430EOF 3431ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3432{ { eval echo configure:3433: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3433ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3434if test -z "$ac_err"; then 3435 rm -rf conftest* 3436 eval "ac_cv_header_$ac_safe=yes" 3437else 3438 echo "$ac_err" >&5 3439 echo "configure: failed program was:" >&5 3440 cat conftest.$ac_ext >&5 3441 rm -rf conftest* 3442 eval "ac_cv_header_$ac_safe=no" 3443fi 3444rm -f conftest* 3445fi 3446if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3447 echo "$ac_t""yes" 1>&6 3448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3449 cat >> confdefs.h <<EOF 3450#define $ac_tr_hdr 1 3451EOF 3452 3453else 3454 echo "$ac_t""no" 1>&6 3455fi 3456done 3457 3458for ac_hdr in mntent.h sys/mntent.h sys/mnttab.h sys/mount.h 3459do 3460ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3461echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3462echo "configure:3463: checking for $ac_hdr" >&5 3463if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3464 echo $ac_n "(cached) $ac_c" 1>&6 3465else 3466 cat > conftest.$ac_ext <<EOF 3467#line 3468 "configure" 3468#include "confdefs.h" 3469#include <$ac_hdr> 3470EOF 3471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3472{ { eval echo configure:3473: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3473ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3474if test -z "$ac_err"; then 3475 rm -rf conftest* 3476 eval "ac_cv_header_$ac_safe=yes" 3477else 3478 echo "$ac_err" >&5 3479 echo "configure: failed program was:" >&5 3480 cat conftest.$ac_ext >&5 3481 rm -rf conftest* 3482 eval "ac_cv_header_$ac_safe=no" 3483fi 3484rm -f conftest* 3485fi 3486if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3487 echo "$ac_t""yes" 1>&6 3488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3489 cat >> confdefs.h <<EOF 3490#define $ac_tr_hdr 1 3491EOF 3492 3493else 3494 echo "$ac_t""no" 1>&6 3495fi 3496done 3497 3498for ac_hdr in sys/fork.h vfork.h wait.h sys/wait.h sys/resource.h sys/dbx_plugin.h procfs.h sys/procfs.h libproc.h 3499do 3500ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3501echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3502echo "configure:3503: checking for $ac_hdr" >&5 3503if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3504 echo $ac_n "(cached) $ac_c" 1>&6 3505else 3506 cat > conftest.$ac_ext <<EOF 3507#line 3508 "configure" 3508#include "confdefs.h" 3509#include <$ac_hdr> 3510EOF 3511ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3512{ { eval echo configure:3513: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3513ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3514if test -z "$ac_err"; then 3515 rm -rf conftest* 3516 eval "ac_cv_header_$ac_safe=yes" 3517else 3518 echo "$ac_err" >&5 3519 echo "configure: failed program was:" >&5 3520 cat conftest.$ac_ext >&5 3521 rm -rf conftest* 3522 eval "ac_cv_header_$ac_safe=no" 3523fi 3524rm -f conftest* 3525fi 3526if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3527 echo "$ac_t""yes" 1>&6 3528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3529 cat >> confdefs.h <<EOF 3530#define $ac_tr_hdr 1 3531EOF 3532 3533else 3534 echo "$ac_t""no" 1>&6 3535fi 3536done 3537 3538for ac_hdr in ulimit.h 3539do 3540ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3541echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3542echo "configure:3543: checking for $ac_hdr" >&5 3543if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3544 echo $ac_n "(cached) $ac_c" 1>&6 3545else 3546 cat > conftest.$ac_ext <<EOF 3547#line 3548 "configure" 3548#include "confdefs.h" 3549#include <$ac_hdr> 3550EOF 3551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3552{ { eval echo configure:3553: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3553ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3554if test -z "$ac_err"; then 3555 rm -rf conftest* 3556 eval "ac_cv_header_$ac_safe=yes" 3557else 3558 echo "$ac_err" >&5 3559 echo "configure: failed program was:" >&5 3560 cat conftest.$ac_ext >&5 3561 rm -rf conftest* 3562 eval "ac_cv_header_$ac_safe=no" 3563fi 3564rm -f conftest* 3565fi 3566if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3567 echo "$ac_t""yes" 1>&6 3568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3569 cat >> confdefs.h <<EOF 3570#define $ac_tr_hdr 1 3571EOF 3572 3573else 3574 echo "$ac_t""no" 1>&6 3575fi 3576done 3577 3578for ac_hdr in process.h 3579do 3580ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3581echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3582echo "configure:3583: checking for $ac_hdr" >&5 3583if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3584 echo $ac_n "(cached) $ac_c" 1>&6 3585else 3586 cat > conftest.$ac_ext <<EOF 3587#line 3588 "configure" 3588#include "confdefs.h" 3589#include <$ac_hdr> 3590EOF 3591ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3592{ { eval echo configure:3593: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3593ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3594if test -z "$ac_err"; then 3595 rm -rf conftest* 3596 eval "ac_cv_header_$ac_safe=yes" 3597else 3598 echo "$ac_err" >&5 3599 echo "configure: failed program was:" >&5 3600 cat conftest.$ac_ext >&5 3601 rm -rf conftest* 3602 eval "ac_cv_header_$ac_safe=no" 3603fi 3604rm -f conftest* 3605fi 3606if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3607 echo "$ac_t""yes" 1>&6 3608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3609 cat >> confdefs.h <<EOF 3610#define $ac_tr_hdr 1 3611EOF 3612 3613else 3614 echo "$ac_t""no" 1>&6 3615fi 3616done 3617 3618for ac_hdr in sys/utsname.h sys/priocntl.h sys/rtpriocntl.h sys/procset.h sys/auxv.h 3619do 3620ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3621echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3622echo "configure:3623: checking for $ac_hdr" >&5 3623if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3624 echo $ac_n "(cached) $ac_c" 1>&6 3625else 3626 cat > conftest.$ac_ext <<EOF 3627#line 3628 "configure" 3628#include "confdefs.h" 3629#include <$ac_hdr> 3630EOF 3631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3632{ { eval echo configure:3633: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3633ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3634if test -z "$ac_err"; then 3635 rm -rf conftest* 3636 eval "ac_cv_header_$ac_safe=yes" 3637else 3638 echo "$ac_err" >&5 3639 echo "configure: failed program was:" >&5 3640 cat conftest.$ac_ext >&5 3641 rm -rf conftest* 3642 eval "ac_cv_header_$ac_safe=no" 3643fi 3644rm -f conftest* 3645fi 3646if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3647 echo "$ac_t""yes" 1>&6 3648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3649 cat >> confdefs.h <<EOF 3650#define $ac_tr_hdr 1 3651EOF 3652 3653else 3654 echo "$ac_t""no" 1>&6 3655fi 3656done 3657 3658for ac_hdr in sys/mtio.h sys/tape.h sys/mman.h linux/pg.h camlib.h 3659do 3660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3662echo "configure:3663: checking for $ac_hdr" >&5 3663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3664 echo $ac_n "(cached) $ac_c" 1>&6 3665else 3666 cat > conftest.$ac_ext <<EOF 3667#line 3668 "configure" 3668#include "confdefs.h" 3669#include <$ac_hdr> 3670EOF 3671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3672{ { eval echo configure:3673: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3673ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3674if test -z "$ac_err"; then 3675 rm -rf conftest* 3676 eval "ac_cv_header_$ac_safe=yes" 3677else 3678 echo "$ac_err" >&5 3679 echo "configure: failed program was:" >&5 3680 cat conftest.$ac_ext >&5 3681 rm -rf conftest* 3682 eval "ac_cv_header_$ac_safe=no" 3683fi 3684rm -f conftest* 3685fi 3686if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3687 echo "$ac_t""yes" 1>&6 3688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3689 cat >> confdefs.h <<EOF 3690#define $ac_tr_hdr 1 3691EOF 3692 3693else 3694 echo "$ac_t""no" 1>&6 3695fi 3696done 3697 3698for ac_hdr in sys/shm.h sys/sem.h sys/ipc.h semaphore.h 3699do 3700ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3701echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3702echo "configure:3703: checking for $ac_hdr" >&5 3703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3704 echo $ac_n "(cached) $ac_c" 1>&6 3705else 3706 cat > conftest.$ac_ext <<EOF 3707#line 3708 "configure" 3708#include "confdefs.h" 3709#include <$ac_hdr> 3710EOF 3711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3712{ { eval echo configure:3713: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3713ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3714if test -z "$ac_err"; then 3715 rm -rf conftest* 3716 eval "ac_cv_header_$ac_safe=yes" 3717else 3718 echo "$ac_err" >&5 3719 echo "configure: failed program was:" >&5 3720 cat conftest.$ac_ext >&5 3721 rm -rf conftest* 3722 eval "ac_cv_header_$ac_safe=no" 3723fi 3724rm -f conftest* 3725fi 3726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3727 echo "$ac_t""yes" 1>&6 3728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3729 cat >> confdefs.h <<EOF 3730#define $ac_tr_hdr 1 3731EOF 3732 3733else 3734 echo "$ac_t""no" 1>&6 3735fi 3736done 3737 3738for ac_hdr in sys/dkio.h sys/dklabel.h sun/dkio.h sun/dklabel.h 3739do 3740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3742echo "configure:3743: checking for $ac_hdr" >&5 3743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3744 echo $ac_n "(cached) $ac_c" 1>&6 3745else 3746 cat > conftest.$ac_ext <<EOF 3747#line 3748 "configure" 3748#include "confdefs.h" 3749#include <$ac_hdr> 3750EOF 3751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3752{ { eval echo configure:3753: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3753ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3754if test -z "$ac_err"; then 3755 rm -rf conftest* 3756 eval "ac_cv_header_$ac_safe=yes" 3757else 3758 echo "$ac_err" >&5 3759 echo "configure: failed program was:" >&5 3760 cat conftest.$ac_ext >&5 3761 rm -rf conftest* 3762 eval "ac_cv_header_$ac_safe=no" 3763fi 3764rm -f conftest* 3765fi 3766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3767 echo "$ac_t""yes" 1>&6 3768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3769 cat >> confdefs.h <<EOF 3770#define $ac_tr_hdr 1 3771EOF 3772 3773else 3774 echo "$ac_t""no" 1>&6 3775fi 3776done 3777 3778for ac_hdr in sys/types.h sys/stat.h types.h stat.h 3779do 3780ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3781echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3782echo "configure:3783: checking for $ac_hdr" >&5 3783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3784 echo $ac_n "(cached) $ac_c" 1>&6 3785else 3786 cat > conftest.$ac_ext <<EOF 3787#line 3788 "configure" 3788#include "confdefs.h" 3789#include <$ac_hdr> 3790EOF 3791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3792{ { eval echo configure:3793: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3793ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3794if test -z "$ac_err"; then 3795 rm -rf conftest* 3796 eval "ac_cv_header_$ac_safe=yes" 3797else 3798 echo "$ac_err" >&5 3799 echo "configure: failed program was:" >&5 3800 cat conftest.$ac_ext >&5 3801 rm -rf conftest* 3802 eval "ac_cv_header_$ac_safe=no" 3803fi 3804rm -f conftest* 3805fi 3806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3807 echo "$ac_t""yes" 1>&6 3808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3809 cat >> confdefs.h <<EOF 3810#define $ac_tr_hdr 1 3811EOF 3812 3813else 3814 echo "$ac_t""no" 1>&6 3815fi 3816done 3817 3818for ac_hdr in sys/stypes.h sys/filedesc.h 3819do 3820ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3821echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3822echo "configure:3823: checking for $ac_hdr" >&5 3823if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3824 echo $ac_n "(cached) $ac_c" 1>&6 3825else 3826 cat > conftest.$ac_ext <<EOF 3827#line 3828 "configure" 3828#include "confdefs.h" 3829#include <$ac_hdr> 3830EOF 3831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3832{ { eval echo configure:3833: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3833ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3834if test -z "$ac_err"; then 3835 rm -rf conftest* 3836 eval "ac_cv_header_$ac_safe=yes" 3837else 3838 echo "$ac_err" >&5 3839 echo "configure: failed program was:" >&5 3840 cat conftest.$ac_ext >&5 3841 rm -rf conftest* 3842 eval "ac_cv_header_$ac_safe=no" 3843fi 3844rm -f conftest* 3845fi 3846if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3847 echo "$ac_t""yes" 1>&6 3848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3849 cat >> confdefs.h <<EOF 3850#define $ac_tr_hdr 1 3851EOF 3852 3853else 3854 echo "$ac_t""no" 1>&6 3855fi 3856done 3857 3858for ac_hdr in sys/acct.h 3859do 3860ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3861echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3862echo "configure:3863: checking for $ac_hdr" >&5 3863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3864 echo $ac_n "(cached) $ac_c" 1>&6 3865else 3866 cat > conftest.$ac_ext <<EOF 3867#line 3868 "configure" 3868#include "confdefs.h" 3869#include <$ac_hdr> 3870EOF 3871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3872{ { eval echo configure:3873: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3873ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3874if test -z "$ac_err"; then 3875 rm -rf conftest* 3876 eval "ac_cv_header_$ac_safe=yes" 3877else 3878 echo "$ac_err" >&5 3879 echo "configure: failed program was:" >&5 3880 cat conftest.$ac_ext >&5 3881 rm -rf conftest* 3882 eval "ac_cv_header_$ac_safe=no" 3883fi 3884rm -f conftest* 3885fi 3886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3887 echo "$ac_t""yes" 1>&6 3888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3889 cat >> confdefs.h <<EOF 3890#define $ac_tr_hdr 1 3891EOF 3892 3893else 3894 echo "$ac_t""no" 1>&6 3895fi 3896done 3897 3898for ac_hdr in sys/mkdev.h sys/sysmacros.h 3899do 3900ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3901echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3902echo "configure:3903: checking for $ac_hdr" >&5 3903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3904 echo $ac_n "(cached) $ac_c" 1>&6 3905else 3906 cat > conftest.$ac_ext <<EOF 3907#line 3908 "configure" 3908#include "confdefs.h" 3909#include <$ac_hdr> 3910EOF 3911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3912{ { eval echo configure:3913: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3913ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3914if test -z "$ac_err"; then 3915 rm -rf conftest* 3916 eval "ac_cv_header_$ac_safe=yes" 3917else 3918 echo "$ac_err" >&5 3919 echo "configure: failed program was:" >&5 3920 cat conftest.$ac_ext >&5 3921 rm -rf conftest* 3922 eval "ac_cv_header_$ac_safe=no" 3923fi 3924rm -f conftest* 3925fi 3926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3927 echo "$ac_t""yes" 1>&6 3928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3929 cat >> confdefs.h <<EOF 3930#define $ac_tr_hdr 1 3931EOF 3932 3933else 3934 echo "$ac_t""no" 1>&6 3935fi 3936done 3937 3938for ac_hdr in poll.h sys/poll.h sys/select.h 3939do 3940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3942echo "configure:3943: checking for $ac_hdr" >&5 3943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3944 echo $ac_n "(cached) $ac_c" 1>&6 3945else 3946 cat > conftest.$ac_ext <<EOF 3947#line 3948 "configure" 3948#include "confdefs.h" 3949#include <$ac_hdr> 3950EOF 3951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3952{ { eval echo configure:3953: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3953ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3954if test -z "$ac_err"; then 3955 rm -rf conftest* 3956 eval "ac_cv_header_$ac_safe=yes" 3957else 3958 echo "$ac_err" >&5 3959 echo "configure: failed program was:" >&5 3960 cat conftest.$ac_ext >&5 3961 rm -rf conftest* 3962 eval "ac_cv_header_$ac_safe=no" 3963fi 3964rm -f conftest* 3965fi 3966if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3967 echo "$ac_t""yes" 1>&6 3968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3969 cat >> confdefs.h <<EOF 3970#define $ac_tr_hdr 1 3971EOF 3972 3973else 3974 echo "$ac_t""no" 1>&6 3975fi 3976done 3977 3978for ac_hdr in netdb.h arpa/aixrcmds.h sys/socket.h netinet/in.h stropts.h 3979do 3980ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3981echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3982echo "configure:3983: checking for $ac_hdr" >&5 3983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3984 echo $ac_n "(cached) $ac_c" 1>&6 3985else 3986 cat > conftest.$ac_ext <<EOF 3987#line 3988 "configure" 3988#include "confdefs.h" 3989#include <$ac_hdr> 3990EOF 3991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3992{ { eval echo configure:3993: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 3993ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 3994if test -z "$ac_err"; then 3995 rm -rf conftest* 3996 eval "ac_cv_header_$ac_safe=yes" 3997else 3998 echo "$ac_err" >&5 3999 echo "configure: failed program was:" >&5 4000 cat conftest.$ac_ext >&5 4001 rm -rf conftest* 4002 eval "ac_cv_header_$ac_safe=no" 4003fi 4004rm -f conftest* 4005fi 4006if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4007 echo "$ac_t""yes" 1>&6 4008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4009 cat >> confdefs.h <<EOF 4010#define $ac_tr_hdr 1 4011EOF 4012 4013else 4014 echo "$ac_t""no" 1>&6 4015fi 4016done 4017 4018for ac_hdr in ieeefp.h fp.h 4019do 4020ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4021echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4022echo "configure:4023: checking for $ac_hdr" >&5 4023if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4024 echo $ac_n "(cached) $ac_c" 1>&6 4025else 4026 cat > conftest.$ac_ext <<EOF 4027#line 4028 "configure" 4028#include "confdefs.h" 4029#include <$ac_hdr> 4030EOF 4031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4032{ { eval echo configure:4033: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4033ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4034if test -z "$ac_err"; then 4035 rm -rf conftest* 4036 eval "ac_cv_header_$ac_safe=yes" 4037else 4038 echo "$ac_err" >&5 4039 echo "configure: failed program was:" >&5 4040 cat conftest.$ac_ext >&5 4041 rm -rf conftest* 4042 eval "ac_cv_header_$ac_safe=no" 4043fi 4044rm -f conftest* 4045fi 4046if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4047 echo "$ac_t""yes" 1>&6 4048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4049 cat >> confdefs.h <<EOF 4050#define $ac_tr_hdr 1 4051EOF 4052 4053else 4054 echo "$ac_t""no" 1>&6 4055fi 4056done 4057 4058for ac_hdr in values.h float.h math.h 4059do 4060ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4061echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4062echo "configure:4063: checking for $ac_hdr" >&5 4063if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4064 echo $ac_n "(cached) $ac_c" 1>&6 4065else 4066 cat > conftest.$ac_ext <<EOF 4067#line 4068 "configure" 4068#include "confdefs.h" 4069#include <$ac_hdr> 4070EOF 4071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4072{ { eval echo configure:4073: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4073ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4074if test -z "$ac_err"; then 4075 rm -rf conftest* 4076 eval "ac_cv_header_$ac_safe=yes" 4077else 4078 echo "$ac_err" >&5 4079 echo "configure: failed program was:" >&5 4080 cat conftest.$ac_ext >&5 4081 rm -rf conftest* 4082 eval "ac_cv_header_$ac_safe=no" 4083fi 4084rm -f conftest* 4085fi 4086if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4087 echo "$ac_t""yes" 1>&6 4088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4089 cat >> confdefs.h <<EOF 4090#define $ac_tr_hdr 1 4091EOF 4092 4093else 4094 echo "$ac_t""no" 1>&6 4095fi 4096done 4097 4098for ac_hdr in arpa/inet.h 4099do 4100ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4101echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4102echo "configure:4103: checking for $ac_hdr" >&5 4103if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4104 echo $ac_n "(cached) $ac_c" 1>&6 4105else 4106 cat > conftest.$ac_ext <<EOF 4107#line 4108 "configure" 4108#include "confdefs.h" 4109#include <$ac_hdr> 4110EOF 4111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4112{ { eval echo configure:4113: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4113ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4114if test -z "$ac_err"; then 4115 rm -rf conftest* 4116 eval "ac_cv_header_$ac_safe=yes" 4117else 4118 echo "$ac_err" >&5 4119 echo "configure: failed program was:" >&5 4120 cat conftest.$ac_ext >&5 4121 rm -rf conftest* 4122 eval "ac_cv_header_$ac_safe=no" 4123fi 4124rm -f conftest* 4125fi 4126if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4127 echo "$ac_t""yes" 1>&6 4128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4129 cat >> confdefs.h <<EOF 4130#define $ac_tr_hdr 1 4131EOF 4132 4133else 4134 echo "$ac_t""no" 1>&6 4135fi 4136done 4137 4138for ac_hdr in rpc/rpc.h 4139do 4140ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4141echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4142echo "configure:4143: checking for $ac_hdr" >&5 4143if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4144 echo $ac_n "(cached) $ac_c" 1>&6 4145else 4146 cat > conftest.$ac_ext <<EOF 4147#line 4148 "configure" 4148#include "confdefs.h" 4149#include <$ac_hdr> 4150EOF 4151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4152{ { eval echo configure:4153: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4153ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4154if test -z "$ac_err"; then 4155 rm -rf conftest* 4156 eval "ac_cv_header_$ac_safe=yes" 4157else 4158 echo "$ac_err" >&5 4159 echo "configure: failed program was:" >&5 4160 cat conftest.$ac_ext >&5 4161 rm -rf conftest* 4162 eval "ac_cv_header_$ac_safe=no" 4163fi 4164rm -f conftest* 4165fi 4166if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4167 echo "$ac_t""yes" 1>&6 4168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4169 cat >> confdefs.h <<EOF 4170#define $ac_tr_hdr 1 4171EOF 4172 4173else 4174 echo "$ac_t""no" 1>&6 4175fi 4176done 4177 4178for ac_hdr in bsd/dev/scsireg.h 4179do 4180ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4181echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4182echo "configure:4183: checking for $ac_hdr" >&5 4183if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4184 echo $ac_n "(cached) $ac_c" 1>&6 4185else 4186 cat > conftest.$ac_ext <<EOF 4187#line 4188 "configure" 4188#include "confdefs.h" 4189#include <$ac_hdr> 4190EOF 4191ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4192{ { eval echo configure:4193: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4193ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4194if test -z "$ac_err"; then 4195 rm -rf conftest* 4196 eval "ac_cv_header_$ac_safe=yes" 4197else 4198 echo "$ac_err" >&5 4199 echo "configure: failed program was:" >&5 4200 cat conftest.$ac_ext >&5 4201 rm -rf conftest* 4202 eval "ac_cv_header_$ac_safe=no" 4203fi 4204rm -f conftest* 4205fi 4206if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4207 echo "$ac_t""yes" 1>&6 4208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4209 cat >> confdefs.h <<EOF 4210#define $ac_tr_hdr 1 4211EOF 4212 4213else 4214 echo "$ac_t""no" 1>&6 4215fi 4216done 4217 4218for ac_hdr in sys/bsdtty.h 4219do 4220ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4221echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4222echo "configure:4223: checking for $ac_hdr" >&5 4223if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4224 echo $ac_n "(cached) $ac_c" 1>&6 4225else 4226 cat > conftest.$ac_ext <<EOF 4227#line 4228 "configure" 4228#include "confdefs.h" 4229#include <$ac_hdr> 4230EOF 4231ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4232{ { eval echo configure:4233: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4233ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4234if test -z "$ac_err"; then 4235 rm -rf conftest* 4236 eval "ac_cv_header_$ac_safe=yes" 4237else 4238 echo "$ac_err" >&5 4239 echo "configure: failed program was:" >&5 4240 cat conftest.$ac_ext >&5 4241 rm -rf conftest* 4242 eval "ac_cv_header_$ac_safe=no" 4243fi 4244rm -f conftest* 4245fi 4246if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4247 echo "$ac_t""yes" 1>&6 4248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4249 cat >> confdefs.h <<EOF 4250#define $ac_tr_hdr 1 4251EOF 4252 4253else 4254 echo "$ac_t""no" 1>&6 4255fi 4256done 4257 4258for ac_hdr in scsi/scsi.h scsi/sg.h linux/scsi.h linux.sg.h 4259do 4260ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4261echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4262echo "configure:4263: checking for $ac_hdr" >&5 4263if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4264 echo $ac_n "(cached) $ac_c" 1>&6 4265else 4266 cat > conftest.$ac_ext <<EOF 4267#line 4268 "configure" 4268#include "confdefs.h" 4269#include <$ac_hdr> 4270EOF 4271ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4272{ { eval echo configure:4273: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4273ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4274if test -z "$ac_err"; then 4275 rm -rf conftest* 4276 eval "ac_cv_header_$ac_safe=yes" 4277else 4278 echo "$ac_err" >&5 4279 echo "configure: failed program was:" >&5 4280 cat conftest.$ac_ext >&5 4281 rm -rf conftest* 4282 eval "ac_cv_header_$ac_safe=no" 4283fi 4284rm -f conftest* 4285fi 4286if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4287 echo "$ac_t""yes" 1>&6 4288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4289 cat >> confdefs.h <<EOF 4290#define $ac_tr_hdr 1 4291EOF 4292 4293else 4294 echo "$ac_t""no" 1>&6 4295fi 4296done 4297 4298for ac_hdr in linux/types.h linux/gfp.h asm/types.h 4299do 4300ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4301echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4302echo "configure:4303: checking for $ac_hdr" >&5 4303if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4304 echo $ac_n "(cached) $ac_c" 1>&6 4305else 4306 cat > conftest.$ac_ext <<EOF 4307#line 4308 "configure" 4308#include "confdefs.h" 4309#include <$ac_hdr> 4310EOF 4311ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4312{ { eval echo configure:4313: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4313ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4314if test -z "$ac_err"; then 4315 rm -rf conftest* 4316 eval "ac_cv_header_$ac_safe=yes" 4317else 4318 echo "$ac_err" >&5 4319 echo "configure: failed program was:" >&5 4320 cat conftest.$ac_ext >&5 4321 rm -rf conftest* 4322 eval "ac_cv_header_$ac_safe=no" 4323fi 4324rm -f conftest* 4325fi 4326if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4327 echo "$ac_t""yes" 1>&6 4328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4329 cat >> confdefs.h <<EOF 4330#define $ac_tr_hdr 1 4331EOF 4332 4333else 4334 echo "$ac_t""no" 1>&6 4335fi 4336done 4337 4338for ac_hdr in sys/capability.h 4339do 4340ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4341echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4342echo "configure:4343: checking for $ac_hdr" >&5 4343if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4344 echo $ac_n "(cached) $ac_c" 1>&6 4345else 4346 cat > conftest.$ac_ext <<EOF 4347#line 4348 "configure" 4348#include "confdefs.h" 4349#include <$ac_hdr> 4350EOF 4351ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4352{ { eval echo configure:4353: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4353ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4354if test -z "$ac_err"; then 4355 rm -rf conftest* 4356 eval "ac_cv_header_$ac_safe=yes" 4357else 4358 echo "$ac_err" >&5 4359 echo "configure: failed program was:" >&5 4360 cat conftest.$ac_ext >&5 4361 rm -rf conftest* 4362 eval "ac_cv_header_$ac_safe=no" 4363fi 4364rm -f conftest* 4365fi 4366if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4367 echo "$ac_t""yes" 1>&6 4368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4369 cat >> confdefs.h <<EOF 4370#define $ac_tr_hdr 1 4371EOF 4372 4373else 4374 echo "$ac_t""no" 1>&6 4375fi 4376done 4377 4378for ac_hdr in selinux/selinux.h 4379do 4380ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4381echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4382echo "configure:4383: checking for $ac_hdr" >&5 4383if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4384 echo $ac_n "(cached) $ac_c" 1>&6 4385else 4386 cat > conftest.$ac_ext <<EOF 4387#line 4388 "configure" 4388#include "confdefs.h" 4389#include <$ac_hdr> 4390EOF 4391ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4392{ { eval echo configure:4393: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4393ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4394if test -z "$ac_err"; then 4395 rm -rf conftest* 4396 eval "ac_cv_header_$ac_safe=yes" 4397else 4398 echo "$ac_err" >&5 4399 echo "configure: failed program was:" >&5 4400 cat conftest.$ac_ext >&5 4401 rm -rf conftest* 4402 eval "ac_cv_header_$ac_safe=no" 4403fi 4404rm -f conftest* 4405fi 4406if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4407 echo "$ac_t""yes" 1>&6 4408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4409 cat >> confdefs.h <<EOF 4410#define $ac_tr_hdr 1 4411EOF 4412 4413else 4414 echo "$ac_t""no" 1>&6 4415fi 4416done 4417 4418for ac_hdr in OS.h 4419do 4420ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4421echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4422echo "configure:4423: checking for $ac_hdr" >&5 4423if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4424 echo $ac_n "(cached) $ac_c" 1>&6 4425else 4426 cat > conftest.$ac_ext <<EOF 4427#line 4428 "configure" 4428#include "confdefs.h" 4429#include <$ac_hdr> 4430EOF 4431ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4432{ { eval echo configure:4433: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4433ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4434if test -z "$ac_err"; then 4435 rm -rf conftest* 4436 eval "ac_cv_header_$ac_safe=yes" 4437else 4438 echo "$ac_err" >&5 4439 echo "configure: failed program was:" >&5 4440 cat conftest.$ac_ext >&5 4441 rm -rf conftest* 4442 eval "ac_cv_header_$ac_safe=no" 4443fi 4444rm -f conftest* 4445fi 4446if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4447 echo "$ac_t""yes" 1>&6 4448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4449 cat >> confdefs.h <<EOF 4450#define $ac_tr_hdr 1 4451EOF 4452 4453else 4454 echo "$ac_t""no" 1>&6 4455fi 4456done 4457 4458for ac_hdr in os2.h 4459do 4460ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4461echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4462echo "configure:4463: checking for $ac_hdr" >&5 4463if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4464 echo $ac_n "(cached) $ac_c" 1>&6 4465else 4466 cat > conftest.$ac_ext <<EOF 4467#line 4468 "configure" 4468#include "confdefs.h" 4469#include <$ac_hdr> 4470EOF 4471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4472{ { eval echo configure:4473: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4473ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4474if test -z "$ac_err"; then 4475 rm -rf conftest* 4476 eval "ac_cv_header_$ac_safe=yes" 4477else 4478 echo "$ac_err" >&5 4479 echo "configure: failed program was:" >&5 4480 cat conftest.$ac_ext >&5 4481 rm -rf conftest* 4482 eval "ac_cv_header_$ac_safe=no" 4483fi 4484rm -f conftest* 4485fi 4486if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4487 echo "$ac_t""yes" 1>&6 4488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4489 cat >> confdefs.h <<EOF 4490#define $ac_tr_hdr 1 4491EOF 4492 4493else 4494 echo "$ac_t""no" 1>&6 4495fi 4496done 4497 4498for ac_hdr in os2me.h 4499do 4500ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4501echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4502echo "configure:4503: checking for $ac_hdr" >&5 4503if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4504 echo $ac_n "(cached) $ac_c" 1>&6 4505else 4506 cat > conftest.$ac_ext <<EOF 4507#line 4508 "configure" 4508#include "confdefs.h" 4509#include <$ac_hdr> 4510EOF 4511ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4512{ { eval echo configure:4513: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4513ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4514if test -z "$ac_err"; then 4515 rm -rf conftest* 4516 eval "ac_cv_header_$ac_safe=yes" 4517else 4518 echo "$ac_err" >&5 4519 echo "configure: failed program was:" >&5 4520 cat conftest.$ac_ext >&5 4521 rm -rf conftest* 4522 eval "ac_cv_header_$ac_safe=no" 4523fi 4524rm -f conftest* 4525fi 4526if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4527 echo "$ac_t""yes" 1>&6 4528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4529 cat >> confdefs.h <<EOF 4530#define $ac_tr_hdr 1 4531EOF 4532 4533else 4534 echo "$ac_t""no" 1>&6 4535fi 4536done 4537 4538for ac_hdr in windows.h 4539do 4540ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4541echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4542echo "configure:4543: checking for $ac_hdr" >&5 4543if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4544 echo $ac_n "(cached) $ac_c" 1>&6 4545else 4546 cat > conftest.$ac_ext <<EOF 4547#line 4548 "configure" 4548#include "confdefs.h" 4549#include <$ac_hdr> 4550EOF 4551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4552{ { eval echo configure:4553: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4553ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4554if test -z "$ac_err"; then 4555 rm -rf conftest* 4556 eval "ac_cv_header_$ac_safe=yes" 4557else 4558 echo "$ac_err" >&5 4559 echo "configure: failed program was:" >&5 4560 cat conftest.$ac_ext >&5 4561 rm -rf conftest* 4562 eval "ac_cv_header_$ac_safe=no" 4563fi 4564rm -f conftest* 4565fi 4566if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4567 echo "$ac_t""yes" 1>&6 4568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4569 cat >> confdefs.h <<EOF 4570#define $ac_tr_hdr 1 4571EOF 4572 4573else 4574 echo "$ac_t""no" 1>&6 4575fi 4576done 4577 4578for ac_hdr in linux/fs.h ext2fs/ext2_fs.h 4579do 4580ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4581echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4582echo "configure:4583: checking for $ac_hdr" >&5 4583if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4584 echo $ac_n "(cached) $ac_c" 1>&6 4585else 4586 cat > conftest.$ac_ext <<EOF 4587#line 4588 "configure" 4588#include "confdefs.h" 4589#include <$ac_hdr> 4590EOF 4591ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4592{ { eval echo configure:4593: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4593ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4594if test -z "$ac_err"; then 4595 rm -rf conftest* 4596 eval "ac_cv_header_$ac_safe=yes" 4597else 4598 echo "$ac_err" >&5 4599 echo "configure: failed program was:" >&5 4600 cat conftest.$ac_ext >&5 4601 rm -rf conftest* 4602 eval "ac_cv_header_$ac_safe=no" 4603fi 4604rm -f conftest* 4605fi 4606if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4607 echo "$ac_t""yes" 1>&6 4608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4609 cat >> confdefs.h <<EOF 4610#define $ac_tr_hdr 1 4611EOF 4612 4613else 4614 echo "$ac_t""no" 1>&6 4615fi 4616done 4617 4618for ac_hdr in sys/xattr.h 4619do 4620ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4621echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4622echo "configure:4623: checking for $ac_hdr" >&5 4623if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4624 echo $ac_n "(cached) $ac_c" 1>&6 4625else 4626 cat > conftest.$ac_ext <<EOF 4627#line 4628 "configure" 4628#include "confdefs.h" 4629#include <$ac_hdr> 4630EOF 4631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4632{ { eval echo configure:4633: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4633ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4634if test -z "$ac_err"; then 4635 rm -rf conftest* 4636 eval "ac_cv_header_$ac_safe=yes" 4637else 4638 echo "$ac_err" >&5 4639 echo "configure: failed program was:" >&5 4640 cat conftest.$ac_ext >&5 4641 rm -rf conftest* 4642 eval "ac_cv_header_$ac_safe=no" 4643fi 4644rm -f conftest* 4645fi 4646if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4647 echo "$ac_t""yes" 1>&6 4648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4649 cat >> confdefs.h <<EOF 4650#define $ac_tr_hdr 1 4651EOF 4652 4653else 4654 echo "$ac_t""no" 1>&6 4655fi 4656done 4657 4658for ac_hdr in attr/xattr.h 4659do 4660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4662echo "configure:4663: checking for $ac_hdr" >&5 4663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4664 echo $ac_n "(cached) $ac_c" 1>&6 4665else 4666 cat > conftest.$ac_ext <<EOF 4667#line 4668 "configure" 4668#include "confdefs.h" 4669#include <$ac_hdr> 4670EOF 4671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4672{ { eval echo configure:4673: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4673ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4674if test -z "$ac_err"; then 4675 rm -rf conftest* 4676 eval "ac_cv_header_$ac_safe=yes" 4677else 4678 echo "$ac_err" >&5 4679 echo "configure: failed program was:" >&5 4680 cat conftest.$ac_ext >&5 4681 rm -rf conftest* 4682 eval "ac_cv_header_$ac_safe=no" 4683fi 4684rm -f conftest* 4685fi 4686if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4687 echo "$ac_t""yes" 1>&6 4688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4689 cat >> confdefs.h <<EOF 4690#define $ac_tr_hdr 1 4691EOF 4692 4693else 4694 echo "$ac_t""no" 1>&6 4695fi 4696done 4697 4698for ac_hdr in crt_externs.h 4699do 4700ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4701echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4702echo "configure:4703: checking for $ac_hdr" >&5 4703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4704 echo $ac_n "(cached) $ac_c" 1>&6 4705else 4706 cat > conftest.$ac_ext <<EOF 4707#line 4708 "configure" 4708#include "confdefs.h" 4709#include <$ac_hdr> 4710EOF 4711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4712{ { eval echo configure:4713: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4713ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4714if test -z "$ac_err"; then 4715 rm -rf conftest* 4716 eval "ac_cv_header_$ac_safe=yes" 4717else 4718 echo "$ac_err" >&5 4719 echo "configure: failed program was:" >&5 4720 cat conftest.$ac_ext >&5 4721 rm -rf conftest* 4722 eval "ac_cv_header_$ac_safe=no" 4723fi 4724rm -f conftest* 4725fi 4726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4727 echo "$ac_t""yes" 1>&6 4728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4729 cat >> confdefs.h <<EOF 4730#define $ac_tr_hdr 1 4731EOF 4732 4733else 4734 echo "$ac_t""no" 1>&6 4735fi 4736done 4737 4738for ac_hdr in fnmatch.h 4739do 4740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4742echo "configure:4743: checking for $ac_hdr" >&5 4743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4744 echo $ac_n "(cached) $ac_c" 1>&6 4745else 4746 cat > conftest.$ac_ext <<EOF 4747#line 4748 "configure" 4748#include "confdefs.h" 4749#include <$ac_hdr> 4750EOF 4751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4752{ { eval echo configure:4753: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4753ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4754if test -z "$ac_err"; then 4755 rm -rf conftest* 4756 eval "ac_cv_header_$ac_safe=yes" 4757else 4758 echo "$ac_err" >&5 4759 echo "configure: failed program was:" >&5 4760 cat conftest.$ac_ext >&5 4761 rm -rf conftest* 4762 eval "ac_cv_header_$ac_safe=no" 4763fi 4764rm -f conftest* 4765fi 4766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4767 echo "$ac_t""yes" 1>&6 4768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4769 cat >> confdefs.h <<EOF 4770#define $ac_tr_hdr 1 4771EOF 4772 4773else 4774 echo "$ac_t""no" 1>&6 4775fi 4776done 4777 4778for ac_hdr in libintl.h locale.h langinfo.h nl_types.h 4779do 4780ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4781echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4782echo "configure:4783: checking for $ac_hdr" >&5 4783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4784 echo $ac_n "(cached) $ac_c" 1>&6 4785else 4786 cat > conftest.$ac_ext <<EOF 4787#line 4788 "configure" 4788#include "confdefs.h" 4789#include <$ac_hdr> 4790EOF 4791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4792{ { eval echo configure:4793: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4793ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4794if test -z "$ac_err"; then 4795 rm -rf conftest* 4796 eval "ac_cv_header_$ac_safe=yes" 4797else 4798 echo "$ac_err" >&5 4799 echo "configure: failed program was:" >&5 4800 cat conftest.$ac_ext >&5 4801 rm -rf conftest* 4802 eval "ac_cv_header_$ac_safe=no" 4803fi 4804rm -f conftest* 4805fi 4806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4807 echo "$ac_t""yes" 1>&6 4808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4809 cat >> confdefs.h <<EOF 4810#define $ac_tr_hdr 1 4811EOF 4812 4813else 4814 echo "$ac_t""no" 1>&6 4815fi 4816done 4817 4818for ac_hdr in ctype.h wctype.h wchar.h iconv.h 4819do 4820ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4821echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4822echo "configure:4823: checking for $ac_hdr" >&5 4823if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4824 echo $ac_n "(cached) $ac_c" 1>&6 4825else 4826 cat > conftest.$ac_ext <<EOF 4827#line 4828 "configure" 4828#include "confdefs.h" 4829#include <$ac_hdr> 4830EOF 4831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4832{ { eval echo configure:4833: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4833ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4834if test -z "$ac_err"; then 4835 rm -rf conftest* 4836 eval "ac_cv_header_$ac_safe=yes" 4837else 4838 echo "$ac_err" >&5 4839 echo "configure: failed program was:" >&5 4840 cat conftest.$ac_ext >&5 4841 rm -rf conftest* 4842 eval "ac_cv_header_$ac_safe=no" 4843fi 4844rm -f conftest* 4845fi 4846if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4847 echo "$ac_t""yes" 1>&6 4848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4849 cat >> confdefs.h <<EOF 4850#define $ac_tr_hdr 1 4851EOF 4852 4853else 4854 echo "$ac_t""no" 1>&6 4855fi 4856done 4857 4858for ac_hdr in priv.h sys/priv.h 4859do 4860ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4861echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4862echo "configure:4863: checking for $ac_hdr" >&5 4863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4864 echo $ac_n "(cached) $ac_c" 1>&6 4865else 4866 cat > conftest.$ac_ext <<EOF 4867#line 4868 "configure" 4868#include "confdefs.h" 4869#include <$ac_hdr> 4870EOF 4871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4872{ { eval echo configure:4873: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4873ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4874if test -z "$ac_err"; then 4875 rm -rf conftest* 4876 eval "ac_cv_header_$ac_safe=yes" 4877else 4878 echo "$ac_err" >&5 4879 echo "configure: failed program was:" >&5 4880 cat conftest.$ac_ext >&5 4881 rm -rf conftest* 4882 eval "ac_cv_header_$ac_safe=no" 4883fi 4884rm -f conftest* 4885fi 4886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4887 echo "$ac_t""yes" 1>&6 4888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4889 cat >> confdefs.h <<EOF 4890#define $ac_tr_hdr 1 4891EOF 4892 4893else 4894 echo "$ac_t""no" 1>&6 4895fi 4896done 4897 4898for ac_hdr in exec_attr.h secdb.h 4899do 4900ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4901echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4902echo "configure:4903: checking for $ac_hdr" >&5 4903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4904 echo $ac_n "(cached) $ac_c" 1>&6 4905else 4906 cat > conftest.$ac_ext <<EOF 4907#line 4908 "configure" 4908#include "confdefs.h" 4909#include <$ac_hdr> 4910EOF 4911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4912{ { eval echo configure:4913: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4913ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4914if test -z "$ac_err"; then 4915 rm -rf conftest* 4916 eval "ac_cv_header_$ac_safe=yes" 4917else 4918 echo "$ac_err" >&5 4919 echo "configure: failed program was:" >&5 4920 cat conftest.$ac_ext >&5 4921 rm -rf conftest* 4922 eval "ac_cv_header_$ac_safe=no" 4923fi 4924rm -f conftest* 4925fi 4926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4927 echo "$ac_t""yes" 1>&6 4928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4929 cat >> confdefs.h <<EOF 4930#define $ac_tr_hdr 1 4931EOF 4932 4933else 4934 echo "$ac_t""no" 1>&6 4935fi 4936done 4937 4938for ac_hdr in direct.h 4939do 4940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4942echo "configure:4943: checking for $ac_hdr" >&5 4943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4944 echo $ac_n "(cached) $ac_c" 1>&6 4945else 4946 cat > conftest.$ac_ext <<EOF 4947#line 4948 "configure" 4948#include "confdefs.h" 4949#include <$ac_hdr> 4950EOF 4951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4952{ { eval echo configure:4953: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4953ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4954if test -z "$ac_err"; then 4955 rm -rf conftest* 4956 eval "ac_cv_header_$ac_safe=yes" 4957else 4958 echo "$ac_err" >&5 4959 echo "configure: failed program was:" >&5 4960 cat conftest.$ac_ext >&5 4961 rm -rf conftest* 4962 eval "ac_cv_header_$ac_safe=no" 4963fi 4964rm -f conftest* 4965fi 4966if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4967 echo "$ac_t""yes" 1>&6 4968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4969 cat >> confdefs.h <<EOF 4970#define $ac_tr_hdr 1 4971EOF 4972 4973else 4974 echo "$ac_t""no" 1>&6 4975fi 4976done 4977 4978for ac_hdr in pthread.h thread.h 4979do 4980ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4981echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4982echo "configure:4983: checking for $ac_hdr" >&5 4983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4984 echo $ac_n "(cached) $ac_c" 1>&6 4985else 4986 cat > conftest.$ac_ext <<EOF 4987#line 4988 "configure" 4988#include "confdefs.h" 4989#include <$ac_hdr> 4990EOF 4991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4992{ { eval echo configure:4993: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 4993ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 4994if test -z "$ac_err"; then 4995 rm -rf conftest* 4996 eval "ac_cv_header_$ac_safe=yes" 4997else 4998 echo "$ac_err" >&5 4999 echo "configure: failed program was:" >&5 5000 cat conftest.$ac_ext >&5 5001 rm -rf conftest* 5002 eval "ac_cv_header_$ac_safe=no" 5003fi 5004rm -f conftest* 5005fi 5006if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5007 echo "$ac_t""yes" 1>&6 5008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5009 cat >> confdefs.h <<EOF 5010#define $ac_tr_hdr 1 5011EOF 5012 5013else 5014 echo "$ac_t""no" 1>&6 5015fi 5016done 5017 5018for ac_hdr in libgen.h 5019do 5020ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5021echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5022echo "configure:5023: checking for $ac_hdr" >&5 5023if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5024 echo $ac_n "(cached) $ac_c" 1>&6 5025else 5026 cat > conftest.$ac_ext <<EOF 5027#line 5028 "configure" 5028#include "confdefs.h" 5029#include <$ac_hdr> 5030EOF 5031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5032{ { eval echo configure:5033: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 5033ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 5034if test -z "$ac_err"; then 5035 rm -rf conftest* 5036 eval "ac_cv_header_$ac_safe=yes" 5037else 5038 echo "$ac_err" >&5 5039 echo "configure: failed program was:" >&5 5040 cat conftest.$ac_ext >&5 5041 rm -rf conftest* 5042 eval "ac_cv_header_$ac_safe=no" 5043fi 5044rm -f conftest* 5045fi 5046if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5047 echo "$ac_t""yes" 1>&6 5048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5049 cat >> confdefs.h <<EOF 5050#define $ac_tr_hdr 1 5051EOF 5052 5053else 5054 echo "$ac_t""no" 1>&6 5055fi 5056done 5057 5058for ac_hdr in regex.h regexp.h regexpr.h 5059do 5060ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5061echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5062echo "configure:5063: checking for $ac_hdr" >&5 5063if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5064 echo $ac_n "(cached) $ac_c" 1>&6 5065else 5066 cat > conftest.$ac_ext <<EOF 5067#line 5068 "configure" 5068#include "confdefs.h" 5069#include <$ac_hdr> 5070EOF 5071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5072{ { eval echo configure:5073: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 5073ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 5074if test -z "$ac_err"; then 5075 rm -rf conftest* 5076 eval "ac_cv_header_$ac_safe=yes" 5077else 5078 echo "$ac_err" >&5 5079 echo "configure: failed program was:" >&5 5080 cat conftest.$ac_ext >&5 5081 rm -rf conftest* 5082 eval "ac_cv_header_$ac_safe=no" 5083fi 5084rm -f conftest* 5085fi 5086if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5087 echo "$ac_t""yes" 1>&6 5088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5089 cat >> confdefs.h <<EOF 5090#define $ac_tr_hdr 1 5091EOF 5092 5093else 5094 echo "$ac_t""no" 1>&6 5095fi 5096done 5097 5098for ac_hdr in dlfcn.h link.h dl.h libelf.h 5099do 5100ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5101echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5102echo "configure:5103: checking for $ac_hdr" >&5 5103if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5104 echo $ac_n "(cached) $ac_c" 1>&6 5105else 5106 cat > conftest.$ac_ext <<EOF 5107#line 5108 "configure" 5108#include "confdefs.h" 5109#include <$ac_hdr> 5110EOF 5111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5112{ { eval echo configure:5113: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 5113ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 5114if test -z "$ac_err"; then 5115 rm -rf conftest* 5116 eval "ac_cv_header_$ac_safe=yes" 5117else 5118 echo "$ac_err" >&5 5119 echo "configure: failed program was:" >&5 5120 cat conftest.$ac_ext >&5 5121 rm -rf conftest* 5122 eval "ac_cv_header_$ac_safe=no" 5123fi 5124rm -f conftest* 5125fi 5126if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5127 echo "$ac_t""yes" 1>&6 5128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5129 cat >> confdefs.h <<EOF 5130#define $ac_tr_hdr 1 5131EOF 5132 5133else 5134 echo "$ac_t""no" 1>&6 5135fi 5136done 5137 5138for ac_hdr in ranlib.h 5139do 5140ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5141echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5142echo "configure:5143: checking for $ac_hdr" >&5 5143if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5144 echo $ac_n "(cached) $ac_c" 1>&6 5145else 5146 cat > conftest.$ac_ext <<EOF 5147#line 5148 "configure" 5148#include "confdefs.h" 5149#include <$ac_hdr> 5150EOF 5151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5152{ { eval echo configure:5153: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 5153ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 5154if test -z "$ac_err"; then 5155 rm -rf conftest* 5156 eval "ac_cv_header_$ac_safe=yes" 5157else 5158 echo "$ac_err" >&5 5159 echo "configure: failed program was:" >&5 5160 cat conftest.$ac_ext >&5 5161 rm -rf conftest* 5162 eval "ac_cv_header_$ac_safe=no" 5163fi 5164rm -f conftest* 5165fi 5166if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5167 echo "$ac_t""yes" 1>&6 5168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5169 cat >> confdefs.h <<EOF 5170#define $ac_tr_hdr 1 5171EOF 5172 5173else 5174 echo "$ac_t""no" 1>&6 5175fi 5176done 5177 5178for ac_hdr in expat.h 5179do 5180ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5181echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5182echo "configure:5183: checking for $ac_hdr" >&5 5183if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5184 echo $ac_n "(cached) $ac_c" 1>&6 5185else 5186 cat > conftest.$ac_ext <<EOF 5187#line 5188 "configure" 5188#include "confdefs.h" 5189#include <$ac_hdr> 5190EOF 5191ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5192{ { eval echo configure:5193: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 5193ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 5194if test -z "$ac_err"; then 5195 rm -rf conftest* 5196 eval "ac_cv_header_$ac_safe=yes" 5197else 5198 echo "$ac_err" >&5 5199 echo "configure: failed program was:" >&5 5200 cat conftest.$ac_ext >&5 5201 rm -rf conftest* 5202 eval "ac_cv_header_$ac_safe=no" 5203fi 5204rm -f conftest* 5205fi 5206if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5207 echo "$ac_t""yes" 1>&6 5208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5209 cat >> confdefs.h <<EOF 5210#define $ac_tr_hdr 1 5211EOF 5212 5213else 5214 echo "$ac_t""no" 1>&6 5215fi 5216done 5217 5218 5219echo $ac_n "checking for header file containing major(), minor() and makedev()""... $ac_c" 1>&6 5220echo "configure:5221: checking for header file containing major(), minor() and makedev()" >&5 5221if eval "test \"`echo '$''{'ac_cv_header_makedev'+set}'`\" = set"; then 5222 echo $ac_n "(cached) $ac_c" 1>&6 5223else 5224 ac_cv_header_makedev=none 5225cat > conftest.$ac_ext <<EOF 5226#line 5227 "configure" 5227#include "confdefs.h" 5228#include <sys/types.h> 5229#ifdef HAVE_SYS_MKDEV_H 5230#include <sys/mkdev.h> 5231#else 5232do not compile if we do not have the header 5233#endif 5234int main() { 5235int i = major(0); i = minor(0); i = makedev(0,0); 5236; return 0; } 5237EOF 5238if { { eval echo configure:5239: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 5239 rm -rf conftest* 5240 ac_cv_header_makedev=sys/mkdev.h 5241else 5242 echo "configure: failed program was:" >&5 5243 cat conftest.$ac_ext >&5 5244fi 5245rm -f conftest* 5246if test $ac_cv_header_makedev = none; then 5247 cat > conftest.$ac_ext <<EOF 5248#line 5249 "configure" 5249#include "confdefs.h" 5250#include <sys/types.h> 5251#ifdef HAVE_SYS_SYSMACROS_H 5252#include <sys/sysmacros.h> 5253#else 5254do not compile if we do not have the header 5255#endif 5256int main() { 5257int i = major(0); i = minor(0); i = makedev(0,0); 5258; return 0; } 5259EOF 5260if { { eval echo configure:5261: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 5261 rm -rf conftest* 5262 ac_cv_header_makedev=sys/sysmacros.h 5263else 5264 echo "configure: failed program was:" >&5 5265 cat conftest.$ac_ext >&5 5266fi 5267rm -f conftest* 5268fi 5269fi 5270 5271echo "$ac_t""$ac_cv_header_makedev" 1>&6 5272if test $ac_cv_header_makedev = sys/mkdev.h; then 5273 cat >> confdefs.h <<\EOF 5274#define MAJOR_IN_MKDEV 1 5275EOF 5276 5277fi 5278if test $ac_cv_header_makedev = sys/sysmacros.h; then 5279 cat >> confdefs.h <<\EOF 5280#define MAJOR_IN_SYSMACROS 1 5281EOF 5282 5283fi 5284 5285 5286echo $ac_n "checking bits in minor device number""... $ac_c" 1>&6 5287echo "configure:5288: checking bits in minor device number" >&5 5288if eval "test \"`echo '$''{'ac_cv_dev_minor_bits'+set}'`\" = set"; then 5289 echo $ac_n "(cached) $ac_c" 1>&6 5290else 5291 if test "$cross_compiling" = yes; then 5292 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 5293else 5294 cat > conftest.$ac_ext <<EOF 5295#line 5296 "configure" 5296#include "confdefs.h" 5297#include <stdio.h> 5298#include <sys/types.h> 5299#ifdef major 5300# define _FOUND_MAJOR_ 5301#endif 5302 5303#ifdef MAJOR_IN_MKDEV 5304# include <sys/mkdev.h> 5305# define _FOUND_MAJOR_ 5306#endif 5307 5308#ifndef _FOUND_MAJOR_ 5309# ifdef MAJOR_IN_SYSMACROS 5310# include <sys/sysmacros.h> 5311# define _FOUND_MAJOR_ 5312# endif 5313#endif 5314 5315#ifndef _FOUND_MAJOR_ 5316# if defined(hpux) || defined(__hpux__) || defined(__hpux) 5317# include <sys/mknod.h> 5318# define _FOUND_MAJOR_ 5319# endif 5320#endif 5321 5322#ifndef _FOUND_MAJOR_ 5323# if defined(OS390) || defined(__MVS__) 5324# include <sys/stat.h> 5325# define major(dev) S_MAJOR(dev) 5326# define minor(dev) S_MINOR(dev) 5327# define makedev(majo, mino) (((majo) << 16) | (mino)) 5328# define _FOUND_MAJOR_ 5329# endif /* z/OS */ 5330#endif /* _FOUND_MAJOR_ */ 5331 5332#ifndef _FOUND_MAJOR_ 5333# define major(dev) (((dev) >> 8) & 0xFF) 5334# define minor(dev) ((dev) & 0xFF) 5335# define makedev(majo, mino) (((majo) << 8) | (mino)) 5336#endif 5337int 5338main() 5339{ 5340 long l = 1; 5341 int i; 5342 int m; 5343 int c = 0; 5344 FILE *f=fopen("conftestval", "w"); 5345 int maxloop = 32; 5346 5347 if (sizeof (long) > 4) 5348 maxloop = 64; 5349 5350 if (!f) return(1); 5351 5352 for (i=1, m=0; i <= maxloop; i++, l<<=1) { 5353 if (minor(l) == 0 && c == 0) 5354 c = m; 5355 if (minor(l) != 0) 5356 m++; 5357 } 5358 fprintf(f, "%d\n", m); 5359 return(0); 5360} 5361EOF 5362if { { eval echo configure:5363: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 5363then 5364 ac_cv_dev_minor_bits=`cat conftestval` 5365else 5366 echo "configure: failed program was:" >&5 5367 cat conftest.$ac_ext >&5 5368 rm -fr conftest* 5369 ac_cv_dev_minor_bits=0 5370fi 5371rm -fr conftest* 5372fi 5373 5374fi 5375echo "$ac_t""$ac_cv_dev_minor_bits" 1>&6 5376cat >> confdefs.h <<EOF 5377#define DEV_MINOR_BITS $ac_cv_dev_minor_bits 5378EOF 5379 5380 5381echo $ac_n "checking whether bits in minor device numbers are non contiguous""... $ac_c" 1>&6 5382echo "configure:5383: checking whether bits in minor device numbers are non contiguous" >&5 5383if eval "test \"`echo '$''{'ac_cv_dev_minor_noncontig'+set}'`\" = set"; then 5384 echo $ac_n "(cached) $ac_c" 1>&6 5385else 5386 if test "$cross_compiling" = yes; then 5387 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 5388else 5389 cat > conftest.$ac_ext <<EOF 5390#line 5391 "configure" 5391#include "confdefs.h" 5392 5393#include <sys/types.h> 5394#ifdef major 5395# define _FOUND_MAJOR_ 5396#endif 5397 5398#ifdef MAJOR_IN_MKDEV 5399# include <sys/mkdev.h> 5400# define _FOUND_MAJOR_ 5401#endif 5402 5403#ifndef _FOUND_MAJOR_ 5404# ifdef MAJOR_IN_SYSMACROS 5405# include <sys/sysmacros.h> 5406# define _FOUND_MAJOR_ 5407# endif 5408#endif 5409 5410#ifndef _FOUND_MAJOR_ 5411# if defined(hpux) || defined(__hpux__) || defined(__hpux) 5412# include <sys/mknod.h> 5413# define _FOUND_MAJOR_ 5414# endif 5415#endif 5416 5417#ifndef _FOUND_MAJOR_ 5418# if defined(OS390) || defined(__MVS__) 5419# include <sys/stat.h> 5420# define major(dev) S_MAJOR(dev) 5421# define minor(dev) S_MINOR(dev) 5422# define makedev(majo, mino) (((majo) << 16) | (mino)) 5423# define _FOUND_MAJOR_ 5424# endif /* z/OS */ 5425#endif /* _FOUND_MAJOR_ */ 5426 5427#ifndef _FOUND_MAJOR_ 5428# define major(dev) (((dev) >> 8) & 0xFF) 5429# define minor(dev) ((dev) & 0xFF) 5430# define makedev(majo, mino) (((majo) << 8) | (mino)) 5431#endif 5432int 5433main() 5434{ 5435 long l = 1; 5436 int i; 5437 int m; 5438 int c = 0; 5439 int maxloop = 32; 5440 5441 if (sizeof (long) > 4) 5442 maxloop = 64; 5443 5444 for (i=1, m=0; i <= maxloop; i++, l<<=1) { 5445 if (minor(l) == 0 && c == 0) 5446 c = m; 5447 if (minor(l) != 0) 5448 m++; 5449 } 5450return (m == c);} 5451EOF 5452if { { eval echo configure:5453: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 5453then 5454 ac_cv_dev_minor_noncontig=yes 5455else 5456 echo "configure: failed program was:" >&5 5457 cat conftest.$ac_ext >&5 5458 rm -fr conftest* 5459 ac_cv_dev_minor_noncontig=no 5460fi 5461rm -fr conftest* 5462fi 5463 5464fi 5465 5466echo "$ac_t""$ac_cv_dev_minor_noncontig" 1>&6 5467if test $ac_cv_dev_minor_noncontig = yes; then 5468 cat >> confdefs.h <<\EOF 5469#define DEV_MINOR_NONCONTIG 1 5470EOF 5471 5472fi 5473 5474echo $ac_n "checking for _filbuf()""... $ac_c" 1>&6 5475echo "configure:5476: checking for _filbuf()" >&5 5476if eval "test \"`echo '$''{'ac_cv_func__filbuf'+set}'`\" = set"; then 5477 echo $ac_n "(cached) $ac_c" 1>&6 5478else 5479 cat > conftest.$ac_ext <<EOF 5480#line 5481 "configure" 5481#include "confdefs.h" 5482#include <stdio.h> 5483int main() { 5484FILE *f; 5485int flag; 5486int count; 5487char *ptr; 5488char c = 0; 5489f = fopen("confdefs.h", "r"); 5490_filbuf(f); 5491_flsbuf(c, f); 5492flag = f->_flag & _IONBF; 5493flag |= f->_flag & _IOERR; 5494flag |= f->_flag & _IOEOF; 5495count = f->_cnt; 5496ptr = (char *)f->_ptr; 5497fclose(f); 5498; return 0; } 5499EOF 5500if { { eval echo configure:5501: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 5501 rm -rf conftest* 5502 ac_cv_func__filbuf=yes 5503else 5504 echo "configure: failed program was:" >&5 5505 cat conftest.$ac_ext >&5 5506 rm -rf conftest* 5507 ac_cv_func__filbuf=no 5508fi 5509rm -f conftest* 5510fi 5511 5512echo "$ac_t""$ac_cv_func__filbuf" 1>&6 5513if test $ac_cv_func__filbuf = yes; then 5514 cat >> confdefs.h <<\EOF 5515#define HAVE__FILBUF 1 5516EOF 5517 5518fi 5519echo $ac_n "checking for __filbuf()""... $ac_c" 1>&6 5520echo "configure:5521: checking for __filbuf()" >&5 5521if eval "test \"`echo '$''{'ac_cv_func___filbuf'+set}'`\" = set"; then 5522 echo $ac_n "(cached) $ac_c" 1>&6 5523else 5524 cat > conftest.$ac_ext <<EOF 5525#line 5526 "configure" 5526#include "confdefs.h" 5527#include <stdio.h> 5528int main() { 5529FILE *f; 5530int flag; 5531int count; 5532char *ptr; 5533char c = 0; 5534f = fopen("confdefs.h", "r"); 5535__filbuf(f); 5536__flsbuf(c, f); 5537flag = f->_flag & _IONBF; 5538flag |= f->_flag & _IOERR; 5539flag |= f->_flag & _IOEOF; 5540count = f->_cnt; 5541ptr = (char *)f->_ptr; 5542fclose(f); 5543; return 0; } 5544EOF 5545if { { eval echo configure:5546: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 5546 rm -rf conftest* 5547 ac_cv_func___filbuf=yes 5548else 5549 echo "configure: failed program was:" >&5 5550 cat conftest.$ac_ext >&5 5551 rm -rf conftest* 5552 ac_cv_func___filbuf=no 5553fi 5554rm -f conftest* 5555fi 5556 5557echo "$ac_t""$ac_cv_func___filbuf" 1>&6 5558if test $ac_cv_func___filbuf = yes; then 5559 cat >> confdefs.h <<\EOF 5560#define HAVE___FILBUF 1 5561EOF 5562 5563fi 5564echo $ac_n "checking for USG derived STDIO""... $ac_c" 1>&6 5565echo "configure:5566: checking for USG derived STDIO" >&5 5566if eval "test \"`echo '$''{'ac_cv_header_usg_stdio'+set}'`\" = set"; then 5567 echo $ac_n "(cached) $ac_c" 1>&6 5568else 5569 cat > conftest.$ac_ext <<EOF 5570#line 5571 "configure" 5571#include "confdefs.h" 5572#include <stdio.h> 5573int main() { 5574FILE *f; 5575int flag; 5576int count; 5577char *ptr; 5578char c = 0; 5579f = fopen("confdefs.h", "r"); 5580#ifdef HAVE___FILBUF 5581__filbuf(f); 5582__flsbuf(c, f); 5583#else 5584# ifdef HAVE__FILBUF 5585_filbuf(f); 5586_flsbuf(c, f); 5587# else 5588no filbuf() 5589# endif 5590#endif 5591flag = f->_flag & _IONBF; 5592flag |= f->_flag & _IOERR; 5593flag |= f->_flag & _IOEOF; 5594count = f->_cnt; 5595ptr = (char *)f->_ptr; 5596fclose(f); 5597; return 0; } 5598EOF 5599if { { eval echo configure:5600: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 5600 rm -rf conftest* 5601 ac_cv_header_usg_stdio=yes 5602else 5603 echo "configure: failed program was:" >&5 5604 cat conftest.$ac_ext >&5 5605 rm -rf conftest* 5606 ac_cv_header_usg_stdio=no 5607fi 5608rm -f conftest* 5609fi 5610 5611echo "$ac_t""$ac_cv_header_usg_stdio" 1>&6 5612if test $ac_cv_header_usg_stdio = yes; then 5613 cat >> confdefs.h <<\EOF 5614#define HAVE_USG_STDIO 1 5615EOF 5616 5617fi 5618echo $ac_n "checking for errno definition in errno.h""... $ac_c" 1>&6 5619echo "configure:5620: checking for errno definition in errno.h" >&5 5620if eval "test \"`echo '$''{'ac_cv_header_errno_def'+set}'`\" = set"; then 5621 echo $ac_n "(cached) $ac_c" 1>&6 5622else 5623 cat > conftest.$ac_ext <<EOF 5624#line 5625 "configure" 5625#include "confdefs.h" 5626#include <errno.h> 5627int main() { 5628errno = 0; 5629; return 0; } 5630EOF 5631if { { eval echo configure:5632: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 5632 rm -rf conftest* 5633 ac_cv_header_errno_def=yes 5634else 5635 echo "configure: failed program was:" >&5 5636 cat conftest.$ac_ext >&5 5637 rm -rf conftest* 5638 ac_cv_header_errno_def=no 5639fi 5640rm -f conftest* 5641fi 5642 5643echo "$ac_t""$ac_cv_header_errno_def" 1>&6 5644if test $ac_cv_header_errno_def = yes; then 5645 cat >> confdefs.h <<\EOF 5646#define HAVE_ERRNO_DEF 1 5647EOF 5648 5649fi 5650echo $ac_n "checking for environ definition in unistd.h/stdlib.h""... $ac_c" 1>&6 5651echo "configure:5652: checking for environ definition in unistd.h/stdlib.h" >&5 5652if eval "test \"`echo '$''{'ac_cv_header_environ_def'+set}'`\" = set"; then 5653 echo $ac_n "(cached) $ac_c" 1>&6 5654else 5655 cat > conftest.$ac_ext <<EOF 5656#line 5657 "configure" 5657#include "confdefs.h" 5658 5659#ifdef HAVE_UNISTD_H 5660#include <unistd.h> 5661#else 5662#ifdef HAVE_STDLIB_H 5663#include <stdlib.h> /* MSC no unistd.h but environ in stdlib.h */ 5664#endif 5665#endif 5666 5667int main() { 5668environ = 0; 5669; return 0; } 5670EOF 5671if { { eval echo configure:5672: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 5672 rm -rf conftest* 5673 ac_cv_header_environ_def=yes 5674else 5675 echo "configure: failed program was:" >&5 5676 cat conftest.$ac_ext >&5 5677 rm -rf conftest* 5678 ac_cv_header_environ_def=no 5679fi 5680rm -f conftest* 5681fi 5682 5683echo "$ac_t""$ac_cv_header_environ_def" 1>&6 5684if test $ac_cv_header_environ_def = yes; then 5685 cat >> confdefs.h <<\EOF 5686#define HAVE_ENVIRON_DEF 1 5687EOF 5688 5689fi 5690echo $ac_n "checking for sys_siglist definition in signal.h""... $ac_c" 1>&6 5691echo "configure:5692: checking for sys_siglist definition in signal.h" >&5 5692if eval "test \"`echo '$''{'ac_cv_header_sys_siglist_def'+set}'`\" = set"; then 5693 echo $ac_n "(cached) $ac_c" 1>&6 5694else 5695 cat > conftest.$ac_ext <<EOF 5696#line 5697 "configure" 5697#include "confdefs.h" 5698#include <signal.h> 5699int main() { 5700char *cp = (char *)sys_siglist[0]; return (cp != (char *)0 && *cp != 0); 5701; return 0; } 5702EOF 5703if { { eval echo configure:5704: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 5704 rm -rf conftest* 5705 ac_cv_header_sys_siglist_def=yes 5706else 5707 echo "configure: failed program was:" >&5 5708 cat conftest.$ac_ext >&5 5709 rm -rf conftest* 5710 ac_cv_header_sys_siglist_def=no 5711fi 5712rm -f conftest* 5713fi 5714 5715echo "$ac_t""$ac_cv_header_sys_siglist_def" 1>&6 5716if test $ac_cv_header_sys_siglist_def = yes; then 5717 cat >> confdefs.h <<\EOF 5718#define HAVE_SYS_SIGLIST_DEF 1 5719EOF 5720 5721fi 5722for ac_hdr in stdlib.h 5723do 5724ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5725echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5726echo "configure:5727: checking for $ac_hdr" >&5 5727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5728 echo $ac_n "(cached) $ac_c" 1>&6 5729else 5730 cat > conftest.$ac_ext <<EOF 5731#line 5732 "configure" 5732#include "confdefs.h" 5733#include <$ac_hdr> 5734EOF 5735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5736{ { eval echo configure:5737: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 5737ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 5738if test -z "$ac_err"; then 5739 rm -rf conftest* 5740 eval "ac_cv_header_$ac_safe=yes" 5741else 5742 echo "$ac_err" >&5 5743 echo "configure: failed program was:" >&5 5744 cat conftest.$ac_ext >&5 5745 rm -rf conftest* 5746 eval "ac_cv_header_$ac_safe=no" 5747fi 5748rm -f conftest* 5749fi 5750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5751 echo "$ac_t""yes" 1>&6 5752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5753 cat >> confdefs.h <<EOF 5754#define $ac_tr_hdr 1 5755EOF 5756 5757else 5758 echo "$ac_t""no" 1>&6 5759fi 5760done 5761 5762for ac_hdr in unistd.h 5763do 5764ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5765echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5766echo "configure:5767: checking for $ac_hdr" >&5 5767if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5768 echo $ac_n "(cached) $ac_c" 1>&6 5769else 5770 cat > conftest.$ac_ext <<EOF 5771#line 5772 "configure" 5772#include "confdefs.h" 5773#include <$ac_hdr> 5774EOF 5775ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5776{ { eval echo configure:5777: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 5777ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 5778if test -z "$ac_err"; then 5779 rm -rf conftest* 5780 eval "ac_cv_header_$ac_safe=yes" 5781else 5782 echo "$ac_err" >&5 5783 echo "configure: failed program was:" >&5 5784 cat conftest.$ac_ext >&5 5785 rm -rf conftest* 5786 eval "ac_cv_header_$ac_safe=no" 5787fi 5788rm -f conftest* 5789fi 5790if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5791 echo "$ac_t""yes" 1>&6 5792 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5793 cat >> confdefs.h <<EOF 5794#define $ac_tr_hdr 1 5795EOF 5796 5797else 5798 echo "$ac_t""no" 1>&6 5799fi 5800done 5801 5802for ac_hdr in wait.h 5803do 5804ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5805echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5806echo "configure:5807: checking for $ac_hdr" >&5 5807if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5808 echo $ac_n "(cached) $ac_c" 1>&6 5809else 5810 cat > conftest.$ac_ext <<EOF 5811#line 5812 "configure" 5812#include "confdefs.h" 5813#include <$ac_hdr> 5814EOF 5815ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5816{ { eval echo configure:5817: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 5817ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 5818if test -z "$ac_err"; then 5819 rm -rf conftest* 5820 eval "ac_cv_header_$ac_safe=yes" 5821else 5822 echo "$ac_err" >&5 5823 echo "configure: failed program was:" >&5 5824 cat conftest.$ac_ext >&5 5825 rm -rf conftest* 5826 eval "ac_cv_header_$ac_safe=no" 5827fi 5828rm -f conftest* 5829fi 5830if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5831 echo "$ac_t""yes" 1>&6 5832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5833 cat >> confdefs.h <<EOF 5834#define $ac_tr_hdr 1 5835EOF 5836 5837else 5838 echo "$ac_t""no" 1>&6 5839fi 5840done 5841 5842echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 5843echo "configure:5844: checking for sys/wait.h that is POSIX.1 compatible" >&5 5844if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 5845 echo $ac_n "(cached) $ac_c" 1>&6 5846else 5847 cat > conftest.$ac_ext <<EOF 5848#line 5849 "configure" 5849#include "confdefs.h" 5850#include <sys/types.h> 5851#include <sys/wait.h> 5852#ifndef WEXITSTATUS 5853#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 5854#endif 5855#ifndef WIFEXITED 5856#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5857#endif 5858int main() { 5859int s; 5860wait (&s); 5861s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5862; return 0; } 5863EOF 5864if { { eval echo configure:5865: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 5865 rm -rf conftest* 5866 ac_cv_header_sys_wait_h=yes 5867else 5868 echo "configure: failed program was:" >&5 5869 cat conftest.$ac_ext >&5 5870 rm -rf conftest* 5871 ac_cv_header_sys_wait_h=no 5872fi 5873rm -f conftest* 5874fi 5875 5876echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 5877if test $ac_cv_header_sys_wait_h = yes; then 5878 cat >> confdefs.h <<\EOF 5879#define HAVE_SYS_WAIT_H 1 5880EOF 5881 5882fi 5883 5884echo $ac_n "checking for errno definition in errno.h""... $ac_c" 1>&6 5885echo "configure:5886: checking for errno definition in errno.h" >&5 5886if eval "test \"`echo '$''{'ac_cv_header_errno_def'+set}'`\" = set"; then 5887 echo $ac_n "(cached) $ac_c" 1>&6 5888else 5889 cat > conftest.$ac_ext <<EOF 5890#line 5891 "configure" 5891#include "confdefs.h" 5892#include <errno.h> 5893int main() { 5894errno = 0; 5895; return 0; } 5896EOF 5897if { { eval echo configure:5898: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 5898 rm -rf conftest* 5899 ac_cv_header_errno_def=yes 5900else 5901 echo "configure: failed program was:" >&5 5902 cat conftest.$ac_ext >&5 5903 rm -rf conftest* 5904 ac_cv_header_errno_def=no 5905fi 5906rm -f conftest* 5907fi 5908 5909echo "$ac_t""$ac_cv_header_errno_def" 1>&6 5910if test $ac_cv_header_errno_def = yes; then 5911 cat >> confdefs.h <<\EOF 5912#define HAVE_ERRNO_DEF 1 5913EOF 5914 5915fi 5916echo $ac_n "checking for SVr4 compliant waitpid() with WNOWAIT support""... $ac_c" 1>&6 5917echo "configure:5918: checking for SVr4 compliant waitpid() with WNOWAIT support" >&5 5918if eval "test \"`echo '$''{'ac_cv_wnowait_waitpid'+set}'`\" = set"; then 5919 echo $ac_n "(cached) $ac_c" 1>&6 5920else 5921 if test "$cross_compiling" = yes; then 5922 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 5923else 5924 cat > conftest.$ac_ext <<EOF 5925#line 5926 "configure" 5926#include "confdefs.h" 5927 5928#ifdef HAVE_STDLIB_H 5929#include <stdlib.h> 5930#endif 5931#ifdef HAVE_UNISTD_H 5932#include <unistd.h> 5933#endif 5934#if defined(HAVE_WAIT_H) 5935# include <wait.h> 5936#else 5937#include <sys/wait.h> 5938#endif 5939#include <errno.h> 5940#ifndef HAVE_ERRNO_DEF 5941extern int errno; 5942#endif 5943 5944int 5945main() 5946{ 5947 int xstat; 5948 pid_t pid = -1; 5949 int ret; 5950 5951 ret = waitpid(pid, &xstat, WNOWAIT); 5952 if (ret < 0 && errno == EINVAL) 5953 exit(1); 5954 exit(0); 5955} 5956EOF 5957if { { eval echo configure:5958: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 5958then 5959 ac_cv_wnowait_waitpid=yes 5960else 5961 echo "configure: failed program was:" >&5 5962 cat conftest.$ac_ext >&5 5963 rm -fr conftest* 5964 ac_cv_wnowait_waitpid=no 5965fi 5966rm -fr conftest* 5967fi 5968 5969fi 5970 5971echo "$ac_t""$ac_cv_wnowait_waitpid" 1>&6 5972if test $ac_cv_wnowait_waitpid = yes; then 5973 cat >> confdefs.h <<\EOF 5974#define HAVE_WNOWAIT_WAITPID 1 5975EOF 5976 5977fi 5978 5979echo $ac_n "checking for working const""... $ac_c" 1>&6 5980echo "configure:5981: checking for working const" >&5 5981if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 5982 echo $ac_n "(cached) $ac_c" 1>&6 5983else 5984 cat > conftest.$ac_ext <<EOF 5985#line 5986 "configure" 5986#include "confdefs.h" 5987 5988int main() { 5989 5990/* Ultrix mips cc rejects this. */ 5991typedef int charset[2]; const charset x; 5992/* SunOS 4.1.1 cc rejects this. */ 5993char const *const *ccp; 5994char **p; 5995/* NEC SVR4.0.2 mips cc rejects this. */ 5996struct point {int x, y;}; 5997static struct point const zero = {0,0}; 5998/* AIX XL C 1.02.0.0 rejects this. 5999 It does not let you subtract one const X* pointer from another in an arm 6000 of an if-expression whose if-part is not a constant expression */ 6001const char *g = "string"; 6002ccp = &g + (g ? g-g : 0); 6003/* HPUX 7.0 cc rejects these. */ 6004++ccp; 6005p = (char**) ccp; 6006ccp = (char const *const *) p; 6007{ /* SCO 3.2v4 cc rejects this. */ 6008 char *t; 6009 char const *s = 0 ? (char *) 0 : (char const *) 0; 6010 6011 *t++ = 0; 6012} 6013{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6014 int x[] = {25, 17}; 6015 const int *foo = &x[0]; 6016 ++foo; 6017} 6018{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6019 typedef const int *iptr; 6020 iptr p = 0; 6021 ++p; 6022} 6023{ /* AIX XL C 1.02.0.0 rejects this saying 6024 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6025 struct s { int j; const int *ap[3]; }; 6026 struct s *b; b->j = 5; 6027} 6028{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6029 const int foo = 10; 6030} 6031 6032; return 0; } 6033EOF 6034if { { eval echo configure:6035: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6035 rm -rf conftest* 6036 ac_cv_c_const=yes 6037else 6038 echo "configure: failed program was:" >&5 6039 cat conftest.$ac_ext >&5 6040 rm -rf conftest* 6041 ac_cv_c_const=no 6042fi 6043rm -f conftest* 6044fi 6045 6046echo "$ac_t""$ac_cv_c_const" 1>&6 6047if test $ac_cv_c_const = no; then 6048 cat >> confdefs.h <<\EOF 6049#define const 6050EOF 6051 6052fi 6053 6054echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 6055echo "configure:6056: checking whether byte ordering is bigendian" >&5 6056if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 6057 echo $ac_n "(cached) $ac_c" 1>&6 6058else 6059 ac_cv_c_bigendian=unknown 6060# See if sys/param.h defines the BYTE_ORDER macro. 6061cat > conftest.$ac_ext <<EOF 6062#line 6063 "configure" 6063#include "confdefs.h" 6064#include <sys/types.h> 6065#include <sys/param.h> 6066int main() { 6067 6068#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 6069 bogus endian macros 6070#endif 6071; return 0; } 6072EOF 6073if { { eval echo configure:6074: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6074 rm -rf conftest* 6075 # It does; now see whether it defined to BIG_ENDIAN or not. 6076cat > conftest.$ac_ext <<EOF 6077#line 6078 "configure" 6078#include "confdefs.h" 6079#include <sys/types.h> 6080#include <sys/param.h> 6081int main() { 6082 6083#if BYTE_ORDER != BIG_ENDIAN 6084 not big endian 6085#endif 6086; return 0; } 6087EOF 6088if { { eval echo configure:6089: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6089 rm -rf conftest* 6090 ac_cv_c_bigendian=yes 6091else 6092 echo "configure: failed program was:" >&5 6093 cat conftest.$ac_ext >&5 6094 rm -rf conftest* 6095 ac_cv_c_bigendian=no 6096fi 6097rm -f conftest* 6098else 6099 echo "configure: failed program was:" >&5 6100 cat conftest.$ac_ext >&5 6101fi 6102rm -f conftest* 6103if test $ac_cv_c_bigendian = unknown; then 6104if test "$cross_compiling" = yes; then 6105 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 6106else 6107 cat > conftest.$ac_ext <<EOF 6108#line 6109 "configure" 6109#include "confdefs.h" 6110int main () { 6111 /* Are we little or big endian? From Harbison&Steele. */ 6112 union 6113 { 6114 long l; 6115 char c[sizeof (long)]; 6116 } u; 6117 u.l = 1; 6118 return (u.c[sizeof (long) - 1] == 1); 6119} 6120EOF 6121if { { eval echo configure:6122: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 6122then 6123 ac_cv_c_bigendian=no 6124else 6125 echo "configure: failed program was:" >&5 6126 cat conftest.$ac_ext >&5 6127 rm -fr conftest* 6128 ac_cv_c_bigendian=yes 6129fi 6130rm -fr conftest* 6131fi 6132 6133fi 6134fi 6135 6136echo "$ac_t""$ac_cv_c_bigendian" 1>&6 6137if test $ac_cv_c_bigendian = yes; then 6138 cat >> confdefs.h <<\EOF 6139#define WORDS_BIGENDIAN 1 6140EOF 6141 6142fi 6143 6144echo $ac_n "checking whether bitorder in bitfields is htol""... $ac_c" 1>&6 6145echo "configure:6146: checking whether bitorder in bitfields is htol" >&5 6146if eval "test \"`echo '$''{'ac_cv_c_bitfields_htol'+set}'`\" = set"; then 6147 echo $ac_n "(cached) $ac_c" 1>&6 6148else 6149 if test "$cross_compiling" = yes; then 6150 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 6151else 6152 cat > conftest.$ac_ext <<EOF 6153#line 6154 "configure" 6154#include "confdefs.h" 6155 6156struct { 6157 unsigned char x1:4; 6158 unsigned char x2:4; 6159} a; 6160int 6161main() 6162{ 6163char *cp; 6164 6165cp = (char *)&a; 6166*cp = 0x12; 6167return(a.x1 == 2);} 6168EOF 6169if { { eval echo configure:6170: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 6170then 6171 ac_cv_c_bitfields_htol=yes 6172else 6173 echo "configure: failed program was:" >&5 6174 cat conftest.$ac_ext >&5 6175 rm -fr conftest* 6176 ac_cv_c_bitfields_htol=no 6177fi 6178rm -fr conftest* 6179fi 6180 6181fi 6182 6183echo "$ac_t""$ac_cv_c_bitfields_htol" 1>&6 6184if test $ac_cv_c_bitfields_htol = yes; then 6185 cat >> confdefs.h <<\EOF 6186#define BITFIELDS_HTOL 1 6187EOF 6188 6189fi 6190 6191 6192echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 6193echo "configure:6194: checking for preprocessor stringizing operator" >&5 6194if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then 6195 echo $ac_n "(cached) $ac_c" 1>&6 6196else 6197 cat > conftest.$ac_ext <<EOF 6198#line 6199 "configure" 6199#include "confdefs.h" 6200 6201#define x(y) #y 6202 6203char *s = x(teststring); 6204 6205EOF 6206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6207 egrep "#teststring" >/dev/null 2>&1; then 6208 rm -rf conftest* 6209 ac_cv_c_stringize=no 6210else 6211 rm -rf conftest* 6212 ac_cv_c_stringize=yes 6213fi 6214rm -f conftest* 6215 6216fi 6217 6218if test "${ac_cv_c_stringize}" = yes 6219then 6220 cat >> confdefs.h <<\EOF 6221#define HAVE_STRINGIZE 1 6222EOF 6223 6224fi 6225echo "$ac_t""${ac_cv_c_stringize}" 1>&6 6226 6227echo $ac_n "checking for inline""... $ac_c" 1>&6 6228echo "configure:6229: checking for inline" >&5 6229if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 6230 echo $ac_n "(cached) $ac_c" 1>&6 6231else 6232 ac_cv_c_inline=no 6233for ac_kw in inline __inline__ __inline; do 6234 cat > conftest.$ac_ext <<EOF 6235#line 6236 "configure" 6236#include "confdefs.h" 6237 6238int main() { 6239} $ac_kw int foo() { 6240; return 0; } 6241EOF 6242if { { eval echo configure:6243: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6243 rm -rf conftest* 6244 ac_cv_c_inline=$ac_kw; break 6245else 6246 echo "configure: failed program was:" >&5 6247 cat conftest.$ac_ext >&5 6248fi 6249rm -f conftest* 6250done 6251 6252fi 6253 6254echo "$ac_t""$ac_cv_c_inline" 1>&6 6255case "$ac_cv_c_inline" in 6256 inline | yes) 6257 cat >> confdefs.h <<\EOF 6258#define HAVE_INLINE 1 6259EOF 6260 6261 ;; 6262 no) cat >> confdefs.h <<\EOF 6263#define inline 6264EOF 6265 6266 ;; 6267 *) cat >> confdefs.h <<EOF 6268#define inline $ac_cv_c_inline 6269EOF 6270 6271 cat >> confdefs.h <<\EOF 6272#define HAVE_INLINE 1 6273EOF 6274 6275 ;; 6276esac 6277 6278echo $ac_n "checking if cc supports __attribute__ ((__noinline__))""... $ac_c" 1>&6 6279echo "configure:6280: checking if cc supports __attribute__ ((__noinline__))" >&5 6280if eval "test \"`echo '$''{'ac_cv_have_cc_noinline'+set}'`\" = set"; then 6281 echo $ac_n "(cached) $ac_c" 1>&6 6282else 6283 cat > conftest.$ac_ext <<EOF 6284#line 6285 "configure" 6285#include "confdefs.h" 6286__attribute__ ((__noinline__)) int xxx() { return (0); } 6287int main() { 6288 6289; return 0; } 6290EOF 6291if { { eval echo configure:6292: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6292 rm -rf conftest* 6293 ac_cv_have_cc_noinline=yes 6294else 6295 echo "configure: failed program was:" >&5 6296 cat conftest.$ac_ext >&5 6297 rm -rf conftest* 6298 ac_cv_have_cc_noinline=no 6299fi 6300rm -f conftest* 6301fi 6302 6303echo "$ac_t""$ac_cv_have_cc_noinline" 1>&6 6304if test $ac_cv_have_cc_noinline = yes; then 6305 cat >> confdefs.h <<\EOF 6306#define HAVE_CC_NOINLINE 1 6307EOF 6308 6309fi 6310 6311echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 6312echo "configure:6313: checking return type of signal handlers" >&5 6313if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 6314 echo $ac_n "(cached) $ac_c" 1>&6 6315else 6316 cat > conftest.$ac_ext <<EOF 6317#line 6318 "configure" 6318#include "confdefs.h" 6319#include <sys/types.h> 6320#include <signal.h> 6321#ifdef signal 6322#undef signal 6323#endif 6324#ifdef __cplusplus 6325extern "C" void (*signal (int, void (*)(int)))(int); 6326#else 6327void (*signal ()) (); 6328#endif 6329 6330int main() { 6331int i; 6332; return 0; } 6333EOF 6334if { { eval echo configure:6335: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6335 rm -rf conftest* 6336 ac_cv_type_signal=void 6337else 6338 echo "configure: failed program was:" >&5 6339 cat conftest.$ac_ext >&5 6340 rm -rf conftest* 6341 ac_cv_type_signal=int 6342fi 6343rm -f conftest* 6344fi 6345 6346echo "$ac_t""$ac_cv_type_signal" 1>&6 6347cat >> confdefs.h <<EOF 6348#define RETSIGTYPE $ac_cv_type_signal 6349EOF 6350 6351 6352echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 6353echo "configure:6354: checking for uid_t in sys/types.h" >&5 6354if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 6355 echo $ac_n "(cached) $ac_c" 1>&6 6356else 6357 cat > conftest.$ac_ext <<EOF 6358#line 6359 "configure" 6359#include "confdefs.h" 6360#include <sys/types.h> 6361EOF 6362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6363 egrep "uid_t" >/dev/null 2>&1; then 6364 rm -rf conftest* 6365 ac_cv_type_uid_t=yes 6366else 6367 rm -rf conftest* 6368 ac_cv_type_uid_t=no 6369fi 6370rm -f conftest* 6371 6372fi 6373 6374echo "$ac_t""$ac_cv_type_uid_t" 1>&6 6375if test $ac_cv_type_uid_t = no; then 6376 cat >> confdefs.h <<\EOF 6377#define uid_t int 6378EOF 6379 6380 cat >> confdefs.h <<\EOF 6381#define gid_t int 6382EOF 6383 6384fi 6385 6386echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 6387echo "configure:6388: checking type of array argument to getgroups" >&5 6388if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then 6389 echo $ac_n "(cached) $ac_c" 1>&6 6390else 6391 if test "$cross_compiling" = yes; then 6392 ac_cv_type_getgroups=cross 6393else 6394 cat > conftest.$ac_ext <<EOF 6395#line 6396 "configure" 6396#include "confdefs.h" 6397 6398/* Thanks to Mike Rendell for this test. */ 6399#include <sys/types.h> 6400#ifdef HAVE_UNISTD_H 6401#include <unistd.h> 6402#endif 6403#define NGID 256 6404#undef MAX 6405#define MAX(x, y) ((x) > (y) ? (x) : (y)) 6406int 6407main() 6408{ 6409 gid_t gidset[NGID]; 6410 int i, n; 6411 union { gid_t gval; long lval; } val; 6412 6413 val.lval = -1; 6414 for (i = 0; i < NGID; i++) 6415 gidset[i] = val.gval; 6416 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 6417 gidset); 6418 /* Exit non-zero if getgroups seems to require an array of ints. This 6419 happens when gid_t is short but getgroups modifies an array of ints. */ 6420 return ((n > 0 && gidset[n] != val.gval) ? 1 : 0); 6421} 6422 6423EOF 6424if { { eval echo configure:6425: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 6425then 6426 ac_cv_type_getgroups=gid_t 6427else 6428 echo "configure: failed program was:" >&5 6429 cat conftest.$ac_ext >&5 6430 rm -fr conftest* 6431 ac_cv_type_getgroups=int 6432fi 6433rm -fr conftest* 6434fi 6435 6436if test $ac_cv_type_getgroups = cross; then 6437 cat > conftest.$ac_ext <<EOF 6438#line 6439 "configure" 6439#include "confdefs.h" 6440#include <unistd.h> 6441EOF 6442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6443 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then 6444 rm -rf conftest* 6445 ac_cv_type_getgroups=gid_t 6446else 6447 rm -rf conftest* 6448 ac_cv_type_getgroups=int 6449fi 6450rm -f conftest* 6451 6452fi 6453fi 6454 6455echo "$ac_t""$ac_cv_type_getgroups" 1>&6 6456cat >> confdefs.h <<EOF 6457#define GETGROUPS_T $ac_cv_type_getgroups 6458EOF 6459 6460 6461echo $ac_n "checking for type long long""... $ac_c" 1>&6 6462echo "configure:6463: checking for type long long" >&5 6463if eval "test \"`echo '$''{'ac_cv_type_longlong'+set}'`\" = set"; then 6464 echo $ac_n "(cached) $ac_c" 1>&6 6465else 6466 cat > conftest.$ac_ext <<EOF 6467#line 6468 "configure" 6468#include "confdefs.h" 6469 6470int main() { 6471long long i; 6472; return 0; } 6473EOF 6474if { { eval echo configure:6475: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6475 rm -rf conftest* 6476 ac_cv_type_longlong=yes 6477else 6478 echo "configure: failed program was:" >&5 6479 cat conftest.$ac_ext >&5 6480 rm -rf conftest* 6481 ac_cv_type_longlong=no 6482fi 6483rm -f conftest* 6484fi 6485 6486echo "$ac_t""$ac_cv_type_longlong" 1>&6 6487if test $ac_cv_type_longlong = yes; then 6488 cat >> confdefs.h <<\EOF 6489#define HAVE_LONGLONG 1 6490EOF 6491 6492fi 6493echo $ac_n "checking for type __int64""... $ac_c" 1>&6 6494echo "configure:6495: checking for type __int64" >&5 6495if eval "test \"`echo '$''{'ac_cv_type___int64'+set}'`\" = set"; then 6496 echo $ac_n "(cached) $ac_c" 1>&6 6497else 6498 cat > conftest.$ac_ext <<EOF 6499#line 6500 "configure" 6500#include "confdefs.h" 6501 6502int main() { 6503__int64 i; 6504; return 0; } 6505EOF 6506if { { eval echo configure:6507: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6507 rm -rf conftest* 6508 ac_cv_type___int64=yes 6509else 6510 echo "configure: failed program was:" >&5 6511 cat conftest.$ac_ext >&5 6512 rm -rf conftest* 6513 ac_cv_type___int64=no 6514fi 6515rm -f conftest* 6516fi 6517 6518echo "$ac_t""$ac_cv_type___int64" 1>&6 6519if test $ac_cv_type___int64 = yes; then 6520 cat >> confdefs.h <<\EOF 6521#define HAVE___INT64 1 6522EOF 6523 6524fi 6525echo $ac_n "checking for type long double""... $ac_c" 1>&6 6526echo "configure:6527: checking for type long double" >&5 6527if eval "test \"`echo '$''{'ac_cv_type_longdouble'+set}'`\" = set"; then 6528 echo $ac_n "(cached) $ac_c" 1>&6 6529else 6530 cat > conftest.$ac_ext <<EOF 6531#line 6532 "configure" 6532#include "confdefs.h" 6533 6534int main() { 6535long double ld; 6536; return 0; } 6537EOF 6538if { { eval echo configure:6539: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6539 rm -rf conftest* 6540 ac_cv_type_longdouble=yes 6541else 6542 echo "configure: failed program was:" >&5 6543 cat conftest.$ac_ext >&5 6544 rm -rf conftest* 6545 ac_cv_type_longdouble=no 6546fi 6547rm -f conftest* 6548fi 6549 6550echo "$ac_t""$ac_cv_type_longdouble" 1>&6 6551if test $ac_cv_type_longdouble = yes; then 6552 cat >> confdefs.h <<\EOF 6553#define HAVE_LONGDOUBLE 1 6554EOF 6555 6556fi 6557echo $ac_n "checking for prototypes""... $ac_c" 1>&6 6558echo "configure:6559: checking for prototypes" >&5 6559if eval "test \"`echo '$''{'ac_cv_type_prototypes'+set}'`\" = set"; then 6560 echo $ac_n "(cached) $ac_c" 1>&6 6561else 6562 if test "$cross_compiling" = yes; then 6563 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 6564else 6565 cat > conftest.$ac_ext <<EOF 6566#line 6567 "configure" 6567#include "confdefs.h" 6568 6569int 6570doit(int i, ...) 6571{return 0;} 6572int 6573main(int ac, char *av[]) 6574{ doit(1, 2, 3); 6575return(0);} 6576EOF 6577if { { eval echo configure:6578: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 6578then 6579 ac_cv_type_prototypes=yes 6580else 6581 echo "configure: failed program was:" >&5 6582 cat conftest.$ac_ext >&5 6583 rm -fr conftest* 6584 ac_cv_type_prototypes=no 6585fi 6586rm -fr conftest* 6587fi 6588 6589fi 6590 6591echo "$ac_t""$ac_cv_type_prototypes" 1>&6 6592if test $ac_cv_type_prototypes = yes; then 6593 cat >> confdefs.h <<\EOF 6594#define PROTOTYPES 1 6595EOF 6596 6597fi 6598echo $ac_n "checking if compiler allows dynamic arrays""... $ac_c" 1>&6 6599echo "configure:6600: checking if compiler allows dynamic arrays" >&5 6600if eval "test \"`echo '$''{'ac_cv_dyn_arrays'+set}'`\" = set"; then 6601 echo $ac_n "(cached) $ac_c" 1>&6 6602else 6603 cat > conftest.$ac_ext <<EOF 6604#line 6605 "configure" 6605#include "confdefs.h" 6606 6607int main() { 6608extern int __aa(); int len = __aa(); char some_array[len]; 6609; return 0; } 6610EOF 6611if { { eval echo configure:6612: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6612 rm -rf conftest* 6613 ac_cv_dyn_arrays=yes 6614else 6615 echo "configure: failed program was:" >&5 6616 cat conftest.$ac_ext >&5 6617 rm -rf conftest* 6618 ac_cv_dyn_arrays=no 6619fi 6620rm -f conftest* 6621fi 6622 6623echo "$ac_t""$ac_cv_dyn_arrays" 1>&6 6624if test $ac_cv_dyn_arrays = yes; then 6625 cat >> confdefs.h <<\EOF 6626#define HAVE_DYN_ARRAYS 1 6627EOF 6628 6629fi 6630echo $ac_n "checking if compiler allows pragma weak""... $ac_c" 1>&6 6631echo "configure:6632: checking if compiler allows pragma weak" >&5 6632if eval "test \"`echo '$''{'ac_cv_pragma_weak'+set}'`\" = set"; then 6633 echo $ac_n "(cached) $ac_c" 1>&6 6634else 6635 cat > conftest.$ac_ext <<EOF 6636#line 6637 "configure" 6637#include "confdefs.h" 6638extern int test2(); 6639#pragma weak test2 = test1 6640int test1() {return 0;} 6641int main() { 6642return test2(); 6643; return 0; } 6644EOF 6645if { { eval echo configure:6646: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 6646 rm -rf conftest* 6647 ac_cv_pragma_weak=yes 6648else 6649 echo "configure: failed program was:" >&5 6650 cat conftest.$ac_ext >&5 6651 rm -rf conftest* 6652 ac_cv_pragma_weak=no 6653fi 6654rm -f conftest* 6655fi 6656 6657echo "$ac_t""$ac_cv_pragma_weak" 1>&6 6658if test $ac_cv_pragma_weak = yes; then 6659 cat >> confdefs.h <<\EOF 6660#define HAVE_PRAGMA_WEAK 1 6661EOF 6662 6663fi 6664echo $ac_n "checking whether SIGSTKSZ is a constant""... $ac_c" 1>&6 6665echo "configure:6666: checking whether SIGSTKSZ is a constant" >&5 6666if eval "test \"`echo '$''{'ac_cv_sigstksz_const'+set}'`\" = set"; then 6667 echo $ac_n "(cached) $ac_c" 1>&6 6668else 6669 cat > conftest.$ac_ext <<EOF 6670#line 6671 "configure" 6671#include "confdefs.h" 6672#include <signal.h> 6673 char sigsegv_stack[SIGSTKSZ]; 6674int main() { 6675 6676; return 0; } 6677EOF 6678if { { eval echo configure:6679: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 6679 rm -rf conftest* 6680 ac_cv_sigstksz_const=yes 6681else 6682 echo "configure: failed program was:" >&5 6683 cat conftest.$ac_ext >&5 6684 rm -rf conftest* 6685 ac_cv_sigstksz_const=no 6686fi 6687rm -f conftest* 6688fi 6689 6690echo "$ac_t""$ac_cv_sigstksz_const" 1>&6 6691if test $ac_cv_sigstksz_const = yes; then 6692 cat >> confdefs.h <<\EOF 6693#define HAVE_SIGSTKSZ_CONST 1 6694EOF 6695 6696fi 6697 6698 6699if test $ac_cv_pragma_weak = yes; then 6700cat > conftest2.$ac_ext <<EOF 6701#line 6702 "configure" 6702#include "confdefs.h" 6703#pragma weak weakname = conffunc 6704int conffunc() { 6705 6706; return 0; } 6707EOF 6708if { { eval echo configure:6709: \"$ac_compile2\" ;} 1>&5; { eval $ac_compile2 ;} 2>&5; }; then 6709 true 6710 6711else 6712 echo "configure: failed program was:" >&5 6713 cat conftest.$ac_ext >&5 6714true 6715fi 6716 6717ac_save_LIBS="$LIBS" 6718LIBS="conftest2.$ac_cv_objext" 6719echo $ac_n "checking if linker allows pragma weak""... $ac_c" 1>&6 6720echo "configure:6721: checking if linker allows pragma weak" >&5 6721if eval "test \"`echo '$''{'ac_cv_link_weak'+set}'`\" = set"; then 6722 echo $ac_n "(cached) $ac_c" 1>&6 6723else 6724 cat > conftest.$ac_ext <<EOF 6725#line 6726 "configure" 6726#include "confdefs.h" 6727extern int weakname(); 6728int main() { 6729return weakname(); 6730; return 0; } 6731EOF 6732if { { eval echo configure:6733: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 6733 rm -rf conftest* 6734 ac_cv_link_weak=yes 6735else 6736 echo "configure: failed program was:" >&5 6737 cat conftest.$ac_ext >&5 6738 rm -rf conftest* 6739 ac_cv_link_weak=no 6740fi 6741rm -f conftest* 6742fi 6743 6744echo "$ac_t""$ac_cv_link_weak" 1>&6 6745LIBS="$ac_save_LIBS" 6746if test $ac_cv_link_weak = yes; then 6747 cat >> confdefs.h <<\EOF 6748#define HAVE_LINK_WEAK 1 6749EOF 6750 6751fi 6752rm -f conftest2.* 6753fi 6754 6755echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 6756echo "configure:6757: checking for uid_t in sys/types.h" >&5 6757if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 6758 echo $ac_n "(cached) $ac_c" 1>&6 6759else 6760 cat > conftest.$ac_ext <<EOF 6761#line 6762 "configure" 6762#include "confdefs.h" 6763#include <sys/types.h> 6764EOF 6765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6766 egrep "uid_t" >/dev/null 2>&1; then 6767 rm -rf conftest* 6768 ac_cv_type_uid_t=yes 6769else 6770 rm -rf conftest* 6771 ac_cv_type_uid_t=no 6772fi 6773rm -f conftest* 6774 6775fi 6776 6777echo "$ac_t""$ac_cv_type_uid_t" 1>&6 6778if test $ac_cv_type_uid_t = no; then 6779 cat >> confdefs.h <<\EOF 6780#define uid_t int 6781EOF 6782 6783 cat >> confdefs.h <<\EOF 6784#define gid_t int 6785EOF 6786 6787fi 6788 6789echo $ac_n "checking for size_t""... $ac_c" 1>&6 6790echo "configure:6791: checking for size_t" >&5 6791if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 6792 echo $ac_n "(cached) $ac_c" 1>&6 6793else 6794 cat > conftest.$ac_ext <<EOF 6795#line 6796 "configure" 6796#include "confdefs.h" 6797#include <sys/types.h> 6798#if HAVE_STDLIB_H || STDC_HEADERS 6799#include <stdlib.h> 6800#endif 6801#if HAVE_STDDEF_H || STDC_HEADERS 6802#include <stddef.h> 6803#endif 6804EOF 6805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6806 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6807 rm -rf conftest* 6808 ac_cv_type_size_t=yes 6809else 6810 rm -rf conftest* 6811 ac_cv_type_size_t=no 6812fi 6813rm -f conftest* 6814 6815fi 6816echo "$ac_t""$ac_cv_type_size_t" 1>&6 6817if test $ac_cv_type_size_t = no; then 6818 cat >> confdefs.h <<\EOF 6819#define size_t unsigned 6820EOF 6821 6822fi 6823 6824echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 6825echo "configure:6826: checking for ssize_t" >&5 6826if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then 6827 echo $ac_n "(cached) $ac_c" 1>&6 6828else 6829 cat > conftest.$ac_ext <<EOF 6830#line 6831 "configure" 6831#include "confdefs.h" 6832#include <sys/types.h> 6833#if HAVE_STDLIB_H || STDC_HEADERS 6834#include <stdlib.h> 6835#endif 6836#if HAVE_STDDEF_H || STDC_HEADERS 6837#include <stddef.h> 6838#endif 6839EOF 6840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6841 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6842 rm -rf conftest* 6843 ac_cv_type_ssize_t=yes 6844else 6845 rm -rf conftest* 6846 ac_cv_type_ssize_t=no 6847fi 6848rm -f conftest* 6849 6850fi 6851echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 6852if test $ac_cv_type_ssize_t = no; then 6853 cat >> confdefs.h <<\EOF 6854#define ssize_t int 6855EOF 6856 6857fi 6858 6859echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6 6860echo "configure:6861: checking for ptrdiff_t" >&5 6861if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then 6862 echo $ac_n "(cached) $ac_c" 1>&6 6863else 6864 cat > conftest.$ac_ext <<EOF 6865#line 6866 "configure" 6866#include "confdefs.h" 6867#include <sys/types.h> 6868#if HAVE_STDLIB_H || STDC_HEADERS 6869#include <stdlib.h> 6870#endif 6871#if HAVE_STDDEF_H || STDC_HEADERS 6872#include <stddef.h> 6873#endif 6874EOF 6875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6876 egrep "(^|[^a-zA-Z_0-9])ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6877 rm -rf conftest* 6878 ac_cv_type_ptrdiff_t=yes 6879else 6880 rm -rf conftest* 6881 ac_cv_type_ptrdiff_t=no 6882fi 6883rm -f conftest* 6884 6885fi 6886echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6 6887if test $ac_cv_type_ptrdiff_t = no; then 6888 cat >> confdefs.h <<\EOF 6889#define ptrdiff_t int 6890EOF 6891 6892fi 6893 6894echo $ac_n "checking for pid_t""... $ac_c" 1>&6 6895echo "configure:6896: checking for pid_t" >&5 6896if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 6897 echo $ac_n "(cached) $ac_c" 1>&6 6898else 6899 cat > conftest.$ac_ext <<EOF 6900#line 6901 "configure" 6901#include "confdefs.h" 6902#include <sys/types.h> 6903#if HAVE_STDLIB_H || STDC_HEADERS 6904#include <stdlib.h> 6905#endif 6906#if HAVE_STDDEF_H || STDC_HEADERS 6907#include <stddef.h> 6908#endif 6909EOF 6910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6911 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6912 rm -rf conftest* 6913 ac_cv_type_pid_t=yes 6914else 6915 rm -rf conftest* 6916 ac_cv_type_pid_t=no 6917fi 6918rm -f conftest* 6919 6920fi 6921echo "$ac_t""$ac_cv_type_pid_t" 1>&6 6922if test $ac_cv_type_pid_t = no; then 6923 cat >> confdefs.h <<\EOF 6924#define pid_t int 6925EOF 6926 6927fi 6928 6929echo $ac_n "checking for off_t""... $ac_c" 1>&6 6930echo "configure:6931: checking for off_t" >&5 6931if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 6932 echo $ac_n "(cached) $ac_c" 1>&6 6933else 6934 cat > conftest.$ac_ext <<EOF 6935#line 6936 "configure" 6936#include "confdefs.h" 6937#include <sys/types.h> 6938#if HAVE_STDLIB_H || STDC_HEADERS 6939#include <stdlib.h> 6940#endif 6941#if HAVE_STDDEF_H || STDC_HEADERS 6942#include <stddef.h> 6943#endif 6944EOF 6945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6946 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6947 rm -rf conftest* 6948 ac_cv_type_off_t=yes 6949else 6950 rm -rf conftest* 6951 ac_cv_type_off_t=no 6952fi 6953rm -f conftest* 6954 6955fi 6956echo "$ac_t""$ac_cv_type_off_t" 1>&6 6957if test $ac_cv_type_off_t = no; then 6958 cat >> confdefs.h <<\EOF 6959#define off_t long 6960EOF 6961 6962fi 6963 6964echo $ac_n "checking for mode_t""... $ac_c" 1>&6 6965echo "configure:6966: checking for mode_t" >&5 6966if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then 6967 echo $ac_n "(cached) $ac_c" 1>&6 6968else 6969 cat > conftest.$ac_ext <<EOF 6970#line 6971 "configure" 6971#include "confdefs.h" 6972#include <sys/types.h> 6973#if HAVE_STDLIB_H || STDC_HEADERS 6974#include <stdlib.h> 6975#endif 6976#if HAVE_STDDEF_H || STDC_HEADERS 6977#include <stddef.h> 6978#endif 6979EOF 6980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6981 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6982 rm -rf conftest* 6983 ac_cv_type_mode_t=yes 6984else 6985 rm -rf conftest* 6986 ac_cv_type_mode_t=no 6987fi 6988rm -f conftest* 6989 6990fi 6991echo "$ac_t""$ac_cv_type_mode_t" 1>&6 6992if test $ac_cv_type_mode_t = no; then 6993 cat >> confdefs.h <<\EOF 6994#define mode_t int 6995EOF 6996 6997fi 6998 6999echo $ac_n "checking for time_t""... $ac_c" 1>&6 7000echo "configure:7001: checking for time_t" >&5 7001if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then 7002 echo $ac_n "(cached) $ac_c" 1>&6 7003else 7004 cat > conftest.$ac_ext <<EOF 7005#line 7006 "configure" 7006#include "confdefs.h" 7007 7008#include <sys/types.h> 7009#ifdef TIME_WITH_SYS_TIME 7010# include <sys/time.h> 7011# include <time.h> 7012#else 7013#ifdef HAVE_SYS_TIME_H 7014# include <sys/time.h> 7015#else 7016# include <time.h> 7017#endif 7018#endif 7019int main() { 7020time_t t; 7021; return 0; } 7022EOF 7023if { { eval echo configure:7024: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 7024 rm -rf conftest* 7025 ac_cv_type_time_t=yes 7026else 7027 echo "configure: failed program was:" >&5 7028 cat conftest.$ac_ext >&5 7029 rm -rf conftest* 7030 ac_cv_type_time_t=no 7031fi 7032rm -f conftest* 7033fi 7034 7035echo "$ac_t""$ac_cv_type_time_t" 1>&6 7036if test $ac_cv_type_time_t = no; then 7037 cat >> confdefs.h <<\EOF 7038#define time_t long 7039EOF 7040 7041fi 7042echo $ac_n "checking for caddr_t""... $ac_c" 1>&6 7043echo "configure:7044: checking for caddr_t" >&5 7044if eval "test \"`echo '$''{'ac_cv_type_caddr_t'+set}'`\" = set"; then 7045 echo $ac_n "(cached) $ac_c" 1>&6 7046else 7047 cat > conftest.$ac_ext <<EOF 7048#line 7049 "configure" 7049#include "confdefs.h" 7050#include <sys/types.h> 7051#if HAVE_STDLIB_H || STDC_HEADERS 7052#include <stdlib.h> 7053#endif 7054#if HAVE_STDDEF_H || STDC_HEADERS 7055#include <stddef.h> 7056#endif 7057EOF 7058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7059 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7060 rm -rf conftest* 7061 ac_cv_type_caddr_t=yes 7062else 7063 rm -rf conftest* 7064 ac_cv_type_caddr_t=no 7065fi 7066rm -f conftest* 7067 7068fi 7069echo "$ac_t""$ac_cv_type_caddr_t" 1>&6 7070if test $ac_cv_type_caddr_t = no; then 7071 cat >> confdefs.h <<\EOF 7072#define caddr_t char * 7073EOF 7074 7075fi 7076 7077echo $ac_n "checking for daddr_t""... $ac_c" 1>&6 7078echo "configure:7079: checking for daddr_t" >&5 7079if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then 7080 echo $ac_n "(cached) $ac_c" 1>&6 7081else 7082 cat > conftest.$ac_ext <<EOF 7083#line 7084 "configure" 7084#include "confdefs.h" 7085#include <sys/types.h> 7086#if HAVE_STDLIB_H || STDC_HEADERS 7087#include <stdlib.h> 7088#endif 7089#if HAVE_STDDEF_H || STDC_HEADERS 7090#include <stddef.h> 7091#endif 7092EOF 7093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7094 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7095 rm -rf conftest* 7096 ac_cv_type_daddr_t=yes 7097else 7098 rm -rf conftest* 7099 ac_cv_type_daddr_t=no 7100fi 7101rm -f conftest* 7102 7103fi 7104echo "$ac_t""$ac_cv_type_daddr_t" 1>&6 7105if test $ac_cv_type_daddr_t = no; then 7106 cat >> confdefs.h <<\EOF 7107#define daddr_t long 7108EOF 7109 7110fi 7111 7112echo $ac_n "checking for dev_t""... $ac_c" 1>&6 7113echo "configure:7114: checking for dev_t" >&5 7114if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then 7115 echo $ac_n "(cached) $ac_c" 1>&6 7116else 7117 cat > conftest.$ac_ext <<EOF 7118#line 7119 "configure" 7119#include "confdefs.h" 7120#include <sys/types.h> 7121#if HAVE_STDLIB_H || STDC_HEADERS 7122#include <stdlib.h> 7123#endif 7124#if HAVE_STDDEF_H || STDC_HEADERS 7125#include <stddef.h> 7126#endif 7127EOF 7128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7129 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7130 rm -rf conftest* 7131 ac_cv_type_dev_t=yes 7132else 7133 rm -rf conftest* 7134 ac_cv_type_dev_t=no 7135fi 7136rm -f conftest* 7137 7138fi 7139echo "$ac_t""$ac_cv_type_dev_t" 1>&6 7140if test $ac_cv_type_dev_t = no; then 7141 cat >> confdefs.h <<\EOF 7142#define dev_t unsigned short 7143EOF 7144 7145fi 7146 7147echo $ac_n "checking for major_t""... $ac_c" 1>&6 7148echo "configure:7149: checking for major_t" >&5 7149if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then 7150 echo $ac_n "(cached) $ac_c" 1>&6 7151else 7152 cat > conftest.$ac_ext <<EOF 7153#line 7154 "configure" 7154#include "confdefs.h" 7155#include <sys/types.h> 7156#if HAVE_STDLIB_H || STDC_HEADERS 7157#include <stdlib.h> 7158#endif 7159#if HAVE_STDDEF_H || STDC_HEADERS 7160#include <stddef.h> 7161#endif 7162EOF 7163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7164 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7165 rm -rf conftest* 7166 ac_cv_type_major_t=yes 7167else 7168 rm -rf conftest* 7169 ac_cv_type_major_t=no 7170fi 7171rm -f conftest* 7172 7173fi 7174echo "$ac_t""$ac_cv_type_major_t" 1>&6 7175if test $ac_cv_type_major_t = no; then 7176 cat >> confdefs.h <<\EOF 7177#define major_t dev_t 7178EOF 7179 7180fi 7181 7182echo $ac_n "checking for minor_t""... $ac_c" 1>&6 7183echo "configure:7184: checking for minor_t" >&5 7184if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then 7185 echo $ac_n "(cached) $ac_c" 1>&6 7186else 7187 cat > conftest.$ac_ext <<EOF 7188#line 7189 "configure" 7189#include "confdefs.h" 7190#include <sys/types.h> 7191#if HAVE_STDLIB_H || STDC_HEADERS 7192#include <stdlib.h> 7193#endif 7194#if HAVE_STDDEF_H || STDC_HEADERS 7195#include <stddef.h> 7196#endif 7197EOF 7198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7199 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7200 rm -rf conftest* 7201 ac_cv_type_minor_t=yes 7202else 7203 rm -rf conftest* 7204 ac_cv_type_minor_t=no 7205fi 7206rm -f conftest* 7207 7208fi 7209echo "$ac_t""$ac_cv_type_minor_t" 1>&6 7210if test $ac_cv_type_minor_t = no; then 7211 cat >> confdefs.h <<\EOF 7212#define minor_t dev_t 7213EOF 7214 7215fi 7216 7217echo $ac_n "checking for ino_t""... $ac_c" 1>&6 7218echo "configure:7219: checking for ino_t" >&5 7219if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then 7220 echo $ac_n "(cached) $ac_c" 1>&6 7221else 7222 cat > conftest.$ac_ext <<EOF 7223#line 7224 "configure" 7224#include "confdefs.h" 7225#include <sys/types.h> 7226#if HAVE_STDLIB_H || STDC_HEADERS 7227#include <stdlib.h> 7228#endif 7229#if HAVE_STDDEF_H || STDC_HEADERS 7230#include <stddef.h> 7231#endif 7232EOF 7233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7234 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7235 rm -rf conftest* 7236 ac_cv_type_ino_t=yes 7237else 7238 rm -rf conftest* 7239 ac_cv_type_ino_t=no 7240fi 7241rm -f conftest* 7242 7243fi 7244echo "$ac_t""$ac_cv_type_ino_t" 1>&6 7245if test $ac_cv_type_ino_t = no; then 7246 cat >> confdefs.h <<\EOF 7247#define ino_t unsigned long 7248EOF 7249 7250fi 7251 7252echo $ac_n "checking for nlink_t""... $ac_c" 1>&6 7253echo "configure:7254: checking for nlink_t" >&5 7254if eval "test \"`echo '$''{'ac_cv_type_nlink_t'+set}'`\" = set"; then 7255 echo $ac_n "(cached) $ac_c" 1>&6 7256else 7257 cat > conftest.$ac_ext <<EOF 7258#line 7259 "configure" 7259#include "confdefs.h" 7260#include <sys/types.h> 7261#if HAVE_STDLIB_H || STDC_HEADERS 7262#include <stdlib.h> 7263#endif 7264#if HAVE_STDDEF_H || STDC_HEADERS 7265#include <stddef.h> 7266#endif 7267EOF 7268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7269 egrep "(^|[^a-zA-Z_0-9])nlink_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7270 rm -rf conftest* 7271 ac_cv_type_nlink_t=yes 7272else 7273 rm -rf conftest* 7274 ac_cv_type_nlink_t=no 7275fi 7276rm -f conftest* 7277 7278fi 7279echo "$ac_t""$ac_cv_type_nlink_t" 1>&6 7280if test $ac_cv_type_nlink_t = no; then 7281 cat >> confdefs.h <<\EOF 7282#define nlink_t unsigned long 7283EOF 7284 7285fi 7286 7287echo $ac_n "checking for blksize_t""... $ac_c" 1>&6 7288echo "configure:7289: checking for blksize_t" >&5 7289if eval "test \"`echo '$''{'ac_cv_type_blksize_t'+set}'`\" = set"; then 7290 echo $ac_n "(cached) $ac_c" 1>&6 7291else 7292 cat > conftest.$ac_ext <<EOF 7293#line 7294 "configure" 7294#include "confdefs.h" 7295#include <sys/types.h> 7296#if HAVE_STDLIB_H || STDC_HEADERS 7297#include <stdlib.h> 7298#endif 7299#if HAVE_STDDEF_H || STDC_HEADERS 7300#include <stddef.h> 7301#endif 7302EOF 7303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7304 egrep "(^|[^a-zA-Z_0-9])blksize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7305 rm -rf conftest* 7306 ac_cv_type_blksize_t=yes 7307else 7308 rm -rf conftest* 7309 ac_cv_type_blksize_t=no 7310fi 7311rm -f conftest* 7312 7313fi 7314echo "$ac_t""$ac_cv_type_blksize_t" 1>&6 7315if test $ac_cv_type_blksize_t = no; then 7316 cat >> confdefs.h <<\EOF 7317#define blksize_t long 7318EOF 7319 7320fi 7321 7322echo $ac_n "checking for blkcnt_t""... $ac_c" 1>&6 7323echo "configure:7324: checking for blkcnt_t" >&5 7324if eval "test \"`echo '$''{'ac_cv_type_blkcnt_t'+set}'`\" = set"; then 7325 echo $ac_n "(cached) $ac_c" 1>&6 7326else 7327 cat > conftest.$ac_ext <<EOF 7328#line 7329 "configure" 7329#include "confdefs.h" 7330#include <sys/types.h> 7331#if HAVE_STDLIB_H || STDC_HEADERS 7332#include <stdlib.h> 7333#endif 7334#if HAVE_STDDEF_H || STDC_HEADERS 7335#include <stddef.h> 7336#endif 7337EOF 7338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7339 egrep "(^|[^a-zA-Z_0-9])blkcnt_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7340 rm -rf conftest* 7341 ac_cv_type_blkcnt_t=yes 7342else 7343 rm -rf conftest* 7344 ac_cv_type_blkcnt_t=no 7345fi 7346rm -f conftest* 7347 7348fi 7349echo "$ac_t""$ac_cv_type_blkcnt_t" 1>&6 7350if test $ac_cv_type_blkcnt_t = no; then 7351 cat >> confdefs.h <<\EOF 7352#define blkcnt_t Intmax_t 7353EOF 7354 7355fi 7356 7357echo $ac_n "checking for clock_t""... $ac_c" 1>&6 7358echo "configure:7359: checking for clock_t" >&5 7359if eval "test \"`echo '$''{'ac_cv_type_clock_t'+set}'`\" = set"; then 7360 echo $ac_n "(cached) $ac_c" 1>&6 7361else 7362 cat > conftest.$ac_ext <<EOF 7363#line 7364 "configure" 7364#include "confdefs.h" 7365 7366#include <sys/types.h> 7367/* 7368 * time.h is needed because of a bug in Next Step. 7369 * Next Step needs time.h for clock_t 7370 */ 7371#ifdef TIME_WITH_SYS_TIME 7372# ifndef _INCL_SYS_TIME_H 7373# include <sys/time.h> 7374# define _INCL_SYS_TIME_H 7375# endif 7376# ifndef _INCL_TIME_H 7377# include <time.h> 7378# define _INCL_TIME_H 7379# endif 7380#else 7381#ifdef HAVE_SYS_TIME_H 7382# ifndef _INCL_SYS_TIME_H 7383# include <sys/time.h> 7384# define _INCL_SYS_TIME_H 7385# endif 7386#else 7387# ifndef _INCL_TIME_H 7388# include <time.h> 7389# define _INCL_TIME_H 7390# endif 7391#endif 7392#endif 7393#ifdef HAVE_SYS_TIMES_H 7394#include <sys/times.h> 7395#endif 7396 7397int main() { 7398clock_t t; 7399; return 0; } 7400EOF 7401if { { eval echo configure:7402: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 7402 rm -rf conftest* 7403 ac_cv_type_clock_t=yes 7404else 7405 echo "configure: failed program was:" >&5 7406 cat conftest.$ac_ext >&5 7407 rm -rf conftest* 7408 ac_cv_type_clock_t=no 7409fi 7410rm -f conftest* 7411fi 7412 7413echo "$ac_t""$ac_cv_type_clock_t" 1>&6 7414if test $ac_cv_type_clock_t = no; then 7415 cat >> confdefs.h <<\EOF 7416#define clock_t long 7417EOF 7418 7419fi 7420echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 7421echo "configure:7422: checking for socklen_t" >&5 7422if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then 7423 echo $ac_n "(cached) $ac_c" 1>&6 7424else 7425 cat > conftest.$ac_ext <<EOF 7426#line 7427 "configure" 7427#include "confdefs.h" 7428#include <sys/types.h> 7429#if HAVE_STDLIB_H || STDC_HEADERS 7430#include <stdlib.h> 7431#endif 7432#if HAVE_STDDEF_H || STDC_HEADERS 7433#include <stddef.h> 7434#endif 7435#include <sys/socket.h> 7436EOF 7437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7438 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7439 rm -rf conftest* 7440 ac_cv_type_socklen_t=yes 7441else 7442 rm -rf conftest* 7443 ac_cv_type_socklen_t=no 7444fi 7445rm -f conftest* 7446 7447fi 7448echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 7449if test $ac_cv_type_socklen_t = no; then 7450 cat >> confdefs.h <<\EOF 7451#define socklen_t int 7452EOF 7453 7454fi 7455echo $ac_n "checking for greg_t""... $ac_c" 1>&6 7456echo "configure:7457: checking for greg_t" >&5 7457if eval "test \"`echo '$''{'ac_cv_have_type_greg_t'+set}'`\" = set"; then 7458 echo $ac_n "(cached) $ac_c" 1>&6 7459else 7460 cat > conftest.$ac_ext <<EOF 7461#line 7462 "configure" 7462#include "confdefs.h" 7463#include <sys/types.h> 7464#if HAVE_STDLIB_H || STDC_HEADERS 7465#include <stdlib.h> 7466#endif 7467#if HAVE_STDDEF_H || STDC_HEADERS 7468#include <stddef.h> 7469#endif 7470#include <sys/frame.h> 7471EOF 7472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7473 egrep "(^|[^a-zA-Z_0-9])greg_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7474 rm -rf conftest* 7475 eval ac_cv_have_type_greg_t=yes 7476else 7477 rm -rf conftest* 7478 eval ac_cv_have_type_greg_t=no 7479fi 7480rm -f conftest* 7481 7482fi 7483echo "$ac_t""$ac_cv_have_type_greg_t" 1>&6 7484 ac_tr_type=HAVE_TYPE_`echo greg_t | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 7485if test $ac_cv_have_type_greg_t = yes; then 7486 cat >> confdefs.h <<EOF 7487#define $ac_tr_type 1 7488EOF 7489 7490fi 7491 7492echo $ac_n "checking for rlim_t""... $ac_c" 1>&6 7493echo "configure:7494: checking for rlim_t" >&5 7494if eval "test \"`echo '$''{'ac_cv_have_type_rlim_t'+set}'`\" = set"; then 7495 echo $ac_n "(cached) $ac_c" 1>&6 7496else 7497 cat > conftest.$ac_ext <<EOF 7498#line 7499 "configure" 7499#include "confdefs.h" 7500#include <sys/types.h> 7501#if HAVE_STDLIB_H || STDC_HEADERS 7502#include <stdlib.h> 7503#endif 7504#if HAVE_STDDEF_H || STDC_HEADERS 7505#include <stddef.h> 7506#endif 7507#include <sys/resource.h> 7508EOF 7509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7510 egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7511 rm -rf conftest* 7512 eval ac_cv_have_type_rlim_t=yes 7513else 7514 rm -rf conftest* 7515 eval ac_cv_have_type_rlim_t=no 7516fi 7517rm -f conftest* 7518 7519fi 7520echo "$ac_t""$ac_cv_have_type_rlim_t" 1>&6 7521 ac_tr_type=HAVE_TYPE_`echo rlim_t | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 7522if test $ac_cv_have_type_rlim_t = yes; then 7523 cat >> confdefs.h <<EOF 7524#define $ac_tr_type 1 7525EOF 7526 7527fi 7528 7529echo $ac_n "checking if idtype_t is declared correctly in wait.h""... $ac_c" 1>&6 7530echo "configure:7531: checking if idtype_t is declared correctly in wait.h" >&5 7531if eval "test \"`echo '$''{'ac_cv_have_type_idtype_t'+set}'`\" = set"; then 7532 echo $ac_n "(cached) $ac_c" 1>&6 7533else 7534 cat > conftest.$ac_ext <<EOF 7535#line 7536 "configure" 7536#include "confdefs.h" 7537 7538#if defined(HAVE_WAIT_H) 7539# include <wait.h> 7540#else 7541#include <sys/wait.h> 7542#endif 7543int main() { 7544idtype_t idt; idt = P_ALL; idt = P_PGID; idt = P_PID; return (idt == P_PID); 7545; return 0; } 7546EOF 7547if { { eval echo configure:7548: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 7548 rm -rf conftest* 7549 ac_cv_have_type_idtype_t=yes 7550else 7551 echo "configure: failed program was:" >&5 7552 cat conftest.$ac_ext >&5 7553 rm -rf conftest* 7554 ac_cv_have_type_idtype_t=no 7555fi 7556rm -f conftest* 7557fi 7558 7559echo "$ac_t""$ac_cv_have_type_idtype_t" 1>&6 7560if test $ac_cv_have_type_idtype_t = yes; then 7561 cat >> confdefs.h <<\EOF 7562#define HAVE_TYPE_IDTYPE_T 1 7563EOF 7564 7565fi 7566echo $ac_n "checking for siginfo_t""... $ac_c" 1>&6 7567echo "configure:7568: checking for siginfo_t" >&5 7568if eval "test \"`echo '$''{'ac_cv_have_type_siginfo_t'+set}'`\" = set"; then 7569 echo $ac_n "(cached) $ac_c" 1>&6 7570else 7571 cat > conftest.$ac_ext <<EOF 7572#line 7573 "configure" 7573#include "confdefs.h" 7574#include <sys/types.h> 7575#if HAVE_STDLIB_H || STDC_HEADERS 7576#include <stdlib.h> 7577#endif 7578#if HAVE_STDDEF_H || STDC_HEADERS 7579#include <stddef.h> 7580#endif 7581#include <sys/wait.h> 7582EOF 7583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7584 egrep "(^|[^a-zA-Z_0-9])siginfo_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7585 rm -rf conftest* 7586 eval ac_cv_have_type_siginfo_t=yes 7587else 7588 rm -rf conftest* 7589 eval ac_cv_have_type_siginfo_t=no 7590fi 7591rm -f conftest* 7592 7593fi 7594echo "$ac_t""$ac_cv_have_type_siginfo_t" 1>&6 7595 ac_tr_type=HAVE_TYPE_`echo siginfo_t | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 7596if test $ac_cv_have_type_siginfo_t = yes; then 7597 cat >> confdefs.h <<EOF 7598#define $ac_tr_type 1 7599EOF 7600 7601fi 7602 7603echo $ac_n "checking if stack_t is declared in signal.h""... $ac_c" 1>&6 7604echo "configure:7605: checking if stack_t is declared in signal.h" >&5 7605if eval "test \"`echo '$''{'ac_cv_stack_t'+set}'`\" = set"; then 7606 echo $ac_n "(cached) $ac_c" 1>&6 7607else 7608 cat > conftest.$ac_ext <<EOF 7609#line 7610 "configure" 7610#include "confdefs.h" 7611#include <signal.h> 7612int main() { 7613stack_t ss; ss.ss_size = 0; return (ss.ss_size == 0); 7614; return 0; } 7615EOF 7616if { { eval echo configure:7617: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 7617 rm -rf conftest* 7618 ac_cv_stack_t=yes 7619else 7620 echo "configure: failed program was:" >&5 7621 cat conftest.$ac_ext >&5 7622 rm -rf conftest* 7623 ac_cv_stack_t=no 7624fi 7625rm -f conftest* 7626fi 7627 7628echo "$ac_t""$ac_cv_stack_t" 1>&6 7629if test $ac_cv_stack_t = yes; then 7630 cat >> confdefs.h <<\EOF 7631#define HAVE_STACK_T 1 7632EOF 7633 7634fi 7635echo $ac_n "checking if siginfo_t is declared in signal.h""... $ac_c" 1>&6 7636echo "configure:7637: checking if siginfo_t is declared in signal.h" >&5 7637if eval "test \"`echo '$''{'ac_cv_siginfo_t'+set}'`\" = set"; then 7638 echo $ac_n "(cached) $ac_c" 1>&6 7639else 7640 cat > conftest.$ac_ext <<EOF 7641#line 7642 "configure" 7642#include "confdefs.h" 7643#include <signal.h> 7644#ifdef HAVE_SIGINFO_H 7645#include <siginfo.h> 7646#else 7647#ifdef HAVE_SYS_SIGINFO_H 7648#include <sys/siginfo.h> 7649#endif 7650#endif 7651int main() { 7652siginfo_t si; si.si_signo = 0; return (si.si_signo == 0); 7653; return 0; } 7654EOF 7655if { { eval echo configure:7656: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 7656 rm -rf conftest* 7657 ac_cv_siginfo_t=yes 7658else 7659 echo "configure: failed program was:" >&5 7660 cat conftest.$ac_ext >&5 7661 rm -rf conftest* 7662 ac_cv_siginfo_t=no 7663fi 7664rm -f conftest* 7665fi 7666 7667echo "$ac_t""$ac_cv_siginfo_t" 1>&6 7668if test $ac_cv_siginfo_t = yes; then 7669 cat >> confdefs.h <<\EOF 7670#define HAVE_SIGINFO_T 1 7671EOF 7672 7673fi 7674 7675echo $ac_n "checking for u_char""... $ac_c" 1>&6 7676echo "configure:7677: checking for u_char" >&5 7677if eval "test \"`echo '$''{'ac_cv_type_u_char'+set}'`\" = set"; then 7678 echo $ac_n "(cached) $ac_c" 1>&6 7679else 7680 cat > conftest.$ac_ext <<EOF 7681#line 7682 "configure" 7682#include "confdefs.h" 7683#include <sys/types.h> 7684#if HAVE_STDLIB_H || STDC_HEADERS 7685#include <stdlib.h> 7686#endif 7687#if HAVE_STDDEF_H || STDC_HEADERS 7688#include <stddef.h> 7689#endif 7690EOF 7691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7692 egrep "(^|[^a-zA-Z_0-9])u_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7693 rm -rf conftest* 7694 ac_cv_type_u_char=yes 7695else 7696 rm -rf conftest* 7697 ac_cv_type_u_char=no 7698fi 7699rm -f conftest* 7700 7701fi 7702echo "$ac_t""$ac_cv_type_u_char" 1>&6 7703if test $ac_cv_type_u_char = no; then 7704 cat >> confdefs.h <<\EOF 7705#define u_char unsigned char 7706EOF 7707 7708fi 7709 7710echo $ac_n "checking for u_short""... $ac_c" 1>&6 7711echo "configure:7712: checking for u_short" >&5 7712if eval "test \"`echo '$''{'ac_cv_type_u_short'+set}'`\" = set"; then 7713 echo $ac_n "(cached) $ac_c" 1>&6 7714else 7715 cat > conftest.$ac_ext <<EOF 7716#line 7717 "configure" 7717#include "confdefs.h" 7718#include <sys/types.h> 7719#if HAVE_STDLIB_H || STDC_HEADERS 7720#include <stdlib.h> 7721#endif 7722#if HAVE_STDDEF_H || STDC_HEADERS 7723#include <stddef.h> 7724#endif 7725EOF 7726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7727 egrep "(^|[^a-zA-Z_0-9])u_short[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7728 rm -rf conftest* 7729 ac_cv_type_u_short=yes 7730else 7731 rm -rf conftest* 7732 ac_cv_type_u_short=no 7733fi 7734rm -f conftest* 7735 7736fi 7737echo "$ac_t""$ac_cv_type_u_short" 1>&6 7738if test $ac_cv_type_u_short = no; then 7739 cat >> confdefs.h <<\EOF 7740#define u_short unsigned short 7741EOF 7742 7743fi 7744 7745echo $ac_n "checking for u_int""... $ac_c" 1>&6 7746echo "configure:7747: checking for u_int" >&5 7747if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then 7748 echo $ac_n "(cached) $ac_c" 1>&6 7749else 7750 cat > conftest.$ac_ext <<EOF 7751#line 7752 "configure" 7752#include "confdefs.h" 7753#include <sys/types.h> 7754#if HAVE_STDLIB_H || STDC_HEADERS 7755#include <stdlib.h> 7756#endif 7757#if HAVE_STDDEF_H || STDC_HEADERS 7758#include <stddef.h> 7759#endif 7760EOF 7761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7762 egrep "(^|[^a-zA-Z_0-9])u_int[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7763 rm -rf conftest* 7764 ac_cv_type_u_int=yes 7765else 7766 rm -rf conftest* 7767 ac_cv_type_u_int=no 7768fi 7769rm -f conftest* 7770 7771fi 7772echo "$ac_t""$ac_cv_type_u_int" 1>&6 7773if test $ac_cv_type_u_int = no; then 7774 cat >> confdefs.h <<\EOF 7775#define u_int unsigned int 7776EOF 7777 7778fi 7779 7780echo $ac_n "checking for u_long""... $ac_c" 1>&6 7781echo "configure:7782: checking for u_long" >&5 7782if eval "test \"`echo '$''{'ac_cv_type_u_long'+set}'`\" = set"; then 7783 echo $ac_n "(cached) $ac_c" 1>&6 7784else 7785 cat > conftest.$ac_ext <<EOF 7786#line 7787 "configure" 7787#include "confdefs.h" 7788#include <sys/types.h> 7789#if HAVE_STDLIB_H || STDC_HEADERS 7790#include <stdlib.h> 7791#endif 7792#if HAVE_STDDEF_H || STDC_HEADERS 7793#include <stddef.h> 7794#endif 7795EOF 7796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7797 egrep "(^|[^a-zA-Z_0-9])u_long[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7798 rm -rf conftest* 7799 ac_cv_type_u_long=yes 7800else 7801 rm -rf conftest* 7802 ac_cv_type_u_long=no 7803fi 7804rm -f conftest* 7805 7806fi 7807echo "$ac_t""$ac_cv_type_u_long" 1>&6 7808if test $ac_cv_type_u_long = no; then 7809 cat >> confdefs.h <<\EOF 7810#define u_long unsigned long 7811EOF 7812 7813fi 7814 7815 7816echo $ac_n "checking for int8_t""... $ac_c" 1>&6 7817echo "configure:7818: checking for int8_t" >&5 7818if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then 7819 echo $ac_n "(cached) $ac_c" 1>&6 7820else 7821 cat > conftest.$ac_ext <<EOF 7822#line 7823 "configure" 7823#include "confdefs.h" 7824#include <sys/types.h> 7825#if HAVE_STDLIB_H || STDC_HEADERS 7826#include <stdlib.h> 7827#endif 7828#if HAVE_STDDEF_H || STDC_HEADERS 7829#include <stddef.h> 7830#endif 7831#ifdef HAVE_INTTYPES_H 7832#include <inttypes.h> 7833#endif 7834#ifdef HAVE_STDINT_H 7835#include <stdint.h> 7836#endif 7837 7838EOF 7839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7840 egrep "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7841 rm -rf conftest* 7842 ac_cv_type_int8_t=yes 7843else 7844 rm -rf conftest* 7845 ac_cv_type_int8_t=no 7846fi 7847rm -f conftest* 7848 7849fi 7850echo "$ac_t""$ac_cv_type_int8_t" 1>&6 7851if test $ac_cv_type_int8_t = no; then 7852 cat >> confdefs.h <<\EOF 7853#define int8_t Int8_t 7854EOF 7855 7856fi 7857 7858 7859echo $ac_n "checking for int16_t""... $ac_c" 1>&6 7860echo "configure:7861: checking for int16_t" >&5 7861if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then 7862 echo $ac_n "(cached) $ac_c" 1>&6 7863else 7864 cat > conftest.$ac_ext <<EOF 7865#line 7866 "configure" 7866#include "confdefs.h" 7867#include <sys/types.h> 7868#if HAVE_STDLIB_H || STDC_HEADERS 7869#include <stdlib.h> 7870#endif 7871#if HAVE_STDDEF_H || STDC_HEADERS 7872#include <stddef.h> 7873#endif 7874#ifdef HAVE_INTTYPES_H 7875#include <inttypes.h> 7876#endif 7877#ifdef HAVE_STDINT_H 7878#include <stdint.h> 7879#endif 7880 7881EOF 7882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7883 egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7884 rm -rf conftest* 7885 ac_cv_type_int16_t=yes 7886else 7887 rm -rf conftest* 7888 ac_cv_type_int16_t=no 7889fi 7890rm -f conftest* 7891 7892fi 7893echo "$ac_t""$ac_cv_type_int16_t" 1>&6 7894if test $ac_cv_type_int16_t = no; then 7895 cat >> confdefs.h <<\EOF 7896#define int16_t Int16_t 7897EOF 7898 7899fi 7900 7901 7902echo $ac_n "checking for int32_t""... $ac_c" 1>&6 7903echo "configure:7904: checking for int32_t" >&5 7904if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then 7905 echo $ac_n "(cached) $ac_c" 1>&6 7906else 7907 cat > conftest.$ac_ext <<EOF 7908#line 7909 "configure" 7909#include "confdefs.h" 7910#include <sys/types.h> 7911#if HAVE_STDLIB_H || STDC_HEADERS 7912#include <stdlib.h> 7913#endif 7914#if HAVE_STDDEF_H || STDC_HEADERS 7915#include <stddef.h> 7916#endif 7917#ifdef HAVE_INTTYPES_H 7918#include <inttypes.h> 7919#endif 7920#ifdef HAVE_STDINT_H 7921#include <stdint.h> 7922#endif 7923 7924EOF 7925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7926 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7927 rm -rf conftest* 7928 ac_cv_type_int32_t=yes 7929else 7930 rm -rf conftest* 7931 ac_cv_type_int32_t=no 7932fi 7933rm -f conftest* 7934 7935fi 7936echo "$ac_t""$ac_cv_type_int32_t" 1>&6 7937if test $ac_cv_type_int32_t = no; then 7938 cat >> confdefs.h <<\EOF 7939#define int32_t Int32_t 7940EOF 7941 7942fi 7943 7944 7945echo $ac_n "checking for int64_t""... $ac_c" 1>&6 7946echo "configure:7947: checking for int64_t" >&5 7947if eval "test \"`echo '$''{'ac_cv_type_int64_t'+set}'`\" = set"; then 7948 echo $ac_n "(cached) $ac_c" 1>&6 7949else 7950 cat > conftest.$ac_ext <<EOF 7951#line 7952 "configure" 7952#include "confdefs.h" 7953#include <sys/types.h> 7954#if HAVE_STDLIB_H || STDC_HEADERS 7955#include <stdlib.h> 7956#endif 7957#if HAVE_STDDEF_H || STDC_HEADERS 7958#include <stddef.h> 7959#endif 7960#ifdef HAVE_INTTYPES_H 7961#include <inttypes.h> 7962#endif 7963#ifdef HAVE_STDINT_H 7964#include <stdint.h> 7965#endif 7966 7967EOF 7968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7969 egrep "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 7970 rm -rf conftest* 7971 ac_cv_type_int64_t=yes 7972else 7973 rm -rf conftest* 7974 ac_cv_type_int64_t=no 7975fi 7976rm -f conftest* 7977 7978fi 7979echo "$ac_t""$ac_cv_type_int64_t" 1>&6 7980if test $ac_cv_type_int64_t = no; then 7981 cat >> confdefs.h <<\EOF 7982#define int64_t Int64_t 7983EOF 7984 7985fi 7986 7987 7988echo $ac_n "checking for intmax_t""... $ac_c" 1>&6 7989echo "configure:7990: checking for intmax_t" >&5 7990if eval "test \"`echo '$''{'ac_cv_type_intmax_t'+set}'`\" = set"; then 7991 echo $ac_n "(cached) $ac_c" 1>&6 7992else 7993 cat > conftest.$ac_ext <<EOF 7994#line 7995 "configure" 7995#include "confdefs.h" 7996#include <sys/types.h> 7997#if HAVE_STDLIB_H || STDC_HEADERS 7998#include <stdlib.h> 7999#endif 8000#if HAVE_STDDEF_H || STDC_HEADERS 8001#include <stddef.h> 8002#endif 8003#ifdef HAVE_INTTYPES_H 8004#include <inttypes.h> 8005#endif 8006#ifdef HAVE_STDINT_H 8007#include <stdint.h> 8008#endif 8009 8010EOF 8011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8012 egrep "(^|[^a-zA-Z_0-9])intmax_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8013 rm -rf conftest* 8014 ac_cv_type_intmax_t=yes 8015else 8016 rm -rf conftest* 8017 ac_cv_type_intmax_t=no 8018fi 8019rm -f conftest* 8020 8021fi 8022echo "$ac_t""$ac_cv_type_intmax_t" 1>&6 8023if test $ac_cv_type_intmax_t = no; then 8024 cat >> confdefs.h <<\EOF 8025#define intmax_t Intmax_t 8026EOF 8027 8028fi 8029 8030 8031echo $ac_n "checking for intptr_t""... $ac_c" 1>&6 8032echo "configure:8033: checking for intptr_t" >&5 8033if eval "test \"`echo '$''{'ac_cv_type_intptr_t'+set}'`\" = set"; then 8034 echo $ac_n "(cached) $ac_c" 1>&6 8035else 8036 cat > conftest.$ac_ext <<EOF 8037#line 8038 "configure" 8038#include "confdefs.h" 8039#include <sys/types.h> 8040#if HAVE_STDLIB_H || STDC_HEADERS 8041#include <stdlib.h> 8042#endif 8043#if HAVE_STDDEF_H || STDC_HEADERS 8044#include <stddef.h> 8045#endif 8046#ifdef HAVE_INTTYPES_H 8047#include <inttypes.h> 8048#endif 8049#ifdef HAVE_STDINT_H 8050#include <stdint.h> 8051#endif 8052 8053EOF 8054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8055 egrep "(^|[^a-zA-Z_0-9])intptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8056 rm -rf conftest* 8057 ac_cv_type_intptr_t=yes 8058else 8059 rm -rf conftest* 8060 ac_cv_type_intptr_t=no 8061fi 8062rm -f conftest* 8063 8064fi 8065echo "$ac_t""$ac_cv_type_intptr_t" 1>&6 8066if test $ac_cv_type_intptr_t = no; then 8067 cat >> confdefs.h <<\EOF 8068#define intptr_t Intptr_t 8069EOF 8070 8071fi 8072 8073 8074echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 8075echo "configure:8076: checking for uint8_t" >&5 8076if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then 8077 echo $ac_n "(cached) $ac_c" 1>&6 8078else 8079 cat > conftest.$ac_ext <<EOF 8080#line 8081 "configure" 8081#include "confdefs.h" 8082#include <sys/types.h> 8083#if HAVE_STDLIB_H || STDC_HEADERS 8084#include <stdlib.h> 8085#endif 8086#if HAVE_STDDEF_H || STDC_HEADERS 8087#include <stddef.h> 8088#endif 8089#ifdef HAVE_INTTYPES_H 8090#include <inttypes.h> 8091#endif 8092#ifdef HAVE_STDINT_H 8093#include <stdint.h> 8094#endif 8095 8096EOF 8097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8098 egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8099 rm -rf conftest* 8100 ac_cv_type_uint8_t=yes 8101else 8102 rm -rf conftest* 8103 ac_cv_type_uint8_t=no 8104fi 8105rm -f conftest* 8106 8107fi 8108echo "$ac_t""$ac_cv_type_uint8_t" 1>&6 8109if test $ac_cv_type_uint8_t = no; then 8110 cat >> confdefs.h <<\EOF 8111#define uint8_t UInt8_t 8112EOF 8113 8114fi 8115 8116 8117echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 8118echo "configure:8119: checking for uint16_t" >&5 8119if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then 8120 echo $ac_n "(cached) $ac_c" 1>&6 8121else 8122 cat > conftest.$ac_ext <<EOF 8123#line 8124 "configure" 8124#include "confdefs.h" 8125#include <sys/types.h> 8126#if HAVE_STDLIB_H || STDC_HEADERS 8127#include <stdlib.h> 8128#endif 8129#if HAVE_STDDEF_H || STDC_HEADERS 8130#include <stddef.h> 8131#endif 8132#ifdef HAVE_INTTYPES_H 8133#include <inttypes.h> 8134#endif 8135#ifdef HAVE_STDINT_H 8136#include <stdint.h> 8137#endif 8138 8139EOF 8140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8141 egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8142 rm -rf conftest* 8143 ac_cv_type_uint16_t=yes 8144else 8145 rm -rf conftest* 8146 ac_cv_type_uint16_t=no 8147fi 8148rm -f conftest* 8149 8150fi 8151echo "$ac_t""$ac_cv_type_uint16_t" 1>&6 8152if test $ac_cv_type_uint16_t = no; then 8153 cat >> confdefs.h <<\EOF 8154#define uint16_t UInt16_t 8155EOF 8156 8157fi 8158 8159 8160echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 8161echo "configure:8162: checking for uint32_t" >&5 8162if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then 8163 echo $ac_n "(cached) $ac_c" 1>&6 8164else 8165 cat > conftest.$ac_ext <<EOF 8166#line 8167 "configure" 8167#include "confdefs.h" 8168#include <sys/types.h> 8169#if HAVE_STDLIB_H || STDC_HEADERS 8170#include <stdlib.h> 8171#endif 8172#if HAVE_STDDEF_H || STDC_HEADERS 8173#include <stddef.h> 8174#endif 8175#ifdef HAVE_INTTYPES_H 8176#include <inttypes.h> 8177#endif 8178#ifdef HAVE_STDINT_H 8179#include <stdint.h> 8180#endif 8181 8182EOF 8183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8184 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8185 rm -rf conftest* 8186 ac_cv_type_uint32_t=yes 8187else 8188 rm -rf conftest* 8189 ac_cv_type_uint32_t=no 8190fi 8191rm -f conftest* 8192 8193fi 8194echo "$ac_t""$ac_cv_type_uint32_t" 1>&6 8195if test $ac_cv_type_uint32_t = no; then 8196 cat >> confdefs.h <<\EOF 8197#define uint32_t UInt32_t 8198EOF 8199 8200fi 8201 8202 8203echo $ac_n "checking for uint64_t""... $ac_c" 1>&6 8204echo "configure:8205: checking for uint64_t" >&5 8205if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then 8206 echo $ac_n "(cached) $ac_c" 1>&6 8207else 8208 cat > conftest.$ac_ext <<EOF 8209#line 8210 "configure" 8210#include "confdefs.h" 8211#include <sys/types.h> 8212#if HAVE_STDLIB_H || STDC_HEADERS 8213#include <stdlib.h> 8214#endif 8215#if HAVE_STDDEF_H || STDC_HEADERS 8216#include <stddef.h> 8217#endif 8218#ifdef HAVE_INTTYPES_H 8219#include <inttypes.h> 8220#endif 8221#ifdef HAVE_STDINT_H 8222#include <stdint.h> 8223#endif 8224 8225EOF 8226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8227 egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8228 rm -rf conftest* 8229 ac_cv_type_uint64_t=yes 8230else 8231 rm -rf conftest* 8232 ac_cv_type_uint64_t=no 8233fi 8234rm -f conftest* 8235 8236fi 8237echo "$ac_t""$ac_cv_type_uint64_t" 1>&6 8238if test $ac_cv_type_uint64_t = no; then 8239 cat >> confdefs.h <<\EOF 8240#define uint64_t UInt64_t 8241EOF 8242 8243fi 8244 8245 8246echo $ac_n "checking for uintmax_t""... $ac_c" 1>&6 8247echo "configure:8248: checking for uintmax_t" >&5 8248if eval "test \"`echo '$''{'ac_cv_type_uintmax_t'+set}'`\" = set"; then 8249 echo $ac_n "(cached) $ac_c" 1>&6 8250else 8251 cat > conftest.$ac_ext <<EOF 8252#line 8253 "configure" 8253#include "confdefs.h" 8254#include <sys/types.h> 8255#if HAVE_STDLIB_H || STDC_HEADERS 8256#include <stdlib.h> 8257#endif 8258#if HAVE_STDDEF_H || STDC_HEADERS 8259#include <stddef.h> 8260#endif 8261#ifdef HAVE_INTTYPES_H 8262#include <inttypes.h> 8263#endif 8264#ifdef HAVE_STDINT_H 8265#include <stdint.h> 8266#endif 8267 8268EOF 8269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8270 egrep "(^|[^a-zA-Z_0-9])uintmax_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8271 rm -rf conftest* 8272 ac_cv_type_uintmax_t=yes 8273else 8274 rm -rf conftest* 8275 ac_cv_type_uintmax_t=no 8276fi 8277rm -f conftest* 8278 8279fi 8280echo "$ac_t""$ac_cv_type_uintmax_t" 1>&6 8281if test $ac_cv_type_uintmax_t = no; then 8282 cat >> confdefs.h <<\EOF 8283#define uintmax_t UIntmax_t 8284EOF 8285 8286fi 8287 8288 8289echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6 8290echo "configure:8291: checking for uintptr_t" >&5 8291if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then 8292 echo $ac_n "(cached) $ac_c" 1>&6 8293else 8294 cat > conftest.$ac_ext <<EOF 8295#line 8296 "configure" 8296#include "confdefs.h" 8297#include <sys/types.h> 8298#if HAVE_STDLIB_H || STDC_HEADERS 8299#include <stdlib.h> 8300#endif 8301#if HAVE_STDDEF_H || STDC_HEADERS 8302#include <stddef.h> 8303#endif 8304#ifdef HAVE_INTTYPES_H 8305#include <inttypes.h> 8306#endif 8307#ifdef HAVE_STDINT_H 8308#include <stdint.h> 8309#endif 8310 8311EOF 8312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8313 egrep "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8314 rm -rf conftest* 8315 ac_cv_type_uintptr_t=yes 8316else 8317 rm -rf conftest* 8318 ac_cv_type_uintptr_t=no 8319fi 8320rm -f conftest* 8321 8322fi 8323echo "$ac_t""$ac_cv_type_uintptr_t" 1>&6 8324if test $ac_cv_type_uintptr_t = no; then 8325 cat >> confdefs.h <<\EOF 8326#define uintptr_t UIntptr_t 8327EOF 8328 8329fi 8330 8331 8332echo $ac_n "checking for wctype_t""... $ac_c" 1>&6 8333echo "configure:8334: checking for wctype_t" >&5 8334if eval "test \"`echo '$''{'ac_cv_type_wctype_t'+set}'`\" = set"; then 8335 echo $ac_n "(cached) $ac_c" 1>&6 8336else 8337 cat > conftest.$ac_ext <<EOF 8338#line 8339 "configure" 8339#include "confdefs.h" 8340#include <sys/types.h> 8341#if HAVE_STDLIB_H || STDC_HEADERS 8342#include <stdlib.h> 8343#endif 8344#if HAVE_STDDEF_H || STDC_HEADERS 8345#include <stddef.h> 8346#endif 8347#ifdef HAVE_WCHAR_H 8348#include <wchar.h> 8349#endif 8350#ifdef HAVE_WCTYPE_H 8351#include <wctype.h> 8352#endif 8353 8354EOF 8355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8356 egrep "(^|[^a-zA-Z_0-9])wctype_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8357 rm -rf conftest* 8358 ac_cv_type_wctype_t=yes 8359else 8360 rm -rf conftest* 8361 ac_cv_type_wctype_t=no 8362fi 8363rm -f conftest* 8364 8365fi 8366echo "$ac_t""$ac_cv_type_wctype_t" 1>&6 8367if test $ac_cv_type_wctype_t = no; then 8368 cat >> confdefs.h <<\EOF 8369#define wctype_t int 8370EOF 8371 8372fi 8373 8374 8375echo $ac_n "checking for wint_t""... $ac_c" 1>&6 8376echo "configure:8377: checking for wint_t" >&5 8377if eval "test \"`echo '$''{'ac_cv_type_wint_t'+set}'`\" = set"; then 8378 echo $ac_n "(cached) $ac_c" 1>&6 8379else 8380 cat > conftest.$ac_ext <<EOF 8381#line 8382 "configure" 8382#include "confdefs.h" 8383#include <sys/types.h> 8384#if HAVE_STDLIB_H || STDC_HEADERS 8385#include <stdlib.h> 8386#endif 8387#if HAVE_STDDEF_H || STDC_HEADERS 8388#include <stddef.h> 8389#endif 8390#ifdef HAVE_WCHAR_H 8391#include <wchar.h> 8392#endif 8393#ifdef HAVE_WCTYPE_H 8394#include <wctype.h> 8395#endif 8396#include <sys/types.h> 8397 8398EOF 8399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8400 egrep "(^|[^a-zA-Z_0-9])wint_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8401 rm -rf conftest* 8402 ac_cv_type_wint_t=yes 8403else 8404 rm -rf conftest* 8405 ac_cv_type_wint_t=no 8406fi 8407rm -f conftest* 8408 8409fi 8410echo "$ac_t""$ac_cv_type_wint_t" 1>&6 8411if test $ac_cv_type_wint_t = no; then 8412 cat >> confdefs.h <<\EOF 8413#define wint_t int 8414EOF 8415 8416fi 8417 8418 8419echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 8420echo "configure:8421: checking for mbstate_t" >&5 8421if eval "test \"`echo '$''{'ac_cv_type_mbstate_t'+set}'`\" = set"; then 8422 echo $ac_n "(cached) $ac_c" 1>&6 8423else 8424 cat > conftest.$ac_ext <<EOF 8425#line 8426 "configure" 8426#include "confdefs.h" 8427#include <sys/types.h> 8428#if HAVE_STDLIB_H || STDC_HEADERS 8429#include <stdlib.h> 8430#endif 8431#if HAVE_STDDEF_H || STDC_HEADERS 8432#include <stddef.h> 8433#endif 8434#ifdef HAVE_WCHAR_H 8435#include <wchar.h> 8436#endif 8437#ifdef HAVE_WCTYPE_H 8438#include <wctype.h> 8439#endif 8440 8441EOF 8442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8443 egrep "(^|[^a-zA-Z_0-9])mbstate_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8444 rm -rf conftest* 8445 ac_cv_type_mbstate_t=yes 8446else 8447 rm -rf conftest* 8448 ac_cv_type_mbstate_t=no 8449fi 8450rm -f conftest* 8451 8452fi 8453echo "$ac_t""$ac_cv_type_mbstate_t" 1>&6 8454if test $ac_cv_type_mbstate_t = no; then 8455 cat >> confdefs.h <<\EOF 8456#define mbstate_t int 8457EOF 8458 8459fi 8460 8461 8462echo $ac_n "checking for timestruc_t""... $ac_c" 1>&6 8463echo "configure:8464: checking for timestruc_t" >&5 8464if eval "test \"`echo '$''{'ac_cv_type_timestruc_t'+set}'`\" = set"; then 8465 echo $ac_n "(cached) $ac_c" 1>&6 8466else 8467 cat > conftest.$ac_ext <<EOF 8468#line 8469 "configure" 8469#include "confdefs.h" 8470#include <sys/types.h> 8471#if HAVE_STDLIB_H || STDC_HEADERS 8472#include <stdlib.h> 8473#endif 8474#if HAVE_STDDEF_H || STDC_HEADERS 8475#include <stddef.h> 8476#endif 8477#ifdef HAVE_SYS_STAT_H 8478#include <sys/stat.h> 8479#endif 8480#ifdef HAVE_STAT_H 8481#include <stat.h> 8482#endif 8483 8484EOF 8485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8486 egrep "(^|[^a-zA-Z_0-9])timestruc_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 8487 rm -rf conftest* 8488 ac_cv_type_timestruc_t=yes 8489else 8490 rm -rf conftest* 8491 ac_cv_type_timestruc_t=no 8492fi 8493rm -f conftest* 8494 8495fi 8496echo "$ac_t""$ac_cv_type_timestruc_t" 1>&6 8497if test $ac_cv_type_timestruc_t = no; then 8498 cat >> confdefs.h <<\EOF 8499#define timestruc_t struct timespec 8500EOF 8501 8502fi 8503 8504 8505echo $ac_n "checking size of char""... $ac_c" 1>&6 8506echo "configure:8507: checking size of char" >&5 8507if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 8508 echo $ac_n "(cached) $ac_c" 1>&6 8509else 8510 if test "$cross_compiling" = yes; then 8511 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8512else 8513 cat > conftest.$ac_ext <<EOF 8514#line 8515 "configure" 8515#include "confdefs.h" 8516#include <stdio.h> 8517#if HAVE_STDDEF_H || STDC_HEADERS 8518#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8519#endif 8520#ifdef HAVE_SYS_TYPES_H 8521#include <sys/types.h> 8522#endif 8523int 8524main() 8525{ 8526 FILE *f=fopen("conftestval", "w"); 8527 if (!f) return(1); 8528 fprintf(f, "%d\n", (int)sizeof(char)); 8529 return(0); 8530} 8531EOF 8532if { { eval echo configure:8533: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8533then 8534 ac_cv_sizeof_char=`cat conftestval` 8535else 8536 echo "configure: failed program was:" >&5 8537 cat conftest.$ac_ext >&5 8538 rm -fr conftest* 8539 ac_cv_sizeof_char=0 8540fi 8541rm -fr conftest* 8542fi 8543 8544fi 8545echo "$ac_t""$ac_cv_sizeof_char" 1>&6 8546cat >> confdefs.h <<EOF 8547#define SIZEOF_CHAR $ac_cv_sizeof_char 8548EOF 8549 8550 8551echo $ac_n "checking size of short int""... $ac_c" 1>&6 8552echo "configure:8553: checking size of short int" >&5 8553if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then 8554 echo $ac_n "(cached) $ac_c" 1>&6 8555else 8556 if test "$cross_compiling" = yes; then 8557 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8558else 8559 cat > conftest.$ac_ext <<EOF 8560#line 8561 "configure" 8561#include "confdefs.h" 8562#include <stdio.h> 8563#if HAVE_STDDEF_H || STDC_HEADERS 8564#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8565#endif 8566#ifdef HAVE_SYS_TYPES_H 8567#include <sys/types.h> 8568#endif 8569int 8570main() 8571{ 8572 FILE *f=fopen("conftestval", "w"); 8573 if (!f) return(1); 8574 fprintf(f, "%d\n", (int)sizeof(short int)); 8575 return(0); 8576} 8577EOF 8578if { { eval echo configure:8579: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8579then 8580 ac_cv_sizeof_short_int=`cat conftestval` 8581else 8582 echo "configure: failed program was:" >&5 8583 cat conftest.$ac_ext >&5 8584 rm -fr conftest* 8585 ac_cv_sizeof_short_int=0 8586fi 8587rm -fr conftest* 8588fi 8589 8590fi 8591echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6 8592cat >> confdefs.h <<EOF 8593#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int 8594EOF 8595 8596 8597echo $ac_n "checking size of int""... $ac_c" 1>&6 8598echo "configure:8599: checking size of int" >&5 8599if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 8600 echo $ac_n "(cached) $ac_c" 1>&6 8601else 8602 if test "$cross_compiling" = yes; then 8603 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8604else 8605 cat > conftest.$ac_ext <<EOF 8606#line 8607 "configure" 8607#include "confdefs.h" 8608#include <stdio.h> 8609#if HAVE_STDDEF_H || STDC_HEADERS 8610#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8611#endif 8612#ifdef HAVE_SYS_TYPES_H 8613#include <sys/types.h> 8614#endif 8615int 8616main() 8617{ 8618 FILE *f=fopen("conftestval", "w"); 8619 if (!f) return(1); 8620 fprintf(f, "%d\n", (int)sizeof(int)); 8621 return(0); 8622} 8623EOF 8624if { { eval echo configure:8625: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8625then 8626 ac_cv_sizeof_int=`cat conftestval` 8627else 8628 echo "configure: failed program was:" >&5 8629 cat conftest.$ac_ext >&5 8630 rm -fr conftest* 8631 ac_cv_sizeof_int=0 8632fi 8633rm -fr conftest* 8634fi 8635 8636fi 8637echo "$ac_t""$ac_cv_sizeof_int" 1>&6 8638cat >> confdefs.h <<EOF 8639#define SIZEOF_INT $ac_cv_sizeof_int 8640EOF 8641 8642 8643echo $ac_n "checking size of long int""... $ac_c" 1>&6 8644echo "configure:8645: checking size of long int" >&5 8645if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then 8646 echo $ac_n "(cached) $ac_c" 1>&6 8647else 8648 if test "$cross_compiling" = yes; then 8649 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8650else 8651 cat > conftest.$ac_ext <<EOF 8652#line 8653 "configure" 8653#include "confdefs.h" 8654#include <stdio.h> 8655#if HAVE_STDDEF_H || STDC_HEADERS 8656#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8657#endif 8658#ifdef HAVE_SYS_TYPES_H 8659#include <sys/types.h> 8660#endif 8661int 8662main() 8663{ 8664 FILE *f=fopen("conftestval", "w"); 8665 if (!f) return(1); 8666 fprintf(f, "%d\n", (int)sizeof(long int)); 8667 return(0); 8668} 8669EOF 8670if { { eval echo configure:8671: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8671then 8672 ac_cv_sizeof_long_int=`cat conftestval` 8673else 8674 echo "configure: failed program was:" >&5 8675 cat conftest.$ac_ext >&5 8676 rm -fr conftest* 8677 ac_cv_sizeof_long_int=0 8678fi 8679rm -fr conftest* 8680fi 8681 8682fi 8683echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6 8684cat >> confdefs.h <<EOF 8685#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 8686EOF 8687 8688 8689echo $ac_n "checking size of long long""... $ac_c" 1>&6 8690echo "configure:8691: checking size of long long" >&5 8691if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then 8692 echo $ac_n "(cached) $ac_c" 1>&6 8693else 8694 if test "$cross_compiling" = yes; then 8695 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8696else 8697 cat > conftest.$ac_ext <<EOF 8698#line 8699 "configure" 8699#include "confdefs.h" 8700#include <stdio.h> 8701#if HAVE_STDDEF_H || STDC_HEADERS 8702#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8703#endif 8704#ifdef HAVE_SYS_TYPES_H 8705#include <sys/types.h> 8706#endif 8707int 8708main() 8709{ 8710 FILE *f=fopen("conftestval", "w"); 8711 if (!f) return(1); 8712 fprintf(f, "%d\n", (int)sizeof(long long)); 8713 return(0); 8714} 8715EOF 8716if { { eval echo configure:8717: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8717then 8718 ac_cv_sizeof_long_long=`cat conftestval` 8719else 8720 echo "configure: failed program was:" >&5 8721 cat conftest.$ac_ext >&5 8722 rm -fr conftest* 8723 ac_cv_sizeof_long_long=0 8724fi 8725rm -fr conftest* 8726fi 8727 8728fi 8729echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 8730cat >> confdefs.h <<EOF 8731#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8732EOF 8733 8734 8735echo $ac_n "checking size of __int64""... $ac_c" 1>&6 8736echo "configure:8737: checking size of __int64" >&5 8737if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then 8738 echo $ac_n "(cached) $ac_c" 1>&6 8739else 8740 if test "$cross_compiling" = yes; then 8741 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8742else 8743 cat > conftest.$ac_ext <<EOF 8744#line 8745 "configure" 8745#include "confdefs.h" 8746#include <stdio.h> 8747#if HAVE_STDDEF_H || STDC_HEADERS 8748#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8749#endif 8750#ifdef HAVE_SYS_TYPES_H 8751#include <sys/types.h> 8752#endif 8753int 8754main() 8755{ 8756 FILE *f=fopen("conftestval", "w"); 8757 if (!f) return(1); 8758 fprintf(f, "%d\n", (int)sizeof(__int64)); 8759 return(0); 8760} 8761EOF 8762if { { eval echo configure:8763: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8763then 8764 ac_cv_sizeof___int64=`cat conftestval` 8765else 8766 echo "configure: failed program was:" >&5 8767 cat conftest.$ac_ext >&5 8768 rm -fr conftest* 8769 ac_cv_sizeof___int64=0 8770fi 8771rm -fr conftest* 8772fi 8773 8774fi 8775echo "$ac_t""$ac_cv_sizeof___int64" 1>&6 8776cat >> confdefs.h <<EOF 8777#define SIZEOF___INT64 $ac_cv_sizeof___int64 8778EOF 8779 8780 8781echo $ac_n "checking size of char *""... $ac_c" 1>&6 8782echo "configure:8783: checking size of char *" >&5 8783if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then 8784 echo $ac_n "(cached) $ac_c" 1>&6 8785else 8786 if test "$cross_compiling" = yes; then 8787 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8788else 8789 cat > conftest.$ac_ext <<EOF 8790#line 8791 "configure" 8791#include "confdefs.h" 8792#include <stdio.h> 8793#if HAVE_STDDEF_H || STDC_HEADERS 8794#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8795#endif 8796#ifdef HAVE_SYS_TYPES_H 8797#include <sys/types.h> 8798#endif 8799int 8800main() 8801{ 8802 FILE *f=fopen("conftestval", "w"); 8803 if (!f) return(1); 8804 fprintf(f, "%d\n", (int)sizeof(char *)); 8805 return(0); 8806} 8807EOF 8808if { { eval echo configure:8809: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8809then 8810 ac_cv_sizeof_char_p=`cat conftestval` 8811else 8812 echo "configure: failed program was:" >&5 8813 cat conftest.$ac_ext >&5 8814 rm -fr conftest* 8815 ac_cv_sizeof_char_p=0 8816fi 8817rm -fr conftest* 8818fi 8819 8820fi 8821echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6 8822cat >> confdefs.h <<EOF 8823#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 8824EOF 8825 8826 8827 8828echo $ac_n "checking size of unsigned char""... $ac_c" 1>&6 8829echo "configure:8830: checking size of unsigned char" >&5 8830if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then 8831 echo $ac_n "(cached) $ac_c" 1>&6 8832else 8833 if test "$cross_compiling" = yes; then 8834 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8835else 8836 cat > conftest.$ac_ext <<EOF 8837#line 8838 "configure" 8838#include "confdefs.h" 8839#include <stdio.h> 8840#if HAVE_STDDEF_H || STDC_HEADERS 8841#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8842#endif 8843#ifdef HAVE_SYS_TYPES_H 8844#include <sys/types.h> 8845#endif 8846int 8847main() 8848{ 8849 FILE *f=fopen("conftestval", "w"); 8850 if (!f) return(1); 8851 fprintf(f, "%d\n", (int)sizeof(unsigned char)); 8852 return(0); 8853} 8854EOF 8855if { { eval echo configure:8856: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8856then 8857 ac_cv_sizeof_unsigned_char=`cat conftestval` 8858else 8859 echo "configure: failed program was:" >&5 8860 cat conftest.$ac_ext >&5 8861 rm -fr conftest* 8862 ac_cv_sizeof_unsigned_char=0 8863fi 8864rm -fr conftest* 8865fi 8866 8867fi 8868echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6 8869cat >> confdefs.h <<EOF 8870#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char 8871EOF 8872 8873 8874echo $ac_n "checking size of unsigned short int""... $ac_c" 1>&6 8875echo "configure:8876: checking size of unsigned short int" >&5 8876if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then 8877 echo $ac_n "(cached) $ac_c" 1>&6 8878else 8879 if test "$cross_compiling" = yes; then 8880 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8881else 8882 cat > conftest.$ac_ext <<EOF 8883#line 8884 "configure" 8884#include "confdefs.h" 8885#include <stdio.h> 8886#if HAVE_STDDEF_H || STDC_HEADERS 8887#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8888#endif 8889#ifdef HAVE_SYS_TYPES_H 8890#include <sys/types.h> 8891#endif 8892int 8893main() 8894{ 8895 FILE *f=fopen("conftestval", "w"); 8896 if (!f) return(1); 8897 fprintf(f, "%d\n", (int)sizeof(unsigned short int)); 8898 return(0); 8899} 8900EOF 8901if { { eval echo configure:8902: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8902then 8903 ac_cv_sizeof_unsigned_short_int=`cat conftestval` 8904else 8905 echo "configure: failed program was:" >&5 8906 cat conftest.$ac_ext >&5 8907 rm -fr conftest* 8908 ac_cv_sizeof_unsigned_short_int=0 8909fi 8910rm -fr conftest* 8911fi 8912 8913fi 8914echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6 8915cat >> confdefs.h <<EOF 8916#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int 8917EOF 8918 8919 8920echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6 8921echo "configure:8922: checking size of unsigned int" >&5 8922if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then 8923 echo $ac_n "(cached) $ac_c" 1>&6 8924else 8925 if test "$cross_compiling" = yes; then 8926 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8927else 8928 cat > conftest.$ac_ext <<EOF 8929#line 8930 "configure" 8930#include "confdefs.h" 8931#include <stdio.h> 8932#if HAVE_STDDEF_H || STDC_HEADERS 8933#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8934#endif 8935#ifdef HAVE_SYS_TYPES_H 8936#include <sys/types.h> 8937#endif 8938int 8939main() 8940{ 8941 FILE *f=fopen("conftestval", "w"); 8942 if (!f) return(1); 8943 fprintf(f, "%d\n", (int)sizeof(unsigned int)); 8944 return(0); 8945} 8946EOF 8947if { { eval echo configure:8948: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8948then 8949 ac_cv_sizeof_unsigned_int=`cat conftestval` 8950else 8951 echo "configure: failed program was:" >&5 8952 cat conftest.$ac_ext >&5 8953 rm -fr conftest* 8954 ac_cv_sizeof_unsigned_int=0 8955fi 8956rm -fr conftest* 8957fi 8958 8959fi 8960echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6 8961cat >> confdefs.h <<EOF 8962#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 8963EOF 8964 8965 8966echo $ac_n "checking size of unsigned long int""... $ac_c" 1>&6 8967echo "configure:8968: checking size of unsigned long int" >&5 8968if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then 8969 echo $ac_n "(cached) $ac_c" 1>&6 8970else 8971 if test "$cross_compiling" = yes; then 8972 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 8973else 8974 cat > conftest.$ac_ext <<EOF 8975#line 8976 "configure" 8976#include "confdefs.h" 8977#include <stdio.h> 8978#if HAVE_STDDEF_H || STDC_HEADERS 8979#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 8980#endif 8981#ifdef HAVE_SYS_TYPES_H 8982#include <sys/types.h> 8983#endif 8984int 8985main() 8986{ 8987 FILE *f=fopen("conftestval", "w"); 8988 if (!f) return(1); 8989 fprintf(f, "%d\n", (int)sizeof(unsigned long int)); 8990 return(0); 8991} 8992EOF 8993if { { eval echo configure:8994: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 8994then 8995 ac_cv_sizeof_unsigned_long_int=`cat conftestval` 8996else 8997 echo "configure: failed program was:" >&5 8998 cat conftest.$ac_ext >&5 8999 rm -fr conftest* 9000 ac_cv_sizeof_unsigned_long_int=0 9001fi 9002rm -fr conftest* 9003fi 9004 9005fi 9006echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6 9007cat >> confdefs.h <<EOF 9008#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int 9009EOF 9010 9011 9012echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6 9013echo "configure:9014: checking size of unsigned long long" >&5 9014if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then 9015 echo $ac_n "(cached) $ac_c" 1>&6 9016else 9017 if test "$cross_compiling" = yes; then 9018 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9019else 9020 cat > conftest.$ac_ext <<EOF 9021#line 9022 "configure" 9022#include "confdefs.h" 9023#include <stdio.h> 9024#if HAVE_STDDEF_H || STDC_HEADERS 9025#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9026#endif 9027#ifdef HAVE_SYS_TYPES_H 9028#include <sys/types.h> 9029#endif 9030int 9031main() 9032{ 9033 FILE *f=fopen("conftestval", "w"); 9034 if (!f) return(1); 9035 fprintf(f, "%d\n", (int)sizeof(unsigned long long)); 9036 return(0); 9037} 9038EOF 9039if { { eval echo configure:9040: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9040then 9041 ac_cv_sizeof_unsigned_long_long=`cat conftestval` 9042else 9043 echo "configure: failed program was:" >&5 9044 cat conftest.$ac_ext >&5 9045 rm -fr conftest* 9046 ac_cv_sizeof_unsigned_long_long=0 9047fi 9048rm -fr conftest* 9049fi 9050 9051fi 9052echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6 9053cat >> confdefs.h <<EOF 9054#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 9055EOF 9056 9057 9058echo $ac_n "checking size of unsigned __int64""... $ac_c" 1>&6 9059echo "configure:9060: checking size of unsigned __int64" >&5 9060if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned___int64'+set}'`\" = set"; then 9061 echo $ac_n "(cached) $ac_c" 1>&6 9062else 9063 if test "$cross_compiling" = yes; then 9064 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9065else 9066 cat > conftest.$ac_ext <<EOF 9067#line 9068 "configure" 9068#include "confdefs.h" 9069#include <stdio.h> 9070#if HAVE_STDDEF_H || STDC_HEADERS 9071#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9072#endif 9073#ifdef HAVE_SYS_TYPES_H 9074#include <sys/types.h> 9075#endif 9076int 9077main() 9078{ 9079 FILE *f=fopen("conftestval", "w"); 9080 if (!f) return(1); 9081 fprintf(f, "%d\n", (int)sizeof(unsigned __int64)); 9082 return(0); 9083} 9084EOF 9085if { { eval echo configure:9086: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9086then 9087 ac_cv_sizeof_unsigned___int64=`cat conftestval` 9088else 9089 echo "configure: failed program was:" >&5 9090 cat conftest.$ac_ext >&5 9091 rm -fr conftest* 9092 ac_cv_sizeof_unsigned___int64=0 9093fi 9094rm -fr conftest* 9095fi 9096 9097fi 9098echo "$ac_t""$ac_cv_sizeof_unsigned___int64" 1>&6 9099cat >> confdefs.h <<EOF 9100#define SIZEOF_UNSIGNED___INT64 $ac_cv_sizeof_unsigned___int64 9101EOF 9102 9103 9104echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6 9105echo "configure:9106: checking size of unsigned char *" >&5 9106if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then 9107 echo $ac_n "(cached) $ac_c" 1>&6 9108else 9109 if test "$cross_compiling" = yes; then 9110 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9111else 9112 cat > conftest.$ac_ext <<EOF 9113#line 9114 "configure" 9114#include "confdefs.h" 9115#include <stdio.h> 9116#if HAVE_STDDEF_H || STDC_HEADERS 9117#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9118#endif 9119#ifdef HAVE_SYS_TYPES_H 9120#include <sys/types.h> 9121#endif 9122int 9123main() 9124{ 9125 FILE *f=fopen("conftestval", "w"); 9126 if (!f) return(1); 9127 fprintf(f, "%d\n", (int)sizeof(unsigned char *)); 9128 return(0); 9129} 9130EOF 9131if { { eval echo configure:9132: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9132then 9133 ac_cv_sizeof_unsigned_char_p=`cat conftestval` 9134else 9135 echo "configure: failed program was:" >&5 9136 cat conftest.$ac_ext >&5 9137 rm -fr conftest* 9138 ac_cv_sizeof_unsigned_char_p=0 9139fi 9140rm -fr conftest* 9141fi 9142 9143fi 9144echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6 9145cat >> confdefs.h <<EOF 9146#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 9147EOF 9148 9149 9150echo $ac_n "checking size of float""... $ac_c" 1>&6 9151echo "configure:9152: checking size of float" >&5 9152if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then 9153 echo $ac_n "(cached) $ac_c" 1>&6 9154else 9155 if test "$cross_compiling" = yes; then 9156 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9157else 9158 cat > conftest.$ac_ext <<EOF 9159#line 9160 "configure" 9160#include "confdefs.h" 9161#include <stdio.h> 9162#if HAVE_STDDEF_H || STDC_HEADERS 9163#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9164#endif 9165#ifdef HAVE_SYS_TYPES_H 9166#include <sys/types.h> 9167#endif 9168int 9169main() 9170{ 9171 FILE *f=fopen("conftestval", "w"); 9172 if (!f) return(1); 9173 fprintf(f, "%d\n", (int)sizeof(float)); 9174 return(0); 9175} 9176EOF 9177if { { eval echo configure:9178: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9178then 9179 ac_cv_sizeof_float=`cat conftestval` 9180else 9181 echo "configure: failed program was:" >&5 9182 cat conftest.$ac_ext >&5 9183 rm -fr conftest* 9184 ac_cv_sizeof_float=0 9185fi 9186rm -fr conftest* 9187fi 9188 9189fi 9190echo "$ac_t""$ac_cv_sizeof_float" 1>&6 9191cat >> confdefs.h <<EOF 9192#define SIZEOF_FLOAT $ac_cv_sizeof_float 9193EOF 9194 9195 9196echo $ac_n "checking size of double""... $ac_c" 1>&6 9197echo "configure:9198: checking size of double" >&5 9198if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 9199 echo $ac_n "(cached) $ac_c" 1>&6 9200else 9201 if test "$cross_compiling" = yes; then 9202 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9203else 9204 cat > conftest.$ac_ext <<EOF 9205#line 9206 "configure" 9206#include "confdefs.h" 9207#include <stdio.h> 9208#if HAVE_STDDEF_H || STDC_HEADERS 9209#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9210#endif 9211#ifdef HAVE_SYS_TYPES_H 9212#include <sys/types.h> 9213#endif 9214int 9215main() 9216{ 9217 FILE *f=fopen("conftestval", "w"); 9218 if (!f) return(1); 9219 fprintf(f, "%d\n", (int)sizeof(double)); 9220 return(0); 9221} 9222EOF 9223if { { eval echo configure:9224: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9224then 9225 ac_cv_sizeof_double=`cat conftestval` 9226else 9227 echo "configure: failed program was:" >&5 9228 cat conftest.$ac_ext >&5 9229 rm -fr conftest* 9230 ac_cv_sizeof_double=0 9231fi 9232rm -fr conftest* 9233fi 9234 9235fi 9236echo "$ac_t""$ac_cv_sizeof_double" 1>&6 9237cat >> confdefs.h <<EOF 9238#define SIZEOF_DOUBLE $ac_cv_sizeof_double 9239EOF 9240 9241 9242echo $ac_n "checking size of long double""... $ac_c" 1>&6 9243echo "configure:9244: checking size of long double" >&5 9244if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then 9245 echo $ac_n "(cached) $ac_c" 1>&6 9246else 9247 if test "$cross_compiling" = yes; then 9248 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9249else 9250 cat > conftest.$ac_ext <<EOF 9251#line 9252 "configure" 9252#include "confdefs.h" 9253#include <stdio.h> 9254#if HAVE_STDDEF_H || STDC_HEADERS 9255#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9256#endif 9257#ifdef HAVE_SYS_TYPES_H 9258#include <sys/types.h> 9259#endif 9260int 9261main() 9262{ 9263 FILE *f=fopen("conftestval", "w"); 9264 if (!f) return(1); 9265 fprintf(f, "%d\n", (int)sizeof(long double)); 9266 return(0); 9267} 9268EOF 9269if { { eval echo configure:9270: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9270then 9271 ac_cv_sizeof_long_double=`cat conftestval` 9272else 9273 echo "configure: failed program was:" >&5 9274 cat conftest.$ac_ext >&5 9275 rm -fr conftest* 9276 ac_cv_sizeof_long_double=0 9277fi 9278rm -fr conftest* 9279fi 9280 9281fi 9282echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6 9283cat >> confdefs.h <<EOF 9284#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 9285EOF 9286 9287 9288 9289echo $ac_n "checking size of size_t""... $ac_c" 1>&6 9290echo "configure:9291: checking size of size_t" >&5 9291if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then 9292 echo $ac_n "(cached) $ac_c" 1>&6 9293else 9294 if test "$cross_compiling" = yes; then 9295 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9296else 9297 cat > conftest.$ac_ext <<EOF 9298#line 9299 "configure" 9299#include "confdefs.h" 9300#include <stdio.h> 9301#if HAVE_STDDEF_H || STDC_HEADERS 9302#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9303#endif 9304#ifdef HAVE_SYS_TYPES_H 9305#include <sys/types.h> 9306#endif 9307int 9308main() 9309{ 9310 FILE *f=fopen("conftestval", "w"); 9311 if (!f) return(1); 9312 fprintf(f, "%d\n", (int)sizeof(size_t)); 9313 return(0); 9314} 9315EOF 9316if { { eval echo configure:9317: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9317then 9318 ac_cv_sizeof_size_t=`cat conftestval` 9319else 9320 echo "configure: failed program was:" >&5 9321 cat conftest.$ac_ext >&5 9322 rm -fr conftest* 9323 ac_cv_sizeof_size_t=0 9324fi 9325rm -fr conftest* 9326fi 9327 9328fi 9329echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6 9330cat >> confdefs.h <<EOF 9331#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 9332EOF 9333 9334 9335echo $ac_n "checking size of ssize_t""... $ac_c" 1>&6 9336echo "configure:9337: checking size of ssize_t" >&5 9337if eval "test \"`echo '$''{'ac_cv_sizeof_ssize_t'+set}'`\" = set"; then 9338 echo $ac_n "(cached) $ac_c" 1>&6 9339else 9340 if test "$cross_compiling" = yes; then 9341 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9342else 9343 cat > conftest.$ac_ext <<EOF 9344#line 9345 "configure" 9345#include "confdefs.h" 9346#include <stdio.h> 9347#if HAVE_STDDEF_H || STDC_HEADERS 9348#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9349#endif 9350#ifdef HAVE_SYS_TYPES_H 9351#include <sys/types.h> 9352#endif 9353int 9354main() 9355{ 9356 FILE *f=fopen("conftestval", "w"); 9357 if (!f) return(1); 9358 fprintf(f, "%d\n", (int)sizeof(ssize_t)); 9359 return(0); 9360} 9361EOF 9362if { { eval echo configure:9363: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9363then 9364 ac_cv_sizeof_ssize_t=`cat conftestval` 9365else 9366 echo "configure: failed program was:" >&5 9367 cat conftest.$ac_ext >&5 9368 rm -fr conftest* 9369 ac_cv_sizeof_ssize_t=0 9370fi 9371rm -fr conftest* 9372fi 9373 9374fi 9375echo "$ac_t""$ac_cv_sizeof_ssize_t" 1>&6 9376cat >> confdefs.h <<EOF 9377#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 9378EOF 9379 9380 9381echo $ac_n "checking size of ptrdiff_t""... $ac_c" 1>&6 9382echo "configure:9383: checking size of ptrdiff_t" >&5 9383if eval "test \"`echo '$''{'ac_cv_sizeof_ptrdiff_t'+set}'`\" = set"; then 9384 echo $ac_n "(cached) $ac_c" 1>&6 9385else 9386 if test "$cross_compiling" = yes; then 9387 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9388else 9389 cat > conftest.$ac_ext <<EOF 9390#line 9391 "configure" 9391#include "confdefs.h" 9392#include <stdio.h> 9393#if HAVE_STDDEF_H || STDC_HEADERS 9394#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9395#endif 9396#ifdef HAVE_SYS_TYPES_H 9397#include <sys/types.h> 9398#endif 9399int 9400main() 9401{ 9402 FILE *f=fopen("conftestval", "w"); 9403 if (!f) return(1); 9404 fprintf(f, "%d\n", (int)sizeof(ptrdiff_t)); 9405 return(0); 9406} 9407EOF 9408if { { eval echo configure:9409: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9409then 9410 ac_cv_sizeof_ptrdiff_t=`cat conftestval` 9411else 9412 echo "configure: failed program was:" >&5 9413 cat conftest.$ac_ext >&5 9414 rm -fr conftest* 9415 ac_cv_sizeof_ptrdiff_t=0 9416fi 9417rm -fr conftest* 9418fi 9419 9420fi 9421echo "$ac_t""$ac_cv_sizeof_ptrdiff_t" 1>&6 9422cat >> confdefs.h <<EOF 9423#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t 9424EOF 9425 9426 9427 9428echo $ac_n "checking size of mode_t""... $ac_c" 1>&6 9429echo "configure:9430: checking size of mode_t" >&5 9430if eval "test \"`echo '$''{'ac_cv_sizeof_mode_t'+set}'`\" = set"; then 9431 echo $ac_n "(cached) $ac_c" 1>&6 9432else 9433 if test "$cross_compiling" = yes; then 9434 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9435else 9436 cat > conftest.$ac_ext <<EOF 9437#line 9438 "configure" 9438#include "confdefs.h" 9439#include <stdio.h> 9440#if HAVE_STDDEF_H || STDC_HEADERS 9441#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9442#endif 9443#ifdef HAVE_SYS_TYPES_H 9444#include <sys/types.h> 9445#endif 9446int 9447main() 9448{ 9449 FILE *f=fopen("conftestval", "w"); 9450 if (!f) return(1); 9451 fprintf(f, "%d\n", (int)sizeof(mode_t)); 9452 return(0); 9453} 9454EOF 9455if { { eval echo configure:9456: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9456then 9457 ac_cv_sizeof_mode_t=`cat conftestval` 9458else 9459 echo "configure: failed program was:" >&5 9460 cat conftest.$ac_ext >&5 9461 rm -fr conftest* 9462 ac_cv_sizeof_mode_t=0 9463fi 9464rm -fr conftest* 9465fi 9466 9467fi 9468echo "$ac_t""$ac_cv_sizeof_mode_t" 1>&6 9469cat >> confdefs.h <<EOF 9470#define SIZEOF_MODE_T $ac_cv_sizeof_mode_t 9471EOF 9472 9473 9474echo $ac_n "checking size of uid_t""... $ac_c" 1>&6 9475echo "configure:9476: checking size of uid_t" >&5 9476if eval "test \"`echo '$''{'ac_cv_sizeof_uid_t'+set}'`\" = set"; then 9477 echo $ac_n "(cached) $ac_c" 1>&6 9478else 9479 if test "$cross_compiling" = yes; then 9480 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9481else 9482 cat > conftest.$ac_ext <<EOF 9483#line 9484 "configure" 9484#include "confdefs.h" 9485#include <stdio.h> 9486#if HAVE_STDDEF_H || STDC_HEADERS 9487#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9488#endif 9489#ifdef HAVE_SYS_TYPES_H 9490#include <sys/types.h> 9491#endif 9492int 9493main() 9494{ 9495 FILE *f=fopen("conftestval", "w"); 9496 if (!f) return(1); 9497 fprintf(f, "%d\n", (int)sizeof(uid_t)); 9498 return(0); 9499} 9500EOF 9501if { { eval echo configure:9502: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9502then 9503 ac_cv_sizeof_uid_t=`cat conftestval` 9504else 9505 echo "configure: failed program was:" >&5 9506 cat conftest.$ac_ext >&5 9507 rm -fr conftest* 9508 ac_cv_sizeof_uid_t=0 9509fi 9510rm -fr conftest* 9511fi 9512 9513fi 9514echo "$ac_t""$ac_cv_sizeof_uid_t" 1>&6 9515cat >> confdefs.h <<EOF 9516#define SIZEOF_UID_T $ac_cv_sizeof_uid_t 9517EOF 9518 9519 9520echo $ac_n "checking size of gid_t""... $ac_c" 1>&6 9521echo "configure:9522: checking size of gid_t" >&5 9522if eval "test \"`echo '$''{'ac_cv_sizeof_gid_t'+set}'`\" = set"; then 9523 echo $ac_n "(cached) $ac_c" 1>&6 9524else 9525 if test "$cross_compiling" = yes; then 9526 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9527else 9528 cat > conftest.$ac_ext <<EOF 9529#line 9530 "configure" 9530#include "confdefs.h" 9531#include <stdio.h> 9532#if HAVE_STDDEF_H || STDC_HEADERS 9533#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9534#endif 9535#ifdef HAVE_SYS_TYPES_H 9536#include <sys/types.h> 9537#endif 9538int 9539main() 9540{ 9541 FILE *f=fopen("conftestval", "w"); 9542 if (!f) return(1); 9543 fprintf(f, "%d\n", (int)sizeof(gid_t)); 9544 return(0); 9545} 9546EOF 9547if { { eval echo configure:9548: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9548then 9549 ac_cv_sizeof_gid_t=`cat conftestval` 9550else 9551 echo "configure: failed program was:" >&5 9552 cat conftest.$ac_ext >&5 9553 rm -fr conftest* 9554 ac_cv_sizeof_gid_t=0 9555fi 9556rm -fr conftest* 9557fi 9558 9559fi 9560echo "$ac_t""$ac_cv_sizeof_gid_t" 1>&6 9561cat >> confdefs.h <<EOF 9562#define SIZEOF_GID_T $ac_cv_sizeof_gid_t 9563EOF 9564 9565 9566echo $ac_n "checking size of pid_t""... $ac_c" 1>&6 9567echo "configure:9568: checking size of pid_t" >&5 9568if eval "test \"`echo '$''{'ac_cv_sizeof_pid_t'+set}'`\" = set"; then 9569 echo $ac_n "(cached) $ac_c" 1>&6 9570else 9571 if test "$cross_compiling" = yes; then 9572 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9573else 9574 cat > conftest.$ac_ext <<EOF 9575#line 9576 "configure" 9576#include "confdefs.h" 9577#include <stdio.h> 9578#if HAVE_STDDEF_H || STDC_HEADERS 9579#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9580#endif 9581#ifdef HAVE_SYS_TYPES_H 9582#include <sys/types.h> 9583#endif 9584int 9585main() 9586{ 9587 FILE *f=fopen("conftestval", "w"); 9588 if (!f) return(1); 9589 fprintf(f, "%d\n", (int)sizeof(pid_t)); 9590 return(0); 9591} 9592EOF 9593if { { eval echo configure:9594: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9594then 9595 ac_cv_sizeof_pid_t=`cat conftestval` 9596else 9597 echo "configure: failed program was:" >&5 9598 cat conftest.$ac_ext >&5 9599 rm -fr conftest* 9600 ac_cv_sizeof_pid_t=0 9601fi 9602rm -fr conftest* 9603fi 9604 9605fi 9606echo "$ac_t""$ac_cv_sizeof_pid_t" 1>&6 9607cat >> confdefs.h <<EOF 9608#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 9609EOF 9610 9611 9612 9613echo $ac_n "checking size of dev_t""... $ac_c" 1>&6 9614echo "configure:9615: checking size of dev_t" >&5 9615if eval "test \"`echo '$''{'ac_cv_sizeof_dev_t'+set}'`\" = set"; then 9616 echo $ac_n "(cached) $ac_c" 1>&6 9617else 9618 if test "$cross_compiling" = yes; then 9619 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9620else 9621 cat > conftest.$ac_ext <<EOF 9622#line 9623 "configure" 9623#include "confdefs.h" 9624#include <stdio.h> 9625#if HAVE_STDDEF_H || STDC_HEADERS 9626#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9627#endif 9628#ifdef HAVE_SYS_TYPES_H 9629#include <sys/types.h> 9630#endif 9631int 9632main() 9633{ 9634 FILE *f=fopen("conftestval", "w"); 9635 if (!f) return(1); 9636 fprintf(f, "%d\n", (int)sizeof(dev_t)); 9637 return(0); 9638} 9639EOF 9640if { { eval echo configure:9641: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9641then 9642 ac_cv_sizeof_dev_t=`cat conftestval` 9643else 9644 echo "configure: failed program was:" >&5 9645 cat conftest.$ac_ext >&5 9646 rm -fr conftest* 9647 ac_cv_sizeof_dev_t=0 9648fi 9649rm -fr conftest* 9650fi 9651 9652fi 9653echo "$ac_t""$ac_cv_sizeof_dev_t" 1>&6 9654cat >> confdefs.h <<EOF 9655#define SIZEOF_DEV_T $ac_cv_sizeof_dev_t 9656EOF 9657 9658 9659echo $ac_n "checking size of major_t""... $ac_c" 1>&6 9660echo "configure:9661: checking size of major_t" >&5 9661if eval "test \"`echo '$''{'ac_cv_sizeof_major_t'+set}'`\" = set"; then 9662 echo $ac_n "(cached) $ac_c" 1>&6 9663else 9664 if test "$cross_compiling" = yes; then 9665 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9666else 9667 cat > conftest.$ac_ext <<EOF 9668#line 9669 "configure" 9669#include "confdefs.h" 9670#include <stdio.h> 9671#if HAVE_STDDEF_H || STDC_HEADERS 9672#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9673#endif 9674#ifdef HAVE_SYS_TYPES_H 9675#include <sys/types.h> 9676#endif 9677int 9678main() 9679{ 9680 FILE *f=fopen("conftestval", "w"); 9681 if (!f) return(1); 9682 fprintf(f, "%d\n", (int)sizeof(major_t)); 9683 return(0); 9684} 9685EOF 9686if { { eval echo configure:9687: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9687then 9688 ac_cv_sizeof_major_t=`cat conftestval` 9689else 9690 echo "configure: failed program was:" >&5 9691 cat conftest.$ac_ext >&5 9692 rm -fr conftest* 9693 ac_cv_sizeof_major_t=0 9694fi 9695rm -fr conftest* 9696fi 9697 9698fi 9699echo "$ac_t""$ac_cv_sizeof_major_t" 1>&6 9700cat >> confdefs.h <<EOF 9701#define SIZEOF_MAJOR_T $ac_cv_sizeof_major_t 9702EOF 9703 9704 9705echo $ac_n "checking size of minor_t""... $ac_c" 1>&6 9706echo "configure:9707: checking size of minor_t" >&5 9707if eval "test \"`echo '$''{'ac_cv_sizeof_minor_t'+set}'`\" = set"; then 9708 echo $ac_n "(cached) $ac_c" 1>&6 9709else 9710 if test "$cross_compiling" = yes; then 9711 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9712else 9713 cat > conftest.$ac_ext <<EOF 9714#line 9715 "configure" 9715#include "confdefs.h" 9716#include <stdio.h> 9717#if HAVE_STDDEF_H || STDC_HEADERS 9718#include <stddef.h> /* For ptrdiff_t, wchar_t, size_t */ 9719#endif 9720#ifdef HAVE_SYS_TYPES_H 9721#include <sys/types.h> 9722#endif 9723int 9724main() 9725{ 9726 FILE *f=fopen("conftestval", "w"); 9727 if (!f) return(1); 9728 fprintf(f, "%d\n", (int)sizeof(minor_t)); 9729 return(0); 9730} 9731EOF 9732if { { eval echo configure:9733: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9733then 9734 ac_cv_sizeof_minor_t=`cat conftestval` 9735else 9736 echo "configure: failed program was:" >&5 9737 cat conftest.$ac_ext >&5 9738 rm -fr conftest* 9739 ac_cv_sizeof_minor_t=0 9740fi 9741rm -fr conftest* 9742fi 9743 9744fi 9745echo "$ac_t""$ac_cv_sizeof_minor_t" 1>&6 9746cat >> confdefs.h <<EOF 9747#define SIZEOF_MINOR_T $ac_cv_sizeof_minor_t 9748EOF 9749 9750 9751 9752echo $ac_n "checking size of time_t""... $ac_c" 1>&6 9753echo "configure:9754: checking size of time_t" >&5 9754if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then 9755 echo $ac_n "(cached) $ac_c" 1>&6 9756else 9757 if test "$cross_compiling" = yes; then 9758 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9759else 9760 cat > conftest.$ac_ext <<EOF 9761#line 9762 "configure" 9762#include "confdefs.h" 9763#include <stdio.h> 9764#include <sys/types.h> 9765#ifdef TIME_WITH_SYS_TIME 9766# include <sys/time.h> 9767# include <time.h> 9768#else 9769#ifdef HAVE_SYS_TIME_H 9770# include <sys/time.h> 9771#else 9772# include <time.h> 9773#endif 9774#endif 9775int 9776main() 9777{ 9778 FILE *f=fopen("conftestval", "w"); 9779 if (!f) return(1); 9780 fprintf(f, "%d\n", (int)sizeof(time_t)); 9781 return(0); 9782} 9783EOF 9784if { { eval echo configure:9785: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9785then 9786 ac_cv_sizeof_time_t=`cat conftestval` 9787else 9788 echo "configure: failed program was:" >&5 9789 cat conftest.$ac_ext >&5 9790 rm -fr conftest* 9791 ac_cv_sizeof_time_t=SIZEOF_LONG_INT 9792fi 9793rm -fr conftest* 9794fi 9795 9796fi 9797echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 9798cat >> confdefs.h <<EOF 9799#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 9800EOF 9801 9802 9803echo $ac_n "checking size of wchar""... $ac_c" 1>&6 9804echo "configure:9805: checking size of wchar" >&5 9805if eval "test \"`echo '$''{'ac_cv_sizeof_wchar'+set}'`\" = set"; then 9806 echo $ac_n "(cached) $ac_c" 1>&6 9807else 9808 if test "$cross_compiling" = yes; then 9809 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9810else 9811 cat > conftest.$ac_ext <<EOF 9812#line 9813 "configure" 9813#include "confdefs.h" 9814#include <stdio.h> 9815int 9816main() 9817{ 9818 FILE *f=fopen("conftestval", "w"); 9819 if (!f) return(1); 9820 fprintf(f, "%d\n", (int)sizeof(L'a')); 9821 return(0); 9822} 9823EOF 9824if { { eval echo configure:9825: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9825then 9826 ac_cv_sizeof_wchar=`cat conftestval` 9827else 9828 echo "configure: failed program was:" >&5 9829 cat conftest.$ac_ext >&5 9830 rm -fr conftest* 9831 ac_cv_sizeof_wchar=0 9832fi 9833rm -fr conftest* 9834fi 9835 9836fi 9837echo "$ac_t""$ac_cv_sizeof_wchar" 1>&6 9838cat >> confdefs.h <<EOF 9839#define SIZEOF_WCHAR $ac_cv_sizeof_wchar 9840EOF 9841 9842 9843echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 9844echo "configure:9845: checking size of wchar_t" >&5 9845if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then 9846 echo $ac_n "(cached) $ac_c" 1>&6 9847else 9848 if test "$cross_compiling" = yes; then 9849 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 9850else 9851 cat > conftest.$ac_ext <<EOF 9852#line 9853 "configure" 9853#include "confdefs.h" 9854#include <stdio.h> 9855#ifdef HAVE_SYS_TYPES_H 9856#include <sys/types.h> 9857#endif 9858#ifdef HAVE_STDLIB_H 9859#include <stdlib.h> 9860#endif 9861#ifdef HAVE_WCHAR_H 9862#include <wchar.h> 9863#endif 9864int 9865main() 9866{ 9867 FILE *f=fopen("conftestval", "w"); 9868 if (!f) return(1); 9869 fprintf(f, "%d\n", (int)sizeof(wchar_t)); 9870 return(0); 9871} 9872EOF 9873if { { eval echo configure:9874: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9874then 9875 ac_cv_sizeof_wchar_t=`cat conftestval` 9876else 9877 echo "configure: failed program was:" >&5 9878 cat conftest.$ac_ext >&5 9879 rm -fr conftest* 9880 ac_cv_sizeof_wchar_t=SIZEOF_CHAR 9881fi 9882rm -fr conftest* 9883fi 9884 9885fi 9886echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 9887cat >> confdefs.h <<EOF 9888#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 9889EOF 9890 9891 9892 9893echo $ac_n "checking if char is unsigned""... $ac_c" 1>&6 9894echo "configure:9895: checking if char is unsigned" >&5 9895if eval "test \"`echo '$''{'ac_cv_type_char_unsigned'+set}'`\" = set"; then 9896 echo $ac_n "(cached) $ac_c" 1>&6 9897else 9898 if test "$cross_compiling" = yes; then 9899 ac_cv_type_char_unsigned=no 9900else 9901 cat > conftest.$ac_ext <<EOF 9902#line 9903 "configure" 9903#include "confdefs.h" 9904 9905int 9906main() 9907{ 9908 char c; 9909 9910 c = -1; 9911 return(c < 0);} 9912EOF 9913if { { eval echo configure:9914: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 9914then 9915 ac_cv_type_char_unsigned=yes 9916else 9917 echo "configure: failed program was:" >&5 9918 cat conftest.$ac_ext >&5 9919 rm -fr conftest* 9920 ac_cv_type_char_unsigned=no 9921fi 9922rm -fr conftest* 9923fi 9924 9925fi 9926 9927echo "$ac_t""$ac_cv_type_char_unsigned" 1>&6 9928if test $ac_cv_type_char_unsigned = yes; then 9929 cat >> confdefs.h <<\EOF 9930#define CHAR_IS_UNSIGNED 1 9931EOF 9932 9933fi 9934echo $ac_n "checking if va_list is an array""... $ac_c" 1>&6 9935echo "configure:9936: checking if va_list is an array" >&5 9936if eval "test \"`echo '$''{'ac_cv_type_va_list_array'+set}'`\" = set"; then 9937 echo $ac_n "(cached) $ac_c" 1>&6 9938else 9939 cat > conftest.$ac_ext <<EOF 9940#line 9941 "configure" 9941#include "confdefs.h" 9942 9943#ifdef HAVE_STDARG_H 9944# include <stdarg.h> 9945#else 9946# include <varargs.h> 9947#endif 9948 9949int main() { 9950 9951va_list a, b; 9952 9953a = b; 9954; return 0; } 9955EOF 9956if { { eval echo configure:9957: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 9957 rm -rf conftest* 9958 ac_cv_type_va_list_array=no 9959else 9960 echo "configure: failed program was:" >&5 9961 cat conftest.$ac_ext >&5 9962 rm -rf conftest* 9963 ac_cv_type_va_list_array=yes 9964fi 9965rm -f conftest* 9966fi 9967 9968echo "$ac_t""$ac_cv_type_va_list_array" 1>&6 9969if test $ac_cv_type_va_list_array = yes; then 9970 cat >> confdefs.h <<\EOF 9971#define VA_LIST_IS_ARRAY 1 9972EOF 9973 9974fi 9975echo $ac_n "checking for f->_flags in FILE *""... $ac_c" 1>&6 9976echo "configure:9977: checking for f->_flags in FILE *" >&5 9977if eval "test \"`echo '$''{'ac_cv_file__flags'+set}'`\" = set"; then 9978 echo $ac_n "(cached) $ac_c" 1>&6 9979else 9980 cat > conftest.$ac_ext <<EOF 9981#line 9982 "configure" 9982#include "confdefs.h" 9983#include <stdio.h> 9984int main() { 9985FILE *f; 9986int flags; 9987f = fopen("confdefs.h", "r"); 9988flags = f->_flags; 9989fclose(f); 9990; return 0; } 9991EOF 9992if { { eval echo configure:9993: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 9993 rm -rf conftest* 9994 ac_cv_file__flags=yes 9995else 9996 echo "configure: failed program was:" >&5 9997 cat conftest.$ac_ext >&5 9998 rm -rf conftest* 9999 ac_cv_file__flags=no 10000fi 10001rm -f conftest* 10002fi 10003 10004echo "$ac_t""$ac_cv_file__flags" 1>&6 10005if test $ac_cv_file__flags = yes; then 10006 cat >> confdefs.h <<\EOF 10007#define HAVE_FILE__FLAGS 1 10008EOF 10009 10010fi 10011echo $ac_n "checking for f->_IO_buf_base in FILE *""... $ac_c" 1>&6 10012echo "configure:10013: checking for f->_IO_buf_base in FILE *" >&5 10013if eval "test \"`echo '$''{'ac_cv_file__io_buf_base'+set}'`\" = set"; then 10014 echo $ac_n "(cached) $ac_c" 1>&6 10015else 10016 cat > conftest.$ac_ext <<EOF 10017#line 10018 "configure" 10018#include "confdefs.h" 10019#include <stdio.h> 10020int main() { 10021FILE *f; 10022char *ptr; 10023f = fopen("confdefs.h", "r"); 10024ptr = f->_IO_buf_base; 10025fclose(f); 10026; return 0; } 10027EOF 10028if { { eval echo configure:10029: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 10029 rm -rf conftest* 10030 ac_cv_file__io_buf_base=yes 10031else 10032 echo "configure: failed program was:" >&5 10033 cat conftest.$ac_ext >&5 10034 rm -rf conftest* 10035 ac_cv_file__io_buf_base=no 10036fi 10037rm -f conftest* 10038fi 10039 10040echo "$ac_t""$ac_cv_file__io_buf_base" 1>&6 10041if test $ac_cv_file__io_buf_base = yes; then 10042 cat >> confdefs.h <<\EOF 10043#define HAVE_FILE__IO_BUF_BASE 1 10044EOF 10045 10046fi 10047echo $ac_n "checking for struct timeval in time.h or sys/time.h""... $ac_c" 1>&6 10048echo "configure:10049: checking for struct timeval in time.h or sys/time.h" >&5 10049if eval "test \"`echo '$''{'ac_cv_struct_timeval'+set}'`\" = set"; then 10050 echo $ac_n "(cached) $ac_c" 1>&6 10051else 10052 cat > conftest.$ac_ext <<EOF 10053#line 10054 "configure" 10054#include "confdefs.h" 10055 10056#include <sys/types.h> 10057#ifdef TIME_WITH_SYS_TIME 10058# include <sys/time.h> 10059# include <time.h> 10060#else 10061#ifdef HAVE_SYS_TIME_H 10062# include <sys/time.h> 10063#else 10064# include <time.h> 10065#endif 10066#endif 10067int main() { 10068struct timeval tv; 10069; return 0; } 10070EOF 10071if { { eval echo configure:10072: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10072 rm -rf conftest* 10073 ac_cv_struct_timeval=yes 10074else 10075 echo "configure: failed program was:" >&5 10076 cat conftest.$ac_ext >&5 10077 rm -rf conftest* 10078 ac_cv_struct_timeval=no 10079fi 10080rm -f conftest* 10081fi 10082 10083echo "$ac_t""$ac_cv_struct_timeval" 1>&6 10084if test $ac_cv_struct_timeval = yes; then 10085 cat >> confdefs.h <<\EOF 10086#define HAVE_STRUCT_TIMEVAL 1 10087EOF 10088 10089fi 10090echo $ac_n "checking for struct timezone in time.h or sys/time.h""... $ac_c" 1>&6 10091echo "configure:10092: checking for struct timezone in time.h or sys/time.h" >&5 10092if eval "test \"`echo '$''{'ac_cv_struct_timezone'+set}'`\" = set"; then 10093 echo $ac_n "(cached) $ac_c" 1>&6 10094else 10095 cat > conftest.$ac_ext <<EOF 10096#line 10097 "configure" 10097#include "confdefs.h" 10098 10099#include <sys/types.h> 10100#ifdef TIME_WITH_SYS_TIME 10101# include <sys/time.h> 10102# include <time.h> 10103#else 10104#ifdef HAVE_SYS_TIME_H 10105# include <sys/time.h> 10106#else 10107# include <time.h> 10108#endif 10109#endif 10110int main() { 10111struct timezone tz; 10112; return 0; } 10113EOF 10114if { { eval echo configure:10115: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10115 rm -rf conftest* 10116 ac_cv_struct_timezone=yes 10117else 10118 echo "configure: failed program was:" >&5 10119 cat conftest.$ac_ext >&5 10120 rm -rf conftest* 10121 ac_cv_struct_timezone=no 10122fi 10123rm -f conftest* 10124fi 10125 10126echo "$ac_t""$ac_cv_struct_timezone" 1>&6 10127if test $ac_cv_struct_timezone = yes; then 10128 cat >> confdefs.h <<\EOF 10129#define HAVE_STRUCT_TIMEZONE 1 10130EOF 10131 10132fi 10133echo $ac_n "checking for struct timespec in time.h or sys/time.h""... $ac_c" 1>&6 10134echo "configure:10135: checking for struct timespec in time.h or sys/time.h" >&5 10135if eval "test \"`echo '$''{'ac_cv_struct_timespec'+set}'`\" = set"; then 10136 echo $ac_n "(cached) $ac_c" 1>&6 10137else 10138 cat > conftest.$ac_ext <<EOF 10139#line 10140 "configure" 10140#include "confdefs.h" 10141 10142#include <sys/types.h> 10143#ifdef TIME_WITH_SYS_TIME 10144# include <sys/time.h> 10145# include <time.h> 10146#else 10147#ifdef HAVE_SYS_TIME_H 10148# include <sys/time.h> 10149#else 10150# include <time.h> 10151#endif 10152#endif 10153int main() { 10154struct timespec ts; 10155; return 0; } 10156EOF 10157if { { eval echo configure:10158: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10158 rm -rf conftest* 10159 ac_cv_struct_timespec=yes 10160else 10161 echo "configure: failed program was:" >&5 10162 cat conftest.$ac_ext >&5 10163 rm -rf conftest* 10164 ac_cv_struct_timespec=no 10165fi 10166rm -f conftest* 10167fi 10168 10169echo "$ac_t""$ac_cv_struct_timespec" 1>&6 10170if test $ac_cv_struct_timespec = yes; then 10171 cat >> confdefs.h <<\EOF 10172#define HAVE_STRUCT_TIMESPEC 1 10173EOF 10174 10175fi 10176echo $ac_n "checking if struct mtget contains mt_type""... $ac_c" 1>&6 10177echo "configure:10178: checking if struct mtget contains mt_type" >&5 10178if eval "test \"`echo '$''{'ac_cv_struct_mtget_type'+set}'`\" = set"; then 10179 echo $ac_n "(cached) $ac_c" 1>&6 10180else 10181 cat > conftest.$ac_ext <<EOF 10182#line 10183 "configure" 10183#include "confdefs.h" 10184#include <sys/types.h> 10185#include <sys/mtio.h> 10186int main() { 10187struct mtget t; t.mt_type = 0; 10188; return 0; } 10189EOF 10190if { { eval echo configure:10191: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10191 rm -rf conftest* 10192 ac_cv_struct_mtget_type=yes 10193else 10194 echo "configure: failed program was:" >&5 10195 cat conftest.$ac_ext >&5 10196 rm -rf conftest* 10197 ac_cv_struct_mtget_type=no 10198fi 10199rm -f conftest* 10200fi 10201 10202echo "$ac_t""$ac_cv_struct_mtget_type" 1>&6 10203if test $ac_cv_struct_mtget_type = yes; then 10204 cat >> confdefs.h <<\EOF 10205#define HAVE_MTGET_TYPE 1 10206EOF 10207 10208fi 10209echo $ac_n "checking if struct mtget contains mt_model""... $ac_c" 1>&6 10210echo "configure:10211: checking if struct mtget contains mt_model" >&5 10211if eval "test \"`echo '$''{'ac_cv_struct_mtget_model'+set}'`\" = set"; then 10212 echo $ac_n "(cached) $ac_c" 1>&6 10213else 10214 cat > conftest.$ac_ext <<EOF 10215#line 10216 "configure" 10216#include "confdefs.h" 10217#include <sys/types.h> 10218#include <sys/mtio.h> 10219int main() { 10220struct mtget t; t.mt_model = 0; 10221; return 0; } 10222EOF 10223if { { eval echo configure:10224: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10224 rm -rf conftest* 10225 ac_cv_struct_mtget_model=yes 10226else 10227 echo "configure: failed program was:" >&5 10228 cat conftest.$ac_ext >&5 10229 rm -rf conftest* 10230 ac_cv_struct_mtget_model=no 10231fi 10232rm -f conftest* 10233fi 10234 10235echo "$ac_t""$ac_cv_struct_mtget_model" 1>&6 10236if test $ac_cv_struct_mtget_model = yes; then 10237 cat >> confdefs.h <<\EOF 10238#define HAVE_MTGET_MODEL 1 10239EOF 10240 10241fi 10242echo $ac_n "checking if struct mtget contains mt_dsreg""... $ac_c" 1>&6 10243echo "configure:10244: checking if struct mtget contains mt_dsreg" >&5 10244if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg'+set}'`\" = set"; then 10245 echo $ac_n "(cached) $ac_c" 1>&6 10246else 10247 cat > conftest.$ac_ext <<EOF 10248#line 10249 "configure" 10249#include "confdefs.h" 10250#include <sys/types.h> 10251#include <sys/mtio.h> 10252int main() { 10253struct mtget t; t.mt_dsreg = 0; 10254; return 0; } 10255EOF 10256if { { eval echo configure:10257: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10257 rm -rf conftest* 10258 ac_cv_struct_mtget_dsreg=yes 10259else 10260 echo "configure: failed program was:" >&5 10261 cat conftest.$ac_ext >&5 10262 rm -rf conftest* 10263 ac_cv_struct_mtget_dsreg=no 10264fi 10265rm -f conftest* 10266fi 10267 10268echo "$ac_t""$ac_cv_struct_mtget_dsreg" 1>&6 10269if test $ac_cv_struct_mtget_dsreg = yes; then 10270 cat >> confdefs.h <<\EOF 10271#define HAVE_MTGET_DSREG 1 10272EOF 10273 10274fi 10275echo $ac_n "checking if struct mtget contains mt_dsreg1""... $ac_c" 1>&6 10276echo "configure:10277: checking if struct mtget contains mt_dsreg1" >&5 10277if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg1'+set}'`\" = set"; then 10278 echo $ac_n "(cached) $ac_c" 1>&6 10279else 10280 cat > conftest.$ac_ext <<EOF 10281#line 10282 "configure" 10282#include "confdefs.h" 10283#include <sys/types.h> 10284#include <sys/mtio.h> 10285int main() { 10286struct mtget t; t.mt_dsreg1 = 0; 10287; return 0; } 10288EOF 10289if { { eval echo configure:10290: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10290 rm -rf conftest* 10291 ac_cv_struct_mtget_dsreg1=yes 10292else 10293 echo "configure: failed program was:" >&5 10294 cat conftest.$ac_ext >&5 10295 rm -rf conftest* 10296 ac_cv_struct_mtget_dsreg1=no 10297fi 10298rm -f conftest* 10299fi 10300 10301echo "$ac_t""$ac_cv_struct_mtget_dsreg1" 1>&6 10302if test $ac_cv_struct_mtget_dsreg1 = yes; then 10303 cat >> confdefs.h <<\EOF 10304#define HAVE_MTGET_DSREG1 1 10305EOF 10306 10307fi 10308echo $ac_n "checking if struct mtget contains mt_dsreg2""... $ac_c" 1>&6 10309echo "configure:10310: checking if struct mtget contains mt_dsreg2" >&5 10310if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg2'+set}'`\" = set"; then 10311 echo $ac_n "(cached) $ac_c" 1>&6 10312else 10313 cat > conftest.$ac_ext <<EOF 10314#line 10315 "configure" 10315#include "confdefs.h" 10316#include <sys/types.h> 10317#include <sys/mtio.h> 10318int main() { 10319struct mtget t; t.mt_dsreg2 = 0; 10320; return 0; } 10321EOF 10322if { { eval echo configure:10323: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10323 rm -rf conftest* 10324 ac_cv_struct_mtget_dsreg2=yes 10325else 10326 echo "configure: failed program was:" >&5 10327 cat conftest.$ac_ext >&5 10328 rm -rf conftest* 10329 ac_cv_struct_mtget_dsreg2=no 10330fi 10331rm -f conftest* 10332fi 10333 10334echo "$ac_t""$ac_cv_struct_mtget_dsreg2" 1>&6 10335if test $ac_cv_struct_mtget_dsreg2 = yes; then 10336 cat >> confdefs.h <<\EOF 10337#define HAVE_MTGET_DSREG2 1 10338EOF 10339 10340fi 10341echo $ac_n "checking if struct mtget contains mt_gstat""... $ac_c" 1>&6 10342echo "configure:10343: checking if struct mtget contains mt_gstat" >&5 10343if eval "test \"`echo '$''{'ac_cv_struct_mtget_gstat'+set}'`\" = set"; then 10344 echo $ac_n "(cached) $ac_c" 1>&6 10345else 10346 cat > conftest.$ac_ext <<EOF 10347#line 10348 "configure" 10348#include "confdefs.h" 10349#include <sys/types.h> 10350#include <sys/mtio.h> 10351int main() { 10352struct mtget t; t.mt_gstat = 0; 10353; return 0; } 10354EOF 10355if { { eval echo configure:10356: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10356 rm -rf conftest* 10357 ac_cv_struct_mtget_gstat=yes 10358else 10359 echo "configure: failed program was:" >&5 10360 cat conftest.$ac_ext >&5 10361 rm -rf conftest* 10362 ac_cv_struct_mtget_gstat=no 10363fi 10364rm -f conftest* 10365fi 10366 10367echo "$ac_t""$ac_cv_struct_mtget_gstat" 1>&6 10368if test $ac_cv_struct_mtget_gstat = yes; then 10369 cat >> confdefs.h <<\EOF 10370#define HAVE_MTGET_GSTAT 1 10371EOF 10372 10373fi 10374echo $ac_n "checking if struct mtget contains mt_erreg""... $ac_c" 1>&6 10375echo "configure:10376: checking if struct mtget contains mt_erreg" >&5 10376if eval "test \"`echo '$''{'ac_cv_struct_mtget_erreg'+set}'`\" = set"; then 10377 echo $ac_n "(cached) $ac_c" 1>&6 10378else 10379 cat > conftest.$ac_ext <<EOF 10380#line 10381 "configure" 10381#include "confdefs.h" 10382#include <sys/types.h> 10383#include <sys/mtio.h> 10384int main() { 10385struct mtget t; t.mt_erreg = 0; 10386; return 0; } 10387EOF 10388if { { eval echo configure:10389: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10389 rm -rf conftest* 10390 ac_cv_struct_mtget_erreg=yes 10391else 10392 echo "configure: failed program was:" >&5 10393 cat conftest.$ac_ext >&5 10394 rm -rf conftest* 10395 ac_cv_struct_mtget_erreg=no 10396fi 10397rm -f conftest* 10398fi 10399 10400echo "$ac_t""$ac_cv_struct_mtget_erreg" 1>&6 10401if test $ac_cv_struct_mtget_erreg = yes; then 10402 cat >> confdefs.h <<\EOF 10403#define HAVE_MTGET_ERREG 1 10404EOF 10405 10406fi 10407echo $ac_n "checking if struct mtget contains mt_resid""... $ac_c" 1>&6 10408echo "configure:10409: checking if struct mtget contains mt_resid" >&5 10409if eval "test \"`echo '$''{'ac_cv_struct_mtget_resid'+set}'`\" = set"; then 10410 echo $ac_n "(cached) $ac_c" 1>&6 10411else 10412 cat > conftest.$ac_ext <<EOF 10413#line 10414 "configure" 10414#include "confdefs.h" 10415#include <sys/types.h> 10416#include <sys/mtio.h> 10417int main() { 10418struct mtget t; t.mt_resid = 0; 10419; return 0; } 10420EOF 10421if { { eval echo configure:10422: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10422 rm -rf conftest* 10423 ac_cv_struct_mtget_resid=yes 10424else 10425 echo "configure: failed program was:" >&5 10426 cat conftest.$ac_ext >&5 10427 rm -rf conftest* 10428 ac_cv_struct_mtget_resid=no 10429fi 10430rm -f conftest* 10431fi 10432 10433echo "$ac_t""$ac_cv_struct_mtget_resid" 1>&6 10434if test $ac_cv_struct_mtget_resid = yes; then 10435 cat >> confdefs.h <<\EOF 10436#define HAVE_MTGET_RESID 1 10437EOF 10438 10439fi 10440echo $ac_n "checking if struct mtget contains mt_fileno""... $ac_c" 1>&6 10441echo "configure:10442: checking if struct mtget contains mt_fileno" >&5 10442if eval "test \"`echo '$''{'ac_cv_struct_mtget_fileno'+set}'`\" = set"; then 10443 echo $ac_n "(cached) $ac_c" 1>&6 10444else 10445 cat > conftest.$ac_ext <<EOF 10446#line 10447 "configure" 10447#include "confdefs.h" 10448#include <sys/types.h> 10449#include <sys/mtio.h> 10450int main() { 10451struct mtget t; t.mt_fileno = 0; 10452; return 0; } 10453EOF 10454if { { eval echo configure:10455: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10455 rm -rf conftest* 10456 ac_cv_struct_mtget_fileno=yes 10457else 10458 echo "configure: failed program was:" >&5 10459 cat conftest.$ac_ext >&5 10460 rm -rf conftest* 10461 ac_cv_struct_mtget_fileno=no 10462fi 10463rm -f conftest* 10464fi 10465 10466echo "$ac_t""$ac_cv_struct_mtget_fileno" 1>&6 10467if test $ac_cv_struct_mtget_fileno = yes; then 10468 cat >> confdefs.h <<\EOF 10469#define HAVE_MTGET_FILENO 1 10470EOF 10471 10472fi 10473echo $ac_n "checking if struct mtget contains mt_blkno""... $ac_c" 1>&6 10474echo "configure:10475: checking if struct mtget contains mt_blkno" >&5 10475if eval "test \"`echo '$''{'ac_cv_struct_mtget_blkno'+set}'`\" = set"; then 10476 echo $ac_n "(cached) $ac_c" 1>&6 10477else 10478 cat > conftest.$ac_ext <<EOF 10479#line 10480 "configure" 10480#include "confdefs.h" 10481#include <sys/types.h> 10482#include <sys/mtio.h> 10483int main() { 10484struct mtget t; t.mt_blkno = 0; 10485; return 0; } 10486EOF 10487if { { eval echo configure:10488: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10488 rm -rf conftest* 10489 ac_cv_struct_mtget_blkno=yes 10490else 10491 echo "configure: failed program was:" >&5 10492 cat conftest.$ac_ext >&5 10493 rm -rf conftest* 10494 ac_cv_struct_mtget_blkno=no 10495fi 10496rm -f conftest* 10497fi 10498 10499echo "$ac_t""$ac_cv_struct_mtget_blkno" 1>&6 10500if test $ac_cv_struct_mtget_blkno = yes; then 10501 cat >> confdefs.h <<\EOF 10502#define HAVE_MTGET_BLKNO 1 10503EOF 10504 10505fi 10506echo $ac_n "checking if struct mtget contains mt_flags""... $ac_c" 1>&6 10507echo "configure:10508: checking if struct mtget contains mt_flags" >&5 10508if eval "test \"`echo '$''{'ac_cv_struct_mtget_flags'+set}'`\" = set"; then 10509 echo $ac_n "(cached) $ac_c" 1>&6 10510else 10511 cat > conftest.$ac_ext <<EOF 10512#line 10513 "configure" 10513#include "confdefs.h" 10514#include <sys/types.h> 10515#include <sys/mtio.h> 10516int main() { 10517struct mtget t; t.mt_flags = 0; 10518; return 0; } 10519EOF 10520if { { eval echo configure:10521: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10521 rm -rf conftest* 10522 ac_cv_struct_mtget_flags=yes 10523else 10524 echo "configure: failed program was:" >&5 10525 cat conftest.$ac_ext >&5 10526 rm -rf conftest* 10527 ac_cv_struct_mtget_flags=no 10528fi 10529rm -f conftest* 10530fi 10531 10532echo "$ac_t""$ac_cv_struct_mtget_flags" 1>&6 10533if test $ac_cv_struct_mtget_flags = yes; then 10534 cat >> confdefs.h <<\EOF 10535#define HAVE_MTGET_FLAGS 1 10536EOF 10537 10538fi 10539echo $ac_n "checking if struct mtget contains mt_bf""... $ac_c" 1>&6 10540echo "configure:10541: checking if struct mtget contains mt_bf" >&5 10541if eval "test \"`echo '$''{'ac_cv_struct_mtget_bf'+set}'`\" = set"; then 10542 echo $ac_n "(cached) $ac_c" 1>&6 10543else 10544 cat > conftest.$ac_ext <<EOF 10545#line 10546 "configure" 10546#include "confdefs.h" 10547#include <sys/types.h> 10548#include <sys/mtio.h> 10549int main() { 10550struct mtget t; t.mt_bf = 0; 10551; return 0; } 10552EOF 10553if { { eval echo configure:10554: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10554 rm -rf conftest* 10555 ac_cv_struct_mtget_bf=yes 10556else 10557 echo "configure: failed program was:" >&5 10558 cat conftest.$ac_ext >&5 10559 rm -rf conftest* 10560 ac_cv_struct_mtget_bf=no 10561fi 10562rm -f conftest* 10563fi 10564 10565echo "$ac_t""$ac_cv_struct_mtget_bf" 1>&6 10566if test $ac_cv_struct_mtget_bf = yes; then 10567 cat >> confdefs.h <<\EOF 10568#define HAVE_MTGET_BF 1 10569EOF 10570 10571fi 10572echo $ac_n "checking if struct rusage is declared in sys/resource.h""... $ac_c" 1>&6 10573echo "configure:10574: checking if struct rusage is declared in sys/resource.h" >&5 10574if eval "test \"`echo '$''{'ac_cv_struct_rusage'+set}'`\" = set"; then 10575 echo $ac_n "(cached) $ac_c" 1>&6 10576else 10577 cat > conftest.$ac_ext <<EOF 10578#line 10579 "configure" 10579#include "confdefs.h" 10580#include <sys/time.h> 10581#include <sys/resource.h> 10582int main() { 10583struct rusage r; 10584; return 0; } 10585EOF 10586if { { eval echo configure:10587: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10587 rm -rf conftest* 10588 ac_cv_struct_rusage=yes 10589else 10590 echo "configure: failed program was:" >&5 10591 cat conftest.$ac_ext >&5 10592 rm -rf conftest* 10593 ac_cv_struct_rusage=no 10594fi 10595rm -f conftest* 10596fi 10597 10598echo "$ac_t""$ac_cv_struct_rusage" 1>&6 10599if test $ac_cv_struct_rusage = yes; then 10600 cat >> confdefs.h <<\EOF 10601#define HAVE_STRUCT_RUSAGE 1 10602EOF 10603 10604fi 10605echo $ac_n "checking if struct siginfo contains si_utime""... $ac_c" 1>&6 10606echo "configure:10607: checking if struct siginfo contains si_utime" >&5 10607if eval "test \"`echo '$''{'ac_cv_struct_si_utime'+set}'`\" = set"; then 10608 echo $ac_n "(cached) $ac_c" 1>&6 10609else 10610 cat > conftest.$ac_ext <<EOF 10611#line 10612 "configure" 10612#include "confdefs.h" 10613#include <sys/types.h> 10614#include <sys/siginfo.h> 10615int main() { 10616struct siginfo si; si.si_utime = 0; 10617; return 0; } 10618EOF 10619if { { eval echo configure:10620: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10620 rm -rf conftest* 10621 ac_cv_struct_si_utime=yes 10622else 10623 echo "configure: failed program was:" >&5 10624 cat conftest.$ac_ext >&5 10625 rm -rf conftest* 10626 ac_cv_struct_si_utime=no 10627fi 10628rm -f conftest* 10629fi 10630 10631echo "$ac_t""$ac_cv_struct_si_utime" 1>&6 10632if test $ac_cv_struct_si_utime = yes; then 10633 cat >> confdefs.h <<\EOF 10634#define HAVE_SI_UTIME 1 10635EOF 10636 10637fi 10638echo $ac_n "checking if struct sockaddr_storage is declared in socket.h""... $ac_c" 1>&6 10639echo "configure:10640: checking if struct sockaddr_storage is declared in socket.h" >&5 10640if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then 10641 echo $ac_n "(cached) $ac_c" 1>&6 10642else 10643 cat > conftest.$ac_ext <<EOF 10644#line 10645 "configure" 10645#include "confdefs.h" 10646#include <sys/socket.h> 10647int main() { 10648struct sockaddr_storage ss; ss.ss_family = 0; return (ss.ss_family == 0); 10649; return 0; } 10650EOF 10651if { { eval echo configure:10652: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10652 rm -rf conftest* 10653 ac_cv_struct_sockaddr_storage=yes 10654else 10655 echo "configure: failed program was:" >&5 10656 cat conftest.$ac_ext >&5 10657 rm -rf conftest* 10658 ac_cv_struct_sockaddr_storage=no 10659fi 10660rm -f conftest* 10661fi 10662 10663echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 10664if test $ac_cv_struct_sockaddr_storage = yes; then 10665 cat >> confdefs.h <<\EOF 10666#define HAVE_SOCKADDR_STORAGE 1 10667EOF 10668 10669fi 10670echo $ac_n "checking if an illegal declaration for union semun in sys/sem.h exists""... $ac_c" 1>&6 10671echo "configure:10672: checking if an illegal declaration for union semun in sys/sem.h exists" >&5 10672if eval "test \"`echo '$''{'ac_cv_struct_union_semun'+set}'`\" = set"; then 10673 echo $ac_n "(cached) $ac_c" 1>&6 10674else 10675 cat > conftest.$ac_ext <<EOF 10676#line 10677 "configure" 10677#include "confdefs.h" 10678#include <sys/types.h> 10679#include <sys/ipc.h> 10680#include <sys/sem.h> 10681int main() { 10682union semun s; 10683; return 0; } 10684EOF 10685if { { eval echo configure:10686: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10686 rm -rf conftest* 10687 ac_cv_struct_union_semun=yes 10688else 10689 echo "configure: failed program was:" >&5 10690 cat conftest.$ac_ext >&5 10691 rm -rf conftest* 10692 ac_cv_struct_union_semun=no 10693fi 10694rm -f conftest* 10695fi 10696 10697echo "$ac_t""$ac_cv_struct_union_semun" 1>&6 10698if test $ac_cv_struct_union_semun = yes; then 10699 cat >> confdefs.h <<\EOF 10700#define HAVE_UNION_SEMUN 1 10701EOF 10702 10703fi 10704echo $ac_n "checking if union wait is declared in wait.h or sys/wait.h""... $ac_c" 1>&6 10705echo "configure:10706: checking if union wait is declared in wait.h or sys/wait.h" >&5 10706if eval "test \"`echo '$''{'ac_cv_struct_union_wait'+set}'`\" = set"; then 10707 echo $ac_n "(cached) $ac_c" 1>&6 10708else 10709 cat > conftest.$ac_ext <<EOF 10710#line 10711 "configure" 10711#include "confdefs.h" 10712#include <sys/types.h> 10713#if defined(HAVE_WAIT_H) 10714# include <wait.h> 10715#else 10716#include <sys/wait.h> 10717#endif 10718int main() { 10719union wait w; 10720; return 0; } 10721EOF 10722if { { eval echo configure:10723: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10723 rm -rf conftest* 10724 ac_cv_struct_union_wait=yes 10725else 10726 echo "configure: failed program was:" >&5 10727 cat conftest.$ac_ext >&5 10728 rm -rf conftest* 10729 ac_cv_struct_union_wait=no 10730fi 10731rm -f conftest* 10732fi 10733 10734echo "$ac_t""$ac_cv_struct_union_wait" 1>&6 10735if test $ac_cv_struct_union_wait = yes; then 10736 cat >> confdefs.h <<\EOF 10737#define HAVE_UNION_WAIT 1 10738EOF 10739 10740fi 10741echo $ac_n "checking if union wait is used by default""... $ac_c" 1>&6 10742echo "configure:10743: checking if union wait is used by default" >&5 10743if eval "test \"`echo '$''{'ac_cv_use_union_wait'+set}'`\" = set"; then 10744 echo $ac_n "(cached) $ac_c" 1>&6 10745else 10746 cat > conftest.$ac_ext <<EOF 10747#line 10748 "configure" 10748#include "confdefs.h" 10749#include <sys/types.h> 10750#if defined(HAVE_WAIT_H) 10751# include <wait.h> 10752#else 10753#include <sys/wait.h> 10754#endif 10755xxzzy WTERMSIG(status) 10756xxzzy WCOREDUMP(status) 10757xxzzy WEXITSTATUS(status) 10758xxzzy WSTOPSIG(status) 10759xxzzy WIFSTOPPED(status) 10760xxzzy WIFSIGNALED(status) 10761xxzzy WIFEXITED(status) 10762EOF 10763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10764 egrep "xxzzy.*x_|xxzzy.*union" >/dev/null 2>&1; then 10765 rm -rf conftest* 10766 ac_cv_use_union_wait=yes 10767else 10768 rm -rf conftest* 10769 ac_cv_use_union_wait=no 10770fi 10771rm -f conftest* 10772 10773fi 10774echo "$ac_t""$ac_cv_use_union_wait" 1>&6 10775if test $ac_cv_use_union_wait = yes; then 10776 cat >> confdefs.h <<\EOF 10777#define USE_UNION_WAIT 1 10778EOF 10779 10780fi 10781echo $ac_n "checking if struct stat contains st_spare1""... $ac_c" 1>&6 10782echo "configure:10783: checking if struct stat contains st_spare1" >&5 10783if eval "test \"`echo '$''{'ac_cv_struct_st_spare1'+set}'`\" = set"; then 10784 echo $ac_n "(cached) $ac_c" 1>&6 10785else 10786 cat > conftest.$ac_ext <<EOF 10787#line 10788 "configure" 10788#include "confdefs.h" 10789#include <sys/types.h> 10790#include <sys/stat.h> 10791int main() { 10792struct stat s; s.st_spare1 = 0; 10793; return 0; } 10794EOF 10795if { { eval echo configure:10796: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10796 rm -rf conftest* 10797 ac_cv_struct_st_spare1=yes 10798else 10799 echo "configure: failed program was:" >&5 10800 cat conftest.$ac_ext >&5 10801 rm -rf conftest* 10802 ac_cv_struct_st_spare1=no 10803fi 10804rm -f conftest* 10805fi 10806 10807echo "$ac_t""$ac_cv_struct_st_spare1" 1>&6 10808if test $ac_cv_struct_st_spare1 = yes; then 10809 cat >> confdefs.h <<\EOF 10810#define HAVE_ST_SPARE1 1 10811EOF 10812 10813fi 10814echo $ac_n "checking if struct stat contains st_atimensec""... $ac_c" 1>&6 10815echo "configure:10816: checking if struct stat contains st_atimensec" >&5 10816if eval "test \"`echo '$''{'ac_cv_struct_st_atimensec'+set}'`\" = set"; then 10817 echo $ac_n "(cached) $ac_c" 1>&6 10818else 10819 cat > conftest.$ac_ext <<EOF 10820#line 10821 "configure" 10821#include "confdefs.h" 10822#include <sys/types.h> 10823#include <sys/stat.h> 10824int main() { 10825struct stat s; s.st_atimensec = 0; 10826; return 0; } 10827EOF 10828if { { eval echo configure:10829: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10829 rm -rf conftest* 10830 ac_cv_struct_st_atimensec=yes 10831else 10832 echo "configure: failed program was:" >&5 10833 cat conftest.$ac_ext >&5 10834 rm -rf conftest* 10835 ac_cv_struct_st_atimensec=no 10836fi 10837rm -f conftest* 10838fi 10839 10840echo "$ac_t""$ac_cv_struct_st_atimensec" 1>&6 10841if test $ac_cv_struct_st_atimensec = yes; then 10842 cat >> confdefs.h <<\EOF 10843#define HAVE_ST_ATIMENSEC 1 10844EOF 10845 10846fi 10847echo $ac_n "checking if struct stat contains st_atime_n""... $ac_c" 1>&6 10848echo "configure:10849: checking if struct stat contains st_atime_n" >&5 10849if eval "test \"`echo '$''{'ac_cv_struct_st_atime_n'+set}'`\" = set"; then 10850 echo $ac_n "(cached) $ac_c" 1>&6 10851else 10852 cat > conftest.$ac_ext <<EOF 10853#line 10854 "configure" 10854#include "confdefs.h" 10855#include <sys/types.h> 10856#include <sys/stat.h> 10857int main() { 10858struct stat s; s.st_atime_n = 0; 10859; return 0; } 10860EOF 10861if { { eval echo configure:10862: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10862 rm -rf conftest* 10863 ac_cv_struct_st_atime_n=yes 10864else 10865 echo "configure: failed program was:" >&5 10866 cat conftest.$ac_ext >&5 10867 rm -rf conftest* 10868 ac_cv_struct_st_atime_n=no 10869fi 10870rm -f conftest* 10871fi 10872 10873echo "$ac_t""$ac_cv_struct_st_atime_n" 1>&6 10874if test $ac_cv_struct_st_atime_n = yes; then 10875 cat >> confdefs.h <<\EOF 10876#define HAVE_ST_ATIME_N 1 10877EOF 10878 10879fi 10880echo $ac_n "checking if struct stat contains st_atim.tv_nsec""... $ac_c" 1>&6 10881echo "configure:10882: checking if struct stat contains st_atim.tv_nsec" >&5 10882if eval "test \"`echo '$''{'ac_cv_struct_st_nsec'+set}'`\" = set"; then 10883 echo $ac_n "(cached) $ac_c" 1>&6 10884else 10885 cat > conftest.$ac_ext <<EOF 10886#line 10887 "configure" 10887#include "confdefs.h" 10888#include <sys/types.h> 10889#include <sys/stat.h> 10890int main() { 10891struct stat s; s.st_atim.tv_nsec = 0; 10892; return 0; } 10893EOF 10894if { { eval echo configure:10895: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10895 rm -rf conftest* 10896 ac_cv_struct_st_nsec=yes 10897else 10898 echo "configure: failed program was:" >&5 10899 cat conftest.$ac_ext >&5 10900 rm -rf conftest* 10901 ac_cv_struct_st_nsec=no 10902fi 10903rm -f conftest* 10904fi 10905 10906echo "$ac_t""$ac_cv_struct_st_nsec" 1>&6 10907if test $ac_cv_struct_st_nsec = yes; then 10908 cat >> confdefs.h <<\EOF 10909#define HAVE_ST_NSEC 1 10910EOF 10911 10912fi 10913echo $ac_n "checking if struct stat contains st_atim.st__tim.tv_nsec""... $ac_c" 1>&6 10914echo "configure:10915: checking if struct stat contains st_atim.st__tim.tv_nsec" >&5 10915if eval "test \"`echo '$''{'ac_cv_struct_st__tim'+set}'`\" = set"; then 10916 echo $ac_n "(cached) $ac_c" 1>&6 10917else 10918 cat > conftest.$ac_ext <<EOF 10919#line 10920 "configure" 10920#include "confdefs.h" 10921#include <sys/types.h> 10922#include <sys/stat.h> 10923int main() { 10924struct stat s; s.st_atim.st__tim.tv_nsec = 0; 10925; return 0; } 10926EOF 10927if { { eval echo configure:10928: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10928 rm -rf conftest* 10929 ac_cv_struct_st__tim=yes 10930else 10931 echo "configure: failed program was:" >&5 10932 cat conftest.$ac_ext >&5 10933 rm -rf conftest* 10934 ac_cv_struct_st__tim=no 10935fi 10936rm -f conftest* 10937fi 10938 10939echo "$ac_t""$ac_cv_struct_st__tim" 1>&6 10940if test $ac_cv_struct_st__tim = yes; then 10941 cat >> confdefs.h <<\EOF 10942#define HAVE_ST__TIM 1 10943EOF 10944 10945fi 10946echo $ac_n "checking if struct stat contains st_atimespec.tv_nsec""... $ac_c" 1>&6 10947echo "configure:10948: checking if struct stat contains st_atimespec.tv_nsec" >&5 10948if eval "test \"`echo '$''{'ac_cv_struct_st_atimespec'+set}'`\" = set"; then 10949 echo $ac_n "(cached) $ac_c" 1>&6 10950else 10951 cat > conftest.$ac_ext <<EOF 10952#line 10953 "configure" 10953#include "confdefs.h" 10954#include <sys/types.h> 10955#include <sys/stat.h> 10956int main() { 10957struct stat s; s.st_atimespec.tv_nsec = 0; 10958; return 0; } 10959EOF 10960if { { eval echo configure:10961: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10961 rm -rf conftest* 10962 ac_cv_struct_st_atimespec=yes 10963else 10964 echo "configure: failed program was:" >&5 10965 cat conftest.$ac_ext >&5 10966 rm -rf conftest* 10967 ac_cv_struct_st_atimespec=no 10968fi 10969rm -f conftest* 10970fi 10971 10972echo "$ac_t""$ac_cv_struct_st_atimespec" 1>&6 10973if test $ac_cv_struct_st_atimespec = yes; then 10974 cat >> confdefs.h <<\EOF 10975#define HAVE_ST_ATIMESPEC 1 10976EOF 10977 10978fi 10979echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 10980echo "configure:10981: checking for st_blksize in struct stat" >&5 10981if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then 10982 echo $ac_n "(cached) $ac_c" 1>&6 10983else 10984 cat > conftest.$ac_ext <<EOF 10985#line 10986 "configure" 10986#include "confdefs.h" 10987#include <sys/types.h> 10988#include <sys/stat.h> 10989int main() { 10990struct stat s; s.st_blksize; 10991; return 0; } 10992EOF 10993if { { eval echo configure:10994: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 10994 rm -rf conftest* 10995 ac_cv_struct_st_blksize=yes 10996else 10997 echo "configure: failed program was:" >&5 10998 cat conftest.$ac_ext >&5 10999 rm -rf conftest* 11000 ac_cv_struct_st_blksize=no 11001fi 11002rm -f conftest* 11003fi 11004 11005echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 11006if test $ac_cv_struct_st_blksize = yes; then 11007 cat >> confdefs.h <<\EOF 11008#define HAVE_ST_BLKSIZE 1 11009EOF 11010 11011fi 11012 11013echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 11014echo "configure:11015: checking for st_blocks in struct stat" >&5 11015if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then 11016 echo $ac_n "(cached) $ac_c" 1>&6 11017else 11018 cat > conftest.$ac_ext <<EOF 11019#line 11020 "configure" 11020#include "confdefs.h" 11021#include <sys/types.h> 11022#include <sys/stat.h> 11023int main() { 11024struct stat s; s.st_blocks; 11025; return 0; } 11026EOF 11027if { { eval echo configure:11028: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11028 rm -rf conftest* 11029 ac_cv_struct_st_blocks=yes 11030else 11031 echo "configure: failed program was:" >&5 11032 cat conftest.$ac_ext >&5 11033 rm -rf conftest* 11034 ac_cv_struct_st_blocks=no 11035fi 11036rm -f conftest* 11037fi 11038 11039echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 11040if test $ac_cv_struct_st_blocks = yes; then 11041 cat >> confdefs.h <<\EOF 11042#define HAVE_ST_BLOCKS 1 11043EOF 11044 11045else 11046 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" 11047fi 11048 11049echo $ac_n "checking if struct stat contains st_fstype""... $ac_c" 1>&6 11050echo "configure:11051: checking if struct stat contains st_fstype" >&5 11051if eval "test \"`echo '$''{'ac_cv_struct_st_fstype'+set}'`\" = set"; then 11052 echo $ac_n "(cached) $ac_c" 1>&6 11053else 11054 cat > conftest.$ac_ext <<EOF 11055#line 11056 "configure" 11056#include "confdefs.h" 11057#include <sys/types.h> 11058#include <sys/stat.h> 11059int main() { 11060struct stat s; s.st_fstype[0] = 0; 11061; return 0; } 11062EOF 11063if { { eval echo configure:11064: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11064 rm -rf conftest* 11065 ac_cv_struct_st_fstype=yes 11066else 11067 echo "configure: failed program was:" >&5 11068 cat conftest.$ac_ext >&5 11069 rm -rf conftest* 11070 ac_cv_struct_st_fstype=no 11071fi 11072rm -f conftest* 11073fi 11074 11075echo "$ac_t""$ac_cv_struct_st_fstype" 1>&6 11076if test $ac_cv_struct_st_fstype = yes; then 11077 cat >> confdefs.h <<\EOF 11078#define HAVE_ST_FSTYPE 1 11079EOF 11080 11081fi 11082echo $ac_n "checking if struct stat contains st_aclcnt""... $ac_c" 1>&6 11083echo "configure:11084: checking if struct stat contains st_aclcnt" >&5 11084if eval "test \"`echo '$''{'ac_cv_struct_st_aclcnt'+set}'`\" = set"; then 11085 echo $ac_n "(cached) $ac_c" 1>&6 11086else 11087 cat > conftest.$ac_ext <<EOF 11088#line 11089 "configure" 11089#include "confdefs.h" 11090#include <sys/types.h> 11091#include <sys/stat.h> 11092int main() { 11093struct stat s; s.st_aclcnt = 0; 11094; return 0; } 11095EOF 11096if { { eval echo configure:11097: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11097 rm -rf conftest* 11098 ac_cv_struct_st_aclcnt=yes 11099else 11100 echo "configure: failed program was:" >&5 11101 cat conftest.$ac_ext >&5 11102 rm -rf conftest* 11103 ac_cv_struct_st_aclcnt=no 11104fi 11105rm -f conftest* 11106fi 11107 11108echo "$ac_t""$ac_cv_struct_st_aclcnt" 1>&6 11109if test $ac_cv_struct_st_aclcnt = yes; then 11110 cat >> confdefs.h <<\EOF 11111#define HAVE_ST_ACLCNT 1 11112EOF 11113 11114fi 11115echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 11116echo "configure:11117: checking for st_rdev in struct stat" >&5 11117if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then 11118 echo $ac_n "(cached) $ac_c" 1>&6 11119else 11120 cat > conftest.$ac_ext <<EOF 11121#line 11122 "configure" 11122#include "confdefs.h" 11123#include <sys/types.h> 11124#include <sys/stat.h> 11125int main() { 11126struct stat s; s.st_rdev; 11127; return 0; } 11128EOF 11129if { { eval echo configure:11130: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11130 rm -rf conftest* 11131 ac_cv_struct_st_rdev=yes 11132else 11133 echo "configure: failed program was:" >&5 11134 cat conftest.$ac_ext >&5 11135 rm -rf conftest* 11136 ac_cv_struct_st_rdev=no 11137fi 11138rm -f conftest* 11139fi 11140 11141echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 11142if test $ac_cv_struct_st_rdev = yes; then 11143 cat >> confdefs.h <<\EOF 11144#define HAVE_ST_RDEV 1 11145EOF 11146 11147fi 11148 11149echo $ac_n "checking if struct stat contains st_flag""... $ac_c" 1>&6 11150echo "configure:11151: checking if struct stat contains st_flag" >&5 11151if eval "test \"`echo '$''{'ac_cv_struct_st_flag'+set}'`\" = set"; then 11152 echo $ac_n "(cached) $ac_c" 1>&6 11153else 11154 cat > conftest.$ac_ext <<EOF 11155#line 11156 "configure" 11156#include "confdefs.h" 11157#include <sys/types.h> 11158#include <sys/stat.h> 11159int main() { 11160struct stat s; s.st_flag = 0; 11161; return 0; } 11162EOF 11163if { { eval echo configure:11164: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11164 rm -rf conftest* 11165 ac_cv_struct_st_flag=yes 11166else 11167 echo "configure: failed program was:" >&5 11168 cat conftest.$ac_ext >&5 11169 rm -rf conftest* 11170 ac_cv_struct_st_flag=no 11171fi 11172rm -f conftest* 11173fi 11174 11175echo "$ac_t""$ac_cv_struct_st_flag" 1>&6 11176if test $ac_cv_struct_st_flag = yes; then 11177 cat >> confdefs.h <<\EOF 11178#define HAVE_ST_FLAG 1 11179EOF 11180 11181fi 11182echo $ac_n "checking if struct stat contains st_flags""... $ac_c" 1>&6 11183echo "configure:11184: checking if struct stat contains st_flags" >&5 11184if eval "test \"`echo '$''{'ac_cv_struct_st_flags'+set}'`\" = set"; then 11185 echo $ac_n "(cached) $ac_c" 1>&6 11186else 11187 cat > conftest.$ac_ext <<EOF 11188#line 11189 "configure" 11189#include "confdefs.h" 11190#include <sys/types.h> 11191#include <sys/stat.h> 11192int main() { 11193struct stat s; s.st_flags = 0; 11194; return 0; } 11195EOF 11196if { { eval echo configure:11197: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11197 rm -rf conftest* 11198 ac_cv_struct_st_flags=yes 11199else 11200 echo "configure: failed program was:" >&5 11201 cat conftest.$ac_ext >&5 11202 rm -rf conftest* 11203 ac_cv_struct_st_flags=no 11204fi 11205rm -f conftest* 11206fi 11207 11208echo "$ac_t""$ac_cv_struct_st_flags" 1>&6 11209if test $ac_cv_struct_st_flags = yes; then 11210 cat >> confdefs.h <<\EOF 11211#define HAVE_ST_FLAGS 1 11212EOF 11213 11214fi 11215echo $ac_n "checking if struct dirent contains d_ino""... $ac_c" 1>&6 11216echo "configure:11217: checking if struct dirent contains d_ino" >&5 11217if eval "test \"`echo '$''{'ac_cv_struct_dirent_d_ino'+set}'`\" = set"; then 11218 echo $ac_n "(cached) $ac_c" 1>&6 11219else 11220 cat > conftest.$ac_ext <<EOF 11221#line 11222 "configure" 11222#include "confdefs.h" 11223 11224/* 11225 * This must be kept in sync with schily/dirent.h 11226 */ 11227#ifdef HAVE_SYS_TYPES_H 11228# include <sys/types.h> 11229#endif 11230#ifdef HAVE_SYS_STAT_H 11231# include <sys/stat.h> 11232#endif 11233# ifdef HAVE_DIRENT_H /* This a POSIX compliant system */ 11234# include <dirent.h> 11235# define _FOUND_DIR_ 11236# else /* This is a Pre POSIX system */ 11237 11238# define dirent direct 11239 11240# if defined(HAVE_SYS_DIR_H) 11241# include <sys/dir.h> 11242# define _FOUND_DIR_ 11243# endif 11244 11245# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_) 11246# include <ndir.h> 11247# define _FOUND_DIR_ 11248# endif 11249 11250# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_) 11251# include <sys/ndir.h> 11252# define _FOUND_DIR_ 11253# endif 11254# endif /* HAVE_DIRENT_H */ 11255 11256int main() { 11257struct dirent d; d.d_ino = 0; 11258; return 0; } 11259EOF 11260if { { eval echo configure:11261: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11261 rm -rf conftest* 11262 ac_cv_struct_dirent_d_ino=yes 11263else 11264 echo "configure: failed program was:" >&5 11265 cat conftest.$ac_ext >&5 11266 rm -rf conftest* 11267 ac_cv_struct_dirent_d_ino=no 11268fi 11269rm -f conftest* 11270fi 11271 11272echo "$ac_t""$ac_cv_struct_dirent_d_ino" 1>&6 11273if test $ac_cv_struct_dirent_d_ino = yes; then 11274 cat >> confdefs.h <<\EOF 11275#define HAVE_DIRENT_D_INO 1 11276EOF 11277 11278fi 11279echo $ac_n "checking if struct dirent contains d_type""... $ac_c" 1>&6 11280echo "configure:11281: checking if struct dirent contains d_type" >&5 11281if eval "test \"`echo '$''{'ac_cv_struct_dirent_d_type'+set}'`\" = set"; then 11282 echo $ac_n "(cached) $ac_c" 1>&6 11283else 11284 cat > conftest.$ac_ext <<EOF 11285#line 11286 "configure" 11286#include "confdefs.h" 11287 11288/* 11289 * This must be kept in sync with schily/dirent.h 11290 */ 11291#ifdef HAVE_SYS_TYPES_H 11292# include <sys/types.h> 11293#endif 11294#ifdef HAVE_SYS_STAT_H 11295# include <sys/stat.h> 11296#endif 11297# ifdef HAVE_DIRENT_H /* This a POSIX compliant system */ 11298# include <dirent.h> 11299# define _FOUND_DIR_ 11300# else /* This is a Pre POSIX system */ 11301 11302# define dirent direct 11303 11304# if defined(HAVE_SYS_DIR_H) 11305# include <sys/dir.h> 11306# define _FOUND_DIR_ 11307# endif 11308 11309# if defined(HAVE_NDIR_H) && !defined(_FOUND_DIR_) 11310# include <ndir.h> 11311# define _FOUND_DIR_ 11312# endif 11313 11314# if defined(HAVE_SYS_NDIR_H) && !defined(_FOUND_DIR_) 11315# include <sys/ndir.h> 11316# define _FOUND_DIR_ 11317# endif 11318# endif /* HAVE_DIRENT_H */ 11319 11320int main() { 11321struct dirent d; d.d_type = 0; 11322; return 0; } 11323EOF 11324if { { eval echo configure:11325: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11325 rm -rf conftest* 11326 ac_cv_struct_dirent_d_type=yes 11327else 11328 echo "configure: failed program was:" >&5 11329 cat conftest.$ac_ext >&5 11330 rm -rf conftest* 11331 ac_cv_struct_dirent_d_type=no 11332fi 11333rm -f conftest* 11334fi 11335 11336echo "$ac_t""$ac_cv_struct_dirent_d_type" 1>&6 11337if test $ac_cv_struct_dirent_d_type = yes; then 11338 cat >> confdefs.h <<\EOF 11339#define HAVE_DIRENT_D_TYPE 1 11340EOF 11341 11342fi 11343echo $ac_n "checking if DIR * contains dd_fd""... $ac_c" 1>&6 11344echo "configure:11345: checking if DIR * contains dd_fd" >&5 11345if eval "test \"`echo '$''{'ac_cv_struct_dir_dd_fd'+set}'`\" = set"; then 11346 echo $ac_n "(cached) $ac_c" 1>&6 11347else 11348 cat > conftest.$ac_ext <<EOF 11349#line 11350 "configure" 11350#include "confdefs.h" 11351#include <dirent.h> 11352int main() { 11353DIR d; d.dd_fd = 0; return (d.dd_fd == 0); 11354; return 0; } 11355EOF 11356if { { eval echo configure:11357: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11357 rm -rf conftest* 11358 ac_cv_struct_dir_dd_fd=yes 11359else 11360 echo "configure: failed program was:" >&5 11361 cat conftest.$ac_ext >&5 11362 rm -rf conftest* 11363 ac_cv_struct_dir_dd_fd=no 11364fi 11365rm -f conftest* 11366fi 11367 11368echo "$ac_t""$ac_cv_struct_dir_dd_fd" 1>&6 11369if test $ac_cv_struct_dir_dd_fd = yes; then 11370 cat >> confdefs.h <<\EOF 11371#define HAVE_DIR_DD_FD 1 11372EOF 11373 11374fi 11375echo $ac_n "checking if struct utsname contains arch""... $ac_c" 1>&6 11376echo "configure:11377: checking if struct utsname contains arch" >&5 11377if eval "test \"`echo '$''{'ac_cv_struct_utsname_arch'+set}'`\" = set"; then 11378 echo $ac_n "(cached) $ac_c" 1>&6 11379else 11380 cat > conftest.$ac_ext <<EOF 11381#line 11382 "configure" 11382#include "confdefs.h" 11383#include <sys/utsname.h> 11384int main() { 11385struct utsname u; u.arch[0] = 0; 11386; return 0; } 11387EOF 11388if { { eval echo configure:11389: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11389 rm -rf conftest* 11390 ac_cv_struct_utsname_arch=yes 11391else 11392 echo "configure: failed program was:" >&5 11393 cat conftest.$ac_ext >&5 11394 rm -rf conftest* 11395 ac_cv_struct_utsname_arch=no 11396fi 11397rm -f conftest* 11398fi 11399 11400echo "$ac_t""$ac_cv_struct_utsname_arch" 1>&6 11401if test $ac_cv_struct_utsname_arch = yes; then 11402 cat >> confdefs.h <<\EOF 11403#define HAVE_UTSNAME_ARCH 1 11404EOF 11405 11406fi 11407echo $ac_n "checking if struct utsname contains processor""... $ac_c" 1>&6 11408echo "configure:11409: checking if struct utsname contains processor" >&5 11409if eval "test \"`echo '$''{'ac_cv_struct_utsname_processor'+set}'`\" = set"; then 11410 echo $ac_n "(cached) $ac_c" 1>&6 11411else 11412 cat > conftest.$ac_ext <<EOF 11413#line 11414 "configure" 11414#include "confdefs.h" 11415#include <sys/utsname.h> 11416int main() { 11417struct utsname u; u.processor[0] = 0; 11418; return 0; } 11419EOF 11420if { { eval echo configure:11421: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11421 rm -rf conftest* 11422 ac_cv_struct_utsname_processor=yes 11423else 11424 echo "configure: failed program was:" >&5 11425 cat conftest.$ac_ext >&5 11426 rm -rf conftest* 11427 ac_cv_struct_utsname_processor=no 11428fi 11429rm -f conftest* 11430fi 11431 11432echo "$ac_t""$ac_cv_struct_utsname_processor" 1>&6 11433if test $ac_cv_struct_utsname_processor = yes; then 11434 cat >> confdefs.h <<\EOF 11435#define HAVE_UTSNAME_PROCESSOR 1 11436EOF 11437 11438fi 11439echo $ac_n "checking if struct utsname contains sysname_host""... $ac_c" 1>&6 11440echo "configure:11441: checking if struct utsname contains sysname_host" >&5 11441if eval "test \"`echo '$''{'ac_cv_struct_utsname_sysname_host'+set}'`\" = set"; then 11442 echo $ac_n "(cached) $ac_c" 1>&6 11443else 11444 cat > conftest.$ac_ext <<EOF 11445#line 11446 "configure" 11446#include "confdefs.h" 11447#include <sys/utsname.h> 11448int main() { 11449struct utsname u; u.sysname_host[0] = 0; 11450; return 0; } 11451EOF 11452if { { eval echo configure:11453: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11453 rm -rf conftest* 11454 ac_cv_struct_utsname_sysname_host=yes 11455else 11456 echo "configure: failed program was:" >&5 11457 cat conftest.$ac_ext >&5 11458 rm -rf conftest* 11459 ac_cv_struct_utsname_sysname_host=no 11460fi 11461rm -f conftest* 11462fi 11463 11464echo "$ac_t""$ac_cv_struct_utsname_sysname_host" 1>&6 11465if test $ac_cv_struct_utsname_sysname_host = yes; then 11466 cat >> confdefs.h <<\EOF 11467#define HAVE_UTSNAME_SYSNAME_HOST 1 11468EOF 11469 11470fi 11471echo $ac_n "checking if struct utsname contains release_host""... $ac_c" 1>&6 11472echo "configure:11473: checking if struct utsname contains release_host" >&5 11473if eval "test \"`echo '$''{'ac_cv_struct_utsname_release_host'+set}'`\" = set"; then 11474 echo $ac_n "(cached) $ac_c" 1>&6 11475else 11476 cat > conftest.$ac_ext <<EOF 11477#line 11478 "configure" 11478#include "confdefs.h" 11479#include <sys/utsname.h> 11480int main() { 11481struct utsname u; u.release_host[0] = 0; 11482; return 0; } 11483EOF 11484if { { eval echo configure:11485: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11485 rm -rf conftest* 11486 ac_cv_struct_utsname_release_host=yes 11487else 11488 echo "configure: failed program was:" >&5 11489 cat conftest.$ac_ext >&5 11490 rm -rf conftest* 11491 ac_cv_struct_utsname_release_host=no 11492fi 11493rm -f conftest* 11494fi 11495 11496echo "$ac_t""$ac_cv_struct_utsname_release_host" 1>&6 11497if test $ac_cv_struct_utsname_release_host = yes; then 11498 cat >> confdefs.h <<\EOF 11499#define HAVE_UTSNAME_RELEASE_HOST 1 11500EOF 11501 11502fi 11503echo $ac_n "checking if struct utsname contains version_host""... $ac_c" 1>&6 11504echo "configure:11505: checking if struct utsname contains version_host" >&5 11505if eval "test \"`echo '$''{'ac_cv_struct_utsname_version_host'+set}'`\" = set"; then 11506 echo $ac_n "(cached) $ac_c" 1>&6 11507else 11508 cat > conftest.$ac_ext <<EOF 11509#line 11510 "configure" 11510#include "confdefs.h" 11511#include <sys/utsname.h> 11512int main() { 11513struct utsname u; u.version_host[0] = 0; 11514; return 0; } 11515EOF 11516if { { eval echo configure:11517: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11517 rm -rf conftest* 11518 ac_cv_struct_utsname_version_host=yes 11519else 11520 echo "configure: failed program was:" >&5 11521 cat conftest.$ac_ext >&5 11522 rm -rf conftest* 11523 ac_cv_struct_utsname_version_host=no 11524fi 11525rm -f conftest* 11526fi 11527 11528echo "$ac_t""$ac_cv_struct_utsname_version_host" 1>&6 11529if test $ac_cv_struct_utsname_version_host = yes; then 11530 cat >> confdefs.h <<\EOF 11531#define HAVE_UTSNAME_VERSION_HOST 1 11532EOF 11533 11534fi 11535echo $ac_n "checking if struct passwd contains pw_passwd""... $ac_c" 1>&6 11536echo "configure:11537: checking if struct passwd contains pw_passwd" >&5 11537if eval "test \"`echo '$''{'ac_cv_struct_pw_passwd'+set}'`\" = set"; then 11538 echo $ac_n "(cached) $ac_c" 1>&6 11539else 11540 cat > conftest.$ac_ext <<EOF 11541#line 11542 "configure" 11542#include "confdefs.h" 11543#include <sys/types.h> 11544#include <pwd.h> 11545int main() { 11546struct passwd p; p.pw_passwd = 0; 11547; return 0; } 11548EOF 11549if { { eval echo configure:11550: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11550 rm -rf conftest* 11551 ac_cv_struct_pw_passwd=yes 11552else 11553 echo "configure: failed program was:" >&5 11554 cat conftest.$ac_ext >&5 11555 rm -rf conftest* 11556 ac_cv_struct_pw_passwd=no 11557fi 11558rm -f conftest* 11559fi 11560 11561echo "$ac_t""$ac_cv_struct_pw_passwd" 1>&6 11562if test $ac_cv_struct_pw_passwd = yes; then 11563 cat >> confdefs.h <<\EOF 11564#define HAVE_PW_PASSWD 1 11565EOF 11566 11567fi 11568 11569echo $ac_n "checking whether iconv() uses const char **""... $ac_c" 1>&6 11570echo "configure:11571: checking whether iconv() uses const char **" >&5 11571if eval "test \"`echo '$''{'ac_cv_iconv_const'+set}'`\" = set"; then 11572 echo $ac_n "(cached) $ac_c" 1>&6 11573else 11574 cat > conftest.c <<EOF 11575#include <iconv.h> 11576EOF 11577if { ac_try='${CC-cc} -E conftest.c'; { { eval echo configure:11578: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; }; } | grep 'size_t.*iconv.*iconv_t.*const' >/dev/null 2>&1; then 11578 ac_cv_iconv_const=yes 11579else 11580 ac_cv_iconv_const=no 11581fi 11582fi 11583 11584echo "$ac_t""$ac_cv_iconv_const" 1>&6 11585if test $ac_cv_iconv_const = yes; then 11586 cat >> confdefs.h <<\EOF 11587#define HAVE_ICONV_CONST 1 11588EOF 11589 11590fi 11591 11592echo $ac_n "checking if stat is declared""... $ac_c" 1>&6 11593echo "configure:11594: checking if stat is declared" >&5 11594if eval "test \"`echo '$''{'ac_cv_have_decl_stat'+set}'`\" = set"; then 11595 echo $ac_n "(cached) $ac_c" 1>&6 11596else 11597 cat > conftest.$ac_ext <<EOF 11598#line 11599 "configure" 11599#include "confdefs.h" 11600 11601#include <sys/types.h> 11602#include <sys/stat.h> 11603int main() { 11604 char *p = (char *) stat; return (p != (char *)0 && *p != 0); 11605; return 0; } 11606EOF 11607if { { eval echo configure:11608: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11608 rm -rf conftest* 11609 eval ac_cv_have_decl_stat=yes 11610else 11611 echo "configure: failed program was:" >&5 11612 cat conftest.$ac_ext >&5 11613 rm -rf conftest* 11614 eval ac_cv_have_decl_stat=no 11615fi 11616rm -f conftest* 11617fi 11618 11619echo "$ac_t""$ac_cv_have_decl_stat" 1>&6 11620 ac_tr_decl=HAVE_DECL_`echo stat | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 11621if test $ac_cv_have_decl_stat = yes; then 11622 cat >> confdefs.h <<EOF 11623#define $ac_tr_decl 1 11624EOF 11625 11626fi 11627echo $ac_n "checking if lstat is declared""... $ac_c" 1>&6 11628echo "configure:11629: checking if lstat is declared" >&5 11629if eval "test \"`echo '$''{'ac_cv_have_decl_lstat'+set}'`\" = set"; then 11630 echo $ac_n "(cached) $ac_c" 1>&6 11631else 11632 cat > conftest.$ac_ext <<EOF 11633#line 11634 "configure" 11634#include "confdefs.h" 11635 11636#include <sys/types.h> 11637#include <sys/stat.h> 11638int main() { 11639 char *p = (char *) lstat; return (p != (char *)0 && *p != 0); 11640; return 0; } 11641EOF 11642if { { eval echo configure:11643: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 11643 rm -rf conftest* 11644 eval ac_cv_have_decl_lstat=yes 11645else 11646 echo "configure: failed program was:" >&5 11647 cat conftest.$ac_ext >&5 11648 rm -rf conftest* 11649 eval ac_cv_have_decl_lstat=no 11650fi 11651rm -f conftest* 11652fi 11653 11654echo "$ac_t""$ac_cv_have_decl_lstat" 1>&6 11655 ac_tr_decl=HAVE_DECL_`echo lstat | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 11656if test $ac_cv_have_decl_lstat = yes; then 11657 cat >> confdefs.h <<EOF 11658#define $ac_tr_decl 1 11659EOF 11660 11661fi 11662 11663echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6 11664echo "configure:11665: checking for wait3 that fills in rusage" >&5 11665if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then 11666 echo $ac_n "(cached) $ac_c" 1>&6 11667else 11668 if test "$cross_compiling" = yes; then 11669 ac_cv_func_wait3_rusage=no 11670else 11671 cat > conftest.$ac_ext <<EOF 11672#line 11673 "configure" 11673#include "confdefs.h" 11674#include <sys/types.h> 11675#include <sys/time.h> 11676#include <sys/resource.h> 11677#if HAVE_STDLIB_H || STDC_HEADERS 11678#include <stdlib.h> 11679#endif 11680#ifdef HAVE_UNISTD_H 11681#include <unistd.h> 11682#endif 11683#if defined(HAVE_WAIT_H) 11684#include <wait.h> 11685#else 11686#include <sys/wait.h> 11687#endif 11688#include <stdio.h> 11689/* HP-UX has wait3 but does not fill in rusage at all. */ 11690int 11691main() { 11692 struct rusage r; 11693 int i; 11694 /* Use a field that we can force nonzero -- 11695 voluntary context switches. 11696 For systems like NeXT and OSF/1 that don't set it, 11697 also use the system CPU time. And page faults (I/O) for Linux. */ 11698 r.ru_nvcsw = 0; 11699 r.ru_utime.tv_sec = 0; 11700 r.ru_utime.tv_usec = 0; 11701 r.ru_stime.tv_sec = 0; 11702 r.ru_stime.tv_usec = 0; 11703 r.ru_majflt = r.ru_minflt = 0; 11704 switch (fork()) { 11705 case 0: /* Child. */ 11706 sleep(1); /* Give up the CPU. */ 11707 for (i=200000; --i > 0;) getpid(); /* Use up some CPU time */ 11708 _exit(0); 11709 case -1: _exit(0); /* What can we do? */ 11710 default: /* Parent. */ 11711 wait3(&i, 0, &r); 11712 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */ 11713 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 11714 && r.ru_utime.tv_sec == 0 && r.ru_utime.tv_usec == 0 11715 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); 11716 } 11717} 11718EOF 11719if { { eval echo configure:11720: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 11720then 11721 ac_cv_func_wait3_rusage=yes 11722else 11723 echo "configure: failed program was:" >&5 11724 cat conftest.$ac_ext >&5 11725 rm -fr conftest* 11726 ac_cv_func_wait3_rusage=no 11727fi 11728rm -fr conftest* 11729fi 11730 11731fi 11732 11733echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6 11734if test $ac_cv_func_wait3_rusage = yes; then 11735 cat >> confdefs.h <<\EOF 11736#define HAVE_WAIT3 1 11737EOF 11738 11739fi 11740 11741echo $ac_n "checking for mlock""... $ac_c" 1>&6 11742echo "configure:11743: checking for mlock" >&5 11743if eval "test \"`echo '$''{'ac_cv_func_mlock'+set}'`\" = set"; then 11744 echo $ac_n "(cached) $ac_c" 1>&6 11745else 11746 if test "$cross_compiling" = yes; then 11747 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 11748else 11749 cat > conftest.$ac_ext <<EOF 11750#line 11751 "configure" 11751#include "confdefs.h" 11752 11753#include <sys/types.h> 11754#ifdef HAVE_SYS_MMAN_H 11755#include <sys/mman.h> 11756#endif 11757#include <errno.h> 11758#ifndef HAVE_ERRNO_DEF 11759extern int errno; 11760#endif 11761 11762int 11763main() 11764{ 11765 if (mlock(0, 0) < 0) { 11766 if (errno == EINVAL || errno == ENOMEM || 11767 errno == EPERM || errno == EACCES) 11768 return(0); 11769 return(-1); 11770 } 11771 return(0); 11772} 11773EOF 11774if { { eval echo configure:11775: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 11775then 11776 ac_cv_func_mlock=yes 11777else 11778 echo "configure: failed program was:" >&5 11779 cat conftest.$ac_ext >&5 11780 rm -fr conftest* 11781 ac_cv_func_mlock=no 11782fi 11783rm -fr conftest* 11784fi 11785 11786rm -f core core.* *.core 11787fi 11788 11789echo "$ac_t""$ac_cv_func_mlock" 1>&6 11790if test $ac_cv_func_mlock = yes; then 11791 cat >> confdefs.h <<\EOF 11792#define HAVE_MLOCK 1 11793EOF 11794 11795fi 11796echo $ac_n "checking for mlockall""... $ac_c" 1>&6 11797echo "configure:11798: checking for mlockall" >&5 11798if eval "test \"`echo '$''{'ac_cv_func_mlockall'+set}'`\" = set"; then 11799 echo $ac_n "(cached) $ac_c" 1>&6 11800else 11801 if test "$cross_compiling" = yes; then 11802 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 11803else 11804 cat > conftest.$ac_ext <<EOF 11805#line 11806 "configure" 11806#include "confdefs.h" 11807 11808#include <sys/types.h> 11809#include <sys/mman.h> 11810#include <errno.h> 11811#ifndef HAVE_ERRNO_DEF 11812extern int errno; 11813#endif 11814 11815int 11816main() 11817{ 11818 if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) { 11819 if (errno == EINVAL || errno == ENOMEM || 11820 errno == EPERM || errno == EACCES) 11821 return(0); 11822 return(-1); 11823 } 11824 return(0); 11825} 11826 11827EOF 11828if { { eval echo configure:11829: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 11829then 11830 ac_cv_func_mlockall=yes 11831else 11832 echo "configure: failed program was:" >&5 11833 cat conftest.$ac_ext >&5 11834 rm -fr conftest* 11835 ac_cv_func_mlockall=no 11836fi 11837rm -fr conftest* 11838fi 11839 11840rm -f core core.* *.core 11841fi 11842 11843echo "$ac_t""$ac_cv_func_mlockall" 1>&6 11844if test $ac_cv_func_mlockall = yes; then 11845 cat >> confdefs.h <<\EOF 11846#define HAVE_MLOCKALL 1 11847EOF 11848 11849fi 11850echo $ac_n "checking for va_copy""... $ac_c" 1>&6 11851echo "configure:11852: checking for va_copy" >&5 11852if eval "test \"`echo '$''{'ac_cv_func_va_copy'+set}'`\" = set"; then 11853 echo $ac_n "(cached) $ac_c" 1>&6 11854else 11855 cat > conftest.$ac_ext <<EOF 11856#line 11857 "configure" 11857#include "confdefs.h" 11858 11859#ifdef HAVE_STDARG_H 11860# include <stdarg.h> 11861#else 11862# include <varargs.h> 11863#endif 11864int main() { 11865 11866va_list a, b; 11867 11868va_copy(a, b); 11869; return 0; } 11870EOF 11871if { { eval echo configure:11872: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 11872 rm -rf conftest* 11873 ac_cv_func_va_copy=yes 11874else 11875 echo "configure: failed program was:" >&5 11876 cat conftest.$ac_ext >&5 11877 rm -rf conftest* 11878 ac_cv_func_va_copy=no 11879fi 11880rm -f conftest* 11881fi 11882 11883echo "$ac_t""$ac_cv_func_va_copy" 1>&6 11884if test $ac_cv_func_va_copy = yes; then 11885 cat >> confdefs.h <<\EOF 11886#define HAVE_VA_COPY 1 11887EOF 11888 11889fi 11890echo $ac_n "checking for __va_copy""... $ac_c" 1>&6 11891echo "configure:11892: checking for __va_copy" >&5 11892if eval "test \"`echo '$''{'ac_cv_func__va_copy'+set}'`\" = set"; then 11893 echo $ac_n "(cached) $ac_c" 1>&6 11894else 11895 cat > conftest.$ac_ext <<EOF 11896#line 11897 "configure" 11897#include "confdefs.h" 11898 11899#ifdef HAVE_STDARG_H 11900# include <stdarg.h> 11901#else 11902# include <varargs.h> 11903#endif 11904int main() { 11905 11906va_list a, b; 11907 11908__va_copy(a, b); 11909; return 0; } 11910EOF 11911if { { eval echo configure:11912: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 11912 rm -rf conftest* 11913 ac_cv_func__va_copy=yes 11914else 11915 echo "configure: failed program was:" >&5 11916 cat conftest.$ac_ext >&5 11917 rm -rf conftest* 11918 ac_cv_func__va_copy=no 11919fi 11920rm -f conftest* 11921fi 11922 11923echo "$ac_t""$ac_cv_func__va_copy" 1>&6 11924if test $ac_cv_func__va_copy = yes; then 11925 cat >> confdefs.h <<\EOF 11926#define HAVE__VA_COPY 1 11927EOF 11928 11929fi 11930echo $ac_n "checking for working ecvt() ""... $ac_c" 1>&6 11931echo "configure:11932: checking for working ecvt() " >&5 11932if eval "test \"`echo '$''{'ac_cv_func_ecvt'+set}'`\" = set"; then 11933 echo $ac_n "(cached) $ac_c" 1>&6 11934else 11935 if test "$cross_compiling" = yes; then 11936 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 11937else 11938 cat > conftest.$ac_ext <<EOF 11939#line 11940 "configure" 11940#include "confdefs.h" 11941 11942extern char *ecvt(); 11943 11944#ifdef PROTOTYPES /* needed for new Apple clang */ 11945extern int sprintf(char *, const char *fmt, ...); 11946extern char *strcpy(const char *, const char *); 11947extern int strcmp(const char *, const char *); 11948#endif 11949 11950#ifdef PROTOTYPES 11951int 11952sprintf(char *s, const char *fmt, ...) 11953#else 11954int 11955sprintf(s) 11956 char *s; 11957#endif 11958{ 11959 strcpy(s, "DEAD"); 11960 return (1); 11961} 11962 11963int 11964main() 11965{ 11966 int a, b; 11967 11968/* exit (strcmp("DEAD", ecvt(1.9, 2, &a, &b)) == 0);*/ 11969 return (strcmp("19", ecvt(1.9, 2, &a, &b)) != 0); 11970} 11971EOF 11972if { { eval echo configure:11973: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 11973then 11974 ac_cv_func_ecvt=yes 11975else 11976 echo "configure: failed program was:" >&5 11977 cat conftest.$ac_ext >&5 11978 rm -fr conftest* 11979 ac_cv_func_ecvt=no 11980fi 11981rm -fr conftest* 11982fi 11983 11984fi 11985 11986echo "$ac_t""$ac_cv_func_ecvt" 1>&6 11987if test $ac_cv_func_ecvt = yes; then 11988 cat >> confdefs.h <<\EOF 11989#define HAVE_ECVT 1 11990EOF 11991 11992fi 11993echo $ac_n "checking for working fcvt() ""... $ac_c" 1>&6 11994echo "configure:11995: checking for working fcvt() " >&5 11995if eval "test \"`echo '$''{'ac_cv_func_fcvt'+set}'`\" = set"; then 11996 echo $ac_n "(cached) $ac_c" 1>&6 11997else 11998 if test "$cross_compiling" = yes; then 11999 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 12000else 12001 cat > conftest.$ac_ext <<EOF 12002#line 12003 "configure" 12003#include "confdefs.h" 12004 12005extern char *fcvt(); 12006 12007#ifdef PROTOTYPES /* needed for new Apple clang */ 12008extern int sprintf(char *, const char *fmt, ...); 12009extern char *strcpy(const char *, const char *); 12010extern int strcmp(const char *, const char *); 12011#endif 12012 12013#ifdef PROTOTYPES 12014int 12015sprintf(char *s, const char *fmt, ...) 12016#else 12017int 12018sprintf(s) 12019 char *s; 12020#endif 12021{ 12022 strcpy(s, "DEAD"); 12023 return (1); 12024} 12025 12026int 12027main() 12028{ 12029 int a, b; 12030 12031/* exit (strcmp("DEAD", fcvt(1.9, 2, &a, &b)) == 0);*/ 12032 return (strcmp("190", fcvt(1.9, 2, &a, &b)) != 0); 12033} 12034EOF 12035if { { eval echo configure:12036: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 12036then 12037 ac_cv_func_fcvt=yes 12038else 12039 echo "configure: failed program was:" >&5 12040 cat conftest.$ac_ext >&5 12041 rm -fr conftest* 12042 ac_cv_func_fcvt=no 12043fi 12044rm -fr conftest* 12045fi 12046 12047fi 12048 12049echo "$ac_t""$ac_cv_func_fcvt" 1>&6 12050if test $ac_cv_func_fcvt = yes; then 12051 cat >> confdefs.h <<\EOF 12052#define HAVE_FCVT 1 12053EOF 12054 12055fi 12056echo $ac_n "checking for working gcvt() ""... $ac_c" 1>&6 12057echo "configure:12058: checking for working gcvt() " >&5 12058if eval "test \"`echo '$''{'ac_cv_func_gcvt'+set}'`\" = set"; then 12059 echo $ac_n "(cached) $ac_c" 1>&6 12060else 12061 if test "$cross_compiling" = yes; then 12062 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 12063else 12064 cat > conftest.$ac_ext <<EOF 12065#line 12066 "configure" 12066#include "confdefs.h" 12067 12068extern char *gcvt(); 12069 12070#ifdef PROTOTYPES /* needed for new Apple clang */ 12071extern int sprintf(char *, const char *fmt, ...); 12072extern char *strcpy(const char *, const char *); 12073extern int strcmp(const char *, const char *); 12074#endif 12075 12076#ifdef PROTOTYPES 12077int 12078sprintf(char *s, const char *fmt, ...) 12079#else 12080int 12081sprintf(s) 12082 char *s; 12083#endif 12084{ 12085 strcpy(s, "DEAD"); 12086 return (1); 12087} 12088 12089int 12090main() 12091{ 12092 char buf[32]; 12093 12094/* exit (strcmp("DEAD", gcvt(1.9, 10, buf)) == 0);*/ 12095 return (strcmp("1.9", gcvt(1.9, 10, buf)) != 0); 12096} 12097EOF 12098if { { eval echo configure:12099: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 12099then 12100 ac_cv_func_gcvt=yes 12101else 12102 echo "configure: failed program was:" >&5 12103 cat conftest.$ac_ext >&5 12104 rm -fr conftest* 12105 ac_cv_func_gcvt=no 12106fi 12107rm -fr conftest* 12108fi 12109 12110fi 12111 12112echo "$ac_t""$ac_cv_func_gcvt" 1>&6 12113if test $ac_cv_func_gcvt = yes; then 12114 cat >> confdefs.h <<\EOF 12115#define HAVE_GCVT 1 12116EOF 12117 12118fi 12119echo $ac_n "checking for __dtoa""... $ac_c" 1>&6 12120echo "configure:12121: checking for __dtoa" >&5 12121if eval "test \"`echo '$''{'ac_cv_func_dtoa'+set}'`\" = set"; then 12122 echo $ac_n "(cached) $ac_c" 1>&6 12123else 12124 cat > conftest.$ac_ext <<EOF 12125#line 12126 "configure" 12126#include "confdefs.h" 12127extern char *__dtoa(); 12128int main() { 12129int decpt; int sign; char *ep; char *bp; 12130bp = __dtoa(0.0, 2, 6, &decpt, &sign, &ep); 12131; return 0; } 12132EOF 12133if { { eval echo configure:12134: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 12134 rm -rf conftest* 12135 ac_cv_func_dtoa=yes 12136else 12137 echo "configure: failed program was:" >&5 12138 cat conftest.$ac_ext >&5 12139 rm -rf conftest* 12140 ac_cv_func_dtoa=no 12141fi 12142rm -f conftest* 12143fi 12144 12145echo "$ac_t""$ac_cv_func_dtoa" 1>&6 12146if test $ac_cv_func_dtoa = yes; then 12147 cat >> confdefs.h <<\EOF 12148#define HAVE_DTOA 1 12149EOF 12150 12151fi 12152echo $ac_n "checking for __dtoa that needs result ptr""... $ac_c" 1>&6 12153echo "configure:12154: checking for __dtoa that needs result ptr" >&5 12154if eval "test \"`echo '$''{'ac_cv_func_dtoa_r'+set}'`\" = set"; then 12155 echo $ac_n "(cached) $ac_c" 1>&6 12156else 12157 if test "$cross_compiling" = yes; then 12158 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 12159else 12160 cat > conftest.$ac_ext <<EOF 12161#line 12162 "configure" 12162#include "confdefs.h" 12163 12164extern char *__dtoa(); 12165int 12166main() 12167{ 12168#ifdef HAVE_DTOA 12169 int decpt, sign; 12170 char *bp; 12171 char *ep; 12172 char *result; 12173 12174 result = 0; 12175 bp = __dtoa(1.9, 2, 5, &decpt, &sign, &ep, &result); 12176 return(result == 0); 12177#else 12178 return(1); 12179#endif 12180} 12181EOF 12182if { { eval echo configure:12183: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 12183then 12184 ac_cv_func_dtoa_r=yes 12185else 12186 echo "configure: failed program was:" >&5 12187 cat conftest.$ac_ext >&5 12188 rm -fr conftest* 12189 ac_cv_func_dtoa_r=no 12190fi 12191rm -fr conftest* 12192fi 12193 12194fi 12195 12196echo "$ac_t""$ac_cv_func_dtoa_r" 1>&6 12197if test $ac_cv_func_dtoa_r = yes; then 12198 cat >> confdefs.h <<\EOF 12199#define HAVE_DTOA_R 1 12200EOF 12201 12202fi 12203echo $ac_n "checking if getpagesize is defined or function""... $ac_c" 1>&6 12204echo "configure:12205: checking if getpagesize is defined or function" >&5 12205if eval "test \"`echo '$''{'ac_cv_have_getpagesize'+set}'`\" = set"; then 12206 echo $ac_n "(cached) $ac_c" 1>&6 12207else 12208 cat > conftest.$ac_ext <<EOF 12209#line 12210 "configure" 12210#include "confdefs.h" 12211 12212#ifdef HAVE_UNISTD_H 12213#include <unistd.h> 12214#endif 12215 12216int main() { 12217 12218#ifndef getpagesize 12219 char *p = (char *) getpagesize; 12220 return (p != (char *)0 && *p != 0); 12221#endif 12222; return 0; } 12223EOF 12224if { { eval echo configure:12225: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 12225 rm -rf conftest* 12226 eval ac_cv_have_getpagesize=yes 12227else 12228 echo "configure: failed program was:" >&5 12229 cat conftest.$ac_ext >&5 12230 rm -rf conftest* 12231 eval ac_cv_have_getpagesize=no 12232fi 12233rm -f conftest* 12234fi 12235 12236if eval "test \"`echo '$ac_cv_have_'getpagesize`\" = yes"; then 12237 echo "$ac_t""yes" 1>&6 12238else 12239 echo "$ac_t""no" 1>&6 12240fi 12241 ac_tr_dfunc=HAVE_`echo getpagesize | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 12242if eval "test \"`echo '$ac_cv_have_'getpagesize`\" = yes"; then 12243 cat >> confdefs.h <<EOF 12244#define $ac_tr_dfunc 1 12245EOF 12246 12247fi 12248 12249for ac_hdr in unistd.h 12250do 12251ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12252echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12253echo "configure:12254: checking for $ac_hdr" >&5 12254if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 12255 echo $ac_n "(cached) $ac_c" 1>&6 12256else 12257 cat > conftest.$ac_ext <<EOF 12258#line 12259 "configure" 12259#include "confdefs.h" 12260#include <$ac_hdr> 12261EOF 12262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12263{ { eval echo configure:12264: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 12264ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 12265if test -z "$ac_err"; then 12266 rm -rf conftest* 12267 eval "ac_cv_header_$ac_safe=yes" 12268else 12269 echo "$ac_err" >&5 12270 echo "configure: failed program was:" >&5 12271 cat conftest.$ac_ext >&5 12272 rm -rf conftest* 12273 eval "ac_cv_header_$ac_safe=no" 12274fi 12275rm -f conftest* 12276fi 12277if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12278 echo "$ac_t""yes" 1>&6 12279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 12280 cat >> confdefs.h <<EOF 12281#define $ac_tr_hdr 1 12282EOF 12283 12284else 12285 echo "$ac_t""no" 1>&6 12286fi 12287done 12288echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6 12289echo "configure:12290: checking for mmap that needs ptr to size" >&5 12290if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then 12291 echo $ac_n "(cached) $ac_c" 1>&6 12292else 12293 if test "$cross_compiling" = yes; then 12294 ac_cv_func_mmap_sizep=no 12295else 12296 cat > conftest.$ac_ext <<EOF 12297#line 12298 "configure" 12298#include "confdefs.h" 12299 12300#include <sys/types.h> 12301#include <fcntl.h> 12302#include <signal.h> 12303#include <setjmp.h> 12304#include <sys/mman.h> 12305#ifdef HAVE_SYS_STAT_H 12306#include <sys/stat.h> 12307#endif 12308 12309#ifndef MAP_FILE 12310#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ 12311#endif 12312 12313/* This mess was copied from the GNU getpagesize.h. */ 12314#ifndef HAVE_GETPAGESIZE 12315# ifdef HAVE_UNISTD_H 12316# include <unistd.h> 12317# endif 12318#if HAVE_STDLIB_H || STDC_HEADERS 12319#include <stdlib.h> 12320#endif 12321 12322/* Assume that all systems that can run configure have sys/param.h. */ 12323# ifndef HAVE_SYS_PARAM_H 12324# define HAVE_SYS_PARAM_H 1 12325# endif 12326 12327# ifdef _SC_PAGESIZE 12328# define getpagesize() sysconf(_SC_PAGESIZE) 12329# else /* no _SC_PAGESIZE */ 12330# ifdef HAVE_SYS_PARAM_H 12331# include <sys/param.h> 12332# ifdef EXEC_PAGESIZE 12333# define getpagesize() EXEC_PAGESIZE 12334# else /* no EXEC_PAGESIZE */ 12335# ifdef NBPG 12336# define getpagesize() NBPG * CLSIZE 12337# ifndef CLSIZE 12338# define CLSIZE 1 12339# endif /* no CLSIZE */ 12340# else /* no NBPG */ 12341# ifdef NBPC 12342# define getpagesize() NBPC 12343# else /* no NBPC */ 12344# ifdef PAGESIZE 12345# define getpagesize() PAGESIZE 12346# endif /* PAGESIZE */ 12347# endif /* no NBPC */ 12348# endif /* no NBPG */ 12349# endif /* no EXEC_PAGESIZE */ 12350# else /* no HAVE_SYS_PARAM_H */ 12351# define getpagesize() 8192 /* punt totally */ 12352# endif /* no HAVE_SYS_PARAM_H */ 12353# endif /* no _SC_PAGESIZE */ 12354 12355#endif /* no HAVE_GETPAGESIZE */ 12356 12357#ifdef __cplusplus 12358extern "C" { void *malloc(unsigned); } 12359#else 12360char *malloc(); 12361#endif 12362 12363jmp_buf jenv; 12364 12365int 12366intr() 12367{ 12368 signal(SIGSEGV, intr); 12369 longjmp(jenv, 1); 12370 return (1); 12371} 12372 12373int 12374main() 12375{ 12376 char *data, *data2; 12377 int i, pagesize, ps; 12378 int fd; 12379 12380 pagesize = getpagesize(); 12381 12382 /* 12383 * First, make a file with some known garbage in it. 12384 */ 12385 data = malloc(pagesize); 12386 if (!data) 12387 return(1); 12388 for (i = 0; i < pagesize; ++i) 12389 *(data + i) = rand(); 12390 umask(0); 12391 fd = creat("conftestmmap", 0600); 12392 if (fd < 0) 12393 return(1); 12394 if (write(fd, data, pagesize) != pagesize) 12395 return(1); 12396 close(fd); 12397 12398 /* 12399 * Next, try to mmap the file at a fixed address which 12400 * already has something else allocated at it. If we can, 12401 * also make sure that we see the same garbage. 12402 */ 12403 fd = open("conftestmmap", O_RDWR); 12404 if (fd < 0) 12405 return(1); 12406 12407 /* 12408 * Keep a copy, Apollo modifies the value... 12409 */ 12410 ps = pagesize; 12411 12412 /* 12413 * Apollo mmap() is not a syscall but a library function and fails 12414 * if it tries to dereference 'ps'. We must use setjmp in order to 12415 * catch the failure. 12416 */ 12417 signal(SIGSEGV, intr); 12418 if (setjmp(jenv) == 0) { 12419 data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); 12420 } else { 12421 data2 = (char *)-1; 12422 } 12423 if (data2 != (char *)-1) 12424 return(1); 12425 12426 signal(SIGSEGV, intr); 12427 if (setjmp(jenv) == 0) { 12428 data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); 12429 } else { 12430 data2 = (char *)-1; 12431 } 12432 if (data2 == (char *)-1) 12433 return(1); 12434 12435 for (i = 0; i < pagesize; ++i) 12436 if (*(data + i) != *(data2 + i)) 12437 return(1); 12438 12439 close(fd); 12440 unlink("conftestmmap"); 12441 return(0); 12442} 12443 12444EOF 12445if { { eval echo configure:12446: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 12446then 12447 ac_cv_func_mmap_sizep=yes 12448else 12449 echo "configure: failed program was:" >&5 12450 cat conftest.$ac_ext >&5 12451 rm -fr conftest* 12452 ac_cv_func_mmap_sizep=no 12453fi 12454rm -fr conftest* 12455fi 12456 12457fi 12458 12459echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6 12460if test $ac_cv_func_mmap_sizep = yes; then 12461 cat >> confdefs.h <<\EOF 12462#define _MMAP_WITH_SIZEP 1 12463EOF 12464 12465fi 12466 12467for ac_hdr in unistd.h 12468do 12469ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12470echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12471echo "configure:12472: checking for $ac_hdr" >&5 12472if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 12473 echo $ac_n "(cached) $ac_c" 1>&6 12474else 12475 cat > conftest.$ac_ext <<EOF 12476#line 12477 "configure" 12477#include "confdefs.h" 12478#include <$ac_hdr> 12479EOF 12480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12481{ { eval echo configure:12482: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 12482ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 12483if test -z "$ac_err"; then 12484 rm -rf conftest* 12485 eval "ac_cv_header_$ac_safe=yes" 12486else 12487 echo "$ac_err" >&5 12488 echo "configure: failed program was:" >&5 12489 cat conftest.$ac_ext >&5 12490 rm -rf conftest* 12491 eval "ac_cv_header_$ac_safe=no" 12492fi 12493rm -f conftest* 12494fi 12495if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12496 echo "$ac_t""yes" 1>&6 12497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 12498 cat >> confdefs.h <<EOF 12499#define $ac_tr_hdr 1 12500EOF 12501 12502else 12503 echo "$ac_t""no" 1>&6 12504fi 12505done 12506echo $ac_n "checking for working mmap""... $ac_c" 1>&6 12507echo "configure:12508: checking for working mmap" >&5 12508if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 12509 echo $ac_n "(cached) $ac_c" 1>&6 12510else 12511 if test "$cross_compiling" = yes; then 12512 ac_cv_func_mmap_fixed_mapped=no 12513else 12514 cat > conftest.$ac_ext <<EOF 12515#line 12516 "configure" 12516#include "confdefs.h" 12517 12518/* Thanks to Mike Haertel and Jim Avera for this test. 12519 Here is a matrix of mmap possibilities: 12520 mmap private not fixed 12521 mmap private fixed at somewhere currently unmapped 12522 mmap private fixed at somewhere already mapped 12523 mmap shared not fixed 12524 mmap shared fixed at somewhere currently unmapped 12525 mmap shared fixed at somewhere already mapped 12526 For private mappings, we should verify that changes cannot be read() 12527 back from the file, nor mmap's back from the file at a different 12528 address. (There have been systems where private was not correctly 12529 implemented like the infamous i386 svr4.0, and systems where the 12530 VM page cache was not coherent with the filesystem buffer cache 12531 like early versions of FreeBSD and possibly contemporary NetBSD.) 12532 For shared mappings, we should conversely verify that changes get 12533 propogated back to all the places they're supposed to be. 12534 12535 Grep wants private fixed already mapped. 12536 The main things grep needs to know about mmap are: 12537 * does it exist and is it safe to write into the mmap'd area 12538 * how to use it (BSD variants) */ 12539#include <sys/types.h> 12540#include <fcntl.h> 12541#include <sys/mman.h> 12542#ifdef HAVE_SYS_STAT_H 12543#include <sys/stat.h> 12544#endif 12545 12546/* 12547 * Needed for Apollo Domain/OS and may be for others? 12548 */ 12549#ifdef _MMAP_WITH_SIZEP 12550# define mmap_sizeparm(s) (&(s)) 12551#else 12552# define mmap_sizeparm(s) (s) 12553#endif 12554 12555/* This mess was copied from the GNU getpagesize.h. */ 12556#ifndef HAVE_GETPAGESIZE 12557# ifdef HAVE_UNISTD_H 12558# include <unistd.h> 12559# endif 12560#ifdef HAVE_STDLIB_H 12561#include <stdlib.h> 12562#endif 12563 12564/* Assume that all systems that can run configure have sys/param.h. */ 12565# ifndef HAVE_SYS_PARAM_H 12566# define HAVE_SYS_PARAM_H 1 12567# endif 12568 12569# ifdef _SC_PAGESIZE 12570# define getpagesize() sysconf(_SC_PAGESIZE) 12571# else /* no _SC_PAGESIZE */ 12572# ifdef HAVE_SYS_PARAM_H 12573# include <sys/param.h> 12574# ifdef EXEC_PAGESIZE 12575# define getpagesize() EXEC_PAGESIZE 12576# else /* no EXEC_PAGESIZE */ 12577# ifdef NBPG 12578# define getpagesize() NBPG * CLSIZE 12579# ifndef CLSIZE 12580# define CLSIZE 1 12581# endif /* no CLSIZE */ 12582# else /* no NBPG */ 12583# ifdef NBPC 12584# define getpagesize() NBPC 12585# else /* no NBPC */ 12586# ifdef PAGESIZE 12587# define getpagesize() PAGESIZE 12588# endif /* PAGESIZE */ 12589# endif /* no NBPC */ 12590# endif /* no NBPG */ 12591# endif /* no EXEC_PAGESIZE */ 12592# else /* no HAVE_SYS_PARAM_H */ 12593# define getpagesize() 8192 /* punt totally */ 12594# endif /* no HAVE_SYS_PARAM_H */ 12595# endif /* no _SC_PAGESIZE */ 12596 12597#endif /* no HAVE_GETPAGESIZE */ 12598 12599#ifdef __cplusplus 12600extern "C" { void *malloc(unsigned); } 12601#else 12602char *malloc(); 12603#endif 12604 12605int 12606main() 12607{ 12608 char *data, *data2, *data3; 12609 int i, pagesize; 12610 int fd; 12611 12612 pagesize = getpagesize(); 12613 12614 /* 12615 * First, make a file with some known garbage in it. 12616 */ 12617 data = malloc(pagesize); 12618 if (!data) 12619 return(1); 12620 for (i = 0; i < pagesize; ++i) 12621 *(data + i) = rand(); 12622 umask(0); 12623 fd = creat("conftestmmap", 0600); 12624 if (fd < 0) 12625 return(1); 12626 if (write(fd, data, pagesize) != pagesize) 12627 return(1); 12628 close(fd); 12629 12630 /* 12631 * Next, try to mmap the file at a fixed address which 12632 * already has something else allocated at it. If we can, 12633 * also make sure that we see the same garbage. 12634 */ 12635 fd = open("conftestmmap", O_RDWR); 12636 if (fd < 0) 12637 return(1); 12638 data2 = malloc(2 * pagesize); 12639 if (!data2) 12640 return(1); 12641 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 12642 if (data2 != mmap(data2, mmap_sizeparm(pagesize), PROT_READ | PROT_WRITE, 12643 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12644 return(1); 12645 for (i = 0; i < pagesize; ++i) 12646 if (*(data + i) != *(data2 + i)) 12647 return(1); 12648 12649 /* 12650 * Finally, make sure that changes to the mapped area 12651 * do not percolate back to the file as seen by read(). 12652 * (This is a bug on some variants of i386 svr4.0.) 12653 */ 12654 for (i = 0; i < pagesize; ++i) 12655 *(data2 + i) = *(data2 + i) + 1; 12656 data3 = malloc(pagesize); 12657 if (!data3) 12658 return(1); 12659 if (read(fd, data3, pagesize) != pagesize) 12660 return(1); 12661 for (i = 0; i < pagesize; ++i) 12662 if (*(data + i) != *(data3 + i)) 12663 return(1); 12664 close(fd); 12665 unlink("conftestmmap"); 12666 return(0); 12667} 12668 12669EOF 12670if { { eval echo configure:12671: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 12671then 12672 ac_cv_func_mmap_fixed_mapped=yes 12673else 12674 echo "configure: failed program was:" >&5 12675 cat conftest.$ac_ext >&5 12676 rm -fr conftest* 12677 ac_cv_func_mmap_fixed_mapped=no 12678fi 12679rm -fr conftest* 12680fi 12681 12682fi 12683 12684echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 12685if test $ac_cv_func_mmap_fixed_mapped = yes; then 12686 cat >> confdefs.h <<\EOF 12687#define HAVE_MMAP 1 12688EOF 12689 12690fi 12691 12692for ac_hdr in unistd.h 12693do 12694ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12695echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12696echo "configure:12697: checking for $ac_hdr" >&5 12697if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 12698 echo $ac_n "(cached) $ac_c" 1>&6 12699else 12700 cat > conftest.$ac_ext <<EOF 12701#line 12702 "configure" 12702#include "confdefs.h" 12703#include <$ac_hdr> 12704EOF 12705ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12706{ { eval echo configure:12707: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 12707ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 12708if test -z "$ac_err"; then 12709 rm -rf conftest* 12710 eval "ac_cv_header_$ac_safe=yes" 12711else 12712 echo "$ac_err" >&5 12713 echo "configure: failed program was:" >&5 12714 cat conftest.$ac_ext >&5 12715 rm -rf conftest* 12716 eval "ac_cv_header_$ac_safe=no" 12717fi 12718rm -f conftest* 12719fi 12720if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12721 echo "$ac_t""yes" 1>&6 12722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 12723 cat >> confdefs.h <<EOF 12724#define $ac_tr_hdr 1 12725EOF 12726 12727else 12728 echo "$ac_t""no" 1>&6 12729fi 12730done 12731echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6 12732echo "configure:12733: checking for mmap that needs ptr to size" >&5 12733if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then 12734 echo $ac_n "(cached) $ac_c" 1>&6 12735else 12736 if test "$cross_compiling" = yes; then 12737 ac_cv_func_mmap_sizep=no 12738else 12739 cat > conftest.$ac_ext <<EOF 12740#line 12741 "configure" 12741#include "confdefs.h" 12742 12743#include <sys/types.h> 12744#include <fcntl.h> 12745#include <signal.h> 12746#include <setjmp.h> 12747#include <sys/mman.h> 12748#ifdef HAVE_SYS_STAT_H 12749#include <sys/stat.h> 12750#endif 12751 12752#ifndef MAP_FILE 12753#define MAP_FILE 0 /* Needed on Apollo Domain/OS */ 12754#endif 12755 12756/* This mess was copied from the GNU getpagesize.h. */ 12757#ifndef HAVE_GETPAGESIZE 12758# ifdef HAVE_UNISTD_H 12759# include <unistd.h> 12760# endif 12761#if HAVE_STDLIB_H || STDC_HEADERS 12762#include <stdlib.h> 12763#endif 12764 12765/* Assume that all systems that can run configure have sys/param.h. */ 12766# ifndef HAVE_SYS_PARAM_H 12767# define HAVE_SYS_PARAM_H 1 12768# endif 12769 12770# ifdef _SC_PAGESIZE 12771# define getpagesize() sysconf(_SC_PAGESIZE) 12772# else /* no _SC_PAGESIZE */ 12773# ifdef HAVE_SYS_PARAM_H 12774# include <sys/param.h> 12775# ifdef EXEC_PAGESIZE 12776# define getpagesize() EXEC_PAGESIZE 12777# else /* no EXEC_PAGESIZE */ 12778# ifdef NBPG 12779# define getpagesize() NBPG * CLSIZE 12780# ifndef CLSIZE 12781# define CLSIZE 1 12782# endif /* no CLSIZE */ 12783# else /* no NBPG */ 12784# ifdef NBPC 12785# define getpagesize() NBPC 12786# else /* no NBPC */ 12787# ifdef PAGESIZE 12788# define getpagesize() PAGESIZE 12789# endif /* PAGESIZE */ 12790# endif /* no NBPC */ 12791# endif /* no NBPG */ 12792# endif /* no EXEC_PAGESIZE */ 12793# else /* no HAVE_SYS_PARAM_H */ 12794# define getpagesize() 8192 /* punt totally */ 12795# endif /* no HAVE_SYS_PARAM_H */ 12796# endif /* no _SC_PAGESIZE */ 12797 12798#endif /* no HAVE_GETPAGESIZE */ 12799 12800#ifdef __cplusplus 12801extern "C" { void *malloc(unsigned); } 12802#else 12803char *malloc(); 12804#endif 12805 12806jmp_buf jenv; 12807 12808int 12809intr() 12810{ 12811 signal(SIGSEGV, intr); 12812 longjmp(jenv, 1); 12813 return (1); 12814} 12815 12816int 12817main() 12818{ 12819 char *data, *data2; 12820 int i, pagesize, ps; 12821 int fd; 12822 12823 pagesize = getpagesize(); 12824 12825 /* 12826 * First, make a file with some known garbage in it. 12827 */ 12828 data = malloc(pagesize); 12829 if (!data) 12830 return(1); 12831 for (i = 0; i < pagesize; ++i) 12832 *(data + i) = rand(); 12833 umask(0); 12834 fd = creat("conftestmmap", 0600); 12835 if (fd < 0) 12836 return(1); 12837 if (write(fd, data, pagesize) != pagesize) 12838 return(1); 12839 close(fd); 12840 12841 /* 12842 * Next, try to mmap the file at a fixed address which 12843 * already has something else allocated at it. If we can, 12844 * also make sure that we see the same garbage. 12845 */ 12846 fd = open("conftestmmap", O_RDWR); 12847 if (fd < 0) 12848 return(1); 12849 12850 /* 12851 * Keep a copy, Apollo modifies the value... 12852 */ 12853 ps = pagesize; 12854 12855 /* 12856 * Apollo mmap() is not a syscall but a library function and fails 12857 * if it tries to dereference 'ps'. We must use setjmp in order to 12858 * catch the failure. 12859 */ 12860 signal(SIGSEGV, intr); 12861 if (setjmp(jenv) == 0) { 12862 data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); 12863 } else { 12864 data2 = (char *)-1; 12865 } 12866 if (data2 != (char *)-1) 12867 return(1); 12868 12869 signal(SIGSEGV, intr); 12870 if (setjmp(jenv) == 0) { 12871 data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L); 12872 } else { 12873 data2 = (char *)-1; 12874 } 12875 if (data2 == (char *)-1) 12876 return(1); 12877 12878 for (i = 0; i < pagesize; ++i) 12879 if (*(data + i) != *(data2 + i)) 12880 return(1); 12881 12882 close(fd); 12883 unlink("conftestmmap"); 12884 return(0); 12885} 12886 12887EOF 12888if { { eval echo configure:12889: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 12889then 12890 ac_cv_func_mmap_sizep=yes 12891else 12892 echo "configure: failed program was:" >&5 12893 cat conftest.$ac_ext >&5 12894 rm -fr conftest* 12895 ac_cv_func_mmap_sizep=no 12896fi 12897rm -fr conftest* 12898fi 12899 12900fi 12901 12902echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6 12903if test $ac_cv_func_mmap_sizep = yes; then 12904 cat >> confdefs.h <<\EOF 12905#define _MMAP_WITH_SIZEP 1 12906EOF 12907 12908fi 12909 12910echo $ac_n "checking if mmap works to get shared memory""... $ac_c" 1>&6 12911echo "configure:12912: checking if mmap works to get shared memory" >&5 12912if eval "test \"`echo '$''{'ac_cv_func_smmap'+set}'`\" = set"; then 12913 echo $ac_n "(cached) $ac_c" 1>&6 12914else 12915 if test "$cross_compiling" = yes; then 12916 ac_cv_func_smmap=no 12917else 12918 cat > conftest.$ac_ext <<EOF 12919#line 12920 "configure" 12920#include "confdefs.h" 12921 12922#if HAVE_STDLIB_H || STDC_HEADERS 12923#include <stdlib.h> 12924#endif 12925#ifdef HAVE_UNISTD_H 12926#include <unistd.h> 12927#endif 12928#include <sys/types.h> 12929#include <sys/mman.h> 12930#ifdef HAVE_FCNTL_H 12931#include <fcntl.h> 12932#endif 12933#if defined(HAVE_WAIT_H) 12934# include <wait.h> 12935#else 12936#include <sys/wait.h> 12937#endif 12938#include <stdio.h> 12939 12940#ifndef MAP_ANONYMOUS 12941# ifdef MAP_ANON 12942# define MAP_ANONYMOUS MAP_ANON 12943# endif 12944#endif 12945 12946/* 12947 * Needed for Apollo Domain/OS and may be for others? 12948 */ 12949#ifdef _MMAP_WITH_SIZEP 12950# define mmap_sizeparm(s) (&(s)) 12951#else 12952# define mmap_sizeparm(s) (s) 12953#endif 12954 12955char * 12956mkshare() 12957{ 12958 int size = 8192; 12959 int f; 12960 char *addr; 12961 12962#ifdef MAP_ANONYMOUS /* HP/UX */ 12963 f = -1; 12964 addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, f, 0); 12965#else 12966 if ((f = open("/dev/zero", 2)) < 0) 12967 exit(1); 12968 addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED, f, 0); 12969#endif 12970 if (addr == (char *)-1) 12971 exit(1); 12972 close(f); 12973 12974 return (addr); 12975} 12976 12977int 12978main() 12979{ 12980 char *addr; 12981 12982 addr = mkshare(); 12983 *addr = 'I'; 12984 12985 switch (fork()) { 12986 12987 case -1: 12988 printf("help\n"); exit(1); 12989 12990 case 0: /* child */ 12991 *addr = 'N'; 12992 _exit(0); 12993 break; 12994 default: /* parent */ 12995 wait(0); 12996 sleep(1); 12997 break; 12998 } 12999 13000 if (*addr != 'N') 13001 exit(1); 13002 exit(0); 13003} 13004 13005EOF 13006if { { eval echo configure:13007: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 13007then 13008 ac_cv_func_smmap=yes 13009else 13010 echo "configure: failed program was:" >&5 13011 cat conftest.$ac_ext >&5 13012 rm -fr conftest* 13013 ac_cv_func_smmap=no 13014fi 13015rm -fr conftest* 13016fi 13017 13018fi 13019 13020echo "$ac_t""$ac_cv_func_smmap" 1>&6 13021if test $ac_cv_func_smmap = yes; then 13022 cat >> confdefs.h <<\EOF 13023#define HAVE_SMMAP 1 13024EOF 13025 13026fi 13027echo $ac_n "checking if shmget works to get shared memory""... $ac_c" 1>&6 13028echo "configure:13029: checking if shmget works to get shared memory" >&5 13029if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then 13030 echo $ac_n "(cached) $ac_c" 1>&6 13031else 13032 if test "$cross_compiling" = yes; then 13033 ac_cv_func_shmget=no 13034else 13035 cat > conftest.$ac_ext <<EOF 13036#line 13037 "configure" 13037#include "confdefs.h" 13038 13039#include <sys/types.h> 13040#include <sys/ipc.h> 13041#include <sys/shm.h> 13042int 13043main() 13044{ 13045 int id; 13046 13047 id = shmget(IPC_PRIVATE, 0x1, IPC_CREAT|0600); 13048 if (id == -1) 13049 return(1); 13050 shmctl(id, IPC_RMID, 0); 13051 return(0); 13052} 13053 13054EOF 13055if { { eval echo configure:13056: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 13056then 13057 ac_cv_func_shmget=yes 13058else 13059 echo "configure: failed program was:" >&5 13060 cat conftest.$ac_ext >&5 13061 rm -fr conftest* 13062 ac_cv_func_shmget=no 13063fi 13064rm -fr conftest* 13065fi 13066 13067fi 13068 13069echo "$ac_t""$ac_cv_func_shmget" 1>&6 13070if test $ac_cv_func_shmget = yes; then 13071 cat >> confdefs.h <<\EOF 13072#define HAVE_SHMGET 1 13073EOF 13074 13075fi 13076# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 13077# for constant arguments. Useless! 13078echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 13079echo "configure:13080: checking for working alloca.h" >&5 13080if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 13081 echo $ac_n "(cached) $ac_c" 1>&6 13082else 13083 cat > conftest.$ac_ext <<EOF 13084#line 13085 "configure" 13085#include "confdefs.h" 13086#include <alloca.h> 13087int main() { 13088char *p = alloca(2 * sizeof(int)); 13089; return 0; } 13090EOF 13091if { { eval echo configure:13092: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13092 rm -rf conftest* 13093 ac_cv_header_alloca_h=yes 13094else 13095 echo "configure: failed program was:" >&5 13096 cat conftest.$ac_ext >&5 13097 rm -rf conftest* 13098 ac_cv_header_alloca_h=no 13099fi 13100rm -f conftest* 13101fi 13102 13103echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 13104if test $ac_cv_header_alloca_h = yes; then 13105 cat >> confdefs.h <<\EOF 13106#define HAVE_ALLOCA_H 1 13107EOF 13108 13109fi 13110 13111echo $ac_n "checking for alloca""... $ac_c" 1>&6 13112echo "configure:13113: checking for alloca" >&5 13113if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 13114 echo $ac_n "(cached) $ac_c" 1>&6 13115else 13116 cat > conftest.$ac_ext <<EOF 13117#line 13118 "configure" 13118#include "confdefs.h" 13119 13120#ifdef __GNUC__ 13121# define alloca __builtin_alloca 13122#else 13123# ifdef _MSC_VER 13124# include <malloc.h> 13125# define alloca _alloca 13126# else 13127# if HAVE_ALLOCA_H 13128# include <alloca.h> 13129# else 13130# ifdef _AIX 13131 #pragma alloca 13132# else 13133# ifndef alloca /* predefined by HP cc +Olibcalls */ 13134char *alloca (); 13135# endif 13136# endif 13137# endif 13138# endif 13139#endif 13140 13141int main() { 13142char *p = (char *) alloca(1); 13143; return 0; } 13144EOF 13145if { { eval echo configure:13146: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13146 rm -rf conftest* 13147 ac_cv_func_alloca_works=yes 13148else 13149 echo "configure: failed program was:" >&5 13150 cat conftest.$ac_ext >&5 13151 rm -rf conftest* 13152 ac_cv_func_alloca_works=no 13153fi 13154rm -f conftest* 13155fi 13156 13157echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 13158if test $ac_cv_func_alloca_works = yes; then 13159 cat >> confdefs.h <<\EOF 13160#define HAVE_ALLOCA 1 13161EOF 13162 13163fi 13164 13165if test $ac_cv_func_alloca_works = no; then 13166 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 13167 # that cause trouble. Some versions do not even contain alloca or 13168 # contain a buggy version. If you still want to use their alloca, 13169 # use ar to extract alloca.o from them instead of compiling alloca.c. 13170 ALLOCA=alloca.${ac_objext} 13171 cat >> confdefs.h <<\EOF 13172#define C_ALLOCA 1 13173EOF 13174 13175 13176echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 13177echo "configure:13178: checking whether alloca needs Cray hooks" >&5 13178if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 13179 echo $ac_n "(cached) $ac_c" 1>&6 13180else 13181 cat > conftest.$ac_ext <<EOF 13182#line 13183 "configure" 13183#include "confdefs.h" 13184#if defined(CRAY) && ! defined(CRAY2) 13185webecray 13186#else 13187wenotbecray 13188#endif 13189 13190EOF 13191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13192 egrep "webecray" >/dev/null 2>&1; then 13193 rm -rf conftest* 13194 ac_cv_os_cray=yes 13195else 13196 rm -rf conftest* 13197 ac_cv_os_cray=no 13198fi 13199rm -f conftest* 13200 13201fi 13202 13203echo "$ac_t""$ac_cv_os_cray" 1>&6 13204if test $ac_cv_os_cray = yes; then 13205for ac_func in _getb67 GETB67 getb67; do 13206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13207echo "configure:13208: checking for $ac_func" >&5 13208if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 13209 echo $ac_n "(cached) $ac_c" 1>&6 13210else 13211 cat > conftest.$ac_ext <<EOF 13212#line 13213 "configure" 13213#include "confdefs.h" 13214/* System header to define __stub macros and hopefully few prototypes, 13215 which can conflict with char $ac_func(); below. */ 13216#include <assert.h> 13217/* Override any gcc2 internal prototype to avoid an error. */ 13218/* We use char because int might match the return type of a gcc2 13219 builtin and then its argument prototype would still apply. */ 13220char $ac_func(); 13221 13222int main() { 13223 13224/* The GNU C library defines this for functions which it implements 13225 to always fail with ENOSYS. Some functions are actually named 13226 something starting with __ and the normal name is an alias. */ 13227#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13228choke me 13229#else 13230$ac_func(); 13231#endif 13232 13233; return 0; } 13234EOF 13235if { { eval echo configure:13236: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13236 rm -rf conftest* 13237 eval "ac_cv_func_$ac_func=yes" 13238else 13239 echo "configure: failed program was:" >&5 13240 cat conftest.$ac_ext >&5 13241 rm -rf conftest* 13242 eval "ac_cv_func_$ac_func=no" 13243fi 13244rm -f conftest* 13245fi 13246 13247if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 13248 echo "$ac_t""yes" 1>&6 13249 cat >> confdefs.h <<EOF 13250#define CRAY_STACKSEG_END $ac_func 13251EOF 13252 13253 break 13254else 13255 echo "$ac_t""no" 1>&6 13256fi 13257 13258done 13259fi 13260 13261echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 13262echo "configure:13263: checking stack direction for C alloca" >&5 13263if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 13264 echo $ac_n "(cached) $ac_c" 1>&6 13265else 13266 if test "$cross_compiling" = yes; then 13267 ac_cv_c_stack_direction=0 13268else 13269 cat > conftest.$ac_ext <<EOF 13270#line 13271 "configure" 13271#include "confdefs.h" 13272int find_stack_direction () 13273{ 13274 static char *addr = 0; 13275 auto char dummy; 13276 if (addr == 0) 13277 { 13278 addr = &dummy; 13279 return find_stack_direction (); 13280 } 13281 else 13282 return (&dummy > addr) ? 1 : -1; 13283} 13284int 13285main () 13286{ 13287 return (find_stack_direction() < 0); 13288} 13289EOF 13290if { { eval echo configure:13291: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 13291then 13292 ac_cv_c_stack_direction=1 13293else 13294 echo "configure: failed program was:" >&5 13295 cat conftest.$ac_ext >&5 13296 rm -fr conftest* 13297 ac_cv_c_stack_direction=-1 13298fi 13299rm -fr conftest* 13300fi 13301 13302fi 13303 13304echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 13305cat >> confdefs.h <<EOF 13306#define STACK_DIRECTION $ac_cv_c_stack_direction 13307EOF 13308 13309fi 13310 13311echo $ac_n "checking if quotactl is an ioctl""... $ac_c" 1>&6 13312echo "configure:13313: checking if quotactl is an ioctl" >&5 13313if eval "test \"`echo '$''{'ac_cv_func_quotaioctl'+set}'`\" = set"; then 13314 echo $ac_n "(cached) $ac_c" 1>&6 13315else 13316 cat > conftest.$ac_ext <<EOF 13317#line 13318 "configure" 13318#include "confdefs.h" 13319#include <sys/types.h> 13320#include <sys/fs/ufs_quota.h> 13321int main() { 13322struct quotctl q; ioctl(0, Q_QUOTACTL, &q) 13323; return 0; } 13324EOF 13325if { { eval echo configure:13326: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13326 rm -rf conftest* 13327 ac_cv_func_quotaioctl=yes 13328else 13329 echo "configure: failed program was:" >&5 13330 cat conftest.$ac_ext >&5 13331 rm -rf conftest* 13332 ac_cv_func_quotaioctl=no 13333fi 13334rm -f conftest* 13335fi 13336 13337echo "$ac_t""$ac_cv_func_quotaioctl" 1>&6 13338if test $ac_cv_func_quotaioctl = yes; then 13339 cat >> confdefs.h <<\EOF 13340#define HAVE_QUOTAIOCTL 1 13341EOF 13342 13343fi 13344echo $ac_n "checking for file locking via fcntl""... $ac_c" 1>&6 13345echo "configure:13346: checking for file locking via fcntl" >&5 13346if eval "test \"`echo '$''{'ac_cv_func_fcntl_lock'+set}'`\" = set"; then 13347 echo $ac_n "(cached) $ac_c" 1>&6 13348else 13349 cat > conftest.$ac_ext <<EOF 13350#line 13351 "configure" 13351#include "confdefs.h" 13352 13353#include <sys/types.h> 13354#include <fcntl.h> 13355int main() { 13356 13357struct flock fl; 13358fcntl(0, F_SETLK, &fl); 13359; return 0; } 13360EOF 13361if { { eval echo configure:13362: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13362 rm -rf conftest* 13363 ac_cv_func_fcntl_lock=yes 13364else 13365 echo "configure: failed program was:" >&5 13366 cat conftest.$ac_ext >&5 13367 rm -rf conftest* 13368 ac_cv_func_fcntl_lock=no 13369fi 13370rm -f conftest* 13371fi 13372 13373echo "$ac_t""$ac_cv_func_fcntl_lock" 1>&6 13374if test $ac_cv_func_fcntl_lock = yes; then 13375 cat >> confdefs.h <<\EOF 13376#define HAVE_FCNTL_LOCKF 1 13377EOF 13378 13379fi 13380echo $ac_n "checking for uname""... $ac_c" 1>&6 13381echo "configure:13382: checking for uname" >&5 13382if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then 13383 echo $ac_n "(cached) $ac_c" 1>&6 13384else 13385 cat > conftest.$ac_ext <<EOF 13386#line 13387 "configure" 13387#include "confdefs.h" 13388#include <sys/utsname.h> 13389int main() { 13390struct utsname un; 13391uname(&un); 13392; return 0; } 13393EOF 13394if { { eval echo configure:13395: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13395 rm -rf conftest* 13396 ac_cv_func_uname=yes 13397else 13398 echo "configure: failed program was:" >&5 13399 cat conftest.$ac_ext >&5 13400 rm -rf conftest* 13401 ac_cv_func_uname=no 13402fi 13403rm -f conftest* 13404fi 13405 13406echo "$ac_t""$ac_cv_func_uname" 1>&6 13407if test $ac_cv_func_uname = yes; then 13408 cat >> confdefs.h <<\EOF 13409#define HAVE_UNAME 1 13410EOF 13411 13412fi 13413for ac_func in execl 13414do 13415echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13416echo "configure:13417: checking for $ac_func" >&5 13417if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 13418 echo $ac_n "(cached) $ac_c" 1>&6 13419else 13420 cat > conftest.$ac_ext <<EOF 13421#line 13422 "configure" 13422#include "confdefs.h" 13423/* System header to define __stub macros and hopefully few prototypes, 13424 which can conflict with char $ac_func(); below. */ 13425#include <assert.h> 13426/* Override any gcc2 internal prototype to avoid an error. */ 13427/* We use char because int might match the return type of a gcc2 13428 builtin and then its argument prototype would still apply. */ 13429char $ac_func(); 13430 13431int main() { 13432 13433/* The GNU C library defines this for functions which it implements 13434 to always fail with ENOSYS. Some functions are actually named 13435 something starting with __ and the normal name is an alias. */ 13436#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13437choke me 13438#else 13439$ac_func(); 13440#endif 13441 13442; return 0; } 13443EOF 13444if { { eval echo configure:13445: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13445 rm -rf conftest* 13446 eval "ac_cv_func_$ac_func=yes" 13447else 13448 echo "configure: failed program was:" >&5 13449 cat conftest.$ac_ext >&5 13450 rm -rf conftest* 13451 eval "ac_cv_func_$ac_func=no" 13452fi 13453rm -f conftest* 13454fi 13455 13456if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 13457 echo "$ac_t""yes" 1>&6 13458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 13459 cat >> confdefs.h <<EOF 13460#define $ac_tr_func 1 13461EOF 13462 13463else 13464 echo "$ac_t""no" 1>&6 13465fi 13466done 13467 13468ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 13469echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 13470echo "configure:13471: checking for vfork.h" >&5 13471if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 13472 echo $ac_n "(cached) $ac_c" 1>&6 13473else 13474 cat > conftest.$ac_ext <<EOF 13475#line 13476 "configure" 13476#include "confdefs.h" 13477#include <vfork.h> 13478EOF 13479ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13480{ { eval echo configure:13481: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 13481ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 13482if test -z "$ac_err"; then 13483 rm -rf conftest* 13484 eval "ac_cv_header_$ac_safe=yes" 13485else 13486 echo "$ac_err" >&5 13487 echo "configure: failed program was:" >&5 13488 cat conftest.$ac_ext >&5 13489 rm -rf conftest* 13490 eval "ac_cv_header_$ac_safe=no" 13491fi 13492rm -f conftest* 13493fi 13494if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13495 echo "$ac_t""yes" 1>&6 13496 cat >> confdefs.h <<\EOF 13497#define HAVE_VFORK_H 1 13498EOF 13499 13500else 13501 echo "$ac_t""no" 1>&6 13502fi 13503 13504echo $ac_n "checking for working vfork""... $ac_c" 1>&6 13505echo "configure:13506: checking for working vfork" >&5 13506if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 13507 echo $ac_n "(cached) $ac_c" 1>&6 13508else 13509 if test "$cross_compiling" = yes; then 13510 echo $ac_n "checking for vfork""... $ac_c" 1>&6 13511echo "configure:13512: checking for vfork" >&5 13512if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 13513 echo $ac_n "(cached) $ac_c" 1>&6 13514else 13515 cat > conftest.$ac_ext <<EOF 13516#line 13517 "configure" 13517#include "confdefs.h" 13518/* System header to define __stub macros and hopefully few prototypes, 13519 which can conflict with char vfork(); below. */ 13520#include <assert.h> 13521/* Override any gcc2 internal prototype to avoid an error. */ 13522/* We use char because int might match the return type of a gcc2 13523 builtin and then its argument prototype would still apply. */ 13524char vfork(); 13525 13526int main() { 13527 13528/* The GNU C library defines this for functions which it implements 13529 to always fail with ENOSYS. Some functions are actually named 13530 something starting with __ and the normal name is an alias. */ 13531#if defined (__stub_vfork) || defined (__stub___vfork) 13532choke me 13533#else 13534vfork(); 13535#endif 13536 13537; return 0; } 13538EOF 13539if { { eval echo configure:13540: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13540 rm -rf conftest* 13541 eval "ac_cv_func_vfork=yes" 13542else 13543 echo "configure: failed program was:" >&5 13544 cat conftest.$ac_ext >&5 13545 rm -rf conftest* 13546 eval "ac_cv_func_vfork=no" 13547fi 13548rm -f conftest* 13549fi 13550 13551if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then 13552 echo "$ac_t""yes" 1>&6 13553 : 13554else 13555 echo "$ac_t""no" 1>&6 13556fi 13557 13558ac_cv_func_vfork_works=$ac_cv_func_vfork 13559else 13560 cat > conftest.$ac_ext <<EOF 13561#line 13562 "configure" 13562#include "confdefs.h" 13563/* Thanks to Paul Eggert for first version of this test. */ 13564#include <stdio.h> 13565#include <sys/types.h> 13566#include <sys/stat.h> 13567#ifdef HAVE_UNISTD_H 13568#include <unistd.h> 13569#endif 13570#ifdef HAVE_VFORK_H 13571#include <vfork.h> 13572#endif 13573#ifdef HAVE_STDLIB_H 13574#include <stdlib.h> 13575#endif 13576#if defined(HAVE_WAIT_H) 13577#include <wait.h> 13578#else 13579#include <sys/wait.h> 13580#endif 13581/* On some sparc systems, changes by the child to local and incoming 13582 argument registers are propagated back to the parent. 13583 The compiler is told about this with #include <vfork.h>, 13584 but some compilers (e.g. gcc -O) don't grok <vfork.h>. 13585 Test for this by using a static variable whose address 13586 is put into a register that is clobbered by the vfork. */ 13587#ifndef VMS 13588static int 13589#ifdef __cplusplus 13590sparc_address_test (int arg) 13591#else 13592sparc_address_test (arg) int arg; 13593#endif 13594{ 13595 static pid_t child; 13596 if (!child) { 13597 child = vfork (); 13598 if (child < 0) { 13599 perror ("vfork"); 13600 _exit(2); 13601 } 13602 if (!child) { 13603 arg = getpid(); 13604 write(-1, "", 0); 13605 _exit (arg); 13606 } 13607 } 13608 return (0); 13609} 13610#endif 13611int exc = 0; 13612int data = 0; 13613 13614int 13615main() { 13616 pid_t parent = getpid (); 13617 pid_t child; 13618 13619#ifndef VMS 13620 sparc_address_test(0); 13621#endif 13622 13623 child = vfork (); 13624 13625 if (child == 0) { 13626 /* Here is another test for sparc vfork register problems. 13627 This test uses lots of local variables, at least 13628 as many local variables as main has allocated so far 13629 including compiler temporaries. 4 locals are enough for 13630 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. 13631 A buggy compiler should reuse the register of parent 13632 for one of the local variables, since it will think that 13633 parent can't possibly be used any more in this routine. 13634 Assigning to the local variable will thus munge parent 13635 in the parent process. */ 13636 pid_t 13637 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 13638 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 13639 /* Convince the compiler that p..p7 are live; otherwise, it might 13640 use the same hardware register for all 8 local variables. */ 13641 if (p != p1 || p != p2 || p != p3 || p != p4 13642 || p != p5 || p != p6 || p != p7) 13643 exc = 1; 13644 13645 /* On some systems (e.g. IRIX 3.3), 13646 vfork doesn't separate parent from child file descriptors. 13647 If the child closes a descriptor before it execs or exits, 13648 this munges the parent's descriptor as well. 13649 Test for this by closing stdout in the child. */ 13650 if (exc == 0) 13651 exc = close(fileno(stdout)) != 0; 13652 13653 /* 13654 * Check whether a modification in the data segment of the child 13655 * is forwarded to the data segment of the parent, vfork() on Haiku 13656 * fails to do this. We cannot use vfork() in this case as vfork() 13657 * children usually signal things to their parent by modifying the 13658 * data segment. 13659 */ 13660 data = 1; 13661 13662 /* 13663 * VMS hangs if we do not call execl() 13664 */ 13665#ifdef HAVE_EXECL 13666 /* 13667 * On VMS, things hang unless the child calls exec() 13668 */ 13669 if (exc == 0) 13670 execl("/bin/true", "true", (char *)0); 13671 else 13672 execl("/bin/false", "false", (char *)0); 13673#endif 13674 _exit(exc); 13675 } else { 13676 int status; 13677 struct stat st; 13678 13679 while (wait(&status) != child) 13680 ; 13681 exit( 13682 /* Was there some problem with vforking? */ 13683 child < 0 13684 13685 /* Did the child fail? (This shouldn't happen.) */ 13686 || status 13687 13688 /* Did the vfork/compiler bug occur? */ 13689 || parent != getpid() 13690 13691 || data == 0 13692 13693 /* Did the file descriptor bug occur? */ 13694 || fstat(fileno(stdout), &st) != 0 13695 ); 13696 } 13697} 13698EOF 13699if { { eval echo configure:13700: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 13700then 13701 ac_cv_func_vfork_works=yes 13702else 13703 echo "configure: failed program was:" >&5 13704 cat conftest.$ac_ext >&5 13705 rm -fr conftest* 13706 ac_cv_func_vfork_works=no 13707fi 13708rm -fr conftest* 13709fi 13710 13711fi 13712 13713echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 13714if test $ac_cv_func_vfork_works = no; then 13715 cat >> confdefs.h <<\EOF 13716#define vfork fork 13717EOF 13718 13719else 13720 cat >> confdefs.h <<\EOF 13721#define HAVE_VFORK 1 13722EOF 13723 13724fi 13725 13726echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6 13727echo "configure:13728: checking for sys_siglist" >&5 13728if eval "test \"`echo '$''{'ac_cv_func_sys_siglist'+set}'`\" = set"; then 13729 echo $ac_n "(cached) $ac_c" 1>&6 13730else 13731 if test "$cross_compiling" = yes; then 13732 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 13733else 13734 cat > conftest.$ac_ext <<EOF 13735#line 13736 "configure" 13736#include "confdefs.h" 13737 13738int 13739main() 13740{ extern char *sys_siglist[]; 13741if (sys_siglist[1] == 0) 13742 return(1); 13743return(0);} 13744EOF 13745if { { eval echo configure:13746: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 13746then 13747 ac_cv_func_sys_siglist=yes 13748else 13749 echo "configure: failed program was:" >&5 13750 cat conftest.$ac_ext >&5 13751 rm -fr conftest* 13752 ac_cv_func_sys_siglist=no 13753fi 13754rm -fr conftest* 13755fi 13756 13757fi 13758 13759echo "$ac_t""$ac_cv_func_sys_siglist" 1>&6 13760if test $ac_cv_func_sys_siglist = yes; then 13761 cat >> confdefs.h <<\EOF 13762#define HAVE_SYS_SIGLIST 1 13763EOF 13764 13765fi 13766echo $ac_n "checking for BSD compliant getpgrp""... $ac_c" 1>&6 13767echo "configure:13768: checking for BSD compliant getpgrp" >&5 13768if eval "test \"`echo '$''{'ac_cv_func_bsd_getpgrp'+set}'`\" = set"; then 13769 echo $ac_n "(cached) $ac_c" 1>&6 13770else 13771 if test "$cross_compiling" = yes; then 13772 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 13773else 13774 cat > conftest.$ac_ext <<EOF 13775#line 13776 "configure" 13776#include "confdefs.h" 13777 13778#ifdef HAVE_UNISTD_H 13779#include <unistd.h> 13780#endif 13781 13782int 13783main() 13784{ long p; 13785/* 13786 * POSIX getpgrp() has void parameter... 13787 */ 13788 p = getpgrp(-1); 13789 if (p == getpgrp(1) && p == getpgrp(getpid())) 13790 return(1); 13791return(0);} 13792EOF 13793if { { eval echo configure:13794: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 13794then 13795 ac_cv_func_bsd_getpgrp=yes 13796else 13797 echo "configure: failed program was:" >&5 13798 cat conftest.$ac_ext >&5 13799 rm -fr conftest* 13800 ac_cv_func_bsd_getpgrp=no 13801fi 13802rm -fr conftest* 13803fi 13804 13805fi 13806 13807echo "$ac_t""$ac_cv_func_bsd_getpgrp" 1>&6 13808if test $ac_cv_func_bsd_getpgrp = yes; then 13809 cat >> confdefs.h <<\EOF 13810#define HAVE_BSD_GETPGRP 1 13811EOF 13812 13813fi 13814echo $ac_n "checking for BSD compliant setpgrp""... $ac_c" 1>&6 13815echo "configure:13816: checking for BSD compliant setpgrp" >&5 13816if eval "test \"`echo '$''{'ac_cv_func_bsd_setpgrp'+set}'`\" = set"; then 13817 echo $ac_n "(cached) $ac_c" 1>&6 13818else 13819 if test "$cross_compiling" = yes; then 13820 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 13821else 13822 cat > conftest.$ac_ext <<EOF 13823#line 13824 "configure" 13824#include "confdefs.h" 13825 13826#ifdef HAVE_UNISTD_H 13827#include <unistd.h> 13828#endif 13829#include <errno.h> 13830#ifndef HAVE_ERRNO_DEF 13831extern int errno; 13832#endif 13833int 13834main() 13835{ errno = 0; 13836/* 13837 * Force illegal pid on BSD 13838 */ 13839if (setpgrp(-1, 100) < 0 && errno == ESRCH) 13840 return(0); 13841return(1);} 13842EOF 13843if { { eval echo configure:13844: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 13844then 13845 ac_cv_func_bsd_setpgrp=yes 13846else 13847 echo "configure: failed program was:" >&5 13848 cat conftest.$ac_ext >&5 13849 rm -fr conftest* 13850 ac_cv_func_bsd_setpgrp=no 13851fi 13852rm -fr conftest* 13853fi 13854 13855fi 13856 13857echo "$ac_t""$ac_cv_func_bsd_setpgrp" 1>&6 13858if test $ac_cv_func_bsd_setpgrp = yes; then 13859 cat >> confdefs.h <<\EOF 13860#define HAVE_BSD_SETPGRP 1 13861EOF 13862 13863fi 13864echo $ac_n "checking for C99 compliant isinf""... $ac_c" 1>&6 13865echo "configure:13866: checking for C99 compliant isinf" >&5 13866if eval "test \"`echo '$''{'ac_cv_func_c99_isinf'+set}'`\" = set"; then 13867 echo $ac_n "(cached) $ac_c" 1>&6 13868else 13869 cat > conftest.$ac_ext <<EOF 13870#line 13871 "configure" 13871#include "confdefs.h" 13872#include <math.h> 13873int main() { 13874 double d; 13875#ifndef isinf 13876The isinf macro is not defined 13877#endif 13878return (isinf(d)); 13879 13880; return 0; } 13881EOF 13882if { { eval echo configure:13883: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13883 rm -rf conftest* 13884 ac_cv_func_c99_isinf=yes 13885else 13886 echo "configure: failed program was:" >&5 13887 cat conftest.$ac_ext >&5 13888 rm -rf conftest* 13889 ac_cv_func_c99_isinf=no 13890fi 13891rm -f conftest* 13892fi 13893 13894echo "$ac_t""$ac_cv_func_c99_isinf" 1>&6 13895if test $ac_cv_func_c99_isinf = yes; then 13896 cat >> confdefs.h <<\EOF 13897#define HAVE_C99_ISINF 1 13898EOF 13899 13900fi 13901echo $ac_n "checking for C99 compliant isnan""... $ac_c" 1>&6 13902echo "configure:13903: checking for C99 compliant isnan" >&5 13903if eval "test \"`echo '$''{'ac_cv_func_c99_isnan'+set}'`\" = set"; then 13904 echo $ac_n "(cached) $ac_c" 1>&6 13905else 13906 cat > conftest.$ac_ext <<EOF 13907#line 13908 "configure" 13908#include "confdefs.h" 13909#include <math.h> 13910int main() { 13911 double d; 13912#ifndef isnan 13913The isnan macro is not defined 13914#endif 13915return (isnan(d)); 13916 13917; return 0; } 13918EOF 13919if { { eval echo configure:13920: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13920 rm -rf conftest* 13921 ac_cv_func_c99_isnan=yes 13922else 13923 echo "configure: failed program was:" >&5 13924 cat conftest.$ac_ext >&5 13925 rm -rf conftest* 13926 ac_cv_func_c99_isnan=no 13927fi 13928rm -f conftest* 13929fi 13930 13931echo "$ac_t""$ac_cv_func_c99_isnan" 1>&6 13932if test $ac_cv_func_c99_isnan = yes; then 13933 cat >> confdefs.h <<\EOF 13934#define HAVE_C99_ISNAN 1 13935EOF 13936 13937fi 13938echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 13939echo "configure:13940: checking for sigsetjmp" >&5 13940if eval "test \"`echo '$''{'ac_cv_func_sigsetjmp'+set}'`\" = set"; then 13941 echo $ac_n "(cached) $ac_c" 1>&6 13942else 13943 cat > conftest.$ac_ext <<EOF 13944#line 13945 "configure" 13945#include "confdefs.h" 13946 13947#include <setjmp.h> 13948int main() { 13949 13950sigjmp_buf jb; 13951sigsetjmp(jb, 1); 13952; return 0; } 13953EOF 13954if { { eval echo configure:13955: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13955 rm -rf conftest* 13956 ac_cv_func_sigsetjmp=yes 13957else 13958 echo "configure: failed program was:" >&5 13959 cat conftest.$ac_ext >&5 13960 rm -rf conftest* 13961 ac_cv_func_sigsetjmp=no 13962fi 13963rm -f conftest* 13964fi 13965 13966echo "$ac_t""$ac_cv_func_sigsetjmp" 1>&6 13967if test $ac_cv_func_sigsetjmp = yes; then 13968 cat >> confdefs.h <<\EOF 13969#define HAVE_SIGSETJMP 1 13970EOF 13971 13972fi 13973echo $ac_n "checking for siglongjmp""... $ac_c" 1>&6 13974echo "configure:13975: checking for siglongjmp" >&5 13975if eval "test \"`echo '$''{'ac_cv_func_siglongjmp'+set}'`\" = set"; then 13976 echo $ac_n "(cached) $ac_c" 1>&6 13977else 13978 cat > conftest.$ac_ext <<EOF 13979#line 13980 "configure" 13980#include "confdefs.h" 13981 13982#include <setjmp.h> 13983int main() { 13984 13985sigjmp_buf jb; 13986sigsetjmp(jb, 1); 13987siglongjmp(jb, 1); 13988; return 0; } 13989EOF 13990if { { eval echo configure:13991: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 13991 rm -rf conftest* 13992 ac_cv_func_siglongjmp=yes 13993else 13994 echo "configure: failed program was:" >&5 13995 cat conftest.$ac_ext >&5 13996 rm -rf conftest* 13997 ac_cv_func_siglongjmp=no 13998fi 13999rm -f conftest* 14000fi 14001 14002echo "$ac_t""$ac_cv_func_siglongjmp" 1>&6 14003if test $ac_cv_func_siglongjmp = yes; then 14004 cat >> confdefs.h <<\EOF 14005#define HAVE_SIGLONGJMP 1 14006EOF 14007 14008fi 14009echo $ac_n "checking whether *printf() supports %jd""... $ac_c" 1>&6 14010echo "configure:14011: checking whether *printf() supports %jd" >&5 14011if eval "test \"`echo '$''{'ac_cv_func_printf_j'+set}'`\" = set"; then 14012 echo $ac_n "(cached) $ac_c" 1>&6 14013else 14014 if test "$cross_compiling" = yes; then 14015 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 14016else 14017 cat > conftest.$ac_ext <<EOF 14018#line 14019 "configure" 14019#include "confdefs.h" 14020 14021#include <inttypes.h> 14022int 14023main() 14024{ intmax_t m = 123456789012LL; 14025char buf[32]; 14026sprintf(buf, "%jd", m); 14027if (strcmp(buf, "123456789012") == 0) 14028 return(0); 14029return(1);} 14030EOF 14031if { { eval echo configure:14032: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 14032then 14033 ac_cv_func_printf_j=yes 14034else 14035 echo "configure: failed program was:" >&5 14036 cat conftest.$ac_ext >&5 14037 rm -fr conftest* 14038 ac_cv_func_printf_j=no 14039fi 14040rm -fr conftest* 14041fi 14042 14043fi 14044 14045echo "$ac_t""$ac_cv_func_printf_j" 1>&6 14046if test $ac_cv_func_printf_j = yes; then 14047 cat >> confdefs.h <<\EOF 14048#define HAVE_PRINTF_J 1 14049EOF 14050 14051fi 14052echo $ac_n "checking whether *printf() supports %zd""... $ac_c" 1>&6 14053echo "configure:14054: checking whether *printf() supports %zd" >&5 14054if eval "test \"`echo '$''{'ac_cv_func_printf_z'+set}'`\" = set"; then 14055 echo $ac_n "(cached) $ac_c" 1>&6 14056else 14057 if test "$cross_compiling" = yes; then 14058 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 14059else 14060 cat > conftest.$ac_ext <<EOF 14061#line 14062 "configure" 14062#include "confdefs.h" 14063 14064#include <sys/types.h> 14065int 14066main() 14067{ size_t m = 1234567890; 14068char buf[32]; 14069sprintf(buf, "%zd", m); 14070if (strcmp(buf, "1234567890") == 0) 14071 return(0); 14072return(1);} 14073EOF 14074if { { eval echo configure:14075: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 14075then 14076 ac_cv_func_printf_z=yes 14077else 14078 echo "configure: failed program was:" >&5 14079 cat conftest.$ac_ext >&5 14080 rm -fr conftest* 14081 ac_cv_func_printf_z=no 14082fi 14083rm -fr conftest* 14084fi 14085 14086fi 14087 14088echo "$ac_t""$ac_cv_func_printf_z" 1>&6 14089if test $ac_cv_func_printf_z = yes; then 14090 cat >> confdefs.h <<\EOF 14091#define HAVE_PRINTF_Z 1 14092EOF 14093 14094fi 14095echo $ac_n "checking whether *printf() supports %lld""... $ac_c" 1>&6 14096echo "configure:14097: checking whether *printf() supports %lld" >&5 14097if eval "test \"`echo '$''{'ac_cv_func_printf_ll'+set}'`\" = set"; then 14098 echo $ac_n "(cached) $ac_c" 1>&6 14099else 14100 if test "$cross_compiling" = yes; then 14101 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 14102else 14103 cat > conftest.$ac_ext <<EOF 14104#line 14105 "configure" 14105#include "confdefs.h" 14106 14107int 14108main() 14109{ long long ll = 123456789012LL; 14110char buf[32]; 14111sprintf(buf, "%lld", ll); 14112if (strcmp(buf, "123456789012") == 0) 14113 return(0); 14114return(1);} 14115EOF 14116if { { eval echo configure:14117: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 14117then 14118 ac_cv_func_printf_ll=yes 14119else 14120 echo "configure: failed program was:" >&5 14121 cat conftest.$ac_ext >&5 14122 rm -fr conftest* 14123 ac_cv_func_printf_ll=no 14124fi 14125rm -fr conftest* 14126fi 14127 14128fi 14129 14130echo "$ac_t""$ac_cv_func_printf_ll" 1>&6 14131if test $ac_cv_func_printf_ll = yes; then 14132 cat >> confdefs.h <<\EOF 14133#define HAVE_PRINTF_LL 1 14134EOF 14135 14136fi 14137for ac_hdr in stdlib.h 14138do 14139ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 14140echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 14141echo "configure:14142: checking for $ac_hdr" >&5 14142if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 14143 echo $ac_n "(cached) $ac_c" 1>&6 14144else 14145 cat > conftest.$ac_ext <<EOF 14146#line 14147 "configure" 14147#include "confdefs.h" 14148#include <$ac_hdr> 14149EOF 14150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14151{ { eval echo configure:14152: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 14152ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 14153if test -z "$ac_err"; then 14154 rm -rf conftest* 14155 eval "ac_cv_header_$ac_safe=yes" 14156else 14157 echo "$ac_err" >&5 14158 echo "configure: failed program was:" >&5 14159 cat conftest.$ac_ext >&5 14160 rm -rf conftest* 14161 eval "ac_cv_header_$ac_safe=no" 14162fi 14163rm -f conftest* 14164fi 14165if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14166 echo "$ac_t""yes" 1>&6 14167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 14168 cat >> confdefs.h <<EOF 14169#define $ac_tr_hdr 1 14170EOF 14171 14172else 14173 echo "$ac_t""no" 1>&6 14174fi 14175done 14176 14177echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 14178echo "configure:14179: checking return type of signal handlers" >&5 14179if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 14180 echo $ac_n "(cached) $ac_c" 1>&6 14181else 14182 cat > conftest.$ac_ext <<EOF 14183#line 14184 "configure" 14184#include "confdefs.h" 14185#include <sys/types.h> 14186#include <signal.h> 14187#ifdef signal 14188#undef signal 14189#endif 14190#ifdef __cplusplus 14191extern "C" void (*signal (int, void (*)(int)))(int); 14192#else 14193void (*signal ()) (); 14194#endif 14195 14196int main() { 14197int i; 14198; return 0; } 14199EOF 14200if { { eval echo configure:14201: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 14201 rm -rf conftest* 14202 ac_cv_type_signal=void 14203else 14204 echo "configure: failed program was:" >&5 14205 cat conftest.$ac_ext >&5 14206 rm -rf conftest* 14207 ac_cv_type_signal=int 14208fi 14209rm -f conftest* 14210fi 14211 14212echo "$ac_t""$ac_cv_type_signal" 1>&6 14213cat >> confdefs.h <<EOF 14214#define RETSIGTYPE $ac_cv_type_signal 14215EOF 14216 14217 14218echo $ac_n "checking if realloc() does implement realloc(NULL, size)""... $ac_c" 1>&6 14219echo "configure:14220: checking if realloc() does implement realloc(NULL, size)" >&5 14220if eval "test \"`echo '$''{'ac_cv_realloc_null'+set}'`\" = set"; then 14221 echo $ac_n "(cached) $ac_c" 1>&6 14222else 14223 if test "$cross_compiling" = yes; then 14224 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 14225else 14226 cat > conftest.$ac_ext <<EOF 14227#line 14228 "configure" 14228#include "confdefs.h" 14229 14230#ifdef HAVE_STDLIB_H 14231#include <stdlib.h> 14232#endif 14233#include <signal.h> 14234 14235RETSIGTYPE 14236sig(s) 14237 int s; 14238{ 14239 exit(1); 14240} 14241int 14242main() 14243{ 14244 char *p; 14245 14246 signal(SIGSEGV, sig); 14247 p = realloc((char *)0, 10); 14248 if (p == (char *)0) 14249 exit(1); 14250 exit(0); 14251} 14252EOF 14253if { { eval echo configure:14254: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 14254then 14255 ac_cv_realloc_null=yes 14256else 14257 echo "configure: failed program was:" >&5 14258 cat conftest.$ac_ext >&5 14259 rm -fr conftest* 14260 ac_cv_realloc_null=no 14261fi 14262rm -fr conftest* 14263fi 14264 14265fi 14266 14267echo "$ac_t""$ac_cv_realloc_null" 1>&6 14268if test $ac_cv_realloc_null = yes; then 14269 cat >> confdefs.h <<\EOF 14270#define HAVE_REALLOC_NULL 1 14271EOF 14272 14273fi 14274for ac_hdr in stdlib.h 14275do 14276ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 14277echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 14278echo "configure:14279: checking for $ac_hdr" >&5 14279if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 14280 echo $ac_n "(cached) $ac_c" 1>&6 14281else 14282 cat > conftest.$ac_ext <<EOF 14283#line 14284 "configure" 14284#include "confdefs.h" 14285#include <$ac_hdr> 14286EOF 14287ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14288{ { eval echo configure:14289: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 14289ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 14290if test -z "$ac_err"; then 14291 rm -rf conftest* 14292 eval "ac_cv_header_$ac_safe=yes" 14293else 14294 echo "$ac_err" >&5 14295 echo "configure: failed program was:" >&5 14296 cat conftest.$ac_ext >&5 14297 rm -rf conftest* 14298 eval "ac_cv_header_$ac_safe=no" 14299fi 14300rm -f conftest* 14301fi 14302if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14303 echo "$ac_t""yes" 1>&6 14304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 14305 cat >> confdefs.h <<EOF 14306#define $ac_tr_hdr 1 14307EOF 14308 14309else 14310 echo "$ac_t""no" 1>&6 14311fi 14312done 14313 14314for ac_hdr in unistd.h 14315do 14316ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 14317echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 14318echo "configure:14319: checking for $ac_hdr" >&5 14319if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 14320 echo $ac_n "(cached) $ac_c" 1>&6 14321else 14322 cat > conftest.$ac_ext <<EOF 14323#line 14324 "configure" 14324#include "confdefs.h" 14325#include <$ac_hdr> 14326EOF 14327ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14328{ { eval echo configure:14329: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 14329ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 14330if test -z "$ac_err"; then 14331 rm -rf conftest* 14332 eval "ac_cv_header_$ac_safe=yes" 14333else 14334 echo "$ac_err" >&5 14335 echo "configure: failed program was:" >&5 14336 cat conftest.$ac_ext >&5 14337 rm -rf conftest* 14338 eval "ac_cv_header_$ac_safe=no" 14339fi 14340rm -f conftest* 14341fi 14342if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14343 echo "$ac_t""yes" 1>&6 14344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 14345 cat >> confdefs.h <<EOF 14346#define $ac_tr_hdr 1 14347EOF 14348 14349else 14350 echo "$ac_t""no" 1>&6 14351fi 14352done 14353 14354for ac_hdr in wait.h 14355do 14356ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 14357echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 14358echo "configure:14359: checking for $ac_hdr" >&5 14359if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 14360 echo $ac_n "(cached) $ac_c" 1>&6 14361else 14362 cat > conftest.$ac_ext <<EOF 14363#line 14364 "configure" 14364#include "confdefs.h" 14365#include <$ac_hdr> 14366EOF 14367ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14368{ { eval echo configure:14369: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 14369ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 14370if test -z "$ac_err"; then 14371 rm -rf conftest* 14372 eval "ac_cv_header_$ac_safe=yes" 14373else 14374 echo "$ac_err" >&5 14375 echo "configure: failed program was:" >&5 14376 cat conftest.$ac_ext >&5 14377 rm -rf conftest* 14378 eval "ac_cv_header_$ac_safe=no" 14379fi 14380rm -f conftest* 14381fi 14382if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14383 echo "$ac_t""yes" 1>&6 14384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 14385 cat >> confdefs.h <<EOF 14386#define $ac_tr_hdr 1 14387EOF 14388 14389else 14390 echo "$ac_t""no" 1>&6 14391fi 14392done 14393 14394echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 14395echo "configure:14396: checking for sys/wait.h that is POSIX.1 compatible" >&5 14396if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 14397 echo $ac_n "(cached) $ac_c" 1>&6 14398else 14399 cat > conftest.$ac_ext <<EOF 14400#line 14401 "configure" 14401#include "confdefs.h" 14402#include <sys/types.h> 14403#include <sys/wait.h> 14404#ifndef WEXITSTATUS 14405#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 14406#endif 14407#ifndef WIFEXITED 14408#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14409#endif 14410int main() { 14411int s; 14412wait (&s); 14413s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14414; return 0; } 14415EOF 14416if { { eval echo configure:14417: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 14417 rm -rf conftest* 14418 ac_cv_header_sys_wait_h=yes 14419else 14420 echo "configure: failed program was:" >&5 14421 cat conftest.$ac_ext >&5 14422 rm -rf conftest* 14423 ac_cv_header_sys_wait_h=no 14424fi 14425rm -f conftest* 14426fi 14427 14428echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 14429if test $ac_cv_header_sys_wait_h = yes; then 14430 cat >> confdefs.h <<\EOF 14431#define HAVE_SYS_WAIT_H 1 14432EOF 14433 14434fi 14435 14436echo $ac_n "checking for halfway POSIX compliant waitid()""... $ac_c" 1>&6 14437echo "configure:14438: checking for halfway POSIX compliant waitid()" >&5 14438if eval "test \"`echo '$''{'ac_cv_func_waitid'+set}'`\" = set"; then 14439 echo $ac_n "(cached) $ac_c" 1>&6 14440else 14441 if test "$cross_compiling" = yes; then 14442 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 14443else 14444 cat > conftest.$ac_ext <<EOF 14445#line 14446 "configure" 14446#include "confdefs.h" 14447 14448#ifdef HAVE_STDLIB_H 14449#include <stdlib.h> 14450#endif 14451#ifdef HAVE_UNISTD_H 14452#include <unistd.h> 14453#endif 14454#if defined(HAVE_WAIT_H) 14455# include <wait.h> 14456#else 14457#include <sys/wait.h> 14458#endif 14459#include <signal.h> 14460/* 14461 * Non-standard compliant platforms may need 14462 * #include <signal.h> or something similar 14463 * in addition to the include files above. 14464 */ 14465 14466int 14467main() 14468{ 14469 siginfo_t si; 14470 pid_t pid; 14471 int ret; 14472 14473 if ((pid = fork()) < 0) 14474 exit(1); 14475 if (pid == 0) { 14476 _exit(1234567890); 14477 } 14478 ret = waitid(P_PID, pid, &si, WEXITED); 14479 if (ret < 0) 14480 exit(1); 14481 if (pid != si.si_pid) /* Old Mac OS X has si.si_pid == 0 */ 14482 exit(2); 14483 if (si.si_code != CLD_EXITED) /* Old Mac OS X has si.si_code == 0 */ 14484 exit(3); 14485 if ((si.si_status & 0xFFFF) != (1234567890 & 0xFFFF)) 14486 exit(4); /* Should deliver more than 8 bits */ 14487 /* Linux only delivers 8 bits */ 14488 /* Mac OS X delivers 24 bits */ 14489 14490 if ((pid = fork()) < 0) 14491 exit(1); 14492 if (pid == 0) { 14493 kill(getpid(), SIGTERM); 14494 sleep (1); 14495 _exit(1234567890); 14496 } 14497 ret = waitid(P_PID, pid, &si, WEXITED); 14498 if (ret < 0) 14499 exit(1); 14500 if (pid != si.si_pid) /* Old Mac OS X has si.si_pid == 0 */ 14501 exit(2); 14502 if (si.si_code != CLD_KILLED) /* Old Mac OS X has si.si_code == 0 */ 14503 exit(5); 14504 if (si.si_status != SIGTERM) /* Mac OS X has si.si_status == 0 */ 14505 exit(6); 14506 14507 exit(0); 14508} 14509EOF 14510if { { eval echo configure:14511: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 14511then 14512 ac_cv_func_waitid=yes 14513else 14514 echo "configure: failed program was:" >&5 14515 cat conftest.$ac_ext >&5 14516 rm -fr conftest* 14517 ac_cv_func_waitid=no 14518fi 14519rm -fr conftest* 14520fi 14521 14522fi 14523 14524echo "$ac_t""$ac_cv_func_waitid" 1>&6 14525if test $ac_cv_func_waitid = yes; then 14526 cat >> confdefs.h <<\EOF 14527#define HAVE_WAITID 1 14528EOF 14529 14530fi 14531for ac_func in access eaccess euidaccess 14532do 14533echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14534echo "configure:14535: checking for $ac_func" >&5 14535if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14536 echo $ac_n "(cached) $ac_c" 1>&6 14537else 14538 cat > conftest.$ac_ext <<EOF 14539#line 14540 "configure" 14540#include "confdefs.h" 14541/* System header to define __stub macros and hopefully few prototypes, 14542 which can conflict with char $ac_func(); below. */ 14543#include <assert.h> 14544/* Override any gcc2 internal prototype to avoid an error. */ 14545/* We use char because int might match the return type of a gcc2 14546 builtin and then its argument prototype would still apply. */ 14547char $ac_func(); 14548 14549int main() { 14550 14551/* The GNU C library defines this for functions which it implements 14552 to always fail with ENOSYS. Some functions are actually named 14553 something starting with __ and the normal name is an alias. */ 14554#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14555choke me 14556#else 14557$ac_func(); 14558#endif 14559 14560; return 0; } 14561EOF 14562if { { eval echo configure:14563: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 14563 rm -rf conftest* 14564 eval "ac_cv_func_$ac_func=yes" 14565else 14566 echo "configure: failed program was:" >&5 14567 cat conftest.$ac_ext >&5 14568 rm -rf conftest* 14569 eval "ac_cv_func_$ac_func=no" 14570fi 14571rm -f conftest* 14572fi 14573 14574if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14575 echo "$ac_t""yes" 1>&6 14576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14577 cat >> confdefs.h <<EOF 14578#define $ac_tr_func 1 14579EOF 14580 14581else 14582 echo "$ac_t""no" 1>&6 14583fi 14584done 14585 14586for ac_func in memchr memcmp memcpy memccpy memmove memset 14587do 14588echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14589echo "configure:14590: checking for $ac_func" >&5 14590if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14591 echo $ac_n "(cached) $ac_c" 1>&6 14592else 14593 cat > conftest.$ac_ext <<EOF 14594#line 14595 "configure" 14595#include "confdefs.h" 14596/* System header to define __stub macros and hopefully few prototypes, 14597 which can conflict with char $ac_func(); below. */ 14598#include <assert.h> 14599/* Override any gcc2 internal prototype to avoid an error. */ 14600/* We use char because int might match the return type of a gcc2 14601 builtin and then its argument prototype would still apply. */ 14602char $ac_func(); 14603 14604int main() { 14605 14606/* The GNU C library defines this for functions which it implements 14607 to always fail with ENOSYS. Some functions are actually named 14608 something starting with __ and the normal name is an alias. */ 14609#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14610choke me 14611#else 14612$ac_func(); 14613#endif 14614 14615; return 0; } 14616EOF 14617if { { eval echo configure:14618: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 14618 rm -rf conftest* 14619 eval "ac_cv_func_$ac_func=yes" 14620else 14621 echo "configure: failed program was:" >&5 14622 cat conftest.$ac_ext >&5 14623 rm -rf conftest* 14624 eval "ac_cv_func_$ac_func=no" 14625fi 14626rm -f conftest* 14627fi 14628 14629if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14630 echo "$ac_t""yes" 1>&6 14631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14632 cat >> confdefs.h <<EOF 14633#define $ac_tr_func 1 14634EOF 14635 14636else 14637 echo "$ac_t""no" 1>&6 14638fi 14639done 14640 14641for ac_func in brk sbrk strerror nice flock lockf fchdir statvfs quotactl 14642do 14643echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14644echo "configure:14645: checking for $ac_func" >&5 14645if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14646 echo $ac_n "(cached) $ac_c" 1>&6 14647else 14648 cat > conftest.$ac_ext <<EOF 14649#line 14650 "configure" 14650#include "confdefs.h" 14651/* System header to define __stub macros and hopefully few prototypes, 14652 which can conflict with char $ac_func(); below. */ 14653#include <assert.h> 14654/* Override any gcc2 internal prototype to avoid an error. */ 14655/* We use char because int might match the return type of a gcc2 14656 builtin and then its argument prototype would still apply. */ 14657char $ac_func(); 14658 14659int main() { 14660 14661/* The GNU C library defines this for functions which it implements 14662 to always fail with ENOSYS. Some functions are actually named 14663 something starting with __ and the normal name is an alias. */ 14664#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14665choke me 14666#else 14667$ac_func(); 14668#endif 14669 14670; return 0; } 14671EOF 14672if { { eval echo configure:14673: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 14673 rm -rf conftest* 14674 eval "ac_cv_func_$ac_func=yes" 14675else 14676 echo "configure: failed program was:" >&5 14677 cat conftest.$ac_ext >&5 14678 rm -rf conftest* 14679 eval "ac_cv_func_$ac_func=no" 14680fi 14681rm -f conftest* 14682fi 14683 14684if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14685 echo "$ac_t""yes" 1>&6 14686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14687 cat >> confdefs.h <<EOF 14688#define $ac_tr_func 1 14689EOF 14690 14691else 14692 echo "$ac_t""no" 1>&6 14693fi 14694done 14695 14696for ac_func in realpath resolvepath 14697do 14698echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14699echo "configure:14700: checking for $ac_func" >&5 14700if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14701 echo $ac_n "(cached) $ac_c" 1>&6 14702else 14703 cat > conftest.$ac_ext <<EOF 14704#line 14705 "configure" 14705#include "confdefs.h" 14706/* System header to define __stub macros and hopefully few prototypes, 14707 which can conflict with char $ac_func(); below. */ 14708#include <assert.h> 14709/* Override any gcc2 internal prototype to avoid an error. */ 14710/* We use char because int might match the return type of a gcc2 14711 builtin and then its argument prototype would still apply. */ 14712char $ac_func(); 14713 14714int main() { 14715 14716/* The GNU C library defines this for functions which it implements 14717 to always fail with ENOSYS. Some functions are actually named 14718 something starting with __ and the normal name is an alias. */ 14719#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14720choke me 14721#else 14722$ac_func(); 14723#endif 14724 14725; return 0; } 14726EOF 14727if { { eval echo configure:14728: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 14728 rm -rf conftest* 14729 eval "ac_cv_func_$ac_func=yes" 14730else 14731 echo "configure: failed program was:" >&5 14732 cat conftest.$ac_ext >&5 14733 rm -rf conftest* 14734 eval "ac_cv_func_$ac_func=no" 14735fi 14736rm -f conftest* 14737fi 14738 14739if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14740 echo "$ac_t""yes" 1>&6 14741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14742 cat >> confdefs.h <<EOF 14743#define $ac_tr_func 1 14744EOF 14745 14746else 14747 echo "$ac_t""no" 1>&6 14748fi 14749done 14750 14751for ac_func in dup dup2 14752do 14753echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14754echo "configure:14755: checking for $ac_func" >&5 14755if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14756 echo $ac_n "(cached) $ac_c" 1>&6 14757else 14758 cat > conftest.$ac_ext <<EOF 14759#line 14760 "configure" 14760#include "confdefs.h" 14761/* System header to define __stub macros and hopefully few prototypes, 14762 which can conflict with char $ac_func(); below. */ 14763#include <assert.h> 14764/* Override any gcc2 internal prototype to avoid an error. */ 14765/* We use char because int might match the return type of a gcc2 14766 builtin and then its argument prototype would still apply. */ 14767char $ac_func(); 14768 14769int main() { 14770 14771/* The GNU C library defines this for functions which it implements 14772 to always fail with ENOSYS. Some functions are actually named 14773 something starting with __ and the normal name is an alias. */ 14774#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14775choke me 14776#else 14777$ac_func(); 14778#endif 14779 14780; return 0; } 14781EOF 14782if { { eval echo configure:14783: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 14783 rm -rf conftest* 14784 eval "ac_cv_func_$ac_func=yes" 14785else 14786 echo "configure: failed program was:" >&5 14787 cat conftest.$ac_ext >&5 14788 rm -rf conftest* 14789 eval "ac_cv_func_$ac_func=no" 14790fi 14791rm -f conftest* 14792fi 14793 14794if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14795 echo "$ac_t""yes" 1>&6 14796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14797 cat >> confdefs.h <<EOF 14798#define $ac_tr_func 1 14799EOF 14800 14801else 14802 echo "$ac_t""no" 1>&6 14803fi 14804done 14805 14806for ac_func in getcwd shmat semget 14807do 14808echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14809echo "configure:14810: checking for $ac_func" >&5 14810if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14811 echo $ac_n "(cached) $ac_c" 1>&6 14812else 14813 cat > conftest.$ac_ext <<EOF 14814#line 14815 "configure" 14815#include "confdefs.h" 14816/* System header to define __stub macros and hopefully few prototypes, 14817 which can conflict with char $ac_func(); below. */ 14818#include <assert.h> 14819/* Override any gcc2 internal prototype to avoid an error. */ 14820/* We use char because int might match the return type of a gcc2 14821 builtin and then its argument prototype would still apply. */ 14822char $ac_func(); 14823 14824int main() { 14825 14826/* The GNU C library defines this for functions which it implements 14827 to always fail with ENOSYS. Some functions are actually named 14828 something starting with __ and the normal name is an alias. */ 14829#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14830choke me 14831#else 14832$ac_func(); 14833#endif 14834 14835; return 0; } 14836EOF 14837if { { eval echo configure:14838: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 14838 rm -rf conftest* 14839 eval "ac_cv_func_$ac_func=yes" 14840else 14841 echo "configure: failed program was:" >&5 14842 cat conftest.$ac_ext >&5 14843 rm -rf conftest* 14844 eval "ac_cv_func_$ac_func=no" 14845fi 14846rm -f conftest* 14847fi 14848 14849if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14850 echo "$ac_t""yes" 1>&6 14851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14852 cat >> confdefs.h <<EOF 14853#define $ac_tr_func 1 14854EOF 14855 14856else 14857 echo "$ac_t""no" 1>&6 14858fi 14859done 14860 14861for ac_func in lstat readlink symlink link rename mkfifo mknod 14862do 14863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14864echo "configure:14865: checking for $ac_func" >&5 14865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14866 echo $ac_n "(cached) $ac_c" 1>&6 14867else 14868 cat > conftest.$ac_ext <<EOF 14869#line 14870 "configure" 14870#include "confdefs.h" 14871/* System header to define __stub macros and hopefully few prototypes, 14872 which can conflict with char $ac_func(); below. */ 14873#include <assert.h> 14874/* Override any gcc2 internal prototype to avoid an error. */ 14875/* We use char because int might match the return type of a gcc2 14876 builtin and then its argument prototype would still apply. */ 14877char $ac_func(); 14878 14879int main() { 14880 14881/* The GNU C library defines this for functions which it implements 14882 to always fail with ENOSYS. Some functions are actually named 14883 something starting with __ and the normal name is an alias. */ 14884#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14885choke me 14886#else 14887$ac_func(); 14888#endif 14889 14890; return 0; } 14891EOF 14892if { { eval echo configure:14893: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 14893 rm -rf conftest* 14894 eval "ac_cv_func_$ac_func=yes" 14895else 14896 echo "configure: failed program was:" >&5 14897 cat conftest.$ac_ext >&5 14898 rm -rf conftest* 14899 eval "ac_cv_func_$ac_func=no" 14900fi 14901rm -f conftest* 14902fi 14903 14904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14905 echo "$ac_t""yes" 1>&6 14906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14907 cat >> confdefs.h <<EOF 14908#define $ac_tr_func 1 14909EOF 14910 14911else 14912 echo "$ac_t""no" 1>&6 14913fi 14914done 14915 14916for ac_func in setreuid setresuid seteuid setuid 14917do 14918echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14919echo "configure:14920: checking for $ac_func" >&5 14920if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14921 echo $ac_n "(cached) $ac_c" 1>&6 14922else 14923 cat > conftest.$ac_ext <<EOF 14924#line 14925 "configure" 14925#include "confdefs.h" 14926/* System header to define __stub macros and hopefully few prototypes, 14927 which can conflict with char $ac_func(); below. */ 14928#include <assert.h> 14929/* Override any gcc2 internal prototype to avoid an error. */ 14930/* We use char because int might match the return type of a gcc2 14931 builtin and then its argument prototype would still apply. */ 14932char $ac_func(); 14933 14934int main() { 14935 14936/* The GNU C library defines this for functions which it implements 14937 to always fail with ENOSYS. Some functions are actually named 14938 something starting with __ and the normal name is an alias. */ 14939#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14940choke me 14941#else 14942$ac_func(); 14943#endif 14944 14945; return 0; } 14946EOF 14947if { { eval echo configure:14948: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 14948 rm -rf conftest* 14949 eval "ac_cv_func_$ac_func=yes" 14950else 14951 echo "configure: failed program was:" >&5 14952 cat conftest.$ac_ext >&5 14953 rm -rf conftest* 14954 eval "ac_cv_func_$ac_func=no" 14955fi 14956rm -f conftest* 14957fi 14958 14959if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14960 echo "$ac_t""yes" 1>&6 14961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14962 cat >> confdefs.h <<EOF 14963#define $ac_tr_func 1 14964EOF 14965 14966else 14967 echo "$ac_t""no" 1>&6 14968fi 14969done 14970 14971for ac_func in setregid setresgid setegid setgid 14972do 14973echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14974echo "configure:14975: checking for $ac_func" >&5 14975if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 14976 echo $ac_n "(cached) $ac_c" 1>&6 14977else 14978 cat > conftest.$ac_ext <<EOF 14979#line 14980 "configure" 14980#include "confdefs.h" 14981/* System header to define __stub macros and hopefully few prototypes, 14982 which can conflict with char $ac_func(); below. */ 14983#include <assert.h> 14984/* Override any gcc2 internal prototype to avoid an error. */ 14985/* We use char because int might match the return type of a gcc2 14986 builtin and then its argument prototype would still apply. */ 14987char $ac_func(); 14988 14989int main() { 14990 14991/* The GNU C library defines this for functions which it implements 14992 to always fail with ENOSYS. Some functions are actually named 14993 something starting with __ and the normal name is an alias. */ 14994#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14995choke me 14996#else 14997$ac_func(); 14998#endif 14999 15000; return 0; } 15001EOF 15002if { { eval echo configure:15003: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15003 rm -rf conftest* 15004 eval "ac_cv_func_$ac_func=yes" 15005else 15006 echo "configure: failed program was:" >&5 15007 cat conftest.$ac_ext >&5 15008 rm -rf conftest* 15009 eval "ac_cv_func_$ac_func=no" 15010fi 15011rm -f conftest* 15012fi 15013 15014if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15015 echo "$ac_t""yes" 1>&6 15016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15017 cat >> confdefs.h <<EOF 15018#define $ac_tr_func 1 15019EOF 15020 15021else 15022 echo "$ac_t""no" 1>&6 15023fi 15024done 15025 15026for ac_func in getuid geteuid getgid getegid 15027do 15028echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15029echo "configure:15030: checking for $ac_func" >&5 15030if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15031 echo $ac_n "(cached) $ac_c" 1>&6 15032else 15033 cat > conftest.$ac_ext <<EOF 15034#line 15035 "configure" 15035#include "confdefs.h" 15036/* System header to define __stub macros and hopefully few prototypes, 15037 which can conflict with char $ac_func(); below. */ 15038#include <assert.h> 15039/* Override any gcc2 internal prototype to avoid an error. */ 15040/* We use char because int might match the return type of a gcc2 15041 builtin and then its argument prototype would still apply. */ 15042char $ac_func(); 15043 15044int main() { 15045 15046/* The GNU C library defines this for functions which it implements 15047 to always fail with ENOSYS. Some functions are actually named 15048 something starting with __ and the normal name is an alias. */ 15049#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15050choke me 15051#else 15052$ac_func(); 15053#endif 15054 15055; return 0; } 15056EOF 15057if { { eval echo configure:15058: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15058 rm -rf conftest* 15059 eval "ac_cv_func_$ac_func=yes" 15060else 15061 echo "configure: failed program was:" >&5 15062 cat conftest.$ac_ext >&5 15063 rm -rf conftest* 15064 eval "ac_cv_func_$ac_func=no" 15065fi 15066rm -f conftest* 15067fi 15068 15069if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15070 echo "$ac_t""yes" 1>&6 15071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15072 cat >> confdefs.h <<EOF 15073#define $ac_tr_func 1 15074EOF 15075 15076else 15077 echo "$ac_t""no" 1>&6 15078fi 15079done 15080 15081for ac_func in getpid getppid 15082do 15083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15084echo "configure:15085: checking for $ac_func" >&5 15085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15086 echo $ac_n "(cached) $ac_c" 1>&6 15087else 15088 cat > conftest.$ac_ext <<EOF 15089#line 15090 "configure" 15090#include "confdefs.h" 15091/* System header to define __stub macros and hopefully few prototypes, 15092 which can conflict with char $ac_func(); below. */ 15093#include <assert.h> 15094/* Override any gcc2 internal prototype to avoid an error. */ 15095/* We use char because int might match the return type of a gcc2 15096 builtin and then its argument prototype would still apply. */ 15097char $ac_func(); 15098 15099int main() { 15100 15101/* The GNU C library defines this for functions which it implements 15102 to always fail with ENOSYS. Some functions are actually named 15103 something starting with __ and the normal name is an alias. */ 15104#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15105choke me 15106#else 15107$ac_func(); 15108#endif 15109 15110; return 0; } 15111EOF 15112if { { eval echo configure:15113: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15113 rm -rf conftest* 15114 eval "ac_cv_func_$ac_func=yes" 15115else 15116 echo "configure: failed program was:" >&5 15117 cat conftest.$ac_ext >&5 15118 rm -rf conftest* 15119 eval "ac_cv_func_$ac_func=no" 15120fi 15121rm -f conftest* 15122fi 15123 15124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15125 echo "$ac_t""yes" 1>&6 15126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15127 cat >> confdefs.h <<EOF 15128#define $ac_tr_func 1 15129EOF 15130 15131else 15132 echo "$ac_t""no" 1>&6 15133fi 15134done 15135 15136for ac_func in getpgid setpgid getsid setsid 15137do 15138echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15139echo "configure:15140: checking for $ac_func" >&5 15140if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15141 echo $ac_n "(cached) $ac_c" 1>&6 15142else 15143 cat > conftest.$ac_ext <<EOF 15144#line 15145 "configure" 15145#include "confdefs.h" 15146/* System header to define __stub macros and hopefully few prototypes, 15147 which can conflict with char $ac_func(); below. */ 15148#include <assert.h> 15149/* Override any gcc2 internal prototype to avoid an error. */ 15150/* We use char because int might match the return type of a gcc2 15151 builtin and then its argument prototype would still apply. */ 15152char $ac_func(); 15153 15154int main() { 15155 15156/* The GNU C library defines this for functions which it implements 15157 to always fail with ENOSYS. Some functions are actually named 15158 something starting with __ and the normal name is an alias. */ 15159#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15160choke me 15161#else 15162$ac_func(); 15163#endif 15164 15165; return 0; } 15166EOF 15167if { { eval echo configure:15168: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15168 rm -rf conftest* 15169 eval "ac_cv_func_$ac_func=yes" 15170else 15171 echo "configure: failed program was:" >&5 15172 cat conftest.$ac_ext >&5 15173 rm -rf conftest* 15174 eval "ac_cv_func_$ac_func=no" 15175fi 15176rm -f conftest* 15177fi 15178 15179if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15180 echo "$ac_t""yes" 1>&6 15181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15182 cat >> confdefs.h <<EOF 15183#define $ac_tr_func 1 15184EOF 15185 15186else 15187 echo "$ac_t""no" 1>&6 15188fi 15189done 15190 15191for ac_func in getpgrp setpgrp 15192do 15193echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15194echo "configure:15195: checking for $ac_func" >&5 15195if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15196 echo $ac_n "(cached) $ac_c" 1>&6 15197else 15198 cat > conftest.$ac_ext <<EOF 15199#line 15200 "configure" 15200#include "confdefs.h" 15201/* System header to define __stub macros and hopefully few prototypes, 15202 which can conflict with char $ac_func(); below. */ 15203#include <assert.h> 15204/* Override any gcc2 internal prototype to avoid an error. */ 15205/* We use char because int might match the return type of a gcc2 15206 builtin and then its argument prototype would still apply. */ 15207char $ac_func(); 15208 15209int main() { 15210 15211/* The GNU C library defines this for functions which it implements 15212 to always fail with ENOSYS. Some functions are actually named 15213 something starting with __ and the normal name is an alias. */ 15214#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15215choke me 15216#else 15217$ac_func(); 15218#endif 15219 15220; return 0; } 15221EOF 15222if { { eval echo configure:15223: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15223 rm -rf conftest* 15224 eval "ac_cv_func_$ac_func=yes" 15225else 15226 echo "configure: failed program was:" >&5 15227 cat conftest.$ac_ext >&5 15228 rm -rf conftest* 15229 eval "ac_cv_func_$ac_func=no" 15230fi 15231rm -f conftest* 15232fi 15233 15234if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15235 echo "$ac_t""yes" 1>&6 15236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15237 cat >> confdefs.h <<EOF 15238#define $ac_tr_func 1 15239EOF 15240 15241else 15242 echo "$ac_t""no" 1>&6 15243fi 15244done 15245 15246for ac_func in getpwnam getpwent getpwuid setpwent endpwent 15247do 15248echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15249echo "configure:15250: checking for $ac_func" >&5 15250if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15251 echo $ac_n "(cached) $ac_c" 1>&6 15252else 15253 cat > conftest.$ac_ext <<EOF 15254#line 15255 "configure" 15255#include "confdefs.h" 15256/* System header to define __stub macros and hopefully few prototypes, 15257 which can conflict with char $ac_func(); below. */ 15258#include <assert.h> 15259/* Override any gcc2 internal prototype to avoid an error. */ 15260/* We use char because int might match the return type of a gcc2 15261 builtin and then its argument prototype would still apply. */ 15262char $ac_func(); 15263 15264int main() { 15265 15266/* The GNU C library defines this for functions which it implements 15267 to always fail with ENOSYS. Some functions are actually named 15268 something starting with __ and the normal name is an alias. */ 15269#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15270choke me 15271#else 15272$ac_func(); 15273#endif 15274 15275; return 0; } 15276EOF 15277if { { eval echo configure:15278: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15278 rm -rf conftest* 15279 eval "ac_cv_func_$ac_func=yes" 15280else 15281 echo "configure: failed program was:" >&5 15282 cat conftest.$ac_ext >&5 15283 rm -rf conftest* 15284 eval "ac_cv_func_$ac_func=no" 15285fi 15286rm -f conftest* 15287fi 15288 15289if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15290 echo "$ac_t""yes" 1>&6 15291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15292 cat >> confdefs.h <<EOF 15293#define $ac_tr_func 1 15294EOF 15295 15296else 15297 echo "$ac_t""no" 1>&6 15298fi 15299done 15300 15301for ac_func in getgrnam getgrent getgrgid setgrent endgrent 15302do 15303echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15304echo "configure:15305: checking for $ac_func" >&5 15305if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15306 echo $ac_n "(cached) $ac_c" 1>&6 15307else 15308 cat > conftest.$ac_ext <<EOF 15309#line 15310 "configure" 15310#include "confdefs.h" 15311/* System header to define __stub macros and hopefully few prototypes, 15312 which can conflict with char $ac_func(); below. */ 15313#include <assert.h> 15314/* Override any gcc2 internal prototype to avoid an error. */ 15315/* We use char because int might match the return type of a gcc2 15316 builtin and then its argument prototype would still apply. */ 15317char $ac_func(); 15318 15319int main() { 15320 15321/* The GNU C library defines this for functions which it implements 15322 to always fail with ENOSYS. Some functions are actually named 15323 something starting with __ and the normal name is an alias. */ 15324#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15325choke me 15326#else 15327$ac_func(); 15328#endif 15329 15330; return 0; } 15331EOF 15332if { { eval echo configure:15333: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15333 rm -rf conftest* 15334 eval "ac_cv_func_$ac_func=yes" 15335else 15336 echo "configure: failed program was:" >&5 15337 cat conftest.$ac_ext >&5 15338 rm -rf conftest* 15339 eval "ac_cv_func_$ac_func=no" 15340fi 15341rm -f conftest* 15342fi 15343 15344if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15345 echo "$ac_t""yes" 1>&6 15346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15347 cat >> confdefs.h <<EOF 15348#define $ac_tr_func 1 15349EOF 15350 15351else 15352 echo "$ac_t""no" 1>&6 15353fi 15354done 15355 15356for ac_func in getspnam getspwnam 15357do 15358echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15359echo "configure:15360: checking for $ac_func" >&5 15360if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15361 echo $ac_n "(cached) $ac_c" 1>&6 15362else 15363 cat > conftest.$ac_ext <<EOF 15364#line 15365 "configure" 15365#include "confdefs.h" 15366/* System header to define __stub macros and hopefully few prototypes, 15367 which can conflict with char $ac_func(); below. */ 15368#include <assert.h> 15369/* Override any gcc2 internal prototype to avoid an error. */ 15370/* We use char because int might match the return type of a gcc2 15371 builtin and then its argument prototype would still apply. */ 15372char $ac_func(); 15373 15374int main() { 15375 15376/* The GNU C library defines this for functions which it implements 15377 to always fail with ENOSYS. Some functions are actually named 15378 something starting with __ and the normal name is an alias. */ 15379#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15380choke me 15381#else 15382$ac_func(); 15383#endif 15384 15385; return 0; } 15386EOF 15387if { { eval echo configure:15388: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15388 rm -rf conftest* 15389 eval "ac_cv_func_$ac_func=yes" 15390else 15391 echo "configure: failed program was:" >&5 15392 cat conftest.$ac_ext >&5 15393 rm -rf conftest* 15394 eval "ac_cv_func_$ac_func=no" 15395fi 15396rm -f conftest* 15397fi 15398 15399if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15400 echo "$ac_t""yes" 1>&6 15401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15402 cat >> confdefs.h <<EOF 15403#define $ac_tr_func 1 15404EOF 15405 15406else 15407 echo "$ac_t""no" 1>&6 15408fi 15409done 15410 15411for ac_func in getlogin 15412do 15413echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15414echo "configure:15415: checking for $ac_func" >&5 15415if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15416 echo $ac_n "(cached) $ac_c" 1>&6 15417else 15418 cat > conftest.$ac_ext <<EOF 15419#line 15420 "configure" 15420#include "confdefs.h" 15421/* System header to define __stub macros and hopefully few prototypes, 15422 which can conflict with char $ac_func(); below. */ 15423#include <assert.h> 15424/* Override any gcc2 internal prototype to avoid an error. */ 15425/* We use char because int might match the return type of a gcc2 15426 builtin and then its argument prototype would still apply. */ 15427char $ac_func(); 15428 15429int main() { 15430 15431/* The GNU C library defines this for functions which it implements 15432 to always fail with ENOSYS. Some functions are actually named 15433 something starting with __ and the normal name is an alias. */ 15434#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15435choke me 15436#else 15437$ac_func(); 15438#endif 15439 15440; return 0; } 15441EOF 15442if { { eval echo configure:15443: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15443 rm -rf conftest* 15444 eval "ac_cv_func_$ac_func=yes" 15445else 15446 echo "configure: failed program was:" >&5 15447 cat conftest.$ac_ext >&5 15448 rm -rf conftest* 15449 eval "ac_cv_func_$ac_func=no" 15450fi 15451rm -f conftest* 15452fi 15453 15454if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15455 echo "$ac_t""yes" 1>&6 15456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15457 cat >> confdefs.h <<EOF 15458#define $ac_tr_func 1 15459EOF 15460 15461else 15462 echo "$ac_t""no" 1>&6 15463fi 15464done 15465 15466for ac_func in sync fsync fork forkx vforkx forkall forkallx wait wait4 wait6 waitpid getrusage getrlimit setrlimit ulimit 15467do 15468echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15469echo "configure:15470: checking for $ac_func" >&5 15470if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15471 echo $ac_n "(cached) $ac_c" 1>&6 15472else 15473 cat > conftest.$ac_ext <<EOF 15474#line 15475 "configure" 15475#include "confdefs.h" 15476/* System header to define __stub macros and hopefully few prototypes, 15477 which can conflict with char $ac_func(); below. */ 15478#include <assert.h> 15479/* Override any gcc2 internal prototype to avoid an error. */ 15480/* We use char because int might match the return type of a gcc2 15481 builtin and then its argument prototype would still apply. */ 15482char $ac_func(); 15483 15484int main() { 15485 15486/* The GNU C library defines this for functions which it implements 15487 to always fail with ENOSYS. Some functions are actually named 15488 something starting with __ and the normal name is an alias. */ 15489#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15490choke me 15491#else 15492$ac_func(); 15493#endif 15494 15495; return 0; } 15496EOF 15497if { { eval echo configure:15498: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15498 rm -rf conftest* 15499 eval "ac_cv_func_$ac_func=yes" 15500else 15501 echo "configure: failed program was:" >&5 15502 cat conftest.$ac_ext >&5 15503 rm -rf conftest* 15504 eval "ac_cv_func_$ac_func=no" 15505fi 15506rm -f conftest* 15507fi 15508 15509if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15510 echo "$ac_t""yes" 1>&6 15511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15512 cat >> confdefs.h <<EOF 15513#define $ac_tr_func 1 15514EOF 15515 15516else 15517 echo "$ac_t""no" 1>&6 15518fi 15519done 15520 15521for ac_func in execl execle execlp execv execve execvp 15522do 15523echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15524echo "configure:15525: checking for $ac_func" >&5 15525if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15526 echo $ac_n "(cached) $ac_c" 1>&6 15527else 15528 cat > conftest.$ac_ext <<EOF 15529#line 15530 "configure" 15530#include "confdefs.h" 15531/* System header to define __stub macros and hopefully few prototypes, 15532 which can conflict with char $ac_func(); below. */ 15533#include <assert.h> 15534/* Override any gcc2 internal prototype to avoid an error. */ 15535/* We use char because int might match the return type of a gcc2 15536 builtin and then its argument prototype would still apply. */ 15537char $ac_func(); 15538 15539int main() { 15540 15541/* The GNU C library defines this for functions which it implements 15542 to always fail with ENOSYS. Some functions are actually named 15543 something starting with __ and the normal name is an alias. */ 15544#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15545choke me 15546#else 15547$ac_func(); 15548#endif 15549 15550; return 0; } 15551EOF 15552if { { eval echo configure:15553: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15553 rm -rf conftest* 15554 eval "ac_cv_func_$ac_func=yes" 15555else 15556 echo "configure: failed program was:" >&5 15557 cat conftest.$ac_ext >&5 15558 rm -rf conftest* 15559 eval "ac_cv_func_$ac_func=no" 15560fi 15561rm -f conftest* 15562fi 15563 15564if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15565 echo "$ac_t""yes" 1>&6 15566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15567 cat >> confdefs.h <<EOF 15568#define $ac_tr_func 1 15569EOF 15570 15571else 15572 echo "$ac_t""no" 1>&6 15573fi 15574done 15575 15576for ac_func in spawnl spawnle spawnlp spawnlpe 15577do 15578echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15579echo "configure:15580: checking for $ac_func" >&5 15580if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15581 echo $ac_n "(cached) $ac_c" 1>&6 15582else 15583 cat > conftest.$ac_ext <<EOF 15584#line 15585 "configure" 15585#include "confdefs.h" 15586/* System header to define __stub macros and hopefully few prototypes, 15587 which can conflict with char $ac_func(); below. */ 15588#include <assert.h> 15589/* Override any gcc2 internal prototype to avoid an error. */ 15590/* We use char because int might match the return type of a gcc2 15591 builtin and then its argument prototype would still apply. */ 15592char $ac_func(); 15593 15594int main() { 15595 15596/* The GNU C library defines this for functions which it implements 15597 to always fail with ENOSYS. Some functions are actually named 15598 something starting with __ and the normal name is an alias. */ 15599#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15600choke me 15601#else 15602$ac_func(); 15603#endif 15604 15605; return 0; } 15606EOF 15607if { { eval echo configure:15608: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15608 rm -rf conftest* 15609 eval "ac_cv_func_$ac_func=yes" 15610else 15611 echo "configure: failed program was:" >&5 15612 cat conftest.$ac_ext >&5 15613 rm -rf conftest* 15614 eval "ac_cv_func_$ac_func=no" 15615fi 15616rm -f conftest* 15617fi 15618 15619if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15620 echo "$ac_t""yes" 1>&6 15621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15622 cat >> confdefs.h <<EOF 15623#define $ac_tr_func 1 15624EOF 15625 15626else 15627 echo "$ac_t""no" 1>&6 15628fi 15629done 15630 15631for ac_func in spawnv spawnve spawnvp spawnvpe 15632do 15633echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15634echo "configure:15635: checking for $ac_func" >&5 15635if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15636 echo $ac_n "(cached) $ac_c" 1>&6 15637else 15638 cat > conftest.$ac_ext <<EOF 15639#line 15640 "configure" 15640#include "confdefs.h" 15641/* System header to define __stub macros and hopefully few prototypes, 15642 which can conflict with char $ac_func(); below. */ 15643#include <assert.h> 15644/* Override any gcc2 internal prototype to avoid an error. */ 15645/* We use char because int might match the return type of a gcc2 15646 builtin and then its argument prototype would still apply. */ 15647char $ac_func(); 15648 15649int main() { 15650 15651/* The GNU C library defines this for functions which it implements 15652 to always fail with ENOSYS. Some functions are actually named 15653 something starting with __ and the normal name is an alias. */ 15654#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15655choke me 15656#else 15657$ac_func(); 15658#endif 15659 15660; return 0; } 15661EOF 15662if { { eval echo configure:15663: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15663 rm -rf conftest* 15664 eval "ac_cv_func_$ac_func=yes" 15665else 15666 echo "configure: failed program was:" >&5 15667 cat conftest.$ac_ext >&5 15668 rm -rf conftest* 15669 eval "ac_cv_func_$ac_func=no" 15670fi 15671rm -f conftest* 15672fi 15673 15674if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15675 echo "$ac_t""yes" 1>&6 15676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15677 cat >> confdefs.h <<EOF 15678#define $ac_tr_func 1 15679EOF 15680 15681else 15682 echo "$ac_t""no" 1>&6 15683fi 15684done 15685 15686for ac_func in cwait 15687do 15688echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15689echo "configure:15690: checking for $ac_func" >&5 15690if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15691 echo $ac_n "(cached) $ac_c" 1>&6 15692else 15693 cat > conftest.$ac_ext <<EOF 15694#line 15695 "configure" 15695#include "confdefs.h" 15696/* System header to define __stub macros and hopefully few prototypes, 15697 which can conflict with char $ac_func(); below. */ 15698#include <assert.h> 15699/* Override any gcc2 internal prototype to avoid an error. */ 15700/* We use char because int might match the return type of a gcc2 15701 builtin and then its argument prototype would still apply. */ 15702char $ac_func(); 15703 15704int main() { 15705 15706/* The GNU C library defines this for functions which it implements 15707 to always fail with ENOSYS. Some functions are actually named 15708 something starting with __ and the normal name is an alias. */ 15709#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15710choke me 15711#else 15712$ac_func(); 15713#endif 15714 15715; return 0; } 15716EOF 15717if { { eval echo configure:15718: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15718 rm -rf conftest* 15719 eval "ac_cv_func_$ac_func=yes" 15720else 15721 echo "configure: failed program was:" >&5 15722 cat conftest.$ac_ext >&5 15723 rm -rf conftest* 15724 eval "ac_cv_func_$ac_func=no" 15725fi 15726rm -f conftest* 15727fi 15728 15729if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15730 echo "$ac_t""yes" 1>&6 15731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15732 cat >> confdefs.h <<EOF 15733#define $ac_tr_func 1 15734EOF 15735 15736else 15737 echo "$ac_t""no" 1>&6 15738fi 15739done 15740 15741for ac_func in getexecname 15742do 15743echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15744echo "configure:15745: checking for $ac_func" >&5 15745if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15746 echo $ac_n "(cached) $ac_c" 1>&6 15747else 15748 cat > conftest.$ac_ext <<EOF 15749#line 15750 "configure" 15750#include "confdefs.h" 15751/* System header to define __stub macros and hopefully few prototypes, 15752 which can conflict with char $ac_func(); below. */ 15753#include <assert.h> 15754/* Override any gcc2 internal prototype to avoid an error. */ 15755/* We use char because int might match the return type of a gcc2 15756 builtin and then its argument prototype would still apply. */ 15757char $ac_func(); 15758 15759int main() { 15760 15761/* The GNU C library defines this for functions which it implements 15762 to always fail with ENOSYS. Some functions are actually named 15763 something starting with __ and the normal name is an alias. */ 15764#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15765choke me 15766#else 15767$ac_func(); 15768#endif 15769 15770; return 0; } 15771EOF 15772if { { eval echo configure:15773: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15773 rm -rf conftest* 15774 eval "ac_cv_func_$ac_func=yes" 15775else 15776 echo "configure: failed program was:" >&5 15777 cat conftest.$ac_ext >&5 15778 rm -rf conftest* 15779 eval "ac_cv_func_$ac_func=no" 15780fi 15781rm -f conftest* 15782fi 15783 15784if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15785 echo "$ac_t""yes" 1>&6 15786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15787 cat >> confdefs.h <<EOF 15788#define $ac_tr_func 1 15789EOF 15790 15791else 15792 echo "$ac_t""no" 1>&6 15793fi 15794done 15795 15796for ac_func in getprogname setprogname 15797do 15798echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15799echo "configure:15800: checking for $ac_func" >&5 15800if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15801 echo $ac_n "(cached) $ac_c" 1>&6 15802else 15803 cat > conftest.$ac_ext <<EOF 15804#line 15805 "configure" 15805#include "confdefs.h" 15806/* System header to define __stub macros and hopefully few prototypes, 15807 which can conflict with char $ac_func(); below. */ 15808#include <assert.h> 15809/* Override any gcc2 internal prototype to avoid an error. */ 15810/* We use char because int might match the return type of a gcc2 15811 builtin and then its argument prototype would still apply. */ 15812char $ac_func(); 15813 15814int main() { 15815 15816/* The GNU C library defines this for functions which it implements 15817 to always fail with ENOSYS. Some functions are actually named 15818 something starting with __ and the normal name is an alias. */ 15819#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15820choke me 15821#else 15822$ac_func(); 15823#endif 15824 15825; return 0; } 15826EOF 15827if { { eval echo configure:15828: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15828 rm -rf conftest* 15829 eval "ac_cv_func_$ac_func=yes" 15830else 15831 echo "configure: failed program was:" >&5 15832 cat conftest.$ac_ext >&5 15833 rm -rf conftest* 15834 eval "ac_cv_func_$ac_func=no" 15835fi 15836rm -f conftest* 15837fi 15838 15839if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15840 echo "$ac_t""yes" 1>&6 15841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15842 cat >> confdefs.h <<EOF 15843#define $ac_tr_func 1 15844EOF 15845 15846else 15847 echo "$ac_t""no" 1>&6 15848fi 15849done 15850 15851for ac_func in proc_pidpath getauxval elf_aux_info 15852do 15853echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15854echo "configure:15855: checking for $ac_func" >&5 15855if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15856 echo $ac_n "(cached) $ac_c" 1>&6 15857else 15858 cat > conftest.$ac_ext <<EOF 15859#line 15860 "configure" 15860#include "confdefs.h" 15861/* System header to define __stub macros and hopefully few prototypes, 15862 which can conflict with char $ac_func(); below. */ 15863#include <assert.h> 15864/* Override any gcc2 internal prototype to avoid an error. */ 15865/* We use char because int might match the return type of a gcc2 15866 builtin and then its argument prototype would still apply. */ 15867char $ac_func(); 15868 15869int main() { 15870 15871/* The GNU C library defines this for functions which it implements 15872 to always fail with ENOSYS. Some functions are actually named 15873 something starting with __ and the normal name is an alias. */ 15874#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15875choke me 15876#else 15877$ac_func(); 15878#endif 15879 15880; return 0; } 15881EOF 15882if { { eval echo configure:15883: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15883 rm -rf conftest* 15884 eval "ac_cv_func_$ac_func=yes" 15885else 15886 echo "configure: failed program was:" >&5 15887 cat conftest.$ac_ext >&5 15888 rm -rf conftest* 15889 eval "ac_cv_func_$ac_func=no" 15890fi 15891rm -f conftest* 15892fi 15893 15894if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15895 echo "$ac_t""yes" 1>&6 15896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15897 cat >> confdefs.h <<EOF 15898#define $ac_tr_func 1 15899EOF 15900 15901else 15902 echo "$ac_t""no" 1>&6 15903fi 15904done 15905 15906for ac_func in getloadavg 15907do 15908echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15909echo "configure:15910: checking for $ac_func" >&5 15910if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15911 echo $ac_n "(cached) $ac_c" 1>&6 15912else 15913 cat > conftest.$ac_ext <<EOF 15914#line 15915 "configure" 15915#include "confdefs.h" 15916/* System header to define __stub macros and hopefully few prototypes, 15917 which can conflict with char $ac_func(); below. */ 15918#include <assert.h> 15919/* Override any gcc2 internal prototype to avoid an error. */ 15920/* We use char because int might match the return type of a gcc2 15921 builtin and then its argument prototype would still apply. */ 15922char $ac_func(); 15923 15924int main() { 15925 15926/* The GNU C library defines this for functions which it implements 15927 to always fail with ENOSYS. Some functions are actually named 15928 something starting with __ and the normal name is an alias. */ 15929#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15930choke me 15931#else 15932$ac_func(); 15933#endif 15934 15935; return 0; } 15936EOF 15937if { { eval echo configure:15938: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15938 rm -rf conftest* 15939 eval "ac_cv_func_$ac_func=yes" 15940else 15941 echo "configure: failed program was:" >&5 15942 cat conftest.$ac_ext >&5 15943 rm -rf conftest* 15944 eval "ac_cv_func_$ac_func=no" 15945fi 15946rm -f conftest* 15947fi 15948 15949if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 15950 echo "$ac_t""yes" 1>&6 15951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 15952 cat >> confdefs.h <<EOF 15953#define $ac_tr_func 1 15954EOF 15955 15956else 15957 echo "$ac_t""no" 1>&6 15958fi 15959done 15960 15961for ac_func in gethostid gethostname getdomainname getdtablesize 15962do 15963echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15964echo "configure:15965: checking for $ac_func" >&5 15965if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 15966 echo $ac_n "(cached) $ac_c" 1>&6 15967else 15968 cat > conftest.$ac_ext <<EOF 15969#line 15970 "configure" 15970#include "confdefs.h" 15971/* System header to define __stub macros and hopefully few prototypes, 15972 which can conflict with char $ac_func(); below. */ 15973#include <assert.h> 15974/* Override any gcc2 internal prototype to avoid an error. */ 15975/* We use char because int might match the return type of a gcc2 15976 builtin and then its argument prototype would still apply. */ 15977char $ac_func(); 15978 15979int main() { 15980 15981/* The GNU C library defines this for functions which it implements 15982 to always fail with ENOSYS. Some functions are actually named 15983 something starting with __ and the normal name is an alias. */ 15984#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15985choke me 15986#else 15987$ac_func(); 15988#endif 15989 15990; return 0; } 15991EOF 15992if { { eval echo configure:15993: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 15993 rm -rf conftest* 15994 eval "ac_cv_func_$ac_func=yes" 15995else 15996 echo "configure: failed program was:" >&5 15997 cat conftest.$ac_ext >&5 15998 rm -rf conftest* 15999 eval "ac_cv_func_$ac_func=no" 16000fi 16001rm -f conftest* 16002fi 16003 16004if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16005 echo "$ac_t""yes" 1>&6 16006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16007 cat >> confdefs.h <<EOF 16008#define $ac_tr_func 1 16009EOF 16010 16011else 16012 echo "$ac_t""no" 1>&6 16013fi 16014done 16015 16016for ac_func in gettimeofday settimeofday time stime gethrtime 16017do 16018echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16019echo "configure:16020: checking for $ac_func" >&5 16020if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16021 echo $ac_n "(cached) $ac_c" 1>&6 16022else 16023 cat > conftest.$ac_ext <<EOF 16024#line 16025 "configure" 16025#include "confdefs.h" 16026/* System header to define __stub macros and hopefully few prototypes, 16027 which can conflict with char $ac_func(); below. */ 16028#include <assert.h> 16029/* Override any gcc2 internal prototype to avoid an error. */ 16030/* We use char because int might match the return type of a gcc2 16031 builtin and then its argument prototype would still apply. */ 16032char $ac_func(); 16033 16034int main() { 16035 16036/* The GNU C library defines this for functions which it implements 16037 to always fail with ENOSYS. Some functions are actually named 16038 something starting with __ and the normal name is an alias. */ 16039#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16040choke me 16041#else 16042$ac_func(); 16043#endif 16044 16045; return 0; } 16046EOF 16047if { { eval echo configure:16048: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16048 rm -rf conftest* 16049 eval "ac_cv_func_$ac_func=yes" 16050else 16051 echo "configure: failed program was:" >&5 16052 cat conftest.$ac_ext >&5 16053 rm -rf conftest* 16054 eval "ac_cv_func_$ac_func=no" 16055fi 16056rm -f conftest* 16057fi 16058 16059if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16060 echo "$ac_t""yes" 1>&6 16061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16062 cat >> confdefs.h <<EOF 16063#define $ac_tr_func 1 16064EOF 16065 16066else 16067 echo "$ac_t""no" 1>&6 16068fi 16069done 16070 16071for ac_func in ftime tzset mktime gmtime localtime timegm timelocal 16072do 16073echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16074echo "configure:16075: checking for $ac_func" >&5 16075if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16076 echo $ac_n "(cached) $ac_c" 1>&6 16077else 16078 cat > conftest.$ac_ext <<EOF 16079#line 16080 "configure" 16080#include "confdefs.h" 16081/* System header to define __stub macros and hopefully few prototypes, 16082 which can conflict with char $ac_func(); below. */ 16083#include <assert.h> 16084/* Override any gcc2 internal prototype to avoid an error. */ 16085/* We use char because int might match the return type of a gcc2 16086 builtin and then its argument prototype would still apply. */ 16087char $ac_func(); 16088 16089int main() { 16090 16091/* The GNU C library defines this for functions which it implements 16092 to always fail with ENOSYS. Some functions are actually named 16093 something starting with __ and the normal name is an alias. */ 16094#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16095choke me 16096#else 16097$ac_func(); 16098#endif 16099 16100; return 0; } 16101EOF 16102if { { eval echo configure:16103: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16103 rm -rf conftest* 16104 eval "ac_cv_func_$ac_func=yes" 16105else 16106 echo "configure: failed program was:" >&5 16107 cat conftest.$ac_ext >&5 16108 rm -rf conftest* 16109 eval "ac_cv_func_$ac_func=no" 16110fi 16111rm -f conftest* 16112fi 16113 16114if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16115 echo "$ac_t""yes" 1>&6 16116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16117 cat >> confdefs.h <<EOF 16118#define $ac_tr_func 1 16119EOF 16120 16121else 16122 echo "$ac_t""no" 1>&6 16123fi 16124done 16125 16126for ac_func in ctime cftime ascftime strftime 16127do 16128echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16129echo "configure:16130: checking for $ac_func" >&5 16130if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16131 echo $ac_n "(cached) $ac_c" 1>&6 16132else 16133 cat > conftest.$ac_ext <<EOF 16134#line 16135 "configure" 16135#include "confdefs.h" 16136/* System header to define __stub macros and hopefully few prototypes, 16137 which can conflict with char $ac_func(); below. */ 16138#include <assert.h> 16139/* Override any gcc2 internal prototype to avoid an error. */ 16140/* We use char because int might match the return type of a gcc2 16141 builtin and then its argument prototype would still apply. */ 16142char $ac_func(); 16143 16144int main() { 16145 16146/* The GNU C library defines this for functions which it implements 16147 to always fail with ENOSYS. Some functions are actually named 16148 something starting with __ and the normal name is an alias. */ 16149#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16150choke me 16151#else 16152$ac_func(); 16153#endif 16154 16155; return 0; } 16156EOF 16157if { { eval echo configure:16158: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16158 rm -rf conftest* 16159 eval "ac_cv_func_$ac_func=yes" 16160else 16161 echo "configure: failed program was:" >&5 16162 cat conftest.$ac_ext >&5 16163 rm -rf conftest* 16164 eval "ac_cv_func_$ac_func=no" 16165fi 16166rm -f conftest* 16167fi 16168 16169if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16170 echo "$ac_t""yes" 1>&6 16171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16172 cat >> confdefs.h <<EOF 16173#define $ac_tr_func 1 16174EOF 16175 16176else 16177 echo "$ac_t""no" 1>&6 16178fi 16179done 16180 16181for ac_func in poll select isastream 16182do 16183echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16184echo "configure:16185: checking for $ac_func" >&5 16185if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16186 echo $ac_n "(cached) $ac_c" 1>&6 16187else 16188 cat > conftest.$ac_ext <<EOF 16189#line 16190 "configure" 16190#include "confdefs.h" 16191/* System header to define __stub macros and hopefully few prototypes, 16192 which can conflict with char $ac_func(); below. */ 16193#include <assert.h> 16194/* Override any gcc2 internal prototype to avoid an error. */ 16195/* We use char because int might match the return type of a gcc2 16196 builtin and then its argument prototype would still apply. */ 16197char $ac_func(); 16198 16199int main() { 16200 16201/* The GNU C library defines this for functions which it implements 16202 to always fail with ENOSYS. Some functions are actually named 16203 something starting with __ and the normal name is an alias. */ 16204#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16205choke me 16206#else 16207$ac_func(); 16208#endif 16209 16210; return 0; } 16211EOF 16212if { { eval echo configure:16213: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16213 rm -rf conftest* 16214 eval "ac_cv_func_$ac_func=yes" 16215else 16216 echo "configure: failed program was:" >&5 16217 cat conftest.$ac_ext >&5 16218 rm -rf conftest* 16219 eval "ac_cv_func_$ac_func=no" 16220fi 16221rm -f conftest* 16222fi 16223 16224if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16225 echo "$ac_t""yes" 1>&6 16226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16227 cat >> confdefs.h <<EOF 16228#define $ac_tr_func 1 16229EOF 16230 16231else 16232 echo "$ac_t""no" 1>&6 16233fi 16234done 16235 16236for ac_func in chown fchown lchown chmod fchmod lchmod times utime utimes futimes lutimes 16237do 16238echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16239echo "configure:16240: checking for $ac_func" >&5 16240if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16241 echo $ac_n "(cached) $ac_c" 1>&6 16242else 16243 cat > conftest.$ac_ext <<EOF 16244#line 16245 "configure" 16245#include "confdefs.h" 16246/* System header to define __stub macros and hopefully few prototypes, 16247 which can conflict with char $ac_func(); below. */ 16248#include <assert.h> 16249/* Override any gcc2 internal prototype to avoid an error. */ 16250/* We use char because int might match the return type of a gcc2 16251 builtin and then its argument prototype would still apply. */ 16252char $ac_func(); 16253 16254int main() { 16255 16256/* The GNU C library defines this for functions which it implements 16257 to always fail with ENOSYS. Some functions are actually named 16258 something starting with __ and the normal name is an alias. */ 16259#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16260choke me 16261#else 16262$ac_func(); 16263#endif 16264 16265; return 0; } 16266EOF 16267if { { eval echo configure:16268: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16268 rm -rf conftest* 16269 eval "ac_cv_func_$ac_func=yes" 16270else 16271 echo "configure: failed program was:" >&5 16272 cat conftest.$ac_ext >&5 16273 rm -rf conftest* 16274 eval "ac_cv_func_$ac_func=no" 16275fi 16276rm -f conftest* 16277fi 16278 16279if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16280 echo "$ac_t""yes" 1>&6 16281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16282 cat >> confdefs.h <<EOF 16283#define $ac_tr_func 1 16284EOF 16285 16286else 16287 echo "$ac_t""no" 1>&6 16288fi 16289done 16290 16291for ac_func in utimens lutimens 16292do 16293echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16294echo "configure:16295: checking for $ac_func" >&5 16295if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16296 echo $ac_n "(cached) $ac_c" 1>&6 16297else 16298 cat > conftest.$ac_ext <<EOF 16299#line 16300 "configure" 16300#include "confdefs.h" 16301/* System header to define __stub macros and hopefully few prototypes, 16302 which can conflict with char $ac_func(); below. */ 16303#include <assert.h> 16304/* Override any gcc2 internal prototype to avoid an error. */ 16305/* We use char because int might match the return type of a gcc2 16306 builtin and then its argument prototype would still apply. */ 16307char $ac_func(); 16308 16309int main() { 16310 16311/* The GNU C library defines this for functions which it implements 16312 to always fail with ENOSYS. Some functions are actually named 16313 something starting with __ and the normal name is an alias. */ 16314#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16315choke me 16316#else 16317$ac_func(); 16318#endif 16319 16320; return 0; } 16321EOF 16322if { { eval echo configure:16323: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16323 rm -rf conftest* 16324 eval "ac_cv_func_$ac_func=yes" 16325else 16326 echo "configure: failed program was:" >&5 16327 cat conftest.$ac_ext >&5 16328 rm -rf conftest* 16329 eval "ac_cv_func_$ac_func=no" 16330fi 16331rm -f conftest* 16332fi 16333 16334if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16335 echo "$ac_t""yes" 1>&6 16336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16337 cat >> confdefs.h <<EOF 16338#define $ac_tr_func 1 16339EOF 16340 16341else 16342 echo "$ac_t""no" 1>&6 16343fi 16344done 16345 16346for ac_func in futimens utimensat 16347do 16348echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16349echo "configure:16350: checking for $ac_func" >&5 16350if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16351 echo $ac_n "(cached) $ac_c" 1>&6 16352else 16353 cat > conftest.$ac_ext <<EOF 16354#line 16355 "configure" 16355#include "confdefs.h" 16356/* System header to define __stub macros and hopefully few prototypes, 16357 which can conflict with char $ac_func(); below. */ 16358#include <assert.h> 16359/* Override any gcc2 internal prototype to avoid an error. */ 16360/* We use char because int might match the return type of a gcc2 16361 builtin and then its argument prototype would still apply. */ 16362char $ac_func(); 16363 16364int main() { 16365 16366/* The GNU C library defines this for functions which it implements 16367 to always fail with ENOSYS. Some functions are actually named 16368 something starting with __ and the normal name is an alias. */ 16369#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16370choke me 16371#else 16372$ac_func(); 16373#endif 16374 16375; return 0; } 16376EOF 16377if { { eval echo configure:16378: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16378 rm -rf conftest* 16379 eval "ac_cv_func_$ac_func=yes" 16380else 16381 echo "configure: failed program was:" >&5 16382 cat conftest.$ac_ext >&5 16383 rm -rf conftest* 16384 eval "ac_cv_func_$ac_func=no" 16385fi 16386rm -f conftest* 16387fi 16388 16389if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16390 echo "$ac_t""yes" 1>&6 16391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16392 cat >> confdefs.h <<EOF 16393#define $ac_tr_func 1 16394EOF 16395 16396else 16397 echo "$ac_t""no" 1>&6 16398fi 16399done 16400 16401for ac_func in ioctl fcntl 16402do 16403echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16404echo "configure:16405: checking for $ac_func" >&5 16405if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16406 echo $ac_n "(cached) $ac_c" 1>&6 16407else 16408 cat > conftest.$ac_ext <<EOF 16409#line 16410 "configure" 16410#include "confdefs.h" 16411/* System header to define __stub macros and hopefully few prototypes, 16412 which can conflict with char $ac_func(); below. */ 16413#include <assert.h> 16414/* Override any gcc2 internal prototype to avoid an error. */ 16415/* We use char because int might match the return type of a gcc2 16416 builtin and then its argument prototype would still apply. */ 16417char $ac_func(); 16418 16419int main() { 16420 16421/* The GNU C library defines this for functions which it implements 16422 to always fail with ENOSYS. Some functions are actually named 16423 something starting with __ and the normal name is an alias. */ 16424#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16425choke me 16426#else 16427$ac_func(); 16428#endif 16429 16430; return 0; } 16431EOF 16432if { { eval echo configure:16433: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16433 rm -rf conftest* 16434 eval "ac_cv_func_$ac_func=yes" 16435else 16436 echo "configure: failed program was:" >&5 16437 cat conftest.$ac_ext >&5 16438 rm -rf conftest* 16439 eval "ac_cv_func_$ac_func=no" 16440fi 16441rm -f conftest* 16442fi 16443 16444if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16445 echo "$ac_t""yes" 1>&6 16446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16447 cat >> confdefs.h <<EOF 16448#define $ac_tr_func 1 16449EOF 16450 16451else 16452 echo "$ac_t""no" 1>&6 16453fi 16454done 16455 16456for ac_func in qecvt qfcvt qgcvt 16457do 16458echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16459echo "configure:16460: checking for $ac_func" >&5 16460if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16461 echo $ac_n "(cached) $ac_c" 1>&6 16462else 16463 cat > conftest.$ac_ext <<EOF 16464#line 16465 "configure" 16465#include "confdefs.h" 16466/* System header to define __stub macros and hopefully few prototypes, 16467 which can conflict with char $ac_func(); below. */ 16468#include <assert.h> 16469/* Override any gcc2 internal prototype to avoid an error. */ 16470/* We use char because int might match the return type of a gcc2 16471 builtin and then its argument prototype would still apply. */ 16472char $ac_func(); 16473 16474int main() { 16475 16476/* The GNU C library defines this for functions which it implements 16477 to always fail with ENOSYS. Some functions are actually named 16478 something starting with __ and the normal name is an alias. */ 16479#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16480choke me 16481#else 16482$ac_func(); 16483#endif 16484 16485; return 0; } 16486EOF 16487if { { eval echo configure:16488: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16488 rm -rf conftest* 16489 eval "ac_cv_func_$ac_func=yes" 16490else 16491 echo "configure: failed program was:" >&5 16492 cat conftest.$ac_ext >&5 16493 rm -rf conftest* 16494 eval "ac_cv_func_$ac_func=no" 16495fi 16496rm -f conftest* 16497fi 16498 16499if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16500 echo "$ac_t""yes" 1>&6 16501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16502 cat >> confdefs.h <<EOF 16503#define $ac_tr_func 1 16504EOF 16505 16506else 16507 echo "$ac_t""no" 1>&6 16508fi 16509done 16510 16511for ac_func in _qecvt _qfcvt _qgcvt 16512do 16513echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16514echo "configure:16515: checking for $ac_func" >&5 16515if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16516 echo $ac_n "(cached) $ac_c" 1>&6 16517else 16518 cat > conftest.$ac_ext <<EOF 16519#line 16520 "configure" 16520#include "confdefs.h" 16521/* System header to define __stub macros and hopefully few prototypes, 16522 which can conflict with char $ac_func(); below. */ 16523#include <assert.h> 16524/* Override any gcc2 internal prototype to avoid an error. */ 16525/* We use char because int might match the return type of a gcc2 16526 builtin and then its argument prototype would still apply. */ 16527char $ac_func(); 16528 16529int main() { 16530 16531/* The GNU C library defines this for functions which it implements 16532 to always fail with ENOSYS. Some functions are actually named 16533 something starting with __ and the normal name is an alias. */ 16534#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16535choke me 16536#else 16537$ac_func(); 16538#endif 16539 16540; return 0; } 16541EOF 16542if { { eval echo configure:16543: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16543 rm -rf conftest* 16544 eval "ac_cv_func_$ac_func=yes" 16545else 16546 echo "configure: failed program was:" >&5 16547 cat conftest.$ac_ext >&5 16548 rm -rf conftest* 16549 eval "ac_cv_func_$ac_func=no" 16550fi 16551rm -f conftest* 16552fi 16553 16554if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16555 echo "$ac_t""yes" 1>&6 16556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16557 cat >> confdefs.h <<EOF 16558#define $ac_tr_func 1 16559EOF 16560 16561else 16562 echo "$ac_t""no" 1>&6 16563fi 16564done 16565 16566for ac_func in _qecvt_r _qfcvt_r _qgcvt_r 16567do 16568echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16569echo "configure:16570: checking for $ac_func" >&5 16570if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16571 echo $ac_n "(cached) $ac_c" 1>&6 16572else 16573 cat > conftest.$ac_ext <<EOF 16574#line 16575 "configure" 16575#include "confdefs.h" 16576/* System header to define __stub macros and hopefully few prototypes, 16577 which can conflict with char $ac_func(); below. */ 16578#include <assert.h> 16579/* Override any gcc2 internal prototype to avoid an error. */ 16580/* We use char because int might match the return type of a gcc2 16581 builtin and then its argument prototype would still apply. */ 16582char $ac_func(); 16583 16584int main() { 16585 16586/* The GNU C library defines this for functions which it implements 16587 to always fail with ENOSYS. Some functions are actually named 16588 something starting with __ and the normal name is an alias. */ 16589#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16590choke me 16591#else 16592$ac_func(); 16593#endif 16594 16595; return 0; } 16596EOF 16597if { { eval echo configure:16598: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16598 rm -rf conftest* 16599 eval "ac_cv_func_$ac_func=yes" 16600else 16601 echo "configure: failed program was:" >&5 16602 cat conftest.$ac_ext >&5 16603 rm -rf conftest* 16604 eval "ac_cv_func_$ac_func=no" 16605fi 16606rm -f conftest* 16607fi 16608 16609if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16610 echo "$ac_t""yes" 1>&6 16611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16612 cat >> confdefs.h <<EOF 16613#define $ac_tr_func 1 16614EOF 16615 16616else 16617 echo "$ac_t""no" 1>&6 16618fi 16619done 16620 16621for ac_func in _ldecvt _ldfcvt _ldgcvt 16622do 16623echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16624echo "configure:16625: checking for $ac_func" >&5 16625if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16626 echo $ac_n "(cached) $ac_c" 1>&6 16627else 16628 cat > conftest.$ac_ext <<EOF 16629#line 16630 "configure" 16630#include "confdefs.h" 16631/* System header to define __stub macros and hopefully few prototypes, 16632 which can conflict with char $ac_func(); below. */ 16633#include <assert.h> 16634/* Override any gcc2 internal prototype to avoid an error. */ 16635/* We use char because int might match the return type of a gcc2 16636 builtin and then its argument prototype would still apply. */ 16637char $ac_func(); 16638 16639int main() { 16640 16641/* The GNU C library defines this for functions which it implements 16642 to always fail with ENOSYS. Some functions are actually named 16643 something starting with __ and the normal name is an alias. */ 16644#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16645choke me 16646#else 16647$ac_func(); 16648#endif 16649 16650; return 0; } 16651EOF 16652if { { eval echo configure:16653: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16653 rm -rf conftest* 16654 eval "ac_cv_func_$ac_func=yes" 16655else 16656 echo "configure: failed program was:" >&5 16657 cat conftest.$ac_ext >&5 16658 rm -rf conftest* 16659 eval "ac_cv_func_$ac_func=no" 16660fi 16661rm -f conftest* 16662fi 16663 16664if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16665 echo "$ac_t""yes" 1>&6 16666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16667 cat >> confdefs.h <<EOF 16668#define $ac_tr_func 1 16669EOF 16670 16671else 16672 echo "$ac_t""no" 1>&6 16673fi 16674done 16675 16676for ac_func in ecvt_r fcvt_r gcvt_r 16677do 16678echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16679echo "configure:16680: checking for $ac_func" >&5 16680if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16681 echo $ac_n "(cached) $ac_c" 1>&6 16682else 16683 cat > conftest.$ac_ext <<EOF 16684#line 16685 "configure" 16685#include "confdefs.h" 16686/* System header to define __stub macros and hopefully few prototypes, 16687 which can conflict with char $ac_func(); below. */ 16688#include <assert.h> 16689/* Override any gcc2 internal prototype to avoid an error. */ 16690/* We use char because int might match the return type of a gcc2 16691 builtin and then its argument prototype would still apply. */ 16692char $ac_func(); 16693 16694int main() { 16695 16696/* The GNU C library defines this for functions which it implements 16697 to always fail with ENOSYS. Some functions are actually named 16698 something starting with __ and the normal name is an alias. */ 16699#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16700choke me 16701#else 16702$ac_func(); 16703#endif 16704 16705; return 0; } 16706EOF 16707if { { eval echo configure:16708: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16708 rm -rf conftest* 16709 eval "ac_cv_func_$ac_func=yes" 16710else 16711 echo "configure: failed program was:" >&5 16712 cat conftest.$ac_ext >&5 16713 rm -rf conftest* 16714 eval "ac_cv_func_$ac_func=no" 16715fi 16716rm -f conftest* 16717fi 16718 16719if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16720 echo "$ac_t""yes" 1>&6 16721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16722 cat >> confdefs.h <<EOF 16723#define $ac_tr_func 1 16724EOF 16725 16726else 16727 echo "$ac_t""no" 1>&6 16728fi 16729done 16730 16731for ac_func in _ldecvt_r _ldfcvt_r _ldgcvt_r 16732do 16733echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16734echo "configure:16735: checking for $ac_func" >&5 16735if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16736 echo $ac_n "(cached) $ac_c" 1>&6 16737else 16738 cat > conftest.$ac_ext <<EOF 16739#line 16740 "configure" 16740#include "confdefs.h" 16741/* System header to define __stub macros and hopefully few prototypes, 16742 which can conflict with char $ac_func(); below. */ 16743#include <assert.h> 16744/* Override any gcc2 internal prototype to avoid an error. */ 16745/* We use char because int might match the return type of a gcc2 16746 builtin and then its argument prototype would still apply. */ 16747char $ac_func(); 16748 16749int main() { 16750 16751/* The GNU C library defines this for functions which it implements 16752 to always fail with ENOSYS. Some functions are actually named 16753 something starting with __ and the normal name is an alias. */ 16754#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16755choke me 16756#else 16757$ac_func(); 16758#endif 16759 16760; return 0; } 16761EOF 16762if { { eval echo configure:16763: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16763 rm -rf conftest* 16764 eval "ac_cv_func_$ac_func=yes" 16765else 16766 echo "configure: failed program was:" >&5 16767 cat conftest.$ac_ext >&5 16768 rm -rf conftest* 16769 eval "ac_cv_func_$ac_func=no" 16770fi 16771rm -f conftest* 16772fi 16773 16774if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16775 echo "$ac_t""yes" 1>&6 16776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16777 cat >> confdefs.h <<EOF 16778#define $ac_tr_func 1 16779EOF 16780 16781else 16782 echo "$ac_t""no" 1>&6 16783fi 16784done 16785 16786for ac_func in econvert fconvert gconvert 16787do 16788echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16789echo "configure:16790: checking for $ac_func" >&5 16790if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16791 echo $ac_n "(cached) $ac_c" 1>&6 16792else 16793 cat > conftest.$ac_ext <<EOF 16794#line 16795 "configure" 16795#include "confdefs.h" 16796/* System header to define __stub macros and hopefully few prototypes, 16797 which can conflict with char $ac_func(); below. */ 16798#include <assert.h> 16799/* Override any gcc2 internal prototype to avoid an error. */ 16800/* We use char because int might match the return type of a gcc2 16801 builtin and then its argument prototype would still apply. */ 16802char $ac_func(); 16803 16804int main() { 16805 16806/* The GNU C library defines this for functions which it implements 16807 to always fail with ENOSYS. Some functions are actually named 16808 something starting with __ and the normal name is an alias. */ 16809#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16810choke me 16811#else 16812$ac_func(); 16813#endif 16814 16815; return 0; } 16816EOF 16817if { { eval echo configure:16818: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16818 rm -rf conftest* 16819 eval "ac_cv_func_$ac_func=yes" 16820else 16821 echo "configure: failed program was:" >&5 16822 cat conftest.$ac_ext >&5 16823 rm -rf conftest* 16824 eval "ac_cv_func_$ac_func=no" 16825fi 16826rm -f conftest* 16827fi 16828 16829if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16830 echo "$ac_t""yes" 1>&6 16831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16832 cat >> confdefs.h <<EOF 16833#define $ac_tr_func 1 16834EOF 16835 16836else 16837 echo "$ac_t""no" 1>&6 16838fi 16839done 16840 16841for ac_func in qeconvert qfconvert qgconvert 16842do 16843echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16844echo "configure:16845: checking for $ac_func" >&5 16845if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16846 echo $ac_n "(cached) $ac_c" 1>&6 16847else 16848 cat > conftest.$ac_ext <<EOF 16849#line 16850 "configure" 16850#include "confdefs.h" 16851/* System header to define __stub macros and hopefully few prototypes, 16852 which can conflict with char $ac_func(); below. */ 16853#include <assert.h> 16854/* Override any gcc2 internal prototype to avoid an error. */ 16855/* We use char because int might match the return type of a gcc2 16856 builtin and then its argument prototype would still apply. */ 16857char $ac_func(); 16858 16859int main() { 16860 16861/* The GNU C library defines this for functions which it implements 16862 to always fail with ENOSYS. Some functions are actually named 16863 something starting with __ and the normal name is an alias. */ 16864#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16865choke me 16866#else 16867$ac_func(); 16868#endif 16869 16870; return 0; } 16871EOF 16872if { { eval echo configure:16873: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16873 rm -rf conftest* 16874 eval "ac_cv_func_$ac_func=yes" 16875else 16876 echo "configure: failed program was:" >&5 16877 cat conftest.$ac_ext >&5 16878 rm -rf conftest* 16879 eval "ac_cv_func_$ac_func=no" 16880fi 16881rm -f conftest* 16882fi 16883 16884if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16885 echo "$ac_t""yes" 1>&6 16886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16887 cat >> confdefs.h <<EOF 16888#define $ac_tr_func 1 16889EOF 16890 16891else 16892 echo "$ac_t""no" 1>&6 16893fi 16894done 16895 16896for ac_func in isinf isnan 16897do 16898echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16899echo "configure:16900: checking for $ac_func" >&5 16900if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16901 echo $ac_n "(cached) $ac_c" 1>&6 16902else 16903 cat > conftest.$ac_ext <<EOF 16904#line 16905 "configure" 16905#include "confdefs.h" 16906/* System header to define __stub macros and hopefully few prototypes, 16907 which can conflict with char $ac_func(); below. */ 16908#include <assert.h> 16909/* Override any gcc2 internal prototype to avoid an error. */ 16910/* We use char because int might match the return type of a gcc2 16911 builtin and then its argument prototype would still apply. */ 16912char $ac_func(); 16913 16914int main() { 16915 16916/* The GNU C library defines this for functions which it implements 16917 to always fail with ENOSYS. Some functions are actually named 16918 something starting with __ and the normal name is an alias. */ 16919#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16920choke me 16921#else 16922$ac_func(); 16923#endif 16924 16925; return 0; } 16926EOF 16927if { { eval echo configure:16928: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16928 rm -rf conftest* 16929 eval "ac_cv_func_$ac_func=yes" 16930else 16931 echo "configure: failed program was:" >&5 16932 cat conftest.$ac_ext >&5 16933 rm -rf conftest* 16934 eval "ac_cv_func_$ac_func=no" 16935fi 16936rm -f conftest* 16937fi 16938 16939if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16940 echo "$ac_t""yes" 1>&6 16941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16942 cat >> confdefs.h <<EOF 16943#define $ac_tr_func 1 16944EOF 16945 16946else 16947 echo "$ac_t""no" 1>&6 16948fi 16949done 16950 16951for ac_func in getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked 16952do 16953echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 16954echo "configure:16955: checking for $ac_func" >&5 16955if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 16956 echo $ac_n "(cached) $ac_c" 1>&6 16957else 16958 cat > conftest.$ac_ext <<EOF 16959#line 16960 "configure" 16960#include "confdefs.h" 16961/* System header to define __stub macros and hopefully few prototypes, 16962 which can conflict with char $ac_func(); below. */ 16963#include <assert.h> 16964/* Override any gcc2 internal prototype to avoid an error. */ 16965/* We use char because int might match the return type of a gcc2 16966 builtin and then its argument prototype would still apply. */ 16967char $ac_func(); 16968 16969int main() { 16970 16971/* The GNU C library defines this for functions which it implements 16972 to always fail with ENOSYS. Some functions are actually named 16973 something starting with __ and the normal name is an alias. */ 16974#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16975choke me 16976#else 16977$ac_func(); 16978#endif 16979 16980; return 0; } 16981EOF 16982if { { eval echo configure:16983: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 16983 rm -rf conftest* 16984 eval "ac_cv_func_$ac_func=yes" 16985else 16986 echo "configure: failed program was:" >&5 16987 cat conftest.$ac_ext >&5 16988 rm -rf conftest* 16989 eval "ac_cv_func_$ac_func=no" 16990fi 16991rm -f conftest* 16992fi 16993 16994if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 16995 echo "$ac_t""yes" 1>&6 16996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 16997 cat >> confdefs.h <<EOF 16998#define $ac_tr_func 1 16999EOF 17000 17001else 17002 echo "$ac_t""no" 1>&6 17003fi 17004done 17005 17006for ac_func in flockfile funlockfile ftrylockfile 17007do 17008echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17009echo "configure:17010: checking for $ac_func" >&5 17010if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17011 echo $ac_n "(cached) $ac_c" 1>&6 17012else 17013 cat > conftest.$ac_ext <<EOF 17014#line 17015 "configure" 17015#include "confdefs.h" 17016/* System header to define __stub macros and hopefully few prototypes, 17017 which can conflict with char $ac_func(); below. */ 17018#include <assert.h> 17019/* Override any gcc2 internal prototype to avoid an error. */ 17020/* We use char because int might match the return type of a gcc2 17021 builtin and then its argument prototype would still apply. */ 17022char $ac_func(); 17023 17024int main() { 17025 17026/* The GNU C library defines this for functions which it implements 17027 to always fail with ENOSYS. Some functions are actually named 17028 something starting with __ and the normal name is an alias. */ 17029#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17030choke me 17031#else 17032$ac_func(); 17033#endif 17034 17035; return 0; } 17036EOF 17037if { { eval echo configure:17038: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17038 rm -rf conftest* 17039 eval "ac_cv_func_$ac_func=yes" 17040else 17041 echo "configure: failed program was:" >&5 17042 cat conftest.$ac_ext >&5 17043 rm -rf conftest* 17044 eval "ac_cv_func_$ac_func=no" 17045fi 17046rm -f conftest* 17047fi 17048 17049if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17050 echo "$ac_t""yes" 1>&6 17051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17052 cat >> confdefs.h <<EOF 17053#define $ac_tr_func 1 17054EOF 17055 17056else 17057 echo "$ac_t""no" 1>&6 17058fi 17059done 17060 17061for ac_func in rand drand48 17062do 17063echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17064echo "configure:17065: checking for $ac_func" >&5 17065if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17066 echo $ac_n "(cached) $ac_c" 1>&6 17067else 17068 cat > conftest.$ac_ext <<EOF 17069#line 17070 "configure" 17070#include "confdefs.h" 17071/* System header to define __stub macros and hopefully few prototypes, 17072 which can conflict with char $ac_func(); below. */ 17073#include <assert.h> 17074/* Override any gcc2 internal prototype to avoid an error. */ 17075/* We use char because int might match the return type of a gcc2 17076 builtin and then its argument prototype would still apply. */ 17077char $ac_func(); 17078 17079int main() { 17080 17081/* The GNU C library defines this for functions which it implements 17082 to always fail with ENOSYS. Some functions are actually named 17083 something starting with __ and the normal name is an alias. */ 17084#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17085choke me 17086#else 17087$ac_func(); 17088#endif 17089 17090; return 0; } 17091EOF 17092if { { eval echo configure:17093: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17093 rm -rf conftest* 17094 eval "ac_cv_func_$ac_func=yes" 17095else 17096 echo "configure: failed program was:" >&5 17097 cat conftest.$ac_ext >&5 17098 rm -rf conftest* 17099 eval "ac_cv_func_$ac_func=no" 17100fi 17101rm -f conftest* 17102fi 17103 17104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17105 echo "$ac_t""yes" 1>&6 17106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17107 cat >> confdefs.h <<EOF 17108#define $ac_tr_func 1 17109EOF 17110 17111else 17112 echo "$ac_t""no" 1>&6 17113fi 17114done 17115 17116for ac_func in strtol strtoll strtoul strtoull strtod 17117do 17118echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17119echo "configure:17120: checking for $ac_func" >&5 17120if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17121 echo $ac_n "(cached) $ac_c" 1>&6 17122else 17123 cat > conftest.$ac_ext <<EOF 17124#line 17125 "configure" 17125#include "confdefs.h" 17126/* System header to define __stub macros and hopefully few prototypes, 17127 which can conflict with char $ac_func(); below. */ 17128#include <assert.h> 17129/* Override any gcc2 internal prototype to avoid an error. */ 17130/* We use char because int might match the return type of a gcc2 17131 builtin and then its argument prototype would still apply. */ 17132char $ac_func(); 17133 17134int main() { 17135 17136/* The GNU C library defines this for functions which it implements 17137 to always fail with ENOSYS. Some functions are actually named 17138 something starting with __ and the normal name is an alias. */ 17139#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17140choke me 17141#else 17142$ac_func(); 17143#endif 17144 17145; return 0; } 17146EOF 17147if { { eval echo configure:17148: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17148 rm -rf conftest* 17149 eval "ac_cv_func_$ac_func=yes" 17150else 17151 echo "configure: failed program was:" >&5 17152 cat conftest.$ac_ext >&5 17153 rm -rf conftest* 17154 eval "ac_cv_func_$ac_func=no" 17155fi 17156rm -f conftest* 17157fi 17158 17159if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17160 echo "$ac_t""yes" 1>&6 17161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17162 cat >> confdefs.h <<EOF 17163#define $ac_tr_func 1 17164EOF 17165 17166else 17167 echo "$ac_t""no" 1>&6 17168fi 17169done 17170 17171for ac_func in setpriority DosSetPriority 17172do 17173echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17174echo "configure:17175: checking for $ac_func" >&5 17175if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17176 echo $ac_n "(cached) $ac_c" 1>&6 17177else 17178 cat > conftest.$ac_ext <<EOF 17179#line 17180 "configure" 17180#include "confdefs.h" 17181/* System header to define __stub macros and hopefully few prototypes, 17182 which can conflict with char $ac_func(); below. */ 17183#include <assert.h> 17184/* Override any gcc2 internal prototype to avoid an error. */ 17185/* We use char because int might match the return type of a gcc2 17186 builtin and then its argument prototype would still apply. */ 17187char $ac_func(); 17188 17189int main() { 17190 17191/* The GNU C library defines this for functions which it implements 17192 to always fail with ENOSYS. Some functions are actually named 17193 something starting with __ and the normal name is an alias. */ 17194#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17195choke me 17196#else 17197$ac_func(); 17198#endif 17199 17200; return 0; } 17201EOF 17202if { { eval echo configure:17203: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17203 rm -rf conftest* 17204 eval "ac_cv_func_$ac_func=yes" 17205else 17206 echo "configure: failed program was:" >&5 17207 cat conftest.$ac_ext >&5 17208 rm -rf conftest* 17209 eval "ac_cv_func_$ac_func=no" 17210fi 17211rm -f conftest* 17212fi 17213 17214if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17215 echo "$ac_t""yes" 1>&6 17216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17217 cat >> confdefs.h <<EOF 17218#define $ac_tr_func 1 17219EOF 17220 17221else 17222 echo "$ac_t""no" 1>&6 17223fi 17224done 17225 17226for ac_func in DosAllocSharedMem 17227do 17228echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17229echo "configure:17230: checking for $ac_func" >&5 17230if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17231 echo $ac_n "(cached) $ac_c" 1>&6 17232else 17233 cat > conftest.$ac_ext <<EOF 17234#line 17235 "configure" 17235#include "confdefs.h" 17236/* System header to define __stub macros and hopefully few prototypes, 17237 which can conflict with char $ac_func(); below. */ 17238#include <assert.h> 17239/* Override any gcc2 internal prototype to avoid an error. */ 17240/* We use char because int might match the return type of a gcc2 17241 builtin and then its argument prototype would still apply. */ 17242char $ac_func(); 17243 17244int main() { 17245 17246/* The GNU C library defines this for functions which it implements 17247 to always fail with ENOSYS. Some functions are actually named 17248 something starting with __ and the normal name is an alias. */ 17249#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17250choke me 17251#else 17252$ac_func(); 17253#endif 17254 17255; return 0; } 17256EOF 17257if { { eval echo configure:17258: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17258 rm -rf conftest* 17259 eval "ac_cv_func_$ac_func=yes" 17260else 17261 echo "configure: failed program was:" >&5 17262 cat conftest.$ac_ext >&5 17263 rm -rf conftest* 17264 eval "ac_cv_func_$ac_func=no" 17265fi 17266rm -f conftest* 17267fi 17268 17269if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17270 echo "$ac_t""yes" 1>&6 17271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17272 cat >> confdefs.h <<EOF 17273#define $ac_tr_func 1 17274EOF 17275 17276else 17277 echo "$ac_t""no" 1>&6 17278fi 17279done 17280 17281for ac_func in getdelim 17282do 17283echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17284echo "configure:17285: checking for $ac_func" >&5 17285if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17286 echo $ac_n "(cached) $ac_c" 1>&6 17287else 17288 cat > conftest.$ac_ext <<EOF 17289#line 17290 "configure" 17290#include "confdefs.h" 17291/* System header to define __stub macros and hopefully few prototypes, 17292 which can conflict with char $ac_func(); below. */ 17293#include <assert.h> 17294/* Override any gcc2 internal prototype to avoid an error. */ 17295/* We use char because int might match the return type of a gcc2 17296 builtin and then its argument prototype would still apply. */ 17297char $ac_func(); 17298 17299int main() { 17300 17301/* The GNU C library defines this for functions which it implements 17302 to always fail with ENOSYS. Some functions are actually named 17303 something starting with __ and the normal name is an alias. */ 17304#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17305choke me 17306#else 17307$ac_func(); 17308#endif 17309 17310; return 0; } 17311EOF 17312if { { eval echo configure:17313: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17313 rm -rf conftest* 17314 eval "ac_cv_func_$ac_func=yes" 17315else 17316 echo "configure: failed program was:" >&5 17317 cat conftest.$ac_ext >&5 17318 rm -rf conftest* 17319 eval "ac_cv_func_$ac_func=no" 17320fi 17321rm -f conftest* 17322fi 17323 17324if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17325 echo "$ac_t""yes" 1>&6 17326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17327 cat >> confdefs.h <<EOF 17328#define $ac_tr_func 1 17329EOF 17330 17331else 17332 echo "$ac_t""no" 1>&6 17333fi 17334done 17335 17336for ac_func in seekdir fdopendir 17337do 17338echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17339echo "configure:17340: checking for $ac_func" >&5 17340if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17341 echo $ac_n "(cached) $ac_c" 1>&6 17342else 17343 cat > conftest.$ac_ext <<EOF 17344#line 17345 "configure" 17345#include "confdefs.h" 17346/* System header to define __stub macros and hopefully few prototypes, 17347 which can conflict with char $ac_func(); below. */ 17348#include <assert.h> 17349/* Override any gcc2 internal prototype to avoid an error. */ 17350/* We use char because int might match the return type of a gcc2 17351 builtin and then its argument prototype would still apply. */ 17352char $ac_func(); 17353 17354int main() { 17355 17356/* The GNU C library defines this for functions which it implements 17357 to always fail with ENOSYS. Some functions are actually named 17358 something starting with __ and the normal name is an alias. */ 17359#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17360choke me 17361#else 17362$ac_func(); 17363#endif 17364 17365; return 0; } 17366EOF 17367if { { eval echo configure:17368: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17368 rm -rf conftest* 17369 eval "ac_cv_func_$ac_func=yes" 17370else 17371 echo "configure: failed program was:" >&5 17372 cat conftest.$ac_ext >&5 17373 rm -rf conftest* 17374 eval "ac_cv_func_$ac_func=no" 17375fi 17376rm -f conftest* 17377fi 17378 17379if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17380 echo "$ac_t""yes" 1>&6 17381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17382 cat >> confdefs.h <<EOF 17383#define $ac_tr_func 1 17384EOF 17385 17386else 17387 echo "$ac_t""no" 1>&6 17388fi 17389done 17390 17391for ac_func in openat fstatat fchownat futimesat renameat unlinkat 17392do 17393echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17394echo "configure:17395: checking for $ac_func" >&5 17395if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17396 echo $ac_n "(cached) $ac_c" 1>&6 17397else 17398 cat > conftest.$ac_ext <<EOF 17399#line 17400 "configure" 17400#include "confdefs.h" 17401/* System header to define __stub macros and hopefully few prototypes, 17402 which can conflict with char $ac_func(); below. */ 17403#include <assert.h> 17404/* Override any gcc2 internal prototype to avoid an error. */ 17405/* We use char because int might match the return type of a gcc2 17406 builtin and then its argument prototype would still apply. */ 17407char $ac_func(); 17408 17409int main() { 17410 17411/* The GNU C library defines this for functions which it implements 17412 to always fail with ENOSYS. Some functions are actually named 17413 something starting with __ and the normal name is an alias. */ 17414#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17415choke me 17416#else 17417$ac_func(); 17418#endif 17419 17420; return 0; } 17421EOF 17422if { { eval echo configure:17423: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17423 rm -rf conftest* 17424 eval "ac_cv_func_$ac_func=yes" 17425else 17426 echo "configure: failed program was:" >&5 17427 cat conftest.$ac_ext >&5 17428 rm -rf conftest* 17429 eval "ac_cv_func_$ac_func=no" 17430fi 17431rm -f conftest* 17432fi 17433 17434if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17435 echo "$ac_t""yes" 1>&6 17436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17437 cat >> confdefs.h <<EOF 17438#define $ac_tr_func 1 17439EOF 17440 17441else 17442 echo "$ac_t""no" 1>&6 17443fi 17444done 17445 17446for ac_func in attropen 17447do 17448echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17449echo "configure:17450: checking for $ac_func" >&5 17450if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17451 echo $ac_n "(cached) $ac_c" 1>&6 17452else 17453 cat > conftest.$ac_ext <<EOF 17454#line 17455 "configure" 17455#include "confdefs.h" 17456/* System header to define __stub macros and hopefully few prototypes, 17457 which can conflict with char $ac_func(); below. */ 17458#include <assert.h> 17459/* Override any gcc2 internal prototype to avoid an error. */ 17460/* We use char because int might match the return type of a gcc2 17461 builtin and then its argument prototype would still apply. */ 17462char $ac_func(); 17463 17464int main() { 17465 17466/* The GNU C library defines this for functions which it implements 17467 to always fail with ENOSYS. Some functions are actually named 17468 something starting with __ and the normal name is an alias. */ 17469#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17470choke me 17471#else 17472$ac_func(); 17473#endif 17474 17475; return 0; } 17476EOF 17477if { { eval echo configure:17478: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17478 rm -rf conftest* 17479 eval "ac_cv_func_$ac_func=yes" 17480else 17481 echo "configure: failed program was:" >&5 17482 cat conftest.$ac_ext >&5 17483 rm -rf conftest* 17484 eval "ac_cv_func_$ac_func=no" 17485fi 17486rm -f conftest* 17487fi 17488 17489if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17490 echo "$ac_t""yes" 1>&6 17491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17492 cat >> confdefs.h <<EOF 17493#define $ac_tr_func 1 17494EOF 17495 17496else 17497 echo "$ac_t""no" 1>&6 17498fi 17499done 17500 17501for ac_func in __accessat 17502do 17503echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17504echo "configure:17505: checking for $ac_func" >&5 17505if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17506 echo $ac_n "(cached) $ac_c" 1>&6 17507else 17508 cat > conftest.$ac_ext <<EOF 17509#line 17510 "configure" 17510#include "confdefs.h" 17511/* System header to define __stub macros and hopefully few prototypes, 17512 which can conflict with char $ac_func(); below. */ 17513#include <assert.h> 17514/* Override any gcc2 internal prototype to avoid an error. */ 17515/* We use char because int might match the return type of a gcc2 17516 builtin and then its argument prototype would still apply. */ 17517char $ac_func(); 17518 17519int main() { 17520 17521/* The GNU C library defines this for functions which it implements 17522 to always fail with ENOSYS. Some functions are actually named 17523 something starting with __ and the normal name is an alias. */ 17524#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17525choke me 17526#else 17527$ac_func(); 17528#endif 17529 17530; return 0; } 17531EOF 17532if { { eval echo configure:17533: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17533 rm -rf conftest* 17534 eval "ac_cv_func_$ac_func=yes" 17535else 17536 echo "configure: failed program was:" >&5 17537 cat conftest.$ac_ext >&5 17538 rm -rf conftest* 17539 eval "ac_cv_func_$ac_func=no" 17540fi 17541rm -f conftest* 17542fi 17543 17544if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17545 echo "$ac_t""yes" 1>&6 17546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17547 cat >> confdefs.h <<EOF 17548#define $ac_tr_func 1 17549EOF 17550 17551else 17552 echo "$ac_t""no" 1>&6 17553fi 17554done 17555 17556for ac_func in accessat 17557do 17558echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17559echo "configure:17560: checking for $ac_func" >&5 17560if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17561 echo $ac_n "(cached) $ac_c" 1>&6 17562else 17563 cat > conftest.$ac_ext <<EOF 17564#line 17565 "configure" 17565#include "confdefs.h" 17566/* System header to define __stub macros and hopefully few prototypes, 17567 which can conflict with char $ac_func(); below. */ 17568#include <assert.h> 17569/* Override any gcc2 internal prototype to avoid an error. */ 17570/* We use char because int might match the return type of a gcc2 17571 builtin and then its argument prototype would still apply. */ 17572char $ac_func(); 17573 17574int main() { 17575 17576/* The GNU C library defines this for functions which it implements 17577 to always fail with ENOSYS. Some functions are actually named 17578 something starting with __ and the normal name is an alias. */ 17579#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17580choke me 17581#else 17582$ac_func(); 17583#endif 17584 17585; return 0; } 17586EOF 17587if { { eval echo configure:17588: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17588 rm -rf conftest* 17589 eval "ac_cv_func_$ac_func=yes" 17590else 17591 echo "configure: failed program was:" >&5 17592 cat conftest.$ac_ext >&5 17593 rm -rf conftest* 17594 eval "ac_cv_func_$ac_func=no" 17595fi 17596rm -f conftest* 17597fi 17598 17599if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17600 echo "$ac_t""yes" 1>&6 17601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17602 cat >> confdefs.h <<EOF 17603#define $ac_tr_func 1 17604EOF 17605 17606else 17607 echo "$ac_t""no" 1>&6 17608fi 17609done 17610 17611for ac_func in mkdirat faccessat fchmodat linkat mkfifoat mknodat readlinkat symlinkat 17612do 17613echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17614echo "configure:17615: checking for $ac_func" >&5 17615if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17616 echo $ac_n "(cached) $ac_c" 1>&6 17617else 17618 cat > conftest.$ac_ext <<EOF 17619#line 17620 "configure" 17620#include "confdefs.h" 17621/* System header to define __stub macros and hopefully few prototypes, 17622 which can conflict with char $ac_func(); below. */ 17623#include <assert.h> 17624/* Override any gcc2 internal prototype to avoid an error. */ 17625/* We use char because int might match the return type of a gcc2 17626 builtin and then its argument prototype would still apply. */ 17627char $ac_func(); 17628 17629int main() { 17630 17631/* The GNU C library defines this for functions which it implements 17632 to always fail with ENOSYS. Some functions are actually named 17633 something starting with __ and the normal name is an alias. */ 17634#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17635choke me 17636#else 17637$ac_func(); 17638#endif 17639 17640; return 0; } 17641EOF 17642if { { eval echo configure:17643: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17643 rm -rf conftest* 17644 eval "ac_cv_func_$ac_func=yes" 17645else 17646 echo "configure: failed program was:" >&5 17647 cat conftest.$ac_ext >&5 17648 rm -rf conftest* 17649 eval "ac_cv_func_$ac_func=no" 17650fi 17651rm -f conftest* 17652fi 17653 17654if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17655 echo "$ac_t""yes" 1>&6 17656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17657 cat >> confdefs.h <<EOF 17658#define $ac_tr_func 1 17659EOF 17660 17661else 17662 echo "$ac_t""no" 1>&6 17663fi 17664done 17665 17666for ac_func in pipe _pipe 17667do 17668echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17669echo "configure:17670: checking for $ac_func" >&5 17670if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17671 echo $ac_n "(cached) $ac_c" 1>&6 17672else 17673 cat > conftest.$ac_ext <<EOF 17674#line 17675 "configure" 17675#include "confdefs.h" 17676/* System header to define __stub macros and hopefully few prototypes, 17677 which can conflict with char $ac_func(); below. */ 17678#include <assert.h> 17679/* Override any gcc2 internal prototype to avoid an error. */ 17680/* We use char because int might match the return type of a gcc2 17681 builtin and then its argument prototype would still apply. */ 17682char $ac_func(); 17683 17684int main() { 17685 17686/* The GNU C library defines this for functions which it implements 17687 to always fail with ENOSYS. Some functions are actually named 17688 something starting with __ and the normal name is an alias. */ 17689#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17690choke me 17691#else 17692$ac_func(); 17693#endif 17694 17695; return 0; } 17696EOF 17697if { { eval echo configure:17698: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17698 rm -rf conftest* 17699 eval "ac_cv_func_$ac_func=yes" 17700else 17701 echo "configure: failed program was:" >&5 17702 cat conftest.$ac_ext >&5 17703 rm -rf conftest* 17704 eval "ac_cv_func_$ac_func=no" 17705fi 17706rm -f conftest* 17707fi 17708 17709if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17710 echo "$ac_t""yes" 1>&6 17711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17712 cat >> confdefs.h <<EOF 17713#define $ac_tr_func 1 17714EOF 17715 17716else 17717 echo "$ac_t""no" 1>&6 17718fi 17719done 17720 17721for ac_func in popen pclose _popen _pclose 17722do 17723echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17724echo "configure:17725: checking for $ac_func" >&5 17725if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17726 echo $ac_n "(cached) $ac_c" 1>&6 17727else 17728 cat > conftest.$ac_ext <<EOF 17729#line 17730 "configure" 17730#include "confdefs.h" 17731/* System header to define __stub macros and hopefully few prototypes, 17732 which can conflict with char $ac_func(); below. */ 17733#include <assert.h> 17734/* Override any gcc2 internal prototype to avoid an error. */ 17735/* We use char because int might match the return type of a gcc2 17736 builtin and then its argument prototype would still apply. */ 17737char $ac_func(); 17738 17739int main() { 17740 17741/* The GNU C library defines this for functions which it implements 17742 to always fail with ENOSYS. Some functions are actually named 17743 something starting with __ and the normal name is an alias. */ 17744#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17745choke me 17746#else 17747$ac_func(); 17748#endif 17749 17750; return 0; } 17751EOF 17752if { { eval echo configure:17753: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17753 rm -rf conftest* 17754 eval "ac_cv_func_$ac_func=yes" 17755else 17756 echo "configure: failed program was:" >&5 17757 cat conftest.$ac_ext >&5 17758 rm -rf conftest* 17759 eval "ac_cv_func_$ac_func=no" 17760fi 17761rm -f conftest* 17762fi 17763 17764if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17765 echo "$ac_t""yes" 1>&6 17766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17767 cat >> confdefs.h <<EOF 17768#define $ac_tr_func 1 17769EOF 17770 17771else 17772 echo "$ac_t""no" 1>&6 17773fi 17774done 17775 17776for ac_func in closefrom 17777do 17778echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17779echo "configure:17780: checking for $ac_func" >&5 17780if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17781 echo $ac_n "(cached) $ac_c" 1>&6 17782else 17783 cat > conftest.$ac_ext <<EOF 17784#line 17785 "configure" 17785#include "confdefs.h" 17786/* System header to define __stub macros and hopefully few prototypes, 17787 which can conflict with char $ac_func(); below. */ 17788#include <assert.h> 17789/* Override any gcc2 internal prototype to avoid an error. */ 17790/* We use char because int might match the return type of a gcc2 17791 builtin and then its argument prototype would still apply. */ 17792char $ac_func(); 17793 17794int main() { 17795 17796/* The GNU C library defines this for functions which it implements 17797 to always fail with ENOSYS. Some functions are actually named 17798 something starting with __ and the normal name is an alias. */ 17799#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17800choke me 17801#else 17802$ac_func(); 17803#endif 17804 17805; return 0; } 17806EOF 17807if { { eval echo configure:17808: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17808 rm -rf conftest* 17809 eval "ac_cv_func_$ac_func=yes" 17810else 17811 echo "configure: failed program was:" >&5 17812 cat conftest.$ac_ext >&5 17813 rm -rf conftest* 17814 eval "ac_cv_func_$ac_func=no" 17815fi 17816rm -f conftest* 17817fi 17818 17819if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17820 echo "$ac_t""yes" 1>&6 17821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17822 cat >> confdefs.h <<EOF 17823#define $ac_tr_func 1 17824EOF 17825 17826else 17827 echo "$ac_t""no" 1>&6 17828fi 17829done 17830 17831for ac_func in strsignal str2sig sig2str 17832do 17833echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17834echo "configure:17835: checking for $ac_func" >&5 17835if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17836 echo $ac_n "(cached) $ac_c" 1>&6 17837else 17838 cat > conftest.$ac_ext <<EOF 17839#line 17840 "configure" 17840#include "confdefs.h" 17841/* System header to define __stub macros and hopefully few prototypes, 17842 which can conflict with char $ac_func(); below. */ 17843#include <assert.h> 17844/* Override any gcc2 internal prototype to avoid an error. */ 17845/* We use char because int might match the return type of a gcc2 17846 builtin and then its argument prototype would still apply. */ 17847char $ac_func(); 17848 17849int main() { 17850 17851/* The GNU C library defines this for functions which it implements 17852 to always fail with ENOSYS. Some functions are actually named 17853 something starting with __ and the normal name is an alias. */ 17854#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17855choke me 17856#else 17857$ac_func(); 17858#endif 17859 17860; return 0; } 17861EOF 17862if { { eval echo configure:17863: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17863 rm -rf conftest* 17864 eval "ac_cv_func_$ac_func=yes" 17865else 17866 echo "configure: failed program was:" >&5 17867 cat conftest.$ac_ext >&5 17868 rm -rf conftest* 17869 eval "ac_cv_func_$ac_func=no" 17870fi 17871rm -f conftest* 17872fi 17873 17874if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17875 echo "$ac_t""yes" 1>&6 17876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17877 cat >> confdefs.h <<EOF 17878#define $ac_tr_func 1 17879EOF 17880 17881else 17882 echo "$ac_t""no" 1>&6 17883fi 17884done 17885 17886for ac_func in kill killpg 17887do 17888echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17889echo "configure:17890: checking for $ac_func" >&5 17890if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17891 echo $ac_n "(cached) $ac_c" 1>&6 17892else 17893 cat > conftest.$ac_ext <<EOF 17894#line 17895 "configure" 17895#include "confdefs.h" 17896/* System header to define __stub macros and hopefully few prototypes, 17897 which can conflict with char $ac_func(); below. */ 17898#include <assert.h> 17899/* Override any gcc2 internal prototype to avoid an error. */ 17900/* We use char because int might match the return type of a gcc2 17901 builtin and then its argument prototype would still apply. */ 17902char $ac_func(); 17903 17904int main() { 17905 17906/* The GNU C library defines this for functions which it implements 17907 to always fail with ENOSYS. Some functions are actually named 17908 something starting with __ and the normal name is an alias. */ 17909#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17910choke me 17911#else 17912$ac_func(); 17913#endif 17914 17915; return 0; } 17916EOF 17917if { { eval echo configure:17918: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17918 rm -rf conftest* 17919 eval "ac_cv_func_$ac_func=yes" 17920else 17921 echo "configure: failed program was:" >&5 17922 cat conftest.$ac_ext >&5 17923 rm -rf conftest* 17924 eval "ac_cv_func_$ac_func=no" 17925fi 17926rm -f conftest* 17927fi 17928 17929if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17930 echo "$ac_t""yes" 1>&6 17931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17932 cat >> confdefs.h <<EOF 17933#define $ac_tr_func 1 17934EOF 17935 17936else 17937 echo "$ac_t""no" 1>&6 17938fi 17939done 17940 17941for ac_func in signal sighold sigrelse sigignore sigpause sigprocmask sigsetmask sigset sigaltstack sigblock 17942do 17943echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17944echo "configure:17945: checking for $ac_func" >&5 17945if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 17946 echo $ac_n "(cached) $ac_c" 1>&6 17947else 17948 cat > conftest.$ac_ext <<EOF 17949#line 17950 "configure" 17950#include "confdefs.h" 17951/* System header to define __stub macros and hopefully few prototypes, 17952 which can conflict with char $ac_func(); below. */ 17953#include <assert.h> 17954/* Override any gcc2 internal prototype to avoid an error. */ 17955/* We use char because int might match the return type of a gcc2 17956 builtin and then its argument prototype would still apply. */ 17957char $ac_func(); 17958 17959int main() { 17960 17961/* The GNU C library defines this for functions which it implements 17962 to always fail with ENOSYS. Some functions are actually named 17963 something starting with __ and the normal name is an alias. */ 17964#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17965choke me 17966#else 17967$ac_func(); 17968#endif 17969 17970; return 0; } 17971EOF 17972if { { eval echo configure:17973: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 17973 rm -rf conftest* 17974 eval "ac_cv_func_$ac_func=yes" 17975else 17976 echo "configure: failed program was:" >&5 17977 cat conftest.$ac_ext >&5 17978 rm -rf conftest* 17979 eval "ac_cv_func_$ac_func=no" 17980fi 17981rm -f conftest* 17982fi 17983 17984if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 17985 echo "$ac_t""yes" 1>&6 17986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 17987 cat >> confdefs.h <<EOF 17988#define $ac_tr_func 1 17989EOF 17990 17991else 17992 echo "$ac_t""no" 1>&6 17993fi 17994done 17995 17996for ac_func in alarm sleep usleep yield 17997do 17998echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 17999echo "configure:18000: checking for $ac_func" >&5 18000if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18001 echo $ac_n "(cached) $ac_c" 1>&6 18002else 18003 cat > conftest.$ac_ext <<EOF 18004#line 18005 "configure" 18005#include "confdefs.h" 18006/* System header to define __stub macros and hopefully few prototypes, 18007 which can conflict with char $ac_func(); below. */ 18008#include <assert.h> 18009/* Override any gcc2 internal prototype to avoid an error. */ 18010/* We use char because int might match the return type of a gcc2 18011 builtin and then its argument prototype would still apply. */ 18012char $ac_func(); 18013 18014int main() { 18015 18016/* The GNU C library defines this for functions which it implements 18017 to always fail with ENOSYS. Some functions are actually named 18018 something starting with __ and the normal name is an alias. */ 18019#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18020choke me 18021#else 18022$ac_func(); 18023#endif 18024 18025; return 0; } 18026EOF 18027if { { eval echo configure:18028: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18028 rm -rf conftest* 18029 eval "ac_cv_func_$ac_func=yes" 18030else 18031 echo "configure: failed program was:" >&5 18032 cat conftest.$ac_ext >&5 18033 rm -rf conftest* 18034 eval "ac_cv_func_$ac_func=no" 18035fi 18036rm -f conftest* 18037fi 18038 18039if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18040 echo "$ac_t""yes" 1>&6 18041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18042 cat >> confdefs.h <<EOF 18043#define $ac_tr_func 1 18044EOF 18045 18046else 18047 echo "$ac_t""no" 1>&6 18048fi 18049done 18050 18051for ac_func in atexit on_exit 18052do 18053echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18054echo "configure:18055: checking for $ac_func" >&5 18055if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18056 echo $ac_n "(cached) $ac_c" 1>&6 18057else 18058 cat > conftest.$ac_ext <<EOF 18059#line 18060 "configure" 18060#include "confdefs.h" 18061/* System header to define __stub macros and hopefully few prototypes, 18062 which can conflict with char $ac_func(); below. */ 18063#include <assert.h> 18064/* Override any gcc2 internal prototype to avoid an error. */ 18065/* We use char because int might match the return type of a gcc2 18066 builtin and then its argument prototype would still apply. */ 18067char $ac_func(); 18068 18069int main() { 18070 18071/* The GNU C library defines this for functions which it implements 18072 to always fail with ENOSYS. Some functions are actually named 18073 something starting with __ and the normal name is an alias. */ 18074#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18075choke me 18076#else 18077$ac_func(); 18078#endif 18079 18080; return 0; } 18081EOF 18082if { { eval echo configure:18083: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18083 rm -rf conftest* 18084 eval "ac_cv_func_$ac_func=yes" 18085else 18086 echo "configure: failed program was:" >&5 18087 cat conftest.$ac_ext >&5 18088 rm -rf conftest* 18089 eval "ac_cv_func_$ac_func=no" 18090fi 18091rm -f conftest* 18092fi 18093 18094if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18095 echo "$ac_t""yes" 1>&6 18096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18097 cat >> confdefs.h <<EOF 18098#define $ac_tr_func 1 18099EOF 18100 18101else 18102 echo "$ac_t""no" 1>&6 18103fi 18104done 18105 18106echo $ac_n "checking if tcgetattr is defined or function""... $ac_c" 1>&6 18107echo "configure:18108: checking if tcgetattr is defined or function" >&5 18108if eval "test \"`echo '$''{'ac_cv_have_tcgetattr'+set}'`\" = set"; then 18109 echo $ac_n "(cached) $ac_c" 1>&6 18110else 18111 cat > conftest.$ac_ext <<EOF 18112#line 18113 "configure" 18113#include "confdefs.h" 18114 18115#ifdef HAVE_TERMIOS_H 18116#include <termios.h> 18117#endif 18118 18119int main() { 18120 18121#ifndef tcgetattr 18122 char *p = (char *) tcgetattr; 18123 return (p != (char *)0 && *p != 0); 18124#endif 18125; return 0; } 18126EOF 18127if { { eval echo configure:18128: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18128 rm -rf conftest* 18129 eval ac_cv_have_tcgetattr=yes 18130else 18131 echo "configure: failed program was:" >&5 18132 cat conftest.$ac_ext >&5 18133 rm -rf conftest* 18134 eval ac_cv_have_tcgetattr=no 18135fi 18136rm -f conftest* 18137fi 18138 18139if eval "test \"`echo '$ac_cv_have_'tcgetattr`\" = yes"; then 18140 echo "$ac_t""yes" 1>&6 18141else 18142 echo "$ac_t""no" 1>&6 18143fi 18144 ac_tr_dfunc=HAVE_`echo tcgetattr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 18145if eval "test \"`echo '$ac_cv_have_'tcgetattr`\" = yes"; then 18146 cat >> confdefs.h <<EOF 18147#define $ac_tr_dfunc 1 18148EOF 18149 18150fi 18151 18152echo $ac_n "checking if tcsetattr is defined or function""... $ac_c" 1>&6 18153echo "configure:18154: checking if tcsetattr is defined or function" >&5 18154if eval "test \"`echo '$''{'ac_cv_have_tcsetattr'+set}'`\" = set"; then 18155 echo $ac_n "(cached) $ac_c" 1>&6 18156else 18157 cat > conftest.$ac_ext <<EOF 18158#line 18159 "configure" 18159#include "confdefs.h" 18160 18161#ifdef HAVE_TERMIOS_H 18162#include <termios.h> 18163#endif 18164 18165int main() { 18166 18167#ifndef tcsetattr 18168 char *p = (char *) tcsetattr; 18169 return (p != (char *)0 && *p != 0); 18170#endif 18171; return 0; } 18172EOF 18173if { { eval echo configure:18174: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18174 rm -rf conftest* 18175 eval ac_cv_have_tcsetattr=yes 18176else 18177 echo "configure: failed program was:" >&5 18178 cat conftest.$ac_ext >&5 18179 rm -rf conftest* 18180 eval ac_cv_have_tcsetattr=no 18181fi 18182rm -f conftest* 18183fi 18184 18185if eval "test \"`echo '$ac_cv_have_'tcsetattr`\" = yes"; then 18186 echo "$ac_t""yes" 1>&6 18187else 18188 echo "$ac_t""no" 1>&6 18189fi 18190 ac_tr_dfunc=HAVE_`echo tcsetattr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 18191if eval "test \"`echo '$ac_cv_have_'tcsetattr`\" = yes"; then 18192 cat >> confdefs.h <<EOF 18193#define $ac_tr_dfunc 1 18194EOF 18195 18196fi 18197 18198for ac_func in tcgetpgrp tcsetpgrp tcgetsid 18199do 18200echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18201echo "configure:18202: checking for $ac_func" >&5 18202if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18203 echo $ac_n "(cached) $ac_c" 1>&6 18204else 18205 cat > conftest.$ac_ext <<EOF 18206#line 18207 "configure" 18207#include "confdefs.h" 18208/* System header to define __stub macros and hopefully few prototypes, 18209 which can conflict with char $ac_func(); below. */ 18210#include <assert.h> 18211/* Override any gcc2 internal prototype to avoid an error. */ 18212/* We use char because int might match the return type of a gcc2 18213 builtin and then its argument prototype would still apply. */ 18214char $ac_func(); 18215 18216int main() { 18217 18218/* The GNU C library defines this for functions which it implements 18219 to always fail with ENOSYS. Some functions are actually named 18220 something starting with __ and the normal name is an alias. */ 18221#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18222choke me 18223#else 18224$ac_func(); 18225#endif 18226 18227; return 0; } 18228EOF 18229if { { eval echo configure:18230: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18230 rm -rf conftest* 18231 eval "ac_cv_func_$ac_func=yes" 18232else 18233 echo "configure: failed program was:" >&5 18234 cat conftest.$ac_ext >&5 18235 rm -rf conftest* 18236 eval "ac_cv_func_$ac_func=no" 18237fi 18238rm -f conftest* 18239fi 18240 18241if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18242 echo "$ac_t""yes" 1>&6 18243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18244 cat >> confdefs.h <<EOF 18245#define $ac_tr_func 1 18246EOF 18247 18248else 18249 echo "$ac_t""no" 1>&6 18250fi 18251done 18252 18253for ac_func in getenv putenv setenv unsetenv 18254do 18255echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18256echo "configure:18257: checking for $ac_func" >&5 18257if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18258 echo $ac_n "(cached) $ac_c" 1>&6 18259else 18260 cat > conftest.$ac_ext <<EOF 18261#line 18262 "configure" 18262#include "confdefs.h" 18263/* System header to define __stub macros and hopefully few prototypes, 18264 which can conflict with char $ac_func(); below. */ 18265#include <assert.h> 18266/* Override any gcc2 internal prototype to avoid an error. */ 18267/* We use char because int might match the return type of a gcc2 18268 builtin and then its argument prototype would still apply. */ 18269char $ac_func(); 18270 18271int main() { 18272 18273/* The GNU C library defines this for functions which it implements 18274 to always fail with ENOSYS. Some functions are actually named 18275 something starting with __ and the normal name is an alias. */ 18276#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18277choke me 18278#else 18279$ac_func(); 18280#endif 18281 18282; return 0; } 18283EOF 18284if { { eval echo configure:18285: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18285 rm -rf conftest* 18286 eval "ac_cv_func_$ac_func=yes" 18287else 18288 echo "configure: failed program was:" >&5 18289 cat conftest.$ac_ext >&5 18290 rm -rf conftest* 18291 eval "ac_cv_func_$ac_func=no" 18292fi 18293rm -f conftest* 18294fi 18295 18296if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18297 echo "$ac_t""yes" 1>&6 18298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18299 cat >> confdefs.h <<EOF 18300#define $ac_tr_func 1 18301EOF 18302 18303else 18304 echo "$ac_t""no" 1>&6 18305fi 18306done 18307 18308for ac_func in snprintf strcasecmp strncasecmp 18309do 18310echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18311echo "configure:18312: checking for $ac_func" >&5 18312if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18313 echo $ac_n "(cached) $ac_c" 1>&6 18314else 18315 cat > conftest.$ac_ext <<EOF 18316#line 18317 "configure" 18317#include "confdefs.h" 18318/* System header to define __stub macros and hopefully few prototypes, 18319 which can conflict with char $ac_func(); below. */ 18320#include <assert.h> 18321/* Override any gcc2 internal prototype to avoid an error. */ 18322/* We use char because int might match the return type of a gcc2 18323 builtin and then its argument prototype would still apply. */ 18324char $ac_func(); 18325 18326int main() { 18327 18328/* The GNU C library defines this for functions which it implements 18329 to always fail with ENOSYS. Some functions are actually named 18330 something starting with __ and the normal name is an alias. */ 18331#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18332choke me 18333#else 18334$ac_func(); 18335#endif 18336 18337; return 0; } 18338EOF 18339if { { eval echo configure:18340: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18340 rm -rf conftest* 18341 eval "ac_cv_func_$ac_func=yes" 18342else 18343 echo "configure: failed program was:" >&5 18344 cat conftest.$ac_ext >&5 18345 rm -rf conftest* 18346 eval "ac_cv_func_$ac_func=no" 18347fi 18348rm -f conftest* 18349fi 18350 18351if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18352 echo "$ac_t""yes" 1>&6 18353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18354 cat >> confdefs.h <<EOF 18355#define $ac_tr_func 1 18356EOF 18357 18358else 18359 echo "$ac_t""no" 1>&6 18360fi 18361done 18362 18363for ac_func in vprintf vfprintf vsprintf vsnprintf 18364do 18365echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18366echo "configure:18367: checking for $ac_func" >&5 18367if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18368 echo $ac_n "(cached) $ac_c" 1>&6 18369else 18370 cat > conftest.$ac_ext <<EOF 18371#line 18372 "configure" 18372#include "confdefs.h" 18373/* System header to define __stub macros and hopefully few prototypes, 18374 which can conflict with char $ac_func(); below. */ 18375#include <assert.h> 18376/* Override any gcc2 internal prototype to avoid an error. */ 18377/* We use char because int might match the return type of a gcc2 18378 builtin and then its argument prototype would still apply. */ 18379char $ac_func(); 18380 18381int main() { 18382 18383/* The GNU C library defines this for functions which it implements 18384 to always fail with ENOSYS. Some functions are actually named 18385 something starting with __ and the normal name is an alias. */ 18386#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18387choke me 18388#else 18389$ac_func(); 18390#endif 18391 18392; return 0; } 18393EOF 18394if { { eval echo configure:18395: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18395 rm -rf conftest* 18396 eval "ac_cv_func_$ac_func=yes" 18397else 18398 echo "configure: failed program was:" >&5 18399 cat conftest.$ac_ext >&5 18400 rm -rf conftest* 18401 eval "ac_cv_func_$ac_func=no" 18402fi 18403rm -f conftest* 18404fi 18405 18406if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18407 echo "$ac_t""yes" 1>&6 18408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18409 cat >> confdefs.h <<EOF 18410#define $ac_tr_func 1 18411EOF 18412 18413else 18414 echo "$ac_t""no" 1>&6 18415fi 18416done 18417 18418 18419for ac_func in strcat strncat strcmp strncmp strcpy strlcat strlcpy strncpy strdup strndup strlen strnlen strchr strrchr strstr strspn strcspn 18420do 18421echo $ac_n "checking if $ac_func is defined or function""... $ac_c" 1>&6 18422echo "configure:18423: checking if $ac_func is defined or function" >&5 18423if eval "test \"`echo '$''{'ac_cv_have_$ac_func'+set}'`\" = set"; then 18424 echo $ac_n "(cached) $ac_c" 1>&6 18425else 18426 cat > conftest.$ac_ext <<EOF 18427#line 18428 "configure" 18428#include "confdefs.h" 18429 18430#ifdef HAVE_STRING_H 18431#include <string.h> 18432#endif 18433 18434int main() { 18435 18436#ifndef $ac_func 18437 char *p = (char *) $ac_func; 18438 return (p != (char *)0 && *p != 0); 18439#endif 18440; return 0; } 18441EOF 18442if { { eval echo configure:18443: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18443 rm -rf conftest* 18444 eval ac_cv_have_$ac_func=yes 18445else 18446 echo "configure: failed program was:" >&5 18447 cat conftest.$ac_ext >&5 18448 rm -rf conftest* 18449 eval ac_cv_have_$ac_func=no 18450fi 18451rm -f conftest* 18452fi 18453 18454if eval "test \"`echo '$ac_cv_have_'$ac_func`\" = yes"; then 18455 echo "$ac_t""yes" 1>&6 18456else 18457 echo "$ac_t""no" 1>&6 18458fi 18459 ac_tr_dfunc=HAVE_`echo $ac_func | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 18460if eval "test \"`echo '$ac_cv_have_'$ac_func`\" = yes"; then 18461 cat >> confdefs.h <<EOF 18462#define $ac_tr_dfunc 1 18463EOF 18464 18465fi 18466done 18467 18468for ac_func in wcscat wcsncat wcscmp wcsncmp wcscpy wcslcat wcslcpy wcsncpy wcsdup wcsndup wcslen wcsnlen wcschr wcsrchr wcsstr wcsspn wcscspn 18469do 18470echo $ac_n "checking if $ac_func is defined or function""... $ac_c" 1>&6 18471echo "configure:18472: checking if $ac_func is defined or function" >&5 18472if eval "test \"`echo '$''{'ac_cv_have_$ac_func'+set}'`\" = set"; then 18473 echo $ac_n "(cached) $ac_c" 1>&6 18474else 18475 cat > conftest.$ac_ext <<EOF 18476#line 18477 "configure" 18477#include "confdefs.h" 18478 18479#ifdef HAVE_WCHAR_H 18480#include <wchar.h> 18481#endif 18482 18483int main() { 18484 18485#ifndef $ac_func 18486 char *p = (char *) $ac_func; 18487 return (p != (char *)0 && *p != 0); 18488#endif 18489; return 0; } 18490EOF 18491if { { eval echo configure:18492: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18492 rm -rf conftest* 18493 eval ac_cv_have_$ac_func=yes 18494else 18495 echo "configure: failed program was:" >&5 18496 cat conftest.$ac_ext >&5 18497 rm -rf conftest* 18498 eval ac_cv_have_$ac_func=no 18499fi 18500rm -f conftest* 18501fi 18502 18503if eval "test \"`echo '$ac_cv_have_'$ac_func`\" = yes"; then 18504 echo "$ac_t""yes" 1>&6 18505else 18506 echo "$ac_t""no" 1>&6 18507fi 18508 ac_tr_dfunc=HAVE_`echo $ac_func | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 18509if eval "test \"`echo '$ac_cv_have_'$ac_func`\" = yes"; then 18510 cat >> confdefs.h <<EOF 18511#define $ac_tr_dfunc 1 18512EOF 18513 18514fi 18515done 18516 18517 18518for ac_func in wcwidth wcswidth wctype iswctype wcstol wcstoll wcstoul wcstoull 18519do 18520echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18521echo "configure:18522: checking for $ac_func" >&5 18522if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18523 echo $ac_n "(cached) $ac_c" 1>&6 18524else 18525 cat > conftest.$ac_ext <<EOF 18526#line 18527 "configure" 18527#include "confdefs.h" 18528/* System header to define __stub macros and hopefully few prototypes, 18529 which can conflict with char $ac_func(); below. */ 18530#include <assert.h> 18531/* Override any gcc2 internal prototype to avoid an error. */ 18532/* We use char because int might match the return type of a gcc2 18533 builtin and then its argument prototype would still apply. */ 18534char $ac_func(); 18535 18536int main() { 18537 18538/* The GNU C library defines this for functions which it implements 18539 to always fail with ENOSYS. Some functions are actually named 18540 something starting with __ and the normal name is an alias. */ 18541#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18542choke me 18543#else 18544$ac_func(); 18545#endif 18546 18547; return 0; } 18548EOF 18549if { { eval echo configure:18550: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18550 rm -rf conftest* 18551 eval "ac_cv_func_$ac_func=yes" 18552else 18553 echo "configure: failed program was:" >&5 18554 cat conftest.$ac_ext >&5 18555 rm -rf conftest* 18556 eval "ac_cv_func_$ac_func=no" 18557fi 18558rm -f conftest* 18559fi 18560 18561if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18562 echo "$ac_t""yes" 1>&6 18563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18564 cat >> confdefs.h <<EOF 18565#define $ac_tr_func 1 18566EOF 18567 18568else 18569 echo "$ac_t""no" 1>&6 18570fi 18571done 18572 18573for ac_func in fgetws 18574do 18575echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18576echo "configure:18577: checking for $ac_func" >&5 18577if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18578 echo $ac_n "(cached) $ac_c" 1>&6 18579else 18580 cat > conftest.$ac_ext <<EOF 18581#line 18582 "configure" 18582#include "confdefs.h" 18583/* System header to define __stub macros and hopefully few prototypes, 18584 which can conflict with char $ac_func(); below. */ 18585#include <assert.h> 18586/* Override any gcc2 internal prototype to avoid an error. */ 18587/* We use char because int might match the return type of a gcc2 18588 builtin and then its argument prototype would still apply. */ 18589char $ac_func(); 18590 18591int main() { 18592 18593/* The GNU C library defines this for functions which it implements 18594 to always fail with ENOSYS. Some functions are actually named 18595 something starting with __ and the normal name is an alias. */ 18596#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18597choke me 18598#else 18599$ac_func(); 18600#endif 18601 18602; return 0; } 18603EOF 18604if { { eval echo configure:18605: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18605 rm -rf conftest* 18606 eval "ac_cv_func_$ac_func=yes" 18607else 18608 echo "configure: failed program was:" >&5 18609 cat conftest.$ac_ext >&5 18610 rm -rf conftest* 18611 eval "ac_cv_func_$ac_func=no" 18612fi 18613rm -f conftest* 18614fi 18615 18616if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18617 echo "$ac_t""yes" 1>&6 18618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18619 cat >> confdefs.h <<EOF 18620#define $ac_tr_func 1 18621EOF 18622 18623else 18624 echo "$ac_t""no" 1>&6 18625fi 18626done 18627 18628for ac_func in basename dirname 18629do 18630echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18631echo "configure:18632: checking for $ac_func" >&5 18632if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18633 echo $ac_n "(cached) $ac_c" 1>&6 18634else 18635 cat > conftest.$ac_ext <<EOF 18636#line 18637 "configure" 18637#include "confdefs.h" 18638/* System header to define __stub macros and hopefully few prototypes, 18639 which can conflict with char $ac_func(); below. */ 18640#include <assert.h> 18641/* Override any gcc2 internal prototype to avoid an error. */ 18642/* We use char because int might match the return type of a gcc2 18643 builtin and then its argument prototype would still apply. */ 18644char $ac_func(); 18645 18646int main() { 18647 18648/* The GNU C library defines this for functions which it implements 18649 to always fail with ENOSYS. Some functions are actually named 18650 something starting with __ and the normal name is an alias. */ 18651#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18652choke me 18653#else 18654$ac_func(); 18655#endif 18656 18657; return 0; } 18658EOF 18659if { { eval echo configure:18660: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18660 rm -rf conftest* 18661 eval "ac_cv_func_$ac_func=yes" 18662else 18663 echo "configure: failed program was:" >&5 18664 cat conftest.$ac_ext >&5 18665 rm -rf conftest* 18666 eval "ac_cv_func_$ac_func=no" 18667fi 18668rm -f conftest* 18669fi 18670 18671if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18672 echo "$ac_t""yes" 1>&6 18673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18674 cat >> confdefs.h <<EOF 18675#define $ac_tr_func 1 18676EOF 18677 18678else 18679 echo "$ac_t""no" 1>&6 18680fi 18681done 18682 18683for ac_func in pathconf fpathconf lpathconf 18684do 18685echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18686echo "configure:18687: checking for $ac_func" >&5 18687if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18688 echo $ac_n "(cached) $ac_c" 1>&6 18689else 18690 cat > conftest.$ac_ext <<EOF 18691#line 18692 "configure" 18692#include "confdefs.h" 18693/* System header to define __stub macros and hopefully few prototypes, 18694 which can conflict with char $ac_func(); below. */ 18695#include <assert.h> 18696/* Override any gcc2 internal prototype to avoid an error. */ 18697/* We use char because int might match the return type of a gcc2 18698 builtin and then its argument prototype would still apply. */ 18699char $ac_func(); 18700 18701int main() { 18702 18703/* The GNU C library defines this for functions which it implements 18704 to always fail with ENOSYS. Some functions are actually named 18705 something starting with __ and the normal name is an alias. */ 18706#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18707choke me 18708#else 18709$ac_func(); 18710#endif 18711 18712; return 0; } 18713EOF 18714if { { eval echo configure:18715: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18715 rm -rf conftest* 18716 eval "ac_cv_func_$ac_func=yes" 18717else 18718 echo "configure: failed program was:" >&5 18719 cat conftest.$ac_ext >&5 18720 rm -rf conftest* 18721 eval "ac_cv_func_$ac_func=no" 18722fi 18723rm -f conftest* 18724fi 18725 18726if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18727 echo "$ac_t""yes" 1>&6 18728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18729 cat >> confdefs.h <<EOF 18730#define $ac_tr_func 1 18731EOF 18732 18733else 18734 echo "$ac_t""no" 1>&6 18735fi 18736done 18737 18738for ac_func in malloc calloc valloc realloc memalign posix_memalign 18739do 18740echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18741echo "configure:18742: checking for $ac_func" >&5 18742if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18743 echo $ac_n "(cached) $ac_c" 1>&6 18744else 18745 cat > conftest.$ac_ext <<EOF 18746#line 18747 "configure" 18747#include "confdefs.h" 18748/* System header to define __stub macros and hopefully few prototypes, 18749 which can conflict with char $ac_func(); below. */ 18750#include <assert.h> 18751/* Override any gcc2 internal prototype to avoid an error. */ 18752/* We use char because int might match the return type of a gcc2 18753 builtin and then its argument prototype would still apply. */ 18754char $ac_func(); 18755 18756int main() { 18757 18758/* The GNU C library defines this for functions which it implements 18759 to always fail with ENOSYS. Some functions are actually named 18760 something starting with __ and the normal name is an alias. */ 18761#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18762choke me 18763#else 18764$ac_func(); 18765#endif 18766 18767; return 0; } 18768EOF 18769if { { eval echo configure:18770: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18770 rm -rf conftest* 18771 eval "ac_cv_func_$ac_func=yes" 18772else 18773 echo "configure: failed program was:" >&5 18774 cat conftest.$ac_ext >&5 18775 rm -rf conftest* 18776 eval "ac_cv_func_$ac_func=no" 18777fi 18778rm -f conftest* 18779fi 18780 18781if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18782 echo "$ac_t""yes" 1>&6 18783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18784 cat >> confdefs.h <<EOF 18785#define $ac_tr_func 1 18786EOF 18787 18788else 18789 echo "$ac_t""no" 1>&6 18790fi 18791done 18792 18793for ac_func in madvise 18794do 18795echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18796echo "configure:18797: checking for $ac_func" >&5 18797if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18798 echo $ac_n "(cached) $ac_c" 1>&6 18799else 18800 cat > conftest.$ac_ext <<EOF 18801#line 18802 "configure" 18802#include "confdefs.h" 18803/* System header to define __stub macros and hopefully few prototypes, 18804 which can conflict with char $ac_func(); below. */ 18805#include <assert.h> 18806/* Override any gcc2 internal prototype to avoid an error. */ 18807/* We use char because int might match the return type of a gcc2 18808 builtin and then its argument prototype would still apply. */ 18809char $ac_func(); 18810 18811int main() { 18812 18813/* The GNU C library defines this for functions which it implements 18814 to always fail with ENOSYS. Some functions are actually named 18815 something starting with __ and the normal name is an alias. */ 18816#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18817choke me 18818#else 18819$ac_func(); 18820#endif 18821 18822; return 0; } 18823EOF 18824if { { eval echo configure:18825: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18825 rm -rf conftest* 18826 eval "ac_cv_func_$ac_func=yes" 18827else 18828 echo "configure: failed program was:" >&5 18829 cat conftest.$ac_ext >&5 18830 rm -rf conftest* 18831 eval "ac_cv_func_$ac_func=no" 18832fi 18833rm -f conftest* 18834fi 18835 18836if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18837 echo "$ac_t""yes" 1>&6 18838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18839 cat >> confdefs.h <<EOF 18840#define $ac_tr_func 1 18841EOF 18842 18843else 18844 echo "$ac_t""no" 1>&6 18845fi 18846done 18847 18848for ac_func in mktemp mkstemp 18849do 18850echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18851echo "configure:18852: checking for $ac_func" >&5 18852if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18853 echo $ac_n "(cached) $ac_c" 1>&6 18854else 18855 cat > conftest.$ac_ext <<EOF 18856#line 18857 "configure" 18857#include "confdefs.h" 18858/* System header to define __stub macros and hopefully few prototypes, 18859 which can conflict with char $ac_func(); below. */ 18860#include <assert.h> 18861/* Override any gcc2 internal prototype to avoid an error. */ 18862/* We use char because int might match the return type of a gcc2 18863 builtin and then its argument prototype would still apply. */ 18864char $ac_func(); 18865 18866int main() { 18867 18868/* The GNU C library defines this for functions which it implements 18869 to always fail with ENOSYS. Some functions are actually named 18870 something starting with __ and the normal name is an alias. */ 18871#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18872choke me 18873#else 18874$ac_func(); 18875#endif 18876 18877; return 0; } 18878EOF 18879if { { eval echo configure:18880: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18880 rm -rf conftest* 18881 eval "ac_cv_func_$ac_func=yes" 18882else 18883 echo "configure: failed program was:" >&5 18884 cat conftest.$ac_ext >&5 18885 rm -rf conftest* 18886 eval "ac_cv_func_$ac_func=no" 18887fi 18888rm -f conftest* 18889fi 18890 18891if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18892 echo "$ac_t""yes" 1>&6 18893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18894 cat >> confdefs.h <<EOF 18895#define $ac_tr_func 1 18896EOF 18897 18898else 18899 echo "$ac_t""no" 1>&6 18900fi 18901done 18902 18903for ac_func in chflags fchflags fflagstostr strtofflags 18904do 18905echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18906echo "configure:18907: checking for $ac_func" >&5 18907if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18908 echo $ac_n "(cached) $ac_c" 1>&6 18909else 18910 cat > conftest.$ac_ext <<EOF 18911#line 18912 "configure" 18912#include "confdefs.h" 18913/* System header to define __stub macros and hopefully few prototypes, 18914 which can conflict with char $ac_func(); below. */ 18915#include <assert.h> 18916/* Override any gcc2 internal prototype to avoid an error. */ 18917/* We use char because int might match the return type of a gcc2 18918 builtin and then its argument prototype would still apply. */ 18919char $ac_func(); 18920 18921int main() { 18922 18923/* The GNU C library defines this for functions which it implements 18924 to always fail with ENOSYS. Some functions are actually named 18925 something starting with __ and the normal name is an alias. */ 18926#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18927choke me 18928#else 18929$ac_func(); 18930#endif 18931 18932; return 0; } 18933EOF 18934if { { eval echo configure:18935: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18935 rm -rf conftest* 18936 eval "ac_cv_func_$ac_func=yes" 18937else 18938 echo "configure: failed program was:" >&5 18939 cat conftest.$ac_ext >&5 18940 rm -rf conftest* 18941 eval "ac_cv_func_$ac_func=no" 18942fi 18943rm -f conftest* 18944fi 18945 18946if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 18947 echo "$ac_t""yes" 1>&6 18948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 18949 cat >> confdefs.h <<EOF 18950#define $ac_tr_func 1 18951EOF 18952 18953else 18954 echo "$ac_t""no" 1>&6 18955fi 18956done 18957 18958for ac_func in fnmatch 18959do 18960echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 18961echo "configure:18962: checking for $ac_func" >&5 18962if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 18963 echo $ac_n "(cached) $ac_c" 1>&6 18964else 18965 cat > conftest.$ac_ext <<EOF 18966#line 18967 "configure" 18967#include "confdefs.h" 18968/* System header to define __stub macros and hopefully few prototypes, 18969 which can conflict with char $ac_func(); below. */ 18970#include <assert.h> 18971/* Override any gcc2 internal prototype to avoid an error. */ 18972/* We use char because int might match the return type of a gcc2 18973 builtin and then its argument prototype would still apply. */ 18974char $ac_func(); 18975 18976int main() { 18977 18978/* The GNU C library defines this for functions which it implements 18979 to always fail with ENOSYS. Some functions are actually named 18980 something starting with __ and the normal name is an alias. */ 18981#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18982choke me 18983#else 18984$ac_func(); 18985#endif 18986 18987; return 0; } 18988EOF 18989if { { eval echo configure:18990: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 18990 rm -rf conftest* 18991 eval "ac_cv_func_$ac_func=yes" 18992else 18993 echo "configure: failed program was:" >&5 18994 cat conftest.$ac_ext >&5 18995 rm -rf conftest* 18996 eval "ac_cv_func_$ac_func=no" 18997fi 18998rm -f conftest* 18999fi 19000 19001if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 19002 echo "$ac_t""yes" 1>&6 19003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19004 cat >> confdefs.h <<EOF 19005#define $ac_tr_func 1 19006EOF 19007 19008else 19009 echo "$ac_t""no" 1>&6 19010fi 19011done 19012 19013for ac_func in truncate ftruncate 19014do 19015echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 19016echo "configure:19017: checking for $ac_func" >&5 19017if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 19018 echo $ac_n "(cached) $ac_c" 1>&6 19019else 19020 cat > conftest.$ac_ext <<EOF 19021#line 19022 "configure" 19022#include "confdefs.h" 19023/* System header to define __stub macros and hopefully few prototypes, 19024 which can conflict with char $ac_func(); below. */ 19025#include <assert.h> 19026/* Override any gcc2 internal prototype to avoid an error. */ 19027/* We use char because int might match the return type of a gcc2 19028 builtin and then its argument prototype would still apply. */ 19029char $ac_func(); 19030 19031int main() { 19032 19033/* The GNU C library defines this for functions which it implements 19034 to always fail with ENOSYS. Some functions are actually named 19035 something starting with __ and the normal name is an alias. */ 19036#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19037choke me 19038#else 19039$ac_func(); 19040#endif 19041 19042; return 0; } 19043EOF 19044if { { eval echo configure:19045: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19045 rm -rf conftest* 19046 eval "ac_cv_func_$ac_func=yes" 19047else 19048 echo "configure: failed program was:" >&5 19049 cat conftest.$ac_ext >&5 19050 rm -rf conftest* 19051 eval "ac_cv_func_$ac_func=no" 19052fi 19053rm -f conftest* 19054fi 19055 19056if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 19057 echo "$ac_t""yes" 1>&6 19058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19059 cat >> confdefs.h <<EOF 19060#define $ac_tr_func 1 19061EOF 19062 19063else 19064 echo "$ac_t""no" 1>&6 19065fi 19066done 19067 19068for ac_func in getppriv setppriv priv_set 19069do 19070echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 19071echo "configure:19072: checking for $ac_func" >&5 19072if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 19073 echo $ac_n "(cached) $ac_c" 1>&6 19074else 19075 cat > conftest.$ac_ext <<EOF 19076#line 19077 "configure" 19077#include "confdefs.h" 19078/* System header to define __stub macros and hopefully few prototypes, 19079 which can conflict with char $ac_func(); below. */ 19080#include <assert.h> 19081/* Override any gcc2 internal prototype to avoid an error. */ 19082/* We use char because int might match the return type of a gcc2 19083 builtin and then its argument prototype would still apply. */ 19084char $ac_func(); 19085 19086int main() { 19087 19088/* The GNU C library defines this for functions which it implements 19089 to always fail with ENOSYS. Some functions are actually named 19090 something starting with __ and the normal name is an alias. */ 19091#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19092choke me 19093#else 19094$ac_func(); 19095#endif 19096 19097; return 0; } 19098EOF 19099if { { eval echo configure:19100: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19100 rm -rf conftest* 19101 eval "ac_cv_func_$ac_func=yes" 19102else 19103 echo "configure: failed program was:" >&5 19104 cat conftest.$ac_ext >&5 19105 rm -rf conftest* 19106 eval "ac_cv_func_$ac_func=no" 19107fi 19108rm -f conftest* 19109fi 19110 19111if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 19112 echo "$ac_t""yes" 1>&6 19113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19114 cat >> confdefs.h <<EOF 19115#define $ac_tr_func 1 19116EOF 19117 19118else 19119 echo "$ac_t""no" 1>&6 19120fi 19121done 19122 19123for ac_func in issetugid 19124do 19125echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 19126echo "configure:19127: checking for $ac_func" >&5 19127if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 19128 echo $ac_n "(cached) $ac_c" 1>&6 19129else 19130 cat > conftest.$ac_ext <<EOF 19131#line 19132 "configure" 19132#include "confdefs.h" 19133/* System header to define __stub macros and hopefully few prototypes, 19134 which can conflict with char $ac_func(); below. */ 19135#include <assert.h> 19136/* Override any gcc2 internal prototype to avoid an error. */ 19137/* We use char because int might match the return type of a gcc2 19138 builtin and then its argument prototype would still apply. */ 19139char $ac_func(); 19140 19141int main() { 19142 19143/* The GNU C library defines this for functions which it implements 19144 to always fail with ENOSYS. Some functions are actually named 19145 something starting with __ and the normal name is an alias. */ 19146#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19147choke me 19148#else 19149$ac_func(); 19150#endif 19151 19152; return 0; } 19153EOF 19154if { { eval echo configure:19155: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19155 rm -rf conftest* 19156 eval "ac_cv_func_$ac_func=yes" 19157else 19158 echo "configure: failed program was:" >&5 19159 cat conftest.$ac_ext >&5 19160 rm -rf conftest* 19161 eval "ac_cv_func_$ac_func=no" 19162fi 19163rm -f conftest* 19164fi 19165 19166if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 19167 echo "$ac_t""yes" 1>&6 19168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19169 cat >> confdefs.h <<EOF 19170#define $ac_tr_func 1 19171EOF 19172 19173else 19174 echo "$ac_t""no" 1>&6 19175fi 19176done 19177 19178for ac_func in getroles privbit_set 19179do 19180echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 19181echo "configure:19182: checking for $ac_func" >&5 19182if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 19183 echo $ac_n "(cached) $ac_c" 1>&6 19184else 19185 cat > conftest.$ac_ext <<EOF 19186#line 19187 "configure" 19187#include "confdefs.h" 19188/* System header to define __stub macros and hopefully few prototypes, 19189 which can conflict with char $ac_func(); below. */ 19190#include <assert.h> 19191/* Override any gcc2 internal prototype to avoid an error. */ 19192/* We use char because int might match the return type of a gcc2 19193 builtin and then its argument prototype would still apply. */ 19194char $ac_func(); 19195 19196int main() { 19197 19198/* The GNU C library defines this for functions which it implements 19199 to always fail with ENOSYS. Some functions are actually named 19200 something starting with __ and the normal name is an alias. */ 19201#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19202choke me 19203#else 19204$ac_func(); 19205#endif 19206 19207; return 0; } 19208EOF 19209if { { eval echo configure:19210: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19210 rm -rf conftest* 19211 eval "ac_cv_func_$ac_func=yes" 19212else 19213 echo "configure: failed program was:" >&5 19214 cat conftest.$ac_ext >&5 19215 rm -rf conftest* 19216 eval "ac_cv_func_$ac_func=no" 19217fi 19218rm -f conftest* 19219fi 19220 19221if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 19222 echo "$ac_t""yes" 1>&6 19223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19224 cat >> confdefs.h <<EOF 19225#define $ac_tr_func 1 19226EOF 19227 19228else 19229 echo "$ac_t""no" 1>&6 19230fi 19231done 19232 19233for ac_func in setlocale localeconv nl_langinfo 19234do 19235echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 19236echo "configure:19237: checking for $ac_func" >&5 19237if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 19238 echo $ac_n "(cached) $ac_c" 1>&6 19239else 19240 cat > conftest.$ac_ext <<EOF 19241#line 19242 "configure" 19242#include "confdefs.h" 19243/* System header to define __stub macros and hopefully few prototypes, 19244 which can conflict with char $ac_func(); below. */ 19245#include <assert.h> 19246/* Override any gcc2 internal prototype to avoid an error. */ 19247/* We use char because int might match the return type of a gcc2 19248 builtin and then its argument prototype would still apply. */ 19249char $ac_func(); 19250 19251int main() { 19252 19253/* The GNU C library defines this for functions which it implements 19254 to always fail with ENOSYS. Some functions are actually named 19255 something starting with __ and the normal name is an alias. */ 19256#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19257choke me 19258#else 19259$ac_func(); 19260#endif 19261 19262; return 0; } 19263EOF 19264if { { eval echo configure:19265: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19265 rm -rf conftest* 19266 eval "ac_cv_func_$ac_func=yes" 19267else 19268 echo "configure: failed program was:" >&5 19269 cat conftest.$ac_ext >&5 19270 rm -rf conftest* 19271 eval "ac_cv_func_$ac_func=no" 19272fi 19273rm -f conftest* 19274fi 19275 19276if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 19277 echo "$ac_t""yes" 1>&6 19278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19279 cat >> confdefs.h <<EOF 19280#define $ac_tr_func 1 19281EOF 19282 19283else 19284 echo "$ac_t""no" 1>&6 19285fi 19286done 19287 19288for ac_func in setbuf setvbuf 19289do 19290echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 19291echo "configure:19292: checking for $ac_func" >&5 19292if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 19293 echo $ac_n "(cached) $ac_c" 1>&6 19294else 19295 cat > conftest.$ac_ext <<EOF 19296#line 19297 "configure" 19297#include "confdefs.h" 19298/* System header to define __stub macros and hopefully few prototypes, 19299 which can conflict with char $ac_func(); below. */ 19300#include <assert.h> 19301/* Override any gcc2 internal prototype to avoid an error. */ 19302/* We use char because int might match the return type of a gcc2 19303 builtin and then its argument prototype would still apply. */ 19304char $ac_func(); 19305 19306int main() { 19307 19308/* The GNU C library defines this for functions which it implements 19309 to always fail with ENOSYS. Some functions are actually named 19310 something starting with __ and the normal name is an alias. */ 19311#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19312choke me 19313#else 19314$ac_func(); 19315#endif 19316 19317; return 0; } 19318EOF 19319if { { eval echo configure:19320: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19320 rm -rf conftest* 19321 eval "ac_cv_func_$ac_func=yes" 19322else 19323 echo "configure: failed program was:" >&5 19324 cat conftest.$ac_ext >&5 19325 rm -rf conftest* 19326 eval "ac_cv_func_$ac_func=no" 19327fi 19328rm -f conftest* 19329fi 19330 19331if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 19332 echo "$ac_t""yes" 1>&6 19333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19334 cat >> confdefs.h <<EOF 19335#define $ac_tr_func 1 19336EOF 19337 19338else 19339 echo "$ac_t""no" 1>&6 19340fi 19341done 19342 19343for ac_func in clone_area create_area delete_area 19344do 19345echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 19346echo "configure:19347: checking for $ac_func" >&5 19347if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 19348 echo $ac_n "(cached) $ac_c" 1>&6 19349else 19350 cat > conftest.$ac_ext <<EOF 19351#line 19352 "configure" 19352#include "confdefs.h" 19353/* System header to define __stub macros and hopefully few prototypes, 19354 which can conflict with char $ac_func(); below. */ 19355#include <assert.h> 19356/* Override any gcc2 internal prototype to avoid an error. */ 19357/* We use char because int might match the return type of a gcc2 19358 builtin and then its argument prototype would still apply. */ 19359char $ac_func(); 19360 19361int main() { 19362 19363/* The GNU C library defines this for functions which it implements 19364 to always fail with ENOSYS. Some functions are actually named 19365 something starting with __ and the normal name is an alias. */ 19366#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19367choke me 19368#else 19369$ac_func(); 19370#endif 19371 19372; return 0; } 19373EOF 19374if { { eval echo configure:19375: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19375 rm -rf conftest* 19376 eval "ac_cv_func_$ac_func=yes" 19377else 19378 echo "configure: failed program was:" >&5 19379 cat conftest.$ac_ext >&5 19380 rm -rf conftest* 19381 eval "ac_cv_func_$ac_func=no" 19382fi 19383rm -f conftest* 19384fi 19385 19386if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 19387 echo "$ac_t""yes" 1>&6 19388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19389 cat >> confdefs.h <<EOF 19390#define $ac_tr_func 1 19391EOF 19392 19393else 19394 echo "$ac_t""no" 1>&6 19395fi 19396done 19397 19398 19399echo Checking for POSIX violations by the POSIX.1-2008 standard: 19400for ac_func in fexecl fexecle fexecv fexecve 19401do 19402echo $ac_n "checking for raw availability of $ac_func""... $ac_c" 1>&6 19403echo "configure:19404: checking for raw availability of $ac_func" >&5 19404if eval "test \"`echo '$''{'ac_cv_rfunc_$ac_func'+set}'`\" = set"; then 19405 echo $ac_n "(cached) $ac_c" 1>&6 19406else 19407 cat > conftest.$ac_ext <<EOF 19408#line 19409 "configure" 19409#include "confdefs.h" 19410/* Override any gcc2 internal prototype to avoid an error. */ 19411/* We use char because int might match the return type of a gcc2 19412 builtin and then its argument prototype would still apply. */ 19413char $ac_func(); 19414 19415int main() { 19416 19417$ac_func(); 19418 19419; return 0; } 19420EOF 19421if { { eval echo configure:19422: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19422 rm -rf conftest* 19423 eval "ac_cv_rfunc_$ac_func=yes" 19424else 19425 echo "configure: failed program was:" >&5 19426 cat conftest.$ac_ext >&5 19427 rm -rf conftest* 19428 eval "ac_cv_rfunc_$ac_func=no" 19429fi 19430rm -f conftest* 19431fi 19432 19433if eval "test \"`echo '$ac_cv_rfunc_'$ac_func`\" = yes"; then 19434 echo "$ac_t""yes" 1>&6 19435 ac_tr_func=HAVE_RAW_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19436 cat >> confdefs.h <<EOF 19437#define $ac_tr_func 1 19438EOF 19439 19440else 19441 echo "$ac_t""no" 1>&6 19442fi 19443done 19444 19445for ac_func in fspawnv fspawnl fspawnv_nowait 19446do 19447echo $ac_n "checking for raw availability of $ac_func""... $ac_c" 1>&6 19448echo "configure:19449: checking for raw availability of $ac_func" >&5 19449if eval "test \"`echo '$''{'ac_cv_rfunc_$ac_func'+set}'`\" = set"; then 19450 echo $ac_n "(cached) $ac_c" 1>&6 19451else 19452 cat > conftest.$ac_ext <<EOF 19453#line 19454 "configure" 19454#include "confdefs.h" 19455/* Override any gcc2 internal prototype to avoid an error. */ 19456/* We use char because int might match the return type of a gcc2 19457 builtin and then its argument prototype would still apply. */ 19458char $ac_func(); 19459 19460int main() { 19461 19462$ac_func(); 19463 19464; return 0; } 19465EOF 19466if { { eval echo configure:19467: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19467 rm -rf conftest* 19468 eval "ac_cv_rfunc_$ac_func=yes" 19469else 19470 echo "configure: failed program was:" >&5 19471 cat conftest.$ac_ext >&5 19472 rm -rf conftest* 19473 eval "ac_cv_rfunc_$ac_func=no" 19474fi 19475rm -f conftest* 19476fi 19477 19478if eval "test \"`echo '$ac_cv_rfunc_'$ac_func`\" = yes"; then 19479 echo "$ac_t""yes" 1>&6 19480 ac_tr_func=HAVE_RAW_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19481 cat >> confdefs.h <<EOF 19482#define $ac_tr_func 1 19483EOF 19484 19485else 19486 echo "$ac_t""no" 1>&6 19487fi 19488done 19489 19490 19491for ac_func in getline fgetline 19492do 19493echo $ac_n "checking for raw availability of $ac_func""... $ac_c" 1>&6 19494echo "configure:19495: checking for raw availability of $ac_func" >&5 19495if eval "test \"`echo '$''{'ac_cv_rfunc_$ac_func'+set}'`\" = set"; then 19496 echo $ac_n "(cached) $ac_c" 1>&6 19497else 19498 cat > conftest.$ac_ext <<EOF 19499#line 19500 "configure" 19500#include "confdefs.h" 19501/* Override any gcc2 internal prototype to avoid an error. */ 19502/* We use char because int might match the return type of a gcc2 19503 builtin and then its argument prototype would still apply. */ 19504char $ac_func(); 19505 19506int main() { 19507 19508$ac_func(); 19509 19510; return 0; } 19511EOF 19512if { { eval echo configure:19513: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19513 rm -rf conftest* 19514 eval "ac_cv_rfunc_$ac_func=yes" 19515else 19516 echo "configure: failed program was:" >&5 19517 cat conftest.$ac_ext >&5 19518 rm -rf conftest* 19519 eval "ac_cv_rfunc_$ac_func=no" 19520fi 19521rm -f conftest* 19522fi 19523 19524if eval "test \"`echo '$ac_cv_rfunc_'$ac_func`\" = yes"; then 19525 echo "$ac_t""yes" 1>&6 19526 ac_tr_func=HAVE_RAW_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 19527 cat >> confdefs.h <<EOF 19528#define $ac_tr_func 1 19529EOF 19530 19531else 19532 echo "$ac_t""no" 1>&6 19533fi 19534done 19535 19536echo End of tests for POSIX violations by the POSIX.1-2008 standard. 19537 19538echo $ac_n "checking if dirfd is defined or function""... $ac_c" 1>&6 19539echo "configure:19540: checking if dirfd is defined or function" >&5 19540if eval "test \"`echo '$''{'ac_cv_have_dirfd'+set}'`\" = set"; then 19541 echo $ac_n "(cached) $ac_c" 1>&6 19542else 19543 cat > conftest.$ac_ext <<EOF 19544#line 19545 "configure" 19545#include "confdefs.h" 19546#include <dirent.h> 19547int main() { 19548 19549#ifndef dirfd 19550 char *p = (char *) dirfd; 19551 return (p != (char *)0 && *p != 0); 19552#endif 19553; return 0; } 19554EOF 19555if { { eval echo configure:19556: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19556 rm -rf conftest* 19557 eval ac_cv_have_dirfd=yes 19558else 19559 echo "configure: failed program was:" >&5 19560 cat conftest.$ac_ext >&5 19561 rm -rf conftest* 19562 eval ac_cv_have_dirfd=no 19563fi 19564rm -f conftest* 19565fi 19566 19567if eval "test \"`echo '$ac_cv_have_'dirfd`\" = yes"; then 19568 echo "$ac_t""yes" 1>&6 19569else 19570 echo "$ac_t""no" 1>&6 19571fi 19572 ac_tr_dfunc=HAVE_`echo dirfd | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19573if eval "test \"`echo '$ac_cv_have_'dirfd`\" = yes"; then 19574 cat >> confdefs.h <<EOF 19575#define $ac_tr_dfunc 1 19576EOF 19577 19578fi 19579 19580 19581echo $ac_n "checking if iswprint is defined or function""... $ac_c" 1>&6 19582echo "configure:19583: checking if iswprint is defined or function" >&5 19583if eval "test \"`echo '$''{'ac_cv_have_iswprint'+set}'`\" = set"; then 19584 echo $ac_n "(cached) $ac_c" 1>&6 19585else 19586 cat > conftest.$ac_ext <<EOF 19587#line 19588 "configure" 19588#include "confdefs.h" 19589 19590#ifdef HAVE_WCHAR_H 19591#include <wchar.h> 19592#endif 19593#ifdef HAVE_WCTYPE_H 19594#include <wctype.h> 19595#endif 19596 19597int main() { 19598 19599#ifndef iswprint 19600 char *p = (char *) iswprint; 19601 return (p != (char *)0 && *p != 0); 19602#endif 19603; return 0; } 19604EOF 19605if { { eval echo configure:19606: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19606 rm -rf conftest* 19607 eval ac_cv_have_iswprint=yes 19608else 19609 echo "configure: failed program was:" >&5 19610 cat conftest.$ac_ext >&5 19611 rm -rf conftest* 19612 eval ac_cv_have_iswprint=no 19613fi 19614rm -f conftest* 19615fi 19616 19617if eval "test \"`echo '$ac_cv_have_'iswprint`\" = yes"; then 19618 echo "$ac_t""yes" 1>&6 19619else 19620 echo "$ac_t""no" 1>&6 19621fi 19622 ac_tr_dfunc=HAVE_`echo iswprint | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19623if eval "test \"`echo '$ac_cv_have_'iswprint`\" = yes"; then 19624 cat >> confdefs.h <<EOF 19625#define $ac_tr_dfunc 1 19626EOF 19627 19628fi 19629 19630 19631echo $ac_n "checking if iswblank is defined or function""... $ac_c" 1>&6 19632echo "configure:19633: checking if iswblank is defined or function" >&5 19633if eval "test \"`echo '$''{'ac_cv_have_iswblank'+set}'`\" = set"; then 19634 echo $ac_n "(cached) $ac_c" 1>&6 19635else 19636 cat > conftest.$ac_ext <<EOF 19637#line 19638 "configure" 19638#include "confdefs.h" 19639 19640#ifdef HAVE_WCHAR_H 19641#include <wchar.h> 19642#endif 19643#ifdef HAVE_WCTYPE_H 19644#include <wctype.h> 19645#endif 19646 19647int main() { 19648 19649#ifndef iswblank 19650 char *p = (char *) iswblank; 19651 return (p != (char *)0 && *p != 0); 19652#endif 19653; return 0; } 19654EOF 19655if { { eval echo configure:19656: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19656 rm -rf conftest* 19657 eval ac_cv_have_iswblank=yes 19658else 19659 echo "configure: failed program was:" >&5 19660 cat conftest.$ac_ext >&5 19661 rm -rf conftest* 19662 eval ac_cv_have_iswblank=no 19663fi 19664rm -f conftest* 19665fi 19666 19667if eval "test \"`echo '$ac_cv_have_'iswblank`\" = yes"; then 19668 echo "$ac_t""yes" 1>&6 19669else 19670 echo "$ac_t""no" 1>&6 19671fi 19672 ac_tr_dfunc=HAVE_`echo iswblank | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19673if eval "test \"`echo '$ac_cv_have_'iswblank`\" = yes"; then 19674 cat >> confdefs.h <<EOF 19675#define $ac_tr_dfunc 1 19676EOF 19677 19678fi 19679 19680 19681echo $ac_n "checking if isblank is defined or function""... $ac_c" 1>&6 19682echo "configure:19683: checking if isblank is defined or function" >&5 19683if eval "test \"`echo '$''{'ac_cv_have_isblank'+set}'`\" = set"; then 19684 echo $ac_n "(cached) $ac_c" 1>&6 19685else 19686 cat > conftest.$ac_ext <<EOF 19687#line 19688 "configure" 19688#include "confdefs.h" 19689 19690#ifdef HAVE_CTYPE_H 19691#include <ctype.h> 19692#endif 19693 19694int main() { 19695 19696#ifndef isblank 19697 char *p = (char *) isblank; 19698 return (p != (char *)0 && *p != 0); 19699#endif 19700; return 0; } 19701EOF 19702if { { eval echo configure:19703: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19703 rm -rf conftest* 19704 eval ac_cv_have_isblank=yes 19705else 19706 echo "configure: failed program was:" >&5 19707 cat conftest.$ac_ext >&5 19708 rm -rf conftest* 19709 eval ac_cv_have_isblank=no 19710fi 19711rm -f conftest* 19712fi 19713 19714if eval "test \"`echo '$ac_cv_have_'isblank`\" = yes"; then 19715 echo "$ac_t""yes" 1>&6 19716else 19717 echo "$ac_t""no" 1>&6 19718fi 19719 ac_tr_dfunc=HAVE_`echo isblank | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19720if eval "test \"`echo '$ac_cv_have_'isblank`\" = yes"; then 19721 cat >> confdefs.h <<EOF 19722#define $ac_tr_dfunc 1 19723EOF 19724 19725fi 19726 19727 19728echo $ac_n "checking if mbsinit is defined or function""... $ac_c" 1>&6 19729echo "configure:19730: checking if mbsinit is defined or function" >&5 19730if eval "test \"`echo '$''{'ac_cv_have_mbsinit'+set}'`\" = set"; then 19731 echo $ac_n "(cached) $ac_c" 1>&6 19732else 19733 cat > conftest.$ac_ext <<EOF 19734#line 19735 "configure" 19735#include "confdefs.h" 19736 19737#ifdef HAVE_WCHAR_H 19738#include <wchar.h> 19739#endif 19740#ifdef HAVE_WCTYPE_H 19741#include <wctype.h> 19742#endif 19743 19744int main() { 19745 19746#ifndef mbsinit 19747 char *p = (char *) mbsinit; 19748 return (p != (char *)0 && *p != 0); 19749#endif 19750; return 0; } 19751EOF 19752if { { eval echo configure:19753: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19753 rm -rf conftest* 19754 eval ac_cv_have_mbsinit=yes 19755else 19756 echo "configure: failed program was:" >&5 19757 cat conftest.$ac_ext >&5 19758 rm -rf conftest* 19759 eval ac_cv_have_mbsinit=no 19760fi 19761rm -f conftest* 19762fi 19763 19764if eval "test \"`echo '$ac_cv_have_'mbsinit`\" = yes"; then 19765 echo "$ac_t""yes" 1>&6 19766else 19767 echo "$ac_t""no" 1>&6 19768fi 19769 ac_tr_dfunc=HAVE_`echo mbsinit | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19770if eval "test \"`echo '$ac_cv_have_'mbsinit`\" = yes"; then 19771 cat >> confdefs.h <<EOF 19772#define $ac_tr_dfunc 1 19773EOF 19774 19775fi 19776 19777 19778echo $ac_n "checking if mbtowc is defined or function""... $ac_c" 1>&6 19779echo "configure:19780: checking if mbtowc is defined or function" >&5 19780if eval "test \"`echo '$''{'ac_cv_have_mbtowc'+set}'`\" = set"; then 19781 echo $ac_n "(cached) $ac_c" 1>&6 19782else 19783 cat > conftest.$ac_ext <<EOF 19784#line 19785 "configure" 19785#include "confdefs.h" 19786 19787#ifdef HAVE_STDLIB_H 19788#include <stdlib.h> 19789#endif 19790 19791int main() { 19792 19793#ifndef mbtowc 19794 char *p = (char *) mbtowc; 19795 return (p != (char *)0 && *p != 0); 19796#endif 19797; return 0; } 19798EOF 19799if { { eval echo configure:19800: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19800 rm -rf conftest* 19801 eval ac_cv_have_mbtowc=yes 19802else 19803 echo "configure: failed program was:" >&5 19804 cat conftest.$ac_ext >&5 19805 rm -rf conftest* 19806 eval ac_cv_have_mbtowc=no 19807fi 19808rm -f conftest* 19809fi 19810 19811if eval "test \"`echo '$ac_cv_have_'mbtowc`\" = yes"; then 19812 echo "$ac_t""yes" 1>&6 19813else 19814 echo "$ac_t""no" 1>&6 19815fi 19816 ac_tr_dfunc=HAVE_`echo mbtowc | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19817if eval "test \"`echo '$ac_cv_have_'mbtowc`\" = yes"; then 19818 cat >> confdefs.h <<EOF 19819#define $ac_tr_dfunc 1 19820EOF 19821 19822fi 19823 19824 19825echo $ac_n "checking if wctomb is defined or function""... $ac_c" 1>&6 19826echo "configure:19827: checking if wctomb is defined or function" >&5 19827if eval "test \"`echo '$''{'ac_cv_have_wctomb'+set}'`\" = set"; then 19828 echo $ac_n "(cached) $ac_c" 1>&6 19829else 19830 cat > conftest.$ac_ext <<EOF 19831#line 19832 "configure" 19832#include "confdefs.h" 19833 19834#ifdef HAVE_STDLIB_H 19835#include <stdlib.h> 19836#endif 19837 19838int main() { 19839 19840#ifndef wctomb 19841 char *p = (char *) wctomb; 19842 return (p != (char *)0 && *p != 0); 19843#endif 19844; return 0; } 19845EOF 19846if { { eval echo configure:19847: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19847 rm -rf conftest* 19848 eval ac_cv_have_wctomb=yes 19849else 19850 echo "configure: failed program was:" >&5 19851 cat conftest.$ac_ext >&5 19852 rm -rf conftest* 19853 eval ac_cv_have_wctomb=no 19854fi 19855rm -f conftest* 19856fi 19857 19858if eval "test \"`echo '$ac_cv_have_'wctomb`\" = yes"; then 19859 echo "$ac_t""yes" 1>&6 19860else 19861 echo "$ac_t""no" 1>&6 19862fi 19863 ac_tr_dfunc=HAVE_`echo wctomb | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19864if eval "test \"`echo '$ac_cv_have_'wctomb`\" = yes"; then 19865 cat >> confdefs.h <<EOF 19866#define $ac_tr_dfunc 1 19867EOF 19868 19869fi 19870 19871 19872echo $ac_n "checking if mbrtowc is defined or function""... $ac_c" 1>&6 19873echo "configure:19874: checking if mbrtowc is defined or function" >&5 19874if eval "test \"`echo '$''{'ac_cv_have_mbrtowc'+set}'`\" = set"; then 19875 echo $ac_n "(cached) $ac_c" 1>&6 19876else 19877 cat > conftest.$ac_ext <<EOF 19878#line 19879 "configure" 19879#include "confdefs.h" 19880 19881#ifdef HAVE_WCHAR_H 19882#include <wchar.h> 19883#endif 19884#ifdef HAVE_WCTYPE_H 19885#include <wctype.h> 19886#endif 19887 19888int main() { 19889 19890#ifndef mbrtowc 19891 char *p = (char *) mbrtowc; 19892 return (p != (char *)0 && *p != 0); 19893#endif 19894; return 0; } 19895EOF 19896if { { eval echo configure:19897: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19897 rm -rf conftest* 19898 eval ac_cv_have_mbrtowc=yes 19899else 19900 echo "configure: failed program was:" >&5 19901 cat conftest.$ac_ext >&5 19902 rm -rf conftest* 19903 eval ac_cv_have_mbrtowc=no 19904fi 19905rm -f conftest* 19906fi 19907 19908if eval "test \"`echo '$ac_cv_have_'mbrtowc`\" = yes"; then 19909 echo "$ac_t""yes" 1>&6 19910else 19911 echo "$ac_t""no" 1>&6 19912fi 19913 ac_tr_dfunc=HAVE_`echo mbrtowc | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19914if eval "test \"`echo '$ac_cv_have_'mbrtowc`\" = yes"; then 19915 cat >> confdefs.h <<EOF 19916#define $ac_tr_dfunc 1 19917EOF 19918 19919fi 19920 19921 19922echo $ac_n "checking if wcrtomb is defined or function""... $ac_c" 1>&6 19923echo "configure:19924: checking if wcrtomb is defined or function" >&5 19924if eval "test \"`echo '$''{'ac_cv_have_wcrtomb'+set}'`\" = set"; then 19925 echo $ac_n "(cached) $ac_c" 1>&6 19926else 19927 cat > conftest.$ac_ext <<EOF 19928#line 19929 "configure" 19929#include "confdefs.h" 19930 19931#ifdef HAVE_WCHAR_H 19932#include <wchar.h> 19933#endif 19934#ifdef HAVE_WCTYPE_H 19935#include <wctype.h> 19936#endif 19937 19938int main() { 19939 19940#ifndef wcrtomb 19941 char *p = (char *) wcrtomb; 19942 return (p != (char *)0 && *p != 0); 19943#endif 19944; return 0; } 19945EOF 19946if { { eval echo configure:19947: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19947 rm -rf conftest* 19948 eval ac_cv_have_wcrtomb=yes 19949else 19950 echo "configure: failed program was:" >&5 19951 cat conftest.$ac_ext >&5 19952 rm -rf conftest* 19953 eval ac_cv_have_wcrtomb=no 19954fi 19955rm -f conftest* 19956fi 19957 19958if eval "test \"`echo '$ac_cv_have_'wcrtomb`\" = yes"; then 19959 echo "$ac_t""yes" 1>&6 19960else 19961 echo "$ac_t""no" 1>&6 19962fi 19963 ac_tr_dfunc=HAVE_`echo wcrtomb | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 19964if eval "test \"`echo '$ac_cv_have_'wcrtomb`\" = yes"; then 19965 cat >> confdefs.h <<EOF 19966#define $ac_tr_dfunc 1 19967EOF 19968 19969fi 19970 19971 19972echo $ac_n "checking if finite is defined or function""... $ac_c" 1>&6 19973echo "configure:19974: checking if finite is defined or function" >&5 19974if eval "test \"`echo '$''{'ac_cv_have_finite'+set}'`\" = set"; then 19975 echo $ac_n "(cached) $ac_c" 1>&6 19976else 19977 cat > conftest.$ac_ext <<EOF 19978#line 19979 "configure" 19979#include "confdefs.h" 19980#include <ieeefp.h> 19981int main() { 19982 19983#ifndef finite 19984 char *p = (char *) finite; 19985 return (p != (char *)0 && *p != 0); 19986#endif 19987; return 0; } 19988EOF 19989if { { eval echo configure:19990: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 19990 rm -rf conftest* 19991 eval ac_cv_have_finite=yes 19992else 19993 echo "configure: failed program was:" >&5 19994 cat conftest.$ac_ext >&5 19995 rm -rf conftest* 19996 eval ac_cv_have_finite=no 19997fi 19998rm -f conftest* 19999fi 20000 20001if eval "test \"`echo '$ac_cv_have_'finite`\" = yes"; then 20002 echo "$ac_t""yes" 1>&6 20003else 20004 echo "$ac_t""no" 1>&6 20005fi 20006 ac_tr_dfunc=HAVE_`echo finite | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 20007if eval "test \"`echo '$ac_cv_have_'finite`\" = yes"; then 20008 cat >> confdefs.h <<EOF 20009#define $ac_tr_dfunc 1 20010EOF 20011 20012fi 20013 20014echo $ac_n "checking if isnand is defined or function""... $ac_c" 1>&6 20015echo "configure:20016: checking if isnand is defined or function" >&5 20016if eval "test \"`echo '$''{'ac_cv_have_isnand'+set}'`\" = set"; then 20017 echo $ac_n "(cached) $ac_c" 1>&6 20018else 20019 cat > conftest.$ac_ext <<EOF 20020#line 20021 "configure" 20021#include "confdefs.h" 20022#include <ieeefp.h> 20023int main() { 20024 20025#ifndef isnand 20026 char *p = (char *) isnand; 20027 return (p != (char *)0 && *p != 0); 20028#endif 20029; return 0; } 20030EOF 20031if { { eval echo configure:20032: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20032 rm -rf conftest* 20033 eval ac_cv_have_isnand=yes 20034else 20035 echo "configure: failed program was:" >&5 20036 cat conftest.$ac_ext >&5 20037 rm -rf conftest* 20038 eval ac_cv_have_isnand=no 20039fi 20040rm -f conftest* 20041fi 20042 20043if eval "test \"`echo '$ac_cv_have_'isnand`\" = yes"; then 20044 echo "$ac_t""yes" 1>&6 20045else 20046 echo "$ac_t""no" 1>&6 20047fi 20048 ac_tr_dfunc=HAVE_`echo isnand | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 20049if eval "test \"`echo '$ac_cv_have_'isnand`\" = yes"; then 20050 cat >> confdefs.h <<EOF 20051#define $ac_tr_dfunc 1 20052EOF 20053 20054fi 20055 20056 20057echo $ac_n "checking if we may not define our own malloc()""... $ac_c" 1>&6 20058echo "configure:20059: checking if we may not define our own malloc()" >&5 20059if eval "test \"`echo '$''{'ac_cv_no_user_malloc'+set}'`\" = set"; then 20060 echo $ac_n "(cached) $ac_c" 1>&6 20061else 20062 if test "$cross_compiling" = yes; then 20063 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 20064else 20065 cat > conftest.$ac_ext <<EOF 20066#line 20067 "configure" 20067#include "confdefs.h" 20068 20069#if HAVE_STDLIB_H || STDC_HEADERS 20070#define malloc __xxx1__ 20071#define free __xxx2__ 20072#include <stdlib.h> 20073#undef malloc 20074#undef free 20075#endif 20076#if !defined(__CYGWIN32__) && !defined(__CYGWIN__) 20077static int mcalled; 20078char * 20079malloc(s) 20080 int s; 20081{ 20082 extern char *sbrk(); 20083 20084 /* 20085 * Don't ask me why, but with Cygwin on 64 Bit Vista this hangs 20086 * infinitely and is undebuggable unless we call write() here... 20087 */ 20088 write(2, "", 0); 20089 mcalled++; 20090 _exit(0); 20091 return (sbrk(s)); 20092} 20093 20094int free(p) char *p;{ return (0); } 20095#endif /* !defined(__CYGWIN32__) && !defined(__CYGWIN__) */ 20096 20097int 20098main() 20099{ 20100#if !defined(__CYGWIN32__) && !defined(__CYGWIN__) 20101#ifdef HAVE_STRDUP 20102 strdup("aaa"); 20103#else 20104 exit(0); 20105#endif 20106#endif /* !defined(__CYGWIN32__) && !defined(__CYGWIN__) */ 20107 exit(1);} 20108EOF 20109if { { eval echo configure:20110: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 20110then 20111 ac_cv_no_user_malloc=no 20112else 20113 echo "configure: failed program was:" >&5 20114 cat conftest.$ac_ext >&5 20115 rm -fr conftest* 20116 ac_cv_no_user_malloc=yes 20117fi 20118rm -fr conftest* 20119fi 20120 20121fi 20122 20123echo "$ac_t""$ac_cv_no_user_malloc" 1>&6 20124if test $ac_cv_no_user_malloc = yes; then 20125 cat >> confdefs.h <<\EOF 20126#define NO_USER_MALLOC 1 20127EOF 20128 20129fi 20130echo $ac_n "checking for working extern long timezone ""... $ac_c" 1>&6 20131echo "configure:20132: checking for working extern long timezone " >&5 20132if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then 20133 echo $ac_n "(cached) $ac_c" 1>&6 20134else 20135 if test "$cross_compiling" = yes; then 20136 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 20137else 20138 cat > conftest.$ac_ext <<EOF 20139#line 20140 "configure" 20140#include "confdefs.h" 20141 20142extern long timezone; 20143 20144int 20145main() 20146{ 20147 return(timezone != 0); 20148} 20149EOF 20150if { { eval echo configure:20151: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 20151then 20152 ac_cv_var_timezone=yes 20153else 20154 echo "configure: failed program was:" >&5 20155 cat conftest.$ac_ext >&5 20156 rm -fr conftest* 20157 ac_cv_var_timezone=no 20158fi 20159rm -fr conftest* 20160fi 20161 20162fi 20163 20164echo "$ac_t""$ac_cv_var_timezone" 1>&6 20165if test $ac_cv_var_timezone = yes; then 20166 cat >> confdefs.h <<\EOF 20167#define HAVE_VAR_TIMEZONE 1 20168EOF 20169 20170fi 20171echo $ac_n "checking for extern timezone in time.h or sys/time.h""... $ac_c" 1>&6 20172echo "configure:20173: checking for extern timezone in time.h or sys/time.h" >&5 20173if eval "test \"`echo '$''{'ac_cv_var_timezone_def'+set}'`\" = set"; then 20174 echo $ac_n "(cached) $ac_c" 1>&6 20175else 20176 cat > conftest.$ac_ext <<EOF 20177#line 20178 "configure" 20178#include "confdefs.h" 20179 20180#include <sys/types.h> 20181#ifdef TIME_WITH_SYS_TIME 20182# include <sys/time.h> 20183# include <time.h> 20184#else 20185#ifdef HAVE_SYS_TIME_H 20186# include <sys/time.h> 20187#else 20188# include <time.h> 20189#endif 20190#endif 20191int main() { 20192timezone = 1; 20193; return 0; } 20194EOF 20195if { { eval echo configure:20196: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 20196 rm -rf conftest* 20197 ac_cv_var_timezone_def=yes 20198else 20199 echo "configure: failed program was:" >&5 20200 cat conftest.$ac_ext >&5 20201 rm -rf conftest* 20202 ac_cv_var_timezone_def=no 20203fi 20204rm -f conftest* 20205fi 20206 20207echo "$ac_t""$ac_cv_var_timezone_def" 1>&6 20208if test $ac_cv_var_timezone_def = yes; then 20209 cat >> confdefs.h <<\EOF 20210#define HAVE_VAR_TIMEZONE_DEF 1 20211EOF 20212 20213fi 20214echo $ac_n "checking for working extern char *__progname ""... $ac_c" 1>&6 20215echo "configure:20216: checking for working extern char *__progname " >&5 20216if eval "test \"`echo '$''{'ac_cv_var___progname'+set}'`\" = set"; then 20217 echo $ac_n "(cached) $ac_c" 1>&6 20218else 20219 if test "$cross_compiling" = yes; then 20220 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 20221else 20222 cat > conftest.$ac_ext <<EOF 20223#line 20224 "configure" 20224#include "confdefs.h" 20225 20226extern char *__progname; 20227 20228int 20229main() 20230{ 20231 return (!(__progname != 0 && *__progname != '\0')); 20232} 20233EOF 20234if { { eval echo configure:20235: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 20235then 20236 ac_cv_var___progname=yes 20237else 20238 echo "configure: failed program was:" >&5 20239 cat conftest.$ac_ext >&5 20240 rm -fr conftest* 20241 ac_cv_var___progname=no 20242fi 20243rm -fr conftest* 20244fi 20245 20246fi 20247 20248echo "$ac_t""$ac_cv_var___progname" 1>&6 20249if test $ac_cv_var___progname = yes; then 20250 cat >> confdefs.h <<\EOF 20251#define HAVE_VAR___PROGNAME 1 20252EOF 20253 20254fi 20255echo $ac_n "checking for working extern char *__progname_full ""... $ac_c" 1>&6 20256echo "configure:20257: checking for working extern char *__progname_full " >&5 20257if eval "test \"`echo '$''{'ac_cv_var___progname_full'+set}'`\" = set"; then 20258 echo $ac_n "(cached) $ac_c" 1>&6 20259else 20260 if test "$cross_compiling" = yes; then 20261 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 20262else 20263 cat > conftest.$ac_ext <<EOF 20264#line 20265 "configure" 20265#include "confdefs.h" 20266 20267extern char *__progname_full; 20268 20269int 20270main() 20271{ 20272 return (!(__progname_full != 0 && *__progname_full != '\0')); 20273} 20274EOF 20275if { { eval echo configure:20276: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 20276then 20277 ac_cv_var___progname_full=yes 20278else 20279 echo "configure: failed program was:" >&5 20280 cat conftest.$ac_ext >&5 20281 rm -fr conftest* 20282 ac_cv_var___progname_full=no 20283fi 20284rm -fr conftest* 20285fi 20286 20287fi 20288 20289echo "$ac_t""$ac_cv_var___progname_full" 1>&6 20290if test $ac_cv_var___progname_full = yes; then 20291 cat >> confdefs.h <<\EOF 20292#define HAVE_VAR___PROGNAME_FULL 1 20293EOF 20294 20295fi 20296 20297echo $ac_n "checking if link() allows hard links on symlinks""... $ac_c" 1>&6 20298echo "configure:20299: checking if link() allows hard links on symlinks" >&5 20299if eval "test \"`echo '$''{'ac_cv_hard_symlinks'+set}'`\" = set"; then 20300 echo $ac_n "(cached) $ac_c" 1>&6 20301else 20302 if test "$cross_compiling" = yes; then 20303 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 20304else 20305 cat > conftest.$ac_ext <<EOF 20306#line 20307 "configure" 20307#include "confdefs.h" 20308 20309#ifdef HAVE_UNISTD_H 20310#include <unistd.h> 20311#endif 20312 20313int 20314main() 20315{ 20316 int ret = 0; 20317 20318 unlink("confdefs.f1"); 20319 unlink("confdefs.l1"); 20320 unlink("confdefs.h1"); 20321 20322 if (symlink("confdefs.f1", "confdefs.l1") < 0) 20323 ret = 1; 20324 if (link("confdefs.l1", "confdefs.h1") < 0) 20325 ret = 1; 20326 20327 unlink("confdefs.l1"); 20328 unlink("confdefs.h1"); 20329 20330 return(ret); 20331} 20332EOF 20333if { { eval echo configure:20334: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 20334then 20335 ac_cv_hard_symlinks=yes 20336else 20337 echo "configure: failed program was:" >&5 20338 cat conftest.$ac_ext >&5 20339 rm -fr conftest* 20340 ac_cv_hard_symlinks=no 20341fi 20342rm -fr conftest* 20343fi 20344 20345fi 20346 20347echo "$ac_t""$ac_cv_hard_symlinks" 1>&6 20348if test $ac_cv_hard_symlinks = yes; then 20349 cat >> confdefs.h <<\EOF 20350#define HAVE_HARD_SYMLINKS 1 20351EOF 20352 20353fi 20354echo $ac_n "checking if link() does not folow symlinks""... $ac_c" 1>&6 20355echo "configure:20356: checking if link() does not folow symlinks" >&5 20356if eval "test \"`echo '$''{'ac_cv_link_nofollow'+set}'`\" = set"; then 20357 echo $ac_n "(cached) $ac_c" 1>&6 20358else 20359 if test "$cross_compiling" = yes; then 20360 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 20361else 20362 cat > conftest.$ac_ext <<EOF 20363#line 20364 "configure" 20364#include "confdefs.h" 20365 20366#include <sys/types.h> 20367#include <sys/stat.h> 20368 20369int 20370main() 20371{ 20372 int ret = 0; 20373 int f; 20374 struct stat sb; 20375 20376 unlink("confdefs.f1"); 20377 unlink("confdefs.l1"); 20378 unlink("confdefs.h1"); 20379 20380 f = creat("confdefs.f1", 0666); 20381 close(f); 20382 if (symlink("confdefs.f1", "confdefs.l1") < 0) 20383 ret = 1; 20384 if (link("confdefs.l1", "confdefs.h1") < 0) 20385 ret = 1; 20386 20387 stat("confdefs.f1", &sb); 20388 if (sb.st_nlink == 2) 20389 ret = 1; 20390 20391 unlink("confdefs.f1"); 20392 unlink("confdefs.l1"); 20393 unlink("confdefs.h1"); 20394 20395 return(ret); 20396} 20397EOF 20398if { { eval echo configure:20399: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 20399then 20400 ac_cv_link_nofollow=yes 20401else 20402 echo "configure: failed program was:" >&5 20403 cat conftest.$ac_ext >&5 20404 rm -fr conftest* 20405 ac_cv_link_nofollow=no 20406fi 20407rm -fr conftest* 20408fi 20409 20410fi 20411 20412echo "$ac_t""$ac_cv_link_nofollow" 1>&6 20413if test $ac_cv_link_nofollow = yes; then 20414 cat >> confdefs.h <<\EOF 20415#define HAVE_LINK_NOFOLLOW 1 20416EOF 20417 20418fi 20419for ac_hdr in unistd.h 20420do 20421ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 20422echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 20423echo "configure:20424: checking for $ac_hdr" >&5 20424if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 20425 echo $ac_n "(cached) $ac_c" 1>&6 20426else 20427 cat > conftest.$ac_ext <<EOF 20428#line 20429 "configure" 20429#include "confdefs.h" 20430#include <$ac_hdr> 20431EOF 20432ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 20433{ { eval echo configure:20434: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 20434ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 20435if test -z "$ac_err"; then 20436 rm -rf conftest* 20437 eval "ac_cv_header_$ac_safe=yes" 20438else 20439 echo "$ac_err" >&5 20440 echo "configure: failed program was:" >&5 20441 cat conftest.$ac_ext >&5 20442 rm -rf conftest* 20443 eval "ac_cv_header_$ac_safe=no" 20444fi 20445rm -f conftest* 20446fi 20447if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 20448 echo "$ac_t""yes" 1>&6 20449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 20450 cat >> confdefs.h <<EOF 20451#define $ac_tr_hdr 1 20452EOF 20453 20454else 20455 echo "$ac_t""no" 1>&6 20456fi 20457done 20458 20459echo $ac_n "checking if access() does implement E_OK""... $ac_c" 1>&6 20460echo "configure:20461: checking if access() does implement E_OK" >&5 20461if eval "test \"`echo '$''{'ac_cv_access_e_ok'+set}'`\" = set"; then 20462 echo $ac_n "(cached) $ac_c" 1>&6 20463else 20464 if test "$cross_compiling" = yes; then 20465 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 20466else 20467 cat > conftest.$ac_ext <<EOF 20468#line 20469 "configure" 20469#include "confdefs.h" 20470 20471# ifdef HAVE_UNISTD_H 20472# include <unistd.h> 20473# endif 20474#ifndef R_OK 20475#define R_OK 4 /* Test for Read permission */ 20476#define W_OK 2 /* Test for Write permission */ 20477#define X_OK 1 /* Test for eXecute permission */ 20478#define F_OK 0 /* Test for existence of File */ 20479#endif 20480 20481#ifndef E_OK 20482#ifdef EFF_ONLY_OK 20483#define E_OK EFF_ONLY_OK /* Irix */ 20484#else 20485#ifdef EUID_OK 20486#define E_OK EUID_OK /* UNICOS (0400) */ 20487#else 20488#define E_OK 010 /* Test effective uids */ 20489#endif 20490#endif 20491#endif 20492 20493#include <errno.h> 20494#ifndef HAVE_ERRNO_DEF 20495extern int errno; 20496#endif 20497 20498int 20499main() 20500{ 20501#ifdef _MSC_VER 20502/* 20503 * If we use "cl" to compile and call access(".", E_OK|F_OK), the program will 20504 * cause an exception that results in a popup window. For this reason, the test 20505 * is disabled for "cl", it would not work anyway. 20506 */ 20507 int ret = 1; 20508#else 20509 int ret = 0; 20510 20511 if (access(".", F_OK) != 0) 20512 ret = 1; 20513 else if (access(".", E_OK|F_OK) != 0) 20514 ret = 1; 20515 else if (access(".", (R_OK<<4)|F_OK) == 0) 20516 ret = 1; 20517#endif 20518 20519 return(ret); 20520} 20521EOF 20522if { { eval echo configure:20523: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 20523then 20524 ac_cv_access_e_ok=yes 20525else 20526 echo "configure: failed program was:" >&5 20527 cat conftest.$ac_ext >&5 20528 rm -fr conftest* 20529 ac_cv_access_e_ok=no 20530fi 20531rm -fr conftest* 20532fi 20533 20534fi 20535 20536echo "$ac_t""$ac_cv_access_e_ok" 1>&6 20537if test $ac_cv_access_e_ok = yes; then 20538 cat >> confdefs.h <<\EOF 20539#define HAVE_ACCESS_E_OK 1 20540EOF 20541 20542fi 20543for ac_hdr in fnmatch.h 20544do 20545ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 20546echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 20547echo "configure:20548: checking for $ac_hdr" >&5 20548if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 20549 echo $ac_n "(cached) $ac_c" 1>&6 20550else 20551 cat > conftest.$ac_ext <<EOF 20552#line 20553 "configure" 20553#include "confdefs.h" 20554#include <$ac_hdr> 20555EOF 20556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 20557{ { eval echo configure:20558: \"$ac_try\" ;} 1>&5; { eval $ac_try ;} 2>&5; } 20558ac_err=`tr -d '\015' < conftest.out | grep -v '^ *+' | grep -v "^conftest.${ac_ext}\$"` 20559if test -z "$ac_err"; then 20560 rm -rf conftest* 20561 eval "ac_cv_header_$ac_safe=yes" 20562else 20563 echo "$ac_err" >&5 20564 echo "configure: failed program was:" >&5 20565 cat conftest.$ac_ext >&5 20566 rm -rf conftest* 20567 eval "ac_cv_header_$ac_safe=no" 20568fi 20569rm -f conftest* 20570fi 20571if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 20572 echo "$ac_t""yes" 1>&6 20573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 20574 cat >> confdefs.h <<EOF 20575#define $ac_tr_hdr 1 20576EOF 20577 20578else 20579 echo "$ac_t""no" 1>&6 20580fi 20581done 20582 20583echo $ac_n "checking if fnmatch() does implement FNM_IGNORECASE or FNM_CASEFOLD""... $ac_c" 1>&6 20584echo "configure:20585: checking if fnmatch() does implement FNM_IGNORECASE or FNM_CASEFOLD" >&5 20585if eval "test \"`echo '$''{'ac_cv_fnmatch_igncase'+set}'`\" = set"; then 20586 echo $ac_n "(cached) $ac_c" 1>&6 20587else 20588 if test "$cross_compiling" = yes; then 20589 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 20590else 20591 cat > conftest.$ac_ext <<EOF 20592#line 20593 "configure" 20593#include "confdefs.h" 20594 20595#ifdef HAVE_FNMATCH 20596#include <fnmatch.h> 20597#endif 20598 20599#ifndef FNM_IGNORECASE 20600#ifdef FNM_CASEFOLD 20601#define FNM_IGNORECASE FNM_CASEFOLD 20602#endif 20603#endif 20604 20605int 20606main() 20607{ 20608 int ret; 20609 20610 ret = fnmatch("a", "A", FNM_IGNORECASE); 20611 return(ret); 20612} 20613EOF 20614if { { eval echo configure:20615: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 20615then 20616 ac_cv_fnmatch_igncase=yes 20617else 20618 echo "configure: failed program was:" >&5 20619 cat conftest.$ac_ext >&5 20620 rm -fr conftest* 20621 ac_cv_fnmatch_igncase=no 20622fi 20623rm -fr conftest* 20624fi 20625 20626fi 20627 20628echo "$ac_t""$ac_cv_fnmatch_igncase" 1>&6 20629if test $ac_cv_fnmatch_igncase = yes; then 20630 cat >> confdefs.h <<\EOF 20631#define HAVE_FNMATCH_IGNORECASE 1 20632EOF 20633 20634fi 20635 20636echo $ac_n "checking for fseeko()""... $ac_c" 1>&6 20637echo "configure:20638: checking for fseeko()" >&5 20638if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then 20639 echo $ac_n "(cached) $ac_c" 1>&6 20640else 20641 cat > conftest.$ac_ext <<EOF 20642#line 20643 "configure" 20643#include "confdefs.h" 20644#include <stdio.h> 20645int main() { 20646return !fseeko; 20647; return 0; } 20648EOF 20649if { { eval echo configure:20650: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20650 rm -rf conftest* 20651 ac_cv_func_fseeko=yes 20652else 20653 echo "configure: failed program was:" >&5 20654 cat conftest.$ac_ext >&5 20655 rm -rf conftest* 20656 ac_cv_func_fseeko=no 20657fi 20658rm -f conftest* 20659fi 20660 20661echo "$ac_t""$ac_cv_func_fseeko" 1>&6 20662if test $ac_cv_func_fseeko = yes; then 20663 cat >> confdefs.h <<\EOF 20664#define HAVE_FSEEKO 1 20665EOF 20666 20667fi 20668echo $ac_n "checking for ftello()""... $ac_c" 1>&6 20669echo "configure:20670: checking for ftello()" >&5 20670if eval "test \"`echo '$''{'ac_cv_func_ftello'+set}'`\" = set"; then 20671 echo $ac_n "(cached) $ac_c" 1>&6 20672else 20673 cat > conftest.$ac_ext <<EOF 20674#line 20675 "configure" 20675#include "confdefs.h" 20676#include <stdio.h> 20677int main() { 20678return !ftello; 20679; return 0; } 20680EOF 20681if { { eval echo configure:20682: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20682 rm -rf conftest* 20683 ac_cv_func_ftello=yes 20684else 20685 echo "configure: failed program was:" >&5 20686 cat conftest.$ac_ext >&5 20687 rm -rf conftest* 20688 ac_cv_func_ftello=no 20689fi 20690rm -f conftest* 20691fi 20692 20693echo "$ac_t""$ac_cv_func_ftello" 1>&6 20694if test $ac_cv_func_ftello = yes; then 20695 cat >> confdefs.h <<\EOF 20696#define HAVE_FTELLO 1 20697EOF 20698 20699fi 20700 20701echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 20702echo "configure:20703: checking for dlopen in -lc" >&5 20703ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 20704if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 20705 echo $ac_n "(cached) $ac_c" 1>&6 20706else 20707 ac_save_LIBS="$LIBS" 20708LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 20709cat > conftest.$ac_ext <<EOF 20710#line 20711 "configure" 20711#include "confdefs.h" 20712/* Override any gcc2 internal prototype to avoid an error. */ 20713/* We use char because int might match the return type of a gcc2 20714 builtin and then its argument prototype would still apply. */ 20715char dlopen(); 20716 20717int main() { 20718dlopen() 20719; return 0; } 20720EOF 20721if { { eval echo configure:20722: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20722 rm -rf conftest* 20723 eval "ac_cv_lib_$ac_lib_var=yes" 20724else 20725 echo "configure: failed program was:" >&5 20726 cat conftest.$ac_ext >&5 20727 rm -rf conftest* 20728 eval "ac_cv_lib_$ac_lib_var=no" 20729fi 20730rm -f conftest* 20731LIBS="$ac_save_LIBS" 20732 20733fi 20734if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 20735 echo "$ac_t""yes" 1>&6 20736 lib_dl="" 20737else 20738 echo "$ac_t""no" 1>&6 20739echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 20740echo "configure:20741: checking for dlopen in -ldl" >&5 20741ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 20742if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 20743 echo $ac_n "(cached) $ac_c" 1>&6 20744else 20745 ac_save_LIBS="$LIBS" 20746LIBS=`echo "-ldl $LIBS" | sed -e 's/-lc //'` 20747cat > conftest.$ac_ext <<EOF 20748#line 20749 "configure" 20749#include "confdefs.h" 20750/* Override any gcc2 internal prototype to avoid an error. */ 20751/* We use char because int might match the return type of a gcc2 20752 builtin and then its argument prototype would still apply. */ 20753char dlopen(); 20754 20755int main() { 20756dlopen() 20757; return 0; } 20758EOF 20759if { { eval echo configure:20760: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20760 rm -rf conftest* 20761 eval "ac_cv_lib_$ac_lib_var=yes" 20762else 20763 echo "configure: failed program was:" >&5 20764 cat conftest.$ac_ext >&5 20765 rm -rf conftest* 20766 eval "ac_cv_lib_$ac_lib_var=no" 20767fi 20768rm -f conftest* 20769LIBS="$ac_save_LIBS" 20770 20771fi 20772if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 20773 echo "$ac_t""yes" 1>&6 20774 lib_dl="-ldl" 20775else 20776 echo "$ac_t""no" 1>&6 20777fi 20778 20779fi 20780 20781ac_save_LIBS="$LIBS" 20782LIBS="$LIBS $lib_dl" 20783for ac_func in dlopen dlclose dlsym dlerror dlinfo 20784do 20785echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 20786echo "configure:20787: checking for $ac_func" >&5 20787if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 20788 echo $ac_n "(cached) $ac_c" 1>&6 20789else 20790 cat > conftest.$ac_ext <<EOF 20791#line 20792 "configure" 20792#include "confdefs.h" 20793/* System header to define __stub macros and hopefully few prototypes, 20794 which can conflict with char $ac_func(); below. */ 20795#include <assert.h> 20796/* Override any gcc2 internal prototype to avoid an error. */ 20797/* We use char because int might match the return type of a gcc2 20798 builtin and then its argument prototype would still apply. */ 20799char $ac_func(); 20800 20801int main() { 20802 20803/* The GNU C library defines this for functions which it implements 20804 to always fail with ENOSYS. Some functions are actually named 20805 something starting with __ and the normal name is an alias. */ 20806#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20807choke me 20808#else 20809$ac_func(); 20810#endif 20811 20812; return 0; } 20813EOF 20814if { { eval echo configure:20815: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20815 rm -rf conftest* 20816 eval "ac_cv_func_$ac_func=yes" 20817else 20818 echo "configure: failed program was:" >&5 20819 cat conftest.$ac_ext >&5 20820 rm -rf conftest* 20821 eval "ac_cv_func_$ac_func=no" 20822fi 20823rm -f conftest* 20824fi 20825 20826if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 20827 echo "$ac_t""yes" 1>&6 20828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 20829 cat >> confdefs.h <<EOF 20830#define $ac_tr_func 1 20831EOF 20832 20833else 20834 echo "$ac_t""no" 1>&6 20835fi 20836done 20837 20838for ac_func in shl_load shl_unload shl_gethandle 20839do 20840echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 20841echo "configure:20842: checking for $ac_func" >&5 20842if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 20843 echo $ac_n "(cached) $ac_c" 1>&6 20844else 20845 cat > conftest.$ac_ext <<EOF 20846#line 20847 "configure" 20847#include "confdefs.h" 20848/* System header to define __stub macros and hopefully few prototypes, 20849 which can conflict with char $ac_func(); below. */ 20850#include <assert.h> 20851/* Override any gcc2 internal prototype to avoid an error. */ 20852/* We use char because int might match the return type of a gcc2 20853 builtin and then its argument prototype would still apply. */ 20854char $ac_func(); 20855 20856int main() { 20857 20858/* The GNU C library defines this for functions which it implements 20859 to always fail with ENOSYS. Some functions are actually named 20860 something starting with __ and the normal name is an alias. */ 20861#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20862choke me 20863#else 20864$ac_func(); 20865#endif 20866 20867; return 0; } 20868EOF 20869if { { eval echo configure:20870: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20870 rm -rf conftest* 20871 eval "ac_cv_func_$ac_func=yes" 20872else 20873 echo "configure: failed program was:" >&5 20874 cat conftest.$ac_ext >&5 20875 rm -rf conftest* 20876 eval "ac_cv_func_$ac_func=no" 20877fi 20878rm -f conftest* 20879fi 20880 20881if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 20882 echo "$ac_t""yes" 1>&6 20883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 20884 cat >> confdefs.h <<EOF 20885#define $ac_tr_func 1 20886EOF 20887 20888else 20889 echo "$ac_t""no" 1>&6 20890fi 20891done 20892 20893LIBS="$ac_save_LIBS" 20894if test ."$lib_dl" = .""; then 20895 cat >> confdefs.h <<\EOF 20896#define HAVE_DLOPEN_IN_LIBC 1 20897EOF 20898 20899fi 20900 20901for ac_func in LoadLibrary FreeLibrary GetProcAddress 20902do 20903echo $ac_n "checking if $ac_func is defined or function""... $ac_c" 1>&6 20904echo "configure:20905: checking if $ac_func is defined or function" >&5 20905if eval "test \"`echo '$''{'ac_cv_have_$ac_func'+set}'`\" = set"; then 20906 echo $ac_n "(cached) $ac_c" 1>&6 20907else 20908 cat > conftest.$ac_ext <<EOF 20909#line 20910 "configure" 20910#include "confdefs.h" 20911 20912#ifdef HAVE_WINDOWS_H 20913#undef u_char 20914#undef u_short 20915#undef u_int 20916#undef u_long 20917#include <windows.h> 20918#endif 20919 20920int main() { 20921 20922#ifndef $ac_func 20923 char *p = (char *) $ac_func; 20924 return (p != (char *)0 && *p != 0); 20925#endif 20926; return 0; } 20927EOF 20928if { { eval echo configure:20929: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20929 rm -rf conftest* 20930 eval ac_cv_have_$ac_func=yes 20931else 20932 echo "configure: failed program was:" >&5 20933 cat conftest.$ac_ext >&5 20934 rm -rf conftest* 20935 eval ac_cv_have_$ac_func=no 20936fi 20937rm -f conftest* 20938fi 20939 20940if eval "test \"`echo '$ac_cv_have_'$ac_func`\" = yes"; then 20941 echo "$ac_t""yes" 1>&6 20942else 20943 echo "$ac_t""no" 1>&6 20944fi 20945 ac_tr_dfunc=HAVE_`echo $ac_func | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 20946if eval "test \"`echo '$ac_cv_have_'$ac_func`\" = yes"; then 20947 cat >> confdefs.h <<EOF 20948#define $ac_tr_dfunc 1 20949EOF 20950 20951fi 20952done 20953 20954 20955ac_save_LIBS="$LIBS" 20956echo $ac_n "checking for socket in -lc""... $ac_c" 1>&6 20957echo "configure:20958: checking for socket in -lc" >&5 20958ac_lib_var=`echo c'_'socket | sed 'y%./+-%__p_%'` 20959if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 20960 echo $ac_n "(cached) $ac_c" 1>&6 20961else 20962 ac_save_LIBS="$LIBS" 20963LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 20964cat > conftest.$ac_ext <<EOF 20965#line 20966 "configure" 20966#include "confdefs.h" 20967/* Override any gcc2 internal prototype to avoid an error. */ 20968/* We use char because int might match the return type of a gcc2 20969 builtin and then its argument prototype would still apply. */ 20970char socket(); 20971 20972int main() { 20973socket() 20974; return 0; } 20975EOF 20976if { { eval echo configure:20977: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 20977 rm -rf conftest* 20978 eval "ac_cv_lib_$ac_lib_var=yes" 20979else 20980 echo "configure: failed program was:" >&5 20981 cat conftest.$ac_ext >&5 20982 rm -rf conftest* 20983 eval "ac_cv_lib_$ac_lib_var=no" 20984fi 20985rm -f conftest* 20986LIBS="$ac_save_LIBS" 20987 20988fi 20989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 20990 echo "$ac_t""yes" 1>&6 20991 lib_socket="" 20992else 20993 echo "$ac_t""no" 1>&6 20994echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 20995echo "configure:20996: checking for socket in -lsocket" >&5 20996ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 20997if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 20998 echo $ac_n "(cached) $ac_c" 1>&6 20999else 21000 ac_save_LIBS="$LIBS" 21001LIBS=`echo "-lsocket $LIBS" | sed -e 's/-lc //'` 21002cat > conftest.$ac_ext <<EOF 21003#line 21004 "configure" 21004#include "confdefs.h" 21005/* Override any gcc2 internal prototype to avoid an error. */ 21006/* We use char because int might match the return type of a gcc2 21007 builtin and then its argument prototype would still apply. */ 21008char socket(); 21009 21010int main() { 21011socket() 21012; return 0; } 21013EOF 21014if { { eval echo configure:21015: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21015 rm -rf conftest* 21016 eval "ac_cv_lib_$ac_lib_var=yes" 21017else 21018 echo "configure: failed program was:" >&5 21019 cat conftest.$ac_ext >&5 21020 rm -rf conftest* 21021 eval "ac_cv_lib_$ac_lib_var=no" 21022fi 21023rm -f conftest* 21024LIBS="$ac_save_LIBS" 21025 21026fi 21027if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21028 echo "$ac_t""yes" 1>&6 21029 lib_socket="-lsocket" 21030else 21031 echo "$ac_t""no" 1>&6 21032fi 21033 21034fi 21035 21036LIBS="$ac_save_LIBS" 21037echo $ac_n "checking for gethostbyname in -lc""... $ac_c" 1>&6 21038echo "configure:21039: checking for gethostbyname in -lc" >&5 21039ac_lib_var=`echo c'_'gethostbyname | sed 'y%./+-%__p_%'` 21040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21041 echo $ac_n "(cached) $ac_c" 1>&6 21042else 21043 ac_save_LIBS="$LIBS" 21044LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 21045cat > conftest.$ac_ext <<EOF 21046#line 21047 "configure" 21047#include "confdefs.h" 21048/* Override any gcc2 internal prototype to avoid an error. */ 21049/* We use char because int might match the return type of a gcc2 21050 builtin and then its argument prototype would still apply. */ 21051char gethostbyname(); 21052 21053int main() { 21054gethostbyname() 21055; return 0; } 21056EOF 21057if { { eval echo configure:21058: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21058 rm -rf conftest* 21059 eval "ac_cv_lib_$ac_lib_var=yes" 21060else 21061 echo "configure: failed program was:" >&5 21062 cat conftest.$ac_ext >&5 21063 rm -rf conftest* 21064 eval "ac_cv_lib_$ac_lib_var=no" 21065fi 21066rm -f conftest* 21067LIBS="$ac_save_LIBS" 21068 21069fi 21070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21071 echo "$ac_t""yes" 1>&6 21072 lib_nsl="" 21073else 21074 echo "$ac_t""no" 1>&6 21075echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 21076echo "configure:21077: checking for gethostbyname in -lnsl" >&5 21077ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 21078if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21079 echo $ac_n "(cached) $ac_c" 1>&6 21080else 21081 ac_save_LIBS="$LIBS" 21082LIBS=`echo "-lnsl $LIBS" | sed -e 's/-lc //'` 21083cat > conftest.$ac_ext <<EOF 21084#line 21085 "configure" 21085#include "confdefs.h" 21086/* Override any gcc2 internal prototype to avoid an error. */ 21087/* We use char because int might match the return type of a gcc2 21088 builtin and then its argument prototype would still apply. */ 21089char gethostbyname(); 21090 21091int main() { 21092gethostbyname() 21093; return 0; } 21094EOF 21095if { { eval echo configure:21096: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21096 rm -rf conftest* 21097 eval "ac_cv_lib_$ac_lib_var=yes" 21098else 21099 echo "configure: failed program was:" >&5 21100 cat conftest.$ac_ext >&5 21101 rm -rf conftest* 21102 eval "ac_cv_lib_$ac_lib_var=no" 21103fi 21104rm -f conftest* 21105LIBS="$ac_save_LIBS" 21106 21107fi 21108if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21109 echo "$ac_t""yes" 1>&6 21110 lib_nsl="-lnsl" 21111else 21112 echo "$ac_t""no" 1>&6 21113echo $ac_n "checking for gethostbyname in -lnetwork""... $ac_c" 1>&6 21114echo "configure:21115: checking for gethostbyname in -lnetwork" >&5 21115ac_lib_var=`echo network'_'gethostbyname | sed 'y%./+-%__p_%'` 21116if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21117 echo $ac_n "(cached) $ac_c" 1>&6 21118else 21119 ac_save_LIBS="$LIBS" 21120LIBS=`echo "-lnetwork $LIBS" | sed -e 's/-lc //'` 21121cat > conftest.$ac_ext <<EOF 21122#line 21123 "configure" 21123#include "confdefs.h" 21124/* Override any gcc2 internal prototype to avoid an error. */ 21125/* We use char because int might match the return type of a gcc2 21126 builtin and then its argument prototype would still apply. */ 21127char gethostbyname(); 21128 21129int main() { 21130gethostbyname() 21131; return 0; } 21132EOF 21133if { { eval echo configure:21134: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21134 rm -rf conftest* 21135 eval "ac_cv_lib_$ac_lib_var=yes" 21136else 21137 echo "configure: failed program was:" >&5 21138 cat conftest.$ac_ext >&5 21139 rm -rf conftest* 21140 eval "ac_cv_lib_$ac_lib_var=no" 21141fi 21142rm -f conftest* 21143LIBS="$ac_save_LIBS" 21144 21145fi 21146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21147 echo "$ac_t""yes" 1>&6 21148 lib_nsl="-lnetwork" 21149else 21150 echo "$ac_t""no" 1>&6 21151fi 21152 21153fi 21154 21155fi 21156 21157LIBS="$ac_save_LIBS" 21158LIBS="$LIBS $lib_nsl $lib_socket" 21159for ac_func in rcmd socket socketpair 21160do 21161echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 21162echo "configure:21163: checking for $ac_func" >&5 21163if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 21164 echo $ac_n "(cached) $ac_c" 1>&6 21165else 21166 cat > conftest.$ac_ext <<EOF 21167#line 21168 "configure" 21168#include "confdefs.h" 21169/* System header to define __stub macros and hopefully few prototypes, 21170 which can conflict with char $ac_func(); below. */ 21171#include <assert.h> 21172/* Override any gcc2 internal prototype to avoid an error. */ 21173/* We use char because int might match the return type of a gcc2 21174 builtin and then its argument prototype would still apply. */ 21175char $ac_func(); 21176 21177int main() { 21178 21179/* The GNU C library defines this for functions which it implements 21180 to always fail with ENOSYS. Some functions are actually named 21181 something starting with __ and the normal name is an alias. */ 21182#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21183choke me 21184#else 21185$ac_func(); 21186#endif 21187 21188; return 0; } 21189EOF 21190if { { eval echo configure:21191: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21191 rm -rf conftest* 21192 eval "ac_cv_func_$ac_func=yes" 21193else 21194 echo "configure: failed program was:" >&5 21195 cat conftest.$ac_ext >&5 21196 rm -rf conftest* 21197 eval "ac_cv_func_$ac_func=no" 21198fi 21199rm -f conftest* 21200fi 21201 21202if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 21203 echo "$ac_t""yes" 1>&6 21204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 21205 cat >> confdefs.h <<EOF 21206#define $ac_tr_func 1 21207EOF 21208 21209else 21210 echo "$ac_t""no" 1>&6 21211fi 21212done 21213 21214for ac_func in getservbyname inet_ntoa 21215do 21216echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 21217echo "configure:21218: checking for $ac_func" >&5 21218if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 21219 echo $ac_n "(cached) $ac_c" 1>&6 21220else 21221 cat > conftest.$ac_ext <<EOF 21222#line 21223 "configure" 21223#include "confdefs.h" 21224/* System header to define __stub macros and hopefully few prototypes, 21225 which can conflict with char $ac_func(); below. */ 21226#include <assert.h> 21227/* Override any gcc2 internal prototype to avoid an error. */ 21228/* We use char because int might match the return type of a gcc2 21229 builtin and then its argument prototype would still apply. */ 21230char $ac_func(); 21231 21232int main() { 21233 21234/* The GNU C library defines this for functions which it implements 21235 to always fail with ENOSYS. Some functions are actually named 21236 something starting with __ and the normal name is an alias. */ 21237#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21238choke me 21239#else 21240$ac_func(); 21241#endif 21242 21243; return 0; } 21244EOF 21245if { { eval echo configure:21246: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21246 rm -rf conftest* 21247 eval "ac_cv_func_$ac_func=yes" 21248else 21249 echo "configure: failed program was:" >&5 21250 cat conftest.$ac_ext >&5 21251 rm -rf conftest* 21252 eval "ac_cv_func_$ac_func=no" 21253fi 21254rm -f conftest* 21255fi 21256 21257if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 21258 echo "$ac_t""yes" 1>&6 21259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 21260 cat >> confdefs.h <<EOF 21261#define $ac_tr_func 1 21262EOF 21263 21264else 21265 echo "$ac_t""no" 1>&6 21266fi 21267done 21268 21269for ac_func in getaddrinfo getnameinfo 21270do 21271echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 21272echo "configure:21273: checking for $ac_func" >&5 21273if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 21274 echo $ac_n "(cached) $ac_c" 1>&6 21275else 21276 cat > conftest.$ac_ext <<EOF 21277#line 21278 "configure" 21278#include "confdefs.h" 21279/* System header to define __stub macros and hopefully few prototypes, 21280 which can conflict with char $ac_func(); below. */ 21281#include <assert.h> 21282/* Override any gcc2 internal prototype to avoid an error. */ 21283/* We use char because int might match the return type of a gcc2 21284 builtin and then its argument prototype would still apply. */ 21285char $ac_func(); 21286 21287int main() { 21288 21289/* The GNU C library defines this for functions which it implements 21290 to always fail with ENOSYS. Some functions are actually named 21291 something starting with __ and the normal name is an alias. */ 21292#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21293choke me 21294#else 21295$ac_func(); 21296#endif 21297 21298; return 0; } 21299EOF 21300if { { eval echo configure:21301: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21301 rm -rf conftest* 21302 eval "ac_cv_func_$ac_func=yes" 21303else 21304 echo "configure: failed program was:" >&5 21305 cat conftest.$ac_ext >&5 21306 rm -rf conftest* 21307 eval "ac_cv_func_$ac_func=no" 21308fi 21309rm -f conftest* 21310fi 21311 21312if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 21313 echo "$ac_t""yes" 1>&6 21314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 21315 cat >> confdefs.h <<EOF 21316#define $ac_tr_func 1 21317EOF 21318 21319else 21320 echo "$ac_t""no" 1>&6 21321fi 21322done 21323 21324for ac_func in host2netname netname2host 21325do 21326echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 21327echo "configure:21328: checking for $ac_func" >&5 21328if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 21329 echo $ac_n "(cached) $ac_c" 1>&6 21330else 21331 cat > conftest.$ac_ext <<EOF 21332#line 21333 "configure" 21333#include "confdefs.h" 21334/* System header to define __stub macros and hopefully few prototypes, 21335 which can conflict with char $ac_func(); below. */ 21336#include <assert.h> 21337/* Override any gcc2 internal prototype to avoid an error. */ 21338/* We use char because int might match the return type of a gcc2 21339 builtin and then its argument prototype would still apply. */ 21340char $ac_func(); 21341 21342int main() { 21343 21344/* The GNU C library defines this for functions which it implements 21345 to always fail with ENOSYS. Some functions are actually named 21346 something starting with __ and the normal name is an alias. */ 21347#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21348choke me 21349#else 21350$ac_func(); 21351#endif 21352 21353; return 0; } 21354EOF 21355if { { eval echo configure:21356: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21356 rm -rf conftest* 21357 eval "ac_cv_func_$ac_func=yes" 21358else 21359 echo "configure: failed program was:" >&5 21360 cat conftest.$ac_ext >&5 21361 rm -rf conftest* 21362 eval "ac_cv_func_$ac_func=no" 21363fi 21364rm -f conftest* 21365fi 21366 21367if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 21368 echo "$ac_t""yes" 1>&6 21369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 21370 cat >> confdefs.h <<EOF 21371#define $ac_tr_func 1 21372EOF 21373 21374else 21375 echo "$ac_t""no" 1>&6 21376fi 21377done 21378 21379LIBS="$ac_save_LIBS" 21380 21381ac_save_LIBS="$LIBS" 21382echo $ac_n "checking for res_init in -lc""... $ac_c" 1>&6 21383echo "configure:21384: checking for res_init in -lc" >&5 21384ac_lib_var=`echo c'_'res_init | sed 'y%./+-%__p_%'` 21385if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21386 echo $ac_n "(cached) $ac_c" 1>&6 21387else 21388 ac_save_LIBS="$LIBS" 21389LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 21390cat > conftest.$ac_ext <<EOF 21391#line 21392 "configure" 21392#include "confdefs.h" 21393/* Override any gcc2 internal prototype to avoid an error. */ 21394/* We use char because int might match the return type of a gcc2 21395 builtin and then its argument prototype would still apply. */ 21396char res_init(); 21397 21398int main() { 21399res_init() 21400; return 0; } 21401EOF 21402if { { eval echo configure:21403: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21403 rm -rf conftest* 21404 eval "ac_cv_lib_$ac_lib_var=yes" 21405else 21406 echo "configure: failed program was:" >&5 21407 cat conftest.$ac_ext >&5 21408 rm -rf conftest* 21409 eval "ac_cv_lib_$ac_lib_var=no" 21410fi 21411rm -f conftest* 21412LIBS="$ac_save_LIBS" 21413 21414fi 21415if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21416 echo "$ac_t""yes" 1>&6 21417 lib_resolv="" 21418else 21419 echo "$ac_t""no" 1>&6 21420echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6 21421echo "configure:21422: checking for res_init in -lresolv" >&5 21422ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'` 21423if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21424 echo $ac_n "(cached) $ac_c" 1>&6 21425else 21426 ac_save_LIBS="$LIBS" 21427LIBS=`echo "-lresolv $LIBS" | sed -e 's/-lc //'` 21428cat > conftest.$ac_ext <<EOF 21429#line 21430 "configure" 21430#include "confdefs.h" 21431/* Override any gcc2 internal prototype to avoid an error. */ 21432/* We use char because int might match the return type of a gcc2 21433 builtin and then its argument prototype would still apply. */ 21434char res_init(); 21435 21436int main() { 21437res_init() 21438; return 0; } 21439EOF 21440if { { eval echo configure:21441: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21441 rm -rf conftest* 21442 eval "ac_cv_lib_$ac_lib_var=yes" 21443else 21444 echo "configure: failed program was:" >&5 21445 cat conftest.$ac_ext >&5 21446 rm -rf conftest* 21447 eval "ac_cv_lib_$ac_lib_var=no" 21448fi 21449rm -f conftest* 21450LIBS="$ac_save_LIBS" 21451 21452fi 21453if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21454 echo "$ac_t""yes" 1>&6 21455 lib_resolv="-lresolv" 21456else 21457 echo "$ac_t""no" 1>&6 21458fi 21459 21460fi 21461 21462LIBS="$ac_save_LIBS" 21463if test ."$lib_resolv" = .""; then 21464 cat >> confdefs.h <<\EOF 21465#define HAVE_RESOLV_IN_LIBC 1 21466EOF 21467 21468fi 21469 21470# Check whether --enable-largefile or --disable-largefile was given. 21471if test "${enable_largefile+set}" = set; then 21472 enableval="$enable_largefile" 21473 : 21474fi 21475 21476 if test "$enable_largefile" != no; then 21477 21478 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 21479echo "configure:21480: checking for special C compiler options needed for large files" >&5 21480if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 21481 echo $ac_n "(cached) $ac_c" 1>&6 21482else 21483 ac_cv_sys_largefile_CC=no 21484 largefile_cc_opt="" 21485 if test "$GCC" != yes; then 21486 # IRIX 6.2 and later do not support large files by default, 21487 # so use the C compiler's -n32 option if that helps. 21488 cat > conftest.$ac_ext <<EOF 21489#line 21490 "configure" 21490#include "confdefs.h" 21491#include <sys/types.h> 21492 /* Check that off_t can represent 2**63 - 1 correctly. 21493 We can't simply "#define LARGE_OFF_T 9223372036854775807", 21494 since some C++ compilers masquerading as C compilers 21495 incorrectly reject 9223372036854775807. */ 21496# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21498 && LARGE_OFF_T % 2147483647 == 1) 21499 ? 1 : -1]; 21500 21501int main() { 21502 21503; return 0; } 21504EOF 21505if { { eval echo configure:21506: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21506 : 21507else 21508 echo "configure: failed program was:" >&5 21509 cat conftest.$ac_ext >&5 21510 rm -rf conftest* 21511 ac_save_CC="${CC-cc}" 21512 CC="$CC -n32" 21513 cat > conftest.$ac_ext <<EOF 21514#line 21515 "configure" 21515#include "confdefs.h" 21516#include <sys/types.h> 21517 /* Check that off_t can represent 2**63 - 1 correctly. 21518 We can't simply "#define LARGE_OFF_T 9223372036854775807", 21519 since some C++ compilers masquerading as C compilers 21520 incorrectly reject 9223372036854775807. */ 21521# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21523 && LARGE_OFF_T % 2147483647 == 1) 21524 ? 1 : -1]; 21525 21526int main() { 21527 21528; return 0; } 21529EOF 21530if { { eval echo configure:21531: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21531 rm -rf conftest* 21532 ac_cv_sys_largefile_CC=' -n32' 21533else 21534 echo "configure: failed program was:" >&5 21535 cat conftest.$ac_ext >&5 21536fi 21537rm -f conftest* 21538 CC="$ac_save_CC" 21539fi 21540rm -f conftest* 21541 fi 21542fi 21543 21544echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 21545 if test "$ac_cv_sys_largefile_CC" != no; then 21546 CC="$CC$ac_cv_sys_largefile_CC" 21547 largefile_cc_opt="$ac_cv_sys_largefile_CC" 21548 fi 21549 21550 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 21551echo "configure:21552: checking for _FILE_OFFSET_BITS value needed for large files" >&5 21552if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then 21553 echo $ac_n "(cached) $ac_c" 1>&6 21554else 21555 ac_cv_sys_file_offset_bits=no 21556 cat > conftest.$ac_ext <<EOF 21557#line 21558 "configure" 21558#include "confdefs.h" 21559#include <sys/types.h> 21560 /* Check that off_t can represent 2**63 - 1 correctly. 21561 We can't simply "#define LARGE_OFF_T 9223372036854775807", 21562 since some C++ compilers masquerading as C compilers 21563 incorrectly reject 9223372036854775807. */ 21564# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21566 && LARGE_OFF_T % 2147483647 == 1) 21567 ? 1 : -1]; 21568 21569int main() { 21570 21571; return 0; } 21572EOF 21573if { { eval echo configure:21574: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21574 : 21575else 21576 echo "configure: failed program was:" >&5 21577 cat conftest.$ac_ext >&5 21578 rm -rf conftest* 21579 cat > conftest.$ac_ext <<EOF 21580#line 21581 "configure" 21581#include "confdefs.h" 21582#define _FILE_OFFSET_BITS 64 21583#include <sys/types.h> 21584 /* Check that off_t can represent 2**63 - 1 correctly. 21585 We can't simply "#define LARGE_OFF_T 9223372036854775807", 21586 since some C++ compilers masquerading as C compilers 21587 incorrectly reject 9223372036854775807. */ 21588# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21590 && LARGE_OFF_T % 2147483647 == 1) 21591 ? 1 : -1]; 21592 21593 21594int main() { 21595 21596; return 0; } 21597EOF 21598if { { eval echo configure:21599: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21599 rm -rf conftest* 21600 ac_cv_sys_file_offset_bits=64 21601else 21602 echo "configure: failed program was:" >&5 21603 cat conftest.$ac_ext >&5 21604fi 21605rm -f conftest* 21606fi 21607rm -f conftest* 21608fi 21609 21610echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 21611 if test "$ac_cv_sys_file_offset_bits" != no; then 21612 cat >> confdefs.h <<EOF 21613#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 21614EOF 21615 21616 fi 21617 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 21618echo "configure:21619: checking for _LARGE_FILES value needed for large files" >&5 21619if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then 21620 echo $ac_n "(cached) $ac_c" 1>&6 21621else 21622 ac_cv_sys_large_files=no 21623 cat > conftest.$ac_ext <<EOF 21624#line 21625 "configure" 21625#include "confdefs.h" 21626#include <sys/types.h> 21627 /* Check that off_t can represent 2**63 - 1 correctly. 21628 We can't simply "#define LARGE_OFF_T 9223372036854775807", 21629 since some C++ compilers masquerading as C compilers 21630 incorrectly reject 9223372036854775807. */ 21631# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21633 && LARGE_OFF_T % 2147483647 == 1) 21634 ? 1 : -1]; 21635 21636int main() { 21637 21638; return 0; } 21639EOF 21640if { { eval echo configure:21641: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21641 : 21642else 21643 echo "configure: failed program was:" >&5 21644 cat conftest.$ac_ext >&5 21645 rm -rf conftest* 21646 cat > conftest.$ac_ext <<EOF 21647#line 21648 "configure" 21648#include "confdefs.h" 21649#define _LARGE_FILES 1 21650#include <sys/types.h> 21651 /* Check that off_t can represent 2**63 - 1 correctly. 21652 We can't simply "#define LARGE_OFF_T 9223372036854775807", 21653 since some C++ compilers masquerading as C compilers 21654 incorrectly reject 9223372036854775807. */ 21655# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21657 && LARGE_OFF_T % 2147483647 == 1) 21658 ? 1 : -1]; 21659 21660 21661int main() { 21662 21663; return 0; } 21664EOF 21665if { { eval echo configure:21666: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21666 rm -rf conftest* 21667 ac_cv_sys_large_files=1 21668else 21669 echo "configure: failed program was:" >&5 21670 cat conftest.$ac_ext >&5 21671fi 21672rm -f conftest* 21673fi 21674rm -f conftest* 21675fi 21676 21677echo "$ac_t""$ac_cv_sys_large_files" 1>&6 21678 if test "$ac_cv_sys_large_files" != no; then 21679 cat >> confdefs.h <<EOF 21680#define _LARGE_FILES $ac_cv_sys_large_files 21681EOF 21682 21683 fi 21684 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 21685echo "configure:21686: checking for _LARGEFILE_SOURCE value needed for large files" >&5 21686if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 21687 echo $ac_n "(cached) $ac_c" 1>&6 21688else 21689 ac_cv_sys_largefile_source=no 21690 cat > conftest.$ac_ext <<EOF 21691#line 21692 "configure" 21692#include "confdefs.h" 21693#include <stdio.h> 21694int main() { 21695return !fseeko; 21696; return 0; } 21697EOF 21698if { { eval echo configure:21699: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21699 : 21700else 21701 echo "configure: failed program was:" >&5 21702 cat conftest.$ac_ext >&5 21703 rm -rf conftest* 21704 cat > conftest.$ac_ext <<EOF 21705#line 21706 "configure" 21706#include "confdefs.h" 21707#define _LARGEFILE_SOURCE 1 21708#include <stdio.h> 21709 21710int main() { 21711return !fseeko; 21712; return 0; } 21713EOF 21714if { { eval echo configure:21715: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21715 rm -rf conftest* 21716 ac_cv_sys_largefile_source=1 21717else 21718 echo "configure: failed program was:" >&5 21719 cat conftest.$ac_ext >&5 21720fi 21721rm -f conftest* 21722fi 21723rm -f conftest* 21724fi 21725 21726echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 21727 if test "$ac_cv_sys_largefile_source" != no; then 21728 cat >> confdefs.h <<EOF 21729#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 21730EOF 21731 21732 fi 21733 fi 21734 21735echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6 21736echo "configure:21737: checking if system supports Large Files at all" >&5 21737if eval "test \"`echo '$''{'ac_cv_largefiles'+set}'`\" = set"; then 21738 echo $ac_n "(cached) $ac_c" 1>&6 21739else 21740 cat > conftest.$ac_ext <<EOF 21741#line 21742 "configure" 21742#include "confdefs.h" 21743#include <stdio.h> 21744#include <sys/types.h> 21745int main() { 21746 21747/* 21748 * Check that off_t can represent 2**63 - 1 correctly. 21749 * We can't simply "#define LARGE_OFF_T 9223372036854775807", 21750 * since some C++ compilers masquerading as C compilers 21751 * incorrectly reject 9223372036854775807. 21752 */ 21753# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21755 && LARGE_OFF_T % 2147483647 == 1) 21756 ? 1 : -1]; 21757return !fseeko; 21758return !ftello; 21759; return 0; } 21760EOF 21761if { { eval echo configure:21762: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 21762 rm -rf conftest* 21763 ac_cv_largefiles=yes 21764else 21765 echo "configure: failed program was:" >&5 21766 cat conftest.$ac_ext >&5 21767 rm -rf conftest* 21768 ac_cv_largefiles=no 21769fi 21770rm -f conftest* 21771fi 21772 21773echo "$ac_t""$ac_cv_largefiles" 1>&6 21774 if test $ac_cv_largefiles = yes; then 21775 cat >> confdefs.h <<\EOF 21776#define HAVE_LARGEFILES 1 21777EOF 21778 21779 fi 21780 21781cat >> confdefs.h <<EOF 21782#define HOST_ALIAS "$host_alias" 21783EOF 21784 21785cat >> confdefs.h <<EOF 21786#define HOST_SUB "$host" 21787EOF 21788 21789cat >> confdefs.h <<EOF 21790#define HOST_CPU "$host_cpu" 21791EOF 21792 21793cat >> confdefs.h <<EOF 21794#define HOST_VENDOR "$host_vendor" 21795EOF 21796 21797cat >> confdefs.h <<EOF 21798#define HOST_OS "$host_os" 21799EOF 21800 21801 21802 21803echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6 21804echo "configure:21805: checking for crypt in -lc" >&5 21805ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'` 21806if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21807 echo $ac_n "(cached) $ac_c" 1>&6 21808else 21809 ac_save_LIBS="$LIBS" 21810LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 21811cat > conftest.$ac_ext <<EOF 21812#line 21813 "configure" 21813#include "confdefs.h" 21814/* Override any gcc2 internal prototype to avoid an error. */ 21815/* We use char because int might match the return type of a gcc2 21816 builtin and then its argument prototype would still apply. */ 21817char crypt(); 21818 21819int main() { 21820crypt() 21821; return 0; } 21822EOF 21823if { { eval echo configure:21824: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21824 rm -rf conftest* 21825 eval "ac_cv_lib_$ac_lib_var=yes" 21826else 21827 echo "configure: failed program was:" >&5 21828 cat conftest.$ac_ext >&5 21829 rm -rf conftest* 21830 eval "ac_cv_lib_$ac_lib_var=no" 21831fi 21832rm -f conftest* 21833LIBS="$ac_save_LIBS" 21834 21835fi 21836if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21837 echo "$ac_t""yes" 1>&6 21838 lib_crypt="" 21839else 21840 echo "$ac_t""no" 1>&6 21841echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 21842echo "configure:21843: checking for crypt in -lcrypt" >&5 21843ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 21844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21845 echo $ac_n "(cached) $ac_c" 1>&6 21846else 21847 ac_save_LIBS="$LIBS" 21848LIBS=`echo "-lcrypt $LIBS" | sed -e 's/-lc //'` 21849cat > conftest.$ac_ext <<EOF 21850#line 21851 "configure" 21851#include "confdefs.h" 21852/* Override any gcc2 internal prototype to avoid an error. */ 21853/* We use char because int might match the return type of a gcc2 21854 builtin and then its argument prototype would still apply. */ 21855char crypt(); 21856 21857int main() { 21858crypt() 21859; return 0; } 21860EOF 21861if { { eval echo configure:21862: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21862 rm -rf conftest* 21863 eval "ac_cv_lib_$ac_lib_var=yes" 21864else 21865 echo "configure: failed program was:" >&5 21866 cat conftest.$ac_ext >&5 21867 rm -rf conftest* 21868 eval "ac_cv_lib_$ac_lib_var=no" 21869fi 21870rm -f conftest* 21871LIBS="$ac_save_LIBS" 21872 21873fi 21874if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21875 echo "$ac_t""yes" 1>&6 21876 lib_crypt="-lcrypt" 21877else 21878 echo "$ac_t""no" 1>&6 21879fi 21880 21881fi 21882 21883if test ."$lib_crypt" = .""; then 21884 cat >> confdefs.h <<\EOF 21885#define HAVE_CRYPT_IN_LIBC 1 21886EOF 21887 21888fi 21889 21890ac_save_LIBS="$LIBS" 21891LIBS="$LIBS $lib_crypt" 21892for ac_func in crypt 21893do 21894echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 21895echo "configure:21896: checking for $ac_func" >&5 21896if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 21897 echo $ac_n "(cached) $ac_c" 1>&6 21898else 21899 cat > conftest.$ac_ext <<EOF 21900#line 21901 "configure" 21901#include "confdefs.h" 21902/* System header to define __stub macros and hopefully few prototypes, 21903 which can conflict with char $ac_func(); below. */ 21904#include <assert.h> 21905/* Override any gcc2 internal prototype to avoid an error. */ 21906/* We use char because int might match the return type of a gcc2 21907 builtin and then its argument prototype would still apply. */ 21908char $ac_func(); 21909 21910int main() { 21911 21912/* The GNU C library defines this for functions which it implements 21913 to always fail with ENOSYS. Some functions are actually named 21914 something starting with __ and the normal name is an alias. */ 21915#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21916choke me 21917#else 21918$ac_func(); 21919#endif 21920 21921; return 0; } 21922EOF 21923if { { eval echo configure:21924: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21924 rm -rf conftest* 21925 eval "ac_cv_func_$ac_func=yes" 21926else 21927 echo "configure: failed program was:" >&5 21928 cat conftest.$ac_ext >&5 21929 rm -rf conftest* 21930 eval "ac_cv_func_$ac_func=no" 21931fi 21932rm -f conftest* 21933fi 21934 21935if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 21936 echo "$ac_t""yes" 1>&6 21937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 21938 cat >> confdefs.h <<EOF 21939#define $ac_tr_func 1 21940EOF 21941 21942else 21943 echo "$ac_t""no" 1>&6 21944fi 21945done 21946 21947LIBS="$ac_save_LIBS" 21948 21949echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 21950echo "configure:21951: checking for gettext in -lc" >&5 21951ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` 21952if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21953 echo $ac_n "(cached) $ac_c" 1>&6 21954else 21955 ac_save_LIBS="$LIBS" 21956LIBS="-lc $LIBS" 21957cat > conftest.$ac_ext <<EOF 21958#line 21959 "configure" 21959#include "confdefs.h" 21960#include <libintl.h> 21961int main() { 21962 21963 char *p = (char *) gettext; 21964 21965 return ((int)p); 21966 21967; return 0; } 21968EOF 21969if { { eval echo configure:21970: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 21970 rm -rf conftest* 21971 eval "ac_cv_lib_$ac_lib_var=yes" 21972else 21973 echo "configure: failed program was:" >&5 21974 cat conftest.$ac_ext >&5 21975 rm -rf conftest* 21976 eval "ac_cv_lib_$ac_lib_var=no" 21977fi 21978rm -f conftest* 21979LIBS="$ac_save_LIBS" 21980 21981fi 21982if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 21983 echo "$ac_t""yes" 1>&6 21984 lib_intl="" 21985else 21986 echo "$ac_t""no" 1>&6 21987echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 21988echo "configure:21989: checking for gettext in -lintl" >&5 21989ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` 21990if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 21991 echo $ac_n "(cached) $ac_c" 1>&6 21992else 21993 ac_save_LIBS="$LIBS" 21994LIBS="-lintl $LIBS" 21995cat > conftest.$ac_ext <<EOF 21996#line 21997 "configure" 21997#include "confdefs.h" 21998#include <libintl.h> 21999int main() { 22000 22001 char *p = (char *) gettext; 22002 22003 return ((int)p); 22004 22005; return 0; } 22006EOF 22007if { { eval echo configure:22008: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22008 rm -rf conftest* 22009 eval "ac_cv_lib_$ac_lib_var=yes" 22010else 22011 echo "configure: failed program was:" >&5 22012 cat conftest.$ac_ext >&5 22013 rm -rf conftest* 22014 eval "ac_cv_lib_$ac_lib_var=no" 22015fi 22016rm -f conftest* 22017LIBS="$ac_save_LIBS" 22018 22019fi 22020if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22021 echo "$ac_t""yes" 1>&6 22022 lib_intl="-lintl" 22023else 22024 echo "$ac_t""no" 1>&6 22025fi 22026 22027fi 22028 22029if test ."$lib_intl" = .""; then 22030 cat >> confdefs.h <<\EOF 22031#define HAVE_GETTEXT_IN_LIBC 1 22032EOF 22033 22034fi 22035 22036ac_save_LIBS="$LIBS" 22037LIBS="$LIBS $lib_intl" 22038echo $ac_n "checking if gettext is defined or function""... $ac_c" 1>&6 22039echo "configure:22040: checking if gettext is defined or function" >&5 22040if eval "test \"`echo '$''{'ac_cv_have_gettext'+set}'`\" = set"; then 22041 echo $ac_n "(cached) $ac_c" 1>&6 22042else 22043 cat > conftest.$ac_ext <<EOF 22044#line 22045 "configure" 22045#include "confdefs.h" 22046#include <libintl.h> 22047int main() { 22048 22049#ifndef gettext 22050 char *p = (char *) gettext; 22051 return (p != (char *)0 && *p != 0); 22052#endif 22053; return 0; } 22054EOF 22055if { { eval echo configure:22056: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22056 rm -rf conftest* 22057 eval ac_cv_have_gettext=yes 22058else 22059 echo "configure: failed program was:" >&5 22060 cat conftest.$ac_ext >&5 22061 rm -rf conftest* 22062 eval ac_cv_have_gettext=no 22063fi 22064rm -f conftest* 22065fi 22066 22067if eval "test \"`echo '$ac_cv_have_'gettext`\" = yes"; then 22068 echo "$ac_t""yes" 1>&6 22069else 22070 echo "$ac_t""no" 1>&6 22071fi 22072 ac_tr_dfunc=HAVE_`echo gettext | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 22073if eval "test \"`echo '$ac_cv_have_'gettext`\" = yes"; then 22074 cat >> confdefs.h <<EOF 22075#define $ac_tr_dfunc 1 22076EOF 22077 22078fi 22079 22080LIBS="$ac_save_LIBS" 22081 22082echo $ac_n "checking for iconv_open in -lc""... $ac_c" 1>&6 22083echo "configure:22084: checking for iconv_open in -lc" >&5 22084ac_lib_var=`echo c'_'iconv_open | sed 'y%./+-%__p_%'` 22085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22086 echo $ac_n "(cached) $ac_c" 1>&6 22087else 22088 ac_save_LIBS="$LIBS" 22089LIBS="-lc $LIBS" 22090cat > conftest.$ac_ext <<EOF 22091#line 22092 "configure" 22092#include "confdefs.h" 22093#include <iconv.h> 22094int main() { 22095 22096 char *p = (char *) iconv_open; 22097 22098 return ((int)p); 22099 22100; return 0; } 22101EOF 22102if { { eval echo configure:22103: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22103 rm -rf conftest* 22104 eval "ac_cv_lib_$ac_lib_var=yes" 22105else 22106 echo "configure: failed program was:" >&5 22107 cat conftest.$ac_ext >&5 22108 rm -rf conftest* 22109 eval "ac_cv_lib_$ac_lib_var=no" 22110fi 22111rm -f conftest* 22112LIBS="$ac_save_LIBS" 22113 22114fi 22115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22116 echo "$ac_t""yes" 1>&6 22117 lib_iconv="" 22118else 22119 echo "$ac_t""no" 1>&6 22120echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6 22121echo "configure:22122: checking for iconv_open in -liconv" >&5 22122ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'` 22123if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22124 echo $ac_n "(cached) $ac_c" 1>&6 22125else 22126 ac_save_LIBS="$LIBS" 22127LIBS="-liconv $LIBS" 22128cat > conftest.$ac_ext <<EOF 22129#line 22130 "configure" 22130#include "confdefs.h" 22131#include <iconv.h> 22132int main() { 22133 22134 char *p = (char *) iconv_open; 22135 22136 return ((int)p); 22137 22138; return 0; } 22139EOF 22140if { { eval echo configure:22141: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22141 rm -rf conftest* 22142 eval "ac_cv_lib_$ac_lib_var=yes" 22143else 22144 echo "configure: failed program was:" >&5 22145 cat conftest.$ac_ext >&5 22146 rm -rf conftest* 22147 eval "ac_cv_lib_$ac_lib_var=no" 22148fi 22149rm -f conftest* 22150LIBS="$ac_save_LIBS" 22151 22152fi 22153if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22154 echo "$ac_t""yes" 1>&6 22155 lib_iconv="-liconv" 22156else 22157 echo "$ac_t""no" 1>&6 22158fi 22159 22160fi 22161 22162if test ."$lib_iconv" = .""; then 22163 cat >> confdefs.h <<\EOF 22164#define HAVE_ICONV_IN_LIBC 1 22165EOF 22166 22167fi 22168 22169ac_save_LIBS="$LIBS" 22170LIBS="$LIBS $lib_iconv" 22171echo $ac_n "checking if iconv is defined or function""... $ac_c" 1>&6 22172echo "configure:22173: checking if iconv is defined or function" >&5 22173if eval "test \"`echo '$''{'ac_cv_have_iconv'+set}'`\" = set"; then 22174 echo $ac_n "(cached) $ac_c" 1>&6 22175else 22176 cat > conftest.$ac_ext <<EOF 22177#line 22178 "configure" 22178#include "confdefs.h" 22179#include <iconv.h> 22180int main() { 22181 22182#ifndef iconv 22183 char *p = (char *) iconv; 22184 return (p != (char *)0 && *p != 0); 22185#endif 22186; return 0; } 22187EOF 22188if { { eval echo configure:22189: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22189 rm -rf conftest* 22190 eval ac_cv_have_iconv=yes 22191else 22192 echo "configure: failed program was:" >&5 22193 cat conftest.$ac_ext >&5 22194 rm -rf conftest* 22195 eval ac_cv_have_iconv=no 22196fi 22197rm -f conftest* 22198fi 22199 22200if eval "test \"`echo '$ac_cv_have_'iconv`\" = yes"; then 22201 echo "$ac_t""yes" 1>&6 22202else 22203 echo "$ac_t""no" 1>&6 22204fi 22205 ac_tr_dfunc=HAVE_`echo iconv | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 22206if eval "test \"`echo '$ac_cv_have_'iconv`\" = yes"; then 22207 cat >> confdefs.h <<EOF 22208#define $ac_tr_dfunc 1 22209EOF 22210 22211fi 22212 22213echo $ac_n "checking if iconv_open is defined or function""... $ac_c" 1>&6 22214echo "configure:22215: checking if iconv_open is defined or function" >&5 22215if eval "test \"`echo '$''{'ac_cv_have_iconv_open'+set}'`\" = set"; then 22216 echo $ac_n "(cached) $ac_c" 1>&6 22217else 22218 cat > conftest.$ac_ext <<EOF 22219#line 22220 "configure" 22220#include "confdefs.h" 22221#include <iconv.h> 22222int main() { 22223 22224#ifndef iconv_open 22225 char *p = (char *) iconv_open; 22226 return (p != (char *)0 && *p != 0); 22227#endif 22228; return 0; } 22229EOF 22230if { { eval echo configure:22231: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22231 rm -rf conftest* 22232 eval ac_cv_have_iconv_open=yes 22233else 22234 echo "configure: failed program was:" >&5 22235 cat conftest.$ac_ext >&5 22236 rm -rf conftest* 22237 eval ac_cv_have_iconv_open=no 22238fi 22239rm -f conftest* 22240fi 22241 22242if eval "test \"`echo '$ac_cv_have_'iconv_open`\" = yes"; then 22243 echo "$ac_t""yes" 1>&6 22244else 22245 echo "$ac_t""no" 1>&6 22246fi 22247 ac_tr_dfunc=HAVE_`echo iconv_open | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 22248if eval "test \"`echo '$ac_cv_have_'iconv_open`\" = yes"; then 22249 cat >> confdefs.h <<EOF 22250#define $ac_tr_dfunc 1 22251EOF 22252 22253fi 22254 22255echo $ac_n "checking if iconv_close is defined or function""... $ac_c" 1>&6 22256echo "configure:22257: checking if iconv_close is defined or function" >&5 22257if eval "test \"`echo '$''{'ac_cv_have_iconv_close'+set}'`\" = set"; then 22258 echo $ac_n "(cached) $ac_c" 1>&6 22259else 22260 cat > conftest.$ac_ext <<EOF 22261#line 22262 "configure" 22262#include "confdefs.h" 22263#include <iconv.h> 22264int main() { 22265 22266#ifndef iconv_close 22267 char *p = (char *) iconv_close; 22268 return (p != (char *)0 && *p != 0); 22269#endif 22270; return 0; } 22271EOF 22272if { { eval echo configure:22273: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22273 rm -rf conftest* 22274 eval ac_cv_have_iconv_close=yes 22275else 22276 echo "configure: failed program was:" >&5 22277 cat conftest.$ac_ext >&5 22278 rm -rf conftest* 22279 eval ac_cv_have_iconv_close=no 22280fi 22281rm -f conftest* 22282fi 22283 22284if eval "test \"`echo '$ac_cv_have_'iconv_close`\" = yes"; then 22285 echo "$ac_t""yes" 1>&6 22286else 22287 echo "$ac_t""no" 1>&6 22288fi 22289 ac_tr_dfunc=HAVE_`echo iconv_close | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 22290if eval "test \"`echo '$ac_cv_have_'iconv_close`\" = yes"; then 22291 cat >> confdefs.h <<EOF 22292#define $ac_tr_dfunc 1 22293EOF 22294 22295fi 22296 22297echo $ac_n "checking if libiconv is defined or function""... $ac_c" 1>&6 22298echo "configure:22299: checking if libiconv is defined or function" >&5 22299if eval "test \"`echo '$''{'ac_cv_have_libiconv'+set}'`\" = set"; then 22300 echo $ac_n "(cached) $ac_c" 1>&6 22301else 22302 cat > conftest.$ac_ext <<EOF 22303#line 22304 "configure" 22304#include "confdefs.h" 22305#include <iconv.h> 22306int main() { 22307 22308#ifndef libiconv 22309 char *p = (char *) libiconv; 22310 return (p != (char *)0 && *p != 0); 22311#endif 22312; return 0; } 22313EOF 22314if { { eval echo configure:22315: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22315 rm -rf conftest* 22316 eval ac_cv_have_libiconv=yes 22317else 22318 echo "configure: failed program was:" >&5 22319 cat conftest.$ac_ext >&5 22320 rm -rf conftest* 22321 eval ac_cv_have_libiconv=no 22322fi 22323rm -f conftest* 22324fi 22325 22326if eval "test \"`echo '$ac_cv_have_'libiconv`\" = yes"; then 22327 echo "$ac_t""yes" 1>&6 22328else 22329 echo "$ac_t""no" 1>&6 22330fi 22331 ac_tr_dfunc=HAVE_`echo libiconv | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 22332if eval "test \"`echo '$ac_cv_have_'libiconv`\" = yes"; then 22333 cat >> confdefs.h <<EOF 22334#define $ac_tr_dfunc 1 22335EOF 22336 22337fi 22338 22339echo $ac_n "checking if libiconv_open is defined or function""... $ac_c" 1>&6 22340echo "configure:22341: checking if libiconv_open is defined or function" >&5 22341if eval "test \"`echo '$''{'ac_cv_have_libiconv_open'+set}'`\" = set"; then 22342 echo $ac_n "(cached) $ac_c" 1>&6 22343else 22344 cat > conftest.$ac_ext <<EOF 22345#line 22346 "configure" 22346#include "confdefs.h" 22347#include <iconv.h> 22348int main() { 22349 22350#ifndef libiconv_open 22351 char *p = (char *) libiconv_open; 22352 return (p != (char *)0 && *p != 0); 22353#endif 22354; return 0; } 22355EOF 22356if { { eval echo configure:22357: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22357 rm -rf conftest* 22358 eval ac_cv_have_libiconv_open=yes 22359else 22360 echo "configure: failed program was:" >&5 22361 cat conftest.$ac_ext >&5 22362 rm -rf conftest* 22363 eval ac_cv_have_libiconv_open=no 22364fi 22365rm -f conftest* 22366fi 22367 22368if eval "test \"`echo '$ac_cv_have_'libiconv_open`\" = yes"; then 22369 echo "$ac_t""yes" 1>&6 22370else 22371 echo "$ac_t""no" 1>&6 22372fi 22373 ac_tr_dfunc=HAVE_`echo libiconv_open | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 22374if eval "test \"`echo '$ac_cv_have_'libiconv_open`\" = yes"; then 22375 cat >> confdefs.h <<EOF 22376#define $ac_tr_dfunc 1 22377EOF 22378 22379fi 22380 22381echo $ac_n "checking if libiconv_close is defined or function""... $ac_c" 1>&6 22382echo "configure:22383: checking if libiconv_close is defined or function" >&5 22383if eval "test \"`echo '$''{'ac_cv_have_libiconv_close'+set}'`\" = set"; then 22384 echo $ac_n "(cached) $ac_c" 1>&6 22385else 22386 cat > conftest.$ac_ext <<EOF 22387#line 22388 "configure" 22388#include "confdefs.h" 22389#include <iconv.h> 22390int main() { 22391 22392#ifndef libiconv_close 22393 char *p = (char *) libiconv_close; 22394 return (p != (char *)0 && *p != 0); 22395#endif 22396; return 0; } 22397EOF 22398if { { eval echo configure:22399: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22399 rm -rf conftest* 22400 eval ac_cv_have_libiconv_close=yes 22401else 22402 echo "configure: failed program was:" >&5 22403 cat conftest.$ac_ext >&5 22404 rm -rf conftest* 22405 eval ac_cv_have_libiconv_close=no 22406fi 22407rm -f conftest* 22408fi 22409 22410if eval "test \"`echo '$ac_cv_have_'libiconv_close`\" = yes"; then 22411 echo "$ac_t""yes" 1>&6 22412else 22413 echo "$ac_t""no" 1>&6 22414fi 22415 ac_tr_dfunc=HAVE_`echo libiconv_close | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 22416if eval "test \"`echo '$ac_cv_have_'libiconv_close`\" = yes"; then 22417 cat >> confdefs.h <<EOF 22418#define $ac_tr_dfunc 1 22419EOF 22420 22421fi 22422 22423LIBS="$ac_save_LIBS" 22424 22425echo $ac_n "checking for XML_Parse in -lc""... $ac_c" 1>&6 22426echo "configure:22427: checking for XML_Parse in -lc" >&5 22427ac_lib_var=`echo c'_'XML_Parse | sed 'y%./+-%__p_%'` 22428if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22429 echo $ac_n "(cached) $ac_c" 1>&6 22430else 22431 ac_save_LIBS="$LIBS" 22432LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 22433cat > conftest.$ac_ext <<EOF 22434#line 22435 "configure" 22435#include "confdefs.h" 22436/* Override any gcc2 internal prototype to avoid an error. */ 22437/* We use char because int might match the return type of a gcc2 22438 builtin and then its argument prototype would still apply. */ 22439char XML_Parse(); 22440 22441int main() { 22442XML_Parse() 22443; return 0; } 22444EOF 22445if { { eval echo configure:22446: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22446 rm -rf conftest* 22447 eval "ac_cv_lib_$ac_lib_var=yes" 22448else 22449 echo "configure: failed program was:" >&5 22450 cat conftest.$ac_ext >&5 22451 rm -rf conftest* 22452 eval "ac_cv_lib_$ac_lib_var=no" 22453fi 22454rm -f conftest* 22455LIBS="$ac_save_LIBS" 22456 22457fi 22458if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22459 echo "$ac_t""yes" 1>&6 22460 lib_expat="" 22461else 22462 echo "$ac_t""no" 1>&6 22463echo $ac_n "checking for XML_Parse in -lexpat""... $ac_c" 1>&6 22464echo "configure:22465: checking for XML_Parse in -lexpat" >&5 22465ac_lib_var=`echo expat'_'XML_Parse | sed 'y%./+-%__p_%'` 22466if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22467 echo $ac_n "(cached) $ac_c" 1>&6 22468else 22469 ac_save_LIBS="$LIBS" 22470LIBS=`echo "-lexpat $LIBS" | sed -e 's/-lc //'` 22471cat > conftest.$ac_ext <<EOF 22472#line 22473 "configure" 22473#include "confdefs.h" 22474/* Override any gcc2 internal prototype to avoid an error. */ 22475/* We use char because int might match the return type of a gcc2 22476 builtin and then its argument prototype would still apply. */ 22477char XML_Parse(); 22478 22479int main() { 22480XML_Parse() 22481; return 0; } 22482EOF 22483if { { eval echo configure:22484: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22484 rm -rf conftest* 22485 eval "ac_cv_lib_$ac_lib_var=yes" 22486else 22487 echo "configure: failed program was:" >&5 22488 cat conftest.$ac_ext >&5 22489 rm -rf conftest* 22490 eval "ac_cv_lib_$ac_lib_var=no" 22491fi 22492rm -f conftest* 22493LIBS="$ac_save_LIBS" 22494 22495fi 22496if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22497 echo "$ac_t""yes" 1>&6 22498 lib_expat="-lexpat" 22499else 22500 echo "$ac_t""no" 1>&6 22501fi 22502 22503fi 22504 22505if test ."$lib_expat" = ."" -a "$ac_cv_lib_c_XML_Parse" = yes ; then 22506 cat >> confdefs.h <<\EOF 22507#define HAVE_EXPAT_IN_LIBC 1 22508EOF 22509 22510fi 22511ac_save_LIBS="$LIBS" 22512LIBS="$LIBS $lib_expat" 22513for ac_func in XML_Parse 22514do 22515echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 22516echo "configure:22517: checking for $ac_func" >&5 22517if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 22518 echo $ac_n "(cached) $ac_c" 1>&6 22519else 22520 cat > conftest.$ac_ext <<EOF 22521#line 22522 "configure" 22522#include "confdefs.h" 22523/* System header to define __stub macros and hopefully few prototypes, 22524 which can conflict with char $ac_func(); below. */ 22525#include <assert.h> 22526/* Override any gcc2 internal prototype to avoid an error. */ 22527/* We use char because int might match the return type of a gcc2 22528 builtin and then its argument prototype would still apply. */ 22529char $ac_func(); 22530 22531int main() { 22532 22533/* The GNU C library defines this for functions which it implements 22534 to always fail with ENOSYS. Some functions are actually named 22535 something starting with __ and the normal name is an alias. */ 22536#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22537choke me 22538#else 22539$ac_func(); 22540#endif 22541 22542; return 0; } 22543EOF 22544if { { eval echo configure:22545: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22545 rm -rf conftest* 22546 eval "ac_cv_func_$ac_func=yes" 22547else 22548 echo "configure: failed program was:" >&5 22549 cat conftest.$ac_ext >&5 22550 rm -rf conftest* 22551 eval "ac_cv_func_$ac_func=no" 22552fi 22553rm -f conftest* 22554fi 22555 22556if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 22557 echo "$ac_t""yes" 1>&6 22558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 22559 cat >> confdefs.h <<EOF 22560#define $ac_tr_func 1 22561EOF 22562 22563else 22564 echo "$ac_t""no" 1>&6 22565fi 22566done 22567 22568LIBS="$ac_save_LIBS" 22569 22570if test "$CC" = cl.exe; then 22571 echo configure does not yet support library checks for cl.exe: 22572 echo checking for SCardEstablishContext in -lwinscard... we know it is present 22573 lib_pcsc="-lwinscard" 22574 cat >> confdefs.h <<\EOF 22575#define HAVE_SCARDESTABLISHCONTEXT 1 22576EOF 22577 22578else 22579 echo $ac_n "checking for SCardEstablishContext in -lc""... $ac_c" 1>&6 22580echo "configure:22581: checking for SCardEstablishContext in -lc" >&5 22581ac_lib_var=`echo c'_'SCardEstablishContext | sed 'y%./+-%__p_%'` 22582if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22583 echo $ac_n "(cached) $ac_c" 1>&6 22584else 22585 ac_save_LIBS="$LIBS" 22586LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 22587cat > conftest.$ac_ext <<EOF 22588#line 22589 "configure" 22589#include "confdefs.h" 22590/* Override any gcc2 internal prototype to avoid an error. */ 22591/* We use char because int might match the return type of a gcc2 22592 builtin and then its argument prototype would still apply. */ 22593char SCardEstablishContext(); 22594 22595int main() { 22596SCardEstablishContext() 22597; return 0; } 22598EOF 22599if { { eval echo configure:22600: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22600 rm -rf conftest* 22601 eval "ac_cv_lib_$ac_lib_var=yes" 22602else 22603 echo "configure: failed program was:" >&5 22604 cat conftest.$ac_ext >&5 22605 rm -rf conftest* 22606 eval "ac_cv_lib_$ac_lib_var=no" 22607fi 22608rm -f conftest* 22609LIBS="$ac_save_LIBS" 22610 22611fi 22612if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22613 echo "$ac_t""yes" 1>&6 22614 lib_pcsc="" 22615else 22616 echo "$ac_t""no" 1>&6 22617echo $ac_n "checking for SCardEstablishContext in -lwinscard""... $ac_c" 1>&6 22618echo "configure:22619: checking for SCardEstablishContext in -lwinscard" >&5 22619ac_lib_var=`echo winscard'_'SCardEstablishContext | sed 'y%./+-%__p_%'` 22620if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22621 echo $ac_n "(cached) $ac_c" 1>&6 22622else 22623 ac_save_LIBS="$LIBS" 22624LIBS=`echo "-lwinscard $LIBS" | sed -e 's/-lc //'` 22625cat > conftest.$ac_ext <<EOF 22626#line 22627 "configure" 22627#include "confdefs.h" 22628/* Override any gcc2 internal prototype to avoid an error. */ 22629/* We use char because int might match the return type of a gcc2 22630 builtin and then its argument prototype would still apply. */ 22631char SCardEstablishContext(); 22632 22633int main() { 22634SCardEstablishContext() 22635; return 0; } 22636EOF 22637if { { eval echo configure:22638: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22638 rm -rf conftest* 22639 eval "ac_cv_lib_$ac_lib_var=yes" 22640else 22641 echo "configure: failed program was:" >&5 22642 cat conftest.$ac_ext >&5 22643 rm -rf conftest* 22644 eval "ac_cv_lib_$ac_lib_var=no" 22645fi 22646rm -f conftest* 22647LIBS="$ac_save_LIBS" 22648 22649fi 22650if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22651 echo "$ac_t""yes" 1>&6 22652 lib_pcsc="-lwinscard" 22653else 22654 echo "$ac_t""no" 1>&6 22655echo $ac_n "checking for SCardEstablishContext in -lpcsclite""... $ac_c" 1>&6 22656echo "configure:22657: checking for SCardEstablishContext in -lpcsclite" >&5 22657ac_lib_var=`echo pcsclite'_'SCardEstablishContext | sed 'y%./+-%__p_%'` 22658if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22659 echo $ac_n "(cached) $ac_c" 1>&6 22660else 22661 ac_save_LIBS="$LIBS" 22662LIBS=`echo "-lpcsclite $LIBS" | sed -e 's/-lc //'` 22663cat > conftest.$ac_ext <<EOF 22664#line 22665 "configure" 22665#include "confdefs.h" 22666/* Override any gcc2 internal prototype to avoid an error. */ 22667/* We use char because int might match the return type of a gcc2 22668 builtin and then its argument prototype would still apply. */ 22669char SCardEstablishContext(); 22670 22671int main() { 22672SCardEstablishContext() 22673; return 0; } 22674EOF 22675if { { eval echo configure:22676: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22676 rm -rf conftest* 22677 eval "ac_cv_lib_$ac_lib_var=yes" 22678else 22679 echo "configure: failed program was:" >&5 22680 cat conftest.$ac_ext >&5 22681 rm -rf conftest* 22682 eval "ac_cv_lib_$ac_lib_var=no" 22683fi 22684rm -f conftest* 22685LIBS="$ac_save_LIBS" 22686 22687fi 22688if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22689 echo "$ac_t""yes" 1>&6 22690 lib_pcsc="-lpcsclite" 22691else 22692 echo "$ac_t""no" 1>&6 22693fi 22694 22695fi 22696 22697fi 22698 22699 if test ."$lib_pcsc" = ."" -a "$ac_cv_lib_c_SCardEstablishContext" = yes ; then 22700 cat >> confdefs.h <<\EOF 22701#define HAVE_PCSC_IN_LIBC 1 22702EOF 22703 22704 fi 22705 ac_save_LIBS="$LIBS" 22706 LIBS="$LIBS $lib_pcsc" 22707 for ac_func in SCardEstablishContext 22708do 22709echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 22710echo "configure:22711: checking for $ac_func" >&5 22711if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 22712 echo $ac_n "(cached) $ac_c" 1>&6 22713else 22714 cat > conftest.$ac_ext <<EOF 22715#line 22716 "configure" 22716#include "confdefs.h" 22717/* System header to define __stub macros and hopefully few prototypes, 22718 which can conflict with char $ac_func(); below. */ 22719#include <assert.h> 22720/* Override any gcc2 internal prototype to avoid an error. */ 22721/* We use char because int might match the return type of a gcc2 22722 builtin and then its argument prototype would still apply. */ 22723char $ac_func(); 22724 22725int main() { 22726 22727/* The GNU C library defines this for functions which it implements 22728 to always fail with ENOSYS. Some functions are actually named 22729 something starting with __ and the normal name is an alias. */ 22730#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22731choke me 22732#else 22733$ac_func(); 22734#endif 22735 22736; return 0; } 22737EOF 22738if { { eval echo configure:22739: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22739 rm -rf conftest* 22740 eval "ac_cv_func_$ac_func=yes" 22741else 22742 echo "configure: failed program was:" >&5 22743 cat conftest.$ac_ext >&5 22744 rm -rf conftest* 22745 eval "ac_cv_func_$ac_func=no" 22746fi 22747rm -f conftest* 22748fi 22749 22750if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 22751 echo "$ac_t""yes" 1>&6 22752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 22753 cat >> confdefs.h <<EOF 22754#define $ac_tr_func 1 22755EOF 22756 22757else 22758 echo "$ac_t""no" 1>&6 22759fi 22760done 22761 22762 LIBS="$ac_save_LIBS" 22763fi 22764 22765if test "$CC" = cl.exe; then 22766 echo configure does not yet support library checks for cl.exe: 22767 echo checking for CRYPTO_free in -llibeay32... we know it is present 22768 echo checking for SSL_free in -lssleay32... we know it is present 22769 lib_crypto="-llibeay32" 22770 lib_ssl="-lssleay32" 22771else 22772 echo $ac_n "checking for CRYPTO_free in -lc""... $ac_c" 1>&6 22773echo "configure:22774: checking for CRYPTO_free in -lc" >&5 22774ac_lib_var=`echo c'_'CRYPTO_free | sed 'y%./+-%__p_%'` 22775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22776 echo $ac_n "(cached) $ac_c" 1>&6 22777else 22778 ac_save_LIBS="$LIBS" 22779LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 22780cat > conftest.$ac_ext <<EOF 22781#line 22782 "configure" 22782#include "confdefs.h" 22783/* Override any gcc2 internal prototype to avoid an error. */ 22784/* We use char because int might match the return type of a gcc2 22785 builtin and then its argument prototype would still apply. */ 22786char CRYPTO_free(); 22787 22788int main() { 22789CRYPTO_free() 22790; return 0; } 22791EOF 22792if { { eval echo configure:22793: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22793 rm -rf conftest* 22794 eval "ac_cv_lib_$ac_lib_var=yes" 22795else 22796 echo "configure: failed program was:" >&5 22797 cat conftest.$ac_ext >&5 22798 rm -rf conftest* 22799 eval "ac_cv_lib_$ac_lib_var=no" 22800fi 22801rm -f conftest* 22802LIBS="$ac_save_LIBS" 22803 22804fi 22805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22806 echo "$ac_t""yes" 1>&6 22807 lib_crypto="" 22808else 22809 echo "$ac_t""no" 1>&6 22810echo $ac_n "checking for CRYPTO_free in -lcrypto""... $ac_c" 1>&6 22811echo "configure:22812: checking for CRYPTO_free in -lcrypto" >&5 22812ac_lib_var=`echo crypto'_'CRYPTO_free | sed 'y%./+-%__p_%'` 22813if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22814 echo $ac_n "(cached) $ac_c" 1>&6 22815else 22816 ac_save_LIBS="$LIBS" 22817LIBS=`echo "-lcrypto $LIBS" | sed -e 's/-lc //'` 22818cat > conftest.$ac_ext <<EOF 22819#line 22820 "configure" 22820#include "confdefs.h" 22821/* Override any gcc2 internal prototype to avoid an error. */ 22822/* We use char because int might match the return type of a gcc2 22823 builtin and then its argument prototype would still apply. */ 22824char CRYPTO_free(); 22825 22826int main() { 22827CRYPTO_free() 22828; return 0; } 22829EOF 22830if { { eval echo configure:22831: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22831 rm -rf conftest* 22832 eval "ac_cv_lib_$ac_lib_var=yes" 22833else 22834 echo "configure: failed program was:" >&5 22835 cat conftest.$ac_ext >&5 22836 rm -rf conftest* 22837 eval "ac_cv_lib_$ac_lib_var=no" 22838fi 22839rm -f conftest* 22840LIBS="$ac_save_LIBS" 22841 22842fi 22843if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22844 echo "$ac_t""yes" 1>&6 22845 lib_crypto="-lcrypto" 22846else 22847 echo "$ac_t""no" 1>&6 22848fi 22849 22850fi 22851 22852 if test ."$lib_crypto" = ."" -a "$ac_cv_lib_c_CRYPTO_free" = yes ; then 22853 cat >> confdefs.h <<\EOF 22854#define HAVE_CRYPTO_IN_LIBC 1 22855EOF 22856 22857 fi 22858 ac_save_LIBS="$LIBS" 22859 LIBS="$LIBS $lib_crypto" 22860 for ac_func in CRYPTO_free 22861do 22862echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 22863echo "configure:22864: checking for $ac_func" >&5 22864if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 22865 echo $ac_n "(cached) $ac_c" 1>&6 22866else 22867 cat > conftest.$ac_ext <<EOF 22868#line 22869 "configure" 22869#include "confdefs.h" 22870/* System header to define __stub macros and hopefully few prototypes, 22871 which can conflict with char $ac_func(); below. */ 22872#include <assert.h> 22873/* Override any gcc2 internal prototype to avoid an error. */ 22874/* We use char because int might match the return type of a gcc2 22875 builtin and then its argument prototype would still apply. */ 22876char $ac_func(); 22877 22878int main() { 22879 22880/* The GNU C library defines this for functions which it implements 22881 to always fail with ENOSYS. Some functions are actually named 22882 something starting with __ and the normal name is an alias. */ 22883#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22884choke me 22885#else 22886$ac_func(); 22887#endif 22888 22889; return 0; } 22890EOF 22891if { { eval echo configure:22892: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22892 rm -rf conftest* 22893 eval "ac_cv_func_$ac_func=yes" 22894else 22895 echo "configure: failed program was:" >&5 22896 cat conftest.$ac_ext >&5 22897 rm -rf conftest* 22898 eval "ac_cv_func_$ac_func=no" 22899fi 22900rm -f conftest* 22901fi 22902 22903if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 22904 echo "$ac_t""yes" 1>&6 22905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 22906 cat >> confdefs.h <<EOF 22907#define $ac_tr_func 1 22908EOF 22909 22910else 22911 echo "$ac_t""no" 1>&6 22912fi 22913done 22914 22915 LIBS="$ac_save_LIBS" 22916 echo $ac_n "checking for SSL_free in -lc""... $ac_c" 1>&6 22917echo "configure:22918: checking for SSL_free in -lc" >&5 22918ac_lib_var=`echo c'_'SSL_free | sed 'y%./+-%__p_%'` 22919if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22920 echo $ac_n "(cached) $ac_c" 1>&6 22921else 22922 ac_save_LIBS="$LIBS" 22923LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 22924cat > conftest.$ac_ext <<EOF 22925#line 22926 "configure" 22926#include "confdefs.h" 22927/* Override any gcc2 internal prototype to avoid an error. */ 22928/* We use char because int might match the return type of a gcc2 22929 builtin and then its argument prototype would still apply. */ 22930char SSL_free(); 22931 22932int main() { 22933SSL_free() 22934; return 0; } 22935EOF 22936if { { eval echo configure:22937: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22937 rm -rf conftest* 22938 eval "ac_cv_lib_$ac_lib_var=yes" 22939else 22940 echo "configure: failed program was:" >&5 22941 cat conftest.$ac_ext >&5 22942 rm -rf conftest* 22943 eval "ac_cv_lib_$ac_lib_var=no" 22944fi 22945rm -f conftest* 22946LIBS="$ac_save_LIBS" 22947 22948fi 22949if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22950 echo "$ac_t""yes" 1>&6 22951 lib_ssl="" 22952else 22953 echo "$ac_t""no" 1>&6 22954echo $ac_n "checking for SSL_free in -lssl""... $ac_c" 1>&6 22955echo "configure:22956: checking for SSL_free in -lssl" >&5 22956ac_lib_var=`echo ssl'_'SSL_free | sed 'y%./+-%__p_%'` 22957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 22958 echo $ac_n "(cached) $ac_c" 1>&6 22959else 22960 ac_save_LIBS="$LIBS" 22961LIBS=`echo "-lssl $LIBS" | sed -e 's/-lc //'` 22962cat > conftest.$ac_ext <<EOF 22963#line 22964 "configure" 22964#include "confdefs.h" 22965/* Override any gcc2 internal prototype to avoid an error. */ 22966/* We use char because int might match the return type of a gcc2 22967 builtin and then its argument prototype would still apply. */ 22968char SSL_free(); 22969 22970int main() { 22971SSL_free() 22972; return 0; } 22973EOF 22974if { { eval echo configure:22975: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 22975 rm -rf conftest* 22976 eval "ac_cv_lib_$ac_lib_var=yes" 22977else 22978 echo "configure: failed program was:" >&5 22979 cat conftest.$ac_ext >&5 22980 rm -rf conftest* 22981 eval "ac_cv_lib_$ac_lib_var=no" 22982fi 22983rm -f conftest* 22984LIBS="$ac_save_LIBS" 22985 22986fi 22987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 22988 echo "$ac_t""yes" 1>&6 22989 lib_ssl="-lssl" 22990else 22991 echo "$ac_t""no" 1>&6 22992fi 22993 22994fi 22995 22996 if test ."$lib_ssl" = ."" -a "$ac_cv_lib_c_SSL_free" = yes ; then 22997 cat >> confdefs.h <<\EOF 22998#define HAVE_SSL_IN_LIBC 1 22999EOF 23000 23001 fi 23002 ac_save_LIBS="$LIBS" 23003 LIBS="$LIBS $lib_ssl" 23004 for ac_func in SSL_free 23005do 23006echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23007echo "configure:23008: checking for $ac_func" >&5 23008if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23009 echo $ac_n "(cached) $ac_c" 1>&6 23010else 23011 cat > conftest.$ac_ext <<EOF 23012#line 23013 "configure" 23013#include "confdefs.h" 23014/* System header to define __stub macros and hopefully few prototypes, 23015 which can conflict with char $ac_func(); below. */ 23016#include <assert.h> 23017/* Override any gcc2 internal prototype to avoid an error. */ 23018/* We use char because int might match the return type of a gcc2 23019 builtin and then its argument prototype would still apply. */ 23020char $ac_func(); 23021 23022int main() { 23023 23024/* The GNU C library defines this for functions which it implements 23025 to always fail with ENOSYS. Some functions are actually named 23026 something starting with __ and the normal name is an alias. */ 23027#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23028choke me 23029#else 23030$ac_func(); 23031#endif 23032 23033; return 0; } 23034EOF 23035if { { eval echo configure:23036: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23036 rm -rf conftest* 23037 eval "ac_cv_func_$ac_func=yes" 23038else 23039 echo "configure: failed program was:" >&5 23040 cat conftest.$ac_ext >&5 23041 rm -rf conftest* 23042 eval "ac_cv_func_$ac_func=no" 23043fi 23044rm -f conftest* 23045fi 23046 23047if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23048 echo "$ac_t""yes" 1>&6 23049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23050 cat >> confdefs.h <<EOF 23051#define $ac_tr_func 1 23052EOF 23053 23054else 23055 echo "$ac_t""no" 1>&6 23056fi 23057done 23058 23059 LIBS="$ac_save_LIBS" 23060fi 23061 23062if test $ac_cv_header_camlib_h = yes; then 23063 scsi_lib=-lcam 23064 lib_scsi=-lcam 23065fi 23066 23067if test "$ac_cv_header_sys_acl_h" = yes; then 23068 23069 echo "checking for withdrawn Posix draft Access Control List support" 1>&6 23070echo "configure:23071: checking for withdrawn Posix draft Access Control List support" >&5 23071 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 23072echo "configure:23073: checking for acl_get_file in -lacl" >&5 23073ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` 23074if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 23075 echo $ac_n "(cached) $ac_c" 1>&6 23076else 23077 ac_save_LIBS="$LIBS" 23078LIBS=`echo "-lacl $LIBS" | sed -e 's/-lc //'` 23079cat > conftest.$ac_ext <<EOF 23080#line 23081 "configure" 23081#include "confdefs.h" 23082/* Override any gcc2 internal prototype to avoid an error. */ 23083/* We use char because int might match the return type of a gcc2 23084 builtin and then its argument prototype would still apply. */ 23085char acl_get_file(); 23086 23087int main() { 23088acl_get_file() 23089; return 0; } 23090EOF 23091if { { eval echo configure:23092: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23092 rm -rf conftest* 23093 eval "ac_cv_lib_$ac_lib_var=yes" 23094else 23095 echo "configure: failed program was:" >&5 23096 cat conftest.$ac_ext >&5 23097 rm -rf conftest* 23098 eval "ac_cv_lib_$ac_lib_var=no" 23099fi 23100rm -f conftest* 23101LIBS="$ac_save_LIBS" 23102 23103fi 23104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23105 echo "$ac_t""yes" 1>&6 23106 lib_acl="-lacl" 23107else 23108 echo "$ac_t""no" 1>&6 23109fi 23110 23111 echo $ac_n "checking for acl_get_file in -lpacl""... $ac_c" 1>&6 23112echo "configure:23113: checking for acl_get_file in -lpacl" >&5 23113ac_lib_var=`echo pacl'_'acl_get_file | sed 'y%./+-%__p_%'` 23114if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 23115 echo $ac_n "(cached) $ac_c" 1>&6 23116else 23117 ac_save_LIBS="$LIBS" 23118LIBS=`echo "-lpacl $LIBS" | sed -e 's/-lc //'` 23119cat > conftest.$ac_ext <<EOF 23120#line 23121 "configure" 23121#include "confdefs.h" 23122/* Override any gcc2 internal prototype to avoid an error. */ 23123/* We use char because int might match the return type of a gcc2 23124 builtin and then its argument prototype would still apply. */ 23125char acl_get_file(); 23126 23127int main() { 23128acl_get_file() 23129; return 0; } 23130EOF 23131if { { eval echo configure:23132: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23132 rm -rf conftest* 23133 eval "ac_cv_lib_$ac_lib_var=yes" 23134else 23135 echo "configure: failed program was:" >&5 23136 cat conftest.$ac_ext >&5 23137 rm -rf conftest* 23138 eval "ac_cv_lib_$ac_lib_var=no" 23139fi 23140rm -f conftest* 23141LIBS="$ac_save_LIBS" 23142 23143fi 23144if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23145 echo "$ac_t""yes" 1>&6 23146 lib_acl="-lpacl" 23147else 23148 echo "$ac_t""no" 1>&6 23149fi 23150 23151 23152 23153 if test ".$lib_acl" != .; then 23154 lib_acl_test="$lib_acl" 23155 fi 23156 23157 ac_save_LIBS="$LIBS" 23158 LIBS="$LIBS $lib_acl" 23159 for ac_func in acl_get_file acl_set_file acl_from_text acl_to_text acl_free acl_delete_def_file 23160do 23161echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23162echo "configure:23163: checking for $ac_func" >&5 23163if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23164 echo $ac_n "(cached) $ac_c" 1>&6 23165else 23166 cat > conftest.$ac_ext <<EOF 23167#line 23168 "configure" 23168#include "confdefs.h" 23169/* System header to define __stub macros and hopefully few prototypes, 23170 which can conflict with char $ac_func(); below. */ 23171#include <assert.h> 23172/* Override any gcc2 internal prototype to avoid an error. */ 23173/* We use char because int might match the return type of a gcc2 23174 builtin and then its argument prototype would still apply. */ 23175char $ac_func(); 23176 23177int main() { 23178 23179/* The GNU C library defines this for functions which it implements 23180 to always fail with ENOSYS. Some functions are actually named 23181 something starting with __ and the normal name is an alias. */ 23182#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23183choke me 23184#else 23185$ac_func(); 23186#endif 23187 23188; return 0; } 23189EOF 23190if { { eval echo configure:23191: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23191 rm -rf conftest* 23192 eval "ac_cv_func_$ac_func=yes" 23193else 23194 echo "configure: failed program was:" >&5 23195 cat conftest.$ac_ext >&5 23196 rm -rf conftest* 23197 eval "ac_cv_func_$ac_func=no" 23198fi 23199rm -f conftest* 23200fi 23201 23202if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23203 echo "$ac_t""yes" 1>&6 23204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23205 cat >> confdefs.h <<EOF 23206#define $ac_tr_func 1 23207EOF 23208 23209else 23210 echo "$ac_t""no" 1>&6 23211fi 23212done 23213 23214 for ac_func in acl_extended_file 23215do 23216echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23217echo "configure:23218: checking for $ac_func" >&5 23218if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23219 echo $ac_n "(cached) $ac_c" 1>&6 23220else 23221 cat > conftest.$ac_ext <<EOF 23222#line 23223 "configure" 23223#include "confdefs.h" 23224/* System header to define __stub macros and hopefully few prototypes, 23225 which can conflict with char $ac_func(); below. */ 23226#include <assert.h> 23227/* Override any gcc2 internal prototype to avoid an error. */ 23228/* We use char because int might match the return type of a gcc2 23229 builtin and then its argument prototype would still apply. */ 23230char $ac_func(); 23231 23232int main() { 23233 23234/* The GNU C library defines this for functions which it implements 23235 to always fail with ENOSYS. Some functions are actually named 23236 something starting with __ and the normal name is an alias. */ 23237#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23238choke me 23239#else 23240$ac_func(); 23241#endif 23242 23243; return 0; } 23244EOF 23245if { { eval echo configure:23246: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23246 rm -rf conftest* 23247 eval "ac_cv_func_$ac_func=yes" 23248else 23249 echo "configure: failed program was:" >&5 23250 cat conftest.$ac_ext >&5 23251 rm -rf conftest* 23252 eval "ac_cv_func_$ac_func=no" 23253fi 23254rm -f conftest* 23255fi 23256 23257if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23258 echo "$ac_t""yes" 1>&6 23259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23260 cat >> confdefs.h <<EOF 23261#define $ac_tr_func 1 23262EOF 23263 23264else 23265 echo "$ac_t""no" 1>&6 23266fi 23267done 23268 23269 for ac_func in acl_get_entry 23270do 23271echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23272echo "configure:23273: checking for $ac_func" >&5 23273if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23274 echo $ac_n "(cached) $ac_c" 1>&6 23275else 23276 cat > conftest.$ac_ext <<EOF 23277#line 23278 "configure" 23278#include "confdefs.h" 23279/* System header to define __stub macros and hopefully few prototypes, 23280 which can conflict with char $ac_func(); below. */ 23281#include <assert.h> 23282/* Override any gcc2 internal prototype to avoid an error. */ 23283/* We use char because int might match the return type of a gcc2 23284 builtin and then its argument prototype would still apply. */ 23285char $ac_func(); 23286 23287int main() { 23288 23289/* The GNU C library defines this for functions which it implements 23290 to always fail with ENOSYS. Some functions are actually named 23291 something starting with __ and the normal name is an alias. */ 23292#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23293choke me 23294#else 23295$ac_func(); 23296#endif 23297 23298; return 0; } 23299EOF 23300if { { eval echo configure:23301: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23301 rm -rf conftest* 23302 eval "ac_cv_func_$ac_func=yes" 23303else 23304 echo "configure: failed program was:" >&5 23305 cat conftest.$ac_ext >&5 23306 rm -rf conftest* 23307 eval "ac_cv_func_$ac_func=no" 23308fi 23309rm -f conftest* 23310fi 23311 23312if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23313 echo "$ac_t""yes" 1>&6 23314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23315 cat >> confdefs.h <<EOF 23316#define $ac_tr_func 1 23317EOF 23318 23319else 23320 echo "$ac_t""no" 1>&6 23321fi 23322done 23323 23324 for ac_func in acl_to_text_np acl_get_brand_np acl_is_trivial_np acl_strip_np 23325do 23326echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23327echo "configure:23328: checking for $ac_func" >&5 23328if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23329 echo $ac_n "(cached) $ac_c" 1>&6 23330else 23331 cat > conftest.$ac_ext <<EOF 23332#line 23333 "configure" 23333#include "confdefs.h" 23334/* System header to define __stub macros and hopefully few prototypes, 23335 which can conflict with char $ac_func(); below. */ 23336#include <assert.h> 23337/* Override any gcc2 internal prototype to avoid an error. */ 23338/* We use char because int might match the return type of a gcc2 23339 builtin and then its argument prototype would still apply. */ 23340char $ac_func(); 23341 23342int main() { 23343 23344/* The GNU C library defines this for functions which it implements 23345 to always fail with ENOSYS. Some functions are actually named 23346 something starting with __ and the normal name is an alias. */ 23347#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23348choke me 23349#else 23350$ac_func(); 23351#endif 23352 23353; return 0; } 23354EOF 23355if { { eval echo configure:23356: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23356 rm -rf conftest* 23357 eval "ac_cv_func_$ac_func=yes" 23358else 23359 echo "configure: failed program was:" >&5 23360 cat conftest.$ac_ext >&5 23361 rm -rf conftest* 23362 eval "ac_cv_func_$ac_func=no" 23363fi 23364rm -f conftest* 23365fi 23366 23367if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23368 echo "$ac_t""yes" 1>&6 23369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23370 cat >> confdefs.h <<EOF 23371#define $ac_tr_func 1 23372EOF 23373 23374else 23375 echo "$ac_t""no" 1>&6 23376fi 23377done 23378 23379 LIBS="$ac_save_LIBS" 23380 23381 echo "checking for Solaris UFS Access Control List support" 1>&6 23382echo "configure:23383: checking for Solaris UFS Access Control List support" >&5 23383 echo $ac_n "checking for acltotext in -lsec""... $ac_c" 1>&6 23384echo "configure:23385: checking for acltotext in -lsec" >&5 23385ac_lib_var=`echo sec'_'acltotext | sed 'y%./+-%__p_%'` 23386if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 23387 echo $ac_n "(cached) $ac_c" 1>&6 23388else 23389 ac_save_LIBS="$LIBS" 23390LIBS=`echo "-lsec $LIBS" | sed -e 's/-lc //'` 23391cat > conftest.$ac_ext <<EOF 23392#line 23393 "configure" 23393#include "confdefs.h" 23394/* Override any gcc2 internal prototype to avoid an error. */ 23395/* We use char because int might match the return type of a gcc2 23396 builtin and then its argument prototype would still apply. */ 23397char acltotext(); 23398 23399int main() { 23400acltotext() 23401; return 0; } 23402EOF 23403if { { eval echo configure:23404: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23404 rm -rf conftest* 23405 eval "ac_cv_lib_$ac_lib_var=yes" 23406else 23407 echo "configure: failed program was:" >&5 23408 cat conftest.$ac_ext >&5 23409 rm -rf conftest* 23410 eval "ac_cv_lib_$ac_lib_var=no" 23411fi 23412rm -f conftest* 23413LIBS="$ac_save_LIBS" 23414 23415fi 23416if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23417 echo "$ac_t""yes" 1>&6 23418 lib_acl="-lsec" 23419else 23420 echo "$ac_t""no" 1>&6 23421fi 23422 23423 ac_save_LIBS="$LIBS" 23424 LIBS="$LIBS $lib_acl" 23425 for ac_func in acl facl aclfromtext acltotext 23426do 23427echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23428echo "configure:23429: checking for $ac_func" >&5 23429if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23430 echo $ac_n "(cached) $ac_c" 1>&6 23431else 23432 cat > conftest.$ac_ext <<EOF 23433#line 23434 "configure" 23434#include "confdefs.h" 23435/* System header to define __stub macros and hopefully few prototypes, 23436 which can conflict with char $ac_func(); below. */ 23437#include <assert.h> 23438/* Override any gcc2 internal prototype to avoid an error. */ 23439/* We use char because int might match the return type of a gcc2 23440 builtin and then its argument prototype would still apply. */ 23441char $ac_func(); 23442 23443int main() { 23444 23445/* The GNU C library defines this for functions which it implements 23446 to always fail with ENOSYS. Some functions are actually named 23447 something starting with __ and the normal name is an alias. */ 23448#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23449choke me 23450#else 23451$ac_func(); 23452#endif 23453 23454; return 0; } 23455EOF 23456if { { eval echo configure:23457: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23457 rm -rf conftest* 23458 eval "ac_cv_func_$ac_func=yes" 23459else 23460 echo "configure: failed program was:" >&5 23461 cat conftest.$ac_ext >&5 23462 rm -rf conftest* 23463 eval "ac_cv_func_$ac_func=no" 23464fi 23465rm -f conftest* 23466fi 23467 23468if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23469 echo "$ac_t""yes" 1>&6 23470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23471 cat >> confdefs.h <<EOF 23472#define $ac_tr_func 1 23473EOF 23474 23475else 23476 echo "$ac_t""no" 1>&6 23477fi 23478done 23479 23480 23481 echo "checking for NFSv4 Access Control List support" 1>&6 23482echo "configure:23483: checking for NFSv4 Access Control List support" >&5 23483 for ac_func in acl_get acl_set facl_get facl_set acl_fromtext acl_totext 23484do 23485echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23486echo "configure:23487: checking for $ac_func" >&5 23487if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23488 echo $ac_n "(cached) $ac_c" 1>&6 23489else 23490 cat > conftest.$ac_ext <<EOF 23491#line 23492 "configure" 23492#include "confdefs.h" 23493/* System header to define __stub macros and hopefully few prototypes, 23494 which can conflict with char $ac_func(); below. */ 23495#include <assert.h> 23496/* Override any gcc2 internal prototype to avoid an error. */ 23497/* We use char because int might match the return type of a gcc2 23498 builtin and then its argument prototype would still apply. */ 23499char $ac_func(); 23500 23501int main() { 23502 23503/* The GNU C library defines this for functions which it implements 23504 to always fail with ENOSYS. Some functions are actually named 23505 something starting with __ and the normal name is an alias. */ 23506#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23507choke me 23508#else 23509$ac_func(); 23510#endif 23511 23512; return 0; } 23513EOF 23514if { { eval echo configure:23515: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23515 rm -rf conftest* 23516 eval "ac_cv_func_$ac_func=yes" 23517else 23518 echo "configure: failed program was:" >&5 23519 cat conftest.$ac_ext >&5 23520 rm -rf conftest* 23521 eval "ac_cv_func_$ac_func=no" 23522fi 23523rm -f conftest* 23524fi 23525 23526if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23527 echo "$ac_t""yes" 1>&6 23528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23529 cat >> confdefs.h <<EOF 23530#define $ac_tr_func 1 23531EOF 23532 23533else 23534 echo "$ac_t""no" 1>&6 23535fi 23536done 23537 23538 LIBS="$ac_save_LIBS" 23539 23540 23541 echo "checking for HP-UX Access Control List support" 1>&6 23542echo "configure:23543: checking for HP-UX Access Control List support" >&5 23543 for ac_func in getacl fgetacl setacl fsetacl strtoacl acltostr cpacl fcpacl chownacl setaclentry fsetaclentry 23544do 23545echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23546echo "configure:23547: checking for $ac_func" >&5 23547if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23548 echo $ac_n "(cached) $ac_c" 1>&6 23549else 23550 cat > conftest.$ac_ext <<EOF 23551#line 23552 "configure" 23552#include "confdefs.h" 23553/* System header to define __stub macros and hopefully few prototypes, 23554 which can conflict with char $ac_func(); below. */ 23555#include <assert.h> 23556/* Override any gcc2 internal prototype to avoid an error. */ 23557/* We use char because int might match the return type of a gcc2 23558 builtin and then its argument prototype would still apply. */ 23559char $ac_func(); 23560 23561int main() { 23562 23563/* The GNU C library defines this for functions which it implements 23564 to always fail with ENOSYS. Some functions are actually named 23565 something starting with __ and the normal name is an alias. */ 23566#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23567choke me 23568#else 23569$ac_func(); 23570#endif 23571 23572; return 0; } 23573EOF 23574if { { eval echo configure:23575: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23575 rm -rf conftest* 23576 eval "ac_cv_func_$ac_func=yes" 23577else 23578 echo "configure: failed program was:" >&5 23579 cat conftest.$ac_ext >&5 23580 rm -rf conftest* 23581 eval "ac_cv_func_$ac_func=no" 23582fi 23583rm -f conftest* 23584fi 23585 23586if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23587 echo "$ac_t""yes" 1>&6 23588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23589 cat >> confdefs.h <<EOF 23590#define $ac_tr_func 1 23591EOF 23592 23593else 23594 echo "$ac_t""no" 1>&6 23595fi 23596done 23597 23598 23599 23600fi 23601 23602if test "$ac_cv_header_attr_xattr_h" = yes || test "$ac_cv_header_sys_xattr_h" = yes; then 23603 echo "checking for Linux flavor Extended Attribute support" 1>&6 23604echo "configure:23605: checking for Linux flavor Extended Attribute support" >&5 23605 echo $ac_n "checking for getxattr in -lc""... $ac_c" 1>&6 23606echo "configure:23607: checking for getxattr in -lc" >&5 23607ac_lib_var=`echo c'_'getxattr | sed 'y%./+-%__p_%'` 23608if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 23609 echo $ac_n "(cached) $ac_c" 1>&6 23610else 23611 ac_save_LIBS="$LIBS" 23612LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 23613cat > conftest.$ac_ext <<EOF 23614#line 23615 "configure" 23615#include "confdefs.h" 23616/* Override any gcc2 internal prototype to avoid an error. */ 23617/* We use char because int might match the return type of a gcc2 23618 builtin and then its argument prototype would still apply. */ 23619char getxattr(); 23620 23621int main() { 23622getxattr() 23623; return 0; } 23624EOF 23625if { { eval echo configure:23626: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23626 rm -rf conftest* 23627 eval "ac_cv_lib_$ac_lib_var=yes" 23628else 23629 echo "configure: failed program was:" >&5 23630 cat conftest.$ac_ext >&5 23631 rm -rf conftest* 23632 eval "ac_cv_lib_$ac_lib_var=no" 23633fi 23634rm -f conftest* 23635LIBS="$ac_save_LIBS" 23636 23637fi 23638if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23639 echo "$ac_t""yes" 1>&6 23640 lib_rt="" 23641else 23642 echo "$ac_t""no" 1>&6 23643echo $ac_n "checking for getxattr in -lattr""... $ac_c" 1>&6 23644echo "configure:23645: checking for getxattr in -lattr" >&5 23645ac_lib_var=`echo attr'_'getxattr | sed 'y%./+-%__p_%'` 23646if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 23647 echo $ac_n "(cached) $ac_c" 1>&6 23648else 23649 ac_save_LIBS="$LIBS" 23650LIBS=`echo "-lattr $LIBS" | sed -e 's/-lc //'` 23651cat > conftest.$ac_ext <<EOF 23652#line 23653 "configure" 23653#include "confdefs.h" 23654/* Override any gcc2 internal prototype to avoid an error. */ 23655/* We use char because int might match the return type of a gcc2 23656 builtin and then its argument prototype would still apply. */ 23657char getxattr(); 23658 23659int main() { 23660getxattr() 23661; return 0; } 23662EOF 23663if { { eval echo configure:23664: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23664 rm -rf conftest* 23665 eval "ac_cv_lib_$ac_lib_var=yes" 23666else 23667 echo "configure: failed program was:" >&5 23668 cat conftest.$ac_ext >&5 23669 rm -rf conftest* 23670 eval "ac_cv_lib_$ac_lib_var=no" 23671fi 23672rm -f conftest* 23673LIBS="$ac_save_LIBS" 23674 23675fi 23676if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23677 echo "$ac_t""yes" 1>&6 23678 lib_attr="-lattr" 23679else 23680 echo "$ac_t""no" 1>&6 23681fi 23682 23683fi 23684 23685 ac_save_LIBS="$LIBS" 23686 LIBS="$LIBS $lib_attr" 23687 for ac_func in getxattr setxattr listxattr lgetxattr lsetxattr llistxattr 23688do 23689echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23690echo "configure:23691: checking for $ac_func" >&5 23691if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23692 echo $ac_n "(cached) $ac_c" 1>&6 23693else 23694 cat > conftest.$ac_ext <<EOF 23695#line 23696 "configure" 23696#include "confdefs.h" 23697/* System header to define __stub macros and hopefully few prototypes, 23698 which can conflict with char $ac_func(); below. */ 23699#include <assert.h> 23700/* Override any gcc2 internal prototype to avoid an error. */ 23701/* We use char because int might match the return type of a gcc2 23702 builtin and then its argument prototype would still apply. */ 23703char $ac_func(); 23704 23705int main() { 23706 23707/* The GNU C library defines this for functions which it implements 23708 to always fail with ENOSYS. Some functions are actually named 23709 something starting with __ and the normal name is an alias. */ 23710#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23711choke me 23712#else 23713$ac_func(); 23714#endif 23715 23716; return 0; } 23717EOF 23718if { { eval echo configure:23719: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23719 rm -rf conftest* 23720 eval "ac_cv_func_$ac_func=yes" 23721else 23722 echo "configure: failed program was:" >&5 23723 cat conftest.$ac_ext >&5 23724 rm -rf conftest* 23725 eval "ac_cv_func_$ac_func=no" 23726fi 23727rm -f conftest* 23728fi 23729 23730if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23731 echo "$ac_t""yes" 1>&6 23732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23733 cat >> confdefs.h <<EOF 23734#define $ac_tr_func 1 23735EOF 23736 23737else 23738 echo "$ac_t""no" 1>&6 23739fi 23740done 23741 23742 LIBS="$ac_save_LIBS" 23743fi 23744 23745echo "checking for RBAC support" 1>&6 23746echo "configure:23747: checking for RBAC support" >&5 23747echo $ac_n "checking for getuserattr in -lsecdb""... $ac_c" 1>&6 23748echo "configure:23749: checking for getuserattr in -lsecdb" >&5 23749ac_lib_var=`echo secdb'_'getuserattr | sed 'y%./+-%__p_%'` 23750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 23751 echo $ac_n "(cached) $ac_c" 1>&6 23752else 23753 ac_save_LIBS="$LIBS" 23754LIBS=`echo "-lsecdb $LIBS" | sed -e 's/-lc //'` 23755cat > conftest.$ac_ext <<EOF 23756#line 23757 "configure" 23757#include "confdefs.h" 23758/* Override any gcc2 internal prototype to avoid an error. */ 23759/* We use char because int might match the return type of a gcc2 23760 builtin and then its argument prototype would still apply. */ 23761char getuserattr(); 23762 23763int main() { 23764getuserattr() 23765; return 0; } 23766EOF 23767if { { eval echo configure:23768: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23768 rm -rf conftest* 23769 eval "ac_cv_lib_$ac_lib_var=yes" 23770else 23771 echo "configure: failed program was:" >&5 23772 cat conftest.$ac_ext >&5 23773 rm -rf conftest* 23774 eval "ac_cv_lib_$ac_lib_var=no" 23775fi 23776rm -f conftest* 23777LIBS="$ac_save_LIBS" 23778 23779fi 23780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23781 echo "$ac_t""yes" 1>&6 23782 lib_secdb="-lsecdb" 23783else 23784 echo "$ac_t""no" 1>&6 23785fi 23786 23787ac_save_LIBS="$LIBS" 23788LIBS="$LIBS $lib_secdb" 23789for ac_func in getauthattr getuserattr getexecattr getprofattr 23790do 23791echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23792echo "configure:23793: checking for $ac_func" >&5 23793if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23794 echo $ac_n "(cached) $ac_c" 1>&6 23795else 23796 cat > conftest.$ac_ext <<EOF 23797#line 23798 "configure" 23798#include "confdefs.h" 23799/* System header to define __stub macros and hopefully few prototypes, 23800 which can conflict with char $ac_func(); below. */ 23801#include <assert.h> 23802/* Override any gcc2 internal prototype to avoid an error. */ 23803/* We use char because int might match the return type of a gcc2 23804 builtin and then its argument prototype would still apply. */ 23805char $ac_func(); 23806 23807int main() { 23808 23809/* The GNU C library defines this for functions which it implements 23810 to always fail with ENOSYS. Some functions are actually named 23811 something starting with __ and the normal name is an alias. */ 23812#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23813choke me 23814#else 23815$ac_func(); 23816#endif 23817 23818; return 0; } 23819EOF 23820if { { eval echo configure:23821: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23821 rm -rf conftest* 23822 eval "ac_cv_func_$ac_func=yes" 23823else 23824 echo "configure: failed program was:" >&5 23825 cat conftest.$ac_ext >&5 23826 rm -rf conftest* 23827 eval "ac_cv_func_$ac_func=no" 23828fi 23829rm -f conftest* 23830fi 23831 23832if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23833 echo "$ac_t""yes" 1>&6 23834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23835 cat >> confdefs.h <<EOF 23836#define $ac_tr_func 1 23837EOF 23838 23839else 23840 echo "$ac_t""no" 1>&6 23841fi 23842done 23843 23844LIBS="$ac_save_LIBS" 23845 23846echo "checking for gmatch() support" 1>&6 23847echo "configure:23848: checking for gmatch() support" >&5 23848echo $ac_n "checking for gmatch in -lgen""... $ac_c" 1>&6 23849echo "configure:23850: checking for gmatch in -lgen" >&5 23850ac_lib_var=`echo gen'_'gmatch | sed 'y%./+-%__p_%'` 23851if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 23852 echo $ac_n "(cached) $ac_c" 1>&6 23853else 23854 ac_save_LIBS="$LIBS" 23855LIBS=`echo "-lgen $LIBS" | sed -e 's/-lc //'` 23856cat > conftest.$ac_ext <<EOF 23857#line 23858 "configure" 23858#include "confdefs.h" 23859/* Override any gcc2 internal prototype to avoid an error. */ 23860/* We use char because int might match the return type of a gcc2 23861 builtin and then its argument prototype would still apply. */ 23862char gmatch(); 23863 23864int main() { 23865gmatch() 23866; return 0; } 23867EOF 23868if { { eval echo configure:23869: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23869 rm -rf conftest* 23870 eval "ac_cv_lib_$ac_lib_var=yes" 23871else 23872 echo "configure: failed program was:" >&5 23873 cat conftest.$ac_ext >&5 23874 rm -rf conftest* 23875 eval "ac_cv_lib_$ac_lib_var=no" 23876fi 23877rm -f conftest* 23878LIBS="$ac_save_LIBS" 23879 23880fi 23881if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23882 echo "$ac_t""yes" 1>&6 23883 lib_gen="-lgen" 23884else 23885 echo "$ac_t""no" 1>&6 23886fi 23887 23888ac_save_LIBS="$LIBS" 23889LIBS="$LIBS $lib_gen" 23890for ac_func in gmatch 23891do 23892echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23893echo "configure:23894: checking for $ac_func" >&5 23894if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23895 echo $ac_n "(cached) $ac_c" 1>&6 23896else 23897 cat > conftest.$ac_ext <<EOF 23898#line 23899 "configure" 23899#include "confdefs.h" 23900/* System header to define __stub macros and hopefully few prototypes, 23901 which can conflict with char $ac_func(); below. */ 23902#include <assert.h> 23903/* Override any gcc2 internal prototype to avoid an error. */ 23904/* We use char because int might match the return type of a gcc2 23905 builtin and then its argument prototype would still apply. */ 23906char $ac_func(); 23907 23908int main() { 23909 23910/* The GNU C library defines this for functions which it implements 23911 to always fail with ENOSYS. Some functions are actually named 23912 something starting with __ and the normal name is an alias. */ 23913#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23914choke me 23915#else 23916$ac_func(); 23917#endif 23918 23919; return 0; } 23920EOF 23921if { { eval echo configure:23922: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23922 rm -rf conftest* 23923 eval "ac_cv_func_$ac_func=yes" 23924else 23925 echo "configure: failed program was:" >&5 23926 cat conftest.$ac_ext >&5 23927 rm -rf conftest* 23928 eval "ac_cv_func_$ac_func=no" 23929fi 23930rm -f conftest* 23931fi 23932 23933if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 23934 echo "$ac_t""yes" 1>&6 23935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 23936 cat >> confdefs.h <<EOF 23937#define $ac_tr_func 1 23938EOF 23939 23940else 23941 echo "$ac_t""no" 1>&6 23942fi 23943done 23944 23945LIBS="$ac_save_LIBS" 23946 23947echo "checking for ELF support" 1>&6 23948echo "configure:23949: checking for ELF support" >&5 23949echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 23950echo "configure:23951: checking for elf_begin in -lelf" >&5 23951ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 23952if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 23953 echo $ac_n "(cached) $ac_c" 1>&6 23954else 23955 ac_save_LIBS="$LIBS" 23956LIBS=`echo "-lelf $LIBS" | sed -e 's/-lc //'` 23957cat > conftest.$ac_ext <<EOF 23958#line 23959 "configure" 23959#include "confdefs.h" 23960/* Override any gcc2 internal prototype to avoid an error. */ 23961/* We use char because int might match the return type of a gcc2 23962 builtin and then its argument prototype would still apply. */ 23963char elf_begin(); 23964 23965int main() { 23966elf_begin() 23967; return 0; } 23968EOF 23969if { { eval echo configure:23970: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 23970 rm -rf conftest* 23971 eval "ac_cv_lib_$ac_lib_var=yes" 23972else 23973 echo "configure: failed program was:" >&5 23974 cat conftest.$ac_ext >&5 23975 rm -rf conftest* 23976 eval "ac_cv_lib_$ac_lib_var=no" 23977fi 23978rm -f conftest* 23979LIBS="$ac_save_LIBS" 23980 23981fi 23982if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23983 echo "$ac_t""yes" 1>&6 23984 lib_elf="-lelf" 23985else 23986 echo "$ac_t""no" 1>&6 23987fi 23988 23989ac_save_LIBS="$LIBS" 23990LIBS="$LIBS $lib_elf" 23991for ac_func in elf_begin 23992do 23993echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 23994echo "configure:23995: checking for $ac_func" >&5 23995if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 23996 echo $ac_n "(cached) $ac_c" 1>&6 23997else 23998 cat > conftest.$ac_ext <<EOF 23999#line 24000 "configure" 24000#include "confdefs.h" 24001/* System header to define __stub macros and hopefully few prototypes, 24002 which can conflict with char $ac_func(); below. */ 24003#include <assert.h> 24004/* Override any gcc2 internal prototype to avoid an error. */ 24005/* We use char because int might match the return type of a gcc2 24006 builtin and then its argument prototype would still apply. */ 24007char $ac_func(); 24008 24009int main() { 24010 24011/* The GNU C library defines this for functions which it implements 24012 to always fail with ENOSYS. Some functions are actually named 24013 something starting with __ and the normal name is an alias. */ 24014#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24015choke me 24016#else 24017$ac_func(); 24018#endif 24019 24020; return 0; } 24021EOF 24022if { { eval echo configure:24023: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24023 rm -rf conftest* 24024 eval "ac_cv_func_$ac_func=yes" 24025else 24026 echo "configure: failed program was:" >&5 24027 cat conftest.$ac_ext >&5 24028 rm -rf conftest* 24029 eval "ac_cv_func_$ac_func=no" 24030fi 24031rm -f conftest* 24032fi 24033 24034if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24035 echo "$ac_t""yes" 1>&6 24036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24037 cat >> confdefs.h <<EOF 24038#define $ac_tr_func 1 24039EOF 24040 24041else 24042 echo "$ac_t""no" 1>&6 24043fi 24044done 24045 24046LIBS="$ac_save_LIBS" 24047 24048for ac_func in thr_yield 24049do 24050echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24051echo "configure:24052: checking for $ac_func" >&5 24052if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24053 echo $ac_n "(cached) $ac_c" 1>&6 24054else 24055 cat > conftest.$ac_ext <<EOF 24056#line 24057 "configure" 24057#include "confdefs.h" 24058/* System header to define __stub macros and hopefully few prototypes, 24059 which can conflict with char $ac_func(); below. */ 24060#include <assert.h> 24061/* Override any gcc2 internal prototype to avoid an error. */ 24062/* We use char because int might match the return type of a gcc2 24063 builtin and then its argument prototype would still apply. */ 24064char $ac_func(); 24065 24066int main() { 24067 24068/* The GNU C library defines this for functions which it implements 24069 to always fail with ENOSYS. Some functions are actually named 24070 something starting with __ and the normal name is an alias. */ 24071#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24072choke me 24073#else 24074$ac_func(); 24075#endif 24076 24077; return 0; } 24078EOF 24079if { { eval echo configure:24080: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24080 rm -rf conftest* 24081 eval "ac_cv_func_$ac_func=yes" 24082else 24083 echo "configure: failed program was:" >&5 24084 cat conftest.$ac_ext >&5 24085 rm -rf conftest* 24086 eval "ac_cv_func_$ac_func=no" 24087fi 24088rm -f conftest* 24089fi 24090 24091if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24092 echo "$ac_t""yes" 1>&6 24093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24094 cat >> confdefs.h <<EOF 24095#define $ac_tr_func 1 24096EOF 24097 24098else 24099 echo "$ac_t""no" 1>&6 24100fi 24101done 24102 24103 24104 24105echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 24106echo "configure:24107: checking for pthread_create in -lc" >&5 24107ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'` 24108if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 24109 echo $ac_n "(cached) $ac_c" 1>&6 24110else 24111 ac_save_LIBS="$LIBS" 24112LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 24113cat > conftest.$ac_ext <<EOF 24114#line 24115 "configure" 24115#include "confdefs.h" 24116/* Override any gcc2 internal prototype to avoid an error. */ 24117/* We use char because int might match the return type of a gcc2 24118 builtin and then its argument prototype would still apply. */ 24119char pthread_create(); 24120 24121int main() { 24122pthread_create() 24123; return 0; } 24124EOF 24125if { { eval echo configure:24126: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24126 rm -rf conftest* 24127 eval "ac_cv_lib_$ac_lib_var=yes" 24128else 24129 echo "configure: failed program was:" >&5 24130 cat conftest.$ac_ext >&5 24131 rm -rf conftest* 24132 eval "ac_cv_lib_$ac_lib_var=no" 24133fi 24134rm -f conftest* 24135LIBS="$ac_save_LIBS" 24136 24137fi 24138if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 24139 echo "$ac_t""yes" 1>&6 24140 lib_pthread="" 24141else 24142 echo "$ac_t""no" 1>&6 24143echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 24144echo "configure:24145: checking for pthread_create in -lpthread" >&5 24145ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` 24146if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 24147 echo $ac_n "(cached) $ac_c" 1>&6 24148else 24149 ac_save_LIBS="$LIBS" 24150LIBS=`echo "-lpthread $LIBS" | sed -e 's/-lc //'` 24151cat > conftest.$ac_ext <<EOF 24152#line 24153 "configure" 24153#include "confdefs.h" 24154/* Override any gcc2 internal prototype to avoid an error. */ 24155/* We use char because int might match the return type of a gcc2 24156 builtin and then its argument prototype would still apply. */ 24157char pthread_create(); 24158 24159int main() { 24160pthread_create() 24161; return 0; } 24162EOF 24163if { { eval echo configure:24164: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24164 rm -rf conftest* 24165 eval "ac_cv_lib_$ac_lib_var=yes" 24166else 24167 echo "configure: failed program was:" >&5 24168 cat conftest.$ac_ext >&5 24169 rm -rf conftest* 24170 eval "ac_cv_lib_$ac_lib_var=no" 24171fi 24172rm -f conftest* 24173LIBS="$ac_save_LIBS" 24174 24175fi 24176if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 24177 echo "$ac_t""yes" 1>&6 24178 lib_pthread="-lpthread" 24179else 24180 echo "$ac_t""no" 1>&6 24181fi 24182 24183fi 24184 24185 24186ac_save_LIBS="$LIBS" 24187LIBS="$LIBS $lib_pthread" 24188for ac_func in pthread_create pthread_kill 24189do 24190echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24191echo "configure:24192: checking for $ac_func" >&5 24192if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24193 echo $ac_n "(cached) $ac_c" 1>&6 24194else 24195 cat > conftest.$ac_ext <<EOF 24196#line 24197 "configure" 24197#include "confdefs.h" 24198/* System header to define __stub macros and hopefully few prototypes, 24199 which can conflict with char $ac_func(); below. */ 24200#include <assert.h> 24201/* Override any gcc2 internal prototype to avoid an error. */ 24202/* We use char because int might match the return type of a gcc2 24203 builtin and then its argument prototype would still apply. */ 24204char $ac_func(); 24205 24206int main() { 24207 24208/* The GNU C library defines this for functions which it implements 24209 to always fail with ENOSYS. Some functions are actually named 24210 something starting with __ and the normal name is an alias. */ 24211#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24212choke me 24213#else 24214$ac_func(); 24215#endif 24216 24217; return 0; } 24218EOF 24219if { { eval echo configure:24220: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24220 rm -rf conftest* 24221 eval "ac_cv_func_$ac_func=yes" 24222else 24223 echo "configure: failed program was:" >&5 24224 cat conftest.$ac_ext >&5 24225 rm -rf conftest* 24226 eval "ac_cv_func_$ac_func=no" 24227fi 24228rm -f conftest* 24229fi 24230 24231if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24232 echo "$ac_t""yes" 1>&6 24233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24234 cat >> confdefs.h <<EOF 24235#define $ac_tr_func 1 24236EOF 24237 24238else 24239 echo "$ac_t""no" 1>&6 24240fi 24241done 24242 24243for ac_func in pthread_mutex_lock pthread_cond_wait pthread_spin_lock 24244do 24245echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24246echo "configure:24247: checking for $ac_func" >&5 24247if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24248 echo $ac_n "(cached) $ac_c" 1>&6 24249else 24250 cat > conftest.$ac_ext <<EOF 24251#line 24252 "configure" 24252#include "confdefs.h" 24253/* System header to define __stub macros and hopefully few prototypes, 24254 which can conflict with char $ac_func(); below. */ 24255#include <assert.h> 24256/* Override any gcc2 internal prototype to avoid an error. */ 24257/* We use char because int might match the return type of a gcc2 24258 builtin and then its argument prototype would still apply. */ 24259char $ac_func(); 24260 24261int main() { 24262 24263/* The GNU C library defines this for functions which it implements 24264 to always fail with ENOSYS. Some functions are actually named 24265 something starting with __ and the normal name is an alias. */ 24266#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24267choke me 24268#else 24269$ac_func(); 24270#endif 24271 24272; return 0; } 24273EOF 24274if { { eval echo configure:24275: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24275 rm -rf conftest* 24276 eval "ac_cv_func_$ac_func=yes" 24277else 24278 echo "configure: failed program was:" >&5 24279 cat conftest.$ac_ext >&5 24280 rm -rf conftest* 24281 eval "ac_cv_func_$ac_func=no" 24282fi 24283rm -f conftest* 24284fi 24285 24286if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24287 echo "$ac_t""yes" 1>&6 24288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24289 cat >> confdefs.h <<EOF 24290#define $ac_tr_func 1 24291EOF 24292 24293else 24294 echo "$ac_t""no" 1>&6 24295fi 24296done 24297 24298LIBS="$ac_save_LIBS" 24299 24300echo $ac_n "checking for clock_gettime in -lc""... $ac_c" 1>&6 24301echo "configure:24302: checking for clock_gettime in -lc" >&5 24302ac_lib_var=`echo c'_'clock_gettime | sed 'y%./+-%__p_%'` 24303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 24304 echo $ac_n "(cached) $ac_c" 1>&6 24305else 24306 ac_save_LIBS="$LIBS" 24307LIBS=`echo "-lc $LIBS" | sed -e 's/-lc //'` 24308cat > conftest.$ac_ext <<EOF 24309#line 24310 "configure" 24310#include "confdefs.h" 24311/* Override any gcc2 internal prototype to avoid an error. */ 24312/* We use char because int might match the return type of a gcc2 24313 builtin and then its argument prototype would still apply. */ 24314char clock_gettime(); 24315 24316int main() { 24317clock_gettime() 24318; return 0; } 24319EOF 24320if { { eval echo configure:24321: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24321 rm -rf conftest* 24322 eval "ac_cv_lib_$ac_lib_var=yes" 24323else 24324 echo "configure: failed program was:" >&5 24325 cat conftest.$ac_ext >&5 24326 rm -rf conftest* 24327 eval "ac_cv_lib_$ac_lib_var=no" 24328fi 24329rm -f conftest* 24330LIBS="$ac_save_LIBS" 24331 24332fi 24333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 24334 echo "$ac_t""yes" 1>&6 24335 lib_rt="" 24336else 24337 echo "$ac_t""no" 1>&6 24338echo $ac_n "checking for clock_gettime in -lrt""... $ac_c" 1>&6 24339echo "configure:24340: checking for clock_gettime in -lrt" >&5 24340ac_lib_var=`echo rt'_'clock_gettime | sed 'y%./+-%__p_%'` 24341if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 24342 echo $ac_n "(cached) $ac_c" 1>&6 24343else 24344 ac_save_LIBS="$LIBS" 24345LIBS=`echo "-lrt $LIBS" | sed -e 's/-lc //'` 24346cat > conftest.$ac_ext <<EOF 24347#line 24348 "configure" 24348#include "confdefs.h" 24349/* Override any gcc2 internal prototype to avoid an error. */ 24350/* We use char because int might match the return type of a gcc2 24351 builtin and then its argument prototype would still apply. */ 24352char clock_gettime(); 24353 24354int main() { 24355clock_gettime() 24356; return 0; } 24357EOF 24358if { { eval echo configure:24359: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24359 rm -rf conftest* 24360 eval "ac_cv_lib_$ac_lib_var=yes" 24361else 24362 echo "configure: failed program was:" >&5 24363 cat conftest.$ac_ext >&5 24364 rm -rf conftest* 24365 eval "ac_cv_lib_$ac_lib_var=no" 24366fi 24367rm -f conftest* 24368LIBS="$ac_save_LIBS" 24369 24370fi 24371if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 24372 echo "$ac_t""yes" 1>&6 24373 lib_rt="-lrt" 24374else 24375 echo "$ac_t""no" 1>&6 24376echo $ac_n "checking for clock_gettime in -lposix4""... $ac_c" 1>&6 24377echo "configure:24378: checking for clock_gettime in -lposix4" >&5 24378ac_lib_var=`echo posix4'_'clock_gettime | sed 'y%./+-%__p_%'` 24379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 24380 echo $ac_n "(cached) $ac_c" 1>&6 24381else 24382 ac_save_LIBS="$LIBS" 24383LIBS=`echo "-lposix4 $LIBS" | sed -e 's/-lc //'` 24384cat > conftest.$ac_ext <<EOF 24385#line 24386 "configure" 24386#include "confdefs.h" 24387/* Override any gcc2 internal prototype to avoid an error. */ 24388/* We use char because int might match the return type of a gcc2 24389 builtin and then its argument prototype would still apply. */ 24390char clock_gettime(); 24391 24392int main() { 24393clock_gettime() 24394; return 0; } 24395EOF 24396if { { eval echo configure:24397: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24397 rm -rf conftest* 24398 eval "ac_cv_lib_$ac_lib_var=yes" 24399else 24400 echo "configure: failed program was:" >&5 24401 cat conftest.$ac_ext >&5 24402 rm -rf conftest* 24403 eval "ac_cv_lib_$ac_lib_var=no" 24404fi 24405rm -f conftest* 24406LIBS="$ac_save_LIBS" 24407 24408fi 24409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 24410 echo "$ac_t""yes" 1>&6 24411 lib_rt="-lposix4" 24412else 24413 echo "$ac_t""no" 1>&6 24414fi 24415 24416fi 24417 24418fi 24419 24420if test ."$lib_rt" = .""; then 24421 cat >> confdefs.h <<\EOF 24422#define HAVE_CLOCK_GETTIME_IN_LIBC 1 24423EOF 24424 24425fi 24426 24427ac_save_LIBS="$LIBS" 24428LIBS="$LIBS $lib_rt" 24429for ac_func in clock_gettime clock_settime clock_getres 24430do 24431echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24432echo "configure:24433: checking for $ac_func" >&5 24433if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24434 echo $ac_n "(cached) $ac_c" 1>&6 24435else 24436 cat > conftest.$ac_ext <<EOF 24437#line 24438 "configure" 24438#include "confdefs.h" 24439/* System header to define __stub macros and hopefully few prototypes, 24440 which can conflict with char $ac_func(); below. */ 24441#include <assert.h> 24442/* Override any gcc2 internal prototype to avoid an error. */ 24443/* We use char because int might match the return type of a gcc2 24444 builtin and then its argument prototype would still apply. */ 24445char $ac_func(); 24446 24447int main() { 24448 24449/* The GNU C library defines this for functions which it implements 24450 to always fail with ENOSYS. Some functions are actually named 24451 something starting with __ and the normal name is an alias. */ 24452#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24453choke me 24454#else 24455$ac_func(); 24456#endif 24457 24458; return 0; } 24459EOF 24460if { { eval echo configure:24461: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24461 rm -rf conftest* 24462 eval "ac_cv_func_$ac_func=yes" 24463else 24464 echo "configure: failed program was:" >&5 24465 cat conftest.$ac_ext >&5 24466 rm -rf conftest* 24467 eval "ac_cv_func_$ac_func=no" 24468fi 24469rm -f conftest* 24470fi 24471 24472if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24473 echo "$ac_t""yes" 1>&6 24474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24475 cat >> confdefs.h <<EOF 24476#define $ac_tr_func 1 24477EOF 24478 24479else 24480 echo "$ac_t""no" 1>&6 24481fi 24482done 24483 24484for ac_func in sched_getparam sched_setparam sched_getscheduler sched_setscheduler 24485do 24486echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24487echo "configure:24488: checking for $ac_func" >&5 24488if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24489 echo $ac_n "(cached) $ac_c" 1>&6 24490else 24491 cat > conftest.$ac_ext <<EOF 24492#line 24493 "configure" 24493#include "confdefs.h" 24494/* System header to define __stub macros and hopefully few prototypes, 24495 which can conflict with char $ac_func(); below. */ 24496#include <assert.h> 24497/* Override any gcc2 internal prototype to avoid an error. */ 24498/* We use char because int might match the return type of a gcc2 24499 builtin and then its argument prototype would still apply. */ 24500char $ac_func(); 24501 24502int main() { 24503 24504/* The GNU C library defines this for functions which it implements 24505 to always fail with ENOSYS. Some functions are actually named 24506 something starting with __ and the normal name is an alias. */ 24507#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24508choke me 24509#else 24510$ac_func(); 24511#endif 24512 24513; return 0; } 24514EOF 24515if { { eval echo configure:24516: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24516 rm -rf conftest* 24517 eval "ac_cv_func_$ac_func=yes" 24518else 24519 echo "configure: failed program was:" >&5 24520 cat conftest.$ac_ext >&5 24521 rm -rf conftest* 24522 eval "ac_cv_func_$ac_func=no" 24523fi 24524rm -f conftest* 24525fi 24526 24527if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24528 echo "$ac_t""yes" 1>&6 24529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24530 cat >> confdefs.h <<EOF 24531#define $ac_tr_func 1 24532EOF 24533 24534else 24535 echo "$ac_t""no" 1>&6 24536fi 24537done 24538 24539for ac_func in sched_yield 24540do 24541echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24542echo "configure:24543: checking for $ac_func" >&5 24543if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24544 echo $ac_n "(cached) $ac_c" 1>&6 24545else 24546 cat > conftest.$ac_ext <<EOF 24547#line 24548 "configure" 24548#include "confdefs.h" 24549/* System header to define __stub macros and hopefully few prototypes, 24550 which can conflict with char $ac_func(); below. */ 24551#include <assert.h> 24552/* Override any gcc2 internal prototype to avoid an error. */ 24553/* We use char because int might match the return type of a gcc2 24554 builtin and then its argument prototype would still apply. */ 24555char $ac_func(); 24556 24557int main() { 24558 24559/* The GNU C library defines this for functions which it implements 24560 to always fail with ENOSYS. Some functions are actually named 24561 something starting with __ and the normal name is an alias. */ 24562#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24563choke me 24564#else 24565$ac_func(); 24566#endif 24567 24568; return 0; } 24569EOF 24570if { { eval echo configure:24571: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24571 rm -rf conftest* 24572 eval "ac_cv_func_$ac_func=yes" 24573else 24574 echo "configure: failed program was:" >&5 24575 cat conftest.$ac_ext >&5 24576 rm -rf conftest* 24577 eval "ac_cv_func_$ac_func=no" 24578fi 24579rm -f conftest* 24580fi 24581 24582if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24583 echo "$ac_t""yes" 1>&6 24584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24585 cat >> confdefs.h <<EOF 24586#define $ac_tr_func 1 24587EOF 24588 24589else 24590 echo "$ac_t""no" 1>&6 24591fi 24592done 24593 24594for ac_func in nanosleep 24595do 24596echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24597echo "configure:24598: checking for $ac_func" >&5 24598if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24599 echo $ac_n "(cached) $ac_c" 1>&6 24600else 24601 cat > conftest.$ac_ext <<EOF 24602#line 24603 "configure" 24603#include "confdefs.h" 24604/* System header to define __stub macros and hopefully few prototypes, 24605 which can conflict with char $ac_func(); below. */ 24606#include <assert.h> 24607/* Override any gcc2 internal prototype to avoid an error. */ 24608/* We use char because int might match the return type of a gcc2 24609 builtin and then its argument prototype would still apply. */ 24610char $ac_func(); 24611 24612int main() { 24613 24614/* The GNU C library defines this for functions which it implements 24615 to always fail with ENOSYS. Some functions are actually named 24616 something starting with __ and the normal name is an alias. */ 24617#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24618choke me 24619#else 24620$ac_func(); 24621#endif 24622 24623; return 0; } 24624EOF 24625if { { eval echo configure:24626: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24626 rm -rf conftest* 24627 eval "ac_cv_func_$ac_func=yes" 24628else 24629 echo "configure: failed program was:" >&5 24630 cat conftest.$ac_ext >&5 24631 rm -rf conftest* 24632 eval "ac_cv_func_$ac_func=no" 24633fi 24634rm -f conftest* 24635fi 24636 24637if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24638 echo "$ac_t""yes" 1>&6 24639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24640 cat >> confdefs.h <<EOF 24641#define $ac_tr_func 1 24642EOF 24643 24644else 24645 echo "$ac_t""no" 1>&6 24646fi 24647done 24648 24649LIBS="$ac_save_LIBS" 24650 24651echo $ac_n "checking for cap_get_proc in -lcap""... $ac_c" 1>&6 24652echo "configure:24653: checking for cap_get_proc in -lcap" >&5 24653ac_lib_var=`echo cap'_'cap_get_proc | sed 'y%./+-%__p_%'` 24654if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 24655 echo $ac_n "(cached) $ac_c" 1>&6 24656else 24657 ac_save_LIBS="$LIBS" 24658LIBS=`echo "-lcap $LIBS" | sed -e 's/-lc //'` 24659cat > conftest.$ac_ext <<EOF 24660#line 24661 "configure" 24661#include "confdefs.h" 24662/* Override any gcc2 internal prototype to avoid an error. */ 24663/* We use char because int might match the return type of a gcc2 24664 builtin and then its argument prototype would still apply. */ 24665char cap_get_proc(); 24666 24667int main() { 24668cap_get_proc() 24669; return 0; } 24670EOF 24671if { { eval echo configure:24672: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24672 rm -rf conftest* 24673 eval "ac_cv_lib_$ac_lib_var=yes" 24674else 24675 echo "configure: failed program was:" >&5 24676 cat conftest.$ac_ext >&5 24677 rm -rf conftest* 24678 eval "ac_cv_lib_$ac_lib_var=no" 24679fi 24680rm -f conftest* 24681LIBS="$ac_save_LIBS" 24682 24683fi 24684if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 24685 echo "$ac_t""yes" 1>&6 24686 lib_cap="-lcap" 24687else 24688 echo "$ac_t""no" 1>&6 24689fi 24690 24691ac_save_LIBS="$LIBS" 24692LIBS="$LIBS $lib_cap" 24693for ac_func in cap_get_proc cap_set_proc cap_set_flag cap_clear_flag 24694do 24695echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24696echo "configure:24697: checking for $ac_func" >&5 24697if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24698 echo $ac_n "(cached) $ac_c" 1>&6 24699else 24700 cat > conftest.$ac_ext <<EOF 24701#line 24702 "configure" 24702#include "confdefs.h" 24703/* System header to define __stub macros and hopefully few prototypes, 24704 which can conflict with char $ac_func(); below. */ 24705#include <assert.h> 24706/* Override any gcc2 internal prototype to avoid an error. */ 24707/* We use char because int might match the return type of a gcc2 24708 builtin and then its argument prototype would still apply. */ 24709char $ac_func(); 24710 24711int main() { 24712 24713/* The GNU C library defines this for functions which it implements 24714 to always fail with ENOSYS. Some functions are actually named 24715 something starting with __ and the normal name is an alias. */ 24716#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24717choke me 24718#else 24719$ac_func(); 24720#endif 24721 24722; return 0; } 24723EOF 24724if { { eval echo configure:24725: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24725 rm -rf conftest* 24726 eval "ac_cv_func_$ac_func=yes" 24727else 24728 echo "configure: failed program was:" >&5 24729 cat conftest.$ac_ext >&5 24730 rm -rf conftest* 24731 eval "ac_cv_func_$ac_func=no" 24732fi 24733rm -f conftest* 24734fi 24735 24736if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24737 echo "$ac_t""yes" 1>&6 24738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24739 cat >> confdefs.h <<EOF 24740#define $ac_tr_func 1 24741EOF 24742 24743else 24744 echo "$ac_t""no" 1>&6 24745fi 24746done 24747 24748LIBS="$ac_save_LIBS" 24749 24750if test "$ac_cv_header_selinux_selinux_h" = yes; then 24751 echo "checking for SELinux support" 1>&6 24752echo "configure:24753: checking for SELinux support" >&5 24753 ac_save_LIBS="$LIBS" 24754 LIBS="$LIBS $lib_attr" 24755 echo $ac_n "checking for is_selinux_enabled in -lselinux""... $ac_c" 1>&6 24756echo "configure:24757: checking for is_selinux_enabled in -lselinux" >&5 24757ac_lib_var=`echo selinux'_'is_selinux_enabled | sed 'y%./+-%__p_%'` 24758if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 24759 echo $ac_n "(cached) $ac_c" 1>&6 24760else 24761 ac_save_LIBS="$LIBS" 24762LIBS=`echo "-lselinux $LIBS" | sed -e 's/-lc //'` 24763cat > conftest.$ac_ext <<EOF 24764#line 24765 "configure" 24765#include "confdefs.h" 24766/* Override any gcc2 internal prototype to avoid an error. */ 24767/* We use char because int might match the return type of a gcc2 24768 builtin and then its argument prototype would still apply. */ 24769char is_selinux_enabled(); 24770 24771int main() { 24772is_selinux_enabled() 24773; return 0; } 24774EOF 24775if { { eval echo configure:24776: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24776 rm -rf conftest* 24777 eval "ac_cv_lib_$ac_lib_var=yes" 24778else 24779 echo "configure: failed program was:" >&5 24780 cat conftest.$ac_ext >&5 24781 rm -rf conftest* 24782 eval "ac_cv_lib_$ac_lib_var=no" 24783fi 24784rm -f conftest* 24785LIBS="$ac_save_LIBS" 24786 24787fi 24788if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 24789 echo "$ac_t""yes" 1>&6 24790 lib_selinux="-lselinux" 24791else 24792 echo "$ac_t""no" 1>&6 24793fi 24794 24795 LIBS="$ac_save_LIBS" 24796 LIBS="$LIBS $lib_selinux $lib_attr" 24797 for ac_func in is_selinux_enabled 24798do 24799echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 24800echo "configure:24801: checking for $ac_func" >&5 24801if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 24802 echo $ac_n "(cached) $ac_c" 1>&6 24803else 24804 cat > conftest.$ac_ext <<EOF 24805#line 24806 "configure" 24806#include "confdefs.h" 24807/* System header to define __stub macros and hopefully few prototypes, 24808 which can conflict with char $ac_func(); below. */ 24809#include <assert.h> 24810/* Override any gcc2 internal prototype to avoid an error. */ 24811/* We use char because int might match the return type of a gcc2 24812 builtin and then its argument prototype would still apply. */ 24813char $ac_func(); 24814 24815int main() { 24816 24817/* The GNU C library defines this for functions which it implements 24818 to always fail with ENOSYS. Some functions are actually named 24819 something starting with __ and the normal name is an alias. */ 24820#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24821choke me 24822#else 24823$ac_func(); 24824#endif 24825 24826; return 0; } 24827EOF 24828if { { eval echo configure:24829: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext}; then 24829 rm -rf conftest* 24830 eval "ac_cv_func_$ac_func=yes" 24831else 24832 echo "configure: failed program was:" >&5 24833 cat conftest.$ac_ext >&5 24834 rm -rf conftest* 24835 eval "ac_cv_func_$ac_func=no" 24836fi 24837rm -f conftest* 24838fi 24839 24840if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 24841 echo "$ac_t""yes" 1>&6 24842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 24843 cat >> confdefs.h <<EOF 24844#define $ac_tr_func 1 24845EOF 24846 24847else 24848 echo "$ac_t""no" 1>&6 24849fi 24850done 24851 24852 LIBS="$ac_save_LIBS" 24853fi 24854 24855 24856for ac_file in /dev/tty /dev/null /dev/zero 24857do 24858 24859ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'` 24860echo $ac_n "checking for $ac_file""... $ac_c" 1>&6 24861echo "configure:24862: checking for $ac_file" >&5 24862if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 24863 echo $ac_n "(cached) $ac_c" 1>&6 24864else 24865 if test "$cross_compiling" = yes; then 24866 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 24867else 24868 cat > conftest.$ac_ext <<EOF 24869#line 24870 "configure" 24870#include "confdefs.h" 24871 24872#include <sys/types.h> 24873#include <sys/stat.h> 24874 24875int 24876main() 24877{ 24878 struct stat sb; 24879 24880 return(stat("$ac_file", &sb) < 0); 24881} 24882EOF 24883if { { eval echo configure:24884: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 24884then 24885 eval ac_cv_file_$ac_safe=yes 24886else 24887 echo "configure: failed program was:" >&5 24888 cat conftest.$ac_ext >&5 24889 rm -fr conftest* 24890 eval ac_cv_file_$ac_safe=no 24891fi 24892rm -fr conftest* 24893fi 24894 24895fi 24896 24897if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then 24898 echo "$ac_t""yes" 1>&6 24899 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 24900 cat >> confdefs.h <<EOF 24901#define $ac_tr_file 1 24902EOF 24903 24904else 24905 echo "$ac_t""no" 1>&6 24906 24907fi 24908done 24909 24910for ac_file in /dev/stdin /dev/stdout /dev/stderr 24911do 24912 24913ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'` 24914echo $ac_n "checking for $ac_file""... $ac_c" 1>&6 24915echo "configure:24916: checking for $ac_file" >&5 24916if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 24917 echo $ac_n "(cached) $ac_c" 1>&6 24918else 24919 if test "$cross_compiling" = yes; then 24920 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 24921else 24922 cat > conftest.$ac_ext <<EOF 24923#line 24924 "configure" 24924#include "confdefs.h" 24925 24926#include <sys/types.h> 24927#include <sys/stat.h> 24928 24929int 24930main() 24931{ 24932 struct stat sb; 24933 24934 return(stat("$ac_file", &sb) < 0); 24935} 24936EOF 24937if { { eval echo configure:24938: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 24938then 24939 eval ac_cv_file_$ac_safe=yes 24940else 24941 echo "configure: failed program was:" >&5 24942 cat conftest.$ac_ext >&5 24943 rm -fr conftest* 24944 eval ac_cv_file_$ac_safe=no 24945fi 24946rm -fr conftest* 24947fi 24948 24949fi 24950 24951if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then 24952 echo "$ac_t""yes" 1>&6 24953 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 24954 cat >> confdefs.h <<EOF 24955#define $ac_tr_file 1 24956EOF 24957 24958else 24959 echo "$ac_t""no" 1>&6 24960 24961fi 24962done 24963 24964for ac_file in /dev/fd/0 /dev/fd/1 /dev/fd/2 24965do 24966 24967ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'` 24968echo $ac_n "checking for $ac_file""... $ac_c" 1>&6 24969echo "configure:24970: checking for $ac_file" >&5 24970if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 24971 echo $ac_n "(cached) $ac_c" 1>&6 24972else 24973 if test "$cross_compiling" = yes; then 24974 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 24975else 24976 cat > conftest.$ac_ext <<EOF 24977#line 24978 "configure" 24978#include "confdefs.h" 24979 24980#include <sys/types.h> 24981#include <sys/stat.h> 24982 24983int 24984main() 24985{ 24986 struct stat sb; 24987 24988 return(stat("$ac_file", &sb) < 0); 24989} 24990EOF 24991if { { eval echo configure:24992: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 24992then 24993 eval ac_cv_file_$ac_safe=yes 24994else 24995 echo "configure: failed program was:" >&5 24996 cat conftest.$ac_ext >&5 24997 rm -fr conftest* 24998 eval ac_cv_file_$ac_safe=no 24999fi 25000rm -fr conftest* 25001fi 25002 25003fi 25004 25005if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then 25006 echo "$ac_t""yes" 1>&6 25007 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 25008 cat >> confdefs.h <<EOF 25009#define $ac_tr_file 1 25010EOF 25011 25012else 25013 echo "$ac_t""no" 1>&6 25014 25015fi 25016done 25017 25018for ac_file in /usr/src/linux/include 25019do 25020 25021ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'` 25022echo $ac_n "checking for $ac_file""... $ac_c" 1>&6 25023echo "configure:25024: checking for $ac_file" >&5 25024if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 25025 echo $ac_n "(cached) $ac_c" 1>&6 25026else 25027 if test "$cross_compiling" = yes; then 25028 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 25029else 25030 cat > conftest.$ac_ext <<EOF 25031#line 25032 "configure" 25032#include "confdefs.h" 25033 25034#include <sys/types.h> 25035#include <sys/stat.h> 25036 25037int 25038main() 25039{ 25040 struct stat sb; 25041 25042 return(stat("$ac_file", &sb) < 0); 25043} 25044EOF 25045if { { eval echo configure:25046: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 25046then 25047 eval ac_cv_file_$ac_safe=yes 25048else 25049 echo "configure: failed program was:" >&5 25050 cat conftest.$ac_ext >&5 25051 rm -fr conftest* 25052 eval ac_cv_file_$ac_safe=no 25053fi 25054rm -fr conftest* 25055fi 25056 25057fi 25058 25059if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then 25060 echo "$ac_t""yes" 1>&6 25061 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 25062 cat >> confdefs.h <<EOF 25063#define $ac_tr_file 1 25064EOF 25065 25066else 25067 echo "$ac_t""no" 1>&6 25068 25069fi 25070done 25071 25072 25073for ac_file in /bin 25074do 25075 25076ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'` 25077echo $ac_n "checking for symlink $ac_file""... $ac_c" 1>&6 25078echo "configure:25079: checking for symlink $ac_file" >&5 25079if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 25080 echo $ac_n "(cached) $ac_c" 1>&6 25081else 25082 if test "$cross_compiling" = yes; then 25083 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 25084else 25085 cat > conftest.$ac_ext <<EOF 25086#line 25087 "configure" 25087#include "confdefs.h" 25088 25089#include <sys/types.h> 25090#include <sys/stat.h> 25091 25092int 25093main() 25094{ 25095#ifndef S_IFLNK 25096 return (1); 25097#else 25098 struct stat sb; 25099 25100 if (lstat("$ac_file", &sb) < 0) 25101 return (1); 25102 return (!((sb.st_mode & S_IFMT) == S_IFLNK)); 25103#endif 25104} 25105EOF 25106if { { eval echo configure:25107: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 25107then 25108 eval ac_cv_file_$ac_safe=yes 25109else 25110 echo "configure: failed program was:" >&5 25111 cat conftest.$ac_ext >&5 25112 rm -fr conftest* 25113 eval ac_cv_file_$ac_safe=no 25114fi 25115rm -fr conftest* 25116fi 25117 25118fi 25119 25120if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then 25121 echo "$ac_t""yes" 1>&6 25122 ac_tr_file=HAVE_SYMLINK_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 25123 cat >> confdefs.h <<EOF 25124#define $ac_tr_file 1 25125EOF 25126 25127else 25128 echo "$ac_t""no" 1>&6 25129 25130fi 25131done 25132 25133for ac_file in /bin/sh /usr/bin/sh /usr/xpg4/bin/sh /bin/posix/sh /opt/schily/xpg4/bin/sh 25134do 25135 25136ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'` 25137echo $ac_n "checking for $ac_file""... $ac_c" 1>&6 25138echo "configure:25139: checking for $ac_file" >&5 25139if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then 25140 echo $ac_n "(cached) $ac_c" 1>&6 25141else 25142 if test "$cross_compiling" = yes; then 25143 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 25144else 25145 cat > conftest.$ac_ext <<EOF 25146#line 25147 "configure" 25147#include "confdefs.h" 25148 25149#include <sys/types.h> 25150#include <sys/stat.h> 25151 25152int 25153main() 25154{ 25155 struct stat sb; 25156 25157 return(stat("$ac_file", &sb) < 0); 25158} 25159EOF 25160if { { eval echo configure:25161: \"$ac_link\" ;} 1>&5; { eval $ac_link ;} 2>&5; } && test -s conftest${ac_exeext} && ($rmtcall ./conftest${ac_xexeext}; exit) 2>/dev/null 25161then 25162 eval ac_cv_file_$ac_safe=yes 25163else 25164 echo "configure: failed program was:" >&5 25165 cat conftest.$ac_ext >&5 25166 rm -fr conftest* 25167 eval ac_cv_file_$ac_safe=no 25168fi 25169rm -fr conftest* 25170fi 25171 25172fi 25173 25174if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then 25175 echo "$ac_t""yes" 1>&6 25176 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 25177 cat >> confdefs.h <<EOF 25178#define $ac_tr_file 1 25179EOF 25180 25181else 25182 echo "$ac_t""no" 1>&6 25183 25184fi 25185done 25186 25187 25188UNAME=`uname || true` 25189 25190if test ."$UNAME" = .Linux; then 25191 25192 25193echo $ac_n "checking if Linux include file linux/ext2_fs.h is broken""... $ac_c" 1>&6 25194echo "configure:25195: checking if Linux include file linux/ext2_fs.h is broken" >&5 25195if eval "test \"`echo '$''{'ac_cv_broken_linux_ext2_fs_h'+set}'`\" = set"; then 25196 echo $ac_n "(cached) $ac_c" 1>&6 25197else 25198 cat > conftest.$ac_ext <<EOF 25199#line 25200 "configure" 25200#include "confdefs.h" 25201 25202#if defined(__linux__) || defined(__linux) || defined(linux) 25203#include <linux/ext2_fs.h> 25204#endif 25205int main() { 25206 25207; return 0; } 25208EOF 25209if { { eval echo configure:25210: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 25210 rm -rf conftest* 25211 ac_cv_broken_linux_ext2_fs_h=no 25212else 25213 echo "configure: failed program was:" >&5 25214 cat conftest.$ac_ext >&5 25215 rm -rf conftest* 25216 ac_cv_broken_linux_ext2_fs_h=yes 25217fi 25218rm -f conftest* 25219fi 25220 25221echo "$ac_t""$ac_cv_broken_linux_ext2_fs_h" 1>&6 25222if test $ac_cv_broken_linux_ext2_fs_h = yes; then 25223 cat >> confdefs.h <<\EOF 25224#define HAVE_BROKEN_LINUX_EXT2_FS_H 1 25225EOF 25226 25227fi 25228echo $ac_n "checking if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken""... $ac_c" 1>&6 25229echo "configure:25230: checking if Linux include file /usr/src/linux/include/linux/ext2_fs.h is broken" >&5 25230if eval "test \"`echo '$''{'ac_cv_broken_src_linux_ext2_fs_h'+set}'`\" = set"; then 25231 echo $ac_n "(cached) $ac_c" 1>&6 25232else 25233 ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" 25234 cat > conftest.$ac_ext <<EOF 25235#line 25236 "configure" 25236#include "confdefs.h" 25237 25238#if defined(__linux__) || defined(__linux) || defined(linux) 25239#include <linux/ext2_fs.h> 25240#endif 25241int main() { 25242 25243; return 0; } 25244EOF 25245if { { eval echo configure:25246: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 25246 rm -rf conftest* 25247 ac_cv_broken_src_linux_ext2_fs_h=no 25248else 25249 echo "configure: failed program was:" >&5 25250 cat conftest.$ac_ext >&5 25251 rm -rf conftest* 25252 ac_cv_broken_src_linux_ext2_fs_h=yes 25253fi 25254rm -f conftest* 25255fi 25256 25257echo "$ac_t""$ac_cv_broken_src_linux_ext2_fs_h" 1>&6 25258CPPFLAGS=$___CPPFLAGS 25259if test $ac_cv_broken_src_linux_ext2_fs_h = yes; then 25260 cat >> confdefs.h <<\EOF 25261#define HAVE_BROKEN_SRC_LINUX_EXT2_FS_H 1 25262EOF 25263 25264fi 25265if test .$ac_cv_broken_linux_ext2_fs_h = .no -o .$ac_cv_broken_src_linux_ext2_fs_h = .no; then 25266 # 25267 # If either /usr/include/linux/ex2_fs.h works or 25268 # /usr/src/linux/include/linux/ex2_fs.h works, we will 25269 # #define HAVE_USABLE_LINUX_EXT2_FS_H 25270 # 25271 # If HAVE_USABLE_LINUX_EXT2_FS_H is defined, a simple 25272 # #include <linux/ex2_fs.h> will work. 25273 # 25274 ac_cv_usable_linux_ext2_fs_h=yes 25275 cat >> confdefs.h <<\EOF 25276#define HAVE_USABLE_LINUX_EXT2_FS_H 1 25277EOF 25278 25279else 25280 ac_cv_usable_linux_ext2_fs_h=no 25281fi 25282echo $ac_n "checking if Linux include file scsi/scsi.h is broken""... $ac_c" 1>&6 25283echo "configure:25284: checking if Linux include file scsi/scsi.h is broken" >&5 25284if eval "test \"`echo '$''{'ac_cv_broken_scsi_scsi_h'+set}'`\" = set"; then 25285 echo $ac_n "(cached) $ac_c" 1>&6 25286else 25287 cat > conftest.$ac_ext <<EOF 25288#line 25289 "configure" 25289#include "confdefs.h" 25290 25291#if defined(__linux__) || defined(__linux) || defined(linux) 25292#include <scsi/scsi.h> 25293#endif 25294int main() { 25295 25296; return 0; } 25297EOF 25298if { { eval echo configure:25299: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 25299 rm -rf conftest* 25300 ac_cv_broken_scsi_scsi_h=no 25301else 25302 echo "configure: failed program was:" >&5 25303 cat conftest.$ac_ext >&5 25304 rm -rf conftest* 25305 ac_cv_broken_scsi_scsi_h=yes 25306fi 25307rm -f conftest* 25308fi 25309 25310echo "$ac_t""$ac_cv_broken_scsi_scsi_h" 1>&6 25311if test $ac_cv_broken_scsi_scsi_h = yes; then 25312 cat >> confdefs.h <<\EOF 25313#define HAVE_BROKEN_SCSI_SCSI_H 1 25314EOF 25315 25316fi 25317echo $ac_n "checking if Linux include file /usr/src/linux/include/scsi/scsi.h is broken""... $ac_c" 1>&6 25318echo "configure:25319: checking if Linux include file /usr/src/linux/include/scsi/scsi.h is broken" >&5 25319if eval "test \"`echo '$''{'ac_cv_broken_src_scsi_scsi_h'+set}'`\" = set"; then 25320 echo $ac_n "(cached) $ac_c" 1>&6 25321else 25322 ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" 25323 cat > conftest.$ac_ext <<EOF 25324#line 25325 "configure" 25325#include "confdefs.h" 25326 25327#if defined(__linux__) || defined(__linux) || defined(linux) 25328#include <scsi/scsi.h> 25329#endif 25330int main() { 25331 25332; return 0; } 25333EOF 25334if { { eval echo configure:25335: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 25335 rm -rf conftest* 25336 ac_cv_broken_src_scsi_scsi_h=no 25337else 25338 echo "configure: failed program was:" >&5 25339 cat conftest.$ac_ext >&5 25340 rm -rf conftest* 25341 ac_cv_broken_src_scsi_scsi_h=yes 25342fi 25343rm -f conftest* 25344fi 25345 25346echo "$ac_t""$ac_cv_broken_src_scsi_scsi_h" 1>&6 25347CPPFLAGS=$___CPPFLAGS 25348if test $ac_cv_broken_src_scsi_scsi_h = yes; then 25349 cat >> confdefs.h <<\EOF 25350#define HAVE_BROKEN_SRC_SCSI_SCSI_H 1 25351EOF 25352 25353fi 25354echo $ac_n "checking if Linux include file scsi/sg.h is broken""... $ac_c" 1>&6 25355echo "configure:25356: checking if Linux include file scsi/sg.h is broken" >&5 25356if eval "test \"`echo '$''{'ac_cv_broken_scsi_sg_h'+set}'`\" = set"; then 25357 echo $ac_n "(cached) $ac_c" 1>&6 25358else 25359 cat > conftest.$ac_ext <<EOF 25360#line 25361 "configure" 25361#include "confdefs.h" 25362 25363#if defined(__linux__) || defined(__linux) || defined(linux) 25364#include <sys/types.h> 25365#include <scsi/sg.h> 25366#endif 25367int main() { 25368 25369; return 0; } 25370EOF 25371if { { eval echo configure:25372: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 25372 rm -rf conftest* 25373 ac_cv_broken_scsi_sg_h=no 25374else 25375 echo "configure: failed program was:" >&5 25376 cat conftest.$ac_ext >&5 25377 rm -rf conftest* 25378 ac_cv_broken_scsi_sg_h=yes 25379fi 25380rm -f conftest* 25381fi 25382 25383echo "$ac_t""$ac_cv_broken_scsi_sg_h" 1>&6 25384if test $ac_cv_broken_scsi_sg_h = yes; then 25385 cat >> confdefs.h <<\EOF 25386#define HAVE_BROKEN_SCSI_SG_H 1 25387EOF 25388 25389fi 25390echo $ac_n "checking if Linux include file /usr/src/linux/include/scsi/sg.h is broken""... $ac_c" 1>&6 25391echo "configure:25392: checking if Linux include file /usr/src/linux/include/scsi/sg.h is broken" >&5 25392if eval "test \"`echo '$''{'ac_cv_broken_src_scsi_sg_h'+set}'`\" = set"; then 25393 echo $ac_n "(cached) $ac_c" 1>&6 25394else 25395 ___CPPFLAGS=$CPPFLAGS; CPPFLAGS="-I/usr/src/linux/include $CPPFLAGS" 25396 cat > conftest.$ac_ext <<EOF 25397#line 25398 "configure" 25398#include "confdefs.h" 25399 25400#if defined(__linux__) || defined(__linux) || defined(linux) 25401#include <sys/types.h> 25402#include <scsi/sg.h> 25403#endif 25404int main() { 25405 25406; return 0; } 25407EOF 25408if { { eval echo configure:25409: \"$ac_compile\" ;} 1>&5; { eval $ac_compile ;} 2>&5; }; then 25409 rm -rf conftest* 25410 ac_cv_broken_src_scsi_sg_h=no 25411else 25412 echo "configure: failed program was:" >&5 25413 cat conftest.$ac_ext >&5 25414 rm -rf conftest* 25415 ac_cv_broken_src_scsi_sg_h=yes 25416fi 25417rm -f conftest* 25418fi 25419 25420echo "$ac_t""$ac_cv_broken_src_scsi_sg_h" 1>&6 25421CPPFLAGS=$___CPPFLAGS 25422if test $ac_cv_broken_src_scsi_sg_h = yes; then 25423 cat >> confdefs.h <<\EOF 25424#define HAVE_BROKEN_SRC_SCSI_SG_H 1 25425EOF 25426 25427fi 25428 25429if test .$ac_cv_broken_src_scsi_scsi_h = .yes; then 25430 may_linux_src_include=no 25431fi 25432if test .$ac_cv_broken_src_linux_ext2_fs_h = .yes; then 25433 may_linux_src_include=no 25434fi 25435if test .$ac_cv_file__usr_src_linux_include = .yes; then # only warn if there is /usr/src/linux/include 25436if test .$may_linux_src_include = .no; then 25437 echo 25438 echo "Warning: *** /usr/src/linux/include contains broken include files ***" 25439 echo "Warning: *** /usr/src/linux/include is not used this reason ***" 25440 echo "Warning: This may result in the inability to use recent Linux kernel interfaces" 25441 echo 25442fi 25443fi 25444if test .$ac_cv_header_ext2fs_ext2_fs_h = .no; then # only if there is no <ext2fs/ext2_fs.h> 25445if test .$ac_cv_usable_linux_ext2_fs_h = .no; then 25446 echo 25447 echo "Warning: *** linux/ext2_fs.h is not usable at all ***" 25448 echo "Warning: *** This makes it impossible to support Linux file flags ***" 25449 echo "You may try to compile using 'make COPTX=-DTRY_EXT2_FS'" 25450 echo 25451 echo "Better install the ext2 developer package" 25452 echo 25453 sleep 10 25454fi 25455fi # <ext2fs/ext2_fs.h> was missing 25456fi # Linux only tests 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490trap '' 1 2 15 25491cat > confcache <<\EOF 25492# This file is a shell script that caches the results of configure 25493# tests run on this system so they can be shared between configure 25494# scripts and configure runs. It is not useful on other systems. 25495# If it contains results you don't want to keep, you may remove or edit it. 25496# 25497# By default, configure uses ./config.cache as the cache file, 25498# creating it if it does not exist already. You can give configure 25499# the --cache-file=FILE option to use a different cache file; that is 25500# what configure does when it calls configure scripts in 25501# subdirectories, so they share the cache. 25502# Giving --cache-file=/dev/null disables caching, for debugging configure. 25503# config.status only pays attention to the cache file if you give it the 25504# --recheck option to rerun configure. 25505# 25506EOF 25507# The following way of writing the cache mishandles newlines in values, 25508# but we know of no workaround that is simple, portable, and efficient. 25509# So, don't put newlines in cache variables' values. 25510# Ultrix sh set writes to stderr and can't be redirected directly, 25511# and sets the high bit in the cache file unless we assign to the vars. 25512(set) 2>&1 | 25513 case `(ac_space=' '; set | grep ac_space) 2>&1` in 25514 *ac_space=\ *) 25515 # `set' does not quote correctly, so add quotes (double-quote substitution 25516 # turns \\\\ into \\, and sed turns \\ into \). 25517 sed -n \ 25518 -e "s/'/'\\\\''/g" \ 25519 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 25520 ;; 25521 *) 25522 # `set' quotes correctly as required by POSIX, so do not add quotes. 25523 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 25524 ;; 25525 esac >> confcache 25526if cmp -s $cache_file confcache; then 25527 : 25528else 25529 if test -w $cache_file; then 25530 echo "updating cache $cache_file" 25531 cat confcache > $cache_file 25532 else 25533 echo "not updating unwritable cache $cache_file" 25534 fi 25535fi 25536rm -f confcache 25537 25538trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 25539 25540test "x$prefix" = xNONE && prefix=$ac_default_prefix 25541# Let make expand exec_prefix. 25542test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25543 25544# Any assignment to VPATH causes Sun make to only execute 25545# the first set of double-colon rules, so remove it if not needed. 25546# If there is a colon in the path, we need to keep it. 25547if test "x$srcdir" = x.; then 25548 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 25549fi 25550 25551trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 25552 25553DEFS=-DHAVE_CONFIG_H 25554 25555# Without the "./", some shells look in PATH for config.status. 25556: ${CONFIG_STATUS=./config.status} 25557 25558echo creating $CONFIG_STATUS 25559rm -f $CONFIG_STATUS 25560cat > $CONFIG_STATUS <<EOF 25561#! /bin/sh 25562# Generated automatically by configure. 25563# Run this file to recreate the current configuration. 25564# This directory was configured as follows, 25565# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25566# 25567# $0 $ac_configure_args 25568# 25569# Compiler output produced by configure, useful for debugging 25570# configure, is in ./config.log if it exists. 25571 25572ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 25573for ac_option 25574do 25575 case "\$ac_option" in 25576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25577 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 25578 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 25579 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 25580 echo "$CONFIG_STATUS generated by autoconf version 2.13 1.24-Schily" 25581 exit 0 ;; 25582 -help | --help | --hel | --he | --h) 25583 echo "\$ac_cs_usage"; exit 0 ;; 25584 *) echo "\$ac_cs_usage"; exit 1 ;; 25585 esac 25586done 25587 25588ac_given_srcdir=$srcdir 25589 25590trap 'rm -fr `echo "rules.cnf xconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 25591EOF 25592cat >> $CONFIG_STATUS <<EOF 25593 25594# Protect against being on the right side of a sed subst in config.status. 25595sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 25596 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 25597$ac_vpsub 25598$extrasub 25599s%@SHELL@%$SHELL%g 25600s%@CFLAGS@%$CFLAGS%g 25601s%@CPPFLAGS@%$CPPFLAGS%g 25602s%@CXXFLAGS@%$CXXFLAGS%g 25603s%@FFLAGS@%$FFLAGS%g 25604s%@DEFS@%$DEFS%g 25605s%@LDFLAGS@%$LDFLAGS%g 25606s%@LIBS@%$LIBS%g 25607s%@exec_prefix@%$exec_prefix%g 25608s%@prefix@%$prefix%g 25609s%@program_transform_name@%$program_transform_name%g 25610s%@bindir@%$bindir%g 25611s%@sbindir@%$sbindir%g 25612s%@libexecdir@%$libexecdir%g 25613s%@datadir@%$datadir%g 25614s%@sysconfdir@%$sysconfdir%g 25615s%@sharedstatedir@%$sharedstatedir%g 25616s%@localstatedir@%$localstatedir%g 25617s%@libdir@%$libdir%g 25618s%@includedir@%$includedir%g 25619s%@oldincludedir@%$oldincludedir%g 25620s%@infodir@%$infodir%g 25621s%@mandir@%$mandir%g 25622s%@host@%$host%g 25623s%@host_alias@%$host_alias%g 25624s%@host_cpu@%$host_cpu%g 25625s%@host_vendor@%$host_vendor%g 25626s%@host_os@%$host_os%g 25627s%@CC@%$CC%g 25628s%@OBJEXT@%$OBJEXT%g 25629s%@EXEEXT@%$EXEEXT%g 25630s%@XEXEEXT@%$XEXEEXT%g 25631s%@CPP@%$CPP%g 25632s%@ac_path_cc@%$ac_path_cc%g 25633s%@CPPX@%$CPPX%g 25634s%@CPPX_IN@%$CPPX_IN%g 25635s%@RANLIB@%$RANLIB%g 25636s%@SET_MAKE@%$SET_MAKE%g 25637s%@YACC@%$YACC%g 25638s%@BISON@%$BISON%g 25639s%@LORDER@%$LORDER%g 25640s%@TSORT@%$TSORT%g 25641s%@path_ed@%$path_ed%g 25642s%@path_red@%$path_red%g 25643s%@LIBOBJS@%$LIBOBJS%g 25644s%@ALLOCA@%$ALLOCA%g 25645s%@may_linux_src_include@%$may_linux_src_include%g 25646s%@largefile_cc_opt@%$largefile_cc_opt%g 25647s%@sun_cc64_opt@%$sun_cc64_opt%g 25648s%@hp_cc_ansi_opt@%$hp_cc_ansi_opt%g 25649s%@hp_cc_opt_opt@%$hp_cc_opt_opt%g 25650s%@hp_cc_gprof_opt@%$hp_cc_gprof_opt%g 25651s%@lib_crypt@%$lib_crypt%g 25652s%@lib_resolv@%$lib_resolv%g 25653s%@lib_intl@%$lib_intl%g 25654s%@lib_iconv@%$lib_iconv%g 25655s%@lib_expat@%$lib_expat%g 25656s%@lib_pcsc@%$lib_pcsc%g 25657s%@lib_crypto@%$lib_crypto%g 25658s%@lib_ssl@%$lib_ssl%g 25659s%@lib_nsl@%$lib_nsl%g 25660s%@scsi_lib@%$scsi_lib%g 25661s%@lib_scsi@%$lib_scsi%g 25662s%@lib_acl@%$lib_acl%g 25663s%@lib_acl_test@%$lib_acl_test%g 25664s%@lib_attr@%$lib_attr%g 25665s%@lib_secdb@%$lib_secdb%g 25666s%@lib_gen@%$lib_gen%g 25667s%@lib_elf@%$lib_elf%g 25668s%@lib_pthread@%$lib_pthread%g 25669s%@lib_rt@%$lib_rt%g 25670s%@lib_dl@%$lib_dl%g 25671s%@lib_dir@%$lib_dir%g 25672s%@lib_cap@%$lib_cap%g 25673s%@lib_selinux@%$lib_selinux%g 25674 25675CEOF 25676EOF 25677 25678cat >> $CONFIG_STATUS <<\EOF 25679 25680# Split the substitutions into bite-sized pieces for seds with 25681# small command number limits, like on Digital OSF/1 and HP-UX. 25682ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 25683ac_file=1 # Number of current file. 25684ac_beg=1 # First line for current file. 25685ac_end=$ac_max_sed_cmds # Line after last line for current file. 25686ac_more_lines=: 25687ac_sed_cmds="" 25688while $ac_more_lines; do 25689 if test $ac_beg -gt 1; then 25690 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 25691 else 25692 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 25693 fi 25694 if test ! -s conftest.s$ac_file; then 25695 ac_more_lines=false 25696 rm -f conftest.s$ac_file 25697 else 25698 if test -z "$ac_sed_cmds"; then 25699 ac_sed_cmds="sed -f conftest.s$ac_file" 25700 else 25701 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 25702 fi 25703 ac_file=`expr $ac_file + 1` 25704 ac_beg=$ac_end 25705 ac_end=`expr $ac_end + $ac_max_sed_cmds` 25706 fi 25707done 25708if test -z "$ac_sed_cmds"; then 25709 ac_sed_cmds=cat 25710fi 25711EOF 25712 25713cat >> $CONFIG_STATUS <<EOF 25714 25715CONFIG_FILES=\${CONFIG_FILES-"rules.cnf"} 25716EOF 25717cat >> $CONFIG_STATUS <<\EOF 25718for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 25719 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 25720 case "$ac_file" in 25721 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 25722 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 25723 *) ac_file_in="${ac_file}.in" ;; 25724 esac 25725 25726 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 25727 25728 # Remove last slash and all that follows it. Not all systems have dirname. 25729 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 25730 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 25731 # The file is in a subdirectory. 25732 test ! -d "$ac_dir" && mkdir "$ac_dir" 25733 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 25734 # A "../" for each directory in $ac_dir_suffix. 25735 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 25736 else 25737 ac_dir_suffix= ac_dots= 25738 fi 25739 25740 case "$ac_given_srcdir" in 25741 .) srcdir=. 25742 if test -z "$ac_dots"; then top_srcdir=. 25743 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 25744 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 25745 *) # Relative path. 25746 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 25747 top_srcdir="$ac_dots$ac_given_srcdir" ;; 25748 esac 25749 25750 25751 echo creating "$ac_file" 25752 rm -f "$ac_file" 25753 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 25754 case "$ac_file" in 25755 *Makefile*) ac_comsub="1i\\ 25756# $configure_input" ;; 25757 *) ac_comsub= ;; 25758 esac 25759 25760 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 25761 sed -e "$ac_comsub 25762s%@configure_input@%$configure_input%g 25763s%@srcdir@%$srcdir%g 25764s%@top_srcdir@%$top_srcdir%g 25765" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 25766fi; done 25767rm -f conftest.s* 25768 25769# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 25770# NAME is the cpp macro being defined and VALUE is the value it is being given. 25771# 25772# ac_d sets the value in "#define NAME VALUE" lines. 25773ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 25774ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 25775ac_dC='\3' 25776ac_dD='%g' 25777# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 25778ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 25779ac_uB='\([ ]\)%\1#\2define\3' 25780ac_uC=' ' 25781ac_uD='\4%g' 25782# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 25783ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 25784ac_eB='$%\1#\2define\3' 25785ac_eC=' ' 25786ac_eD='%g' 25787 25788if test "${CONFIG_HEADERS+set}" != set; then 25789EOF 25790cat >> $CONFIG_STATUS <<EOF 25791 CONFIG_HEADERS="xconfig.h" 25792EOF 25793cat >> $CONFIG_STATUS <<\EOF 25794fi 25795for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 25796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 25797 case "$ac_file" in 25798 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 25799 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 25800 *) ac_file_in="${ac_file}.in" ;; 25801 esac 25802 25803 echo creating $ac_file 25804 25805 rm -f conftest.frag conftest.in conftest.out 25806 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 25807 cat $ac_file_inputs > conftest.in 25808 25809EOF 25810 25811# Transform confdefs.h into a sed script conftest.vals that substitutes 25812# the proper values into config.h.in to produce config.h. And first: 25813# Protect against being on the right side of a sed subst in config.status. 25814# Protect against being in an unquoted here document in config.status. 25815rm -f conftest.vals 25816cat > conftest.hdr <<\EOF 25817s/[\\&%]/\\&/g 25818s%[\\$`]%\\&%g 25819s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 25820s%ac_d%ac_u%gp 25821s%ac_u%ac_e%gp 25822EOF 25823sed -n -f conftest.hdr confdefs.h > conftest.vals 25824rm -f conftest.hdr 25825 25826# This sed command replaces #undef with comments. This is necessary, for 25827# example, in the case of _POSIX_SOURCE, which is predefined and required 25828# on some systems where configure will not decide to define it. 25829cat >> conftest.vals <<\EOF 25830s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 25831EOF 25832 25833# Break up conftest.vals because some shells have a limit on 25834# the size of here documents, and old seds have small limits too. 25835 25836rm -f conftest.tail 25837while : 25838do 25839 ac_lines=`grep -c . conftest.vals` 25840 # grep -c gives empty output for an empty file on some AIX systems. 25841 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 25842 # Write a limited-size here document to conftest.frag. 25843 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 25844 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 25845 echo 'CEOF 25846 sed -f conftest.frag conftest.in > conftest.out 25847 rm -f conftest.in 25848 mv conftest.out conftest.in 25849' >> $CONFIG_STATUS 25850 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 25851 rm -f conftest.vals 25852 mv conftest.tail conftest.vals 25853done 25854rm -f conftest.vals 25855 25856cat >> $CONFIG_STATUS <<\EOF 25857 rm -f conftest.frag conftest.h 25858 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 25859 cat conftest.in >> conftest.h 25860 rm -f conftest.in 25861 if cmp -s $ac_file conftest.h 2>/dev/null; then 25862 echo "$ac_file is unchanged" 25863 rm -f conftest.h 25864 else 25865 # Remove last slash and all that follows it. Not all systems have dirname. 25866 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 25867 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 25868 # The file is in a subdirectory. 25869 test ! -d "$ac_dir" && mkdir "$ac_dir" 25870 fi 25871 rm -f $ac_file 25872 mv conftest.h $ac_file 25873 fi 25874fi; done 25875 25876EOF 25877cat >> $CONFIG_STATUS <<EOF 25878 25879EOF 25880cat >> $CONFIG_STATUS <<\EOF 25881 25882exit 0 25883EOF 25884chmod +x $CONFIG_STATUS 25885rm -fr confdefs* $ac_clean_files 25886test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 25887 25888