1#! /bin/sh 2 3# From configure.in Revision: 1.215 4 5 6 7 8 9# Like AC_CONFIG_HEADER, but automatically create stamp file. 10 11 12 13# Do all the work for Automake. This macro actually does too much -- 14# some checks are only needed if your package does certain things. 15# But this isn't really a big deal. 16 17# serial 1 18 19 20 21 22# 23# Check to make sure that the build environment is sane. 24# 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46# serial 25 AM_PROG_LIBTOOL 47 48 49# AM_ENABLE_SHARED - implement the --enable-shared flag 50# Usage: AM_ENABLE_SHARED[(DEFAULT)] 51# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 52# `yes'. 53 54 55# AM_DISABLE_SHARED - set the default shared flag to --disable-shared 56 57 58# AM_DISABLE_STATIC - set the default static flag to --disable-static 59 60 61# AM_ENABLE_STATIC - implement the --enable-static flag 62# Usage: AM_ENABLE_STATIC[(DEFAULT)] 63# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 64# `yes'. 65 66 67 68# AM_PROG_LD - find the path to the GNU or non-GNU linker 69 70 71 72 73# AM_PROG_NM - find the path to a BSD-compatible name lister 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92# Define a conditional. 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# Guess values for system-dependent variables and create Makefiles. 173# Generated automatically using autoconf version 2.13 174# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 175# 176# This configure script is free software; the Free Software Foundation 177# gives unlimited permission to copy, distribute and modify it. 178 179# Defaults: 180ac_help= 181ac_default_prefix=/usr/local 182# Any additions from configure.in: 183ac_default_prefix=/usr/heimdal 184ac_help="$ac_help 185 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)" 186ac_help="$ac_help 187 --enable-shared[=PKGS] build shared libraries [default=no]" 188ac_help="$ac_help 189 --enable-static[=PKGS] build static libraries [default=yes]" 190ac_help="$ac_help 191 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 192ac_help="$ac_help 193 --without-berkeley-db if you don't want berkeley db" 194ac_help="$ac_help 195 --with-krb4=dir use krb4 in dir" 196ac_help="$ac_help 197 --with-krb4-lib=dir use krb4 libraries in dir" 198ac_help="$ac_help 199 --with-krb4-include=dir use krb4 headers in dir" 200ac_help="$ac_help 201 --enable-kaserver if you want the KDC to try to emulate a kaserver" 202ac_help="$ac_help 203 --enable-kaserver-db if you want support for reading kaserver databases in hprop" 204ac_help="$ac_help 205 --disable-otp if you don't want OTP support" 206ac_help="$ac_help 207 --enable-osfc2 enable some OSF C2 support" 208ac_help="$ac_help 209 --with-readline=dir use readline in dir" 210ac_help="$ac_help 211 --with-readline-lib=dir use readline libraries in dir" 212ac_help="$ac_help 213 --with-readline-include=dir use readline headers in dir" 214ac_help="$ac_help 215 --with-hesiod=dir use hesiod in dir" 216ac_help="$ac_help 217 --with-hesiod-lib=dir use hesiod libraries in dir" 218ac_help="$ac_help 219 --with-hesiod-include=dir use hesiod headers in dir" 220ac_help="$ac_help 221 --enable-bigendian the target is big endian" 222ac_help="$ac_help 223 --enable-littleendian the target is little endian" 224ac_help="$ac_help 225 --with-x use the X Window System" 226ac_help="$ac_help 227 --enable-netinfo enable netinfo for configuration lookup" 228ac_help="$ac_help 229 --without-ipv6 do not enable IPv6 support" 230 231# Initialize some variables set by options. 232# The variables have the same names as the options, with 233# dashes changed to underlines. 234build=NONE 235cache_file=./config.cache 236exec_prefix=NONE 237host=NONE 238no_create= 239nonopt=NONE 240no_recursion= 241prefix=NONE 242program_prefix=NONE 243program_suffix=NONE 244program_transform_name=s,x,x, 245silent= 246site= 247srcdir= 248target=NONE 249verbose= 250x_includes=NONE 251x_libraries=NONE 252bindir='${exec_prefix}/bin' 253sbindir='${exec_prefix}/sbin' 254libexecdir='${exec_prefix}/libexec' 255datadir='${prefix}/share' 256sysconfdir='${prefix}/etc' 257sharedstatedir='${prefix}/com' 258localstatedir='${prefix}/var' 259libdir='${exec_prefix}/lib' 260includedir='${prefix}/include' 261oldincludedir='/usr/include' 262infodir='${prefix}/info' 263mandir='${prefix}/man' 264 265# Initialize some other variables. 266subdirs= 267MFLAGS= MAKEFLAGS= 268SHELL=${CONFIG_SHELL-/bin/sh} 269# Maximum number of lines to put in a shell here document. 270ac_max_here_lines=12 271 272ac_prev= 273for ac_option 274do 275 276 # If the previous option needs an argument, assign it. 277 if test -n "$ac_prev"; then 278 eval "$ac_prev=\$ac_option" 279 ac_prev= 280 continue 281 fi 282 283 case "$ac_option" in 284 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 285 *) ac_optarg= ;; 286 esac 287 288 # Accept the important Cygnus configure options, so we can diagnose typos. 289 290 case "$ac_option" in 291 292 -bindir | --bindir | --bindi | --bind | --bin | --bi) 293 ac_prev=bindir ;; 294 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 295 bindir="$ac_optarg" ;; 296 297 -build | --build | --buil | --bui | --bu) 298 ac_prev=build ;; 299 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 300 build="$ac_optarg" ;; 301 302 -cache-file | --cache-file | --cache-fil | --cache-fi \ 303 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 304 ac_prev=cache_file ;; 305 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 306 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 307 cache_file="$ac_optarg" ;; 308 309 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 310 ac_prev=datadir ;; 311 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 312 | --da=*) 313 datadir="$ac_optarg" ;; 314 315 -disable-* | --disable-*) 316 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 317 # Reject names that are not valid shell variable names. 318 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 319 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 320 fi 321 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 322 eval "enable_${ac_feature}=no" ;; 323 324 -enable-* | --enable-*) 325 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 326 # Reject names that are not valid shell variable names. 327 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 328 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 329 fi 330 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 331 case "$ac_option" in 332 *=*) ;; 333 *) ac_optarg=yes ;; 334 esac 335 eval "enable_${ac_feature}='$ac_optarg'" ;; 336 337 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 338 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 339 | --exec | --exe | --ex) 340 ac_prev=exec_prefix ;; 341 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 342 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 343 | --exec=* | --exe=* | --ex=*) 344 exec_prefix="$ac_optarg" ;; 345 346 -gas | --gas | --ga | --g) 347 # Obsolete; use --with-gas. 348 with_gas=yes ;; 349 350 -help | --help | --hel | --he) 351 # Omit some internal or obsolete options to make the list less imposing. 352 # This message is too long to be a string in the A/UX 3.1 sh. 353 cat << EOF 354Usage: configure [options] [host] 355Options: [defaults in brackets after descriptions] 356Configuration: 357 --cache-file=FILE cache test results in FILE 358 --help print this message 359 --no-create do not create output files 360 --quiet, --silent do not print \`checking...' messages 361 --version print the version of autoconf that created configure 362Directory and file names: 363 --prefix=PREFIX install architecture-independent files in PREFIX 364 [$ac_default_prefix] 365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 366 [same as prefix] 367 --bindir=DIR user executables in DIR [EPREFIX/bin] 368 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 369 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 370 --datadir=DIR read-only architecture-independent data in DIR 371 [PREFIX/share] 372 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 373 --sharedstatedir=DIR modifiable architecture-independent data in DIR 374 [PREFIX/com] 375 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 376 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 377 --includedir=DIR C header files in DIR [PREFIX/include] 378 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 379 --infodir=DIR info documentation in DIR [PREFIX/info] 380 --mandir=DIR man documentation in DIR [PREFIX/man] 381 --srcdir=DIR find the sources in DIR [configure dir or ..] 382 --program-prefix=PREFIX prepend PREFIX to installed program names 383 --program-suffix=SUFFIX append SUFFIX to installed program names 384 --program-transform-name=PROGRAM 385 run sed PROGRAM on installed program names 386EOF 387 cat << EOF 388Host type: 389 --build=BUILD configure for building on BUILD [BUILD=HOST] 390 --host=HOST configure for HOST [guessed] 391 --target=TARGET configure for TARGET [TARGET=HOST] 392Features and packages: 393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 397 --x-includes=DIR X include files are in DIR 398 --x-libraries=DIR X library files are in DIR 399EOF 400 if test -n "$ac_help"; then 401 echo "--enable and --with options recognized:$ac_help" 402 fi 403 exit 0 ;; 404 405 -host | --host | --hos | --ho) 406 ac_prev=host ;; 407 -host=* | --host=* | --hos=* | --ho=*) 408 host="$ac_optarg" ;; 409 410 -includedir | --includedir | --includedi | --included | --include \ 411 | --includ | --inclu | --incl | --inc) 412 ac_prev=includedir ;; 413 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 414 | --includ=* | --inclu=* | --incl=* | --inc=*) 415 includedir="$ac_optarg" ;; 416 417 -infodir | --infodir | --infodi | --infod | --info | --inf) 418 ac_prev=infodir ;; 419 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 420 infodir="$ac_optarg" ;; 421 422 -libdir | --libdir | --libdi | --libd) 423 ac_prev=libdir ;; 424 -libdir=* | --libdir=* | --libdi=* | --libd=*) 425 libdir="$ac_optarg" ;; 426 427 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 428 | --libexe | --libex | --libe) 429 ac_prev=libexecdir ;; 430 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 431 | --libexe=* | --libex=* | --libe=*) 432 libexecdir="$ac_optarg" ;; 433 434 -localstatedir | --localstatedir | --localstatedi | --localstated \ 435 | --localstate | --localstat | --localsta | --localst \ 436 | --locals | --local | --loca | --loc | --lo) 437 ac_prev=localstatedir ;; 438 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 439 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 440 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 441 localstatedir="$ac_optarg" ;; 442 443 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 444 ac_prev=mandir ;; 445 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 446 mandir="$ac_optarg" ;; 447 448 -nfp | --nfp | --nf) 449 # Obsolete; use --without-fp. 450 with_fp=no ;; 451 452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 453 | --no-cr | --no-c) 454 no_create=yes ;; 455 456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 458 no_recursion=yes ;; 459 460 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 461 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 462 | --oldin | --oldi | --old | --ol | --o) 463 ac_prev=oldincludedir ;; 464 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 465 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 466 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 467 oldincludedir="$ac_optarg" ;; 468 469 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 470 ac_prev=prefix ;; 471 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 472 prefix="$ac_optarg" ;; 473 474 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 475 | --program-pre | --program-pr | --program-p) 476 ac_prev=program_prefix ;; 477 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 478 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 479 program_prefix="$ac_optarg" ;; 480 481 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 482 | --program-suf | --program-su | --program-s) 483 ac_prev=program_suffix ;; 484 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 485 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 486 program_suffix="$ac_optarg" ;; 487 488 -program-transform-name | --program-transform-name \ 489 | --program-transform-nam | --program-transform-na \ 490 | --program-transform-n | --program-transform- \ 491 | --program-transform | --program-transfor \ 492 | --program-transfo | --program-transf \ 493 | --program-trans | --program-tran \ 494 | --progr-tra | --program-tr | --program-t) 495 ac_prev=program_transform_name ;; 496 -program-transform-name=* | --program-transform-name=* \ 497 | --program-transform-nam=* | --program-transform-na=* \ 498 | --program-transform-n=* | --program-transform-=* \ 499 | --program-transform=* | --program-transfor=* \ 500 | --program-transfo=* | --program-transf=* \ 501 | --program-trans=* | --program-tran=* \ 502 | --progr-tra=* | --program-tr=* | --program-t=*) 503 program_transform_name="$ac_optarg" ;; 504 505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 506 | -silent | --silent | --silen | --sile | --sil) 507 silent=yes ;; 508 509 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 510 ac_prev=sbindir ;; 511 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 512 | --sbi=* | --sb=*) 513 sbindir="$ac_optarg" ;; 514 515 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 516 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 517 | --sharedst | --shareds | --shared | --share | --shar \ 518 | --sha | --sh) 519 ac_prev=sharedstatedir ;; 520 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 521 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 522 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 523 | --sha=* | --sh=*) 524 sharedstatedir="$ac_optarg" ;; 525 526 -site | --site | --sit) 527 ac_prev=site ;; 528 -site=* | --site=* | --sit=*) 529 site="$ac_optarg" ;; 530 531 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 532 ac_prev=srcdir ;; 533 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 534 srcdir="$ac_optarg" ;; 535 536 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 537 | --syscon | --sysco | --sysc | --sys | --sy) 538 ac_prev=sysconfdir ;; 539 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 540 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 541 sysconfdir="$ac_optarg" ;; 542 543 -target | --target | --targe | --targ | --tar | --ta | --t) 544 ac_prev=target ;; 545 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 546 target="$ac_optarg" ;; 547 548 -v | -verbose | --verbose | --verbos | --verbo | --verb) 549 verbose=yes ;; 550 551 -version | --version | --versio | --versi | --vers) 552 echo "configure generated by autoconf version 2.13" 553 exit 0 ;; 554 555 -with-* | --with-*) 556 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 557 # Reject names that are not valid shell variable names. 558 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 559 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 560 fi 561 ac_package=`echo $ac_package| sed 's/-/_/g'` 562 case "$ac_option" in 563 *=*) ;; 564 *) ac_optarg=yes ;; 565 esac 566 eval "with_${ac_package}='$ac_optarg'" ;; 567 568 -without-* | --without-*) 569 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 570 # Reject names that are not valid shell variable names. 571 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 572 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 573 fi 574 ac_package=`echo $ac_package| sed 's/-/_/g'` 575 eval "with_${ac_package}=no" ;; 576 577 --x) 578 # Obsolete; use --with-x. 579 with_x=yes ;; 580 581 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 582 | --x-incl | --x-inc | --x-in | --x-i) 583 ac_prev=x_includes ;; 584 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 585 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 586 x_includes="$ac_optarg" ;; 587 588 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 589 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 590 ac_prev=x_libraries ;; 591 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 592 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 593 x_libraries="$ac_optarg" ;; 594 595 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 596 ;; 597 598 *) 599 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 600 echo "configure: warning: $ac_option: invalid host type" 1>&2 601 fi 602 if test "x$nonopt" != xNONE; then 603 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 604 fi 605 nonopt="$ac_option" 606 ;; 607 608 esac 609done 610 611if test -n "$ac_prev"; then 612 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 613fi 614 615trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 616 617# File descriptor usage: 618# 0 standard input 619# 1 file creation 620# 2 errors and warnings 621# 3 some systems may open it to /dev/tty 622# 4 used on the Kubota Titan 623# 6 checking for... messages and results 624# 5 compiler messages saved in config.log 625if test "$silent" = yes; then 626 exec 6>/dev/null 627else 628 exec 6>&1 629fi 630exec 5>./config.log 631 632echo "\ 633This file contains any messages produced by compilers while 634running configure, to aid debugging if configure makes a mistake. 635" 1>&5 636 637# Strip out --no-create and --no-recursion so they do not pile up. 638# Also quote any args containing shell metacharacters. 639ac_configure_args= 640for ac_arg 641do 642 case "$ac_arg" in 643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 644 | --no-cr | --no-c) ;; 645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 647 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 648 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 649 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 650 esac 651done 652 653# NLS nuisances. 654# Only set these to C if already set. These must not be set unconditionally 655# because not all systems understand e.g. LANG=C (notably SCO). 656# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 657# Non-C LC_CTYPE values break the ctype check. 658if test "${LANG+set}" = set; then LANG=C; export LANG; fi 659if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 660if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 661if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 662 663# confdefs.h avoids OS command line length limits that DEFS can exceed. 664rm -rf conftest* confdefs.h 665# AIX cpp loses on an empty file, so make sure it contains at least a newline. 666echo > confdefs.h 667 668# A filename unique to this package, relative to the directory that 669# configure is in, which we can look for to find out if srcdir is correct. 670ac_unique_file=lib/krb5/send_to_kdc.c 671 672# Find the source files, if location was not specified. 673if test -z "$srcdir"; then 674 ac_srcdir_defaulted=yes 675 # Try the directory containing this script, then its parent. 676 ac_prog=$0 677 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 678 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 679 srcdir=$ac_confdir 680 if test ! -r $srcdir/$ac_unique_file; then 681 srcdir=.. 682 fi 683else 684 ac_srcdir_defaulted=no 685fi 686if test ! -r $srcdir/$ac_unique_file; then 687 if test "$ac_srcdir_defaulted" = yes; then 688 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 689 else 690 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 691 fi 692fi 693srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 694 695# Prefer explicitly selected file to automatically selected ones. 696if test -z "$CONFIG_SITE"; then 697 if test "x$prefix" != xNONE; then 698 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 699 else 700 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 701 fi 702fi 703for ac_site_file in $CONFIG_SITE; do 704 if test -r "$ac_site_file"; then 705 echo "loading site script $ac_site_file" 706 . "$ac_site_file" 707 fi 708done 709 710if test -r "$cache_file"; then 711 echo "loading cache $cache_file" 712 . $cache_file 713else 714 echo "creating cache $cache_file" 715 > $cache_file 716fi 717 718ac_ext=c 719# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 720ac_cpp='$CPP $CPPFLAGS' 721ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 722ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 723cross_compiling=$ac_cv_prog_cc_cross 724 725ac_exeext= 726ac_objext=o 727if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 728 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 729 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 730 ac_n= ac_c=' 731' ac_t=' ' 732 else 733 ac_n=-n ac_c= ac_t= 734 fi 735else 736 ac_n= ac_c='\c' ac_t= 737fi 738 739 740 741 742 743 744ac_aux_dir= 745for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 746 if test -f $ac_dir/install-sh; then 747 ac_aux_dir=$ac_dir 748 ac_install_sh="$ac_aux_dir/install-sh -c" 749 break 750 elif test -f $ac_dir/install.sh; then 751 ac_aux_dir=$ac_dir 752 ac_install_sh="$ac_aux_dir/install.sh -c" 753 break 754 fi 755done 756if test -z "$ac_aux_dir"; then 757 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 758fi 759ac_config_guess=$ac_aux_dir/config.guess 760ac_config_sub=$ac_aux_dir/config.sub 761ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 762 763# Find a good install program. We prefer a C program (faster), 764# so one script is as good as another. But avoid the broken or 765# incompatible versions: 766# SysV /etc/install, /usr/sbin/install 767# SunOS /usr/etc/install 768# IRIX /sbin/install 769# AIX /bin/install 770# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 771# AFS /usr/afsws/bin/install, which mishandles nonexistent args 772# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 773# ./install, which can be erroneously created by make from ./install.sh. 774echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 775echo "configure:776: checking for a BSD compatible install" >&5 776if test -z "$INSTALL"; then 777if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 778 echo $ac_n "(cached) $ac_c" 1>&6 779else 780 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 781 for ac_dir in $PATH; do 782 # Account for people who put trailing slashes in PATH elements. 783 case "$ac_dir/" in 784 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 785 *) 786 # OSF1 and SCO ODT 3.0 have their own names for install. 787 # Don't use installbsd from OSF since it installs stuff as root 788 # by default. 789 for ac_prog in ginstall scoinst install; do 790 if test -f $ac_dir/$ac_prog; then 791 if test $ac_prog = install && 792 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 793 # AIX install. It has an incompatible calling convention. 794 : 795 else 796 ac_cv_path_install="$ac_dir/$ac_prog -c" 797 break 2 798 fi 799 fi 800 done 801 ;; 802 esac 803 done 804 IFS="$ac_save_IFS" 805 806fi 807 if test "${ac_cv_path_install+set}" = set; then 808 INSTALL="$ac_cv_path_install" 809 else 810 # As a last resort, use the slow shell script. We don't cache a 811 # path for INSTALL within a source directory, because that will 812 # break other packages using the cache if that directory is 813 # removed, or if the path is relative. 814 INSTALL="$ac_install_sh" 815 fi 816fi 817echo "$ac_t""$INSTALL" 1>&6 818 819# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 820# It thinks the first close brace ends the variable substitution. 821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 822 823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 824 825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 826 827echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 828echo "configure:829: checking whether build environment is sane" >&5 829# Just in case 830sleep 1 831echo timestamp > conftestfile 832# Do `set' in a subshell so we don't clobber the current shell's 833# arguments. Must try -L first in case configure is actually a 834# symlink; some systems play weird games with the mod time of symlinks 835# (eg FreeBSD returns the mod time of the symlink's containing 836# directory). 837if ( 838 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 839 if test "$*" = "X"; then 840 # -L didn't work. 841 set X `ls -t $srcdir/configure conftestfile` 842 fi 843 if test "$*" != "X $srcdir/configure conftestfile" \ 844 && test "$*" != "X conftestfile $srcdir/configure"; then 845 846 # If neither matched, then we have a broken ls. This can happen 847 # if, for instance, CONFIG_SHELL is bash and it inherits a 848 # broken ls alias from the environment. This has actually 849 # happened. Such a system could not be considered "sane". 850 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 851alias in your environment" 1>&2; exit 1; } 852 fi 853 854 test "$2" = conftestfile 855 ) 856then 857 # Ok. 858 : 859else 860 { echo "configure: error: newly created file is older than distributed files! 861Check your system clock" 1>&2; exit 1; } 862fi 863rm -f conftest* 864echo "$ac_t""yes" 1>&6 865if test "$program_transform_name" = s,x,x,; then 866 program_transform_name= 867else 868 # Double any \ or $. echo might interpret backslashes. 869 cat <<\EOF_SED > conftestsed 870s,\\,\\\\,g; s,\$,$$,g 871EOF_SED 872 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 873 rm -f conftestsed 874fi 875test "$program_prefix" != NONE && 876 program_transform_name="s,^,${program_prefix},; $program_transform_name" 877# Use a double $ so make ignores it. 878test "$program_suffix" != NONE && 879 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 880 881# sed with no file args requires a program. 882test "$program_transform_name" = "" && program_transform_name="s,x,x," 883 884echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 885echo "configure:886: checking whether ${MAKE-make} sets \${MAKE}" >&5 886set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 887if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 888 echo $ac_n "(cached) $ac_c" 1>&6 889else 890 cat > conftestmake <<\EOF 891all: 892 @echo 'ac_maketemp="${MAKE}"' 893EOF 894# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 895eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 896if test -n "$ac_maketemp"; then 897 eval ac_cv_prog_make_${ac_make}_set=yes 898else 899 eval ac_cv_prog_make_${ac_make}_set=no 900fi 901rm -f conftestmake 902fi 903if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 904 echo "$ac_t""yes" 1>&6 905 SET_MAKE= 906else 907 echo "$ac_t""no" 1>&6 908 SET_MAKE="MAKE=${MAKE-make}" 909fi 910 911 912PACKAGE=heimdal 913 914VERSION=0.2m 915 916if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 917 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 918fi 919cat >> confdefs.h <<EOF 920#define PACKAGE "$PACKAGE" 921EOF 922 923cat >> confdefs.h <<EOF 924#define VERSION "$VERSION" 925EOF 926 927 928 929missing_dir=`cd $ac_aux_dir && pwd` 930echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 931echo "configure:932: checking for working aclocal" >&5 932# Run test in a subshell; some versions of sh will print an error if 933# an executable is not found, even if stderr is redirected. 934# Redirect stdin to placate older versions of autoconf. Sigh. 935if (aclocal --version) < /dev/null > /dev/null 2>&1; then 936 ACLOCAL=aclocal 937 echo "$ac_t""found" 1>&6 938else 939 ACLOCAL="$missing_dir/missing aclocal" 940 echo "$ac_t""missing" 1>&6 941fi 942 943echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 944echo "configure:945: checking for working autoconf" >&5 945# Run test in a subshell; some versions of sh will print an error if 946# an executable is not found, even if stderr is redirected. 947# Redirect stdin to placate older versions of autoconf. Sigh. 948if (autoconf --version) < /dev/null > /dev/null 2>&1; then 949 AUTOCONF=autoconf 950 echo "$ac_t""found" 1>&6 951else 952 AUTOCONF="$missing_dir/missing autoconf" 953 echo "$ac_t""missing" 1>&6 954fi 955 956echo $ac_n "checking for working automake""... $ac_c" 1>&6 957echo "configure:958: checking for working automake" >&5 958# Run test in a subshell; some versions of sh will print an error if 959# an executable is not found, even if stderr is redirected. 960# Redirect stdin to placate older versions of autoconf. Sigh. 961if (automake --version) < /dev/null > /dev/null 2>&1; then 962 AUTOMAKE=automake 963 echo "$ac_t""found" 1>&6 964else 965 AUTOMAKE="$missing_dir/missing automake" 966 echo "$ac_t""missing" 1>&6 967fi 968 969echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 970echo "configure:971: checking for working autoheader" >&5 971# Run test in a subshell; some versions of sh will print an error if 972# an executable is not found, even if stderr is redirected. 973# Redirect stdin to placate older versions of autoconf. Sigh. 974if (autoheader --version) < /dev/null > /dev/null 2>&1; then 975 AUTOHEADER=autoheader 976 echo "$ac_t""found" 1>&6 977else 978 AUTOHEADER="$missing_dir/missing autoheader" 979 echo "$ac_t""missing" 1>&6 980fi 981 982echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 983echo "configure:984: checking for working makeinfo" >&5 984# Run test in a subshell; some versions of sh will print an error if 985# an executable is not found, even if stderr is redirected. 986# Redirect stdin to placate older versions of autoconf. Sigh. 987if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 988 MAKEINFO=makeinfo 989 echo "$ac_t""found" 1>&6 990else 991 MAKEINFO="$missing_dir/missing makeinfo" 992 echo "$ac_t""missing" 1>&6 993fi 994 995 996 997 998 999 1000# Make sure we can run config.sub. 1001if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 1002else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 1003fi 1004 1005echo $ac_n "checking host system type""... $ac_c" 1>&6 1006echo "configure:1007: checking host system type" >&5 1007 1008host_alias=$host 1009case "$host_alias" in 1010NONE) 1011 case $nonopt in 1012 NONE) 1013 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 1015 fi ;; 1016 *) host_alias=$nonopt ;; 1017 esac ;; 1018esac 1019 1020host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 1021host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1022host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1023host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1024echo "$ac_t""$host" 1>&6 1025 1026CANONICAL_HOST=$host 1027 1028 1029sunos=no 1030case "$host" in 1031*-*-sunos4*) 1032 sunos=40 1033 ;; 1034*-*-solaris2.7) 1035 sunos=57 1036 ;; 1037*-*-solaris2*) 1038 sunos=50 1039 ;; 1040esac 1041if test "$sunos" != no; then 1042 cat >> confdefs.h <<EOF 1043#define SunOS $sunos 1044EOF 1045 1046fi 1047 1048aix=no 1049case "$host" in 1050*-*-aix3*) 1051 aix=3 1052 ;; 1053*-*-aix4*) 1054 aix=4 1055 ;; 1056esac 1057 1058#test -z "$CFLAGS" && CFLAGS="-g" 1059 1060# Extract the first word of "gcc", so it can be a program name with args. 1061set dummy gcc; ac_word=$2 1062echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1063echo "configure:1064: checking for $ac_word" >&5 1064if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1065 echo $ac_n "(cached) $ac_c" 1>&6 1066else 1067 if test -n "$CC"; then 1068 ac_cv_prog_CC="$CC" # Let the user override the test. 1069else 1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1071 ac_dummy="$PATH" 1072 for ac_dir in $ac_dummy; do 1073 test -z "$ac_dir" && ac_dir=. 1074 if test -f $ac_dir/$ac_word; then 1075 ac_cv_prog_CC="gcc" 1076 break 1077 fi 1078 done 1079 IFS="$ac_save_ifs" 1080fi 1081fi 1082CC="$ac_cv_prog_CC" 1083if test -n "$CC"; then 1084 echo "$ac_t""$CC" 1>&6 1085else 1086 echo "$ac_t""no" 1>&6 1087fi 1088 1089if test -z "$CC"; then 1090 # Extract the first word of "cc", so it can be a program name with args. 1091set dummy cc; ac_word=$2 1092echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1093echo "configure:1094: checking for $ac_word" >&5 1094if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1095 echo $ac_n "(cached) $ac_c" 1>&6 1096else 1097 if test -n "$CC"; then 1098 ac_cv_prog_CC="$CC" # Let the user override the test. 1099else 1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1101 ac_prog_rejected=no 1102 ac_dummy="$PATH" 1103 for ac_dir in $ac_dummy; do 1104 test -z "$ac_dir" && ac_dir=. 1105 if test -f $ac_dir/$ac_word; then 1106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1107 ac_prog_rejected=yes 1108 continue 1109 fi 1110 ac_cv_prog_CC="cc" 1111 break 1112 fi 1113 done 1114 IFS="$ac_save_ifs" 1115if test $ac_prog_rejected = yes; then 1116 # We found a bogon in the path, so make sure we never use it. 1117 set dummy $ac_cv_prog_CC 1118 shift 1119 if test $# -gt 0; then 1120 # We chose a different compiler from the bogus one. 1121 # However, it has the same basename, so the bogon will be chosen 1122 # first if we set CC to just the basename; use the full file name. 1123 shift 1124 set dummy "$ac_dir/$ac_word" "$@" 1125 shift 1126 ac_cv_prog_CC="$@" 1127 fi 1128fi 1129fi 1130fi 1131CC="$ac_cv_prog_CC" 1132if test -n "$CC"; then 1133 echo "$ac_t""$CC" 1>&6 1134else 1135 echo "$ac_t""no" 1>&6 1136fi 1137 1138 if test -z "$CC"; then 1139 case "`uname -s`" in 1140 *win32* | *WIN32*) 1141 # Extract the first word of "cl", so it can be a program name with args. 1142set dummy cl; ac_word=$2 1143echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1144echo "configure:1145: checking for $ac_word" >&5 1145if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1146 echo $ac_n "(cached) $ac_c" 1>&6 1147else 1148 if test -n "$CC"; then 1149 ac_cv_prog_CC="$CC" # Let the user override the test. 1150else 1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1152 ac_dummy="$PATH" 1153 for ac_dir in $ac_dummy; do 1154 test -z "$ac_dir" && ac_dir=. 1155 if test -f $ac_dir/$ac_word; then 1156 ac_cv_prog_CC="cl" 1157 break 1158 fi 1159 done 1160 IFS="$ac_save_ifs" 1161fi 1162fi 1163CC="$ac_cv_prog_CC" 1164if test -n "$CC"; then 1165 echo "$ac_t""$CC" 1>&6 1166else 1167 echo "$ac_t""no" 1>&6 1168fi 1169 ;; 1170 esac 1171 fi 1172 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1173fi 1174 1175echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1176echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1177 1178ac_ext=c 1179# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1180ac_cpp='$CPP $CPPFLAGS' 1181ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1182ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1183cross_compiling=$ac_cv_prog_cc_cross 1184 1185cat > conftest.$ac_ext << EOF 1186 1187#line 1188 "configure" 1188#include "confdefs.h" 1189 1190main(){return(0);} 1191EOF 1192if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1193 ac_cv_prog_cc_works=yes 1194 # If we can't run a trivial program, we are probably using a cross compiler. 1195 if (./conftest; exit) 2>/dev/null; then 1196 ac_cv_prog_cc_cross=no 1197 else 1198 ac_cv_prog_cc_cross=yes 1199 fi 1200else 1201 echo "configure: failed program was:" >&5 1202 cat conftest.$ac_ext >&5 1203 ac_cv_prog_cc_works=no 1204fi 1205rm -fr conftest* 1206ac_ext=c 1207# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1208ac_cpp='$CPP $CPPFLAGS' 1209ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1210ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1211cross_compiling=$ac_cv_prog_cc_cross 1212 1213echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1214if test $ac_cv_prog_cc_works = no; then 1215 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1216fi 1217echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1218echo "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1219echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1220cross_compiling=$ac_cv_prog_cc_cross 1221 1222echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1223echo "configure:1224: checking whether we are using GNU C" >&5 1224if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1225 echo $ac_n "(cached) $ac_c" 1>&6 1226else 1227 cat > conftest.c <<EOF 1228#ifdef __GNUC__ 1229 yes; 1230#endif 1231EOF 1232if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1233 ac_cv_prog_gcc=yes 1234else 1235 ac_cv_prog_gcc=no 1236fi 1237fi 1238 1239echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1240 1241if test $ac_cv_prog_gcc = yes; then 1242 GCC=yes 1243else 1244 GCC= 1245fi 1246 1247ac_test_CFLAGS="${CFLAGS+set}" 1248ac_save_CFLAGS="$CFLAGS" 1249CFLAGS= 1250echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1251echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5 1252if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1253 echo $ac_n "(cached) $ac_c" 1>&6 1254else 1255 echo 'void f(){}' > conftest.c 1256if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1257 ac_cv_prog_cc_g=yes 1258else 1259 ac_cv_prog_cc_g=no 1260fi 1261rm -f conftest* 1262 1263fi 1264 1265echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1266if test "$ac_test_CFLAGS" = set; then 1267 CFLAGS="$ac_save_CFLAGS" 1268elif test $ac_cv_prog_cc_g = yes; then 1269 if test "$GCC" = yes; then 1270 CFLAGS="-g -O2" 1271 else 1272 CFLAGS="-g" 1273 fi 1274else 1275 if test "$GCC" = yes; then 1276 CFLAGS="-O2" 1277 else 1278 CFLAGS= 1279 fi 1280fi 1281 1282 1283echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 1284echo "configure:1285: checking for Cygwin environment" >&5 1285if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 1286 echo $ac_n "(cached) $ac_c" 1>&6 1287else 1288 cat > conftest.$ac_ext <<EOF 1289#line 1290 "configure" 1290#include "confdefs.h" 1291 1292int main() { 1293 1294#ifndef __CYGWIN__ 1295#define __CYGWIN__ __CYGWIN32__ 1296#endif 1297return __CYGWIN__; 1298; return 0; } 1299EOF 1300if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1301 rm -rf conftest* 1302 ac_cv_cygwin=yes 1303else 1304 echo "configure: failed program was:" >&5 1305 cat conftest.$ac_ext >&5 1306 rm -rf conftest* 1307 ac_cv_cygwin=no 1308fi 1309rm -f conftest* 1310rm -f conftest* 1311fi 1312 1313echo "$ac_t""$ac_cv_cygwin" 1>&6 1314CYGWIN= 1315test "$ac_cv_cygwin" = yes && CYGWIN=yes 1316echo $ac_n "checking for object suffix""... $ac_c" 1>&6 1317echo "configure:1318: checking for object suffix" >&5 1318if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then 1319 echo $ac_n "(cached) $ac_c" 1>&6 1320else 1321 rm -f conftest* 1322echo 'int i = 1;' > conftest.$ac_ext 1323if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1324 for ac_file in conftest.*; do 1325 case $ac_file in 1326 *.c) ;; 1327 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; 1328 esac 1329 done 1330else 1331 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } 1332fi 1333rm -f conftest* 1334fi 1335 1336echo "$ac_t""$ac_cv_objext" 1>&6 1337OBJEXT=$ac_cv_objext 1338ac_objext=$ac_cv_objext 1339 1340echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 1341echo "configure:1342: checking for mingw32 environment" >&5 1342if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 1343 echo $ac_n "(cached) $ac_c" 1>&6 1344else 1345 cat > conftest.$ac_ext <<EOF 1346#line 1347 "configure" 1347#include "confdefs.h" 1348 1349int main() { 1350return __MINGW32__; 1351; return 0; } 1352EOF 1353if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1354 rm -rf conftest* 1355 ac_cv_mingw32=yes 1356else 1357 echo "configure: failed program was:" >&5 1358 cat conftest.$ac_ext >&5 1359 rm -rf conftest* 1360 ac_cv_mingw32=no 1361fi 1362rm -f conftest* 1363rm -f conftest* 1364fi 1365 1366echo "$ac_t""$ac_cv_mingw32" 1>&6 1367MINGW32= 1368test "$ac_cv_mingw32" = yes && MINGW32=yes 1369 1370 1371echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1372echo "configure:1373: checking for executable suffix" >&5 1373if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1374 echo $ac_n "(cached) $ac_c" 1>&6 1375else 1376 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1377 ac_cv_exeext=.exe 1378else 1379 rm -f conftest* 1380 echo 'int main () { return 0; }' > conftest.$ac_ext 1381 ac_cv_exeext= 1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1383 for file in conftest.*; do 1384 case $file in 1385 *.c | *.o | *.obj) ;; 1386 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1387 esac 1388 done 1389 else 1390 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1391 fi 1392 rm -f conftest* 1393 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1394fi 1395fi 1396 1397EXEEXT="" 1398test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1399echo "$ac_t""${ac_cv_exeext}" 1>&6 1400ac_exeext=$EXEEXT 1401 1402 1403for ac_prog in 'bison -y' byacc 1404do 1405# Extract the first word of "$ac_prog", so it can be a program name with args. 1406set dummy $ac_prog; ac_word=$2 1407echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1408echo "configure:1409: checking for $ac_word" >&5 1409if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 1410 echo $ac_n "(cached) $ac_c" 1>&6 1411else 1412 if test -n "$YACC"; then 1413 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1414else 1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1416 ac_dummy="$PATH" 1417 for ac_dir in $ac_dummy; do 1418 test -z "$ac_dir" && ac_dir=. 1419 if test -f $ac_dir/$ac_word; then 1420 ac_cv_prog_YACC="$ac_prog" 1421 break 1422 fi 1423 done 1424 IFS="$ac_save_ifs" 1425fi 1426fi 1427YACC="$ac_cv_prog_YACC" 1428if test -n "$YACC"; then 1429 echo "$ac_t""$YACC" 1>&6 1430else 1431 echo "$ac_t""no" 1>&6 1432fi 1433 1434test -n "$YACC" && break 1435done 1436test -n "$YACC" || YACC="yacc" 1437 1438echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1439echo "configure:1440: checking how to run the C preprocessor" >&5 1440# On Suns, sometimes $CPP names a directory. 1441if test -n "$CPP" && test -d "$CPP"; then 1442 CPP= 1443fi 1444if test -z "$CPP"; then 1445if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1446 echo $ac_n "(cached) $ac_c" 1>&6 1447else 1448 # This must be in double quotes, not single quotes, because CPP may get 1449 # substituted into the Makefile and "${CC-cc}" will confuse make. 1450 CPP="${CC-cc} -E" 1451 # On the NeXT, cc -E runs the code through the compiler's parser, 1452 # not just through cpp. 1453 cat > conftest.$ac_ext <<EOF 1454#line 1455 "configure" 1455#include "confdefs.h" 1456#include <assert.h> 1457Syntax Error 1458EOF 1459ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1460{ (eval echo configure:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1461ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1462if test -z "$ac_err"; then 1463 : 1464else 1465 echo "$ac_err" >&5 1466 echo "configure: failed program was:" >&5 1467 cat conftest.$ac_ext >&5 1468 rm -rf conftest* 1469 CPP="${CC-cc} -E -traditional-cpp" 1470 cat > conftest.$ac_ext <<EOF 1471#line 1472 "configure" 1472#include "confdefs.h" 1473#include <assert.h> 1474Syntax Error 1475EOF 1476ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1477{ (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1478ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1479if test -z "$ac_err"; then 1480 : 1481else 1482 echo "$ac_err" >&5 1483 echo "configure: failed program was:" >&5 1484 cat conftest.$ac_ext >&5 1485 rm -rf conftest* 1486 CPP="${CC-cc} -nologo -E" 1487 cat > conftest.$ac_ext <<EOF 1488#line 1489 "configure" 1489#include "confdefs.h" 1490#include <assert.h> 1491Syntax Error 1492EOF 1493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1494{ (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1496if test -z "$ac_err"; then 1497 : 1498else 1499 echo "$ac_err" >&5 1500 echo "configure: failed program was:" >&5 1501 cat conftest.$ac_ext >&5 1502 rm -rf conftest* 1503 CPP=/lib/cpp 1504fi 1505rm -f conftest* 1506fi 1507rm -f conftest* 1508fi 1509rm -f conftest* 1510 ac_cv_prog_CPP="$CPP" 1511fi 1512 CPP="$ac_cv_prog_CPP" 1513else 1514 ac_cv_prog_CPP="$CPP" 1515fi 1516echo "$ac_t""$CPP" 1>&6 1517 1518missing_dir=`cd $ac_aux_dir && pwd` 1519for ac_prog in flex lex 1520do 1521# Extract the first word of "$ac_prog", so it can be a program name with args. 1522set dummy $ac_prog; ac_word=$2 1523echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1524echo "configure:1525: checking for $ac_word" >&5 1525if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1526 echo $ac_n "(cached) $ac_c" 1>&6 1527else 1528 if test -n "$LEX"; then 1529 ac_cv_prog_LEX="$LEX" # Let the user override the test. 1530else 1531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1532 ac_dummy="$PATH" 1533 for ac_dir in $ac_dummy; do 1534 test -z "$ac_dir" && ac_dir=. 1535 if test -f $ac_dir/$ac_word; then 1536 ac_cv_prog_LEX="$ac_prog" 1537 break 1538 fi 1539 done 1540 IFS="$ac_save_ifs" 1541fi 1542fi 1543LEX="$ac_cv_prog_LEX" 1544if test -n "$LEX"; then 1545 echo "$ac_t""$LEX" 1>&6 1546else 1547 echo "$ac_t""no" 1>&6 1548fi 1549 1550test -n "$LEX" && break 1551done 1552test -n "$LEX" || LEX=""$missing_dir/missing flex"" 1553 1554# Extract the first word of "flex", so it can be a program name with args. 1555set dummy flex; ac_word=$2 1556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1557echo "configure:1558: checking for $ac_word" >&5 1558if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1559 echo $ac_n "(cached) $ac_c" 1>&6 1560else 1561 if test -n "$LEX"; then 1562 ac_cv_prog_LEX="$LEX" # Let the user override the test. 1563else 1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1565 ac_dummy="$PATH" 1566 for ac_dir in $ac_dummy; do 1567 test -z "$ac_dir" && ac_dir=. 1568 if test -f $ac_dir/$ac_word; then 1569 ac_cv_prog_LEX="flex" 1570 break 1571 fi 1572 done 1573 IFS="$ac_save_ifs" 1574 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" 1575fi 1576fi 1577LEX="$ac_cv_prog_LEX" 1578if test -n "$LEX"; then 1579 echo "$ac_t""$LEX" 1>&6 1580else 1581 echo "$ac_t""no" 1>&6 1582fi 1583 1584if test -z "$LEXLIB" 1585then 1586 case "$LEX" in 1587 flex*) ac_lib=fl ;; 1588 *) ac_lib=l ;; 1589 esac 1590 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 1591echo "configure:1592: checking for yywrap in -l$ac_lib" >&5 1592ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 1593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1594 echo $ac_n "(cached) $ac_c" 1>&6 1595else 1596 ac_save_LIBS="$LIBS" 1597LIBS="-l$ac_lib $LIBS" 1598cat > conftest.$ac_ext <<EOF 1599#line 1600 "configure" 1600#include "confdefs.h" 1601/* Override any gcc2 internal prototype to avoid an error. */ 1602/* We use char because int might match the return type of a gcc2 1603 builtin and then its argument prototype would still apply. */ 1604char yywrap(); 1605 1606int main() { 1607yywrap() 1608; return 0; } 1609EOF 1610if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1611 rm -rf conftest* 1612 eval "ac_cv_lib_$ac_lib_var=yes" 1613else 1614 echo "configure: failed program was:" >&5 1615 cat conftest.$ac_ext >&5 1616 rm -rf conftest* 1617 eval "ac_cv_lib_$ac_lib_var=no" 1618fi 1619rm -f conftest* 1620LIBS="$ac_save_LIBS" 1621 1622fi 1623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1624 echo "$ac_t""yes" 1>&6 1625 LEXLIB="-l$ac_lib" 1626else 1627 echo "$ac_t""no" 1>&6 1628fi 1629 1630fi 1631 1632echo $ac_n "checking lex output file root""... $ac_c" 1>&6 1633echo "configure:1634: checking lex output file root" >&5 1634if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then 1635 echo $ac_n "(cached) $ac_c" 1>&6 1636else 1637 # The minimal lex program is just a single line: %%. But some broken lexes 1638# (Solaris, I think it was) want two %% lines, so accommodate them. 1639echo '%% 1640%%' | $LEX 1641if test -f lex.yy.c; then 1642 ac_cv_prog_lex_root=lex.yy 1643elif test -f lexyy.c; then 1644 ac_cv_prog_lex_root=lexyy 1645else 1646 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } 1647fi 1648fi 1649 1650echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 1651LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 1652 1653echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 1654echo "configure:1655: checking whether yytext is a pointer" >&5 1655if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then 1656 echo $ac_n "(cached) $ac_c" 1>&6 1657else 1658 # POSIX says lex can declare yytext either as a pointer or an array; the 1659# default is implementation-dependent. Figure out which it is, since 1660# not all implementations provide the %pointer and %array declarations. 1661ac_cv_prog_lex_yytext_pointer=no 1662echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 1663ac_save_LIBS="$LIBS" 1664LIBS="$LIBS $LEXLIB" 1665cat > conftest.$ac_ext <<EOF 1666#line 1667 "configure" 1667#include "confdefs.h" 1668`cat $LEX_OUTPUT_ROOT.c` 1669int main() { 1670 1671; return 0; } 1672EOF 1673if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1674 rm -rf conftest* 1675 ac_cv_prog_lex_yytext_pointer=yes 1676else 1677 echo "configure: failed program was:" >&5 1678 cat conftest.$ac_ext >&5 1679fi 1680rm -f conftest* 1681LIBS="$ac_save_LIBS" 1682rm -f "${LEX_OUTPUT_ROOT}.c" 1683 1684fi 1685 1686echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 1687if test $ac_cv_prog_lex_yytext_pointer = yes; then 1688 cat >> confdefs.h <<\EOF 1689#define YYTEXT_POINTER 1 1690EOF 1691 1692fi 1693 1694# Extract the first word of "ranlib", so it can be a program name with args. 1695set dummy ranlib; ac_word=$2 1696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1697echo "configure:1698: checking for $ac_word" >&5 1698if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1699 echo $ac_n "(cached) $ac_c" 1>&6 1700else 1701 if test -n "$RANLIB"; then 1702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1703else 1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1705 ac_dummy="$PATH" 1706 for ac_dir in $ac_dummy; do 1707 test -z "$ac_dir" && ac_dir=. 1708 if test -f $ac_dir/$ac_word; then 1709 ac_cv_prog_RANLIB="ranlib" 1710 break 1711 fi 1712 done 1713 IFS="$ac_save_ifs" 1714 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1715fi 1716fi 1717RANLIB="$ac_cv_prog_RANLIB" 1718if test -n "$RANLIB"; then 1719 echo "$ac_t""$RANLIB" 1>&6 1720else 1721 echo "$ac_t""no" 1>&6 1722fi 1723 1724for ac_prog in mawk gawk nawk awk 1725do 1726# Extract the first word of "$ac_prog", so it can be a program name with args. 1727set dummy $ac_prog; ac_word=$2 1728echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1729echo "configure:1730: checking for $ac_word" >&5 1730if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 1731 echo $ac_n "(cached) $ac_c" 1>&6 1732else 1733 if test -n "$AWK"; then 1734 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1735else 1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1737 ac_dummy="$PATH" 1738 for ac_dir in $ac_dummy; do 1739 test -z "$ac_dir" && ac_dir=. 1740 if test -f $ac_dir/$ac_word; then 1741 ac_cv_prog_AWK="$ac_prog" 1742 break 1743 fi 1744 done 1745 IFS="$ac_save_ifs" 1746fi 1747fi 1748AWK="$ac_cv_prog_AWK" 1749if test -n "$AWK"; then 1750 echo "$ac_t""$AWK" 1>&6 1751else 1752 echo "$ac_t""no" 1>&6 1753fi 1754 1755test -n "$AWK" && break 1756done 1757 1758echo $ac_n "checking for ln -s or something else""... $ac_c" 1>&6 1759echo "configure:1760: checking for ln -s or something else" >&5 1760if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1761 echo $ac_n "(cached) $ac_c" 1>&6 1762else 1763 rm -f conftestdata 1764if ln -s X conftestdata 2>/dev/null 1765then 1766 rm -f conftestdata 1767 ac_cv_prog_LN_S="ln -s" 1768else 1769 touch conftestdata1 1770 if ln conftestdata1 conftestdata2; then 1771 rm -f conftestdata* 1772 ac_cv_prog_LN_S=ln 1773 else 1774 ac_cv_prog_LN_S=cp 1775 fi 1776fi 1777fi 1778LN_S="$ac_cv_prog_LN_S" 1779echo "$ac_t""$ac_cv_prog_LN_S" 1>&6 1780 1781 1782 1783# Check whether --with-mips_abi or --without-mips_abi was given. 1784if test "${with_mips_abi+set}" = set; then 1785 withval="$with_mips_abi" 1786 : 1787fi 1788 1789 1790case "$host_os" in 1791irix*) 1792with_mips_abi="${with_mips_abi:-yes}" 1793if test -n "$GCC"; then 1794 1795# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 1796# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 1797# 1798# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 1799# GCC and revert back to O32. The same goes if O32 is asked for - old 1800# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 1801# 1802# Don't you just love *all* the different SGI ABIs? 1803 1804case "${with_mips_abi}" in 1805 32|o32) abi='-mabi=32'; abilibdirext='' ;; 1806 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 1807 64) abi='-mabi=64'; abilibdirext='64' ;; 1808 no) abi=''; abilibdirext='';; 1809 *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;; 1810esac 1811if test -n "$abi" ; then 1812ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 1813echo $ac_n "checking if $CC supports the $abi option""... $ac_c" 1>&6 1814echo "configure:1815: checking if $CC supports the $abi option" >&5 1815if eval "test \"`echo '$''{'$ac_foo'+set}'`\" = set"; then 1816 echo $ac_n "(cached) $ac_c" 1>&6 1817else 1818 1819save_CFLAGS="$CFLAGS" 1820CFLAGS="$CFLAGS $abi" 1821cat > conftest.$ac_ext <<EOF 1822#line 1823 "configure" 1823#include "confdefs.h" 1824 1825int main() { 1826int x; 1827; return 0; } 1828EOF 1829if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1830 rm -rf conftest* 1831 eval $ac_foo=yes 1832else 1833 echo "configure: failed program was:" >&5 1834 cat conftest.$ac_ext >&5 1835 rm -rf conftest* 1836 eval $ac_foo=no 1837fi 1838rm -f conftest* 1839CFLAGS="$save_CFLAGS" 1840 1841fi 1842 1843ac_res=`eval echo \\\$$ac_foo` 1844echo "$ac_t""$ac_res" 1>&6 1845if test $ac_res = no; then 1846# Try to figure out why that failed... 1847case $abi in 1848 -mabi=32) 1849 save_CFLAGS="$CFLAGS" 1850 CFLAGS="$CFLAGS -mabi=n32" 1851 cat > conftest.$ac_ext <<EOF 1852#line 1853 "configure" 1853#include "confdefs.h" 1854 1855int main() { 1856int x; 1857; return 0; } 1858EOF 1859if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1860 rm -rf conftest* 1861 ac_res=yes 1862else 1863 echo "configure: failed program was:" >&5 1864 cat conftest.$ac_ext >&5 1865 rm -rf conftest* 1866 ac_res=no 1867fi 1868rm -f conftest* 1869 CLAGS="$save_CFLAGS" 1870 if test $ac_res = yes; then 1871 # New GCC 1872 { echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; } 1873 fi 1874 # Old GCC 1875 abi='' 1876 abilibdirext='' 1877 ;; 1878 -mabi=n32|-mabi=64) 1879 if test $with_mips_abi = yes; then 1880 # Old GCC, default to O32 1881 abi='' 1882 abilibdirext='' 1883 else 1884 # Some broken GCC 1885 { echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; } 1886 fi 1887 ;; 1888esac 1889fi #if test $ac_res = no; then 1890fi #if test -n "$abi" ; then 1891else 1892case "${with_mips_abi}" in 1893 32|o32) abi='-32'; abilibdirext='' ;; 1894 n32|yes) abi='-n32'; abilibdirext='32' ;; 1895 64) abi='-64'; abilibdirext='64' ;; 1896 no) abi=''; abilibdirext='';; 1897 *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;; 1898esac 1899fi #if test -n "$GCC"; then 1900;; 1901esac 1902 1903CC="$CC $abi" 1904libdir="$libdir$abilibdirext" 1905 1906 1907echo $ac_n "checking for __attribute__""... $ac_c" 1>&6 1908echo "configure:1909: checking for __attribute__" >&5 1909if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then 1910 echo $ac_n "(cached) $ac_c" 1>&6 1911else 1912 1913cat > conftest.$ac_ext <<EOF 1914#line 1915 "configure" 1915#include "confdefs.h" 1916 1917#include <stdlib.h> 1918 1919int main() { 1920 1921static void foo(void) __attribute__ ((noreturn)); 1922 1923static void 1924foo(void) 1925{ 1926 exit(1); 1927} 1928 1929; return 0; } 1930EOF 1931if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1932 rm -rf conftest* 1933 ac_cv___attribute__=yes 1934else 1935 echo "configure: failed program was:" >&5 1936 cat conftest.$ac_ext >&5 1937 rm -rf conftest* 1938 ac_cv___attribute__=no 1939fi 1940rm -f conftest* 1941fi 1942 1943if test "$ac_cv___attribute__" = "yes"; then 1944 cat >> confdefs.h <<\EOF 1945#define HAVE___ATTRIBUTE__ 1 1946EOF 1947 1948fi 1949echo "$ac_t""$ac_cv___attribute__" 1>&6 1950 1951 1952# Check whether --enable-shared or --disable-shared was given. 1953if test "${enable_shared+set}" = set; then 1954 enableval="$enable_shared" 1955 p=${PACKAGE-default} 1956case "$enableval" in 1957yes) enable_shared=yes ;; 1958no) enable_shared=no ;; 1959*) 1960 enable_shared=no 1961 # Look at the argument we got. We use all the common list separators. 1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1963 for pkg in $enableval; do 1964 if test "X$pkg" = "X$p"; then 1965 enable_shared=yes 1966 fi 1967 done 1968 IFS="$ac_save_ifs" 1969 ;; 1970esac 1971else 1972 enable_shared=no 1973fi 1974 1975# Check whether --enable-static or --disable-static was given. 1976if test "${enable_static+set}" = set; then 1977 enableval="$enable_static" 1978 p=${PACKAGE-default} 1979case "$enableval" in 1980yes) enable_static=yes ;; 1981no) enable_static=no ;; 1982*) 1983 enable_static=no 1984 # Look at the argument we got. We use all the common list separators. 1985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1986 for pkg in $enableval; do 1987 if test "X$pkg" = "X$p"; then 1988 enable_static=yes 1989 fi 1990 done 1991 IFS="$ac_save_ifs" 1992 ;; 1993esac 1994else 1995 enable_static=yes 1996fi 1997 1998# Check whether --with-gnu-ld or --without-gnu-ld was given. 1999if test "${with_gnu_ld+set}" = set; then 2000 withval="$with_gnu_ld" 2001 test "$withval" = no || with_gnu_ld=yes 2002else 2003 with_gnu_ld=no 2004fi 2005 2006 2007ac_prog=ld 2008if test "$ac_cv_prog_gcc" = yes; then 2009 # Check if gcc -print-prog-name=ld gives a path. 2010 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 2011echo "configure:2012: checking for ld used by GCC" >&5 2012 ac_prog=`($CC -print-prog-name=ld) 2>&5` 2013 case "$ac_prog" in 2014 # Accept absolute paths. 2015 /* | [A-Za-z]:\\*) 2016 test -z "$LD" && LD="$ac_prog" 2017 ;; 2018 "") 2019 # If it fails, then pretend we aren't using GCC. 2020 ac_prog=ld 2021 ;; 2022 *) 2023 # If it is relative, then search for the first ld in PATH. 2024 with_gnu_ld=unknown 2025 ;; 2026 esac 2027elif test "$with_gnu_ld" = yes; then 2028 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 2029echo "configure:2030: checking for GNU ld" >&5 2030else 2031 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 2032echo "configure:2033: checking for non-GNU ld" >&5 2033fi 2034if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 2035 echo $ac_n "(cached) $ac_c" 1>&6 2036else 2037 if test -z "$LD"; then 2038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2039 for ac_dir in $PATH; do 2040 test -z "$ac_dir" && ac_dir=. 2041 if test -f "$ac_dir/$ac_prog"; then 2042 ac_cv_path_LD="$ac_dir/$ac_prog" 2043 # Check to see if the program is GNU ld. I'd rather use --version, 2044 # but apparently some GNU ld's only accept -v. 2045 # Break only if it was the GNU/non-GNU ld that we prefer. 2046 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 2047 test "$with_gnu_ld" != no && break 2048 else 2049 test "$with_gnu_ld" != yes && break 2050 fi 2051 fi 2052 done 2053 IFS="$ac_save_ifs" 2054else 2055 ac_cv_path_LD="$LD" # Let the user override the test with a path. 2056fi 2057fi 2058 2059LD="$ac_cv_path_LD" 2060if test -n "$LD"; then 2061 echo "$ac_t""$LD" 1>&6 2062else 2063 echo "$ac_t""no" 1>&6 2064fi 2065test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 2066 2067echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 2068echo "configure:2069: checking if the linker ($LD) is GNU ld" >&5 2069if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 2070 echo $ac_n "(cached) $ac_c" 1>&6 2071else 2072 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 2073if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 2074 ac_cv_prog_gnu_ld=yes 2075else 2076 ac_cv_prog_gnu_ld=no 2077fi 2078fi 2079 2080echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 2081 2082 2083echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 2084echo "configure:2085: checking for BSD-compatible nm" >&5 2085if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 2086 echo $ac_n "(cached) $ac_c" 1>&6 2087else 2088 if test -n "$NM"; then 2089 # Let the user override the test. 2090 ac_cv_path_NM="$NM" 2091else 2092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2093 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do 2094 test -z "$ac_dir" && ac_dir=. 2095 if test -f $ac_dir/nm; then 2096 # Check to see if the nm accepts a BSD-compat flag. 2097 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2098 # nm: unknown option "B" ignored 2099 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2100 ac_cv_path_NM="$ac_dir/nm -B" 2101 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2102 ac_cv_path_NM="$ac_dir/nm -p" 2103 else 2104 ac_cv_path_NM="$ac_dir/nm" 2105 fi 2106 break 2107 fi 2108 done 2109 IFS="$ac_save_ifs" 2110 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 2111fi 2112fi 2113 2114NM="$ac_cv_path_NM" 2115echo "$ac_t""$NM" 1>&6 2116 2117 2118echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2119echo "configure:2120: checking whether ln -s works" >&5 2120if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 2121 echo $ac_n "(cached) $ac_c" 1>&6 2122else 2123 rm -f conftestdata 2124if ln -s X conftestdata 2>/dev/null 2125then 2126 rm -f conftestdata 2127 ac_cv_prog_LN_S="ln -s" 2128else 2129 ac_cv_prog_LN_S=ln 2130fi 2131fi 2132LN_S="$ac_cv_prog_LN_S" 2133if test "$ac_cv_prog_LN_S" = "ln -s"; then 2134 echo "$ac_t""yes" 1>&6 2135else 2136 echo "$ac_t""no" 1>&6 2137fi 2138 2139# Always use our own libtool. 2140LIBTOOL='$(top_builddir)/libtool' 2141 2142# Check for any special flags to pass to ltconfig. 2143libtool_flags= 2144test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 2145test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 2146test "$silent" = yes && libtool_flags="$libtool_flags --silent" 2147test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" 2148test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 2149 2150# Some flags need to be propagated to the compiler or linker for good 2151# libtool support. 2152case "$host" in 2153*-*-irix6*) 2154 # Find out which ABI we are using. 2155 echo '#line 2156 "configure"' > conftest.$ac_ext 2156 if { (eval echo configure:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2157 case "`/usr/bin/file conftest.o`" in 2158 *32-bit*) 2159 LD="${LD-ld} -32" 2160 ;; 2161 *N32*) 2162 LD="${LD-ld} -n32" 2163 ;; 2164 *64-bit*) 2165 LD="${LD-ld} -64" 2166 ;; 2167 esac 2168 fi 2169 rm -rf conftest* 2170 ;; 2171 2172*-*-sco3.2v5*) 2173 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2174 CFLAGS="$CFLAGS -belf" 2175 ;; 2176esac 2177 2178# Actually configure libtool. ac_aux_dir is where install-sh is found. 2179CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 2180LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ 2181${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 2182$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ 2183|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 2184 2185# Redirect the config.log output again, so that the ltconfig log is not 2186# clobbered by the next message. 2187exec 5>>./config.log 2188 2189 2190 2191WFLAGS_NOUNUSED="" 2192WFLAGS_NOIMPLICITINT="" 2193if test -z "$WFLAGS" -a "$GCC" = "yes"; then 2194 # -Wno-implicit-int for broken X11 headers 2195 # leave these out for now: 2196 # -Wcast-align doesn't work well on alpha osf/1 2197 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 2198 # -Wmissing-declarations -Wnested-externs 2199 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 2200 WFLAGS_NOUNUSED="-Wno-unused" 2201 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 2202fi 2203 2204 2205berkeley_db=db 2206# Check whether --with-berkeley-db or --without-berkeley-db was given. 2207if test "${with_berkeley_db+set}" = set; then 2208 withval="$with_berkeley_db" 2209 2210if test "$withval" = no; then 2211 berkeley_db="" 2212fi 2213 2214fi 2215 2216 2217 2218# Check whether --with-krb4 or --without-krb4 was given. 2219if test "${with_krb4+set}" = set; then 2220 withval="$with_krb4" 2221 : 2222fi 2223 2224# Check whether --with-krb4-lib or --without-krb4-lib was given. 2225if test "${with_krb4_lib+set}" = set; then 2226 withval="$with_krb4_lib" 2227 if test "$withval" = "yes" -o "$withval" = "no"; then 2228 { echo "configure: error: No argument for --with-krb4-lib" 1>&2; exit 1; } 2229elif test "X$with_krb4" = "X"; then 2230 with_krb4=yes 2231fi 2232fi 2233 2234# Check whether --with-krb4-include or --without-krb4-include was given. 2235if test "${with_krb4_include+set}" = set; then 2236 withval="$with_krb4_include" 2237 if test "$withval" = "yes" -o "$withval" = "no"; then 2238 { echo "configure: error: No argument for --with-krb4-include" 1>&2; exit 1; } 2239elif test "X$with_krb4" = "X"; then 2240 with_krb4=yes 2241fi 2242fi 2243 2244 2245echo $ac_n "checking for krb4""... $ac_c" 1>&6 2246echo "configure:2247: checking for krb4" >&5 2247 2248case "$with_krb4" in 2249yes) ;; 2250no) ;; 2251"") ;; 2252*) if test "$with_krb4_include" = ""; then 2253 with_krb4_include="$with_krb4/include" 2254 fi 2255 if test "$with_krb4_lib" = ""; then 2256 with_krb4_lib="$with_krb4/lib$abilibdirext" 2257 fi 2258 ;; 2259esac 2260header_dirs= 2261lib_dirs= 2262d='/usr/athena' 2263for i in $d; do 2264 header_dirs="$header_dirs $i/include" 2265 lib_dirs="$lib_dirs $i/lib$abilibdirext" 2266done 2267 2268case "$with_krb4_include" in 2269yes) ;; 2270no) ;; 2271*) header_dirs="$with_krb4_include $header_dirs";; 2272esac 2273case "$with_krb4_lib" in 2274yes) ;; 2275no) ;; 2276*) lib_dirs="$with_krb4_lib $lib_dirs";; 2277esac 2278 2279save_CFLAGS="$CFLAGS" 2280save_LIBS="$LIBS" 2281ires= lres= 2282for i in $header_dirs; do 2283 CFLAGS="-I$i $save_CFLAGS" 2284 cat > conftest.$ac_ext <<EOF 2285#line 2286 "configure" 2286#include "confdefs.h" 2287#include <krb.h> 2288int main() { 2289 2290; return 0; } 2291EOF 2292if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2293 rm -rf conftest* 2294 ires=$i;break 2295else 2296 echo "configure: failed program was:" >&5 2297 cat conftest.$ac_ext >&5 2298fi 2299rm -f conftest* 2300done 2301for i in $lib_dirs; do 2302 LIBS="-L$i -lkrb -ldes $save_LIBS" 2303 cat > conftest.$ac_ext <<EOF 2304#line 2305 "configure" 2305#include "confdefs.h" 2306#include <krb.h> 2307int main() { 2308 2309; return 0; } 2310EOF 2311if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2312 rm -rf conftest* 2313 lres=$i;break 2314else 2315 echo "configure: failed program was:" >&5 2316 cat conftest.$ac_ext >&5 2317fi 2318rm -f conftest* 2319done 2320CFLAGS="$save_CFLAGS" 2321LIBS="$save_LIBS" 2322 2323if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then 2324 krb4_includedir="$ires" 2325 krb4_libdir="$lres" 2326 INCLUDE_krb4="-I$krb4_includedir" 2327 LIB_krb4="-L$krb4_libdir -lkrb" 2328 cat >> confdefs.h <<EOF 2329#define `echo krb4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1 2330EOF 2331 2332 with_krb4=yes 2333 echo "$ac_t""headers $ires, libraries $lres" 1>&6 2334else 2335 INCLUDE_krb4= 2336 LIB_krb4= 2337 with_krb4=no 2338 echo "$ac_t""$with_krb4" 1>&6 2339fi 2340 2341 2342 2343 2344LIB_kdb= 2345if test "$with_krb4" != "no"; then 2346 save_CFLAGS="$CFLAGS" 2347 CFLAGS="$CFLAGS $INCLUDE_krb4" 2348 save_LIBS="$LIBS" 2349 LIBS="$LIB_krb4 -ldes $LIBS" 2350 EXTRA_LIB45=lib45.a 2351 2352 echo $ac_n "checking for four valued krb_put_int""... $ac_c" 1>&6 2353echo "configure:2354: checking for four valued krb_put_int" >&5 2354if eval "test \"`echo '$''{'ac_cv_func_krb_put_int_four'+set}'`\" = set"; then 2355 echo $ac_n "(cached) $ac_c" 1>&6 2356else 2357 cat > conftest.$ac_ext <<EOF 2358#line 2359 "configure" 2359#include "confdefs.h" 2360#include <krb.h> 2361int main() { 2362 2363 char tmp[4]; 2364 krb_put_int(17, tmp, 4, sizeof(tmp)); 2365; return 0; } 2366EOF 2367if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2368 rm -rf conftest* 2369 ac_cv_func_krb_put_int_four=yes 2370else 2371 echo "configure: failed program was:" >&5 2372 cat conftest.$ac_ext >&5 2373 rm -rf conftest* 2374 ac_cv_func_krb_put_int_four=no 2375fi 2376rm -f conftest* 2377 2378fi 2379 2380echo "$ac_t""$ac_cv_func_krb_put_int_four" 1>&6 2381 if test "$ac_cv_func_krb_put_int_four" = yes; then 2382 cat >> confdefs.h <<\EOF 2383#define HAVE_FOUR_VALUED_KRB_PUT_INT 1 2384EOF 2385 2386 fi 2387 echo $ac_n "checking for KRB_VERIFY_SECURE""... $ac_c" 1>&6 2388echo "configure:2389: checking for KRB_VERIFY_SECURE" >&5 2389if eval "test \"`echo '$''{'ac_cv_func_krb_verify_secure'+set}'`\" = set"; then 2390 echo $ac_n "(cached) $ac_c" 1>&6 2391else 2392 cat > conftest.$ac_ext <<EOF 2393#line 2394 "configure" 2394#include "confdefs.h" 2395#include <krb.h> 2396int main() { 2397 2398 int x = KRB_VERIFY_SECURE 2399; return 0; } 2400EOF 2401if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2402 rm -rf conftest* 2403 ac_cv_func_krb_verify_secure=yes 2404else 2405 echo "configure: failed program was:" >&5 2406 cat conftest.$ac_ext >&5 2407 rm -rf conftest* 2408 ac_cv_func_krb_verify_secure=no 2409fi 2410rm -f conftest* 2411 2412fi 2413 2414echo "$ac_t""$ac_cv_func_krb_verify_secure" 1>&6 2415 if test "$ac_cv_func_krb_verify_secure" != yes; then 2416 cat >> confdefs.h <<\EOF 2417#define KRB_VERIFY_SECURE 1 2418EOF 2419 2420 cat >> confdefs.h <<\EOF 2421#define KRB_VERIFY_SECURE_FAIL 2 2422EOF 2423 2424 fi 2425 echo $ac_n "checking for KRB_VERIFY_NOT_SECURE""... $ac_c" 1>&6 2426echo "configure:2427: checking for KRB_VERIFY_NOT_SECURE" >&5 2427if eval "test \"`echo '$''{'ac_cv_func_krb_verify_not_secure'+set}'`\" = set"; then 2428 echo $ac_n "(cached) $ac_c" 1>&6 2429else 2430 cat > conftest.$ac_ext <<EOF 2431#line 2432 "configure" 2432#include "confdefs.h" 2433#include <krb.h> 2434int main() { 2435 2436 int x = KRB_VERIFY_NOT_SECURE 2437; return 0; } 2438EOF 2439if { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2440 rm -rf conftest* 2441 ac_cv_func_krb_verify_not_secure=yes 2442else 2443 echo "configure: failed program was:" >&5 2444 cat conftest.$ac_ext >&5 2445 rm -rf conftest* 2446 ac_cv_func_krb_verify_not_secure=no 2447fi 2448rm -f conftest* 2449 2450fi 2451 2452echo "$ac_t""$ac_cv_func_krb_verify_not_secure" 1>&6 2453 if test "$ac_cv_func_krb_verify_not_secure" != yes; then 2454 cat >> confdefs.h <<\EOF 2455#define KRB_VERIFY_NOT_SECURE 0 2456EOF 2457 2458 fi 2459 2460 2461 2462 2463echo $ac_n "checking for krb_enable_debug""... $ac_c" 1>&6 2464echo "configure:2465: checking for krb_enable_debug" >&5 2465if eval "test \"`echo '$''{'ac_cv_funclib_krb_enable_debug'+set}'`\" = set"; then 2466 echo $ac_n "(cached) $ac_c" 1>&6 2467else 2468 2469if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then 2470 ac_save_LIBS="$LIBS" 2471 for ac_lib in "" ; do 2472 if test -n "$ac_lib"; then 2473 ac_lib="-l$ac_lib" 2474 else 2475 ac_lib="" 2476 fi 2477 LIBS=" $ac_lib $ac_save_LIBS" 2478 cat > conftest.$ac_ext <<EOF 2479#line 2480 "configure" 2480#include "confdefs.h" 2481 2482int main() { 2483krb_enable_debug() 2484; return 0; } 2485EOF 2486if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2487 rm -rf conftest* 2488 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break 2489else 2490 echo "configure: failed program was:" >&5 2491 cat conftest.$ac_ext >&5 2492fi 2493rm -f conftest* 2494 done 2495 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}" 2496 LIBS="$ac_save_LIBS" 2497fi 2498 2499fi 2500 2501 2502eval "ac_res=\$ac_cv_funclib_krb_enable_debug" 2503 2504: << END 2505@@@funcs="$funcs krb_enable_debug"@@@ 2506@@@libs="$libs "" "@@@ 2507END 2508 2509# krb_enable_debug 2510eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 2511eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 2512eval "LIB_krb_enable_debug=$ac_res" 2513 2514case "$ac_res" in 2515 yes) 2516 eval "ac_cv_func_krb_enable_debug=yes" 2517 eval "LIB_krb_enable_debug=" 2518 cat >> confdefs.h <<EOF 2519#define $ac_tr_func 1 2520EOF 2521 2522 echo "$ac_t""yes" 1>&6 2523 ;; 2524 no) 2525 eval "ac_cv_func_krb_enable_debug=no" 2526 eval "LIB_krb_enable_debug=" 2527 echo "$ac_t""no" 1>&6 2528 ;; 2529 *) 2530 eval "ac_cv_func_krb_enable_debug=yes" 2531 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 2532 cat >> confdefs.h <<EOF 2533#define $ac_tr_func 1 2534EOF 2535 2536 cat >> confdefs.h <<EOF 2537#define $ac_tr_lib 1 2538EOF 2539 2540 echo "$ac_t""yes, in $ac_res" 1>&6 2541 ;; 2542esac 2543 2544 2545if test -n "$LIB_krb_enable_debug"; then 2546 LIBS="$LIB_krb_enable_debug $LIBS" 2547fi 2548 2549 2550 2551 2552 2553echo $ac_n "checking for krb_disable_debug""... $ac_c" 1>&6 2554echo "configure:2555: checking for krb_disable_debug" >&5 2555if eval "test \"`echo '$''{'ac_cv_funclib_krb_disable_debug'+set}'`\" = set"; then 2556 echo $ac_n "(cached) $ac_c" 1>&6 2557else 2558 2559if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then 2560 ac_save_LIBS="$LIBS" 2561 for ac_lib in "" ; do 2562 if test -n "$ac_lib"; then 2563 ac_lib="-l$ac_lib" 2564 else 2565 ac_lib="" 2566 fi 2567 LIBS=" $ac_lib $ac_save_LIBS" 2568 cat > conftest.$ac_ext <<EOF 2569#line 2570 "configure" 2570#include "confdefs.h" 2571 2572int main() { 2573krb_disable_debug() 2574; return 0; } 2575EOF 2576if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2577 rm -rf conftest* 2578 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break 2579else 2580 echo "configure: failed program was:" >&5 2581 cat conftest.$ac_ext >&5 2582fi 2583rm -f conftest* 2584 done 2585 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}" 2586 LIBS="$ac_save_LIBS" 2587fi 2588 2589fi 2590 2591 2592eval "ac_res=\$ac_cv_funclib_krb_disable_debug" 2593 2594: << END 2595@@@funcs="$funcs krb_disable_debug"@@@ 2596@@@libs="$libs "" "@@@ 2597END 2598 2599# krb_disable_debug 2600eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 2601eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 2602eval "LIB_krb_disable_debug=$ac_res" 2603 2604case "$ac_res" in 2605 yes) 2606 eval "ac_cv_func_krb_disable_debug=yes" 2607 eval "LIB_krb_disable_debug=" 2608 cat >> confdefs.h <<EOF 2609#define $ac_tr_func 1 2610EOF 2611 2612 echo "$ac_t""yes" 1>&6 2613 ;; 2614 no) 2615 eval "ac_cv_func_krb_disable_debug=no" 2616 eval "LIB_krb_disable_debug=" 2617 echo "$ac_t""no" 1>&6 2618 ;; 2619 *) 2620 eval "ac_cv_func_krb_disable_debug=yes" 2621 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 2622 cat >> confdefs.h <<EOF 2623#define $ac_tr_func 1 2624EOF 2625 2626 cat >> confdefs.h <<EOF 2627#define $ac_tr_lib 1 2628EOF 2629 2630 echo "$ac_t""yes, in $ac_res" 1>&6 2631 ;; 2632esac 2633 2634 2635if test -n "$LIB_krb_disable_debug"; then 2636 LIBS="$LIB_krb_disable_debug $LIBS" 2637fi 2638 2639 2640 2641 2642 2643echo $ac_n "checking for krb_get_our_ip_for_realm""... $ac_c" 1>&6 2644echo "configure:2645: checking for krb_get_our_ip_for_realm" >&5 2645if eval "test \"`echo '$''{'ac_cv_funclib_krb_get_our_ip_for_realm'+set}'`\" = set"; then 2646 echo $ac_n "(cached) $ac_c" 1>&6 2647else 2648 2649if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then 2650 ac_save_LIBS="$LIBS" 2651 for ac_lib in "" ; do 2652 if test -n "$ac_lib"; then 2653 ac_lib="-l$ac_lib" 2654 else 2655 ac_lib="" 2656 fi 2657 LIBS=" $ac_lib $ac_save_LIBS" 2658 cat > conftest.$ac_ext <<EOF 2659#line 2660 "configure" 2660#include "confdefs.h" 2661 2662int main() { 2663krb_get_our_ip_for_realm() 2664; return 0; } 2665EOF 2666if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2667 rm -rf conftest* 2668 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break 2669else 2670 echo "configure: failed program was:" >&5 2671 cat conftest.$ac_ext >&5 2672fi 2673rm -f conftest* 2674 done 2675 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}" 2676 LIBS="$ac_save_LIBS" 2677fi 2678 2679fi 2680 2681 2682eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm" 2683 2684: << END 2685@@@funcs="$funcs krb_get_our_ip_for_realm"@@@ 2686@@@libs="$libs "" "@@@ 2687END 2688 2689# krb_get_our_ip_for_realm 2690eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 2691eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 2692eval "LIB_krb_get_our_ip_for_realm=$ac_res" 2693 2694case "$ac_res" in 2695 yes) 2696 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 2697 eval "LIB_krb_get_our_ip_for_realm=" 2698 cat >> confdefs.h <<EOF 2699#define $ac_tr_func 1 2700EOF 2701 2702 echo "$ac_t""yes" 1>&6 2703 ;; 2704 no) 2705 eval "ac_cv_func_krb_get_our_ip_for_realm=no" 2706 eval "LIB_krb_get_our_ip_for_realm=" 2707 echo "$ac_t""no" 1>&6 2708 ;; 2709 *) 2710 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 2711 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 2712 cat >> confdefs.h <<EOF 2713#define $ac_tr_func 1 2714EOF 2715 2716 cat >> confdefs.h <<EOF 2717#define $ac_tr_lib 1 2718EOF 2719 2720 echo "$ac_t""yes, in $ac_res" 1>&6 2721 ;; 2722esac 2723 2724 2725if test -n "$LIB_krb_get_our_ip_for_realm"; then 2726 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS" 2727fi 2728 2729 LIBS="$save_LIBS" 2730 CFLAGS="$save_CFLAGS" 2731 LIB_kdb="-lkdb -lkrb" 2732 if test "$krb4_libdir"; then 2733 LIB_krb4="-rpath $krb4_libdir $LIB_krb4" 2734 LIB_kdb="-rpath $krb4_libdir -L$krb4_libdir $LIB_kdb" 2735 fi 2736fi 2737 2738 2739if test "$with_krb4" != "no"; then 2740 KRB4_TRUE= 2741 KRB4_FALSE='#' 2742else 2743 KRB4_TRUE='#' 2744 KRB4_FALSE= 2745fi 2746 2747 2748if true; then 2749 KRB5_TRUE= 2750 KRB5_FALSE='#' 2751else 2752 KRB5_TRUE='#' 2753 KRB5_FALSE= 2754fi 2755cat >> confdefs.h <<\EOF 2756#define KRB5 1 2757EOF 2758 2759 2760if test "$aix" != no; then 2761 AIX_TRUE= 2762 AIX_FALSE='#' 2763else 2764 AIX_TRUE='#' 2765 AIX_FALSE= 2766fi 2767 2768if test "$aix" = 4; then 2769 AIX4_TRUE= 2770 AIX4_FALSE='#' 2771else 2772 AIX4_TRUE='#' 2773 AIX4_FALSE= 2774fi 2775aix_dynamic_afs=yes 2776 2777 2778if test "$aix_dynamic_afs" = yes; then 2779 AIX_DYNAMIC_AFS_TRUE= 2780 AIX_DYNAMIC_AFS_FALSE='#' 2781else 2782 AIX_DYNAMIC_AFS_TRUE='#' 2783 AIX_DYNAMIC_AFS_FALSE= 2784fi 2785 2786 2787 2788echo $ac_n "checking for dlopen""... $ac_c" 1>&6 2789echo "configure:2790: checking for dlopen" >&5 2790if eval "test \"`echo '$''{'ac_cv_funclib_dlopen'+set}'`\" = set"; then 2791 echo $ac_n "(cached) $ac_c" 1>&6 2792else 2793 2794if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 2795 ac_save_LIBS="$LIBS" 2796 for ac_lib in "" dl; do 2797 if test -n "$ac_lib"; then 2798 ac_lib="-l$ac_lib" 2799 else 2800 ac_lib="" 2801 fi 2802 LIBS=" $ac_lib $ac_save_LIBS" 2803 cat > conftest.$ac_ext <<EOF 2804#line 2805 "configure" 2805#include "confdefs.h" 2806 2807int main() { 2808dlopen() 2809; return 0; } 2810EOF 2811if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2812 rm -rf conftest* 2813 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 2814else 2815 echo "configure: failed program was:" >&5 2816 cat conftest.$ac_ext >&5 2817fi 2818rm -f conftest* 2819 done 2820 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 2821 LIBS="$ac_save_LIBS" 2822fi 2823 2824fi 2825 2826 2827eval "ac_res=\$ac_cv_funclib_dlopen" 2828 2829: << END 2830@@@funcs="$funcs dlopen"@@@ 2831@@@libs="$libs "" dl"@@@ 2832END 2833 2834# dlopen 2835eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 2836eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 2837eval "LIB_dlopen=$ac_res" 2838 2839case "$ac_res" in 2840 yes) 2841 eval "ac_cv_func_dlopen=yes" 2842 eval "LIB_dlopen=" 2843 cat >> confdefs.h <<EOF 2844#define $ac_tr_func 1 2845EOF 2846 2847 echo "$ac_t""yes" 1>&6 2848 ;; 2849 no) 2850 eval "ac_cv_func_dlopen=no" 2851 eval "LIB_dlopen=" 2852 echo "$ac_t""no" 1>&6 2853 ;; 2854 *) 2855 eval "ac_cv_func_dlopen=yes" 2856 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 2857 cat >> confdefs.h <<EOF 2858#define $ac_tr_func 1 2859EOF 2860 2861 cat >> confdefs.h <<EOF 2862#define $ac_tr_lib 1 2863EOF 2864 2865 echo "$ac_t""yes, in $ac_res" 1>&6 2866 ;; 2867esac 2868 2869 2870 2871if test "$aix" != no; then 2872 if test "$aix_dynamic_afs" = yes; then 2873 if test "$ac_cv_funclib_dlopen" = yes; then 2874 AIX_EXTRA_KAFS= 2875 elif test "$ac_cv_funclib_dlopen" != no; then 2876 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen" 2877 else 2878 AIX_EXTRA_KAFS=-lld 2879 fi 2880 else 2881 AIX_EXTRA_KAFS= 2882 fi 2883fi 2884 2885 2886 2887if test "$ac_cv_funclib_dlopen" != no; then 2888 HAVE_DLOPEN_TRUE= 2889 HAVE_DLOPEN_FALSE='#' 2890else 2891 HAVE_DLOPEN_TRUE='#' 2892 HAVE_DLOPEN_FALSE= 2893fi 2894# Check whether --enable-kaserver or --disable-kaserver was given. 2895if test "${enable_kaserver+set}" = set; then 2896 enableval="$enable_kaserver" 2897 : 2898fi 2899 2900if test "$enable_kaserver" = yes; then 2901 cat >> confdefs.h <<\EOF 2902#define KASERVER 1 2903EOF 2904 2905 if test "$with_krb4" = "no"; then 2906 { echo "configure: error: kaserver requires krb4" 1>&2; exit 1; } 2907 exit 1 2908 fi 2909fi 2910 2911# Check whether --enable-kaserver-db or --disable-kaserver-db was given. 2912if test "${enable_kaserver_db+set}" = set; then 2913 enableval="$enable_kaserver_db" 2914 : 2915fi 2916 2917if test "$enable_kaserver_db" = yes; then 2918 cat >> confdefs.h <<\EOF 2919#define KASERVER_DB 1 2920EOF 2921 2922 if test "$with_krb4" = "no"; then 2923 { echo "configure: error: kaserver-db requires krb4" 1>&2; exit 1; } 2924 exit 1 2925 fi 2926fi 2927 2928otp=yes 2929# Check whether --enable-otp or --disable-otp was given. 2930if test "${enable_otp+set}" = set; then 2931 enableval="$enable_otp" 2932 2933if test "$enableval" = "no"; then 2934 otp=no 2935fi 2936 2937fi 2938 2939if test "$otp" = "yes"; then 2940 cat >> confdefs.h <<\EOF 2941#define OTP 1 2942EOF 2943 2944 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 2945fi 2946 2947 2948 2949if test "$otp" = yes; then 2950 OTP_TRUE= 2951 OTP_FALSE='#' 2952else 2953 OTP_TRUE='#' 2954 OTP_FALSE= 2955fi 2956 2957# Check whether --enable-osfc2 or --disable-osfc2 was given. 2958if test "${enable_osfc2+set}" = set; then 2959 enableval="$enable_osfc2" 2960 : 2961fi 2962 2963LIB_security= 2964if test "$enable_osfc2" = yes; then 2965 cat >> confdefs.h <<\EOF 2966#define HAVE_OSFC2 1 2967EOF 2968 2969 LIB_security=-lsecurity 2970fi 2971 2972 2973 2974# Extract the first word of "nroff", so it can be a program name with args. 2975set dummy nroff; ac_word=$2 2976echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2977echo "configure:2978: checking for $ac_word" >&5 2978if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then 2979 echo $ac_n "(cached) $ac_c" 1>&6 2980else 2981 case "$NROFF" in 2982 /*) 2983 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 2984 ;; 2985 ?:/*) 2986 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path. 2987 ;; 2988 *) 2989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2990 ac_dummy="$PATH" 2991 for ac_dir in $ac_dummy; do 2992 test -z "$ac_dir" && ac_dir=. 2993 if test -f $ac_dir/$ac_word; then 2994 ac_cv_path_NROFF="$ac_dir/$ac_word" 2995 break 2996 fi 2997 done 2998 IFS="$ac_save_ifs" 2999 ;; 3000esac 3001fi 3002NROFF="$ac_cv_path_NROFF" 3003if test -n "$NROFF"; then 3004 echo "$ac_t""$NROFF" 1>&6 3005else 3006 echo "$ac_t""no" 1>&6 3007fi 3008 3009# Extract the first word of "groff", so it can be a program name with args. 3010set dummy groff; ac_word=$2 3011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3012echo "configure:3013: checking for $ac_word" >&5 3013if eval "test \"`echo '$''{'ac_cv_path_GROFF'+set}'`\" = set"; then 3014 echo $ac_n "(cached) $ac_c" 1>&6 3015else 3016 case "$GROFF" in 3017 /*) 3018 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 3019 ;; 3020 ?:/*) 3021 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a dos path. 3022 ;; 3023 *) 3024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3025 ac_dummy="$PATH" 3026 for ac_dir in $ac_dummy; do 3027 test -z "$ac_dir" && ac_dir=. 3028 if test -f $ac_dir/$ac_word; then 3029 ac_cv_path_GROFF="$ac_dir/$ac_word" 3030 break 3031 fi 3032 done 3033 IFS="$ac_save_ifs" 3034 ;; 3035esac 3036fi 3037GROFF="$ac_cv_path_GROFF" 3038if test -n "$GROFF"; then 3039 echo "$ac_t""$GROFF" 1>&6 3040else 3041 echo "$ac_t""no" 1>&6 3042fi 3043 3044echo $ac_n "checking how to format man pages""... $ac_c" 1>&6 3045echo "configure:3046: checking how to format man pages" >&5 3046if eval "test \"`echo '$''{'ac_cv_sys_man_format'+set}'`\" = set"; then 3047 echo $ac_n "(cached) $ac_c" 1>&6 3048else 3049 cat > conftest.1 << END 3050.Dd January 1, 1970 3051.Dt CONFTEST 1 3052.Sh NAME 3053.Nm conftest 3054.Nd 3055foobar 3056END 3057 3058if test "$NROFF" ; then 3059 for i in "-mdoc" "-mandoc"; do 3060 if "$NROFF" $i conftest.1 2> /dev/null | \ 3061 grep Jan > /dev/null 2>&1 ; then 3062 ac_cv_sys_man_format="$NROFF $i" 3063 break 3064 fi 3065 done 3066fi 3067if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 3068 for i in "-mdoc" "-mandoc"; do 3069 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 3070 grep Jan > /dev/null 2>&1 ; then 3071 ac_cv_sys_man_format="$GROFF -Tascii $i" 3072 break 3073 fi 3074 done 3075fi 3076if test "$ac_cv_sys_man_format"; then 3077 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 3078fi 3079 3080fi 3081 3082echo "$ac_t""$ac_cv_sys_man_format" 1>&6 3083if test "$ac_cv_sys_man_format"; then 3084 CATMAN="$ac_cv_sys_man_format" 3085 3086fi 3087 3088 3089if test "$CATMAN"; then 3090 CATMAN_TRUE= 3091 CATMAN_FALSE='#' 3092else 3093 CATMAN_TRUE='#' 3094 CATMAN_FALSE= 3095fi 3096echo $ac_n "checking extension of pre-formatted manual pages""... $ac_c" 1>&6 3097echo "configure:3098: checking extension of pre-formatted manual pages" >&5 3098if eval "test \"`echo '$''{'ac_cv_sys_catman_ext'+set}'`\" = set"; then 3099 echo $ac_n "(cached) $ac_c" 1>&6 3100else 3101 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 3102 ac_cv_sys_catman_ext=0 3103else 3104 ac_cv_sys_catman_ext=number 3105fi 3106 3107fi 3108 3109echo "$ac_t""$ac_cv_sys_catman_ext" 1>&6 3110if test "$ac_cv_sys_catman_ext" = number; then 3111 CATMANEXT='$$ext' 3112else 3113 CATMANEXT=0 3114fi 3115 3116 3117 3118 3119 3120# Check whether --with-readline or --without-readline was given. 3121if test "${with_readline+set}" = set; then 3122 withval="$with_readline" 3123 : 3124fi 3125 3126# Check whether --with-readline-lib or --without-readline-lib was given. 3127if test "${with_readline_lib+set}" = set; then 3128 withval="$with_readline_lib" 3129 if test "$withval" = "yes" -o "$withval" = "no"; then 3130 { echo "configure: error: No argument for --with-readline-lib" 1>&2; exit 1; } 3131elif test "X$with_readline" = "X"; then 3132 with_readline=yes 3133fi 3134fi 3135 3136# Check whether --with-readline-include or --without-readline-include was given. 3137if test "${with_readline_include+set}" = set; then 3138 withval="$with_readline_include" 3139 if test "$withval" = "yes" -o "$withval" = "no"; then 3140 { echo "configure: error: No argument for --with-readline-include" 1>&2; exit 1; } 3141elif test "X$with_readline" = "X"; then 3142 with_readline=yes 3143fi 3144fi 3145 3146 3147echo $ac_n "checking for readline""... $ac_c" 1>&6 3148echo "configure:3149: checking for readline" >&5 3149 3150case "$with_readline" in 3151yes) ;; 3152no) ;; 3153"") ;; 3154*) if test "$with_readline_include" = ""; then 3155 with_readline_include="$with_readline/include" 3156 fi 3157 if test "$with_readline_lib" = ""; then 3158 with_readline_lib="$with_readline/lib$abilibdirext" 3159 fi 3160 ;; 3161esac 3162header_dirs= 3163lib_dirs= 3164d='' 3165for i in $d; do 3166 header_dirs="$header_dirs $i/include" 3167 lib_dirs="$lib_dirs $i/lib$abilibdirext" 3168done 3169 3170case "$with_readline_include" in 3171yes) ;; 3172no) ;; 3173*) header_dirs="$with_readline_include $header_dirs";; 3174esac 3175case "$with_readline_lib" in 3176yes) ;; 3177no) ;; 3178*) lib_dirs="$with_readline_lib $lib_dirs";; 3179esac 3180 3181save_CFLAGS="$CFLAGS" 3182save_LIBS="$LIBS" 3183ires= lres= 3184for i in $header_dirs; do 3185 CFLAGS="-I$i $save_CFLAGS" 3186 cat > conftest.$ac_ext <<EOF 3187#line 3188 "configure" 3188#include "confdefs.h" 3189#include <stdio.h> 3190 #include <readline.h> 3191int main() { 3192 3193; return 0; } 3194EOF 3195if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3196 rm -rf conftest* 3197 ires=$i;break 3198else 3199 echo "configure: failed program was:" >&5 3200 cat conftest.$ac_ext >&5 3201fi 3202rm -f conftest* 3203done 3204for i in $lib_dirs; do 3205 LIBS="-L$i -lreadline $save_LIBS" 3206 cat > conftest.$ac_ext <<EOF 3207#line 3208 "configure" 3208#include "confdefs.h" 3209#include <stdio.h> 3210 #include <readline.h> 3211int main() { 3212 3213; return 0; } 3214EOF 3215if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3216 rm -rf conftest* 3217 lres=$i;break 3218else 3219 echo "configure: failed program was:" >&5 3220 cat conftest.$ac_ext >&5 3221fi 3222rm -f conftest* 3223done 3224CFLAGS="$save_CFLAGS" 3225LIBS="$save_LIBS" 3226 3227if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 3228 readline_includedir="$ires" 3229 readline_libdir="$lres" 3230 INCLUDE_readline="-I$readline_includedir" 3231 LIB_readline="-L$readline_libdir -lreadline" 3232 cat >> confdefs.h <<EOF 3233#define `echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1 3234EOF 3235 3236 with_readline=yes 3237 echo "$ac_t""headers $ires, libraries $lres" 1>&6 3238else 3239 INCLUDE_readline= 3240 LIB_readline= 3241 with_readline=no 3242 echo "$ac_t""$with_readline" 1>&6 3243fi 3244 3245 3246 3247 3248 3249# Check whether --with-hesiod or --without-hesiod was given. 3250if test "${with_hesiod+set}" = set; then 3251 withval="$with_hesiod" 3252 : 3253fi 3254 3255# Check whether --with-hesiod-lib or --without-hesiod-lib was given. 3256if test "${with_hesiod_lib+set}" = set; then 3257 withval="$with_hesiod_lib" 3258 if test "$withval" = "yes" -o "$withval" = "no"; then 3259 { echo "configure: error: No argument for --with-hesiod-lib" 1>&2; exit 1; } 3260elif test "X$with_hesiod" = "X"; then 3261 with_hesiod=yes 3262fi 3263fi 3264 3265# Check whether --with-hesiod-include or --without-hesiod-include was given. 3266if test "${with_hesiod_include+set}" = set; then 3267 withval="$with_hesiod_include" 3268 if test "$withval" = "yes" -o "$withval" = "no"; then 3269 { echo "configure: error: No argument for --with-hesiod-include" 1>&2; exit 1; } 3270elif test "X$with_hesiod" = "X"; then 3271 with_hesiod=yes 3272fi 3273fi 3274 3275 3276echo $ac_n "checking for hesiod""... $ac_c" 1>&6 3277echo "configure:3278: checking for hesiod" >&5 3278 3279case "$with_hesiod" in 3280yes) ;; 3281no) ;; 3282"") ;; 3283*) if test "$with_hesiod_include" = ""; then 3284 with_hesiod_include="$with_hesiod/include" 3285 fi 3286 if test "$with_hesiod_lib" = ""; then 3287 with_hesiod_lib="$with_hesiod/lib$abilibdirext" 3288 fi 3289 ;; 3290esac 3291header_dirs= 3292lib_dirs= 3293d='' 3294for i in $d; do 3295 header_dirs="$header_dirs $i/include" 3296 lib_dirs="$lib_dirs $i/lib$abilibdirext" 3297done 3298 3299case "$with_hesiod_include" in 3300yes) ;; 3301no) ;; 3302*) header_dirs="$with_hesiod_include $header_dirs";; 3303esac 3304case "$with_hesiod_lib" in 3305yes) ;; 3306no) ;; 3307*) lib_dirs="$with_hesiod_lib $lib_dirs";; 3308esac 3309 3310save_CFLAGS="$CFLAGS" 3311save_LIBS="$LIBS" 3312ires= lres= 3313for i in $header_dirs; do 3314 CFLAGS="-I$i $save_CFLAGS" 3315 cat > conftest.$ac_ext <<EOF 3316#line 3317 "configure" 3317#include "confdefs.h" 3318#include <hesiod.h> 3319int main() { 3320 3321; return 0; } 3322EOF 3323if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3324 rm -rf conftest* 3325 ires=$i;break 3326else 3327 echo "configure: failed program was:" >&5 3328 cat conftest.$ac_ext >&5 3329fi 3330rm -f conftest* 3331done 3332for i in $lib_dirs; do 3333 LIBS="-L$i -lhesiod $save_LIBS" 3334 cat > conftest.$ac_ext <<EOF 3335#line 3336 "configure" 3336#include "confdefs.h" 3337#include <hesiod.h> 3338int main() { 3339 3340; return 0; } 3341EOF 3342if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3343 rm -rf conftest* 3344 lres=$i;break 3345else 3346 echo "configure: failed program was:" >&5 3347 cat conftest.$ac_ext >&5 3348fi 3349rm -f conftest* 3350done 3351CFLAGS="$save_CFLAGS" 3352LIBS="$save_LIBS" 3353 3354if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then 3355 hesiod_includedir="$ires" 3356 hesiod_libdir="$lres" 3357 INCLUDE_hesiod="-I$hesiod_includedir" 3358 LIB_hesiod="-L$hesiod_libdir -lhesiod" 3359 cat >> confdefs.h <<EOF 3360#define `echo hesiod | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1 3361EOF 3362 3363 with_hesiod=yes 3364 echo "$ac_t""headers $ires, libraries $lres" 1>&6 3365else 3366 INCLUDE_hesiod= 3367 LIB_hesiod= 3368 with_hesiod=no 3369 echo "$ac_t""$with_hesiod" 1>&6 3370fi 3371 3372 3373 3374 3375 3376# Check whether --enable-bigendian or --disable-bigendian was given. 3377if test "${enable_bigendian+set}" = set; then 3378 enableval="$enable_bigendian" 3379 krb_cv_c_bigendian=yes 3380fi 3381 3382# Check whether --enable-littleendian or --disable-littleendian was given. 3383if test "${enable_littleendian+set}" = set; then 3384 enableval="$enable_littleendian" 3385 krb_cv_c_bigendian=no 3386fi 3387 3388echo $ac_n "checking whether byte order is known at compile time""... $ac_c" 1>&6 3389echo "configure:3390: checking whether byte order is known at compile time" >&5 3390if eval "test \"`echo '$''{'krb_cv_c_bigendian_compile'+set}'`\" = set"; then 3391 echo $ac_n "(cached) $ac_c" 1>&6 3392else 3393 cat > conftest.$ac_ext <<EOF 3394#line 3395 "configure" 3395#include "confdefs.h" 3396 3397#include <sys/types.h> 3398#include <sys/param.h> 3399int main() { 3400 3401#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3402 bogus endian macros 3403#endif 3404; return 0; } 3405EOF 3406if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3407 rm -rf conftest* 3408 krb_cv_c_bigendian_compile=yes 3409else 3410 echo "configure: failed program was:" >&5 3411 cat conftest.$ac_ext >&5 3412 rm -rf conftest* 3413 krb_cv_c_bigendian_compile=no 3414fi 3415rm -f conftest* 3416fi 3417 3418echo "$ac_t""$krb_cv_c_bigendian_compile" 1>&6 3419if test "$krb_cv_c_bigendian_compile" = "no"; then 3420 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3421echo "configure:3422: checking whether byte ordering is bigendian" >&5 3422if eval "test \"`echo '$''{'krb_cv_c_bigendian'+set}'`\" = set"; then 3423 echo $ac_n "(cached) $ac_c" 1>&6 3424else 3425 3426 if test "$krb_cv_c_bigendian" = ""; then 3427 krb_cv_c_bigendian=unknown 3428 fi 3429 cat > conftest.$ac_ext <<EOF 3430#line 3431 "configure" 3431#include "confdefs.h" 3432 3433#include <sys/types.h> 3434#include <sys/param.h> 3435int main() { 3436 3437#if BYTE_ORDER != BIG_ENDIAN 3438 not big endian 3439#endif 3440; return 0; } 3441EOF 3442if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3443 rm -rf conftest* 3444 krb_cv_c_bigendian=yes 3445else 3446 echo "configure: failed program was:" >&5 3447 cat conftest.$ac_ext >&5 3448 rm -rf conftest* 3449 krb_cv_c_bigendian=no 3450fi 3451rm -f conftest* 3452 if test "$krb_cv_c_bigendian" = "unknown"; then 3453 if test "$cross_compiling" = yes; then 3454 { echo "configure: error: specify either --enable-bigendian or --enable-littleendian" 1>&2; exit 1; } 3455else 3456 cat > conftest.$ac_ext <<EOF 3457#line 3458 "configure" 3458#include "confdefs.h" 3459main () { 3460 /* Are we little or big endian? From Harbison&Steele. */ 3461 union 3462 { 3463 long l; 3464 char c[sizeof (long)]; 3465 } u; 3466 u.l = 1; 3467 exit (u.c[sizeof (long) - 1] == 1); 3468 } 3469EOF 3470if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3471then 3472 krb_cv_c_bigendian=no 3473else 3474 echo "configure: failed program was:" >&5 3475 cat conftest.$ac_ext >&5 3476 rm -fr conftest* 3477 krb_cv_c_bigendian=yes 3478fi 3479rm -fr conftest* 3480fi 3481 3482 fi 3483 3484fi 3485 3486echo "$ac_t""$krb_cv_c_bigendian" 1>&6 3487 if test "$krb_cv_c_bigendian" = "yes"; then 3488 cat >> confdefs.h <<\EOF 3489#define WORDS_BIGENDIAN 1 3490EOF 3491 fi 3492fi 3493if test "$krb_cv_c_bigendian_compile" = "yes"; then 3494 cat >> confdefs.h <<\EOF 3495#define ENDIANESS_IN_SYS_PARAM_H 1 3496EOF 3497fi 3498 3499echo $ac_n "checking for inline""... $ac_c" 1>&6 3500echo "configure:3501: checking for inline" >&5 3501if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 3502 echo $ac_n "(cached) $ac_c" 1>&6 3503else 3504 ac_cv_c_inline=no 3505for ac_kw in inline __inline__ __inline; do 3506 cat > conftest.$ac_ext <<EOF 3507#line 3508 "configure" 3508#include "confdefs.h" 3509 3510int main() { 3511} $ac_kw foo() { 3512; return 0; } 3513EOF 3514if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3515 rm -rf conftest* 3516 ac_cv_c_inline=$ac_kw; break 3517else 3518 echo "configure: failed program was:" >&5 3519 cat conftest.$ac_ext >&5 3520fi 3521rm -f conftest* 3522done 3523 3524fi 3525 3526echo "$ac_t""$ac_cv_c_inline" 1>&6 3527case "$ac_cv_c_inline" in 3528 inline | yes) ;; 3529 no) cat >> confdefs.h <<\EOF 3530#define inline 3531EOF 3532 ;; 3533 *) cat >> confdefs.h <<EOF 3534#define inline $ac_cv_c_inline 3535EOF 3536 ;; 3537esac 3538 3539 3540# If we find X, set shell vars x_includes and x_libraries to the 3541# paths, otherwise set no_x=yes. 3542# Uses ac_ vars as temps to allow command line to override cache and checks. 3543# --without-x overrides everything else, but does not touch the cache. 3544echo $ac_n "checking for X""... $ac_c" 1>&6 3545echo "configure:3546: checking for X" >&5 3546 3547# Check whether --with-x or --without-x was given. 3548if test "${with_x+set}" = set; then 3549 withval="$with_x" 3550 : 3551fi 3552 3553# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 3554if test "x$with_x" = xno; then 3555 # The user explicitly disabled X. 3556 have_x=disabled 3557else 3558 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 3559 # Both variables are already set. 3560 have_x=yes 3561 else 3562if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 3563 echo $ac_n "(cached) $ac_c" 1>&6 3564else 3565 # One or both of the vars are not set, and there is no cached value. 3566ac_x_includes=NO ac_x_libraries=NO 3567rm -fr conftestdir 3568if mkdir conftestdir; then 3569 cd conftestdir 3570 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 3571 cat > Imakefile <<'EOF' 3572acfindx: 3573 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 3574EOF 3575 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 3576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3577 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 3578 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 3579 for ac_extension in a so sl; do 3580 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 3581 test -f $ac_im_libdir/libX11.$ac_extension; then 3582 ac_im_usrlibdir=$ac_im_libdir; break 3583 fi 3584 done 3585 # Screen out bogus values from the imake configuration. They are 3586 # bogus both because they are the default anyway, and because 3587 # using them would break gcc on systems where it needs fixed includes. 3588 case "$ac_im_incroot" in 3589 /usr/include) ;; 3590 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 3591 esac 3592 case "$ac_im_usrlibdir" in 3593 /usr/lib | /lib) ;; 3594 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 3595 esac 3596 fi 3597 cd .. 3598 rm -fr conftestdir 3599fi 3600 3601if test "$ac_x_includes" = NO; then 3602 # Guess where to find include files, by looking for this one X11 .h file. 3603 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3604 3605 # First, try using that file with no special directory specified. 3606cat > conftest.$ac_ext <<EOF 3607#line 3608 "configure" 3608#include "confdefs.h" 3609#include <$x_direct_test_include> 3610EOF 3611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3612{ (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3613ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3614if test -z "$ac_err"; then 3615 rm -rf conftest* 3616 # We can compile using X headers with no special include directory. 3617ac_x_includes= 3618else 3619 echo "$ac_err" >&5 3620 echo "configure: failed program was:" >&5 3621 cat conftest.$ac_ext >&5 3622 rm -rf conftest* 3623 # Look for the header file in a standard set of common directories. 3624# Check X11 before X11Rn because it is often a symlink to the current release. 3625 for ac_dir in \ 3626 /usr/X11/include \ 3627 /usr/X11R6/include \ 3628 /usr/X11R5/include \ 3629 /usr/X11R4/include \ 3630 \ 3631 /usr/include/X11 \ 3632 /usr/include/X11R6 \ 3633 /usr/include/X11R5 \ 3634 /usr/include/X11R4 \ 3635 \ 3636 /usr/local/X11/include \ 3637 /usr/local/X11R6/include \ 3638 /usr/local/X11R5/include \ 3639 /usr/local/X11R4/include \ 3640 \ 3641 /usr/local/include/X11 \ 3642 /usr/local/include/X11R6 \ 3643 /usr/local/include/X11R5 \ 3644 /usr/local/include/X11R4 \ 3645 \ 3646 /usr/X386/include \ 3647 /usr/x386/include \ 3648 /usr/XFree86/include/X11 \ 3649 \ 3650 /usr/include \ 3651 /usr/local/include \ 3652 /usr/unsupported/include \ 3653 /usr/athena/include \ 3654 /usr/local/x11r5/include \ 3655 /usr/lpp/Xamples/include \ 3656 \ 3657 /usr/openwin/include \ 3658 /usr/openwin/share/include \ 3659 ; \ 3660 do 3661 if test -r "$ac_dir/$x_direct_test_include"; then 3662 ac_x_includes=$ac_dir 3663 break 3664 fi 3665 done 3666fi 3667rm -f conftest* 3668fi # $ac_x_includes = NO 3669 3670if test "$ac_x_libraries" = NO; then 3671 # Check for the libraries. 3672 3673 test -z "$x_direct_test_library" && x_direct_test_library=Xt 3674 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 3675 3676 # See if we find them without any special options. 3677 # Don't add to $LIBS permanently. 3678 ac_save_LIBS="$LIBS" 3679 LIBS="-l$x_direct_test_library $LIBS" 3680cat > conftest.$ac_ext <<EOF 3681#line 3682 "configure" 3682#include "confdefs.h" 3683 3684int main() { 3685${x_direct_test_function}() 3686; return 0; } 3687EOF 3688if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3689 rm -rf conftest* 3690 LIBS="$ac_save_LIBS" 3691# We can link X programs with no special library path. 3692ac_x_libraries= 3693else 3694 echo "configure: failed program was:" >&5 3695 cat conftest.$ac_ext >&5 3696 rm -rf conftest* 3697 LIBS="$ac_save_LIBS" 3698# First see if replacing the include by lib works. 3699# Check X11 before X11Rn because it is often a symlink to the current release. 3700for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 3701 /usr/X11/lib \ 3702 /usr/X11R6/lib \ 3703 /usr/X11R5/lib \ 3704 /usr/X11R4/lib \ 3705 \ 3706 /usr/lib/X11 \ 3707 /usr/lib/X11R6 \ 3708 /usr/lib/X11R5 \ 3709 /usr/lib/X11R4 \ 3710 \ 3711 /usr/local/X11/lib \ 3712 /usr/local/X11R6/lib \ 3713 /usr/local/X11R5/lib \ 3714 /usr/local/X11R4/lib \ 3715 \ 3716 /usr/local/lib/X11 \ 3717 /usr/local/lib/X11R6 \ 3718 /usr/local/lib/X11R5 \ 3719 /usr/local/lib/X11R4 \ 3720 \ 3721 /usr/X386/lib \ 3722 /usr/x386/lib \ 3723 /usr/XFree86/lib/X11 \ 3724 \ 3725 /usr/lib \ 3726 /usr/local/lib \ 3727 /usr/unsupported/lib \ 3728 /usr/athena/lib \ 3729 /usr/local/x11r5/lib \ 3730 /usr/lpp/Xamples/lib \ 3731 /lib/usr/lib/X11 \ 3732 \ 3733 /usr/openwin/lib \ 3734 /usr/openwin/share/lib \ 3735 ; \ 3736do 3737 for ac_extension in a so sl; do 3738 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 3739 ac_x_libraries=$ac_dir 3740 break 2 3741 fi 3742 done 3743done 3744fi 3745rm -f conftest* 3746fi # $ac_x_libraries = NO 3747 3748if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 3749 # Didn't find X anywhere. Cache the known absence of X. 3750 ac_cv_have_x="have_x=no" 3751else 3752 # Record where we found X for the cache. 3753 ac_cv_have_x="have_x=yes \ 3754 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 3755fi 3756fi 3757 fi 3758 eval "$ac_cv_have_x" 3759fi # $with_x != no 3760 3761if test "$have_x" != yes; then 3762 echo "$ac_t""$have_x" 1>&6 3763 no_x=yes 3764else 3765 # If each of the values was on the command line, it overrides each guess. 3766 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 3767 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 3768 # Update the cache value to reflect the command line values. 3769 ac_cv_have_x="have_x=yes \ 3770 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 3771 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 3772fi 3773 3774 3775if test "$no_x" = yes; then 3776 # Not all programs may use this symbol, but it does not hurt to define it. 3777 cat >> confdefs.h <<\EOF 3778#define X_DISPLAY_MISSING 1 3779EOF 3780 3781 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 3782else 3783 if test -n "$x_includes"; then 3784 X_CFLAGS="$X_CFLAGS -I$x_includes" 3785 fi 3786 3787 # It would also be nice to do this for all -L options, not just this one. 3788 if test -n "$x_libraries"; then 3789 X_LIBS="$X_LIBS -L$x_libraries" 3790 # For Solaris; some versions of Sun CC require a space after -R and 3791 # others require no space. Words are not sufficient . . . . 3792 case "`(uname -sr) 2>/dev/null`" in 3793 "SunOS 5"*) 3794 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 3795echo "configure:3796: checking whether -R must be followed by a space" >&5 3796 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 3797 cat > conftest.$ac_ext <<EOF 3798#line 3799 "configure" 3799#include "confdefs.h" 3800 3801int main() { 3802 3803; return 0; } 3804EOF 3805if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3806 rm -rf conftest* 3807 ac_R_nospace=yes 3808else 3809 echo "configure: failed program was:" >&5 3810 cat conftest.$ac_ext >&5 3811 rm -rf conftest* 3812 ac_R_nospace=no 3813fi 3814rm -f conftest* 3815 if test $ac_R_nospace = yes; then 3816 echo "$ac_t""no" 1>&6 3817 X_LIBS="$X_LIBS -R$x_libraries" 3818 else 3819 LIBS="$ac_xsave_LIBS -R $x_libraries" 3820 cat > conftest.$ac_ext <<EOF 3821#line 3822 "configure" 3822#include "confdefs.h" 3823 3824int main() { 3825 3826; return 0; } 3827EOF 3828if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3829 rm -rf conftest* 3830 ac_R_space=yes 3831else 3832 echo "configure: failed program was:" >&5 3833 cat conftest.$ac_ext >&5 3834 rm -rf conftest* 3835 ac_R_space=no 3836fi 3837rm -f conftest* 3838 if test $ac_R_space = yes; then 3839 echo "$ac_t""yes" 1>&6 3840 X_LIBS="$X_LIBS -R $x_libraries" 3841 else 3842 echo "$ac_t""neither works" 1>&6 3843 fi 3844 fi 3845 LIBS="$ac_xsave_LIBS" 3846 esac 3847 fi 3848 3849 # Check for system-dependent libraries X programs must link with. 3850 # Do this before checking for the system-independent R6 libraries 3851 # (-lICE), since we may need -lsocket or whatever for X linking. 3852 3853 if test "$ISC" = yes; then 3854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 3855 else 3856 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 3857 # libraries were built with DECnet support. And karl@cs.umb.edu says 3858 # the Alpha needs dnet_stub (dnet does not exist). 3859 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3860echo "configure:3861: checking for dnet_ntoa in -ldnet" >&5 3861ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3863 echo $ac_n "(cached) $ac_c" 1>&6 3864else 3865 ac_save_LIBS="$LIBS" 3866LIBS="-ldnet $LIBS" 3867cat > conftest.$ac_ext <<EOF 3868#line 3869 "configure" 3869#include "confdefs.h" 3870/* Override any gcc2 internal prototype to avoid an error. */ 3871/* We use char because int might match the return type of a gcc2 3872 builtin and then its argument prototype would still apply. */ 3873char dnet_ntoa(); 3874 3875int main() { 3876dnet_ntoa() 3877; return 0; } 3878EOF 3879if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3880 rm -rf conftest* 3881 eval "ac_cv_lib_$ac_lib_var=yes" 3882else 3883 echo "configure: failed program was:" >&5 3884 cat conftest.$ac_ext >&5 3885 rm -rf conftest* 3886 eval "ac_cv_lib_$ac_lib_var=no" 3887fi 3888rm -f conftest* 3889LIBS="$ac_save_LIBS" 3890 3891fi 3892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3893 echo "$ac_t""yes" 1>&6 3894 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 3895else 3896 echo "$ac_t""no" 1>&6 3897fi 3898 3899 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 3900 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 3901echo "configure:3902: checking for dnet_ntoa in -ldnet_stub" >&5 3902ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3904 echo $ac_n "(cached) $ac_c" 1>&6 3905else 3906 ac_save_LIBS="$LIBS" 3907LIBS="-ldnet_stub $LIBS" 3908cat > conftest.$ac_ext <<EOF 3909#line 3910 "configure" 3910#include "confdefs.h" 3911/* Override any gcc2 internal prototype to avoid an error. */ 3912/* We use char because int might match the return type of a gcc2 3913 builtin and then its argument prototype would still apply. */ 3914char dnet_ntoa(); 3915 3916int main() { 3917dnet_ntoa() 3918; return 0; } 3919EOF 3920if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3921 rm -rf conftest* 3922 eval "ac_cv_lib_$ac_lib_var=yes" 3923else 3924 echo "configure: failed program was:" >&5 3925 cat conftest.$ac_ext >&5 3926 rm -rf conftest* 3927 eval "ac_cv_lib_$ac_lib_var=no" 3928fi 3929rm -f conftest* 3930LIBS="$ac_save_LIBS" 3931 3932fi 3933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3934 echo "$ac_t""yes" 1>&6 3935 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 3936else 3937 echo "$ac_t""no" 1>&6 3938fi 3939 3940 fi 3941 3942 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 3943 # to get the SysV transport functions. 3944 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 3945 # needs -lnsl. 3946 # The nsl library prevents programs from opening the X display 3947 # on Irix 5.2, according to dickey@clark.net. 3948 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 3949echo "configure:3950: checking for gethostbyname" >&5 3950if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 3951 echo $ac_n "(cached) $ac_c" 1>&6 3952else 3953 cat > conftest.$ac_ext <<EOF 3954#line 3955 "configure" 3955#include "confdefs.h" 3956/* System header to define __stub macros and hopefully few prototypes, 3957 which can conflict with char gethostbyname(); below. */ 3958#include <assert.h> 3959/* Override any gcc2 internal prototype to avoid an error. */ 3960/* We use char because int might match the return type of a gcc2 3961 builtin and then its argument prototype would still apply. */ 3962char gethostbyname(); 3963 3964int main() { 3965 3966/* The GNU C library defines this for functions which it implements 3967 to always fail with ENOSYS. Some functions are actually named 3968 something starting with __ and the normal name is an alias. */ 3969#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 3970choke me 3971#else 3972gethostbyname(); 3973#endif 3974 3975; return 0; } 3976EOF 3977if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3978 rm -rf conftest* 3979 eval "ac_cv_func_gethostbyname=yes" 3980else 3981 echo "configure: failed program was:" >&5 3982 cat conftest.$ac_ext >&5 3983 rm -rf conftest* 3984 eval "ac_cv_func_gethostbyname=no" 3985fi 3986rm -f conftest* 3987fi 3988 3989if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 3990 echo "$ac_t""yes" 1>&6 3991 : 3992else 3993 echo "$ac_t""no" 1>&6 3994fi 3995 3996 if test $ac_cv_func_gethostbyname = no; then 3997 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 3998echo "configure:3999: checking for gethostbyname in -lnsl" >&5 3999ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4001 echo $ac_n "(cached) $ac_c" 1>&6 4002else 4003 ac_save_LIBS="$LIBS" 4004LIBS="-lnsl $LIBS" 4005cat > conftest.$ac_ext <<EOF 4006#line 4007 "configure" 4007#include "confdefs.h" 4008/* Override any gcc2 internal prototype to avoid an error. */ 4009/* We use char because int might match the return type of a gcc2 4010 builtin and then its argument prototype would still apply. */ 4011char gethostbyname(); 4012 4013int main() { 4014gethostbyname() 4015; return 0; } 4016EOF 4017if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4018 rm -rf conftest* 4019 eval "ac_cv_lib_$ac_lib_var=yes" 4020else 4021 echo "configure: failed program was:" >&5 4022 cat conftest.$ac_ext >&5 4023 rm -rf conftest* 4024 eval "ac_cv_lib_$ac_lib_var=no" 4025fi 4026rm -f conftest* 4027LIBS="$ac_save_LIBS" 4028 4029fi 4030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4031 echo "$ac_t""yes" 1>&6 4032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 4033else 4034 echo "$ac_t""no" 1>&6 4035fi 4036 4037 fi 4038 4039 # lieder@skyler.mavd.honeywell.com says without -lsocket, 4040 # socket/setsockopt and other routines are undefined under SCO ODT 4041 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 4042 # on later versions), says simon@lia.di.epfl.ch: it contains 4043 # gethostby* variants that don't use the nameserver (or something). 4044 # -lsocket must be given before -lnsl if both are needed. 4045 # We assume that if connect needs -lnsl, so does gethostbyname. 4046 echo $ac_n "checking for connect""... $ac_c" 1>&6 4047echo "configure:4048: checking for connect" >&5 4048if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 4049 echo $ac_n "(cached) $ac_c" 1>&6 4050else 4051 cat > conftest.$ac_ext <<EOF 4052#line 4053 "configure" 4053#include "confdefs.h" 4054/* System header to define __stub macros and hopefully few prototypes, 4055 which can conflict with char connect(); below. */ 4056#include <assert.h> 4057/* Override any gcc2 internal prototype to avoid an error. */ 4058/* We use char because int might match the return type of a gcc2 4059 builtin and then its argument prototype would still apply. */ 4060char connect(); 4061 4062int main() { 4063 4064/* The GNU C library defines this for functions which it implements 4065 to always fail with ENOSYS. Some functions are actually named 4066 something starting with __ and the normal name is an alias. */ 4067#if defined (__stub_connect) || defined (__stub___connect) 4068choke me 4069#else 4070connect(); 4071#endif 4072 4073; return 0; } 4074EOF 4075if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4076 rm -rf conftest* 4077 eval "ac_cv_func_connect=yes" 4078else 4079 echo "configure: failed program was:" >&5 4080 cat conftest.$ac_ext >&5 4081 rm -rf conftest* 4082 eval "ac_cv_func_connect=no" 4083fi 4084rm -f conftest* 4085fi 4086 4087if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 4088 echo "$ac_t""yes" 1>&6 4089 : 4090else 4091 echo "$ac_t""no" 1>&6 4092fi 4093 4094 if test $ac_cv_func_connect = no; then 4095 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 4096echo "configure:4097: checking for connect in -lsocket" >&5 4097ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4099 echo $ac_n "(cached) $ac_c" 1>&6 4100else 4101 ac_save_LIBS="$LIBS" 4102LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 4103cat > conftest.$ac_ext <<EOF 4104#line 4105 "configure" 4105#include "confdefs.h" 4106/* Override any gcc2 internal prototype to avoid an error. */ 4107/* We use char because int might match the return type of a gcc2 4108 builtin and then its argument prototype would still apply. */ 4109char connect(); 4110 4111int main() { 4112connect() 4113; return 0; } 4114EOF 4115if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4116 rm -rf conftest* 4117 eval "ac_cv_lib_$ac_lib_var=yes" 4118else 4119 echo "configure: failed program was:" >&5 4120 cat conftest.$ac_ext >&5 4121 rm -rf conftest* 4122 eval "ac_cv_lib_$ac_lib_var=no" 4123fi 4124rm -f conftest* 4125LIBS="$ac_save_LIBS" 4126 4127fi 4128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4129 echo "$ac_t""yes" 1>&6 4130 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 4131else 4132 echo "$ac_t""no" 1>&6 4133fi 4134 4135 fi 4136 4137 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4138 echo $ac_n "checking for remove""... $ac_c" 1>&6 4139echo "configure:4140: checking for remove" >&5 4140if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 4141 echo $ac_n "(cached) $ac_c" 1>&6 4142else 4143 cat > conftest.$ac_ext <<EOF 4144#line 4145 "configure" 4145#include "confdefs.h" 4146/* System header to define __stub macros and hopefully few prototypes, 4147 which can conflict with char remove(); below. */ 4148#include <assert.h> 4149/* Override any gcc2 internal prototype to avoid an error. */ 4150/* We use char because int might match the return type of a gcc2 4151 builtin and then its argument prototype would still apply. */ 4152char remove(); 4153 4154int main() { 4155 4156/* The GNU C library defines this for functions which it implements 4157 to always fail with ENOSYS. Some functions are actually named 4158 something starting with __ and the normal name is an alias. */ 4159#if defined (__stub_remove) || defined (__stub___remove) 4160choke me 4161#else 4162remove(); 4163#endif 4164 4165; return 0; } 4166EOF 4167if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4168 rm -rf conftest* 4169 eval "ac_cv_func_remove=yes" 4170else 4171 echo "configure: failed program was:" >&5 4172 cat conftest.$ac_ext >&5 4173 rm -rf conftest* 4174 eval "ac_cv_func_remove=no" 4175fi 4176rm -f conftest* 4177fi 4178 4179if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 4180 echo "$ac_t""yes" 1>&6 4181 : 4182else 4183 echo "$ac_t""no" 1>&6 4184fi 4185 4186 if test $ac_cv_func_remove = no; then 4187 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4188echo "configure:4189: checking for remove in -lposix" >&5 4189ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4191 echo $ac_n "(cached) $ac_c" 1>&6 4192else 4193 ac_save_LIBS="$LIBS" 4194LIBS="-lposix $LIBS" 4195cat > conftest.$ac_ext <<EOF 4196#line 4197 "configure" 4197#include "confdefs.h" 4198/* Override any gcc2 internal prototype to avoid an error. */ 4199/* We use char because int might match the return type of a gcc2 4200 builtin and then its argument prototype would still apply. */ 4201char remove(); 4202 4203int main() { 4204remove() 4205; return 0; } 4206EOF 4207if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4208 rm -rf conftest* 4209 eval "ac_cv_lib_$ac_lib_var=yes" 4210else 4211 echo "configure: failed program was:" >&5 4212 cat conftest.$ac_ext >&5 4213 rm -rf conftest* 4214 eval "ac_cv_lib_$ac_lib_var=no" 4215fi 4216rm -f conftest* 4217LIBS="$ac_save_LIBS" 4218 4219fi 4220if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4221 echo "$ac_t""yes" 1>&6 4222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 4223else 4224 echo "$ac_t""no" 1>&6 4225fi 4226 4227 fi 4228 4229 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4230 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4231echo "configure:4232: checking for shmat" >&5 4232if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 4233 echo $ac_n "(cached) $ac_c" 1>&6 4234else 4235 cat > conftest.$ac_ext <<EOF 4236#line 4237 "configure" 4237#include "confdefs.h" 4238/* System header to define __stub macros and hopefully few prototypes, 4239 which can conflict with char shmat(); below. */ 4240#include <assert.h> 4241/* Override any gcc2 internal prototype to avoid an error. */ 4242/* We use char because int might match the return type of a gcc2 4243 builtin and then its argument prototype would still apply. */ 4244char shmat(); 4245 4246int main() { 4247 4248/* The GNU C library defines this for functions which it implements 4249 to always fail with ENOSYS. Some functions are actually named 4250 something starting with __ and the normal name is an alias. */ 4251#if defined (__stub_shmat) || defined (__stub___shmat) 4252choke me 4253#else 4254shmat(); 4255#endif 4256 4257; return 0; } 4258EOF 4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4260 rm -rf conftest* 4261 eval "ac_cv_func_shmat=yes" 4262else 4263 echo "configure: failed program was:" >&5 4264 cat conftest.$ac_ext >&5 4265 rm -rf conftest* 4266 eval "ac_cv_func_shmat=no" 4267fi 4268rm -f conftest* 4269fi 4270 4271if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 4272 echo "$ac_t""yes" 1>&6 4273 : 4274else 4275 echo "$ac_t""no" 1>&6 4276fi 4277 4278 if test $ac_cv_func_shmat = no; then 4279 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4280echo "configure:4281: checking for shmat in -lipc" >&5 4281ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4283 echo $ac_n "(cached) $ac_c" 1>&6 4284else 4285 ac_save_LIBS="$LIBS" 4286LIBS="-lipc $LIBS" 4287cat > conftest.$ac_ext <<EOF 4288#line 4289 "configure" 4289#include "confdefs.h" 4290/* Override any gcc2 internal prototype to avoid an error. */ 4291/* We use char because int might match the return type of a gcc2 4292 builtin and then its argument prototype would still apply. */ 4293char shmat(); 4294 4295int main() { 4296shmat() 4297; return 0; } 4298EOF 4299if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4300 rm -rf conftest* 4301 eval "ac_cv_lib_$ac_lib_var=yes" 4302else 4303 echo "configure: failed program was:" >&5 4304 cat conftest.$ac_ext >&5 4305 rm -rf conftest* 4306 eval "ac_cv_lib_$ac_lib_var=no" 4307fi 4308rm -f conftest* 4309LIBS="$ac_save_LIBS" 4310 4311fi 4312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4313 echo "$ac_t""yes" 1>&6 4314 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 4315else 4316 echo "$ac_t""no" 1>&6 4317fi 4318 4319 fi 4320 fi 4321 4322 # Check for libraries that X11R6 Xt/Xaw programs need. 4323 ac_save_LDFLAGS="$LDFLAGS" 4324 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 4325 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 4326 # check for ICE first), but we must link in the order -lSM -lICE or 4327 # we get undefined symbols. So assume we have SM if we have ICE. 4328 # These have to be linked with before -lX11, unlike the other 4329 # libraries we check for below, so use a different variable. 4330 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4331 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4332echo "configure:4333: checking for IceConnectionNumber in -lICE" >&5 4333ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4335 echo $ac_n "(cached) $ac_c" 1>&6 4336else 4337 ac_save_LIBS="$LIBS" 4338LIBS="-lICE $X_EXTRA_LIBS $LIBS" 4339cat > conftest.$ac_ext <<EOF 4340#line 4341 "configure" 4341#include "confdefs.h" 4342/* Override any gcc2 internal prototype to avoid an error. */ 4343/* We use char because int might match the return type of a gcc2 4344 builtin and then its argument prototype would still apply. */ 4345char IceConnectionNumber(); 4346 4347int main() { 4348IceConnectionNumber() 4349; return 0; } 4350EOF 4351if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4352 rm -rf conftest* 4353 eval "ac_cv_lib_$ac_lib_var=yes" 4354else 4355 echo "configure: failed program was:" >&5 4356 cat conftest.$ac_ext >&5 4357 rm -rf conftest* 4358 eval "ac_cv_lib_$ac_lib_var=no" 4359fi 4360rm -f conftest* 4361LIBS="$ac_save_LIBS" 4362 4363fi 4364if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4365 echo "$ac_t""yes" 1>&6 4366 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 4367else 4368 echo "$ac_t""no" 1>&6 4369fi 4370 4371 LDFLAGS="$ac_save_LDFLAGS" 4372 4373fi 4374 4375 4376# try to figure out if we need any additional ld flags, like -R 4377# and yes, the autoconf X test is utterly broken 4378if test "$no_x" != yes; then 4379 echo $ac_n "checking for special X linker flags""... $ac_c" 1>&6 4380echo "configure:4381: checking for special X linker flags" >&5 4381if eval "test \"`echo '$''{'krb_cv_sys_x_libs_rpath'+set}'`\" = set"; then 4382 echo $ac_n "(cached) $ac_c" 1>&6 4383else 4384 4385 ac_save_libs="$LIBS" 4386 ac_save_cflags="$CFLAGS" 4387 CFLAGS="$CFLAGS $X_CFLAGS" 4388 krb_cv_sys_x_libs_rpath="" 4389 krb_cv_sys_x_libs="" 4390 for rflag in "" "-R" "-R " "-rpath "; do 4391 if test "$rflag" = ""; then 4392 foo="$X_LIBS" 4393 else 4394 foo="" 4395 for flag in $X_LIBS; do 4396 case $flag in 4397 -L*) 4398 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`" 4399 ;; 4400 *) 4401 foo="$foo $flag" 4402 ;; 4403 esac 4404 done 4405 fi 4406 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 4407 if test "$cross_compiling" = yes; then 4408 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4409else 4410 cat > conftest.$ac_ext <<EOF 4411#line 4412 "configure" 4412#include "confdefs.h" 4413 4414 #include <X11/Xlib.h> 4415 foo() 4416 { 4417 XOpenDisplay(NULL); 4418 } 4419 main() 4420 { 4421 return 0; 4422 } 4423 4424EOF 4425if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4426then 4427 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break 4428else 4429 echo "configure: failed program was:" >&5 4430 cat conftest.$ac_ext >&5 4431 rm -fr conftest* 4432 : 4433fi 4434rm -fr conftest* 4435fi 4436 4437 done 4438 LIBS="$ac_save_libs" 4439 CFLAGS="$ac_save_cflags" 4440 4441fi 4442 4443echo "$ac_t""$krb_cv_sys_x_libs_rpath" 1>&6 4444 X_LIBS="$krb_cv_sys_x_libs" 4445fi 4446 4447 4448if test "$no_x" = "yes" ; then 4449 MAKE_X_PROGS_BIN_PROGS="" 4450 MAKE_X_PROGS_BIN_SCRPTS="" 4451 MAKE_X_PROGS_LIBEXEC_PROGS="" 4452else 4453 MAKE_X_PROGS_BIN_PROGS='$(X_PROGS_BIN_PROGS)' 4454 MAKE_X_PROGS_BIN_SCRPTS='$(X_PROGS_BIN_SCRPTS)' 4455 MAKE_X_PROGS_LIBEXEC_PROGS='$(X_PROGS_LIBEXEC_PROGS)' 4456fi 4457 4458 4459save_CFLAGS="$CFLAGS" 4460CFLAGS="$X_CFLAGS $CFLAGS" 4461save_LIBS="$LIBS" 4462LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS" 4463save_LDFLAGS="$LDFLAGS" 4464LDFLAGS="$LDFLAGS $X_LIBS" 4465 4466 4467 4468 4469 4470echo $ac_n "checking for XauWriteAuth""... $ac_c" 1>&6 4471echo "configure:4472: checking for XauWriteAuth" >&5 4472if eval "test \"`echo '$''{'ac_cv_funclib_XauWriteAuth'+set}'`\" = set"; then 4473 echo $ac_n "(cached) $ac_c" 1>&6 4474else 4475 4476if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then 4477 ac_save_LIBS="$LIBS" 4478 for ac_lib in "" X11 Xau; do 4479 if test -n "$ac_lib"; then 4480 ac_lib="-l$ac_lib" 4481 else 4482 ac_lib="" 4483 fi 4484 LIBS=" $ac_lib $ac_save_LIBS" 4485 cat > conftest.$ac_ext <<EOF 4486#line 4487 "configure" 4487#include "confdefs.h" 4488 4489int main() { 4490XauWriteAuth() 4491; return 0; } 4492EOF 4493if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4494 rm -rf conftest* 4495 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break 4496else 4497 echo "configure: failed program was:" >&5 4498 cat conftest.$ac_ext >&5 4499fi 4500rm -f conftest* 4501 done 4502 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}" 4503 LIBS="$ac_save_LIBS" 4504fi 4505 4506fi 4507 4508 4509eval "ac_res=\$ac_cv_funclib_XauWriteAuth" 4510 4511: << END 4512@@@funcs="$funcs XauWriteAuth"@@@ 4513@@@libs="$libs "" X11 Xau"@@@ 4514END 4515 4516# XauWriteAuth 4517eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4518eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4519eval "LIB_XauWriteAuth=$ac_res" 4520 4521case "$ac_res" in 4522 yes) 4523 eval "ac_cv_func_XauWriteAuth=yes" 4524 eval "LIB_XauWriteAuth=" 4525 cat >> confdefs.h <<EOF 4526#define $ac_tr_func 1 4527EOF 4528 4529 echo "$ac_t""yes" 1>&6 4530 ;; 4531 no) 4532 eval "ac_cv_func_XauWriteAuth=no" 4533 eval "LIB_XauWriteAuth=" 4534 echo "$ac_t""no" 1>&6 4535 ;; 4536 *) 4537 eval "ac_cv_func_XauWriteAuth=yes" 4538 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4539 cat >> confdefs.h <<EOF 4540#define $ac_tr_func 1 4541EOF 4542 4543 cat >> confdefs.h <<EOF 4544#define $ac_tr_lib 1 4545EOF 4546 4547 echo "$ac_t""yes, in $ac_res" 1>&6 4548 ;; 4549esac 4550 4551 4552ac_xxx="$LIBS" 4553LIBS="$LIB_XauWriteAuth $LIBS" 4554 4555 4556 4557echo $ac_n "checking for XauReadAuth""... $ac_c" 1>&6 4558echo "configure:4559: checking for XauReadAuth" >&5 4559if eval "test \"`echo '$''{'ac_cv_funclib_XauReadAuth'+set}'`\" = set"; then 4560 echo $ac_n "(cached) $ac_c" 1>&6 4561else 4562 4563if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then 4564 ac_save_LIBS="$LIBS" 4565 for ac_lib in "" X11 Xau; do 4566 if test -n "$ac_lib"; then 4567 ac_lib="-l$ac_lib" 4568 else 4569 ac_lib="" 4570 fi 4571 LIBS=" $ac_lib $ac_save_LIBS" 4572 cat > conftest.$ac_ext <<EOF 4573#line 4574 "configure" 4574#include "confdefs.h" 4575 4576int main() { 4577XauReadAuth() 4578; return 0; } 4579EOF 4580if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4581 rm -rf conftest* 4582 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break 4583else 4584 echo "configure: failed program was:" >&5 4585 cat conftest.$ac_ext >&5 4586fi 4587rm -f conftest* 4588 done 4589 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}" 4590 LIBS="$ac_save_LIBS" 4591fi 4592 4593fi 4594 4595 4596eval "ac_res=\$ac_cv_funclib_XauReadAuth" 4597 4598: << END 4599@@@funcs="$funcs XauReadAuth"@@@ 4600@@@libs="$libs "" X11 Xau"@@@ 4601END 4602 4603# XauReadAuth 4604eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4605eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4606eval "LIB_XauReadAuth=$ac_res" 4607 4608case "$ac_res" in 4609 yes) 4610 eval "ac_cv_func_XauReadAuth=yes" 4611 eval "LIB_XauReadAuth=" 4612 cat >> confdefs.h <<EOF 4613#define $ac_tr_func 1 4614EOF 4615 4616 echo "$ac_t""yes" 1>&6 4617 ;; 4618 no) 4619 eval "ac_cv_func_XauReadAuth=no" 4620 eval "LIB_XauReadAuth=" 4621 echo "$ac_t""no" 1>&6 4622 ;; 4623 *) 4624 eval "ac_cv_func_XauReadAuth=yes" 4625 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4626 cat >> confdefs.h <<EOF 4627#define $ac_tr_func 1 4628EOF 4629 4630 cat >> confdefs.h <<EOF 4631#define $ac_tr_lib 1 4632EOF 4633 4634 echo "$ac_t""yes, in $ac_res" 1>&6 4635 ;; 4636esac 4637 4638 4639LIBS="$LIB_XauReadAauth $LIBS" 4640 4641 4642 4643echo $ac_n "checking for XauFileName""... $ac_c" 1>&6 4644echo "configure:4645: checking for XauFileName" >&5 4645if eval "test \"`echo '$''{'ac_cv_funclib_XauFileName'+set}'`\" = set"; then 4646 echo $ac_n "(cached) $ac_c" 1>&6 4647else 4648 4649if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then 4650 ac_save_LIBS="$LIBS" 4651 for ac_lib in "" X11 Xau; do 4652 if test -n "$ac_lib"; then 4653 ac_lib="-l$ac_lib" 4654 else 4655 ac_lib="" 4656 fi 4657 LIBS=" $ac_lib $ac_save_LIBS" 4658 cat > conftest.$ac_ext <<EOF 4659#line 4660 "configure" 4660#include "confdefs.h" 4661 4662int main() { 4663XauFileName() 4664; return 0; } 4665EOF 4666if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4667 rm -rf conftest* 4668 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break 4669else 4670 echo "configure: failed program was:" >&5 4671 cat conftest.$ac_ext >&5 4672fi 4673rm -f conftest* 4674 done 4675 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}" 4676 LIBS="$ac_save_LIBS" 4677fi 4678 4679fi 4680 4681 4682eval "ac_res=\$ac_cv_funclib_XauFileName" 4683 4684: << END 4685@@@funcs="$funcs XauFileName"@@@ 4686@@@libs="$libs "" X11 Xau"@@@ 4687END 4688 4689# XauFileName 4690eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4691eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4692eval "LIB_XauFileName=$ac_res" 4693 4694case "$ac_res" in 4695 yes) 4696 eval "ac_cv_func_XauFileName=yes" 4697 eval "LIB_XauFileName=" 4698 cat >> confdefs.h <<EOF 4699#define $ac_tr_func 1 4700EOF 4701 4702 echo "$ac_t""yes" 1>&6 4703 ;; 4704 no) 4705 eval "ac_cv_func_XauFileName=no" 4706 eval "LIB_XauFileName=" 4707 echo "$ac_t""no" 1>&6 4708 ;; 4709 *) 4710 eval "ac_cv_func_XauFileName=yes" 4711 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4712 cat >> confdefs.h <<EOF 4713#define $ac_tr_func 1 4714EOF 4715 4716 cat >> confdefs.h <<EOF 4717#define $ac_tr_lib 1 4718EOF 4719 4720 echo "$ac_t""yes, in $ac_res" 1>&6 4721 ;; 4722esac 4723 4724 4725LIBS="$ac_xxx" 4726 4727case "$ac_cv_funclib_XauWriteAuth" in 4728yes) ;; 4729no) ;; 4730*) if test "$ac_cv_funclib_XauReadAuth" = yes; then 4731 if test "$ac_cv_funclib_XauFileName" = yes; then 4732 LIB_XauReadAuth="$LIB_XauWriteAuth" 4733 else 4734 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName" 4735 fi 4736 else 4737 if test "$ac_cv_funclib_XauFileName" = yes; then 4738 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth" 4739 else 4740 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName" 4741 fi 4742 fi 4743 ;; 4744esac 4745 4746if test "$AUTOMAKE" != ""; then 4747 4748 4749if test "$ac_cv_func_XauWriteAuth" != "yes"; then 4750 NEED_WRITEAUTH_TRUE= 4751 NEED_WRITEAUTH_FALSE='#' 4752else 4753 NEED_WRITEAUTH_TRUE='#' 4754 NEED_WRITEAUTH_FALSE= 4755fi 4756else 4757 4758 4759 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 4760 NEED_WRITEAUTH_TRUE= 4761 NEED_WRITEAUTH_FALSE='#' 4762 else 4763 NEED_WRITEAUTH_TRUE='#' 4764 NEED_WRITEAUTH_FALSE= 4765 fi 4766fi 4767CFLAGS=$save_CFLAGS 4768LIBS=$save_LIBS 4769LDFLAGS=$save_LDFLAGS 4770 4771 4772 4773echo $ac_n "checking for working const""... $ac_c" 1>&6 4774echo "configure:4775: checking for working const" >&5 4775if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 4776 echo $ac_n "(cached) $ac_c" 1>&6 4777else 4778 cat > conftest.$ac_ext <<EOF 4779#line 4780 "configure" 4780#include "confdefs.h" 4781 4782int main() { 4783 4784/* Ultrix mips cc rejects this. */ 4785typedef int charset[2]; const charset x; 4786/* SunOS 4.1.1 cc rejects this. */ 4787char const *const *ccp; 4788char **p; 4789/* NEC SVR4.0.2 mips cc rejects this. */ 4790struct point {int x, y;}; 4791static struct point const zero = {0,0}; 4792/* AIX XL C 1.02.0.0 rejects this. 4793 It does not let you subtract one const X* pointer from another in an arm 4794 of an if-expression whose if-part is not a constant expression */ 4795const char *g = "string"; 4796ccp = &g + (g ? g-g : 0); 4797/* HPUX 7.0 cc rejects these. */ 4798++ccp; 4799p = (char**) ccp; 4800ccp = (char const *const *) p; 4801{ /* SCO 3.2v4 cc rejects this. */ 4802 char *t; 4803 char const *s = 0 ? (char *) 0 : (char const *) 0; 4804 4805 *t++ = 0; 4806} 4807{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4808 int x[] = {25, 17}; 4809 const int *foo = &x[0]; 4810 ++foo; 4811} 4812{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4813 typedef const int *iptr; 4814 iptr p = 0; 4815 ++p; 4816} 4817{ /* AIX XL C 1.02.0.0 rejects this saying 4818 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4819 struct s { int j; const int *ap[3]; }; 4820 struct s *b; b->j = 5; 4821} 4822{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4823 const int foo = 10; 4824} 4825 4826; return 0; } 4827EOF 4828if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4829 rm -rf conftest* 4830 ac_cv_c_const=yes 4831else 4832 echo "configure: failed program was:" >&5 4833 cat conftest.$ac_ext >&5 4834 rm -rf conftest* 4835 ac_cv_c_const=no 4836fi 4837rm -f conftest* 4838fi 4839 4840echo "$ac_t""$ac_cv_c_const" 1>&6 4841if test $ac_cv_c_const = no; then 4842 cat >> confdefs.h <<\EOF 4843#define const 4844EOF 4845 4846fi 4847 4848echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 4849echo "configure:4850: checking for ANSI C header files" >&5 4850if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 4851 echo $ac_n "(cached) $ac_c" 1>&6 4852else 4853 cat > conftest.$ac_ext <<EOF 4854#line 4855 "configure" 4855#include "confdefs.h" 4856#include <stdlib.h> 4857#include <stdarg.h> 4858#include <string.h> 4859#include <float.h> 4860EOF 4861ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4862{ (eval echo configure:4863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4863ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4864if test -z "$ac_err"; then 4865 rm -rf conftest* 4866 ac_cv_header_stdc=yes 4867else 4868 echo "$ac_err" >&5 4869 echo "configure: failed program was:" >&5 4870 cat conftest.$ac_ext >&5 4871 rm -rf conftest* 4872 ac_cv_header_stdc=no 4873fi 4874rm -f conftest* 4875 4876if test $ac_cv_header_stdc = yes; then 4877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4878cat > conftest.$ac_ext <<EOF 4879#line 4880 "configure" 4880#include "confdefs.h" 4881#include <string.h> 4882EOF 4883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4884 egrep "memchr" >/dev/null 2>&1; then 4885 : 4886else 4887 rm -rf conftest* 4888 ac_cv_header_stdc=no 4889fi 4890rm -f conftest* 4891 4892fi 4893 4894if test $ac_cv_header_stdc = yes; then 4895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4896cat > conftest.$ac_ext <<EOF 4897#line 4898 "configure" 4898#include "confdefs.h" 4899#include <stdlib.h> 4900EOF 4901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4902 egrep "free" >/dev/null 2>&1; then 4903 : 4904else 4905 rm -rf conftest* 4906 ac_cv_header_stdc=no 4907fi 4908rm -f conftest* 4909 4910fi 4911 4912if test $ac_cv_header_stdc = yes; then 4913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4914if test "$cross_compiling" = yes; then 4915 : 4916else 4917 cat > conftest.$ac_ext <<EOF 4918#line 4919 "configure" 4919#include "confdefs.h" 4920#include <ctype.h> 4921#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4922#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4924int main () { int i; for (i = 0; i < 256; i++) 4925if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 4926exit (0); } 4927 4928EOF 4929if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4930then 4931 : 4932else 4933 echo "configure: failed program was:" >&5 4934 cat conftest.$ac_ext >&5 4935 rm -fr conftest* 4936 ac_cv_header_stdc=no 4937fi 4938rm -fr conftest* 4939fi 4940 4941fi 4942fi 4943 4944echo "$ac_t""$ac_cv_header_stdc" 1>&6 4945if test $ac_cv_header_stdc = yes; then 4946 cat >> confdefs.h <<\EOF 4947#define STDC_HEADERS 1 4948EOF 4949 4950fi 4951 4952echo $ac_n "checking for off_t""... $ac_c" 1>&6 4953echo "configure:4954: checking for off_t" >&5 4954if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 4955 echo $ac_n "(cached) $ac_c" 1>&6 4956else 4957 cat > conftest.$ac_ext <<EOF 4958#line 4959 "configure" 4959#include "confdefs.h" 4960#include <sys/types.h> 4961#if STDC_HEADERS 4962#include <stdlib.h> 4963#include <stddef.h> 4964#endif 4965EOF 4966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4967 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 4968 rm -rf conftest* 4969 ac_cv_type_off_t=yes 4970else 4971 rm -rf conftest* 4972 ac_cv_type_off_t=no 4973fi 4974rm -f conftest* 4975 4976fi 4977echo "$ac_t""$ac_cv_type_off_t" 1>&6 4978if test $ac_cv_type_off_t = no; then 4979 cat >> confdefs.h <<\EOF 4980#define off_t long 4981EOF 4982 4983fi 4984 4985echo $ac_n "checking for size_t""... $ac_c" 1>&6 4986echo "configure:4987: checking for size_t" >&5 4987if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 4988 echo $ac_n "(cached) $ac_c" 1>&6 4989else 4990 cat > conftest.$ac_ext <<EOF 4991#line 4992 "configure" 4992#include "confdefs.h" 4993#include <sys/types.h> 4994#if STDC_HEADERS 4995#include <stdlib.h> 4996#include <stddef.h> 4997#endif 4998EOF 4999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5000 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5001 rm -rf conftest* 5002 ac_cv_type_size_t=yes 5003else 5004 rm -rf conftest* 5005 ac_cv_type_size_t=no 5006fi 5007rm -f conftest* 5008 5009fi 5010echo "$ac_t""$ac_cv_type_size_t" 1>&6 5011if test $ac_cv_type_size_t = no; then 5012 cat >> confdefs.h <<\EOF 5013#define size_t unsigned 5014EOF 5015 5016fi 5017 5018echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 5019echo "configure:5020: checking for ssize_t" >&5 5020if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then 5021 echo $ac_n "(cached) $ac_c" 1>&6 5022else 5023 cat > conftest.$ac_ext <<EOF 5024#line 5025 "configure" 5025#include "confdefs.h" 5026#include <sys/types.h> 5027#if STDC_HEADERS 5028#include <stdlib.h> 5029#include <stddef.h> 5030#endif 5031#include <unistd.h> 5032EOF 5033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5034 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5035 rm -rf conftest* 5036 ac_cv_type_ssize_t=yes 5037else 5038 rm -rf conftest* 5039 ac_cv_type_ssize_t=no 5040fi 5041rm -f conftest* 5042 5043fi 5044echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 5045if test $ac_cv_type_ssize_t = no; then 5046 cat >> confdefs.h <<\EOF 5047#define ssize_t int 5048EOF 5049 5050fi 5051 5052echo $ac_n "checking for pid_t""... $ac_c" 1>&6 5053echo "configure:5054: checking for pid_t" >&5 5054if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 5055 echo $ac_n "(cached) $ac_c" 1>&6 5056else 5057 cat > conftest.$ac_ext <<EOF 5058#line 5059 "configure" 5059#include "confdefs.h" 5060#include <sys/types.h> 5061#if STDC_HEADERS 5062#include <stdlib.h> 5063#include <stddef.h> 5064#endif 5065EOF 5066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5067 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5068 rm -rf conftest* 5069 ac_cv_type_pid_t=yes 5070else 5071 rm -rf conftest* 5072 ac_cv_type_pid_t=no 5073fi 5074rm -f conftest* 5075 5076fi 5077echo "$ac_t""$ac_cv_type_pid_t" 1>&6 5078if test $ac_cv_type_pid_t = no; then 5079 cat >> confdefs.h <<\EOF 5080#define pid_t int 5081EOF 5082 5083fi 5084 5085echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 5086echo "configure:5087: checking for uid_t in sys/types.h" >&5 5087if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 5088 echo $ac_n "(cached) $ac_c" 1>&6 5089else 5090 cat > conftest.$ac_ext <<EOF 5091#line 5092 "configure" 5092#include "confdefs.h" 5093#include <sys/types.h> 5094EOF 5095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5096 egrep "uid_t" >/dev/null 2>&1; then 5097 rm -rf conftest* 5098 ac_cv_type_uid_t=yes 5099else 5100 rm -rf conftest* 5101 ac_cv_type_uid_t=no 5102fi 5103rm -f conftest* 5104 5105fi 5106 5107echo "$ac_t""$ac_cv_type_uid_t" 1>&6 5108if test $ac_cv_type_uid_t = no; then 5109 cat >> confdefs.h <<\EOF 5110#define uid_t int 5111EOF 5112 5113 cat >> confdefs.h <<\EOF 5114#define gid_t int 5115EOF 5116 5117fi 5118 5119echo $ac_n "checking for mode_t""... $ac_c" 1>&6 5120echo "configure:5121: checking for mode_t" >&5 5121if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then 5122 echo $ac_n "(cached) $ac_c" 1>&6 5123else 5124 cat > conftest.$ac_ext <<EOF 5125#line 5126 "configure" 5126#include "confdefs.h" 5127#include <sys/types.h> 5128#if STDC_HEADERS 5129#include <stdlib.h> 5130#include <stddef.h> 5131#endif 5132 5133EOF 5134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5135 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5136 rm -rf conftest* 5137 ac_cv_type_mode_t=yes 5138else 5139 rm -rf conftest* 5140 ac_cv_type_mode_t=no 5141fi 5142rm -f conftest* 5143 5144fi 5145echo "$ac_t""$ac_cv_type_mode_t" 1>&6 5146if test $ac_cv_type_mode_t = no; then 5147 cat >> confdefs.h <<\EOF 5148#define mode_t unsigned short 5149EOF 5150 5151fi 5152 5153echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6 5154echo "configure:5155: checking for sig_atomic_t" >&5 5155if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then 5156 echo $ac_n "(cached) $ac_c" 1>&6 5157else 5158 cat > conftest.$ac_ext <<EOF 5159#line 5160 "configure" 5160#include "confdefs.h" 5161#include <sys/types.h> 5162#if STDC_HEADERS 5163#include <stdlib.h> 5164#include <stddef.h> 5165#endif 5166#include <signal.h> 5167EOF 5168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5169 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5170 rm -rf conftest* 5171 ac_cv_type_sig_atomic_t=yes 5172else 5173 rm -rf conftest* 5174 ac_cv_type_sig_atomic_t=no 5175fi 5176rm -f conftest* 5177 5178fi 5179echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6 5180if test $ac_cv_type_sig_atomic_t = no; then 5181 cat >> confdefs.h <<\EOF 5182#define sig_atomic_t int 5183EOF 5184 5185fi 5186 5187echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 5188echo "configure:5189: checking whether time.h and sys/time.h may both be included" >&5 5189if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 5190 echo $ac_n "(cached) $ac_c" 1>&6 5191else 5192 cat > conftest.$ac_ext <<EOF 5193#line 5194 "configure" 5194#include "confdefs.h" 5195#include <sys/types.h> 5196#include <sys/time.h> 5197#include <time.h> 5198int main() { 5199struct tm *tp; 5200; return 0; } 5201EOF 5202if { (eval echo configure:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5203 rm -rf conftest* 5204 ac_cv_header_time=yes 5205else 5206 echo "configure: failed program was:" >&5 5207 cat conftest.$ac_ext >&5 5208 rm -rf conftest* 5209 ac_cv_header_time=no 5210fi 5211rm -f conftest* 5212fi 5213 5214echo "$ac_t""$ac_cv_header_time" 1>&6 5215if test $ac_cv_header_time = yes; then 5216 cat >> confdefs.h <<\EOF 5217#define TIME_WITH_SYS_TIME 1 5218EOF 5219 5220fi 5221 5222echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 5223echo "configure:5224: checking whether struct tm is in sys/time.h or time.h" >&5 5224if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 5225 echo $ac_n "(cached) $ac_c" 1>&6 5226else 5227 cat > conftest.$ac_ext <<EOF 5228#line 5229 "configure" 5229#include "confdefs.h" 5230#include <sys/types.h> 5231#include <time.h> 5232int main() { 5233struct tm *tp; tp->tm_sec; 5234; return 0; } 5235EOF 5236if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5237 rm -rf conftest* 5238 ac_cv_struct_tm=time.h 5239else 5240 echo "configure: failed program was:" >&5 5241 cat conftest.$ac_ext >&5 5242 rm -rf conftest* 5243 ac_cv_struct_tm=sys/time.h 5244fi 5245rm -f conftest* 5246fi 5247 5248echo "$ac_t""$ac_cv_struct_tm" 1>&6 5249if test $ac_cv_struct_tm = sys/time.h; then 5250 cat >> confdefs.h <<\EOF 5251#define TM_IN_SYS_TIME 1 5252EOF 5253 5254fi 5255 5256 5257echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 5258echo "configure:5259: checking for ANSI C header files" >&5 5259if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 5260 echo $ac_n "(cached) $ac_c" 1>&6 5261else 5262 cat > conftest.$ac_ext <<EOF 5263#line 5264 "configure" 5264#include "confdefs.h" 5265#include <stdlib.h> 5266#include <stdarg.h> 5267#include <string.h> 5268#include <float.h> 5269EOF 5270ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5271{ (eval echo configure:5272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5272ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5273if test -z "$ac_err"; then 5274 rm -rf conftest* 5275 ac_cv_header_stdc=yes 5276else 5277 echo "$ac_err" >&5 5278 echo "configure: failed program was:" >&5 5279 cat conftest.$ac_ext >&5 5280 rm -rf conftest* 5281 ac_cv_header_stdc=no 5282fi 5283rm -f conftest* 5284 5285if test $ac_cv_header_stdc = yes; then 5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5287cat > conftest.$ac_ext <<EOF 5288#line 5289 "configure" 5289#include "confdefs.h" 5290#include <string.h> 5291EOF 5292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5293 egrep "memchr" >/dev/null 2>&1; then 5294 : 5295else 5296 rm -rf conftest* 5297 ac_cv_header_stdc=no 5298fi 5299rm -f conftest* 5300 5301fi 5302 5303if test $ac_cv_header_stdc = yes; then 5304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5305cat > conftest.$ac_ext <<EOF 5306#line 5307 "configure" 5307#include "confdefs.h" 5308#include <stdlib.h> 5309EOF 5310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5311 egrep "free" >/dev/null 2>&1; then 5312 : 5313else 5314 rm -rf conftest* 5315 ac_cv_header_stdc=no 5316fi 5317rm -f conftest* 5318 5319fi 5320 5321if test $ac_cv_header_stdc = yes; then 5322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5323if test "$cross_compiling" = yes; then 5324 : 5325else 5326 cat > conftest.$ac_ext <<EOF 5327#line 5328 "configure" 5328#include "confdefs.h" 5329#include <ctype.h> 5330#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5331#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5333int main () { int i; for (i = 0; i < 256; i++) 5334if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 5335exit (0); } 5336 5337EOF 5338if { (eval echo configure:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5339then 5340 : 5341else 5342 echo "configure: failed program was:" >&5 5343 cat conftest.$ac_ext >&5 5344 rm -fr conftest* 5345 ac_cv_header_stdc=no 5346fi 5347rm -fr conftest* 5348fi 5349 5350fi 5351fi 5352 5353echo "$ac_t""$ac_cv_header_stdc" 1>&6 5354if test $ac_cv_header_stdc = yes; then 5355 cat >> confdefs.h <<\EOF 5356#define STDC_HEADERS 1 5357EOF 5358 5359fi 5360 5361 5362if test "$berkeley_db"; then 5363 for ac_hdr in \ 5364 db.h \ 5365 db_185.h \ 5366 5367do 5368ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5369echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5370echo "configure:5371: checking for $ac_hdr" >&5 5371if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5372 echo $ac_n "(cached) $ac_c" 1>&6 5373else 5374 cat > conftest.$ac_ext <<EOF 5375#line 5376 "configure" 5376#include "confdefs.h" 5377#include <$ac_hdr> 5378EOF 5379ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5380{ (eval echo configure:5381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5381ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5382if test -z "$ac_err"; then 5383 rm -rf conftest* 5384 eval "ac_cv_header_$ac_safe=yes" 5385else 5386 echo "$ac_err" >&5 5387 echo "configure: failed program was:" >&5 5388 cat conftest.$ac_ext >&5 5389 rm -rf conftest* 5390 eval "ac_cv_header_$ac_safe=no" 5391fi 5392rm -f conftest* 5393fi 5394if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5395 echo "$ac_t""yes" 1>&6 5396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5397 cat >> confdefs.h <<EOF 5398#define $ac_tr_hdr 1 5399EOF 5400 5401else 5402 echo "$ac_t""no" 1>&6 5403fi 5404done 5405 5406fi 5407 5408for ac_hdr in \ 5409 arpa/ftp.h \ 5410 arpa/inet.h \ 5411 arpa/nameser.h \ 5412 arpa/telnet.h \ 5413 bind/bitypes.h \ 5414 bsdsetjmp.h \ 5415 crypt.h \ 5416 curses.h \ 5417 dbm.h \ 5418 dirent.h \ 5419 dlfcn.h \ 5420 err.h \ 5421 errno.h \ 5422 fcntl.h \ 5423 fnmatch.h \ 5424 grp.h \ 5425 inttypes.h \ 5426 io.h \ 5427 limits.h \ 5428 maillock.h \ 5429 ndbm.h \ 5430 net/if.h \ 5431 netdb.h \ 5432 netinet/in.h \ 5433 netinet/in6.h \ 5434 netinet/in6_machtypes.h \ 5435 netinet/in6_var.h \ 5436 netinet/in_systm.h \ 5437 netinet6/in6.h \ 5438 netinfo/ni.h \ 5439 paths.h \ 5440 pthread.h \ 5441 pty.h \ 5442 pwd.h \ 5443 resolv.h \ 5444 rpcsvc/dbm.h \ 5445 sac.h \ 5446 security/pam_modules.h \ 5447 sgtty.h \ 5448 shadow.h \ 5449 siad.h \ 5450 signal.h \ 5451 stropts.h \ 5452 sys/bitypes.h \ 5453 sys/category.h \ 5454 sys/file.h \ 5455 sys/filio.h \ 5456 sys/ioccom.h \ 5457 sys/ioctl.h \ 5458 sys/param.h \ 5459 sys/proc.h \ 5460 sys/pty.h \ 5461 sys/ptyio.h \ 5462 sys/ptyvar.h \ 5463 sys/resource.h \ 5464 sys/select.h \ 5465 sys/socket.h \ 5466 sys/sockio.h \ 5467 sys/stat.h \ 5468 sys/str_tty.h \ 5469 sys/stream.h \ 5470 sys/stropts.h \ 5471 sys/strtty.h \ 5472 sys/syscall.h \ 5473 sys/sysctl.h \ 5474 sys/termio.h \ 5475 sys/time.h \ 5476 sys/timeb.h \ 5477 sys/times.h \ 5478 sys/tty.h \ 5479 sys/types.h \ 5480 sys/uio.h \ 5481 sys/un.h \ 5482 sys/utsname.h \ 5483 sys/wait.h \ 5484 syslog.h \ 5485 term.h \ 5486 termio.h \ 5487 termios.h \ 5488 time.h \ 5489 tmpdir.h \ 5490 udb.h \ 5491 unistd.h \ 5492 util.h \ 5493 utmp.h \ 5494 utmpx.h \ 5495 5496do 5497ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5498echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5499echo "configure:5500: checking for $ac_hdr" >&5 5500if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5501 echo $ac_n "(cached) $ac_c" 1>&6 5502else 5503 cat > conftest.$ac_ext <<EOF 5504#line 5505 "configure" 5505#include "confdefs.h" 5506#include <$ac_hdr> 5507EOF 5508ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5509{ (eval echo configure:5510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5510ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5511if test -z "$ac_err"; then 5512 rm -rf conftest* 5513 eval "ac_cv_header_$ac_safe=yes" 5514else 5515 echo "$ac_err" >&5 5516 echo "configure: failed program was:" >&5 5517 cat conftest.$ac_ext >&5 5518 rm -rf conftest* 5519 eval "ac_cv_header_$ac_safe=no" 5520fi 5521rm -f conftest* 5522fi 5523if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5524 echo "$ac_t""yes" 1>&6 5525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5526 cat >> confdefs.h <<EOF 5527#define $ac_tr_hdr 1 5528EOF 5529 5530else 5531 echo "$ac_t""no" 1>&6 5532fi 5533done 5534 5535 5536 5537for ac_hdr in standards.h 5538do 5539ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5540echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5541echo "configure:5542: checking for $ac_hdr" >&5 5542if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5543 echo $ac_n "(cached) $ac_c" 1>&6 5544else 5545 cat > conftest.$ac_ext <<EOF 5546#line 5547 "configure" 5547#include "confdefs.h" 5548#include <$ac_hdr> 5549EOF 5550ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5551{ (eval echo configure:5552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5552ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5553if test -z "$ac_err"; then 5554 rm -rf conftest* 5555 eval "ac_cv_header_$ac_safe=yes" 5556else 5557 echo "$ac_err" >&5 5558 echo "configure: failed program was:" >&5 5559 cat conftest.$ac_ext >&5 5560 rm -rf conftest* 5561 eval "ac_cv_header_$ac_safe=no" 5562fi 5563rm -f conftest* 5564fi 5565if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5566 echo "$ac_t""yes" 1>&6 5567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5568 cat >> confdefs.h <<EOF 5569#define $ac_tr_hdr 1 5570EOF 5571 5572else 5573 echo "$ac_t""no" 1>&6 5574fi 5575done 5576 5577for i in netinet/ip.h netinet/tcp.h; do 5578 5579cv=`echo "$i" | sed 'y%./+-%__p_%'` 5580 5581echo $ac_n "checking for $i""... $ac_c" 1>&6 5582echo "configure:5583: checking for $i" >&5 5583if eval "test \"`echo '$''{'ac_cv_header_$cv'+set}'`\" = set"; then 5584 echo $ac_n "(cached) $ac_c" 1>&6 5585else 5586 cat > conftest.$ac_ext <<EOF 5587#line 5588 "configure" 5588#include "confdefs.h" 5589\ 5590#ifdef HAVE_STANDARDS_H 5591#include <standards.h> 5592#endif 5593#include <$i> 5594 5595EOF 5596ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5597{ (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5598ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5599if test -z "$ac_err"; then 5600 rm -rf conftest* 5601 eval "ac_cv_header_$cv=yes" 5602else 5603 echo "$ac_err" >&5 5604 echo "configure: failed program was:" >&5 5605 cat conftest.$ac_ext >&5 5606 rm -rf conftest* 5607 eval "ac_cv_header_$cv=no" 5608fi 5609rm -f conftest* 5610fi 5611 5612echo "$ac_t""`eval echo \\$ac_cv_header_$cv`" 1>&6 5613if test `eval echo \\$ac_cv_header_$cv` = yes; then 5614 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5615 cat >> confdefs.h <<EOF 5616#define $ac_tr_hdr 1 5617EOF 5618 5619fi 5620done 5621: << END 5622@@@headers="$headers netinet/ip.h netinet/tcp.h"@@@ 5623END 5624 5625 5626 5627 5628# Check whether --enable-netinfo or --disable-netinfo was given. 5629if test "${enable_netinfo+set}" = set; then 5630 enableval="$enable_netinfo" 5631 : 5632fi 5633 5634 5635if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then 5636 cat >> confdefs.h <<\EOF 5637#define HAVE_NETINFO 1 5638EOF 5639 5640fi 5641 5642 5643 5644if test "$ac_cv_header_err_h" = yes; then 5645 have_err_h_TRUE= 5646 have_err_h_FALSE='#' 5647else 5648 have_err_h_TRUE='#' 5649 have_err_h_FALSE= 5650fi 5651 5652 5653if test "$ac_cv_header_fnmatch_h" = yes; then 5654 have_fnmatch_h_TRUE= 5655 have_fnmatch_h_FALSE='#' 5656else 5657 have_fnmatch_h_TRUE='#' 5658 have_fnmatch_h_FALSE= 5659fi 5660 5661 5662# Check whether --with-ipv6 or --without-ipv6 was given. 5663if test "${with_ipv6+set}" = set; then 5664 withval="$with_ipv6" 5665 5666if test "$withval" = "no"; then 5667 ac_cv_lib_ipv6=no 5668fi 5669fi 5670 5671if eval "test \"`echo '$''{'ac_cv_lib_ipv6'+set}'`\" = set"; then 5672 echo $ac_n "(cached) $ac_c" 1>&6 5673else 5674 v6type=unknown 5675v6lib=none 5676 5677echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 5678echo "configure:5679: checking ipv6 stack type" >&5 5679for i in v6d toshiba kame inria zeta linux; do 5680 case $i in 5681 v6d) 5682 cat > conftest.$ac_ext <<EOF 5683#line 5684 "configure" 5684#include "confdefs.h" 5685dnl 5686#include </usr/local/v6/include/sys/types.h> 5687#ifdef __V6D__ 5688yes 5689#endif 5690EOF 5691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5692 egrep "yes" >/dev/null 2>&1; then 5693 rm -rf conftest* 5694 v6type=$i; v6lib=v6; 5695 v6libdir=/usr/local/v6/lib; 5696 CFLAGS="-I/usr/local/v6/include $CFLAGS" 5697fi 5698rm -f conftest* 5699 5700 ;; 5701 toshiba) 5702 cat > conftest.$ac_ext <<EOF 5703#line 5704 "configure" 5704#include "confdefs.h" 5705dnl 5706#include <sys/param.h> 5707#ifdef _TOSHIBA_INET6 5708yes 5709#endif 5710EOF 5711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5712 egrep "yes" >/dev/null 2>&1; then 5713 rm -rf conftest* 5714 v6type=$i; v6lib=inet6; 5715 v6libdir=/usr/local/v6/lib; 5716 CFLAGS="-DINET6 $CFLAGS" 5717fi 5718rm -f conftest* 5719 5720 ;; 5721 kame) 5722 cat > conftest.$ac_ext <<EOF 5723#line 5724 "configure" 5724#include "confdefs.h" 5725dnl 5726#include <netinet/in.h> 5727#ifdef __KAME__ 5728yes 5729#endif 5730EOF 5731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5732 egrep "yes" >/dev/null 2>&1; then 5733 rm -rf conftest* 5734 v6type=$i; v6lib=inet6; 5735 v6libdir=/usr/local/v6/lib; 5736 CFLAGS="-DINET6 $CFLAGS" 5737fi 5738rm -f conftest* 5739 5740 ;; 5741 inria) 5742 cat > conftest.$ac_ext <<EOF 5743#line 5744 "configure" 5744#include "confdefs.h" 5745dnl 5746#include <netinet/in.h> 5747#ifdef IPV6_INRIA_VERSION 5748yes 5749#endif 5750EOF 5751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5752 egrep "yes" >/dev/null 2>&1; then 5753 rm -rf conftest* 5754 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 5755fi 5756rm -f conftest* 5757 5758 ;; 5759 zeta) 5760 cat > conftest.$ac_ext <<EOF 5761#line 5762 "configure" 5762#include "confdefs.h" 5763dnl 5764#include <sys/param.h> 5765#ifdef _ZETA_MINAMI_INET6 5766yes 5767#endif 5768EOF 5769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5770 egrep "yes" >/dev/null 2>&1; then 5771 rm -rf conftest* 5772 v6type=$i; v6lib=inet6; 5773 v6libdir=/usr/local/v6/lib; 5774 CFLAGS="-DINET6 $CFLAGS" 5775fi 5776rm -f conftest* 5777 5778 ;; 5779 linux) 5780 if test -d /usr/inet6; then 5781 v6type=$i 5782 v6lib=inet6 5783 v6libdir=/usr/inet6 5784 CFLAGS="-DINET6 $CFLAGS" 5785 fi 5786 ;; 5787 esac 5788 if test "$v6type" != "unknown"; then 5789 break 5790 fi 5791done 5792echo "$ac_t""$v6type" 1>&6 5793 5794if test "$v6lib" != "none"; then 5795 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 5796 if test -d $dir -a -f $dir/lib$v6lib.a; then 5797 LIBS="-L$dir -l$v6lib $LIBS" 5798 break 5799 fi 5800 done 5801fi 5802cat > conftest.$ac_ext <<EOF 5803#line 5804 "configure" 5804#include "confdefs.h" 5805 5806#ifdef HAVE_SYS_TYPES_H 5807#include <sys/types.h> 5808#endif 5809#ifdef HAVE_SYS_SOCKET_H 5810#include <sys/socket.h> 5811#endif 5812#ifdef HAVE_NETINET_IN_H 5813#include <netinet/in.h> 5814#endif 5815#ifdef HAVE_NETINET_IN6_H 5816#include <netinet/in6.h> 5817#endif 5818 5819int main() { 5820 5821 struct sockaddr_in6 sin6; 5822 int s; 5823 5824 s = socket(AF_INET6, SOCK_DGRAM, 0); 5825 5826 sin6.sin6_family = AF_INET6; 5827 sin6.sin6_port = htons(17); 5828 sin6.sin6_addr = in6addr_any; 5829 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 5830 5831; return 0; } 5832EOF 5833if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5834 rm -rf conftest* 5835 ac_cv_lib_ipv6=yes 5836else 5837 echo "configure: failed program was:" >&5 5838 cat conftest.$ac_ext >&5 5839 rm -rf conftest* 5840 ac_cv_lib_ipv6=no 5841fi 5842rm -f conftest* 5843fi 5844 5845echo $ac_n "checking for IPv6""... $ac_c" 1>&6 5846echo "configure:5847: checking for IPv6" >&5 5847echo "$ac_t""$ac_cv_lib_ipv6" 1>&6 5848if test "$ac_cv_lib_ipv6" = yes; then 5849 cat >> confdefs.h <<\EOF 5850#define HAVE_IPV6 1 5851EOF 5852 5853fi 5854 5855 5856 5857 5858 5859 5860 5861echo $ac_n "checking for socket""... $ac_c" 1>&6 5862echo "configure:5863: checking for socket" >&5 5863if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then 5864 echo $ac_n "(cached) $ac_c" 1>&6 5865else 5866 5867if eval "test \"\$ac_cv_func_socket\" != yes" ; then 5868 ac_save_LIBS="$LIBS" 5869 for ac_lib in "" socket; do 5870 if test -n "$ac_lib"; then 5871 ac_lib="-l$ac_lib" 5872 else 5873 ac_lib="" 5874 fi 5875 LIBS=" $ac_lib $ac_save_LIBS" 5876 cat > conftest.$ac_ext <<EOF 5877#line 5878 "configure" 5878#include "confdefs.h" 5879 5880int main() { 5881socket() 5882; return 0; } 5883EOF 5884if { (eval echo configure:5885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5885 rm -rf conftest* 5886 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 5887else 5888 echo "configure: failed program was:" >&5 5889 cat conftest.$ac_ext >&5 5890fi 5891rm -f conftest* 5892 done 5893 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 5894 LIBS="$ac_save_LIBS" 5895fi 5896 5897fi 5898 5899 5900eval "ac_res=\$ac_cv_funclib_socket" 5901 5902: << END 5903@@@funcs="$funcs socket"@@@ 5904@@@libs="$libs "" socket"@@@ 5905END 5906 5907# socket 5908eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5909eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5910eval "LIB_socket=$ac_res" 5911 5912case "$ac_res" in 5913 yes) 5914 eval "ac_cv_func_socket=yes" 5915 eval "LIB_socket=" 5916 cat >> confdefs.h <<EOF 5917#define $ac_tr_func 1 5918EOF 5919 5920 echo "$ac_t""yes" 1>&6 5921 ;; 5922 no) 5923 eval "ac_cv_func_socket=no" 5924 eval "LIB_socket=" 5925 echo "$ac_t""no" 1>&6 5926 ;; 5927 *) 5928 eval "ac_cv_func_socket=yes" 5929 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 5930 cat >> confdefs.h <<EOF 5931#define $ac_tr_func 1 5932EOF 5933 5934 cat >> confdefs.h <<EOF 5935#define $ac_tr_lib 1 5936EOF 5937 5938 echo "$ac_t""yes, in $ac_res" 1>&6 5939 ;; 5940esac 5941 5942 5943if test -n "$LIB_socket"; then 5944 LIBS="$LIB_socket $LIBS" 5945fi 5946 5947 5948 5949 5950 5951echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5952echo "configure:5953: checking for gethostbyname" >&5 5953if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then 5954 echo $ac_n "(cached) $ac_c" 1>&6 5955else 5956 5957if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 5958 ac_save_LIBS="$LIBS" 5959 for ac_lib in "" nsl; do 5960 if test -n "$ac_lib"; then 5961 ac_lib="-l$ac_lib" 5962 else 5963 ac_lib="" 5964 fi 5965 LIBS=" $ac_lib $ac_save_LIBS" 5966 cat > conftest.$ac_ext <<EOF 5967#line 5968 "configure" 5968#include "confdefs.h" 5969 5970int main() { 5971gethostbyname() 5972; return 0; } 5973EOF 5974if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5975 rm -rf conftest* 5976 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 5977else 5978 echo "configure: failed program was:" >&5 5979 cat conftest.$ac_ext >&5 5980fi 5981rm -f conftest* 5982 done 5983 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 5984 LIBS="$ac_save_LIBS" 5985fi 5986 5987fi 5988 5989 5990eval "ac_res=\$ac_cv_funclib_gethostbyname" 5991 5992: << END 5993@@@funcs="$funcs gethostbyname"@@@ 5994@@@libs="$libs "" nsl"@@@ 5995END 5996 5997# gethostbyname 5998eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5999eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6000eval "LIB_gethostbyname=$ac_res" 6001 6002case "$ac_res" in 6003 yes) 6004 eval "ac_cv_func_gethostbyname=yes" 6005 eval "LIB_gethostbyname=" 6006 cat >> confdefs.h <<EOF 6007#define $ac_tr_func 1 6008EOF 6009 6010 echo "$ac_t""yes" 1>&6 6011 ;; 6012 no) 6013 eval "ac_cv_func_gethostbyname=no" 6014 eval "LIB_gethostbyname=" 6015 echo "$ac_t""no" 1>&6 6016 ;; 6017 *) 6018 eval "ac_cv_func_gethostbyname=yes" 6019 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6020 cat >> confdefs.h <<EOF 6021#define $ac_tr_func 1 6022EOF 6023 6024 cat >> confdefs.h <<EOF 6025#define $ac_tr_lib 1 6026EOF 6027 6028 echo "$ac_t""yes, in $ac_res" 1>&6 6029 ;; 6030esac 6031 6032 6033if test -n "$LIB_gethostbyname"; then 6034 LIBS="$LIB_gethostbyname $LIBS" 6035fi 6036 6037 6038 6039 6040 6041echo $ac_n "checking for syslog""... $ac_c" 1>&6 6042echo "configure:6043: checking for syslog" >&5 6043if eval "test \"`echo '$''{'ac_cv_funclib_syslog'+set}'`\" = set"; then 6044 echo $ac_n "(cached) $ac_c" 1>&6 6045else 6046 6047if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 6048 ac_save_LIBS="$LIBS" 6049 for ac_lib in "" syslog; do 6050 if test -n "$ac_lib"; then 6051 ac_lib="-l$ac_lib" 6052 else 6053 ac_lib="" 6054 fi 6055 LIBS=" $ac_lib $ac_save_LIBS" 6056 cat > conftest.$ac_ext <<EOF 6057#line 6058 "configure" 6058#include "confdefs.h" 6059 6060int main() { 6061syslog() 6062; return 0; } 6063EOF 6064if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6065 rm -rf conftest* 6066 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 6067else 6068 echo "configure: failed program was:" >&5 6069 cat conftest.$ac_ext >&5 6070fi 6071rm -f conftest* 6072 done 6073 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 6074 LIBS="$ac_save_LIBS" 6075fi 6076 6077fi 6078 6079 6080eval "ac_res=\$ac_cv_funclib_syslog" 6081 6082: << END 6083@@@funcs="$funcs syslog"@@@ 6084@@@libs="$libs "" syslog"@@@ 6085END 6086 6087# syslog 6088eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6089eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6090eval "LIB_syslog=$ac_res" 6091 6092case "$ac_res" in 6093 yes) 6094 eval "ac_cv_func_syslog=yes" 6095 eval "LIB_syslog=" 6096 cat >> confdefs.h <<EOF 6097#define $ac_tr_func 1 6098EOF 6099 6100 echo "$ac_t""yes" 1>&6 6101 ;; 6102 no) 6103 eval "ac_cv_func_syslog=no" 6104 eval "LIB_syslog=" 6105 echo "$ac_t""no" 1>&6 6106 ;; 6107 *) 6108 eval "ac_cv_func_syslog=yes" 6109 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6110 cat >> confdefs.h <<EOF 6111#define $ac_tr_func 1 6112EOF 6113 6114 cat >> confdefs.h <<EOF 6115#define $ac_tr_lib 1 6116EOF 6117 6118 echo "$ac_t""yes, in $ac_res" 1>&6 6119 ;; 6120esac 6121 6122 6123if test -n "$LIB_syslog"; then 6124 LIBS="$LIB_syslog $LIBS" 6125fi 6126 6127 6128 6129 6130 6131echo $ac_n "checking for logwtmp""... $ac_c" 1>&6 6132echo "configure:6133: checking for logwtmp" >&5 6133if eval "test \"`echo '$''{'ac_cv_funclib_logwtmp'+set}'`\" = set"; then 6134 echo $ac_n "(cached) $ac_c" 1>&6 6135else 6136 6137if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 6138 ac_save_LIBS="$LIBS" 6139 for ac_lib in "" util; do 6140 if test -n "$ac_lib"; then 6141 ac_lib="-l$ac_lib" 6142 else 6143 ac_lib="" 6144 fi 6145 LIBS=" $ac_lib $ac_save_LIBS" 6146 cat > conftest.$ac_ext <<EOF 6147#line 6148 "configure" 6148#include "confdefs.h" 6149 6150int main() { 6151logwtmp() 6152; return 0; } 6153EOF 6154if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6155 rm -rf conftest* 6156 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 6157else 6158 echo "configure: failed program was:" >&5 6159 cat conftest.$ac_ext >&5 6160fi 6161rm -f conftest* 6162 done 6163 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 6164 LIBS="$ac_save_LIBS" 6165fi 6166 6167fi 6168 6169 6170eval "ac_res=\$ac_cv_funclib_logwtmp" 6171 6172: << END 6173@@@funcs="$funcs logwtmp"@@@ 6174@@@libs="$libs "" util"@@@ 6175END 6176 6177# logwtmp 6178eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6179eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6180eval "LIB_logwtmp=$ac_res" 6181 6182case "$ac_res" in 6183 yes) 6184 eval "ac_cv_func_logwtmp=yes" 6185 eval "LIB_logwtmp=" 6186 cat >> confdefs.h <<EOF 6187#define $ac_tr_func 1 6188EOF 6189 6190 echo "$ac_t""yes" 1>&6 6191 ;; 6192 no) 6193 eval "ac_cv_func_logwtmp=no" 6194 eval "LIB_logwtmp=" 6195 echo "$ac_t""no" 1>&6 6196 ;; 6197 *) 6198 eval "ac_cv_func_logwtmp=yes" 6199 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6200 cat >> confdefs.h <<EOF 6201#define $ac_tr_func 1 6202EOF 6203 6204 cat >> confdefs.h <<EOF 6205#define $ac_tr_lib 1 6206EOF 6207 6208 echo "$ac_t""yes, in $ac_res" 1>&6 6209 ;; 6210esac 6211 6212 6213 6214 6215 6216echo $ac_n "checking for tgetent""... $ac_c" 1>&6 6217echo "configure:6218: checking for tgetent" >&5 6218if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then 6219 echo $ac_n "(cached) $ac_c" 1>&6 6220else 6221 6222if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 6223 ac_save_LIBS="$LIBS" 6224 for ac_lib in "" termcap ncurses curses; do 6225 if test -n "$ac_lib"; then 6226 ac_lib="-l$ac_lib" 6227 else 6228 ac_lib="" 6229 fi 6230 LIBS=" $ac_lib $ac_save_LIBS" 6231 cat > conftest.$ac_ext <<EOF 6232#line 6233 "configure" 6233#include "confdefs.h" 6234 6235int main() { 6236tgetent() 6237; return 0; } 6238EOF 6239if { (eval echo configure:6240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6240 rm -rf conftest* 6241 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 6242else 6243 echo "configure: failed program was:" >&5 6244 cat conftest.$ac_ext >&5 6245fi 6246rm -f conftest* 6247 done 6248 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 6249 LIBS="$ac_save_LIBS" 6250fi 6251 6252fi 6253 6254 6255eval "ac_res=\$ac_cv_funclib_tgetent" 6256 6257: << END 6258@@@funcs="$funcs tgetent"@@@ 6259@@@libs="$libs "" termcap ncurses curses"@@@ 6260END 6261 6262# tgetent 6263eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6264eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6265eval "LIB_tgetent=$ac_res" 6266 6267case "$ac_res" in 6268 yes) 6269 eval "ac_cv_func_tgetent=yes" 6270 eval "LIB_tgetent=" 6271 cat >> confdefs.h <<EOF 6272#define $ac_tr_func 1 6273EOF 6274 6275 echo "$ac_t""yes" 1>&6 6276 ;; 6277 no) 6278 eval "ac_cv_func_tgetent=no" 6279 eval "LIB_tgetent=" 6280 echo "$ac_t""no" 1>&6 6281 ;; 6282 *) 6283 eval "ac_cv_func_tgetent=yes" 6284 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6285 cat >> confdefs.h <<EOF 6286#define $ac_tr_func 1 6287EOF 6288 6289 cat >> confdefs.h <<EOF 6290#define $ac_tr_lib 1 6291EOF 6292 6293 echo "$ac_t""yes, in $ac_res" 1>&6 6294 ;; 6295esac 6296 6297 6298 6299 6300 6301 6302echo $ac_n "checking for gethostbyname2""... $ac_c" 1>&6 6303echo "configure:6304: checking for gethostbyname2" >&5 6304if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname2'+set}'`\" = set"; then 6305 echo $ac_n "(cached) $ac_c" 1>&6 6306else 6307 6308if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 6309 ac_save_LIBS="$LIBS" 6310 for ac_lib in "" inet6 ip6; do 6311 if test -n "$ac_lib"; then 6312 ac_lib="-l$ac_lib" 6313 else 6314 ac_lib="" 6315 fi 6316 LIBS=" $ac_lib $ac_save_LIBS" 6317 cat > conftest.$ac_ext <<EOF 6318#line 6319 "configure" 6319#include "confdefs.h" 6320 6321int main() { 6322gethostbyname2() 6323; return 0; } 6324EOF 6325if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6326 rm -rf conftest* 6327 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 6328else 6329 echo "configure: failed program was:" >&5 6330 cat conftest.$ac_ext >&5 6331fi 6332rm -f conftest* 6333 done 6334 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 6335 LIBS="$ac_save_LIBS" 6336fi 6337 6338fi 6339 6340 6341eval "ac_res=\$ac_cv_funclib_gethostbyname2" 6342 6343: << END 6344@@@funcs="$funcs gethostbyname2"@@@ 6345@@@libs="$libs "" inet6 ip6"@@@ 6346END 6347 6348# gethostbyname2 6349eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6350eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6351eval "LIB_gethostbyname2=$ac_res" 6352 6353case "$ac_res" in 6354 yes) 6355 eval "ac_cv_func_gethostbyname2=yes" 6356 eval "LIB_gethostbyname2=" 6357 cat >> confdefs.h <<EOF 6358#define $ac_tr_func 1 6359EOF 6360 6361 echo "$ac_t""yes" 1>&6 6362 ;; 6363 no) 6364 eval "ac_cv_func_gethostbyname2=no" 6365 eval "LIB_gethostbyname2=" 6366 echo "$ac_t""no" 1>&6 6367 ;; 6368 *) 6369 eval "ac_cv_func_gethostbyname2=yes" 6370 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6371 cat >> confdefs.h <<EOF 6372#define $ac_tr_func 1 6373EOF 6374 6375 cat >> confdefs.h <<EOF 6376#define $ac_tr_lib 1 6377EOF 6378 6379 echo "$ac_t""yes, in $ac_res" 1>&6 6380 ;; 6381esac 6382 6383 6384if test -n "$LIB_gethostbyname2"; then 6385 LIBS="$LIB_gethostbyname2 $LIBS" 6386fi 6387 6388 6389 6390 6391 6392 6393echo $ac_n "checking for res_search""... $ac_c" 1>&6 6394echo "configure:6395: checking for res_search" >&5 6395if eval "test \"`echo '$''{'ac_cv_funclib_res_search'+set}'`\" = set"; then 6396 echo $ac_n "(cached) $ac_c" 1>&6 6397else 6398 6399if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 6400 ac_save_LIBS="$LIBS" 6401 for ac_lib in "" resolv; do 6402 if test -n "$ac_lib"; then 6403 ac_lib="-l$ac_lib" 6404 else 6405 ac_lib="" 6406 fi 6407 LIBS=" $ac_lib $ac_save_LIBS" 6408 cat > conftest.$ac_ext <<EOF 6409#line 6410 "configure" 6410#include "confdefs.h" 6411 6412#include <stdio.h> 6413#ifdef HAVE_SYS_TYPES_H 6414#include <sys/types.h> 6415#endif 6416#ifdef HAVE_NETINET_IN_H 6417#include <netinet/in.h> 6418#endif 6419#ifdef HAVE_ARPA_NAMESER_H 6420#include <arpa/nameser.h> 6421#endif 6422#ifdef HAVE_RESOLV_H 6423#include <resolv.h> 6424#endif 6425 6426int main() { 6427res_search(0,0,0,0,0) 6428; return 0; } 6429EOF 6430if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6431 rm -rf conftest* 6432 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 6433else 6434 echo "configure: failed program was:" >&5 6435 cat conftest.$ac_ext >&5 6436fi 6437rm -f conftest* 6438 done 6439 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 6440 LIBS="$ac_save_LIBS" 6441fi 6442 6443fi 6444 6445 6446eval "ac_res=\$ac_cv_funclib_res_search" 6447 6448: << END 6449@@@funcs="$funcs res_search"@@@ 6450@@@libs="$libs "" resolv"@@@ 6451END 6452 6453# res_search 6454eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6455eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6456eval "LIB_res_search=$ac_res" 6457 6458case "$ac_res" in 6459 yes) 6460 eval "ac_cv_func_res_search=yes" 6461 eval "LIB_res_search=" 6462 cat >> confdefs.h <<EOF 6463#define $ac_tr_func 1 6464EOF 6465 6466 echo "$ac_t""yes" 1>&6 6467 ;; 6468 no) 6469 eval "ac_cv_func_res_search=no" 6470 eval "LIB_res_search=" 6471 echo "$ac_t""no" 1>&6 6472 ;; 6473 *) 6474 eval "ac_cv_func_res_search=yes" 6475 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6476 cat >> confdefs.h <<EOF 6477#define $ac_tr_func 1 6478EOF 6479 6480 cat >> confdefs.h <<EOF 6481#define $ac_tr_lib 1 6482EOF 6483 6484 echo "$ac_t""yes, in $ac_res" 1>&6 6485 ;; 6486esac 6487 6488 6489if test -n "$LIB_res_search"; then 6490 LIBS="$LIB_res_search $LIBS" 6491fi 6492 6493 6494 6495 6496 6497 6498echo $ac_n "checking for dn_expand""... $ac_c" 1>&6 6499echo "configure:6500: checking for dn_expand" >&5 6500if eval "test \"`echo '$''{'ac_cv_funclib_dn_expand'+set}'`\" = set"; then 6501 echo $ac_n "(cached) $ac_c" 1>&6 6502else 6503 6504if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 6505 ac_save_LIBS="$LIBS" 6506 for ac_lib in "" resolv; do 6507 if test -n "$ac_lib"; then 6508 ac_lib="-l$ac_lib" 6509 else 6510 ac_lib="" 6511 fi 6512 LIBS=" $ac_lib $ac_save_LIBS" 6513 cat > conftest.$ac_ext <<EOF 6514#line 6515 "configure" 6515#include "confdefs.h" 6516 6517#include <stdio.h> 6518#ifdef HAVE_SYS_TYPES_H 6519#include <sys/types.h> 6520#endif 6521#ifdef HAVE_NETINET_IN_H 6522#include <netinet/in.h> 6523#endif 6524#ifdef HAVE_ARPA_NAMESER_H 6525#include <arpa/nameser.h> 6526#endif 6527#ifdef HAVE_RESOLV_H 6528#include <resolv.h> 6529#endif 6530 6531int main() { 6532dn_expand(0,0,0,0,0) 6533; return 0; } 6534EOF 6535if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6536 rm -rf conftest* 6537 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 6538else 6539 echo "configure: failed program was:" >&5 6540 cat conftest.$ac_ext >&5 6541fi 6542rm -f conftest* 6543 done 6544 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 6545 LIBS="$ac_save_LIBS" 6546fi 6547 6548fi 6549 6550 6551eval "ac_res=\$ac_cv_funclib_dn_expand" 6552 6553: << END 6554@@@funcs="$funcs dn_expand"@@@ 6555@@@libs="$libs "" resolv"@@@ 6556END 6557 6558# dn_expand 6559eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6560eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6561eval "LIB_dn_expand=$ac_res" 6562 6563case "$ac_res" in 6564 yes) 6565 eval "ac_cv_func_dn_expand=yes" 6566 eval "LIB_dn_expand=" 6567 cat >> confdefs.h <<EOF 6568#define $ac_tr_func 1 6569EOF 6570 6571 echo "$ac_t""yes" 1>&6 6572 ;; 6573 no) 6574 eval "ac_cv_func_dn_expand=no" 6575 eval "LIB_dn_expand=" 6576 echo "$ac_t""no" 1>&6 6577 ;; 6578 *) 6579 eval "ac_cv_func_dn_expand=yes" 6580 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6581 cat >> confdefs.h <<EOF 6582#define $ac_tr_func 1 6583EOF 6584 6585 cat >> confdefs.h <<EOF 6586#define $ac_tr_lib 1 6587EOF 6588 6589 echo "$ac_t""yes, in $ac_res" 1>&6 6590 ;; 6591esac 6592 6593 6594if test -n "$LIB_dn_expand"; then 6595 LIBS="$LIB_dn_expand $LIBS" 6596fi 6597 6598 6599 6600 6601echo $ac_n "checking for working snprintf""... $ac_c" 1>&6 6602echo "configure:6603: checking for working snprintf" >&5 6603if eval "test \"`echo '$''{'ac_cv_func_snprintf_working'+set}'`\" = set"; then 6604 echo $ac_n "(cached) $ac_c" 1>&6 6605else 6606 ac_cv_func_snprintf_working=yes 6607if test "$cross_compiling" = yes; then 6608 : 6609else 6610 cat > conftest.$ac_ext <<EOF 6611#line 6612 "configure" 6612#include "confdefs.h" 6613 6614#include <stdio.h> 6615#include <string.h> 6616int main() 6617{ 6618 char foo[3]; 6619 snprintf(foo, 2, "12"); 6620 return strcmp(foo, "1"); 6621} 6622EOF 6623if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6624then 6625 : 6626else 6627 echo "configure: failed program was:" >&5 6628 cat conftest.$ac_ext >&5 6629 rm -fr conftest* 6630 ac_cv_func_snprintf_working=no 6631fi 6632rm -fr conftest* 6633fi 6634 6635fi 6636 6637echo "$ac_t""$ac_cv_func_snprintf_working" 1>&6 6638 6639if test "$ac_cv_func_snprintf_working" = yes; then 6640 cat >> confdefs.h <<EOF 6641#define HAVE_SNPRINTF 1 6642EOF 6643 6644fi 6645if test "$ac_cv_func_snprintf_working" = yes; then 6646 6647if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 6648echo $ac_n "checking if snprintf needs a prototype""... $ac_c" 1>&6 6649echo "configure:6650: checking if snprintf needs a prototype" >&5 6650if eval "test \"`echo '$''{'ac_cv_func_snprintf_noproto'+set}'`\" = set"; then 6651 echo $ac_n "(cached) $ac_c" 1>&6 6652else 6653 cat > conftest.$ac_ext <<EOF 6654#line 6655 "configure" 6655#include "confdefs.h" 6656#include <stdio.h> 6657int main() { 6658struct foo { int foo; } xx; 6659extern int snprintf (struct foo*); 6660snprintf(&xx); 6661 6662; return 0; } 6663EOF 6664if { (eval echo configure:6665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6665 rm -rf conftest* 6666 eval "ac_cv_func_snprintf_noproto=yes" 6667else 6668 echo "configure: failed program was:" >&5 6669 cat conftest.$ac_ext >&5 6670 rm -rf conftest* 6671 eval "ac_cv_func_snprintf_noproto=no" 6672fi 6673rm -f conftest* 6674fi 6675 6676echo "$ac_t""$ac_cv_func_snprintf_noproto" 1>&6 6677 6678if test "$ac_cv_func_snprintf_noproto" = yes; then 6679 cat >> confdefs.h <<\EOF 6680#define NEED_SNPRINTF_PROTO 1 6681EOF 6682 6683fi 6684 6685fi 6686 6687fi 6688 6689 6690echo $ac_n "checking for working vsnprintf""... $ac_c" 1>&6 6691echo "configure:6692: checking for working vsnprintf" >&5 6692if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_working'+set}'`\" = set"; then 6693 echo $ac_n "(cached) $ac_c" 1>&6 6694else 6695 ac_cv_func_vsnprintf_working=yes 6696if test "$cross_compiling" = yes; then 6697 : 6698else 6699 cat > conftest.$ac_ext <<EOF 6700#line 6701 "configure" 6701#include "confdefs.h" 6702 6703#include <stdio.h> 6704#include <string.h> 6705#include <stdarg.h> 6706 6707int foo(int num, ...) 6708{ 6709 char bar[3]; 6710 va_list arg; 6711 va_start(arg, num); 6712 vsnprintf(bar, 2, "%s", arg); 6713 va_end(arg); 6714 return strcmp(bar, "1"); 6715} 6716 6717 6718int main() 6719{ 6720 return foo(0, "12"); 6721} 6722EOF 6723if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6724then 6725 : 6726else 6727 echo "configure: failed program was:" >&5 6728 cat conftest.$ac_ext >&5 6729 rm -fr conftest* 6730 ac_cv_func_vsnprintf_working=no 6731fi 6732rm -fr conftest* 6733fi 6734 6735fi 6736 6737echo "$ac_t""$ac_cv_func_vsnprintf_working" 1>&6 6738 6739if test "$ac_cv_func_vsnprintf_working" = yes; then 6740 cat >> confdefs.h <<EOF 6741#define HAVE_VSNPRINTF 1 6742EOF 6743 6744fi 6745if test "$ac_cv_func_vsnprintf_working" = yes; then 6746 6747if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 6748echo $ac_n "checking if vsnprintf needs a prototype""... $ac_c" 1>&6 6749echo "configure:6750: checking if vsnprintf needs a prototype" >&5 6750if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_noproto'+set}'`\" = set"; then 6751 echo $ac_n "(cached) $ac_c" 1>&6 6752else 6753 cat > conftest.$ac_ext <<EOF 6754#line 6755 "configure" 6755#include "confdefs.h" 6756#include <stdio.h> 6757int main() { 6758struct foo { int foo; } xx; 6759extern int vsnprintf (struct foo*); 6760vsnprintf(&xx); 6761 6762; return 0; } 6763EOF 6764if { (eval echo configure:6765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6765 rm -rf conftest* 6766 eval "ac_cv_func_vsnprintf_noproto=yes" 6767else 6768 echo "configure: failed program was:" >&5 6769 cat conftest.$ac_ext >&5 6770 rm -rf conftest* 6771 eval "ac_cv_func_vsnprintf_noproto=no" 6772fi 6773rm -f conftest* 6774fi 6775 6776echo "$ac_t""$ac_cv_func_vsnprintf_noproto" 1>&6 6777 6778if test "$ac_cv_func_vsnprintf_noproto" = yes; then 6779 cat >> confdefs.h <<\EOF 6780#define NEED_VSNPRINTF_PROTO 1 6781EOF 6782 6783fi 6784 6785fi 6786 6787fi 6788 6789 6790 6791echo $ac_n "checking for working glob""... $ac_c" 1>&6 6792echo "configure:6793: checking for working glob" >&5 6793if eval "test \"`echo '$''{'ac_cv_func_glob_working'+set}'`\" = set"; then 6794 echo $ac_n "(cached) $ac_c" 1>&6 6795else 6796 ac_cv_func_glob_working=yes 6797cat > conftest.$ac_ext <<EOF 6798#line 6799 "configure" 6799#include "confdefs.h" 6800 6801#include <stdio.h> 6802#include <glob.h> 6803int main() { 6804 6805glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL); 6806 6807; return 0; } 6808EOF 6809if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6810 rm -rf conftest* 6811 : 6812else 6813 echo "configure: failed program was:" >&5 6814 cat conftest.$ac_ext >&5 6815 rm -rf conftest* 6816 ac_cv_func_glob_working=no 6817fi 6818rm -f conftest* 6819fi 6820 6821echo "$ac_t""$ac_cv_func_glob_working" 1>&6 6822 6823if test "$ac_cv_func_glob_working" = yes; then 6824 cat >> confdefs.h <<\EOF 6825#define HAVE_GLOB 1 6826EOF 6827 6828fi 6829if test "$ac_cv_func_glob_working" = yes; then 6830 6831if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 6832echo $ac_n "checking if glob needs a prototype""... $ac_c" 1>&6 6833echo "configure:6834: checking if glob needs a prototype" >&5 6834if eval "test \"`echo '$''{'ac_cv_func_glob_noproto'+set}'`\" = set"; then 6835 echo $ac_n "(cached) $ac_c" 1>&6 6836else 6837 cat > conftest.$ac_ext <<EOF 6838#line 6839 "configure" 6839#include "confdefs.h" 6840#include <stdio.h> 6841#include <glob.h> 6842int main() { 6843struct foo { int foo; } xx; 6844extern int glob (struct foo*); 6845glob(&xx); 6846 6847; return 0; } 6848EOF 6849if { (eval echo configure:6850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6850 rm -rf conftest* 6851 eval "ac_cv_func_glob_noproto=yes" 6852else 6853 echo "configure: failed program was:" >&5 6854 cat conftest.$ac_ext >&5 6855 rm -rf conftest* 6856 eval "ac_cv_func_glob_noproto=no" 6857fi 6858rm -f conftest* 6859fi 6860 6861echo "$ac_t""$ac_cv_func_glob_noproto" 1>&6 6862 6863if test "$ac_cv_func_glob_noproto" = yes; then 6864 cat >> confdefs.h <<\EOF 6865#define NEED_GLOB_PROTO 1 6866EOF 6867 6868fi 6869 6870fi 6871 6872fi 6873 6874 6875if test "$ac_cv_func_glob_working" != yes; then 6876 LIBOBJS="$LIBOBJS glob.o" 6877fi 6878 6879 6880if test "$ac_cv_func_glob_working" = yes; then 6881 have_glob_h_TRUE= 6882 have_glob_h_FALSE='#' 6883else 6884 have_glob_h_TRUE='#' 6885 have_glob_h_FALSE= 6886fi 6887 6888 6889 6890 6891 6892echo $ac_n "checking for dbopen""... $ac_c" 1>&6 6893echo "configure:6894: checking for dbopen" >&5 6894if eval "test \"`echo '$''{'ac_cv_funclib_dbopen'+set}'`\" = set"; then 6895 echo $ac_n "(cached) $ac_c" 1>&6 6896else 6897 6898if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 6899 ac_save_LIBS="$LIBS" 6900 for ac_lib in "" $berkeley_db; do 6901 if test -n "$ac_lib"; then 6902 ac_lib="-l$ac_lib" 6903 else 6904 ac_lib="" 6905 fi 6906 LIBS=" $ac_lib $ac_save_LIBS" 6907 cat > conftest.$ac_ext <<EOF 6908#line 6909 "configure" 6909#include "confdefs.h" 6910 6911int main() { 6912dbopen() 6913; return 0; } 6914EOF 6915if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6916 rm -rf conftest* 6917 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 6918else 6919 echo "configure: failed program was:" >&5 6920 cat conftest.$ac_ext >&5 6921fi 6922rm -f conftest* 6923 done 6924 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 6925 LIBS="$ac_save_LIBS" 6926fi 6927 6928fi 6929 6930 6931eval "ac_res=\$ac_cv_funclib_dbopen" 6932 6933: << END 6934@@@funcs="$funcs dbopen"@@@ 6935@@@libs="$libs "" $berkeley_db"@@@ 6936END 6937 6938# dbopen 6939eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6940eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6941eval "LIB_dbopen=$ac_res" 6942 6943case "$ac_res" in 6944 yes) 6945 eval "ac_cv_func_dbopen=yes" 6946 eval "LIB_dbopen=" 6947 cat >> confdefs.h <<EOF 6948#define $ac_tr_func 1 6949EOF 6950 6951 echo "$ac_t""yes" 1>&6 6952 ;; 6953 no) 6954 eval "ac_cv_func_dbopen=no" 6955 eval "LIB_dbopen=" 6956 echo "$ac_t""no" 1>&6 6957 ;; 6958 *) 6959 eval "ac_cv_func_dbopen=yes" 6960 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6961 cat >> confdefs.h <<EOF 6962#define $ac_tr_func 1 6963EOF 6964 6965 cat >> confdefs.h <<EOF 6966#define $ac_tr_lib 1 6967EOF 6968 6969 echo "$ac_t""yes, in $ac_res" 1>&6 6970 ;; 6971esac 6972 6973 6974 6975 6976 6977echo $ac_n "checking for dbm_firstkey""... $ac_c" 1>&6 6978echo "configure:6979: checking for dbm_firstkey" >&5 6979if eval "test \"`echo '$''{'ac_cv_funclib_dbm_firstkey'+set}'`\" = set"; then 6980 echo $ac_n "(cached) $ac_c" 1>&6 6981else 6982 6983if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 6984 ac_save_LIBS="$LIBS" 6985 for ac_lib in "" $berkeley_db gdbm ndbm; do 6986 if test -n "$ac_lib"; then 6987 ac_lib="-l$ac_lib" 6988 else 6989 ac_lib="" 6990 fi 6991 LIBS=" $ac_lib $ac_save_LIBS" 6992 cat > conftest.$ac_ext <<EOF 6993#line 6994 "configure" 6994#include "confdefs.h" 6995 6996int main() { 6997dbm_firstkey() 6998; return 0; } 6999EOF 7000if { (eval echo configure:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7001 rm -rf conftest* 7002 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 7003else 7004 echo "configure: failed program was:" >&5 7005 cat conftest.$ac_ext >&5 7006fi 7007rm -f conftest* 7008 done 7009 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 7010 LIBS="$ac_save_LIBS" 7011fi 7012 7013fi 7014 7015 7016eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 7017 7018: << END 7019@@@funcs="$funcs dbm_firstkey"@@@ 7020@@@libs="$libs "" $berkeley_db gdbm ndbm"@@@ 7021END 7022 7023# dbm_firstkey 7024eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7025eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7026eval "LIB_dbm_firstkey=$ac_res" 7027 7028case "$ac_res" in 7029 yes) 7030 eval "ac_cv_func_dbm_firstkey=yes" 7031 eval "LIB_dbm_firstkey=" 7032 cat >> confdefs.h <<EOF 7033#define $ac_tr_func 1 7034EOF 7035 7036 echo "$ac_t""yes" 1>&6 7037 ;; 7038 no) 7039 eval "ac_cv_func_dbm_firstkey=no" 7040 eval "LIB_dbm_firstkey=" 7041 echo "$ac_t""no" 1>&6 7042 ;; 7043 *) 7044 eval "ac_cv_func_dbm_firstkey=yes" 7045 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7046 cat >> confdefs.h <<EOF 7047#define $ac_tr_func 1 7048EOF 7049 7050 cat >> confdefs.h <<EOF 7051#define $ac_tr_lib 1 7052EOF 7053 7054 echo "$ac_t""yes, in $ac_res" 1>&6 7055 ;; 7056esac 7057 7058 7059 7060DBLIB="$LIB_dbopen" 7061if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then 7062 DBLIB="$DBLIB $LIB_dbm_firstkey" 7063fi 7064 7065for ac_func in _getpty _scrsize asnprintf asprintf cgetent fcntl 7066do 7067echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7068echo "configure:7069: checking for $ac_func" >&5 7069if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7070 echo $ac_n "(cached) $ac_c" 1>&6 7071else 7072 cat > conftest.$ac_ext <<EOF 7073#line 7074 "configure" 7074#include "confdefs.h" 7075/* System header to define __stub macros and hopefully few prototypes, 7076 which can conflict with char $ac_func(); below. */ 7077#include <assert.h> 7078/* Override any gcc2 internal prototype to avoid an error. */ 7079/* We use char because int might match the return type of a gcc2 7080 builtin and then its argument prototype would still apply. */ 7081char $ac_func(); 7082 7083int main() { 7084 7085/* The GNU C library defines this for functions which it implements 7086 to always fail with ENOSYS. Some functions are actually named 7087 something starting with __ and the normal name is an alias. */ 7088#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7089choke me 7090#else 7091$ac_func(); 7092#endif 7093 7094; return 0; } 7095EOF 7096if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7097 rm -rf conftest* 7098 eval "ac_cv_func_$ac_func=yes" 7099else 7100 echo "configure: failed program was:" >&5 7101 cat conftest.$ac_ext >&5 7102 rm -rf conftest* 7103 eval "ac_cv_func_$ac_func=no" 7104fi 7105rm -f conftest* 7106fi 7107 7108if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7109 echo "$ac_t""yes" 1>&6 7110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7111 cat >> confdefs.h <<EOF 7112#define $ac_tr_func 1 7113EOF 7114 7115else 7116 echo "$ac_t""no" 1>&6 7117fi 7118done 7119 7120for ac_func in getmsg getrlimit getspnam gettimeofday getuid 7121do 7122echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7123echo "configure:7124: checking for $ac_func" >&5 7124if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7125 echo $ac_n "(cached) $ac_c" 1>&6 7126else 7127 cat > conftest.$ac_ext <<EOF 7128#line 7129 "configure" 7129#include "confdefs.h" 7130/* System header to define __stub macros and hopefully few prototypes, 7131 which can conflict with char $ac_func(); below. */ 7132#include <assert.h> 7133/* Override any gcc2 internal prototype to avoid an error. */ 7134/* We use char because int might match the return type of a gcc2 7135 builtin and then its argument prototype would still apply. */ 7136char $ac_func(); 7137 7138int main() { 7139 7140/* The GNU C library defines this for functions which it implements 7141 to always fail with ENOSYS. Some functions are actually named 7142 something starting with __ and the normal name is an alias. */ 7143#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7144choke me 7145#else 7146$ac_func(); 7147#endif 7148 7149; return 0; } 7150EOF 7151if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7152 rm -rf conftest* 7153 eval "ac_cv_func_$ac_func=yes" 7154else 7155 echo "configure: failed program was:" >&5 7156 cat conftest.$ac_ext >&5 7157 rm -rf conftest* 7158 eval "ac_cv_func_$ac_func=no" 7159fi 7160rm -f conftest* 7161fi 7162 7163if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7164 echo "$ac_t""yes" 1>&6 7165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7166 cat >> confdefs.h <<EOF 7167#define $ac_tr_func 1 7168EOF 7169 7170else 7171 echo "$ac_t""no" 1>&6 7172fi 7173done 7174 7175for ac_func in grantpt mktime ptsname rand random setproctitle 7176do 7177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7178echo "configure:7179: checking for $ac_func" >&5 7179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7180 echo $ac_n "(cached) $ac_c" 1>&6 7181else 7182 cat > conftest.$ac_ext <<EOF 7183#line 7184 "configure" 7184#include "confdefs.h" 7185/* System header to define __stub macros and hopefully few prototypes, 7186 which can conflict with char $ac_func(); below. */ 7187#include <assert.h> 7188/* Override any gcc2 internal prototype to avoid an error. */ 7189/* We use char because int might match the return type of a gcc2 7190 builtin and then its argument prototype would still apply. */ 7191char $ac_func(); 7192 7193int main() { 7194 7195/* The GNU C library defines this for functions which it implements 7196 to always fail with ENOSYS. Some functions are actually named 7197 something starting with __ and the normal name is an alias. */ 7198#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7199choke me 7200#else 7201$ac_func(); 7202#endif 7203 7204; return 0; } 7205EOF 7206if { (eval echo configure:7207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7207 rm -rf conftest* 7208 eval "ac_cv_func_$ac_func=yes" 7209else 7210 echo "configure: failed program was:" >&5 7211 cat conftest.$ac_ext >&5 7212 rm -rf conftest* 7213 eval "ac_cv_func_$ac_func=no" 7214fi 7215rm -f conftest* 7216fi 7217 7218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7219 echo "$ac_t""yes" 1>&6 7220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7221 cat >> confdefs.h <<EOF 7222#define $ac_tr_func 1 7223EOF 7224 7225else 7226 echo "$ac_t""no" 1>&6 7227fi 7228done 7229 7230for ac_func in revoke select setitimer setpcred setpgid 7231do 7232echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7233echo "configure:7234: checking for $ac_func" >&5 7234if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7235 echo $ac_n "(cached) $ac_c" 1>&6 7236else 7237 cat > conftest.$ac_ext <<EOF 7238#line 7239 "configure" 7239#include "confdefs.h" 7240/* System header to define __stub macros and hopefully few prototypes, 7241 which can conflict with char $ac_func(); below. */ 7242#include <assert.h> 7243/* Override any gcc2 internal prototype to avoid an error. */ 7244/* We use char because int might match the return type of a gcc2 7245 builtin and then its argument prototype would still apply. */ 7246char $ac_func(); 7247 7248int main() { 7249 7250/* The GNU C library defines this for functions which it implements 7251 to always fail with ENOSYS. Some functions are actually named 7252 something starting with __ and the normal name is an alias. */ 7253#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7254choke me 7255#else 7256$ac_func(); 7257#endif 7258 7259; return 0; } 7260EOF 7261if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7262 rm -rf conftest* 7263 eval "ac_cv_func_$ac_func=yes" 7264else 7265 echo "configure: failed program was:" >&5 7266 cat conftest.$ac_ext >&5 7267 rm -rf conftest* 7268 eval "ac_cv_func_$ac_func=no" 7269fi 7270rm -f conftest* 7271fi 7272 7273if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7274 echo "$ac_t""yes" 1>&6 7275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7276 cat >> confdefs.h <<EOF 7277#define $ac_tr_func 1 7278EOF 7279 7280else 7281 echo "$ac_t""no" 1>&6 7282fi 7283done 7284 7285for ac_func in setregid setresgid setresuid setreuid setutent 7286do 7287echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7288echo "configure:7289: checking for $ac_func" >&5 7289if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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/* System header to define __stub macros and hopefully few prototypes, 7296 which can conflict with char $ac_func(); below. */ 7297#include <assert.h> 7298/* Override any gcc2 internal prototype to avoid an error. */ 7299/* We use char because int might match the return type of a gcc2 7300 builtin and then its argument prototype would still apply. */ 7301char $ac_func(); 7302 7303int main() { 7304 7305/* The GNU C library defines this for functions which it implements 7306 to always fail with ENOSYS. Some functions are actually named 7307 something starting with __ and the normal name is an alias. */ 7308#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7309choke me 7310#else 7311$ac_func(); 7312#endif 7313 7314; return 0; } 7315EOF 7316if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7317 rm -rf conftest* 7318 eval "ac_cv_func_$ac_func=yes" 7319else 7320 echo "configure: failed program was:" >&5 7321 cat conftest.$ac_ext >&5 7322 rm -rf conftest* 7323 eval "ac_cv_func_$ac_func=no" 7324fi 7325rm -f conftest* 7326fi 7327 7328if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7329 echo "$ac_t""yes" 1>&6 7330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7331 cat >> confdefs.h <<EOF 7332#define $ac_tr_func 1 7333EOF 7334 7335else 7336 echo "$ac_t""no" 1>&6 7337fi 7338done 7339 7340for ac_func in setsid sigaction strstr 7341do 7342echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7343echo "configure:7344: checking for $ac_func" >&5 7344if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7345 echo $ac_n "(cached) $ac_c" 1>&6 7346else 7347 cat > conftest.$ac_ext <<EOF 7348#line 7349 "configure" 7349#include "confdefs.h" 7350/* System header to define __stub macros and hopefully few prototypes, 7351 which can conflict with char $ac_func(); below. */ 7352#include <assert.h> 7353/* Override any gcc2 internal prototype to avoid an error. */ 7354/* We use char because int might match the return type of a gcc2 7355 builtin and then its argument prototype would still apply. */ 7356char $ac_func(); 7357 7358int main() { 7359 7360/* The GNU C library defines this for functions which it implements 7361 to always fail with ENOSYS. Some functions are actually named 7362 something starting with __ and the normal name is an alias. */ 7363#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7364choke me 7365#else 7366$ac_func(); 7367#endif 7368 7369; return 0; } 7370EOF 7371if { (eval echo configure:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7372 rm -rf conftest* 7373 eval "ac_cv_func_$ac_func=yes" 7374else 7375 echo "configure: failed program was:" >&5 7376 cat conftest.$ac_ext >&5 7377 rm -rf conftest* 7378 eval "ac_cv_func_$ac_func=no" 7379fi 7380rm -f conftest* 7381fi 7382 7383if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7384 echo "$ac_t""yes" 1>&6 7385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7386 cat >> confdefs.h <<EOF 7387#define $ac_tr_func 1 7388EOF 7389 7390else 7391 echo "$ac_t""no" 1>&6 7392fi 7393done 7394 7395for ac_func in sysconf sysctl timegm ttyname ttyslot umask uname 7396do 7397echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7398echo "configure:7399: checking for $ac_func" >&5 7399if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7400 echo $ac_n "(cached) $ac_c" 1>&6 7401else 7402 cat > conftest.$ac_ext <<EOF 7403#line 7404 "configure" 7404#include "confdefs.h" 7405/* System header to define __stub macros and hopefully few prototypes, 7406 which can conflict with char $ac_func(); below. */ 7407#include <assert.h> 7408/* Override any gcc2 internal prototype to avoid an error. */ 7409/* We use char because int might match the return type of a gcc2 7410 builtin and then its argument prototype would still apply. */ 7411char $ac_func(); 7412 7413int main() { 7414 7415/* The GNU C library defines this for functions which it implements 7416 to always fail with ENOSYS. Some functions are actually named 7417 something starting with __ and the normal name is an alias. */ 7418#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7419choke me 7420#else 7421$ac_func(); 7422#endif 7423 7424; return 0; } 7425EOF 7426if { (eval echo configure:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7427 rm -rf conftest* 7428 eval "ac_cv_func_$ac_func=yes" 7429else 7430 echo "configure: failed program was:" >&5 7431 cat conftest.$ac_ext >&5 7432 rm -rf conftest* 7433 eval "ac_cv_func_$ac_func=no" 7434fi 7435rm -f conftest* 7436fi 7437 7438if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7439 echo "$ac_t""yes" 1>&6 7440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7441 cat >> confdefs.h <<EOF 7442#define $ac_tr_func 1 7443EOF 7444 7445else 7446 echo "$ac_t""no" 1>&6 7447fi 7448done 7449 7450for ac_func in unlockpt vasnprintf vasprintf vhangup 7451do 7452echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7453echo "configure:7454: checking for $ac_func" >&5 7454if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7455 echo $ac_n "(cached) $ac_c" 1>&6 7456else 7457 cat > conftest.$ac_ext <<EOF 7458#line 7459 "configure" 7459#include "confdefs.h" 7460/* System header to define __stub macros and hopefully few prototypes, 7461 which can conflict with char $ac_func(); below. */ 7462#include <assert.h> 7463/* Override any gcc2 internal prototype to avoid an error. */ 7464/* We use char because int might match the return type of a gcc2 7465 builtin and then its argument prototype would still apply. */ 7466char $ac_func(); 7467 7468int main() { 7469 7470/* The GNU C library defines this for functions which it implements 7471 to always fail with ENOSYS. Some functions are actually named 7472 something starting with __ and the normal name is an alias. */ 7473#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7474choke me 7475#else 7476$ac_func(); 7477#endif 7478 7479; return 0; } 7480EOF 7481if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7482 rm -rf conftest* 7483 eval "ac_cv_func_$ac_func=yes" 7484else 7485 echo "configure: failed program was:" >&5 7486 cat conftest.$ac_ext >&5 7487 rm -rf conftest* 7488 eval "ac_cv_func_$ac_func=no" 7489fi 7490rm -f conftest* 7491fi 7492 7493if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7494 echo "$ac_t""yes" 1>&6 7495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7496 cat >> confdefs.h <<EOF 7497#define $ac_tr_func 1 7498EOF 7499 7500else 7501 echo "$ac_t""no" 1>&6 7502fi 7503done 7504 7505for ac_func in yp_get_default_domain 7506do 7507echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7508echo "configure:7509: checking for $ac_func" >&5 7509if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7510 echo $ac_n "(cached) $ac_c" 1>&6 7511else 7512 cat > conftest.$ac_ext <<EOF 7513#line 7514 "configure" 7514#include "confdefs.h" 7515/* System header to define __stub macros and hopefully few prototypes, 7516 which can conflict with char $ac_func(); below. */ 7517#include <assert.h> 7518/* Override any gcc2 internal prototype to avoid an error. */ 7519/* We use char because int might match the return type of a gcc2 7520 builtin and then its argument prototype would still apply. */ 7521char $ac_func(); 7522 7523int main() { 7524 7525/* The GNU C library defines this for functions which it implements 7526 to always fail with ENOSYS. Some functions are actually named 7527 something starting with __ and the normal name is an alias. */ 7528#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7529choke me 7530#else 7531$ac_func(); 7532#endif 7533 7534; return 0; } 7535EOF 7536if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7537 rm -rf conftest* 7538 eval "ac_cv_func_$ac_func=yes" 7539else 7540 echo "configure: failed program was:" >&5 7541 cat conftest.$ac_ext >&5 7542 rm -rf conftest* 7543 eval "ac_cv_func_$ac_func=no" 7544fi 7545rm -f conftest* 7546fi 7547 7548if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7549 echo "$ac_t""yes" 1>&6 7550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7551 cat >> confdefs.h <<EOF 7552#define $ac_tr_func 1 7553EOF 7554 7555else 7556 echo "$ac_t""no" 1>&6 7557fi 7558done 7559 7560 7561if test "$ac_cv_func_cgetent" = no; then 7562 LIBOBJS="$LIBOBJS getcap.o" 7563fi 7564 7565 7566for ac_func in getlogin setlogin 7567do 7568echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7569echo "configure:7570: checking for $ac_func" >&5 7570if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7571 echo $ac_n "(cached) $ac_c" 1>&6 7572else 7573 cat > conftest.$ac_ext <<EOF 7574#line 7575 "configure" 7575#include "confdefs.h" 7576/* System header to define __stub macros and hopefully few prototypes, 7577 which can conflict with char $ac_func(); below. */ 7578#include <assert.h> 7579/* Override any gcc2 internal prototype to avoid an error. */ 7580/* We use char because int might match the return type of a gcc2 7581 builtin and then its argument prototype would still apply. */ 7582char $ac_func(); 7583 7584int main() { 7585 7586/* The GNU C library defines this for functions which it implements 7587 to always fail with ENOSYS. Some functions are actually named 7588 something starting with __ and the normal name is an alias. */ 7589#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7590choke me 7591#else 7592$ac_func(); 7593#endif 7594 7595; return 0; } 7596EOF 7597if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7598 rm -rf conftest* 7599 eval "ac_cv_func_$ac_func=yes" 7600else 7601 echo "configure: failed program was:" >&5 7602 cat conftest.$ac_ext >&5 7603 rm -rf conftest* 7604 eval "ac_cv_func_$ac_func=no" 7605fi 7606rm -f conftest* 7607fi 7608 7609if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7610 echo "$ac_t""yes" 1>&6 7611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7612 cat >> confdefs.h <<EOF 7613#define $ac_tr_func 1 7614EOF 7615 7616else 7617 echo "$ac_t""no" 1>&6 7618fi 7619done 7620 7621if test "$ac_cv_func_getlogin" = yes; then 7622echo $ac_n "checking if getlogin is posix""... $ac_c" 1>&6 7623echo "configure:7624: checking if getlogin is posix" >&5 7624if eval "test \"`echo '$''{'ac_cv_func_getlogin_posix'+set}'`\" = set"; then 7625 echo $ac_n "(cached) $ac_c" 1>&6 7626else 7627 7628if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 7629 ac_cv_func_getlogin_posix=no 7630else 7631 ac_cv_func_getlogin_posix=yes 7632fi 7633 7634fi 7635 7636echo "$ac_t""$ac_cv_func_getlogin_posix" 1>&6 7637if test "$ac_cv_func_getlogin_posix" = yes; then 7638 cat >> confdefs.h <<\EOF 7639#define POSIX_GETLOGIN 1 7640EOF 7641 7642fi 7643fi 7644 7645 7646 7647 7648for ac_hdr in capability.h sys/capability.h 7649do 7650ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7651echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7652echo "configure:7653: checking for $ac_hdr" >&5 7653if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7654 echo $ac_n "(cached) $ac_c" 1>&6 7655else 7656 cat > conftest.$ac_ext <<EOF 7657#line 7658 "configure" 7658#include "confdefs.h" 7659#include <$ac_hdr> 7660EOF 7661ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7662{ (eval echo configure:7663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7663ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7664if test -z "$ac_err"; then 7665 rm -rf conftest* 7666 eval "ac_cv_header_$ac_safe=yes" 7667else 7668 echo "$ac_err" >&5 7669 echo "configure: failed program was:" >&5 7670 cat conftest.$ac_ext >&5 7671 rm -rf conftest* 7672 eval "ac_cv_header_$ac_safe=no" 7673fi 7674rm -f conftest* 7675fi 7676if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7677 echo "$ac_t""yes" 1>&6 7678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 7679 cat >> confdefs.h <<EOF 7680#define $ac_tr_hdr 1 7681EOF 7682 7683else 7684 echo "$ac_t""no" 1>&6 7685fi 7686done 7687 7688 7689for ac_func in sgi_getcapabilitybyname cap_set_proc 7690do 7691echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7692echo "configure:7693: checking for $ac_func" >&5 7693if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7694 echo $ac_n "(cached) $ac_c" 1>&6 7695else 7696 cat > conftest.$ac_ext <<EOF 7697#line 7698 "configure" 7698#include "confdefs.h" 7699/* System header to define __stub macros and hopefully few prototypes, 7700 which can conflict with char $ac_func(); below. */ 7701#include <assert.h> 7702/* Override any gcc2 internal prototype to avoid an error. */ 7703/* We use char because int might match the return type of a gcc2 7704 builtin and then its argument prototype would still apply. */ 7705char $ac_func(); 7706 7707int main() { 7708 7709/* The GNU C library defines this for functions which it implements 7710 to always fail with ENOSYS. Some functions are actually named 7711 something starting with __ and the normal name is an alias. */ 7712#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7713choke me 7714#else 7715$ac_func(); 7716#endif 7717 7718; return 0; } 7719EOF 7720if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7721 rm -rf conftest* 7722 eval "ac_cv_func_$ac_func=yes" 7723else 7724 echo "configure: failed program was:" >&5 7725 cat conftest.$ac_ext >&5 7726 rm -rf conftest* 7727 eval "ac_cv_func_$ac_func=no" 7728fi 7729rm -f conftest* 7730fi 7731 7732if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7733 echo "$ac_t""yes" 1>&6 7734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7735 cat >> confdefs.h <<EOF 7736#define $ac_tr_func 1 7737EOF 7738 7739else 7740 echo "$ac_t""no" 1>&6 7741fi 7742done 7743 7744 7745 7746 7747 7748 7749 7750echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6 7751echo "configure:7752: checking for getpwnam_r" >&5 7752if eval "test \"`echo '$''{'ac_cv_funclib_getpwnam_r'+set}'`\" = set"; then 7753 echo $ac_n "(cached) $ac_c" 1>&6 7754else 7755 7756if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 7757 ac_save_LIBS="$LIBS" 7758 for ac_lib in "" c_r; do 7759 if test -n "$ac_lib"; then 7760 ac_lib="-l$ac_lib" 7761 else 7762 ac_lib="" 7763 fi 7764 LIBS=" $ac_lib $ac_save_LIBS" 7765 cat > conftest.$ac_ext <<EOF 7766#line 7767 "configure" 7767#include "confdefs.h" 7768 7769int main() { 7770getpwnam_r() 7771; return 0; } 7772EOF 7773if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7774 rm -rf conftest* 7775 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 7776else 7777 echo "configure: failed program was:" >&5 7778 cat conftest.$ac_ext >&5 7779fi 7780rm -f conftest* 7781 done 7782 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 7783 LIBS="$ac_save_LIBS" 7784fi 7785 7786fi 7787 7788 7789eval "ac_res=\$ac_cv_funclib_getpwnam_r" 7790 7791: << END 7792@@@funcs="$funcs getpwnam_r"@@@ 7793@@@libs="$libs "" c_r"@@@ 7794END 7795 7796# getpwnam_r 7797eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7798eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7799eval "LIB_getpwnam_r=$ac_res" 7800 7801case "$ac_res" in 7802 yes) 7803 eval "ac_cv_func_getpwnam_r=yes" 7804 eval "LIB_getpwnam_r=" 7805 cat >> confdefs.h <<EOF 7806#define $ac_tr_func 1 7807EOF 7808 7809 echo "$ac_t""yes" 1>&6 7810 ;; 7811 no) 7812 eval "ac_cv_func_getpwnam_r=no" 7813 eval "LIB_getpwnam_r=" 7814 echo "$ac_t""no" 1>&6 7815 ;; 7816 *) 7817 eval "ac_cv_func_getpwnam_r=yes" 7818 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7819 cat >> confdefs.h <<EOF 7820#define $ac_tr_func 1 7821EOF 7822 7823 cat >> confdefs.h <<EOF 7824#define $ac_tr_lib 1 7825EOF 7826 7827 echo "$ac_t""yes, in $ac_res" 1>&6 7828 ;; 7829esac 7830 7831 7832if test "$ac_cv_func_getpwnam_r" = yes; then 7833 echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6 7834echo "configure:7835: checking if getpwnam_r is posix" >&5 7835if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r_posix'+set}'`\" = set"; then 7836 echo $ac_n "(cached) $ac_c" 1>&6 7837else 7838 ac_libs="$LIBS" 7839 LIBS="$LIBS $LIB_getpwnam_r" 7840 if test "$cross_compiling" = yes; then 7841 : 7842else 7843 cat > conftest.$ac_ext <<EOF 7844#line 7845 "configure" 7845#include "confdefs.h" 7846 7847#include <pwd.h> 7848int main() 7849{ 7850 struct passwd pw, *pwd; 7851 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0; 7852} 7853 7854EOF 7855if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7856then 7857 ac_cv_func_getpwnam_r_posix=yes 7858else 7859 echo "configure: failed program was:" >&5 7860 cat conftest.$ac_ext >&5 7861 rm -fr conftest* 7862 ac_cv_func_getpwnam_r_posix=no 7863fi 7864rm -fr conftest* 7865fi 7866 7867LIBS="$ac_libs" 7868fi 7869 7870echo "$ac_t""$ac_cv_func_getpwnam_r_posix" 1>&6 7871if test "$ac_cv_func_getpwnam_r_posix" = yes; then 7872 cat >> confdefs.h <<\EOF 7873#define POSIX_GETPWNAM_R 1 7874EOF 7875 7876fi 7877fi 7878 7879 7880 7881 7882 7883echo $ac_n "checking for getsockopt""... $ac_c" 1>&6 7884echo "configure:7885: checking for getsockopt" >&5 7885if eval "test \"`echo '$''{'ac_cv_funclib_getsockopt'+set}'`\" = set"; then 7886 echo $ac_n "(cached) $ac_c" 1>&6 7887else 7888 7889if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 7890 ac_save_LIBS="$LIBS" 7891 for ac_lib in "" ; do 7892 if test -n "$ac_lib"; then 7893 ac_lib="-l$ac_lib" 7894 else 7895 ac_lib="" 7896 fi 7897 LIBS=" $ac_lib $ac_save_LIBS" 7898 cat > conftest.$ac_ext <<EOF 7899#line 7900 "configure" 7900#include "confdefs.h" 7901#ifdef HAVE_SYS_TYPES_H 7902#include <sys/types.h> 7903#endif 7904#ifdef HAVE_SYS_SOCKET_H 7905#include <sys/socket.h> 7906#endif 7907int main() { 7908getsockopt(0,0,0,0,0) 7909; return 0; } 7910EOF 7911if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7912 rm -rf conftest* 7913 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 7914else 7915 echo "configure: failed program was:" >&5 7916 cat conftest.$ac_ext >&5 7917fi 7918rm -f conftest* 7919 done 7920 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 7921 LIBS="$ac_save_LIBS" 7922fi 7923 7924fi 7925 7926 7927eval "ac_res=\$ac_cv_funclib_getsockopt" 7928 7929: << END 7930@@@funcs="$funcs getsockopt"@@@ 7931@@@libs="$libs "" "@@@ 7932END 7933 7934# getsockopt 7935eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7936eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7937eval "LIB_getsockopt=$ac_res" 7938 7939case "$ac_res" in 7940 yes) 7941 eval "ac_cv_func_getsockopt=yes" 7942 eval "LIB_getsockopt=" 7943 cat >> confdefs.h <<EOF 7944#define $ac_tr_func 1 7945EOF 7946 7947 echo "$ac_t""yes" 1>&6 7948 ;; 7949 no) 7950 eval "ac_cv_func_getsockopt=no" 7951 eval "LIB_getsockopt=" 7952 echo "$ac_t""no" 1>&6 7953 ;; 7954 *) 7955 eval "ac_cv_func_getsockopt=yes" 7956 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7957 cat >> confdefs.h <<EOF 7958#define $ac_tr_func 1 7959EOF 7960 7961 cat >> confdefs.h <<EOF 7962#define $ac_tr_lib 1 7963EOF 7964 7965 echo "$ac_t""yes, in $ac_res" 1>&6 7966 ;; 7967esac 7968 7969 7970 7971 7972 7973echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 7974echo "configure:7975: checking for setsockopt" >&5 7975if eval "test \"`echo '$''{'ac_cv_funclib_setsockopt'+set}'`\" = set"; then 7976 echo $ac_n "(cached) $ac_c" 1>&6 7977else 7978 7979if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 7980 ac_save_LIBS="$LIBS" 7981 for ac_lib in "" ; do 7982 if test -n "$ac_lib"; then 7983 ac_lib="-l$ac_lib" 7984 else 7985 ac_lib="" 7986 fi 7987 LIBS=" $ac_lib $ac_save_LIBS" 7988 cat > conftest.$ac_ext <<EOF 7989#line 7990 "configure" 7990#include "confdefs.h" 7991#ifdef HAVE_SYS_TYPES_H 7992#include <sys/types.h> 7993#endif 7994#ifdef HAVE_SYS_SOCKET_H 7995#include <sys/socket.h> 7996#endif 7997int main() { 7998setsockopt(0,0,0,0,0) 7999; return 0; } 8000EOF 8001if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8002 rm -rf conftest* 8003 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 8004else 8005 echo "configure: failed program was:" >&5 8006 cat conftest.$ac_ext >&5 8007fi 8008rm -f conftest* 8009 done 8010 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 8011 LIBS="$ac_save_LIBS" 8012fi 8013 8014fi 8015 8016 8017eval "ac_res=\$ac_cv_funclib_setsockopt" 8018 8019: << END 8020@@@funcs="$funcs setsockopt"@@@ 8021@@@libs="$libs "" "@@@ 8022END 8023 8024# setsockopt 8025eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8026eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8027eval "LIB_setsockopt=$ac_res" 8028 8029case "$ac_res" in 8030 yes) 8031 eval "ac_cv_func_setsockopt=yes" 8032 eval "LIB_setsockopt=" 8033 cat >> confdefs.h <<EOF 8034#define $ac_tr_func 1 8035EOF 8036 8037 echo "$ac_t""yes" 1>&6 8038 ;; 8039 no) 8040 eval "ac_cv_func_setsockopt=no" 8041 eval "LIB_setsockopt=" 8042 echo "$ac_t""no" 1>&6 8043 ;; 8044 *) 8045 eval "ac_cv_func_setsockopt=yes" 8046 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 8047 cat >> confdefs.h <<EOF 8048#define $ac_tr_func 1 8049EOF 8050 8051 cat >> confdefs.h <<EOF 8052#define $ac_tr_lib 1 8053EOF 8054 8055 echo "$ac_t""yes, in $ac_res" 1>&6 8056 ;; 8057esac 8058 8059 8060 8061for ac_func in getudbnam setlim 8062do 8063echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8064echo "configure:8065: checking for $ac_func" >&5 8065if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8066 echo $ac_n "(cached) $ac_c" 1>&6 8067else 8068 cat > conftest.$ac_ext <<EOF 8069#line 8070 "configure" 8070#include "confdefs.h" 8071/* System header to define __stub macros and hopefully few prototypes, 8072 which can conflict with char $ac_func(); below. */ 8073#include <assert.h> 8074/* Override any gcc2 internal prototype to avoid an error. */ 8075/* We use char because int might match the return type of a gcc2 8076 builtin and then its argument prototype would still apply. */ 8077char $ac_func(); 8078 8079int main() { 8080 8081/* The GNU C library defines this for functions which it implements 8082 to always fail with ENOSYS. Some functions are actually named 8083 something starting with __ and the normal name is an alias. */ 8084#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8085choke me 8086#else 8087$ac_func(); 8088#endif 8089 8090; return 0; } 8091EOF 8092if { (eval echo configure:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8093 rm -rf conftest* 8094 eval "ac_cv_func_$ac_func=yes" 8095else 8096 echo "configure: failed program was:" >&5 8097 cat conftest.$ac_ext >&5 8098 rm -rf conftest* 8099 eval "ac_cv_func_$ac_func=no" 8100fi 8101rm -f conftest* 8102fi 8103 8104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8105 echo "$ac_t""yes" 1>&6 8106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8107 cat >> confdefs.h <<EOF 8108#define $ac_tr_func 1 8109EOF 8110 8111else 8112 echo "$ac_t""no" 1>&6 8113fi 8114done 8115 8116 8117echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 8118echo "configure:8119: checking return type of signal handlers" >&5 8119if eval "test \"`echo '$''{'ac_cv_type_signal'+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#include <signal.h> 8127#ifdef signal 8128#undef signal 8129#endif 8130#ifdef __cplusplus 8131extern "C" void (*signal (int, void (*)(int)))(int); 8132#else 8133void (*signal ()) (); 8134#endif 8135 8136int main() { 8137int i; 8138; return 0; } 8139EOF 8140if { (eval echo configure:8141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8141 rm -rf conftest* 8142 ac_cv_type_signal=void 8143else 8144 echo "configure: failed program was:" >&5 8145 cat conftest.$ac_ext >&5 8146 rm -rf conftest* 8147 ac_cv_type_signal=int 8148fi 8149rm -f conftest* 8150fi 8151 8152echo "$ac_t""$ac_cv_type_signal" 1>&6 8153cat >> confdefs.h <<EOF 8154#define RETSIGTYPE $ac_cv_type_signal 8155EOF 8156 8157 8158if test "$ac_cv_type_signal" = "void" ; then 8159 cat >> confdefs.h <<\EOF 8160#define VOID_RETSIGTYPE 1 8161EOF 8162 8163fi 8164 8165 8166 8167 8168 8169 8170echo $ac_n "checking for hstrerror""... $ac_c" 1>&6 8171echo "configure:8172: checking for hstrerror" >&5 8172if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then 8173 echo $ac_n "(cached) $ac_c" 1>&6 8174else 8175 8176if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 8177 ac_save_LIBS="$LIBS" 8178 for ac_lib in "" resolv; do 8179 if test -n "$ac_lib"; then 8180 ac_lib="-l$ac_lib" 8181 else 8182 ac_lib="" 8183 fi 8184 LIBS=" $ac_lib $ac_save_LIBS" 8185 cat > conftest.$ac_ext <<EOF 8186#line 8187 "configure" 8187#include "confdefs.h" 8188#ifdef HAVE_NETDB_H 8189#include <netdb.h> 8190#endif 8191int main() { 8192hstrerror(17) 8193; return 0; } 8194EOF 8195if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8196 rm -rf conftest* 8197 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 8198else 8199 echo "configure: failed program was:" >&5 8200 cat conftest.$ac_ext >&5 8201fi 8202rm -f conftest* 8203 done 8204 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 8205 LIBS="$ac_save_LIBS" 8206fi 8207 8208fi 8209 8210 8211eval "ac_res=\$ac_cv_funclib_hstrerror" 8212 8213: << END 8214@@@funcs="$funcs hstrerror"@@@ 8215@@@libs="$libs "" resolv"@@@ 8216END 8217 8218# hstrerror 8219eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8220eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8221eval "LIB_hstrerror=$ac_res" 8222 8223case "$ac_res" in 8224 yes) 8225 eval "ac_cv_func_hstrerror=yes" 8226 eval "LIB_hstrerror=" 8227 cat >> confdefs.h <<EOF 8228#define $ac_tr_func 1 8229EOF 8230 8231 echo "$ac_t""yes" 1>&6 8232 ;; 8233 no) 8234 eval "ac_cv_func_hstrerror=no" 8235 eval "LIB_hstrerror=" 8236 echo "$ac_t""no" 1>&6 8237 ;; 8238 *) 8239 eval "ac_cv_func_hstrerror=yes" 8240 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 8241 cat >> confdefs.h <<EOF 8242#define $ac_tr_func 1 8243EOF 8244 8245 cat >> confdefs.h <<EOF 8246#define $ac_tr_lib 1 8247EOF 8248 8249 echo "$ac_t""yes, in $ac_res" 1>&6 8250 ;; 8251esac 8252 8253 8254if test -n "$LIB_hstrerror"; then 8255 LIBS="$LIB_hstrerror $LIBS" 8256fi 8257 8258if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 8259LIBOBJS="$LIBOBJS hstrerror.o" 8260fi 8261 8262if test "$ac_cv_func_hstrerror" = yes; then 8263 8264if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 8265echo $ac_n "checking if hstrerror needs a prototype""... $ac_c" 1>&6 8266echo "configure:8267: checking if hstrerror needs a prototype" >&5 8267if eval "test \"`echo '$''{'ac_cv_func_hstrerror_noproto'+set}'`\" = set"; then 8268 echo $ac_n "(cached) $ac_c" 1>&6 8269else 8270 cat > conftest.$ac_ext <<EOF 8271#line 8272 "configure" 8272#include "confdefs.h" 8273 8274#ifdef HAVE_NETDB_H 8275#include <netdb.h> 8276#endif 8277int main() { 8278struct foo { int foo; } xx; 8279extern int hstrerror (struct foo*); 8280hstrerror(&xx); 8281 8282; return 0; } 8283EOF 8284if { (eval echo configure:8285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8285 rm -rf conftest* 8286 eval "ac_cv_func_hstrerror_noproto=yes" 8287else 8288 echo "configure: failed program was:" >&5 8289 cat conftest.$ac_ext >&5 8290 rm -rf conftest* 8291 eval "ac_cv_func_hstrerror_noproto=no" 8292fi 8293rm -f conftest* 8294fi 8295 8296echo "$ac_t""$ac_cv_func_hstrerror_noproto" 1>&6 8297 8298if test "$ac_cv_func_hstrerror_noproto" = yes; then 8299 cat >> confdefs.h <<\EOF 8300#define NEED_HSTRERROR_PROTO 1 8301EOF 8302 8303fi 8304 8305fi 8306 8307fi 8308 8309if test "$ac_cv_func_asprintf" = yes; then 8310 8311if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 8312echo $ac_n "checking if asprintf needs a prototype""... $ac_c" 1>&6 8313echo "configure:8314: checking if asprintf needs a prototype" >&5 8314if eval "test \"`echo '$''{'ac_cv_func_asprintf_noproto'+set}'`\" = set"; then 8315 echo $ac_n "(cached) $ac_c" 1>&6 8316else 8317 cat > conftest.$ac_ext <<EOF 8318#line 8319 "configure" 8319#include "confdefs.h" 8320 8321#include <stdio.h> 8322#include <string.h> 8323int main() { 8324struct foo { int foo; } xx; 8325extern int asprintf (struct foo*); 8326asprintf(&xx); 8327 8328; return 0; } 8329EOF 8330if { (eval echo configure:8331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8331 rm -rf conftest* 8332 eval "ac_cv_func_asprintf_noproto=yes" 8333else 8334 echo "configure: failed program was:" >&5 8335 cat conftest.$ac_ext >&5 8336 rm -rf conftest* 8337 eval "ac_cv_func_asprintf_noproto=no" 8338fi 8339rm -f conftest* 8340fi 8341 8342echo "$ac_t""$ac_cv_func_asprintf_noproto" 1>&6 8343 8344if test "$ac_cv_func_asprintf_noproto" = yes; then 8345 cat >> confdefs.h <<\EOF 8346#define NEED_ASPRINTF_PROTO 1 8347EOF 8348 8349fi 8350 8351fi 8352fi 8353if test "$ac_cv_func_vasprintf" = yes; then 8354 8355if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 8356echo $ac_n "checking if vasprintf needs a prototype""... $ac_c" 1>&6 8357echo "configure:8358: checking if vasprintf needs a prototype" >&5 8358if eval "test \"`echo '$''{'ac_cv_func_vasprintf_noproto'+set}'`\" = set"; then 8359 echo $ac_n "(cached) $ac_c" 1>&6 8360else 8361 cat > conftest.$ac_ext <<EOF 8362#line 8363 "configure" 8363#include "confdefs.h" 8364 8365#include <stdio.h> 8366#include <string.h> 8367int main() { 8368struct foo { int foo; } xx; 8369extern int vasprintf (struct foo*); 8370vasprintf(&xx); 8371 8372; return 0; } 8373EOF 8374if { (eval echo configure:8375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8375 rm -rf conftest* 8376 eval "ac_cv_func_vasprintf_noproto=yes" 8377else 8378 echo "configure: failed program was:" >&5 8379 cat conftest.$ac_ext >&5 8380 rm -rf conftest* 8381 eval "ac_cv_func_vasprintf_noproto=no" 8382fi 8383rm -f conftest* 8384fi 8385 8386echo "$ac_t""$ac_cv_func_vasprintf_noproto" 1>&6 8387 8388if test "$ac_cv_func_vasprintf_noproto" = yes; then 8389 cat >> confdefs.h <<\EOF 8390#define NEED_VASPRINTF_PROTO 1 8391EOF 8392 8393fi 8394 8395fi 8396fi 8397if test "$ac_cv_func_asnprintf" = yes; then 8398 8399if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 8400echo $ac_n "checking if asnprintf needs a prototype""... $ac_c" 1>&6 8401echo "configure:8402: checking if asnprintf needs a prototype" >&5 8402if eval "test \"`echo '$''{'ac_cv_func_asnprintf_noproto'+set}'`\" = set"; then 8403 echo $ac_n "(cached) $ac_c" 1>&6 8404else 8405 cat > conftest.$ac_ext <<EOF 8406#line 8407 "configure" 8407#include "confdefs.h" 8408 8409#include <stdio.h> 8410#include <string.h> 8411int main() { 8412struct foo { int foo; } xx; 8413extern int asnprintf (struct foo*); 8414asnprintf(&xx); 8415 8416; return 0; } 8417EOF 8418if { (eval echo configure:8419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8419 rm -rf conftest* 8420 eval "ac_cv_func_asnprintf_noproto=yes" 8421else 8422 echo "configure: failed program was:" >&5 8423 cat conftest.$ac_ext >&5 8424 rm -rf conftest* 8425 eval "ac_cv_func_asnprintf_noproto=no" 8426fi 8427rm -f conftest* 8428fi 8429 8430echo "$ac_t""$ac_cv_func_asnprintf_noproto" 1>&6 8431 8432if test "$ac_cv_func_asnprintf_noproto" = yes; then 8433 cat >> confdefs.h <<\EOF 8434#define NEED_ASNPRINTF_PROTO 1 8435EOF 8436 8437fi 8438 8439fi 8440fi 8441if test "$ac_cv_func_vasnprintf" = yes; then 8442 8443if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 8444echo $ac_n "checking if vasnprintf needs a prototype""... $ac_c" 1>&6 8445echo "configure:8446: checking if vasnprintf needs a prototype" >&5 8446if eval "test \"`echo '$''{'ac_cv_func_vasnprintf_noproto'+set}'`\" = set"; then 8447 echo $ac_n "(cached) $ac_c" 1>&6 8448else 8449 cat > conftest.$ac_ext <<EOF 8450#line 8451 "configure" 8451#include "confdefs.h" 8452 8453#include <stdio.h> 8454#include <string.h> 8455int main() { 8456struct foo { int foo; } xx; 8457extern int vasnprintf (struct foo*); 8458vasnprintf(&xx); 8459 8460; return 0; } 8461EOF 8462if { (eval echo configure:8463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8463 rm -rf conftest* 8464 eval "ac_cv_func_vasnprintf_noproto=yes" 8465else 8466 echo "configure: failed program was:" >&5 8467 cat conftest.$ac_ext >&5 8468 rm -rf conftest* 8469 eval "ac_cv_func_vasnprintf_noproto=no" 8470fi 8471rm -f conftest* 8472fi 8473 8474echo "$ac_t""$ac_cv_func_vasnprintf_noproto" 1>&6 8475 8476if test "$ac_cv_func_vasnprintf_noproto" = yes; then 8477 cat >> confdefs.h <<\EOF 8478#define NEED_VASNPRINTF_PROTO 1 8479EOF 8480 8481fi 8482 8483fi 8484fi 8485 8486for ac_func in chown copyhostent daemon err errx fchown flock fnmatch 8487do 8488echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8489echo "configure:8490: checking for $ac_func" >&5 8490if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8491 echo $ac_n "(cached) $ac_c" 1>&6 8492else 8493 cat > conftest.$ac_ext <<EOF 8494#line 8495 "configure" 8495#include "confdefs.h" 8496/* System header to define __stub macros and hopefully few prototypes, 8497 which can conflict with char $ac_func(); below. */ 8498#include <assert.h> 8499/* Override any gcc2 internal prototype to avoid an error. */ 8500/* We use char because int might match the return type of a gcc2 8501 builtin and then its argument prototype would still apply. */ 8502char $ac_func(); 8503 8504int main() { 8505 8506/* The GNU C library defines this for functions which it implements 8507 to always fail with ENOSYS. Some functions are actually named 8508 something starting with __ and the normal name is an alias. */ 8509#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8510choke me 8511#else 8512$ac_func(); 8513#endif 8514 8515; return 0; } 8516EOF 8517if { (eval echo configure:8518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8518 rm -rf conftest* 8519 eval "ac_cv_func_$ac_func=yes" 8520else 8521 echo "configure: failed program was:" >&5 8522 cat conftest.$ac_ext >&5 8523 rm -rf conftest* 8524 eval "ac_cv_func_$ac_func=no" 8525fi 8526rm -f conftest* 8527fi 8528 8529if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8530 echo "$ac_t""yes" 1>&6 8531 8532ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8533cat >> confdefs.h <<EOF 8534#define $ac_tr_func 1 8535EOF 8536 8537else 8538 echo "$ac_t""no" 1>&6 8539LIBOBJS="$LIBOBJS ${ac_func}.o" 8540fi 8541 8542: << END 8543@@@funcs="$funcs chown copyhostent daemon err errx fchown flock fnmatch"@@@ 8544END 8545done 8546 8547for ac_func in freeaddrinfo freehostent gai_strerror getaddrinfo 8548do 8549echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8550echo "configure:8551: checking for $ac_func" >&5 8551if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8552 echo $ac_n "(cached) $ac_c" 1>&6 8553else 8554 cat > conftest.$ac_ext <<EOF 8555#line 8556 "configure" 8556#include "confdefs.h" 8557/* System header to define __stub macros and hopefully few prototypes, 8558 which can conflict with char $ac_func(); below. */ 8559#include <assert.h> 8560/* Override any gcc2 internal prototype to avoid an error. */ 8561/* We use char because int might match the return type of a gcc2 8562 builtin and then its argument prototype would still apply. */ 8563char $ac_func(); 8564 8565int main() { 8566 8567/* The GNU C library defines this for functions which it implements 8568 to always fail with ENOSYS. Some functions are actually named 8569 something starting with __ and the normal name is an alias. */ 8570#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8571choke me 8572#else 8573$ac_func(); 8574#endif 8575 8576; return 0; } 8577EOF 8578if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8579 rm -rf conftest* 8580 eval "ac_cv_func_$ac_func=yes" 8581else 8582 echo "configure: failed program was:" >&5 8583 cat conftest.$ac_ext >&5 8584 rm -rf conftest* 8585 eval "ac_cv_func_$ac_func=no" 8586fi 8587rm -f conftest* 8588fi 8589 8590if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8591 echo "$ac_t""yes" 1>&6 8592 8593ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8594cat >> confdefs.h <<EOF 8595#define $ac_tr_func 1 8596EOF 8597 8598else 8599 echo "$ac_t""no" 1>&6 8600LIBOBJS="$LIBOBJS ${ac_func}.o" 8601fi 8602 8603: << END 8604@@@funcs="$funcs freeaddrinfo freehostent gai_strerror getaddrinfo"@@@ 8605END 8606done 8607 8608for ac_func in getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname 8609do 8610echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8611echo "configure:8612: checking for $ac_func" >&5 8612if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8613 echo $ac_n "(cached) $ac_c" 1>&6 8614else 8615 cat > conftest.$ac_ext <<EOF 8616#line 8617 "configure" 8617#include "confdefs.h" 8618/* System header to define __stub macros and hopefully few prototypes, 8619 which can conflict with char $ac_func(); below. */ 8620#include <assert.h> 8621/* Override any gcc2 internal prototype to avoid an error. */ 8622/* We use char because int might match the return type of a gcc2 8623 builtin and then its argument prototype would still apply. */ 8624char $ac_func(); 8625 8626int main() { 8627 8628/* The GNU C library defines this for functions which it implements 8629 to always fail with ENOSYS. Some functions are actually named 8630 something starting with __ and the normal name is an alias. */ 8631#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8632choke me 8633#else 8634$ac_func(); 8635#endif 8636 8637; return 0; } 8638EOF 8639if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8640 rm -rf conftest* 8641 eval "ac_cv_func_$ac_func=yes" 8642else 8643 echo "configure: failed program was:" >&5 8644 cat conftest.$ac_ext >&5 8645 rm -rf conftest* 8646 eval "ac_cv_func_$ac_func=no" 8647fi 8648rm -f conftest* 8649fi 8650 8651if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8652 echo "$ac_t""yes" 1>&6 8653 8654ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8655cat >> confdefs.h <<EOF 8656#define $ac_tr_func 1 8657EOF 8658 8659else 8660 echo "$ac_t""no" 1>&6 8661LIBOBJS="$LIBOBJS ${ac_func}.o" 8662fi 8663 8664: << END 8665@@@funcs="$funcs getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname"@@@ 8666END 8667done 8668 8669for ac_func in geteuid getgid getegid 8670do 8671echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8672echo "configure:8673: checking for $ac_func" >&5 8673if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8674 echo $ac_n "(cached) $ac_c" 1>&6 8675else 8676 cat > conftest.$ac_ext <<EOF 8677#line 8678 "configure" 8678#include "confdefs.h" 8679/* System header to define __stub macros and hopefully few prototypes, 8680 which can conflict with char $ac_func(); below. */ 8681#include <assert.h> 8682/* Override any gcc2 internal prototype to avoid an error. */ 8683/* We use char because int might match the return type of a gcc2 8684 builtin and then its argument prototype would still apply. */ 8685char $ac_func(); 8686 8687int main() { 8688 8689/* The GNU C library defines this for functions which it implements 8690 to always fail with ENOSYS. Some functions are actually named 8691 something starting with __ and the normal name is an alias. */ 8692#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8693choke me 8694#else 8695$ac_func(); 8696#endif 8697 8698; return 0; } 8699EOF 8700if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8701 rm -rf conftest* 8702 eval "ac_cv_func_$ac_func=yes" 8703else 8704 echo "configure: failed program was:" >&5 8705 cat conftest.$ac_ext >&5 8706 rm -rf conftest* 8707 eval "ac_cv_func_$ac_func=no" 8708fi 8709rm -f conftest* 8710fi 8711 8712if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8713 echo "$ac_t""yes" 1>&6 8714 8715ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8716cat >> confdefs.h <<EOF 8717#define $ac_tr_func 1 8718EOF 8719 8720else 8721 echo "$ac_t""no" 1>&6 8722LIBOBJS="$LIBOBJS ${ac_func}.o" 8723fi 8724 8725: << END 8726@@@funcs="$funcs geteuid getgid getegid"@@@ 8727END 8728done 8729 8730for ac_func in getnameinfo getopt getusershell 8731do 8732echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8733echo "configure:8734: checking for $ac_func" >&5 8734if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8735 echo $ac_n "(cached) $ac_c" 1>&6 8736else 8737 cat > conftest.$ac_ext <<EOF 8738#line 8739 "configure" 8739#include "confdefs.h" 8740/* System header to define __stub macros and hopefully few prototypes, 8741 which can conflict with char $ac_func(); below. */ 8742#include <assert.h> 8743/* Override any gcc2 internal prototype to avoid an error. */ 8744/* We use char because int might match the return type of a gcc2 8745 builtin and then its argument prototype would still apply. */ 8746char $ac_func(); 8747 8748int main() { 8749 8750/* The GNU C library defines this for functions which it implements 8751 to always fail with ENOSYS. Some functions are actually named 8752 something starting with __ and the normal name is an alias. */ 8753#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8754choke me 8755#else 8756$ac_func(); 8757#endif 8758 8759; return 0; } 8760EOF 8761if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8762 rm -rf conftest* 8763 eval "ac_cv_func_$ac_func=yes" 8764else 8765 echo "configure: failed program was:" >&5 8766 cat conftest.$ac_ext >&5 8767 rm -rf conftest* 8768 eval "ac_cv_func_$ac_func=no" 8769fi 8770rm -f conftest* 8771fi 8772 8773if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8774 echo "$ac_t""yes" 1>&6 8775 8776ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8777cat >> confdefs.h <<EOF 8778#define $ac_tr_func 1 8779EOF 8780 8781else 8782 echo "$ac_t""no" 1>&6 8783LIBOBJS="$LIBOBJS ${ac_func}.o" 8784fi 8785 8786: << END 8787@@@funcs="$funcs getnameinfo getopt getusershell"@@@ 8788END 8789done 8790 8791for ac_func in inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat 8792do 8793echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8794echo "configure:8795: checking for $ac_func" >&5 8795if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8796 echo $ac_n "(cached) $ac_c" 1>&6 8797else 8798 cat > conftest.$ac_ext <<EOF 8799#line 8800 "configure" 8800#include "confdefs.h" 8801/* System header to define __stub macros and hopefully few prototypes, 8802 which can conflict with char $ac_func(); below. */ 8803#include <assert.h> 8804/* Override any gcc2 internal prototype to avoid an error. */ 8805/* We use char because int might match the return type of a gcc2 8806 builtin and then its argument prototype would still apply. */ 8807char $ac_func(); 8808 8809int main() { 8810 8811/* The GNU C library defines this for functions which it implements 8812 to always fail with ENOSYS. Some functions are actually named 8813 something starting with __ and the normal name is an alias. */ 8814#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8815choke me 8816#else 8817$ac_func(); 8818#endif 8819 8820; return 0; } 8821EOF 8822if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8823 rm -rf conftest* 8824 eval "ac_cv_func_$ac_func=yes" 8825else 8826 echo "configure: failed program was:" >&5 8827 cat conftest.$ac_ext >&5 8828 rm -rf conftest* 8829 eval "ac_cv_func_$ac_func=no" 8830fi 8831rm -f conftest* 8832fi 8833 8834if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8835 echo "$ac_t""yes" 1>&6 8836 8837ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8838cat >> confdefs.h <<EOF 8839#define $ac_tr_func 1 8840EOF 8841 8842else 8843 echo "$ac_t""no" 1>&6 8844LIBOBJS="$LIBOBJS ${ac_func}.o" 8845fi 8846 8847: << END 8848@@@funcs="$funcs inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat"@@@ 8849END 8850done 8851 8852for ac_func in memmove 8853do 8854echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8855echo "configure:8856: checking for $ac_func" >&5 8856if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8857 echo $ac_n "(cached) $ac_c" 1>&6 8858else 8859 cat > conftest.$ac_ext <<EOF 8860#line 8861 "configure" 8861#include "confdefs.h" 8862/* System header to define __stub macros and hopefully few prototypes, 8863 which can conflict with char $ac_func(); below. */ 8864#include <assert.h> 8865/* Override any gcc2 internal prototype to avoid an error. */ 8866/* We use char because int might match the return type of a gcc2 8867 builtin and then its argument prototype would still apply. */ 8868char $ac_func(); 8869 8870int main() { 8871 8872/* The GNU C library defines this for functions which it implements 8873 to always fail with ENOSYS. Some functions are actually named 8874 something starting with __ and the normal name is an alias. */ 8875#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8876choke me 8877#else 8878$ac_func(); 8879#endif 8880 8881; return 0; } 8882EOF 8883if { (eval echo configure:8884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8884 rm -rf conftest* 8885 eval "ac_cv_func_$ac_func=yes" 8886else 8887 echo "configure: failed program was:" >&5 8888 cat conftest.$ac_ext >&5 8889 rm -rf conftest* 8890 eval "ac_cv_func_$ac_func=no" 8891fi 8892rm -f conftest* 8893fi 8894 8895if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8896 echo "$ac_t""yes" 1>&6 8897 8898ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8899cat >> confdefs.h <<EOF 8900#define $ac_tr_func 1 8901EOF 8902 8903else 8904 echo "$ac_t""no" 1>&6 8905LIBOBJS="$LIBOBJS ${ac_func}.o" 8906fi 8907 8908: << END 8909@@@funcs="$funcs memmove"@@@ 8910END 8911done 8912 8913for ac_func in mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid 8914do 8915echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8916echo "configure:8917: checking for $ac_func" >&5 8917if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8918 echo $ac_n "(cached) $ac_c" 1>&6 8919else 8920 cat > conftest.$ac_ext <<EOF 8921#line 8922 "configure" 8922#include "confdefs.h" 8923/* System header to define __stub macros and hopefully few prototypes, 8924 which can conflict with char $ac_func(); below. */ 8925#include <assert.h> 8926/* Override any gcc2 internal prototype to avoid an error. */ 8927/* We use char because int might match the return type of a gcc2 8928 builtin and then its argument prototype would still apply. */ 8929char $ac_func(); 8930 8931int main() { 8932 8933/* The GNU C library defines this for functions which it implements 8934 to always fail with ENOSYS. Some functions are actually named 8935 something starting with __ and the normal name is an alias. */ 8936#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8937choke me 8938#else 8939$ac_func(); 8940#endif 8941 8942; return 0; } 8943EOF 8944if { (eval echo configure:8945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8945 rm -rf conftest* 8946 eval "ac_cv_func_$ac_func=yes" 8947else 8948 echo "configure: failed program was:" >&5 8949 cat conftest.$ac_ext >&5 8950 rm -rf conftest* 8951 eval "ac_cv_func_$ac_func=no" 8952fi 8953rm -f conftest* 8954fi 8955 8956if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8957 echo "$ac_t""yes" 1>&6 8958 8959ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8960cat >> confdefs.h <<EOF 8961#define $ac_tr_func 1 8962EOF 8963 8964else 8965 echo "$ac_t""no" 1>&6 8966LIBOBJS="$LIBOBJS ${ac_func}.o" 8967fi 8968 8969: << END 8970@@@funcs="$funcs mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid"@@@ 8971END 8972done 8973 8974for ac_func in strcasecmp strncasecmp strdup strerror strftime 8975do 8976echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8977echo "configure:8978: checking for $ac_func" >&5 8978if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8979 echo $ac_n "(cached) $ac_c" 1>&6 8980else 8981 cat > conftest.$ac_ext <<EOF 8982#line 8983 "configure" 8983#include "confdefs.h" 8984/* System header to define __stub macros and hopefully few prototypes, 8985 which can conflict with char $ac_func(); below. */ 8986#include <assert.h> 8987/* Override any gcc2 internal prototype to avoid an error. */ 8988/* We use char because int might match the return type of a gcc2 8989 builtin and then its argument prototype would still apply. */ 8990char $ac_func(); 8991 8992int main() { 8993 8994/* The GNU C library defines this for functions which it implements 8995 to always fail with ENOSYS. Some functions are actually named 8996 something starting with __ and the normal name is an alias. */ 8997#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8998choke me 8999#else 9000$ac_func(); 9001#endif 9002 9003; return 0; } 9004EOF 9005if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9006 rm -rf conftest* 9007 eval "ac_cv_func_$ac_func=yes" 9008else 9009 echo "configure: failed program was:" >&5 9010 cat conftest.$ac_ext >&5 9011 rm -rf conftest* 9012 eval "ac_cv_func_$ac_func=no" 9013fi 9014rm -f conftest* 9015fi 9016 9017if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 9018 echo "$ac_t""yes" 1>&6 9019 9020ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 9021cat >> confdefs.h <<EOF 9022#define $ac_tr_func 1 9023EOF 9024 9025else 9026 echo "$ac_t""no" 1>&6 9027LIBOBJS="$LIBOBJS ${ac_func}.o" 9028fi 9029 9030: << END 9031@@@funcs="$funcs strcasecmp strncasecmp strdup strerror strftime"@@@ 9032END 9033done 9034 9035for ac_func in strlcat strlcpy strlwr 9036do 9037echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9038echo "configure:9039: checking for $ac_func" >&5 9039if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 9040 echo $ac_n "(cached) $ac_c" 1>&6 9041else 9042 cat > conftest.$ac_ext <<EOF 9043#line 9044 "configure" 9044#include "confdefs.h" 9045/* System header to define __stub macros and hopefully few prototypes, 9046 which can conflict with char $ac_func(); below. */ 9047#include <assert.h> 9048/* Override any gcc2 internal prototype to avoid an error. */ 9049/* We use char because int might match the return type of a gcc2 9050 builtin and then its argument prototype would still apply. */ 9051char $ac_func(); 9052 9053int main() { 9054 9055/* The GNU C library defines this for functions which it implements 9056 to always fail with ENOSYS. Some functions are actually named 9057 something starting with __ and the normal name is an alias. */ 9058#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9059choke me 9060#else 9061$ac_func(); 9062#endif 9063 9064; return 0; } 9065EOF 9066if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9067 rm -rf conftest* 9068 eval "ac_cv_func_$ac_func=yes" 9069else 9070 echo "configure: failed program was:" >&5 9071 cat conftest.$ac_ext >&5 9072 rm -rf conftest* 9073 eval "ac_cv_func_$ac_func=no" 9074fi 9075rm -f conftest* 9076fi 9077 9078if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 9079 echo "$ac_t""yes" 1>&6 9080 9081ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 9082cat >> confdefs.h <<EOF 9083#define $ac_tr_func 1 9084EOF 9085 9086else 9087 echo "$ac_t""no" 1>&6 9088LIBOBJS="$LIBOBJS ${ac_func}.o" 9089fi 9090 9091: << END 9092@@@funcs="$funcs strlcat strlcpy strlwr"@@@ 9093END 9094done 9095 9096for ac_func in strndup strnlen strptime strsep strtok_r strupr 9097do 9098echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9099echo "configure:9100: checking for $ac_func" >&5 9100if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 9101 echo $ac_n "(cached) $ac_c" 1>&6 9102else 9103 cat > conftest.$ac_ext <<EOF 9104#line 9105 "configure" 9105#include "confdefs.h" 9106/* System header to define __stub macros and hopefully few prototypes, 9107 which can conflict with char $ac_func(); below. */ 9108#include <assert.h> 9109/* Override any gcc2 internal prototype to avoid an error. */ 9110/* We use char because int might match the return type of a gcc2 9111 builtin and then its argument prototype would still apply. */ 9112char $ac_func(); 9113 9114int main() { 9115 9116/* The GNU C library defines this for functions which it implements 9117 to always fail with ENOSYS. Some functions are actually named 9118 something starting with __ and the normal name is an alias. */ 9119#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9120choke me 9121#else 9122$ac_func(); 9123#endif 9124 9125; return 0; } 9126EOF 9127if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9128 rm -rf conftest* 9129 eval "ac_cv_func_$ac_func=yes" 9130else 9131 echo "configure: failed program was:" >&5 9132 cat conftest.$ac_ext >&5 9133 rm -rf conftest* 9134 eval "ac_cv_func_$ac_func=no" 9135fi 9136rm -f conftest* 9137fi 9138 9139if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 9140 echo "$ac_t""yes" 1>&6 9141 9142ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 9143cat >> confdefs.h <<EOF 9144#define $ac_tr_func 1 9145EOF 9146 9147else 9148 echo "$ac_t""no" 1>&6 9149LIBOBJS="$LIBOBJS ${ac_func}.o" 9150fi 9151 9152: << END 9153@@@funcs="$funcs strndup strnlen strptime strsep strtok_r strupr"@@@ 9154END 9155done 9156 9157for ac_func in swab unsetenv verr verrx vsyslog 9158do 9159echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9160echo "configure:9161: checking for $ac_func" >&5 9161if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 9162 echo $ac_n "(cached) $ac_c" 1>&6 9163else 9164 cat > conftest.$ac_ext <<EOF 9165#line 9166 "configure" 9166#include "confdefs.h" 9167/* System header to define __stub macros and hopefully few prototypes, 9168 which can conflict with char $ac_func(); below. */ 9169#include <assert.h> 9170/* Override any gcc2 internal prototype to avoid an error. */ 9171/* We use char because int might match the return type of a gcc2 9172 builtin and then its argument prototype would still apply. */ 9173char $ac_func(); 9174 9175int main() { 9176 9177/* The GNU C library defines this for functions which it implements 9178 to always fail with ENOSYS. Some functions are actually named 9179 something starting with __ and the normal name is an alias. */ 9180#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9181choke me 9182#else 9183$ac_func(); 9184#endif 9185 9186; return 0; } 9187EOF 9188if { (eval echo configure:9189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9189 rm -rf conftest* 9190 eval "ac_cv_func_$ac_func=yes" 9191else 9192 echo "configure: failed program was:" >&5 9193 cat conftest.$ac_ext >&5 9194 rm -rf conftest* 9195 eval "ac_cv_func_$ac_func=no" 9196fi 9197rm -f conftest* 9198fi 9199 9200if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 9201 echo "$ac_t""yes" 1>&6 9202 9203ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 9204cat >> confdefs.h <<EOF 9205#define $ac_tr_func 1 9206EOF 9207 9208else 9209 echo "$ac_t""no" 1>&6 9210LIBOBJS="$LIBOBJS ${ac_func}.o" 9211fi 9212 9213: << END 9214@@@funcs="$funcs swab unsetenv verr verrx vsyslog"@@@ 9215END 9216done 9217 9218for ac_func in vwarn vwarnx warn warnx writev 9219do 9220echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9221echo "configure:9222: checking for $ac_func" >&5 9222if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 9223 echo $ac_n "(cached) $ac_c" 1>&6 9224else 9225 cat > conftest.$ac_ext <<EOF 9226#line 9227 "configure" 9227#include "confdefs.h" 9228/* System header to define __stub macros and hopefully few prototypes, 9229 which can conflict with char $ac_func(); below. */ 9230#include <assert.h> 9231/* Override any gcc2 internal prototype to avoid an error. */ 9232/* We use char because int might match the return type of a gcc2 9233 builtin and then its argument prototype would still apply. */ 9234char $ac_func(); 9235 9236int main() { 9237 9238/* The GNU C library defines this for functions which it implements 9239 to always fail with ENOSYS. Some functions are actually named 9240 something starting with __ and the normal name is an alias. */ 9241#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9242choke me 9243#else 9244$ac_func(); 9245#endif 9246 9247; return 0; } 9248EOF 9249if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9250 rm -rf conftest* 9251 eval "ac_cv_func_$ac_func=yes" 9252else 9253 echo "configure: failed program was:" >&5 9254 cat conftest.$ac_ext >&5 9255 rm -rf conftest* 9256 eval "ac_cv_func_$ac_func=no" 9257fi 9258rm -f conftest* 9259fi 9260 9261if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 9262 echo "$ac_t""yes" 1>&6 9263 9264ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 9265cat >> confdefs.h <<EOF 9266#define $ac_tr_func 1 9267EOF 9268 9269else 9270 echo "$ac_t""no" 1>&6 9271LIBOBJS="$LIBOBJS ${ac_func}.o" 9272fi 9273 9274: << END 9275@@@funcs="$funcs vwarn vwarnx warn warnx writev"@@@ 9276END 9277done 9278 9279 9280 9281if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 9282echo $ac_n "checking if setenv needs a prototype""... $ac_c" 1>&6 9283echo "configure:9284: checking if setenv needs a prototype" >&5 9284if eval "test \"`echo '$''{'ac_cv_func_setenv_noproto'+set}'`\" = set"; then 9285 echo $ac_n "(cached) $ac_c" 1>&6 9286else 9287 cat > conftest.$ac_ext <<EOF 9288#line 9289 "configure" 9289#include "confdefs.h" 9290#include <stdlib.h> 9291int main() { 9292struct foo { int foo; } xx; 9293extern int setenv (struct foo*); 9294setenv(&xx); 9295 9296; return 0; } 9297EOF 9298if { (eval echo configure:9299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9299 rm -rf conftest* 9300 eval "ac_cv_func_setenv_noproto=yes" 9301else 9302 echo "configure: failed program was:" >&5 9303 cat conftest.$ac_ext >&5 9304 rm -rf conftest* 9305 eval "ac_cv_func_setenv_noproto=no" 9306fi 9307rm -f conftest* 9308fi 9309 9310echo "$ac_t""$ac_cv_func_setenv_noproto" 1>&6 9311 9312if test "$ac_cv_func_setenv_noproto" = yes; then 9313 cat >> confdefs.h <<\EOF 9314#define NEED_SETENV_PROTO 1 9315EOF 9316 9317fi 9318 9319fi 9320 9321 9322if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 9323echo $ac_n "checking if unsetenv needs a prototype""... $ac_c" 1>&6 9324echo "configure:9325: checking if unsetenv needs a prototype" >&5 9325if eval "test \"`echo '$''{'ac_cv_func_unsetenv_noproto'+set}'`\" = set"; then 9326 echo $ac_n "(cached) $ac_c" 1>&6 9327else 9328 cat > conftest.$ac_ext <<EOF 9329#line 9330 "configure" 9330#include "confdefs.h" 9331#include <stdlib.h> 9332int main() { 9333struct foo { int foo; } xx; 9334extern int unsetenv (struct foo*); 9335unsetenv(&xx); 9336 9337; return 0; } 9338EOF 9339if { (eval echo configure:9340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9340 rm -rf conftest* 9341 eval "ac_cv_func_unsetenv_noproto=yes" 9342else 9343 echo "configure: failed program was:" >&5 9344 cat conftest.$ac_ext >&5 9345 rm -rf conftest* 9346 eval "ac_cv_func_unsetenv_noproto=no" 9347fi 9348rm -f conftest* 9349fi 9350 9351echo "$ac_t""$ac_cv_func_unsetenv_noproto" 1>&6 9352 9353if test "$ac_cv_func_unsetenv_noproto" = yes; then 9354 cat >> confdefs.h <<\EOF 9355#define NEED_UNSETENV_PROTO 1 9356EOF 9357 9358fi 9359 9360fi 9361 9362 9363if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 9364echo $ac_n "checking if gethostname needs a prototype""... $ac_c" 1>&6 9365echo "configure:9366: checking if gethostname needs a prototype" >&5 9366if eval "test \"`echo '$''{'ac_cv_func_gethostname_noproto'+set}'`\" = set"; then 9367 echo $ac_n "(cached) $ac_c" 1>&6 9368else 9369 cat > conftest.$ac_ext <<EOF 9370#line 9371 "configure" 9371#include "confdefs.h" 9372#include <unistd.h> 9373int main() { 9374struct foo { int foo; } xx; 9375extern int gethostname (struct foo*); 9376gethostname(&xx); 9377 9378; return 0; } 9379EOF 9380if { (eval echo configure:9381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9381 rm -rf conftest* 9382 eval "ac_cv_func_gethostname_noproto=yes" 9383else 9384 echo "configure: failed program was:" >&5 9385 cat conftest.$ac_ext >&5 9386 rm -rf conftest* 9387 eval "ac_cv_func_gethostname_noproto=no" 9388fi 9389rm -f conftest* 9390fi 9391 9392echo "$ac_t""$ac_cv_func_gethostname_noproto" 1>&6 9393 9394if test "$ac_cv_func_gethostname_noproto" = yes; then 9395 cat >> confdefs.h <<\EOF 9396#define NEED_GETHOSTNAME_PROTO 1 9397EOF 9398 9399fi 9400 9401fi 9402 9403 9404if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 9405echo $ac_n "checking if mkstemp needs a prototype""... $ac_c" 1>&6 9406echo "configure:9407: checking if mkstemp needs a prototype" >&5 9407if eval "test \"`echo '$''{'ac_cv_func_mkstemp_noproto'+set}'`\" = set"; then 9408 echo $ac_n "(cached) $ac_c" 1>&6 9409else 9410 cat > conftest.$ac_ext <<EOF 9411#line 9412 "configure" 9412#include "confdefs.h" 9413#include <unistd.h> 9414int main() { 9415struct foo { int foo; } xx; 9416extern int mkstemp (struct foo*); 9417mkstemp(&xx); 9418 9419; return 0; } 9420EOF 9421if { (eval echo configure:9422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9422 rm -rf conftest* 9423 eval "ac_cv_func_mkstemp_noproto=yes" 9424else 9425 echo "configure: failed program was:" >&5 9426 cat conftest.$ac_ext >&5 9427 rm -rf conftest* 9428 eval "ac_cv_func_mkstemp_noproto=no" 9429fi 9430rm -f conftest* 9431fi 9432 9433echo "$ac_t""$ac_cv_func_mkstemp_noproto" 1>&6 9434 9435if test "$ac_cv_func_mkstemp_noproto" = yes; then 9436 cat >> confdefs.h <<\EOF 9437#define NEED_MKSTEMP_PROTO 1 9438EOF 9439 9440fi 9441 9442fi 9443 9444 9445if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 9446echo $ac_n "checking if getusershell needs a prototype""... $ac_c" 1>&6 9447echo "configure:9448: checking if getusershell needs a prototype" >&5 9448if eval "test \"`echo '$''{'ac_cv_func_getusershell_noproto'+set}'`\" = set"; then 9449 echo $ac_n "(cached) $ac_c" 1>&6 9450else 9451 cat > conftest.$ac_ext <<EOF 9452#line 9453 "configure" 9453#include "confdefs.h" 9454#include <unistd.h> 9455int main() { 9456struct foo { int foo; } xx; 9457extern int getusershell (struct foo*); 9458getusershell(&xx); 9459 9460; return 0; } 9461EOF 9462if { (eval echo configure:9463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9463 rm -rf conftest* 9464 eval "ac_cv_func_getusershell_noproto=yes" 9465else 9466 echo "configure: failed program was:" >&5 9467 cat conftest.$ac_ext >&5 9468 rm -rf conftest* 9469 eval "ac_cv_func_getusershell_noproto=no" 9470fi 9471rm -f conftest* 9472fi 9473 9474echo "$ac_t""$ac_cv_func_getusershell_noproto" 1>&6 9475 9476if test "$ac_cv_func_getusershell_noproto" = yes; then 9477 cat >> confdefs.h <<\EOF 9478#define NEED_GETUSERSHELL_PROTO 1 9479EOF 9480 9481fi 9482 9483fi 9484 9485 9486 9487if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 9488echo $ac_n "checking if inet_aton needs a prototype""... $ac_c" 1>&6 9489echo "configure:9490: checking if inet_aton needs a prototype" >&5 9490if eval "test \"`echo '$''{'ac_cv_func_inet_aton_noproto'+set}'`\" = set"; then 9491 echo $ac_n "(cached) $ac_c" 1>&6 9492else 9493 cat > conftest.$ac_ext <<EOF 9494#line 9495 "configure" 9495#include "confdefs.h" 9496 9497#ifdef HAVE_SYS_TYPES_H 9498#include <sys/types.h> 9499#endif 9500#ifdef HAVE_SYS_SOCKET_H 9501#include <sys/socket.h> 9502#endif 9503#ifdef HAVE_NETINET_IN_H 9504#include <netinet/in.h> 9505#endif 9506#ifdef HAVE_ARPA_INET_H 9507#include <arpa/inet.h> 9508#endif 9509int main() { 9510struct foo { int foo; } xx; 9511extern int inet_aton (struct foo*); 9512inet_aton(&xx); 9513 9514; return 0; } 9515EOF 9516if { (eval echo configure:9517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9517 rm -rf conftest* 9518 eval "ac_cv_func_inet_aton_noproto=yes" 9519else 9520 echo "configure: failed program was:" >&5 9521 cat conftest.$ac_ext >&5 9522 rm -rf conftest* 9523 eval "ac_cv_func_inet_aton_noproto=no" 9524fi 9525rm -f conftest* 9526fi 9527 9528echo "$ac_t""$ac_cv_func_inet_aton_noproto" 1>&6 9529 9530if test "$ac_cv_func_inet_aton_noproto" = yes; then 9531 cat >> confdefs.h <<\EOF 9532#define NEED_INET_ATON_PROTO 1 9533EOF 9534 9535fi 9536 9537fi 9538 9539 9540 9541 9542 9543echo $ac_n "checking for crypt""... $ac_c" 1>&6 9544echo "configure:9545: checking for crypt" >&5 9545if eval "test \"`echo '$''{'ac_cv_funclib_crypt'+set}'`\" = set"; then 9546 echo $ac_n "(cached) $ac_c" 1>&6 9547else 9548 9549if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 9550 ac_save_LIBS="$LIBS" 9551 for ac_lib in "" crypt; do 9552 if test -n "$ac_lib"; then 9553 ac_lib="-l$ac_lib" 9554 else 9555 ac_lib="" 9556 fi 9557 LIBS=" $ac_lib $ac_save_LIBS" 9558 cat > conftest.$ac_ext <<EOF 9559#line 9560 "configure" 9560#include "confdefs.h" 9561 9562int main() { 9563crypt() 9564; return 0; } 9565EOF 9566if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9567 rm -rf conftest* 9568 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 9569else 9570 echo "configure: failed program was:" >&5 9571 cat conftest.$ac_ext >&5 9572fi 9573rm -f conftest* 9574 done 9575 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 9576 LIBS="$ac_save_LIBS" 9577fi 9578 9579fi 9580 9581 9582eval "ac_res=\$ac_cv_funclib_crypt" 9583 9584: << END 9585@@@funcs="$funcs crypt"@@@ 9586@@@libs="$libs "" crypt"@@@ 9587END 9588 9589# crypt 9590eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9591eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9592eval "LIB_crypt=$ac_res" 9593 9594case "$ac_res" in 9595 yes) 9596 eval "ac_cv_func_crypt=yes" 9597 eval "LIB_crypt=" 9598 cat >> confdefs.h <<EOF 9599#define $ac_tr_func 1 9600EOF 9601 9602 echo "$ac_t""yes" 1>&6 9603 ;; 9604 no) 9605 eval "ac_cv_func_crypt=no" 9606 eval "LIB_crypt=" 9607 echo "$ac_t""no" 1>&6 9608 ;; 9609 *) 9610 eval "ac_cv_func_crypt=yes" 9611 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9612 cat >> confdefs.h <<EOF 9613#define $ac_tr_func 1 9614EOF 9615 9616 cat >> confdefs.h <<EOF 9617#define $ac_tr_lib 1 9618EOF 9619 9620 echo "$ac_t""yes, in $ac_res" 1>&6 9621 ;; 9622esac 9623 9624 9625 9626LIB_roken='$(top_builddir)/lib/roken/libroken.la $(LIB_crypt) $(LIB_dbopen)' 9627 9628echo $ac_n "checking if realloc if broken""... $ac_c" 1>&6 9629echo "configure:9630: checking if realloc if broken" >&5 9630if eval "test \"`echo '$''{'ac_cv_func_realloc_broken'+set}'`\" = set"; then 9631 echo $ac_n "(cached) $ac_c" 1>&6 9632else 9633 9634ac_cv_func_realloc_broken=no 9635if test "$cross_compiling" = yes; then 9636 : 9637else 9638 cat > conftest.$ac_ext <<EOF 9639#line 9640 "configure" 9640#include "confdefs.h" 9641 9642#include <stddef.h> 9643#include <stdlib.h> 9644 9645int main() 9646{ 9647 return realloc(NULL, 17) == NULL; 9648} 9649 9650EOF 9651if { (eval echo configure:9652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 9652then 9653 : 9654else 9655 echo "configure: failed program was:" >&5 9656 cat conftest.$ac_ext >&5 9657 rm -fr conftest* 9658 ac_cv_func_realloc_broken=yes 9659fi 9660rm -fr conftest* 9661fi 9662 9663 9664fi 9665 9666echo "$ac_t""$ac_cv_func_realloc_broken" 1>&6 9667if test "$ac_cv_func_realloc_broken" = yes ; then 9668 cat >> confdefs.h <<\EOF 9669#define BROKEN_REALLOC 1 9670EOF 9671 9672fi 9673 9674 9675 9676 9677echo $ac_n "checking if gethostbyname is compatible with system prototype""... $ac_c" 1>&6 9678echo "configure:9679: checking if gethostbyname is compatible with system prototype" >&5 9679if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_proto_compat'+set}'`\" = set"; then 9680 echo $ac_n "(cached) $ac_c" 1>&6 9681else 9682 cat > conftest.$ac_ext <<EOF 9683#line 9684 "configure" 9684#include "confdefs.h" 9685 9686#ifdef HAVE_SYS_TYPES_H 9687#include <sys/types.h> 9688#endif 9689#ifdef HAVE_SYS_SOCKET_H 9690#include <sys/socket.h> 9691#endif 9692#ifdef HAVE_NETINET_IN_H 9693#include <netinet/in.h> 9694#endif 9695#ifdef HAVE_ARPA_INET_H 9696#include <arpa/inet.h> 9697#endif 9698#ifdef HAVE_NETDB_H 9699#include <netdb.h> 9700#endif 9701 9702int main() { 9703struct hostent *gethostbyname(const char *); 9704; return 0; } 9705EOF 9706if { (eval echo configure:9707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9707 rm -rf conftest* 9708 eval "ac_cv_func_gethostbyname_proto_compat=yes" 9709else 9710 echo "configure: failed program was:" >&5 9711 cat conftest.$ac_ext >&5 9712 rm -rf conftest* 9713 eval "ac_cv_func_gethostbyname_proto_compat=no" 9714fi 9715rm -f conftest* 9716fi 9717 9718echo "$ac_t""$ac_cv_func_gethostbyname_proto_compat" 1>&6 9719 9720if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 9721 cat >> confdefs.h <<\EOF 9722#define GETHOSTBYNAME_PROTO_COMPATIBLE 1 9723EOF 9724 9725fi 9726 9727 9728 9729 9730echo $ac_n "checking if gethostbyaddr is compatible with system prototype""... $ac_c" 1>&6 9731echo "configure:9732: checking if gethostbyaddr is compatible with system prototype" >&5 9732if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_proto_compat'+set}'`\" = set"; then 9733 echo $ac_n "(cached) $ac_c" 1>&6 9734else 9735 cat > conftest.$ac_ext <<EOF 9736#line 9737 "configure" 9737#include "confdefs.h" 9738 9739#ifdef HAVE_SYS_TYPES_H 9740#include <sys/types.h> 9741#endif 9742#ifdef HAVE_SYS_SOCKET_H 9743#include <sys/socket.h> 9744#endif 9745#ifdef HAVE_NETINET_IN_H 9746#include <netinet/in.h> 9747#endif 9748#ifdef HAVE_ARPA_INET_H 9749#include <arpa/inet.h> 9750#endif 9751#ifdef HAVE_NETDB_H 9752#include <netdb.h> 9753#endif 9754 9755int main() { 9756struct hostent *gethostbyaddr(const void *, size_t, int); 9757; return 0; } 9758EOF 9759if { (eval echo configure:9760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9760 rm -rf conftest* 9761 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 9762else 9763 echo "configure: failed program was:" >&5 9764 cat conftest.$ac_ext >&5 9765 rm -rf conftest* 9766 eval "ac_cv_func_gethostbyaddr_proto_compat=no" 9767fi 9768rm -f conftest* 9769fi 9770 9771echo "$ac_t""$ac_cv_func_gethostbyaddr_proto_compat" 1>&6 9772 9773if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 9774 cat >> confdefs.h <<\EOF 9775#define GETHOSTBYADDR_PROTO_COMPATIBLE 1 9776EOF 9777 9778fi 9779 9780 9781 9782 9783echo $ac_n "checking if getservbyname is compatible with system prototype""... $ac_c" 1>&6 9784echo "configure:9785: checking if getservbyname is compatible with system prototype" >&5 9785if eval "test \"`echo '$''{'ac_cv_func_getservbyname_proto_compat'+set}'`\" = set"; then 9786 echo $ac_n "(cached) $ac_c" 1>&6 9787else 9788 cat > conftest.$ac_ext <<EOF 9789#line 9790 "configure" 9790#include "confdefs.h" 9791 9792#ifdef HAVE_SYS_TYPES_H 9793#include <sys/types.h> 9794#endif 9795#ifdef HAVE_SYS_SOCKET_H 9796#include <sys/socket.h> 9797#endif 9798#ifdef HAVE_NETINET_IN_H 9799#include <netinet/in.h> 9800#endif 9801#ifdef HAVE_ARPA_INET_H 9802#include <arpa/inet.h> 9803#endif 9804#ifdef HAVE_NETDB_H 9805#include <netdb.h> 9806#endif 9807 9808int main() { 9809struct servent *getservbyname(const char *, const char *); 9810; return 0; } 9811EOF 9812if { (eval echo configure:9813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9813 rm -rf conftest* 9814 eval "ac_cv_func_getservbyname_proto_compat=yes" 9815else 9816 echo "configure: failed program was:" >&5 9817 cat conftest.$ac_ext >&5 9818 rm -rf conftest* 9819 eval "ac_cv_func_getservbyname_proto_compat=no" 9820fi 9821rm -f conftest* 9822fi 9823 9824echo "$ac_t""$ac_cv_func_getservbyname_proto_compat" 1>&6 9825 9826if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 9827 cat >> confdefs.h <<\EOF 9828#define GETSERVBYNAME_PROTO_COMPATIBLE 1 9829EOF 9830 9831fi 9832 9833 9834 9835 9836echo $ac_n "checking if openlog is compatible with system prototype""... $ac_c" 1>&6 9837echo "configure:9838: checking if openlog is compatible with system prototype" >&5 9838if eval "test \"`echo '$''{'ac_cv_func_openlog_proto_compat'+set}'`\" = set"; then 9839 echo $ac_n "(cached) $ac_c" 1>&6 9840else 9841 cat > conftest.$ac_ext <<EOF 9842#line 9843 "configure" 9843#include "confdefs.h" 9844 9845#ifdef HAVE_SYSLOG_H 9846#include <syslog.h> 9847#endif 9848 9849int main() { 9850void openlog(const char *, int, int); 9851; return 0; } 9852EOF 9853if { (eval echo configure:9854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9854 rm -rf conftest* 9855 eval "ac_cv_func_openlog_proto_compat=yes" 9856else 9857 echo "configure: failed program was:" >&5 9858 cat conftest.$ac_ext >&5 9859 rm -rf conftest* 9860 eval "ac_cv_func_openlog_proto_compat=no" 9861fi 9862rm -f conftest* 9863fi 9864 9865echo "$ac_t""$ac_cv_func_openlog_proto_compat" 1>&6 9866 9867if test "$ac_cv_func_openlog_proto_compat" = yes; then 9868 cat >> confdefs.h <<\EOF 9869#define OPENLOG_PROTO_COMPATIBLE 1 9870EOF 9871 9872fi 9873 9874 9875 9876 9877if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 9878echo $ac_n "checking if crypt needs a prototype""... $ac_c" 1>&6 9879echo "configure:9880: checking if crypt needs a prototype" >&5 9880if eval "test \"`echo '$''{'ac_cv_func_crypt_noproto'+set}'`\" = set"; then 9881 echo $ac_n "(cached) $ac_c" 1>&6 9882else 9883 cat > conftest.$ac_ext <<EOF 9884#line 9885 "configure" 9885#include "confdefs.h" 9886 9887#ifdef HAVE_CRYPT_H 9888#include <crypt.h> 9889#endif 9890#ifdef HAVE_UNISTD_H 9891#include <unistd.h> 9892#endif 9893 9894int main() { 9895struct foo { int foo; } xx; 9896extern int crypt (struct foo*); 9897crypt(&xx); 9898 9899; return 0; } 9900EOF 9901if { (eval echo configure:9902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9902 rm -rf conftest* 9903 eval "ac_cv_func_crypt_noproto=yes" 9904else 9905 echo "configure: failed program was:" >&5 9906 cat conftest.$ac_ext >&5 9907 rm -rf conftest* 9908 eval "ac_cv_func_crypt_noproto=no" 9909fi 9910rm -f conftest* 9911fi 9912 9913echo "$ac_t""$ac_cv_func_crypt_noproto" 1>&6 9914 9915if test "$ac_cv_func_crypt_noproto" = yes; then 9916 cat >> confdefs.h <<\EOF 9917#define NEED_CRYPT_PROTO 1 9918EOF 9919 9920fi 9921 9922fi 9923 9924 9925 9926if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 9927echo $ac_n "checking if strtok_r needs a prototype""... $ac_c" 1>&6 9928echo "configure:9929: checking if strtok_r needs a prototype" >&5 9929if eval "test \"`echo '$''{'ac_cv_func_strtok_r_noproto'+set}'`\" = set"; then 9930 echo $ac_n "(cached) $ac_c" 1>&6 9931else 9932 cat > conftest.$ac_ext <<EOF 9933#line 9934 "configure" 9934#include "confdefs.h" 9935 9936#include <string.h> 9937 9938int main() { 9939struct foo { int foo; } xx; 9940extern int strtok_r (struct foo*); 9941strtok_r(&xx); 9942 9943; return 0; } 9944EOF 9945if { (eval echo configure:9946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9946 rm -rf conftest* 9947 eval "ac_cv_func_strtok_r_noproto=yes" 9948else 9949 echo "configure: failed program was:" >&5 9950 cat conftest.$ac_ext >&5 9951 rm -rf conftest* 9952 eval "ac_cv_func_strtok_r_noproto=no" 9953fi 9954rm -f conftest* 9955fi 9956 9957echo "$ac_t""$ac_cv_func_strtok_r_noproto" 1>&6 9958 9959if test "$ac_cv_func_strtok_r_noproto" = yes; then 9960 cat >> confdefs.h <<\EOF 9961#define NEED_STRTOK_R_PROTO 1 9962EOF 9963 9964fi 9965 9966fi 9967 9968 9969 9970if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 9971echo $ac_n "checking if strsep needs a prototype""... $ac_c" 1>&6 9972echo "configure:9973: checking if strsep needs a prototype" >&5 9973if eval "test \"`echo '$''{'ac_cv_func_strsep_noproto'+set}'`\" = set"; then 9974 echo $ac_n "(cached) $ac_c" 1>&6 9975else 9976 cat > conftest.$ac_ext <<EOF 9977#line 9978 "configure" 9978#include "confdefs.h" 9979 9980#include <string.h> 9981 9982int main() { 9983struct foo { int foo; } xx; 9984extern int strsep (struct foo*); 9985strsep(&xx); 9986 9987; return 0; } 9988EOF 9989if { (eval echo configure:9990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9990 rm -rf conftest* 9991 eval "ac_cv_func_strsep_noproto=yes" 9992else 9993 echo "configure: failed program was:" >&5 9994 cat conftest.$ac_ext >&5 9995 rm -rf conftest* 9996 eval "ac_cv_func_strsep_noproto=no" 9997fi 9998rm -f conftest* 9999fi 10000 10001echo "$ac_t""$ac_cv_func_strsep_noproto" 1>&6 10002 10003if test "$ac_cv_func_strsep_noproto" = yes; then 10004 cat >> confdefs.h <<\EOF 10005#define NEED_STRSEP_PROTO 1 10006EOF 10007 10008fi 10009 10010fi 10011 10012 10013 10014echo $ac_n "checking for h_errno""... $ac_c" 1>&6 10015echo "configure:10016: checking for h_errno" >&5 10016if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then 10017 echo $ac_n "(cached) $ac_c" 1>&6 10018else 10019 10020cat > conftest.$ac_ext <<EOF 10021#line 10022 "configure" 10022#include "confdefs.h" 10023extern int h_errno; 10024int foo() { return h_errno; } 10025int main() { 10026foo() 10027; return 0; } 10028EOF 10029if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10030 rm -rf conftest* 10031 ac_cv_var_h_errno=yes 10032else 10033 echo "configure: failed program was:" >&5 10034 cat conftest.$ac_ext >&5 10035 rm -rf conftest* 10036 ac_cv_var_h_errno=no 10037fi 10038rm -f conftest* 10039 10040fi 10041 10042 10043 10044echo "$ac_t""`eval echo \\$ac_cv_var_h_errno`" 1>&6 10045if test `eval echo \\$ac_cv_var_h_errno` = yes; then 10046 cat >> confdefs.h <<EOF 10047#define HAVE_H_ERRNO 1 10048EOF 10049 10050 10051echo $ac_n "checking if h_errno is properly declared""... $ac_c" 1>&6 10052echo "configure:10053: checking if h_errno is properly declared" >&5 10053if eval "test \"`echo '$''{'ac_cv_var_h_errno_declaration'+set}'`\" = set"; then 10054 echo $ac_n "(cached) $ac_c" 1>&6 10055else 10056 10057cat > conftest.$ac_ext <<EOF 10058#line 10059 "configure" 10059#include "confdefs.h" 10060#ifdef HAVE_SYS_TYPES_H 10061#include <sys/types.h> 10062#endif 10063#ifdef HAVE_NETDB_H 10064#include <netdb.h> 10065#endif 10066extern struct { int foo; } h_errno; 10067int main() { 10068h_errno.foo = 1; 10069; return 0; } 10070EOF 10071if { (eval echo configure:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10072 rm -rf conftest* 10073 eval "ac_cv_var_h_errno_declaration=no" 10074else 10075 echo "configure: failed program was:" >&5 10076 cat conftest.$ac_ext >&5 10077 rm -rf conftest* 10078 eval "ac_cv_var_h_errno_declaration=yes" 10079fi 10080rm -f conftest* 10081 10082fi 10083 10084 10085 10086 10087echo "$ac_t""$ac_cv_var_h_errno_declaration" 1>&6 10088if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then 10089 cat >> confdefs.h <<\EOF 10090#define HAVE_H_ERRNO_DECLARATION 1 10091EOF 10092 10093fi 10094 10095 10096fi 10097 10098 10099 10100 10101echo $ac_n "checking for h_errlist""... $ac_c" 1>&6 10102echo "configure:10103: checking for h_errlist" >&5 10103if eval "test \"`echo '$''{'ac_cv_var_h_errlist'+set}'`\" = set"; then 10104 echo $ac_n "(cached) $ac_c" 1>&6 10105else 10106 10107cat > conftest.$ac_ext <<EOF 10108#line 10109 "configure" 10109#include "confdefs.h" 10110extern int h_errlist; 10111int foo() { return h_errlist; } 10112int main() { 10113foo() 10114; return 0; } 10115EOF 10116if { (eval echo configure:10117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10117 rm -rf conftest* 10118 ac_cv_var_h_errlist=yes 10119else 10120 echo "configure: failed program was:" >&5 10121 cat conftest.$ac_ext >&5 10122 rm -rf conftest* 10123 ac_cv_var_h_errlist=no 10124fi 10125rm -f conftest* 10126 10127fi 10128 10129 10130 10131echo "$ac_t""`eval echo \\$ac_cv_var_h_errlist`" 1>&6 10132if test `eval echo \\$ac_cv_var_h_errlist` = yes; then 10133 cat >> confdefs.h <<EOF 10134#define HAVE_H_ERRLIST 1 10135EOF 10136 10137 10138echo $ac_n "checking if h_errlist is properly declared""... $ac_c" 1>&6 10139echo "configure:10140: checking if h_errlist is properly declared" >&5 10140if eval "test \"`echo '$''{'ac_cv_var_h_errlist_declaration'+set}'`\" = set"; then 10141 echo $ac_n "(cached) $ac_c" 1>&6 10142else 10143 10144cat > conftest.$ac_ext <<EOF 10145#line 10146 "configure" 10146#include "confdefs.h" 10147#ifdef HAVE_NETDB_H 10148#include <netdb.h> 10149#endif 10150extern struct { int foo; } h_errlist; 10151int main() { 10152h_errlist.foo = 1; 10153; return 0; } 10154EOF 10155if { (eval echo configure:10156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10156 rm -rf conftest* 10157 eval "ac_cv_var_h_errlist_declaration=no" 10158else 10159 echo "configure: failed program was:" >&5 10160 cat conftest.$ac_ext >&5 10161 rm -rf conftest* 10162 eval "ac_cv_var_h_errlist_declaration=yes" 10163fi 10164rm -f conftest* 10165 10166fi 10167 10168 10169 10170 10171echo "$ac_t""$ac_cv_var_h_errlist_declaration" 1>&6 10172if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then 10173 cat >> confdefs.h <<\EOF 10174#define HAVE_H_ERRLIST_DECLARATION 1 10175EOF 10176 10177fi 10178 10179 10180fi 10181 10182 10183 10184 10185echo $ac_n "checking for h_nerr""... $ac_c" 1>&6 10186echo "configure:10187: checking for h_nerr" >&5 10187if eval "test \"`echo '$''{'ac_cv_var_h_nerr'+set}'`\" = set"; then 10188 echo $ac_n "(cached) $ac_c" 1>&6 10189else 10190 10191cat > conftest.$ac_ext <<EOF 10192#line 10193 "configure" 10193#include "confdefs.h" 10194extern int h_nerr; 10195int foo() { return h_nerr; } 10196int main() { 10197foo() 10198; return 0; } 10199EOF 10200if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10201 rm -rf conftest* 10202 ac_cv_var_h_nerr=yes 10203else 10204 echo "configure: failed program was:" >&5 10205 cat conftest.$ac_ext >&5 10206 rm -rf conftest* 10207 ac_cv_var_h_nerr=no 10208fi 10209rm -f conftest* 10210 10211fi 10212 10213 10214 10215echo "$ac_t""`eval echo \\$ac_cv_var_h_nerr`" 1>&6 10216if test `eval echo \\$ac_cv_var_h_nerr` = yes; then 10217 cat >> confdefs.h <<EOF 10218#define HAVE_H_NERR 1 10219EOF 10220 10221 10222echo $ac_n "checking if h_nerr is properly declared""... $ac_c" 1>&6 10223echo "configure:10224: checking if h_nerr is properly declared" >&5 10224if eval "test \"`echo '$''{'ac_cv_var_h_nerr_declaration'+set}'`\" = set"; then 10225 echo $ac_n "(cached) $ac_c" 1>&6 10226else 10227 10228cat > conftest.$ac_ext <<EOF 10229#line 10230 "configure" 10230#include "confdefs.h" 10231#ifdef HAVE_NETDB_H 10232#include <netdb.h> 10233#endif 10234extern struct { int foo; } h_nerr; 10235int main() { 10236h_nerr.foo = 1; 10237; return 0; } 10238EOF 10239if { (eval echo configure:10240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10240 rm -rf conftest* 10241 eval "ac_cv_var_h_nerr_declaration=no" 10242else 10243 echo "configure: failed program was:" >&5 10244 cat conftest.$ac_ext >&5 10245 rm -rf conftest* 10246 eval "ac_cv_var_h_nerr_declaration=yes" 10247fi 10248rm -f conftest* 10249 10250fi 10251 10252 10253 10254 10255echo "$ac_t""$ac_cv_var_h_nerr_declaration" 1>&6 10256if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then 10257 cat >> confdefs.h <<\EOF 10258#define HAVE_H_NERR_DECLARATION 1 10259EOF 10260 10261fi 10262 10263 10264fi 10265 10266 10267 10268 10269echo $ac_n "checking for __progname""... $ac_c" 1>&6 10270echo "configure:10271: checking for __progname" >&5 10271if eval "test \"`echo '$''{'ac_cv_var___progname'+set}'`\" = set"; then 10272 echo $ac_n "(cached) $ac_c" 1>&6 10273else 10274 10275cat > conftest.$ac_ext <<EOF 10276#line 10277 "configure" 10277#include "confdefs.h" 10278extern int __progname; 10279int foo() { return __progname; } 10280int main() { 10281foo() 10282; return 0; } 10283EOF 10284if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10285 rm -rf conftest* 10286 ac_cv_var___progname=yes 10287else 10288 echo "configure: failed program was:" >&5 10289 cat conftest.$ac_ext >&5 10290 rm -rf conftest* 10291 ac_cv_var___progname=no 10292fi 10293rm -f conftest* 10294 10295fi 10296 10297 10298 10299echo "$ac_t""`eval echo \\$ac_cv_var___progname`" 1>&6 10300if test `eval echo \\$ac_cv_var___progname` = yes; then 10301 cat >> confdefs.h <<EOF 10302#define HAVE___PROGNAME 1 10303EOF 10304 10305 10306echo $ac_n "checking if __progname is properly declared""... $ac_c" 1>&6 10307echo "configure:10308: checking if __progname is properly declared" >&5 10308if eval "test \"`echo '$''{'ac_cv_var___progname_declaration'+set}'`\" = set"; then 10309 echo $ac_n "(cached) $ac_c" 1>&6 10310else 10311 10312cat > conftest.$ac_ext <<EOF 10313#line 10314 "configure" 10314#include "confdefs.h" 10315#ifdef HAVE_ERR_H 10316#include <err.h> 10317#endif 10318extern struct { int foo; } __progname; 10319int main() { 10320__progname.foo = 1; 10321; return 0; } 10322EOF 10323if { (eval echo configure:10324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10324 rm -rf conftest* 10325 eval "ac_cv_var___progname_declaration=no" 10326else 10327 echo "configure: failed program was:" >&5 10328 cat conftest.$ac_ext >&5 10329 rm -rf conftest* 10330 eval "ac_cv_var___progname_declaration=yes" 10331fi 10332rm -f conftest* 10333 10334fi 10335 10336 10337 10338 10339echo "$ac_t""$ac_cv_var___progname_declaration" 1>&6 10340if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then 10341 cat >> confdefs.h <<\EOF 10342#define HAVE___PROGNAME_DECLARATION 1 10343EOF 10344 10345fi 10346 10347 10348fi 10349 10350 10351 10352 10353echo $ac_n "checking if optarg is properly declared""... $ac_c" 1>&6 10354echo "configure:10355: checking if optarg is properly declared" >&5 10355if eval "test \"`echo '$''{'ac_cv_var_optarg_declaration'+set}'`\" = set"; then 10356 echo $ac_n "(cached) $ac_c" 1>&6 10357else 10358 10359cat > conftest.$ac_ext <<EOF 10360#line 10361 "configure" 10361#include "confdefs.h" 10362#include <stdlib.h> 10363#ifdef HAVE_UNISTD_H 10364#include <unistd.h> 10365#endif 10366extern struct { int foo; } optarg; 10367int main() { 10368optarg.foo = 1; 10369; return 0; } 10370EOF 10371if { (eval echo configure:10372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10372 rm -rf conftest* 10373 eval "ac_cv_var_optarg_declaration=no" 10374else 10375 echo "configure: failed program was:" >&5 10376 cat conftest.$ac_ext >&5 10377 rm -rf conftest* 10378 eval "ac_cv_var_optarg_declaration=yes" 10379fi 10380rm -f conftest* 10381 10382fi 10383 10384 10385 10386 10387echo "$ac_t""$ac_cv_var_optarg_declaration" 1>&6 10388if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then 10389 cat >> confdefs.h <<\EOF 10390#define HAVE_OPTARG_DECLARATION 1 10391EOF 10392 10393fi 10394 10395 10396 10397echo $ac_n "checking if optind is properly declared""... $ac_c" 1>&6 10398echo "configure:10399: checking if optind is properly declared" >&5 10399if eval "test \"`echo '$''{'ac_cv_var_optind_declaration'+set}'`\" = set"; then 10400 echo $ac_n "(cached) $ac_c" 1>&6 10401else 10402 10403cat > conftest.$ac_ext <<EOF 10404#line 10405 "configure" 10405#include "confdefs.h" 10406#include <stdlib.h> 10407#ifdef HAVE_UNISTD_H 10408#include <unistd.h> 10409#endif 10410extern struct { int foo; } optind; 10411int main() { 10412optind.foo = 1; 10413; return 0; } 10414EOF 10415if { (eval echo configure:10416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10416 rm -rf conftest* 10417 eval "ac_cv_var_optind_declaration=no" 10418else 10419 echo "configure: failed program was:" >&5 10420 cat conftest.$ac_ext >&5 10421 rm -rf conftest* 10422 eval "ac_cv_var_optind_declaration=yes" 10423fi 10424rm -f conftest* 10425 10426fi 10427 10428 10429 10430 10431echo "$ac_t""$ac_cv_var_optind_declaration" 1>&6 10432if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then 10433 cat >> confdefs.h <<\EOF 10434#define HAVE_OPTIND_DECLARATION 1 10435EOF 10436 10437fi 10438 10439 10440 10441echo $ac_n "checking if opterr is properly declared""... $ac_c" 1>&6 10442echo "configure:10443: checking if opterr is properly declared" >&5 10443if eval "test \"`echo '$''{'ac_cv_var_opterr_declaration'+set}'`\" = set"; then 10444 echo $ac_n "(cached) $ac_c" 1>&6 10445else 10446 10447cat > conftest.$ac_ext <<EOF 10448#line 10449 "configure" 10449#include "confdefs.h" 10450#include <stdlib.h> 10451#ifdef HAVE_UNISTD_H 10452#include <unistd.h> 10453#endif 10454extern struct { int foo; } opterr; 10455int main() { 10456opterr.foo = 1; 10457; return 0; } 10458EOF 10459if { (eval echo configure:10460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10460 rm -rf conftest* 10461 eval "ac_cv_var_opterr_declaration=no" 10462else 10463 echo "configure: failed program was:" >&5 10464 cat conftest.$ac_ext >&5 10465 rm -rf conftest* 10466 eval "ac_cv_var_opterr_declaration=yes" 10467fi 10468rm -f conftest* 10469 10470fi 10471 10472 10473 10474 10475echo "$ac_t""$ac_cv_var_opterr_declaration" 1>&6 10476if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then 10477 cat >> confdefs.h <<\EOF 10478#define HAVE_OPTERR_DECLARATION 1 10479EOF 10480 10481fi 10482 10483 10484 10485echo $ac_n "checking if optopt is properly declared""... $ac_c" 1>&6 10486echo "configure:10487: checking if optopt is properly declared" >&5 10487if eval "test \"`echo '$''{'ac_cv_var_optopt_declaration'+set}'`\" = set"; then 10488 echo $ac_n "(cached) $ac_c" 1>&6 10489else 10490 10491cat > conftest.$ac_ext <<EOF 10492#line 10493 "configure" 10493#include "confdefs.h" 10494#include <stdlib.h> 10495#ifdef HAVE_UNISTD_H 10496#include <unistd.h> 10497#endif 10498extern struct { int foo; } optopt; 10499int main() { 10500optopt.foo = 1; 10501; return 0; } 10502EOF 10503if { (eval echo configure:10504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10504 rm -rf conftest* 10505 eval "ac_cv_var_optopt_declaration=no" 10506else 10507 echo "configure: failed program was:" >&5 10508 cat conftest.$ac_ext >&5 10509 rm -rf conftest* 10510 eval "ac_cv_var_optopt_declaration=yes" 10511fi 10512rm -f conftest* 10513 10514fi 10515 10516 10517 10518 10519echo "$ac_t""$ac_cv_var_optopt_declaration" 1>&6 10520if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then 10521 cat >> confdefs.h <<\EOF 10522#define HAVE_OPTOPT_DECLARATION 1 10523EOF 10524 10525fi 10526 10527 10528 10529 10530echo $ac_n "checking if environ is properly declared""... $ac_c" 1>&6 10531echo "configure:10532: checking if environ is properly declared" >&5 10532if eval "test \"`echo '$''{'ac_cv_var_environ_declaration'+set}'`\" = set"; then 10533 echo $ac_n "(cached) $ac_c" 1>&6 10534else 10535 10536cat > conftest.$ac_ext <<EOF 10537#line 10538 "configure" 10538#include "confdefs.h" 10539#include <stdlib.h> 10540extern struct { int foo; } environ; 10541int main() { 10542environ.foo = 1; 10543; return 0; } 10544EOF 10545if { (eval echo configure:10546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10546 rm -rf conftest* 10547 eval "ac_cv_var_environ_declaration=no" 10548else 10549 echo "configure: failed program was:" >&5 10550 cat conftest.$ac_ext >&5 10551 rm -rf conftest* 10552 eval "ac_cv_var_environ_declaration=yes" 10553fi 10554rm -f conftest* 10555 10556fi 10557 10558 10559 10560 10561echo "$ac_t""$ac_cv_var_environ_declaration" 1>&6 10562if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then 10563 cat >> confdefs.h <<\EOF 10564#define HAVE_ENVIRON_DECLARATION 1 10565EOF 10566 10567fi 10568 10569 10570 10571 10572 10573 10574echo $ac_n "checking for ut_addr in struct utmp""... $ac_c" 1>&6 10575echo "configure:10576: checking for ut_addr in struct utmp" >&5 10576if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_addr'+set}'`\" = set"; then 10577 echo $ac_n "(cached) $ac_c" 1>&6 10578else 10579 10580cat > conftest.$ac_ext <<EOF 10581#line 10582 "configure" 10582#include "confdefs.h" 10583#include <utmp.h> 10584int main() { 10585struct utmp x; x.ut_addr; 10586; return 0; } 10587EOF 10588if { (eval echo configure:10589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10589 rm -rf conftest* 10590 ac_cv_type_struct_utmp_ut_addr=yes 10591else 10592 echo "configure: failed program was:" >&5 10593 cat conftest.$ac_ext >&5 10594 rm -rf conftest* 10595 ac_cv_type_struct_utmp_ut_addr=no 10596fi 10597rm -f conftest* 10598fi 10599 10600echo "$ac_t""$ac_cv_type_struct_utmp_ut_addr" 1>&6 10601if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then 10602 10603 cat >> confdefs.h <<\EOF 10604#define HAVE_STRUCT_UTMP_UT_ADDR 1 10605EOF 10606 10607 10608fi 10609 10610 10611 10612 10613echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6 10614echo "configure:10615: checking for ut_host in struct utmp" >&5 10615if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_host'+set}'`\" = set"; then 10616 echo $ac_n "(cached) $ac_c" 1>&6 10617else 10618 10619cat > conftest.$ac_ext <<EOF 10620#line 10621 "configure" 10621#include "confdefs.h" 10622#include <utmp.h> 10623int main() { 10624struct utmp x; x.ut_host; 10625; return 0; } 10626EOF 10627if { (eval echo configure:10628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10628 rm -rf conftest* 10629 ac_cv_type_struct_utmp_ut_host=yes 10630else 10631 echo "configure: failed program was:" >&5 10632 cat conftest.$ac_ext >&5 10633 rm -rf conftest* 10634 ac_cv_type_struct_utmp_ut_host=no 10635fi 10636rm -f conftest* 10637fi 10638 10639echo "$ac_t""$ac_cv_type_struct_utmp_ut_host" 1>&6 10640if test "$ac_cv_type_struct_utmp_ut_host" = yes; then 10641 10642 cat >> confdefs.h <<\EOF 10643#define HAVE_STRUCT_UTMP_UT_HOST 1 10644EOF 10645 10646 10647fi 10648 10649 10650 10651 10652echo $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6 10653echo "configure:10654: checking for ut_id in struct utmp" >&5 10654if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_id'+set}'`\" = set"; then 10655 echo $ac_n "(cached) $ac_c" 1>&6 10656else 10657 10658cat > conftest.$ac_ext <<EOF 10659#line 10660 "configure" 10660#include "confdefs.h" 10661#include <utmp.h> 10662int main() { 10663struct utmp x; x.ut_id; 10664; return 0; } 10665EOF 10666if { (eval echo configure:10667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10667 rm -rf conftest* 10668 ac_cv_type_struct_utmp_ut_id=yes 10669else 10670 echo "configure: failed program was:" >&5 10671 cat conftest.$ac_ext >&5 10672 rm -rf conftest* 10673 ac_cv_type_struct_utmp_ut_id=no 10674fi 10675rm -f conftest* 10676fi 10677 10678echo "$ac_t""$ac_cv_type_struct_utmp_ut_id" 1>&6 10679if test "$ac_cv_type_struct_utmp_ut_id" = yes; then 10680 10681 cat >> confdefs.h <<\EOF 10682#define HAVE_STRUCT_UTMP_UT_ID 1 10683EOF 10684 10685 10686fi 10687 10688 10689 10690 10691echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6 10692echo "configure:10693: checking for ut_pid in struct utmp" >&5 10693if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_pid'+set}'`\" = set"; then 10694 echo $ac_n "(cached) $ac_c" 1>&6 10695else 10696 10697cat > conftest.$ac_ext <<EOF 10698#line 10699 "configure" 10699#include "confdefs.h" 10700#include <utmp.h> 10701int main() { 10702struct utmp x; x.ut_pid; 10703; return 0; } 10704EOF 10705if { (eval echo configure:10706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10706 rm -rf conftest* 10707 ac_cv_type_struct_utmp_ut_pid=yes 10708else 10709 echo "configure: failed program was:" >&5 10710 cat conftest.$ac_ext >&5 10711 rm -rf conftest* 10712 ac_cv_type_struct_utmp_ut_pid=no 10713fi 10714rm -f conftest* 10715fi 10716 10717echo "$ac_t""$ac_cv_type_struct_utmp_ut_pid" 1>&6 10718if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then 10719 10720 cat >> confdefs.h <<\EOF 10721#define HAVE_STRUCT_UTMP_UT_PID 1 10722EOF 10723 10724 10725fi 10726 10727 10728 10729 10730echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6 10731echo "configure:10732: checking for ut_type in struct utmp" >&5 10732if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_type'+set}'`\" = set"; then 10733 echo $ac_n "(cached) $ac_c" 1>&6 10734else 10735 10736cat > conftest.$ac_ext <<EOF 10737#line 10738 "configure" 10738#include "confdefs.h" 10739#include <utmp.h> 10740int main() { 10741struct utmp x; x.ut_type; 10742; return 0; } 10743EOF 10744if { (eval echo configure:10745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10745 rm -rf conftest* 10746 ac_cv_type_struct_utmp_ut_type=yes 10747else 10748 echo "configure: failed program was:" >&5 10749 cat conftest.$ac_ext >&5 10750 rm -rf conftest* 10751 ac_cv_type_struct_utmp_ut_type=no 10752fi 10753rm -f conftest* 10754fi 10755 10756echo "$ac_t""$ac_cv_type_struct_utmp_ut_type" 1>&6 10757if test "$ac_cv_type_struct_utmp_ut_type" = yes; then 10758 10759 cat >> confdefs.h <<\EOF 10760#define HAVE_STRUCT_UTMP_UT_TYPE 1 10761EOF 10762 10763 10764fi 10765 10766 10767 10768 10769echo $ac_n "checking for ut_user in struct utmp""... $ac_c" 1>&6 10770echo "configure:10771: checking for ut_user in struct utmp" >&5 10771if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_user'+set}'`\" = set"; then 10772 echo $ac_n "(cached) $ac_c" 1>&6 10773else 10774 10775cat > conftest.$ac_ext <<EOF 10776#line 10777 "configure" 10777#include "confdefs.h" 10778#include <utmp.h> 10779int main() { 10780struct utmp x; x.ut_user; 10781; return 0; } 10782EOF 10783if { (eval echo configure:10784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10784 rm -rf conftest* 10785 ac_cv_type_struct_utmp_ut_user=yes 10786else 10787 echo "configure: failed program was:" >&5 10788 cat conftest.$ac_ext >&5 10789 rm -rf conftest* 10790 ac_cv_type_struct_utmp_ut_user=no 10791fi 10792rm -f conftest* 10793fi 10794 10795echo "$ac_t""$ac_cv_type_struct_utmp_ut_user" 1>&6 10796if test "$ac_cv_type_struct_utmp_ut_user" = yes; then 10797 10798 cat >> confdefs.h <<\EOF 10799#define HAVE_STRUCT_UTMP_UT_USER 1 10800EOF 10801 10802 10803fi 10804 10805 10806 10807 10808echo $ac_n "checking for ut_exit in struct utmpx""... $ac_c" 1>&6 10809echo "configure:10810: checking for ut_exit in struct utmpx" >&5 10810if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_exit'+set}'`\" = set"; then 10811 echo $ac_n "(cached) $ac_c" 1>&6 10812else 10813 10814cat > conftest.$ac_ext <<EOF 10815#line 10816 "configure" 10816#include "confdefs.h" 10817#include <utmpx.h> 10818int main() { 10819struct utmpx x; x.ut_exit; 10820; return 0; } 10821EOF 10822if { (eval echo configure:10823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10823 rm -rf conftest* 10824 ac_cv_type_struct_utmpx_ut_exit=yes 10825else 10826 echo "configure: failed program was:" >&5 10827 cat conftest.$ac_ext >&5 10828 rm -rf conftest* 10829 ac_cv_type_struct_utmpx_ut_exit=no 10830fi 10831rm -f conftest* 10832fi 10833 10834echo "$ac_t""$ac_cv_type_struct_utmpx_ut_exit" 1>&6 10835if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then 10836 10837 cat >> confdefs.h <<\EOF 10838#define HAVE_STRUCT_UTMPX_UT_EXIT 1 10839EOF 10840 10841 10842fi 10843 10844 10845 10846 10847echo $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6 10848echo "configure:10849: checking for ut_syslen in struct utmpx" >&5 10849if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_syslen'+set}'`\" = set"; then 10850 echo $ac_n "(cached) $ac_c" 1>&6 10851else 10852 10853cat > conftest.$ac_ext <<EOF 10854#line 10855 "configure" 10855#include "confdefs.h" 10856#include <utmpx.h> 10857int main() { 10858struct utmpx x; x.ut_syslen; 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_type_struct_utmpx_ut_syslen=yes 10864else 10865 echo "configure: failed program was:" >&5 10866 cat conftest.$ac_ext >&5 10867 rm -rf conftest* 10868 ac_cv_type_struct_utmpx_ut_syslen=no 10869fi 10870rm -f conftest* 10871fi 10872 10873echo "$ac_t""$ac_cv_type_struct_utmpx_ut_syslen" 1>&6 10874if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then 10875 10876 cat >> confdefs.h <<\EOF 10877#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 10878EOF 10879 10880 10881fi 10882 10883 10884 10885 10886 10887 10888echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 10889echo "configure:10890: checking for tm_gmtoff in struct tm" >&5 10890if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_gmtoff'+set}'`\" = set"; then 10891 echo $ac_n "(cached) $ac_c" 1>&6 10892else 10893 10894cat > conftest.$ac_ext <<EOF 10895#line 10896 "configure" 10896#include "confdefs.h" 10897#include <time.h> 10898int main() { 10899struct tm x; x.tm_gmtoff; 10900; return 0; } 10901EOF 10902if { (eval echo configure:10903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10903 rm -rf conftest* 10904 ac_cv_type_struct_tm_tm_gmtoff=yes 10905else 10906 echo "configure: failed program was:" >&5 10907 cat conftest.$ac_ext >&5 10908 rm -rf conftest* 10909 ac_cv_type_struct_tm_tm_gmtoff=no 10910fi 10911rm -f conftest* 10912fi 10913 10914echo "$ac_t""$ac_cv_type_struct_tm_tm_gmtoff" 1>&6 10915if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 10916 10917 cat >> confdefs.h <<\EOF 10918#define HAVE_STRUCT_TM_TM_GMTOFF 1 10919EOF 10920 10921 10922fi 10923 10924 10925 10926 10927echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 10928echo "configure:10929: checking for tm_zone in struct tm" >&5 10929if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_zone'+set}'`\" = set"; then 10930 echo $ac_n "(cached) $ac_c" 1>&6 10931else 10932 10933cat > conftest.$ac_ext <<EOF 10934#line 10935 "configure" 10935#include "confdefs.h" 10936#include <time.h> 10937int main() { 10938struct tm x; x.tm_zone; 10939; return 0; } 10940EOF 10941if { (eval echo configure:10942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10942 rm -rf conftest* 10943 ac_cv_type_struct_tm_tm_zone=yes 10944else 10945 echo "configure: failed program was:" >&5 10946 cat conftest.$ac_ext >&5 10947 rm -rf conftest* 10948 ac_cv_type_struct_tm_tm_zone=no 10949fi 10950rm -f conftest* 10951fi 10952 10953echo "$ac_t""$ac_cv_type_struct_tm_tm_zone" 1>&6 10954if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 10955 10956 cat >> confdefs.h <<\EOF 10957#define HAVE_STRUCT_TM_TM_ZONE 1 10958EOF 10959 10960 10961fi 10962 10963 10964 10965 10966 10967echo $ac_n "checking for timezone""... $ac_c" 1>&6 10968echo "configure:10969: checking for timezone" >&5 10969if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then 10970 echo $ac_n "(cached) $ac_c" 1>&6 10971else 10972 10973cat > conftest.$ac_ext <<EOF 10974#line 10975 "configure" 10975#include "confdefs.h" 10976extern int timezone; 10977int foo() { return timezone; } 10978int main() { 10979foo() 10980; return 0; } 10981EOF 10982if { (eval echo configure:10983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10983 rm -rf conftest* 10984 ac_cv_var_timezone=yes 10985else 10986 echo "configure: failed program was:" >&5 10987 cat conftest.$ac_ext >&5 10988 rm -rf conftest* 10989 ac_cv_var_timezone=no 10990fi 10991rm -f conftest* 10992 10993fi 10994 10995 10996 10997echo "$ac_t""`eval echo \\$ac_cv_var_timezone`" 1>&6 10998if test `eval echo \\$ac_cv_var_timezone` = yes; then 10999 cat >> confdefs.h <<EOF 11000#define HAVE_TIMEZONE 1 11001EOF 11002 11003 11004echo $ac_n "checking if timezone is properly declared""... $ac_c" 1>&6 11005echo "configure:11006: checking if timezone is properly declared" >&5 11006if eval "test \"`echo '$''{'ac_cv_var_timezone_declaration'+set}'`\" = set"; then 11007 echo $ac_n "(cached) $ac_c" 1>&6 11008else 11009 11010cat > conftest.$ac_ext <<EOF 11011#line 11012 "configure" 11012#include "confdefs.h" 11013#include <time.h> 11014extern struct { int foo; } timezone; 11015int main() { 11016timezone.foo = 1; 11017; return 0; } 11018EOF 11019if { (eval echo configure:11020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11020 rm -rf conftest* 11021 eval "ac_cv_var_timezone_declaration=no" 11022else 11023 echo "configure: failed program was:" >&5 11024 cat conftest.$ac_ext >&5 11025 rm -rf conftest* 11026 eval "ac_cv_var_timezone_declaration=yes" 11027fi 11028rm -f conftest* 11029 11030fi 11031 11032 11033 11034 11035echo "$ac_t""$ac_cv_var_timezone_declaration" 1>&6 11036if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 11037 cat >> confdefs.h <<\EOF 11038#define HAVE_TIMEZONE_DECLARATION 1 11039EOF 11040 11041fi 11042 11043 11044fi 11045 11046 11047 11048 11049 11050cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 11051echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6 11052echo "configure:11053: checking for sa_family_t" >&5 11053if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then 11054 echo $ac_n "(cached) $ac_c" 1>&6 11055else 11056 cat > conftest.$ac_ext <<EOF 11057#line 11058 "configure" 11058#include "confdefs.h" 11059#include <sys/types.h> 11060#if STDC_HEADERS 11061#include <stdlib.h> 11062#include <stddef.h> 11063#endif 11064#include <sys/socket.h> 11065int main() { 11066sa_family_t foo; 11067; return 0; } 11068EOF 11069if { (eval echo configure:11070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11070 rm -rf conftest* 11071 eval "ac_cv_type_$cv=yes" 11072else 11073 echo "configure: failed program was:" >&5 11074 cat conftest.$ac_ext >&5 11075 rm -rf conftest* 11076 eval "ac_cv_type_$cv=no" 11077fi 11078rm -f conftest* 11079fi 11080echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6 11081if test `eval echo \\$ac_cv_type_$cv` = yes; then 11082 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11083 11084: << END 11085@@@funcs="$funcs sa_family_t"@@@ 11086END 11087 11088 cat >> confdefs.h <<EOF 11089#define $ac_tr_hdr 1 11090EOF 11091 11092fi 11093 11094 11095 11096 11097cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 11098echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 11099echo "configure:11100: checking for socklen_t" >&5 11100if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then 11101 echo $ac_n "(cached) $ac_c" 1>&6 11102else 11103 cat > conftest.$ac_ext <<EOF 11104#line 11105 "configure" 11105#include "confdefs.h" 11106#include <sys/types.h> 11107#if STDC_HEADERS 11108#include <stdlib.h> 11109#include <stddef.h> 11110#endif 11111#include <sys/socket.h> 11112int main() { 11113socklen_t foo; 11114; return 0; } 11115EOF 11116if { (eval echo configure:11117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11117 rm -rf conftest* 11118 eval "ac_cv_type_$cv=yes" 11119else 11120 echo "configure: failed program was:" >&5 11121 cat conftest.$ac_ext >&5 11122 rm -rf conftest* 11123 eval "ac_cv_type_$cv=no" 11124fi 11125rm -f conftest* 11126fi 11127echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6 11128if test `eval echo \\$ac_cv_type_$cv` = yes; then 11129 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11130 11131: << END 11132@@@funcs="$funcs socklen_t"@@@ 11133END 11134 11135 cat >> confdefs.h <<EOF 11136#define $ac_tr_hdr 1 11137EOF 11138 11139fi 11140 11141 11142 11143 11144cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 11145echo $ac_n "checking for struct sockaddr""... $ac_c" 1>&6 11146echo "configure:11147: checking for struct sockaddr" >&5 11147if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then 11148 echo $ac_n "(cached) $ac_c" 1>&6 11149else 11150 cat > conftest.$ac_ext <<EOF 11151#line 11152 "configure" 11152#include "confdefs.h" 11153#include <sys/types.h> 11154#if STDC_HEADERS 11155#include <stdlib.h> 11156#include <stddef.h> 11157#endif 11158#include <sys/socket.h> 11159int main() { 11160struct sockaddr foo; 11161; return 0; } 11162EOF 11163if { (eval echo configure:11164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11164 rm -rf conftest* 11165 eval "ac_cv_type_$cv=yes" 11166else 11167 echo "configure: failed program was:" >&5 11168 cat conftest.$ac_ext >&5 11169 rm -rf conftest* 11170 eval "ac_cv_type_$cv=no" 11171fi 11172rm -f conftest* 11173fi 11174echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6 11175if test `eval echo \\$ac_cv_type_$cv` = yes; then 11176 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11177 11178: << END 11179@@@funcs="$funcs struct_sockaddr"@@@ 11180END 11181 11182 cat >> confdefs.h <<EOF 11183#define $ac_tr_hdr 1 11184EOF 11185 11186fi 11187 11188 11189 11190 11191cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 11192echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6 11193echo "configure:11194: checking for struct sockaddr_storage" >&5 11194if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then 11195 echo $ac_n "(cached) $ac_c" 1>&6 11196else 11197 cat > conftest.$ac_ext <<EOF 11198#line 11199 "configure" 11199#include "confdefs.h" 11200#include <sys/types.h> 11201#if STDC_HEADERS 11202#include <stdlib.h> 11203#include <stddef.h> 11204#endif 11205#include <sys/socket.h> 11206int main() { 11207struct sockaddr_storage foo; 11208; return 0; } 11209EOF 11210if { (eval echo configure:11211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11211 rm -rf conftest* 11212 eval "ac_cv_type_$cv=yes" 11213else 11214 echo "configure: failed program was:" >&5 11215 cat conftest.$ac_ext >&5 11216 rm -rf conftest* 11217 eval "ac_cv_type_$cv=no" 11218fi 11219rm -f conftest* 11220fi 11221echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6 11222if test `eval echo \\$ac_cv_type_$cv` = yes; then 11223 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11224 11225: << END 11226@@@funcs="$funcs struct_sockaddr_storage"@@@ 11227END 11228 11229 cat >> confdefs.h <<EOF 11230#define $ac_tr_hdr 1 11231EOF 11232 11233fi 11234 11235 11236 11237 11238cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 11239echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6 11240echo "configure:11241: checking for struct addrinfo" >&5 11241if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then 11242 echo $ac_n "(cached) $ac_c" 1>&6 11243else 11244 cat > conftest.$ac_ext <<EOF 11245#line 11246 "configure" 11246#include "confdefs.h" 11247#include <sys/types.h> 11248#if STDC_HEADERS 11249#include <stdlib.h> 11250#include <stddef.h> 11251#endif 11252#include <netdb.h> 11253int main() { 11254struct addrinfo foo; 11255; return 0; } 11256EOF 11257if { (eval echo configure:11258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11258 rm -rf conftest* 11259 eval "ac_cv_type_$cv=yes" 11260else 11261 echo "configure: failed program was:" >&5 11262 cat conftest.$ac_ext >&5 11263 rm -rf conftest* 11264 eval "ac_cv_type_$cv=no" 11265fi 11266rm -f conftest* 11267fi 11268echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6 11269if test `eval echo \\$ac_cv_type_$cv` = yes; then 11270 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11271 11272: << END 11273@@@funcs="$funcs struct_addrinfo"@@@ 11274END 11275 11276 cat >> confdefs.h <<EOF 11277#define $ac_tr_hdr 1 11278EOF 11279 11280fi 11281 11282 11283 11284 11285echo $ac_n "checking for struct winsize""... $ac_c" 1>&6 11286echo "configure:11287: checking for struct winsize" >&5 11287if eval "test \"`echo '$''{'ac_cv_struct_winsize'+set}'`\" = set"; then 11288 echo $ac_n "(cached) $ac_c" 1>&6 11289else 11290 11291ac_cv_struct_winsize=no 11292for i in sys/termios.h sys/ioctl.h; do 11293cat > conftest.$ac_ext <<EOF 11294#line 11295 "configure" 11295#include "confdefs.h" 11296#include <$i> 11297EOF 11298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11299 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 11300 rm -rf conftest* 11301 ac_cv_struct_winsize=yes; break 11302fi 11303rm -f conftest* 11304done 11305 11306fi 11307 11308if test "$ac_cv_struct_winsize" = "yes"; then 11309 cat >> confdefs.h <<\EOF 11310#define HAVE_STRUCT_WINSIZE 1 11311EOF 11312 11313fi 11314echo "$ac_t""$ac_cv_struct_winsize" 1>&6 11315cat > conftest.$ac_ext <<EOF 11316#line 11317 "configure" 11317#include "confdefs.h" 11318#include <termios.h> 11319EOF 11320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11321 egrep "ws_xpixel" >/dev/null 2>&1; then 11322 rm -rf conftest* 11323 cat >> confdefs.h <<\EOF 11324#define HAVE_WS_XPIXEL 1 11325EOF 11326 11327fi 11328rm -f conftest* 11329 11330cat > conftest.$ac_ext <<EOF 11331#line 11332 "configure" 11332#include "confdefs.h" 11333#include <termios.h> 11334EOF 11335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11336 egrep "ws_ypixel" >/dev/null 2>&1; then 11337 rm -rf conftest* 11338 cat >> confdefs.h <<\EOF 11339#define HAVE_WS_YPIXEL 1 11340EOF 11341 11342fi 11343rm -f conftest* 11344 11345 11346 11347 11348 11349echo $ac_n "checking for struct spwd""... $ac_c" 1>&6 11350echo "configure:11351: checking for struct spwd" >&5 11351if eval "test \"`echo '$''{'ac_cv_struct_spwd'+set}'`\" = set"; then 11352 echo $ac_n "(cached) $ac_c" 1>&6 11353else 11354 11355cat > conftest.$ac_ext <<EOF 11356#line 11357 "configure" 11357#include "confdefs.h" 11358#include <pwd.h> 11359#ifdef HAVE_SHADOW_H 11360#include <shadow.h> 11361#endif 11362int main() { 11363struct spwd foo; 11364; return 0; } 11365EOF 11366if { (eval echo configure:11367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11367 rm -rf conftest* 11368 ac_cv_struct_spwd=yes 11369else 11370 echo "configure: failed program was:" >&5 11371 cat conftest.$ac_ext >&5 11372 rm -rf conftest* 11373 ac_cv_struct_spwd=no 11374fi 11375rm -f conftest* 11376 11377fi 11378 11379echo "$ac_t""$ac_cv_struct_spwd" 1>&6 11380 11381if test "$ac_cv_struct_spwd" = "yes"; then 11382 cat >> confdefs.h <<\EOF 11383#define HAVE_STRUCT_SPWD 1 11384EOF 11385 11386fi 11387 11388 11389 11390 11391 11392echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6 11393echo "configure:11394: checking for sa_len in struct sockaddr" >&5 11394if eval "test \"`echo '$''{'ac_cv_type_struct_sockaddr_sa_len'+set}'`\" = set"; then 11395 echo $ac_n "(cached) $ac_c" 1>&6 11396else 11397 11398cat > conftest.$ac_ext <<EOF 11399#line 11400 "configure" 11400#include "confdefs.h" 11401#include <sys/types.h> 11402#include <sys/socket.h> 11403int main() { 11404struct sockaddr x; x.sa_len; 11405; return 0; } 11406EOF 11407if { (eval echo configure:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11408 rm -rf conftest* 11409 ac_cv_type_struct_sockaddr_sa_len=yes 11410else 11411 echo "configure: failed program was:" >&5 11412 cat conftest.$ac_ext >&5 11413 rm -rf conftest* 11414 ac_cv_type_struct_sockaddr_sa_len=no 11415fi 11416rm -f conftest* 11417fi 11418 11419echo "$ac_t""$ac_cv_type_struct_sockaddr_sa_len" 1>&6 11420if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 11421 11422 cat >> confdefs.h <<\EOF 11423#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 11424EOF 11425 11426 11427fi 11428 11429 11430 11431 11432 11433for i in int8_t int16_t int32_t int64_t; do 11434 echo $ac_n "checking for $i""... $ac_c" 1>&6 11435echo "configure:11436: checking for $i" >&5 11436 11437if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then 11438 echo $ac_n "(cached) $ac_c" 1>&6 11439else 11440 cat > conftest.$ac_ext <<EOF 11441#line 11442 "configure" 11442#include "confdefs.h" 11443 11444#ifdef HAVE_INTTYPES_H 11445#include <inttypes.h> 11446#endif 11447#ifdef HAVE_SYS_TYPES_H 11448#include <sys/types.h> 11449#endif 11450#ifdef HAVE_SYS_BITYPES_H 11451#include <sys/bitypes.h> 11452#endif 11453#ifdef HAVE_BIND_BITYPES_H 11454#include <bind/bitypes.h> 11455#endif 11456#ifdef HAVE_NETINET_IN6_MACHTYPES_H 11457#include <netinet/in6_machtypes.h> 11458#endif 11459 11460int main() { 11461$i x; 11462 11463; return 0; } 11464EOF 11465if { (eval echo configure:11466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11466 rm -rf conftest* 11467 eval ac_cv_type_$i=yes 11468else 11469 echo "configure: failed program was:" >&5 11470 cat conftest.$ac_ext >&5 11471 rm -rf conftest* 11472 eval ac_cv_type_$i=no 11473fi 11474rm -f conftest* 11475fi 11476 11477 eval ac_res=\$ac_cv_type_$i 11478 if test "$ac_res" = yes; then 11479 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 11480 cat >> confdefs.h <<EOF 11481#define $type 1 11482EOF 11483 11484 fi 11485 echo "$ac_t""$ac_res" 1>&6 11486done 11487 11488 11489for i in u_int8_t u_int16_t u_int32_t u_int64_t; do 11490 echo $ac_n "checking for $i""... $ac_c" 1>&6 11491echo "configure:11492: checking for $i" >&5 11492 11493if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then 11494 echo $ac_n "(cached) $ac_c" 1>&6 11495else 11496 cat > conftest.$ac_ext <<EOF 11497#line 11498 "configure" 11498#include "confdefs.h" 11499 11500#ifdef HAVE_INTTYPES_H 11501#include <inttypes.h> 11502#endif 11503#ifdef HAVE_SYS_TYPES_H 11504#include <sys/types.h> 11505#endif 11506#ifdef HAVE_SYS_BITYPES_H 11507#include <sys/bitypes.h> 11508#endif 11509#ifdef HAVE_BIND_BITYPES_H 11510#include <bind/bitypes.h> 11511#endif 11512#ifdef HAVE_NETINET_IN6_MACHTYPES_H 11513#include <netinet/in6_machtypes.h> 11514#endif 11515 11516int main() { 11517$i x; 11518 11519; return 0; } 11520EOF 11521if { (eval echo configure:11522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11522 rm -rf conftest* 11523 eval ac_cv_type_$i=yes 11524else 11525 echo "configure: failed program was:" >&5 11526 cat conftest.$ac_ext >&5 11527 rm -rf conftest* 11528 eval ac_cv_type_$i=no 11529fi 11530rm -f conftest* 11531fi 11532 11533 eval ac_res=\$ac_cv_type_$i 11534 if test "$ac_res" = yes; then 11535 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 11536 cat >> confdefs.h <<EOF 11537#define $type 1 11538EOF 11539 11540 fi 11541 echo "$ac_t""$ac_res" 1>&6 11542done 11543 11544 11545 11546 11547 11548 11549 11550echo $ac_n "checking for el_init""... $ac_c" 1>&6 11551echo "configure:11552: checking for el_init" >&5 11552if eval "test \"`echo '$''{'ac_cv_funclib_el_init'+set}'`\" = set"; then 11553 echo $ac_n "(cached) $ac_c" 1>&6 11554else 11555 11556if eval "test \"\$ac_cv_func_el_init\" != yes" ; then 11557 ac_save_LIBS="$LIBS" 11558 for ac_lib in "" edit; do 11559 if test -n "$ac_lib"; then 11560 ac_lib="-l$ac_lib" 11561 else 11562 ac_lib="" 11563 fi 11564 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS" 11565 cat > conftest.$ac_ext <<EOF 11566#line 11567 "configure" 11567#include "confdefs.h" 11568 11569int main() { 11570el_init() 11571; return 0; } 11572EOF 11573if { (eval echo configure:11574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11574 rm -rf conftest* 11575 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break 11576else 11577 echo "configure: failed program was:" >&5 11578 cat conftest.$ac_ext >&5 11579fi 11580rm -f conftest* 11581 done 11582 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}" 11583 LIBS="$ac_save_LIBS" 11584fi 11585 11586fi 11587 11588 11589eval "ac_res=\$ac_cv_funclib_el_init" 11590 11591: << END 11592@@@funcs="$funcs el_init"@@@ 11593@@@libs="$libs "" edit"@@@ 11594END 11595 11596# el_init 11597eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11598eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11599eval "LIB_el_init=$ac_res" 11600 11601case "$ac_res" in 11602 yes) 11603 eval "ac_cv_func_el_init=yes" 11604 eval "LIB_el_init=" 11605 cat >> confdefs.h <<EOF 11606#define $ac_tr_func 1 11607EOF 11608 11609 echo "$ac_t""yes" 1>&6 11610 ;; 11611 no) 11612 eval "ac_cv_func_el_init=no" 11613 eval "LIB_el_init=" 11614 echo "$ac_t""no" 1>&6 11615 ;; 11616 *) 11617 eval "ac_cv_func_el_init=yes" 11618 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11619 cat >> confdefs.h <<EOF 11620#define $ac_tr_func 1 11621EOF 11622 11623 cat >> confdefs.h <<EOF 11624#define $ac_tr_lib 1 11625EOF 11626 11627 echo "$ac_t""yes, in $ac_res" 1>&6 11628 ;; 11629esac 11630 11631 11632if test "$ac_cv_func_el_init" = yes ; then 11633 echo $ac_n "checking for four argument el_init""... $ac_c" 1>&6 11634echo "configure:11635: checking for four argument el_init" >&5 11635if eval "test \"`echo '$''{'ac_cv_func_el_init_four'+set}'`\" = set"; then 11636 echo $ac_n "(cached) $ac_c" 1>&6 11637else 11638 11639 cat > conftest.$ac_ext <<EOF 11640#line 11641 "configure" 11641#include "confdefs.h" 11642#include <stdio.h> 11643 #include <histedit.h> 11644int main() { 11645el_init("", NULL, NULL, NULL); 11646; return 0; } 11647EOF 11648if { (eval echo configure:11649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11649 rm -rf conftest* 11650 ac_cv_func_el_init_four=yes 11651else 11652 echo "configure: failed program was:" >&5 11653 cat conftest.$ac_ext >&5 11654 rm -rf conftest* 11655 ac_cv_func_el_init_four=no 11656fi 11657rm -f conftest* 11658fi 11659 11660echo "$ac_t""$ac_cv_func_el_init_four" 1>&6 11661 if test "$ac_cv_func_el_init_four" = yes; then 11662 cat >> confdefs.h <<\EOF 11663#define HAVE_FOUR_VALUED_EL_INIT 1 11664EOF 11665 11666 fi 11667fi 11668 11669 11670ac_foo=no 11671if test "$with_readline" = yes; then 11672 : 11673elif test "$ac_cv_func_readline" = yes; then 11674 : 11675elif test "$ac_cv_func_el_init" = yes; then 11676 ac_foo=yes 11677 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.a $LIB_el_init" 11678else 11679 LIB_readline='$(top_builddir)/lib/editline/libeditline.a' 11680fi 11681 11682 11683if test "$ac_foo" = yes; then 11684 el_compat_TRUE= 11685 el_compat_FALSE='#' 11686else 11687 el_compat_TRUE='#' 11688 el_compat_FALSE= 11689fi 11690if test "$readline_libdir"; then 11691 LIB_readline="-rpath $readline_libdir $LIB_readline" 11692fi 11693LIB_readline="$LIB_readline \$(LIB_tgetent)" 11694cat >> confdefs.h <<\EOF 11695#define HAVE_READLINE 1 11696EOF 11697 11698 11699cat >> confdefs.h <<\EOF 11700#define AUTHENTICATION 1 11701EOF 11702cat >> confdefs.h <<\EOF 11703#define ENCRYPTION 1 11704EOF 11705cat >> confdefs.h <<\EOF 11706#define DES_ENCRYPTION 1 11707EOF 11708cat >> confdefs.h <<\EOF 11709#define DIAGNOSTICS 1 11710EOF 11711cat >> confdefs.h <<\EOF 11712#define OLD_ENVIRON 1 11713EOF 11714if false; then 11715cat >> confdefs.h <<\EOF 11716#define ENV_HACK 1 11717EOF 11718 11719fi 11720 11721# Simple test for streamspty, based on the existance of getmsg(), alas 11722# this breaks on SunOS4 which have streams but BSD-like ptys 11723# 11724# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 11725 11726echo $ac_n "checking for streamspty""... $ac_c" 1>&6 11727echo "configure:11728: checking for streamspty" >&5 11728case "$host" in 11729*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux10*) 11730 krb_cv_sys_streamspty=no 11731 ;; 11732*) 11733 krb_cv_sys_streamspty="$ac_cv_func_getmsg" 11734 ;; 11735esac 11736if test "$krb_cv_sys_streamspty" = yes; then 11737 cat >> confdefs.h <<\EOF 11738#define STREAMSPTY 1 11739EOF 11740 11741fi 11742echo "$ac_t""$krb_cv_sys_streamspty" 1>&6 11743 11744 11745echo $ac_n "checking which authentication modules should be built""... $ac_c" 1>&6 11746echo "configure:11747: checking which authentication modules should be built" >&5 11747 11748LIB_AUTH_SUBDIRS= 11749 11750if test "$ac_cv_header_siad_h" = yes; then 11751 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 11752fi 11753 11754if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then 11755 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 11756fi 11757 11758case "${host}" in 11759*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 11760esac 11761 11762echo "$ac_t""$LIB_AUTH_SUBDIRS" 1>&6 11763 11764 11765 11766 11767test "x$prefix" = xNONE && prefix=$ac_default_prefix 11768test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11769 11770for i in bin lib libexec sbin; do 11771 i=${i}dir 11772 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'` 11773 x="\$${i}" 11774 eval y="$x" 11775 while test "x$y" != "x$x"; do 11776 x="$y" 11777 eval y="$x" 11778 done 11779 cat >> confdefs.h <<EOF 11780#define $foo "$x" 11781EOF 11782 11783done 11784 11785if false; then 11786 # hack to shut up automake 11787 LIBOBJS="$LIBOBJS make-print-version.o" 11788fi 11789LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'` 11790 11791trap '' 1 2 15 11792cat > confcache <<\EOF 11793# This file is a shell script that caches the results of configure 11794# tests run on this system so they can be shared between configure 11795# scripts and configure runs. It is not useful on other systems. 11796# If it contains results you don't want to keep, you may remove or edit it. 11797# 11798# By default, configure uses ./config.cache as the cache file, 11799# creating it if it does not exist already. You can give configure 11800# the --cache-file=FILE option to use a different cache file; that is 11801# what configure does when it calls configure scripts in 11802# subdirectories, so they share the cache. 11803# Giving --cache-file=/dev/null disables caching, for debugging configure. 11804# config.status only pays attention to the cache file if you give it the 11805# --recheck option to rerun configure. 11806# 11807EOF 11808# The following way of writing the cache mishandles newlines in values, 11809# but we know of no workaround that is simple, portable, and efficient. 11810# So, don't put newlines in cache variables' values. 11811# Ultrix sh set writes to stderr and can't be redirected directly, 11812# and sets the high bit in the cache file unless we assign to the vars. 11813(set) 2>&1 | 11814 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11815 *ac_space=\ *) 11816 # `set' does not quote correctly, so add quotes (double-quote substitution 11817 # turns \\\\ into \\, and sed turns \\ into \). 11818 sed -n \ 11819 -e "s/'/'\\\\''/g" \ 11820 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 11821 ;; 11822 *) 11823 # `set' quotes correctly as required by POSIX, so do not add quotes. 11824 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 11825 ;; 11826 esac >> confcache 11827if cmp -s $cache_file confcache; then 11828 : 11829else 11830 if test -w $cache_file; then 11831 echo "updating cache $cache_file" 11832 cat confcache > $cache_file 11833 else 11834 echo "not updating unwritable cache $cache_file" 11835 fi 11836fi 11837rm -f confcache 11838 11839trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 11840 11841test "x$prefix" = xNONE && prefix=$ac_default_prefix 11842# Let make expand exec_prefix. 11843test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11844 11845# Any assignment to VPATH causes Sun make to only execute 11846# the first set of double-colon rules, so remove it if not needed. 11847# If there is a colon in the path, we need to keep it. 11848if test "x$srcdir" = x.; then 11849 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 11850fi 11851 11852trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 11853 11854DEFS=-DHAVE_CONFIG_H 11855 11856# Without the "./", some shells look in PATH for config.status. 11857: ${CONFIG_STATUS=./config.status} 11858 11859echo creating $CONFIG_STATUS 11860rm -f $CONFIG_STATUS 11861cat > $CONFIG_STATUS <<EOF 11862#! /bin/sh 11863# Generated automatically by configure. 11864# Run this file to recreate the current configuration. 11865# This directory was configured as follows, 11866# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11867# 11868# $0 $ac_configure_args 11869# 11870# Compiler output produced by configure, useful for debugging 11871# configure, is in ./config.log if it exists. 11872 11873ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 11874for ac_option 11875do 11876 case "\$ac_option" in 11877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11878 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 11879 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 11880 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 11881 echo "$CONFIG_STATUS generated by autoconf version 2.13" 11882 exit 0 ;; 11883 -help | --help | --hel | --he | --h) 11884 echo "\$ac_cs_usage"; exit 0 ;; 11885 *) echo "\$ac_cs_usage"; exit 1 ;; 11886 esac 11887done 11888 11889ac_given_srcdir=$srcdir 11890ac_given_INSTALL="$INSTALL" 11891 11892trap 'rm -fr `echo "Makefile \ 11893 include/Makefile \ 11894 include/kadm5/Makefile \ 11895 lib/Makefile \ 11896 lib/45/Makefile \ 11897 lib/auth/Makefile \ 11898 lib/auth/afskauthlib/Makefile \ 11899 lib/auth/pam/Makefile \ 11900 lib/auth/sia/Makefile \ 11901 lib/asn1/Makefile \ 11902 lib/com_err/Makefile \ 11903 lib/des/Makefile \ 11904 lib/editline/Makefile \ 11905 lib/gssapi/Makefile \ 11906 lib/hdb/Makefile \ 11907 lib/kadm5/Makefile \ 11908 lib/kafs/Makefile \ 11909 lib/krb5/Makefile \ 11910 lib/otp/Makefile \ 11911 lib/roken/Makefile \ 11912 lib/sl/Makefile \ 11913 kuser/Makefile \ 11914 kpasswd/Makefile \ 11915 kadmin/Makefile \ 11916 admin/Makefile \ 11917 kdc/Makefile \ 11918 appl/Makefile \ 11919 appl/afsutil/Makefile \ 11920 appl/ftp/Makefile \ 11921 appl/ftp/common/Makefile \ 11922 appl/ftp/ftp/Makefile \ 11923 appl/ftp/ftpd/Makefile \ 11924 appl/kauth/Makefile \ 11925 appl/kx/Makefile \ 11926 appl/login/Makefile \ 11927 appl/otp/Makefile \ 11928 appl/popper/Makefile \ 11929 appl/push/Makefile \ 11930 appl/rsh/Makefile \ 11931 appl/su/Makefile \ 11932 appl/xnlock/Makefile \ 11933 appl/telnet/Makefile \ 11934 appl/telnet/libtelnet/Makefile \ 11935 appl/telnet/telnet/Makefile \ 11936 appl/telnet/telnetd/Makefile \ 11937 appl/test/Makefile \ 11938 appl/kf/Makefile \ 11939 doc/Makefile \ 11940 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 11941EOF 11942cat >> $CONFIG_STATUS <<EOF 11943 11944# Protect against being on the right side of a sed subst in config.status. 11945sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 11946 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 11947$ac_vpsub 11948$extrasub 11949s%@SHELL@%$SHELL%g 11950s%@CFLAGS@%$CFLAGS%g 11951s%@CPPFLAGS@%$CPPFLAGS%g 11952s%@CXXFLAGS@%$CXXFLAGS%g 11953s%@FFLAGS@%$FFLAGS%g 11954s%@DEFS@%$DEFS%g 11955s%@LDFLAGS@%$LDFLAGS%g 11956s%@LIBS@%$LIBS%g 11957s%@exec_prefix@%$exec_prefix%g 11958s%@prefix@%$prefix%g 11959s%@program_transform_name@%$program_transform_name%g 11960s%@bindir@%$bindir%g 11961s%@sbindir@%$sbindir%g 11962s%@libexecdir@%$libexecdir%g 11963s%@datadir@%$datadir%g 11964s%@sysconfdir@%$sysconfdir%g 11965s%@sharedstatedir@%$sharedstatedir%g 11966s%@localstatedir@%$localstatedir%g 11967s%@libdir@%$libdir%g 11968s%@includedir@%$includedir%g 11969s%@oldincludedir@%$oldincludedir%g 11970s%@infodir@%$infodir%g 11971s%@mandir@%$mandir%g 11972s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 11973s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 11974s%@INSTALL_DATA@%$INSTALL_DATA%g 11975s%@PACKAGE@%$PACKAGE%g 11976s%@VERSION@%$VERSION%g 11977s%@ACLOCAL@%$ACLOCAL%g 11978s%@AUTOCONF@%$AUTOCONF%g 11979s%@AUTOMAKE@%$AUTOMAKE%g 11980s%@AUTOHEADER@%$AUTOHEADER%g 11981s%@MAKEINFO@%$MAKEINFO%g 11982s%@SET_MAKE@%$SET_MAKE%g 11983s%@host@%$host%g 11984s%@host_alias@%$host_alias%g 11985s%@host_cpu@%$host_cpu%g 11986s%@host_vendor@%$host_vendor%g 11987s%@host_os@%$host_os%g 11988s%@CANONICAL_HOST@%$CANONICAL_HOST%g 11989s%@CC@%$CC%g 11990s%@OBJEXT@%$OBJEXT%g 11991s%@EXEEXT@%$EXEEXT%g 11992s%@YACC@%$YACC%g 11993s%@LEX@%$LEX%g 11994s%@LEXLIB@%$LEXLIB%g 11995s%@CPP@%$CPP%g 11996s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g 11997s%@RANLIB@%$RANLIB%g 11998s%@AWK@%$AWK%g 11999s%@LN_S@%$LN_S%g 12000s%@LD@%$LD%g 12001s%@NM@%$NM%g 12002s%@LIBTOOL@%$LIBTOOL%g 12003s%@WFLAGS@%$WFLAGS%g 12004s%@WFLAGS_NOUNUSED@%$WFLAGS_NOUNUSED%g 12005s%@WFLAGS_NOIMPLICITINT@%$WFLAGS_NOIMPLICITINT%g 12006s%@INCLUDE_krb4@%$INCLUDE_krb4%g 12007s%@LIB_krb4@%$LIB_krb4%g 12008s%@EXTRA_LIB45@%$EXTRA_LIB45%g 12009s%@LIB_krb_enable_debug@%$LIB_krb_enable_debug%g 12010s%@LIB_krb_disable_debug@%$LIB_krb_disable_debug%g 12011s%@LIB_krb_get_our_ip_for_realm@%$LIB_krb_get_our_ip_for_realm%g 12012s%@KRB4_TRUE@%$KRB4_TRUE%g 12013s%@KRB4_FALSE@%$KRB4_FALSE%g 12014s%@KRB5_TRUE@%$KRB5_TRUE%g 12015s%@KRB5_FALSE@%$KRB5_FALSE%g 12016s%@LIB_kdb@%$LIB_kdb%g 12017s%@AIX_TRUE@%$AIX_TRUE%g 12018s%@AIX_FALSE@%$AIX_FALSE%g 12019s%@AIX4_TRUE@%$AIX4_TRUE%g 12020s%@AIX4_FALSE@%$AIX4_FALSE%g 12021s%@AIX_DYNAMIC_AFS_TRUE@%$AIX_DYNAMIC_AFS_TRUE%g 12022s%@AIX_DYNAMIC_AFS_FALSE@%$AIX_DYNAMIC_AFS_FALSE%g 12023s%@LIB_dlopen@%$LIB_dlopen%g 12024s%@HAVE_DLOPEN_TRUE@%$HAVE_DLOPEN_TRUE%g 12025s%@HAVE_DLOPEN_FALSE@%$HAVE_DLOPEN_FALSE%g 12026s%@AFS_EXTRA_LD@%$AFS_EXTRA_LD%g 12027s%@AIX_EXTRA_KAFS@%$AIX_EXTRA_KAFS%g 12028s%@LIB_otp@%$LIB_otp%g 12029s%@OTP_TRUE@%$OTP_TRUE%g 12030s%@OTP_FALSE@%$OTP_FALSE%g 12031s%@LIB_security@%$LIB_security%g 12032s%@NROFF@%$NROFF%g 12033s%@GROFF@%$GROFF%g 12034s%@CATMAN@%$CATMAN%g 12035s%@CATMAN_TRUE@%$CATMAN_TRUE%g 12036s%@CATMAN_FALSE@%$CATMAN_FALSE%g 12037s%@CATMANEXT@%$CATMANEXT%g 12038s%@INCLUDE_readline@%$INCLUDE_readline%g 12039s%@LIB_readline@%$LIB_readline%g 12040s%@INCLUDE_hesiod@%$INCLUDE_hesiod%g 12041s%@LIB_hesiod@%$LIB_hesiod%g 12042s%@X_CFLAGS@%$X_CFLAGS%g 12043s%@X_PRE_LIBS@%$X_PRE_LIBS%g 12044s%@X_LIBS@%$X_LIBS%g 12045s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 12046s%@MAKE_X_PROGS_BIN_PROGS@%$MAKE_X_PROGS_BIN_PROGS%g 12047s%@MAKE_X_PROGS_BIN_SCRPTS@%$MAKE_X_PROGS_BIN_SCRPTS%g 12048s%@MAKE_X_PROGS_LIBEXEC_PROGS@%$MAKE_X_PROGS_LIBEXEC_PROGS%g 12049s%@LIB_XauWriteAuth@%$LIB_XauWriteAuth%g 12050s%@LIB_XauReadAuth@%$LIB_XauReadAuth%g 12051s%@LIB_XauFileName@%$LIB_XauFileName%g 12052s%@NEED_WRITEAUTH_TRUE@%$NEED_WRITEAUTH_TRUE%g 12053s%@NEED_WRITEAUTH_FALSE@%$NEED_WRITEAUTH_FALSE%g 12054s%@have_err_h_TRUE@%$have_err_h_TRUE%g 12055s%@have_err_h_FALSE@%$have_err_h_FALSE%g 12056s%@have_fnmatch_h_TRUE@%$have_fnmatch_h_TRUE%g 12057s%@have_fnmatch_h_FALSE@%$have_fnmatch_h_FALSE%g 12058s%@LIB_socket@%$LIB_socket%g 12059s%@LIB_gethostbyname@%$LIB_gethostbyname%g 12060s%@LIB_syslog@%$LIB_syslog%g 12061s%@LIB_logwtmp@%$LIB_logwtmp%g 12062s%@LIB_tgetent@%$LIB_tgetent%g 12063s%@LIB_gethostbyname2@%$LIB_gethostbyname2%g 12064s%@LIB_res_search@%$LIB_res_search%g 12065s%@LIB_dn_expand@%$LIB_dn_expand%g 12066s%@have_glob_h_TRUE@%$have_glob_h_TRUE%g 12067s%@have_glob_h_FALSE@%$have_glob_h_FALSE%g 12068s%@LIB_dbopen@%$LIB_dbopen%g 12069s%@LIB_dbm_firstkey@%$LIB_dbm_firstkey%g 12070s%@DBLIB@%$DBLIB%g 12071s%@LIB_getpwnam_r@%$LIB_getpwnam_r%g 12072s%@LIB_getsockopt@%$LIB_getsockopt%g 12073s%@LIB_setsockopt@%$LIB_setsockopt%g 12074s%@VOID_RETSIGTYPE@%$VOID_RETSIGTYPE%g 12075s%@LIB_hstrerror@%$LIB_hstrerror%g 12076s%@LIBOBJS@%$LIBOBJS%g 12077s%@LIB_crypt@%$LIB_crypt%g 12078s%@LIB_roken@%$LIB_roken%g 12079s%@LIB_el_init@%$LIB_el_init%g 12080s%@el_compat_TRUE@%$el_compat_TRUE%g 12081s%@el_compat_FALSE@%$el_compat_FALSE%g 12082s%@LIB_AUTH_SUBDIRS@%$LIB_AUTH_SUBDIRS%g 12083s%@LTLIBOBJS@%$LTLIBOBJS%g 12084 12085CEOF 12086EOF 12087 12088cat >> $CONFIG_STATUS <<\EOF 12089 12090# Split the substitutions into bite-sized pieces for seds with 12091# small command number limits, like on Digital OSF/1 and HP-UX. 12092ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 12093ac_file=1 # Number of current file. 12094ac_beg=1 # First line for current file. 12095ac_end=$ac_max_sed_cmds # Line after last line for current file. 12096ac_more_lines=: 12097ac_sed_cmds="" 12098while $ac_more_lines; do 12099 if test $ac_beg -gt 1; then 12100 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 12101 else 12102 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 12103 fi 12104 if test ! -s conftest.s$ac_file; then 12105 ac_more_lines=false 12106 rm -f conftest.s$ac_file 12107 else 12108 if test -z "$ac_sed_cmds"; then 12109 ac_sed_cmds="sed -f conftest.s$ac_file" 12110 else 12111 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 12112 fi 12113 ac_file=`expr $ac_file + 1` 12114 ac_beg=$ac_end 12115 ac_end=`expr $ac_end + $ac_max_sed_cmds` 12116 fi 12117done 12118if test -z "$ac_sed_cmds"; then 12119 ac_sed_cmds=cat 12120fi 12121EOF 12122 12123cat >> $CONFIG_STATUS <<EOF 12124 12125CONFIG_FILES=\${CONFIG_FILES-"Makefile \ 12126 include/Makefile \ 12127 include/kadm5/Makefile \ 12128 lib/Makefile \ 12129 lib/45/Makefile \ 12130 lib/auth/Makefile \ 12131 lib/auth/afskauthlib/Makefile \ 12132 lib/auth/pam/Makefile \ 12133 lib/auth/sia/Makefile \ 12134 lib/asn1/Makefile \ 12135 lib/com_err/Makefile \ 12136 lib/des/Makefile \ 12137 lib/editline/Makefile \ 12138 lib/gssapi/Makefile \ 12139 lib/hdb/Makefile \ 12140 lib/kadm5/Makefile \ 12141 lib/kafs/Makefile \ 12142 lib/krb5/Makefile \ 12143 lib/otp/Makefile \ 12144 lib/roken/Makefile \ 12145 lib/sl/Makefile \ 12146 kuser/Makefile \ 12147 kpasswd/Makefile \ 12148 kadmin/Makefile \ 12149 admin/Makefile \ 12150 kdc/Makefile \ 12151 appl/Makefile \ 12152 appl/afsutil/Makefile \ 12153 appl/ftp/Makefile \ 12154 appl/ftp/common/Makefile \ 12155 appl/ftp/ftp/Makefile \ 12156 appl/ftp/ftpd/Makefile \ 12157 appl/kauth/Makefile \ 12158 appl/kx/Makefile \ 12159 appl/login/Makefile \ 12160 appl/otp/Makefile \ 12161 appl/popper/Makefile \ 12162 appl/push/Makefile \ 12163 appl/rsh/Makefile \ 12164 appl/su/Makefile \ 12165 appl/xnlock/Makefile \ 12166 appl/telnet/Makefile \ 12167 appl/telnet/libtelnet/Makefile \ 12168 appl/telnet/telnet/Makefile \ 12169 appl/telnet/telnetd/Makefile \ 12170 appl/test/Makefile \ 12171 appl/kf/Makefile \ 12172 doc/Makefile \ 12173"} 12174EOF 12175cat >> $CONFIG_STATUS <<\EOF 12176for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 12177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12178 case "$ac_file" in 12179 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 12180 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 12181 *) ac_file_in="${ac_file}.in" ;; 12182 esac 12183 12184 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 12185 12186 # Remove last slash and all that follows it. Not all systems have dirname. 12187 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 12188 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 12189 # The file is in a subdirectory. 12190 test ! -d "$ac_dir" && mkdir "$ac_dir" 12191 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 12192 # A "../" for each directory in $ac_dir_suffix. 12193 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 12194 else 12195 ac_dir_suffix= ac_dots= 12196 fi 12197 12198 case "$ac_given_srcdir" in 12199 .) srcdir=. 12200 if test -z "$ac_dots"; then top_srcdir=. 12201 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 12202 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 12203 *) # Relative path. 12204 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 12205 top_srcdir="$ac_dots$ac_given_srcdir" ;; 12206 esac 12207 12208 case "$ac_given_INSTALL" in 12209 [/$]*) INSTALL="$ac_given_INSTALL" ;; 12210 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 12211 esac 12212 12213 echo creating "$ac_file" 12214 rm -f "$ac_file" 12215 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 12216 case "$ac_file" in 12217 *Makefile*) ac_comsub="1i\\ 12218# $configure_input" ;; 12219 *) ac_comsub= ;; 12220 esac 12221 12222 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 12223 sed -e "$ac_comsub 12224s%@configure_input@%$configure_input%g 12225s%@srcdir@%$srcdir%g 12226s%@top_srcdir@%$top_srcdir%g 12227s%@INSTALL@%$INSTALL%g 12228" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 12229fi; done 12230rm -f conftest.s* 12231 12232# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 12233# NAME is the cpp macro being defined and VALUE is the value it is being given. 12234# 12235# ac_d sets the value in "#define NAME VALUE" lines. 12236ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12237ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 12238ac_dC='\3' 12239ac_dD='%g' 12240# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 12241ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12242ac_uB='\([ ]\)%\1#\2define\3' 12243ac_uC=' ' 12244ac_uD='\4%g' 12245# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12246ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12247ac_eB='$%\1#\2define\3' 12248ac_eC=' ' 12249ac_eD='%g' 12250 12251if test "${CONFIG_HEADERS+set}" != set; then 12252EOF 12253cat >> $CONFIG_STATUS <<EOF 12254 CONFIG_HEADERS="include/config.h" 12255EOF 12256cat >> $CONFIG_STATUS <<\EOF 12257fi 12258for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 12259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12260 case "$ac_file" in 12261 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 12262 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 12263 *) ac_file_in="${ac_file}.in" ;; 12264 esac 12265 12266 echo creating $ac_file 12267 12268 rm -f conftest.frag conftest.in conftest.out 12269 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 12270 cat $ac_file_inputs > conftest.in 12271 12272EOF 12273 12274# Transform confdefs.h into a sed script conftest.vals that substitutes 12275# the proper values into config.h.in to produce config.h. And first: 12276# Protect against being on the right side of a sed subst in config.status. 12277# Protect against being in an unquoted here document in config.status. 12278rm -f conftest.vals 12279cat > conftest.hdr <<\EOF 12280s/[\\&%]/\\&/g 12281s%[\\$`]%\\&%g 12282s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 12283s%ac_d%ac_u%gp 12284s%ac_u%ac_e%gp 12285EOF 12286sed -n -f conftest.hdr confdefs.h > conftest.vals 12287rm -f conftest.hdr 12288 12289# This sed command replaces #undef with comments. This is necessary, for 12290# example, in the case of _POSIX_SOURCE, which is predefined and required 12291# on some systems where configure will not decide to define it. 12292cat >> conftest.vals <<\EOF 12293s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 12294EOF 12295 12296# Break up conftest.vals because some shells have a limit on 12297# the size of here documents, and old seds have small limits too. 12298 12299rm -f conftest.tail 12300while : 12301do 12302 ac_lines=`grep -c . conftest.vals` 12303 # grep -c gives empty output for an empty file on some AIX systems. 12304 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 12305 # Write a limited-size here document to conftest.frag. 12306 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 12307 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 12308 echo 'CEOF 12309 sed -f conftest.frag conftest.in > conftest.out 12310 rm -f conftest.in 12311 mv conftest.out conftest.in 12312' >> $CONFIG_STATUS 12313 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 12314 rm -f conftest.vals 12315 mv conftest.tail conftest.vals 12316done 12317rm -f conftest.vals 12318 12319cat >> $CONFIG_STATUS <<\EOF 12320 rm -f conftest.frag conftest.h 12321 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 12322 cat conftest.in >> conftest.h 12323 rm -f conftest.in 12324 if cmp -s $ac_file conftest.h 2>/dev/null; then 12325 echo "$ac_file is unchanged" 12326 rm -f conftest.h 12327 else 12328 # Remove last slash and all that follows it. Not all systems have dirname. 12329 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 12330 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 12331 # The file is in a subdirectory. 12332 test ! -d "$ac_dir" && mkdir "$ac_dir" 12333 fi 12334 rm -f $ac_file 12335 mv conftest.h $ac_file 12336 fi 12337fi; done 12338 12339EOF 12340cat >> $CONFIG_STATUS <<EOF 12341 12342 12343EOF 12344cat >> $CONFIG_STATUS <<\EOF 12345test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h 12346 12347exit 0 12348EOF 12349chmod +x $CONFIG_STATUS 12350rm -fr confdefs* $ac_clean_files 12351test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 12352 12353 12354HEIMDALVERSION="$PACKAGE-$VERSION" 12355 12356cat > include/newversion.h.in <<EOF 12357char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$"; 12358char *heimdal_version = "$HEIMDALVERSION"; 12359EOF 12360 12361if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 12362 echo "include/version.h is unchanged" 12363 rm -f include/newversion.h.in 12364else 12365 echo "creating include/version.h" 12366 User=${USER-${LOGNAME}} 12367 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 12368 Date=`date` 12369 mv -f include/newversion.h.in include/version.h.in 12370 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 12371fi 12372