1#! /bin/sh 2# From configure.in Revision: 1.304 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.52 for heimdal 0.4e. 5# 6# Report bugs to <heimdal-bugs@pdc.kth.se>. 7# 8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 9# Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12 13# Avoid depending upon Character Ranges. 14as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17as_cr_digits='0123456789' 18as_cr_alnum=$as_cr_Letters$as_cr_digits 19 20# Sed expression to map a string onto a valid variable name. 21as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22 23# Sed expression to map a string onto a valid CPP name. 24as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 25 26# Be Bourne compatible 27if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 28 emulate sh 29 NULLCMD=: 30elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 31 set -o posix 32fi 33 34# Name of the executable. 35as_me=`echo "$0" |sed 's,.*[\\/],,'` 36 37if expr a : '\(a\)' >/dev/null 2>&1; then 38 as_expr=expr 39else 40 as_expr=false 41fi 42 43rm -f conf$$ conf$$.exe conf$$.file 44echo >conf$$.file 45if ln -s conf$$.file conf$$ 2>/dev/null; then 46 # We could just check for DJGPP; but this test a) works b) is more generic 47 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 48 if test -f conf$$.exe; then 49 # Don't use ln at all; we don't have any links 50 as_ln_s='cp -p' 51 else 52 as_ln_s='ln -s' 53 fi 54elif ln conf$$.file conf$$ 2>/dev/null; then 55 as_ln_s=ln 56else 57 as_ln_s='cp -p' 58fi 59rm -f conf$$ conf$$.exe conf$$.file 60 61as_executable_p="test -f" 62 63# Support unset when possible. 64if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 65 as_unset=unset 66else 67 as_unset=false 68fi 69 70# NLS nuisances. 71$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 72$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 73$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 74$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 75$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 76$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 77$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 78$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 79 80# IFS 81# We need space, tab and new line, in precisely that order. 82as_nl=' 83' 84IFS=" $as_nl" 85 86# CDPATH. 87$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 88 89# Name of the host. 90# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 91# so uname gets run too. 92ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 93 94exec 6>&1 95 96# 97# Initializations. 98# 99ac_default_prefix=/usr/local 100cross_compiling=no 101subdirs= 102MFLAGS= MAKEFLAGS= 103SHELL=${CONFIG_SHELL-/bin/sh} 104 105# Maximum number of lines to put in a shell here document. 106# This variable seems obsolete. It should probably be removed, and 107# only ac_max_sed_lines should be used. 108: ${ac_max_here_lines=38} 109 110ac_default_prefix=/usr/heimdal 111# Factoring default headers for most tests. 112ac_includes_default="\ 113#include <stdio.h> 114#if HAVE_SYS_TYPES_H 115# include <sys/types.h> 116#endif 117#if HAVE_SYS_STAT_H 118# include <sys/stat.h> 119#endif 120#if STDC_HEADERS 121# include <stdlib.h> 122# include <stddef.h> 123#else 124# if HAVE_STDLIB_H 125# include <stdlib.h> 126# endif 127#endif 128#if HAVE_STRING_H 129# if !STDC_HEADERS && HAVE_MEMORY_H 130# include <memory.h> 131# endif 132# include <string.h> 133#endif 134#if HAVE_STRINGS_H 135# include <strings.h> 136#endif 137#if HAVE_INTTYPES_H 138# include <inttypes.h> 139#else 140# if HAVE_STDINT_H 141# include <stdint.h> 142# endif 143#endif 144#if HAVE_UNISTD_H 145# include <unistd.h> 146#endif" 147 148# Initialize some variables set by options. 149ac_init_help= 150ac_init_version=false 151# The variables have the same names as the options, with 152# dashes changed to underlines. 153cache_file=/dev/null 154exec_prefix=NONE 155no_create= 156no_recursion= 157prefix=NONE 158program_prefix=NONE 159program_suffix=NONE 160program_transform_name=s,x,x, 161silent= 162site= 163srcdir= 164verbose= 165x_includes=NONE 166x_libraries=NONE 167 168# Installation directory options. 169# These are left unexpanded so users can "make install exec_prefix=/foo" 170# and all the variables that are supposed to be based on exec_prefix 171# by default will actually change. 172# Use braces instead of parens because sh, perl, etc. also accept them. 173bindir='${exec_prefix}/bin' 174sbindir='${exec_prefix}/sbin' 175libexecdir='${exec_prefix}/libexec' 176datadir='${prefix}/share' 177sysconfdir='${prefix}/etc' 178sharedstatedir='${prefix}/com' 179localstatedir='${prefix}/var' 180libdir='${exec_prefix}/lib' 181includedir='${prefix}/include' 182oldincludedir='/usr/include' 183infodir='${prefix}/info' 184mandir='${prefix}/man' 185 186# Identity of this package. 187PACKAGE_NAME='heimdal' 188PACKAGE_TARNAME='heimdal' 189PACKAGE_VERSION='0.4e' 190PACKAGE_STRING='heimdal 0.4e' 191PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se' 192 193ac_prev= 194for ac_option 195do 196 # If the previous option needs an argument, assign it. 197 if test -n "$ac_prev"; then 198 eval "$ac_prev=\$ac_option" 199 ac_prev= 200 continue 201 fi 202 203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 204 205 # Accept the important Cygnus configure options, so we can diagnose typos. 206 207 case $ac_option in 208 209 -bindir | --bindir | --bindi | --bind | --bin | --bi) 210 ac_prev=bindir ;; 211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 212 bindir=$ac_optarg ;; 213 214 -build | --build | --buil | --bui | --bu) 215 ac_prev=build_alias ;; 216 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 217 build_alias=$ac_optarg ;; 218 219 -cache-file | --cache-file | --cache-fil | --cache-fi \ 220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 221 ac_prev=cache_file ;; 222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 224 cache_file=$ac_optarg ;; 225 226 --config-cache | -C) 227 cache_file=config.cache ;; 228 229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 230 ac_prev=datadir ;; 231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 232 | --da=*) 233 datadir=$ac_optarg ;; 234 235 -disable-* | --disable-*) 236 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 237 # Reject names that are not valid shell variable names. 238 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 239 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 240 { (exit 1); exit 1; }; } 241 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 242 eval "enable_$ac_feature=no" ;; 243 244 -enable-* | --enable-*) 245 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 246 # Reject names that are not valid shell variable names. 247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 249 { (exit 1); exit 1; }; } 250 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 251 case $ac_option in 252 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 253 *) ac_optarg=yes ;; 254 esac 255 eval "enable_$ac_feature='$ac_optarg'" ;; 256 257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 259 | --exec | --exe | --ex) 260 ac_prev=exec_prefix ;; 261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 263 | --exec=* | --exe=* | --ex=*) 264 exec_prefix=$ac_optarg ;; 265 266 -gas | --gas | --ga | --g) 267 # Obsolete; use --with-gas. 268 with_gas=yes ;; 269 270 -help | --help | --hel | --he | -h) 271 ac_init_help=long ;; 272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 273 ac_init_help=recursive ;; 274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 275 ac_init_help=short ;; 276 277 -host | --host | --hos | --ho) 278 ac_prev=host_alias ;; 279 -host=* | --host=* | --hos=* | --ho=*) 280 host_alias=$ac_optarg ;; 281 282 -includedir | --includedir | --includedi | --included | --include \ 283 | --includ | --inclu | --incl | --inc) 284 ac_prev=includedir ;; 285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 286 | --includ=* | --inclu=* | --incl=* | --inc=*) 287 includedir=$ac_optarg ;; 288 289 -infodir | --infodir | --infodi | --infod | --info | --inf) 290 ac_prev=infodir ;; 291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 292 infodir=$ac_optarg ;; 293 294 -libdir | --libdir | --libdi | --libd) 295 ac_prev=libdir ;; 296 -libdir=* | --libdir=* | --libdi=* | --libd=*) 297 libdir=$ac_optarg ;; 298 299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 300 | --libexe | --libex | --libe) 301 ac_prev=libexecdir ;; 302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 303 | --libexe=* | --libex=* | --libe=*) 304 libexecdir=$ac_optarg ;; 305 306 -localstatedir | --localstatedir | --localstatedi | --localstated \ 307 | --localstate | --localstat | --localsta | --localst \ 308 | --locals | --local | --loca | --loc | --lo) 309 ac_prev=localstatedir ;; 310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 313 localstatedir=$ac_optarg ;; 314 315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 316 ac_prev=mandir ;; 317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 318 mandir=$ac_optarg ;; 319 320 -nfp | --nfp | --nf) 321 # Obsolete; use --without-fp. 322 with_fp=no ;; 323 324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 325 | --no-cr | --no-c) 326 no_create=yes ;; 327 328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 330 no_recursion=yes ;; 331 332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 334 | --oldin | --oldi | --old | --ol | --o) 335 ac_prev=oldincludedir ;; 336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 339 oldincludedir=$ac_optarg ;; 340 341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 342 ac_prev=prefix ;; 343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 344 prefix=$ac_optarg ;; 345 346 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 347 | --program-pre | --program-pr | --program-p) 348 ac_prev=program_prefix ;; 349 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 351 program_prefix=$ac_optarg ;; 352 353 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 354 | --program-suf | --program-su | --program-s) 355 ac_prev=program_suffix ;; 356 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 358 program_suffix=$ac_optarg ;; 359 360 -program-transform-name | --program-transform-name \ 361 | --program-transform-nam | --program-transform-na \ 362 | --program-transform-n | --program-transform- \ 363 | --program-transform | --program-transfor \ 364 | --program-transfo | --program-transf \ 365 | --program-trans | --program-tran \ 366 | --progr-tra | --program-tr | --program-t) 367 ac_prev=program_transform_name ;; 368 -program-transform-name=* | --program-transform-name=* \ 369 | --program-transform-nam=* | --program-transform-na=* \ 370 | --program-transform-n=* | --program-transform-=* \ 371 | --program-transform=* | --program-transfor=* \ 372 | --program-transfo=* | --program-transf=* \ 373 | --program-trans=* | --program-tran=* \ 374 | --progr-tra=* | --program-tr=* | --program-t=*) 375 program_transform_name=$ac_optarg ;; 376 377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 378 | -silent | --silent | --silen | --sile | --sil) 379 silent=yes ;; 380 381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 382 ac_prev=sbindir ;; 383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 384 | --sbi=* | --sb=*) 385 sbindir=$ac_optarg ;; 386 387 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 389 | --sharedst | --shareds | --shared | --share | --shar \ 390 | --sha | --sh) 391 ac_prev=sharedstatedir ;; 392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 395 | --sha=* | --sh=*) 396 sharedstatedir=$ac_optarg ;; 397 398 -site | --site | --sit) 399 ac_prev=site ;; 400 -site=* | --site=* | --sit=*) 401 site=$ac_optarg ;; 402 403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 404 ac_prev=srcdir ;; 405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 406 srcdir=$ac_optarg ;; 407 408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 409 | --syscon | --sysco | --sysc | --sys | --sy) 410 ac_prev=sysconfdir ;; 411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 413 sysconfdir=$ac_optarg ;; 414 415 -target | --target | --targe | --targ | --tar | --ta | --t) 416 ac_prev=target_alias ;; 417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 418 target_alias=$ac_optarg ;; 419 420 -v | -verbose | --verbose | --verbos | --verbo | --verb) 421 verbose=yes ;; 422 423 -version | --version | --versio | --versi | --vers | -V) 424 ac_init_version=: ;; 425 426 -with-* | --with-*) 427 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 428 # Reject names that are not valid shell variable names. 429 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 430 { echo "$as_me: error: invalid package name: $ac_package" >&2 431 { (exit 1); exit 1; }; } 432 ac_package=`echo $ac_package| sed 's/-/_/g'` 433 case $ac_option in 434 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 435 *) ac_optarg=yes ;; 436 esac 437 eval "with_$ac_package='$ac_optarg'" ;; 438 439 -without-* | --without-*) 440 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 441 # Reject names that are not valid shell variable names. 442 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 443 { echo "$as_me: error: invalid package name: $ac_package" >&2 444 { (exit 1); exit 1; }; } 445 ac_package=`echo $ac_package | sed 's/-/_/g'` 446 eval "with_$ac_package=no" ;; 447 448 --x) 449 # Obsolete; use --with-x. 450 with_x=yes ;; 451 452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 453 | --x-incl | --x-inc | --x-in | --x-i) 454 ac_prev=x_includes ;; 455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 457 x_includes=$ac_optarg ;; 458 459 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 461 ac_prev=x_libraries ;; 462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 464 x_libraries=$ac_optarg ;; 465 466 -*) { echo "$as_me: error: unrecognized option: $ac_option 467Try \`$0 --help' for more information." >&2 468 { (exit 1); exit 1; }; } 469 ;; 470 471 *=*) 472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 473 # Reject names that are not valid shell variable names. 474 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 475 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 476 { (exit 1); exit 1; }; } 477 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 478 eval "$ac_envvar='$ac_optarg'" 479 export $ac_envvar ;; 480 481 *) 482 # FIXME: should be removed in autoconf 3.0. 483 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 485 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 486 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 487 ;; 488 489 esac 490done 491 492if test -n "$ac_prev"; then 493 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 494 { echo "$as_me: error: missing argument to $ac_option" >&2 495 { (exit 1); exit 1; }; } 496fi 497 498# Be sure to have absolute paths. 499for ac_var in exec_prefix prefix 500do 501 eval ac_val=$`echo $ac_var` 502 case $ac_val in 503 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 504 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 505 { (exit 1); exit 1; }; };; 506 esac 507done 508 509# Be sure to have absolute paths. 510for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 511 localstatedir libdir includedir oldincludedir infodir mandir 512do 513 eval ac_val=$`echo $ac_var` 514 case $ac_val in 515 [\\/$]* | ?:[\\/]* ) ;; 516 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 517 { (exit 1); exit 1; }; };; 518 esac 519done 520 521# There might be people who depend on the old broken behavior: `$host' 522# used to hold the argument of --host etc. 523build=$build_alias 524host=$host_alias 525target=$target_alias 526 527# FIXME: should be removed in autoconf 3.0. 528if test "x$host_alias" != x; then 529 if test "x$build_alias" = x; then 530 cross_compiling=maybe 531 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 532 If a cross compiler is detected then cross compile mode will be used." >&2 533 elif test "x$build_alias" != "x$host_alias"; then 534 cross_compiling=yes 535 fi 536fi 537 538ac_tool_prefix= 539test -n "$host_alias" && ac_tool_prefix=$host_alias- 540 541test "$silent" = yes && exec 6>/dev/null 542 543# Find the source files, if location was not specified. 544if test -z "$srcdir"; then 545 ac_srcdir_defaulted=yes 546 # Try the directory containing this script, then its parent. 547 ac_prog=$0 548 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 550 srcdir=$ac_confdir 551 if test ! -r $srcdir/$ac_unique_file; then 552 srcdir=.. 553 fi 554else 555 ac_srcdir_defaulted=no 556fi 557if test ! -r $srcdir/$ac_unique_file; then 558 if test "$ac_srcdir_defaulted" = yes; then 559 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 560 { (exit 1); exit 1; }; } 561 else 562 { echo "$as_me: error: cannot find sources in $srcdir" >&2 563 { (exit 1); exit 1; }; } 564 fi 565fi 566srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 567ac_env_build_alias_set=${build_alias+set} 568ac_env_build_alias_value=$build_alias 569ac_cv_env_build_alias_set=${build_alias+set} 570ac_cv_env_build_alias_value=$build_alias 571ac_env_host_alias_set=${host_alias+set} 572ac_env_host_alias_value=$host_alias 573ac_cv_env_host_alias_set=${host_alias+set} 574ac_cv_env_host_alias_value=$host_alias 575ac_env_target_alias_set=${target_alias+set} 576ac_env_target_alias_value=$target_alias 577ac_cv_env_target_alias_set=${target_alias+set} 578ac_cv_env_target_alias_value=$target_alias 579ac_env_CC_set=${CC+set} 580ac_env_CC_value=$CC 581ac_cv_env_CC_set=${CC+set} 582ac_cv_env_CC_value=$CC 583ac_env_CFLAGS_set=${CFLAGS+set} 584ac_env_CFLAGS_value=$CFLAGS 585ac_cv_env_CFLAGS_set=${CFLAGS+set} 586ac_cv_env_CFLAGS_value=$CFLAGS 587ac_env_LDFLAGS_set=${LDFLAGS+set} 588ac_env_LDFLAGS_value=$LDFLAGS 589ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 590ac_cv_env_LDFLAGS_value=$LDFLAGS 591ac_env_CPPFLAGS_set=${CPPFLAGS+set} 592ac_env_CPPFLAGS_value=$CPPFLAGS 593ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 594ac_cv_env_CPPFLAGS_value=$CPPFLAGS 595ac_env_CPP_set=${CPP+set} 596ac_env_CPP_value=$CPP 597ac_cv_env_CPP_set=${CPP+set} 598ac_cv_env_CPP_value=$CPP 599 600# 601# Report the --help message. 602# 603if test "$ac_init_help" = "long"; then 604 # Omit some internal or obsolete options to make the list less imposing. 605 # This message is too long to be a string in the A/UX 3.1 sh. 606 cat <<EOF 607\`configure' configures heimdal 0.4e to adapt to many kinds of systems. 608 609Usage: $0 [OPTION]... [VAR=VALUE]... 610 611To assign environment variables (e.g., CC, CFLAGS...), specify them as 612VAR=VALUE. See below for descriptions of some of the useful variables. 613 614Defaults for the options are specified in brackets. 615 616Configuration: 617 -h, --help display this help and exit 618 --help=short display options specific to this package 619 --help=recursive display the short help of all the included packages 620 -V, --version display version information and exit 621 -q, --quiet, --silent do not print \`checking...' messages 622 --cache-file=FILE cache test results in FILE [disabled] 623 -C, --config-cache alias for \`--cache-file=config.cache' 624 -n, --no-create do not create output files 625 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 626 627EOF 628 629 cat <<EOF 630Installation directories: 631 --prefix=PREFIX install architecture-independent files in PREFIX 632 [$ac_default_prefix] 633 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 634 [PREFIX] 635 636By default, \`make install' will install all the files in 637\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 638an installation prefix other than \`$ac_default_prefix' using \`--prefix', 639for instance \`--prefix=\$HOME'. 640 641For better control, use the options below. 642 643Fine tuning of the installation directories: 644 --bindir=DIR user executables [EPREFIX/bin] 645 --sbindir=DIR system admin executables [EPREFIX/sbin] 646 --libexecdir=DIR program executables [EPREFIX/libexec] 647 --datadir=DIR read-only architecture-independent data [PREFIX/share] 648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 650 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 651 --libdir=DIR object code libraries [EPREFIX/lib] 652 --includedir=DIR C header files [PREFIX/include] 653 --oldincludedir=DIR C header files for non-gcc [/usr/include] 654 --infodir=DIR info documentation [PREFIX/info] 655 --mandir=DIR man documentation [PREFIX/man] 656EOF 657 658 cat <<\EOF 659 660Program names: 661 --program-prefix=PREFIX prepend PREFIX to installed program names 662 --program-suffix=SUFFIX append SUFFIX to installed program names 663 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 664 665X features: 666 --x-includes=DIR X include files are in DIR 667 --x-libraries=DIR X library files are in DIR 668 669System types: 670 --build=BUILD configure for building on BUILD [guessed] 671 --host=HOST build programs to run on HOST [BUILD] 672EOF 673fi 674 675if test -n "$ac_init_help"; then 676 case $ac_init_help in 677 short | recursive ) echo "Configuration of heimdal 0.4e:";; 678 esac 679 cat <<\EOF 680 681Optional Features: 682 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 683 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 684 --disable-dependency-tracking Speeds up one-time builds 685 --enable-dependency-tracking Do not reject slow dependency extractors 686 --enable-shared=PKGS build shared libraries default=no 687 --enable-static=PKGS build static libraries default=yes 688 --enable-fast-install=PKGS optimize for fast installation default=yes 689 --disable-libtool-lock avoid locking (might break parallel builds) 690 --enable-dce if you want support for DCE/DFS PAG's. 691 --disable-otp if you don't want OTP support 692 --enable-osfc2 enable some OSF C2 support 693 --enable-bigendian the target is big endian 694 --enable-littleendian the target is little endian 695 --enable-netinfo enable netinfo for configuration lookup 696 697Optional Packages: 698 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 699 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 700 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 701 --with-gnu-ld assume the C compiler uses GNU ld default=no 702 --without-berkeley-db if you don't want berkeley db 703 --without-ipv6 do not enable IPv6 support 704 --with-openldap=dir use openldap in dir 705 --with-openldap-lib=dir use openldap libraries in dir 706 --with-openldap-include=dir use openldap headers in dir 707 --with-krb4=dir use krb4 in dir 708 --with-krb4-lib=dir use krb4 libraries in dir 709 --with-krb4-include=dir use krb4 headers in dir 710 --with-readline=dir use readline in dir 711 --with-readline-lib=dir use readline libraries in dir 712 --with-readline-include=dir use readline headers in dir 713 --with-hesiod=dir use hesiod in dir 714 --with-hesiod-lib=dir use hesiod libraries in dir 715 --with-hesiod-include=dir use hesiod headers in dir 716 --with-x use the X Window System 717 --with-openssl=dir use openssl in dir 718 --with-openssl-lib=dir use openssl libraries in dir 719 --with-openssl-include=dir 720 use openssl headers in dir 721 722Some influential environment variables: 723 CC C compiler command 724 CFLAGS C compiler flags 725 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 726 nonstandard directory <lib dir> 727 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 728 headers in a nonstandard directory <include dir> 729 CPP C preprocessor 730 731Use these variables to override the choices made by `configure' or to help 732it to find libraries and programs with nonstandard names/locations. 733 734Report bugs to <heimdal-bugs@pdc.kth.se>. 735EOF 736fi 737 738if test "$ac_init_help" = "recursive"; then 739 # If there are subdirs, report their specific --help. 740 ac_popdir=`pwd` 741 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 742 cd $ac_subdir 743 # A "../" for each directory in /$ac_subdir. 744 ac_dots=`echo $ac_subdir | 745 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 746 747 case $srcdir in 748 .) # No --srcdir option. We are building in place. 749 ac_sub_srcdir=$srcdir ;; 750 [\\/]* | ?:[\\/]* ) # Absolute path. 751 ac_sub_srcdir=$srcdir/$ac_subdir ;; 752 *) # Relative path. 753 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 754 esac 755 756 # Check for guested configure; otherwise get Cygnus style configure. 757 if test -f $ac_sub_srcdir/configure.gnu; then 758 echo 759 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 760 elif test -f $ac_sub_srcdir/configure; then 761 echo 762 $SHELL $ac_sub_srcdir/configure --help=recursive 763 elif test -f $ac_sub_srcdir/configure.ac || 764 test -f $ac_sub_srcdir/configure.in; then 765 echo 766 $ac_configure --help 767 else 768 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 769 fi 770 cd $ac_popdir 771 done 772fi 773 774test -n "$ac_init_help" && exit 0 775if $ac_init_version; then 776 cat <<\EOF 777heimdal configure 0.4e 778generated by GNU Autoconf 2.52 779 780Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 781Free Software Foundation, Inc. 782This configure script is free software; the Free Software Foundation 783gives unlimited permission to copy, distribute and modify it. 784EOF 785 exit 0 786fi 787exec 5>config.log 788cat >&5 <<EOF 789This file contains any messages produced by compilers while 790running configure, to aid debugging if configure makes a mistake. 791 792It was created by heimdal $as_me 0.4e, which was 793generated by GNU Autoconf 2.52. Invocation command line was 794 795 $ $0 $@ 796 797EOF 798{ 799cat <<_ASUNAME 800## ---------- ## 801## Platform. ## 802## ---------- ## 803 804hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 805uname -m = `(uname -m) 2>/dev/null || echo unknown` 806uname -r = `(uname -r) 2>/dev/null || echo unknown` 807uname -s = `(uname -s) 2>/dev/null || echo unknown` 808uname -v = `(uname -v) 2>/dev/null || echo unknown` 809 810/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 811/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 812 813/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 814/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 815/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 816hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 817/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 818/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 819/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 820 821PATH = $PATH 822 823_ASUNAME 824} >&5 825 826cat >&5 <<EOF 827## ------------ ## 828## Core tests. ## 829## ------------ ## 830 831EOF 832 833# Keep a trace of the command line. 834# Strip out --no-create and --no-recursion so they do not pile up. 835# Also quote any args containing shell meta-characters. 836ac_configure_args= 837ac_sep= 838for ac_arg 839do 840 case $ac_arg in 841 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 842 | --no-cr | --no-c) ;; 843 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 844 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 845 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 846 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 847 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 848 ac_sep=" " ;; 849 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 850 ac_sep=" " ;; 851 esac 852 # Get rid of the leading space. 853done 854 855# When interrupted or exit'd, cleanup temporary files, and complete 856# config.log. We remove comments because anyway the quotes in there 857# would cause problems or look ugly. 858trap 'exit_status=$? 859 # Save into config.log some information that might help in debugging. 860 echo >&5 861 echo "## ----------------- ##" >&5 862 echo "## Cache variables. ##" >&5 863 echo "## ----------------- ##" >&5 864 echo >&5 865 # The following way of writing the cache mishandles newlines in values, 866{ 867 (set) 2>&1 | 868 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 869 *ac_space=\ *) 870 sed -n \ 871 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 873 ;; 874 *) 875 sed -n \ 876 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 877 ;; 878 esac; 879} >&5 880 sed "/^$/d" confdefs.h >conftest.log 881 if test -s conftest.log; then 882 echo >&5 883 echo "## ------------ ##" >&5 884 echo "## confdefs.h. ##" >&5 885 echo "## ------------ ##" >&5 886 echo >&5 887 cat conftest.log >&5 888 fi 889 (echo; echo) >&5 890 test "$ac_signal" != 0 && 891 echo "$as_me: caught signal $ac_signal" >&5 892 echo "$as_me: exit $exit_status" >&5 893 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 894 exit $exit_status 895 ' 0 896for ac_signal in 1 2 13 15; do 897 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 898done 899ac_signal=0 900 901# confdefs.h avoids OS command line length limits that DEFS can exceed. 902rm -rf conftest* confdefs.h 903# AIX cpp loses on an empty file, so make sure it contains at least a newline. 904echo >confdefs.h 905 906# Let the site file select an alternate cache file if it wants to. 907# Prefer explicitly selected file to automatically selected ones. 908if test -z "$CONFIG_SITE"; then 909 if test "x$prefix" != xNONE; then 910 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 911 else 912 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 913 fi 914fi 915for ac_site_file in $CONFIG_SITE; do 916 if test -r "$ac_site_file"; then 917 { echo "$as_me:917: loading site script $ac_site_file" >&5 918echo "$as_me: loading site script $ac_site_file" >&6;} 919 cat "$ac_site_file" >&5 920 . "$ac_site_file" 921 fi 922done 923 924if test -r "$cache_file"; then 925 # Some versions of bash will fail to source /dev/null (special 926 # files actually), so we avoid doing that. 927 if test -f "$cache_file"; then 928 { echo "$as_me:928: loading cache $cache_file" >&5 929echo "$as_me: loading cache $cache_file" >&6;} 930 case $cache_file in 931 [\\/]* | ?:[\\/]* ) . $cache_file;; 932 *) . ./$cache_file;; 933 esac 934 fi 935else 936 { echo "$as_me:936: creating cache $cache_file" >&5 937echo "$as_me: creating cache $cache_file" >&6;} 938 >$cache_file 939fi 940 941# Check that the precious variables saved in the cache have kept the same 942# value. 943ac_cache_corrupted=false 944for ac_var in `(set) 2>&1 | 945 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 946 eval ac_old_set=\$ac_cv_env_${ac_var}_set 947 eval ac_new_set=\$ac_env_${ac_var}_set 948 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 949 eval ac_new_val="\$ac_env_${ac_var}_value" 950 case $ac_old_set,$ac_new_set in 951 set,) 952 { echo "$as_me:952: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 953echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 954 ac_cache_corrupted=: ;; 955 ,set) 956 { echo "$as_me:956: error: \`$ac_var' was not set in the previous run" >&5 957echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 958 ac_cache_corrupted=: ;; 959 ,);; 960 *) 961 if test "x$ac_old_val" != "x$ac_new_val"; then 962 { echo "$as_me:962: error: \`$ac_var' has changed since the previous run:" >&5 963echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 964 { echo "$as_me:964: former value: $ac_old_val" >&5 965echo "$as_me: former value: $ac_old_val" >&2;} 966 { echo "$as_me:966: current value: $ac_new_val" >&5 967echo "$as_me: current value: $ac_new_val" >&2;} 968 ac_cache_corrupted=: 969 fi;; 970 esac 971 # Pass precious variables to config.status. It doesn't matter if 972 # we pass some twice (in addition to the command line arguments). 973 if test "$ac_new_set" = set; then 974 case $ac_new_val in 975 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 976 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` 977 ac_configure_args="$ac_configure_args '$ac_arg'" 978 ;; 979 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" 980 ;; 981 esac 982 fi 983done 984if $ac_cache_corrupted; then 985 { echo "$as_me:985: error: changes in the environment can compromise the build" >&5 986echo "$as_me: error: changes in the environment can compromise the build" >&2;} 987 { { echo "$as_me:987: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 988echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 989 { (exit 1); exit 1; }; } 990fi 991 992ac_ext=c 993ac_cpp='$CPP $CPPFLAGS' 994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 996ac_compiler_gnu=$ac_cv_c_compiler_gnu 997 998case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 999 *c*,-n*) ECHO_N= ECHO_C=' 1000' ECHO_T=' ' ;; 1001 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1002 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1003esac 1004echo "#! $SHELL" >conftest.sh 1005echo "exit 0" >>conftest.sh 1006chmod +x conftest.sh 1007if { (echo "$as_me:1007: PATH=\".;.\"; conftest.sh") >&5 1008 (PATH=".;."; conftest.sh) 2>&5 1009 ac_status=$? 1010 echo "$as_me:1010: \$? = $ac_status" >&5 1011 (exit $ac_status); }; then 1012 ac_path_separator=';' 1013else 1014 ac_path_separator=: 1015fi 1016PATH_SEPARATOR="$ac_path_separator" 1017rm -f conftest.sh 1018 1019 ac_config_headers="$ac_config_headers include/config.h" 1020 1021ac_ext=c 1022ac_cpp='$CPP $CPPFLAGS' 1023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1025ac_compiler_gnu=$ac_cv_c_compiler_gnu 1026if test -n "$ac_tool_prefix"; then 1027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1028set dummy ${ac_tool_prefix}gcc; ac_word=$2 1029echo "$as_me:1029: checking for $ac_word" >&5 1030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1031if test "${ac_cv_prog_CC+set}" = set; then 1032 echo $ECHO_N "(cached) $ECHO_C" >&6 1033else 1034 if test -n "$CC"; then 1035 ac_cv_prog_CC="$CC" # Let the user override the test. 1036else 1037 ac_save_IFS=$IFS; IFS=$ac_path_separator 1038ac_dummy="$PATH" 1039for ac_dir in $ac_dummy; do 1040 IFS=$ac_save_IFS 1041 test -z "$ac_dir" && ac_dir=. 1042 $as_executable_p "$ac_dir/$ac_word" || continue 1043ac_cv_prog_CC="${ac_tool_prefix}gcc" 1044echo "$as_me:1044: found $ac_dir/$ac_word" >&5 1045break 1046done 1047 1048fi 1049fi 1050CC=$ac_cv_prog_CC 1051if test -n "$CC"; then 1052 echo "$as_me:1052: result: $CC" >&5 1053echo "${ECHO_T}$CC" >&6 1054else 1055 echo "$as_me:1055: result: no" >&5 1056echo "${ECHO_T}no" >&6 1057fi 1058 1059fi 1060if test -z "$ac_cv_prog_CC"; then 1061 ac_ct_CC=$CC 1062 # Extract the first word of "gcc", so it can be a program name with args. 1063set dummy gcc; ac_word=$2 1064echo "$as_me:1064: checking for $ac_word" >&5 1065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1066if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1067 echo $ECHO_N "(cached) $ECHO_C" >&6 1068else 1069 if test -n "$ac_ct_CC"; then 1070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1071else 1072 ac_save_IFS=$IFS; IFS=$ac_path_separator 1073ac_dummy="$PATH" 1074for ac_dir in $ac_dummy; do 1075 IFS=$ac_save_IFS 1076 test -z "$ac_dir" && ac_dir=. 1077 $as_executable_p "$ac_dir/$ac_word" || continue 1078ac_cv_prog_ac_ct_CC="gcc" 1079echo "$as_me:1079: found $ac_dir/$ac_word" >&5 1080break 1081done 1082 1083fi 1084fi 1085ac_ct_CC=$ac_cv_prog_ac_ct_CC 1086if test -n "$ac_ct_CC"; then 1087 echo "$as_me:1087: result: $ac_ct_CC" >&5 1088echo "${ECHO_T}$ac_ct_CC" >&6 1089else 1090 echo "$as_me:1090: result: no" >&5 1091echo "${ECHO_T}no" >&6 1092fi 1093 1094 CC=$ac_ct_CC 1095else 1096 CC="$ac_cv_prog_CC" 1097fi 1098 1099if test -z "$CC"; then 1100 if test -n "$ac_tool_prefix"; then 1101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1102set dummy ${ac_tool_prefix}cc; ac_word=$2 1103echo "$as_me:1103: checking for $ac_word" >&5 1104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1105if test "${ac_cv_prog_CC+set}" = set; then 1106 echo $ECHO_N "(cached) $ECHO_C" >&6 1107else 1108 if test -n "$CC"; then 1109 ac_cv_prog_CC="$CC" # Let the user override the test. 1110else 1111 ac_save_IFS=$IFS; IFS=$ac_path_separator 1112ac_dummy="$PATH" 1113for ac_dir in $ac_dummy; do 1114 IFS=$ac_save_IFS 1115 test -z "$ac_dir" && ac_dir=. 1116 $as_executable_p "$ac_dir/$ac_word" || continue 1117ac_cv_prog_CC="${ac_tool_prefix}cc" 1118echo "$as_me:1118: found $ac_dir/$ac_word" >&5 1119break 1120done 1121 1122fi 1123fi 1124CC=$ac_cv_prog_CC 1125if test -n "$CC"; then 1126 echo "$as_me:1126: result: $CC" >&5 1127echo "${ECHO_T}$CC" >&6 1128else 1129 echo "$as_me:1129: result: no" >&5 1130echo "${ECHO_T}no" >&6 1131fi 1132 1133fi 1134if test -z "$ac_cv_prog_CC"; then 1135 ac_ct_CC=$CC 1136 # Extract the first word of "cc", so it can be a program name with args. 1137set dummy cc; ac_word=$2 1138echo "$as_me:1138: checking for $ac_word" >&5 1139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1140if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1141 echo $ECHO_N "(cached) $ECHO_C" >&6 1142else 1143 if test -n "$ac_ct_CC"; then 1144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1145else 1146 ac_save_IFS=$IFS; IFS=$ac_path_separator 1147ac_dummy="$PATH" 1148for ac_dir in $ac_dummy; do 1149 IFS=$ac_save_IFS 1150 test -z "$ac_dir" && ac_dir=. 1151 $as_executable_p "$ac_dir/$ac_word" || continue 1152ac_cv_prog_ac_ct_CC="cc" 1153echo "$as_me:1153: found $ac_dir/$ac_word" >&5 1154break 1155done 1156 1157fi 1158fi 1159ac_ct_CC=$ac_cv_prog_ac_ct_CC 1160if test -n "$ac_ct_CC"; then 1161 echo "$as_me:1161: result: $ac_ct_CC" >&5 1162echo "${ECHO_T}$ac_ct_CC" >&6 1163else 1164 echo "$as_me:1164: result: no" >&5 1165echo "${ECHO_T}no" >&6 1166fi 1167 1168 CC=$ac_ct_CC 1169else 1170 CC="$ac_cv_prog_CC" 1171fi 1172 1173fi 1174if test -z "$CC"; then 1175 # Extract the first word of "cc", so it can be a program name with args. 1176set dummy cc; ac_word=$2 1177echo "$as_me:1177: checking for $ac_word" >&5 1178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1179if test "${ac_cv_prog_CC+set}" = set; then 1180 echo $ECHO_N "(cached) $ECHO_C" >&6 1181else 1182 if test -n "$CC"; then 1183 ac_cv_prog_CC="$CC" # Let the user override the test. 1184else 1185 ac_prog_rejected=no 1186 ac_save_IFS=$IFS; IFS=$ac_path_separator 1187ac_dummy="$PATH" 1188for ac_dir in $ac_dummy; do 1189 IFS=$ac_save_IFS 1190 test -z "$ac_dir" && ac_dir=. 1191 $as_executable_p "$ac_dir/$ac_word" || continue 1192if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1193 ac_prog_rejected=yes 1194 continue 1195fi 1196ac_cv_prog_CC="cc" 1197echo "$as_me:1197: found $ac_dir/$ac_word" >&5 1198break 1199done 1200 1201if test $ac_prog_rejected = yes; then 1202 # We found a bogon in the path, so make sure we never use it. 1203 set dummy $ac_cv_prog_CC 1204 shift 1205 if test $# != 0; then 1206 # We chose a different compiler from the bogus one. 1207 # However, it has the same basename, so the bogon will be chosen 1208 # first if we set CC to just the basename; use the full file name. 1209 shift 1210 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1211 shift 1212 ac_cv_prog_CC="$@" 1213 fi 1214fi 1215fi 1216fi 1217CC=$ac_cv_prog_CC 1218if test -n "$CC"; then 1219 echo "$as_me:1219: result: $CC" >&5 1220echo "${ECHO_T}$CC" >&6 1221else 1222 echo "$as_me:1222: result: no" >&5 1223echo "${ECHO_T}no" >&6 1224fi 1225 1226fi 1227if test -z "$CC"; then 1228 if test -n "$ac_tool_prefix"; then 1229 for ac_prog in cl 1230 do 1231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1232set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1233echo "$as_me:1233: checking for $ac_word" >&5 1234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1235if test "${ac_cv_prog_CC+set}" = set; then 1236 echo $ECHO_N "(cached) $ECHO_C" >&6 1237else 1238 if test -n "$CC"; then 1239 ac_cv_prog_CC="$CC" # Let the user override the test. 1240else 1241 ac_save_IFS=$IFS; IFS=$ac_path_separator 1242ac_dummy="$PATH" 1243for ac_dir in $ac_dummy; do 1244 IFS=$ac_save_IFS 1245 test -z "$ac_dir" && ac_dir=. 1246 $as_executable_p "$ac_dir/$ac_word" || continue 1247ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1248echo "$as_me:1248: found $ac_dir/$ac_word" >&5 1249break 1250done 1251 1252fi 1253fi 1254CC=$ac_cv_prog_CC 1255if test -n "$CC"; then 1256 echo "$as_me:1256: result: $CC" >&5 1257echo "${ECHO_T}$CC" >&6 1258else 1259 echo "$as_me:1259: result: no" >&5 1260echo "${ECHO_T}no" >&6 1261fi 1262 1263 test -n "$CC" && break 1264 done 1265fi 1266if test -z "$CC"; then 1267 ac_ct_CC=$CC 1268 for ac_prog in cl 1269do 1270 # Extract the first word of "$ac_prog", so it can be a program name with args. 1271set dummy $ac_prog; ac_word=$2 1272echo "$as_me:1272: checking for $ac_word" >&5 1273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1275 echo $ECHO_N "(cached) $ECHO_C" >&6 1276else 1277 if test -n "$ac_ct_CC"; then 1278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1279else 1280 ac_save_IFS=$IFS; IFS=$ac_path_separator 1281ac_dummy="$PATH" 1282for ac_dir in $ac_dummy; do 1283 IFS=$ac_save_IFS 1284 test -z "$ac_dir" && ac_dir=. 1285 $as_executable_p "$ac_dir/$ac_word" || continue 1286ac_cv_prog_ac_ct_CC="$ac_prog" 1287echo "$as_me:1287: found $ac_dir/$ac_word" >&5 1288break 1289done 1290 1291fi 1292fi 1293ac_ct_CC=$ac_cv_prog_ac_ct_CC 1294if test -n "$ac_ct_CC"; then 1295 echo "$as_me:1295: result: $ac_ct_CC" >&5 1296echo "${ECHO_T}$ac_ct_CC" >&6 1297else 1298 echo "$as_me:1298: result: no" >&5 1299echo "${ECHO_T}no" >&6 1300fi 1301 1302 test -n "$ac_ct_CC" && break 1303done 1304 1305 CC=$ac_ct_CC 1306fi 1307 1308fi 1309 1310test -z "$CC" && { { echo "$as_me:1310: error: no acceptable cc found in \$PATH" >&5 1311echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1312 { (exit 1); exit 1; }; } 1313 1314# Provide some information about the compiler. 1315echo "$as_me:1315:" \ 1316 "checking for C compiler version" >&5 1317ac_compiler=`set X $ac_compile; echo $2` 1318{ (eval echo "$as_me:1318: \"$ac_compiler --version </dev/null >&5\"") >&5 1319 (eval $ac_compiler --version </dev/null >&5) 2>&5 1320 ac_status=$? 1321 echo "$as_me:1321: \$? = $ac_status" >&5 1322 (exit $ac_status); } 1323{ (eval echo "$as_me:1323: \"$ac_compiler -v </dev/null >&5\"") >&5 1324 (eval $ac_compiler -v </dev/null >&5) 2>&5 1325 ac_status=$? 1326 echo "$as_me:1326: \$? = $ac_status" >&5 1327 (exit $ac_status); } 1328{ (eval echo "$as_me:1328: \"$ac_compiler -V </dev/null >&5\"") >&5 1329 (eval $ac_compiler -V </dev/null >&5) 2>&5 1330 ac_status=$? 1331 echo "$as_me:1331: \$? = $ac_status" >&5 1332 (exit $ac_status); } 1333 1334cat >conftest.$ac_ext <<_ACEOF 1335#line 1335 "configure" 1336#include "confdefs.h" 1337 1338int 1339main () 1340{ 1341 1342 ; 1343 return 0; 1344} 1345_ACEOF 1346ac_clean_files_save=$ac_clean_files 1347ac_clean_files="$ac_clean_files a.out a.exe" 1348# Try to create an executable without -o first, disregard a.out. 1349# It will help us diagnose broken compilers, and finding out an intuition 1350# of exeext. 1351echo "$as_me:1351: checking for C compiler default output" >&5 1352echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1353ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1354if { (eval echo "$as_me:1354: \"$ac_link_default\"") >&5 1355 (eval $ac_link_default) 2>&5 1356 ac_status=$? 1357 echo "$as_me:1357: \$? = $ac_status" >&5 1358 (exit $ac_status); }; then 1359 # Find the output, starting from the most likely. This scheme is 1360# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1361# resort. 1362for ac_file in `ls a.exe conftest.exe 2>/dev/null; 1363 ls a.out conftest 2>/dev/null; 1364 ls a.* conftest.* 2>/dev/null`; do 1365 case $ac_file in 1366 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1367 a.out ) # We found the default executable, but exeext='' is most 1368 # certainly right. 1369 break;; 1370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1371 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1372 export ac_cv_exeext 1373 break;; 1374 * ) break;; 1375 esac 1376done 1377else 1378 echo "$as_me: failed program was:" >&5 1379cat conftest.$ac_ext >&5 1380{ { echo "$as_me:1380: error: C compiler cannot create executables" >&5 1381echo "$as_me: error: C compiler cannot create executables" >&2;} 1382 { (exit 77); exit 77; }; } 1383fi 1384 1385ac_exeext=$ac_cv_exeext 1386echo "$as_me:1386: result: $ac_file" >&5 1387echo "${ECHO_T}$ac_file" >&6 1388 1389# Check the compiler produces executables we can run. If not, either 1390# the compiler is broken, or we cross compile. 1391echo "$as_me:1391: checking whether the C compiler works" >&5 1392echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1393# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1394# If not cross compiling, check that we can run a simple program. 1395if test "$cross_compiling" != yes; then 1396 if { ac_try='./$ac_file' 1397 { (eval echo "$as_me:1397: \"$ac_try\"") >&5 1398 (eval $ac_try) 2>&5 1399 ac_status=$? 1400 echo "$as_me:1400: \$? = $ac_status" >&5 1401 (exit $ac_status); }; }; then 1402 cross_compiling=no 1403 else 1404 if test "$cross_compiling" = maybe; then 1405 cross_compiling=yes 1406 else 1407 { { echo "$as_me:1407: error: cannot run C compiled programs. 1408If you meant to cross compile, use \`--host'." >&5 1409echo "$as_me: error: cannot run C compiled programs. 1410If you meant to cross compile, use \`--host'." >&2;} 1411 { (exit 1); exit 1; }; } 1412 fi 1413 fi 1414fi 1415echo "$as_me:1415: result: yes" >&5 1416echo "${ECHO_T}yes" >&6 1417 1418rm -f a.out a.exe conftest$ac_cv_exeext 1419ac_clean_files=$ac_clean_files_save 1420# Check the compiler produces executables we can run. If not, either 1421# the compiler is broken, or we cross compile. 1422echo "$as_me:1422: checking whether we are cross compiling" >&5 1423echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1424echo "$as_me:1424: result: $cross_compiling" >&5 1425echo "${ECHO_T}$cross_compiling" >&6 1426 1427echo "$as_me:1427: checking for executable suffix" >&5 1428echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1429if { (eval echo "$as_me:1429: \"$ac_link\"") >&5 1430 (eval $ac_link) 2>&5 1431 ac_status=$? 1432 echo "$as_me:1432: \$? = $ac_status" >&5 1433 (exit $ac_status); }; then 1434 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1435# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1436# work properly (i.e., refer to `conftest.exe'), while it won't with 1437# `rm'. 1438for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1439 case $ac_file in 1440 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1442 export ac_cv_exeext 1443 break;; 1444 * ) break;; 1445 esac 1446done 1447else 1448 { { echo "$as_me:1448: error: cannot compute EXEEXT: cannot compile and link" >&5 1449echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1450 { (exit 1); exit 1; }; } 1451fi 1452 1453rm -f conftest$ac_cv_exeext 1454echo "$as_me:1454: result: $ac_cv_exeext" >&5 1455echo "${ECHO_T}$ac_cv_exeext" >&6 1456 1457rm -f conftest.$ac_ext 1458EXEEXT=$ac_cv_exeext 1459ac_exeext=$EXEEXT 1460echo "$as_me:1460: checking for object suffix" >&5 1461echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1462if test "${ac_cv_objext+set}" = set; then 1463 echo $ECHO_N "(cached) $ECHO_C" >&6 1464else 1465 cat >conftest.$ac_ext <<_ACEOF 1466#line 1466 "configure" 1467#include "confdefs.h" 1468 1469int 1470main () 1471{ 1472 1473 ; 1474 return 0; 1475} 1476_ACEOF 1477rm -f conftest.o conftest.obj 1478if { (eval echo "$as_me:1478: \"$ac_compile\"") >&5 1479 (eval $ac_compile) 2>&5 1480 ac_status=$? 1481 echo "$as_me:1481: \$? = $ac_status" >&5 1482 (exit $ac_status); }; then 1483 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1484 case $ac_file in 1485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1486 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1487 break;; 1488 esac 1489done 1490else 1491 echo "$as_me: failed program was:" >&5 1492cat conftest.$ac_ext >&5 1493{ { echo "$as_me:1493: error: cannot compute OBJEXT: cannot compile" >&5 1494echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1495 { (exit 1); exit 1; }; } 1496fi 1497 1498rm -f conftest.$ac_cv_objext conftest.$ac_ext 1499fi 1500echo "$as_me:1500: result: $ac_cv_objext" >&5 1501echo "${ECHO_T}$ac_cv_objext" >&6 1502OBJEXT=$ac_cv_objext 1503ac_objext=$OBJEXT 1504echo "$as_me:1504: checking whether we are using the GNU C compiler" >&5 1505echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1506if test "${ac_cv_c_compiler_gnu+set}" = set; then 1507 echo $ECHO_N "(cached) $ECHO_C" >&6 1508else 1509 cat >conftest.$ac_ext <<_ACEOF 1510#line 1510 "configure" 1511#include "confdefs.h" 1512 1513int 1514main () 1515{ 1516#ifndef __GNUC__ 1517 choke me 1518#endif 1519 1520 ; 1521 return 0; 1522} 1523_ACEOF 1524rm -f conftest.$ac_objext 1525if { (eval echo "$as_me:1525: \"$ac_compile\"") >&5 1526 (eval $ac_compile) 2>&5 1527 ac_status=$? 1528 echo "$as_me:1528: \$? = $ac_status" >&5 1529 (exit $ac_status); } && 1530 { ac_try='test -s conftest.$ac_objext' 1531 { (eval echo "$as_me:1531: \"$ac_try\"") >&5 1532 (eval $ac_try) 2>&5 1533 ac_status=$? 1534 echo "$as_me:1534: \$? = $ac_status" >&5 1535 (exit $ac_status); }; }; then 1536 ac_compiler_gnu=yes 1537else 1538 echo "$as_me: failed program was:" >&5 1539cat conftest.$ac_ext >&5 1540ac_compiler_gnu=no 1541fi 1542rm -f conftest.$ac_objext conftest.$ac_ext 1543ac_cv_c_compiler_gnu=$ac_compiler_gnu 1544 1545fi 1546echo "$as_me:1546: result: $ac_cv_c_compiler_gnu" >&5 1547echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1548GCC=`test $ac_compiler_gnu = yes && echo yes` 1549ac_test_CFLAGS=${CFLAGS+set} 1550ac_save_CFLAGS=$CFLAGS 1551CFLAGS="-g" 1552echo "$as_me:1552: checking whether $CC accepts -g" >&5 1553echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1554if test "${ac_cv_prog_cc_g+set}" = set; then 1555 echo $ECHO_N "(cached) $ECHO_C" >&6 1556else 1557 cat >conftest.$ac_ext <<_ACEOF 1558#line 1558 "configure" 1559#include "confdefs.h" 1560 1561int 1562main () 1563{ 1564 1565 ; 1566 return 0; 1567} 1568_ACEOF 1569rm -f conftest.$ac_objext 1570if { (eval echo "$as_me:1570: \"$ac_compile\"") >&5 1571 (eval $ac_compile) 2>&5 1572 ac_status=$? 1573 echo "$as_me:1573: \$? = $ac_status" >&5 1574 (exit $ac_status); } && 1575 { ac_try='test -s conftest.$ac_objext' 1576 { (eval echo "$as_me:1576: \"$ac_try\"") >&5 1577 (eval $ac_try) 2>&5 1578 ac_status=$? 1579 echo "$as_me:1579: \$? = $ac_status" >&5 1580 (exit $ac_status); }; }; then 1581 ac_cv_prog_cc_g=yes 1582else 1583 echo "$as_me: failed program was:" >&5 1584cat conftest.$ac_ext >&5 1585ac_cv_prog_cc_g=no 1586fi 1587rm -f conftest.$ac_objext conftest.$ac_ext 1588fi 1589echo "$as_me:1589: result: $ac_cv_prog_cc_g" >&5 1590echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1591if test "$ac_test_CFLAGS" = set; then 1592 CFLAGS=$ac_save_CFLAGS 1593elif test $ac_cv_prog_cc_g = yes; then 1594 if test "$GCC" = yes; then 1595 CFLAGS="-g -O2" 1596 else 1597 CFLAGS="-g" 1598 fi 1599else 1600 if test "$GCC" = yes; then 1601 CFLAGS="-O2" 1602 else 1603 CFLAGS= 1604 fi 1605fi 1606# Some people use a C++ compiler to compile C. Since we use `exit', 1607# in C++ we need to declare it. In case someone uses the same compiler 1608# for both compiling C and C++ we need to have the C++ compiler decide 1609# the declaration of exit, since it's the most demanding environment. 1610cat >conftest.$ac_ext <<_ACEOF 1611#ifndef __cplusplus 1612 choke me 1613#endif 1614_ACEOF 1615rm -f conftest.$ac_objext 1616if { (eval echo "$as_me:1616: \"$ac_compile\"") >&5 1617 (eval $ac_compile) 2>&5 1618 ac_status=$? 1619 echo "$as_me:1619: \$? = $ac_status" >&5 1620 (exit $ac_status); } && 1621 { ac_try='test -s conftest.$ac_objext' 1622 { (eval echo "$as_me:1622: \"$ac_try\"") >&5 1623 (eval $ac_try) 2>&5 1624 ac_status=$? 1625 echo "$as_me:1625: \$? = $ac_status" >&5 1626 (exit $ac_status); }; }; then 1627 for ac_declaration in \ 1628 ''\ 1629 '#include <stdlib.h>' \ 1630 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1631 'extern "C" void std::exit (int); using std::exit;' \ 1632 'extern "C" void exit (int) throw ();' \ 1633 'extern "C" void exit (int);' \ 1634 'void exit (int);' 1635do 1636 cat >conftest.$ac_ext <<_ACEOF 1637#line 1637 "configure" 1638#include "confdefs.h" 1639#include <stdlib.h> 1640$ac_declaration 1641int 1642main () 1643{ 1644exit (42); 1645 ; 1646 return 0; 1647} 1648_ACEOF 1649rm -f conftest.$ac_objext 1650if { (eval echo "$as_me:1650: \"$ac_compile\"") >&5 1651 (eval $ac_compile) 2>&5 1652 ac_status=$? 1653 echo "$as_me:1653: \$? = $ac_status" >&5 1654 (exit $ac_status); } && 1655 { ac_try='test -s conftest.$ac_objext' 1656 { (eval echo "$as_me:1656: \"$ac_try\"") >&5 1657 (eval $ac_try) 2>&5 1658 ac_status=$? 1659 echo "$as_me:1659: \$? = $ac_status" >&5 1660 (exit $ac_status); }; }; then 1661 : 1662else 1663 echo "$as_me: failed program was:" >&5 1664cat conftest.$ac_ext >&5 1665continue 1666fi 1667rm -f conftest.$ac_objext conftest.$ac_ext 1668 cat >conftest.$ac_ext <<_ACEOF 1669#line 1669 "configure" 1670#include "confdefs.h" 1671$ac_declaration 1672int 1673main () 1674{ 1675exit (42); 1676 ; 1677 return 0; 1678} 1679_ACEOF 1680rm -f conftest.$ac_objext 1681if { (eval echo "$as_me:1681: \"$ac_compile\"") >&5 1682 (eval $ac_compile) 2>&5 1683 ac_status=$? 1684 echo "$as_me:1684: \$? = $ac_status" >&5 1685 (exit $ac_status); } && 1686 { ac_try='test -s conftest.$ac_objext' 1687 { (eval echo "$as_me:1687: \"$ac_try\"") >&5 1688 (eval $ac_try) 2>&5 1689 ac_status=$? 1690 echo "$as_me:1690: \$? = $ac_status" >&5 1691 (exit $ac_status); }; }; then 1692 break 1693else 1694 echo "$as_me: failed program was:" >&5 1695cat conftest.$ac_ext >&5 1696fi 1697rm -f conftest.$ac_objext conftest.$ac_ext 1698done 1699rm -f conftest* 1700if test -n "$ac_declaration"; then 1701 echo '#ifdef __cplusplus' >>confdefs.h 1702 echo $ac_declaration >>confdefs.h 1703 echo '#endif' >>confdefs.h 1704fi 1705 1706else 1707 echo "$as_me: failed program was:" >&5 1708cat conftest.$ac_ext >&5 1709fi 1710rm -f conftest.$ac_objext conftest.$ac_ext 1711ac_ext=c 1712ac_cpp='$CPP $CPPFLAGS' 1713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1715ac_compiler_gnu=$ac_cv_c_compiler_gnu 1716 1717ac_ext=c 1718ac_cpp='$CPP $CPPFLAGS' 1719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1721ac_compiler_gnu=$ac_cv_c_compiler_gnu 1722echo "$as_me:1722: checking how to run the C preprocessor" >&5 1723echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1724# On Suns, sometimes $CPP names a directory. 1725if test -n "$CPP" && test -d "$CPP"; then 1726 CPP= 1727fi 1728if test -z "$CPP"; then 1729 if test "${ac_cv_prog_CPP+set}" = set; then 1730 echo $ECHO_N "(cached) $ECHO_C" >&6 1731else 1732 # Double quotes because CPP needs to be expanded 1733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 1734 do 1735 ac_preproc_ok=false 1736for ac_c_preproc_warn_flag in '' yes 1737do 1738 # Use a header file that comes with gcc, so configuring glibc 1739 # with a fresh cross-compiler works. 1740 # On the NeXT, cc -E runs the code through the compiler's parser, 1741 # not just through cpp. "Syntax error" is here to catch this case. 1742 cat >conftest.$ac_ext <<_ACEOF 1743#line 1743 "configure" 1744#include "confdefs.h" 1745#include <assert.h> 1746 Syntax error 1747_ACEOF 1748if { (eval echo "$as_me:1748: \"$ac_cpp conftest.$ac_ext\"") >&5 1749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1750 ac_status=$? 1751 egrep -v '^ *\+' conftest.er1 >conftest.err 1752 rm -f conftest.er1 1753 cat conftest.err >&5 1754 echo "$as_me:1754: \$? = $ac_status" >&5 1755 (exit $ac_status); } >/dev/null; then 1756 if test -s conftest.err; then 1757 ac_cpp_err=$ac_c_preproc_warn_flag 1758 else 1759 ac_cpp_err= 1760 fi 1761else 1762 ac_cpp_err=yes 1763fi 1764if test -z "$ac_cpp_err"; then 1765 : 1766else 1767 echo "$as_me: failed program was:" >&5 1768 cat conftest.$ac_ext >&5 1769 # Broken: fails on valid input. 1770continue 1771fi 1772rm -f conftest.err conftest.$ac_ext 1773 1774 # OK, works on sane cases. Now check whether non-existent headers 1775 # can be detected and how. 1776 cat >conftest.$ac_ext <<_ACEOF 1777#line 1777 "configure" 1778#include "confdefs.h" 1779#include <ac_nonexistent.h> 1780_ACEOF 1781if { (eval echo "$as_me:1781: \"$ac_cpp conftest.$ac_ext\"") >&5 1782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1783 ac_status=$? 1784 egrep -v '^ *\+' conftest.er1 >conftest.err 1785 rm -f conftest.er1 1786 cat conftest.err >&5 1787 echo "$as_me:1787: \$? = $ac_status" >&5 1788 (exit $ac_status); } >/dev/null; then 1789 if test -s conftest.err; then 1790 ac_cpp_err=$ac_c_preproc_warn_flag 1791 else 1792 ac_cpp_err= 1793 fi 1794else 1795 ac_cpp_err=yes 1796fi 1797if test -z "$ac_cpp_err"; then 1798 # Broken: success on invalid input. 1799continue 1800else 1801 echo "$as_me: failed program was:" >&5 1802 cat conftest.$ac_ext >&5 1803 # Passes both tests. 1804ac_preproc_ok=: 1805break 1806fi 1807rm -f conftest.err conftest.$ac_ext 1808 1809done 1810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1811rm -f conftest.err conftest.$ac_ext 1812if $ac_preproc_ok; then 1813 break 1814fi 1815 1816 done 1817 ac_cv_prog_CPP=$CPP 1818 1819fi 1820 CPP=$ac_cv_prog_CPP 1821else 1822 ac_cv_prog_CPP=$CPP 1823fi 1824echo "$as_me:1824: result: $CPP" >&5 1825echo "${ECHO_T}$CPP" >&6 1826ac_preproc_ok=false 1827for ac_c_preproc_warn_flag in '' yes 1828do 1829 # Use a header file that comes with gcc, so configuring glibc 1830 # with a fresh cross-compiler works. 1831 # On the NeXT, cc -E runs the code through the compiler's parser, 1832 # not just through cpp. "Syntax error" is here to catch this case. 1833 cat >conftest.$ac_ext <<_ACEOF 1834#line 1834 "configure" 1835#include "confdefs.h" 1836#include <assert.h> 1837 Syntax error 1838_ACEOF 1839if { (eval echo "$as_me:1839: \"$ac_cpp conftest.$ac_ext\"") >&5 1840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1841 ac_status=$? 1842 egrep -v '^ *\+' conftest.er1 >conftest.err 1843 rm -f conftest.er1 1844 cat conftest.err >&5 1845 echo "$as_me:1845: \$? = $ac_status" >&5 1846 (exit $ac_status); } >/dev/null; then 1847 if test -s conftest.err; then 1848 ac_cpp_err=$ac_c_preproc_warn_flag 1849 else 1850 ac_cpp_err= 1851 fi 1852else 1853 ac_cpp_err=yes 1854fi 1855if test -z "$ac_cpp_err"; then 1856 : 1857else 1858 echo "$as_me: failed program was:" >&5 1859 cat conftest.$ac_ext >&5 1860 # Broken: fails on valid input. 1861continue 1862fi 1863rm -f conftest.err conftest.$ac_ext 1864 1865 # OK, works on sane cases. Now check whether non-existent headers 1866 # can be detected and how. 1867 cat >conftest.$ac_ext <<_ACEOF 1868#line 1868 "configure" 1869#include "confdefs.h" 1870#include <ac_nonexistent.h> 1871_ACEOF 1872if { (eval echo "$as_me:1872: \"$ac_cpp conftest.$ac_ext\"") >&5 1873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1874 ac_status=$? 1875 egrep -v '^ *\+' conftest.er1 >conftest.err 1876 rm -f conftest.er1 1877 cat conftest.err >&5 1878 echo "$as_me:1878: \$? = $ac_status" >&5 1879 (exit $ac_status); } >/dev/null; then 1880 if test -s conftest.err; then 1881 ac_cpp_err=$ac_c_preproc_warn_flag 1882 else 1883 ac_cpp_err= 1884 fi 1885else 1886 ac_cpp_err=yes 1887fi 1888if test -z "$ac_cpp_err"; then 1889 # Broken: success on invalid input. 1890continue 1891else 1892 echo "$as_me: failed program was:" >&5 1893 cat conftest.$ac_ext >&5 1894 # Passes both tests. 1895ac_preproc_ok=: 1896break 1897fi 1898rm -f conftest.err conftest.$ac_ext 1899 1900done 1901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 1902rm -f conftest.err conftest.$ac_ext 1903if $ac_preproc_ok; then 1904 : 1905else 1906 { { echo "$as_me:1906: error: C preprocessor \"$CPP\" fails sanity check" >&5 1907echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 1908 { (exit 1); exit 1; }; } 1909fi 1910 1911ac_ext=c 1912ac_cpp='$CPP $CPPFLAGS' 1913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1915ac_compiler_gnu=$ac_cv_c_compiler_gnu 1916 1917echo "$as_me:1917: checking for $CC option to accept ANSI C" >&5 1918echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1919if test "${ac_cv_prog_cc_stdc+set}" = set; then 1920 echo $ECHO_N "(cached) $ECHO_C" >&6 1921else 1922 ac_cv_prog_cc_stdc=no 1923ac_save_CC=$CC 1924cat >conftest.$ac_ext <<_ACEOF 1925#line 1925 "configure" 1926#include "confdefs.h" 1927#include <stdarg.h> 1928#include <stdio.h> 1929#include <sys/types.h> 1930#include <sys/stat.h> 1931/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1932struct buf { int x; }; 1933FILE * (*rcsopen) (struct buf *, struct stat *, int); 1934static char *e (p, i) 1935 char **p; 1936 int i; 1937{ 1938 return p[i]; 1939} 1940static char *f (char * (*g) (char **, int), char **p, ...) 1941{ 1942 char *s; 1943 va_list v; 1944 va_start (v,p); 1945 s = g (p, va_arg (v,int)); 1946 va_end (v); 1947 return s; 1948} 1949int test (int i, double x); 1950struct s1 {int (*f) (int a);}; 1951struct s2 {int (*f) (double a);}; 1952int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1953int argc; 1954char **argv; 1955int 1956main () 1957{ 1958return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1959 ; 1960 return 0; 1961} 1962_ACEOF 1963# Don't try gcc -ansi; that turns off useful extensions and 1964# breaks some systems' header files. 1965# AIX -qlanglvl=ansi 1966# Ultrix and OSF/1 -std1 1967# HP-UX 10.20 and later -Ae 1968# HP-UX older versions -Aa -D_HPUX_SOURCE 1969# SVR4 -Xc -D__EXTENSIONS__ 1970for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1971do 1972 CC="$ac_save_CC $ac_arg" 1973 rm -f conftest.$ac_objext 1974if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5 1975 (eval $ac_compile) 2>&5 1976 ac_status=$? 1977 echo "$as_me:1977: \$? = $ac_status" >&5 1978 (exit $ac_status); } && 1979 { ac_try='test -s conftest.$ac_objext' 1980 { (eval echo "$as_me:1980: \"$ac_try\"") >&5 1981 (eval $ac_try) 2>&5 1982 ac_status=$? 1983 echo "$as_me:1983: \$? = $ac_status" >&5 1984 (exit $ac_status); }; }; then 1985 ac_cv_prog_cc_stdc=$ac_arg 1986break 1987else 1988 echo "$as_me: failed program was:" >&5 1989cat conftest.$ac_ext >&5 1990fi 1991rm -f conftest.$ac_objext 1992done 1993rm -f conftest.$ac_ext conftest.$ac_objext 1994CC=$ac_save_CC 1995 1996fi 1997 1998case "x$ac_cv_prog_cc_stdc" in 1999 x|xno) 2000 echo "$as_me:2000: result: none needed" >&5 2001echo "${ECHO_T}none needed" >&6 ;; 2002 *) 2003 echo "$as_me:2003: result: $ac_cv_prog_cc_stdc" >&5 2004echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2005 CC="$CC $ac_cv_prog_cc_stdc" ;; 2006esac 2007 2008ac_aux_dir= 2009for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2010 if test -f $ac_dir/install-sh; then 2011 ac_aux_dir=$ac_dir 2012 ac_install_sh="$ac_aux_dir/install-sh -c" 2013 break 2014 elif test -f $ac_dir/install.sh; then 2015 ac_aux_dir=$ac_dir 2016 ac_install_sh="$ac_aux_dir/install.sh -c" 2017 break 2018 elif test -f $ac_dir/shtool; then 2019 ac_aux_dir=$ac_dir 2020 ac_install_sh="$ac_aux_dir/shtool install -c" 2021 break 2022 fi 2023done 2024if test -z "$ac_aux_dir"; then 2025 { { echo "$as_me:2025: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2026echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2027 { (exit 1); exit 1; }; } 2028fi 2029ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2030ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2031ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2032 2033# Find a good install program. We prefer a C program (faster), 2034# so one script is as good as another. But avoid the broken or 2035# incompatible versions: 2036# SysV /etc/install, /usr/sbin/install 2037# SunOS /usr/etc/install 2038# IRIX /sbin/install 2039# AIX /bin/install 2040# AmigaOS /C/install, which installs bootblocks on floppy discs 2041# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2042# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2043# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2044# ./install, which can be erroneously created by make from ./install.sh. 2045echo "$as_me:2045: checking for a BSD compatible install" >&5 2046echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2047if test -z "$INSTALL"; then 2048if test "${ac_cv_path_install+set}" = set; then 2049 echo $ECHO_N "(cached) $ECHO_C" >&6 2050else 2051 ac_save_IFS=$IFS; IFS=$ac_path_separator 2052 for ac_dir in $PATH; do 2053 IFS=$ac_save_IFS 2054 # Account for people who put trailing slashes in PATH elements. 2055 case $ac_dir/ in 2056 / | ./ | .// | /cC/* \ 2057 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2058 | /usr/ucb/* ) ;; 2059 *) 2060 # OSF1 and SCO ODT 3.0 have their own names for install. 2061 # Don't use installbsd from OSF since it installs stuff as root 2062 # by default. 2063 for ac_prog in ginstall scoinst install; do 2064 if $as_executable_p "$ac_dir/$ac_prog"; then 2065 if test $ac_prog = install && 2066 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2067 # AIX install. It has an incompatible calling convention. 2068 : 2069 elif test $ac_prog = install && 2070 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2071 # program-specific install script used by HP pwplus--don't use. 2072 : 2073 else 2074 ac_cv_path_install="$ac_dir/$ac_prog -c" 2075 break 2 2076 fi 2077 fi 2078 done 2079 ;; 2080 esac 2081 done 2082 2083fi 2084 if test "${ac_cv_path_install+set}" = set; then 2085 INSTALL=$ac_cv_path_install 2086 else 2087 # As a last resort, use the slow shell script. We don't cache a 2088 # path for INSTALL within a source directory, because that will 2089 # break other packages using the cache if that directory is 2090 # removed, or if the path is relative. 2091 INSTALL=$ac_install_sh 2092 fi 2093fi 2094echo "$as_me:2094: result: $INSTALL" >&5 2095echo "${ECHO_T}$INSTALL" >&6 2096 2097# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2098# It thinks the first close brace ends the variable substitution. 2099test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2100 2101test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2102 2103test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2104 2105echo "$as_me:2105: checking whether build environment is sane" >&5 2106echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2107# Just in case 2108sleep 1 2109echo timestamp > conftest.file 2110# Do `set' in a subshell so we don't clobber the current shell's 2111# arguments. Must try -L first in case configure is actually a 2112# symlink; some systems play weird games with the mod time of symlinks 2113# (eg FreeBSD returns the mod time of the symlink's containing 2114# directory). 2115if ( 2116 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2117 if test "$*" = "X"; then 2118 # -L didn't work. 2119 set X `ls -t $srcdir/configure conftest.file` 2120 fi 2121 rm -f conftest.file 2122 if test "$*" != "X $srcdir/configure conftest.file" \ 2123 && test "$*" != "X conftest.file $srcdir/configure"; then 2124 2125 # If neither matched, then we have a broken ls. This can happen 2126 # if, for instance, CONFIG_SHELL is bash and it inherits a 2127 # broken ls alias from the environment. This has actually 2128 # happened. Such a system could not be considered "sane". 2129 { { echo "$as_me:2129: error: ls -t appears to fail. Make sure there is not a broken 2130alias in your environment" >&5 2131echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2132alias in your environment" >&2;} 2133 { (exit 1); exit 1; }; } 2134 fi 2135 2136 test "$2" = conftest.file 2137 ) 2138then 2139 # Ok. 2140 : 2141else 2142 { { echo "$as_me:2142: error: newly created file is older than distributed files! 2143Check your system clock" >&5 2144echo "$as_me: error: newly created file is older than distributed files! 2145Check your system clock" >&2;} 2146 { (exit 1); exit 1; }; } 2147fi 2148echo "$as_me:2148: result: yes" >&5 2149echo "${ECHO_T}yes" >&6 2150test "$program_prefix" != NONE && 2151 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2152# Use a double $ so make ignores it. 2153test "$program_suffix" != NONE && 2154 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2155# Double any \ or $. echo might interpret backslashes. 2156# By default was `s,x,x', remove it if useless. 2157cat <<\_ACEOF >conftest.sed 2158s/[\\$]/&&/g;s/;s,x,x,$// 2159_ACEOF 2160program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2161rm conftest.sed 2162 2163# expand $ac_aux_dir to an absolute path 2164am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` 2165 2166test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2167# Use eval to expand $SHELL 2168if eval "$MISSING --run true"; then 2169 am_missing_run="$MISSING --run " 2170else 2171 am_missing_run= 2172 am_backtick='`' 2173 { echo "$as_me:2173: WARNING: ${am_backtick}missing' script is too old or missing" >&5 2174echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} 2175fi 2176 2177for ac_prog in mawk gawk nawk awk 2178do 2179 # Extract the first word of "$ac_prog", so it can be a program name with args. 2180set dummy $ac_prog; ac_word=$2 2181echo "$as_me:2181: checking for $ac_word" >&5 2182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2183if test "${ac_cv_prog_AWK+set}" = set; then 2184 echo $ECHO_N "(cached) $ECHO_C" >&6 2185else 2186 if test -n "$AWK"; then 2187 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2188else 2189 ac_save_IFS=$IFS; IFS=$ac_path_separator 2190ac_dummy="$PATH" 2191for ac_dir in $ac_dummy; do 2192 IFS=$ac_save_IFS 2193 test -z "$ac_dir" && ac_dir=. 2194 $as_executable_p "$ac_dir/$ac_word" || continue 2195ac_cv_prog_AWK="$ac_prog" 2196echo "$as_me:2196: found $ac_dir/$ac_word" >&5 2197break 2198done 2199 2200fi 2201fi 2202AWK=$ac_cv_prog_AWK 2203if test -n "$AWK"; then 2204 echo "$as_me:2204: result: $AWK" >&5 2205echo "${ECHO_T}$AWK" >&6 2206else 2207 echo "$as_me:2207: result: no" >&5 2208echo "${ECHO_T}no" >&6 2209fi 2210 2211 test -n "$AWK" && break 2212done 2213 2214echo "$as_me:2214: checking whether ${MAKE-make} sets \${MAKE}" >&5 2215echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2216set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2217if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2218 echo $ECHO_N "(cached) $ECHO_C" >&6 2219else 2220 cat >conftest.make <<\EOF 2221all: 2222 @echo 'ac_maketemp="${MAKE}"' 2223EOF 2224# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2225eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2226if test -n "$ac_maketemp"; then 2227 eval ac_cv_prog_make_${ac_make}_set=yes 2228else 2229 eval ac_cv_prog_make_${ac_make}_set=no 2230fi 2231rm -f conftest.make 2232fi 2233if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2234 echo "$as_me:2234: result: yes" >&5 2235echo "${ECHO_T}yes" >&6 2236 SET_MAKE= 2237else 2238 echo "$as_me:2238: result: no" >&5 2239echo "${ECHO_T}no" >&6 2240 SET_MAKE="MAKE=${MAKE-make}" 2241fi 2242 2243# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2244if test "${enable_dependency_tracking+set}" = set; then 2245 enableval="$enable_dependency_tracking" 2246 2247fi; 2248if test "x$enable_dependency_tracking" != xno; then 2249 am_depcomp="$ac_aux_dir/depcomp" 2250 AMDEPBACKSLASH='\' 2251fi 2252 2253if test "x$enable_dependency_tracking" != xno; then 2254 AMDEP_TRUE= 2255 AMDEP_FALSE='#' 2256else 2257 AMDEP_TRUE='#' 2258 AMDEP_FALSE= 2259fi 2260 2261rm -f .deps 2>/dev/null 2262mkdir .deps 2>/dev/null 2263if test -d .deps; then 2264 DEPDIR=.deps 2265else 2266 # MS-DOS does not allow filenames that begin with a dot. 2267 DEPDIR=_deps 2268fi 2269rmdir .deps 2>/dev/null 2270 2271ac_config_commands="$ac_config_commands default-1" 2272 2273am_make=${MAKE-make} 2274cat > confinc << 'END' 2275doit: 2276 @echo done 2277END 2278# If we don't find an include directive, just comment out the code. 2279echo "$as_me:2279: checking for style of include used by $am_make" >&5 2280echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2281am__include='#' 2282am__quote= 2283_am_result=none 2284# First try GNU make style include. 2285echo "include confinc" > confmf 2286# We grep out `Entering directory' and `Leaving directory' 2287# messages which can occur if `w' ends up in MAKEFLAGS. 2288# In particular we don't look at `^make:' because GNU make might 2289# be invoked under some other name (usually "gmake"), in which 2290# case it prints its new name instead of `make'. 2291if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2292 am__include=include 2293 am__quote= 2294 _am_result=GNU 2295fi 2296# Now try BSD make style include. 2297if test "$am__include" = "#"; then 2298 echo '.include "confinc"' > confmf 2299 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2300 am__include=.include 2301 am__quote='"' 2302 _am_result=BSD 2303 fi 2304fi 2305 2306echo "$as_me:2306: result: $_am_result" >&5 2307echo "${ECHO_T}$_am_result" >&6 2308rm -f confinc confmf 2309 2310# test to see if srcdir already configured 2311if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 2312 test -f $srcdir/config.status; then 2313 { { echo "$as_me:2313: error: source directory already configured; run \"make distclean\" there first" >&5 2314echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2315 { (exit 1); exit 1; }; } 2316fi 2317 2318# Define the identity of the package. 2319PACKAGE=heimdal 2320VERSION=0.4e 2321 2322cat >>confdefs.h <<EOF 2323#define PACKAGE "$PACKAGE" 2324EOF 2325 2326cat >>confdefs.h <<EOF 2327#define VERSION "$VERSION" 2328EOF 2329 2330# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 2331# the ones we care about. 2332 2333# Autoconf 2.50 always computes EXEEXT. However we need to be 2334# compatible with 2.13, for now. So we always define EXEEXT, but we 2335# don't compute it. 2336 2337# Similar for OBJEXT -- only we only use OBJEXT if the user actually 2338# requests that it be used. This is a bit dumb. 2339: ${OBJEXT=o} 2340 2341# Some tools Automake needs. 2342 2343ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 2344 2345AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2346 2347AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 2348 2349AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2350 2351MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2352 2353AMTAR=${AMTAR-"${am_missing_run}tar"} 2354 2355install_sh=${install_sh-"$am_aux_dir/install-sh"} 2356 2357INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2358 2359# We need awk for the "check" target. The system "awk" is bad on 2360# some platforms. 2361 2362depcc="$CC" am_compiler_list= 2363 2364echo "$as_me:2364: checking dependency style of $depcc" >&5 2365echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2366if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2367 echo $ECHO_N "(cached) $ECHO_C" >&6 2368else 2369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2370 # We make a subdir and do the tests there. Otherwise we can end up 2371 # making bogus files that we don't know about and never remove. For 2372 # instance it was reported that on HP-UX the gcc test will end up 2373 # making a dummy file named `D' -- because `-MD' means `put the output 2374 # in D'. 2375 mkdir conftest.dir 2376 # Copy depcomp to subdir because otherwise we won't find it if we're 2377 # using a relative directory. 2378 cp "$am_depcomp" conftest.dir 2379 cd conftest.dir 2380 2381 am_cv_CC_dependencies_compiler_type=none 2382 if test "$am_compiler_list" = ""; then 2383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2384 fi 2385 for depmode in $am_compiler_list; do 2386 # We need to recreate these files for each test, as the compiler may 2387 # overwrite some of them when testing with obscure command lines. 2388 # This happens at least with the AIX C compiler. 2389 echo '#include "conftest.h"' > conftest.c 2390 echo 'int i;' > conftest.h 2391 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2392 2393 case $depmode in 2394 nosideeffect) 2395 # after this tag, mechanisms are not by side-effect, so they'll 2396 # only be used when explicitly requested 2397 if test "x$enable_dependency_tracking" = xyes; then 2398 continue 2399 else 2400 break 2401 fi 2402 ;; 2403 none) break ;; 2404 esac 2405 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2406 # mode. It turns out that the SunPro C++ compiler does not properly 2407 # handle `-M -o', and we need to detect this. 2408 if depmode=$depmode \ 2409 source=conftest.c object=conftest.o \ 2410 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2411 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2412 grep conftest.h conftest.Po > /dev/null 2>&1 && 2413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2414 am_cv_CC_dependencies_compiler_type=$depmode 2415 break 2416 fi 2417 done 2418 2419 cd .. 2420 rm -rf conftest.dir 2421else 2422 am_cv_CC_dependencies_compiler_type=none 2423fi 2424 2425fi 2426echo "$as_me:2426: result: $am_cv_CC_dependencies_compiler_type" >&5 2427echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2428CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 2429 2430# Make sure we can run config.sub. 2431$ac_config_sub sun4 >/dev/null 2>&1 || 2432 { { echo "$as_me:2432: error: cannot run $ac_config_sub" >&5 2433echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2434 { (exit 1); exit 1; }; } 2435 2436echo "$as_me:2436: checking build system type" >&5 2437echo $ECHO_N "checking build system type... $ECHO_C" >&6 2438if test "${ac_cv_build+set}" = set; then 2439 echo $ECHO_N "(cached) $ECHO_C" >&6 2440else 2441 ac_cv_build_alias=$build_alias 2442test -z "$ac_cv_build_alias" && 2443 ac_cv_build_alias=`$ac_config_guess` 2444test -z "$ac_cv_build_alias" && 2445 { { echo "$as_me:2445: error: cannot guess build type; you must specify one" >&5 2446echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2447 { (exit 1); exit 1; }; } 2448ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2449 { { echo "$as_me:2449: error: $ac_config_sub $ac_cv_build_alias failed." >&5 2450echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 2451 { (exit 1); exit 1; }; } 2452 2453fi 2454echo "$as_me:2454: result: $ac_cv_build" >&5 2455echo "${ECHO_T}$ac_cv_build" >&6 2456build=$ac_cv_build 2457build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2458build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2459build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2460 2461echo "$as_me:2461: checking host system type" >&5 2462echo $ECHO_N "checking host system type... $ECHO_C" >&6 2463if test "${ac_cv_host+set}" = set; then 2464 echo $ECHO_N "(cached) $ECHO_C" >&6 2465else 2466 ac_cv_host_alias=$host_alias 2467test -z "$ac_cv_host_alias" && 2468 ac_cv_host_alias=$ac_cv_build_alias 2469ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2470 { { echo "$as_me:2470: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2471echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2472 { (exit 1); exit 1; }; } 2473 2474fi 2475echo "$as_me:2475: result: $ac_cv_host" >&5 2476echo "${ECHO_T}$ac_cv_host" >&6 2477host=$ac_cv_host 2478host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2479host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2480host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2481 2482CANONICAL_HOST=$host 2483 2484sunos=no 2485case "$host" in 2486*-*-sunos4*) 2487 sunos=40 2488 ;; 2489*-*-solaris2.7) 2490 sunos=57 2491 ;; 2492*-*-solaris2.8) 2493 sunos=58 2494 ;; 2495*-*-solaris2*) 2496 sunos=50 2497 ;; 2498esac 2499if test "$sunos" != no; then 2500 2501cat >>confdefs.h <<EOF 2502#define SunOS $sunos 2503EOF 2504 2505fi 2506 2507aix=no 2508case "$host" in 2509*-*-aix3*) 2510 aix=3 2511 ;; 2512*-*-aix4*) 2513 aix=4 2514 ;; 2515esac 2516 2517#test -z "$CFLAGS" && CFLAGS="-g" 2518 2519for ac_prog in 'bison -y' byacc 2520do 2521 # Extract the first word of "$ac_prog", so it can be a program name with args. 2522set dummy $ac_prog; ac_word=$2 2523echo "$as_me:2523: checking for $ac_word" >&5 2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2525if test "${ac_cv_prog_YACC+set}" = set; then 2526 echo $ECHO_N "(cached) $ECHO_C" >&6 2527else 2528 if test -n "$YACC"; then 2529 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2530else 2531 ac_save_IFS=$IFS; IFS=$ac_path_separator 2532ac_dummy="$PATH" 2533for ac_dir in $ac_dummy; do 2534 IFS=$ac_save_IFS 2535 test -z "$ac_dir" && ac_dir=. 2536 $as_executable_p "$ac_dir/$ac_word" || continue 2537ac_cv_prog_YACC="$ac_prog" 2538echo "$as_me:2538: found $ac_dir/$ac_word" >&5 2539break 2540done 2541 2542fi 2543fi 2544YACC=$ac_cv_prog_YACC 2545if test -n "$YACC"; then 2546 echo "$as_me:2546: result: $YACC" >&5 2547echo "${ECHO_T}$YACC" >&6 2548else 2549 echo "$as_me:2549: result: no" >&5 2550echo "${ECHO_T}no" >&6 2551fi 2552 2553 test -n "$YACC" && break 2554done 2555test -n "$YACC" || YACC="yacc" 2556 2557for ac_prog in flex lex 2558do 2559 # Extract the first word of "$ac_prog", so it can be a program name with args. 2560set dummy $ac_prog; ac_word=$2 2561echo "$as_me:2561: checking for $ac_word" >&5 2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2563if test "${ac_cv_prog_LEX+set}" = set; then 2564 echo $ECHO_N "(cached) $ECHO_C" >&6 2565else 2566 if test -n "$LEX"; then 2567 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2568else 2569 ac_save_IFS=$IFS; IFS=$ac_path_separator 2570ac_dummy="$PATH" 2571for ac_dir in $ac_dummy; do 2572 IFS=$ac_save_IFS 2573 test -z "$ac_dir" && ac_dir=. 2574 $as_executable_p "$ac_dir/$ac_word" || continue 2575ac_cv_prog_LEX="$ac_prog" 2576echo "$as_me:2576: found $ac_dir/$ac_word" >&5 2577break 2578done 2579 2580fi 2581fi 2582LEX=$ac_cv_prog_LEX 2583if test -n "$LEX"; then 2584 echo "$as_me:2584: result: $LEX" >&5 2585echo "${ECHO_T}$LEX" >&6 2586else 2587 echo "$as_me:2587: result: no" >&5 2588echo "${ECHO_T}no" >&6 2589fi 2590 2591 test -n "$LEX" && break 2592done 2593test -n "$LEX" || LEX="${am_missing_run}flex" 2594 2595for ac_prog in flex lex 2596do 2597 # Extract the first word of "$ac_prog", so it can be a program name with args. 2598set dummy $ac_prog; ac_word=$2 2599echo "$as_me:2599: checking for $ac_word" >&5 2600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2601if test "${ac_cv_prog_LEX+set}" = set; then 2602 echo $ECHO_N "(cached) $ECHO_C" >&6 2603else 2604 if test -n "$LEX"; then 2605 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2606else 2607 ac_save_IFS=$IFS; IFS=$ac_path_separator 2608ac_dummy="$PATH" 2609for ac_dir in $ac_dummy; do 2610 IFS=$ac_save_IFS 2611 test -z "$ac_dir" && ac_dir=. 2612 $as_executable_p "$ac_dir/$ac_word" || continue 2613ac_cv_prog_LEX="$ac_prog" 2614echo "$as_me:2614: found $ac_dir/$ac_word" >&5 2615break 2616done 2617 2618fi 2619fi 2620LEX=$ac_cv_prog_LEX 2621if test -n "$LEX"; then 2622 echo "$as_me:2622: result: $LEX" >&5 2623echo "${ECHO_T}$LEX" >&6 2624else 2625 echo "$as_me:2625: result: no" >&5 2626echo "${ECHO_T}no" >&6 2627fi 2628 2629 test -n "$LEX" && break 2630done 2631test -n "$LEX" || LEX=":" 2632 2633if test -z "$LEXLIB" 2634then 2635 echo "$as_me:2635: checking for yywrap in -lfl" >&5 2636echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 2637if test "${ac_cv_lib_fl_yywrap+set}" = set; then 2638 echo $ECHO_N "(cached) $ECHO_C" >&6 2639else 2640 ac_check_lib_save_LIBS=$LIBS 2641LIBS="-lfl $LIBS" 2642cat >conftest.$ac_ext <<_ACEOF 2643#line 2643 "configure" 2644#include "confdefs.h" 2645 2646/* Override any gcc2 internal prototype to avoid an error. */ 2647#ifdef __cplusplus 2648extern "C" 2649#endif 2650/* We use char because int might match the return type of a gcc2 2651 builtin and then its argument prototype would still apply. */ 2652char yywrap (); 2653int 2654main () 2655{ 2656yywrap (); 2657 ; 2658 return 0; 2659} 2660_ACEOF 2661rm -f conftest.$ac_objext conftest$ac_exeext 2662if { (eval echo "$as_me:2662: \"$ac_link\"") >&5 2663 (eval $ac_link) 2>&5 2664 ac_status=$? 2665 echo "$as_me:2665: \$? = $ac_status" >&5 2666 (exit $ac_status); } && 2667 { ac_try='test -s conftest$ac_exeext' 2668 { (eval echo "$as_me:2668: \"$ac_try\"") >&5 2669 (eval $ac_try) 2>&5 2670 ac_status=$? 2671 echo "$as_me:2671: \$? = $ac_status" >&5 2672 (exit $ac_status); }; }; then 2673 ac_cv_lib_fl_yywrap=yes 2674else 2675 echo "$as_me: failed program was:" >&5 2676cat conftest.$ac_ext >&5 2677ac_cv_lib_fl_yywrap=no 2678fi 2679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2680LIBS=$ac_check_lib_save_LIBS 2681fi 2682echo "$as_me:2682: result: $ac_cv_lib_fl_yywrap" >&5 2683echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 2684if test $ac_cv_lib_fl_yywrap = yes; then 2685 LEXLIB="-lfl" 2686else 2687 echo "$as_me:2687: checking for yywrap in -ll" >&5 2688echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 2689if test "${ac_cv_lib_l_yywrap+set}" = set; then 2690 echo $ECHO_N "(cached) $ECHO_C" >&6 2691else 2692 ac_check_lib_save_LIBS=$LIBS 2693LIBS="-ll $LIBS" 2694cat >conftest.$ac_ext <<_ACEOF 2695#line 2695 "configure" 2696#include "confdefs.h" 2697 2698/* Override any gcc2 internal prototype to avoid an error. */ 2699#ifdef __cplusplus 2700extern "C" 2701#endif 2702/* We use char because int might match the return type of a gcc2 2703 builtin and then its argument prototype would still apply. */ 2704char yywrap (); 2705int 2706main () 2707{ 2708yywrap (); 2709 ; 2710 return 0; 2711} 2712_ACEOF 2713rm -f conftest.$ac_objext conftest$ac_exeext 2714if { (eval echo "$as_me:2714: \"$ac_link\"") >&5 2715 (eval $ac_link) 2>&5 2716 ac_status=$? 2717 echo "$as_me:2717: \$? = $ac_status" >&5 2718 (exit $ac_status); } && 2719 { ac_try='test -s conftest$ac_exeext' 2720 { (eval echo "$as_me:2720: \"$ac_try\"") >&5 2721 (eval $ac_try) 2>&5 2722 ac_status=$? 2723 echo "$as_me:2723: \$? = $ac_status" >&5 2724 (exit $ac_status); }; }; then 2725 ac_cv_lib_l_yywrap=yes 2726else 2727 echo "$as_me: failed program was:" >&5 2728cat conftest.$ac_ext >&5 2729ac_cv_lib_l_yywrap=no 2730fi 2731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2732LIBS=$ac_check_lib_save_LIBS 2733fi 2734echo "$as_me:2734: result: $ac_cv_lib_l_yywrap" >&5 2735echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 2736if test $ac_cv_lib_l_yywrap = yes; then 2737 LEXLIB="-ll" 2738fi 2739 2740fi 2741 2742fi 2743 2744if test "x$LEX" != "x:"; then 2745 echo "$as_me:2745: checking lex output file root" >&5 2746echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 2747if test "${ac_cv_prog_lex_root+set}" = set; then 2748 echo $ECHO_N "(cached) $ECHO_C" >&6 2749else 2750 # The minimal lex program is just a single line: %%. But some broken lexes 2751# (Solaris, I think it was) want two %% lines, so accommodate them. 2752echo '%% 2753%%' | $LEX 2754if test -f lex.yy.c; then 2755 ac_cv_prog_lex_root=lex.yy 2756elif test -f lexyy.c; then 2757 ac_cv_prog_lex_root=lexyy 2758else 2759 { { echo "$as_me:2759: error: cannot find output from $LEX; giving up" >&5 2760echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 2761 { (exit 1); exit 1; }; } 2762fi 2763fi 2764echo "$as_me:2764: result: $ac_cv_prog_lex_root" >&5 2765echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 2766LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 2767 2768echo "$as_me:2768: checking whether yytext is a pointer" >&5 2769echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 2770if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 2771 echo $ECHO_N "(cached) $ECHO_C" >&6 2772else 2773 # POSIX says lex can declare yytext either as a pointer or an array; the 2774# default is implementation-dependent. Figure out which it is, since 2775# not all implementations provide the %pointer and %array declarations. 2776ac_cv_prog_lex_yytext_pointer=no 2777echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 2778ac_save_LIBS=$LIBS 2779LIBS="$LIBS $LEXLIB" 2780cat >conftest.$ac_ext <<_ACEOF 2781`cat $LEX_OUTPUT_ROOT.c` 2782_ACEOF 2783rm -f conftest.$ac_objext conftest$ac_exeext 2784if { (eval echo "$as_me:2784: \"$ac_link\"") >&5 2785 (eval $ac_link) 2>&5 2786 ac_status=$? 2787 echo "$as_me:2787: \$? = $ac_status" >&5 2788 (exit $ac_status); } && 2789 { ac_try='test -s conftest$ac_exeext' 2790 { (eval echo "$as_me:2790: \"$ac_try\"") >&5 2791 (eval $ac_try) 2>&5 2792 ac_status=$? 2793 echo "$as_me:2793: \$? = $ac_status" >&5 2794 (exit $ac_status); }; }; then 2795 ac_cv_prog_lex_yytext_pointer=yes 2796else 2797 echo "$as_me: failed program was:" >&5 2798cat conftest.$ac_ext >&5 2799fi 2800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2801LIBS=$ac_save_LIBS 2802rm -f "${LEX_OUTPUT_ROOT}.c" 2803 2804fi 2805echo "$as_me:2805: result: $ac_cv_prog_lex_yytext_pointer" >&5 2806echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 2807if test $ac_cv_prog_lex_yytext_pointer = yes; then 2808 2809cat >>confdefs.h <<\EOF 2810#define YYTEXT_POINTER 1 2811EOF 2812 2813fi 2814 2815fi 2816 2817if test -n "$ac_tool_prefix"; then 2818 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2819set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2820echo "$as_me:2820: checking for $ac_word" >&5 2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2822if test "${ac_cv_prog_RANLIB+set}" = set; then 2823 echo $ECHO_N "(cached) $ECHO_C" >&6 2824else 2825 if test -n "$RANLIB"; then 2826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2827else 2828 ac_save_IFS=$IFS; IFS=$ac_path_separator 2829ac_dummy="$PATH" 2830for ac_dir in $ac_dummy; do 2831 IFS=$ac_save_IFS 2832 test -z "$ac_dir" && ac_dir=. 2833 $as_executable_p "$ac_dir/$ac_word" || continue 2834ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2835echo "$as_me:2835: found $ac_dir/$ac_word" >&5 2836break 2837done 2838 2839fi 2840fi 2841RANLIB=$ac_cv_prog_RANLIB 2842if test -n "$RANLIB"; then 2843 echo "$as_me:2843: result: $RANLIB" >&5 2844echo "${ECHO_T}$RANLIB" >&6 2845else 2846 echo "$as_me:2846: result: no" >&5 2847echo "${ECHO_T}no" >&6 2848fi 2849 2850fi 2851if test -z "$ac_cv_prog_RANLIB"; then 2852 ac_ct_RANLIB=$RANLIB 2853 # Extract the first word of "ranlib", so it can be a program name with args. 2854set dummy ranlib; ac_word=$2 2855echo "$as_me:2855: checking for $ac_word" >&5 2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2857if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2858 echo $ECHO_N "(cached) $ECHO_C" >&6 2859else 2860 if test -n "$ac_ct_RANLIB"; then 2861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2862else 2863 ac_save_IFS=$IFS; IFS=$ac_path_separator 2864ac_dummy="$PATH" 2865for ac_dir in $ac_dummy; do 2866 IFS=$ac_save_IFS 2867 test -z "$ac_dir" && ac_dir=. 2868 $as_executable_p "$ac_dir/$ac_word" || continue 2869ac_cv_prog_ac_ct_RANLIB="ranlib" 2870echo "$as_me:2870: found $ac_dir/$ac_word" >&5 2871break 2872done 2873 2874 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2875fi 2876fi 2877ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2878if test -n "$ac_ct_RANLIB"; then 2879 echo "$as_me:2879: result: $ac_ct_RANLIB" >&5 2880echo "${ECHO_T}$ac_ct_RANLIB" >&6 2881else 2882 echo "$as_me:2882: result: no" >&5 2883echo "${ECHO_T}no" >&6 2884fi 2885 2886 RANLIB=$ac_ct_RANLIB 2887else 2888 RANLIB="$ac_cv_prog_RANLIB" 2889fi 2890 2891for ac_prog in mawk gawk nawk awk 2892do 2893 # Extract the first word of "$ac_prog", so it can be a program name with args. 2894set dummy $ac_prog; ac_word=$2 2895echo "$as_me:2895: checking for $ac_word" >&5 2896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2897if test "${ac_cv_prog_AWK+set}" = set; then 2898 echo $ECHO_N "(cached) $ECHO_C" >&6 2899else 2900 if test -n "$AWK"; then 2901 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2902else 2903 ac_save_IFS=$IFS; IFS=$ac_path_separator 2904ac_dummy="$PATH" 2905for ac_dir in $ac_dummy; do 2906 IFS=$ac_save_IFS 2907 test -z "$ac_dir" && ac_dir=. 2908 $as_executable_p "$ac_dir/$ac_word" || continue 2909ac_cv_prog_AWK="$ac_prog" 2910echo "$as_me:2910: found $ac_dir/$ac_word" >&5 2911break 2912done 2913 2914fi 2915fi 2916AWK=$ac_cv_prog_AWK 2917if test -n "$AWK"; then 2918 echo "$as_me:2918: result: $AWK" >&5 2919echo "${ECHO_T}$AWK" >&6 2920else 2921 echo "$as_me:2921: result: no" >&5 2922echo "${ECHO_T}no" >&6 2923fi 2924 2925 test -n "$AWK" && break 2926done 2927 2928echo "$as_me:2928: checking for ln -s or something else" >&5 2929echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6 2930if test "${ac_cv_prog_LN_S+set}" = set; then 2931 echo $ECHO_N "(cached) $ECHO_C" >&6 2932else 2933 rm -f conftestdata 2934if ln -s X conftestdata 2>/dev/null 2935then 2936 rm -f conftestdata 2937 ac_cv_prog_LN_S="ln -s" 2938else 2939 touch conftestdata1 2940 if ln conftestdata1 conftestdata2; then 2941 rm -f conftestdata* 2942 ac_cv_prog_LN_S=ln 2943 else 2944 ac_cv_prog_LN_S=cp 2945 fi 2946fi 2947fi 2948LN_S="$ac_cv_prog_LN_S" 2949echo "$as_me:2949: result: $ac_cv_prog_LN_S" >&5 2950echo "${ECHO_T}$ac_cv_prog_LN_S" >&6 2951 2952# Check whether --with-mips_abi or --without-mips_abi was given. 2953if test "${with_mips_abi+set}" = set; then 2954 withval="$with_mips_abi" 2955 2956fi; 2957 2958case "$host_os" in 2959irix*) 2960with_mips_abi="${with_mips_abi:-yes}" 2961if test -n "$GCC"; then 2962 2963# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 2964# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 2965# 2966# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 2967# GCC and revert back to O32. The same goes if O32 is asked for - old 2968# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 2969# 2970# Don't you just love *all* the different SGI ABIs? 2971 2972case "${with_mips_abi}" in 2973 32|o32) abi='-mabi=32'; abilibdirext='' ;; 2974 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 2975 64) abi='-mabi=64'; abilibdirext='64' ;; 2976 no) abi=''; abilibdirext='';; 2977 *) { { echo "$as_me:2977: error: \"Invalid ABI specified\"" >&5 2978echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 2979 { (exit 1); exit 1; }; } ;; 2980esac 2981if test -n "$abi" ; then 2982ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 2983echo "$as_me:2983: checking if $CC supports the $abi option" >&5 2984echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6 2985if eval "test \"\${$ac_foo+set}\" = set"; then 2986 echo $ECHO_N "(cached) $ECHO_C" >&6 2987else 2988 2989save_CFLAGS="$CFLAGS" 2990CFLAGS="$CFLAGS $abi" 2991cat >conftest.$ac_ext <<_ACEOF 2992#line 2992 "configure" 2993#include "confdefs.h" 2994 2995int 2996main () 2997{ 2998int x; 2999 ; 3000 return 0; 3001} 3002_ACEOF 3003rm -f conftest.$ac_objext 3004if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5 3005 (eval $ac_compile) 2>&5 3006 ac_status=$? 3007 echo "$as_me:3007: \$? = $ac_status" >&5 3008 (exit $ac_status); } && 3009 { ac_try='test -s conftest.$ac_objext' 3010 { (eval echo "$as_me:3010: \"$ac_try\"") >&5 3011 (eval $ac_try) 2>&5 3012 ac_status=$? 3013 echo "$as_me:3013: \$? = $ac_status" >&5 3014 (exit $ac_status); }; }; then 3015 eval $ac_foo=yes 3016else 3017 echo "$as_me: failed program was:" >&5 3018cat conftest.$ac_ext >&5 3019eval $ac_foo=no 3020fi 3021rm -f conftest.$ac_objext conftest.$ac_ext 3022CFLAGS="$save_CFLAGS" 3023 3024fi 3025 3026ac_res=`eval echo \\\$$ac_foo` 3027echo "$as_me:3027: result: $ac_res" >&5 3028echo "${ECHO_T}$ac_res" >&6 3029if test $ac_res = no; then 3030# Try to figure out why that failed... 3031case $abi in 3032 -mabi=32) 3033 save_CFLAGS="$CFLAGS" 3034 CFLAGS="$CFLAGS -mabi=n32" 3035 cat >conftest.$ac_ext <<_ACEOF 3036#line 3036 "configure" 3037#include "confdefs.h" 3038 3039int 3040main () 3041{ 3042int x; 3043 ; 3044 return 0; 3045} 3046_ACEOF 3047rm -f conftest.$ac_objext 3048if { (eval echo "$as_me:3048: \"$ac_compile\"") >&5 3049 (eval $ac_compile) 2>&5 3050 ac_status=$? 3051 echo "$as_me:3051: \$? = $ac_status" >&5 3052 (exit $ac_status); } && 3053 { ac_try='test -s conftest.$ac_objext' 3054 { (eval echo "$as_me:3054: \"$ac_try\"") >&5 3055 (eval $ac_try) 2>&5 3056 ac_status=$? 3057 echo "$as_me:3057: \$? = $ac_status" >&5 3058 (exit $ac_status); }; }; then 3059 ac_res=yes 3060else 3061 echo "$as_me: failed program was:" >&5 3062cat conftest.$ac_ext >&5 3063ac_res=no 3064fi 3065rm -f conftest.$ac_objext conftest.$ac_ext 3066 CLAGS="$save_CFLAGS" 3067 if test $ac_res = yes; then 3068 # New GCC 3069 { { echo "$as_me:3069: error: $CC does not support the $with_mips_abi ABI" >&5 3070echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 3071 { (exit 1); exit 1; }; } 3072 fi 3073 # Old GCC 3074 abi='' 3075 abilibdirext='' 3076 ;; 3077 -mabi=n32|-mabi=64) 3078 if test $with_mips_abi = yes; then 3079 # Old GCC, default to O32 3080 abi='' 3081 abilibdirext='' 3082 else 3083 # Some broken GCC 3084 { { echo "$as_me:3084: error: $CC does not support the $with_mips_abi ABI" >&5 3085echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 3086 { (exit 1); exit 1; }; } 3087 fi 3088 ;; 3089esac 3090fi #if test $ac_res = no; then 3091fi #if test -n "$abi" ; then 3092else 3093case "${with_mips_abi}" in 3094 32|o32) abi='-32'; abilibdirext='' ;; 3095 n32|yes) abi='-n32'; abilibdirext='32' ;; 3096 64) abi='-64'; abilibdirext='64' ;; 3097 no) abi=''; abilibdirext='';; 3098 *) { { echo "$as_me:3098: error: \"Invalid ABI specified\"" >&5 3099echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 3100 { (exit 1); exit 1; }; } ;; 3101esac 3102fi #if test -n "$GCC"; then 3103;; 3104esac 3105 3106CC="$CC $abi" 3107libdir="$libdir$abilibdirext" 3108 3109echo "$as_me:3109: checking for __attribute__" >&5 3110echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 3111if test "${ac_cv___attribute__+set}" = set; then 3112 echo $ECHO_N "(cached) $ECHO_C" >&6 3113else 3114 3115cat >conftest.$ac_ext <<_ACEOF 3116#line 3116 "configure" 3117#include "confdefs.h" 3118 3119#include <stdlib.h> 3120 3121int 3122main () 3123{ 3124 3125static void foo(void) __attribute__ ((noreturn)); 3126 3127static void 3128foo(void) 3129{ 3130 exit(1); 3131} 3132 3133 ; 3134 return 0; 3135} 3136_ACEOF 3137rm -f conftest.$ac_objext 3138if { (eval echo "$as_me:3138: \"$ac_compile\"") >&5 3139 (eval $ac_compile) 2>&5 3140 ac_status=$? 3141 echo "$as_me:3141: \$? = $ac_status" >&5 3142 (exit $ac_status); } && 3143 { ac_try='test -s conftest.$ac_objext' 3144 { (eval echo "$as_me:3144: \"$ac_try\"") >&5 3145 (eval $ac_try) 2>&5 3146 ac_status=$? 3147 echo "$as_me:3147: \$? = $ac_status" >&5 3148 (exit $ac_status); }; }; then 3149 ac_cv___attribute__=yes 3150else 3151 echo "$as_me: failed program was:" >&5 3152cat conftest.$ac_ext >&5 3153ac_cv___attribute__=no 3154fi 3155rm -f conftest.$ac_objext conftest.$ac_ext 3156fi 3157 3158if test "$ac_cv___attribute__" = "yes"; then 3159 3160cat >>confdefs.h <<\EOF 3161#define HAVE___ATTRIBUTE__ 1 3162EOF 3163 3164fi 3165echo "$as_me:3165: result: $ac_cv___attribute__" >&5 3166echo "${ECHO_T}$ac_cv___attribute__" >&6 3167 3168# Check whether --enable-shared or --disable-shared was given. 3169if test "${enable_shared+set}" = set; then 3170 enableval="$enable_shared" 3171 p=${PACKAGE-default} 3172case "$enableval" in 3173yes) enable_shared=yes ;; 3174no) enable_shared=no ;; 3175*) 3176 enable_shared=no 3177 # Look at the argument we got. We use all the common list separators. 3178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3179 for pkg in $enableval; do 3180 if test "X$pkg" = "X$p"; then 3181 enable_shared=yes 3182 fi 3183 done 3184 IFS="$ac_save_ifs" 3185 ;; 3186esac 3187else 3188 enable_shared=no 3189fi; 3190# Check whether --enable-static or --disable-static was given. 3191if test "${enable_static+set}" = set; then 3192 enableval="$enable_static" 3193 p=${PACKAGE-default} 3194case "$enableval" in 3195yes) enable_static=yes ;; 3196no) enable_static=no ;; 3197*) 3198 enable_static=no 3199 # Look at the argument we got. We use all the common list separators. 3200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3201 for pkg in $enableval; do 3202 if test "X$pkg" = "X$p"; then 3203 enable_static=yes 3204 fi 3205 done 3206 IFS="$ac_save_ifs" 3207 ;; 3208esac 3209else 3210 enable_static=yes 3211fi; 3212# Check whether --enable-fast-install or --disable-fast-install was given. 3213if test "${enable_fast_install+set}" = set; then 3214 enableval="$enable_fast_install" 3215 p=${PACKAGE-default} 3216case "$enableval" in 3217yes) enable_fast_install=yes ;; 3218no) enable_fast_install=no ;; 3219*) 3220 enable_fast_install=no 3221 # Look at the argument we got. We use all the common list separators. 3222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3223 for pkg in $enableval; do 3224 if test "X$pkg" = "X$p"; then 3225 enable_fast_install=yes 3226 fi 3227 done 3228 IFS="$ac_save_ifs" 3229 ;; 3230esac 3231else 3232 enable_fast_install=yes 3233fi; 3234 3235# Check whether --with-gnu-ld or --without-gnu-ld was given. 3236if test "${with_gnu_ld+set}" = set; then 3237 withval="$with_gnu_ld" 3238 test "$withval" = no || with_gnu_ld=yes 3239else 3240 with_gnu_ld=no 3241fi; 3242ac_prog=ld 3243if test "$ac_cv_c_compiler_gnu" = yes; then 3244 # Check if gcc -print-prog-name=ld gives a path. 3245 echo "$as_me:3245: checking for ld used by GCC" >&5 3246echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3247 ac_prog=`($CC -print-prog-name=ld) 2>&5` 3248 case "$ac_prog" in 3249 # Accept absolute paths. 3250 [\\/]* | [A-Za-z]:[\\/]*) 3251 re_direlt='/[^/][^/]*/\.\./' 3252 # Canonicalize the path of ld 3253 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3254 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3255 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3256 done 3257 test -z "$LD" && LD="$ac_prog" 3258 ;; 3259 "") 3260 # If it fails, then pretend we aren't using GCC. 3261 ac_prog=ld 3262 ;; 3263 *) 3264 # If it is relative, then search for the first ld in PATH. 3265 with_gnu_ld=unknown 3266 ;; 3267 esac 3268elif test "$with_gnu_ld" = yes; then 3269 echo "$as_me:3269: checking for GNU ld" >&5 3270echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3271else 3272 echo "$as_me:3272: checking for non-GNU ld" >&5 3273echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3274fi 3275if test "${ac_cv_path_LD+set}" = set; then 3276 echo $ECHO_N "(cached) $ECHO_C" >&6 3277else 3278 if test -z "$LD"; then 3279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3280 for ac_dir in $PATH; do 3281 test -z "$ac_dir" && ac_dir=. 3282 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3283 ac_cv_path_LD="$ac_dir/$ac_prog" 3284 # Check to see if the program is GNU ld. I'd rather use --version, 3285 # but apparently some GNU ld's only accept -v. 3286 # Break only if it was the GNU/non-GNU ld that we prefer. 3287 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3288 test "$with_gnu_ld" != no && break 3289 else 3290 test "$with_gnu_ld" != yes && break 3291 fi 3292 fi 3293 done 3294 IFS="$ac_save_ifs" 3295else 3296 ac_cv_path_LD="$LD" # Let the user override the test with a path. 3297fi 3298fi 3299 3300LD="$ac_cv_path_LD" 3301if test -n "$LD"; then 3302 echo "$as_me:3302: result: $LD" >&5 3303echo "${ECHO_T}$LD" >&6 3304else 3305 echo "$as_me:3305: result: no" >&5 3306echo "${ECHO_T}no" >&6 3307fi 3308test -z "$LD" && { { echo "$as_me:3308: error: no acceptable ld found in \$PATH" >&5 3309echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3310 { (exit 1); exit 1; }; } 3311echo "$as_me:3311: checking if the linker ($LD) is GNU ld" >&5 3312echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3313if test "${ac_cv_prog_gnu_ld+set}" = set; then 3314 echo $ECHO_N "(cached) $ECHO_C" >&6 3315else 3316 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3317if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3318 ac_cv_prog_gnu_ld=yes 3319else 3320 ac_cv_prog_gnu_ld=no 3321fi 3322fi 3323echo "$as_me:3323: result: $ac_cv_prog_gnu_ld" >&5 3324echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6 3325 3326echo "$as_me:3326: checking for BSD-compatible nm" >&5 3327echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3328if test "${ac_cv_path_NM+set}" = set; then 3329 echo $ECHO_N "(cached) $ECHO_C" >&6 3330else 3331 if test -n "$NM"; then 3332 # Let the user override the test. 3333 ac_cv_path_NM="$NM" 3334else 3335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3336 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3337 test -z "$ac_dir" && ac_dir=. 3338 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then 3339 # Check to see if the nm accepts a BSD-compat flag. 3340 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3341 # nm: unknown option "B" ignored 3342 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3343 ac_cv_path_NM="$ac_dir/nm -B" 3344 break 3345 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3346 ac_cv_path_NM="$ac_dir/nm -p" 3347 break 3348 else 3349 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but 3350 continue # so that we can try to find one that supports BSD flags 3351 fi 3352 fi 3353 done 3354 IFS="$ac_save_ifs" 3355 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 3356fi 3357fi 3358 3359NM="$ac_cv_path_NM" 3360echo "$as_me:3360: result: $NM" >&5 3361echo "${ECHO_T}$NM" >&6 3362 3363echo "$as_me:3363: checking whether ln -s works" >&5 3364echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3365LN_S=$as_ln_s 3366if test "$LN_S" = "ln -s"; then 3367 echo "$as_me:3367: result: yes" >&5 3368echo "${ECHO_T}yes" >&6 3369else 3370 echo "$as_me:3370: result: no, using $LN_S" >&5 3371echo "${ECHO_T}no, using $LN_S" >&6 3372fi 3373 3374case "$target" in 3375NONE) lt_target="$host" ;; 3376*) lt_target="$target" ;; 3377esac 3378 3379# Check for any special flags to pass to ltconfig. 3380libtool_flags="--cache-file=$cache_file" 3381test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 3382test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 3383test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 3384test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc" 3385test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 3386 3387# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3388if test "${enable_libtool_lock+set}" = set; then 3389 enableval="$enable_libtool_lock" 3390 3391fi; 3392test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 3393test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 3394 3395# Some flags need to be propagated to the compiler or linker for good 3396# libtool support. 3397case "$lt_target" in 3398*-*-irix6*) 3399 # Find out which ABI we are using. 3400 echo '#line 3400 "configure"' > conftest.$ac_ext 3401 if { (eval echo "$as_me:3401: \"$ac_compile\"") >&5 3402 (eval $ac_compile) 2>&5 3403 ac_status=$? 3404 echo "$as_me:3404: \$? = $ac_status" >&5 3405 (exit $ac_status); }; then 3406 case "`/usr/bin/file conftest.o`" in 3407 *32-bit*) 3408 LD="${LD-ld} -32" 3409 ;; 3410 *N32*) 3411 LD="${LD-ld} -n32" 3412 ;; 3413 *64-bit*) 3414 LD="${LD-ld} -64" 3415 ;; 3416 esac 3417 fi 3418 rm -rf conftest* 3419 ;; 3420 3421*-*-sco3.2v5*) 3422 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3423 SAVE_CFLAGS="$CFLAGS" 3424 CFLAGS="$CFLAGS -belf" 3425 echo "$as_me:3425: checking whether the C compiler needs -belf" >&5 3426echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3427if test "${lt_cv_cc_needs_belf+set}" = set; then 3428 echo $ECHO_N "(cached) $ECHO_C" >&6 3429else 3430 cat >conftest.$ac_ext <<_ACEOF 3431#line 3431 "configure" 3432#include "confdefs.h" 3433 3434int 3435main () 3436{ 3437 3438 ; 3439 return 0; 3440} 3441_ACEOF 3442rm -f conftest.$ac_objext conftest$ac_exeext 3443if { (eval echo "$as_me:3443: \"$ac_link\"") >&5 3444 (eval $ac_link) 2>&5 3445 ac_status=$? 3446 echo "$as_me:3446: \$? = $ac_status" >&5 3447 (exit $ac_status); } && 3448 { ac_try='test -s conftest$ac_exeext' 3449 { (eval echo "$as_me:3449: \"$ac_try\"") >&5 3450 (eval $ac_try) 2>&5 3451 ac_status=$? 3452 echo "$as_me:3452: \$? = $ac_status" >&5 3453 (exit $ac_status); }; }; then 3454 lt_cv_cc_needs_belf=yes 3455else 3456 echo "$as_me: failed program was:" >&5 3457cat conftest.$ac_ext >&5 3458lt_cv_cc_needs_belf=no 3459fi 3460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3461fi 3462echo "$as_me:3462: result: $lt_cv_cc_needs_belf" >&5 3463echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3464 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3465 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3466 CFLAGS="$SAVE_CFLAGS" 3467 fi 3468 ;; 3469 3470esac 3471 3472# Save cache, so that ltconfig can load it 3473cat >confcache <<\_ACEOF 3474# This file is a shell script that caches the results of configure 3475# tests run on this system so they can be shared between configure 3476# scripts and configure runs, see configure's option --config-cache. 3477# It is not useful on other systems. If it contains results you don't 3478# want to keep, you may remove or edit it. 3479# 3480# config.status only pays attention to the cache file if you give it 3481# the --recheck option to rerun configure. 3482# 3483# `ac_cv_env_foo' variables (set or unset) will be overriden when 3484# loading this file, other *unset* `ac_cv_foo' will be assigned the 3485# following values. 3486 3487_ACEOF 3488 3489# The following way of writing the cache mishandles newlines in values, 3490# but we know of no workaround that is simple, portable, and efficient. 3491# So, don't put newlines in cache variables' values. 3492# Ultrix sh set writes to stderr and can't be redirected directly, 3493# and sets the high bit in the cache file unless we assign to the vars. 3494{ 3495 (set) 2>&1 | 3496 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3497 *ac_space=\ *) 3498 # `set' does not quote correctly, so add quotes (double-quote 3499 # substitution turns \\\\ into \\, and sed turns \\ into \). 3500 sed -n \ 3501 "s/'/'\\\\''/g; 3502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3503 ;; 3504 *) 3505 # `set' quotes correctly as required by POSIX, so do not add quotes. 3506 sed -n \ 3507 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3508 ;; 3509 esac; 3510} | 3511 sed ' 3512 t clear 3513 : clear 3514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3515 t end 3516 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3517 : end' >>confcache 3518if cmp -s $cache_file confcache; then :; else 3519 if test -w $cache_file; then 3520 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3521 cat confcache >$cache_file 3522 else 3523 echo "not updating unwritable cache $cache_file" 3524 fi 3525fi 3526rm -f confcache 3527 3528# Actually configure libtool. ac_aux_dir is where install-sh is found. 3529CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 3530LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 3531LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 3532DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 3533${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 3534$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ 3535|| { { echo "$as_me:3535: error: libtool configure failed" >&5 3536echo "$as_me: error: libtool configure failed" >&2;} 3537 { (exit 1); exit 1; }; } 3538 3539# Reload cache, that may have been modified by ltconfig 3540if test -r "$cache_file"; then 3541 # Some versions of bash will fail to source /dev/null (special 3542 # files actually), so we avoid doing that. 3543 if test -f "$cache_file"; then 3544 { echo "$as_me:3544: loading cache $cache_file" >&5 3545echo "$as_me: loading cache $cache_file" >&6;} 3546 case $cache_file in 3547 [\\/]* | ?:[\\/]* ) . $cache_file;; 3548 *) . ./$cache_file;; 3549 esac 3550 fi 3551else 3552 { echo "$as_me:3552: creating cache $cache_file" >&5 3553echo "$as_me: creating cache $cache_file" >&6;} 3554 >$cache_file 3555fi 3556 3557# This can be used to rebuild libtool when needed 3558LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 3559 3560# Always use our own libtool. 3561LIBTOOL='$(SHELL) $(top_builddir)/libtool' 3562 3563# Redirect the config.log output again, so that the ltconfig log is not 3564# clobbered by the next message. 3565exec 5>>./config.log 3566 3567WFLAGS_NOUNUSED="" 3568WFLAGS_NOIMPLICITINT="" 3569if test -z "$WFLAGS" -a "$GCC" = "yes"; then 3570 # -Wno-implicit-int for broken X11 headers 3571 # leave these out for now: 3572 # -Wcast-align doesn't work well on alpha osf/1 3573 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 3574 # -Wmissing-declarations -Wnested-externs 3575 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 3576 WFLAGS_NOUNUSED="-Wno-unused" 3577 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 3578fi 3579 3580berkeley_db=db 3581 3582# Check whether --with-berkeley-db or --without-berkeley-db was given. 3583if test "${with_berkeley_db+set}" = set; then 3584 withval="$with_berkeley_db" 3585 3586if test "$withval" = no; then 3587 berkeley_db="" 3588fi 3589 3590fi; 3591 3592have_ndbm=no 3593db_type=unknown 3594 3595if test "$berkeley_db"; then 3596 3597for ac_header in \ 3598 db.h \ 3599 db_185.h \ 3600 3601do 3602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3603echo "$as_me:3603: checking for $ac_header" >&5 3604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3605if eval "test \"\${$as_ac_Header+set}\" = set"; then 3606 echo $ECHO_N "(cached) $ECHO_C" >&6 3607else 3608 cat >conftest.$ac_ext <<_ACEOF 3609#line 3609 "configure" 3610#include "confdefs.h" 3611#include <$ac_header> 3612_ACEOF 3613if { (eval echo "$as_me:3613: \"$ac_cpp conftest.$ac_ext\"") >&5 3614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3615 ac_status=$? 3616 egrep -v '^ *\+' conftest.er1 >conftest.err 3617 rm -f conftest.er1 3618 cat conftest.err >&5 3619 echo "$as_me:3619: \$? = $ac_status" >&5 3620 (exit $ac_status); } >/dev/null; then 3621 if test -s conftest.err; then 3622 ac_cpp_err=$ac_c_preproc_warn_flag 3623 else 3624 ac_cpp_err= 3625 fi 3626else 3627 ac_cpp_err=yes 3628fi 3629if test -z "$ac_cpp_err"; then 3630 eval "$as_ac_Header=yes" 3631else 3632 echo "$as_me: failed program was:" >&5 3633 cat conftest.$ac_ext >&5 3634 eval "$as_ac_Header=no" 3635fi 3636rm -f conftest.err conftest.$ac_ext 3637fi 3638echo "$as_me:3638: result: `eval echo '${'$as_ac_Header'}'`" >&5 3639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3640if test `eval echo '${'$as_ac_Header'}'` = yes; then 3641 cat >>confdefs.h <<EOF 3642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3643EOF 3644 3645fi 3646done 3647 3648echo "$as_me:3648: checking for db_create" >&5 3649echo $ECHO_N "checking for db_create... $ECHO_C" >&6 3650if test "${ac_cv_funclib_db_create+set}" = set; then 3651 echo $ECHO_N "(cached) $ECHO_C" >&6 3652else 3653 3654if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 3655 ac_save_LIBS="$LIBS" 3656 for ac_lib in "" $berkeley_db; do 3657 case "$ac_lib" in 3658 "") ;; 3659 yes) ac_lib="" ;; 3660 no) continue ;; 3661 -l*) ;; 3662 *) ac_lib="-l$ac_lib" ;; 3663 esac 3664 LIBS=" $ac_lib $ac_save_LIBS" 3665 cat >conftest.$ac_ext <<_ACEOF 3666#line 3666 "configure" 3667#include "confdefs.h" 3668 3669 #include <stdio.h> 3670 #include <db.h> 3671 3672int 3673main () 3674{ 3675db_create(NULL, NULL, 0) 3676 ; 3677 return 0; 3678} 3679_ACEOF 3680rm -f conftest.$ac_objext conftest$ac_exeext 3681if { (eval echo "$as_me:3681: \"$ac_link\"") >&5 3682 (eval $ac_link) 2>&5 3683 ac_status=$? 3684 echo "$as_me:3684: \$? = $ac_status" >&5 3685 (exit $ac_status); } && 3686 { ac_try='test -s conftest$ac_exeext' 3687 { (eval echo "$as_me:3687: \"$ac_try\"") >&5 3688 (eval $ac_try) 2>&5 3689 ac_status=$? 3690 echo "$as_me:3690: \$? = $ac_status" >&5 3691 (exit $ac_status); }; }; then 3692 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 3693else 3694 echo "$as_me: failed program was:" >&5 3695cat conftest.$ac_ext >&5 3696fi 3697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3698 done 3699 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 3700 LIBS="$ac_save_LIBS" 3701fi 3702 3703fi 3704 3705eval "ac_res=\$ac_cv_funclib_db_create" 3706 3707if false; then 3708 3709for ac_func in db_create 3710do 3711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3712echo "$as_me:3712: checking for $ac_func" >&5 3713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3714if eval "test \"\${$as_ac_var+set}\" = set"; then 3715 echo $ECHO_N "(cached) $ECHO_C" >&6 3716else 3717 cat >conftest.$ac_ext <<_ACEOF 3718#line 3718 "configure" 3719#include "confdefs.h" 3720/* System header to define __stub macros and hopefully few prototypes, 3721 which can conflict with char $ac_func (); below. */ 3722#include <assert.h> 3723/* Override any gcc2 internal prototype to avoid an error. */ 3724#ifdef __cplusplus 3725extern "C" 3726#endif 3727/* We use char because int might match the return type of a gcc2 3728 builtin and then its argument prototype would still apply. */ 3729char $ac_func (); 3730char (*f) (); 3731 3732int 3733main () 3734{ 3735/* The GNU C library defines this for functions which it implements 3736 to always fail with ENOSYS. Some functions are actually named 3737 something starting with __ and the normal name is an alias. */ 3738#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3739choke me 3740#else 3741f = $ac_func; 3742#endif 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748rm -f conftest.$ac_objext conftest$ac_exeext 3749if { (eval echo "$as_me:3749: \"$ac_link\"") >&5 3750 (eval $ac_link) 2>&5 3751 ac_status=$? 3752 echo "$as_me:3752: \$? = $ac_status" >&5 3753 (exit $ac_status); } && 3754 { ac_try='test -s conftest$ac_exeext' 3755 { (eval echo "$as_me:3755: \"$ac_try\"") >&5 3756 (eval $ac_try) 2>&5 3757 ac_status=$? 3758 echo "$as_me:3758: \$? = $ac_status" >&5 3759 (exit $ac_status); }; }; then 3760 eval "$as_ac_var=yes" 3761else 3762 echo "$as_me: failed program was:" >&5 3763cat conftest.$ac_ext >&5 3764eval "$as_ac_var=no" 3765fi 3766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3767fi 3768echo "$as_me:3768: result: `eval echo '${'$as_ac_var'}'`" >&5 3769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3770if test `eval echo '${'$as_ac_var'}'` = yes; then 3771 cat >>confdefs.h <<EOF 3772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3773EOF 3774 3775fi 3776done 3777 3778fi 3779# db_create 3780eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3781eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3782eval "LIB_db_create=$ac_res" 3783 3784case "$ac_res" in 3785 yes) 3786 eval "ac_cv_func_db_create=yes" 3787 eval "LIB_db_create=" 3788 cat >>confdefs.h <<EOF 3789#define $ac_tr_func 1 3790EOF 3791 3792 echo "$as_me:3792: result: yes" >&5 3793echo "${ECHO_T}yes" >&6 3794 ;; 3795 no) 3796 eval "ac_cv_func_db_create=no" 3797 eval "LIB_db_create=" 3798 echo "$as_me:3798: result: no" >&5 3799echo "${ECHO_T}no" >&6 3800 ;; 3801 *) 3802 eval "ac_cv_func_db_create=yes" 3803 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 3804 cat >>confdefs.h <<EOF 3805#define $ac_tr_func 1 3806EOF 3807 3808 cat >>confdefs.h <<EOF 3809#define $ac_tr_lib 1 3810EOF 3811 3812 echo "$as_me:3812: result: yes, in $ac_res" >&5 3813echo "${ECHO_T}yes, in $ac_res" >&6 3814 ;; 3815esac 3816 3817 if test "$ac_cv_func_db_create" = "yes"; then 3818 db_type=db3 3819 if test "$ac_cv_funclib_db_create" != "yes"; then 3820 DBLIB="$ac_cv_funclib_db_create" 3821 else 3822 DBLIB="" 3823 fi 3824 3825cat >>confdefs.h <<\EOF 3826#define HAVE_DB3 1 3827EOF 3828 3829 else 3830 3831echo "$as_me:3831: checking for dbopen" >&5 3832echo $ECHO_N "checking for dbopen... $ECHO_C" >&6 3833if test "${ac_cv_funclib_dbopen+set}" = set; then 3834 echo $ECHO_N "(cached) $ECHO_C" >&6 3835else 3836 3837if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 3838 ac_save_LIBS="$LIBS" 3839 for ac_lib in "" $berkeley_db; do 3840 case "$ac_lib" in 3841 "") ;; 3842 yes) ac_lib="" ;; 3843 no) continue ;; 3844 -l*) ;; 3845 *) ac_lib="-l$ac_lib" ;; 3846 esac 3847 LIBS=" $ac_lib $ac_save_LIBS" 3848 cat >conftest.$ac_ext <<_ACEOF 3849#line 3849 "configure" 3850#include "confdefs.h" 3851 3852 #include <stdio.h> 3853 #if defined(HAVE_DB_185_H) 3854 #include <db_185.h> 3855 #elif defined(HAVE_DB_H) 3856 #include <db.h> 3857 #else 3858 #error no db.h 3859 #endif 3860 3861int 3862main () 3863{ 3864dbopen(NULL, 0, 0, 0, NULL) 3865 ; 3866 return 0; 3867} 3868_ACEOF 3869rm -f conftest.$ac_objext conftest$ac_exeext 3870if { (eval echo "$as_me:3870: \"$ac_link\"") >&5 3871 (eval $ac_link) 2>&5 3872 ac_status=$? 3873 echo "$as_me:3873: \$? = $ac_status" >&5 3874 (exit $ac_status); } && 3875 { ac_try='test -s conftest$ac_exeext' 3876 { (eval echo "$as_me:3876: \"$ac_try\"") >&5 3877 (eval $ac_try) 2>&5 3878 ac_status=$? 3879 echo "$as_me:3879: \$? = $ac_status" >&5 3880 (exit $ac_status); }; }; then 3881 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 3882else 3883 echo "$as_me: failed program was:" >&5 3884cat conftest.$ac_ext >&5 3885fi 3886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3887 done 3888 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 3889 LIBS="$ac_save_LIBS" 3890fi 3891 3892fi 3893 3894eval "ac_res=\$ac_cv_funclib_dbopen" 3895 3896if false; then 3897 3898for ac_func in dbopen 3899do 3900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3901echo "$as_me:3901: checking for $ac_func" >&5 3902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3903if eval "test \"\${$as_ac_var+set}\" = set"; then 3904 echo $ECHO_N "(cached) $ECHO_C" >&6 3905else 3906 cat >conftest.$ac_ext <<_ACEOF 3907#line 3907 "configure" 3908#include "confdefs.h" 3909/* System header to define __stub macros and hopefully few prototypes, 3910 which can conflict with char $ac_func (); below. */ 3911#include <assert.h> 3912/* Override any gcc2 internal prototype to avoid an error. */ 3913#ifdef __cplusplus 3914extern "C" 3915#endif 3916/* We use char because int might match the return type of a gcc2 3917 builtin and then its argument prototype would still apply. */ 3918char $ac_func (); 3919char (*f) (); 3920 3921int 3922main () 3923{ 3924/* The GNU C library defines this for functions which it implements 3925 to always fail with ENOSYS. Some functions are actually named 3926 something starting with __ and the normal name is an alias. */ 3927#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3928choke me 3929#else 3930f = $ac_func; 3931#endif 3932 3933 ; 3934 return 0; 3935} 3936_ACEOF 3937rm -f conftest.$ac_objext conftest$ac_exeext 3938if { (eval echo "$as_me:3938: \"$ac_link\"") >&5 3939 (eval $ac_link) 2>&5 3940 ac_status=$? 3941 echo "$as_me:3941: \$? = $ac_status" >&5 3942 (exit $ac_status); } && 3943 { ac_try='test -s conftest$ac_exeext' 3944 { (eval echo "$as_me:3944: \"$ac_try\"") >&5 3945 (eval $ac_try) 2>&5 3946 ac_status=$? 3947 echo "$as_me:3947: \$? = $ac_status" >&5 3948 (exit $ac_status); }; }; then 3949 eval "$as_ac_var=yes" 3950else 3951 echo "$as_me: failed program was:" >&5 3952cat conftest.$ac_ext >&5 3953eval "$as_ac_var=no" 3954fi 3955rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3956fi 3957echo "$as_me:3957: result: `eval echo '${'$as_ac_var'}'`" >&5 3958echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3959if test `eval echo '${'$as_ac_var'}'` = yes; then 3960 cat >>confdefs.h <<EOF 3961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3962EOF 3963 3964fi 3965done 3966 3967fi 3968# dbopen 3969eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3970eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3971eval "LIB_dbopen=$ac_res" 3972 3973case "$ac_res" in 3974 yes) 3975 eval "ac_cv_func_dbopen=yes" 3976 eval "LIB_dbopen=" 3977 cat >>confdefs.h <<EOF 3978#define $ac_tr_func 1 3979EOF 3980 3981 echo "$as_me:3981: result: yes" >&5 3982echo "${ECHO_T}yes" >&6 3983 ;; 3984 no) 3985 eval "ac_cv_func_dbopen=no" 3986 eval "LIB_dbopen=" 3987 echo "$as_me:3987: result: no" >&5 3988echo "${ECHO_T}no" >&6 3989 ;; 3990 *) 3991 eval "ac_cv_func_dbopen=yes" 3992 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 3993 cat >>confdefs.h <<EOF 3994#define $ac_tr_func 1 3995EOF 3996 3997 cat >>confdefs.h <<EOF 3998#define $ac_tr_lib 1 3999EOF 4000 4001 echo "$as_me:4001: result: yes, in $ac_res" >&5 4002echo "${ECHO_T}yes, in $ac_res" >&6 4003 ;; 4004esac 4005 4006 if test "$ac_cv_func_dbopen" = "yes"; then 4007 db_type=db1 4008 if test "$ac_cv_funclib_dbopen" != "yes"; then 4009 DBLIB="$ac_cv_funclib_dbopen" 4010 else 4011 DBLIB="" 4012 fi 4013 4014cat >>confdefs.h <<\EOF 4015#define HAVE_DB1 1 4016EOF 4017 4018 fi 4019 fi 4020 4021echo "$as_me:4021: checking for dbm_firstkey" >&5 4022echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 4023if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 4024 echo $ECHO_N "(cached) $ECHO_C" >&6 4025else 4026 4027if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 4028 ac_save_LIBS="$LIBS" 4029 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do 4030 case "$ac_lib" in 4031 "") ;; 4032 yes) ac_lib="" ;; 4033 no) continue ;; 4034 -l*) ;; 4035 *) ac_lib="-l$ac_lib" ;; 4036 esac 4037 LIBS=" $ac_lib $ac_save_LIBS" 4038 cat >conftest.$ac_ext <<_ACEOF 4039#line 4039 "configure" 4040#include "confdefs.h" 4041 4042 #include <stdio.h> 4043 #define DB_DBM_HSEARCH 1 4044 #include <db.h> 4045 DBM *dbm; 4046 4047int 4048main () 4049{ 4050dbm_firstkey(NULL) 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055rm -f conftest.$ac_objext conftest$ac_exeext 4056if { (eval echo "$as_me:4056: \"$ac_link\"") >&5 4057 (eval $ac_link) 2>&5 4058 ac_status=$? 4059 echo "$as_me:4059: \$? = $ac_status" >&5 4060 (exit $ac_status); } && 4061 { ac_try='test -s conftest$ac_exeext' 4062 { (eval echo "$as_me:4062: \"$ac_try\"") >&5 4063 (eval $ac_try) 2>&5 4064 ac_status=$? 4065 echo "$as_me:4065: \$? = $ac_status" >&5 4066 (exit $ac_status); }; }; then 4067 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 4068else 4069 echo "$as_me: failed program was:" >&5 4070cat conftest.$ac_ext >&5 4071fi 4072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4073 done 4074 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 4075 LIBS="$ac_save_LIBS" 4076fi 4077 4078fi 4079 4080eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 4081 4082if false; then 4083 4084for ac_func in dbm_firstkey 4085do 4086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4087echo "$as_me:4087: checking for $ac_func" >&5 4088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4089if eval "test \"\${$as_ac_var+set}\" = set"; then 4090 echo $ECHO_N "(cached) $ECHO_C" >&6 4091else 4092 cat >conftest.$ac_ext <<_ACEOF 4093#line 4093 "configure" 4094#include "confdefs.h" 4095/* System header to define __stub macros and hopefully few prototypes, 4096 which can conflict with char $ac_func (); below. */ 4097#include <assert.h> 4098/* Override any gcc2 internal prototype to avoid an error. */ 4099#ifdef __cplusplus 4100extern "C" 4101#endif 4102/* We use char because int might match the return type of a gcc2 4103 builtin and then its argument prototype would still apply. */ 4104char $ac_func (); 4105char (*f) (); 4106 4107int 4108main () 4109{ 4110/* The GNU C library defines this for functions which it implements 4111 to always fail with ENOSYS. Some functions are actually named 4112 something starting with __ and the normal name is an alias. */ 4113#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4114choke me 4115#else 4116f = $ac_func; 4117#endif 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123rm -f conftest.$ac_objext conftest$ac_exeext 4124if { (eval echo "$as_me:4124: \"$ac_link\"") >&5 4125 (eval $ac_link) 2>&5 4126 ac_status=$? 4127 echo "$as_me:4127: \$? = $ac_status" >&5 4128 (exit $ac_status); } && 4129 { ac_try='test -s conftest$ac_exeext' 4130 { (eval echo "$as_me:4130: \"$ac_try\"") >&5 4131 (eval $ac_try) 2>&5 4132 ac_status=$? 4133 echo "$as_me:4133: \$? = $ac_status" >&5 4134 (exit $ac_status); }; }; then 4135 eval "$as_ac_var=yes" 4136else 4137 echo "$as_me: failed program was:" >&5 4138cat conftest.$ac_ext >&5 4139eval "$as_ac_var=no" 4140fi 4141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4142fi 4143echo "$as_me:4143: result: `eval echo '${'$as_ac_var'}'`" >&5 4144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4145if test `eval echo '${'$as_ac_var'}'` = yes; then 4146 cat >>confdefs.h <<EOF 4147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4148EOF 4149 4150fi 4151done 4152 4153fi 4154# dbm_firstkey 4155eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4156eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4157eval "LIB_dbm_firstkey=$ac_res" 4158 4159case "$ac_res" in 4160 yes) 4161 eval "ac_cv_func_dbm_firstkey=yes" 4162 eval "LIB_dbm_firstkey=" 4163 cat >>confdefs.h <<EOF 4164#define $ac_tr_func 1 4165EOF 4166 4167 echo "$as_me:4167: result: yes" >&5 4168echo "${ECHO_T}yes" >&6 4169 ;; 4170 no) 4171 eval "ac_cv_func_dbm_firstkey=no" 4172 eval "LIB_dbm_firstkey=" 4173 echo "$as_me:4173: result: no" >&5 4174echo "${ECHO_T}no" >&6 4175 ;; 4176 *) 4177 eval "ac_cv_func_dbm_firstkey=yes" 4178 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4179 cat >>confdefs.h <<EOF 4180#define $ac_tr_func 1 4181EOF 4182 4183 cat >>confdefs.h <<EOF 4184#define $ac_tr_lib 1 4185EOF 4186 4187 echo "$as_me:4187: result: yes, in $ac_res" >&5 4188echo "${ECHO_T}yes, in $ac_res" >&6 4189 ;; 4190esac 4191 4192 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 4193 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 4194 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 4195 else 4196 LIB_NDBM="" 4197 fi 4198 4199cat >>confdefs.h <<\EOF 4200#define HAVE_DB_NDBM 1 4201EOF 4202 4203cat >>confdefs.h <<\EOF 4204#define HAVE_NEW_DB 1 4205EOF 4206 4207 else 4208 $as_unset ac_cv_func_dbm_firstkey 4209 $as_unset ac_cv_funclib_dbm_firstkey 4210 fi 4211 4212fi # berkeley db 4213 4214if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then 4215 4216for ac_header in \ 4217 dbm.h \ 4218 ndbm.h \ 4219 4220do 4221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4222echo "$as_me:4222: checking for $ac_header" >&5 4223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4224if eval "test \"\${$as_ac_Header+set}\" = set"; then 4225 echo $ECHO_N "(cached) $ECHO_C" >&6 4226else 4227 cat >conftest.$ac_ext <<_ACEOF 4228#line 4228 "configure" 4229#include "confdefs.h" 4230#include <$ac_header> 4231_ACEOF 4232if { (eval echo "$as_me:4232: \"$ac_cpp conftest.$ac_ext\"") >&5 4233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4234 ac_status=$? 4235 egrep -v '^ *\+' conftest.er1 >conftest.err 4236 rm -f conftest.er1 4237 cat conftest.err >&5 4238 echo "$as_me:4238: \$? = $ac_status" >&5 4239 (exit $ac_status); } >/dev/null; then 4240 if test -s conftest.err; then 4241 ac_cpp_err=$ac_c_preproc_warn_flag 4242 else 4243 ac_cpp_err= 4244 fi 4245else 4246 ac_cpp_err=yes 4247fi 4248if test -z "$ac_cpp_err"; then 4249 eval "$as_ac_Header=yes" 4250else 4251 echo "$as_me: failed program was:" >&5 4252 cat conftest.$ac_ext >&5 4253 eval "$as_ac_Header=no" 4254fi 4255rm -f conftest.err conftest.$ac_ext 4256fi 4257echo "$as_me:4257: result: `eval echo '${'$as_ac_Header'}'`" >&5 4258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4259if test `eval echo '${'$as_ac_Header'}'` = yes; then 4260 cat >>confdefs.h <<EOF 4261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4262EOF 4263 4264fi 4265done 4266 4267echo "$as_me:4267: checking for dbm_firstkey" >&5 4268echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 4269if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 4270 echo $ECHO_N "(cached) $ECHO_C" >&6 4271else 4272 4273if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 4274 ac_save_LIBS="$LIBS" 4275 for ac_lib in "" ndbm; do 4276 case "$ac_lib" in 4277 "") ;; 4278 yes) ac_lib="" ;; 4279 no) continue ;; 4280 -l*) ;; 4281 *) ac_lib="-l$ac_lib" ;; 4282 esac 4283 LIBS=" $ac_lib $ac_save_LIBS" 4284 cat >conftest.$ac_ext <<_ACEOF 4285#line 4285 "configure" 4286#include "confdefs.h" 4287 4288 #include <stdio.h> 4289 #if defined(HAVE_NDBM_H) 4290 #include <ndbm.h> 4291 #elif defined(HAVE_DBM_H) 4292 #include <dbm.h> 4293 #else 4294 #error no ndbm.h 4295 #endif 4296 DBM *dbm; 4297 4298int 4299main () 4300{ 4301dbm_firstkey(NULL) 4302 ; 4303 return 0; 4304} 4305_ACEOF 4306rm -f conftest.$ac_objext conftest$ac_exeext 4307if { (eval echo "$as_me:4307: \"$ac_link\"") >&5 4308 (eval $ac_link) 2>&5 4309 ac_status=$? 4310 echo "$as_me:4310: \$? = $ac_status" >&5 4311 (exit $ac_status); } && 4312 { ac_try='test -s conftest$ac_exeext' 4313 { (eval echo "$as_me:4313: \"$ac_try\"") >&5 4314 (eval $ac_try) 2>&5 4315 ac_status=$? 4316 echo "$as_me:4316: \$? = $ac_status" >&5 4317 (exit $ac_status); }; }; then 4318 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 4319else 4320 echo "$as_me: failed program was:" >&5 4321cat conftest.$ac_ext >&5 4322fi 4323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4324 done 4325 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 4326 LIBS="$ac_save_LIBS" 4327fi 4328 4329fi 4330 4331eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 4332 4333if false; then 4334 4335for ac_func in dbm_firstkey 4336do 4337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4338echo "$as_me:4338: checking for $ac_func" >&5 4339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4340if eval "test \"\${$as_ac_var+set}\" = set"; then 4341 echo $ECHO_N "(cached) $ECHO_C" >&6 4342else 4343 cat >conftest.$ac_ext <<_ACEOF 4344#line 4344 "configure" 4345#include "confdefs.h" 4346/* System header to define __stub macros and hopefully few prototypes, 4347 which can conflict with char $ac_func (); below. */ 4348#include <assert.h> 4349/* Override any gcc2 internal prototype to avoid an error. */ 4350#ifdef __cplusplus 4351extern "C" 4352#endif 4353/* We use char because int might match the return type of a gcc2 4354 builtin and then its argument prototype would still apply. */ 4355char $ac_func (); 4356char (*f) (); 4357 4358int 4359main () 4360{ 4361/* The GNU C library defines this for functions which it implements 4362 to always fail with ENOSYS. Some functions are actually named 4363 something starting with __ and the normal name is an alias. */ 4364#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4365choke me 4366#else 4367f = $ac_func; 4368#endif 4369 4370 ; 4371 return 0; 4372} 4373_ACEOF 4374rm -f conftest.$ac_objext conftest$ac_exeext 4375if { (eval echo "$as_me:4375: \"$ac_link\"") >&5 4376 (eval $ac_link) 2>&5 4377 ac_status=$? 4378 echo "$as_me:4378: \$? = $ac_status" >&5 4379 (exit $ac_status); } && 4380 { ac_try='test -s conftest$ac_exeext' 4381 { (eval echo "$as_me:4381: \"$ac_try\"") >&5 4382 (eval $ac_try) 2>&5 4383 ac_status=$? 4384 echo "$as_me:4384: \$? = $ac_status" >&5 4385 (exit $ac_status); }; }; then 4386 eval "$as_ac_var=yes" 4387else 4388 echo "$as_me: failed program was:" >&5 4389cat conftest.$ac_ext >&5 4390eval "$as_ac_var=no" 4391fi 4392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4393fi 4394echo "$as_me:4394: result: `eval echo '${'$as_ac_var'}'`" >&5 4395echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4396if test `eval echo '${'$as_ac_var'}'` = yes; then 4397 cat >>confdefs.h <<EOF 4398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4399EOF 4400 4401fi 4402done 4403 4404fi 4405# dbm_firstkey 4406eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4407eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4408eval "LIB_dbm_firstkey=$ac_res" 4409 4410case "$ac_res" in 4411 yes) 4412 eval "ac_cv_func_dbm_firstkey=yes" 4413 eval "LIB_dbm_firstkey=" 4414 cat >>confdefs.h <<EOF 4415#define $ac_tr_func 1 4416EOF 4417 4418 echo "$as_me:4418: result: yes" >&5 4419echo "${ECHO_T}yes" >&6 4420 ;; 4421 no) 4422 eval "ac_cv_func_dbm_firstkey=no" 4423 eval "LIB_dbm_firstkey=" 4424 echo "$as_me:4424: result: no" >&5 4425echo "${ECHO_T}no" >&6 4426 ;; 4427 *) 4428 eval "ac_cv_func_dbm_firstkey=yes" 4429 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4430 cat >>confdefs.h <<EOF 4431#define $ac_tr_func 1 4432EOF 4433 4434 cat >>confdefs.h <<EOF 4435#define $ac_tr_lib 1 4436EOF 4437 4438 echo "$as_me:4438: result: yes, in $ac_res" >&5 4439echo "${ECHO_T}yes, in $ac_res" >&6 4440 ;; 4441esac 4442 4443 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 4444 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 4445 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 4446 else 4447 LIB_NDBM="" 4448 fi 4449 4450cat >>confdefs.h <<\EOF 4451#define HAVE_NDBM 1 4452EOF 4453 have_ndbm=yes 4454 if test "$db_type" = "unknown"; then 4455 db_type=ndbm 4456 DBLIB="$LIB_NDBM" 4457 fi 4458 else 4459 4460 $as_unset ac_cv_func_dbm_firstkey 4461 $as_unset ac_cv_funclib_dbm_firstkey 4462 4463for ac_header in \ 4464 gdbm/ndbm.h \ 4465 4466do 4467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4468echo "$as_me:4468: checking for $ac_header" >&5 4469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4470if eval "test \"\${$as_ac_Header+set}\" = set"; then 4471 echo $ECHO_N "(cached) $ECHO_C" >&6 4472else 4473 cat >conftest.$ac_ext <<_ACEOF 4474#line 4474 "configure" 4475#include "confdefs.h" 4476#include <$ac_header> 4477_ACEOF 4478if { (eval echo "$as_me:4478: \"$ac_cpp conftest.$ac_ext\"") >&5 4479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4480 ac_status=$? 4481 egrep -v '^ *\+' conftest.er1 >conftest.err 4482 rm -f conftest.er1 4483 cat conftest.err >&5 4484 echo "$as_me:4484: \$? = $ac_status" >&5 4485 (exit $ac_status); } >/dev/null; then 4486 if test -s conftest.err; then 4487 ac_cpp_err=$ac_c_preproc_warn_flag 4488 else 4489 ac_cpp_err= 4490 fi 4491else 4492 ac_cpp_err=yes 4493fi 4494if test -z "$ac_cpp_err"; then 4495 eval "$as_ac_Header=yes" 4496else 4497 echo "$as_me: failed program was:" >&5 4498 cat conftest.$ac_ext >&5 4499 eval "$as_ac_Header=no" 4500fi 4501rm -f conftest.err conftest.$ac_ext 4502fi 4503echo "$as_me:4503: result: `eval echo '${'$as_ac_Header'}'`" >&5 4504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4505if test `eval echo '${'$as_ac_Header'}'` = yes; then 4506 cat >>confdefs.h <<EOF 4507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4508EOF 4509 4510fi 4511done 4512 4513echo "$as_me:4513: checking for dbm_firstkey" >&5 4514echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 4515if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 4516 echo $ECHO_N "(cached) $ECHO_C" >&6 4517else 4518 4519if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 4520 ac_save_LIBS="$LIBS" 4521 for ac_lib in "" gdbm; do 4522 case "$ac_lib" in 4523 "") ;; 4524 yes) ac_lib="" ;; 4525 no) continue ;; 4526 -l*) ;; 4527 *) ac_lib="-l$ac_lib" ;; 4528 esac 4529 LIBS=" $ac_lib $ac_save_LIBS" 4530 cat >conftest.$ac_ext <<_ACEOF 4531#line 4531 "configure" 4532#include "confdefs.h" 4533 4534 #include <stdio.h> 4535 #include <gdbm/ndbm.h> 4536 DBM *dbm; 4537 4538int 4539main () 4540{ 4541dbm_firstkey(NULL) 4542 ; 4543 return 0; 4544} 4545_ACEOF 4546rm -f conftest.$ac_objext conftest$ac_exeext 4547if { (eval echo "$as_me:4547: \"$ac_link\"") >&5 4548 (eval $ac_link) 2>&5 4549 ac_status=$? 4550 echo "$as_me:4550: \$? = $ac_status" >&5 4551 (exit $ac_status); } && 4552 { ac_try='test -s conftest$ac_exeext' 4553 { (eval echo "$as_me:4553: \"$ac_try\"") >&5 4554 (eval $ac_try) 2>&5 4555 ac_status=$? 4556 echo "$as_me:4556: \$? = $ac_status" >&5 4557 (exit $ac_status); }; }; then 4558 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 4559else 4560 echo "$as_me: failed program was:" >&5 4561cat conftest.$ac_ext >&5 4562fi 4563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4564 done 4565 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 4566 LIBS="$ac_save_LIBS" 4567fi 4568 4569fi 4570 4571eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 4572 4573if false; then 4574 4575for ac_func in dbm_firstkey 4576do 4577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4578echo "$as_me:4578: checking for $ac_func" >&5 4579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4580if eval "test \"\${$as_ac_var+set}\" = set"; then 4581 echo $ECHO_N "(cached) $ECHO_C" >&6 4582else 4583 cat >conftest.$ac_ext <<_ACEOF 4584#line 4584 "configure" 4585#include "confdefs.h" 4586/* System header to define __stub macros and hopefully few prototypes, 4587 which can conflict with char $ac_func (); below. */ 4588#include <assert.h> 4589/* Override any gcc2 internal prototype to avoid an error. */ 4590#ifdef __cplusplus 4591extern "C" 4592#endif 4593/* We use char because int might match the return type of a gcc2 4594 builtin and then its argument prototype would still apply. */ 4595char $ac_func (); 4596char (*f) (); 4597 4598int 4599main () 4600{ 4601/* The GNU C library defines this for functions which it implements 4602 to always fail with ENOSYS. Some functions are actually named 4603 something starting with __ and the normal name is an alias. */ 4604#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4605choke me 4606#else 4607f = $ac_func; 4608#endif 4609 4610 ; 4611 return 0; 4612} 4613_ACEOF 4614rm -f conftest.$ac_objext conftest$ac_exeext 4615if { (eval echo "$as_me:4615: \"$ac_link\"") >&5 4616 (eval $ac_link) 2>&5 4617 ac_status=$? 4618 echo "$as_me:4618: \$? = $ac_status" >&5 4619 (exit $ac_status); } && 4620 { ac_try='test -s conftest$ac_exeext' 4621 { (eval echo "$as_me:4621: \"$ac_try\"") >&5 4622 (eval $ac_try) 2>&5 4623 ac_status=$? 4624 echo "$as_me:4624: \$? = $ac_status" >&5 4625 (exit $ac_status); }; }; then 4626 eval "$as_ac_var=yes" 4627else 4628 echo "$as_me: failed program was:" >&5 4629cat conftest.$ac_ext >&5 4630eval "$as_ac_var=no" 4631fi 4632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4633fi 4634echo "$as_me:4634: result: `eval echo '${'$as_ac_var'}'`" >&5 4635echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4636if test `eval echo '${'$as_ac_var'}'` = yes; then 4637 cat >>confdefs.h <<EOF 4638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4639EOF 4640 4641fi 4642done 4643 4644fi 4645# dbm_firstkey 4646eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4647eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4648eval "LIB_dbm_firstkey=$ac_res" 4649 4650case "$ac_res" in 4651 yes) 4652 eval "ac_cv_func_dbm_firstkey=yes" 4653 eval "LIB_dbm_firstkey=" 4654 cat >>confdefs.h <<EOF 4655#define $ac_tr_func 1 4656EOF 4657 4658 echo "$as_me:4658: result: yes" >&5 4659echo "${ECHO_T}yes" >&6 4660 ;; 4661 no) 4662 eval "ac_cv_func_dbm_firstkey=no" 4663 eval "LIB_dbm_firstkey=" 4664 echo "$as_me:4664: result: no" >&5 4665echo "${ECHO_T}no" >&6 4666 ;; 4667 *) 4668 eval "ac_cv_func_dbm_firstkey=yes" 4669 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4670 cat >>confdefs.h <<EOF 4671#define $ac_tr_func 1 4672EOF 4673 4674 cat >>confdefs.h <<EOF 4675#define $ac_tr_lib 1 4676EOF 4677 4678 echo "$as_me:4678: result: yes, in $ac_res" >&5 4679echo "${ECHO_T}yes, in $ac_res" >&6 4680 ;; 4681esac 4682 4683 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 4684 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 4685 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 4686 else 4687 LIB_NDBM="" 4688 fi 4689 4690cat >>confdefs.h <<\EOF 4691#define HAVE_NDBM 1 4692EOF 4693 have_ndbm=yes 4694 if test "$db_type" = "unknown"; then 4695 db_type=ndbm 4696 DBLIB="$LIB_NDBM" 4697 fi 4698 fi 4699 fi 4700 4701fi # unknown 4702 4703if test "$have_ndbm" = "yes"; then 4704 echo "$as_me:4704: checking if ndbm is implemented with db" >&5 4705echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6 4706 if test "$cross_compiling" = yes; then 4707 { { echo "$as_me:4707: error: cannot run test program while cross compiling" >&5 4708echo "$as_me: error: cannot run test program while cross compiling" >&2;} 4709 { (exit 1); exit 1; }; } 4710else 4711 cat >conftest.$ac_ext <<_ACEOF 4712#line 4712 "configure" 4713#include "confdefs.h" 4714 4715#include <unistd.h> 4716#include <fcntl.h> 4717#if defined(HAVE_GDBM_NDBM_H) 4718#include <gdbm/ndbm.h> 4719#elif defined(HAVE_NDBM_H) 4720#include <ndbm.h> 4721#elif defined(HAVE_DBM_H) 4722#include <dbm.h> 4723#endif 4724int main() 4725{ 4726 DBM *d; 4727 4728 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666); 4729 if (d == NULL) 4730 return 1; 4731 dbm_close(d); 4732 return 0; 4733} 4734_ACEOF 4735rm -f conftest$ac_exeext 4736if { (eval echo "$as_me:4736: \"$ac_link\"") >&5 4737 (eval $ac_link) 2>&5 4738 ac_status=$? 4739 echo "$as_me:4739: \$? = $ac_status" >&5 4740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4741 { (eval echo "$as_me:4741: \"$ac_try\"") >&5 4742 (eval $ac_try) 2>&5 4743 ac_status=$? 4744 echo "$as_me:4744: \$? = $ac_status" >&5 4745 (exit $ac_status); }; }; then 4746 4747 if test -f conftest.db; then 4748 echo "$as_me:4748: result: yes" >&5 4749echo "${ECHO_T}yes" >&6 4750 4751cat >>confdefs.h <<\EOF 4752#define HAVE_NEW_DB 1 4753EOF 4754 4755 else 4756 echo "$as_me:4756: result: no" >&5 4757echo "${ECHO_T}no" >&6 4758 fi 4759else 4760 echo "$as_me: program exited with status $ac_status" >&5 4761echo "$as_me: failed program was:" >&5 4762cat conftest.$ac_ext >&5 4763echo "$as_me:4763: result: no" >&5 4764echo "${ECHO_T}no" >&6 4765fi 4766rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4767fi 4768fi 4769 4770echo "$as_me:4770: checking for inline" >&5 4771echo $ECHO_N "checking for inline... $ECHO_C" >&6 4772if test "${ac_cv_c_inline+set}" = set; then 4773 echo $ECHO_N "(cached) $ECHO_C" >&6 4774else 4775 ac_cv_c_inline=no 4776for ac_kw in inline __inline__ __inline; do 4777 cat >conftest.$ac_ext <<_ACEOF 4778#line 4778 "configure" 4779#include "confdefs.h" 4780#ifndef __cplusplus 4781static $ac_kw int static_foo () {return 0; } 4782$ac_kw int foo () {return 0; } 4783#endif 4784 4785_ACEOF 4786rm -f conftest.$ac_objext 4787if { (eval echo "$as_me:4787: \"$ac_compile\"") >&5 4788 (eval $ac_compile) 2>&5 4789 ac_status=$? 4790 echo "$as_me:4790: \$? = $ac_status" >&5 4791 (exit $ac_status); } && 4792 { ac_try='test -s conftest.$ac_objext' 4793 { (eval echo "$as_me:4793: \"$ac_try\"") >&5 4794 (eval $ac_try) 2>&5 4795 ac_status=$? 4796 echo "$as_me:4796: \$? = $ac_status" >&5 4797 (exit $ac_status); }; }; then 4798 ac_cv_c_inline=$ac_kw; break 4799else 4800 echo "$as_me: failed program was:" >&5 4801cat conftest.$ac_ext >&5 4802fi 4803rm -f conftest.$ac_objext conftest.$ac_ext 4804done 4805 4806fi 4807echo "$as_me:4807: result: $ac_cv_c_inline" >&5 4808echo "${ECHO_T}$ac_cv_c_inline" >&6 4809case $ac_cv_c_inline in 4810 inline | yes) ;; 4811 no) 4812cat >>confdefs.h <<\EOF 4813#define inline 4814EOF 4815 ;; 4816 *) cat >>confdefs.h <<EOF 4817#define inline $ac_cv_c_inline 4818EOF 4819 ;; 4820esac 4821 4822echo "$as_me:4822: checking for an ANSI C-conforming const" >&5 4823echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4824if test "${ac_cv_c_const+set}" = set; then 4825 echo $ECHO_N "(cached) $ECHO_C" >&6 4826else 4827 cat >conftest.$ac_ext <<_ACEOF 4828#line 4828 "configure" 4829#include "confdefs.h" 4830 4831int 4832main () 4833{ 4834/* FIXME: Include the comments suggested by Paul. */ 4835#ifndef __cplusplus 4836 /* Ultrix mips cc rejects this. */ 4837 typedef int charset[2]; 4838 const charset x; 4839 /* SunOS 4.1.1 cc rejects this. */ 4840 char const *const *ccp; 4841 char **p; 4842 /* NEC SVR4.0.2 mips cc rejects this. */ 4843 struct point {int x, y;}; 4844 static struct point const zero = {0,0}; 4845 /* AIX XL C 1.02.0.0 rejects this. 4846 It does not let you subtract one const X* pointer from another in 4847 an arm of an if-expression whose if-part is not a constant 4848 expression */ 4849 const char *g = "string"; 4850 ccp = &g + (g ? g-g : 0); 4851 /* HPUX 7.0 cc rejects these. */ 4852 ++ccp; 4853 p = (char**) ccp; 4854 ccp = (char const *const *) p; 4855 { /* SCO 3.2v4 cc rejects this. */ 4856 char *t; 4857 char const *s = 0 ? (char *) 0 : (char const *) 0; 4858 4859 *t++ = 0; 4860 } 4861 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4862 int x[] = {25, 17}; 4863 const int *foo = &x[0]; 4864 ++foo; 4865 } 4866 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4867 typedef const int *iptr; 4868 iptr p = 0; 4869 ++p; 4870 } 4871 { /* AIX XL C 1.02.0.0 rejects this saying 4872 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4873 struct s { int j; const int *ap[3]; }; 4874 struct s *b; b->j = 5; 4875 } 4876 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4877 const int foo = 10; 4878 } 4879#endif 4880 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885rm -f conftest.$ac_objext 4886if { (eval echo "$as_me:4886: \"$ac_compile\"") >&5 4887 (eval $ac_compile) 2>&5 4888 ac_status=$? 4889 echo "$as_me:4889: \$? = $ac_status" >&5 4890 (exit $ac_status); } && 4891 { ac_try='test -s conftest.$ac_objext' 4892 { (eval echo "$as_me:4892: \"$ac_try\"") >&5 4893 (eval $ac_try) 2>&5 4894 ac_status=$? 4895 echo "$as_me:4895: \$? = $ac_status" >&5 4896 (exit $ac_status); }; }; then 4897 ac_cv_c_const=yes 4898else 4899 echo "$as_me: failed program was:" >&5 4900cat conftest.$ac_ext >&5 4901ac_cv_c_const=no 4902fi 4903rm -f conftest.$ac_objext conftest.$ac_ext 4904fi 4905echo "$as_me:4905: result: $ac_cv_c_const" >&5 4906echo "${ECHO_T}$ac_cv_c_const" >&6 4907if test $ac_cv_c_const = no; then 4908 4909cat >>confdefs.h <<\EOF 4910#define const 4911EOF 4912 4913fi 4914 4915echo "$as_me:4915: checking for ANSI C header files" >&5 4916echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4917if test "${ac_cv_header_stdc+set}" = set; then 4918 echo $ECHO_N "(cached) $ECHO_C" >&6 4919else 4920 cat >conftest.$ac_ext <<_ACEOF 4921#line 4921 "configure" 4922#include "confdefs.h" 4923#include <stdlib.h> 4924#include <stdarg.h> 4925#include <string.h> 4926#include <float.h> 4927 4928_ACEOF 4929if { (eval echo "$as_me:4929: \"$ac_cpp conftest.$ac_ext\"") >&5 4930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4931 ac_status=$? 4932 egrep -v '^ *\+' conftest.er1 >conftest.err 4933 rm -f conftest.er1 4934 cat conftest.err >&5 4935 echo "$as_me:4935: \$? = $ac_status" >&5 4936 (exit $ac_status); } >/dev/null; then 4937 if test -s conftest.err; then 4938 ac_cpp_err=$ac_c_preproc_warn_flag 4939 else 4940 ac_cpp_err= 4941 fi 4942else 4943 ac_cpp_err=yes 4944fi 4945if test -z "$ac_cpp_err"; then 4946 ac_cv_header_stdc=yes 4947else 4948 echo "$as_me: failed program was:" >&5 4949 cat conftest.$ac_ext >&5 4950 ac_cv_header_stdc=no 4951fi 4952rm -f conftest.err conftest.$ac_ext 4953 4954if test $ac_cv_header_stdc = yes; then 4955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4956 cat >conftest.$ac_ext <<_ACEOF 4957#line 4957 "configure" 4958#include "confdefs.h" 4959#include <string.h> 4960 4961_ACEOF 4962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4963 egrep "memchr" >/dev/null 2>&1; then 4964 : 4965else 4966 ac_cv_header_stdc=no 4967fi 4968rm -f conftest* 4969 4970fi 4971 4972if test $ac_cv_header_stdc = yes; then 4973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4974 cat >conftest.$ac_ext <<_ACEOF 4975#line 4975 "configure" 4976#include "confdefs.h" 4977#include <stdlib.h> 4978 4979_ACEOF 4980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4981 egrep "free" >/dev/null 2>&1; then 4982 : 4983else 4984 ac_cv_header_stdc=no 4985fi 4986rm -f conftest* 4987 4988fi 4989 4990if test $ac_cv_header_stdc = yes; then 4991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4992 if test "$cross_compiling" = yes; then 4993 : 4994else 4995 cat >conftest.$ac_ext <<_ACEOF 4996#line 4996 "configure" 4997#include "confdefs.h" 4998#include <ctype.h> 4999#if ((' ' & 0x0FF) == 0x020) 5000# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5001# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5002#else 5003# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5004 || ('j' <= (c) && (c) <= 'r') \ 5005 || ('s' <= (c) && (c) <= 'z')) 5006# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5007#endif 5008 5009#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5010int 5011main () 5012{ 5013 int i; 5014 for (i = 0; i < 256; i++) 5015 if (XOR (islower (i), ISLOWER (i)) 5016 || toupper (i) != TOUPPER (i)) 5017 exit(2); 5018 exit (0); 5019} 5020_ACEOF 5021rm -f conftest$ac_exeext 5022if { (eval echo "$as_me:5022: \"$ac_link\"") >&5 5023 (eval $ac_link) 2>&5 5024 ac_status=$? 5025 echo "$as_me:5025: \$? = $ac_status" >&5 5026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5027 { (eval echo "$as_me:5027: \"$ac_try\"") >&5 5028 (eval $ac_try) 2>&5 5029 ac_status=$? 5030 echo "$as_me:5030: \$? = $ac_status" >&5 5031 (exit $ac_status); }; }; then 5032 : 5033else 5034 echo "$as_me: program exited with status $ac_status" >&5 5035echo "$as_me: failed program was:" >&5 5036cat conftest.$ac_ext >&5 5037ac_cv_header_stdc=no 5038fi 5039rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5040fi 5041fi 5042fi 5043echo "$as_me:5043: result: $ac_cv_header_stdc" >&5 5044echo "${ECHO_T}$ac_cv_header_stdc" >&6 5045if test $ac_cv_header_stdc = yes; then 5046 5047cat >>confdefs.h <<\EOF 5048#define STDC_HEADERS 1 5049EOF 5050 5051fi 5052 5053# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5054 5055for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5056 inttypes.h stdint.h unistd.h 5057do 5058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5059echo "$as_me:5059: checking for $ac_header" >&5 5060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5061if eval "test \"\${$as_ac_Header+set}\" = set"; then 5062 echo $ECHO_N "(cached) $ECHO_C" >&6 5063else 5064 cat >conftest.$ac_ext <<_ACEOF 5065#line 5065 "configure" 5066#include "confdefs.h" 5067$ac_includes_default 5068#include <$ac_header> 5069_ACEOF 5070rm -f conftest.$ac_objext 5071if { (eval echo "$as_me:5071: \"$ac_compile\"") >&5 5072 (eval $ac_compile) 2>&5 5073 ac_status=$? 5074 echo "$as_me:5074: \$? = $ac_status" >&5 5075 (exit $ac_status); } && 5076 { ac_try='test -s conftest.$ac_objext' 5077 { (eval echo "$as_me:5077: \"$ac_try\"") >&5 5078 (eval $ac_try) 2>&5 5079 ac_status=$? 5080 echo "$as_me:5080: \$? = $ac_status" >&5 5081 (exit $ac_status); }; }; then 5082 eval "$as_ac_Header=yes" 5083else 5084 echo "$as_me: failed program was:" >&5 5085cat conftest.$ac_ext >&5 5086eval "$as_ac_Header=no" 5087fi 5088rm -f conftest.$ac_objext conftest.$ac_ext 5089fi 5090echo "$as_me:5090: result: `eval echo '${'$as_ac_Header'}'`" >&5 5091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5092if test `eval echo '${'$as_ac_Header'}'` = yes; then 5093 cat >>confdefs.h <<EOF 5094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5095EOF 5096 5097fi 5098done 5099 5100echo "$as_me:5100: checking for size_t" >&5 5101echo $ECHO_N "checking for size_t... $ECHO_C" >&6 5102if test "${ac_cv_type_size_t+set}" = set; then 5103 echo $ECHO_N "(cached) $ECHO_C" >&6 5104else 5105 cat >conftest.$ac_ext <<_ACEOF 5106#line 5106 "configure" 5107#include "confdefs.h" 5108$ac_includes_default 5109int 5110main () 5111{ 5112if ((size_t *) 0) 5113 return 0; 5114if (sizeof (size_t)) 5115 return 0; 5116 ; 5117 return 0; 5118} 5119_ACEOF 5120rm -f conftest.$ac_objext 5121if { (eval echo "$as_me:5121: \"$ac_compile\"") >&5 5122 (eval $ac_compile) 2>&5 5123 ac_status=$? 5124 echo "$as_me:5124: \$? = $ac_status" >&5 5125 (exit $ac_status); } && 5126 { ac_try='test -s conftest.$ac_objext' 5127 { (eval echo "$as_me:5127: \"$ac_try\"") >&5 5128 (eval $ac_try) 2>&5 5129 ac_status=$? 5130 echo "$as_me:5130: \$? = $ac_status" >&5 5131 (exit $ac_status); }; }; then 5132 ac_cv_type_size_t=yes 5133else 5134 echo "$as_me: failed program was:" >&5 5135cat conftest.$ac_ext >&5 5136ac_cv_type_size_t=no 5137fi 5138rm -f conftest.$ac_objext conftest.$ac_ext 5139fi 5140echo "$as_me:5140: result: $ac_cv_type_size_t" >&5 5141echo "${ECHO_T}$ac_cv_type_size_t" >&6 5142if test $ac_cv_type_size_t = yes; then 5143 : 5144else 5145 5146cat >>confdefs.h <<EOF 5147#define size_t unsigned 5148EOF 5149 5150fi 5151 5152echo "$as_me:5152: checking for pid_t" >&5 5153echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 5154if test "${ac_cv_type_pid_t+set}" = set; then 5155 echo $ECHO_N "(cached) $ECHO_C" >&6 5156else 5157 cat >conftest.$ac_ext <<_ACEOF 5158#line 5158 "configure" 5159#include "confdefs.h" 5160$ac_includes_default 5161int 5162main () 5163{ 5164if ((pid_t *) 0) 5165 return 0; 5166if (sizeof (pid_t)) 5167 return 0; 5168 ; 5169 return 0; 5170} 5171_ACEOF 5172rm -f conftest.$ac_objext 5173if { (eval echo "$as_me:5173: \"$ac_compile\"") >&5 5174 (eval $ac_compile) 2>&5 5175 ac_status=$? 5176 echo "$as_me:5176: \$? = $ac_status" >&5 5177 (exit $ac_status); } && 5178 { ac_try='test -s conftest.$ac_objext' 5179 { (eval echo "$as_me:5179: \"$ac_try\"") >&5 5180 (eval $ac_try) 2>&5 5181 ac_status=$? 5182 echo "$as_me:5182: \$? = $ac_status" >&5 5183 (exit $ac_status); }; }; then 5184 ac_cv_type_pid_t=yes 5185else 5186 echo "$as_me: failed program was:" >&5 5187cat conftest.$ac_ext >&5 5188ac_cv_type_pid_t=no 5189fi 5190rm -f conftest.$ac_objext conftest.$ac_ext 5191fi 5192echo "$as_me:5192: result: $ac_cv_type_pid_t" >&5 5193echo "${ECHO_T}$ac_cv_type_pid_t" >&6 5194if test $ac_cv_type_pid_t = yes; then 5195 : 5196else 5197 5198cat >>confdefs.h <<EOF 5199#define pid_t int 5200EOF 5201 5202fi 5203 5204echo "$as_me:5204: checking for uid_t in sys/types.h" >&5 5205echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 5206if test "${ac_cv_type_uid_t+set}" = set; then 5207 echo $ECHO_N "(cached) $ECHO_C" >&6 5208else 5209 cat >conftest.$ac_ext <<_ACEOF 5210#line 5210 "configure" 5211#include "confdefs.h" 5212#include <sys/types.h> 5213 5214_ACEOF 5215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5216 egrep "uid_t" >/dev/null 2>&1; then 5217 ac_cv_type_uid_t=yes 5218else 5219 ac_cv_type_uid_t=no 5220fi 5221rm -f conftest* 5222 5223fi 5224echo "$as_me:5224: result: $ac_cv_type_uid_t" >&5 5225echo "${ECHO_T}$ac_cv_type_uid_t" >&6 5226if test $ac_cv_type_uid_t = no; then 5227 5228cat >>confdefs.h <<\EOF 5229#define uid_t int 5230EOF 5231 5232cat >>confdefs.h <<\EOF 5233#define gid_t int 5234EOF 5235 5236fi 5237 5238echo "$as_me:5238: checking return type of signal handlers" >&5 5239echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 5240if test "${ac_cv_type_signal+set}" = set; then 5241 echo $ECHO_N "(cached) $ECHO_C" >&6 5242else 5243 cat >conftest.$ac_ext <<_ACEOF 5244#line 5244 "configure" 5245#include "confdefs.h" 5246#include <sys/types.h> 5247#include <signal.h> 5248#ifdef signal 5249# undef signal 5250#endif 5251#ifdef __cplusplus 5252extern "C" void (*signal (int, void (*)(int)))(int); 5253#else 5254void (*signal ()) (); 5255#endif 5256 5257int 5258main () 5259{ 5260int i; 5261 ; 5262 return 0; 5263} 5264_ACEOF 5265rm -f conftest.$ac_objext 5266if { (eval echo "$as_me:5266: \"$ac_compile\"") >&5 5267 (eval $ac_compile) 2>&5 5268 ac_status=$? 5269 echo "$as_me:5269: \$? = $ac_status" >&5 5270 (exit $ac_status); } && 5271 { ac_try='test -s conftest.$ac_objext' 5272 { (eval echo "$as_me:5272: \"$ac_try\"") >&5 5273 (eval $ac_try) 2>&5 5274 ac_status=$? 5275 echo "$as_me:5275: \$? = $ac_status" >&5 5276 (exit $ac_status); }; }; then 5277 ac_cv_type_signal=void 5278else 5279 echo "$as_me: failed program was:" >&5 5280cat conftest.$ac_ext >&5 5281ac_cv_type_signal=int 5282fi 5283rm -f conftest.$ac_objext conftest.$ac_ext 5284fi 5285echo "$as_me:5285: result: $ac_cv_type_signal" >&5 5286echo "${ECHO_T}$ac_cv_type_signal" >&6 5287 5288cat >>confdefs.h <<EOF 5289#define RETSIGTYPE $ac_cv_type_signal 5290EOF 5291 5292if test "$ac_cv_type_signal" = "void" ; then 5293 5294cat >>confdefs.h <<\EOF 5295#define VOID_RETSIGTYPE 1 5296EOF 5297 5298fi 5299 5300echo "$as_me:5300: checking whether time.h and sys/time.h may both be included" >&5 5301echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5302if test "${ac_cv_header_time+set}" = set; then 5303 echo $ECHO_N "(cached) $ECHO_C" >&6 5304else 5305 cat >conftest.$ac_ext <<_ACEOF 5306#line 5306 "configure" 5307#include "confdefs.h" 5308#include <sys/types.h> 5309#include <sys/time.h> 5310#include <time.h> 5311 5312int 5313main () 5314{ 5315if ((struct tm *) 0) 5316return 0; 5317 ; 5318 return 0; 5319} 5320_ACEOF 5321rm -f conftest.$ac_objext 5322if { (eval echo "$as_me:5322: \"$ac_compile\"") >&5 5323 (eval $ac_compile) 2>&5 5324 ac_status=$? 5325 echo "$as_me:5325: \$? = $ac_status" >&5 5326 (exit $ac_status); } && 5327 { ac_try='test -s conftest.$ac_objext' 5328 { (eval echo "$as_me:5328: \"$ac_try\"") >&5 5329 (eval $ac_try) 2>&5 5330 ac_status=$? 5331 echo "$as_me:5331: \$? = $ac_status" >&5 5332 (exit $ac_status); }; }; then 5333 ac_cv_header_time=yes 5334else 5335 echo "$as_me: failed program was:" >&5 5336cat conftest.$ac_ext >&5 5337ac_cv_header_time=no 5338fi 5339rm -f conftest.$ac_objext conftest.$ac_ext 5340fi 5341echo "$as_me:5341: result: $ac_cv_header_time" >&5 5342echo "${ECHO_T}$ac_cv_header_time" >&6 5343if test $ac_cv_header_time = yes; then 5344 5345cat >>confdefs.h <<\EOF 5346#define TIME_WITH_SYS_TIME 1 5347EOF 5348 5349fi 5350 5351for ac_header in standards.h 5352do 5353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5354echo "$as_me:5354: checking for $ac_header" >&5 5355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5356if eval "test \"\${$as_ac_Header+set}\" = set"; then 5357 echo $ECHO_N "(cached) $ECHO_C" >&6 5358else 5359 cat >conftest.$ac_ext <<_ACEOF 5360#line 5360 "configure" 5361#include "confdefs.h" 5362#include <$ac_header> 5363_ACEOF 5364if { (eval echo "$as_me:5364: \"$ac_cpp conftest.$ac_ext\"") >&5 5365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5366 ac_status=$? 5367 egrep -v '^ *\+' conftest.er1 >conftest.err 5368 rm -f conftest.er1 5369 cat conftest.err >&5 5370 echo "$as_me:5370: \$? = $ac_status" >&5 5371 (exit $ac_status); } >/dev/null; then 5372 if test -s conftest.err; then 5373 ac_cpp_err=$ac_c_preproc_warn_flag 5374 else 5375 ac_cpp_err= 5376 fi 5377else 5378 ac_cpp_err=yes 5379fi 5380if test -z "$ac_cpp_err"; then 5381 eval "$as_ac_Header=yes" 5382else 5383 echo "$as_me: failed program was:" >&5 5384 cat conftest.$ac_ext >&5 5385 eval "$as_ac_Header=no" 5386fi 5387rm -f conftest.err conftest.$ac_ext 5388fi 5389echo "$as_me:5389: result: `eval echo '${'$as_ac_Header'}'`" >&5 5390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5391if test `eval echo '${'$as_ac_Header'}'` = yes; then 5392 cat >>confdefs.h <<EOF 5393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5394EOF 5395 5396fi 5397done 5398 5399for i in netinet/ip.h netinet/tcp.h; do 5400 5401cv=`echo "$i" | sed 'y%./+-%__p_%'` 5402 5403echo "$as_me:5403: checking for $i" >&5 5404echo $ECHO_N "checking for $i... $ECHO_C" >&6 5405if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then 5406 echo $ECHO_N "(cached) $ECHO_C" >&6 5407else 5408 cat >conftest.$ac_ext <<_ACEOF 5409#line 5409 "configure" 5410#include "confdefs.h" 5411\ 5412#ifdef HAVE_STANDARDS_H 5413#include <standards.h> 5414#endif 5415#include <$i> 5416 5417_ACEOF 5418if { (eval echo "$as_me:5418: \"$ac_cpp conftest.$ac_ext\"") >&5 5419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5420 ac_status=$? 5421 egrep -v '^ *\+' conftest.er1 >conftest.err 5422 rm -f conftest.er1 5423 cat conftest.err >&5 5424 echo "$as_me:5424: \$? = $ac_status" >&5 5425 (exit $ac_status); } >/dev/null; then 5426 if test -s conftest.err; then 5427 ac_cpp_err=$ac_c_preproc_warn_flag 5428 else 5429 ac_cpp_err= 5430 fi 5431else 5432 ac_cpp_err=yes 5433fi 5434if test -z "$ac_cpp_err"; then 5435 eval "ac_cv_header_$cv=yes" 5436else 5437 echo "$as_me: failed program was:" >&5 5438 cat conftest.$ac_ext >&5 5439 eval "ac_cv_header_$cv=no" 5440fi 5441rm -f conftest.err conftest.$ac_ext 5442fi 5443echo "$as_me:5443: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5 5444echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6 5445ac_res=`eval echo \\$ac_cv_header_$cv` 5446if test "$ac_res" = yes; then 5447 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5448 cat >>confdefs.h <<EOF 5449#define $ac_tr_hdr 1 5450EOF 5451 5452fi 5453done 5454if false;then 5455 5456for ac_header in netinet/ip.h netinet/tcp.h 5457do 5458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5459echo "$as_me:5459: checking for $ac_header" >&5 5460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5461if eval "test \"\${$as_ac_Header+set}\" = set"; then 5462 echo $ECHO_N "(cached) $ECHO_C" >&6 5463else 5464 cat >conftest.$ac_ext <<_ACEOF 5465#line 5465 "configure" 5466#include "confdefs.h" 5467#include <$ac_header> 5468_ACEOF 5469if { (eval echo "$as_me:5469: \"$ac_cpp conftest.$ac_ext\"") >&5 5470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5471 ac_status=$? 5472 egrep -v '^ *\+' conftest.er1 >conftest.err 5473 rm -f conftest.er1 5474 cat conftest.err >&5 5475 echo "$as_me:5475: \$? = $ac_status" >&5 5476 (exit $ac_status); } >/dev/null; then 5477 if test -s conftest.err; then 5478 ac_cpp_err=$ac_c_preproc_warn_flag 5479 else 5480 ac_cpp_err= 5481 fi 5482else 5483 ac_cpp_err=yes 5484fi 5485if test -z "$ac_cpp_err"; then 5486 eval "$as_ac_Header=yes" 5487else 5488 echo "$as_me: failed program was:" >&5 5489 cat conftest.$ac_ext >&5 5490 eval "$as_ac_Header=no" 5491fi 5492rm -f conftest.err conftest.$ac_ext 5493fi 5494echo "$as_me:5494: result: `eval echo '${'$as_ac_Header'}'`" >&5 5495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5496if test `eval echo '${'$as_ac_Header'}'` = yes; then 5497 cat >>confdefs.h <<EOF 5498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5499EOF 5500 5501fi 5502done 5503 5504fi 5505 5506for ac_func in getlogin setlogin 5507do 5508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5509echo "$as_me:5509: checking for $ac_func" >&5 5510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5511if eval "test \"\${$as_ac_var+set}\" = set"; then 5512 echo $ECHO_N "(cached) $ECHO_C" >&6 5513else 5514 cat >conftest.$ac_ext <<_ACEOF 5515#line 5515 "configure" 5516#include "confdefs.h" 5517/* System header to define __stub macros and hopefully few prototypes, 5518 which can conflict with char $ac_func (); below. */ 5519#include <assert.h> 5520/* Override any gcc2 internal prototype to avoid an error. */ 5521#ifdef __cplusplus 5522extern "C" 5523#endif 5524/* We use char because int might match the return type of a gcc2 5525 builtin and then its argument prototype would still apply. */ 5526char $ac_func (); 5527char (*f) (); 5528 5529int 5530main () 5531{ 5532/* The GNU C library defines this for functions which it implements 5533 to always fail with ENOSYS. Some functions are actually named 5534 something starting with __ and the normal name is an alias. */ 5535#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5536choke me 5537#else 5538f = $ac_func; 5539#endif 5540 5541 ; 5542 return 0; 5543} 5544_ACEOF 5545rm -f conftest.$ac_objext conftest$ac_exeext 5546if { (eval echo "$as_me:5546: \"$ac_link\"") >&5 5547 (eval $ac_link) 2>&5 5548 ac_status=$? 5549 echo "$as_me:5549: \$? = $ac_status" >&5 5550 (exit $ac_status); } && 5551 { ac_try='test -s conftest$ac_exeext' 5552 { (eval echo "$as_me:5552: \"$ac_try\"") >&5 5553 (eval $ac_try) 2>&5 5554 ac_status=$? 5555 echo "$as_me:5555: \$? = $ac_status" >&5 5556 (exit $ac_status); }; }; then 5557 eval "$as_ac_var=yes" 5558else 5559 echo "$as_me: failed program was:" >&5 5560cat conftest.$ac_ext >&5 5561eval "$as_ac_var=no" 5562fi 5563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5564fi 5565echo "$as_me:5565: result: `eval echo '${'$as_ac_var'}'`" >&5 5566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5567if test `eval echo '${'$as_ac_var'}'` = yes; then 5568 cat >>confdefs.h <<EOF 5569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5570EOF 5571 5572fi 5573done 5574 5575if test "$ac_cv_func_getlogin" = yes; then 5576echo "$as_me:5576: checking if getlogin is posix" >&5 5577echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6 5578if test "${ac_cv_func_getlogin_posix+set}" = set; then 5579 echo $ECHO_N "(cached) $ECHO_C" >&6 5580else 5581 5582if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 5583 ac_cv_func_getlogin_posix=no 5584else 5585 ac_cv_func_getlogin_posix=yes 5586fi 5587 5588fi 5589echo "$as_me:5589: result: $ac_cv_func_getlogin_posix" >&5 5590echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6 5591if test "$ac_cv_func_getlogin_posix" = yes; then 5592 5593cat >>confdefs.h <<\EOF 5594#define POSIX_GETLOGIN 1 5595EOF 5596 5597fi 5598fi 5599 5600echo "$as_me:5600: checking if realloc if broken" >&5 5601echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6 5602if test "${ac_cv_func_realloc_broken+set}" = set; then 5603 echo $ECHO_N "(cached) $ECHO_C" >&6 5604else 5605 5606ac_cv_func_realloc_broken=no 5607if test "$cross_compiling" = yes; then 5608 : 5609else 5610 cat >conftest.$ac_ext <<_ACEOF 5611#line 5611 "configure" 5612#include "confdefs.h" 5613 5614#include <stddef.h> 5615#include <stdlib.h> 5616 5617int main() 5618{ 5619 return realloc(NULL, 17) == NULL; 5620} 5621 5622_ACEOF 5623rm -f conftest$ac_exeext 5624if { (eval echo "$as_me:5624: \"$ac_link\"") >&5 5625 (eval $ac_link) 2>&5 5626 ac_status=$? 5627 echo "$as_me:5627: \$? = $ac_status" >&5 5628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5629 { (eval echo "$as_me:5629: \"$ac_try\"") >&5 5630 (eval $ac_try) 2>&5 5631 ac_status=$? 5632 echo "$as_me:5632: \$? = $ac_status" >&5 5633 (exit $ac_status); }; }; then 5634 : 5635else 5636 echo "$as_me: program exited with status $ac_status" >&5 5637echo "$as_me: failed program was:" >&5 5638cat conftest.$ac_ext >&5 5639ac_cv_func_realloc_broken=yes 5640fi 5641rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5642fi 5643 5644fi 5645echo "$as_me:5645: result: $ac_cv_func_realloc_broken" >&5 5646echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6 5647if test "$ac_cv_func_realloc_broken" = yes ; then 5648 5649cat >>confdefs.h <<\EOF 5650#define BROKEN_REALLOC 1 5651EOF 5652 5653fi 5654 5655DIR_roken=roken 5656LIB_roken='$(top_builddir)/lib/roken/libroken.la' 5657INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 5658 5659WFLAGS_NOUNUSED="" 5660WFLAGS_NOIMPLICITINT="" 5661if test -z "$WFLAGS" -a "$GCC" = "yes"; then 5662 # -Wno-implicit-int for broken X11 headers 5663 # leave these out for now: 5664 # -Wcast-align doesn't work well on alpha osf/1 5665 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 5666 # -Wmissing-declarations -Wnested-externs 5667 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 5668 WFLAGS_NOUNUSED="-Wno-unused" 5669 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 5670fi 5671 5672echo "$as_me:5672: checking for ssize_t" >&5 5673echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 5674if test "${ac_cv_type_ssize_t+set}" = set; then 5675 echo $ECHO_N "(cached) $ECHO_C" >&6 5676else 5677 cat >conftest.$ac_ext <<_ACEOF 5678#line 5678 "configure" 5679#include "confdefs.h" 5680#include <sys/types.h> 5681#if STDC_HEADERS 5682#include <stdlib.h> 5683#include <stddef.h> 5684#endif 5685#include <unistd.h> 5686_ACEOF 5687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5688 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5689 ac_cv_type_ssize_t=yes 5690else 5691 ac_cv_type_ssize_t=no 5692fi 5693rm -f conftest* 5694 5695fi 5696echo "$as_me:5696: result: $ac_cv_type_ssize_t" >&5 5697echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 5698if test $ac_cv_type_ssize_t = no; then 5699 5700cat >>confdefs.h <<\EOF 5701#define ssize_t int 5702EOF 5703 5704fi 5705 5706cv=`echo "long long" | sed 'y%./+- %__p__%'` 5707echo "$as_me:5707: checking for long long" >&5 5708echo $ECHO_N "checking for long long... $ECHO_C" >&6 5709if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 5710 echo $ECHO_N "(cached) $ECHO_C" >&6 5711else 5712 cat >conftest.$ac_ext <<_ACEOF 5713#line 5713 "configure" 5714#include "confdefs.h" 5715#include <sys/types.h> 5716#if STDC_HEADERS 5717#include <stdlib.h> 5718#include <stddef.h> 5719#endif 5720 5721int 5722main () 5723{ 5724long long foo; 5725 ; 5726 return 0; 5727} 5728_ACEOF 5729rm -f conftest.$ac_objext 5730if { (eval echo "$as_me:5730: \"$ac_compile\"") >&5 5731 (eval $ac_compile) 2>&5 5732 ac_status=$? 5733 echo "$as_me:5733: \$? = $ac_status" >&5 5734 (exit $ac_status); } && 5735 { ac_try='test -s conftest.$ac_objext' 5736 { (eval echo "$as_me:5736: \"$ac_try\"") >&5 5737 (eval $ac_try) 2>&5 5738 ac_status=$? 5739 echo "$as_me:5739: \$? = $ac_status" >&5 5740 (exit $ac_status); }; }; then 5741 eval "ac_cv_type_$cv=yes" 5742else 5743 echo "$as_me: failed program was:" >&5 5744cat conftest.$ac_ext >&5 5745eval "ac_cv_type_$cv=no" 5746fi 5747rm -f conftest.$ac_objext conftest.$ac_ext 5748fi 5749ac_foo=`eval echo \\$ac_cv_type_$cv` 5750echo "$as_me:5750: result: $ac_foo" >&5 5751echo "${ECHO_T}$ac_foo" >&6 5752if test "$ac_foo" = yes; then 5753 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 5754if false; then 5755 echo "$as_me:5755: checking for long long" >&5 5756echo $ECHO_N "checking for long long... $ECHO_C" >&6 5757if test "${ac_cv_type_long_long+set}" = set; then 5758 echo $ECHO_N "(cached) $ECHO_C" >&6 5759else 5760 cat >conftest.$ac_ext <<_ACEOF 5761#line 5761 "configure" 5762#include "confdefs.h" 5763$ac_includes_default 5764int 5765main () 5766{ 5767if ((long long *) 0) 5768 return 0; 5769if (sizeof (long long)) 5770 return 0; 5771 ; 5772 return 0; 5773} 5774_ACEOF 5775rm -f conftest.$ac_objext 5776if { (eval echo "$as_me:5776: \"$ac_compile\"") >&5 5777 (eval $ac_compile) 2>&5 5778 ac_status=$? 5779 echo "$as_me:5779: \$? = $ac_status" >&5 5780 (exit $ac_status); } && 5781 { ac_try='test -s conftest.$ac_objext' 5782 { (eval echo "$as_me:5782: \"$ac_try\"") >&5 5783 (eval $ac_try) 2>&5 5784 ac_status=$? 5785 echo "$as_me:5785: \$? = $ac_status" >&5 5786 (exit $ac_status); }; }; then 5787 ac_cv_type_long_long=yes 5788else 5789 echo "$as_me: failed program was:" >&5 5790cat conftest.$ac_ext >&5 5791ac_cv_type_long_long=no 5792fi 5793rm -f conftest.$ac_objext conftest.$ac_ext 5794fi 5795echo "$as_me:5795: result: $ac_cv_type_long_long" >&5 5796echo "${ECHO_T}$ac_cv_type_long_long" >&6 5797if test $ac_cv_type_long_long = yes; then 5798 5799cat >>confdefs.h <<EOF 5800#define HAVE_LONG_LONG 1 5801EOF 5802 5803fi 5804 5805fi 5806 5807cat >>confdefs.h <<EOF 5808#define $ac_tr_hdr 1 5809EOF 5810 5811fi 5812 5813for ac_header in \ 5814 arpa/inet.h \ 5815 arpa/nameser.h \ 5816 config.h \ 5817 crypt.h \ 5818 dirent.h \ 5819 errno.h \ 5820 err.h \ 5821 fcntl.h \ 5822 grp.h \ 5823 ifaddrs.h \ 5824 net/if.h \ 5825 netdb.h \ 5826 netinet/in.h \ 5827 netinet/in6.h \ 5828 netinet/in_systm.h \ 5829 netinet6/in6.h \ 5830 netinet6/in6_var.h \ 5831 paths.h \ 5832 pwd.h \ 5833 resolv.h \ 5834 rpcsvc/ypclnt.h \ 5835 shadow.h \ 5836 sys/bswap.h \ 5837 sys/ioctl.h \ 5838 sys/param.h \ 5839 sys/proc.h \ 5840 sys/resource.h \ 5841 sys/socket.h \ 5842 sys/sockio.h \ 5843 sys/stat.h \ 5844 sys/sysctl.h \ 5845 sys/time.h \ 5846 sys/tty.h \ 5847 sys/types.h \ 5848 sys/uio.h \ 5849 sys/utsname.h \ 5850 sys/wait.h \ 5851 syslog.h \ 5852 termios.h \ 5853 unistd.h \ 5854 userconf.h \ 5855 usersec.h \ 5856 util.h \ 5857 vis.h \ 5858 5859do 5860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5861echo "$as_me:5861: checking for $ac_header" >&5 5862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5863if eval "test \"\${$as_ac_Header+set}\" = set"; then 5864 echo $ECHO_N "(cached) $ECHO_C" >&6 5865else 5866 cat >conftest.$ac_ext <<_ACEOF 5867#line 5867 "configure" 5868#include "confdefs.h" 5869#include <$ac_header> 5870_ACEOF 5871if { (eval echo "$as_me:5871: \"$ac_cpp conftest.$ac_ext\"") >&5 5872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5873 ac_status=$? 5874 egrep -v '^ *\+' conftest.er1 >conftest.err 5875 rm -f conftest.er1 5876 cat conftest.err >&5 5877 echo "$as_me:5877: \$? = $ac_status" >&5 5878 (exit $ac_status); } >/dev/null; then 5879 if test -s conftest.err; then 5880 ac_cpp_err=$ac_c_preproc_warn_flag 5881 else 5882 ac_cpp_err= 5883 fi 5884else 5885 ac_cpp_err=yes 5886fi 5887if test -z "$ac_cpp_err"; then 5888 eval "$as_ac_Header=yes" 5889else 5890 echo "$as_me: failed program was:" >&5 5891 cat conftest.$ac_ext >&5 5892 eval "$as_ac_Header=no" 5893fi 5894rm -f conftest.err conftest.$ac_ext 5895fi 5896echo "$as_me:5896: result: `eval echo '${'$as_ac_Header'}'`" >&5 5897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5898if test `eval echo '${'$as_ac_Header'}'` = yes; then 5899 cat >>confdefs.h <<EOF 5900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5901EOF 5902 5903fi 5904done 5905 5906if test "$ac_cv_header_err_h" = yes; then 5907 have_err_h_TRUE= 5908 have_err_h_FALSE='#' 5909else 5910 have_err_h_TRUE='#' 5911 have_err_h_FALSE= 5912fi 5913 5914if test "$ac_cv_header_fnmatch_h" = yes; then 5915 have_fnmatch_h_TRUE= 5916 have_fnmatch_h_FALSE='#' 5917else 5918 have_fnmatch_h_TRUE='#' 5919 have_fnmatch_h_FALSE= 5920fi 5921 5922if test "$ac_cv_header_ifaddrs_h" = yes; then 5923 have_ifaddrs_h_TRUE= 5924 have_ifaddrs_h_FALSE='#' 5925else 5926 have_ifaddrs_h_TRUE='#' 5927 have_ifaddrs_h_FALSE= 5928fi 5929 5930if test "$ac_cv_header_vis_h" = yes; then 5931 have_vis_h_TRUE= 5932 have_vis_h_FALSE='#' 5933else 5934 have_vis_h_TRUE='#' 5935 have_vis_h_FALSE= 5936fi 5937 5938echo "$as_me:5938: checking for socket" >&5 5939echo $ECHO_N "checking for socket... $ECHO_C" >&6 5940if test "${ac_cv_funclib_socket+set}" = set; then 5941 echo $ECHO_N "(cached) $ECHO_C" >&6 5942else 5943 5944if eval "test \"\$ac_cv_func_socket\" != yes" ; then 5945 ac_save_LIBS="$LIBS" 5946 for ac_lib in "" socket; do 5947 case "$ac_lib" in 5948 "") ;; 5949 yes) ac_lib="" ;; 5950 no) continue ;; 5951 -l*) ;; 5952 *) ac_lib="-l$ac_lib" ;; 5953 esac 5954 LIBS=" $ac_lib $ac_save_LIBS" 5955 cat >conftest.$ac_ext <<_ACEOF 5956#line 5956 "configure" 5957#include "confdefs.h" 5958 5959int 5960main () 5961{ 5962socket() 5963 ; 5964 return 0; 5965} 5966_ACEOF 5967rm -f conftest.$ac_objext conftest$ac_exeext 5968if { (eval echo "$as_me:5968: \"$ac_link\"") >&5 5969 (eval $ac_link) 2>&5 5970 ac_status=$? 5971 echo "$as_me:5971: \$? = $ac_status" >&5 5972 (exit $ac_status); } && 5973 { ac_try='test -s conftest$ac_exeext' 5974 { (eval echo "$as_me:5974: \"$ac_try\"") >&5 5975 (eval $ac_try) 2>&5 5976 ac_status=$? 5977 echo "$as_me:5977: \$? = $ac_status" >&5 5978 (exit $ac_status); }; }; then 5979 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 5980else 5981 echo "$as_me: failed program was:" >&5 5982cat conftest.$ac_ext >&5 5983fi 5984rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5985 done 5986 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 5987 LIBS="$ac_save_LIBS" 5988fi 5989 5990fi 5991 5992eval "ac_res=\$ac_cv_funclib_socket" 5993 5994if false; then 5995 5996for ac_func in socket 5997do 5998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5999echo "$as_me:5999: checking for $ac_func" >&5 6000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6001if eval "test \"\${$as_ac_var+set}\" = set"; then 6002 echo $ECHO_N "(cached) $ECHO_C" >&6 6003else 6004 cat >conftest.$ac_ext <<_ACEOF 6005#line 6005 "configure" 6006#include "confdefs.h" 6007/* System header to define __stub macros and hopefully few prototypes, 6008 which can conflict with char $ac_func (); below. */ 6009#include <assert.h> 6010/* Override any gcc2 internal prototype to avoid an error. */ 6011#ifdef __cplusplus 6012extern "C" 6013#endif 6014/* We use char because int might match the return type of a gcc2 6015 builtin and then its argument prototype would still apply. */ 6016char $ac_func (); 6017char (*f) (); 6018 6019int 6020main () 6021{ 6022/* The GNU C library defines this for functions which it implements 6023 to always fail with ENOSYS. Some functions are actually named 6024 something starting with __ and the normal name is an alias. */ 6025#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6026choke me 6027#else 6028f = $ac_func; 6029#endif 6030 6031 ; 6032 return 0; 6033} 6034_ACEOF 6035rm -f conftest.$ac_objext conftest$ac_exeext 6036if { (eval echo "$as_me:6036: \"$ac_link\"") >&5 6037 (eval $ac_link) 2>&5 6038 ac_status=$? 6039 echo "$as_me:6039: \$? = $ac_status" >&5 6040 (exit $ac_status); } && 6041 { ac_try='test -s conftest$ac_exeext' 6042 { (eval echo "$as_me:6042: \"$ac_try\"") >&5 6043 (eval $ac_try) 2>&5 6044 ac_status=$? 6045 echo "$as_me:6045: \$? = $ac_status" >&5 6046 (exit $ac_status); }; }; then 6047 eval "$as_ac_var=yes" 6048else 6049 echo "$as_me: failed program was:" >&5 6050cat conftest.$ac_ext >&5 6051eval "$as_ac_var=no" 6052fi 6053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6054fi 6055echo "$as_me:6055: result: `eval echo '${'$as_ac_var'}'`" >&5 6056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6057if test `eval echo '${'$as_ac_var'}'` = yes; then 6058 cat >>confdefs.h <<EOF 6059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6060EOF 6061 6062fi 6063done 6064 6065fi 6066# socket 6067eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6068eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6069eval "LIB_socket=$ac_res" 6070 6071case "$ac_res" in 6072 yes) 6073 eval "ac_cv_func_socket=yes" 6074 eval "LIB_socket=" 6075 cat >>confdefs.h <<EOF 6076#define $ac_tr_func 1 6077EOF 6078 6079 echo "$as_me:6079: result: yes" >&5 6080echo "${ECHO_T}yes" >&6 6081 ;; 6082 no) 6083 eval "ac_cv_func_socket=no" 6084 eval "LIB_socket=" 6085 echo "$as_me:6085: result: no" >&5 6086echo "${ECHO_T}no" >&6 6087 ;; 6088 *) 6089 eval "ac_cv_func_socket=yes" 6090 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6091 cat >>confdefs.h <<EOF 6092#define $ac_tr_func 1 6093EOF 6094 6095 cat >>confdefs.h <<EOF 6096#define $ac_tr_lib 1 6097EOF 6098 6099 echo "$as_me:6099: result: yes, in $ac_res" >&5 6100echo "${ECHO_T}yes, in $ac_res" >&6 6101 ;; 6102esac 6103 6104if test -n "$LIB_socket"; then 6105 LIBS="$LIB_socket $LIBS" 6106fi 6107 6108echo "$as_me:6108: checking for gethostbyname" >&5 6109echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 6110if test "${ac_cv_funclib_gethostbyname+set}" = set; then 6111 echo $ECHO_N "(cached) $ECHO_C" >&6 6112else 6113 6114if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 6115 ac_save_LIBS="$LIBS" 6116 for ac_lib in "" nsl; do 6117 case "$ac_lib" in 6118 "") ;; 6119 yes) ac_lib="" ;; 6120 no) continue ;; 6121 -l*) ;; 6122 *) ac_lib="-l$ac_lib" ;; 6123 esac 6124 LIBS=" $ac_lib $ac_save_LIBS" 6125 cat >conftest.$ac_ext <<_ACEOF 6126#line 6126 "configure" 6127#include "confdefs.h" 6128 6129int 6130main () 6131{ 6132gethostbyname() 6133 ; 6134 return 0; 6135} 6136_ACEOF 6137rm -f conftest.$ac_objext conftest$ac_exeext 6138if { (eval echo "$as_me:6138: \"$ac_link\"") >&5 6139 (eval $ac_link) 2>&5 6140 ac_status=$? 6141 echo "$as_me:6141: \$? = $ac_status" >&5 6142 (exit $ac_status); } && 6143 { ac_try='test -s conftest$ac_exeext' 6144 { (eval echo "$as_me:6144: \"$ac_try\"") >&5 6145 (eval $ac_try) 2>&5 6146 ac_status=$? 6147 echo "$as_me:6147: \$? = $ac_status" >&5 6148 (exit $ac_status); }; }; then 6149 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 6150else 6151 echo "$as_me: failed program was:" >&5 6152cat conftest.$ac_ext >&5 6153fi 6154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6155 done 6156 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 6157 LIBS="$ac_save_LIBS" 6158fi 6159 6160fi 6161 6162eval "ac_res=\$ac_cv_funclib_gethostbyname" 6163 6164if false; then 6165 6166for ac_func in gethostbyname 6167do 6168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6169echo "$as_me:6169: checking for $ac_func" >&5 6170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6171if eval "test \"\${$as_ac_var+set}\" = set"; then 6172 echo $ECHO_N "(cached) $ECHO_C" >&6 6173else 6174 cat >conftest.$ac_ext <<_ACEOF 6175#line 6175 "configure" 6176#include "confdefs.h" 6177/* System header to define __stub macros and hopefully few prototypes, 6178 which can conflict with char $ac_func (); below. */ 6179#include <assert.h> 6180/* Override any gcc2 internal prototype to avoid an error. */ 6181#ifdef __cplusplus 6182extern "C" 6183#endif 6184/* We use char because int might match the return type of a gcc2 6185 builtin and then its argument prototype would still apply. */ 6186char $ac_func (); 6187char (*f) (); 6188 6189int 6190main () 6191{ 6192/* The GNU C library defines this for functions which it implements 6193 to always fail with ENOSYS. Some functions are actually named 6194 something starting with __ and the normal name is an alias. */ 6195#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6196choke me 6197#else 6198f = $ac_func; 6199#endif 6200 6201 ; 6202 return 0; 6203} 6204_ACEOF 6205rm -f conftest.$ac_objext conftest$ac_exeext 6206if { (eval echo "$as_me:6206: \"$ac_link\"") >&5 6207 (eval $ac_link) 2>&5 6208 ac_status=$? 6209 echo "$as_me:6209: \$? = $ac_status" >&5 6210 (exit $ac_status); } && 6211 { ac_try='test -s conftest$ac_exeext' 6212 { (eval echo "$as_me:6212: \"$ac_try\"") >&5 6213 (eval $ac_try) 2>&5 6214 ac_status=$? 6215 echo "$as_me:6215: \$? = $ac_status" >&5 6216 (exit $ac_status); }; }; then 6217 eval "$as_ac_var=yes" 6218else 6219 echo "$as_me: failed program was:" >&5 6220cat conftest.$ac_ext >&5 6221eval "$as_ac_var=no" 6222fi 6223rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6224fi 6225echo "$as_me:6225: result: `eval echo '${'$as_ac_var'}'`" >&5 6226echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6227if test `eval echo '${'$as_ac_var'}'` = yes; then 6228 cat >>confdefs.h <<EOF 6229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6230EOF 6231 6232fi 6233done 6234 6235fi 6236# gethostbyname 6237eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6238eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6239eval "LIB_gethostbyname=$ac_res" 6240 6241case "$ac_res" in 6242 yes) 6243 eval "ac_cv_func_gethostbyname=yes" 6244 eval "LIB_gethostbyname=" 6245 cat >>confdefs.h <<EOF 6246#define $ac_tr_func 1 6247EOF 6248 6249 echo "$as_me:6249: result: yes" >&5 6250echo "${ECHO_T}yes" >&6 6251 ;; 6252 no) 6253 eval "ac_cv_func_gethostbyname=no" 6254 eval "LIB_gethostbyname=" 6255 echo "$as_me:6255: result: no" >&5 6256echo "${ECHO_T}no" >&6 6257 ;; 6258 *) 6259 eval "ac_cv_func_gethostbyname=yes" 6260 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6261 cat >>confdefs.h <<EOF 6262#define $ac_tr_func 1 6263EOF 6264 6265 cat >>confdefs.h <<EOF 6266#define $ac_tr_lib 1 6267EOF 6268 6269 echo "$as_me:6269: result: yes, in $ac_res" >&5 6270echo "${ECHO_T}yes, in $ac_res" >&6 6271 ;; 6272esac 6273 6274if test -n "$LIB_gethostbyname"; then 6275 LIBS="$LIB_gethostbyname $LIBS" 6276fi 6277 6278echo "$as_me:6278: checking for syslog" >&5 6279echo $ECHO_N "checking for syslog... $ECHO_C" >&6 6280if test "${ac_cv_funclib_syslog+set}" = set; then 6281 echo $ECHO_N "(cached) $ECHO_C" >&6 6282else 6283 6284if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 6285 ac_save_LIBS="$LIBS" 6286 for ac_lib in "" syslog; do 6287 case "$ac_lib" in 6288 "") ;; 6289 yes) ac_lib="" ;; 6290 no) continue ;; 6291 -l*) ;; 6292 *) ac_lib="-l$ac_lib" ;; 6293 esac 6294 LIBS=" $ac_lib $ac_save_LIBS" 6295 cat >conftest.$ac_ext <<_ACEOF 6296#line 6296 "configure" 6297#include "confdefs.h" 6298 6299int 6300main () 6301{ 6302syslog() 6303 ; 6304 return 0; 6305} 6306_ACEOF 6307rm -f conftest.$ac_objext conftest$ac_exeext 6308if { (eval echo "$as_me:6308: \"$ac_link\"") >&5 6309 (eval $ac_link) 2>&5 6310 ac_status=$? 6311 echo "$as_me:6311: \$? = $ac_status" >&5 6312 (exit $ac_status); } && 6313 { ac_try='test -s conftest$ac_exeext' 6314 { (eval echo "$as_me:6314: \"$ac_try\"") >&5 6315 (eval $ac_try) 2>&5 6316 ac_status=$? 6317 echo "$as_me:6317: \$? = $ac_status" >&5 6318 (exit $ac_status); }; }; then 6319 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 6320else 6321 echo "$as_me: failed program was:" >&5 6322cat conftest.$ac_ext >&5 6323fi 6324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6325 done 6326 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 6327 LIBS="$ac_save_LIBS" 6328fi 6329 6330fi 6331 6332eval "ac_res=\$ac_cv_funclib_syslog" 6333 6334if false; then 6335 6336for ac_func in syslog 6337do 6338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6339echo "$as_me:6339: checking for $ac_func" >&5 6340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6341if eval "test \"\${$as_ac_var+set}\" = set"; then 6342 echo $ECHO_N "(cached) $ECHO_C" >&6 6343else 6344 cat >conftest.$ac_ext <<_ACEOF 6345#line 6345 "configure" 6346#include "confdefs.h" 6347/* System header to define __stub macros and hopefully few prototypes, 6348 which can conflict with char $ac_func (); below. */ 6349#include <assert.h> 6350/* Override any gcc2 internal prototype to avoid an error. */ 6351#ifdef __cplusplus 6352extern "C" 6353#endif 6354/* We use char because int might match the return type of a gcc2 6355 builtin and then its argument prototype would still apply. */ 6356char $ac_func (); 6357char (*f) (); 6358 6359int 6360main () 6361{ 6362/* The GNU C library defines this for functions which it implements 6363 to always fail with ENOSYS. Some functions are actually named 6364 something starting with __ and the normal name is an alias. */ 6365#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6366choke me 6367#else 6368f = $ac_func; 6369#endif 6370 6371 ; 6372 return 0; 6373} 6374_ACEOF 6375rm -f conftest.$ac_objext conftest$ac_exeext 6376if { (eval echo "$as_me:6376: \"$ac_link\"") >&5 6377 (eval $ac_link) 2>&5 6378 ac_status=$? 6379 echo "$as_me:6379: \$? = $ac_status" >&5 6380 (exit $ac_status); } && 6381 { ac_try='test -s conftest$ac_exeext' 6382 { (eval echo "$as_me:6382: \"$ac_try\"") >&5 6383 (eval $ac_try) 2>&5 6384 ac_status=$? 6385 echo "$as_me:6385: \$? = $ac_status" >&5 6386 (exit $ac_status); }; }; then 6387 eval "$as_ac_var=yes" 6388else 6389 echo "$as_me: failed program was:" >&5 6390cat conftest.$ac_ext >&5 6391eval "$as_ac_var=no" 6392fi 6393rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6394fi 6395echo "$as_me:6395: result: `eval echo '${'$as_ac_var'}'`" >&5 6396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6397if test `eval echo '${'$as_ac_var'}'` = yes; then 6398 cat >>confdefs.h <<EOF 6399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6400EOF 6401 6402fi 6403done 6404 6405fi 6406# syslog 6407eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6408eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6409eval "LIB_syslog=$ac_res" 6410 6411case "$ac_res" in 6412 yes) 6413 eval "ac_cv_func_syslog=yes" 6414 eval "LIB_syslog=" 6415 cat >>confdefs.h <<EOF 6416#define $ac_tr_func 1 6417EOF 6418 6419 echo "$as_me:6419: result: yes" >&5 6420echo "${ECHO_T}yes" >&6 6421 ;; 6422 no) 6423 eval "ac_cv_func_syslog=no" 6424 eval "LIB_syslog=" 6425 echo "$as_me:6425: result: no" >&5 6426echo "${ECHO_T}no" >&6 6427 ;; 6428 *) 6429 eval "ac_cv_func_syslog=yes" 6430 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6431 cat >>confdefs.h <<EOF 6432#define $ac_tr_func 1 6433EOF 6434 6435 cat >>confdefs.h <<EOF 6436#define $ac_tr_lib 1 6437EOF 6438 6439 echo "$as_me:6439: result: yes, in $ac_res" >&5 6440echo "${ECHO_T}yes, in $ac_res" >&6 6441 ;; 6442esac 6443 6444if test -n "$LIB_syslog"; then 6445 LIBS="$LIB_syslog $LIBS" 6446fi 6447 6448# Check whether --with-ipv6 or --without-ipv6 was given. 6449if test "${with_ipv6+set}" = set; then 6450 withval="$with_ipv6" 6451 6452if test "$withval" = "no"; then 6453 ac_cv_lib_ipv6=no 6454fi 6455fi; 6456save_CFLAGS="${CFLAGS}" 6457if test "${ac_cv_lib_ipv6+set}" = set; then 6458 echo $ECHO_N "(cached) $ECHO_C" >&6 6459else 6460 v6type=unknown 6461v6lib=none 6462 6463echo "$as_me:6463: checking ipv6 stack type" >&5 6464echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 6465for i in v6d toshiba kame inria zeta linux; do 6466 case $i in 6467 v6d) 6468 cat >conftest.$ac_ext <<_ACEOF 6469#line 6469 "configure" 6470#include "confdefs.h" 6471 6472#include </usr/local/v6/include/sys/types.h> 6473#ifdef __V6D__ 6474yes 6475#endif 6476_ACEOF 6477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6478 egrep "yes" >/dev/null 2>&1; then 6479 v6type=$i; v6lib=v6; 6480 v6libdir=/usr/local/v6/lib; 6481 CFLAGS="-I/usr/local/v6/include $CFLAGS" 6482fi 6483rm -f conftest* 6484 6485 ;; 6486 toshiba) 6487 cat >conftest.$ac_ext <<_ACEOF 6488#line 6488 "configure" 6489#include "confdefs.h" 6490 6491#include <sys/param.h> 6492#ifdef _TOSHIBA_INET6 6493yes 6494#endif 6495_ACEOF 6496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6497 egrep "yes" >/dev/null 2>&1; then 6498 v6type=$i; v6lib=inet6; 6499 v6libdir=/usr/local/v6/lib; 6500 CFLAGS="-DINET6 $CFLAGS" 6501fi 6502rm -f conftest* 6503 6504 ;; 6505 kame) 6506 cat >conftest.$ac_ext <<_ACEOF 6507#line 6507 "configure" 6508#include "confdefs.h" 6509 6510#include <netinet/in.h> 6511#ifdef __KAME__ 6512yes 6513#endif 6514_ACEOF 6515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6516 egrep "yes" >/dev/null 2>&1; then 6517 v6type=$i; v6lib=inet6; 6518 v6libdir=/usr/local/v6/lib; 6519 CFLAGS="-DINET6 $CFLAGS" 6520fi 6521rm -f conftest* 6522 6523 ;; 6524 inria) 6525 cat >conftest.$ac_ext <<_ACEOF 6526#line 6526 "configure" 6527#include "confdefs.h" 6528 6529#include <netinet/in.h> 6530#ifdef IPV6_INRIA_VERSION 6531yes 6532#endif 6533_ACEOF 6534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6535 egrep "yes" >/dev/null 2>&1; then 6536 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 6537fi 6538rm -f conftest* 6539 6540 ;; 6541 zeta) 6542 cat >conftest.$ac_ext <<_ACEOF 6543#line 6543 "configure" 6544#include "confdefs.h" 6545 6546#include <sys/param.h> 6547#ifdef _ZETA_MINAMI_INET6 6548yes 6549#endif 6550_ACEOF 6551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6552 egrep "yes" >/dev/null 2>&1; then 6553 v6type=$i; v6lib=inet6; 6554 v6libdir=/usr/local/v6/lib; 6555 CFLAGS="-DINET6 $CFLAGS" 6556fi 6557rm -f conftest* 6558 6559 ;; 6560 linux) 6561 if test -d /usr/inet6; then 6562 v6type=$i 6563 v6lib=inet6 6564 v6libdir=/usr/inet6 6565 CFLAGS="-DINET6 $CFLAGS" 6566 fi 6567 ;; 6568 esac 6569 if test "$v6type" != "unknown"; then 6570 break 6571 fi 6572done 6573echo "$as_me:6573: result: $v6type" >&5 6574echo "${ECHO_T}$v6type" >&6 6575 6576if test "$v6lib" != "none"; then 6577 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 6578 if test -d $dir -a -f $dir/lib$v6lib.a; then 6579 LIBS="-L$dir -l$v6lib $LIBS" 6580 break 6581 fi 6582 done 6583fi 6584cat >conftest.$ac_ext <<_ACEOF 6585#line 6585 "configure" 6586#include "confdefs.h" 6587 6588#ifdef HAVE_SYS_TYPES_H 6589#include <sys/types.h> 6590#endif 6591#ifdef HAVE_SYS_SOCKET_H 6592#include <sys/socket.h> 6593#endif 6594#ifdef HAVE_NETINET_IN_H 6595#include <netinet/in.h> 6596#endif 6597#ifdef HAVE_NETINET_IN6_H 6598#include <netinet/in6.h> 6599#endif 6600 6601int 6602main () 6603{ 6604 6605 struct sockaddr_in6 sin6; 6606 int s; 6607 6608 s = socket(AF_INET6, SOCK_DGRAM, 0); 6609 6610 sin6.sin6_family = AF_INET6; 6611 sin6.sin6_port = htons(17); 6612 sin6.sin6_addr = in6addr_any; 6613 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 6614 6615 ; 6616 return 0; 6617} 6618_ACEOF 6619rm -f conftest.$ac_objext conftest$ac_exeext 6620if { (eval echo "$as_me:6620: \"$ac_link\"") >&5 6621 (eval $ac_link) 2>&5 6622 ac_status=$? 6623 echo "$as_me:6623: \$? = $ac_status" >&5 6624 (exit $ac_status); } && 6625 { ac_try='test -s conftest$ac_exeext' 6626 { (eval echo "$as_me:6626: \"$ac_try\"") >&5 6627 (eval $ac_try) 2>&5 6628 ac_status=$? 6629 echo "$as_me:6629: \$? = $ac_status" >&5 6630 (exit $ac_status); }; }; then 6631 ac_cv_lib_ipv6=yes 6632else 6633 echo "$as_me: failed program was:" >&5 6634cat conftest.$ac_ext >&5 6635ac_cv_lib_ipv6=no 6636fi 6637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6638fi 6639 6640echo "$as_me:6640: checking for IPv6" >&5 6641echo $ECHO_N "checking for IPv6... $ECHO_C" >&6 6642echo "$as_me:6642: result: $ac_cv_lib_ipv6" >&5 6643echo "${ECHO_T}$ac_cv_lib_ipv6" >&6 6644if test "$ac_cv_lib_ipv6" = yes; then 6645 6646cat >>confdefs.h <<\EOF 6647#define HAVE_IPV6 1 6648EOF 6649 6650else 6651 CFLAGS="${save_CFLAGS}" 6652fi 6653 6654if test "$ac_cv_lib_ipv6" = yes; then 6655 echo "$as_me:6655: checking for in6addr_loopback" >&5 6656echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6 6657if test "${ac_cv_var_in6addr_loopback+set}" = set; then 6658 echo $ECHO_N "(cached) $ECHO_C" >&6 6659else 6660 6661 cat >conftest.$ac_ext <<_ACEOF 6662#line 6662 "configure" 6663#include "confdefs.h" 6664 6665#ifdef HAVE_SYS_TYPES_H 6666#include <sys/types.h> 6667#endif 6668#ifdef HAVE_SYS_SOCKET_H 6669#include <sys/socket.h> 6670#endif 6671#ifdef HAVE_NETINET_IN_H 6672#include <netinet/in.h> 6673#endif 6674#ifdef HAVE_NETINET_IN6_H 6675#include <netinet/in6.h> 6676#endif 6677int 6678main () 6679{ 6680 6681struct sockaddr_in6 sin6; 6682sin6.sin6_addr = in6addr_loopback; 6683 6684 ; 6685 return 0; 6686} 6687_ACEOF 6688rm -f conftest.$ac_objext conftest$ac_exeext 6689if { (eval echo "$as_me:6689: \"$ac_link\"") >&5 6690 (eval $ac_link) 2>&5 6691 ac_status=$? 6692 echo "$as_me:6692: \$? = $ac_status" >&5 6693 (exit $ac_status); } && 6694 { ac_try='test -s conftest$ac_exeext' 6695 { (eval echo "$as_me:6695: \"$ac_try\"") >&5 6696 (eval $ac_try) 2>&5 6697 ac_status=$? 6698 echo "$as_me:6698: \$? = $ac_status" >&5 6699 (exit $ac_status); }; }; then 6700 ac_cv_var_in6addr_loopback=yes 6701else 6702 echo "$as_me: failed program was:" >&5 6703cat conftest.$ac_ext >&5 6704ac_cv_var_in6addr_loopback=no 6705fi 6706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6707fi 6708echo "$as_me:6708: result: $ac_cv_var_in6addr_loopback" >&5 6709echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6 6710 if test "$ac_cv_var_in6addr_loopback" = yes; then 6711 6712cat >>confdefs.h <<\EOF 6713#define HAVE_IN6ADDR_LOOPBACK 1 6714EOF 6715 6716 fi 6717fi 6718 6719echo "$as_me:6719: checking for gethostbyname2" >&5 6720echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6 6721if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 6722 echo $ECHO_N "(cached) $ECHO_C" >&6 6723else 6724 6725if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 6726 ac_save_LIBS="$LIBS" 6727 for ac_lib in "" inet6 ip6; do 6728 case "$ac_lib" in 6729 "") ;; 6730 yes) ac_lib="" ;; 6731 no) continue ;; 6732 -l*) ;; 6733 *) ac_lib="-l$ac_lib" ;; 6734 esac 6735 LIBS=" $ac_lib $ac_save_LIBS" 6736 cat >conftest.$ac_ext <<_ACEOF 6737#line 6737 "configure" 6738#include "confdefs.h" 6739 6740int 6741main () 6742{ 6743gethostbyname2() 6744 ; 6745 return 0; 6746} 6747_ACEOF 6748rm -f conftest.$ac_objext conftest$ac_exeext 6749if { (eval echo "$as_me:6749: \"$ac_link\"") >&5 6750 (eval $ac_link) 2>&5 6751 ac_status=$? 6752 echo "$as_me:6752: \$? = $ac_status" >&5 6753 (exit $ac_status); } && 6754 { ac_try='test -s conftest$ac_exeext' 6755 { (eval echo "$as_me:6755: \"$ac_try\"") >&5 6756 (eval $ac_try) 2>&5 6757 ac_status=$? 6758 echo "$as_me:6758: \$? = $ac_status" >&5 6759 (exit $ac_status); }; }; then 6760 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 6761else 6762 echo "$as_me: failed program was:" >&5 6763cat conftest.$ac_ext >&5 6764fi 6765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6766 done 6767 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 6768 LIBS="$ac_save_LIBS" 6769fi 6770 6771fi 6772 6773eval "ac_res=\$ac_cv_funclib_gethostbyname2" 6774 6775if false; then 6776 6777for ac_func in gethostbyname2 6778do 6779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6780echo "$as_me:6780: checking for $ac_func" >&5 6781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6782if eval "test \"\${$as_ac_var+set}\" = set"; then 6783 echo $ECHO_N "(cached) $ECHO_C" >&6 6784else 6785 cat >conftest.$ac_ext <<_ACEOF 6786#line 6786 "configure" 6787#include "confdefs.h" 6788/* System header to define __stub macros and hopefully few prototypes, 6789 which can conflict with char $ac_func (); below. */ 6790#include <assert.h> 6791/* Override any gcc2 internal prototype to avoid an error. */ 6792#ifdef __cplusplus 6793extern "C" 6794#endif 6795/* We use char because int might match the return type of a gcc2 6796 builtin and then its argument prototype would still apply. */ 6797char $ac_func (); 6798char (*f) (); 6799 6800int 6801main () 6802{ 6803/* The GNU C library defines this for functions which it implements 6804 to always fail with ENOSYS. Some functions are actually named 6805 something starting with __ and the normal name is an alias. */ 6806#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6807choke me 6808#else 6809f = $ac_func; 6810#endif 6811 6812 ; 6813 return 0; 6814} 6815_ACEOF 6816rm -f conftest.$ac_objext conftest$ac_exeext 6817if { (eval echo "$as_me:6817: \"$ac_link\"") >&5 6818 (eval $ac_link) 2>&5 6819 ac_status=$? 6820 echo "$as_me:6820: \$? = $ac_status" >&5 6821 (exit $ac_status); } && 6822 { ac_try='test -s conftest$ac_exeext' 6823 { (eval echo "$as_me:6823: \"$ac_try\"") >&5 6824 (eval $ac_try) 2>&5 6825 ac_status=$? 6826 echo "$as_me:6826: \$? = $ac_status" >&5 6827 (exit $ac_status); }; }; then 6828 eval "$as_ac_var=yes" 6829else 6830 echo "$as_me: failed program was:" >&5 6831cat conftest.$ac_ext >&5 6832eval "$as_ac_var=no" 6833fi 6834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6835fi 6836echo "$as_me:6836: result: `eval echo '${'$as_ac_var'}'`" >&5 6837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6838if test `eval echo '${'$as_ac_var'}'` = yes; then 6839 cat >>confdefs.h <<EOF 6840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6841EOF 6842 6843fi 6844done 6845 6846fi 6847# gethostbyname2 6848eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6849eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6850eval "LIB_gethostbyname2=$ac_res" 6851 6852case "$ac_res" in 6853 yes) 6854 eval "ac_cv_func_gethostbyname2=yes" 6855 eval "LIB_gethostbyname2=" 6856 cat >>confdefs.h <<EOF 6857#define $ac_tr_func 1 6858EOF 6859 6860 echo "$as_me:6860: result: yes" >&5 6861echo "${ECHO_T}yes" >&6 6862 ;; 6863 no) 6864 eval "ac_cv_func_gethostbyname2=no" 6865 eval "LIB_gethostbyname2=" 6866 echo "$as_me:6866: result: no" >&5 6867echo "${ECHO_T}no" >&6 6868 ;; 6869 *) 6870 eval "ac_cv_func_gethostbyname2=yes" 6871 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6872 cat >>confdefs.h <<EOF 6873#define $ac_tr_func 1 6874EOF 6875 6876 cat >>confdefs.h <<EOF 6877#define $ac_tr_lib 1 6878EOF 6879 6880 echo "$as_me:6880: result: yes, in $ac_res" >&5 6881echo "${ECHO_T}yes, in $ac_res" >&6 6882 ;; 6883esac 6884 6885if test -n "$LIB_gethostbyname2"; then 6886 LIBS="$LIB_gethostbyname2 $LIBS" 6887fi 6888 6889echo "$as_me:6889: checking for res_search" >&5 6890echo $ECHO_N "checking for res_search... $ECHO_C" >&6 6891if test "${ac_cv_funclib_res_search+set}" = set; then 6892 echo $ECHO_N "(cached) $ECHO_C" >&6 6893else 6894 6895if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 6896 ac_save_LIBS="$LIBS" 6897 for ac_lib in "" resolv; do 6898 case "$ac_lib" in 6899 "") ;; 6900 yes) ac_lib="" ;; 6901 no) continue ;; 6902 -l*) ;; 6903 *) ac_lib="-l$ac_lib" ;; 6904 esac 6905 LIBS=" $ac_lib $ac_save_LIBS" 6906 cat >conftest.$ac_ext <<_ACEOF 6907#line 6907 "configure" 6908#include "confdefs.h" 6909 6910#include <stdio.h> 6911#ifdef HAVE_SYS_TYPES_H 6912#include <sys/types.h> 6913#endif 6914#ifdef HAVE_NETINET_IN_H 6915#include <netinet/in.h> 6916#endif 6917#ifdef HAVE_ARPA_NAMESER_H 6918#include <arpa/nameser.h> 6919#endif 6920#ifdef HAVE_RESOLV_H 6921#include <resolv.h> 6922#endif 6923 6924int 6925main () 6926{ 6927res_search(0,0,0,0,0) 6928 ; 6929 return 0; 6930} 6931_ACEOF 6932rm -f conftest.$ac_objext conftest$ac_exeext 6933if { (eval echo "$as_me:6933: \"$ac_link\"") >&5 6934 (eval $ac_link) 2>&5 6935 ac_status=$? 6936 echo "$as_me:6936: \$? = $ac_status" >&5 6937 (exit $ac_status); } && 6938 { ac_try='test -s conftest$ac_exeext' 6939 { (eval echo "$as_me:6939: \"$ac_try\"") >&5 6940 (eval $ac_try) 2>&5 6941 ac_status=$? 6942 echo "$as_me:6942: \$? = $ac_status" >&5 6943 (exit $ac_status); }; }; then 6944 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 6945else 6946 echo "$as_me: failed program was:" >&5 6947cat conftest.$ac_ext >&5 6948fi 6949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6950 done 6951 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 6952 LIBS="$ac_save_LIBS" 6953fi 6954 6955fi 6956 6957eval "ac_res=\$ac_cv_funclib_res_search" 6958 6959if false; then 6960 6961for ac_func in res_search 6962do 6963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6964echo "$as_me:6964: checking for $ac_func" >&5 6965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6966if eval "test \"\${$as_ac_var+set}\" = set"; then 6967 echo $ECHO_N "(cached) $ECHO_C" >&6 6968else 6969 cat >conftest.$ac_ext <<_ACEOF 6970#line 6970 "configure" 6971#include "confdefs.h" 6972/* System header to define __stub macros and hopefully few prototypes, 6973 which can conflict with char $ac_func (); below. */ 6974#include <assert.h> 6975/* Override any gcc2 internal prototype to avoid an error. */ 6976#ifdef __cplusplus 6977extern "C" 6978#endif 6979/* We use char because int might match the return type of a gcc2 6980 builtin and then its argument prototype would still apply. */ 6981char $ac_func (); 6982char (*f) (); 6983 6984int 6985main () 6986{ 6987/* The GNU C library defines this for functions which it implements 6988 to always fail with ENOSYS. Some functions are actually named 6989 something starting with __ and the normal name is an alias. */ 6990#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6991choke me 6992#else 6993f = $ac_func; 6994#endif 6995 6996 ; 6997 return 0; 6998} 6999_ACEOF 7000rm -f conftest.$ac_objext conftest$ac_exeext 7001if { (eval echo "$as_me:7001: \"$ac_link\"") >&5 7002 (eval $ac_link) 2>&5 7003 ac_status=$? 7004 echo "$as_me:7004: \$? = $ac_status" >&5 7005 (exit $ac_status); } && 7006 { ac_try='test -s conftest$ac_exeext' 7007 { (eval echo "$as_me:7007: \"$ac_try\"") >&5 7008 (eval $ac_try) 2>&5 7009 ac_status=$? 7010 echo "$as_me:7010: \$? = $ac_status" >&5 7011 (exit $ac_status); }; }; then 7012 eval "$as_ac_var=yes" 7013else 7014 echo "$as_me: failed program was:" >&5 7015cat conftest.$ac_ext >&5 7016eval "$as_ac_var=no" 7017fi 7018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7019fi 7020echo "$as_me:7020: result: `eval echo '${'$as_ac_var'}'`" >&5 7021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7022if test `eval echo '${'$as_ac_var'}'` = yes; then 7023 cat >>confdefs.h <<EOF 7024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7025EOF 7026 7027fi 7028done 7029 7030fi 7031# res_search 7032eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7033eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7034eval "LIB_res_search=$ac_res" 7035 7036case "$ac_res" in 7037 yes) 7038 eval "ac_cv_func_res_search=yes" 7039 eval "LIB_res_search=" 7040 cat >>confdefs.h <<EOF 7041#define $ac_tr_func 1 7042EOF 7043 7044 echo "$as_me:7044: result: yes" >&5 7045echo "${ECHO_T}yes" >&6 7046 ;; 7047 no) 7048 eval "ac_cv_func_res_search=no" 7049 eval "LIB_res_search=" 7050 echo "$as_me:7050: result: no" >&5 7051echo "${ECHO_T}no" >&6 7052 ;; 7053 *) 7054 eval "ac_cv_func_res_search=yes" 7055 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7056 cat >>confdefs.h <<EOF 7057#define $ac_tr_func 1 7058EOF 7059 7060 cat >>confdefs.h <<EOF 7061#define $ac_tr_lib 1 7062EOF 7063 7064 echo "$as_me:7064: result: yes, in $ac_res" >&5 7065echo "${ECHO_T}yes, in $ac_res" >&6 7066 ;; 7067esac 7068 7069if test -n "$LIB_res_search"; then 7070 LIBS="$LIB_res_search $LIBS" 7071fi 7072 7073echo "$as_me:7073: checking for dn_expand" >&5 7074echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6 7075if test "${ac_cv_funclib_dn_expand+set}" = set; then 7076 echo $ECHO_N "(cached) $ECHO_C" >&6 7077else 7078 7079if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 7080 ac_save_LIBS="$LIBS" 7081 for ac_lib in "" resolv; do 7082 case "$ac_lib" in 7083 "") ;; 7084 yes) ac_lib="" ;; 7085 no) continue ;; 7086 -l*) ;; 7087 *) ac_lib="-l$ac_lib" ;; 7088 esac 7089 LIBS=" $ac_lib $ac_save_LIBS" 7090 cat >conftest.$ac_ext <<_ACEOF 7091#line 7091 "configure" 7092#include "confdefs.h" 7093 7094#include <stdio.h> 7095#ifdef HAVE_SYS_TYPES_H 7096#include <sys/types.h> 7097#endif 7098#ifdef HAVE_NETINET_IN_H 7099#include <netinet/in.h> 7100#endif 7101#ifdef HAVE_ARPA_NAMESER_H 7102#include <arpa/nameser.h> 7103#endif 7104#ifdef HAVE_RESOLV_H 7105#include <resolv.h> 7106#endif 7107 7108int 7109main () 7110{ 7111dn_expand(0,0,0,0,0) 7112 ; 7113 return 0; 7114} 7115_ACEOF 7116rm -f conftest.$ac_objext conftest$ac_exeext 7117if { (eval echo "$as_me:7117: \"$ac_link\"") >&5 7118 (eval $ac_link) 2>&5 7119 ac_status=$? 7120 echo "$as_me:7120: \$? = $ac_status" >&5 7121 (exit $ac_status); } && 7122 { ac_try='test -s conftest$ac_exeext' 7123 { (eval echo "$as_me:7123: \"$ac_try\"") >&5 7124 (eval $ac_try) 2>&5 7125 ac_status=$? 7126 echo "$as_me:7126: \$? = $ac_status" >&5 7127 (exit $ac_status); }; }; then 7128 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 7129else 7130 echo "$as_me: failed program was:" >&5 7131cat conftest.$ac_ext >&5 7132fi 7133rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7134 done 7135 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 7136 LIBS="$ac_save_LIBS" 7137fi 7138 7139fi 7140 7141eval "ac_res=\$ac_cv_funclib_dn_expand" 7142 7143if false; then 7144 7145for ac_func in dn_expand 7146do 7147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7148echo "$as_me:7148: checking for $ac_func" >&5 7149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7150if eval "test \"\${$as_ac_var+set}\" = set"; then 7151 echo $ECHO_N "(cached) $ECHO_C" >&6 7152else 7153 cat >conftest.$ac_ext <<_ACEOF 7154#line 7154 "configure" 7155#include "confdefs.h" 7156/* System header to define __stub macros and hopefully few prototypes, 7157 which can conflict with char $ac_func (); below. */ 7158#include <assert.h> 7159/* Override any gcc2 internal prototype to avoid an error. */ 7160#ifdef __cplusplus 7161extern "C" 7162#endif 7163/* We use char because int might match the return type of a gcc2 7164 builtin and then its argument prototype would still apply. */ 7165char $ac_func (); 7166char (*f) (); 7167 7168int 7169main () 7170{ 7171/* The GNU C library defines this for functions which it implements 7172 to always fail with ENOSYS. Some functions are actually named 7173 something starting with __ and the normal name is an alias. */ 7174#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7175choke me 7176#else 7177f = $ac_func; 7178#endif 7179 7180 ; 7181 return 0; 7182} 7183_ACEOF 7184rm -f conftest.$ac_objext conftest$ac_exeext 7185if { (eval echo "$as_me:7185: \"$ac_link\"") >&5 7186 (eval $ac_link) 2>&5 7187 ac_status=$? 7188 echo "$as_me:7188: \$? = $ac_status" >&5 7189 (exit $ac_status); } && 7190 { ac_try='test -s conftest$ac_exeext' 7191 { (eval echo "$as_me:7191: \"$ac_try\"") >&5 7192 (eval $ac_try) 2>&5 7193 ac_status=$? 7194 echo "$as_me:7194: \$? = $ac_status" >&5 7195 (exit $ac_status); }; }; then 7196 eval "$as_ac_var=yes" 7197else 7198 echo "$as_me: failed program was:" >&5 7199cat conftest.$ac_ext >&5 7200eval "$as_ac_var=no" 7201fi 7202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7203fi 7204echo "$as_me:7204: result: `eval echo '${'$as_ac_var'}'`" >&5 7205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7206if test `eval echo '${'$as_ac_var'}'` = yes; then 7207 cat >>confdefs.h <<EOF 7208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7209EOF 7210 7211fi 7212done 7213 7214fi 7215# dn_expand 7216eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7217eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7218eval "LIB_dn_expand=$ac_res" 7219 7220case "$ac_res" in 7221 yes) 7222 eval "ac_cv_func_dn_expand=yes" 7223 eval "LIB_dn_expand=" 7224 cat >>confdefs.h <<EOF 7225#define $ac_tr_func 1 7226EOF 7227 7228 echo "$as_me:7228: result: yes" >&5 7229echo "${ECHO_T}yes" >&6 7230 ;; 7231 no) 7232 eval "ac_cv_func_dn_expand=no" 7233 eval "LIB_dn_expand=" 7234 echo "$as_me:7234: result: no" >&5 7235echo "${ECHO_T}no" >&6 7236 ;; 7237 *) 7238 eval "ac_cv_func_dn_expand=yes" 7239 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7240 cat >>confdefs.h <<EOF 7241#define $ac_tr_func 1 7242EOF 7243 7244 cat >>confdefs.h <<EOF 7245#define $ac_tr_lib 1 7246EOF 7247 7248 echo "$as_me:7248: result: yes, in $ac_res" >&5 7249echo "${ECHO_T}yes, in $ac_res" >&6 7250 ;; 7251esac 7252 7253if test -n "$LIB_dn_expand"; then 7254 LIBS="$LIB_dn_expand $LIBS" 7255fi 7256 7257echo "$as_me:7257: checking for working snprintf" >&5 7258echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 7259if test "${ac_cv_func_snprintf_working+set}" = set; then 7260 echo $ECHO_N "(cached) $ECHO_C" >&6 7261else 7262 ac_cv_func_snprintf_working=yes 7263if test "$cross_compiling" = yes; then 7264 : 7265else 7266 cat >conftest.$ac_ext <<_ACEOF 7267#line 7267 "configure" 7268#include "confdefs.h" 7269 7270#include <stdio.h> 7271#include <string.h> 7272int main() 7273{ 7274 char foo[3]; 7275 snprintf(foo, 2, "12"); 7276 return strcmp(foo, "1"); 7277} 7278_ACEOF 7279rm -f conftest$ac_exeext 7280if { (eval echo "$as_me:7280: \"$ac_link\"") >&5 7281 (eval $ac_link) 2>&5 7282 ac_status=$? 7283 echo "$as_me:7283: \$? = $ac_status" >&5 7284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7285 { (eval echo "$as_me:7285: \"$ac_try\"") >&5 7286 (eval $ac_try) 2>&5 7287 ac_status=$? 7288 echo "$as_me:7288: \$? = $ac_status" >&5 7289 (exit $ac_status); }; }; then 7290 : 7291else 7292 echo "$as_me: program exited with status $ac_status" >&5 7293echo "$as_me: failed program was:" >&5 7294cat conftest.$ac_ext >&5 7295ac_cv_func_snprintf_working=no 7296fi 7297rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7298fi 7299fi 7300echo "$as_me:7300: result: $ac_cv_func_snprintf_working" >&5 7301echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6 7302 7303if test "$ac_cv_func_snprintf_working" = yes; then 7304 7305cat >>confdefs.h <<EOF 7306#define HAVE_SNPRINTF 1 7307EOF 7308 7309fi 7310if test "$ac_cv_func_snprintf_working" = yes; then 7311 7312if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 7313echo "$as_me:7313: checking if snprintf needs a prototype" >&5 7314echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6 7315if test "${ac_cv_func_snprintf_noproto+set}" = set; then 7316 echo $ECHO_N "(cached) $ECHO_C" >&6 7317else 7318 cat >conftest.$ac_ext <<_ACEOF 7319#line 7319 "configure" 7320#include "confdefs.h" 7321#include <stdio.h> 7322int 7323main () 7324{ 7325struct foo { int foo; } xx; 7326extern int snprintf (struct foo*); 7327snprintf(&xx); 7328 7329 ; 7330 return 0; 7331} 7332_ACEOF 7333rm -f conftest.$ac_objext 7334if { (eval echo "$as_me:7334: \"$ac_compile\"") >&5 7335 (eval $ac_compile) 2>&5 7336 ac_status=$? 7337 echo "$as_me:7337: \$? = $ac_status" >&5 7338 (exit $ac_status); } && 7339 { ac_try='test -s conftest.$ac_objext' 7340 { (eval echo "$as_me:7340: \"$ac_try\"") >&5 7341 (eval $ac_try) 2>&5 7342 ac_status=$? 7343 echo "$as_me:7343: \$? = $ac_status" >&5 7344 (exit $ac_status); }; }; then 7345 eval "ac_cv_func_snprintf_noproto=yes" 7346else 7347 echo "$as_me: failed program was:" >&5 7348cat conftest.$ac_ext >&5 7349eval "ac_cv_func_snprintf_noproto=no" 7350fi 7351rm -f conftest.$ac_objext conftest.$ac_ext 7352fi 7353echo "$as_me:7353: result: $ac_cv_func_snprintf_noproto" >&5 7354echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6 7355 7356if test "$ac_cv_func_snprintf_noproto" = yes; then 7357 7358cat >>confdefs.h <<\EOF 7359#define NEED_SNPRINTF_PROTO 1 7360EOF 7361 7362fi 7363 7364fi 7365 7366fi 7367 7368echo "$as_me:7368: checking for working vsnprintf" >&5 7369echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6 7370if test "${ac_cv_func_vsnprintf_working+set}" = set; then 7371 echo $ECHO_N "(cached) $ECHO_C" >&6 7372else 7373 ac_cv_func_vsnprintf_working=yes 7374if test "$cross_compiling" = yes; then 7375 : 7376else 7377 cat >conftest.$ac_ext <<_ACEOF 7378#line 7378 "configure" 7379#include "confdefs.h" 7380 7381#include <stdio.h> 7382#include <string.h> 7383#include <stdarg.h> 7384 7385int foo(int num, ...) 7386{ 7387 char bar[3]; 7388 va_list arg; 7389 va_start(arg, num); 7390 vsnprintf(bar, 2, "%s", arg); 7391 va_end(arg); 7392 return strcmp(bar, "1"); 7393} 7394 7395int main() 7396{ 7397 return foo(0, "12"); 7398} 7399_ACEOF 7400rm -f conftest$ac_exeext 7401if { (eval echo "$as_me:7401: \"$ac_link\"") >&5 7402 (eval $ac_link) 2>&5 7403 ac_status=$? 7404 echo "$as_me:7404: \$? = $ac_status" >&5 7405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7406 { (eval echo "$as_me:7406: \"$ac_try\"") >&5 7407 (eval $ac_try) 2>&5 7408 ac_status=$? 7409 echo "$as_me:7409: \$? = $ac_status" >&5 7410 (exit $ac_status); }; }; then 7411 : 7412else 7413 echo "$as_me: program exited with status $ac_status" >&5 7414echo "$as_me: failed program was:" >&5 7415cat conftest.$ac_ext >&5 7416ac_cv_func_vsnprintf_working=no 7417fi 7418rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7419fi 7420fi 7421echo "$as_me:7421: result: $ac_cv_func_vsnprintf_working" >&5 7422echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6 7423 7424if test "$ac_cv_func_vsnprintf_working" = yes; then 7425 7426cat >>confdefs.h <<EOF 7427#define HAVE_VSNPRINTF 1 7428EOF 7429 7430fi 7431if test "$ac_cv_func_vsnprintf_working" = yes; then 7432 7433if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 7434echo "$as_me:7434: checking if vsnprintf needs a prototype" >&5 7435echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6 7436if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 7437 echo $ECHO_N "(cached) $ECHO_C" >&6 7438else 7439 cat >conftest.$ac_ext <<_ACEOF 7440#line 7440 "configure" 7441#include "confdefs.h" 7442#include <stdio.h> 7443int 7444main () 7445{ 7446struct foo { int foo; } xx; 7447extern int vsnprintf (struct foo*); 7448vsnprintf(&xx); 7449 7450 ; 7451 return 0; 7452} 7453_ACEOF 7454rm -f conftest.$ac_objext 7455if { (eval echo "$as_me:7455: \"$ac_compile\"") >&5 7456 (eval $ac_compile) 2>&5 7457 ac_status=$? 7458 echo "$as_me:7458: \$? = $ac_status" >&5 7459 (exit $ac_status); } && 7460 { ac_try='test -s conftest.$ac_objext' 7461 { (eval echo "$as_me:7461: \"$ac_try\"") >&5 7462 (eval $ac_try) 2>&5 7463 ac_status=$? 7464 echo "$as_me:7464: \$? = $ac_status" >&5 7465 (exit $ac_status); }; }; then 7466 eval "ac_cv_func_vsnprintf_noproto=yes" 7467else 7468 echo "$as_me: failed program was:" >&5 7469cat conftest.$ac_ext >&5 7470eval "ac_cv_func_vsnprintf_noproto=no" 7471fi 7472rm -f conftest.$ac_objext conftest.$ac_ext 7473fi 7474echo "$as_me:7474: result: $ac_cv_func_vsnprintf_noproto" >&5 7475echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6 7476 7477if test "$ac_cv_func_vsnprintf_noproto" = yes; then 7478 7479cat >>confdefs.h <<\EOF 7480#define NEED_VSNPRINTF_PROTO 1 7481EOF 7482 7483fi 7484 7485fi 7486 7487fi 7488 7489echo "$as_me:7489: checking for working glob" >&5 7490echo $ECHO_N "checking for working glob... $ECHO_C" >&6 7491if test "${ac_cv_func_glob_working+set}" = set; then 7492 echo $ECHO_N "(cached) $ECHO_C" >&6 7493else 7494 ac_cv_func_glob_working=yes 7495cat >conftest.$ac_ext <<_ACEOF 7496#line 7496 "configure" 7497#include "confdefs.h" 7498 7499#include <stdio.h> 7500#include <glob.h> 7501int 7502main () 7503{ 7504 7505glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| 7506#ifdef GLOB_MAXPATH 7507GLOB_MAXPATH 7508#else 7509GLOB_LIMIT 7510#endif 7511, 7512NULL, NULL); 7513 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518rm -f conftest.$ac_objext conftest$ac_exeext 7519if { (eval echo "$as_me:7519: \"$ac_link\"") >&5 7520 (eval $ac_link) 2>&5 7521 ac_status=$? 7522 echo "$as_me:7522: \$? = $ac_status" >&5 7523 (exit $ac_status); } && 7524 { ac_try='test -s conftest$ac_exeext' 7525 { (eval echo "$as_me:7525: \"$ac_try\"") >&5 7526 (eval $ac_try) 2>&5 7527 ac_status=$? 7528 echo "$as_me:7528: \$? = $ac_status" >&5 7529 (exit $ac_status); }; }; then 7530 : 7531else 7532 echo "$as_me: failed program was:" >&5 7533cat conftest.$ac_ext >&5 7534ac_cv_func_glob_working=no 7535fi 7536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7537fi 7538echo "$as_me:7538: result: $ac_cv_func_glob_working" >&5 7539echo "${ECHO_T}$ac_cv_func_glob_working" >&6 7540 7541if test "$ac_cv_func_glob_working" = yes; then 7542 7543cat >>confdefs.h <<\EOF 7544#define HAVE_GLOB 1 7545EOF 7546 7547fi 7548if test "$ac_cv_func_glob_working" = yes; then 7549 7550if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 7551echo "$as_me:7551: checking if glob needs a prototype" >&5 7552echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6 7553if test "${ac_cv_func_glob_noproto+set}" = set; then 7554 echo $ECHO_N "(cached) $ECHO_C" >&6 7555else 7556 cat >conftest.$ac_ext <<_ACEOF 7557#line 7557 "configure" 7558#include "confdefs.h" 7559#include <stdio.h> 7560#include <glob.h> 7561int 7562main () 7563{ 7564struct foo { int foo; } xx; 7565extern int glob (struct foo*); 7566glob(&xx); 7567 7568 ; 7569 return 0; 7570} 7571_ACEOF 7572rm -f conftest.$ac_objext 7573if { (eval echo "$as_me:7573: \"$ac_compile\"") >&5 7574 (eval $ac_compile) 2>&5 7575 ac_status=$? 7576 echo "$as_me:7576: \$? = $ac_status" >&5 7577 (exit $ac_status); } && 7578 { ac_try='test -s conftest.$ac_objext' 7579 { (eval echo "$as_me:7579: \"$ac_try\"") >&5 7580 (eval $ac_try) 2>&5 7581 ac_status=$? 7582 echo "$as_me:7582: \$? = $ac_status" >&5 7583 (exit $ac_status); }; }; then 7584 eval "ac_cv_func_glob_noproto=yes" 7585else 7586 echo "$as_me: failed program was:" >&5 7587cat conftest.$ac_ext >&5 7588eval "ac_cv_func_glob_noproto=no" 7589fi 7590rm -f conftest.$ac_objext conftest.$ac_ext 7591fi 7592echo "$as_me:7592: result: $ac_cv_func_glob_noproto" >&5 7593echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6 7594 7595if test "$ac_cv_func_glob_noproto" = yes; then 7596 7597cat >>confdefs.h <<\EOF 7598#define NEED_GLOB_PROTO 1 7599EOF 7600 7601fi 7602 7603fi 7604 7605fi 7606 7607if test "$ac_cv_func_glob_working" != yes; then 7608 LIBOBJS="$LIBOBJS glob.o" 7609fi 7610 7611if test "$ac_cv_func_glob_working" = yes; then 7612 have_glob_h_TRUE= 7613 have_glob_h_FALSE='#' 7614else 7615 have_glob_h_TRUE='#' 7616 have_glob_h_FALSE= 7617fi 7618 7619for ac_func in \ 7620 asnprintf \ 7621 asprintf \ 7622 atexit \ 7623 cgetent \ 7624 getconfattr \ 7625 getprogname \ 7626 getrlimit \ 7627 getspnam \ 7628 initstate \ 7629 issetugid \ 7630 on_exit \ 7631 random \ 7632 setprogname \ 7633 setstate \ 7634 strsvis \ 7635 strunvis \ 7636 strvis \ 7637 strvisx \ 7638 svis \ 7639 sysconf \ 7640 sysctl \ 7641 uname \ 7642 unvis \ 7643 vasnprintf \ 7644 vasprintf \ 7645 vis \ 7646 7647do 7648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7649echo "$as_me:7649: checking for $ac_func" >&5 7650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7651if eval "test \"\${$as_ac_var+set}\" = set"; then 7652 echo $ECHO_N "(cached) $ECHO_C" >&6 7653else 7654 cat >conftest.$ac_ext <<_ACEOF 7655#line 7655 "configure" 7656#include "confdefs.h" 7657/* System header to define __stub macros and hopefully few prototypes, 7658 which can conflict with char $ac_func (); below. */ 7659#include <assert.h> 7660/* Override any gcc2 internal prototype to avoid an error. */ 7661#ifdef __cplusplus 7662extern "C" 7663#endif 7664/* We use char because int might match the return type of a gcc2 7665 builtin and then its argument prototype would still apply. */ 7666char $ac_func (); 7667char (*f) (); 7668 7669int 7670main () 7671{ 7672/* The GNU C library defines this for functions which it implements 7673 to always fail with ENOSYS. Some functions are actually named 7674 something starting with __ and the normal name is an alias. */ 7675#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7676choke me 7677#else 7678f = $ac_func; 7679#endif 7680 7681 ; 7682 return 0; 7683} 7684_ACEOF 7685rm -f conftest.$ac_objext conftest$ac_exeext 7686if { (eval echo "$as_me:7686: \"$ac_link\"") >&5 7687 (eval $ac_link) 2>&5 7688 ac_status=$? 7689 echo "$as_me:7689: \$? = $ac_status" >&5 7690 (exit $ac_status); } && 7691 { ac_try='test -s conftest$ac_exeext' 7692 { (eval echo "$as_me:7692: \"$ac_try\"") >&5 7693 (eval $ac_try) 2>&5 7694 ac_status=$? 7695 echo "$as_me:7695: \$? = $ac_status" >&5 7696 (exit $ac_status); }; }; then 7697 eval "$as_ac_var=yes" 7698else 7699 echo "$as_me: failed program was:" >&5 7700cat conftest.$ac_ext >&5 7701eval "$as_ac_var=no" 7702fi 7703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7704fi 7705echo "$as_me:7705: result: `eval echo '${'$as_ac_var'}'`" >&5 7706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7707if test `eval echo '${'$as_ac_var'}'` = yes; then 7708 cat >>confdefs.h <<EOF 7709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7710EOF 7711 7712fi 7713done 7714 7715if test "$ac_cv_func_cgetent" = no; then 7716 LIBOBJS="$LIBOBJS getcap.o" 7717fi 7718 7719echo "$as_me:7719: checking for getsockopt" >&5 7720echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6 7721if test "${ac_cv_funclib_getsockopt+set}" = set; then 7722 echo $ECHO_N "(cached) $ECHO_C" >&6 7723else 7724 7725if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 7726 ac_save_LIBS="$LIBS" 7727 for ac_lib in "" ; do 7728 case "$ac_lib" in 7729 "") ;; 7730 yes) ac_lib="" ;; 7731 no) continue ;; 7732 -l*) ;; 7733 *) ac_lib="-l$ac_lib" ;; 7734 esac 7735 LIBS=" $ac_lib $ac_save_LIBS" 7736 cat >conftest.$ac_ext <<_ACEOF 7737#line 7737 "configure" 7738#include "confdefs.h" 7739#ifdef HAVE_SYS_TYPES_H 7740#include <sys/types.h> 7741#endif 7742#ifdef HAVE_SYS_SOCKET_H 7743#include <sys/socket.h> 7744#endif 7745int 7746main () 7747{ 7748getsockopt(0,0,0,0,0) 7749 ; 7750 return 0; 7751} 7752_ACEOF 7753rm -f conftest.$ac_objext conftest$ac_exeext 7754if { (eval echo "$as_me:7754: \"$ac_link\"") >&5 7755 (eval $ac_link) 2>&5 7756 ac_status=$? 7757 echo "$as_me:7757: \$? = $ac_status" >&5 7758 (exit $ac_status); } && 7759 { ac_try='test -s conftest$ac_exeext' 7760 { (eval echo "$as_me:7760: \"$ac_try\"") >&5 7761 (eval $ac_try) 2>&5 7762 ac_status=$? 7763 echo "$as_me:7763: \$? = $ac_status" >&5 7764 (exit $ac_status); }; }; then 7765 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 7766else 7767 echo "$as_me: failed program was:" >&5 7768cat conftest.$ac_ext >&5 7769fi 7770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7771 done 7772 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 7773 LIBS="$ac_save_LIBS" 7774fi 7775 7776fi 7777 7778eval "ac_res=\$ac_cv_funclib_getsockopt" 7779 7780if false; then 7781 7782for ac_func in getsockopt 7783do 7784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7785echo "$as_me:7785: checking for $ac_func" >&5 7786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7787if eval "test \"\${$as_ac_var+set}\" = set"; then 7788 echo $ECHO_N "(cached) $ECHO_C" >&6 7789else 7790 cat >conftest.$ac_ext <<_ACEOF 7791#line 7791 "configure" 7792#include "confdefs.h" 7793/* System header to define __stub macros and hopefully few prototypes, 7794 which can conflict with char $ac_func (); below. */ 7795#include <assert.h> 7796/* Override any gcc2 internal prototype to avoid an error. */ 7797#ifdef __cplusplus 7798extern "C" 7799#endif 7800/* We use char because int might match the return type of a gcc2 7801 builtin and then its argument prototype would still apply. */ 7802char $ac_func (); 7803char (*f) (); 7804 7805int 7806main () 7807{ 7808/* The GNU C library defines this for functions which it implements 7809 to always fail with ENOSYS. Some functions are actually named 7810 something starting with __ and the normal name is an alias. */ 7811#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7812choke me 7813#else 7814f = $ac_func; 7815#endif 7816 7817 ; 7818 return 0; 7819} 7820_ACEOF 7821rm -f conftest.$ac_objext conftest$ac_exeext 7822if { (eval echo "$as_me:7822: \"$ac_link\"") >&5 7823 (eval $ac_link) 2>&5 7824 ac_status=$? 7825 echo "$as_me:7825: \$? = $ac_status" >&5 7826 (exit $ac_status); } && 7827 { ac_try='test -s conftest$ac_exeext' 7828 { (eval echo "$as_me:7828: \"$ac_try\"") >&5 7829 (eval $ac_try) 2>&5 7830 ac_status=$? 7831 echo "$as_me:7831: \$? = $ac_status" >&5 7832 (exit $ac_status); }; }; then 7833 eval "$as_ac_var=yes" 7834else 7835 echo "$as_me: failed program was:" >&5 7836cat conftest.$ac_ext >&5 7837eval "$as_ac_var=no" 7838fi 7839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7840fi 7841echo "$as_me:7841: result: `eval echo '${'$as_ac_var'}'`" >&5 7842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7843if test `eval echo '${'$as_ac_var'}'` = yes; then 7844 cat >>confdefs.h <<EOF 7845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7846EOF 7847 7848fi 7849done 7850 7851fi 7852# getsockopt 7853eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7854eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7855eval "LIB_getsockopt=$ac_res" 7856 7857case "$ac_res" in 7858 yes) 7859 eval "ac_cv_func_getsockopt=yes" 7860 eval "LIB_getsockopt=" 7861 cat >>confdefs.h <<EOF 7862#define $ac_tr_func 1 7863EOF 7864 7865 echo "$as_me:7865: result: yes" >&5 7866echo "${ECHO_T}yes" >&6 7867 ;; 7868 no) 7869 eval "ac_cv_func_getsockopt=no" 7870 eval "LIB_getsockopt=" 7871 echo "$as_me:7871: result: no" >&5 7872echo "${ECHO_T}no" >&6 7873 ;; 7874 *) 7875 eval "ac_cv_func_getsockopt=yes" 7876 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7877 cat >>confdefs.h <<EOF 7878#define $ac_tr_func 1 7879EOF 7880 7881 cat >>confdefs.h <<EOF 7882#define $ac_tr_lib 1 7883EOF 7884 7885 echo "$as_me:7885: result: yes, in $ac_res" >&5 7886echo "${ECHO_T}yes, in $ac_res" >&6 7887 ;; 7888esac 7889 7890echo "$as_me:7890: checking for setsockopt" >&5 7891echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 7892if test "${ac_cv_funclib_setsockopt+set}" = set; then 7893 echo $ECHO_N "(cached) $ECHO_C" >&6 7894else 7895 7896if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 7897 ac_save_LIBS="$LIBS" 7898 for ac_lib in "" ; do 7899 case "$ac_lib" in 7900 "") ;; 7901 yes) ac_lib="" ;; 7902 no) continue ;; 7903 -l*) ;; 7904 *) ac_lib="-l$ac_lib" ;; 7905 esac 7906 LIBS=" $ac_lib $ac_save_LIBS" 7907 cat >conftest.$ac_ext <<_ACEOF 7908#line 7908 "configure" 7909#include "confdefs.h" 7910#ifdef HAVE_SYS_TYPES_H 7911#include <sys/types.h> 7912#endif 7913#ifdef HAVE_SYS_SOCKET_H 7914#include <sys/socket.h> 7915#endif 7916int 7917main () 7918{ 7919setsockopt(0,0,0,0,0) 7920 ; 7921 return 0; 7922} 7923_ACEOF 7924rm -f conftest.$ac_objext conftest$ac_exeext 7925if { (eval echo "$as_me:7925: \"$ac_link\"") >&5 7926 (eval $ac_link) 2>&5 7927 ac_status=$? 7928 echo "$as_me:7928: \$? = $ac_status" >&5 7929 (exit $ac_status); } && 7930 { ac_try='test -s conftest$ac_exeext' 7931 { (eval echo "$as_me:7931: \"$ac_try\"") >&5 7932 (eval $ac_try) 2>&5 7933 ac_status=$? 7934 echo "$as_me:7934: \$? = $ac_status" >&5 7935 (exit $ac_status); }; }; then 7936 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 7937else 7938 echo "$as_me: failed program was:" >&5 7939cat conftest.$ac_ext >&5 7940fi 7941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7942 done 7943 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 7944 LIBS="$ac_save_LIBS" 7945fi 7946 7947fi 7948 7949eval "ac_res=\$ac_cv_funclib_setsockopt" 7950 7951if false; then 7952 7953for ac_func in setsockopt 7954do 7955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7956echo "$as_me:7956: checking for $ac_func" >&5 7957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7958if eval "test \"\${$as_ac_var+set}\" = set"; then 7959 echo $ECHO_N "(cached) $ECHO_C" >&6 7960else 7961 cat >conftest.$ac_ext <<_ACEOF 7962#line 7962 "configure" 7963#include "confdefs.h" 7964/* System header to define __stub macros and hopefully few prototypes, 7965 which can conflict with char $ac_func (); below. */ 7966#include <assert.h> 7967/* Override any gcc2 internal prototype to avoid an error. */ 7968#ifdef __cplusplus 7969extern "C" 7970#endif 7971/* We use char because int might match the return type of a gcc2 7972 builtin and then its argument prototype would still apply. */ 7973char $ac_func (); 7974char (*f) (); 7975 7976int 7977main () 7978{ 7979/* The GNU C library defines this for functions which it implements 7980 to always fail with ENOSYS. Some functions are actually named 7981 something starting with __ and the normal name is an alias. */ 7982#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7983choke me 7984#else 7985f = $ac_func; 7986#endif 7987 7988 ; 7989 return 0; 7990} 7991_ACEOF 7992rm -f conftest.$ac_objext conftest$ac_exeext 7993if { (eval echo "$as_me:7993: \"$ac_link\"") >&5 7994 (eval $ac_link) 2>&5 7995 ac_status=$? 7996 echo "$as_me:7996: \$? = $ac_status" >&5 7997 (exit $ac_status); } && 7998 { ac_try='test -s conftest$ac_exeext' 7999 { (eval echo "$as_me:7999: \"$ac_try\"") >&5 8000 (eval $ac_try) 2>&5 8001 ac_status=$? 8002 echo "$as_me:8002: \$? = $ac_status" >&5 8003 (exit $ac_status); }; }; then 8004 eval "$as_ac_var=yes" 8005else 8006 echo "$as_me: failed program was:" >&5 8007cat conftest.$ac_ext >&5 8008eval "$as_ac_var=no" 8009fi 8010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8011fi 8012echo "$as_me:8012: result: `eval echo '${'$as_ac_var'}'`" >&5 8013echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8014if test `eval echo '${'$as_ac_var'}'` = yes; then 8015 cat >>confdefs.h <<EOF 8016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8017EOF 8018 8019fi 8020done 8021 8022fi 8023# setsockopt 8024eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8025eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8026eval "LIB_setsockopt=$ac_res" 8027 8028case "$ac_res" in 8029 yes) 8030 eval "ac_cv_func_setsockopt=yes" 8031 eval "LIB_setsockopt=" 8032 cat >>confdefs.h <<EOF 8033#define $ac_tr_func 1 8034EOF 8035 8036 echo "$as_me:8036: result: yes" >&5 8037echo "${ECHO_T}yes" >&6 8038 ;; 8039 no) 8040 eval "ac_cv_func_setsockopt=no" 8041 eval "LIB_setsockopt=" 8042 echo "$as_me:8042: result: no" >&5 8043echo "${ECHO_T}no" >&6 8044 ;; 8045 *) 8046 eval "ac_cv_func_setsockopt=yes" 8047 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 8048 cat >>confdefs.h <<EOF 8049#define $ac_tr_func 1 8050EOF 8051 8052 cat >>confdefs.h <<EOF 8053#define $ac_tr_lib 1 8054EOF 8055 8056 echo "$as_me:8056: result: yes, in $ac_res" >&5 8057echo "${ECHO_T}yes, in $ac_res" >&6 8058 ;; 8059esac 8060 8061echo "$as_me:8061: checking for hstrerror" >&5 8062echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 8063if test "${ac_cv_funclib_hstrerror+set}" = set; then 8064 echo $ECHO_N "(cached) $ECHO_C" >&6 8065else 8066 8067if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 8068 ac_save_LIBS="$LIBS" 8069 for ac_lib in "" resolv; do 8070 case "$ac_lib" in 8071 "") ;; 8072 yes) ac_lib="" ;; 8073 no) continue ;; 8074 -l*) ;; 8075 *) ac_lib="-l$ac_lib" ;; 8076 esac 8077 LIBS=" $ac_lib $ac_save_LIBS" 8078 cat >conftest.$ac_ext <<_ACEOF 8079#line 8079 "configure" 8080#include "confdefs.h" 8081#ifdef HAVE_NETDB_H 8082#include <netdb.h> 8083#endif 8084int 8085main () 8086{ 8087hstrerror(17) 8088 ; 8089 return 0; 8090} 8091_ACEOF 8092rm -f conftest.$ac_objext conftest$ac_exeext 8093if { (eval echo "$as_me:8093: \"$ac_link\"") >&5 8094 (eval $ac_link) 2>&5 8095 ac_status=$? 8096 echo "$as_me:8096: \$? = $ac_status" >&5 8097 (exit $ac_status); } && 8098 { ac_try='test -s conftest$ac_exeext' 8099 { (eval echo "$as_me:8099: \"$ac_try\"") >&5 8100 (eval $ac_try) 2>&5 8101 ac_status=$? 8102 echo "$as_me:8102: \$? = $ac_status" >&5 8103 (exit $ac_status); }; }; then 8104 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 8105else 8106 echo "$as_me: failed program was:" >&5 8107cat conftest.$ac_ext >&5 8108fi 8109rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8110 done 8111 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 8112 LIBS="$ac_save_LIBS" 8113fi 8114 8115fi 8116 8117eval "ac_res=\$ac_cv_funclib_hstrerror" 8118 8119if false; then 8120 8121for ac_func in hstrerror 8122do 8123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8124echo "$as_me:8124: checking for $ac_func" >&5 8125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8126if eval "test \"\${$as_ac_var+set}\" = set"; then 8127 echo $ECHO_N "(cached) $ECHO_C" >&6 8128else 8129 cat >conftest.$ac_ext <<_ACEOF 8130#line 8130 "configure" 8131#include "confdefs.h" 8132/* System header to define __stub macros and hopefully few prototypes, 8133 which can conflict with char $ac_func (); below. */ 8134#include <assert.h> 8135/* Override any gcc2 internal prototype to avoid an error. */ 8136#ifdef __cplusplus 8137extern "C" 8138#endif 8139/* We use char because int might match the return type of a gcc2 8140 builtin and then its argument prototype would still apply. */ 8141char $ac_func (); 8142char (*f) (); 8143 8144int 8145main () 8146{ 8147/* The GNU C library defines this for functions which it implements 8148 to always fail with ENOSYS. Some functions are actually named 8149 something starting with __ and the normal name is an alias. */ 8150#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8151choke me 8152#else 8153f = $ac_func; 8154#endif 8155 8156 ; 8157 return 0; 8158} 8159_ACEOF 8160rm -f conftest.$ac_objext conftest$ac_exeext 8161if { (eval echo "$as_me:8161: \"$ac_link\"") >&5 8162 (eval $ac_link) 2>&5 8163 ac_status=$? 8164 echo "$as_me:8164: \$? = $ac_status" >&5 8165 (exit $ac_status); } && 8166 { ac_try='test -s conftest$ac_exeext' 8167 { (eval echo "$as_me:8167: \"$ac_try\"") >&5 8168 (eval $ac_try) 2>&5 8169 ac_status=$? 8170 echo "$as_me:8170: \$? = $ac_status" >&5 8171 (exit $ac_status); }; }; then 8172 eval "$as_ac_var=yes" 8173else 8174 echo "$as_me: failed program was:" >&5 8175cat conftest.$ac_ext >&5 8176eval "$as_ac_var=no" 8177fi 8178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8179fi 8180echo "$as_me:8180: result: `eval echo '${'$as_ac_var'}'`" >&5 8181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8182if test `eval echo '${'$as_ac_var'}'` = yes; then 8183 cat >>confdefs.h <<EOF 8184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8185EOF 8186 8187fi 8188done 8189 8190fi 8191# hstrerror 8192eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8193eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8194eval "LIB_hstrerror=$ac_res" 8195 8196case "$ac_res" in 8197 yes) 8198 eval "ac_cv_func_hstrerror=yes" 8199 eval "LIB_hstrerror=" 8200 cat >>confdefs.h <<EOF 8201#define $ac_tr_func 1 8202EOF 8203 8204 echo "$as_me:8204: result: yes" >&5 8205echo "${ECHO_T}yes" >&6 8206 ;; 8207 no) 8208 eval "ac_cv_func_hstrerror=no" 8209 eval "LIB_hstrerror=" 8210 echo "$as_me:8210: result: no" >&5 8211echo "${ECHO_T}no" >&6 8212 ;; 8213 *) 8214 eval "ac_cv_func_hstrerror=yes" 8215 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 8216 cat >>confdefs.h <<EOF 8217#define $ac_tr_func 1 8218EOF 8219 8220 cat >>confdefs.h <<EOF 8221#define $ac_tr_lib 1 8222EOF 8223 8224 echo "$as_me:8224: result: yes, in $ac_res" >&5 8225echo "${ECHO_T}yes, in $ac_res" >&6 8226 ;; 8227esac 8228 8229if test -n "$LIB_hstrerror"; then 8230 LIBS="$LIB_hstrerror $LIBS" 8231fi 8232 8233if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 8234LIBOBJS="$LIBOBJS hstrerror.o" 8235fi 8236 8237if test "$ac_cv_func_hstrerror" = yes; then 8238 8239if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 8240echo "$as_me:8240: checking if hstrerror needs a prototype" >&5 8241echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6 8242if test "${ac_cv_func_hstrerror_noproto+set}" = set; then 8243 echo $ECHO_N "(cached) $ECHO_C" >&6 8244else 8245 cat >conftest.$ac_ext <<_ACEOF 8246#line 8246 "configure" 8247#include "confdefs.h" 8248 8249#ifdef HAVE_NETDB_H 8250#include <netdb.h> 8251#endif 8252int 8253main () 8254{ 8255struct foo { int foo; } xx; 8256extern int hstrerror (struct foo*); 8257hstrerror(&xx); 8258 8259 ; 8260 return 0; 8261} 8262_ACEOF 8263rm -f conftest.$ac_objext 8264if { (eval echo "$as_me:8264: \"$ac_compile\"") >&5 8265 (eval $ac_compile) 2>&5 8266 ac_status=$? 8267 echo "$as_me:8267: \$? = $ac_status" >&5 8268 (exit $ac_status); } && 8269 { ac_try='test -s conftest.$ac_objext' 8270 { (eval echo "$as_me:8270: \"$ac_try\"") >&5 8271 (eval $ac_try) 2>&5 8272 ac_status=$? 8273 echo "$as_me:8273: \$? = $ac_status" >&5 8274 (exit $ac_status); }; }; then 8275 eval "ac_cv_func_hstrerror_noproto=yes" 8276else 8277 echo "$as_me: failed program was:" >&5 8278cat conftest.$ac_ext >&5 8279eval "ac_cv_func_hstrerror_noproto=no" 8280fi 8281rm -f conftest.$ac_objext conftest.$ac_ext 8282fi 8283echo "$as_me:8283: result: $ac_cv_func_hstrerror_noproto" >&5 8284echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6 8285 8286if test "$ac_cv_func_hstrerror_noproto" = yes; then 8287 8288cat >>confdefs.h <<\EOF 8289#define NEED_HSTRERROR_PROTO 1 8290EOF 8291 8292fi 8293 8294fi 8295 8296fi 8297 8298if test "$ac_cv_func_asprintf" = yes; then 8299 8300if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 8301echo "$as_me:8301: checking if asprintf needs a prototype" >&5 8302echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6 8303if test "${ac_cv_func_asprintf_noproto+set}" = set; then 8304 echo $ECHO_N "(cached) $ECHO_C" >&6 8305else 8306 cat >conftest.$ac_ext <<_ACEOF 8307#line 8307 "configure" 8308#include "confdefs.h" 8309 8310#include <stdio.h> 8311#include <string.h> 8312int 8313main () 8314{ 8315struct foo { int foo; } xx; 8316extern int asprintf (struct foo*); 8317asprintf(&xx); 8318 8319 ; 8320 return 0; 8321} 8322_ACEOF 8323rm -f conftest.$ac_objext 8324if { (eval echo "$as_me:8324: \"$ac_compile\"") >&5 8325 (eval $ac_compile) 2>&5 8326 ac_status=$? 8327 echo "$as_me:8327: \$? = $ac_status" >&5 8328 (exit $ac_status); } && 8329 { ac_try='test -s conftest.$ac_objext' 8330 { (eval echo "$as_me:8330: \"$ac_try\"") >&5 8331 (eval $ac_try) 2>&5 8332 ac_status=$? 8333 echo "$as_me:8333: \$? = $ac_status" >&5 8334 (exit $ac_status); }; }; then 8335 eval "ac_cv_func_asprintf_noproto=yes" 8336else 8337 echo "$as_me: failed program was:" >&5 8338cat conftest.$ac_ext >&5 8339eval "ac_cv_func_asprintf_noproto=no" 8340fi 8341rm -f conftest.$ac_objext conftest.$ac_ext 8342fi 8343echo "$as_me:8343: result: $ac_cv_func_asprintf_noproto" >&5 8344echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6 8345 8346if test "$ac_cv_func_asprintf_noproto" = yes; then 8347 8348cat >>confdefs.h <<\EOF 8349#define NEED_ASPRINTF_PROTO 1 8350EOF 8351 8352fi 8353 8354fi 8355fi 8356if test "$ac_cv_func_vasprintf" = yes; then 8357 8358if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 8359echo "$as_me:8359: checking if vasprintf needs a prototype" >&5 8360echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6 8361if test "${ac_cv_func_vasprintf_noproto+set}" = set; then 8362 echo $ECHO_N "(cached) $ECHO_C" >&6 8363else 8364 cat >conftest.$ac_ext <<_ACEOF 8365#line 8365 "configure" 8366#include "confdefs.h" 8367 8368#include <stdio.h> 8369#include <string.h> 8370int 8371main () 8372{ 8373struct foo { int foo; } xx; 8374extern int vasprintf (struct foo*); 8375vasprintf(&xx); 8376 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381rm -f conftest.$ac_objext 8382if { (eval echo "$as_me:8382: \"$ac_compile\"") >&5 8383 (eval $ac_compile) 2>&5 8384 ac_status=$? 8385 echo "$as_me:8385: \$? = $ac_status" >&5 8386 (exit $ac_status); } && 8387 { ac_try='test -s conftest.$ac_objext' 8388 { (eval echo "$as_me:8388: \"$ac_try\"") >&5 8389 (eval $ac_try) 2>&5 8390 ac_status=$? 8391 echo "$as_me:8391: \$? = $ac_status" >&5 8392 (exit $ac_status); }; }; then 8393 eval "ac_cv_func_vasprintf_noproto=yes" 8394else 8395 echo "$as_me: failed program was:" >&5 8396cat conftest.$ac_ext >&5 8397eval "ac_cv_func_vasprintf_noproto=no" 8398fi 8399rm -f conftest.$ac_objext conftest.$ac_ext 8400fi 8401echo "$as_me:8401: result: $ac_cv_func_vasprintf_noproto" >&5 8402echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6 8403 8404if test "$ac_cv_func_vasprintf_noproto" = yes; then 8405 8406cat >>confdefs.h <<\EOF 8407#define NEED_VASPRINTF_PROTO 1 8408EOF 8409 8410fi 8411 8412fi 8413fi 8414if test "$ac_cv_func_asnprintf" = yes; then 8415 8416if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 8417echo "$as_me:8417: checking if asnprintf needs a prototype" >&5 8418echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6 8419if test "${ac_cv_func_asnprintf_noproto+set}" = set; then 8420 echo $ECHO_N "(cached) $ECHO_C" >&6 8421else 8422 cat >conftest.$ac_ext <<_ACEOF 8423#line 8423 "configure" 8424#include "confdefs.h" 8425 8426#include <stdio.h> 8427#include <string.h> 8428int 8429main () 8430{ 8431struct foo { int foo; } xx; 8432extern int asnprintf (struct foo*); 8433asnprintf(&xx); 8434 8435 ; 8436 return 0; 8437} 8438_ACEOF 8439rm -f conftest.$ac_objext 8440if { (eval echo "$as_me:8440: \"$ac_compile\"") >&5 8441 (eval $ac_compile) 2>&5 8442 ac_status=$? 8443 echo "$as_me:8443: \$? = $ac_status" >&5 8444 (exit $ac_status); } && 8445 { ac_try='test -s conftest.$ac_objext' 8446 { (eval echo "$as_me:8446: \"$ac_try\"") >&5 8447 (eval $ac_try) 2>&5 8448 ac_status=$? 8449 echo "$as_me:8449: \$? = $ac_status" >&5 8450 (exit $ac_status); }; }; then 8451 eval "ac_cv_func_asnprintf_noproto=yes" 8452else 8453 echo "$as_me: failed program was:" >&5 8454cat conftest.$ac_ext >&5 8455eval "ac_cv_func_asnprintf_noproto=no" 8456fi 8457rm -f conftest.$ac_objext conftest.$ac_ext 8458fi 8459echo "$as_me:8459: result: $ac_cv_func_asnprintf_noproto" >&5 8460echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6 8461 8462if test "$ac_cv_func_asnprintf_noproto" = yes; then 8463 8464cat >>confdefs.h <<\EOF 8465#define NEED_ASNPRINTF_PROTO 1 8466EOF 8467 8468fi 8469 8470fi 8471fi 8472if test "$ac_cv_func_vasnprintf" = yes; then 8473 8474if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 8475echo "$as_me:8475: checking if vasnprintf needs a prototype" >&5 8476echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6 8477if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then 8478 echo $ECHO_N "(cached) $ECHO_C" >&6 8479else 8480 cat >conftest.$ac_ext <<_ACEOF 8481#line 8481 "configure" 8482#include "confdefs.h" 8483 8484#include <stdio.h> 8485#include <string.h> 8486int 8487main () 8488{ 8489struct foo { int foo; } xx; 8490extern int vasnprintf (struct foo*); 8491vasnprintf(&xx); 8492 8493 ; 8494 return 0; 8495} 8496_ACEOF 8497rm -f conftest.$ac_objext 8498if { (eval echo "$as_me:8498: \"$ac_compile\"") >&5 8499 (eval $ac_compile) 2>&5 8500 ac_status=$? 8501 echo "$as_me:8501: \$? = $ac_status" >&5 8502 (exit $ac_status); } && 8503 { ac_try='test -s conftest.$ac_objext' 8504 { (eval echo "$as_me:8504: \"$ac_try\"") >&5 8505 (eval $ac_try) 2>&5 8506 ac_status=$? 8507 echo "$as_me:8507: \$? = $ac_status" >&5 8508 (exit $ac_status); }; }; then 8509 eval "ac_cv_func_vasnprintf_noproto=yes" 8510else 8511 echo "$as_me: failed program was:" >&5 8512cat conftest.$ac_ext >&5 8513eval "ac_cv_func_vasnprintf_noproto=no" 8514fi 8515rm -f conftest.$ac_objext conftest.$ac_ext 8516fi 8517echo "$as_me:8517: result: $ac_cv_func_vasnprintf_noproto" >&5 8518echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6 8519 8520if test "$ac_cv_func_vasnprintf_noproto" = yes; then 8521 8522cat >>confdefs.h <<\EOF 8523#define NEED_VASNPRINTF_PROTO 1 8524EOF 8525 8526fi 8527 8528fi 8529fi 8530 8531echo "$as_me:8531: checking for bswap16" >&5 8532echo $ECHO_N "checking for bswap16... $ECHO_C" >&6 8533if test "${ac_cv_funclib_bswap16+set}" = set; then 8534 echo $ECHO_N "(cached) $ECHO_C" >&6 8535else 8536 8537if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 8538 ac_save_LIBS="$LIBS" 8539 for ac_lib in "" ; do 8540 case "$ac_lib" in 8541 "") ;; 8542 yes) ac_lib="" ;; 8543 no) continue ;; 8544 -l*) ;; 8545 *) ac_lib="-l$ac_lib" ;; 8546 esac 8547 LIBS=" $ac_lib $ac_save_LIBS" 8548 cat >conftest.$ac_ext <<_ACEOF 8549#line 8549 "configure" 8550#include "confdefs.h" 8551#ifdef HAVE_SYS_BSWAP_H 8552#include <sys/bswap.h> 8553#endif 8554int 8555main () 8556{ 8557bswap16(0) 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562rm -f conftest.$ac_objext conftest$ac_exeext 8563if { (eval echo "$as_me:8563: \"$ac_link\"") >&5 8564 (eval $ac_link) 2>&5 8565 ac_status=$? 8566 echo "$as_me:8566: \$? = $ac_status" >&5 8567 (exit $ac_status); } && 8568 { ac_try='test -s conftest$ac_exeext' 8569 { (eval echo "$as_me:8569: \"$ac_try\"") >&5 8570 (eval $ac_try) 2>&5 8571 ac_status=$? 8572 echo "$as_me:8572: \$? = $ac_status" >&5 8573 (exit $ac_status); }; }; then 8574 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 8575else 8576 echo "$as_me: failed program was:" >&5 8577cat conftest.$ac_ext >&5 8578fi 8579rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8580 done 8581 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 8582 LIBS="$ac_save_LIBS" 8583fi 8584 8585fi 8586 8587eval "ac_res=\$ac_cv_funclib_bswap16" 8588 8589if false; then 8590 8591for ac_func in bswap16 8592do 8593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8594echo "$as_me:8594: checking for $ac_func" >&5 8595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8596if eval "test \"\${$as_ac_var+set}\" = set"; then 8597 echo $ECHO_N "(cached) $ECHO_C" >&6 8598else 8599 cat >conftest.$ac_ext <<_ACEOF 8600#line 8600 "configure" 8601#include "confdefs.h" 8602/* System header to define __stub macros and hopefully few prototypes, 8603 which can conflict with char $ac_func (); below. */ 8604#include <assert.h> 8605/* Override any gcc2 internal prototype to avoid an error. */ 8606#ifdef __cplusplus 8607extern "C" 8608#endif 8609/* We use char because int might match the return type of a gcc2 8610 builtin and then its argument prototype would still apply. */ 8611char $ac_func (); 8612char (*f) (); 8613 8614int 8615main () 8616{ 8617/* The GNU C library defines this for functions which it implements 8618 to always fail with ENOSYS. Some functions are actually named 8619 something starting with __ and the normal name is an alias. */ 8620#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8621choke me 8622#else 8623f = $ac_func; 8624#endif 8625 8626 ; 8627 return 0; 8628} 8629_ACEOF 8630rm -f conftest.$ac_objext conftest$ac_exeext 8631if { (eval echo "$as_me:8631: \"$ac_link\"") >&5 8632 (eval $ac_link) 2>&5 8633 ac_status=$? 8634 echo "$as_me:8634: \$? = $ac_status" >&5 8635 (exit $ac_status); } && 8636 { ac_try='test -s conftest$ac_exeext' 8637 { (eval echo "$as_me:8637: \"$ac_try\"") >&5 8638 (eval $ac_try) 2>&5 8639 ac_status=$? 8640 echo "$as_me:8640: \$? = $ac_status" >&5 8641 (exit $ac_status); }; }; then 8642 eval "$as_ac_var=yes" 8643else 8644 echo "$as_me: failed program was:" >&5 8645cat conftest.$ac_ext >&5 8646eval "$as_ac_var=no" 8647fi 8648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8649fi 8650echo "$as_me:8650: result: `eval echo '${'$as_ac_var'}'`" >&5 8651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8652if test `eval echo '${'$as_ac_var'}'` = yes; then 8653 cat >>confdefs.h <<EOF 8654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8655EOF 8656 8657fi 8658done 8659 8660fi 8661# bswap16 8662eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8663eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8664eval "LIB_bswap16=$ac_res" 8665 8666case "$ac_res" in 8667 yes) 8668 eval "ac_cv_func_bswap16=yes" 8669 eval "LIB_bswap16=" 8670 cat >>confdefs.h <<EOF 8671#define $ac_tr_func 1 8672EOF 8673 8674 echo "$as_me:8674: result: yes" >&5 8675echo "${ECHO_T}yes" >&6 8676 ;; 8677 no) 8678 eval "ac_cv_func_bswap16=no" 8679 eval "LIB_bswap16=" 8680 echo "$as_me:8680: result: no" >&5 8681echo "${ECHO_T}no" >&6 8682 ;; 8683 *) 8684 eval "ac_cv_func_bswap16=yes" 8685 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 8686 cat >>confdefs.h <<EOF 8687#define $ac_tr_func 1 8688EOF 8689 8690 cat >>confdefs.h <<EOF 8691#define $ac_tr_lib 1 8692EOF 8693 8694 echo "$as_me:8694: result: yes, in $ac_res" >&5 8695echo "${ECHO_T}yes, in $ac_res" >&6 8696 ;; 8697esac 8698 8699echo "$as_me:8699: checking for bswap32" >&5 8700echo $ECHO_N "checking for bswap32... $ECHO_C" >&6 8701if test "${ac_cv_funclib_bswap32+set}" = set; then 8702 echo $ECHO_N "(cached) $ECHO_C" >&6 8703else 8704 8705if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 8706 ac_save_LIBS="$LIBS" 8707 for ac_lib in "" ; do 8708 case "$ac_lib" in 8709 "") ;; 8710 yes) ac_lib="" ;; 8711 no) continue ;; 8712 -l*) ;; 8713 *) ac_lib="-l$ac_lib" ;; 8714 esac 8715 LIBS=" $ac_lib $ac_save_LIBS" 8716 cat >conftest.$ac_ext <<_ACEOF 8717#line 8717 "configure" 8718#include "confdefs.h" 8719#ifdef HAVE_SYS_BSWAP_H 8720#include <sys/bswap.h> 8721#endif 8722int 8723main () 8724{ 8725bswap32(0) 8726 ; 8727 return 0; 8728} 8729_ACEOF 8730rm -f conftest.$ac_objext conftest$ac_exeext 8731if { (eval echo "$as_me:8731: \"$ac_link\"") >&5 8732 (eval $ac_link) 2>&5 8733 ac_status=$? 8734 echo "$as_me:8734: \$? = $ac_status" >&5 8735 (exit $ac_status); } && 8736 { ac_try='test -s conftest$ac_exeext' 8737 { (eval echo "$as_me:8737: \"$ac_try\"") >&5 8738 (eval $ac_try) 2>&5 8739 ac_status=$? 8740 echo "$as_me:8740: \$? = $ac_status" >&5 8741 (exit $ac_status); }; }; then 8742 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 8743else 8744 echo "$as_me: failed program was:" >&5 8745cat conftest.$ac_ext >&5 8746fi 8747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8748 done 8749 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 8750 LIBS="$ac_save_LIBS" 8751fi 8752 8753fi 8754 8755eval "ac_res=\$ac_cv_funclib_bswap32" 8756 8757if false; then 8758 8759for ac_func in bswap32 8760do 8761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8762echo "$as_me:8762: checking for $ac_func" >&5 8763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8764if eval "test \"\${$as_ac_var+set}\" = set"; then 8765 echo $ECHO_N "(cached) $ECHO_C" >&6 8766else 8767 cat >conftest.$ac_ext <<_ACEOF 8768#line 8768 "configure" 8769#include "confdefs.h" 8770/* System header to define __stub macros and hopefully few prototypes, 8771 which can conflict with char $ac_func (); below. */ 8772#include <assert.h> 8773/* Override any gcc2 internal prototype to avoid an error. */ 8774#ifdef __cplusplus 8775extern "C" 8776#endif 8777/* We use char because int might match the return type of a gcc2 8778 builtin and then its argument prototype would still apply. */ 8779char $ac_func (); 8780char (*f) (); 8781 8782int 8783main () 8784{ 8785/* The GNU C library defines this for functions which it implements 8786 to always fail with ENOSYS. Some functions are actually named 8787 something starting with __ and the normal name is an alias. */ 8788#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8789choke me 8790#else 8791f = $ac_func; 8792#endif 8793 8794 ; 8795 return 0; 8796} 8797_ACEOF 8798rm -f conftest.$ac_objext conftest$ac_exeext 8799if { (eval echo "$as_me:8799: \"$ac_link\"") >&5 8800 (eval $ac_link) 2>&5 8801 ac_status=$? 8802 echo "$as_me:8802: \$? = $ac_status" >&5 8803 (exit $ac_status); } && 8804 { ac_try='test -s conftest$ac_exeext' 8805 { (eval echo "$as_me:8805: \"$ac_try\"") >&5 8806 (eval $ac_try) 2>&5 8807 ac_status=$? 8808 echo "$as_me:8808: \$? = $ac_status" >&5 8809 (exit $ac_status); }; }; then 8810 eval "$as_ac_var=yes" 8811else 8812 echo "$as_me: failed program was:" >&5 8813cat conftest.$ac_ext >&5 8814eval "$as_ac_var=no" 8815fi 8816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8817fi 8818echo "$as_me:8818: result: `eval echo '${'$as_ac_var'}'`" >&5 8819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8820if test `eval echo '${'$as_ac_var'}'` = yes; then 8821 cat >>confdefs.h <<EOF 8822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8823EOF 8824 8825fi 8826done 8827 8828fi 8829# bswap32 8830eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8831eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8832eval "LIB_bswap32=$ac_res" 8833 8834case "$ac_res" in 8835 yes) 8836 eval "ac_cv_func_bswap32=yes" 8837 eval "LIB_bswap32=" 8838 cat >>confdefs.h <<EOF 8839#define $ac_tr_func 1 8840EOF 8841 8842 echo "$as_me:8842: result: yes" >&5 8843echo "${ECHO_T}yes" >&6 8844 ;; 8845 no) 8846 eval "ac_cv_func_bswap32=no" 8847 eval "LIB_bswap32=" 8848 echo "$as_me:8848: result: no" >&5 8849echo "${ECHO_T}no" >&6 8850 ;; 8851 *) 8852 eval "ac_cv_func_bswap32=yes" 8853 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 8854 cat >>confdefs.h <<EOF 8855#define $ac_tr_func 1 8856EOF 8857 8858 cat >>confdefs.h <<EOF 8859#define $ac_tr_lib 1 8860EOF 8861 8862 echo "$as_me:8862: result: yes, in $ac_res" >&5 8863echo "${ECHO_T}yes, in $ac_res" >&6 8864 ;; 8865esac 8866 8867echo "$as_me:8867: checking for pidfile" >&5 8868echo $ECHO_N "checking for pidfile... $ECHO_C" >&6 8869if test "${ac_cv_funclib_pidfile+set}" = set; then 8870 echo $ECHO_N "(cached) $ECHO_C" >&6 8871else 8872 8873if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 8874 ac_save_LIBS="$LIBS" 8875 for ac_lib in "" util; do 8876 case "$ac_lib" in 8877 "") ;; 8878 yes) ac_lib="" ;; 8879 no) continue ;; 8880 -l*) ;; 8881 *) ac_lib="-l$ac_lib" ;; 8882 esac 8883 LIBS=" $ac_lib $ac_save_LIBS" 8884 cat >conftest.$ac_ext <<_ACEOF 8885#line 8885 "configure" 8886#include "confdefs.h" 8887#ifdef HAVE_UTIL_H 8888#include <util.h> 8889#endif 8890int 8891main () 8892{ 8893pidfile(0) 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898rm -f conftest.$ac_objext conftest$ac_exeext 8899if { (eval echo "$as_me:8899: \"$ac_link\"") >&5 8900 (eval $ac_link) 2>&5 8901 ac_status=$? 8902 echo "$as_me:8902: \$? = $ac_status" >&5 8903 (exit $ac_status); } && 8904 { ac_try='test -s conftest$ac_exeext' 8905 { (eval echo "$as_me:8905: \"$ac_try\"") >&5 8906 (eval $ac_try) 2>&5 8907 ac_status=$? 8908 echo "$as_me:8908: \$? = $ac_status" >&5 8909 (exit $ac_status); }; }; then 8910 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 8911else 8912 echo "$as_me: failed program was:" >&5 8913cat conftest.$ac_ext >&5 8914fi 8915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8916 done 8917 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 8918 LIBS="$ac_save_LIBS" 8919fi 8920 8921fi 8922 8923eval "ac_res=\$ac_cv_funclib_pidfile" 8924 8925if false; then 8926 8927for ac_func in pidfile 8928do 8929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8930echo "$as_me:8930: checking for $ac_func" >&5 8931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8932if eval "test \"\${$as_ac_var+set}\" = set"; then 8933 echo $ECHO_N "(cached) $ECHO_C" >&6 8934else 8935 cat >conftest.$ac_ext <<_ACEOF 8936#line 8936 "configure" 8937#include "confdefs.h" 8938/* System header to define __stub macros and hopefully few prototypes, 8939 which can conflict with char $ac_func (); below. */ 8940#include <assert.h> 8941/* Override any gcc2 internal prototype to avoid an error. */ 8942#ifdef __cplusplus 8943extern "C" 8944#endif 8945/* We use char because int might match the return type of a gcc2 8946 builtin and then its argument prototype would still apply. */ 8947char $ac_func (); 8948char (*f) (); 8949 8950int 8951main () 8952{ 8953/* The GNU C library defines this for functions which it implements 8954 to always fail with ENOSYS. Some functions are actually named 8955 something starting with __ and the normal name is an alias. */ 8956#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8957choke me 8958#else 8959f = $ac_func; 8960#endif 8961 8962 ; 8963 return 0; 8964} 8965_ACEOF 8966rm -f conftest.$ac_objext conftest$ac_exeext 8967if { (eval echo "$as_me:8967: \"$ac_link\"") >&5 8968 (eval $ac_link) 2>&5 8969 ac_status=$? 8970 echo "$as_me:8970: \$? = $ac_status" >&5 8971 (exit $ac_status); } && 8972 { ac_try='test -s conftest$ac_exeext' 8973 { (eval echo "$as_me:8973: \"$ac_try\"") >&5 8974 (eval $ac_try) 2>&5 8975 ac_status=$? 8976 echo "$as_me:8976: \$? = $ac_status" >&5 8977 (exit $ac_status); }; }; then 8978 eval "$as_ac_var=yes" 8979else 8980 echo "$as_me: failed program was:" >&5 8981cat conftest.$ac_ext >&5 8982eval "$as_ac_var=no" 8983fi 8984rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8985fi 8986echo "$as_me:8986: result: `eval echo '${'$as_ac_var'}'`" >&5 8987echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8988if test `eval echo '${'$as_ac_var'}'` = yes; then 8989 cat >>confdefs.h <<EOF 8990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8991EOF 8992 8993fi 8994done 8995 8996fi 8997# pidfile 8998eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8999eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9000eval "LIB_pidfile=$ac_res" 9001 9002case "$ac_res" in 9003 yes) 9004 eval "ac_cv_func_pidfile=yes" 9005 eval "LIB_pidfile=" 9006 cat >>confdefs.h <<EOF 9007#define $ac_tr_func 1 9008EOF 9009 9010 echo "$as_me:9010: result: yes" >&5 9011echo "${ECHO_T}yes" >&6 9012 ;; 9013 no) 9014 eval "ac_cv_func_pidfile=no" 9015 eval "LIB_pidfile=" 9016 echo "$as_me:9016: result: no" >&5 9017echo "${ECHO_T}no" >&6 9018 ;; 9019 *) 9020 eval "ac_cv_func_pidfile=yes" 9021 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9022 cat >>confdefs.h <<EOF 9023#define $ac_tr_func 1 9024EOF 9025 9026 cat >>confdefs.h <<EOF 9027#define $ac_tr_lib 1 9028EOF 9029 9030 echo "$as_me:9030: result: yes, in $ac_res" >&5 9031echo "${ECHO_T}yes, in $ac_res" >&6 9032 ;; 9033esac 9034 9035echo "$as_me:9035: checking for getaddrinfo" >&5 9036echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 9037if test "${ac_cv_funclib_getaddrinfo+set}" = set; then 9038 echo $ECHO_N "(cached) $ECHO_C" >&6 9039else 9040 9041if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then 9042 ac_save_LIBS="$LIBS" 9043 for ac_lib in "" ; do 9044 case "$ac_lib" in 9045 "") ;; 9046 yes) ac_lib="" ;; 9047 no) continue ;; 9048 -l*) ;; 9049 *) ac_lib="-l$ac_lib" ;; 9050 esac 9051 LIBS=" $ac_lib $ac_save_LIBS" 9052 cat >conftest.$ac_ext <<_ACEOF 9053#line 9053 "configure" 9054#include "confdefs.h" 9055#ifdef HAVE_NETDB_H 9056#include <netdb.h> 9057#endif 9058int 9059main () 9060{ 9061getaddrinfo(0,0,0,0) 9062 ; 9063 return 0; 9064} 9065_ACEOF 9066rm -f conftest.$ac_objext conftest$ac_exeext 9067if { (eval echo "$as_me:9067: \"$ac_link\"") >&5 9068 (eval $ac_link) 2>&5 9069 ac_status=$? 9070 echo "$as_me:9070: \$? = $ac_status" >&5 9071 (exit $ac_status); } && 9072 { ac_try='test -s conftest$ac_exeext' 9073 { (eval echo "$as_me:9073: \"$ac_try\"") >&5 9074 (eval $ac_try) 2>&5 9075 ac_status=$? 9076 echo "$as_me:9076: \$? = $ac_status" >&5 9077 (exit $ac_status); }; }; then 9078 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break 9079else 9080 echo "$as_me: failed program was:" >&5 9081cat conftest.$ac_ext >&5 9082fi 9083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9084 done 9085 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}" 9086 LIBS="$ac_save_LIBS" 9087fi 9088 9089fi 9090 9091eval "ac_res=\$ac_cv_funclib_getaddrinfo" 9092 9093if false; then 9094 9095for ac_func in getaddrinfo 9096do 9097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9098echo "$as_me:9098: checking for $ac_func" >&5 9099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9100if eval "test \"\${$as_ac_var+set}\" = set"; then 9101 echo $ECHO_N "(cached) $ECHO_C" >&6 9102else 9103 cat >conftest.$ac_ext <<_ACEOF 9104#line 9104 "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#ifdef __cplusplus 9111extern "C" 9112#endif 9113/* We use char because int might match the return type of a gcc2 9114 builtin and then its argument prototype would still apply. */ 9115char $ac_func (); 9116char (*f) (); 9117 9118int 9119main () 9120{ 9121/* The GNU C library defines this for functions which it implements 9122 to always fail with ENOSYS. Some functions are actually named 9123 something starting with __ and the normal name is an alias. */ 9124#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9125choke me 9126#else 9127f = $ac_func; 9128#endif 9129 9130 ; 9131 return 0; 9132} 9133_ACEOF 9134rm -f conftest.$ac_objext conftest$ac_exeext 9135if { (eval echo "$as_me:9135: \"$ac_link\"") >&5 9136 (eval $ac_link) 2>&5 9137 ac_status=$? 9138 echo "$as_me:9138: \$? = $ac_status" >&5 9139 (exit $ac_status); } && 9140 { ac_try='test -s conftest$ac_exeext' 9141 { (eval echo "$as_me:9141: \"$ac_try\"") >&5 9142 (eval $ac_try) 2>&5 9143 ac_status=$? 9144 echo "$as_me:9144: \$? = $ac_status" >&5 9145 (exit $ac_status); }; }; then 9146 eval "$as_ac_var=yes" 9147else 9148 echo "$as_me: failed program was:" >&5 9149cat conftest.$ac_ext >&5 9150eval "$as_ac_var=no" 9151fi 9152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9153fi 9154echo "$as_me:9154: result: `eval echo '${'$as_ac_var'}'`" >&5 9155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9156if test `eval echo '${'$as_ac_var'}'` = yes; then 9157 cat >>confdefs.h <<EOF 9158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9159EOF 9160 9161fi 9162done 9163 9164fi 9165# getaddrinfo 9166eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9167eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9168eval "LIB_getaddrinfo=$ac_res" 9169 9170case "$ac_res" in 9171 yes) 9172 eval "ac_cv_func_getaddrinfo=yes" 9173 eval "LIB_getaddrinfo=" 9174 cat >>confdefs.h <<EOF 9175#define $ac_tr_func 1 9176EOF 9177 9178 echo "$as_me:9178: result: yes" >&5 9179echo "${ECHO_T}yes" >&6 9180 ;; 9181 no) 9182 eval "ac_cv_func_getaddrinfo=no" 9183 eval "LIB_getaddrinfo=" 9184 echo "$as_me:9184: result: no" >&5 9185echo "${ECHO_T}no" >&6 9186 ;; 9187 *) 9188 eval "ac_cv_func_getaddrinfo=yes" 9189 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9190 cat >>confdefs.h <<EOF 9191#define $ac_tr_func 1 9192EOF 9193 9194 cat >>confdefs.h <<EOF 9195#define $ac_tr_lib 1 9196EOF 9197 9198 echo "$as_me:9198: result: yes, in $ac_res" >&5 9199echo "${ECHO_T}yes, in $ac_res" >&6 9200 ;; 9201esac 9202 9203if test -n "$LIB_getaddrinfo"; then 9204 LIBS="$LIB_getaddrinfo $LIBS" 9205fi 9206 9207if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then 9208LIBOBJS="$LIBOBJS getaddrinfo.o" 9209fi 9210 9211echo "$as_me:9211: checking for getnameinfo" >&5 9212echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6 9213if test "${ac_cv_funclib_getnameinfo+set}" = set; then 9214 echo $ECHO_N "(cached) $ECHO_C" >&6 9215else 9216 9217if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then 9218 ac_save_LIBS="$LIBS" 9219 for ac_lib in "" ; do 9220 case "$ac_lib" in 9221 "") ;; 9222 yes) ac_lib="" ;; 9223 no) continue ;; 9224 -l*) ;; 9225 *) ac_lib="-l$ac_lib" ;; 9226 esac 9227 LIBS=" $ac_lib $ac_save_LIBS" 9228 cat >conftest.$ac_ext <<_ACEOF 9229#line 9229 "configure" 9230#include "confdefs.h" 9231#ifdef HAVE_NETDB_H 9232#include <netdb.h> 9233#endif 9234int 9235main () 9236{ 9237getnameinfo(0,0,0,0,0,0,0) 9238 ; 9239 return 0; 9240} 9241_ACEOF 9242rm -f conftest.$ac_objext conftest$ac_exeext 9243if { (eval echo "$as_me:9243: \"$ac_link\"") >&5 9244 (eval $ac_link) 2>&5 9245 ac_status=$? 9246 echo "$as_me:9246: \$? = $ac_status" >&5 9247 (exit $ac_status); } && 9248 { ac_try='test -s conftest$ac_exeext' 9249 { (eval echo "$as_me:9249: \"$ac_try\"") >&5 9250 (eval $ac_try) 2>&5 9251 ac_status=$? 9252 echo "$as_me:9252: \$? = $ac_status" >&5 9253 (exit $ac_status); }; }; then 9254 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break 9255else 9256 echo "$as_me: failed program was:" >&5 9257cat conftest.$ac_ext >&5 9258fi 9259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9260 done 9261 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}" 9262 LIBS="$ac_save_LIBS" 9263fi 9264 9265fi 9266 9267eval "ac_res=\$ac_cv_funclib_getnameinfo" 9268 9269if false; then 9270 9271for ac_func in getnameinfo 9272do 9273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9274echo "$as_me:9274: checking for $ac_func" >&5 9275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9276if eval "test \"\${$as_ac_var+set}\" = set"; then 9277 echo $ECHO_N "(cached) $ECHO_C" >&6 9278else 9279 cat >conftest.$ac_ext <<_ACEOF 9280#line 9280 "configure" 9281#include "confdefs.h" 9282/* System header to define __stub macros and hopefully few prototypes, 9283 which can conflict with char $ac_func (); below. */ 9284#include <assert.h> 9285/* Override any gcc2 internal prototype to avoid an error. */ 9286#ifdef __cplusplus 9287extern "C" 9288#endif 9289/* We use char because int might match the return type of a gcc2 9290 builtin and then its argument prototype would still apply. */ 9291char $ac_func (); 9292char (*f) (); 9293 9294int 9295main () 9296{ 9297/* The GNU C library defines this for functions which it implements 9298 to always fail with ENOSYS. Some functions are actually named 9299 something starting with __ and the normal name is an alias. */ 9300#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9301choke me 9302#else 9303f = $ac_func; 9304#endif 9305 9306 ; 9307 return 0; 9308} 9309_ACEOF 9310rm -f conftest.$ac_objext conftest$ac_exeext 9311if { (eval echo "$as_me:9311: \"$ac_link\"") >&5 9312 (eval $ac_link) 2>&5 9313 ac_status=$? 9314 echo "$as_me:9314: \$? = $ac_status" >&5 9315 (exit $ac_status); } && 9316 { ac_try='test -s conftest$ac_exeext' 9317 { (eval echo "$as_me:9317: \"$ac_try\"") >&5 9318 (eval $ac_try) 2>&5 9319 ac_status=$? 9320 echo "$as_me:9320: \$? = $ac_status" >&5 9321 (exit $ac_status); }; }; then 9322 eval "$as_ac_var=yes" 9323else 9324 echo "$as_me: failed program was:" >&5 9325cat conftest.$ac_ext >&5 9326eval "$as_ac_var=no" 9327fi 9328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9329fi 9330echo "$as_me:9330: result: `eval echo '${'$as_ac_var'}'`" >&5 9331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9332if test `eval echo '${'$as_ac_var'}'` = yes; then 9333 cat >>confdefs.h <<EOF 9334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9335EOF 9336 9337fi 9338done 9339 9340fi 9341# getnameinfo 9342eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9343eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9344eval "LIB_getnameinfo=$ac_res" 9345 9346case "$ac_res" in 9347 yes) 9348 eval "ac_cv_func_getnameinfo=yes" 9349 eval "LIB_getnameinfo=" 9350 cat >>confdefs.h <<EOF 9351#define $ac_tr_func 1 9352EOF 9353 9354 echo "$as_me:9354: result: yes" >&5 9355echo "${ECHO_T}yes" >&6 9356 ;; 9357 no) 9358 eval "ac_cv_func_getnameinfo=no" 9359 eval "LIB_getnameinfo=" 9360 echo "$as_me:9360: result: no" >&5 9361echo "${ECHO_T}no" >&6 9362 ;; 9363 *) 9364 eval "ac_cv_func_getnameinfo=yes" 9365 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9366 cat >>confdefs.h <<EOF 9367#define $ac_tr_func 1 9368EOF 9369 9370 cat >>confdefs.h <<EOF 9371#define $ac_tr_lib 1 9372EOF 9373 9374 echo "$as_me:9374: result: yes, in $ac_res" >&5 9375echo "${ECHO_T}yes, in $ac_res" >&6 9376 ;; 9377esac 9378 9379if test -n "$LIB_getnameinfo"; then 9380 LIBS="$LIB_getnameinfo $LIBS" 9381fi 9382 9383if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then 9384LIBOBJS="$LIBOBJS getnameinfo.o" 9385fi 9386 9387echo "$as_me:9387: checking for freeaddrinfo" >&5 9388echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6 9389if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then 9390 echo $ECHO_N "(cached) $ECHO_C" >&6 9391else 9392 9393if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then 9394 ac_save_LIBS="$LIBS" 9395 for ac_lib in "" ; do 9396 case "$ac_lib" in 9397 "") ;; 9398 yes) ac_lib="" ;; 9399 no) continue ;; 9400 -l*) ;; 9401 *) ac_lib="-l$ac_lib" ;; 9402 esac 9403 LIBS=" $ac_lib $ac_save_LIBS" 9404 cat >conftest.$ac_ext <<_ACEOF 9405#line 9405 "configure" 9406#include "confdefs.h" 9407#ifdef HAVE_NETDB_H 9408#include <netdb.h> 9409#endif 9410int 9411main () 9412{ 9413freeaddrinfo(0) 9414 ; 9415 return 0; 9416} 9417_ACEOF 9418rm -f conftest.$ac_objext conftest$ac_exeext 9419if { (eval echo "$as_me:9419: \"$ac_link\"") >&5 9420 (eval $ac_link) 2>&5 9421 ac_status=$? 9422 echo "$as_me:9422: \$? = $ac_status" >&5 9423 (exit $ac_status); } && 9424 { ac_try='test -s conftest$ac_exeext' 9425 { (eval echo "$as_me:9425: \"$ac_try\"") >&5 9426 (eval $ac_try) 2>&5 9427 ac_status=$? 9428 echo "$as_me:9428: \$? = $ac_status" >&5 9429 (exit $ac_status); }; }; then 9430 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break 9431else 9432 echo "$as_me: failed program was:" >&5 9433cat conftest.$ac_ext >&5 9434fi 9435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9436 done 9437 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}" 9438 LIBS="$ac_save_LIBS" 9439fi 9440 9441fi 9442 9443eval "ac_res=\$ac_cv_funclib_freeaddrinfo" 9444 9445if false; then 9446 9447for ac_func in freeaddrinfo 9448do 9449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9450echo "$as_me:9450: checking for $ac_func" >&5 9451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9452if eval "test \"\${$as_ac_var+set}\" = set"; then 9453 echo $ECHO_N "(cached) $ECHO_C" >&6 9454else 9455 cat >conftest.$ac_ext <<_ACEOF 9456#line 9456 "configure" 9457#include "confdefs.h" 9458/* System header to define __stub macros and hopefully few prototypes, 9459 which can conflict with char $ac_func (); below. */ 9460#include <assert.h> 9461/* Override any gcc2 internal prototype to avoid an error. */ 9462#ifdef __cplusplus 9463extern "C" 9464#endif 9465/* We use char because int might match the return type of a gcc2 9466 builtin and then its argument prototype would still apply. */ 9467char $ac_func (); 9468char (*f) (); 9469 9470int 9471main () 9472{ 9473/* The GNU C library defines this for functions which it implements 9474 to always fail with ENOSYS. Some functions are actually named 9475 something starting with __ and the normal name is an alias. */ 9476#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9477choke me 9478#else 9479f = $ac_func; 9480#endif 9481 9482 ; 9483 return 0; 9484} 9485_ACEOF 9486rm -f conftest.$ac_objext conftest$ac_exeext 9487if { (eval echo "$as_me:9487: \"$ac_link\"") >&5 9488 (eval $ac_link) 2>&5 9489 ac_status=$? 9490 echo "$as_me:9490: \$? = $ac_status" >&5 9491 (exit $ac_status); } && 9492 { ac_try='test -s conftest$ac_exeext' 9493 { (eval echo "$as_me:9493: \"$ac_try\"") >&5 9494 (eval $ac_try) 2>&5 9495 ac_status=$? 9496 echo "$as_me:9496: \$? = $ac_status" >&5 9497 (exit $ac_status); }; }; then 9498 eval "$as_ac_var=yes" 9499else 9500 echo "$as_me: failed program was:" >&5 9501cat conftest.$ac_ext >&5 9502eval "$as_ac_var=no" 9503fi 9504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9505fi 9506echo "$as_me:9506: result: `eval echo '${'$as_ac_var'}'`" >&5 9507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9508if test `eval echo '${'$as_ac_var'}'` = yes; then 9509 cat >>confdefs.h <<EOF 9510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9511EOF 9512 9513fi 9514done 9515 9516fi 9517# freeaddrinfo 9518eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9519eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9520eval "LIB_freeaddrinfo=$ac_res" 9521 9522case "$ac_res" in 9523 yes) 9524 eval "ac_cv_func_freeaddrinfo=yes" 9525 eval "LIB_freeaddrinfo=" 9526 cat >>confdefs.h <<EOF 9527#define $ac_tr_func 1 9528EOF 9529 9530 echo "$as_me:9530: result: yes" >&5 9531echo "${ECHO_T}yes" >&6 9532 ;; 9533 no) 9534 eval "ac_cv_func_freeaddrinfo=no" 9535 eval "LIB_freeaddrinfo=" 9536 echo "$as_me:9536: result: no" >&5 9537echo "${ECHO_T}no" >&6 9538 ;; 9539 *) 9540 eval "ac_cv_func_freeaddrinfo=yes" 9541 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9542 cat >>confdefs.h <<EOF 9543#define $ac_tr_func 1 9544EOF 9545 9546 cat >>confdefs.h <<EOF 9547#define $ac_tr_lib 1 9548EOF 9549 9550 echo "$as_me:9550: result: yes, in $ac_res" >&5 9551echo "${ECHO_T}yes, in $ac_res" >&6 9552 ;; 9553esac 9554 9555if test -n "$LIB_freeaddrinfo"; then 9556 LIBS="$LIB_freeaddrinfo $LIBS" 9557fi 9558 9559if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then 9560LIBOBJS="$LIBOBJS freeaddrinfo.o" 9561fi 9562 9563echo "$as_me:9563: checking for gai_strerror" >&5 9564echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6 9565if test "${ac_cv_funclib_gai_strerror+set}" = set; then 9566 echo $ECHO_N "(cached) $ECHO_C" >&6 9567else 9568 9569if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then 9570 ac_save_LIBS="$LIBS" 9571 for ac_lib in "" ; do 9572 case "$ac_lib" in 9573 "") ;; 9574 yes) ac_lib="" ;; 9575 no) continue ;; 9576 -l*) ;; 9577 *) ac_lib="-l$ac_lib" ;; 9578 esac 9579 LIBS=" $ac_lib $ac_save_LIBS" 9580 cat >conftest.$ac_ext <<_ACEOF 9581#line 9581 "configure" 9582#include "confdefs.h" 9583#ifdef HAVE_NETDB_H 9584#include <netdb.h> 9585#endif 9586int 9587main () 9588{ 9589gai_strerror(0) 9590 ; 9591 return 0; 9592} 9593_ACEOF 9594rm -f conftest.$ac_objext conftest$ac_exeext 9595if { (eval echo "$as_me:9595: \"$ac_link\"") >&5 9596 (eval $ac_link) 2>&5 9597 ac_status=$? 9598 echo "$as_me:9598: \$? = $ac_status" >&5 9599 (exit $ac_status); } && 9600 { ac_try='test -s conftest$ac_exeext' 9601 { (eval echo "$as_me:9601: \"$ac_try\"") >&5 9602 (eval $ac_try) 2>&5 9603 ac_status=$? 9604 echo "$as_me:9604: \$? = $ac_status" >&5 9605 (exit $ac_status); }; }; then 9606 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break 9607else 9608 echo "$as_me: failed program was:" >&5 9609cat conftest.$ac_ext >&5 9610fi 9611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9612 done 9613 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}" 9614 LIBS="$ac_save_LIBS" 9615fi 9616 9617fi 9618 9619eval "ac_res=\$ac_cv_funclib_gai_strerror" 9620 9621if false; then 9622 9623for ac_func in gai_strerror 9624do 9625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9626echo "$as_me:9626: checking for $ac_func" >&5 9627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9628if eval "test \"\${$as_ac_var+set}\" = set"; then 9629 echo $ECHO_N "(cached) $ECHO_C" >&6 9630else 9631 cat >conftest.$ac_ext <<_ACEOF 9632#line 9632 "configure" 9633#include "confdefs.h" 9634/* System header to define __stub macros and hopefully few prototypes, 9635 which can conflict with char $ac_func (); below. */ 9636#include <assert.h> 9637/* Override any gcc2 internal prototype to avoid an error. */ 9638#ifdef __cplusplus 9639extern "C" 9640#endif 9641/* We use char because int might match the return type of a gcc2 9642 builtin and then its argument prototype would still apply. */ 9643char $ac_func (); 9644char (*f) (); 9645 9646int 9647main () 9648{ 9649/* The GNU C library defines this for functions which it implements 9650 to always fail with ENOSYS. Some functions are actually named 9651 something starting with __ and the normal name is an alias. */ 9652#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9653choke me 9654#else 9655f = $ac_func; 9656#endif 9657 9658 ; 9659 return 0; 9660} 9661_ACEOF 9662rm -f conftest.$ac_objext conftest$ac_exeext 9663if { (eval echo "$as_me:9663: \"$ac_link\"") >&5 9664 (eval $ac_link) 2>&5 9665 ac_status=$? 9666 echo "$as_me:9666: \$? = $ac_status" >&5 9667 (exit $ac_status); } && 9668 { ac_try='test -s conftest$ac_exeext' 9669 { (eval echo "$as_me:9669: \"$ac_try\"") >&5 9670 (eval $ac_try) 2>&5 9671 ac_status=$? 9672 echo "$as_me:9672: \$? = $ac_status" >&5 9673 (exit $ac_status); }; }; then 9674 eval "$as_ac_var=yes" 9675else 9676 echo "$as_me: failed program was:" >&5 9677cat conftest.$ac_ext >&5 9678eval "$as_ac_var=no" 9679fi 9680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9681fi 9682echo "$as_me:9682: result: `eval echo '${'$as_ac_var'}'`" >&5 9683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9684if test `eval echo '${'$as_ac_var'}'` = yes; then 9685 cat >>confdefs.h <<EOF 9686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9687EOF 9688 9689fi 9690done 9691 9692fi 9693# gai_strerror 9694eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9695eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9696eval "LIB_gai_strerror=$ac_res" 9697 9698case "$ac_res" in 9699 yes) 9700 eval "ac_cv_func_gai_strerror=yes" 9701 eval "LIB_gai_strerror=" 9702 cat >>confdefs.h <<EOF 9703#define $ac_tr_func 1 9704EOF 9705 9706 echo "$as_me:9706: result: yes" >&5 9707echo "${ECHO_T}yes" >&6 9708 ;; 9709 no) 9710 eval "ac_cv_func_gai_strerror=no" 9711 eval "LIB_gai_strerror=" 9712 echo "$as_me:9712: result: no" >&5 9713echo "${ECHO_T}no" >&6 9714 ;; 9715 *) 9716 eval "ac_cv_func_gai_strerror=yes" 9717 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9718 cat >>confdefs.h <<EOF 9719#define $ac_tr_func 1 9720EOF 9721 9722 cat >>confdefs.h <<EOF 9723#define $ac_tr_lib 1 9724EOF 9725 9726 echo "$as_me:9726: result: yes, in $ac_res" >&5 9727echo "${ECHO_T}yes, in $ac_res" >&6 9728 ;; 9729esac 9730 9731if test -n "$LIB_gai_strerror"; then 9732 LIBS="$LIB_gai_strerror $LIBS" 9733fi 9734 9735if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then 9736LIBOBJS="$LIBOBJS gai_strerror.o" 9737fi 9738 9739for ac_func in \ 9740 chown \ 9741 copyhostent \ 9742 daemon \ 9743 ecalloc \ 9744 emalloc \ 9745 erealloc \ 9746 estrdup \ 9747 err \ 9748 errx \ 9749 fchown \ 9750 flock \ 9751 fnmatch \ 9752 freehostent \ 9753 getcwd \ 9754 getdtablesize \ 9755 getegid \ 9756 geteuid \ 9757 getgid \ 9758 gethostname \ 9759 getifaddrs \ 9760 getipnodebyaddr \ 9761 getipnodebyname \ 9762 getopt \ 9763 gettimeofday \ 9764 getuid \ 9765 getusershell \ 9766 initgroups \ 9767 innetgr \ 9768 iruserok \ 9769 localtime_r \ 9770 lstat \ 9771 memmove \ 9772 mkstemp \ 9773 putenv \ 9774 rcmd \ 9775 readv \ 9776 recvmsg \ 9777 sendmsg \ 9778 setegid \ 9779 setenv \ 9780 seteuid \ 9781 strcasecmp \ 9782 strdup \ 9783 strerror \ 9784 strftime \ 9785 strlcat \ 9786 strlcpy \ 9787 strlwr \ 9788 strncasecmp \ 9789 strndup \ 9790 strnlen \ 9791 strptime \ 9792 strsep \ 9793 strsep_copy \ 9794 strtok_r \ 9795 strupr \ 9796 swab \ 9797 unsetenv \ 9798 verr \ 9799 verrx \ 9800 vsyslog \ 9801 vwarn \ 9802 vwarnx \ 9803 warn \ 9804 warnx \ 9805 writev \ 9806 9807do 9808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9809echo "$as_me:9809: checking for $ac_func" >&5 9810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9811if eval "test \"\${$as_ac_var+set}\" = set"; then 9812 echo $ECHO_N "(cached) $ECHO_C" >&6 9813else 9814 cat >conftest.$ac_ext <<_ACEOF 9815#line 9815 "configure" 9816#include "confdefs.h" 9817/* System header to define __stub macros and hopefully few prototypes, 9818 which can conflict with char $ac_func (); below. */ 9819#include <assert.h> 9820/* Override any gcc2 internal prototype to avoid an error. */ 9821#ifdef __cplusplus 9822extern "C" 9823#endif 9824/* We use char because int might match the return type of a gcc2 9825 builtin and then its argument prototype would still apply. */ 9826char $ac_func (); 9827char (*f) (); 9828 9829int 9830main () 9831{ 9832/* The GNU C library defines this for functions which it implements 9833 to always fail with ENOSYS. Some functions are actually named 9834 something starting with __ and the normal name is an alias. */ 9835#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9836choke me 9837#else 9838f = $ac_func; 9839#endif 9840 9841 ; 9842 return 0; 9843} 9844_ACEOF 9845rm -f conftest.$ac_objext conftest$ac_exeext 9846if { (eval echo "$as_me:9846: \"$ac_link\"") >&5 9847 (eval $ac_link) 2>&5 9848 ac_status=$? 9849 echo "$as_me:9849: \$? = $ac_status" >&5 9850 (exit $ac_status); } && 9851 { ac_try='test -s conftest$ac_exeext' 9852 { (eval echo "$as_me:9852: \"$ac_try\"") >&5 9853 (eval $ac_try) 2>&5 9854 ac_status=$? 9855 echo "$as_me:9855: \$? = $ac_status" >&5 9856 (exit $ac_status); }; }; then 9857 eval "$as_ac_var=yes" 9858else 9859 echo "$as_me: failed program was:" >&5 9860cat conftest.$ac_ext >&5 9861eval "$as_ac_var=no" 9862fi 9863rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9864fi 9865echo "$as_me:9865: result: `eval echo '${'$as_ac_var'}'`" >&5 9866echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9867if test `eval echo '${'$as_ac_var'}'` = yes; then 9868 9869ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 9870cat >>confdefs.h <<EOF 9871#define $ac_tr_func 1 9872EOF 9873 9874else 9875 LIBOBJS="$LIBOBJS ${ac_func}.o" 9876fi 9877 9878if false; then 9879 9880for ac_func in \ 9881 chown \ 9882 copyhostent \ 9883 daemon \ 9884 ecalloc \ 9885 emalloc \ 9886 erealloc \ 9887 estrdup \ 9888 err \ 9889 errx \ 9890 fchown \ 9891 flock \ 9892 fnmatch \ 9893 freehostent \ 9894 getcwd \ 9895 getdtablesize \ 9896 getegid \ 9897 geteuid \ 9898 getgid \ 9899 gethostname \ 9900 getifaddrs \ 9901 getipnodebyaddr \ 9902 getipnodebyname \ 9903 getopt \ 9904 gettimeofday \ 9905 getuid \ 9906 getusershell \ 9907 initgroups \ 9908 innetgr \ 9909 iruserok \ 9910 localtime_r \ 9911 lstat \ 9912 memmove \ 9913 mkstemp \ 9914 putenv \ 9915 rcmd \ 9916 readv \ 9917 recvmsg \ 9918 sendmsg \ 9919 setegid \ 9920 setenv \ 9921 seteuid \ 9922 strcasecmp \ 9923 strdup \ 9924 strerror \ 9925 strftime \ 9926 strlcat \ 9927 strlcpy \ 9928 strlwr \ 9929 strncasecmp \ 9930 strndup \ 9931 strnlen \ 9932 strptime \ 9933 strsep \ 9934 strsep_copy \ 9935 strtok_r \ 9936 strupr \ 9937 swab \ 9938 unsetenv \ 9939 verr \ 9940 verrx \ 9941 vsyslog \ 9942 vwarn \ 9943 vwarnx \ 9944 warn \ 9945 warnx \ 9946 writev \ 9947 9948do 9949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9950echo "$as_me:9950: checking for $ac_func" >&5 9951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9952if eval "test \"\${$as_ac_var+set}\" = set"; then 9953 echo $ECHO_N "(cached) $ECHO_C" >&6 9954else 9955 cat >conftest.$ac_ext <<_ACEOF 9956#line 9956 "configure" 9957#include "confdefs.h" 9958/* System header to define __stub macros and hopefully few prototypes, 9959 which can conflict with char $ac_func (); below. */ 9960#include <assert.h> 9961/* Override any gcc2 internal prototype to avoid an error. */ 9962#ifdef __cplusplus 9963extern "C" 9964#endif 9965/* We use char because int might match the return type of a gcc2 9966 builtin and then its argument prototype would still apply. */ 9967char $ac_func (); 9968char (*f) (); 9969 9970int 9971main () 9972{ 9973/* The GNU C library defines this for functions which it implements 9974 to always fail with ENOSYS. Some functions are actually named 9975 something starting with __ and the normal name is an alias. */ 9976#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9977choke me 9978#else 9979f = $ac_func; 9980#endif 9981 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986rm -f conftest.$ac_objext conftest$ac_exeext 9987if { (eval echo "$as_me:9987: \"$ac_link\"") >&5 9988 (eval $ac_link) 2>&5 9989 ac_status=$? 9990 echo "$as_me:9990: \$? = $ac_status" >&5 9991 (exit $ac_status); } && 9992 { ac_try='test -s conftest$ac_exeext' 9993 { (eval echo "$as_me:9993: \"$ac_try\"") >&5 9994 (eval $ac_try) 2>&5 9995 ac_status=$? 9996 echo "$as_me:9996: \$? = $ac_status" >&5 9997 (exit $ac_status); }; }; then 9998 eval "$as_ac_var=yes" 9999else 10000 echo "$as_me: failed program was:" >&5 10001cat conftest.$ac_ext >&5 10002eval "$as_ac_var=no" 10003fi 10004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10005fi 10006echo "$as_me:10006: result: `eval echo '${'$as_ac_var'}'`" >&5 10007echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10008if test `eval echo '${'$as_ac_var'}'` = yes; then 10009 cat >>confdefs.h <<EOF 10010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10011EOF 10012 10013fi 10014done 10015 10016fi 10017done 10018 10019for ac_func in inet_aton 10020do 10021echo "$as_me:10021: checking for $ac_func" >&5 10022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10023if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 10024 echo $ECHO_N "(cached) $ECHO_C" >&6 10025else 10026 cat >conftest.$ac_ext <<_ACEOF 10027#line 10027 "configure" 10028#include "confdefs.h" 10029#ifdef HAVE_SYS_TYPES_H 10030#include <sys/types.h> 10031#endif 10032#ifdef HAVE_SYS_SOCKET_H 10033#include <sys/socket.h> 10034#endif 10035#ifdef HAVE_NETINET_IN_H 10036#include <netinet/in.h> 10037#endif 10038#ifdef HAVE_ARPA_INET_H 10039#include <arpa/inet.h> 10040#endif 10041int 10042main () 10043{ 10044 10045/* The GNU C library defines this for functions which it implements 10046 to always fail with ENOSYS. Some functions are actually named 10047 something starting with __ and the normal name is an alias. */ 10048#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 10049choke me 10050#else 10051$ac_func(0,0) 10052#endif 10053 10054 ; 10055 return 0; 10056} 10057_ACEOF 10058rm -f conftest.$ac_objext conftest$ac_exeext 10059if { (eval echo "$as_me:10059: \"$ac_link\"") >&5 10060 (eval $ac_link) 2>&5 10061 ac_status=$? 10062 echo "$as_me:10062: \$? = $ac_status" >&5 10063 (exit $ac_status); } && 10064 { ac_try='test -s conftest$ac_exeext' 10065 { (eval echo "$as_me:10065: \"$ac_try\"") >&5 10066 (eval $ac_try) 2>&5 10067 ac_status=$? 10068 echo "$as_me:10068: \$? = $ac_status" >&5 10069 (exit $ac_status); }; }; then 10070 eval "ac_cv_func_$ac_func=yes" 10071else 10072 echo "$as_me: failed program was:" >&5 10073cat conftest.$ac_ext >&5 10074eval "ac_cv_func_$ac_func=no" 10075fi 10076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10077fi 10078 10079if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 10080 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 10081 cat >>confdefs.h <<EOF 10082#define $ac_tr_func 1 10083EOF 10084 10085 echo "$as_me:10085: result: yes" >&5 10086echo "${ECHO_T}yes" >&6 10087else 10088 echo "$as_me:10088: result: no" >&5 10089echo "${ECHO_T}no" >&6 10090 LIBOBJS="$LIBOBJS ${ac_func}.o" 10091fi 10092done 10093if false; then 10094 10095for ac_func in inet_aton 10096do 10097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10098echo "$as_me:10098: checking for $ac_func" >&5 10099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10100if eval "test \"\${$as_ac_var+set}\" = set"; then 10101 echo $ECHO_N "(cached) $ECHO_C" >&6 10102else 10103 cat >conftest.$ac_ext <<_ACEOF 10104#line 10104 "configure" 10105#include "confdefs.h" 10106/* System header to define __stub macros and hopefully few prototypes, 10107 which can conflict with char $ac_func (); below. */ 10108#include <assert.h> 10109/* Override any gcc2 internal prototype to avoid an error. */ 10110#ifdef __cplusplus 10111extern "C" 10112#endif 10113/* We use char because int might match the return type of a gcc2 10114 builtin and then its argument prototype would still apply. */ 10115char $ac_func (); 10116char (*f) (); 10117 10118int 10119main () 10120{ 10121/* The GNU C library defines this for functions which it implements 10122 to always fail with ENOSYS. Some functions are actually named 10123 something starting with __ and the normal name is an alias. */ 10124#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10125choke me 10126#else 10127f = $ac_func; 10128#endif 10129 10130 ; 10131 return 0; 10132} 10133_ACEOF 10134rm -f conftest.$ac_objext conftest$ac_exeext 10135if { (eval echo "$as_me:10135: \"$ac_link\"") >&5 10136 (eval $ac_link) 2>&5 10137 ac_status=$? 10138 echo "$as_me:10138: \$? = $ac_status" >&5 10139 (exit $ac_status); } && 10140 { ac_try='test -s conftest$ac_exeext' 10141 { (eval echo "$as_me:10141: \"$ac_try\"") >&5 10142 (eval $ac_try) 2>&5 10143 ac_status=$? 10144 echo "$as_me:10144: \$? = $ac_status" >&5 10145 (exit $ac_status); }; }; then 10146 eval "$as_ac_var=yes" 10147else 10148 echo "$as_me: failed program was:" >&5 10149cat conftest.$ac_ext >&5 10150eval "$as_ac_var=no" 10151fi 10152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10153fi 10154echo "$as_me:10154: result: `eval echo '${'$as_ac_var'}'`" >&5 10155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10156if test `eval echo '${'$as_ac_var'}'` = yes; then 10157 cat >>confdefs.h <<EOF 10158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10159EOF 10160 10161fi 10162done 10163 10164fi 10165 10166for ac_func in inet_ntop 10167do 10168echo "$as_me:10168: checking for $ac_func" >&5 10169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10170if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 10171 echo $ECHO_N "(cached) $ECHO_C" >&6 10172else 10173 cat >conftest.$ac_ext <<_ACEOF 10174#line 10174 "configure" 10175#include "confdefs.h" 10176#ifdef HAVE_SYS_TYPES_H 10177#include <sys/types.h> 10178#endif 10179#ifdef HAVE_SYS_SOCKET_H 10180#include <sys/socket.h> 10181#endif 10182#ifdef HAVE_NETINET_IN_H 10183#include <netinet/in.h> 10184#endif 10185#ifdef HAVE_ARPA_INET_H 10186#include <arpa/inet.h> 10187#endif 10188int 10189main () 10190{ 10191 10192/* The GNU C library defines this for functions which it implements 10193 to always fail with ENOSYS. Some functions are actually named 10194 something starting with __ and the normal name is an alias. */ 10195#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 10196choke me 10197#else 10198$ac_func(0, 0, 0, 0) 10199#endif 10200 10201 ; 10202 return 0; 10203} 10204_ACEOF 10205rm -f conftest.$ac_objext conftest$ac_exeext 10206if { (eval echo "$as_me:10206: \"$ac_link\"") >&5 10207 (eval $ac_link) 2>&5 10208 ac_status=$? 10209 echo "$as_me:10209: \$? = $ac_status" >&5 10210 (exit $ac_status); } && 10211 { ac_try='test -s conftest$ac_exeext' 10212 { (eval echo "$as_me:10212: \"$ac_try\"") >&5 10213 (eval $ac_try) 2>&5 10214 ac_status=$? 10215 echo "$as_me:10215: \$? = $ac_status" >&5 10216 (exit $ac_status); }; }; then 10217 eval "ac_cv_func_$ac_func=yes" 10218else 10219 echo "$as_me: failed program was:" >&5 10220cat conftest.$ac_ext >&5 10221eval "ac_cv_func_$ac_func=no" 10222fi 10223rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10224fi 10225 10226if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 10227 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 10228 cat >>confdefs.h <<EOF 10229#define $ac_tr_func 1 10230EOF 10231 10232 echo "$as_me:10232: result: yes" >&5 10233echo "${ECHO_T}yes" >&6 10234else 10235 echo "$as_me:10235: result: no" >&5 10236echo "${ECHO_T}no" >&6 10237 LIBOBJS="$LIBOBJS ${ac_func}.o" 10238fi 10239done 10240if false; then 10241 10242for ac_func in inet_ntop 10243do 10244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10245echo "$as_me:10245: checking for $ac_func" >&5 10246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10247if eval "test \"\${$as_ac_var+set}\" = set"; then 10248 echo $ECHO_N "(cached) $ECHO_C" >&6 10249else 10250 cat >conftest.$ac_ext <<_ACEOF 10251#line 10251 "configure" 10252#include "confdefs.h" 10253/* System header to define __stub macros and hopefully few prototypes, 10254 which can conflict with char $ac_func (); below. */ 10255#include <assert.h> 10256/* Override any gcc2 internal prototype to avoid an error. */ 10257#ifdef __cplusplus 10258extern "C" 10259#endif 10260/* We use char because int might match the return type of a gcc2 10261 builtin and then its argument prototype would still apply. */ 10262char $ac_func (); 10263char (*f) (); 10264 10265int 10266main () 10267{ 10268/* The GNU C library defines this for functions which it implements 10269 to always fail with ENOSYS. Some functions are actually named 10270 something starting with __ and the normal name is an alias. */ 10271#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10272choke me 10273#else 10274f = $ac_func; 10275#endif 10276 10277 ; 10278 return 0; 10279} 10280_ACEOF 10281rm -f conftest.$ac_objext conftest$ac_exeext 10282if { (eval echo "$as_me:10282: \"$ac_link\"") >&5 10283 (eval $ac_link) 2>&5 10284 ac_status=$? 10285 echo "$as_me:10285: \$? = $ac_status" >&5 10286 (exit $ac_status); } && 10287 { ac_try='test -s conftest$ac_exeext' 10288 { (eval echo "$as_me:10288: \"$ac_try\"") >&5 10289 (eval $ac_try) 2>&5 10290 ac_status=$? 10291 echo "$as_me:10291: \$? = $ac_status" >&5 10292 (exit $ac_status); }; }; then 10293 eval "$as_ac_var=yes" 10294else 10295 echo "$as_me: failed program was:" >&5 10296cat conftest.$ac_ext >&5 10297eval "$as_ac_var=no" 10298fi 10299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10300fi 10301echo "$as_me:10301: result: `eval echo '${'$as_ac_var'}'`" >&5 10302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10303if test `eval echo '${'$as_ac_var'}'` = yes; then 10304 cat >>confdefs.h <<EOF 10305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10306EOF 10307 10308fi 10309done 10310 10311fi 10312 10313for ac_func in inet_pton 10314do 10315echo "$as_me:10315: checking for $ac_func" >&5 10316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10317if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 10318 echo $ECHO_N "(cached) $ECHO_C" >&6 10319else 10320 cat >conftest.$ac_ext <<_ACEOF 10321#line 10321 "configure" 10322#include "confdefs.h" 10323#ifdef HAVE_SYS_TYPES_H 10324#include <sys/types.h> 10325#endif 10326#ifdef HAVE_SYS_SOCKET_H 10327#include <sys/socket.h> 10328#endif 10329#ifdef HAVE_NETINET_IN_H 10330#include <netinet/in.h> 10331#endif 10332#ifdef HAVE_ARPA_INET_H 10333#include <arpa/inet.h> 10334#endif 10335int 10336main () 10337{ 10338 10339/* The GNU C library defines this for functions which it implements 10340 to always fail with ENOSYS. Some functions are actually named 10341 something starting with __ and the normal name is an alias. */ 10342#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 10343choke me 10344#else 10345$ac_func(0,0,0) 10346#endif 10347 10348 ; 10349 return 0; 10350} 10351_ACEOF 10352rm -f conftest.$ac_objext conftest$ac_exeext 10353if { (eval echo "$as_me:10353: \"$ac_link\"") >&5 10354 (eval $ac_link) 2>&5 10355 ac_status=$? 10356 echo "$as_me:10356: \$? = $ac_status" >&5 10357 (exit $ac_status); } && 10358 { ac_try='test -s conftest$ac_exeext' 10359 { (eval echo "$as_me:10359: \"$ac_try\"") >&5 10360 (eval $ac_try) 2>&5 10361 ac_status=$? 10362 echo "$as_me:10362: \$? = $ac_status" >&5 10363 (exit $ac_status); }; }; then 10364 eval "ac_cv_func_$ac_func=yes" 10365else 10366 echo "$as_me: failed program was:" >&5 10367cat conftest.$ac_ext >&5 10368eval "ac_cv_func_$ac_func=no" 10369fi 10370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10371fi 10372 10373if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 10374 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 10375 cat >>confdefs.h <<EOF 10376#define $ac_tr_func 1 10377EOF 10378 10379 echo "$as_me:10379: result: yes" >&5 10380echo "${ECHO_T}yes" >&6 10381else 10382 echo "$as_me:10382: result: no" >&5 10383echo "${ECHO_T}no" >&6 10384 LIBOBJS="$LIBOBJS ${ac_func}.o" 10385fi 10386done 10387if false; then 10388 10389for ac_func in inet_pton 10390do 10391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10392echo "$as_me:10392: checking for $ac_func" >&5 10393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10394if eval "test \"\${$as_ac_var+set}\" = set"; then 10395 echo $ECHO_N "(cached) $ECHO_C" >&6 10396else 10397 cat >conftest.$ac_ext <<_ACEOF 10398#line 10398 "configure" 10399#include "confdefs.h" 10400/* System header to define __stub macros and hopefully few prototypes, 10401 which can conflict with char $ac_func (); below. */ 10402#include <assert.h> 10403/* Override any gcc2 internal prototype to avoid an error. */ 10404#ifdef __cplusplus 10405extern "C" 10406#endif 10407/* We use char because int might match the return type of a gcc2 10408 builtin and then its argument prototype would still apply. */ 10409char $ac_func (); 10410char (*f) (); 10411 10412int 10413main () 10414{ 10415/* The GNU C library defines this for functions which it implements 10416 to always fail with ENOSYS. Some functions are actually named 10417 something starting with __ and the normal name is an alias. */ 10418#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10419choke me 10420#else 10421f = $ac_func; 10422#endif 10423 10424 ; 10425 return 0; 10426} 10427_ACEOF 10428rm -f conftest.$ac_objext conftest$ac_exeext 10429if { (eval echo "$as_me:10429: \"$ac_link\"") >&5 10430 (eval $ac_link) 2>&5 10431 ac_status=$? 10432 echo "$as_me:10432: \$? = $ac_status" >&5 10433 (exit $ac_status); } && 10434 { ac_try='test -s conftest$ac_exeext' 10435 { (eval echo "$as_me:10435: \"$ac_try\"") >&5 10436 (eval $ac_try) 2>&5 10437 ac_status=$? 10438 echo "$as_me:10438: \$? = $ac_status" >&5 10439 (exit $ac_status); }; }; then 10440 eval "$as_ac_var=yes" 10441else 10442 echo "$as_me: failed program was:" >&5 10443cat conftest.$ac_ext >&5 10444eval "$as_ac_var=no" 10445fi 10446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10447fi 10448echo "$as_me:10448: result: `eval echo '${'$as_ac_var'}'`" >&5 10449echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10450if test `eval echo '${'$as_ac_var'}'` = yes; then 10451 cat >>confdefs.h <<EOF 10452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10453EOF 10454 10455fi 10456done 10457 10458fi 10459 10460echo "$as_me:10460: checking for sa_len in struct sockaddr" >&5 10461echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 10462if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 10463 echo $ECHO_N "(cached) $ECHO_C" >&6 10464else 10465 10466cat >conftest.$ac_ext <<_ACEOF 10467#line 10467 "configure" 10468#include "confdefs.h" 10469#include <sys/types.h> 10470#include <sys/socket.h> 10471int 10472main () 10473{ 10474struct sockaddr x; x.sa_len; 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479rm -f conftest.$ac_objext 10480if { (eval echo "$as_me:10480: \"$ac_compile\"") >&5 10481 (eval $ac_compile) 2>&5 10482 ac_status=$? 10483 echo "$as_me:10483: \$? = $ac_status" >&5 10484 (exit $ac_status); } && 10485 { ac_try='test -s conftest.$ac_objext' 10486 { (eval echo "$as_me:10486: \"$ac_try\"") >&5 10487 (eval $ac_try) 2>&5 10488 ac_status=$? 10489 echo "$as_me:10489: \$? = $ac_status" >&5 10490 (exit $ac_status); }; }; then 10491 ac_cv_type_struct_sockaddr_sa_len=yes 10492else 10493 echo "$as_me: failed program was:" >&5 10494cat conftest.$ac_ext >&5 10495ac_cv_type_struct_sockaddr_sa_len=no 10496fi 10497rm -f conftest.$ac_objext conftest.$ac_ext 10498fi 10499echo "$as_me:10499: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 10500echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6 10501if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 10502 10503cat >>confdefs.h <<\EOF 10504#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 10505EOF 10506 10507fi 10508 10509if test "$ac_cv_func_getnameinfo" = "yes"; then 10510 10511echo "$as_me:10511: checking if getnameinfo is broken" >&5 10512echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6 10513if test "${ac_cv_func_getnameinfo_broken+set}" = set; then 10514 echo $ECHO_N "(cached) $ECHO_C" >&6 10515else 10516 if test "$cross_compiling" = yes; then 10517 { { echo "$as_me:10517: error: cannot run test program while cross compiling" >&5 10518echo "$as_me: error: cannot run test program while cross compiling" >&2;} 10519 { (exit 1); exit 1; }; } 10520else 10521 cat >conftest.$ac_ext <<_ACEOF 10522#line 10522 "configure" 10523#include "confdefs.h" 10524#include <stdio.h> 10525#include <sys/types.h> 10526#include <sys/socket.h> 10527#include <netinet/in.h> 10528#include <netdb.h> 10529 10530int 10531main(int argc, char **argv) 10532{ 10533 struct sockaddr_in sin; 10534 char host[256]; 10535 memset(&sin, 0, sizeof(sin)); 10536#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN 10537 sin.sin_len = sizeof(sin); 10538#endif 10539 sin.sin_family = AF_INET; 10540 sin.sin_addr.s_addr = 0xffffffff; 10541 sin.sin_port = 0; 10542 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host), 10543 NULL, 0, 0); 10544} 10545 10546_ACEOF 10547rm -f conftest$ac_exeext 10548if { (eval echo "$as_me:10548: \"$ac_link\"") >&5 10549 (eval $ac_link) 2>&5 10550 ac_status=$? 10551 echo "$as_me:10551: \$? = $ac_status" >&5 10552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10553 { (eval echo "$as_me:10553: \"$ac_try\"") >&5 10554 (eval $ac_try) 2>&5 10555 ac_status=$? 10556 echo "$as_me:10556: \$? = $ac_status" >&5 10557 (exit $ac_status); }; }; then 10558 ac_cv_func_getnameinfo_broken=no 10559else 10560 echo "$as_me: program exited with status $ac_status" >&5 10561echo "$as_me: failed program was:" >&5 10562cat conftest.$ac_ext >&5 10563ac_cv_func_getnameinfo_broken=yes 10564fi 10565rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10566fi 10567fi 10568echo "$as_me:10568: result: $ac_cv_func_getnameinfo_broken" >&5 10569echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6 10570 if test "$ac_cv_func_getnameinfo_broken" = yes; then 10571 LIBOBJS="$LIBOBJS getnameinfo.o" 10572 fi 10573fi 10574 10575if test "$ac_cv_func_getaddrinfo" = "yes"; then 10576 10577echo "$as_me:10577: checking if getaddrinfo handles numeric services" >&5 10578echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6 10579if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then 10580 echo $ECHO_N "(cached) $ECHO_C" >&6 10581else 10582 if test "$cross_compiling" = yes; then 10583 { { echo "$as_me:10583: error: cannot run test program while cross compiling" >&5 10584echo "$as_me: error: cannot run test program while cross compiling" >&2;} 10585 { (exit 1); exit 1; }; } 10586else 10587 cat >conftest.$ac_ext <<_ACEOF 10588#line 10588 "configure" 10589#include "confdefs.h" 10590#include <stdio.h> 10591#include <sys/types.h> 10592#include <sys/socket.h> 10593#include <netdb.h> 10594 10595int 10596main(int argc, char **argv) 10597{ 10598 struct addrinfo hints, *ai; 10599 memset(&hints, 0, sizeof(hints)); 10600 hints.ai_flags = AI_PASSIVE; 10601 hints.ai_socktype = SOCK_STREAM; 10602 hints.ai_family = PF_UNSPEC; 10603 if(getaddrinfo(NULL, "17", &hints, &ai) == EAI_SERVICE) 10604 return 1; 10605 return 0; 10606} 10607 10608_ACEOF 10609rm -f conftest$ac_exeext 10610if { (eval echo "$as_me:10610: \"$ac_link\"") >&5 10611 (eval $ac_link) 2>&5 10612 ac_status=$? 10613 echo "$as_me:10613: \$? = $ac_status" >&5 10614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10615 { (eval echo "$as_me:10615: \"$ac_try\"") >&5 10616 (eval $ac_try) 2>&5 10617 ac_status=$? 10618 echo "$as_me:10618: \$? = $ac_status" >&5 10619 (exit $ac_status); }; }; then 10620 ac_cv_func_getaddrinfo_numserv=yes 10621else 10622 echo "$as_me: program exited with status $ac_status" >&5 10623echo "$as_me: failed program was:" >&5 10624cat conftest.$ac_ext >&5 10625ac_cv_func_getaddrinfo_numserv=no 10626fi 10627rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10628fi 10629fi 10630echo "$as_me:10630: result: $ac_cv_func_getaddrinfo_numserv" >&5 10631echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6 10632 if test "$ac_cv_func_getaddrinfo_numserv" = no; then 10633 LIBOBJS="$LIBOBJS getaddrinfo.o freeaddrinfo.o" 10634 fi 10635fi 10636 10637if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 10638echo "$as_me:10638: checking if setenv needs a prototype" >&5 10639echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6 10640if test "${ac_cv_func_setenv_noproto+set}" = set; then 10641 echo $ECHO_N "(cached) $ECHO_C" >&6 10642else 10643 cat >conftest.$ac_ext <<_ACEOF 10644#line 10644 "configure" 10645#include "confdefs.h" 10646#include <stdlib.h> 10647int 10648main () 10649{ 10650struct foo { int foo; } xx; 10651extern int setenv (struct foo*); 10652setenv(&xx); 10653 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658rm -f conftest.$ac_objext 10659if { (eval echo "$as_me:10659: \"$ac_compile\"") >&5 10660 (eval $ac_compile) 2>&5 10661 ac_status=$? 10662 echo "$as_me:10662: \$? = $ac_status" >&5 10663 (exit $ac_status); } && 10664 { ac_try='test -s conftest.$ac_objext' 10665 { (eval echo "$as_me:10665: \"$ac_try\"") >&5 10666 (eval $ac_try) 2>&5 10667 ac_status=$? 10668 echo "$as_me:10668: \$? = $ac_status" >&5 10669 (exit $ac_status); }; }; then 10670 eval "ac_cv_func_setenv_noproto=yes" 10671else 10672 echo "$as_me: failed program was:" >&5 10673cat conftest.$ac_ext >&5 10674eval "ac_cv_func_setenv_noproto=no" 10675fi 10676rm -f conftest.$ac_objext conftest.$ac_ext 10677fi 10678echo "$as_me:10678: result: $ac_cv_func_setenv_noproto" >&5 10679echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6 10680 10681if test "$ac_cv_func_setenv_noproto" = yes; then 10682 10683cat >>confdefs.h <<\EOF 10684#define NEED_SETENV_PROTO 1 10685EOF 10686 10687fi 10688 10689fi 10690 10691if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 10692echo "$as_me:10692: checking if unsetenv needs a prototype" >&5 10693echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6 10694if test "${ac_cv_func_unsetenv_noproto+set}" = set; then 10695 echo $ECHO_N "(cached) $ECHO_C" >&6 10696else 10697 cat >conftest.$ac_ext <<_ACEOF 10698#line 10698 "configure" 10699#include "confdefs.h" 10700#include <stdlib.h> 10701int 10702main () 10703{ 10704struct foo { int foo; } xx; 10705extern int unsetenv (struct foo*); 10706unsetenv(&xx); 10707 10708 ; 10709 return 0; 10710} 10711_ACEOF 10712rm -f conftest.$ac_objext 10713if { (eval echo "$as_me:10713: \"$ac_compile\"") >&5 10714 (eval $ac_compile) 2>&5 10715 ac_status=$? 10716 echo "$as_me:10716: \$? = $ac_status" >&5 10717 (exit $ac_status); } && 10718 { ac_try='test -s conftest.$ac_objext' 10719 { (eval echo "$as_me:10719: \"$ac_try\"") >&5 10720 (eval $ac_try) 2>&5 10721 ac_status=$? 10722 echo "$as_me:10722: \$? = $ac_status" >&5 10723 (exit $ac_status); }; }; then 10724 eval "ac_cv_func_unsetenv_noproto=yes" 10725else 10726 echo "$as_me: failed program was:" >&5 10727cat conftest.$ac_ext >&5 10728eval "ac_cv_func_unsetenv_noproto=no" 10729fi 10730rm -f conftest.$ac_objext conftest.$ac_ext 10731fi 10732echo "$as_me:10732: result: $ac_cv_func_unsetenv_noproto" >&5 10733echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6 10734 10735if test "$ac_cv_func_unsetenv_noproto" = yes; then 10736 10737cat >>confdefs.h <<\EOF 10738#define NEED_UNSETENV_PROTO 1 10739EOF 10740 10741fi 10742 10743fi 10744 10745if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 10746echo "$as_me:10746: checking if gethostname needs a prototype" >&5 10747echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6 10748if test "${ac_cv_func_gethostname_noproto+set}" = set; then 10749 echo $ECHO_N "(cached) $ECHO_C" >&6 10750else 10751 cat >conftest.$ac_ext <<_ACEOF 10752#line 10752 "configure" 10753#include "confdefs.h" 10754#include <unistd.h> 10755int 10756main () 10757{ 10758struct foo { int foo; } xx; 10759extern int gethostname (struct foo*); 10760gethostname(&xx); 10761 10762 ; 10763 return 0; 10764} 10765_ACEOF 10766rm -f conftest.$ac_objext 10767if { (eval echo "$as_me:10767: \"$ac_compile\"") >&5 10768 (eval $ac_compile) 2>&5 10769 ac_status=$? 10770 echo "$as_me:10770: \$? = $ac_status" >&5 10771 (exit $ac_status); } && 10772 { ac_try='test -s conftest.$ac_objext' 10773 { (eval echo "$as_me:10773: \"$ac_try\"") >&5 10774 (eval $ac_try) 2>&5 10775 ac_status=$? 10776 echo "$as_me:10776: \$? = $ac_status" >&5 10777 (exit $ac_status); }; }; then 10778 eval "ac_cv_func_gethostname_noproto=yes" 10779else 10780 echo "$as_me: failed program was:" >&5 10781cat conftest.$ac_ext >&5 10782eval "ac_cv_func_gethostname_noproto=no" 10783fi 10784rm -f conftest.$ac_objext conftest.$ac_ext 10785fi 10786echo "$as_me:10786: result: $ac_cv_func_gethostname_noproto" >&5 10787echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6 10788 10789if test "$ac_cv_func_gethostname_noproto" = yes; then 10790 10791cat >>confdefs.h <<\EOF 10792#define NEED_GETHOSTNAME_PROTO 1 10793EOF 10794 10795fi 10796 10797fi 10798 10799if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 10800echo "$as_me:10800: checking if mkstemp needs a prototype" >&5 10801echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6 10802if test "${ac_cv_func_mkstemp_noproto+set}" = set; then 10803 echo $ECHO_N "(cached) $ECHO_C" >&6 10804else 10805 cat >conftest.$ac_ext <<_ACEOF 10806#line 10806 "configure" 10807#include "confdefs.h" 10808#include <unistd.h> 10809int 10810main () 10811{ 10812struct foo { int foo; } xx; 10813extern int mkstemp (struct foo*); 10814mkstemp(&xx); 10815 10816 ; 10817 return 0; 10818} 10819_ACEOF 10820rm -f conftest.$ac_objext 10821if { (eval echo "$as_me:10821: \"$ac_compile\"") >&5 10822 (eval $ac_compile) 2>&5 10823 ac_status=$? 10824 echo "$as_me:10824: \$? = $ac_status" >&5 10825 (exit $ac_status); } && 10826 { ac_try='test -s conftest.$ac_objext' 10827 { (eval echo "$as_me:10827: \"$ac_try\"") >&5 10828 (eval $ac_try) 2>&5 10829 ac_status=$? 10830 echo "$as_me:10830: \$? = $ac_status" >&5 10831 (exit $ac_status); }; }; then 10832 eval "ac_cv_func_mkstemp_noproto=yes" 10833else 10834 echo "$as_me: failed program was:" >&5 10835cat conftest.$ac_ext >&5 10836eval "ac_cv_func_mkstemp_noproto=no" 10837fi 10838rm -f conftest.$ac_objext conftest.$ac_ext 10839fi 10840echo "$as_me:10840: result: $ac_cv_func_mkstemp_noproto" >&5 10841echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6 10842 10843if test "$ac_cv_func_mkstemp_noproto" = yes; then 10844 10845cat >>confdefs.h <<\EOF 10846#define NEED_MKSTEMP_PROTO 1 10847EOF 10848 10849fi 10850 10851fi 10852 10853if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 10854echo "$as_me:10854: checking if getusershell needs a prototype" >&5 10855echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6 10856if test "${ac_cv_func_getusershell_noproto+set}" = set; then 10857 echo $ECHO_N "(cached) $ECHO_C" >&6 10858else 10859 cat >conftest.$ac_ext <<_ACEOF 10860#line 10860 "configure" 10861#include "confdefs.h" 10862#include <unistd.h> 10863int 10864main () 10865{ 10866struct foo { int foo; } xx; 10867extern int getusershell (struct foo*); 10868getusershell(&xx); 10869 10870 ; 10871 return 0; 10872} 10873_ACEOF 10874rm -f conftest.$ac_objext 10875if { (eval echo "$as_me:10875: \"$ac_compile\"") >&5 10876 (eval $ac_compile) 2>&5 10877 ac_status=$? 10878 echo "$as_me:10878: \$? = $ac_status" >&5 10879 (exit $ac_status); } && 10880 { ac_try='test -s conftest.$ac_objext' 10881 { (eval echo "$as_me:10881: \"$ac_try\"") >&5 10882 (eval $ac_try) 2>&5 10883 ac_status=$? 10884 echo "$as_me:10884: \$? = $ac_status" >&5 10885 (exit $ac_status); }; }; then 10886 eval "ac_cv_func_getusershell_noproto=yes" 10887else 10888 echo "$as_me: failed program was:" >&5 10889cat conftest.$ac_ext >&5 10890eval "ac_cv_func_getusershell_noproto=no" 10891fi 10892rm -f conftest.$ac_objext conftest.$ac_ext 10893fi 10894echo "$as_me:10894: result: $ac_cv_func_getusershell_noproto" >&5 10895echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6 10896 10897if test "$ac_cv_func_getusershell_noproto" = yes; then 10898 10899cat >>confdefs.h <<\EOF 10900#define NEED_GETUSERSHELL_PROTO 1 10901EOF 10902 10903fi 10904 10905fi 10906 10907if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 10908echo "$as_me:10908: checking if inet_aton needs a prototype" >&5 10909echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6 10910if test "${ac_cv_func_inet_aton_noproto+set}" = set; then 10911 echo $ECHO_N "(cached) $ECHO_C" >&6 10912else 10913 cat >conftest.$ac_ext <<_ACEOF 10914#line 10914 "configure" 10915#include "confdefs.h" 10916 10917#ifdef HAVE_SYS_TYPES_H 10918#include <sys/types.h> 10919#endif 10920#ifdef HAVE_SYS_SOCKET_H 10921#include <sys/socket.h> 10922#endif 10923#ifdef HAVE_NETINET_IN_H 10924#include <netinet/in.h> 10925#endif 10926#ifdef HAVE_ARPA_INET_H 10927#include <arpa/inet.h> 10928#endif 10929int 10930main () 10931{ 10932struct foo { int foo; } xx; 10933extern int inet_aton (struct foo*); 10934inet_aton(&xx); 10935 10936 ; 10937 return 0; 10938} 10939_ACEOF 10940rm -f conftest.$ac_objext 10941if { (eval echo "$as_me:10941: \"$ac_compile\"") >&5 10942 (eval $ac_compile) 2>&5 10943 ac_status=$? 10944 echo "$as_me:10944: \$? = $ac_status" >&5 10945 (exit $ac_status); } && 10946 { ac_try='test -s conftest.$ac_objext' 10947 { (eval echo "$as_me:10947: \"$ac_try\"") >&5 10948 (eval $ac_try) 2>&5 10949 ac_status=$? 10950 echo "$as_me:10950: \$? = $ac_status" >&5 10951 (exit $ac_status); }; }; then 10952 eval "ac_cv_func_inet_aton_noproto=yes" 10953else 10954 echo "$as_me: failed program was:" >&5 10955cat conftest.$ac_ext >&5 10956eval "ac_cv_func_inet_aton_noproto=no" 10957fi 10958rm -f conftest.$ac_objext conftest.$ac_ext 10959fi 10960echo "$as_me:10960: result: $ac_cv_func_inet_aton_noproto" >&5 10961echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6 10962 10963if test "$ac_cv_func_inet_aton_noproto" = yes; then 10964 10965cat >>confdefs.h <<\EOF 10966#define NEED_INET_ATON_PROTO 1 10967EOF 10968 10969fi 10970 10971fi 10972 10973echo "$as_me:10973: checking for crypt" >&5 10974echo $ECHO_N "checking for crypt... $ECHO_C" >&6 10975if test "${ac_cv_funclib_crypt+set}" = set; then 10976 echo $ECHO_N "(cached) $ECHO_C" >&6 10977else 10978 10979if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 10980 ac_save_LIBS="$LIBS" 10981 for ac_lib in "" crypt; do 10982 case "$ac_lib" in 10983 "") ;; 10984 yes) ac_lib="" ;; 10985 no) continue ;; 10986 -l*) ;; 10987 *) ac_lib="-l$ac_lib" ;; 10988 esac 10989 LIBS=" $ac_lib $ac_save_LIBS" 10990 cat >conftest.$ac_ext <<_ACEOF 10991#line 10991 "configure" 10992#include "confdefs.h" 10993 10994int 10995main () 10996{ 10997crypt() 10998 ; 10999 return 0; 11000} 11001_ACEOF 11002rm -f conftest.$ac_objext conftest$ac_exeext 11003if { (eval echo "$as_me:11003: \"$ac_link\"") >&5 11004 (eval $ac_link) 2>&5 11005 ac_status=$? 11006 echo "$as_me:11006: \$? = $ac_status" >&5 11007 (exit $ac_status); } && 11008 { ac_try='test -s conftest$ac_exeext' 11009 { (eval echo "$as_me:11009: \"$ac_try\"") >&5 11010 (eval $ac_try) 2>&5 11011 ac_status=$? 11012 echo "$as_me:11012: \$? = $ac_status" >&5 11013 (exit $ac_status); }; }; then 11014 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 11015else 11016 echo "$as_me: failed program was:" >&5 11017cat conftest.$ac_ext >&5 11018fi 11019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11020 done 11021 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 11022 LIBS="$ac_save_LIBS" 11023fi 11024 11025fi 11026 11027eval "ac_res=\$ac_cv_funclib_crypt" 11028 11029if false; then 11030 11031for ac_func in crypt 11032do 11033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11034echo "$as_me:11034: checking for $ac_func" >&5 11035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11036if eval "test \"\${$as_ac_var+set}\" = set"; then 11037 echo $ECHO_N "(cached) $ECHO_C" >&6 11038else 11039 cat >conftest.$ac_ext <<_ACEOF 11040#line 11040 "configure" 11041#include "confdefs.h" 11042/* System header to define __stub macros and hopefully few prototypes, 11043 which can conflict with char $ac_func (); below. */ 11044#include <assert.h> 11045/* Override any gcc2 internal prototype to avoid an error. */ 11046#ifdef __cplusplus 11047extern "C" 11048#endif 11049/* We use char because int might match the return type of a gcc2 11050 builtin and then its argument prototype would still apply. */ 11051char $ac_func (); 11052char (*f) (); 11053 11054int 11055main () 11056{ 11057/* The GNU C library defines this for functions which it implements 11058 to always fail with ENOSYS. Some functions are actually named 11059 something starting with __ and the normal name is an alias. */ 11060#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11061choke me 11062#else 11063f = $ac_func; 11064#endif 11065 11066 ; 11067 return 0; 11068} 11069_ACEOF 11070rm -f conftest.$ac_objext conftest$ac_exeext 11071if { (eval echo "$as_me:11071: \"$ac_link\"") >&5 11072 (eval $ac_link) 2>&5 11073 ac_status=$? 11074 echo "$as_me:11074: \$? = $ac_status" >&5 11075 (exit $ac_status); } && 11076 { ac_try='test -s conftest$ac_exeext' 11077 { (eval echo "$as_me:11077: \"$ac_try\"") >&5 11078 (eval $ac_try) 2>&5 11079 ac_status=$? 11080 echo "$as_me:11080: \$? = $ac_status" >&5 11081 (exit $ac_status); }; }; then 11082 eval "$as_ac_var=yes" 11083else 11084 echo "$as_me: failed program was:" >&5 11085cat conftest.$ac_ext >&5 11086eval "$as_ac_var=no" 11087fi 11088rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11089fi 11090echo "$as_me:11090: result: `eval echo '${'$as_ac_var'}'`" >&5 11091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11092if test `eval echo '${'$as_ac_var'}'` = yes; then 11093 cat >>confdefs.h <<EOF 11094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11095EOF 11096 11097fi 11098done 11099 11100fi 11101# crypt 11102eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11103eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11104eval "LIB_crypt=$ac_res" 11105 11106case "$ac_res" in 11107 yes) 11108 eval "ac_cv_func_crypt=yes" 11109 eval "LIB_crypt=" 11110 cat >>confdefs.h <<EOF 11111#define $ac_tr_func 1 11112EOF 11113 11114 echo "$as_me:11114: result: yes" >&5 11115echo "${ECHO_T}yes" >&6 11116 ;; 11117 no) 11118 eval "ac_cv_func_crypt=no" 11119 eval "LIB_crypt=" 11120 echo "$as_me:11120: result: no" >&5 11121echo "${ECHO_T}no" >&6 11122 ;; 11123 *) 11124 eval "ac_cv_func_crypt=yes" 11125 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11126 cat >>confdefs.h <<EOF 11127#define $ac_tr_func 1 11128EOF 11129 11130 cat >>confdefs.h <<EOF 11131#define $ac_tr_lib 1 11132EOF 11133 11134 echo "$as_me:11134: result: yes, in $ac_res" >&5 11135echo "${ECHO_T}yes, in $ac_res" >&6 11136 ;; 11137esac 11138 11139echo "$as_me:11139: checking if gethostbyname is compatible with system prototype" >&5 11140echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6 11141if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then 11142 echo $ECHO_N "(cached) $ECHO_C" >&6 11143else 11144 cat >conftest.$ac_ext <<_ACEOF 11145#line 11145 "configure" 11146#include "confdefs.h" 11147 11148#ifdef HAVE_SYS_TYPES_H 11149#include <sys/types.h> 11150#endif 11151#ifdef HAVE_SYS_SOCKET_H 11152#include <sys/socket.h> 11153#endif 11154#ifdef HAVE_NETINET_IN_H 11155#include <netinet/in.h> 11156#endif 11157#ifdef HAVE_ARPA_INET_H 11158#include <arpa/inet.h> 11159#endif 11160#ifdef HAVE_NETDB_H 11161#include <netdb.h> 11162#endif 11163 11164int 11165main () 11166{ 11167struct hostent *gethostbyname(const char *); 11168 ; 11169 return 0; 11170} 11171_ACEOF 11172rm -f conftest.$ac_objext 11173if { (eval echo "$as_me:11173: \"$ac_compile\"") >&5 11174 (eval $ac_compile) 2>&5 11175 ac_status=$? 11176 echo "$as_me:11176: \$? = $ac_status" >&5 11177 (exit $ac_status); } && 11178 { ac_try='test -s conftest.$ac_objext' 11179 { (eval echo "$as_me:11179: \"$ac_try\"") >&5 11180 (eval $ac_try) 2>&5 11181 ac_status=$? 11182 echo "$as_me:11182: \$? = $ac_status" >&5 11183 (exit $ac_status); }; }; then 11184 eval "ac_cv_func_gethostbyname_proto_compat=yes" 11185else 11186 echo "$as_me: failed program was:" >&5 11187cat conftest.$ac_ext >&5 11188eval "ac_cv_func_gethostbyname_proto_compat=no" 11189fi 11190rm -f conftest.$ac_objext conftest.$ac_ext 11191fi 11192echo "$as_me:11192: result: $ac_cv_func_gethostbyname_proto_compat" >&5 11193echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6 11194 11195if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 11196 11197cat >>confdefs.h <<\EOF 11198#define GETHOSTBYNAME_PROTO_COMPATIBLE 1 11199EOF 11200 11201fi 11202 11203echo "$as_me:11203: checking if gethostbyaddr is compatible with system prototype" >&5 11204echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6 11205if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then 11206 echo $ECHO_N "(cached) $ECHO_C" >&6 11207else 11208 cat >conftest.$ac_ext <<_ACEOF 11209#line 11209 "configure" 11210#include "confdefs.h" 11211 11212#ifdef HAVE_SYS_TYPES_H 11213#include <sys/types.h> 11214#endif 11215#ifdef HAVE_SYS_SOCKET_H 11216#include <sys/socket.h> 11217#endif 11218#ifdef HAVE_NETINET_IN_H 11219#include <netinet/in.h> 11220#endif 11221#ifdef HAVE_ARPA_INET_H 11222#include <arpa/inet.h> 11223#endif 11224#ifdef HAVE_NETDB_H 11225#include <netdb.h> 11226#endif 11227 11228int 11229main () 11230{ 11231struct hostent *gethostbyaddr(const void *, size_t, int); 11232 ; 11233 return 0; 11234} 11235_ACEOF 11236rm -f conftest.$ac_objext 11237if { (eval echo "$as_me:11237: \"$ac_compile\"") >&5 11238 (eval $ac_compile) 2>&5 11239 ac_status=$? 11240 echo "$as_me:11240: \$? = $ac_status" >&5 11241 (exit $ac_status); } && 11242 { ac_try='test -s conftest.$ac_objext' 11243 { (eval echo "$as_me:11243: \"$ac_try\"") >&5 11244 (eval $ac_try) 2>&5 11245 ac_status=$? 11246 echo "$as_me:11246: \$? = $ac_status" >&5 11247 (exit $ac_status); }; }; then 11248 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 11249else 11250 echo "$as_me: failed program was:" >&5 11251cat conftest.$ac_ext >&5 11252eval "ac_cv_func_gethostbyaddr_proto_compat=no" 11253fi 11254rm -f conftest.$ac_objext conftest.$ac_ext 11255fi 11256echo "$as_me:11256: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 11257echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6 11258 11259if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 11260 11261cat >>confdefs.h <<\EOF 11262#define GETHOSTBYADDR_PROTO_COMPATIBLE 1 11263EOF 11264 11265fi 11266 11267echo "$as_me:11267: checking if getservbyname is compatible with system prototype" >&5 11268echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6 11269if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then 11270 echo $ECHO_N "(cached) $ECHO_C" >&6 11271else 11272 cat >conftest.$ac_ext <<_ACEOF 11273#line 11273 "configure" 11274#include "confdefs.h" 11275 11276#ifdef HAVE_SYS_TYPES_H 11277#include <sys/types.h> 11278#endif 11279#ifdef HAVE_SYS_SOCKET_H 11280#include <sys/socket.h> 11281#endif 11282#ifdef HAVE_NETINET_IN_H 11283#include <netinet/in.h> 11284#endif 11285#ifdef HAVE_ARPA_INET_H 11286#include <arpa/inet.h> 11287#endif 11288#ifdef HAVE_NETDB_H 11289#include <netdb.h> 11290#endif 11291 11292int 11293main () 11294{ 11295struct servent *getservbyname(const char *, const char *); 11296 ; 11297 return 0; 11298} 11299_ACEOF 11300rm -f conftest.$ac_objext 11301if { (eval echo "$as_me:11301: \"$ac_compile\"") >&5 11302 (eval $ac_compile) 2>&5 11303 ac_status=$? 11304 echo "$as_me:11304: \$? = $ac_status" >&5 11305 (exit $ac_status); } && 11306 { ac_try='test -s conftest.$ac_objext' 11307 { (eval echo "$as_me:11307: \"$ac_try\"") >&5 11308 (eval $ac_try) 2>&5 11309 ac_status=$? 11310 echo "$as_me:11310: \$? = $ac_status" >&5 11311 (exit $ac_status); }; }; then 11312 eval "ac_cv_func_getservbyname_proto_compat=yes" 11313else 11314 echo "$as_me: failed program was:" >&5 11315cat conftest.$ac_ext >&5 11316eval "ac_cv_func_getservbyname_proto_compat=no" 11317fi 11318rm -f conftest.$ac_objext conftest.$ac_ext 11319fi 11320echo "$as_me:11320: result: $ac_cv_func_getservbyname_proto_compat" >&5 11321echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6 11322 11323if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 11324 11325cat >>confdefs.h <<\EOF 11326#define GETSERVBYNAME_PROTO_COMPATIBLE 1 11327EOF 11328 11329fi 11330 11331echo "$as_me:11331: checking if getsockname is compatible with system prototype" >&5 11332echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6 11333if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then 11334 echo $ECHO_N "(cached) $ECHO_C" >&6 11335else 11336 cat >conftest.$ac_ext <<_ACEOF 11337#line 11337 "configure" 11338#include "confdefs.h" 11339 11340#ifdef HAVE_SYS_TYPES_H 11341#include <sys/types.h> 11342#endif 11343#ifdef HAVE_SYS_SOCKET_H 11344#include <sys/socket.h> 11345#endif 11346 11347int 11348main () 11349{ 11350int getsockname(int, struct sockaddr*, socklen_t*); 11351 ; 11352 return 0; 11353} 11354_ACEOF 11355rm -f conftest.$ac_objext 11356if { (eval echo "$as_me:11356: \"$ac_compile\"") >&5 11357 (eval $ac_compile) 2>&5 11358 ac_status=$? 11359 echo "$as_me:11359: \$? = $ac_status" >&5 11360 (exit $ac_status); } && 11361 { ac_try='test -s conftest.$ac_objext' 11362 { (eval echo "$as_me:11362: \"$ac_try\"") >&5 11363 (eval $ac_try) 2>&5 11364 ac_status=$? 11365 echo "$as_me:11365: \$? = $ac_status" >&5 11366 (exit $ac_status); }; }; then 11367 eval "ac_cv_func_getsockname_proto_compat=yes" 11368else 11369 echo "$as_me: failed program was:" >&5 11370cat conftest.$ac_ext >&5 11371eval "ac_cv_func_getsockname_proto_compat=no" 11372fi 11373rm -f conftest.$ac_objext conftest.$ac_ext 11374fi 11375echo "$as_me:11375: result: $ac_cv_func_getsockname_proto_compat" >&5 11376echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6 11377 11378if test "$ac_cv_func_getsockname_proto_compat" = yes; then 11379 11380cat >>confdefs.h <<\EOF 11381#define GETSOCKNAME_PROTO_COMPATIBLE 1 11382EOF 11383 11384fi 11385 11386echo "$as_me:11386: checking if openlog is compatible with system prototype" >&5 11387echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6 11388if test "${ac_cv_func_openlog_proto_compat+set}" = set; then 11389 echo $ECHO_N "(cached) $ECHO_C" >&6 11390else 11391 cat >conftest.$ac_ext <<_ACEOF 11392#line 11392 "configure" 11393#include "confdefs.h" 11394 11395#ifdef HAVE_SYSLOG_H 11396#include <syslog.h> 11397#endif 11398 11399int 11400main () 11401{ 11402void openlog(const char *, int, int); 11403 ; 11404 return 0; 11405} 11406_ACEOF 11407rm -f conftest.$ac_objext 11408if { (eval echo "$as_me:11408: \"$ac_compile\"") >&5 11409 (eval $ac_compile) 2>&5 11410 ac_status=$? 11411 echo "$as_me:11411: \$? = $ac_status" >&5 11412 (exit $ac_status); } && 11413 { ac_try='test -s conftest.$ac_objext' 11414 { (eval echo "$as_me:11414: \"$ac_try\"") >&5 11415 (eval $ac_try) 2>&5 11416 ac_status=$? 11417 echo "$as_me:11417: \$? = $ac_status" >&5 11418 (exit $ac_status); }; }; then 11419 eval "ac_cv_func_openlog_proto_compat=yes" 11420else 11421 echo "$as_me: failed program was:" >&5 11422cat conftest.$ac_ext >&5 11423eval "ac_cv_func_openlog_proto_compat=no" 11424fi 11425rm -f conftest.$ac_objext conftest.$ac_ext 11426fi 11427echo "$as_me:11427: result: $ac_cv_func_openlog_proto_compat" >&5 11428echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6 11429 11430if test "$ac_cv_func_openlog_proto_compat" = yes; then 11431 11432cat >>confdefs.h <<\EOF 11433#define OPENLOG_PROTO_COMPATIBLE 1 11434EOF 11435 11436fi 11437 11438if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 11439echo "$as_me:11439: checking if crypt needs a prototype" >&5 11440echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6 11441if test "${ac_cv_func_crypt_noproto+set}" = set; then 11442 echo $ECHO_N "(cached) $ECHO_C" >&6 11443else 11444 cat >conftest.$ac_ext <<_ACEOF 11445#line 11445 "configure" 11446#include "confdefs.h" 11447 11448#ifdef HAVE_CRYPT_H 11449#include <crypt.h> 11450#endif 11451#ifdef HAVE_UNISTD_H 11452#include <unistd.h> 11453#endif 11454 11455int 11456main () 11457{ 11458struct foo { int foo; } xx; 11459extern int crypt (struct foo*); 11460crypt(&xx); 11461 11462 ; 11463 return 0; 11464} 11465_ACEOF 11466rm -f conftest.$ac_objext 11467if { (eval echo "$as_me:11467: \"$ac_compile\"") >&5 11468 (eval $ac_compile) 2>&5 11469 ac_status=$? 11470 echo "$as_me:11470: \$? = $ac_status" >&5 11471 (exit $ac_status); } && 11472 { ac_try='test -s conftest.$ac_objext' 11473 { (eval echo "$as_me:11473: \"$ac_try\"") >&5 11474 (eval $ac_try) 2>&5 11475 ac_status=$? 11476 echo "$as_me:11476: \$? = $ac_status" >&5 11477 (exit $ac_status); }; }; then 11478 eval "ac_cv_func_crypt_noproto=yes" 11479else 11480 echo "$as_me: failed program was:" >&5 11481cat conftest.$ac_ext >&5 11482eval "ac_cv_func_crypt_noproto=no" 11483fi 11484rm -f conftest.$ac_objext conftest.$ac_ext 11485fi 11486echo "$as_me:11486: result: $ac_cv_func_crypt_noproto" >&5 11487echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6 11488 11489if test "$ac_cv_func_crypt_noproto" = yes; then 11490 11491cat >>confdefs.h <<\EOF 11492#define NEED_CRYPT_PROTO 1 11493EOF 11494 11495fi 11496 11497fi 11498 11499if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 11500echo "$as_me:11500: checking if strtok_r needs a prototype" >&5 11501echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6 11502if test "${ac_cv_func_strtok_r_noproto+set}" = set; then 11503 echo $ECHO_N "(cached) $ECHO_C" >&6 11504else 11505 cat >conftest.$ac_ext <<_ACEOF 11506#line 11506 "configure" 11507#include "confdefs.h" 11508 11509#include <string.h> 11510 11511int 11512main () 11513{ 11514struct foo { int foo; } xx; 11515extern int strtok_r (struct foo*); 11516strtok_r(&xx); 11517 11518 ; 11519 return 0; 11520} 11521_ACEOF 11522rm -f conftest.$ac_objext 11523if { (eval echo "$as_me:11523: \"$ac_compile\"") >&5 11524 (eval $ac_compile) 2>&5 11525 ac_status=$? 11526 echo "$as_me:11526: \$? = $ac_status" >&5 11527 (exit $ac_status); } && 11528 { ac_try='test -s conftest.$ac_objext' 11529 { (eval echo "$as_me:11529: \"$ac_try\"") >&5 11530 (eval $ac_try) 2>&5 11531 ac_status=$? 11532 echo "$as_me:11532: \$? = $ac_status" >&5 11533 (exit $ac_status); }; }; then 11534 eval "ac_cv_func_strtok_r_noproto=yes" 11535else 11536 echo "$as_me: failed program was:" >&5 11537cat conftest.$ac_ext >&5 11538eval "ac_cv_func_strtok_r_noproto=no" 11539fi 11540rm -f conftest.$ac_objext conftest.$ac_ext 11541fi 11542echo "$as_me:11542: result: $ac_cv_func_strtok_r_noproto" >&5 11543echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6 11544 11545if test "$ac_cv_func_strtok_r_noproto" = yes; then 11546 11547cat >>confdefs.h <<\EOF 11548#define NEED_STRTOK_R_PROTO 1 11549EOF 11550 11551fi 11552 11553fi 11554 11555if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 11556echo "$as_me:11556: checking if strsep needs a prototype" >&5 11557echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6 11558if test "${ac_cv_func_strsep_noproto+set}" = set; then 11559 echo $ECHO_N "(cached) $ECHO_C" >&6 11560else 11561 cat >conftest.$ac_ext <<_ACEOF 11562#line 11562 "configure" 11563#include "confdefs.h" 11564 11565#include <string.h> 11566 11567int 11568main () 11569{ 11570struct foo { int foo; } xx; 11571extern int strsep (struct foo*); 11572strsep(&xx); 11573 11574 ; 11575 return 0; 11576} 11577_ACEOF 11578rm -f conftest.$ac_objext 11579if { (eval echo "$as_me:11579: \"$ac_compile\"") >&5 11580 (eval $ac_compile) 2>&5 11581 ac_status=$? 11582 echo "$as_me:11582: \$? = $ac_status" >&5 11583 (exit $ac_status); } && 11584 { ac_try='test -s conftest.$ac_objext' 11585 { (eval echo "$as_me:11585: \"$ac_try\"") >&5 11586 (eval $ac_try) 2>&5 11587 ac_status=$? 11588 echo "$as_me:11588: \$? = $ac_status" >&5 11589 (exit $ac_status); }; }; then 11590 eval "ac_cv_func_strsep_noproto=yes" 11591else 11592 echo "$as_me: failed program was:" >&5 11593cat conftest.$ac_ext >&5 11594eval "ac_cv_func_strsep_noproto=no" 11595fi 11596rm -f conftest.$ac_objext conftest.$ac_ext 11597fi 11598echo "$as_me:11598: result: $ac_cv_func_strsep_noproto" >&5 11599echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6 11600 11601if test "$ac_cv_func_strsep_noproto" = yes; then 11602 11603cat >>confdefs.h <<\EOF 11604#define NEED_STRSEP_PROTO 1 11605EOF 11606 11607fi 11608 11609fi 11610 11611echo "$as_me:11611: checking for h_errno" >&5 11612echo $ECHO_N "checking for h_errno... $ECHO_C" >&6 11613if test "${ac_cv_var_h_errno+set}" = set; then 11614 echo $ECHO_N "(cached) $ECHO_C" >&6 11615else 11616 11617cat >conftest.$ac_ext <<_ACEOF 11618#line 11618 "configure" 11619#include "confdefs.h" 11620extern int h_errno; 11621int foo() { return h_errno; } 11622int 11623main () 11624{ 11625foo() 11626 ; 11627 return 0; 11628} 11629_ACEOF 11630rm -f conftest.$ac_objext conftest$ac_exeext 11631if { (eval echo "$as_me:11631: \"$ac_link\"") >&5 11632 (eval $ac_link) 2>&5 11633 ac_status=$? 11634 echo "$as_me:11634: \$? = $ac_status" >&5 11635 (exit $ac_status); } && 11636 { ac_try='test -s conftest$ac_exeext' 11637 { (eval echo "$as_me:11637: \"$ac_try\"") >&5 11638 (eval $ac_try) 2>&5 11639 ac_status=$? 11640 echo "$as_me:11640: \$? = $ac_status" >&5 11641 (exit $ac_status); }; }; then 11642 ac_cv_var_h_errno=yes 11643else 11644 echo "$as_me: failed program was:" >&5 11645cat conftest.$ac_ext >&5 11646ac_cv_var_h_errno=no 11647fi 11648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11649 11650fi 11651 11652ac_foo=`eval echo \\$ac_cv_var_h_errno` 11653echo "$as_me:11653: result: $ac_foo" >&5 11654echo "${ECHO_T}$ac_foo" >&6 11655if test "$ac_foo" = yes; then 11656 11657cat >>confdefs.h <<EOF 11658#define HAVE_H_ERRNO 1 11659EOF 11660 11661echo "$as_me:11661: checking if h_errno is properly declared" >&5 11662echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6 11663if test "${ac_cv_var_h_errno_declaration+set}" = set; then 11664 echo $ECHO_N "(cached) $ECHO_C" >&6 11665else 11666 11667cat >conftest.$ac_ext <<_ACEOF 11668#line 11668 "configure" 11669#include "confdefs.h" 11670#ifdef HAVE_SYS_TYPES_H 11671#include <sys/types.h> 11672#endif 11673#ifdef HAVE_NETDB_H 11674#include <netdb.h> 11675#endif 11676extern struct { int foo; } h_errno; 11677int 11678main () 11679{ 11680h_errno.foo = 1; 11681 ; 11682 return 0; 11683} 11684_ACEOF 11685rm -f conftest.$ac_objext 11686if { (eval echo "$as_me:11686: \"$ac_compile\"") >&5 11687 (eval $ac_compile) 2>&5 11688 ac_status=$? 11689 echo "$as_me:11689: \$? = $ac_status" >&5 11690 (exit $ac_status); } && 11691 { ac_try='test -s conftest.$ac_objext' 11692 { (eval echo "$as_me:11692: \"$ac_try\"") >&5 11693 (eval $ac_try) 2>&5 11694 ac_status=$? 11695 echo "$as_me:11695: \$? = $ac_status" >&5 11696 (exit $ac_status); }; }; then 11697 eval "ac_cv_var_h_errno_declaration=no" 11698else 11699 echo "$as_me: failed program was:" >&5 11700cat conftest.$ac_ext >&5 11701eval "ac_cv_var_h_errno_declaration=yes" 11702fi 11703rm -f conftest.$ac_objext conftest.$ac_ext 11704 11705fi 11706 11707echo "$as_me:11707: result: $ac_cv_var_h_errno_declaration" >&5 11708echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6 11709if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then 11710 11711cat >>confdefs.h <<\EOF 11712#define HAVE_H_ERRNO_DECLARATION 1 11713EOF 11714 11715fi 11716 11717fi 11718 11719echo "$as_me:11719: checking for h_errlist" >&5 11720echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6 11721if test "${ac_cv_var_h_errlist+set}" = set; then 11722 echo $ECHO_N "(cached) $ECHO_C" >&6 11723else 11724 11725cat >conftest.$ac_ext <<_ACEOF 11726#line 11726 "configure" 11727#include "confdefs.h" 11728extern int h_errlist; 11729int foo() { return h_errlist; } 11730int 11731main () 11732{ 11733foo() 11734 ; 11735 return 0; 11736} 11737_ACEOF 11738rm -f conftest.$ac_objext conftest$ac_exeext 11739if { (eval echo "$as_me:11739: \"$ac_link\"") >&5 11740 (eval $ac_link) 2>&5 11741 ac_status=$? 11742 echo "$as_me:11742: \$? = $ac_status" >&5 11743 (exit $ac_status); } && 11744 { ac_try='test -s conftest$ac_exeext' 11745 { (eval echo "$as_me:11745: \"$ac_try\"") >&5 11746 (eval $ac_try) 2>&5 11747 ac_status=$? 11748 echo "$as_me:11748: \$? = $ac_status" >&5 11749 (exit $ac_status); }; }; then 11750 ac_cv_var_h_errlist=yes 11751else 11752 echo "$as_me: failed program was:" >&5 11753cat conftest.$ac_ext >&5 11754ac_cv_var_h_errlist=no 11755fi 11756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11757 11758fi 11759 11760ac_foo=`eval echo \\$ac_cv_var_h_errlist` 11761echo "$as_me:11761: result: $ac_foo" >&5 11762echo "${ECHO_T}$ac_foo" >&6 11763if test "$ac_foo" = yes; then 11764 11765cat >>confdefs.h <<EOF 11766#define HAVE_H_ERRLIST 1 11767EOF 11768 11769echo "$as_me:11769: checking if h_errlist is properly declared" >&5 11770echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6 11771if test "${ac_cv_var_h_errlist_declaration+set}" = set; then 11772 echo $ECHO_N "(cached) $ECHO_C" >&6 11773else 11774 11775cat >conftest.$ac_ext <<_ACEOF 11776#line 11776 "configure" 11777#include "confdefs.h" 11778#ifdef HAVE_NETDB_H 11779#include <netdb.h> 11780#endif 11781extern struct { int foo; } h_errlist; 11782int 11783main () 11784{ 11785h_errlist.foo = 1; 11786 ; 11787 return 0; 11788} 11789_ACEOF 11790rm -f conftest.$ac_objext 11791if { (eval echo "$as_me:11791: \"$ac_compile\"") >&5 11792 (eval $ac_compile) 2>&5 11793 ac_status=$? 11794 echo "$as_me:11794: \$? = $ac_status" >&5 11795 (exit $ac_status); } && 11796 { ac_try='test -s conftest.$ac_objext' 11797 { (eval echo "$as_me:11797: \"$ac_try\"") >&5 11798 (eval $ac_try) 2>&5 11799 ac_status=$? 11800 echo "$as_me:11800: \$? = $ac_status" >&5 11801 (exit $ac_status); }; }; then 11802 eval "ac_cv_var_h_errlist_declaration=no" 11803else 11804 echo "$as_me: failed program was:" >&5 11805cat conftest.$ac_ext >&5 11806eval "ac_cv_var_h_errlist_declaration=yes" 11807fi 11808rm -f conftest.$ac_objext conftest.$ac_ext 11809 11810fi 11811 11812echo "$as_me:11812: result: $ac_cv_var_h_errlist_declaration" >&5 11813echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6 11814if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then 11815 11816cat >>confdefs.h <<\EOF 11817#define HAVE_H_ERRLIST_DECLARATION 1 11818EOF 11819 11820fi 11821 11822fi 11823 11824echo "$as_me:11824: checking for h_nerr" >&5 11825echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6 11826if test "${ac_cv_var_h_nerr+set}" = set; then 11827 echo $ECHO_N "(cached) $ECHO_C" >&6 11828else 11829 11830cat >conftest.$ac_ext <<_ACEOF 11831#line 11831 "configure" 11832#include "confdefs.h" 11833extern int h_nerr; 11834int foo() { return h_nerr; } 11835int 11836main () 11837{ 11838foo() 11839 ; 11840 return 0; 11841} 11842_ACEOF 11843rm -f conftest.$ac_objext conftest$ac_exeext 11844if { (eval echo "$as_me:11844: \"$ac_link\"") >&5 11845 (eval $ac_link) 2>&5 11846 ac_status=$? 11847 echo "$as_me:11847: \$? = $ac_status" >&5 11848 (exit $ac_status); } && 11849 { ac_try='test -s conftest$ac_exeext' 11850 { (eval echo "$as_me:11850: \"$ac_try\"") >&5 11851 (eval $ac_try) 2>&5 11852 ac_status=$? 11853 echo "$as_me:11853: \$? = $ac_status" >&5 11854 (exit $ac_status); }; }; then 11855 ac_cv_var_h_nerr=yes 11856else 11857 echo "$as_me: failed program was:" >&5 11858cat conftest.$ac_ext >&5 11859ac_cv_var_h_nerr=no 11860fi 11861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11862 11863fi 11864 11865ac_foo=`eval echo \\$ac_cv_var_h_nerr` 11866echo "$as_me:11866: result: $ac_foo" >&5 11867echo "${ECHO_T}$ac_foo" >&6 11868if test "$ac_foo" = yes; then 11869 11870cat >>confdefs.h <<EOF 11871#define HAVE_H_NERR 1 11872EOF 11873 11874echo "$as_me:11874: checking if h_nerr is properly declared" >&5 11875echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6 11876if test "${ac_cv_var_h_nerr_declaration+set}" = set; then 11877 echo $ECHO_N "(cached) $ECHO_C" >&6 11878else 11879 11880cat >conftest.$ac_ext <<_ACEOF 11881#line 11881 "configure" 11882#include "confdefs.h" 11883#ifdef HAVE_NETDB_H 11884#include <netdb.h> 11885#endif 11886extern struct { int foo; } h_nerr; 11887int 11888main () 11889{ 11890h_nerr.foo = 1; 11891 ; 11892 return 0; 11893} 11894_ACEOF 11895rm -f conftest.$ac_objext 11896if { (eval echo "$as_me:11896: \"$ac_compile\"") >&5 11897 (eval $ac_compile) 2>&5 11898 ac_status=$? 11899 echo "$as_me:11899: \$? = $ac_status" >&5 11900 (exit $ac_status); } && 11901 { ac_try='test -s conftest.$ac_objext' 11902 { (eval echo "$as_me:11902: \"$ac_try\"") >&5 11903 (eval $ac_try) 2>&5 11904 ac_status=$? 11905 echo "$as_me:11905: \$? = $ac_status" >&5 11906 (exit $ac_status); }; }; then 11907 eval "ac_cv_var_h_nerr_declaration=no" 11908else 11909 echo "$as_me: failed program was:" >&5 11910cat conftest.$ac_ext >&5 11911eval "ac_cv_var_h_nerr_declaration=yes" 11912fi 11913rm -f conftest.$ac_objext conftest.$ac_ext 11914 11915fi 11916 11917echo "$as_me:11917: result: $ac_cv_var_h_nerr_declaration" >&5 11918echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6 11919if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then 11920 11921cat >>confdefs.h <<\EOF 11922#define HAVE_H_NERR_DECLARATION 1 11923EOF 11924 11925fi 11926 11927fi 11928 11929echo "$as_me:11929: checking for __progname" >&5 11930echo $ECHO_N "checking for __progname... $ECHO_C" >&6 11931if test "${ac_cv_var___progname+set}" = set; then 11932 echo $ECHO_N "(cached) $ECHO_C" >&6 11933else 11934 11935cat >conftest.$ac_ext <<_ACEOF 11936#line 11936 "configure" 11937#include "confdefs.h" 11938extern int __progname; 11939int foo() { return __progname; } 11940int 11941main () 11942{ 11943foo() 11944 ; 11945 return 0; 11946} 11947_ACEOF 11948rm -f conftest.$ac_objext conftest$ac_exeext 11949if { (eval echo "$as_me:11949: \"$ac_link\"") >&5 11950 (eval $ac_link) 2>&5 11951 ac_status=$? 11952 echo "$as_me:11952: \$? = $ac_status" >&5 11953 (exit $ac_status); } && 11954 { ac_try='test -s conftest$ac_exeext' 11955 { (eval echo "$as_me:11955: \"$ac_try\"") >&5 11956 (eval $ac_try) 2>&5 11957 ac_status=$? 11958 echo "$as_me:11958: \$? = $ac_status" >&5 11959 (exit $ac_status); }; }; then 11960 ac_cv_var___progname=yes 11961else 11962 echo "$as_me: failed program was:" >&5 11963cat conftest.$ac_ext >&5 11964ac_cv_var___progname=no 11965fi 11966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11967 11968fi 11969 11970ac_foo=`eval echo \\$ac_cv_var___progname` 11971echo "$as_me:11971: result: $ac_foo" >&5 11972echo "${ECHO_T}$ac_foo" >&6 11973if test "$ac_foo" = yes; then 11974 11975cat >>confdefs.h <<EOF 11976#define HAVE___PROGNAME 1 11977EOF 11978 11979echo "$as_me:11979: checking if __progname is properly declared" >&5 11980echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6 11981if test "${ac_cv_var___progname_declaration+set}" = set; then 11982 echo $ECHO_N "(cached) $ECHO_C" >&6 11983else 11984 11985cat >conftest.$ac_ext <<_ACEOF 11986#line 11986 "configure" 11987#include "confdefs.h" 11988#ifdef HAVE_ERR_H 11989#include <err.h> 11990#endif 11991extern struct { int foo; } __progname; 11992int 11993main () 11994{ 11995__progname.foo = 1; 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000rm -f conftest.$ac_objext 12001if { (eval echo "$as_me:12001: \"$ac_compile\"") >&5 12002 (eval $ac_compile) 2>&5 12003 ac_status=$? 12004 echo "$as_me:12004: \$? = $ac_status" >&5 12005 (exit $ac_status); } && 12006 { ac_try='test -s conftest.$ac_objext' 12007 { (eval echo "$as_me:12007: \"$ac_try\"") >&5 12008 (eval $ac_try) 2>&5 12009 ac_status=$? 12010 echo "$as_me:12010: \$? = $ac_status" >&5 12011 (exit $ac_status); }; }; then 12012 eval "ac_cv_var___progname_declaration=no" 12013else 12014 echo "$as_me: failed program was:" >&5 12015cat conftest.$ac_ext >&5 12016eval "ac_cv_var___progname_declaration=yes" 12017fi 12018rm -f conftest.$ac_objext conftest.$ac_ext 12019 12020fi 12021 12022echo "$as_me:12022: result: $ac_cv_var___progname_declaration" >&5 12023echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6 12024if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then 12025 12026cat >>confdefs.h <<\EOF 12027#define HAVE___PROGNAME_DECLARATION 1 12028EOF 12029 12030fi 12031 12032fi 12033 12034echo "$as_me:12034: checking if optarg is properly declared" >&5 12035echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6 12036if test "${ac_cv_var_optarg_declaration+set}" = set; then 12037 echo $ECHO_N "(cached) $ECHO_C" >&6 12038else 12039 12040cat >conftest.$ac_ext <<_ACEOF 12041#line 12041 "configure" 12042#include "confdefs.h" 12043#include <stdlib.h> 12044#ifdef HAVE_UNISTD_H 12045#include <unistd.h> 12046#endif 12047extern struct { int foo; } optarg; 12048int 12049main () 12050{ 12051optarg.foo = 1; 12052 ; 12053 return 0; 12054} 12055_ACEOF 12056rm -f conftest.$ac_objext 12057if { (eval echo "$as_me:12057: \"$ac_compile\"") >&5 12058 (eval $ac_compile) 2>&5 12059 ac_status=$? 12060 echo "$as_me:12060: \$? = $ac_status" >&5 12061 (exit $ac_status); } && 12062 { ac_try='test -s conftest.$ac_objext' 12063 { (eval echo "$as_me:12063: \"$ac_try\"") >&5 12064 (eval $ac_try) 2>&5 12065 ac_status=$? 12066 echo "$as_me:12066: \$? = $ac_status" >&5 12067 (exit $ac_status); }; }; then 12068 eval "ac_cv_var_optarg_declaration=no" 12069else 12070 echo "$as_me: failed program was:" >&5 12071cat conftest.$ac_ext >&5 12072eval "ac_cv_var_optarg_declaration=yes" 12073fi 12074rm -f conftest.$ac_objext conftest.$ac_ext 12075 12076fi 12077 12078echo "$as_me:12078: result: $ac_cv_var_optarg_declaration" >&5 12079echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6 12080if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then 12081 12082cat >>confdefs.h <<\EOF 12083#define HAVE_OPTARG_DECLARATION 1 12084EOF 12085 12086fi 12087 12088echo "$as_me:12088: checking if optind is properly declared" >&5 12089echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6 12090if test "${ac_cv_var_optind_declaration+set}" = set; then 12091 echo $ECHO_N "(cached) $ECHO_C" >&6 12092else 12093 12094cat >conftest.$ac_ext <<_ACEOF 12095#line 12095 "configure" 12096#include "confdefs.h" 12097#include <stdlib.h> 12098#ifdef HAVE_UNISTD_H 12099#include <unistd.h> 12100#endif 12101extern struct { int foo; } optind; 12102int 12103main () 12104{ 12105optind.foo = 1; 12106 ; 12107 return 0; 12108} 12109_ACEOF 12110rm -f conftest.$ac_objext 12111if { (eval echo "$as_me:12111: \"$ac_compile\"") >&5 12112 (eval $ac_compile) 2>&5 12113 ac_status=$? 12114 echo "$as_me:12114: \$? = $ac_status" >&5 12115 (exit $ac_status); } && 12116 { ac_try='test -s conftest.$ac_objext' 12117 { (eval echo "$as_me:12117: \"$ac_try\"") >&5 12118 (eval $ac_try) 2>&5 12119 ac_status=$? 12120 echo "$as_me:12120: \$? = $ac_status" >&5 12121 (exit $ac_status); }; }; then 12122 eval "ac_cv_var_optind_declaration=no" 12123else 12124 echo "$as_me: failed program was:" >&5 12125cat conftest.$ac_ext >&5 12126eval "ac_cv_var_optind_declaration=yes" 12127fi 12128rm -f conftest.$ac_objext conftest.$ac_ext 12129 12130fi 12131 12132echo "$as_me:12132: result: $ac_cv_var_optind_declaration" >&5 12133echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6 12134if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then 12135 12136cat >>confdefs.h <<\EOF 12137#define HAVE_OPTIND_DECLARATION 1 12138EOF 12139 12140fi 12141 12142echo "$as_me:12142: checking if opterr is properly declared" >&5 12143echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6 12144if test "${ac_cv_var_opterr_declaration+set}" = set; then 12145 echo $ECHO_N "(cached) $ECHO_C" >&6 12146else 12147 12148cat >conftest.$ac_ext <<_ACEOF 12149#line 12149 "configure" 12150#include "confdefs.h" 12151#include <stdlib.h> 12152#ifdef HAVE_UNISTD_H 12153#include <unistd.h> 12154#endif 12155extern struct { int foo; } opterr; 12156int 12157main () 12158{ 12159opterr.foo = 1; 12160 ; 12161 return 0; 12162} 12163_ACEOF 12164rm -f conftest.$ac_objext 12165if { (eval echo "$as_me:12165: \"$ac_compile\"") >&5 12166 (eval $ac_compile) 2>&5 12167 ac_status=$? 12168 echo "$as_me:12168: \$? = $ac_status" >&5 12169 (exit $ac_status); } && 12170 { ac_try='test -s conftest.$ac_objext' 12171 { (eval echo "$as_me:12171: \"$ac_try\"") >&5 12172 (eval $ac_try) 2>&5 12173 ac_status=$? 12174 echo "$as_me:12174: \$? = $ac_status" >&5 12175 (exit $ac_status); }; }; then 12176 eval "ac_cv_var_opterr_declaration=no" 12177else 12178 echo "$as_me: failed program was:" >&5 12179cat conftest.$ac_ext >&5 12180eval "ac_cv_var_opterr_declaration=yes" 12181fi 12182rm -f conftest.$ac_objext conftest.$ac_ext 12183 12184fi 12185 12186echo "$as_me:12186: result: $ac_cv_var_opterr_declaration" >&5 12187echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6 12188if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then 12189 12190cat >>confdefs.h <<\EOF 12191#define HAVE_OPTERR_DECLARATION 1 12192EOF 12193 12194fi 12195 12196echo "$as_me:12196: checking if optopt is properly declared" >&5 12197echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6 12198if test "${ac_cv_var_optopt_declaration+set}" = set; then 12199 echo $ECHO_N "(cached) $ECHO_C" >&6 12200else 12201 12202cat >conftest.$ac_ext <<_ACEOF 12203#line 12203 "configure" 12204#include "confdefs.h" 12205#include <stdlib.h> 12206#ifdef HAVE_UNISTD_H 12207#include <unistd.h> 12208#endif 12209extern struct { int foo; } optopt; 12210int 12211main () 12212{ 12213optopt.foo = 1; 12214 ; 12215 return 0; 12216} 12217_ACEOF 12218rm -f conftest.$ac_objext 12219if { (eval echo "$as_me:12219: \"$ac_compile\"") >&5 12220 (eval $ac_compile) 2>&5 12221 ac_status=$? 12222 echo "$as_me:12222: \$? = $ac_status" >&5 12223 (exit $ac_status); } && 12224 { ac_try='test -s conftest.$ac_objext' 12225 { (eval echo "$as_me:12225: \"$ac_try\"") >&5 12226 (eval $ac_try) 2>&5 12227 ac_status=$? 12228 echo "$as_me:12228: \$? = $ac_status" >&5 12229 (exit $ac_status); }; }; then 12230 eval "ac_cv_var_optopt_declaration=no" 12231else 12232 echo "$as_me: failed program was:" >&5 12233cat conftest.$ac_ext >&5 12234eval "ac_cv_var_optopt_declaration=yes" 12235fi 12236rm -f conftest.$ac_objext conftest.$ac_ext 12237 12238fi 12239 12240echo "$as_me:12240: result: $ac_cv_var_optopt_declaration" >&5 12241echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6 12242if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then 12243 12244cat >>confdefs.h <<\EOF 12245#define HAVE_OPTOPT_DECLARATION 1 12246EOF 12247 12248fi 12249 12250echo "$as_me:12250: checking if environ is properly declared" >&5 12251echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6 12252if test "${ac_cv_var_environ_declaration+set}" = set; then 12253 echo $ECHO_N "(cached) $ECHO_C" >&6 12254else 12255 12256cat >conftest.$ac_ext <<_ACEOF 12257#line 12257 "configure" 12258#include "confdefs.h" 12259#include <stdlib.h> 12260extern struct { int foo; } environ; 12261int 12262main () 12263{ 12264environ.foo = 1; 12265 ; 12266 return 0; 12267} 12268_ACEOF 12269rm -f conftest.$ac_objext 12270if { (eval echo "$as_me:12270: \"$ac_compile\"") >&5 12271 (eval $ac_compile) 2>&5 12272 ac_status=$? 12273 echo "$as_me:12273: \$? = $ac_status" >&5 12274 (exit $ac_status); } && 12275 { ac_try='test -s conftest.$ac_objext' 12276 { (eval echo "$as_me:12276: \"$ac_try\"") >&5 12277 (eval $ac_try) 2>&5 12278 ac_status=$? 12279 echo "$as_me:12279: \$? = $ac_status" >&5 12280 (exit $ac_status); }; }; then 12281 eval "ac_cv_var_environ_declaration=no" 12282else 12283 echo "$as_me: failed program was:" >&5 12284cat conftest.$ac_ext >&5 12285eval "ac_cv_var_environ_declaration=yes" 12286fi 12287rm -f conftest.$ac_objext conftest.$ac_ext 12288 12289fi 12290 12291echo "$as_me:12291: result: $ac_cv_var_environ_declaration" >&5 12292echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6 12293if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then 12294 12295cat >>confdefs.h <<\EOF 12296#define HAVE_ENVIRON_DECLARATION 1 12297EOF 12298 12299fi 12300 12301echo "$as_me:12301: checking for tm_gmtoff in struct tm" >&5 12302echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 12303if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 12304 echo $ECHO_N "(cached) $ECHO_C" >&6 12305else 12306 12307cat >conftest.$ac_ext <<_ACEOF 12308#line 12308 "configure" 12309#include "confdefs.h" 12310#include <time.h> 12311int 12312main () 12313{ 12314struct tm x; x.tm_gmtoff; 12315 ; 12316 return 0; 12317} 12318_ACEOF 12319rm -f conftest.$ac_objext 12320if { (eval echo "$as_me:12320: \"$ac_compile\"") >&5 12321 (eval $ac_compile) 2>&5 12322 ac_status=$? 12323 echo "$as_me:12323: \$? = $ac_status" >&5 12324 (exit $ac_status); } && 12325 { ac_try='test -s conftest.$ac_objext' 12326 { (eval echo "$as_me:12326: \"$ac_try\"") >&5 12327 (eval $ac_try) 2>&5 12328 ac_status=$? 12329 echo "$as_me:12329: \$? = $ac_status" >&5 12330 (exit $ac_status); }; }; then 12331 ac_cv_type_struct_tm_tm_gmtoff=yes 12332else 12333 echo "$as_me: failed program was:" >&5 12334cat conftest.$ac_ext >&5 12335ac_cv_type_struct_tm_tm_gmtoff=no 12336fi 12337rm -f conftest.$ac_objext conftest.$ac_ext 12338fi 12339echo "$as_me:12339: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 12340echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6 12341if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 12342 12343cat >>confdefs.h <<\EOF 12344#define HAVE_STRUCT_TM_TM_GMTOFF 1 12345EOF 12346 12347fi 12348 12349echo "$as_me:12349: checking for tm_zone in struct tm" >&5 12350echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 12351if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 12352 echo $ECHO_N "(cached) $ECHO_C" >&6 12353else 12354 12355cat >conftest.$ac_ext <<_ACEOF 12356#line 12356 "configure" 12357#include "confdefs.h" 12358#include <time.h> 12359int 12360main () 12361{ 12362struct tm x; x.tm_zone; 12363 ; 12364 return 0; 12365} 12366_ACEOF 12367rm -f conftest.$ac_objext 12368if { (eval echo "$as_me:12368: \"$ac_compile\"") >&5 12369 (eval $ac_compile) 2>&5 12370 ac_status=$? 12371 echo "$as_me:12371: \$? = $ac_status" >&5 12372 (exit $ac_status); } && 12373 { ac_try='test -s conftest.$ac_objext' 12374 { (eval echo "$as_me:12374: \"$ac_try\"") >&5 12375 (eval $ac_try) 2>&5 12376 ac_status=$? 12377 echo "$as_me:12377: \$? = $ac_status" >&5 12378 (exit $ac_status); }; }; then 12379 ac_cv_type_struct_tm_tm_zone=yes 12380else 12381 echo "$as_me: failed program was:" >&5 12382cat conftest.$ac_ext >&5 12383ac_cv_type_struct_tm_tm_zone=no 12384fi 12385rm -f conftest.$ac_objext conftest.$ac_ext 12386fi 12387echo "$as_me:12387: result: $ac_cv_type_struct_tm_tm_zone" >&5 12388echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6 12389if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 12390 12391cat >>confdefs.h <<\EOF 12392#define HAVE_STRUCT_TM_TM_ZONE 1 12393EOF 12394 12395fi 12396 12397echo "$as_me:12397: checking for timezone" >&5 12398echo $ECHO_N "checking for timezone... $ECHO_C" >&6 12399if test "${ac_cv_var_timezone+set}" = set; then 12400 echo $ECHO_N "(cached) $ECHO_C" >&6 12401else 12402 12403cat >conftest.$ac_ext <<_ACEOF 12404#line 12404 "configure" 12405#include "confdefs.h" 12406extern int timezone; 12407int foo() { return timezone; } 12408int 12409main () 12410{ 12411foo() 12412 ; 12413 return 0; 12414} 12415_ACEOF 12416rm -f conftest.$ac_objext conftest$ac_exeext 12417if { (eval echo "$as_me:12417: \"$ac_link\"") >&5 12418 (eval $ac_link) 2>&5 12419 ac_status=$? 12420 echo "$as_me:12420: \$? = $ac_status" >&5 12421 (exit $ac_status); } && 12422 { ac_try='test -s conftest$ac_exeext' 12423 { (eval echo "$as_me:12423: \"$ac_try\"") >&5 12424 (eval $ac_try) 2>&5 12425 ac_status=$? 12426 echo "$as_me:12426: \$? = $ac_status" >&5 12427 (exit $ac_status); }; }; then 12428 ac_cv_var_timezone=yes 12429else 12430 echo "$as_me: failed program was:" >&5 12431cat conftest.$ac_ext >&5 12432ac_cv_var_timezone=no 12433fi 12434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12435 12436fi 12437 12438ac_foo=`eval echo \\$ac_cv_var_timezone` 12439echo "$as_me:12439: result: $ac_foo" >&5 12440echo "${ECHO_T}$ac_foo" >&6 12441if test "$ac_foo" = yes; then 12442 12443cat >>confdefs.h <<EOF 12444#define HAVE_TIMEZONE 1 12445EOF 12446 12447echo "$as_me:12447: checking if timezone is properly declared" >&5 12448echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6 12449if test "${ac_cv_var_timezone_declaration+set}" = set; then 12450 echo $ECHO_N "(cached) $ECHO_C" >&6 12451else 12452 12453cat >conftest.$ac_ext <<_ACEOF 12454#line 12454 "configure" 12455#include "confdefs.h" 12456#include <time.h> 12457extern struct { int foo; } timezone; 12458int 12459main () 12460{ 12461timezone.foo = 1; 12462 ; 12463 return 0; 12464} 12465_ACEOF 12466rm -f conftest.$ac_objext 12467if { (eval echo "$as_me:12467: \"$ac_compile\"") >&5 12468 (eval $ac_compile) 2>&5 12469 ac_status=$? 12470 echo "$as_me:12470: \$? = $ac_status" >&5 12471 (exit $ac_status); } && 12472 { ac_try='test -s conftest.$ac_objext' 12473 { (eval echo "$as_me:12473: \"$ac_try\"") >&5 12474 (eval $ac_try) 2>&5 12475 ac_status=$? 12476 echo "$as_me:12476: \$? = $ac_status" >&5 12477 (exit $ac_status); }; }; then 12478 eval "ac_cv_var_timezone_declaration=no" 12479else 12480 echo "$as_me: failed program was:" >&5 12481cat conftest.$ac_ext >&5 12482eval "ac_cv_var_timezone_declaration=yes" 12483fi 12484rm -f conftest.$ac_objext conftest.$ac_ext 12485 12486fi 12487 12488echo "$as_me:12488: result: $ac_cv_var_timezone_declaration" >&5 12489echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6 12490if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 12491 12492cat >>confdefs.h <<\EOF 12493#define HAVE_TIMEZONE_DECLARATION 1 12494EOF 12495 12496fi 12497 12498fi 12499 12500cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 12501echo "$as_me:12501: checking for sa_family_t" >&5 12502echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 12503if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 12504 echo $ECHO_N "(cached) $ECHO_C" >&6 12505else 12506 cat >conftest.$ac_ext <<_ACEOF 12507#line 12507 "configure" 12508#include "confdefs.h" 12509#include <sys/types.h> 12510#if STDC_HEADERS 12511#include <stdlib.h> 12512#include <stddef.h> 12513#endif 12514#include <sys/socket.h> 12515int 12516main () 12517{ 12518sa_family_t foo; 12519 ; 12520 return 0; 12521} 12522_ACEOF 12523rm -f conftest.$ac_objext 12524if { (eval echo "$as_me:12524: \"$ac_compile\"") >&5 12525 (eval $ac_compile) 2>&5 12526 ac_status=$? 12527 echo "$as_me:12527: \$? = $ac_status" >&5 12528 (exit $ac_status); } && 12529 { ac_try='test -s conftest.$ac_objext' 12530 { (eval echo "$as_me:12530: \"$ac_try\"") >&5 12531 (eval $ac_try) 2>&5 12532 ac_status=$? 12533 echo "$as_me:12533: \$? = $ac_status" >&5 12534 (exit $ac_status); }; }; then 12535 eval "ac_cv_type_$cv=yes" 12536else 12537 echo "$as_me: failed program was:" >&5 12538cat conftest.$ac_ext >&5 12539eval "ac_cv_type_$cv=no" 12540fi 12541rm -f conftest.$ac_objext conftest.$ac_ext 12542fi 12543ac_foo=`eval echo \\$ac_cv_type_$cv` 12544echo "$as_me:12544: result: $ac_foo" >&5 12545echo "${ECHO_T}$ac_foo" >&6 12546if test "$ac_foo" = yes; then 12547 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 12548if false; then 12549 echo "$as_me:12549: checking for sa_family_t" >&5 12550echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 12551if test "${ac_cv_type_sa_family_t+set}" = set; then 12552 echo $ECHO_N "(cached) $ECHO_C" >&6 12553else 12554 cat >conftest.$ac_ext <<_ACEOF 12555#line 12555 "configure" 12556#include "confdefs.h" 12557$ac_includes_default 12558int 12559main () 12560{ 12561if ((sa_family_t *) 0) 12562 return 0; 12563if (sizeof (sa_family_t)) 12564 return 0; 12565 ; 12566 return 0; 12567} 12568_ACEOF 12569rm -f conftest.$ac_objext 12570if { (eval echo "$as_me:12570: \"$ac_compile\"") >&5 12571 (eval $ac_compile) 2>&5 12572 ac_status=$? 12573 echo "$as_me:12573: \$? = $ac_status" >&5 12574 (exit $ac_status); } && 12575 { ac_try='test -s conftest.$ac_objext' 12576 { (eval echo "$as_me:12576: \"$ac_try\"") >&5 12577 (eval $ac_try) 2>&5 12578 ac_status=$? 12579 echo "$as_me:12579: \$? = $ac_status" >&5 12580 (exit $ac_status); }; }; then 12581 ac_cv_type_sa_family_t=yes 12582else 12583 echo "$as_me: failed program was:" >&5 12584cat conftest.$ac_ext >&5 12585ac_cv_type_sa_family_t=no 12586fi 12587rm -f conftest.$ac_objext conftest.$ac_ext 12588fi 12589echo "$as_me:12589: result: $ac_cv_type_sa_family_t" >&5 12590echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6 12591if test $ac_cv_type_sa_family_t = yes; then 12592 12593cat >>confdefs.h <<EOF 12594#define HAVE_SA_FAMILY_T 1 12595EOF 12596 12597fi 12598 12599fi 12600 12601cat >>confdefs.h <<EOF 12602#define $ac_tr_hdr 1 12603EOF 12604 12605fi 12606 12607cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 12608echo "$as_me:12608: checking for socklen_t" >&5 12609echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 12610if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 12611 echo $ECHO_N "(cached) $ECHO_C" >&6 12612else 12613 cat >conftest.$ac_ext <<_ACEOF 12614#line 12614 "configure" 12615#include "confdefs.h" 12616#include <sys/types.h> 12617#if STDC_HEADERS 12618#include <stdlib.h> 12619#include <stddef.h> 12620#endif 12621#include <sys/socket.h> 12622int 12623main () 12624{ 12625socklen_t foo; 12626 ; 12627 return 0; 12628} 12629_ACEOF 12630rm -f conftest.$ac_objext 12631if { (eval echo "$as_me:12631: \"$ac_compile\"") >&5 12632 (eval $ac_compile) 2>&5 12633 ac_status=$? 12634 echo "$as_me:12634: \$? = $ac_status" >&5 12635 (exit $ac_status); } && 12636 { ac_try='test -s conftest.$ac_objext' 12637 { (eval echo "$as_me:12637: \"$ac_try\"") >&5 12638 (eval $ac_try) 2>&5 12639 ac_status=$? 12640 echo "$as_me:12640: \$? = $ac_status" >&5 12641 (exit $ac_status); }; }; then 12642 eval "ac_cv_type_$cv=yes" 12643else 12644 echo "$as_me: failed program was:" >&5 12645cat conftest.$ac_ext >&5 12646eval "ac_cv_type_$cv=no" 12647fi 12648rm -f conftest.$ac_objext conftest.$ac_ext 12649fi 12650ac_foo=`eval echo \\$ac_cv_type_$cv` 12651echo "$as_me:12651: result: $ac_foo" >&5 12652echo "${ECHO_T}$ac_foo" >&6 12653if test "$ac_foo" = yes; then 12654 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 12655if false; then 12656 echo "$as_me:12656: checking for socklen_t" >&5 12657echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 12658if test "${ac_cv_type_socklen_t+set}" = set; then 12659 echo $ECHO_N "(cached) $ECHO_C" >&6 12660else 12661 cat >conftest.$ac_ext <<_ACEOF 12662#line 12662 "configure" 12663#include "confdefs.h" 12664$ac_includes_default 12665int 12666main () 12667{ 12668if ((socklen_t *) 0) 12669 return 0; 12670if (sizeof (socklen_t)) 12671 return 0; 12672 ; 12673 return 0; 12674} 12675_ACEOF 12676rm -f conftest.$ac_objext 12677if { (eval echo "$as_me:12677: \"$ac_compile\"") >&5 12678 (eval $ac_compile) 2>&5 12679 ac_status=$? 12680 echo "$as_me:12680: \$? = $ac_status" >&5 12681 (exit $ac_status); } && 12682 { ac_try='test -s conftest.$ac_objext' 12683 { (eval echo "$as_me:12683: \"$ac_try\"") >&5 12684 (eval $ac_try) 2>&5 12685 ac_status=$? 12686 echo "$as_me:12686: \$? = $ac_status" >&5 12687 (exit $ac_status); }; }; then 12688 ac_cv_type_socklen_t=yes 12689else 12690 echo "$as_me: failed program was:" >&5 12691cat conftest.$ac_ext >&5 12692ac_cv_type_socklen_t=no 12693fi 12694rm -f conftest.$ac_objext conftest.$ac_ext 12695fi 12696echo "$as_me:12696: result: $ac_cv_type_socklen_t" >&5 12697echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 12698if test $ac_cv_type_socklen_t = yes; then 12699 12700cat >>confdefs.h <<EOF 12701#define HAVE_SOCKLEN_T 1 12702EOF 12703 12704fi 12705 12706fi 12707 12708cat >>confdefs.h <<EOF 12709#define $ac_tr_hdr 1 12710EOF 12711 12712fi 12713 12714cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 12715echo "$as_me:12715: checking for struct sockaddr" >&5 12716echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 12717if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 12718 echo $ECHO_N "(cached) $ECHO_C" >&6 12719else 12720 cat >conftest.$ac_ext <<_ACEOF 12721#line 12721 "configure" 12722#include "confdefs.h" 12723#include <sys/types.h> 12724#if STDC_HEADERS 12725#include <stdlib.h> 12726#include <stddef.h> 12727#endif 12728#include <sys/socket.h> 12729int 12730main () 12731{ 12732struct sockaddr foo; 12733 ; 12734 return 0; 12735} 12736_ACEOF 12737rm -f conftest.$ac_objext 12738if { (eval echo "$as_me:12738: \"$ac_compile\"") >&5 12739 (eval $ac_compile) 2>&5 12740 ac_status=$? 12741 echo "$as_me:12741: \$? = $ac_status" >&5 12742 (exit $ac_status); } && 12743 { ac_try='test -s conftest.$ac_objext' 12744 { (eval echo "$as_me:12744: \"$ac_try\"") >&5 12745 (eval $ac_try) 2>&5 12746 ac_status=$? 12747 echo "$as_me:12747: \$? = $ac_status" >&5 12748 (exit $ac_status); }; }; then 12749 eval "ac_cv_type_$cv=yes" 12750else 12751 echo "$as_me: failed program was:" >&5 12752cat conftest.$ac_ext >&5 12753eval "ac_cv_type_$cv=no" 12754fi 12755rm -f conftest.$ac_objext conftest.$ac_ext 12756fi 12757ac_foo=`eval echo \\$ac_cv_type_$cv` 12758echo "$as_me:12758: result: $ac_foo" >&5 12759echo "${ECHO_T}$ac_foo" >&6 12760if test "$ac_foo" = yes; then 12761 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 12762if false; then 12763 echo "$as_me:12763: checking for struct sockaddr" >&5 12764echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 12765if test "${ac_cv_type_struct_sockaddr+set}" = set; then 12766 echo $ECHO_N "(cached) $ECHO_C" >&6 12767else 12768 cat >conftest.$ac_ext <<_ACEOF 12769#line 12769 "configure" 12770#include "confdefs.h" 12771$ac_includes_default 12772int 12773main () 12774{ 12775if ((struct sockaddr *) 0) 12776 return 0; 12777if (sizeof (struct sockaddr)) 12778 return 0; 12779 ; 12780 return 0; 12781} 12782_ACEOF 12783rm -f conftest.$ac_objext 12784if { (eval echo "$as_me:12784: \"$ac_compile\"") >&5 12785 (eval $ac_compile) 2>&5 12786 ac_status=$? 12787 echo "$as_me:12787: \$? = $ac_status" >&5 12788 (exit $ac_status); } && 12789 { ac_try='test -s conftest.$ac_objext' 12790 { (eval echo "$as_me:12790: \"$ac_try\"") >&5 12791 (eval $ac_try) 2>&5 12792 ac_status=$? 12793 echo "$as_me:12793: \$? = $ac_status" >&5 12794 (exit $ac_status); }; }; then 12795 ac_cv_type_struct_sockaddr=yes 12796else 12797 echo "$as_me: failed program was:" >&5 12798cat conftest.$ac_ext >&5 12799ac_cv_type_struct_sockaddr=no 12800fi 12801rm -f conftest.$ac_objext conftest.$ac_ext 12802fi 12803echo "$as_me:12803: result: $ac_cv_type_struct_sockaddr" >&5 12804echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6 12805if test $ac_cv_type_struct_sockaddr = yes; then 12806 12807cat >>confdefs.h <<EOF 12808#define HAVE_STRUCT_SOCKADDR 1 12809EOF 12810 12811fi 12812 12813fi 12814 12815cat >>confdefs.h <<EOF 12816#define $ac_tr_hdr 1 12817EOF 12818 12819fi 12820 12821cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 12822echo "$as_me:12822: checking for struct sockaddr_storage" >&5 12823echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 12824if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 12825 echo $ECHO_N "(cached) $ECHO_C" >&6 12826else 12827 cat >conftest.$ac_ext <<_ACEOF 12828#line 12828 "configure" 12829#include "confdefs.h" 12830#include <sys/types.h> 12831#if STDC_HEADERS 12832#include <stdlib.h> 12833#include <stddef.h> 12834#endif 12835#include <sys/socket.h> 12836int 12837main () 12838{ 12839struct sockaddr_storage foo; 12840 ; 12841 return 0; 12842} 12843_ACEOF 12844rm -f conftest.$ac_objext 12845if { (eval echo "$as_me:12845: \"$ac_compile\"") >&5 12846 (eval $ac_compile) 2>&5 12847 ac_status=$? 12848 echo "$as_me:12848: \$? = $ac_status" >&5 12849 (exit $ac_status); } && 12850 { ac_try='test -s conftest.$ac_objext' 12851 { (eval echo "$as_me:12851: \"$ac_try\"") >&5 12852 (eval $ac_try) 2>&5 12853 ac_status=$? 12854 echo "$as_me:12854: \$? = $ac_status" >&5 12855 (exit $ac_status); }; }; then 12856 eval "ac_cv_type_$cv=yes" 12857else 12858 echo "$as_me: failed program was:" >&5 12859cat conftest.$ac_ext >&5 12860eval "ac_cv_type_$cv=no" 12861fi 12862rm -f conftest.$ac_objext conftest.$ac_ext 12863fi 12864ac_foo=`eval echo \\$ac_cv_type_$cv` 12865echo "$as_me:12865: result: $ac_foo" >&5 12866echo "${ECHO_T}$ac_foo" >&6 12867if test "$ac_foo" = yes; then 12868 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 12869if false; then 12870 echo "$as_me:12870: checking for struct sockaddr_storage" >&5 12871echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 12872if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 12873 echo $ECHO_N "(cached) $ECHO_C" >&6 12874else 12875 cat >conftest.$ac_ext <<_ACEOF 12876#line 12876 "configure" 12877#include "confdefs.h" 12878$ac_includes_default 12879int 12880main () 12881{ 12882if ((struct sockaddr_storage *) 0) 12883 return 0; 12884if (sizeof (struct sockaddr_storage)) 12885 return 0; 12886 ; 12887 return 0; 12888} 12889_ACEOF 12890rm -f conftest.$ac_objext 12891if { (eval echo "$as_me:12891: \"$ac_compile\"") >&5 12892 (eval $ac_compile) 2>&5 12893 ac_status=$? 12894 echo "$as_me:12894: \$? = $ac_status" >&5 12895 (exit $ac_status); } && 12896 { ac_try='test -s conftest.$ac_objext' 12897 { (eval echo "$as_me:12897: \"$ac_try\"") >&5 12898 (eval $ac_try) 2>&5 12899 ac_status=$? 12900 echo "$as_me:12900: \$? = $ac_status" >&5 12901 (exit $ac_status); }; }; then 12902 ac_cv_type_struct_sockaddr_storage=yes 12903else 12904 echo "$as_me: failed program was:" >&5 12905cat conftest.$ac_ext >&5 12906ac_cv_type_struct_sockaddr_storage=no 12907fi 12908rm -f conftest.$ac_objext conftest.$ac_ext 12909fi 12910echo "$as_me:12910: result: $ac_cv_type_struct_sockaddr_storage" >&5 12911echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 12912if test $ac_cv_type_struct_sockaddr_storage = yes; then 12913 12914cat >>confdefs.h <<EOF 12915#define HAVE_STRUCT_SOCKADDR_STORAGE 1 12916EOF 12917 12918fi 12919 12920fi 12921 12922cat >>confdefs.h <<EOF 12923#define $ac_tr_hdr 1 12924EOF 12925 12926fi 12927 12928cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 12929echo "$as_me:12929: checking for struct addrinfo" >&5 12930echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 12931if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 12932 echo $ECHO_N "(cached) $ECHO_C" >&6 12933else 12934 cat >conftest.$ac_ext <<_ACEOF 12935#line 12935 "configure" 12936#include "confdefs.h" 12937#include <sys/types.h> 12938#if STDC_HEADERS 12939#include <stdlib.h> 12940#include <stddef.h> 12941#endif 12942#include <netdb.h> 12943int 12944main () 12945{ 12946struct addrinfo foo; 12947 ; 12948 return 0; 12949} 12950_ACEOF 12951rm -f conftest.$ac_objext 12952if { (eval echo "$as_me:12952: \"$ac_compile\"") >&5 12953 (eval $ac_compile) 2>&5 12954 ac_status=$? 12955 echo "$as_me:12955: \$? = $ac_status" >&5 12956 (exit $ac_status); } && 12957 { ac_try='test -s conftest.$ac_objext' 12958 { (eval echo "$as_me:12958: \"$ac_try\"") >&5 12959 (eval $ac_try) 2>&5 12960 ac_status=$? 12961 echo "$as_me:12961: \$? = $ac_status" >&5 12962 (exit $ac_status); }; }; then 12963 eval "ac_cv_type_$cv=yes" 12964else 12965 echo "$as_me: failed program was:" >&5 12966cat conftest.$ac_ext >&5 12967eval "ac_cv_type_$cv=no" 12968fi 12969rm -f conftest.$ac_objext conftest.$ac_ext 12970fi 12971ac_foo=`eval echo \\$ac_cv_type_$cv` 12972echo "$as_me:12972: result: $ac_foo" >&5 12973echo "${ECHO_T}$ac_foo" >&6 12974if test "$ac_foo" = yes; then 12975 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 12976if false; then 12977 echo "$as_me:12977: checking for struct addrinfo" >&5 12978echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 12979if test "${ac_cv_type_struct_addrinfo+set}" = set; then 12980 echo $ECHO_N "(cached) $ECHO_C" >&6 12981else 12982 cat >conftest.$ac_ext <<_ACEOF 12983#line 12983 "configure" 12984#include "confdefs.h" 12985$ac_includes_default 12986int 12987main () 12988{ 12989if ((struct addrinfo *) 0) 12990 return 0; 12991if (sizeof (struct addrinfo)) 12992 return 0; 12993 ; 12994 return 0; 12995} 12996_ACEOF 12997rm -f conftest.$ac_objext 12998if { (eval echo "$as_me:12998: \"$ac_compile\"") >&5 12999 (eval $ac_compile) 2>&5 13000 ac_status=$? 13001 echo "$as_me:13001: \$? = $ac_status" >&5 13002 (exit $ac_status); } && 13003 { ac_try='test -s conftest.$ac_objext' 13004 { (eval echo "$as_me:13004: \"$ac_try\"") >&5 13005 (eval $ac_try) 2>&5 13006 ac_status=$? 13007 echo "$as_me:13007: \$? = $ac_status" >&5 13008 (exit $ac_status); }; }; then 13009 ac_cv_type_struct_addrinfo=yes 13010else 13011 echo "$as_me: failed program was:" >&5 13012cat conftest.$ac_ext >&5 13013ac_cv_type_struct_addrinfo=no 13014fi 13015rm -f conftest.$ac_objext conftest.$ac_ext 13016fi 13017echo "$as_me:13017: result: $ac_cv_type_struct_addrinfo" >&5 13018echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6 13019if test $ac_cv_type_struct_addrinfo = yes; then 13020 13021cat >>confdefs.h <<EOF 13022#define HAVE_STRUCT_ADDRINFO 1 13023EOF 13024 13025fi 13026 13027fi 13028 13029cat >>confdefs.h <<EOF 13030#define $ac_tr_hdr 1 13031EOF 13032 13033fi 13034 13035cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 13036echo "$as_me:13036: checking for struct ifaddrs" >&5 13037echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 13038if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 13039 echo $ECHO_N "(cached) $ECHO_C" >&6 13040else 13041 cat >conftest.$ac_ext <<_ACEOF 13042#line 13042 "configure" 13043#include "confdefs.h" 13044#include <sys/types.h> 13045#if STDC_HEADERS 13046#include <stdlib.h> 13047#include <stddef.h> 13048#endif 13049#include <ifaddrs.h> 13050int 13051main () 13052{ 13053struct ifaddrs foo; 13054 ; 13055 return 0; 13056} 13057_ACEOF 13058rm -f conftest.$ac_objext 13059if { (eval echo "$as_me:13059: \"$ac_compile\"") >&5 13060 (eval $ac_compile) 2>&5 13061 ac_status=$? 13062 echo "$as_me:13062: \$? = $ac_status" >&5 13063 (exit $ac_status); } && 13064 { ac_try='test -s conftest.$ac_objext' 13065 { (eval echo "$as_me:13065: \"$ac_try\"") >&5 13066 (eval $ac_try) 2>&5 13067 ac_status=$? 13068 echo "$as_me:13068: \$? = $ac_status" >&5 13069 (exit $ac_status); }; }; then 13070 eval "ac_cv_type_$cv=yes" 13071else 13072 echo "$as_me: failed program was:" >&5 13073cat conftest.$ac_ext >&5 13074eval "ac_cv_type_$cv=no" 13075fi 13076rm -f conftest.$ac_objext conftest.$ac_ext 13077fi 13078ac_foo=`eval echo \\$ac_cv_type_$cv` 13079echo "$as_me:13079: result: $ac_foo" >&5 13080echo "${ECHO_T}$ac_foo" >&6 13081if test "$ac_foo" = yes; then 13082 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 13083if false; then 13084 echo "$as_me:13084: checking for struct ifaddrs" >&5 13085echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 13086if test "${ac_cv_type_struct_ifaddrs+set}" = set; then 13087 echo $ECHO_N "(cached) $ECHO_C" >&6 13088else 13089 cat >conftest.$ac_ext <<_ACEOF 13090#line 13090 "configure" 13091#include "confdefs.h" 13092$ac_includes_default 13093int 13094main () 13095{ 13096if ((struct ifaddrs *) 0) 13097 return 0; 13098if (sizeof (struct ifaddrs)) 13099 return 0; 13100 ; 13101 return 0; 13102} 13103_ACEOF 13104rm -f conftest.$ac_objext 13105if { (eval echo "$as_me:13105: \"$ac_compile\"") >&5 13106 (eval $ac_compile) 2>&5 13107 ac_status=$? 13108 echo "$as_me:13108: \$? = $ac_status" >&5 13109 (exit $ac_status); } && 13110 { ac_try='test -s conftest.$ac_objext' 13111 { (eval echo "$as_me:13111: \"$ac_try\"") >&5 13112 (eval $ac_try) 2>&5 13113 ac_status=$? 13114 echo "$as_me:13114: \$? = $ac_status" >&5 13115 (exit $ac_status); }; }; then 13116 ac_cv_type_struct_ifaddrs=yes 13117else 13118 echo "$as_me: failed program was:" >&5 13119cat conftest.$ac_ext >&5 13120ac_cv_type_struct_ifaddrs=no 13121fi 13122rm -f conftest.$ac_objext conftest.$ac_ext 13123fi 13124echo "$as_me:13124: result: $ac_cv_type_struct_ifaddrs" >&5 13125echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6 13126if test $ac_cv_type_struct_ifaddrs = yes; then 13127 13128cat >>confdefs.h <<EOF 13129#define HAVE_STRUCT_IFADDRS 1 13130EOF 13131 13132fi 13133 13134fi 13135 13136cat >>confdefs.h <<EOF 13137#define $ac_tr_hdr 1 13138EOF 13139 13140fi 13141 13142echo "$as_me:13142: checking for struct winsize" >&5 13143echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6 13144if test "${ac_cv_struct_winsize+set}" = set; then 13145 echo $ECHO_N "(cached) $ECHO_C" >&6 13146else 13147 13148ac_cv_struct_winsize=no 13149for i in sys/termios.h sys/ioctl.h; do 13150cat >conftest.$ac_ext <<_ACEOF 13151#line 13151 "configure" 13152#include "confdefs.h" 13153#include <$i> 13154 13155_ACEOF 13156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13157 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 13158 ac_cv_struct_winsize=yes; break 13159fi 13160rm -f conftest* 13161done 13162 13163fi 13164 13165if test "$ac_cv_struct_winsize" = "yes"; then 13166 13167cat >>confdefs.h <<\EOF 13168#define HAVE_STRUCT_WINSIZE 1 13169EOF 13170 13171fi 13172echo "$as_me:13172: result: $ac_cv_struct_winsize" >&5 13173echo "${ECHO_T}$ac_cv_struct_winsize" >&6 13174cat >conftest.$ac_ext <<_ACEOF 13175#line 13175 "configure" 13176#include "confdefs.h" 13177#include <termios.h> 13178 13179_ACEOF 13180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13181 egrep "ws_xpixel" >/dev/null 2>&1; then 13182 13183cat >>confdefs.h <<\EOF 13184#define HAVE_WS_XPIXEL 1 13185EOF 13186 13187fi 13188rm -f conftest* 13189 13190cat >conftest.$ac_ext <<_ACEOF 13191#line 13191 "configure" 13192#include "confdefs.h" 13193#include <termios.h> 13194 13195_ACEOF 13196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13197 egrep "ws_ypixel" >/dev/null 2>&1; then 13198 13199cat >>confdefs.h <<\EOF 13200#define HAVE_WS_YPIXEL 1 13201EOF 13202 13203fi 13204rm -f conftest* 13205 13206echo "$as_me:13206: checking for struct spwd" >&5 13207echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6 13208if test "${ac_cv_struct_spwd+set}" = set; then 13209 echo $ECHO_N "(cached) $ECHO_C" >&6 13210else 13211 13212cat >conftest.$ac_ext <<_ACEOF 13213#line 13213 "configure" 13214#include "confdefs.h" 13215#include <pwd.h> 13216#ifdef HAVE_SHADOW_H 13217#include <shadow.h> 13218#endif 13219int 13220main () 13221{ 13222struct spwd foo; 13223 ; 13224 return 0; 13225} 13226_ACEOF 13227rm -f conftest.$ac_objext 13228if { (eval echo "$as_me:13228: \"$ac_compile\"") >&5 13229 (eval $ac_compile) 2>&5 13230 ac_status=$? 13231 echo "$as_me:13231: \$? = $ac_status" >&5 13232 (exit $ac_status); } && 13233 { ac_try='test -s conftest.$ac_objext' 13234 { (eval echo "$as_me:13234: \"$ac_try\"") >&5 13235 (eval $ac_try) 2>&5 13236 ac_status=$? 13237 echo "$as_me:13237: \$? = $ac_status" >&5 13238 (exit $ac_status); }; }; then 13239 ac_cv_struct_spwd=yes 13240else 13241 echo "$as_me: failed program was:" >&5 13242cat conftest.$ac_ext >&5 13243ac_cv_struct_spwd=no 13244fi 13245rm -f conftest.$ac_objext conftest.$ac_ext 13246 13247fi 13248 13249echo "$as_me:13249: result: $ac_cv_struct_spwd" >&5 13250echo "${ECHO_T}$ac_cv_struct_spwd" >&6 13251 13252if test "$ac_cv_struct_spwd" = "yes"; then 13253 13254cat >>confdefs.h <<\EOF 13255#define HAVE_STRUCT_SPWD 1 13256EOF 13257 13258fi 13259 13260LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 13261 13262LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 13263 13264# Check whether --with-openldap or --without-openldap was given. 13265if test "${with_openldap+set}" = set; then 13266 withval="$with_openldap" 13267 13268fi; 13269 13270# Check whether --with-openldap-lib or --without-openldap-lib was given. 13271if test "${with_openldap_lib+set}" = set; then 13272 withval="$with_openldap_lib" 13273 if test "$withval" = "yes" -o "$withval" = "no"; then 13274 { { echo "$as_me:13274: error: No argument for --with-openldap-lib" >&5 13275echo "$as_me: error: No argument for --with-openldap-lib" >&2;} 13276 { (exit 1); exit 1; }; } 13277elif test "X$with_openldap" = "X"; then 13278 with_openldap=yes 13279fi 13280fi; 13281 13282# Check whether --with-openldap-include or --without-openldap-include was given. 13283if test "${with_openldap_include+set}" = set; then 13284 withval="$with_openldap_include" 13285 if test "$withval" = "yes" -o "$withval" = "no"; then 13286 { { echo "$as_me:13286: error: No argument for --with-openldap-include" >&5 13287echo "$as_me: error: No argument for --with-openldap-include" >&2;} 13288 { (exit 1); exit 1; }; } 13289elif test "X$with_openldap" = "X"; then 13290 with_openldap=yes 13291fi 13292fi; 13293 13294echo "$as_me:13294: checking for openldap" >&5 13295echo $ECHO_N "checking for openldap... $ECHO_C" >&6 13296 13297case "$with_openldap" in 13298yes) ;; 13299no) ;; 13300"") ;; 13301*) if test "$with_openldap_include" = ""; then 13302 with_openldap_include="$with_openldap/include" 13303 fi 13304 if test "$with_openldap_lib" = ""; then 13305 with_openldap_lib="$with_openldap/lib$abilibdirext" 13306 fi 13307 ;; 13308esac 13309header_dirs= 13310lib_dirs= 13311d='' 13312for i in $d; do 13313 header_dirs="$header_dirs $i/include" 13314 lib_dirs="$lib_dirs $i/lib$abilibdirext" 13315done 13316 13317case "$with_openldap_include" in 13318yes) ;; 13319no) ;; 13320*) header_dirs="$with_openldap_include $header_dirs";; 13321esac 13322case "$with_openldap_lib" in 13323yes) ;; 13324no) ;; 13325*) lib_dirs="$with_openldap_lib $lib_dirs";; 13326esac 13327 13328save_CFLAGS="$CFLAGS" 13329save_LIBS="$LIBS" 13330ires= lres= 13331for i in $header_dirs; do 13332 CFLAGS="-I$i $save_CFLAGS" 13333 cat >conftest.$ac_ext <<_ACEOF 13334#line 13334 "configure" 13335#include "confdefs.h" 13336#include <lber.h> 13337#include <ldap.h> 13338int 13339main () 13340{ 13341 13342 ; 13343 return 0; 13344} 13345_ACEOF 13346rm -f conftest.$ac_objext 13347if { (eval echo "$as_me:13347: \"$ac_compile\"") >&5 13348 (eval $ac_compile) 2>&5 13349 ac_status=$? 13350 echo "$as_me:13350: \$? = $ac_status" >&5 13351 (exit $ac_status); } && 13352 { ac_try='test -s conftest.$ac_objext' 13353 { (eval echo "$as_me:13353: \"$ac_try\"") >&5 13354 (eval $ac_try) 2>&5 13355 ac_status=$? 13356 echo "$as_me:13356: \$? = $ac_status" >&5 13357 (exit $ac_status); }; }; then 13358 ires=$i;break 13359else 13360 echo "$as_me: failed program was:" >&5 13361cat conftest.$ac_ext >&5 13362fi 13363rm -f conftest.$ac_objext conftest.$ac_ext 13364done 13365for i in $lib_dirs; do 13366 LIBS="-L$i -lldap -llber $save_LIBS" 13367 cat >conftest.$ac_ext <<_ACEOF 13368#line 13368 "configure" 13369#include "confdefs.h" 13370#include <lber.h> 13371#include <ldap.h> 13372int 13373main () 13374{ 13375 13376 ; 13377 return 0; 13378} 13379_ACEOF 13380rm -f conftest.$ac_objext conftest$ac_exeext 13381if { (eval echo "$as_me:13381: \"$ac_link\"") >&5 13382 (eval $ac_link) 2>&5 13383 ac_status=$? 13384 echo "$as_me:13384: \$? = $ac_status" >&5 13385 (exit $ac_status); } && 13386 { ac_try='test -s conftest$ac_exeext' 13387 { (eval echo "$as_me:13387: \"$ac_try\"") >&5 13388 (eval $ac_try) 2>&5 13389 ac_status=$? 13390 echo "$as_me:13390: \$? = $ac_status" >&5 13391 (exit $ac_status); }; }; then 13392 lres=$i;break 13393else 13394 echo "$as_me: failed program was:" >&5 13395cat conftest.$ac_ext >&5 13396fi 13397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13398done 13399CFLAGS="$save_CFLAGS" 13400LIBS="$save_LIBS" 13401 13402if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 13403 openldap_includedir="$ires" 13404 openldap_libdir="$lres" 13405 INCLUDE_openldap="-I$openldap_includedir" 13406 LIB_openldap="-L$openldap_libdir -lldap -llber" 13407 13408cat >>confdefs.h <<EOF 13409#define OPENLDAP 1 13410EOF 13411 13412 with_openldap=yes 13413 echo "$as_me:13413: result: headers $ires, libraries $lres" >&5 13414echo "${ECHO_T}headers $ires, libraries $lres" >&6 13415else 13416 INCLUDE_openldap= 13417 LIB_openldap= 13418 with_openldap=no 13419 echo "$as_me:13419: result: $with_openldap" >&5 13420echo "${ECHO_T}$with_openldap" >&6 13421fi 13422 13423if test "$openldap_libdir"; then 13424 LIB_openldap="-R $openldap_libdir $LIB_openldap" 13425fi 13426 13427# Check whether --with-krb4 or --without-krb4 was given. 13428if test "${with_krb4+set}" = set; then 13429 withval="$with_krb4" 13430 13431fi; 13432 13433# Check whether --with-krb4-lib or --without-krb4-lib was given. 13434if test "${with_krb4_lib+set}" = set; then 13435 withval="$with_krb4_lib" 13436 if test "$withval" = "yes" -o "$withval" = "no"; then 13437 { { echo "$as_me:13437: error: No argument for --with-krb4-lib" >&5 13438echo "$as_me: error: No argument for --with-krb4-lib" >&2;} 13439 { (exit 1); exit 1; }; } 13440elif test "X$with_krb4" = "X"; then 13441 with_krb4=yes 13442fi 13443fi; 13444 13445# Check whether --with-krb4-include or --without-krb4-include was given. 13446if test "${with_krb4_include+set}" = set; then 13447 withval="$with_krb4_include" 13448 if test "$withval" = "yes" -o "$withval" = "no"; then 13449 { { echo "$as_me:13449: error: No argument for --with-krb4-include" >&5 13450echo "$as_me: error: No argument for --with-krb4-include" >&2;} 13451 { (exit 1); exit 1; }; } 13452elif test "X$with_krb4" = "X"; then 13453 with_krb4=yes 13454fi 13455fi; 13456 13457echo "$as_me:13457: checking for krb4" >&5 13458echo $ECHO_N "checking for krb4... $ECHO_C" >&6 13459 13460case "$with_krb4" in 13461yes) ;; 13462no) ;; 13463"") ;; 13464*) if test "$with_krb4_include" = ""; then 13465 with_krb4_include="$with_krb4/include" 13466 fi 13467 if test "$with_krb4_lib" = ""; then 13468 with_krb4_lib="$with_krb4/lib$abilibdirext" 13469 fi 13470 ;; 13471esac 13472header_dirs= 13473lib_dirs= 13474d='/usr/athena' 13475for i in $d; do 13476 header_dirs="$header_dirs $i/include" 13477 lib_dirs="$lib_dirs $i/lib$abilibdirext" 13478done 13479 13480case "$with_krb4_include" in 13481yes) ;; 13482no) ;; 13483*) header_dirs="$with_krb4_include $header_dirs";; 13484esac 13485case "$with_krb4_lib" in 13486yes) ;; 13487no) ;; 13488*) lib_dirs="$with_krb4_lib $lib_dirs";; 13489esac 13490 13491save_CFLAGS="$CFLAGS" 13492save_LIBS="$LIBS" 13493ires= lres= 13494for i in $header_dirs; do 13495 CFLAGS="-I$i $save_CFLAGS" 13496 cat >conftest.$ac_ext <<_ACEOF 13497#line 13497 "configure" 13498#include "confdefs.h" 13499#include <krb.h> 13500int 13501main () 13502{ 13503 13504 ; 13505 return 0; 13506} 13507_ACEOF 13508rm -f conftest.$ac_objext 13509if { (eval echo "$as_me:13509: \"$ac_compile\"") >&5 13510 (eval $ac_compile) 2>&5 13511 ac_status=$? 13512 echo "$as_me:13512: \$? = $ac_status" >&5 13513 (exit $ac_status); } && 13514 { ac_try='test -s conftest.$ac_objext' 13515 { (eval echo "$as_me:13515: \"$ac_try\"") >&5 13516 (eval $ac_try) 2>&5 13517 ac_status=$? 13518 echo "$as_me:13518: \$? = $ac_status" >&5 13519 (exit $ac_status); }; }; then 13520 ires=$i;break 13521else 13522 echo "$as_me: failed program was:" >&5 13523cat conftest.$ac_ext >&5 13524fi 13525rm -f conftest.$ac_objext conftest.$ac_ext 13526done 13527for i in $lib_dirs; do 13528 LIBS="-L$i -lkrb -ldes $save_LIBS" 13529 cat >conftest.$ac_ext <<_ACEOF 13530#line 13530 "configure" 13531#include "confdefs.h" 13532#include <krb.h> 13533int 13534main () 13535{ 13536 13537 ; 13538 return 0; 13539} 13540_ACEOF 13541rm -f conftest.$ac_objext conftest$ac_exeext 13542if { (eval echo "$as_me:13542: \"$ac_link\"") >&5 13543 (eval $ac_link) 2>&5 13544 ac_status=$? 13545 echo "$as_me:13545: \$? = $ac_status" >&5 13546 (exit $ac_status); } && 13547 { ac_try='test -s conftest$ac_exeext' 13548 { (eval echo "$as_me:13548: \"$ac_try\"") >&5 13549 (eval $ac_try) 2>&5 13550 ac_status=$? 13551 echo "$as_me:13551: \$? = $ac_status" >&5 13552 (exit $ac_status); }; }; then 13553 lres=$i;break 13554else 13555 echo "$as_me: failed program was:" >&5 13556cat conftest.$ac_ext >&5 13557fi 13558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13559done 13560CFLAGS="$save_CFLAGS" 13561LIBS="$save_LIBS" 13562 13563if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then 13564 krb4_includedir="$ires" 13565 krb4_libdir="$lres" 13566 INCLUDE_krb4="-I$krb4_includedir" 13567 LIB_krb4="-L$krb4_libdir -lkrb" 13568 13569cat >>confdefs.h <<EOF 13570#define KRB4 1 13571EOF 13572 13573 with_krb4=yes 13574 echo "$as_me:13574: result: headers $ires, libraries $lres" >&5 13575echo "${ECHO_T}headers $ires, libraries $lres" >&6 13576else 13577 INCLUDE_krb4= 13578 LIB_krb4= 13579 with_krb4=no 13580 echo "$as_me:13580: result: $with_krb4" >&5 13581echo "${ECHO_T}$with_krb4" >&6 13582fi 13583 13584LIB_kdb= 13585if test "$with_krb4" != "no"; then 13586 save_CFLAGS="$CFLAGS" 13587 CFLAGS="$CFLAGS $INCLUDE_krb4" 13588 save_LIBS="$LIBS" 13589 LIBS="$LIB_krb4 -ldes $LIBS" 13590 EXTRA_LIB45=lib45.a 13591 13592 echo "$as_me:13592: checking for four valued krb_put_int" >&5 13593echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6 13594if test "${ac_cv_func_krb_put_int_four+set}" = set; then 13595 echo $ECHO_N "(cached) $ECHO_C" >&6 13596else 13597 cat >conftest.$ac_ext <<_ACEOF 13598#line 13598 "configure" 13599#include "confdefs.h" 13600#include <krb.h> 13601int 13602main () 13603{ 13604 13605 char tmp[4]; 13606 krb_put_int(17, tmp, 4, sizeof(tmp)); 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611rm -f conftest.$ac_objext 13612if { (eval echo "$as_me:13612: \"$ac_compile\"") >&5 13613 (eval $ac_compile) 2>&5 13614 ac_status=$? 13615 echo "$as_me:13615: \$? = $ac_status" >&5 13616 (exit $ac_status); } && 13617 { ac_try='test -s conftest.$ac_objext' 13618 { (eval echo "$as_me:13618: \"$ac_try\"") >&5 13619 (eval $ac_try) 2>&5 13620 ac_status=$? 13621 echo "$as_me:13621: \$? = $ac_status" >&5 13622 (exit $ac_status); }; }; then 13623 ac_cv_func_krb_put_int_four=yes 13624else 13625 echo "$as_me: failed program was:" >&5 13626cat conftest.$ac_ext >&5 13627ac_cv_func_krb_put_int_four=no 13628fi 13629rm -f conftest.$ac_objext conftest.$ac_ext 13630 13631fi 13632echo "$as_me:13632: result: $ac_cv_func_krb_put_int_four" >&5 13633echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6 13634 if test "$ac_cv_func_krb_put_int_four" = yes; then 13635 13636cat >>confdefs.h <<\EOF 13637#define HAVE_FOUR_VALUED_KRB_PUT_INT 1 13638EOF 13639 13640 fi 13641 13642 echo "$as_me:13642: checking for KRB_VERIFY_SECURE" >&5 13643echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6 13644if test "${ac_cv_func_krb_verify_secure+set}" = set; then 13645 echo $ECHO_N "(cached) $ECHO_C" >&6 13646else 13647 cat >conftest.$ac_ext <<_ACEOF 13648#line 13648 "configure" 13649#include "confdefs.h" 13650#include <krb.h> 13651int 13652main () 13653{ 13654 13655 int x = KRB_VERIFY_SECURE 13656 ; 13657 return 0; 13658} 13659_ACEOF 13660rm -f conftest.$ac_objext 13661if { (eval echo "$as_me:13661: \"$ac_compile\"") >&5 13662 (eval $ac_compile) 2>&5 13663 ac_status=$? 13664 echo "$as_me:13664: \$? = $ac_status" >&5 13665 (exit $ac_status); } && 13666 { ac_try='test -s conftest.$ac_objext' 13667 { (eval echo "$as_me:13667: \"$ac_try\"") >&5 13668 (eval $ac_try) 2>&5 13669 ac_status=$? 13670 echo "$as_me:13670: \$? = $ac_status" >&5 13671 (exit $ac_status); }; }; then 13672 ac_cv_func_krb_verify_secure=yes 13673else 13674 echo "$as_me: failed program was:" >&5 13675cat conftest.$ac_ext >&5 13676ac_cv_func_krb_verify_secure=no 13677fi 13678rm -f conftest.$ac_objext conftest.$ac_ext 13679 13680fi 13681echo "$as_me:13681: result: $ac_cv_func_krb_verify_secure" >&5 13682echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6 13683 if test "$ac_cv_func_krb_verify_secure" != yes; then 13684 13685cat >>confdefs.h <<\EOF 13686#define KRB_VERIFY_SECURE 1 13687EOF 13688 13689cat >>confdefs.h <<\EOF 13690#define KRB_VERIFY_SECURE_FAIL 2 13691EOF 13692 13693 fi 13694 echo "$as_me:13694: checking for KRB_VERIFY_NOT_SECURE" >&5 13695echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6 13696if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then 13697 echo $ECHO_N "(cached) $ECHO_C" >&6 13698else 13699 cat >conftest.$ac_ext <<_ACEOF 13700#line 13700 "configure" 13701#include "confdefs.h" 13702#include <krb.h> 13703int 13704main () 13705{ 13706 13707 int x = KRB_VERIFY_NOT_SECURE 13708 ; 13709 return 0; 13710} 13711_ACEOF 13712rm -f conftest.$ac_objext 13713if { (eval echo "$as_me:13713: \"$ac_compile\"") >&5 13714 (eval $ac_compile) 2>&5 13715 ac_status=$? 13716 echo "$as_me:13716: \$? = $ac_status" >&5 13717 (exit $ac_status); } && 13718 { ac_try='test -s conftest.$ac_objext' 13719 { (eval echo "$as_me:13719: \"$ac_try\"") >&5 13720 (eval $ac_try) 2>&5 13721 ac_status=$? 13722 echo "$as_me:13722: \$? = $ac_status" >&5 13723 (exit $ac_status); }; }; then 13724 ac_cv_func_krb_verify_not_secure=yes 13725else 13726 echo "$as_me: failed program was:" >&5 13727cat conftest.$ac_ext >&5 13728ac_cv_func_krb_verify_not_secure=no 13729fi 13730rm -f conftest.$ac_objext conftest.$ac_ext 13731 13732fi 13733echo "$as_me:13733: result: $ac_cv_func_krb_verify_not_secure" >&5 13734echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6 13735 if test "$ac_cv_func_krb_verify_not_secure" != yes; then 13736 13737cat >>confdefs.h <<\EOF 13738#define KRB_VERIFY_NOT_SECURE 0 13739EOF 13740 13741 fi 13742 13743echo "$as_me:13743: checking for krb_enable_debug" >&5 13744echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6 13745if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then 13746 echo $ECHO_N "(cached) $ECHO_C" >&6 13747else 13748 13749if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then 13750 ac_save_LIBS="$LIBS" 13751 for ac_lib in "" ; do 13752 case "$ac_lib" in 13753 "") ;; 13754 yes) ac_lib="" ;; 13755 no) continue ;; 13756 -l*) ;; 13757 *) ac_lib="-l$ac_lib" ;; 13758 esac 13759 LIBS=" $ac_lib $ac_save_LIBS" 13760 cat >conftest.$ac_ext <<_ACEOF 13761#line 13761 "configure" 13762#include "confdefs.h" 13763 13764int 13765main () 13766{ 13767krb_enable_debug() 13768 ; 13769 return 0; 13770} 13771_ACEOF 13772rm -f conftest.$ac_objext conftest$ac_exeext 13773if { (eval echo "$as_me:13773: \"$ac_link\"") >&5 13774 (eval $ac_link) 2>&5 13775 ac_status=$? 13776 echo "$as_me:13776: \$? = $ac_status" >&5 13777 (exit $ac_status); } && 13778 { ac_try='test -s conftest$ac_exeext' 13779 { (eval echo "$as_me:13779: \"$ac_try\"") >&5 13780 (eval $ac_try) 2>&5 13781 ac_status=$? 13782 echo "$as_me:13782: \$? = $ac_status" >&5 13783 (exit $ac_status); }; }; then 13784 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 13785else 13786 echo "$as_me: failed program was:" >&5 13787cat conftest.$ac_ext >&5 13788fi 13789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13790 done 13791 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}" 13792 LIBS="$ac_save_LIBS" 13793fi 13794 13795fi 13796 13797eval "ac_res=\$ac_cv_funclib_krb_enable_debug" 13798 13799if false; then 13800 13801for ac_func in krb_enable_debug 13802do 13803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13804echo "$as_me:13804: checking for $ac_func" >&5 13805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13806if eval "test \"\${$as_ac_var+set}\" = set"; then 13807 echo $ECHO_N "(cached) $ECHO_C" >&6 13808else 13809 cat >conftest.$ac_ext <<_ACEOF 13810#line 13810 "configure" 13811#include "confdefs.h" 13812/* System header to define __stub macros and hopefully few prototypes, 13813 which can conflict with char $ac_func (); below. */ 13814#include <assert.h> 13815/* Override any gcc2 internal prototype to avoid an error. */ 13816#ifdef __cplusplus 13817extern "C" 13818#endif 13819/* We use char because int might match the return type of a gcc2 13820 builtin and then its argument prototype would still apply. */ 13821char $ac_func (); 13822char (*f) (); 13823 13824int 13825main () 13826{ 13827/* The GNU C library defines this for functions which it implements 13828 to always fail with ENOSYS. Some functions are actually named 13829 something starting with __ and the normal name is an alias. */ 13830#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13831choke me 13832#else 13833f = $ac_func; 13834#endif 13835 13836 ; 13837 return 0; 13838} 13839_ACEOF 13840rm -f conftest.$ac_objext conftest$ac_exeext 13841if { (eval echo "$as_me:13841: \"$ac_link\"") >&5 13842 (eval $ac_link) 2>&5 13843 ac_status=$? 13844 echo "$as_me:13844: \$? = $ac_status" >&5 13845 (exit $ac_status); } && 13846 { ac_try='test -s conftest$ac_exeext' 13847 { (eval echo "$as_me:13847: \"$ac_try\"") >&5 13848 (eval $ac_try) 2>&5 13849 ac_status=$? 13850 echo "$as_me:13850: \$? = $ac_status" >&5 13851 (exit $ac_status); }; }; then 13852 eval "$as_ac_var=yes" 13853else 13854 echo "$as_me: failed program was:" >&5 13855cat conftest.$ac_ext >&5 13856eval "$as_ac_var=no" 13857fi 13858rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13859fi 13860echo "$as_me:13860: result: `eval echo '${'$as_ac_var'}'`" >&5 13861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13862if test `eval echo '${'$as_ac_var'}'` = yes; then 13863 cat >>confdefs.h <<EOF 13864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13865EOF 13866 13867fi 13868done 13869 13870fi 13871# krb_enable_debug 13872eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13873eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13874eval "LIB_krb_enable_debug=$ac_res" 13875 13876case "$ac_res" in 13877 yes) 13878 eval "ac_cv_func_krb_enable_debug=yes" 13879 eval "LIB_krb_enable_debug=" 13880 cat >>confdefs.h <<EOF 13881#define $ac_tr_func 1 13882EOF 13883 13884 echo "$as_me:13884: result: yes" >&5 13885echo "${ECHO_T}yes" >&6 13886 ;; 13887 no) 13888 eval "ac_cv_func_krb_enable_debug=no" 13889 eval "LIB_krb_enable_debug=" 13890 echo "$as_me:13890: result: no" >&5 13891echo "${ECHO_T}no" >&6 13892 ;; 13893 *) 13894 eval "ac_cv_func_krb_enable_debug=yes" 13895 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 13896 cat >>confdefs.h <<EOF 13897#define $ac_tr_func 1 13898EOF 13899 13900 cat >>confdefs.h <<EOF 13901#define $ac_tr_lib 1 13902EOF 13903 13904 echo "$as_me:13904: result: yes, in $ac_res" >&5 13905echo "${ECHO_T}yes, in $ac_res" >&6 13906 ;; 13907esac 13908 13909if test -n "$LIB_krb_enable_debug"; then 13910 LIBS="$LIB_krb_enable_debug $LIBS" 13911fi 13912 13913echo "$as_me:13913: checking for krb_disable_debug" >&5 13914echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6 13915if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then 13916 echo $ECHO_N "(cached) $ECHO_C" >&6 13917else 13918 13919if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then 13920 ac_save_LIBS="$LIBS" 13921 for ac_lib in "" ; do 13922 case "$ac_lib" in 13923 "") ;; 13924 yes) ac_lib="" ;; 13925 no) continue ;; 13926 -l*) ;; 13927 *) ac_lib="-l$ac_lib" ;; 13928 esac 13929 LIBS=" $ac_lib $ac_save_LIBS" 13930 cat >conftest.$ac_ext <<_ACEOF 13931#line 13931 "configure" 13932#include "confdefs.h" 13933 13934int 13935main () 13936{ 13937krb_disable_debug() 13938 ; 13939 return 0; 13940} 13941_ACEOF 13942rm -f conftest.$ac_objext conftest$ac_exeext 13943if { (eval echo "$as_me:13943: \"$ac_link\"") >&5 13944 (eval $ac_link) 2>&5 13945 ac_status=$? 13946 echo "$as_me:13946: \$? = $ac_status" >&5 13947 (exit $ac_status); } && 13948 { ac_try='test -s conftest$ac_exeext' 13949 { (eval echo "$as_me:13949: \"$ac_try\"") >&5 13950 (eval $ac_try) 2>&5 13951 ac_status=$? 13952 echo "$as_me:13952: \$? = $ac_status" >&5 13953 (exit $ac_status); }; }; then 13954 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 13955else 13956 echo "$as_me: failed program was:" >&5 13957cat conftest.$ac_ext >&5 13958fi 13959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13960 done 13961 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}" 13962 LIBS="$ac_save_LIBS" 13963fi 13964 13965fi 13966 13967eval "ac_res=\$ac_cv_funclib_krb_disable_debug" 13968 13969if false; then 13970 13971for ac_func in krb_disable_debug 13972do 13973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13974echo "$as_me:13974: checking for $ac_func" >&5 13975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13976if eval "test \"\${$as_ac_var+set}\" = set"; then 13977 echo $ECHO_N "(cached) $ECHO_C" >&6 13978else 13979 cat >conftest.$ac_ext <<_ACEOF 13980#line 13980 "configure" 13981#include "confdefs.h" 13982/* System header to define __stub macros and hopefully few prototypes, 13983 which can conflict with char $ac_func (); below. */ 13984#include <assert.h> 13985/* Override any gcc2 internal prototype to avoid an error. */ 13986#ifdef __cplusplus 13987extern "C" 13988#endif 13989/* We use char because int might match the return type of a gcc2 13990 builtin and then its argument prototype would still apply. */ 13991char $ac_func (); 13992char (*f) (); 13993 13994int 13995main () 13996{ 13997/* The GNU C library defines this for functions which it implements 13998 to always fail with ENOSYS. Some functions are actually named 13999 something starting with __ and the normal name is an alias. */ 14000#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14001choke me 14002#else 14003f = $ac_func; 14004#endif 14005 14006 ; 14007 return 0; 14008} 14009_ACEOF 14010rm -f conftest.$ac_objext conftest$ac_exeext 14011if { (eval echo "$as_me:14011: \"$ac_link\"") >&5 14012 (eval $ac_link) 2>&5 14013 ac_status=$? 14014 echo "$as_me:14014: \$? = $ac_status" >&5 14015 (exit $ac_status); } && 14016 { ac_try='test -s conftest$ac_exeext' 14017 { (eval echo "$as_me:14017: \"$ac_try\"") >&5 14018 (eval $ac_try) 2>&5 14019 ac_status=$? 14020 echo "$as_me:14020: \$? = $ac_status" >&5 14021 (exit $ac_status); }; }; then 14022 eval "$as_ac_var=yes" 14023else 14024 echo "$as_me: failed program was:" >&5 14025cat conftest.$ac_ext >&5 14026eval "$as_ac_var=no" 14027fi 14028rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14029fi 14030echo "$as_me:14030: result: `eval echo '${'$as_ac_var'}'`" >&5 14031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14032if test `eval echo '${'$as_ac_var'}'` = yes; then 14033 cat >>confdefs.h <<EOF 14034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14035EOF 14036 14037fi 14038done 14039 14040fi 14041# krb_disable_debug 14042eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14043eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14044eval "LIB_krb_disable_debug=$ac_res" 14045 14046case "$ac_res" in 14047 yes) 14048 eval "ac_cv_func_krb_disable_debug=yes" 14049 eval "LIB_krb_disable_debug=" 14050 cat >>confdefs.h <<EOF 14051#define $ac_tr_func 1 14052EOF 14053 14054 echo "$as_me:14054: result: yes" >&5 14055echo "${ECHO_T}yes" >&6 14056 ;; 14057 no) 14058 eval "ac_cv_func_krb_disable_debug=no" 14059 eval "LIB_krb_disable_debug=" 14060 echo "$as_me:14060: result: no" >&5 14061echo "${ECHO_T}no" >&6 14062 ;; 14063 *) 14064 eval "ac_cv_func_krb_disable_debug=yes" 14065 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14066 cat >>confdefs.h <<EOF 14067#define $ac_tr_func 1 14068EOF 14069 14070 cat >>confdefs.h <<EOF 14071#define $ac_tr_lib 1 14072EOF 14073 14074 echo "$as_me:14074: result: yes, in $ac_res" >&5 14075echo "${ECHO_T}yes, in $ac_res" >&6 14076 ;; 14077esac 14078 14079if test -n "$LIB_krb_disable_debug"; then 14080 LIBS="$LIB_krb_disable_debug $LIBS" 14081fi 14082 14083echo "$as_me:14083: checking for krb_get_our_ip_for_realm" >&5 14084echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6 14085if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then 14086 echo $ECHO_N "(cached) $ECHO_C" >&6 14087else 14088 14089if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then 14090 ac_save_LIBS="$LIBS" 14091 for ac_lib in "" ; do 14092 case "$ac_lib" in 14093 "") ;; 14094 yes) ac_lib="" ;; 14095 no) continue ;; 14096 -l*) ;; 14097 *) ac_lib="-l$ac_lib" ;; 14098 esac 14099 LIBS=" $ac_lib $ac_save_LIBS" 14100 cat >conftest.$ac_ext <<_ACEOF 14101#line 14101 "configure" 14102#include "confdefs.h" 14103 14104int 14105main () 14106{ 14107krb_get_our_ip_for_realm() 14108 ; 14109 return 0; 14110} 14111_ACEOF 14112rm -f conftest.$ac_objext conftest$ac_exeext 14113if { (eval echo "$as_me:14113: \"$ac_link\"") >&5 14114 (eval $ac_link) 2>&5 14115 ac_status=$? 14116 echo "$as_me:14116: \$? = $ac_status" >&5 14117 (exit $ac_status); } && 14118 { ac_try='test -s conftest$ac_exeext' 14119 { (eval echo "$as_me:14119: \"$ac_try\"") >&5 14120 (eval $ac_try) 2>&5 14121 ac_status=$? 14122 echo "$as_me:14122: \$? = $ac_status" >&5 14123 (exit $ac_status); }; }; then 14124 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 14125else 14126 echo "$as_me: failed program was:" >&5 14127cat conftest.$ac_ext >&5 14128fi 14129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14130 done 14131 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}" 14132 LIBS="$ac_save_LIBS" 14133fi 14134 14135fi 14136 14137eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm" 14138 14139if false; then 14140 14141for ac_func in krb_get_our_ip_for_realm 14142do 14143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14144echo "$as_me:14144: checking for $ac_func" >&5 14145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14146if eval "test \"\${$as_ac_var+set}\" = set"; then 14147 echo $ECHO_N "(cached) $ECHO_C" >&6 14148else 14149 cat >conftest.$ac_ext <<_ACEOF 14150#line 14150 "configure" 14151#include "confdefs.h" 14152/* System header to define __stub macros and hopefully few prototypes, 14153 which can conflict with char $ac_func (); below. */ 14154#include <assert.h> 14155/* Override any gcc2 internal prototype to avoid an error. */ 14156#ifdef __cplusplus 14157extern "C" 14158#endif 14159/* We use char because int might match the return type of a gcc2 14160 builtin and then its argument prototype would still apply. */ 14161char $ac_func (); 14162char (*f) (); 14163 14164int 14165main () 14166{ 14167/* The GNU C library defines this for functions which it implements 14168 to always fail with ENOSYS. Some functions are actually named 14169 something starting with __ and the normal name is an alias. */ 14170#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14171choke me 14172#else 14173f = $ac_func; 14174#endif 14175 14176 ; 14177 return 0; 14178} 14179_ACEOF 14180rm -f conftest.$ac_objext conftest$ac_exeext 14181if { (eval echo "$as_me:14181: \"$ac_link\"") >&5 14182 (eval $ac_link) 2>&5 14183 ac_status=$? 14184 echo "$as_me:14184: \$? = $ac_status" >&5 14185 (exit $ac_status); } && 14186 { ac_try='test -s conftest$ac_exeext' 14187 { (eval echo "$as_me:14187: \"$ac_try\"") >&5 14188 (eval $ac_try) 2>&5 14189 ac_status=$? 14190 echo "$as_me:14190: \$? = $ac_status" >&5 14191 (exit $ac_status); }; }; then 14192 eval "$as_ac_var=yes" 14193else 14194 echo "$as_me: failed program was:" >&5 14195cat conftest.$ac_ext >&5 14196eval "$as_ac_var=no" 14197fi 14198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14199fi 14200echo "$as_me:14200: result: `eval echo '${'$as_ac_var'}'`" >&5 14201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14202if test `eval echo '${'$as_ac_var'}'` = yes; then 14203 cat >>confdefs.h <<EOF 14204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14205EOF 14206 14207fi 14208done 14209 14210fi 14211# krb_get_our_ip_for_realm 14212eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14213eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14214eval "LIB_krb_get_our_ip_for_realm=$ac_res" 14215 14216case "$ac_res" in 14217 yes) 14218 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 14219 eval "LIB_krb_get_our_ip_for_realm=" 14220 cat >>confdefs.h <<EOF 14221#define $ac_tr_func 1 14222EOF 14223 14224 echo "$as_me:14224: result: yes" >&5 14225echo "${ECHO_T}yes" >&6 14226 ;; 14227 no) 14228 eval "ac_cv_func_krb_get_our_ip_for_realm=no" 14229 eval "LIB_krb_get_our_ip_for_realm=" 14230 echo "$as_me:14230: result: no" >&5 14231echo "${ECHO_T}no" >&6 14232 ;; 14233 *) 14234 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 14235 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14236 cat >>confdefs.h <<EOF 14237#define $ac_tr_func 1 14238EOF 14239 14240 cat >>confdefs.h <<EOF 14241#define $ac_tr_lib 1 14242EOF 14243 14244 echo "$as_me:14244: result: yes, in $ac_res" >&5 14245echo "${ECHO_T}yes, in $ac_res" >&6 14246 ;; 14247esac 14248 14249if test -n "$LIB_krb_get_our_ip_for_realm"; then 14250 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS" 14251fi 14252 14253 echo "$as_me:14253: checking for krb_mk_req with const arguments" >&5 14254echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6 14255if test "${ac_cv_func_krb_mk_req_const+set}" = set; then 14256 echo $ECHO_N "(cached) $ECHO_C" >&6 14257else 14258 cat >conftest.$ac_ext <<_ACEOF 14259#line 14259 "configure" 14260#include "confdefs.h" 14261#include <krb.h> 14262 int krb_mk_req(KTEXT a, const char *s, const char *i, 14263 const char *r, int32_t checksum) 14264 { return 17; } 14265int 14266main () 14267{ 14268 14269 ; 14270 return 0; 14271} 14272_ACEOF 14273rm -f conftest.$ac_objext 14274if { (eval echo "$as_me:14274: \"$ac_compile\"") >&5 14275 (eval $ac_compile) 2>&5 14276 ac_status=$? 14277 echo "$as_me:14277: \$? = $ac_status" >&5 14278 (exit $ac_status); } && 14279 { ac_try='test -s conftest.$ac_objext' 14280 { (eval echo "$as_me:14280: \"$ac_try\"") >&5 14281 (eval $ac_try) 2>&5 14282 ac_status=$? 14283 echo "$as_me:14283: \$? = $ac_status" >&5 14284 (exit $ac_status); }; }; then 14285 ac_cv_func_krb_mk_req_const=yes 14286else 14287 echo "$as_me: failed program was:" >&5 14288cat conftest.$ac_ext >&5 14289ac_cv_func_krb_mk_req_const=no 14290fi 14291rm -f conftest.$ac_objext conftest.$ac_ext 14292 14293fi 14294echo "$as_me:14294: result: $ac_cv_func_krb_mk_req_const" >&5 14295echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6 14296 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then 14297 14298cat >>confdefs.h <<\EOF 14299#define KRB_MK_REQ_CONST 1 14300EOF 14301 14302 fi 14303 14304 LIBS="$save_LIBS" 14305 CFLAGS="$save_CFLAGS" 14306 LIB_kdb="-lkdb -lkrb" 14307 if test "$krb4_libdir"; then 14308 LIB_krb4="-R $krb4_libdir $LIB_krb4" 14309 LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb" 14310 fi 14311fi 14312 14313if test "$with_krb4" != "no"; then 14314 KRB4_TRUE= 14315 KRB4_FALSE='#' 14316else 14317 KRB4_TRUE='#' 14318 KRB4_FALSE= 14319fi 14320 14321if true; then 14322 KRB5_TRUE= 14323 KRB5_FALSE='#' 14324else 14325 KRB5_TRUE='#' 14326 KRB5_FALSE= 14327fi 14328 14329if true; then 14330 do_roken_rename_TRUE= 14331 do_roken_rename_FALSE='#' 14332else 14333 do_roken_rename_TRUE='#' 14334 do_roken_rename_FALSE= 14335fi 14336 14337cat >>confdefs.h <<\EOF 14338#define KRB5 1 14339EOF 14340 14341# Check whether --enable-dce or --disable-dce was given. 14342if test "${enable_dce+set}" = set; then 14343 enableval="$enable_dce" 14344 14345fi; 14346if test "$enable_dce" = yes; then 14347 14348cat >>confdefs.h <<\EOF 14349#define DCE 1 14350EOF 14351 14352fi 14353 14354if test "$enable_dce" = yes; then 14355 DCE_TRUE= 14356 DCE_FALSE='#' 14357else 14358 DCE_TRUE='#' 14359 DCE_FALSE= 14360fi 14361 14362## XXX quite horrible: 14363if test -f /etc/ibmcxx.cfg; then 14364 dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 14365 dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 14366else 14367 dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 14368 dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 14369 dpagaix_LDFLAGS="-Wl,-bI:dfspag.exp" 14370fi 14371 14372otp=yes 14373# Check whether --enable-otp or --disable-otp was given. 14374if test "${enable_otp+set}" = set; then 14375 enableval="$enable_otp" 14376 14377if test "$enableval" = "no"; then 14378 otp=no 14379fi 14380 14381fi; 14382if test "$otp" = "yes"; then 14383 14384cat >>confdefs.h <<\EOF 14385#define OTP 1 14386EOF 14387 14388 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 14389fi 14390 14391if test "$otp" = yes; then 14392 OTP_TRUE= 14393 OTP_FALSE='#' 14394else 14395 OTP_TRUE='#' 14396 OTP_FALSE= 14397fi 14398 14399# Check whether --enable-osfc2 or --disable-osfc2 was given. 14400if test "${enable_osfc2+set}" = set; then 14401 enableval="$enable_osfc2" 14402 14403fi; 14404LIB_security= 14405if test "$enable_osfc2" = yes; then 14406 14407cat >>confdefs.h <<\EOF 14408#define HAVE_OSFC2 1 14409EOF 14410 14411 LIB_security=-lsecurity 14412fi 14413 14414# Extract the first word of "nroff", so it can be a program name with args. 14415set dummy nroff; ac_word=$2 14416echo "$as_me:14416: checking for $ac_word" >&5 14417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14418if test "${ac_cv_path_NROFF+set}" = set; then 14419 echo $ECHO_N "(cached) $ECHO_C" >&6 14420else 14421 case $NROFF in 14422 [\\/]* | ?:[\\/]*) 14423 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 14424 ;; 14425 *) 14426 ac_save_IFS=$IFS; IFS=$ac_path_separator 14427ac_dummy="$PATH" 14428for ac_dir in $ac_dummy; do 14429 IFS=$ac_save_IFS 14430 test -z "$ac_dir" && ac_dir=. 14431 if $as_executable_p "$ac_dir/$ac_word"; then 14432 ac_cv_path_NROFF="$ac_dir/$ac_word" 14433 echo "$as_me:14433: found $ac_dir/$ac_word" >&5 14434 break 14435fi 14436done 14437 14438 ;; 14439esac 14440fi 14441NROFF=$ac_cv_path_NROFF 14442 14443if test -n "$NROFF"; then 14444 echo "$as_me:14444: result: $NROFF" >&5 14445echo "${ECHO_T}$NROFF" >&6 14446else 14447 echo "$as_me:14447: result: no" >&5 14448echo "${ECHO_T}no" >&6 14449fi 14450 14451# Extract the first word of "groff", so it can be a program name with args. 14452set dummy groff; ac_word=$2 14453echo "$as_me:14453: checking for $ac_word" >&5 14454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14455if test "${ac_cv_path_GROFF+set}" = set; then 14456 echo $ECHO_N "(cached) $ECHO_C" >&6 14457else 14458 case $GROFF in 14459 [\\/]* | ?:[\\/]*) 14460 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 14461 ;; 14462 *) 14463 ac_save_IFS=$IFS; IFS=$ac_path_separator 14464ac_dummy="$PATH" 14465for ac_dir in $ac_dummy; do 14466 IFS=$ac_save_IFS 14467 test -z "$ac_dir" && ac_dir=. 14468 if $as_executable_p "$ac_dir/$ac_word"; then 14469 ac_cv_path_GROFF="$ac_dir/$ac_word" 14470 echo "$as_me:14470: found $ac_dir/$ac_word" >&5 14471 break 14472fi 14473done 14474 14475 ;; 14476esac 14477fi 14478GROFF=$ac_cv_path_GROFF 14479 14480if test -n "$GROFF"; then 14481 echo "$as_me:14481: result: $GROFF" >&5 14482echo "${ECHO_T}$GROFF" >&6 14483else 14484 echo "$as_me:14484: result: no" >&5 14485echo "${ECHO_T}no" >&6 14486fi 14487 14488echo "$as_me:14488: checking how to format man pages" >&5 14489echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6 14490if test "${ac_cv_sys_man_format+set}" = set; then 14491 echo $ECHO_N "(cached) $ECHO_C" >&6 14492else 14493 cat > conftest.1 << END 14494.Dd January 1, 1970 14495.Dt CONFTEST 1 14496.Sh NAME 14497.Nm conftest 14498.Nd 14499foobar 14500END 14501 14502if test "$NROFF" ; then 14503 for i in "-mdoc" "-mandoc"; do 14504 if "$NROFF" $i conftest.1 2> /dev/null | \ 14505 grep Jan > /dev/null 2>&1 ; then 14506 ac_cv_sys_man_format="$NROFF $i" 14507 break 14508 fi 14509 done 14510fi 14511if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 14512 for i in "-mdoc" "-mandoc"; do 14513 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 14514 grep Jan > /dev/null 2>&1 ; then 14515 ac_cv_sys_man_format="$GROFF -Tascii $i" 14516 break 14517 fi 14518 done 14519fi 14520if test "$ac_cv_sys_man_format"; then 14521 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 14522fi 14523 14524fi 14525echo "$as_me:14525: result: $ac_cv_sys_man_format" >&5 14526echo "${ECHO_T}$ac_cv_sys_man_format" >&6 14527if test "$ac_cv_sys_man_format"; then 14528 CATMAN="$ac_cv_sys_man_format" 14529 14530fi 14531 14532if test "$CATMAN"; then 14533 CATMAN_TRUE= 14534 CATMAN_FALSE='#' 14535else 14536 CATMAN_TRUE='#' 14537 CATMAN_FALSE= 14538fi 14539echo "$as_me:14539: checking extension of pre-formatted manual pages" >&5 14540echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6 14541if test "${ac_cv_sys_catman_ext+set}" = set; then 14542 echo $ECHO_N "(cached) $ECHO_C" >&6 14543else 14544 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 14545 ac_cv_sys_catman_ext=0 14546else 14547 ac_cv_sys_catman_ext=number 14548fi 14549 14550fi 14551echo "$as_me:14551: result: $ac_cv_sys_catman_ext" >&5 14552echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6 14553if test "$ac_cv_sys_catman_ext" = number; then 14554 CATMANEXT='$$section' 14555else 14556 CATMANEXT=0 14557fi 14558 14559# Check whether --with-readline or --without-readline was given. 14560if test "${with_readline+set}" = set; then 14561 withval="$with_readline" 14562 14563fi; 14564 14565# Check whether --with-readline-lib or --without-readline-lib was given. 14566if test "${with_readline_lib+set}" = set; then 14567 withval="$with_readline_lib" 14568 if test "$withval" = "yes" -o "$withval" = "no"; then 14569 { { echo "$as_me:14569: error: No argument for --with-readline-lib" >&5 14570echo "$as_me: error: No argument for --with-readline-lib" >&2;} 14571 { (exit 1); exit 1; }; } 14572elif test "X$with_readline" = "X"; then 14573 with_readline=yes 14574fi 14575fi; 14576 14577# Check whether --with-readline-include or --without-readline-include was given. 14578if test "${with_readline_include+set}" = set; then 14579 withval="$with_readline_include" 14580 if test "$withval" = "yes" -o "$withval" = "no"; then 14581 { { echo "$as_me:14581: error: No argument for --with-readline-include" >&5 14582echo "$as_me: error: No argument for --with-readline-include" >&2;} 14583 { (exit 1); exit 1; }; } 14584elif test "X$with_readline" = "X"; then 14585 with_readline=yes 14586fi 14587fi; 14588 14589echo "$as_me:14589: checking for readline" >&5 14590echo $ECHO_N "checking for readline... $ECHO_C" >&6 14591 14592case "$with_readline" in 14593yes) ;; 14594no) ;; 14595"") ;; 14596*) if test "$with_readline_include" = ""; then 14597 with_readline_include="$with_readline/include" 14598 fi 14599 if test "$with_readline_lib" = ""; then 14600 with_readline_lib="$with_readline/lib$abilibdirext" 14601 fi 14602 ;; 14603esac 14604header_dirs= 14605lib_dirs= 14606d='' 14607for i in $d; do 14608 header_dirs="$header_dirs $i/include" 14609 lib_dirs="$lib_dirs $i/lib$abilibdirext" 14610done 14611 14612case "$with_readline_include" in 14613yes) ;; 14614no) ;; 14615*) header_dirs="$with_readline_include $header_dirs";; 14616esac 14617case "$with_readline_lib" in 14618yes) ;; 14619no) ;; 14620*) lib_dirs="$with_readline_lib $lib_dirs";; 14621esac 14622 14623save_CFLAGS="$CFLAGS" 14624save_LIBS="$LIBS" 14625ires= lres= 14626for i in $header_dirs; do 14627 CFLAGS="-I$i $save_CFLAGS" 14628 cat >conftest.$ac_ext <<_ACEOF 14629#line 14629 "configure" 14630#include "confdefs.h" 14631#include <stdio.h> 14632 #include <readline.h> 14633int 14634main () 14635{ 14636 14637 ; 14638 return 0; 14639} 14640_ACEOF 14641rm -f conftest.$ac_objext 14642if { (eval echo "$as_me:14642: \"$ac_compile\"") >&5 14643 (eval $ac_compile) 2>&5 14644 ac_status=$? 14645 echo "$as_me:14645: \$? = $ac_status" >&5 14646 (exit $ac_status); } && 14647 { ac_try='test -s conftest.$ac_objext' 14648 { (eval echo "$as_me:14648: \"$ac_try\"") >&5 14649 (eval $ac_try) 2>&5 14650 ac_status=$? 14651 echo "$as_me:14651: \$? = $ac_status" >&5 14652 (exit $ac_status); }; }; then 14653 ires=$i;break 14654else 14655 echo "$as_me: failed program was:" >&5 14656cat conftest.$ac_ext >&5 14657fi 14658rm -f conftest.$ac_objext conftest.$ac_ext 14659done 14660for i in $lib_dirs; do 14661 LIBS="-L$i -lreadline $save_LIBS" 14662 cat >conftest.$ac_ext <<_ACEOF 14663#line 14663 "configure" 14664#include "confdefs.h" 14665#include <stdio.h> 14666 #include <readline.h> 14667int 14668main () 14669{ 14670 14671 ; 14672 return 0; 14673} 14674_ACEOF 14675rm -f conftest.$ac_objext conftest$ac_exeext 14676if { (eval echo "$as_me:14676: \"$ac_link\"") >&5 14677 (eval $ac_link) 2>&5 14678 ac_status=$? 14679 echo "$as_me:14679: \$? = $ac_status" >&5 14680 (exit $ac_status); } && 14681 { ac_try='test -s conftest$ac_exeext' 14682 { (eval echo "$as_me:14682: \"$ac_try\"") >&5 14683 (eval $ac_try) 2>&5 14684 ac_status=$? 14685 echo "$as_me:14685: \$? = $ac_status" >&5 14686 (exit $ac_status); }; }; then 14687 lres=$i;break 14688else 14689 echo "$as_me: failed program was:" >&5 14690cat conftest.$ac_ext >&5 14691fi 14692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14693done 14694CFLAGS="$save_CFLAGS" 14695LIBS="$save_LIBS" 14696 14697if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 14698 readline_includedir="$ires" 14699 readline_libdir="$lres" 14700 INCLUDE_readline="-I$readline_includedir" 14701 LIB_readline="-L$readline_libdir -lreadline" 14702 14703cat >>confdefs.h <<EOF 14704#define READLINE 1 14705EOF 14706 14707 with_readline=yes 14708 echo "$as_me:14708: result: headers $ires, libraries $lres" >&5 14709echo "${ECHO_T}headers $ires, libraries $lres" >&6 14710else 14711 INCLUDE_readline= 14712 LIB_readline= 14713 with_readline=no 14714 echo "$as_me:14714: result: $with_readline" >&5 14715echo "${ECHO_T}$with_readline" >&6 14716fi 14717 14718# Check whether --with-hesiod or --without-hesiod was given. 14719if test "${with_hesiod+set}" = set; then 14720 withval="$with_hesiod" 14721 14722fi; 14723 14724# Check whether --with-hesiod-lib or --without-hesiod-lib was given. 14725if test "${with_hesiod_lib+set}" = set; then 14726 withval="$with_hesiod_lib" 14727 if test "$withval" = "yes" -o "$withval" = "no"; then 14728 { { echo "$as_me:14728: error: No argument for --with-hesiod-lib" >&5 14729echo "$as_me: error: No argument for --with-hesiod-lib" >&2;} 14730 { (exit 1); exit 1; }; } 14731elif test "X$with_hesiod" = "X"; then 14732 with_hesiod=yes 14733fi 14734fi; 14735 14736# Check whether --with-hesiod-include or --without-hesiod-include was given. 14737if test "${with_hesiod_include+set}" = set; then 14738 withval="$with_hesiod_include" 14739 if test "$withval" = "yes" -o "$withval" = "no"; then 14740 { { echo "$as_me:14740: error: No argument for --with-hesiod-include" >&5 14741echo "$as_me: error: No argument for --with-hesiod-include" >&2;} 14742 { (exit 1); exit 1; }; } 14743elif test "X$with_hesiod" = "X"; then 14744 with_hesiod=yes 14745fi 14746fi; 14747 14748echo "$as_me:14748: checking for hesiod" >&5 14749echo $ECHO_N "checking for hesiod... $ECHO_C" >&6 14750 14751case "$with_hesiod" in 14752yes) ;; 14753no) ;; 14754"") ;; 14755*) if test "$with_hesiod_include" = ""; then 14756 with_hesiod_include="$with_hesiod/include" 14757 fi 14758 if test "$with_hesiod_lib" = ""; then 14759 with_hesiod_lib="$with_hesiod/lib$abilibdirext" 14760 fi 14761 ;; 14762esac 14763header_dirs= 14764lib_dirs= 14765d='' 14766for i in $d; do 14767 header_dirs="$header_dirs $i/include" 14768 lib_dirs="$lib_dirs $i/lib$abilibdirext" 14769done 14770 14771case "$with_hesiod_include" in 14772yes) ;; 14773no) ;; 14774*) header_dirs="$with_hesiod_include $header_dirs";; 14775esac 14776case "$with_hesiod_lib" in 14777yes) ;; 14778no) ;; 14779*) lib_dirs="$with_hesiod_lib $lib_dirs";; 14780esac 14781 14782save_CFLAGS="$CFLAGS" 14783save_LIBS="$LIBS" 14784ires= lres= 14785for i in $header_dirs; do 14786 CFLAGS="-I$i $save_CFLAGS" 14787 cat >conftest.$ac_ext <<_ACEOF 14788#line 14788 "configure" 14789#include "confdefs.h" 14790#include <hesiod.h> 14791int 14792main () 14793{ 14794 14795 ; 14796 return 0; 14797} 14798_ACEOF 14799rm -f conftest.$ac_objext 14800if { (eval echo "$as_me:14800: \"$ac_compile\"") >&5 14801 (eval $ac_compile) 2>&5 14802 ac_status=$? 14803 echo "$as_me:14803: \$? = $ac_status" >&5 14804 (exit $ac_status); } && 14805 { ac_try='test -s conftest.$ac_objext' 14806 { (eval echo "$as_me:14806: \"$ac_try\"") >&5 14807 (eval $ac_try) 2>&5 14808 ac_status=$? 14809 echo "$as_me:14809: \$? = $ac_status" >&5 14810 (exit $ac_status); }; }; then 14811 ires=$i;break 14812else 14813 echo "$as_me: failed program was:" >&5 14814cat conftest.$ac_ext >&5 14815fi 14816rm -f conftest.$ac_objext conftest.$ac_ext 14817done 14818for i in $lib_dirs; do 14819 LIBS="-L$i -lhesiod $save_LIBS" 14820 cat >conftest.$ac_ext <<_ACEOF 14821#line 14821 "configure" 14822#include "confdefs.h" 14823#include <hesiod.h> 14824int 14825main () 14826{ 14827 14828 ; 14829 return 0; 14830} 14831_ACEOF 14832rm -f conftest.$ac_objext conftest$ac_exeext 14833if { (eval echo "$as_me:14833: \"$ac_link\"") >&5 14834 (eval $ac_link) 2>&5 14835 ac_status=$? 14836 echo "$as_me:14836: \$? = $ac_status" >&5 14837 (exit $ac_status); } && 14838 { ac_try='test -s conftest$ac_exeext' 14839 { (eval echo "$as_me:14839: \"$ac_try\"") >&5 14840 (eval $ac_try) 2>&5 14841 ac_status=$? 14842 echo "$as_me:14842: \$? = $ac_status" >&5 14843 (exit $ac_status); }; }; then 14844 lres=$i;break 14845else 14846 echo "$as_me: failed program was:" >&5 14847cat conftest.$ac_ext >&5 14848fi 14849rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14850done 14851CFLAGS="$save_CFLAGS" 14852LIBS="$save_LIBS" 14853 14854if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then 14855 hesiod_includedir="$ires" 14856 hesiod_libdir="$lres" 14857 INCLUDE_hesiod="-I$hesiod_includedir" 14858 LIB_hesiod="-L$hesiod_libdir -lhesiod" 14859 14860cat >>confdefs.h <<EOF 14861#define HESIOD 1 14862EOF 14863 14864 with_hesiod=yes 14865 echo "$as_me:14865: result: headers $ires, libraries $lres" >&5 14866echo "${ECHO_T}headers $ires, libraries $lres" >&6 14867else 14868 INCLUDE_hesiod= 14869 LIB_hesiod= 14870 with_hesiod=no 14871 echo "$as_me:14871: result: $with_hesiod" >&5 14872echo "${ECHO_T}$with_hesiod" >&6 14873fi 14874 14875# Check whether --enable-bigendian or --disable-bigendian was given. 14876if test "${enable_bigendian+set}" = set; then 14877 enableval="$enable_bigendian" 14878 krb_cv_c_bigendian=yes 14879fi; 14880# Check whether --enable-littleendian or --disable-littleendian was given. 14881if test "${enable_littleendian+set}" = set; then 14882 enableval="$enable_littleendian" 14883 krb_cv_c_bigendian=no 14884fi; 14885echo "$as_me:14885: checking whether byte order is known at compile time" >&5 14886echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6 14887if test "${krb_cv_c_bigendian_compile+set}" = set; then 14888 echo $ECHO_N "(cached) $ECHO_C" >&6 14889else 14890 cat >conftest.$ac_ext <<_ACEOF 14891#line 14891 "configure" 14892#include "confdefs.h" 14893 14894#include <sys/types.h> 14895#include <sys/param.h> 14896int 14897main () 14898{ 14899 14900#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 14901 bogus endian macros 14902#endif 14903 ; 14904 return 0; 14905} 14906_ACEOF 14907rm -f conftest.$ac_objext 14908if { (eval echo "$as_me:14908: \"$ac_compile\"") >&5 14909 (eval $ac_compile) 2>&5 14910 ac_status=$? 14911 echo "$as_me:14911: \$? = $ac_status" >&5 14912 (exit $ac_status); } && 14913 { ac_try='test -s conftest.$ac_objext' 14914 { (eval echo "$as_me:14914: \"$ac_try\"") >&5 14915 (eval $ac_try) 2>&5 14916 ac_status=$? 14917 echo "$as_me:14917: \$? = $ac_status" >&5 14918 (exit $ac_status); }; }; then 14919 krb_cv_c_bigendian_compile=yes 14920else 14921 echo "$as_me: failed program was:" >&5 14922cat conftest.$ac_ext >&5 14923krb_cv_c_bigendian_compile=no 14924fi 14925rm -f conftest.$ac_objext conftest.$ac_ext 14926fi 14927echo "$as_me:14927: result: $krb_cv_c_bigendian_compile" >&5 14928echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6 14929echo "$as_me:14929: checking whether byte ordering is bigendian" >&5 14930echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 14931if test "${krb_cv_c_bigendian+set}" = set; then 14932 echo $ECHO_N "(cached) $ECHO_C" >&6 14933else 14934 14935 if test "$krb_cv_c_bigendian_compile" = "yes"; then 14936 cat >conftest.$ac_ext <<_ACEOF 14937#line 14937 "configure" 14938#include "confdefs.h" 14939 14940#include <sys/types.h> 14941#include <sys/param.h> 14942int 14943main () 14944{ 14945 14946#if BYTE_ORDER != BIG_ENDIAN 14947 not big endian 14948#endif 14949 ; 14950 return 0; 14951} 14952_ACEOF 14953rm -f conftest.$ac_objext 14954if { (eval echo "$as_me:14954: \"$ac_compile\"") >&5 14955 (eval $ac_compile) 2>&5 14956 ac_status=$? 14957 echo "$as_me:14957: \$? = $ac_status" >&5 14958 (exit $ac_status); } && 14959 { ac_try='test -s conftest.$ac_objext' 14960 { (eval echo "$as_me:14960: \"$ac_try\"") >&5 14961 (eval $ac_try) 2>&5 14962 ac_status=$? 14963 echo "$as_me:14963: \$? = $ac_status" >&5 14964 (exit $ac_status); }; }; then 14965 krb_cv_c_bigendian=yes 14966else 14967 echo "$as_me: failed program was:" >&5 14968cat conftest.$ac_ext >&5 14969krb_cv_c_bigendian=no 14970fi 14971rm -f conftest.$ac_objext conftest.$ac_ext 14972 else 14973 if test "$cross_compiling" = yes; then 14974 { { echo "$as_me:14974: error: specify either --enable-bigendian or --enable-littleendian" >&5 14975echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;} 14976 { (exit 1); exit 1; }; } 14977else 14978 cat >conftest.$ac_ext <<_ACEOF 14979#line 14979 "configure" 14980#include "confdefs.h" 14981main () { 14982 /* Are we little or big endian? From Harbison&Steele. */ 14983 union 14984 { 14985 long l; 14986 char c[sizeof (long)]; 14987 } u; 14988 u.l = 1; 14989 exit (u.c[sizeof (long) - 1] == 1); 14990 } 14991_ACEOF 14992rm -f conftest$ac_exeext 14993if { (eval echo "$as_me:14993: \"$ac_link\"") >&5 14994 (eval $ac_link) 2>&5 14995 ac_status=$? 14996 echo "$as_me:14996: \$? = $ac_status" >&5 14997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14998 { (eval echo "$as_me:14998: \"$ac_try\"") >&5 14999 (eval $ac_try) 2>&5 15000 ac_status=$? 15001 echo "$as_me:15001: \$? = $ac_status" >&5 15002 (exit $ac_status); }; }; then 15003 krb_cv_c_bigendian=no 15004else 15005 echo "$as_me: program exited with status $ac_status" >&5 15006echo "$as_me: failed program was:" >&5 15007cat conftest.$ac_ext >&5 15008krb_cv_c_bigendian=yes 15009fi 15010rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15011fi 15012 fi 15013 15014fi 15015echo "$as_me:15015: result: $krb_cv_c_bigendian" >&5 15016echo "${ECHO_T}$krb_cv_c_bigendian" >&6 15017if test "$krb_cv_c_bigendian" = "yes"; then 15018 15019cat >>confdefs.h <<\EOF 15020#define WORDS_BIGENDIAN 1 15021EOF 15022fi 15023if test "$krb_cv_c_bigendian_compile" = "yes"; then 15024 15025cat >>confdefs.h <<\EOF 15026#define ENDIANESS_IN_SYS_PARAM_H 1 15027EOF 15028fi 15029 15030echo "$as_me:15030: checking for inline" >&5 15031echo $ECHO_N "checking for inline... $ECHO_C" >&6 15032if test "${ac_cv_c_inline+set}" = set; then 15033 echo $ECHO_N "(cached) $ECHO_C" >&6 15034else 15035 ac_cv_c_inline=no 15036for ac_kw in inline __inline__ __inline; do 15037 cat >conftest.$ac_ext <<_ACEOF 15038#line 15038 "configure" 15039#include "confdefs.h" 15040#ifndef __cplusplus 15041static $ac_kw int static_foo () {return 0; } 15042$ac_kw int foo () {return 0; } 15043#endif 15044 15045_ACEOF 15046rm -f conftest.$ac_objext 15047if { (eval echo "$as_me:15047: \"$ac_compile\"") >&5 15048 (eval $ac_compile) 2>&5 15049 ac_status=$? 15050 echo "$as_me:15050: \$? = $ac_status" >&5 15051 (exit $ac_status); } && 15052 { ac_try='test -s conftest.$ac_objext' 15053 { (eval echo "$as_me:15053: \"$ac_try\"") >&5 15054 (eval $ac_try) 2>&5 15055 ac_status=$? 15056 echo "$as_me:15056: \$? = $ac_status" >&5 15057 (exit $ac_status); }; }; then 15058 ac_cv_c_inline=$ac_kw; break 15059else 15060 echo "$as_me: failed program was:" >&5 15061cat conftest.$ac_ext >&5 15062fi 15063rm -f conftest.$ac_objext conftest.$ac_ext 15064done 15065 15066fi 15067echo "$as_me:15067: result: $ac_cv_c_inline" >&5 15068echo "${ECHO_T}$ac_cv_c_inline" >&6 15069case $ac_cv_c_inline in 15070 inline | yes) ;; 15071 no) 15072cat >>confdefs.h <<\EOF 15073#define inline 15074EOF 15075 ;; 15076 *) cat >>confdefs.h <<EOF 15077#define inline $ac_cv_c_inline 15078EOF 15079 ;; 15080esac 15081 15082aix=no 15083case "$host" in 15084*-*-aix3*) 15085 aix=3 15086 ;; 15087*-*-aix4*) 15088 aix=4 15089 ;; 15090esac 15091 15092if test "$aix" != no; then 15093 AIX_TRUE= 15094 AIX_FALSE='#' 15095else 15096 AIX_TRUE='#' 15097 AIX_FALSE= 15098fi 15099 15100if test "$aix" = 4; then 15101 AIX4_TRUE= 15102 AIX4_FALSE='#' 15103else 15104 AIX4_TRUE='#' 15105 AIX4_FALSE= 15106fi 15107aix_dynamic_afs=yes 15108 15109if test "$aix_dynamic_afs" = yes; then 15110 AIX_DYNAMIC_AFS_TRUE= 15111 AIX_DYNAMIC_AFS_FALSE='#' 15112else 15113 AIX_DYNAMIC_AFS_TRUE='#' 15114 AIX_DYNAMIC_AFS_FALSE= 15115fi 15116 15117echo "$as_me:15117: checking for dlopen" >&5 15118echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 15119if test "${ac_cv_funclib_dlopen+set}" = set; then 15120 echo $ECHO_N "(cached) $ECHO_C" >&6 15121else 15122 15123if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 15124 ac_save_LIBS="$LIBS" 15125 for ac_lib in "" dl; do 15126 case "$ac_lib" in 15127 "") ;; 15128 yes) ac_lib="" ;; 15129 no) continue ;; 15130 -l*) ;; 15131 *) ac_lib="-l$ac_lib" ;; 15132 esac 15133 LIBS=" $ac_lib $ac_save_LIBS" 15134 cat >conftest.$ac_ext <<_ACEOF 15135#line 15135 "configure" 15136#include "confdefs.h" 15137 15138int 15139main () 15140{ 15141dlopen() 15142 ; 15143 return 0; 15144} 15145_ACEOF 15146rm -f conftest.$ac_objext conftest$ac_exeext 15147if { (eval echo "$as_me:15147: \"$ac_link\"") >&5 15148 (eval $ac_link) 2>&5 15149 ac_status=$? 15150 echo "$as_me:15150: \$? = $ac_status" >&5 15151 (exit $ac_status); } && 15152 { ac_try='test -s conftest$ac_exeext' 15153 { (eval echo "$as_me:15153: \"$ac_try\"") >&5 15154 (eval $ac_try) 2>&5 15155 ac_status=$? 15156 echo "$as_me:15156: \$? = $ac_status" >&5 15157 (exit $ac_status); }; }; then 15158 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 15159else 15160 echo "$as_me: failed program was:" >&5 15161cat conftest.$ac_ext >&5 15162fi 15163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15164 done 15165 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 15166 LIBS="$ac_save_LIBS" 15167fi 15168 15169fi 15170 15171eval "ac_res=\$ac_cv_funclib_dlopen" 15172 15173if false; then 15174 15175for ac_func in dlopen 15176do 15177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15178echo "$as_me:15178: checking for $ac_func" >&5 15179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15180if eval "test \"\${$as_ac_var+set}\" = set"; then 15181 echo $ECHO_N "(cached) $ECHO_C" >&6 15182else 15183 cat >conftest.$ac_ext <<_ACEOF 15184#line 15184 "configure" 15185#include "confdefs.h" 15186/* System header to define __stub macros and hopefully few prototypes, 15187 which can conflict with char $ac_func (); below. */ 15188#include <assert.h> 15189/* Override any gcc2 internal prototype to avoid an error. */ 15190#ifdef __cplusplus 15191extern "C" 15192#endif 15193/* We use char because int might match the return type of a gcc2 15194 builtin and then its argument prototype would still apply. */ 15195char $ac_func (); 15196char (*f) (); 15197 15198int 15199main () 15200{ 15201/* The GNU C library defines this for functions which it implements 15202 to always fail with ENOSYS. Some functions are actually named 15203 something starting with __ and the normal name is an alias. */ 15204#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15205choke me 15206#else 15207f = $ac_func; 15208#endif 15209 15210 ; 15211 return 0; 15212} 15213_ACEOF 15214rm -f conftest.$ac_objext conftest$ac_exeext 15215if { (eval echo "$as_me:15215: \"$ac_link\"") >&5 15216 (eval $ac_link) 2>&5 15217 ac_status=$? 15218 echo "$as_me:15218: \$? = $ac_status" >&5 15219 (exit $ac_status); } && 15220 { ac_try='test -s conftest$ac_exeext' 15221 { (eval echo "$as_me:15221: \"$ac_try\"") >&5 15222 (eval $ac_try) 2>&5 15223 ac_status=$? 15224 echo "$as_me:15224: \$? = $ac_status" >&5 15225 (exit $ac_status); }; }; then 15226 eval "$as_ac_var=yes" 15227else 15228 echo "$as_me: failed program was:" >&5 15229cat conftest.$ac_ext >&5 15230eval "$as_ac_var=no" 15231fi 15232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15233fi 15234echo "$as_me:15234: result: `eval echo '${'$as_ac_var'}'`" >&5 15235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15236if test `eval echo '${'$as_ac_var'}'` = yes; then 15237 cat >>confdefs.h <<EOF 15238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15239EOF 15240 15241fi 15242done 15243 15244fi 15245# dlopen 15246eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15247eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15248eval "LIB_dlopen=$ac_res" 15249 15250case "$ac_res" in 15251 yes) 15252 eval "ac_cv_func_dlopen=yes" 15253 eval "LIB_dlopen=" 15254 cat >>confdefs.h <<EOF 15255#define $ac_tr_func 1 15256EOF 15257 15258 echo "$as_me:15258: result: yes" >&5 15259echo "${ECHO_T}yes" >&6 15260 ;; 15261 no) 15262 eval "ac_cv_func_dlopen=no" 15263 eval "LIB_dlopen=" 15264 echo "$as_me:15264: result: no" >&5 15265echo "${ECHO_T}no" >&6 15266 ;; 15267 *) 15268 eval "ac_cv_func_dlopen=yes" 15269 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15270 cat >>confdefs.h <<EOF 15271#define $ac_tr_func 1 15272EOF 15273 15274 cat >>confdefs.h <<EOF 15275#define $ac_tr_lib 1 15276EOF 15277 15278 echo "$as_me:15278: result: yes, in $ac_res" >&5 15279echo "${ECHO_T}yes, in $ac_res" >&6 15280 ;; 15281esac 15282 15283if test "$aix" != no; then 15284 if test "$aix_dynamic_afs" = yes; then 15285 if test "$ac_cv_funclib_dlopen" = yes; then 15286 AIX_EXTRA_KAFS= 15287 elif test "$ac_cv_funclib_dlopen" != no; then 15288 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen" 15289 else 15290 AIX_EXTRA_KAFS=-lld 15291 fi 15292 else 15293 AIX_EXTRA_KAFS= 15294 fi 15295fi 15296 15297if test "$ac_cv_funclib_dlopen" != no; then 15298 HAVE_DLOPEN_TRUE= 15299 HAVE_DLOPEN_FALSE='#' 15300else 15301 HAVE_DLOPEN_TRUE='#' 15302 HAVE_DLOPEN_FALSE= 15303fi 15304 15305irix=no 15306case "$host_os" in 15307irix*) irix=yes ;; 15308esac 15309 15310if test "$irix" != no; then 15311 IRIX_TRUE= 15312 IRIX_FALSE='#' 15313else 15314 IRIX_TRUE='#' 15315 IRIX_FALSE= 15316fi 15317 15318echo "$as_me:15318: checking for X" >&5 15319echo $ECHO_N "checking for X... $ECHO_C" >&6 15320 15321# Check whether --with-x or --without-x was given. 15322if test "${with_x+set}" = set; then 15323 withval="$with_x" 15324 15325fi; 15326# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 15327if test "x$with_x" = xno; then 15328 # The user explicitly disabled X. 15329 have_x=disabled 15330else 15331 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 15332 # Both variables are already set. 15333 have_x=yes 15334 else 15335 if test "${ac_cv_have_x+set}" = set; then 15336 echo $ECHO_N "(cached) $ECHO_C" >&6 15337else 15338 # One or both of the vars are not set, and there is no cached value. 15339ac_x_includes=no ac_x_libraries=no 15340rm -fr conftest.dir 15341if mkdir conftest.dir; then 15342 cd conftest.dir 15343 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 15344 cat >Imakefile <<'EOF' 15345acfindx: 15346 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 15347EOF 15348 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 15349 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 15350 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 15351 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 15352 for ac_extension in a so sl; do 15353 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 15354 test -f $ac_im_libdir/libX11.$ac_extension; then 15355 ac_im_usrlibdir=$ac_im_libdir; break 15356 fi 15357 done 15358 # Screen out bogus values from the imake configuration. They are 15359 # bogus both because they are the default anyway, and because 15360 # using them would break gcc on systems where it needs fixed includes. 15361 case $ac_im_incroot in 15362 /usr/include) ;; 15363 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 15364 esac 15365 case $ac_im_usrlibdir in 15366 /usr/lib | /lib) ;; 15367 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 15368 esac 15369 fi 15370 cd .. 15371 rm -fr conftest.dir 15372fi 15373 15374# Standard set of common directories for X headers. 15375# Check X11 before X11Rn because it is often a symlink to the current release. 15376ac_x_header_dirs=' 15377/usr/X11/include 15378/usr/X11R6/include 15379/usr/X11R5/include 15380/usr/X11R4/include 15381 15382/usr/include/X11 15383/usr/include/X11R6 15384/usr/include/X11R5 15385/usr/include/X11R4 15386 15387/usr/local/X11/include 15388/usr/local/X11R6/include 15389/usr/local/X11R5/include 15390/usr/local/X11R4/include 15391 15392/usr/local/include/X11 15393/usr/local/include/X11R6 15394/usr/local/include/X11R5 15395/usr/local/include/X11R4 15396 15397/usr/X386/include 15398/usr/x386/include 15399/usr/XFree86/include/X11 15400 15401/usr/include 15402/usr/local/include 15403/usr/unsupported/include 15404/usr/athena/include 15405/usr/local/x11r5/include 15406/usr/lpp/Xamples/include 15407 15408/usr/openwin/include 15409/usr/openwin/share/include' 15410 15411if test "$ac_x_includes" = no; then 15412 # Guess where to find include files, by looking for Intrinsic.h. 15413 # First, try using that file with no special directory specified. 15414 cat >conftest.$ac_ext <<_ACEOF 15415#line 15415 "configure" 15416#include "confdefs.h" 15417#include <X11/Intrinsic.h> 15418_ACEOF 15419if { (eval echo "$as_me:15419: \"$ac_cpp conftest.$ac_ext\"") >&5 15420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15421 ac_status=$? 15422 egrep -v '^ *\+' conftest.er1 >conftest.err 15423 rm -f conftest.er1 15424 cat conftest.err >&5 15425 echo "$as_me:15425: \$? = $ac_status" >&5 15426 (exit $ac_status); } >/dev/null; then 15427 if test -s conftest.err; then 15428 ac_cpp_err=$ac_c_preproc_warn_flag 15429 else 15430 ac_cpp_err= 15431 fi 15432else 15433 ac_cpp_err=yes 15434fi 15435if test -z "$ac_cpp_err"; then 15436 # We can compile using X headers with no special include directory. 15437ac_x_includes= 15438else 15439 echo "$as_me: failed program was:" >&5 15440 cat conftest.$ac_ext >&5 15441 for ac_dir in $ac_x_header_dirs; do 15442 if test -r "$ac_dir/X11/Intrinsic.h"; then 15443 ac_x_includes=$ac_dir 15444 break 15445 fi 15446done 15447fi 15448rm -f conftest.err conftest.$ac_ext 15449fi # $ac_x_includes = no 15450 15451if test "$ac_x_libraries" = no; then 15452 # Check for the libraries. 15453 # See if we find them without any special options. 15454 # Don't add to $LIBS permanently. 15455 ac_save_LIBS=$LIBS 15456 LIBS="-lXt $LIBS" 15457 cat >conftest.$ac_ext <<_ACEOF 15458#line 15458 "configure" 15459#include "confdefs.h" 15460#include <X11/Intrinsic.h> 15461int 15462main () 15463{ 15464XtMalloc (0) 15465 ; 15466 return 0; 15467} 15468_ACEOF 15469rm -f conftest.$ac_objext conftest$ac_exeext 15470if { (eval echo "$as_me:15470: \"$ac_link\"") >&5 15471 (eval $ac_link) 2>&5 15472 ac_status=$? 15473 echo "$as_me:15473: \$? = $ac_status" >&5 15474 (exit $ac_status); } && 15475 { ac_try='test -s conftest$ac_exeext' 15476 { (eval echo "$as_me:15476: \"$ac_try\"") >&5 15477 (eval $ac_try) 2>&5 15478 ac_status=$? 15479 echo "$as_me:15479: \$? = $ac_status" >&5 15480 (exit $ac_status); }; }; then 15481 LIBS=$ac_save_LIBS 15482# We can link X programs with no special library path. 15483ac_x_libraries= 15484else 15485 echo "$as_me: failed program was:" >&5 15486cat conftest.$ac_ext >&5 15487LIBS=$ac_save_LIBS 15488for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 15489do 15490 # Don't even attempt the hair of trying to link an X program! 15491 for ac_extension in a so sl; do 15492 if test -r $ac_dir/libXt.$ac_extension; then 15493 ac_x_libraries=$ac_dir 15494 break 2 15495 fi 15496 done 15497done 15498fi 15499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15500fi # $ac_x_libraries = no 15501 15502if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 15503 # Didn't find X anywhere. Cache the known absence of X. 15504 ac_cv_have_x="have_x=no" 15505else 15506 # Record where we found X for the cache. 15507 ac_cv_have_x="have_x=yes \ 15508 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 15509fi 15510fi 15511 15512 fi 15513 eval "$ac_cv_have_x" 15514fi # $with_x != no 15515 15516if test "$have_x" != yes; then 15517 echo "$as_me:15517: result: $have_x" >&5 15518echo "${ECHO_T}$have_x" >&6 15519 no_x=yes 15520else 15521 # If each of the values was on the command line, it overrides each guess. 15522 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 15523 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 15524 # Update the cache value to reflect the command line values. 15525 ac_cv_have_x="have_x=yes \ 15526 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 15527 echo "$as_me:15527: result: libraries $x_libraries, headers $x_includes" >&5 15528echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 15529fi 15530 15531if test "$no_x" = yes; then 15532 # Not all programs may use this symbol, but it does not hurt to define it. 15533 15534cat >>confdefs.h <<\EOF 15535#define X_DISPLAY_MISSING 1 15536EOF 15537 15538 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 15539else 15540 if test -n "$x_includes"; then 15541 X_CFLAGS="$X_CFLAGS -I$x_includes" 15542 fi 15543 15544 # It would also be nice to do this for all -L options, not just this one. 15545 if test -n "$x_libraries"; then 15546 X_LIBS="$X_LIBS -L$x_libraries" 15547 # For Solaris; some versions of Sun CC require a space after -R and 15548 # others require no space. Words are not sufficient . . . . 15549 case `(uname -sr) 2>/dev/null` in 15550 "SunOS 5"*) 15551 echo "$as_me:15551: checking whether -R must be followed by a space" >&5 15552echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 15553 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 15554 cat >conftest.$ac_ext <<_ACEOF 15555#line 15555 "configure" 15556#include "confdefs.h" 15557 15558int 15559main () 15560{ 15561 15562 ; 15563 return 0; 15564} 15565_ACEOF 15566rm -f conftest.$ac_objext conftest$ac_exeext 15567if { (eval echo "$as_me:15567: \"$ac_link\"") >&5 15568 (eval $ac_link) 2>&5 15569 ac_status=$? 15570 echo "$as_me:15570: \$? = $ac_status" >&5 15571 (exit $ac_status); } && 15572 { ac_try='test -s conftest$ac_exeext' 15573 { (eval echo "$as_me:15573: \"$ac_try\"") >&5 15574 (eval $ac_try) 2>&5 15575 ac_status=$? 15576 echo "$as_me:15576: \$? = $ac_status" >&5 15577 (exit $ac_status); }; }; then 15578 ac_R_nospace=yes 15579else 15580 echo "$as_me: failed program was:" >&5 15581cat conftest.$ac_ext >&5 15582ac_R_nospace=no 15583fi 15584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15585 if test $ac_R_nospace = yes; then 15586 echo "$as_me:15586: result: no" >&5 15587echo "${ECHO_T}no" >&6 15588 X_LIBS="$X_LIBS -R$x_libraries" 15589 else 15590 LIBS="$ac_xsave_LIBS -R $x_libraries" 15591 cat >conftest.$ac_ext <<_ACEOF 15592#line 15592 "configure" 15593#include "confdefs.h" 15594 15595int 15596main () 15597{ 15598 15599 ; 15600 return 0; 15601} 15602_ACEOF 15603rm -f conftest.$ac_objext conftest$ac_exeext 15604if { (eval echo "$as_me:15604: \"$ac_link\"") >&5 15605 (eval $ac_link) 2>&5 15606 ac_status=$? 15607 echo "$as_me:15607: \$? = $ac_status" >&5 15608 (exit $ac_status); } && 15609 { ac_try='test -s conftest$ac_exeext' 15610 { (eval echo "$as_me:15610: \"$ac_try\"") >&5 15611 (eval $ac_try) 2>&5 15612 ac_status=$? 15613 echo "$as_me:15613: \$? = $ac_status" >&5 15614 (exit $ac_status); }; }; then 15615 ac_R_space=yes 15616else 15617 echo "$as_me: failed program was:" >&5 15618cat conftest.$ac_ext >&5 15619ac_R_space=no 15620fi 15621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15622 if test $ac_R_space = yes; then 15623 echo "$as_me:15623: result: yes" >&5 15624echo "${ECHO_T}yes" >&6 15625 X_LIBS="$X_LIBS -R $x_libraries" 15626 else 15627 echo "$as_me:15627: result: neither works" >&5 15628echo "${ECHO_T}neither works" >&6 15629 fi 15630 fi 15631 LIBS=$ac_xsave_LIBS 15632 esac 15633 fi 15634 15635 # Check for system-dependent libraries X programs must link with. 15636 # Do this before checking for the system-independent R6 libraries 15637 # (-lICE), since we may need -lsocket or whatever for X linking. 15638 15639 if test "$ISC" = yes; then 15640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 15641 else 15642 # Martyn Johnson says this is needed for Ultrix, if the X 15643 # libraries were built with DECnet support. And Karl Berry says 15644 # the Alpha needs dnet_stub (dnet does not exist). 15645 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 15646 cat >conftest.$ac_ext <<_ACEOF 15647#line 15647 "configure" 15648#include "confdefs.h" 15649 15650/* Override any gcc2 internal prototype to avoid an error. */ 15651#ifdef __cplusplus 15652extern "C" 15653#endif 15654/* We use char because int might match the return type of a gcc2 15655 builtin and then its argument prototype would still apply. */ 15656char XOpenDisplay (); 15657int 15658main () 15659{ 15660XOpenDisplay (); 15661 ; 15662 return 0; 15663} 15664_ACEOF 15665rm -f conftest.$ac_objext conftest$ac_exeext 15666if { (eval echo "$as_me:15666: \"$ac_link\"") >&5 15667 (eval $ac_link) 2>&5 15668 ac_status=$? 15669 echo "$as_me:15669: \$? = $ac_status" >&5 15670 (exit $ac_status); } && 15671 { ac_try='test -s conftest$ac_exeext' 15672 { (eval echo "$as_me:15672: \"$ac_try\"") >&5 15673 (eval $ac_try) 2>&5 15674 ac_status=$? 15675 echo "$as_me:15675: \$? = $ac_status" >&5 15676 (exit $ac_status); }; }; then 15677 : 15678else 15679 echo "$as_me: failed program was:" >&5 15680cat conftest.$ac_ext >&5 15681echo "$as_me:15681: checking for dnet_ntoa in -ldnet" >&5 15682echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 15683if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 15684 echo $ECHO_N "(cached) $ECHO_C" >&6 15685else 15686 ac_check_lib_save_LIBS=$LIBS 15687LIBS="-ldnet $LIBS" 15688cat >conftest.$ac_ext <<_ACEOF 15689#line 15689 "configure" 15690#include "confdefs.h" 15691 15692/* Override any gcc2 internal prototype to avoid an error. */ 15693#ifdef __cplusplus 15694extern "C" 15695#endif 15696/* We use char because int might match the return type of a gcc2 15697 builtin and then its argument prototype would still apply. */ 15698char dnet_ntoa (); 15699int 15700main () 15701{ 15702dnet_ntoa (); 15703 ; 15704 return 0; 15705} 15706_ACEOF 15707rm -f conftest.$ac_objext conftest$ac_exeext 15708if { (eval echo "$as_me:15708: \"$ac_link\"") >&5 15709 (eval $ac_link) 2>&5 15710 ac_status=$? 15711 echo "$as_me:15711: \$? = $ac_status" >&5 15712 (exit $ac_status); } && 15713 { ac_try='test -s conftest$ac_exeext' 15714 { (eval echo "$as_me:15714: \"$ac_try\"") >&5 15715 (eval $ac_try) 2>&5 15716 ac_status=$? 15717 echo "$as_me:15717: \$? = $ac_status" >&5 15718 (exit $ac_status); }; }; then 15719 ac_cv_lib_dnet_dnet_ntoa=yes 15720else 15721 echo "$as_me: failed program was:" >&5 15722cat conftest.$ac_ext >&5 15723ac_cv_lib_dnet_dnet_ntoa=no 15724fi 15725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15726LIBS=$ac_check_lib_save_LIBS 15727fi 15728echo "$as_me:15728: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 15729echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 15730if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 15731 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 15732fi 15733 15734 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 15735 echo "$as_me:15735: checking for dnet_ntoa in -ldnet_stub" >&5 15736echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 15737if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 15738 echo $ECHO_N "(cached) $ECHO_C" >&6 15739else 15740 ac_check_lib_save_LIBS=$LIBS 15741LIBS="-ldnet_stub $LIBS" 15742cat >conftest.$ac_ext <<_ACEOF 15743#line 15743 "configure" 15744#include "confdefs.h" 15745 15746/* Override any gcc2 internal prototype to avoid an error. */ 15747#ifdef __cplusplus 15748extern "C" 15749#endif 15750/* We use char because int might match the return type of a gcc2 15751 builtin and then its argument prototype would still apply. */ 15752char dnet_ntoa (); 15753int 15754main () 15755{ 15756dnet_ntoa (); 15757 ; 15758 return 0; 15759} 15760_ACEOF 15761rm -f conftest.$ac_objext conftest$ac_exeext 15762if { (eval echo "$as_me:15762: \"$ac_link\"") >&5 15763 (eval $ac_link) 2>&5 15764 ac_status=$? 15765 echo "$as_me:15765: \$? = $ac_status" >&5 15766 (exit $ac_status); } && 15767 { ac_try='test -s conftest$ac_exeext' 15768 { (eval echo "$as_me:15768: \"$ac_try\"") >&5 15769 (eval $ac_try) 2>&5 15770 ac_status=$? 15771 echo "$as_me:15771: \$? = $ac_status" >&5 15772 (exit $ac_status); }; }; then 15773 ac_cv_lib_dnet_stub_dnet_ntoa=yes 15774else 15775 echo "$as_me: failed program was:" >&5 15776cat conftest.$ac_ext >&5 15777ac_cv_lib_dnet_stub_dnet_ntoa=no 15778fi 15779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15780LIBS=$ac_check_lib_save_LIBS 15781fi 15782echo "$as_me:15782: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 15783echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 15784if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 15785 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 15786fi 15787 15788 fi 15789fi 15790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15791 LIBS="$ac_xsave_LIBS" 15792 15793 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 15794 # to get the SysV transport functions. 15795 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 15796 # needs -lnsl. 15797 # The nsl library prevents programs from opening the X display 15798 # on Irix 5.2, according to T.E. Dickey. 15799 # The functions gethostbyname, getservbyname, and inet_addr are 15800 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 15801 echo "$as_me:15801: checking for gethostbyname" >&5 15802echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 15803if test "${ac_cv_func_gethostbyname+set}" = set; then 15804 echo $ECHO_N "(cached) $ECHO_C" >&6 15805else 15806 cat >conftest.$ac_ext <<_ACEOF 15807#line 15807 "configure" 15808#include "confdefs.h" 15809/* System header to define __stub macros and hopefully few prototypes, 15810 which can conflict with char gethostbyname (); below. */ 15811#include <assert.h> 15812/* Override any gcc2 internal prototype to avoid an error. */ 15813#ifdef __cplusplus 15814extern "C" 15815#endif 15816/* We use char because int might match the return type of a gcc2 15817 builtin and then its argument prototype would still apply. */ 15818char gethostbyname (); 15819char (*f) (); 15820 15821int 15822main () 15823{ 15824/* The GNU C library defines this for functions which it implements 15825 to always fail with ENOSYS. Some functions are actually named 15826 something starting with __ and the normal name is an alias. */ 15827#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 15828choke me 15829#else 15830f = gethostbyname; 15831#endif 15832 15833 ; 15834 return 0; 15835} 15836_ACEOF 15837rm -f conftest.$ac_objext conftest$ac_exeext 15838if { (eval echo "$as_me:15838: \"$ac_link\"") >&5 15839 (eval $ac_link) 2>&5 15840 ac_status=$? 15841 echo "$as_me:15841: \$? = $ac_status" >&5 15842 (exit $ac_status); } && 15843 { ac_try='test -s conftest$ac_exeext' 15844 { (eval echo "$as_me:15844: \"$ac_try\"") >&5 15845 (eval $ac_try) 2>&5 15846 ac_status=$? 15847 echo "$as_me:15847: \$? = $ac_status" >&5 15848 (exit $ac_status); }; }; then 15849 ac_cv_func_gethostbyname=yes 15850else 15851 echo "$as_me: failed program was:" >&5 15852cat conftest.$ac_ext >&5 15853ac_cv_func_gethostbyname=no 15854fi 15855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15856fi 15857echo "$as_me:15857: result: $ac_cv_func_gethostbyname" >&5 15858echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 15859 15860 if test $ac_cv_func_gethostbyname = no; then 15861 echo "$as_me:15861: checking for gethostbyname in -lnsl" >&5 15862echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 15863if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 15864 echo $ECHO_N "(cached) $ECHO_C" >&6 15865else 15866 ac_check_lib_save_LIBS=$LIBS 15867LIBS="-lnsl $LIBS" 15868cat >conftest.$ac_ext <<_ACEOF 15869#line 15869 "configure" 15870#include "confdefs.h" 15871 15872/* Override any gcc2 internal prototype to avoid an error. */ 15873#ifdef __cplusplus 15874extern "C" 15875#endif 15876/* We use char because int might match the return type of a gcc2 15877 builtin and then its argument prototype would still apply. */ 15878char gethostbyname (); 15879int 15880main () 15881{ 15882gethostbyname (); 15883 ; 15884 return 0; 15885} 15886_ACEOF 15887rm -f conftest.$ac_objext conftest$ac_exeext 15888if { (eval echo "$as_me:15888: \"$ac_link\"") >&5 15889 (eval $ac_link) 2>&5 15890 ac_status=$? 15891 echo "$as_me:15891: \$? = $ac_status" >&5 15892 (exit $ac_status); } && 15893 { ac_try='test -s conftest$ac_exeext' 15894 { (eval echo "$as_me:15894: \"$ac_try\"") >&5 15895 (eval $ac_try) 2>&5 15896 ac_status=$? 15897 echo "$as_me:15897: \$? = $ac_status" >&5 15898 (exit $ac_status); }; }; then 15899 ac_cv_lib_nsl_gethostbyname=yes 15900else 15901 echo "$as_me: failed program was:" >&5 15902cat conftest.$ac_ext >&5 15903ac_cv_lib_nsl_gethostbyname=no 15904fi 15905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15906LIBS=$ac_check_lib_save_LIBS 15907fi 15908echo "$as_me:15908: result: $ac_cv_lib_nsl_gethostbyname" >&5 15909echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 15910if test $ac_cv_lib_nsl_gethostbyname = yes; then 15911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 15912fi 15913 15914 if test $ac_cv_lib_nsl_gethostbyname = no; then 15915 echo "$as_me:15915: checking for gethostbyname in -lbsd" >&5 15916echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 15917if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 15918 echo $ECHO_N "(cached) $ECHO_C" >&6 15919else 15920 ac_check_lib_save_LIBS=$LIBS 15921LIBS="-lbsd $LIBS" 15922cat >conftest.$ac_ext <<_ACEOF 15923#line 15923 "configure" 15924#include "confdefs.h" 15925 15926/* Override any gcc2 internal prototype to avoid an error. */ 15927#ifdef __cplusplus 15928extern "C" 15929#endif 15930/* We use char because int might match the return type of a gcc2 15931 builtin and then its argument prototype would still apply. */ 15932char gethostbyname (); 15933int 15934main () 15935{ 15936gethostbyname (); 15937 ; 15938 return 0; 15939} 15940_ACEOF 15941rm -f conftest.$ac_objext conftest$ac_exeext 15942if { (eval echo "$as_me:15942: \"$ac_link\"") >&5 15943 (eval $ac_link) 2>&5 15944 ac_status=$? 15945 echo "$as_me:15945: \$? = $ac_status" >&5 15946 (exit $ac_status); } && 15947 { ac_try='test -s conftest$ac_exeext' 15948 { (eval echo "$as_me:15948: \"$ac_try\"") >&5 15949 (eval $ac_try) 2>&5 15950 ac_status=$? 15951 echo "$as_me:15951: \$? = $ac_status" >&5 15952 (exit $ac_status); }; }; then 15953 ac_cv_lib_bsd_gethostbyname=yes 15954else 15955 echo "$as_me: failed program was:" >&5 15956cat conftest.$ac_ext >&5 15957ac_cv_lib_bsd_gethostbyname=no 15958fi 15959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15960LIBS=$ac_check_lib_save_LIBS 15961fi 15962echo "$as_me:15962: result: $ac_cv_lib_bsd_gethostbyname" >&5 15963echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 15964if test $ac_cv_lib_bsd_gethostbyname = yes; then 15965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 15966fi 15967 15968 fi 15969 fi 15970 15971 # lieder@skyler.mavd.honeywell.com says without -lsocket, 15972 # socket/setsockopt and other routines are undefined under SCO ODT 15973 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 15974 # on later versions), says Simon Leinen: it contains gethostby* 15975 # variants that don't use the nameserver (or something). -lsocket 15976 # must be given before -lnsl if both are needed. We assume that 15977 # if connect needs -lnsl, so does gethostbyname. 15978 echo "$as_me:15978: checking for connect" >&5 15979echo $ECHO_N "checking for connect... $ECHO_C" >&6 15980if test "${ac_cv_func_connect+set}" = set; then 15981 echo $ECHO_N "(cached) $ECHO_C" >&6 15982else 15983 cat >conftest.$ac_ext <<_ACEOF 15984#line 15984 "configure" 15985#include "confdefs.h" 15986/* System header to define __stub macros and hopefully few prototypes, 15987 which can conflict with char connect (); below. */ 15988#include <assert.h> 15989/* Override any gcc2 internal prototype to avoid an error. */ 15990#ifdef __cplusplus 15991extern "C" 15992#endif 15993/* We use char because int might match the return type of a gcc2 15994 builtin and then its argument prototype would still apply. */ 15995char connect (); 15996char (*f) (); 15997 15998int 15999main () 16000{ 16001/* The GNU C library defines this for functions which it implements 16002 to always fail with ENOSYS. Some functions are actually named 16003 something starting with __ and the normal name is an alias. */ 16004#if defined (__stub_connect) || defined (__stub___connect) 16005choke me 16006#else 16007f = connect; 16008#endif 16009 16010 ; 16011 return 0; 16012} 16013_ACEOF 16014rm -f conftest.$ac_objext conftest$ac_exeext 16015if { (eval echo "$as_me:16015: \"$ac_link\"") >&5 16016 (eval $ac_link) 2>&5 16017 ac_status=$? 16018 echo "$as_me:16018: \$? = $ac_status" >&5 16019 (exit $ac_status); } && 16020 { ac_try='test -s conftest$ac_exeext' 16021 { (eval echo "$as_me:16021: \"$ac_try\"") >&5 16022 (eval $ac_try) 2>&5 16023 ac_status=$? 16024 echo "$as_me:16024: \$? = $ac_status" >&5 16025 (exit $ac_status); }; }; then 16026 ac_cv_func_connect=yes 16027else 16028 echo "$as_me: failed program was:" >&5 16029cat conftest.$ac_ext >&5 16030ac_cv_func_connect=no 16031fi 16032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16033fi 16034echo "$as_me:16034: result: $ac_cv_func_connect" >&5 16035echo "${ECHO_T}$ac_cv_func_connect" >&6 16036 16037 if test $ac_cv_func_connect = no; then 16038 echo "$as_me:16038: checking for connect in -lsocket" >&5 16039echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 16040if test "${ac_cv_lib_socket_connect+set}" = set; then 16041 echo $ECHO_N "(cached) $ECHO_C" >&6 16042else 16043 ac_check_lib_save_LIBS=$LIBS 16044LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 16045cat >conftest.$ac_ext <<_ACEOF 16046#line 16046 "configure" 16047#include "confdefs.h" 16048 16049/* Override any gcc2 internal prototype to avoid an error. */ 16050#ifdef __cplusplus 16051extern "C" 16052#endif 16053/* We use char because int might match the return type of a gcc2 16054 builtin and then its argument prototype would still apply. */ 16055char connect (); 16056int 16057main () 16058{ 16059connect (); 16060 ; 16061 return 0; 16062} 16063_ACEOF 16064rm -f conftest.$ac_objext conftest$ac_exeext 16065if { (eval echo "$as_me:16065: \"$ac_link\"") >&5 16066 (eval $ac_link) 2>&5 16067 ac_status=$? 16068 echo "$as_me:16068: \$? = $ac_status" >&5 16069 (exit $ac_status); } && 16070 { ac_try='test -s conftest$ac_exeext' 16071 { (eval echo "$as_me:16071: \"$ac_try\"") >&5 16072 (eval $ac_try) 2>&5 16073 ac_status=$? 16074 echo "$as_me:16074: \$? = $ac_status" >&5 16075 (exit $ac_status); }; }; then 16076 ac_cv_lib_socket_connect=yes 16077else 16078 echo "$as_me: failed program was:" >&5 16079cat conftest.$ac_ext >&5 16080ac_cv_lib_socket_connect=no 16081fi 16082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16083LIBS=$ac_check_lib_save_LIBS 16084fi 16085echo "$as_me:16085: result: $ac_cv_lib_socket_connect" >&5 16086echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 16087if test $ac_cv_lib_socket_connect = yes; then 16088 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 16089fi 16090 16091 fi 16092 16093 # Guillermo Gomez says -lposix is necessary on A/UX. 16094 echo "$as_me:16094: checking for remove" >&5 16095echo $ECHO_N "checking for remove... $ECHO_C" >&6 16096if test "${ac_cv_func_remove+set}" = set; then 16097 echo $ECHO_N "(cached) $ECHO_C" >&6 16098else 16099 cat >conftest.$ac_ext <<_ACEOF 16100#line 16100 "configure" 16101#include "confdefs.h" 16102/* System header to define __stub macros and hopefully few prototypes, 16103 which can conflict with char remove (); below. */ 16104#include <assert.h> 16105/* Override any gcc2 internal prototype to avoid an error. */ 16106#ifdef __cplusplus 16107extern "C" 16108#endif 16109/* We use char because int might match the return type of a gcc2 16110 builtin and then its argument prototype would still apply. */ 16111char remove (); 16112char (*f) (); 16113 16114int 16115main () 16116{ 16117/* The GNU C library defines this for functions which it implements 16118 to always fail with ENOSYS. Some functions are actually named 16119 something starting with __ and the normal name is an alias. */ 16120#if defined (__stub_remove) || defined (__stub___remove) 16121choke me 16122#else 16123f = remove; 16124#endif 16125 16126 ; 16127 return 0; 16128} 16129_ACEOF 16130rm -f conftest.$ac_objext conftest$ac_exeext 16131if { (eval echo "$as_me:16131: \"$ac_link\"") >&5 16132 (eval $ac_link) 2>&5 16133 ac_status=$? 16134 echo "$as_me:16134: \$? = $ac_status" >&5 16135 (exit $ac_status); } && 16136 { ac_try='test -s conftest$ac_exeext' 16137 { (eval echo "$as_me:16137: \"$ac_try\"") >&5 16138 (eval $ac_try) 2>&5 16139 ac_status=$? 16140 echo "$as_me:16140: \$? = $ac_status" >&5 16141 (exit $ac_status); }; }; then 16142 ac_cv_func_remove=yes 16143else 16144 echo "$as_me: failed program was:" >&5 16145cat conftest.$ac_ext >&5 16146ac_cv_func_remove=no 16147fi 16148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16149fi 16150echo "$as_me:16150: result: $ac_cv_func_remove" >&5 16151echo "${ECHO_T}$ac_cv_func_remove" >&6 16152 16153 if test $ac_cv_func_remove = no; then 16154 echo "$as_me:16154: checking for remove in -lposix" >&5 16155echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 16156if test "${ac_cv_lib_posix_remove+set}" = set; then 16157 echo $ECHO_N "(cached) $ECHO_C" >&6 16158else 16159 ac_check_lib_save_LIBS=$LIBS 16160LIBS="-lposix $LIBS" 16161cat >conftest.$ac_ext <<_ACEOF 16162#line 16162 "configure" 16163#include "confdefs.h" 16164 16165/* Override any gcc2 internal prototype to avoid an error. */ 16166#ifdef __cplusplus 16167extern "C" 16168#endif 16169/* We use char because int might match the return type of a gcc2 16170 builtin and then its argument prototype would still apply. */ 16171char remove (); 16172int 16173main () 16174{ 16175remove (); 16176 ; 16177 return 0; 16178} 16179_ACEOF 16180rm -f conftest.$ac_objext conftest$ac_exeext 16181if { (eval echo "$as_me:16181: \"$ac_link\"") >&5 16182 (eval $ac_link) 2>&5 16183 ac_status=$? 16184 echo "$as_me:16184: \$? = $ac_status" >&5 16185 (exit $ac_status); } && 16186 { ac_try='test -s conftest$ac_exeext' 16187 { (eval echo "$as_me:16187: \"$ac_try\"") >&5 16188 (eval $ac_try) 2>&5 16189 ac_status=$? 16190 echo "$as_me:16190: \$? = $ac_status" >&5 16191 (exit $ac_status); }; }; then 16192 ac_cv_lib_posix_remove=yes 16193else 16194 echo "$as_me: failed program was:" >&5 16195cat conftest.$ac_ext >&5 16196ac_cv_lib_posix_remove=no 16197fi 16198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16199LIBS=$ac_check_lib_save_LIBS 16200fi 16201echo "$as_me:16201: result: $ac_cv_lib_posix_remove" >&5 16202echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 16203if test $ac_cv_lib_posix_remove = yes; then 16204 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 16205fi 16206 16207 fi 16208 16209 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 16210 echo "$as_me:16210: checking for shmat" >&5 16211echo $ECHO_N "checking for shmat... $ECHO_C" >&6 16212if test "${ac_cv_func_shmat+set}" = set; then 16213 echo $ECHO_N "(cached) $ECHO_C" >&6 16214else 16215 cat >conftest.$ac_ext <<_ACEOF 16216#line 16216 "configure" 16217#include "confdefs.h" 16218/* System header to define __stub macros and hopefully few prototypes, 16219 which can conflict with char shmat (); below. */ 16220#include <assert.h> 16221/* Override any gcc2 internal prototype to avoid an error. */ 16222#ifdef __cplusplus 16223extern "C" 16224#endif 16225/* We use char because int might match the return type of a gcc2 16226 builtin and then its argument prototype would still apply. */ 16227char shmat (); 16228char (*f) (); 16229 16230int 16231main () 16232{ 16233/* The GNU C library defines this for functions which it implements 16234 to always fail with ENOSYS. Some functions are actually named 16235 something starting with __ and the normal name is an alias. */ 16236#if defined (__stub_shmat) || defined (__stub___shmat) 16237choke me 16238#else 16239f = shmat; 16240#endif 16241 16242 ; 16243 return 0; 16244} 16245_ACEOF 16246rm -f conftest.$ac_objext conftest$ac_exeext 16247if { (eval echo "$as_me:16247: \"$ac_link\"") >&5 16248 (eval $ac_link) 2>&5 16249 ac_status=$? 16250 echo "$as_me:16250: \$? = $ac_status" >&5 16251 (exit $ac_status); } && 16252 { ac_try='test -s conftest$ac_exeext' 16253 { (eval echo "$as_me:16253: \"$ac_try\"") >&5 16254 (eval $ac_try) 2>&5 16255 ac_status=$? 16256 echo "$as_me:16256: \$? = $ac_status" >&5 16257 (exit $ac_status); }; }; then 16258 ac_cv_func_shmat=yes 16259else 16260 echo "$as_me: failed program was:" >&5 16261cat conftest.$ac_ext >&5 16262ac_cv_func_shmat=no 16263fi 16264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16265fi 16266echo "$as_me:16266: result: $ac_cv_func_shmat" >&5 16267echo "${ECHO_T}$ac_cv_func_shmat" >&6 16268 16269 if test $ac_cv_func_shmat = no; then 16270 echo "$as_me:16270: checking for shmat in -lipc" >&5 16271echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 16272if test "${ac_cv_lib_ipc_shmat+set}" = set; then 16273 echo $ECHO_N "(cached) $ECHO_C" >&6 16274else 16275 ac_check_lib_save_LIBS=$LIBS 16276LIBS="-lipc $LIBS" 16277cat >conftest.$ac_ext <<_ACEOF 16278#line 16278 "configure" 16279#include "confdefs.h" 16280 16281/* Override any gcc2 internal prototype to avoid an error. */ 16282#ifdef __cplusplus 16283extern "C" 16284#endif 16285/* We use char because int might match the return type of a gcc2 16286 builtin and then its argument prototype would still apply. */ 16287char shmat (); 16288int 16289main () 16290{ 16291shmat (); 16292 ; 16293 return 0; 16294} 16295_ACEOF 16296rm -f conftest.$ac_objext conftest$ac_exeext 16297if { (eval echo "$as_me:16297: \"$ac_link\"") >&5 16298 (eval $ac_link) 2>&5 16299 ac_status=$? 16300 echo "$as_me:16300: \$? = $ac_status" >&5 16301 (exit $ac_status); } && 16302 { ac_try='test -s conftest$ac_exeext' 16303 { (eval echo "$as_me:16303: \"$ac_try\"") >&5 16304 (eval $ac_try) 2>&5 16305 ac_status=$? 16306 echo "$as_me:16306: \$? = $ac_status" >&5 16307 (exit $ac_status); }; }; then 16308 ac_cv_lib_ipc_shmat=yes 16309else 16310 echo "$as_me: failed program was:" >&5 16311cat conftest.$ac_ext >&5 16312ac_cv_lib_ipc_shmat=no 16313fi 16314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16315LIBS=$ac_check_lib_save_LIBS 16316fi 16317echo "$as_me:16317: result: $ac_cv_lib_ipc_shmat" >&5 16318echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 16319if test $ac_cv_lib_ipc_shmat = yes; then 16320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 16321fi 16322 16323 fi 16324 fi 16325 16326 # Check for libraries that X11R6 Xt/Xaw programs need. 16327 ac_save_LDFLAGS=$LDFLAGS 16328 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 16329 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 16330 # check for ICE first), but we must link in the order -lSM -lICE or 16331 # we get undefined symbols. So assume we have SM if we have ICE. 16332 # These have to be linked with before -lX11, unlike the other 16333 # libraries we check for below, so use a different variable. 16334 # John Interrante, Karl Berry 16335 echo "$as_me:16335: checking for IceConnectionNumber in -lICE" >&5 16336echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 16337if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 16338 echo $ECHO_N "(cached) $ECHO_C" >&6 16339else 16340 ac_check_lib_save_LIBS=$LIBS 16341LIBS="-lICE $X_EXTRA_LIBS $LIBS" 16342cat >conftest.$ac_ext <<_ACEOF 16343#line 16343 "configure" 16344#include "confdefs.h" 16345 16346/* Override any gcc2 internal prototype to avoid an error. */ 16347#ifdef __cplusplus 16348extern "C" 16349#endif 16350/* We use char because int might match the return type of a gcc2 16351 builtin and then its argument prototype would still apply. */ 16352char IceConnectionNumber (); 16353int 16354main () 16355{ 16356IceConnectionNumber (); 16357 ; 16358 return 0; 16359} 16360_ACEOF 16361rm -f conftest.$ac_objext conftest$ac_exeext 16362if { (eval echo "$as_me:16362: \"$ac_link\"") >&5 16363 (eval $ac_link) 2>&5 16364 ac_status=$? 16365 echo "$as_me:16365: \$? = $ac_status" >&5 16366 (exit $ac_status); } && 16367 { ac_try='test -s conftest$ac_exeext' 16368 { (eval echo "$as_me:16368: \"$ac_try\"") >&5 16369 (eval $ac_try) 2>&5 16370 ac_status=$? 16371 echo "$as_me:16371: \$? = $ac_status" >&5 16372 (exit $ac_status); }; }; then 16373 ac_cv_lib_ICE_IceConnectionNumber=yes 16374else 16375 echo "$as_me: failed program was:" >&5 16376cat conftest.$ac_ext >&5 16377ac_cv_lib_ICE_IceConnectionNumber=no 16378fi 16379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16380LIBS=$ac_check_lib_save_LIBS 16381fi 16382echo "$as_me:16382: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 16383echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 16384if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 16385 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 16386fi 16387 16388 LDFLAGS=$ac_save_LDFLAGS 16389 16390fi 16391 16392# try to figure out if we need any additional ld flags, like -R 16393# and yes, the autoconf X test is utterly broken 16394if test "$no_x" != yes; then 16395 echo "$as_me:16395: checking for special X linker flags" >&5 16396echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6 16397if test "${krb_cv_sys_x_libs_rpath+set}" = set; then 16398 echo $ECHO_N "(cached) $ECHO_C" >&6 16399else 16400 16401 ac_save_libs="$LIBS" 16402 ac_save_cflags="$CFLAGS" 16403 CFLAGS="$CFLAGS $X_CFLAGS" 16404 krb_cv_sys_x_libs_rpath="" 16405 krb_cv_sys_x_libs="" 16406 for rflag in "" "-R" "-R " "-rpath "; do 16407 if test "$rflag" = ""; then 16408 foo="$X_LIBS" 16409 else 16410 foo="" 16411 for flag in $X_LIBS; do 16412 case $flag in 16413 -L*) 16414 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`" 16415 ;; 16416 *) 16417 foo="$foo $flag" 16418 ;; 16419 esac 16420 done 16421 fi 16422 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 16423 if test "$cross_compiling" = yes; then 16424 { { echo "$as_me:16424: error: cannot run test program while cross compiling" >&5 16425echo "$as_me: error: cannot run test program while cross compiling" >&2;} 16426 { (exit 1); exit 1; }; } 16427else 16428 cat >conftest.$ac_ext <<_ACEOF 16429#line 16429 "configure" 16430#include "confdefs.h" 16431 16432 #include <X11/Xlib.h> 16433 foo() 16434 { 16435 XOpenDisplay(NULL); 16436 } 16437 main() 16438 { 16439 return 0; 16440 } 16441 16442_ACEOF 16443rm -f conftest$ac_exeext 16444if { (eval echo "$as_me:16444: \"$ac_link\"") >&5 16445 (eval $ac_link) 2>&5 16446 ac_status=$? 16447 echo "$as_me:16447: \$? = $ac_status" >&5 16448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16449 { (eval echo "$as_me:16449: \"$ac_try\"") >&5 16450 (eval $ac_try) 2>&5 16451 ac_status=$? 16452 echo "$as_me:16452: \$? = $ac_status" >&5 16453 (exit $ac_status); }; }; then 16454 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break 16455else 16456 echo "$as_me: program exited with status $ac_status" >&5 16457echo "$as_me: failed program was:" >&5 16458cat conftest.$ac_ext >&5 16459: 16460fi 16461rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16462fi 16463 done 16464 LIBS="$ac_save_libs" 16465 CFLAGS="$ac_save_cflags" 16466 16467fi 16468echo "$as_me:16468: result: $krb_cv_sys_x_libs_rpath" >&5 16469echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6 16470 X_LIBS="$krb_cv_sys_x_libs" 16471fi 16472 16473if test "$no_x" != yes; then 16474 HAVE_X_TRUE= 16475 HAVE_X_FALSE='#' 16476else 16477 HAVE_X_TRUE='#' 16478 HAVE_X_FALSE= 16479fi 16480 16481save_CFLAGS="$CFLAGS" 16482CFLAGS="$X_CFLAGS $CFLAGS" 16483save_LIBS="$LIBS" 16484LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS" 16485save_LDFLAGS="$LDFLAGS" 16486LDFLAGS="$LDFLAGS $X_LIBS" 16487 16488echo "$as_me:16488: checking for XauWriteAuth" >&5 16489echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6 16490if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then 16491 echo $ECHO_N "(cached) $ECHO_C" >&6 16492else 16493 16494if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then 16495 ac_save_LIBS="$LIBS" 16496 for ac_lib in "" X11 Xau; do 16497 case "$ac_lib" in 16498 "") ;; 16499 yes) ac_lib="" ;; 16500 no) continue ;; 16501 -l*) ;; 16502 *) ac_lib="-l$ac_lib" ;; 16503 esac 16504 LIBS=" $ac_lib $ac_save_LIBS" 16505 cat >conftest.$ac_ext <<_ACEOF 16506#line 16506 "configure" 16507#include "confdefs.h" 16508 16509int 16510main () 16511{ 16512XauWriteAuth() 16513 ; 16514 return 0; 16515} 16516_ACEOF 16517rm -f conftest.$ac_objext conftest$ac_exeext 16518if { (eval echo "$as_me:16518: \"$ac_link\"") >&5 16519 (eval $ac_link) 2>&5 16520 ac_status=$? 16521 echo "$as_me:16521: \$? = $ac_status" >&5 16522 (exit $ac_status); } && 16523 { ac_try='test -s conftest$ac_exeext' 16524 { (eval echo "$as_me:16524: \"$ac_try\"") >&5 16525 (eval $ac_try) 2>&5 16526 ac_status=$? 16527 echo "$as_me:16527: \$? = $ac_status" >&5 16528 (exit $ac_status); }; }; then 16529 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break 16530else 16531 echo "$as_me: failed program was:" >&5 16532cat conftest.$ac_ext >&5 16533fi 16534rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16535 done 16536 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}" 16537 LIBS="$ac_save_LIBS" 16538fi 16539 16540fi 16541 16542eval "ac_res=\$ac_cv_funclib_XauWriteAuth" 16543 16544if false; then 16545 16546for ac_func in XauWriteAuth 16547do 16548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16549echo "$as_me:16549: checking for $ac_func" >&5 16550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16551if eval "test \"\${$as_ac_var+set}\" = set"; then 16552 echo $ECHO_N "(cached) $ECHO_C" >&6 16553else 16554 cat >conftest.$ac_ext <<_ACEOF 16555#line 16555 "configure" 16556#include "confdefs.h" 16557/* System header to define __stub macros and hopefully few prototypes, 16558 which can conflict with char $ac_func (); below. */ 16559#include <assert.h> 16560/* Override any gcc2 internal prototype to avoid an error. */ 16561#ifdef __cplusplus 16562extern "C" 16563#endif 16564/* We use char because int might match the return type of a gcc2 16565 builtin and then its argument prototype would still apply. */ 16566char $ac_func (); 16567char (*f) (); 16568 16569int 16570main () 16571{ 16572/* The GNU C library defines this for functions which it implements 16573 to always fail with ENOSYS. Some functions are actually named 16574 something starting with __ and the normal name is an alias. */ 16575#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16576choke me 16577#else 16578f = $ac_func; 16579#endif 16580 16581 ; 16582 return 0; 16583} 16584_ACEOF 16585rm -f conftest.$ac_objext conftest$ac_exeext 16586if { (eval echo "$as_me:16586: \"$ac_link\"") >&5 16587 (eval $ac_link) 2>&5 16588 ac_status=$? 16589 echo "$as_me:16589: \$? = $ac_status" >&5 16590 (exit $ac_status); } && 16591 { ac_try='test -s conftest$ac_exeext' 16592 { (eval echo "$as_me:16592: \"$ac_try\"") >&5 16593 (eval $ac_try) 2>&5 16594 ac_status=$? 16595 echo "$as_me:16595: \$? = $ac_status" >&5 16596 (exit $ac_status); }; }; then 16597 eval "$as_ac_var=yes" 16598else 16599 echo "$as_me: failed program was:" >&5 16600cat conftest.$ac_ext >&5 16601eval "$as_ac_var=no" 16602fi 16603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16604fi 16605echo "$as_me:16605: result: `eval echo '${'$as_ac_var'}'`" >&5 16606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16607if test `eval echo '${'$as_ac_var'}'` = yes; then 16608 cat >>confdefs.h <<EOF 16609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16610EOF 16611 16612fi 16613done 16614 16615fi 16616# XauWriteAuth 16617eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16618eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16619eval "LIB_XauWriteAuth=$ac_res" 16620 16621case "$ac_res" in 16622 yes) 16623 eval "ac_cv_func_XauWriteAuth=yes" 16624 eval "LIB_XauWriteAuth=" 16625 cat >>confdefs.h <<EOF 16626#define $ac_tr_func 1 16627EOF 16628 16629 echo "$as_me:16629: result: yes" >&5 16630echo "${ECHO_T}yes" >&6 16631 ;; 16632 no) 16633 eval "ac_cv_func_XauWriteAuth=no" 16634 eval "LIB_XauWriteAuth=" 16635 echo "$as_me:16635: result: no" >&5 16636echo "${ECHO_T}no" >&6 16637 ;; 16638 *) 16639 eval "ac_cv_func_XauWriteAuth=yes" 16640 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16641 cat >>confdefs.h <<EOF 16642#define $ac_tr_func 1 16643EOF 16644 16645 cat >>confdefs.h <<EOF 16646#define $ac_tr_lib 1 16647EOF 16648 16649 echo "$as_me:16649: result: yes, in $ac_res" >&5 16650echo "${ECHO_T}yes, in $ac_res" >&6 16651 ;; 16652esac 16653 16654ac_xxx="$LIBS" 16655LIBS="$LIB_XauWriteAuth $LIBS" 16656 16657echo "$as_me:16657: checking for XauReadAuth" >&5 16658echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6 16659if test "${ac_cv_funclib_XauReadAuth+set}" = set; then 16660 echo $ECHO_N "(cached) $ECHO_C" >&6 16661else 16662 16663if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then 16664 ac_save_LIBS="$LIBS" 16665 for ac_lib in "" X11 Xau; do 16666 case "$ac_lib" in 16667 "") ;; 16668 yes) ac_lib="" ;; 16669 no) continue ;; 16670 -l*) ;; 16671 *) ac_lib="-l$ac_lib" ;; 16672 esac 16673 LIBS=" $ac_lib $ac_save_LIBS" 16674 cat >conftest.$ac_ext <<_ACEOF 16675#line 16675 "configure" 16676#include "confdefs.h" 16677 16678int 16679main () 16680{ 16681XauReadAuth() 16682 ; 16683 return 0; 16684} 16685_ACEOF 16686rm -f conftest.$ac_objext conftest$ac_exeext 16687if { (eval echo "$as_me:16687: \"$ac_link\"") >&5 16688 (eval $ac_link) 2>&5 16689 ac_status=$? 16690 echo "$as_me:16690: \$? = $ac_status" >&5 16691 (exit $ac_status); } && 16692 { ac_try='test -s conftest$ac_exeext' 16693 { (eval echo "$as_me:16693: \"$ac_try\"") >&5 16694 (eval $ac_try) 2>&5 16695 ac_status=$? 16696 echo "$as_me:16696: \$? = $ac_status" >&5 16697 (exit $ac_status); }; }; then 16698 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break 16699else 16700 echo "$as_me: failed program was:" >&5 16701cat conftest.$ac_ext >&5 16702fi 16703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16704 done 16705 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}" 16706 LIBS="$ac_save_LIBS" 16707fi 16708 16709fi 16710 16711eval "ac_res=\$ac_cv_funclib_XauReadAuth" 16712 16713if false; then 16714 16715for ac_func in XauReadAuth 16716do 16717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16718echo "$as_me:16718: checking for $ac_func" >&5 16719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16720if eval "test \"\${$as_ac_var+set}\" = set"; then 16721 echo $ECHO_N "(cached) $ECHO_C" >&6 16722else 16723 cat >conftest.$ac_ext <<_ACEOF 16724#line 16724 "configure" 16725#include "confdefs.h" 16726/* System header to define __stub macros and hopefully few prototypes, 16727 which can conflict with char $ac_func (); below. */ 16728#include <assert.h> 16729/* Override any gcc2 internal prototype to avoid an error. */ 16730#ifdef __cplusplus 16731extern "C" 16732#endif 16733/* We use char because int might match the return type of a gcc2 16734 builtin and then its argument prototype would still apply. */ 16735char $ac_func (); 16736char (*f) (); 16737 16738int 16739main () 16740{ 16741/* The GNU C library defines this for functions which it implements 16742 to always fail with ENOSYS. Some functions are actually named 16743 something starting with __ and the normal name is an alias. */ 16744#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16745choke me 16746#else 16747f = $ac_func; 16748#endif 16749 16750 ; 16751 return 0; 16752} 16753_ACEOF 16754rm -f conftest.$ac_objext conftest$ac_exeext 16755if { (eval echo "$as_me:16755: \"$ac_link\"") >&5 16756 (eval $ac_link) 2>&5 16757 ac_status=$? 16758 echo "$as_me:16758: \$? = $ac_status" >&5 16759 (exit $ac_status); } && 16760 { ac_try='test -s conftest$ac_exeext' 16761 { (eval echo "$as_me:16761: \"$ac_try\"") >&5 16762 (eval $ac_try) 2>&5 16763 ac_status=$? 16764 echo "$as_me:16764: \$? = $ac_status" >&5 16765 (exit $ac_status); }; }; then 16766 eval "$as_ac_var=yes" 16767else 16768 echo "$as_me: failed program was:" >&5 16769cat conftest.$ac_ext >&5 16770eval "$as_ac_var=no" 16771fi 16772rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16773fi 16774echo "$as_me:16774: result: `eval echo '${'$as_ac_var'}'`" >&5 16775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16776if test `eval echo '${'$as_ac_var'}'` = yes; then 16777 cat >>confdefs.h <<EOF 16778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16779EOF 16780 16781fi 16782done 16783 16784fi 16785# XauReadAuth 16786eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16787eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16788eval "LIB_XauReadAuth=$ac_res" 16789 16790case "$ac_res" in 16791 yes) 16792 eval "ac_cv_func_XauReadAuth=yes" 16793 eval "LIB_XauReadAuth=" 16794 cat >>confdefs.h <<EOF 16795#define $ac_tr_func 1 16796EOF 16797 16798 echo "$as_me:16798: result: yes" >&5 16799echo "${ECHO_T}yes" >&6 16800 ;; 16801 no) 16802 eval "ac_cv_func_XauReadAuth=no" 16803 eval "LIB_XauReadAuth=" 16804 echo "$as_me:16804: result: no" >&5 16805echo "${ECHO_T}no" >&6 16806 ;; 16807 *) 16808 eval "ac_cv_func_XauReadAuth=yes" 16809 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16810 cat >>confdefs.h <<EOF 16811#define $ac_tr_func 1 16812EOF 16813 16814 cat >>confdefs.h <<EOF 16815#define $ac_tr_lib 1 16816EOF 16817 16818 echo "$as_me:16818: result: yes, in $ac_res" >&5 16819echo "${ECHO_T}yes, in $ac_res" >&6 16820 ;; 16821esac 16822 16823LIBS="$LIB_XauReadAauth $LIBS" 16824 16825echo "$as_me:16825: checking for XauFileName" >&5 16826echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6 16827if test "${ac_cv_funclib_XauFileName+set}" = set; then 16828 echo $ECHO_N "(cached) $ECHO_C" >&6 16829else 16830 16831if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then 16832 ac_save_LIBS="$LIBS" 16833 for ac_lib in "" X11 Xau; do 16834 case "$ac_lib" in 16835 "") ;; 16836 yes) ac_lib="" ;; 16837 no) continue ;; 16838 -l*) ;; 16839 *) ac_lib="-l$ac_lib" ;; 16840 esac 16841 LIBS=" $ac_lib $ac_save_LIBS" 16842 cat >conftest.$ac_ext <<_ACEOF 16843#line 16843 "configure" 16844#include "confdefs.h" 16845 16846int 16847main () 16848{ 16849XauFileName() 16850 ; 16851 return 0; 16852} 16853_ACEOF 16854rm -f conftest.$ac_objext conftest$ac_exeext 16855if { (eval echo "$as_me:16855: \"$ac_link\"") >&5 16856 (eval $ac_link) 2>&5 16857 ac_status=$? 16858 echo "$as_me:16858: \$? = $ac_status" >&5 16859 (exit $ac_status); } && 16860 { ac_try='test -s conftest$ac_exeext' 16861 { (eval echo "$as_me:16861: \"$ac_try\"") >&5 16862 (eval $ac_try) 2>&5 16863 ac_status=$? 16864 echo "$as_me:16864: \$? = $ac_status" >&5 16865 (exit $ac_status); }; }; then 16866 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break 16867else 16868 echo "$as_me: failed program was:" >&5 16869cat conftest.$ac_ext >&5 16870fi 16871rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16872 done 16873 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}" 16874 LIBS="$ac_save_LIBS" 16875fi 16876 16877fi 16878 16879eval "ac_res=\$ac_cv_funclib_XauFileName" 16880 16881if false; then 16882 16883for ac_func in XauFileName 16884do 16885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16886echo "$as_me:16886: checking for $ac_func" >&5 16887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16888if eval "test \"\${$as_ac_var+set}\" = set"; then 16889 echo $ECHO_N "(cached) $ECHO_C" >&6 16890else 16891 cat >conftest.$ac_ext <<_ACEOF 16892#line 16892 "configure" 16893#include "confdefs.h" 16894/* System header to define __stub macros and hopefully few prototypes, 16895 which can conflict with char $ac_func (); below. */ 16896#include <assert.h> 16897/* Override any gcc2 internal prototype to avoid an error. */ 16898#ifdef __cplusplus 16899extern "C" 16900#endif 16901/* We use char because int might match the return type of a gcc2 16902 builtin and then its argument prototype would still apply. */ 16903char $ac_func (); 16904char (*f) (); 16905 16906int 16907main () 16908{ 16909/* The GNU C library defines this for functions which it implements 16910 to always fail with ENOSYS. Some functions are actually named 16911 something starting with __ and the normal name is an alias. */ 16912#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16913choke me 16914#else 16915f = $ac_func; 16916#endif 16917 16918 ; 16919 return 0; 16920} 16921_ACEOF 16922rm -f conftest.$ac_objext conftest$ac_exeext 16923if { (eval echo "$as_me:16923: \"$ac_link\"") >&5 16924 (eval $ac_link) 2>&5 16925 ac_status=$? 16926 echo "$as_me:16926: \$? = $ac_status" >&5 16927 (exit $ac_status); } && 16928 { ac_try='test -s conftest$ac_exeext' 16929 { (eval echo "$as_me:16929: \"$ac_try\"") >&5 16930 (eval $ac_try) 2>&5 16931 ac_status=$? 16932 echo "$as_me:16932: \$? = $ac_status" >&5 16933 (exit $ac_status); }; }; then 16934 eval "$as_ac_var=yes" 16935else 16936 echo "$as_me: failed program was:" >&5 16937cat conftest.$ac_ext >&5 16938eval "$as_ac_var=no" 16939fi 16940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16941fi 16942echo "$as_me:16942: result: `eval echo '${'$as_ac_var'}'`" >&5 16943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16944if test `eval echo '${'$as_ac_var'}'` = yes; then 16945 cat >>confdefs.h <<EOF 16946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16947EOF 16948 16949fi 16950done 16951 16952fi 16953# XauFileName 16954eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16955eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16956eval "LIB_XauFileName=$ac_res" 16957 16958case "$ac_res" in 16959 yes) 16960 eval "ac_cv_func_XauFileName=yes" 16961 eval "LIB_XauFileName=" 16962 cat >>confdefs.h <<EOF 16963#define $ac_tr_func 1 16964EOF 16965 16966 echo "$as_me:16966: result: yes" >&5 16967echo "${ECHO_T}yes" >&6 16968 ;; 16969 no) 16970 eval "ac_cv_func_XauFileName=no" 16971 eval "LIB_XauFileName=" 16972 echo "$as_me:16972: result: no" >&5 16973echo "${ECHO_T}no" >&6 16974 ;; 16975 *) 16976 eval "ac_cv_func_XauFileName=yes" 16977 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16978 cat >>confdefs.h <<EOF 16979#define $ac_tr_func 1 16980EOF 16981 16982 cat >>confdefs.h <<EOF 16983#define $ac_tr_lib 1 16984EOF 16985 16986 echo "$as_me:16986: result: yes, in $ac_res" >&5 16987echo "${ECHO_T}yes, in $ac_res" >&6 16988 ;; 16989esac 16990 16991LIBS="$ac_xxx" 16992 16993case "$ac_cv_funclib_XauWriteAuth" in 16994yes) ;; 16995no) ;; 16996*) if test "$ac_cv_funclib_XauReadAuth" = yes; then 16997 if test "$ac_cv_funclib_XauFileName" = yes; then 16998 LIB_XauReadAuth="$LIB_XauWriteAuth" 16999 else 17000 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName" 17001 fi 17002 else 17003 if test "$ac_cv_funclib_XauFileName" = yes; then 17004 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth" 17005 else 17006 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName" 17007 fi 17008 fi 17009 ;; 17010esac 17011 17012if test "$AUTOMAKE" != ""; then 17013 17014if test "$ac_cv_func_XauWriteAuth" != "yes"; then 17015 NEED_WRITEAUTH_TRUE= 17016 NEED_WRITEAUTH_FALSE='#' 17017else 17018 NEED_WRITEAUTH_TRUE='#' 17019 NEED_WRITEAUTH_FALSE= 17020fi 17021else 17022 17023 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 17024 NEED_WRITEAUTH_TRUE= 17025 NEED_WRITEAUTH_FALSE='#' 17026 else 17027 NEED_WRITEAUTH_TRUE='#' 17028 NEED_WRITEAUTH_FALSE= 17029 fi 17030fi 17031CFLAGS=$save_CFLAGS 17032LIBS=$save_LIBS 17033LDFLAGS=$save_LDFLAGS 17034 17035echo "$as_me:17035: checking for an ANSI C-conforming const" >&5 17036echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 17037if test "${ac_cv_c_const+set}" = set; then 17038 echo $ECHO_N "(cached) $ECHO_C" >&6 17039else 17040 cat >conftest.$ac_ext <<_ACEOF 17041#line 17041 "configure" 17042#include "confdefs.h" 17043 17044int 17045main () 17046{ 17047/* FIXME: Include the comments suggested by Paul. */ 17048#ifndef __cplusplus 17049 /* Ultrix mips cc rejects this. */ 17050 typedef int charset[2]; 17051 const charset x; 17052 /* SunOS 4.1.1 cc rejects this. */ 17053 char const *const *ccp; 17054 char **p; 17055 /* NEC SVR4.0.2 mips cc rejects this. */ 17056 struct point {int x, y;}; 17057 static struct point const zero = {0,0}; 17058 /* AIX XL C 1.02.0.0 rejects this. 17059 It does not let you subtract one const X* pointer from another in 17060 an arm of an if-expression whose if-part is not a constant 17061 expression */ 17062 const char *g = "string"; 17063 ccp = &g + (g ? g-g : 0); 17064 /* HPUX 7.0 cc rejects these. */ 17065 ++ccp; 17066 p = (char**) ccp; 17067 ccp = (char const *const *) p; 17068 { /* SCO 3.2v4 cc rejects this. */ 17069 char *t; 17070 char const *s = 0 ? (char *) 0 : (char const *) 0; 17071 17072 *t++ = 0; 17073 } 17074 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17075 int x[] = {25, 17}; 17076 const int *foo = &x[0]; 17077 ++foo; 17078 } 17079 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17080 typedef const int *iptr; 17081 iptr p = 0; 17082 ++p; 17083 } 17084 { /* AIX XL C 1.02.0.0 rejects this saying 17085 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17086 struct s { int j; const int *ap[3]; }; 17087 struct s *b; b->j = 5; 17088 } 17089 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17090 const int foo = 10; 17091 } 17092#endif 17093 17094 ; 17095 return 0; 17096} 17097_ACEOF 17098rm -f conftest.$ac_objext 17099if { (eval echo "$as_me:17099: \"$ac_compile\"") >&5 17100 (eval $ac_compile) 2>&5 17101 ac_status=$? 17102 echo "$as_me:17102: \$? = $ac_status" >&5 17103 (exit $ac_status); } && 17104 { ac_try='test -s conftest.$ac_objext' 17105 { (eval echo "$as_me:17105: \"$ac_try\"") >&5 17106 (eval $ac_try) 2>&5 17107 ac_status=$? 17108 echo "$as_me:17108: \$? = $ac_status" >&5 17109 (exit $ac_status); }; }; then 17110 ac_cv_c_const=yes 17111else 17112 echo "$as_me: failed program was:" >&5 17113cat conftest.$ac_ext >&5 17114ac_cv_c_const=no 17115fi 17116rm -f conftest.$ac_objext conftest.$ac_ext 17117fi 17118echo "$as_me:17118: result: $ac_cv_c_const" >&5 17119echo "${ECHO_T}$ac_cv_c_const" >&6 17120if test $ac_cv_c_const = no; then 17121 17122cat >>confdefs.h <<\EOF 17123#define const 17124EOF 17125 17126fi 17127 17128echo "$as_me:17128: checking for off_t" >&5 17129echo $ECHO_N "checking for off_t... $ECHO_C" >&6 17130if test "${ac_cv_type_off_t+set}" = set; then 17131 echo $ECHO_N "(cached) $ECHO_C" >&6 17132else 17133 cat >conftest.$ac_ext <<_ACEOF 17134#line 17134 "configure" 17135#include "confdefs.h" 17136$ac_includes_default 17137int 17138main () 17139{ 17140if ((off_t *) 0) 17141 return 0; 17142if (sizeof (off_t)) 17143 return 0; 17144 ; 17145 return 0; 17146} 17147_ACEOF 17148rm -f conftest.$ac_objext 17149if { (eval echo "$as_me:17149: \"$ac_compile\"") >&5 17150 (eval $ac_compile) 2>&5 17151 ac_status=$? 17152 echo "$as_me:17152: \$? = $ac_status" >&5 17153 (exit $ac_status); } && 17154 { ac_try='test -s conftest.$ac_objext' 17155 { (eval echo "$as_me:17155: \"$ac_try\"") >&5 17156 (eval $ac_try) 2>&5 17157 ac_status=$? 17158 echo "$as_me:17158: \$? = $ac_status" >&5 17159 (exit $ac_status); }; }; then 17160 ac_cv_type_off_t=yes 17161else 17162 echo "$as_me: failed program was:" >&5 17163cat conftest.$ac_ext >&5 17164ac_cv_type_off_t=no 17165fi 17166rm -f conftest.$ac_objext conftest.$ac_ext 17167fi 17168echo "$as_me:17168: result: $ac_cv_type_off_t" >&5 17169echo "${ECHO_T}$ac_cv_type_off_t" >&6 17170if test $ac_cv_type_off_t = yes; then 17171 : 17172else 17173 17174cat >>confdefs.h <<EOF 17175#define off_t long 17176EOF 17177 17178fi 17179 17180echo "$as_me:17180: checking for size_t" >&5 17181echo $ECHO_N "checking for size_t... $ECHO_C" >&6 17182if test "${ac_cv_type_size_t+set}" = set; then 17183 echo $ECHO_N "(cached) $ECHO_C" >&6 17184else 17185 cat >conftest.$ac_ext <<_ACEOF 17186#line 17186 "configure" 17187#include "confdefs.h" 17188$ac_includes_default 17189int 17190main () 17191{ 17192if ((size_t *) 0) 17193 return 0; 17194if (sizeof (size_t)) 17195 return 0; 17196 ; 17197 return 0; 17198} 17199_ACEOF 17200rm -f conftest.$ac_objext 17201if { (eval echo "$as_me:17201: \"$ac_compile\"") >&5 17202 (eval $ac_compile) 2>&5 17203 ac_status=$? 17204 echo "$as_me:17204: \$? = $ac_status" >&5 17205 (exit $ac_status); } && 17206 { ac_try='test -s conftest.$ac_objext' 17207 { (eval echo "$as_me:17207: \"$ac_try\"") >&5 17208 (eval $ac_try) 2>&5 17209 ac_status=$? 17210 echo "$as_me:17210: \$? = $ac_status" >&5 17211 (exit $ac_status); }; }; then 17212 ac_cv_type_size_t=yes 17213else 17214 echo "$as_me: failed program was:" >&5 17215cat conftest.$ac_ext >&5 17216ac_cv_type_size_t=no 17217fi 17218rm -f conftest.$ac_objext conftest.$ac_ext 17219fi 17220echo "$as_me:17220: result: $ac_cv_type_size_t" >&5 17221echo "${ECHO_T}$ac_cv_type_size_t" >&6 17222if test $ac_cv_type_size_t = yes; then 17223 : 17224else 17225 17226cat >>confdefs.h <<EOF 17227#define size_t unsigned 17228EOF 17229 17230fi 17231 17232echo "$as_me:17232: checking for ssize_t" >&5 17233echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 17234if test "${ac_cv_type_ssize_t+set}" = set; then 17235 echo $ECHO_N "(cached) $ECHO_C" >&6 17236else 17237 cat >conftest.$ac_ext <<_ACEOF 17238#line 17238 "configure" 17239#include "confdefs.h" 17240#include <sys/types.h> 17241#if STDC_HEADERS 17242#include <stdlib.h> 17243#include <stddef.h> 17244#endif 17245#include <unistd.h> 17246_ACEOF 17247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17248 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 17249 ac_cv_type_ssize_t=yes 17250else 17251 ac_cv_type_ssize_t=no 17252fi 17253rm -f conftest* 17254 17255fi 17256echo "$as_me:17256: result: $ac_cv_type_ssize_t" >&5 17257echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 17258if test $ac_cv_type_ssize_t = no; then 17259 17260cat >>confdefs.h <<\EOF 17261#define ssize_t int 17262EOF 17263 17264fi 17265 17266echo "$as_me:17266: checking for pid_t" >&5 17267echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 17268if test "${ac_cv_type_pid_t+set}" = set; then 17269 echo $ECHO_N "(cached) $ECHO_C" >&6 17270else 17271 cat >conftest.$ac_ext <<_ACEOF 17272#line 17272 "configure" 17273#include "confdefs.h" 17274$ac_includes_default 17275int 17276main () 17277{ 17278if ((pid_t *) 0) 17279 return 0; 17280if (sizeof (pid_t)) 17281 return 0; 17282 ; 17283 return 0; 17284} 17285_ACEOF 17286rm -f conftest.$ac_objext 17287if { (eval echo "$as_me:17287: \"$ac_compile\"") >&5 17288 (eval $ac_compile) 2>&5 17289 ac_status=$? 17290 echo "$as_me:17290: \$? = $ac_status" >&5 17291 (exit $ac_status); } && 17292 { ac_try='test -s conftest.$ac_objext' 17293 { (eval echo "$as_me:17293: \"$ac_try\"") >&5 17294 (eval $ac_try) 2>&5 17295 ac_status=$? 17296 echo "$as_me:17296: \$? = $ac_status" >&5 17297 (exit $ac_status); }; }; then 17298 ac_cv_type_pid_t=yes 17299else 17300 echo "$as_me: failed program was:" >&5 17301cat conftest.$ac_ext >&5 17302ac_cv_type_pid_t=no 17303fi 17304rm -f conftest.$ac_objext conftest.$ac_ext 17305fi 17306echo "$as_me:17306: result: $ac_cv_type_pid_t" >&5 17307echo "${ECHO_T}$ac_cv_type_pid_t" >&6 17308if test $ac_cv_type_pid_t = yes; then 17309 : 17310else 17311 17312cat >>confdefs.h <<EOF 17313#define pid_t int 17314EOF 17315 17316fi 17317 17318echo "$as_me:17318: checking for uid_t in sys/types.h" >&5 17319echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 17320if test "${ac_cv_type_uid_t+set}" = set; then 17321 echo $ECHO_N "(cached) $ECHO_C" >&6 17322else 17323 cat >conftest.$ac_ext <<_ACEOF 17324#line 17324 "configure" 17325#include "confdefs.h" 17326#include <sys/types.h> 17327 17328_ACEOF 17329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17330 egrep "uid_t" >/dev/null 2>&1; then 17331 ac_cv_type_uid_t=yes 17332else 17333 ac_cv_type_uid_t=no 17334fi 17335rm -f conftest* 17336 17337fi 17338echo "$as_me:17338: result: $ac_cv_type_uid_t" >&5 17339echo "${ECHO_T}$ac_cv_type_uid_t" >&6 17340if test $ac_cv_type_uid_t = no; then 17341 17342cat >>confdefs.h <<\EOF 17343#define uid_t int 17344EOF 17345 17346cat >>confdefs.h <<\EOF 17347#define gid_t int 17348EOF 17349 17350fi 17351 17352echo "$as_me:17352: checking for mode_t" >&5 17353echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 17354if test "${ac_cv_type_mode_t+set}" = set; then 17355 echo $ECHO_N "(cached) $ECHO_C" >&6 17356else 17357 cat >conftest.$ac_ext <<_ACEOF 17358#line 17358 "configure" 17359#include "confdefs.h" 17360#include <sys/types.h> 17361#if STDC_HEADERS 17362#include <stdlib.h> 17363#include <stddef.h> 17364#endif 17365 17366_ACEOF 17367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17368 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 17369 ac_cv_type_mode_t=yes 17370else 17371 ac_cv_type_mode_t=no 17372fi 17373rm -f conftest* 17374 17375fi 17376echo "$as_me:17376: result: $ac_cv_type_mode_t" >&5 17377echo "${ECHO_T}$ac_cv_type_mode_t" >&6 17378if test $ac_cv_type_mode_t = no; then 17379 17380cat >>confdefs.h <<\EOF 17381#define mode_t unsigned short 17382EOF 17383 17384fi 17385 17386echo "$as_me:17386: checking for sig_atomic_t" >&5 17387echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 17388if test "${ac_cv_type_sig_atomic_t+set}" = set; then 17389 echo $ECHO_N "(cached) $ECHO_C" >&6 17390else 17391 cat >conftest.$ac_ext <<_ACEOF 17392#line 17392 "configure" 17393#include "confdefs.h" 17394#include <sys/types.h> 17395#if STDC_HEADERS 17396#include <stdlib.h> 17397#include <stddef.h> 17398#endif 17399#include <signal.h> 17400_ACEOF 17401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17402 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 17403 ac_cv_type_sig_atomic_t=yes 17404else 17405 ac_cv_type_sig_atomic_t=no 17406fi 17407rm -f conftest* 17408 17409fi 17410echo "$as_me:17410: result: $ac_cv_type_sig_atomic_t" >&5 17411echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 17412if test $ac_cv_type_sig_atomic_t = no; then 17413 17414cat >>confdefs.h <<\EOF 17415#define sig_atomic_t int 17416EOF 17417 17418fi 17419 17420cv=`echo "long long" | sed 'y%./+- %__p__%'` 17421echo "$as_me:17421: checking for long long" >&5 17422echo $ECHO_N "checking for long long... $ECHO_C" >&6 17423if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 17424 echo $ECHO_N "(cached) $ECHO_C" >&6 17425else 17426 cat >conftest.$ac_ext <<_ACEOF 17427#line 17427 "configure" 17428#include "confdefs.h" 17429#include <sys/types.h> 17430#if STDC_HEADERS 17431#include <stdlib.h> 17432#include <stddef.h> 17433#endif 17434 17435int 17436main () 17437{ 17438long long foo; 17439 ; 17440 return 0; 17441} 17442_ACEOF 17443rm -f conftest.$ac_objext 17444if { (eval echo "$as_me:17444: \"$ac_compile\"") >&5 17445 (eval $ac_compile) 2>&5 17446 ac_status=$? 17447 echo "$as_me:17447: \$? = $ac_status" >&5 17448 (exit $ac_status); } && 17449 { ac_try='test -s conftest.$ac_objext' 17450 { (eval echo "$as_me:17450: \"$ac_try\"") >&5 17451 (eval $ac_try) 2>&5 17452 ac_status=$? 17453 echo "$as_me:17453: \$? = $ac_status" >&5 17454 (exit $ac_status); }; }; then 17455 eval "ac_cv_type_$cv=yes" 17456else 17457 echo "$as_me: failed program was:" >&5 17458cat conftest.$ac_ext >&5 17459eval "ac_cv_type_$cv=no" 17460fi 17461rm -f conftest.$ac_objext conftest.$ac_ext 17462fi 17463ac_foo=`eval echo \\$ac_cv_type_$cv` 17464echo "$as_me:17464: result: $ac_foo" >&5 17465echo "${ECHO_T}$ac_foo" >&6 17466if test "$ac_foo" = yes; then 17467 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 17468if false; then 17469 echo "$as_me:17469: checking for long long" >&5 17470echo $ECHO_N "checking for long long... $ECHO_C" >&6 17471if test "${ac_cv_type_long_long+set}" = set; then 17472 echo $ECHO_N "(cached) $ECHO_C" >&6 17473else 17474 cat >conftest.$ac_ext <<_ACEOF 17475#line 17475 "configure" 17476#include "confdefs.h" 17477$ac_includes_default 17478int 17479main () 17480{ 17481if ((long long *) 0) 17482 return 0; 17483if (sizeof (long long)) 17484 return 0; 17485 ; 17486 return 0; 17487} 17488_ACEOF 17489rm -f conftest.$ac_objext 17490if { (eval echo "$as_me:17490: \"$ac_compile\"") >&5 17491 (eval $ac_compile) 2>&5 17492 ac_status=$? 17493 echo "$as_me:17493: \$? = $ac_status" >&5 17494 (exit $ac_status); } && 17495 { ac_try='test -s conftest.$ac_objext' 17496 { (eval echo "$as_me:17496: \"$ac_try\"") >&5 17497 (eval $ac_try) 2>&5 17498 ac_status=$? 17499 echo "$as_me:17499: \$? = $ac_status" >&5 17500 (exit $ac_status); }; }; then 17501 ac_cv_type_long_long=yes 17502else 17503 echo "$as_me: failed program was:" >&5 17504cat conftest.$ac_ext >&5 17505ac_cv_type_long_long=no 17506fi 17507rm -f conftest.$ac_objext conftest.$ac_ext 17508fi 17509echo "$as_me:17509: result: $ac_cv_type_long_long" >&5 17510echo "${ECHO_T}$ac_cv_type_long_long" >&6 17511if test $ac_cv_type_long_long = yes; then 17512 17513cat >>confdefs.h <<EOF 17514#define HAVE_LONG_LONG 1 17515EOF 17516 17517fi 17518 17519fi 17520 17521cat >>confdefs.h <<EOF 17522#define $ac_tr_hdr 1 17523EOF 17524 17525fi 17526 17527echo "$as_me:17527: checking whether time.h and sys/time.h may both be included" >&5 17528echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 17529if test "${ac_cv_header_time+set}" = set; then 17530 echo $ECHO_N "(cached) $ECHO_C" >&6 17531else 17532 cat >conftest.$ac_ext <<_ACEOF 17533#line 17533 "configure" 17534#include "confdefs.h" 17535#include <sys/types.h> 17536#include <sys/time.h> 17537#include <time.h> 17538 17539int 17540main () 17541{ 17542if ((struct tm *) 0) 17543return 0; 17544 ; 17545 return 0; 17546} 17547_ACEOF 17548rm -f conftest.$ac_objext 17549if { (eval echo "$as_me:17549: \"$ac_compile\"") >&5 17550 (eval $ac_compile) 2>&5 17551 ac_status=$? 17552 echo "$as_me:17552: \$? = $ac_status" >&5 17553 (exit $ac_status); } && 17554 { ac_try='test -s conftest.$ac_objext' 17555 { (eval echo "$as_me:17555: \"$ac_try\"") >&5 17556 (eval $ac_try) 2>&5 17557 ac_status=$? 17558 echo "$as_me:17558: \$? = $ac_status" >&5 17559 (exit $ac_status); }; }; then 17560 ac_cv_header_time=yes 17561else 17562 echo "$as_me: failed program was:" >&5 17563cat conftest.$ac_ext >&5 17564ac_cv_header_time=no 17565fi 17566rm -f conftest.$ac_objext conftest.$ac_ext 17567fi 17568echo "$as_me:17568: result: $ac_cv_header_time" >&5 17569echo "${ECHO_T}$ac_cv_header_time" >&6 17570if test $ac_cv_header_time = yes; then 17571 17572cat >>confdefs.h <<\EOF 17573#define TIME_WITH_SYS_TIME 1 17574EOF 17575 17576fi 17577 17578echo "$as_me:17578: checking whether struct tm is in sys/time.h or time.h" >&5 17579echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 17580if test "${ac_cv_struct_tm+set}" = set; then 17581 echo $ECHO_N "(cached) $ECHO_C" >&6 17582else 17583 cat >conftest.$ac_ext <<_ACEOF 17584#line 17584 "configure" 17585#include "confdefs.h" 17586#include <sys/types.h> 17587#include <time.h> 17588 17589int 17590main () 17591{ 17592struct tm *tp; tp->tm_sec; 17593 ; 17594 return 0; 17595} 17596_ACEOF 17597rm -f conftest.$ac_objext 17598if { (eval echo "$as_me:17598: \"$ac_compile\"") >&5 17599 (eval $ac_compile) 2>&5 17600 ac_status=$? 17601 echo "$as_me:17601: \$? = $ac_status" >&5 17602 (exit $ac_status); } && 17603 { ac_try='test -s conftest.$ac_objext' 17604 { (eval echo "$as_me:17604: \"$ac_try\"") >&5 17605 (eval $ac_try) 2>&5 17606 ac_status=$? 17607 echo "$as_me:17607: \$? = $ac_status" >&5 17608 (exit $ac_status); }; }; then 17609 ac_cv_struct_tm=time.h 17610else 17611 echo "$as_me: failed program was:" >&5 17612cat conftest.$ac_ext >&5 17613ac_cv_struct_tm=sys/time.h 17614fi 17615rm -f conftest.$ac_objext conftest.$ac_ext 17616fi 17617echo "$as_me:17617: result: $ac_cv_struct_tm" >&5 17618echo "${ECHO_T}$ac_cv_struct_tm" >&6 17619if test $ac_cv_struct_tm = sys/time.h; then 17620 17621cat >>confdefs.h <<\EOF 17622#define TM_IN_SYS_TIME 1 17623EOF 17624 17625fi 17626 17627echo "$as_me:17627: checking for ANSI C header files" >&5 17628echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 17629if test "${ac_cv_header_stdc+set}" = set; then 17630 echo $ECHO_N "(cached) $ECHO_C" >&6 17631else 17632 cat >conftest.$ac_ext <<_ACEOF 17633#line 17633 "configure" 17634#include "confdefs.h" 17635#include <stdlib.h> 17636#include <stdarg.h> 17637#include <string.h> 17638#include <float.h> 17639 17640_ACEOF 17641if { (eval echo "$as_me:17641: \"$ac_cpp conftest.$ac_ext\"") >&5 17642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17643 ac_status=$? 17644 egrep -v '^ *\+' conftest.er1 >conftest.err 17645 rm -f conftest.er1 17646 cat conftest.err >&5 17647 echo "$as_me:17647: \$? = $ac_status" >&5 17648 (exit $ac_status); } >/dev/null; then 17649 if test -s conftest.err; then 17650 ac_cpp_err=$ac_c_preproc_warn_flag 17651 else 17652 ac_cpp_err= 17653 fi 17654else 17655 ac_cpp_err=yes 17656fi 17657if test -z "$ac_cpp_err"; then 17658 ac_cv_header_stdc=yes 17659else 17660 echo "$as_me: failed program was:" >&5 17661 cat conftest.$ac_ext >&5 17662 ac_cv_header_stdc=no 17663fi 17664rm -f conftest.err conftest.$ac_ext 17665 17666if test $ac_cv_header_stdc = yes; then 17667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17668 cat >conftest.$ac_ext <<_ACEOF 17669#line 17669 "configure" 17670#include "confdefs.h" 17671#include <string.h> 17672 17673_ACEOF 17674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17675 egrep "memchr" >/dev/null 2>&1; then 17676 : 17677else 17678 ac_cv_header_stdc=no 17679fi 17680rm -f conftest* 17681 17682fi 17683 17684if test $ac_cv_header_stdc = yes; then 17685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17686 cat >conftest.$ac_ext <<_ACEOF 17687#line 17687 "configure" 17688#include "confdefs.h" 17689#include <stdlib.h> 17690 17691_ACEOF 17692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17693 egrep "free" >/dev/null 2>&1; then 17694 : 17695else 17696 ac_cv_header_stdc=no 17697fi 17698rm -f conftest* 17699 17700fi 17701 17702if test $ac_cv_header_stdc = yes; then 17703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17704 if test "$cross_compiling" = yes; then 17705 : 17706else 17707 cat >conftest.$ac_ext <<_ACEOF 17708#line 17708 "configure" 17709#include "confdefs.h" 17710#include <ctype.h> 17711#if ((' ' & 0x0FF) == 0x020) 17712# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17713# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17714#else 17715# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 17716 || ('j' <= (c) && (c) <= 'r') \ 17717 || ('s' <= (c) && (c) <= 'z')) 17718# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17719#endif 17720 17721#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17722int 17723main () 17724{ 17725 int i; 17726 for (i = 0; i < 256; i++) 17727 if (XOR (islower (i), ISLOWER (i)) 17728 || toupper (i) != TOUPPER (i)) 17729 exit(2); 17730 exit (0); 17731} 17732_ACEOF 17733rm -f conftest$ac_exeext 17734if { (eval echo "$as_me:17734: \"$ac_link\"") >&5 17735 (eval $ac_link) 2>&5 17736 ac_status=$? 17737 echo "$as_me:17737: \$? = $ac_status" >&5 17738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17739 { (eval echo "$as_me:17739: \"$ac_try\"") >&5 17740 (eval $ac_try) 2>&5 17741 ac_status=$? 17742 echo "$as_me:17742: \$? = $ac_status" >&5 17743 (exit $ac_status); }; }; then 17744 : 17745else 17746 echo "$as_me: program exited with status $ac_status" >&5 17747echo "$as_me: failed program was:" >&5 17748cat conftest.$ac_ext >&5 17749ac_cv_header_stdc=no 17750fi 17751rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17752fi 17753fi 17754fi 17755echo "$as_me:17755: result: $ac_cv_header_stdc" >&5 17756echo "${ECHO_T}$ac_cv_header_stdc" >&6 17757if test $ac_cv_header_stdc = yes; then 17758 17759cat >>confdefs.h <<\EOF 17760#define STDC_HEADERS 1 17761EOF 17762 17763fi 17764 17765for ac_header in \ 17766 arpa/ftp.h \ 17767 arpa/inet.h \ 17768 arpa/nameser.h \ 17769 arpa/telnet.h \ 17770 bind/bitypes.h \ 17771 bsdsetjmp.h \ 17772 crypt.h \ 17773 curses.h \ 17774 dirent.h \ 17775 dlfcn.h \ 17776 err.h \ 17777 errno.h \ 17778 fcntl.h \ 17779 fnmatch.h \ 17780 grp.h \ 17781 inttypes.h \ 17782 io.h \ 17783 libutil.h \ 17784 limits.h \ 17785 maillock.h \ 17786 net/if.h \ 17787 netdb.h \ 17788 netinet/in.h \ 17789 netinet/in6.h \ 17790 netinet/in6_machtypes.h \ 17791 netinet/in6_var.h \ 17792 netinet/in_systm.h \ 17793 netinet6/in6.h \ 17794 netinfo/ni.h \ 17795 paths.h \ 17796 pthread.h \ 17797 pty.h \ 17798 pwd.h \ 17799 resolv.h \ 17800 sac.h \ 17801 security/pam_modules.h \ 17802 sgtty.h \ 17803 shadow.h \ 17804 siad.h \ 17805 signal.h \ 17806 stropts.h \ 17807 sys/bitypes.h \ 17808 sys/category.h \ 17809 sys/file.h \ 17810 sys/filio.h \ 17811 sys/ioccom.h \ 17812 sys/ioctl.h \ 17813 sys/param.h \ 17814 sys/proc.h \ 17815 sys/pty.h \ 17816 sys/ptyio.h \ 17817 sys/ptyvar.h \ 17818 sys/resource.h \ 17819 sys/select.h \ 17820 sys/socket.h \ 17821 sys/sockio.h \ 17822 sys/stat.h \ 17823 sys/str_tty.h \ 17824 sys/stream.h \ 17825 sys/stropts.h \ 17826 sys/strtty.h \ 17827 sys/syscall.h \ 17828 sys/sysctl.h \ 17829 sys/termio.h \ 17830 sys/time.h \ 17831 sys/timeb.h \ 17832 sys/times.h \ 17833 sys/tty.h \ 17834 sys/types.h \ 17835 sys/uio.h \ 17836 sys/un.h \ 17837 sys/utsname.h \ 17838 sys/wait.h \ 17839 syslog.h \ 17840 term.h \ 17841 termcap.h \ 17842 termio.h \ 17843 termios.h \ 17844 time.h \ 17845 tmpdir.h \ 17846 udb.h \ 17847 unistd.h \ 17848 userconf.h \ 17849 usersec.h \ 17850 util.h \ 17851 utmp.h \ 17852 utmpx.h \ 17853 17854do 17855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17856echo "$as_me:17856: checking for $ac_header" >&5 17857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17858if eval "test \"\${$as_ac_Header+set}\" = set"; then 17859 echo $ECHO_N "(cached) $ECHO_C" >&6 17860else 17861 cat >conftest.$ac_ext <<_ACEOF 17862#line 17862 "configure" 17863#include "confdefs.h" 17864#include <$ac_header> 17865_ACEOF 17866if { (eval echo "$as_me:17866: \"$ac_cpp conftest.$ac_ext\"") >&5 17867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17868 ac_status=$? 17869 egrep -v '^ *\+' conftest.er1 >conftest.err 17870 rm -f conftest.er1 17871 cat conftest.err >&5 17872 echo "$as_me:17872: \$? = $ac_status" >&5 17873 (exit $ac_status); } >/dev/null; then 17874 if test -s conftest.err; then 17875 ac_cpp_err=$ac_c_preproc_warn_flag 17876 else 17877 ac_cpp_err= 17878 fi 17879else 17880 ac_cpp_err=yes 17881fi 17882if test -z "$ac_cpp_err"; then 17883 eval "$as_ac_Header=yes" 17884else 17885 echo "$as_me: failed program was:" >&5 17886 cat conftest.$ac_ext >&5 17887 eval "$as_ac_Header=no" 17888fi 17889rm -f conftest.err conftest.$ac_ext 17890fi 17891echo "$as_me:17891: result: `eval echo '${'$as_ac_Header'}'`" >&5 17892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 17893if test `eval echo '${'$as_ac_Header'}'` = yes; then 17894 cat >>confdefs.h <<EOF 17895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17896EOF 17897 17898fi 17899done 17900 17901for ac_header in standards.h 17902do 17903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17904echo "$as_me:17904: checking for $ac_header" >&5 17905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 17906if eval "test \"\${$as_ac_Header+set}\" = set"; then 17907 echo $ECHO_N "(cached) $ECHO_C" >&6 17908else 17909 cat >conftest.$ac_ext <<_ACEOF 17910#line 17910 "configure" 17911#include "confdefs.h" 17912#include <$ac_header> 17913_ACEOF 17914if { (eval echo "$as_me:17914: \"$ac_cpp conftest.$ac_ext\"") >&5 17915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17916 ac_status=$? 17917 egrep -v '^ *\+' conftest.er1 >conftest.err 17918 rm -f conftest.er1 17919 cat conftest.err >&5 17920 echo "$as_me:17920: \$? = $ac_status" >&5 17921 (exit $ac_status); } >/dev/null; then 17922 if test -s conftest.err; then 17923 ac_cpp_err=$ac_c_preproc_warn_flag 17924 else 17925 ac_cpp_err= 17926 fi 17927else 17928 ac_cpp_err=yes 17929fi 17930if test -z "$ac_cpp_err"; then 17931 eval "$as_ac_Header=yes" 17932else 17933 echo "$as_me: failed program was:" >&5 17934 cat conftest.$ac_ext >&5 17935 eval "$as_ac_Header=no" 17936fi 17937rm -f conftest.err conftest.$ac_ext 17938fi 17939echo "$as_me:17939: result: `eval echo '${'$as_ac_Header'}'`" >&5 17940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 17941if test `eval echo '${'$as_ac_Header'}'` = yes; then 17942 cat >>confdefs.h <<EOF 17943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17944EOF 17945 17946fi 17947done 17948 17949for i in netinet/ip.h netinet/tcp.h; do 17950 17951cv=`echo "$i" | sed 'y%./+-%__p_%'` 17952 17953echo "$as_me:17953: checking for $i" >&5 17954echo $ECHO_N "checking for $i... $ECHO_C" >&6 17955if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then 17956 echo $ECHO_N "(cached) $ECHO_C" >&6 17957else 17958 cat >conftest.$ac_ext <<_ACEOF 17959#line 17959 "configure" 17960#include "confdefs.h" 17961\ 17962#ifdef HAVE_STANDARDS_H 17963#include <standards.h> 17964#endif 17965#include <$i> 17966 17967_ACEOF 17968if { (eval echo "$as_me:17968: \"$ac_cpp conftest.$ac_ext\"") >&5 17969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 17970 ac_status=$? 17971 egrep -v '^ *\+' conftest.er1 >conftest.err 17972 rm -f conftest.er1 17973 cat conftest.err >&5 17974 echo "$as_me:17974: \$? = $ac_status" >&5 17975 (exit $ac_status); } >/dev/null; then 17976 if test -s conftest.err; then 17977 ac_cpp_err=$ac_c_preproc_warn_flag 17978 else 17979 ac_cpp_err= 17980 fi 17981else 17982 ac_cpp_err=yes 17983fi 17984if test -z "$ac_cpp_err"; then 17985 eval "ac_cv_header_$cv=yes" 17986else 17987 echo "$as_me: failed program was:" >&5 17988 cat conftest.$ac_ext >&5 17989 eval "ac_cv_header_$cv=no" 17990fi 17991rm -f conftest.err conftest.$ac_ext 17992fi 17993echo "$as_me:17993: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5 17994echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6 17995ac_res=`eval echo \\$ac_cv_header_$cv` 17996if test "$ac_res" = yes; then 17997 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 17998 cat >>confdefs.h <<EOF 17999#define $ac_tr_hdr 1 18000EOF 18001 18002fi 18003done 18004if false;then 18005 18006for ac_header in netinet/ip.h netinet/tcp.h 18007do 18008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18009echo "$as_me:18009: checking for $ac_header" >&5 18010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18011if eval "test \"\${$as_ac_Header+set}\" = set"; then 18012 echo $ECHO_N "(cached) $ECHO_C" >&6 18013else 18014 cat >conftest.$ac_ext <<_ACEOF 18015#line 18015 "configure" 18016#include "confdefs.h" 18017#include <$ac_header> 18018_ACEOF 18019if { (eval echo "$as_me:18019: \"$ac_cpp conftest.$ac_ext\"") >&5 18020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18021 ac_status=$? 18022 egrep -v '^ *\+' conftest.er1 >conftest.err 18023 rm -f conftest.er1 18024 cat conftest.err >&5 18025 echo "$as_me:18025: \$? = $ac_status" >&5 18026 (exit $ac_status); } >/dev/null; then 18027 if test -s conftest.err; then 18028 ac_cpp_err=$ac_c_preproc_warn_flag 18029 else 18030 ac_cpp_err= 18031 fi 18032else 18033 ac_cpp_err=yes 18034fi 18035if test -z "$ac_cpp_err"; then 18036 eval "$as_ac_Header=yes" 18037else 18038 echo "$as_me: failed program was:" >&5 18039 cat conftest.$ac_ext >&5 18040 eval "$as_ac_Header=no" 18041fi 18042rm -f conftest.err conftest.$ac_ext 18043fi 18044echo "$as_me:18044: result: `eval echo '${'$as_ac_Header'}'`" >&5 18045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18046if test `eval echo '${'$as_ac_Header'}'` = yes; then 18047 cat >>confdefs.h <<EOF 18048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 18049EOF 18050 18051fi 18052done 18053 18054fi 18055 18056# Check whether --enable-netinfo or --disable-netinfo was given. 18057if test "${enable_netinfo+set}" = set; then 18058 enableval="$enable_netinfo" 18059 18060fi; 18061 18062if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then 18063 18064cat >>confdefs.h <<\EOF 18065#define HAVE_NETINFO 1 18066EOF 18067 18068fi 18069 18070if test "$ac_cv_header_err_h" = yes; then 18071 have_err_h_TRUE= 18072 have_err_h_FALSE='#' 18073else 18074 have_err_h_TRUE='#' 18075 have_err_h_FALSE= 18076fi 18077 18078if test "$ac_cv_header_fnmatch_h" = yes; then 18079 have_fnmatch_h_TRUE= 18080 have_fnmatch_h_FALSE='#' 18081else 18082 have_fnmatch_h_TRUE='#' 18083 have_fnmatch_h_FALSE= 18084fi 18085 18086echo "$as_me:18086: checking for socket" >&5 18087echo $ECHO_N "checking for socket... $ECHO_C" >&6 18088if test "${ac_cv_funclib_socket+set}" = set; then 18089 echo $ECHO_N "(cached) $ECHO_C" >&6 18090else 18091 18092if eval "test \"\$ac_cv_func_socket\" != yes" ; then 18093 ac_save_LIBS="$LIBS" 18094 for ac_lib in "" socket; do 18095 case "$ac_lib" in 18096 "") ;; 18097 yes) ac_lib="" ;; 18098 no) continue ;; 18099 -l*) ;; 18100 *) ac_lib="-l$ac_lib" ;; 18101 esac 18102 LIBS=" $ac_lib $ac_save_LIBS" 18103 cat >conftest.$ac_ext <<_ACEOF 18104#line 18104 "configure" 18105#include "confdefs.h" 18106 18107int 18108main () 18109{ 18110socket() 18111 ; 18112 return 0; 18113} 18114_ACEOF 18115rm -f conftest.$ac_objext conftest$ac_exeext 18116if { (eval echo "$as_me:18116: \"$ac_link\"") >&5 18117 (eval $ac_link) 2>&5 18118 ac_status=$? 18119 echo "$as_me:18119: \$? = $ac_status" >&5 18120 (exit $ac_status); } && 18121 { ac_try='test -s conftest$ac_exeext' 18122 { (eval echo "$as_me:18122: \"$ac_try\"") >&5 18123 (eval $ac_try) 2>&5 18124 ac_status=$? 18125 echo "$as_me:18125: \$? = $ac_status" >&5 18126 (exit $ac_status); }; }; then 18127 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 18128else 18129 echo "$as_me: failed program was:" >&5 18130cat conftest.$ac_ext >&5 18131fi 18132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18133 done 18134 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 18135 LIBS="$ac_save_LIBS" 18136fi 18137 18138fi 18139 18140eval "ac_res=\$ac_cv_funclib_socket" 18141 18142if false; then 18143 18144for ac_func in socket 18145do 18146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18147echo "$as_me:18147: checking for $ac_func" >&5 18148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18149if eval "test \"\${$as_ac_var+set}\" = set"; then 18150 echo $ECHO_N "(cached) $ECHO_C" >&6 18151else 18152 cat >conftest.$ac_ext <<_ACEOF 18153#line 18153 "configure" 18154#include "confdefs.h" 18155/* System header to define __stub macros and hopefully few prototypes, 18156 which can conflict with char $ac_func (); below. */ 18157#include <assert.h> 18158/* Override any gcc2 internal prototype to avoid an error. */ 18159#ifdef __cplusplus 18160extern "C" 18161#endif 18162/* We use char because int might match the return type of a gcc2 18163 builtin and then its argument prototype would still apply. */ 18164char $ac_func (); 18165char (*f) (); 18166 18167int 18168main () 18169{ 18170/* The GNU C library defines this for functions which it implements 18171 to always fail with ENOSYS. Some functions are actually named 18172 something starting with __ and the normal name is an alias. */ 18173#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18174choke me 18175#else 18176f = $ac_func; 18177#endif 18178 18179 ; 18180 return 0; 18181} 18182_ACEOF 18183rm -f conftest.$ac_objext conftest$ac_exeext 18184if { (eval echo "$as_me:18184: \"$ac_link\"") >&5 18185 (eval $ac_link) 2>&5 18186 ac_status=$? 18187 echo "$as_me:18187: \$? = $ac_status" >&5 18188 (exit $ac_status); } && 18189 { ac_try='test -s conftest$ac_exeext' 18190 { (eval echo "$as_me:18190: \"$ac_try\"") >&5 18191 (eval $ac_try) 2>&5 18192 ac_status=$? 18193 echo "$as_me:18193: \$? = $ac_status" >&5 18194 (exit $ac_status); }; }; then 18195 eval "$as_ac_var=yes" 18196else 18197 echo "$as_me: failed program was:" >&5 18198cat conftest.$ac_ext >&5 18199eval "$as_ac_var=no" 18200fi 18201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18202fi 18203echo "$as_me:18203: result: `eval echo '${'$as_ac_var'}'`" >&5 18204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18205if test `eval echo '${'$as_ac_var'}'` = yes; then 18206 cat >>confdefs.h <<EOF 18207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18208EOF 18209 18210fi 18211done 18212 18213fi 18214# socket 18215eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18216eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18217eval "LIB_socket=$ac_res" 18218 18219case "$ac_res" in 18220 yes) 18221 eval "ac_cv_func_socket=yes" 18222 eval "LIB_socket=" 18223 cat >>confdefs.h <<EOF 18224#define $ac_tr_func 1 18225EOF 18226 18227 echo "$as_me:18227: result: yes" >&5 18228echo "${ECHO_T}yes" >&6 18229 ;; 18230 no) 18231 eval "ac_cv_func_socket=no" 18232 eval "LIB_socket=" 18233 echo "$as_me:18233: result: no" >&5 18234echo "${ECHO_T}no" >&6 18235 ;; 18236 *) 18237 eval "ac_cv_func_socket=yes" 18238 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18239 cat >>confdefs.h <<EOF 18240#define $ac_tr_func 1 18241EOF 18242 18243 cat >>confdefs.h <<EOF 18244#define $ac_tr_lib 1 18245EOF 18246 18247 echo "$as_me:18247: result: yes, in $ac_res" >&5 18248echo "${ECHO_T}yes, in $ac_res" >&6 18249 ;; 18250esac 18251 18252if test -n "$LIB_socket"; then 18253 LIBS="$LIB_socket $LIBS" 18254fi 18255 18256echo "$as_me:18256: checking for gethostbyname" >&5 18257echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 18258if test "${ac_cv_funclib_gethostbyname+set}" = set; then 18259 echo $ECHO_N "(cached) $ECHO_C" >&6 18260else 18261 18262if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 18263 ac_save_LIBS="$LIBS" 18264 for ac_lib in "" nsl; do 18265 case "$ac_lib" in 18266 "") ;; 18267 yes) ac_lib="" ;; 18268 no) continue ;; 18269 -l*) ;; 18270 *) ac_lib="-l$ac_lib" ;; 18271 esac 18272 LIBS=" $ac_lib $ac_save_LIBS" 18273 cat >conftest.$ac_ext <<_ACEOF 18274#line 18274 "configure" 18275#include "confdefs.h" 18276 18277int 18278main () 18279{ 18280gethostbyname() 18281 ; 18282 return 0; 18283} 18284_ACEOF 18285rm -f conftest.$ac_objext conftest$ac_exeext 18286if { (eval echo "$as_me:18286: \"$ac_link\"") >&5 18287 (eval $ac_link) 2>&5 18288 ac_status=$? 18289 echo "$as_me:18289: \$? = $ac_status" >&5 18290 (exit $ac_status); } && 18291 { ac_try='test -s conftest$ac_exeext' 18292 { (eval echo "$as_me:18292: \"$ac_try\"") >&5 18293 (eval $ac_try) 2>&5 18294 ac_status=$? 18295 echo "$as_me:18295: \$? = $ac_status" >&5 18296 (exit $ac_status); }; }; then 18297 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 18298else 18299 echo "$as_me: failed program was:" >&5 18300cat conftest.$ac_ext >&5 18301fi 18302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18303 done 18304 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 18305 LIBS="$ac_save_LIBS" 18306fi 18307 18308fi 18309 18310eval "ac_res=\$ac_cv_funclib_gethostbyname" 18311 18312if false; then 18313 18314for ac_func in gethostbyname 18315do 18316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18317echo "$as_me:18317: checking for $ac_func" >&5 18318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18319if eval "test \"\${$as_ac_var+set}\" = set"; then 18320 echo $ECHO_N "(cached) $ECHO_C" >&6 18321else 18322 cat >conftest.$ac_ext <<_ACEOF 18323#line 18323 "configure" 18324#include "confdefs.h" 18325/* System header to define __stub macros and hopefully few prototypes, 18326 which can conflict with char $ac_func (); below. */ 18327#include <assert.h> 18328/* Override any gcc2 internal prototype to avoid an error. */ 18329#ifdef __cplusplus 18330extern "C" 18331#endif 18332/* We use char because int might match the return type of a gcc2 18333 builtin and then its argument prototype would still apply. */ 18334char $ac_func (); 18335char (*f) (); 18336 18337int 18338main () 18339{ 18340/* The GNU C library defines this for functions which it implements 18341 to always fail with ENOSYS. Some functions are actually named 18342 something starting with __ and the normal name is an alias. */ 18343#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18344choke me 18345#else 18346f = $ac_func; 18347#endif 18348 18349 ; 18350 return 0; 18351} 18352_ACEOF 18353rm -f conftest.$ac_objext conftest$ac_exeext 18354if { (eval echo "$as_me:18354: \"$ac_link\"") >&5 18355 (eval $ac_link) 2>&5 18356 ac_status=$? 18357 echo "$as_me:18357: \$? = $ac_status" >&5 18358 (exit $ac_status); } && 18359 { ac_try='test -s conftest$ac_exeext' 18360 { (eval echo "$as_me:18360: \"$ac_try\"") >&5 18361 (eval $ac_try) 2>&5 18362 ac_status=$? 18363 echo "$as_me:18363: \$? = $ac_status" >&5 18364 (exit $ac_status); }; }; then 18365 eval "$as_ac_var=yes" 18366else 18367 echo "$as_me: failed program was:" >&5 18368cat conftest.$ac_ext >&5 18369eval "$as_ac_var=no" 18370fi 18371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18372fi 18373echo "$as_me:18373: result: `eval echo '${'$as_ac_var'}'`" >&5 18374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18375if test `eval echo '${'$as_ac_var'}'` = yes; then 18376 cat >>confdefs.h <<EOF 18377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18378EOF 18379 18380fi 18381done 18382 18383fi 18384# gethostbyname 18385eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18386eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18387eval "LIB_gethostbyname=$ac_res" 18388 18389case "$ac_res" in 18390 yes) 18391 eval "ac_cv_func_gethostbyname=yes" 18392 eval "LIB_gethostbyname=" 18393 cat >>confdefs.h <<EOF 18394#define $ac_tr_func 1 18395EOF 18396 18397 echo "$as_me:18397: result: yes" >&5 18398echo "${ECHO_T}yes" >&6 18399 ;; 18400 no) 18401 eval "ac_cv_func_gethostbyname=no" 18402 eval "LIB_gethostbyname=" 18403 echo "$as_me:18403: result: no" >&5 18404echo "${ECHO_T}no" >&6 18405 ;; 18406 *) 18407 eval "ac_cv_func_gethostbyname=yes" 18408 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18409 cat >>confdefs.h <<EOF 18410#define $ac_tr_func 1 18411EOF 18412 18413 cat >>confdefs.h <<EOF 18414#define $ac_tr_lib 1 18415EOF 18416 18417 echo "$as_me:18417: result: yes, in $ac_res" >&5 18418echo "${ECHO_T}yes, in $ac_res" >&6 18419 ;; 18420esac 18421 18422if test -n "$LIB_gethostbyname"; then 18423 LIBS="$LIB_gethostbyname $LIBS" 18424fi 18425 18426echo "$as_me:18426: checking for syslog" >&5 18427echo $ECHO_N "checking for syslog... $ECHO_C" >&6 18428if test "${ac_cv_funclib_syslog+set}" = set; then 18429 echo $ECHO_N "(cached) $ECHO_C" >&6 18430else 18431 18432if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 18433 ac_save_LIBS="$LIBS" 18434 for ac_lib in "" syslog; do 18435 case "$ac_lib" in 18436 "") ;; 18437 yes) ac_lib="" ;; 18438 no) continue ;; 18439 -l*) ;; 18440 *) ac_lib="-l$ac_lib" ;; 18441 esac 18442 LIBS=" $ac_lib $ac_save_LIBS" 18443 cat >conftest.$ac_ext <<_ACEOF 18444#line 18444 "configure" 18445#include "confdefs.h" 18446 18447int 18448main () 18449{ 18450syslog() 18451 ; 18452 return 0; 18453} 18454_ACEOF 18455rm -f conftest.$ac_objext conftest$ac_exeext 18456if { (eval echo "$as_me:18456: \"$ac_link\"") >&5 18457 (eval $ac_link) 2>&5 18458 ac_status=$? 18459 echo "$as_me:18459: \$? = $ac_status" >&5 18460 (exit $ac_status); } && 18461 { ac_try='test -s conftest$ac_exeext' 18462 { (eval echo "$as_me:18462: \"$ac_try\"") >&5 18463 (eval $ac_try) 2>&5 18464 ac_status=$? 18465 echo "$as_me:18465: \$? = $ac_status" >&5 18466 (exit $ac_status); }; }; then 18467 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 18468else 18469 echo "$as_me: failed program was:" >&5 18470cat conftest.$ac_ext >&5 18471fi 18472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18473 done 18474 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 18475 LIBS="$ac_save_LIBS" 18476fi 18477 18478fi 18479 18480eval "ac_res=\$ac_cv_funclib_syslog" 18481 18482if false; then 18483 18484for ac_func in syslog 18485do 18486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18487echo "$as_me:18487: checking for $ac_func" >&5 18488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18489if eval "test \"\${$as_ac_var+set}\" = set"; then 18490 echo $ECHO_N "(cached) $ECHO_C" >&6 18491else 18492 cat >conftest.$ac_ext <<_ACEOF 18493#line 18493 "configure" 18494#include "confdefs.h" 18495/* System header to define __stub macros and hopefully few prototypes, 18496 which can conflict with char $ac_func (); below. */ 18497#include <assert.h> 18498/* Override any gcc2 internal prototype to avoid an error. */ 18499#ifdef __cplusplus 18500extern "C" 18501#endif 18502/* We use char because int might match the return type of a gcc2 18503 builtin and then its argument prototype would still apply. */ 18504char $ac_func (); 18505char (*f) (); 18506 18507int 18508main () 18509{ 18510/* The GNU C library defines this for functions which it implements 18511 to always fail with ENOSYS. Some functions are actually named 18512 something starting with __ and the normal name is an alias. */ 18513#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18514choke me 18515#else 18516f = $ac_func; 18517#endif 18518 18519 ; 18520 return 0; 18521} 18522_ACEOF 18523rm -f conftest.$ac_objext conftest$ac_exeext 18524if { (eval echo "$as_me:18524: \"$ac_link\"") >&5 18525 (eval $ac_link) 2>&5 18526 ac_status=$? 18527 echo "$as_me:18527: \$? = $ac_status" >&5 18528 (exit $ac_status); } && 18529 { ac_try='test -s conftest$ac_exeext' 18530 { (eval echo "$as_me:18530: \"$ac_try\"") >&5 18531 (eval $ac_try) 2>&5 18532 ac_status=$? 18533 echo "$as_me:18533: \$? = $ac_status" >&5 18534 (exit $ac_status); }; }; then 18535 eval "$as_ac_var=yes" 18536else 18537 echo "$as_me: failed program was:" >&5 18538cat conftest.$ac_ext >&5 18539eval "$as_ac_var=no" 18540fi 18541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18542fi 18543echo "$as_me:18543: result: `eval echo '${'$as_ac_var'}'`" >&5 18544echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18545if test `eval echo '${'$as_ac_var'}'` = yes; then 18546 cat >>confdefs.h <<EOF 18547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18548EOF 18549 18550fi 18551done 18552 18553fi 18554# syslog 18555eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18556eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18557eval "LIB_syslog=$ac_res" 18558 18559case "$ac_res" in 18560 yes) 18561 eval "ac_cv_func_syslog=yes" 18562 eval "LIB_syslog=" 18563 cat >>confdefs.h <<EOF 18564#define $ac_tr_func 1 18565EOF 18566 18567 echo "$as_me:18567: result: yes" >&5 18568echo "${ECHO_T}yes" >&6 18569 ;; 18570 no) 18571 eval "ac_cv_func_syslog=no" 18572 eval "LIB_syslog=" 18573 echo "$as_me:18573: result: no" >&5 18574echo "${ECHO_T}no" >&6 18575 ;; 18576 *) 18577 eval "ac_cv_func_syslog=yes" 18578 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18579 cat >>confdefs.h <<EOF 18580#define $ac_tr_func 1 18581EOF 18582 18583 cat >>confdefs.h <<EOF 18584#define $ac_tr_lib 1 18585EOF 18586 18587 echo "$as_me:18587: result: yes, in $ac_res" >&5 18588echo "${ECHO_T}yes, in $ac_res" >&6 18589 ;; 18590esac 18591 18592if test -n "$LIB_syslog"; then 18593 LIBS="$LIB_syslog $LIBS" 18594fi 18595 18596# Check whether --with-ipv6 or --without-ipv6 was given. 18597if test "${with_ipv6+set}" = set; then 18598 withval="$with_ipv6" 18599 18600if test "$withval" = "no"; then 18601 ac_cv_lib_ipv6=no 18602fi 18603fi; 18604save_CFLAGS="${CFLAGS}" 18605if test "${ac_cv_lib_ipv6+set}" = set; then 18606 echo $ECHO_N "(cached) $ECHO_C" >&6 18607else 18608 v6type=unknown 18609v6lib=none 18610 18611echo "$as_me:18611: checking ipv6 stack type" >&5 18612echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 18613for i in v6d toshiba kame inria zeta linux; do 18614 case $i in 18615 v6d) 18616 cat >conftest.$ac_ext <<_ACEOF 18617#line 18617 "configure" 18618#include "confdefs.h" 18619 18620#include </usr/local/v6/include/sys/types.h> 18621#ifdef __V6D__ 18622yes 18623#endif 18624_ACEOF 18625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18626 egrep "yes" >/dev/null 2>&1; then 18627 v6type=$i; v6lib=v6; 18628 v6libdir=/usr/local/v6/lib; 18629 CFLAGS="-I/usr/local/v6/include $CFLAGS" 18630fi 18631rm -f conftest* 18632 18633 ;; 18634 toshiba) 18635 cat >conftest.$ac_ext <<_ACEOF 18636#line 18636 "configure" 18637#include "confdefs.h" 18638 18639#include <sys/param.h> 18640#ifdef _TOSHIBA_INET6 18641yes 18642#endif 18643_ACEOF 18644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18645 egrep "yes" >/dev/null 2>&1; then 18646 v6type=$i; v6lib=inet6; 18647 v6libdir=/usr/local/v6/lib; 18648 CFLAGS="-DINET6 $CFLAGS" 18649fi 18650rm -f conftest* 18651 18652 ;; 18653 kame) 18654 cat >conftest.$ac_ext <<_ACEOF 18655#line 18655 "configure" 18656#include "confdefs.h" 18657 18658#include <netinet/in.h> 18659#ifdef __KAME__ 18660yes 18661#endif 18662_ACEOF 18663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18664 egrep "yes" >/dev/null 2>&1; then 18665 v6type=$i; v6lib=inet6; 18666 v6libdir=/usr/local/v6/lib; 18667 CFLAGS="-DINET6 $CFLAGS" 18668fi 18669rm -f conftest* 18670 18671 ;; 18672 inria) 18673 cat >conftest.$ac_ext <<_ACEOF 18674#line 18674 "configure" 18675#include "confdefs.h" 18676 18677#include <netinet/in.h> 18678#ifdef IPV6_INRIA_VERSION 18679yes 18680#endif 18681_ACEOF 18682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18683 egrep "yes" >/dev/null 2>&1; then 18684 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 18685fi 18686rm -f conftest* 18687 18688 ;; 18689 zeta) 18690 cat >conftest.$ac_ext <<_ACEOF 18691#line 18691 "configure" 18692#include "confdefs.h" 18693 18694#include <sys/param.h> 18695#ifdef _ZETA_MINAMI_INET6 18696yes 18697#endif 18698_ACEOF 18699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18700 egrep "yes" >/dev/null 2>&1; then 18701 v6type=$i; v6lib=inet6; 18702 v6libdir=/usr/local/v6/lib; 18703 CFLAGS="-DINET6 $CFLAGS" 18704fi 18705rm -f conftest* 18706 18707 ;; 18708 linux) 18709 if test -d /usr/inet6; then 18710 v6type=$i 18711 v6lib=inet6 18712 v6libdir=/usr/inet6 18713 CFLAGS="-DINET6 $CFLAGS" 18714 fi 18715 ;; 18716 esac 18717 if test "$v6type" != "unknown"; then 18718 break 18719 fi 18720done 18721echo "$as_me:18721: result: $v6type" >&5 18722echo "${ECHO_T}$v6type" >&6 18723 18724if test "$v6lib" != "none"; then 18725 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 18726 if test -d $dir -a -f $dir/lib$v6lib.a; then 18727 LIBS="-L$dir -l$v6lib $LIBS" 18728 break 18729 fi 18730 done 18731fi 18732cat >conftest.$ac_ext <<_ACEOF 18733#line 18733 "configure" 18734#include "confdefs.h" 18735 18736#ifdef HAVE_SYS_TYPES_H 18737#include <sys/types.h> 18738#endif 18739#ifdef HAVE_SYS_SOCKET_H 18740#include <sys/socket.h> 18741#endif 18742#ifdef HAVE_NETINET_IN_H 18743#include <netinet/in.h> 18744#endif 18745#ifdef HAVE_NETINET_IN6_H 18746#include <netinet/in6.h> 18747#endif 18748 18749int 18750main () 18751{ 18752 18753 struct sockaddr_in6 sin6; 18754 int s; 18755 18756 s = socket(AF_INET6, SOCK_DGRAM, 0); 18757 18758 sin6.sin6_family = AF_INET6; 18759 sin6.sin6_port = htons(17); 18760 sin6.sin6_addr = in6addr_any; 18761 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 18762 18763 ; 18764 return 0; 18765} 18766_ACEOF 18767rm -f conftest.$ac_objext conftest$ac_exeext 18768if { (eval echo "$as_me:18768: \"$ac_link\"") >&5 18769 (eval $ac_link) 2>&5 18770 ac_status=$? 18771 echo "$as_me:18771: \$? = $ac_status" >&5 18772 (exit $ac_status); } && 18773 { ac_try='test -s conftest$ac_exeext' 18774 { (eval echo "$as_me:18774: \"$ac_try\"") >&5 18775 (eval $ac_try) 2>&5 18776 ac_status=$? 18777 echo "$as_me:18777: \$? = $ac_status" >&5 18778 (exit $ac_status); }; }; then 18779 ac_cv_lib_ipv6=yes 18780else 18781 echo "$as_me: failed program was:" >&5 18782cat conftest.$ac_ext >&5 18783ac_cv_lib_ipv6=no 18784fi 18785rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18786fi 18787 18788echo "$as_me:18788: checking for IPv6" >&5 18789echo $ECHO_N "checking for IPv6... $ECHO_C" >&6 18790echo "$as_me:18790: result: $ac_cv_lib_ipv6" >&5 18791echo "${ECHO_T}$ac_cv_lib_ipv6" >&6 18792if test "$ac_cv_lib_ipv6" = yes; then 18793 18794cat >>confdefs.h <<\EOF 18795#define HAVE_IPV6 1 18796EOF 18797 18798else 18799 CFLAGS="${save_CFLAGS}" 18800fi 18801 18802if test "$ac_cv_lib_ipv6" = yes; then 18803 echo "$as_me:18803: checking for in6addr_loopback" >&5 18804echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6 18805if test "${ac_cv_var_in6addr_loopback+set}" = set; then 18806 echo $ECHO_N "(cached) $ECHO_C" >&6 18807else 18808 18809 cat >conftest.$ac_ext <<_ACEOF 18810#line 18810 "configure" 18811#include "confdefs.h" 18812 18813#ifdef HAVE_SYS_TYPES_H 18814#include <sys/types.h> 18815#endif 18816#ifdef HAVE_SYS_SOCKET_H 18817#include <sys/socket.h> 18818#endif 18819#ifdef HAVE_NETINET_IN_H 18820#include <netinet/in.h> 18821#endif 18822#ifdef HAVE_NETINET_IN6_H 18823#include <netinet/in6.h> 18824#endif 18825int 18826main () 18827{ 18828 18829struct sockaddr_in6 sin6; 18830sin6.sin6_addr = in6addr_loopback; 18831 18832 ; 18833 return 0; 18834} 18835_ACEOF 18836rm -f conftest.$ac_objext conftest$ac_exeext 18837if { (eval echo "$as_me:18837: \"$ac_link\"") >&5 18838 (eval $ac_link) 2>&5 18839 ac_status=$? 18840 echo "$as_me:18840: \$? = $ac_status" >&5 18841 (exit $ac_status); } && 18842 { ac_try='test -s conftest$ac_exeext' 18843 { (eval echo "$as_me:18843: \"$ac_try\"") >&5 18844 (eval $ac_try) 2>&5 18845 ac_status=$? 18846 echo "$as_me:18846: \$? = $ac_status" >&5 18847 (exit $ac_status); }; }; then 18848 ac_cv_var_in6addr_loopback=yes 18849else 18850 echo "$as_me: failed program was:" >&5 18851cat conftest.$ac_ext >&5 18852ac_cv_var_in6addr_loopback=no 18853fi 18854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18855fi 18856echo "$as_me:18856: result: $ac_cv_var_in6addr_loopback" >&5 18857echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6 18858 if test "$ac_cv_var_in6addr_loopback" = yes; then 18859 18860cat >>confdefs.h <<\EOF 18861#define HAVE_IN6ADDR_LOOPBACK 1 18862EOF 18863 18864 fi 18865fi 18866 18867echo "$as_me:18867: checking for logwtmp" >&5 18868echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6 18869if test "${ac_cv_funclib_logwtmp+set}" = set; then 18870 echo $ECHO_N "(cached) $ECHO_C" >&6 18871else 18872 18873if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 18874 ac_save_LIBS="$LIBS" 18875 for ac_lib in "" util; do 18876 case "$ac_lib" in 18877 "") ;; 18878 yes) ac_lib="" ;; 18879 no) continue ;; 18880 -l*) ;; 18881 *) ac_lib="-l$ac_lib" ;; 18882 esac 18883 LIBS=" $ac_lib $ac_save_LIBS" 18884 cat >conftest.$ac_ext <<_ACEOF 18885#line 18885 "configure" 18886#include "confdefs.h" 18887 18888int 18889main () 18890{ 18891logwtmp() 18892 ; 18893 return 0; 18894} 18895_ACEOF 18896rm -f conftest.$ac_objext conftest$ac_exeext 18897if { (eval echo "$as_me:18897: \"$ac_link\"") >&5 18898 (eval $ac_link) 2>&5 18899 ac_status=$? 18900 echo "$as_me:18900: \$? = $ac_status" >&5 18901 (exit $ac_status); } && 18902 { ac_try='test -s conftest$ac_exeext' 18903 { (eval echo "$as_me:18903: \"$ac_try\"") >&5 18904 (eval $ac_try) 2>&5 18905 ac_status=$? 18906 echo "$as_me:18906: \$? = $ac_status" >&5 18907 (exit $ac_status); }; }; then 18908 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 18909else 18910 echo "$as_me: failed program was:" >&5 18911cat conftest.$ac_ext >&5 18912fi 18913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18914 done 18915 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 18916 LIBS="$ac_save_LIBS" 18917fi 18918 18919fi 18920 18921eval "ac_res=\$ac_cv_funclib_logwtmp" 18922 18923if false; then 18924 18925for ac_func in logwtmp 18926do 18927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18928echo "$as_me:18928: checking for $ac_func" >&5 18929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18930if eval "test \"\${$as_ac_var+set}\" = set"; then 18931 echo $ECHO_N "(cached) $ECHO_C" >&6 18932else 18933 cat >conftest.$ac_ext <<_ACEOF 18934#line 18934 "configure" 18935#include "confdefs.h" 18936/* System header to define __stub macros and hopefully few prototypes, 18937 which can conflict with char $ac_func (); below. */ 18938#include <assert.h> 18939/* Override any gcc2 internal prototype to avoid an error. */ 18940#ifdef __cplusplus 18941extern "C" 18942#endif 18943/* We use char because int might match the return type of a gcc2 18944 builtin and then its argument prototype would still apply. */ 18945char $ac_func (); 18946char (*f) (); 18947 18948int 18949main () 18950{ 18951/* The GNU C library defines this for functions which it implements 18952 to always fail with ENOSYS. Some functions are actually named 18953 something starting with __ and the normal name is an alias. */ 18954#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18955choke me 18956#else 18957f = $ac_func; 18958#endif 18959 18960 ; 18961 return 0; 18962} 18963_ACEOF 18964rm -f conftest.$ac_objext conftest$ac_exeext 18965if { (eval echo "$as_me:18965: \"$ac_link\"") >&5 18966 (eval $ac_link) 2>&5 18967 ac_status=$? 18968 echo "$as_me:18968: \$? = $ac_status" >&5 18969 (exit $ac_status); } && 18970 { ac_try='test -s conftest$ac_exeext' 18971 { (eval echo "$as_me:18971: \"$ac_try\"") >&5 18972 (eval $ac_try) 2>&5 18973 ac_status=$? 18974 echo "$as_me:18974: \$? = $ac_status" >&5 18975 (exit $ac_status); }; }; then 18976 eval "$as_ac_var=yes" 18977else 18978 echo "$as_me: failed program was:" >&5 18979cat conftest.$ac_ext >&5 18980eval "$as_ac_var=no" 18981fi 18982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18983fi 18984echo "$as_me:18984: result: `eval echo '${'$as_ac_var'}'`" >&5 18985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18986if test `eval echo '${'$as_ac_var'}'` = yes; then 18987 cat >>confdefs.h <<EOF 18988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18989EOF 18990 18991fi 18992done 18993 18994fi 18995# logwtmp 18996eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18997eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18998eval "LIB_logwtmp=$ac_res" 18999 19000case "$ac_res" in 19001 yes) 19002 eval "ac_cv_func_logwtmp=yes" 19003 eval "LIB_logwtmp=" 19004 cat >>confdefs.h <<EOF 19005#define $ac_tr_func 1 19006EOF 19007 19008 echo "$as_me:19008: result: yes" >&5 19009echo "${ECHO_T}yes" >&6 19010 ;; 19011 no) 19012 eval "ac_cv_func_logwtmp=no" 19013 eval "LIB_logwtmp=" 19014 echo "$as_me:19014: result: no" >&5 19015echo "${ECHO_T}no" >&6 19016 ;; 19017 *) 19018 eval "ac_cv_func_logwtmp=yes" 19019 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19020 cat >>confdefs.h <<EOF 19021#define $ac_tr_func 1 19022EOF 19023 19024 cat >>confdefs.h <<EOF 19025#define $ac_tr_lib 1 19026EOF 19027 19028 echo "$as_me:19028: result: yes, in $ac_res" >&5 19029echo "${ECHO_T}yes, in $ac_res" >&6 19030 ;; 19031esac 19032 19033echo "$as_me:19033: checking for logout" >&5 19034echo $ECHO_N "checking for logout... $ECHO_C" >&6 19035if test "${ac_cv_funclib_logout+set}" = set; then 19036 echo $ECHO_N "(cached) $ECHO_C" >&6 19037else 19038 19039if eval "test \"\$ac_cv_func_logout\" != yes" ; then 19040 ac_save_LIBS="$LIBS" 19041 for ac_lib in "" util; do 19042 case "$ac_lib" in 19043 "") ;; 19044 yes) ac_lib="" ;; 19045 no) continue ;; 19046 -l*) ;; 19047 *) ac_lib="-l$ac_lib" ;; 19048 esac 19049 LIBS=" $ac_lib $ac_save_LIBS" 19050 cat >conftest.$ac_ext <<_ACEOF 19051#line 19051 "configure" 19052#include "confdefs.h" 19053 19054int 19055main () 19056{ 19057logout() 19058 ; 19059 return 0; 19060} 19061_ACEOF 19062rm -f conftest.$ac_objext conftest$ac_exeext 19063if { (eval echo "$as_me:19063: \"$ac_link\"") >&5 19064 (eval $ac_link) 2>&5 19065 ac_status=$? 19066 echo "$as_me:19066: \$? = $ac_status" >&5 19067 (exit $ac_status); } && 19068 { ac_try='test -s conftest$ac_exeext' 19069 { (eval echo "$as_me:19069: \"$ac_try\"") >&5 19070 (eval $ac_try) 2>&5 19071 ac_status=$? 19072 echo "$as_me:19072: \$? = $ac_status" >&5 19073 (exit $ac_status); }; }; then 19074 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break 19075else 19076 echo "$as_me: failed program was:" >&5 19077cat conftest.$ac_ext >&5 19078fi 19079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19080 done 19081 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}" 19082 LIBS="$ac_save_LIBS" 19083fi 19084 19085fi 19086 19087eval "ac_res=\$ac_cv_funclib_logout" 19088 19089if false; then 19090 19091for ac_func in logout 19092do 19093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19094echo "$as_me:19094: checking for $ac_func" >&5 19095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19096if eval "test \"\${$as_ac_var+set}\" = set"; then 19097 echo $ECHO_N "(cached) $ECHO_C" >&6 19098else 19099 cat >conftest.$ac_ext <<_ACEOF 19100#line 19100 "configure" 19101#include "confdefs.h" 19102/* System header to define __stub macros and hopefully few prototypes, 19103 which can conflict with char $ac_func (); below. */ 19104#include <assert.h> 19105/* Override any gcc2 internal prototype to avoid an error. */ 19106#ifdef __cplusplus 19107extern "C" 19108#endif 19109/* We use char because int might match the return type of a gcc2 19110 builtin and then its argument prototype would still apply. */ 19111char $ac_func (); 19112char (*f) (); 19113 19114int 19115main () 19116{ 19117/* The GNU C library defines this for functions which it implements 19118 to always fail with ENOSYS. Some functions are actually named 19119 something starting with __ and the normal name is an alias. */ 19120#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19121choke me 19122#else 19123f = $ac_func; 19124#endif 19125 19126 ; 19127 return 0; 19128} 19129_ACEOF 19130rm -f conftest.$ac_objext conftest$ac_exeext 19131if { (eval echo "$as_me:19131: \"$ac_link\"") >&5 19132 (eval $ac_link) 2>&5 19133 ac_status=$? 19134 echo "$as_me:19134: \$? = $ac_status" >&5 19135 (exit $ac_status); } && 19136 { ac_try='test -s conftest$ac_exeext' 19137 { (eval echo "$as_me:19137: \"$ac_try\"") >&5 19138 (eval $ac_try) 2>&5 19139 ac_status=$? 19140 echo "$as_me:19140: \$? = $ac_status" >&5 19141 (exit $ac_status); }; }; then 19142 eval "$as_ac_var=yes" 19143else 19144 echo "$as_me: failed program was:" >&5 19145cat conftest.$ac_ext >&5 19146eval "$as_ac_var=no" 19147fi 19148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19149fi 19150echo "$as_me:19150: result: `eval echo '${'$as_ac_var'}'`" >&5 19151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19152if test `eval echo '${'$as_ac_var'}'` = yes; then 19153 cat >>confdefs.h <<EOF 19154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19155EOF 19156 19157fi 19158done 19159 19160fi 19161# logout 19162eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19163eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19164eval "LIB_logout=$ac_res" 19165 19166case "$ac_res" in 19167 yes) 19168 eval "ac_cv_func_logout=yes" 19169 eval "LIB_logout=" 19170 cat >>confdefs.h <<EOF 19171#define $ac_tr_func 1 19172EOF 19173 19174 echo "$as_me:19174: result: yes" >&5 19175echo "${ECHO_T}yes" >&6 19176 ;; 19177 no) 19178 eval "ac_cv_func_logout=no" 19179 eval "LIB_logout=" 19180 echo "$as_me:19180: result: no" >&5 19181echo "${ECHO_T}no" >&6 19182 ;; 19183 *) 19184 eval "ac_cv_func_logout=yes" 19185 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19186 cat >>confdefs.h <<EOF 19187#define $ac_tr_func 1 19188EOF 19189 19190 cat >>confdefs.h <<EOF 19191#define $ac_tr_lib 1 19192EOF 19193 19194 echo "$as_me:19194: result: yes, in $ac_res" >&5 19195echo "${ECHO_T}yes, in $ac_res" >&6 19196 ;; 19197esac 19198 19199echo "$as_me:19199: checking for openpty" >&5 19200echo $ECHO_N "checking for openpty... $ECHO_C" >&6 19201if test "${ac_cv_funclib_openpty+set}" = set; then 19202 echo $ECHO_N "(cached) $ECHO_C" >&6 19203else 19204 19205if eval "test \"\$ac_cv_func_openpty\" != yes" ; then 19206 ac_save_LIBS="$LIBS" 19207 for ac_lib in "" util; do 19208 case "$ac_lib" in 19209 "") ;; 19210 yes) ac_lib="" ;; 19211 no) continue ;; 19212 -l*) ;; 19213 *) ac_lib="-l$ac_lib" ;; 19214 esac 19215 LIBS=" $ac_lib $ac_save_LIBS" 19216 cat >conftest.$ac_ext <<_ACEOF 19217#line 19217 "configure" 19218#include "confdefs.h" 19219 19220int 19221main () 19222{ 19223openpty() 19224 ; 19225 return 0; 19226} 19227_ACEOF 19228rm -f conftest.$ac_objext conftest$ac_exeext 19229if { (eval echo "$as_me:19229: \"$ac_link\"") >&5 19230 (eval $ac_link) 2>&5 19231 ac_status=$? 19232 echo "$as_me:19232: \$? = $ac_status" >&5 19233 (exit $ac_status); } && 19234 { ac_try='test -s conftest$ac_exeext' 19235 { (eval echo "$as_me:19235: \"$ac_try\"") >&5 19236 (eval $ac_try) 2>&5 19237 ac_status=$? 19238 echo "$as_me:19238: \$? = $ac_status" >&5 19239 (exit $ac_status); }; }; then 19240 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break 19241else 19242 echo "$as_me: failed program was:" >&5 19243cat conftest.$ac_ext >&5 19244fi 19245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19246 done 19247 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}" 19248 LIBS="$ac_save_LIBS" 19249fi 19250 19251fi 19252 19253eval "ac_res=\$ac_cv_funclib_openpty" 19254 19255if false; then 19256 19257for ac_func in openpty 19258do 19259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19260echo "$as_me:19260: checking for $ac_func" >&5 19261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19262if eval "test \"\${$as_ac_var+set}\" = set"; then 19263 echo $ECHO_N "(cached) $ECHO_C" >&6 19264else 19265 cat >conftest.$ac_ext <<_ACEOF 19266#line 19266 "configure" 19267#include "confdefs.h" 19268/* System header to define __stub macros and hopefully few prototypes, 19269 which can conflict with char $ac_func (); below. */ 19270#include <assert.h> 19271/* Override any gcc2 internal prototype to avoid an error. */ 19272#ifdef __cplusplus 19273extern "C" 19274#endif 19275/* We use char because int might match the return type of a gcc2 19276 builtin and then its argument prototype would still apply. */ 19277char $ac_func (); 19278char (*f) (); 19279 19280int 19281main () 19282{ 19283/* The GNU C library defines this for functions which it implements 19284 to always fail with ENOSYS. Some functions are actually named 19285 something starting with __ and the normal name is an alias. */ 19286#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19287choke me 19288#else 19289f = $ac_func; 19290#endif 19291 19292 ; 19293 return 0; 19294} 19295_ACEOF 19296rm -f conftest.$ac_objext conftest$ac_exeext 19297if { (eval echo "$as_me:19297: \"$ac_link\"") >&5 19298 (eval $ac_link) 2>&5 19299 ac_status=$? 19300 echo "$as_me:19300: \$? = $ac_status" >&5 19301 (exit $ac_status); } && 19302 { ac_try='test -s conftest$ac_exeext' 19303 { (eval echo "$as_me:19303: \"$ac_try\"") >&5 19304 (eval $ac_try) 2>&5 19305 ac_status=$? 19306 echo "$as_me:19306: \$? = $ac_status" >&5 19307 (exit $ac_status); }; }; then 19308 eval "$as_ac_var=yes" 19309else 19310 echo "$as_me: failed program was:" >&5 19311cat conftest.$ac_ext >&5 19312eval "$as_ac_var=no" 19313fi 19314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19315fi 19316echo "$as_me:19316: result: `eval echo '${'$as_ac_var'}'`" >&5 19317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19318if test `eval echo '${'$as_ac_var'}'` = yes; then 19319 cat >>confdefs.h <<EOF 19320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19321EOF 19322 19323fi 19324done 19325 19326fi 19327# openpty 19328eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19329eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19330eval "LIB_openpty=$ac_res" 19331 19332case "$ac_res" in 19333 yes) 19334 eval "ac_cv_func_openpty=yes" 19335 eval "LIB_openpty=" 19336 cat >>confdefs.h <<EOF 19337#define $ac_tr_func 1 19338EOF 19339 19340 echo "$as_me:19340: result: yes" >&5 19341echo "${ECHO_T}yes" >&6 19342 ;; 19343 no) 19344 eval "ac_cv_func_openpty=no" 19345 eval "LIB_openpty=" 19346 echo "$as_me:19346: result: no" >&5 19347echo "${ECHO_T}no" >&6 19348 ;; 19349 *) 19350 eval "ac_cv_func_openpty=yes" 19351 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19352 cat >>confdefs.h <<EOF 19353#define $ac_tr_func 1 19354EOF 19355 19356 cat >>confdefs.h <<EOF 19357#define $ac_tr_lib 1 19358EOF 19359 19360 echo "$as_me:19360: result: yes, in $ac_res" >&5 19361echo "${ECHO_T}yes, in $ac_res" >&6 19362 ;; 19363esac 19364 19365echo "$as_me:19365: checking for tgetent" >&5 19366echo $ECHO_N "checking for tgetent... $ECHO_C" >&6 19367if test "${ac_cv_funclib_tgetent+set}" = set; then 19368 echo $ECHO_N "(cached) $ECHO_C" >&6 19369else 19370 19371if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 19372 ac_save_LIBS="$LIBS" 19373 for ac_lib in "" termcap ncurses curses; do 19374 case "$ac_lib" in 19375 "") ;; 19376 yes) ac_lib="" ;; 19377 no) continue ;; 19378 -l*) ;; 19379 *) ac_lib="-l$ac_lib" ;; 19380 esac 19381 LIBS=" $ac_lib $ac_save_LIBS" 19382 cat >conftest.$ac_ext <<_ACEOF 19383#line 19383 "configure" 19384#include "confdefs.h" 19385 19386int 19387main () 19388{ 19389tgetent() 19390 ; 19391 return 0; 19392} 19393_ACEOF 19394rm -f conftest.$ac_objext conftest$ac_exeext 19395if { (eval echo "$as_me:19395: \"$ac_link\"") >&5 19396 (eval $ac_link) 2>&5 19397 ac_status=$? 19398 echo "$as_me:19398: \$? = $ac_status" >&5 19399 (exit $ac_status); } && 19400 { ac_try='test -s conftest$ac_exeext' 19401 { (eval echo "$as_me:19401: \"$ac_try\"") >&5 19402 (eval $ac_try) 2>&5 19403 ac_status=$? 19404 echo "$as_me:19404: \$? = $ac_status" >&5 19405 (exit $ac_status); }; }; then 19406 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 19407else 19408 echo "$as_me: failed program was:" >&5 19409cat conftest.$ac_ext >&5 19410fi 19411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19412 done 19413 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 19414 LIBS="$ac_save_LIBS" 19415fi 19416 19417fi 19418 19419eval "ac_res=\$ac_cv_funclib_tgetent" 19420 19421if false; then 19422 19423for ac_func in tgetent 19424do 19425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19426echo "$as_me:19426: checking for $ac_func" >&5 19427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19428if eval "test \"\${$as_ac_var+set}\" = set"; then 19429 echo $ECHO_N "(cached) $ECHO_C" >&6 19430else 19431 cat >conftest.$ac_ext <<_ACEOF 19432#line 19432 "configure" 19433#include "confdefs.h" 19434/* System header to define __stub macros and hopefully few prototypes, 19435 which can conflict with char $ac_func (); below. */ 19436#include <assert.h> 19437/* Override any gcc2 internal prototype to avoid an error. */ 19438#ifdef __cplusplus 19439extern "C" 19440#endif 19441/* We use char because int might match the return type of a gcc2 19442 builtin and then its argument prototype would still apply. */ 19443char $ac_func (); 19444char (*f) (); 19445 19446int 19447main () 19448{ 19449/* The GNU C library defines this for functions which it implements 19450 to always fail with ENOSYS. Some functions are actually named 19451 something starting with __ and the normal name is an alias. */ 19452#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19453choke me 19454#else 19455f = $ac_func; 19456#endif 19457 19458 ; 19459 return 0; 19460} 19461_ACEOF 19462rm -f conftest.$ac_objext conftest$ac_exeext 19463if { (eval echo "$as_me:19463: \"$ac_link\"") >&5 19464 (eval $ac_link) 2>&5 19465 ac_status=$? 19466 echo "$as_me:19466: \$? = $ac_status" >&5 19467 (exit $ac_status); } && 19468 { ac_try='test -s conftest$ac_exeext' 19469 { (eval echo "$as_me:19469: \"$ac_try\"") >&5 19470 (eval $ac_try) 2>&5 19471 ac_status=$? 19472 echo "$as_me:19472: \$? = $ac_status" >&5 19473 (exit $ac_status); }; }; then 19474 eval "$as_ac_var=yes" 19475else 19476 echo "$as_me: failed program was:" >&5 19477cat conftest.$ac_ext >&5 19478eval "$as_ac_var=no" 19479fi 19480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19481fi 19482echo "$as_me:19482: result: `eval echo '${'$as_ac_var'}'`" >&5 19483echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19484if test `eval echo '${'$as_ac_var'}'` = yes; then 19485 cat >>confdefs.h <<EOF 19486#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19487EOF 19488 19489fi 19490done 19491 19492fi 19493# tgetent 19494eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19495eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19496eval "LIB_tgetent=$ac_res" 19497 19498case "$ac_res" in 19499 yes) 19500 eval "ac_cv_func_tgetent=yes" 19501 eval "LIB_tgetent=" 19502 cat >>confdefs.h <<EOF 19503#define $ac_tr_func 1 19504EOF 19505 19506 echo "$as_me:19506: result: yes" >&5 19507echo "${ECHO_T}yes" >&6 19508 ;; 19509 no) 19510 eval "ac_cv_func_tgetent=no" 19511 eval "LIB_tgetent=" 19512 echo "$as_me:19512: result: no" >&5 19513echo "${ECHO_T}no" >&6 19514 ;; 19515 *) 19516 eval "ac_cv_func_tgetent=yes" 19517 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19518 cat >>confdefs.h <<EOF 19519#define $ac_tr_func 1 19520EOF 19521 19522 cat >>confdefs.h <<EOF 19523#define $ac_tr_lib 1 19524EOF 19525 19526 echo "$as_me:19526: result: yes, in $ac_res" >&5 19527echo "${ECHO_T}yes, in $ac_res" >&6 19528 ;; 19529esac 19530 19531echo "$as_me:19531: checking for gethostbyname2" >&5 19532echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6 19533if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 19534 echo $ECHO_N "(cached) $ECHO_C" >&6 19535else 19536 19537if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 19538 ac_save_LIBS="$LIBS" 19539 for ac_lib in "" inet6 ip6; do 19540 case "$ac_lib" in 19541 "") ;; 19542 yes) ac_lib="" ;; 19543 no) continue ;; 19544 -l*) ;; 19545 *) ac_lib="-l$ac_lib" ;; 19546 esac 19547 LIBS=" $ac_lib $ac_save_LIBS" 19548 cat >conftest.$ac_ext <<_ACEOF 19549#line 19549 "configure" 19550#include "confdefs.h" 19551 19552int 19553main () 19554{ 19555gethostbyname2() 19556 ; 19557 return 0; 19558} 19559_ACEOF 19560rm -f conftest.$ac_objext conftest$ac_exeext 19561if { (eval echo "$as_me:19561: \"$ac_link\"") >&5 19562 (eval $ac_link) 2>&5 19563 ac_status=$? 19564 echo "$as_me:19564: \$? = $ac_status" >&5 19565 (exit $ac_status); } && 19566 { ac_try='test -s conftest$ac_exeext' 19567 { (eval echo "$as_me:19567: \"$ac_try\"") >&5 19568 (eval $ac_try) 2>&5 19569 ac_status=$? 19570 echo "$as_me:19570: \$? = $ac_status" >&5 19571 (exit $ac_status); }; }; then 19572 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 19573else 19574 echo "$as_me: failed program was:" >&5 19575cat conftest.$ac_ext >&5 19576fi 19577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19578 done 19579 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 19580 LIBS="$ac_save_LIBS" 19581fi 19582 19583fi 19584 19585eval "ac_res=\$ac_cv_funclib_gethostbyname2" 19586 19587if false; then 19588 19589for ac_func in gethostbyname2 19590do 19591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19592echo "$as_me:19592: checking for $ac_func" >&5 19593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19594if eval "test \"\${$as_ac_var+set}\" = set"; then 19595 echo $ECHO_N "(cached) $ECHO_C" >&6 19596else 19597 cat >conftest.$ac_ext <<_ACEOF 19598#line 19598 "configure" 19599#include "confdefs.h" 19600/* System header to define __stub macros and hopefully few prototypes, 19601 which can conflict with char $ac_func (); below. */ 19602#include <assert.h> 19603/* Override any gcc2 internal prototype to avoid an error. */ 19604#ifdef __cplusplus 19605extern "C" 19606#endif 19607/* We use char because int might match the return type of a gcc2 19608 builtin and then its argument prototype would still apply. */ 19609char $ac_func (); 19610char (*f) (); 19611 19612int 19613main () 19614{ 19615/* The GNU C library defines this for functions which it implements 19616 to always fail with ENOSYS. Some functions are actually named 19617 something starting with __ and the normal name is an alias. */ 19618#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19619choke me 19620#else 19621f = $ac_func; 19622#endif 19623 19624 ; 19625 return 0; 19626} 19627_ACEOF 19628rm -f conftest.$ac_objext conftest$ac_exeext 19629if { (eval echo "$as_me:19629: \"$ac_link\"") >&5 19630 (eval $ac_link) 2>&5 19631 ac_status=$? 19632 echo "$as_me:19632: \$? = $ac_status" >&5 19633 (exit $ac_status); } && 19634 { ac_try='test -s conftest$ac_exeext' 19635 { (eval echo "$as_me:19635: \"$ac_try\"") >&5 19636 (eval $ac_try) 2>&5 19637 ac_status=$? 19638 echo "$as_me:19638: \$? = $ac_status" >&5 19639 (exit $ac_status); }; }; then 19640 eval "$as_ac_var=yes" 19641else 19642 echo "$as_me: failed program was:" >&5 19643cat conftest.$ac_ext >&5 19644eval "$as_ac_var=no" 19645fi 19646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19647fi 19648echo "$as_me:19648: result: `eval echo '${'$as_ac_var'}'`" >&5 19649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19650if test `eval echo '${'$as_ac_var'}'` = yes; then 19651 cat >>confdefs.h <<EOF 19652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19653EOF 19654 19655fi 19656done 19657 19658fi 19659# gethostbyname2 19660eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19661eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19662eval "LIB_gethostbyname2=$ac_res" 19663 19664case "$ac_res" in 19665 yes) 19666 eval "ac_cv_func_gethostbyname2=yes" 19667 eval "LIB_gethostbyname2=" 19668 cat >>confdefs.h <<EOF 19669#define $ac_tr_func 1 19670EOF 19671 19672 echo "$as_me:19672: result: yes" >&5 19673echo "${ECHO_T}yes" >&6 19674 ;; 19675 no) 19676 eval "ac_cv_func_gethostbyname2=no" 19677 eval "LIB_gethostbyname2=" 19678 echo "$as_me:19678: result: no" >&5 19679echo "${ECHO_T}no" >&6 19680 ;; 19681 *) 19682 eval "ac_cv_func_gethostbyname2=yes" 19683 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19684 cat >>confdefs.h <<EOF 19685#define $ac_tr_func 1 19686EOF 19687 19688 cat >>confdefs.h <<EOF 19689#define $ac_tr_lib 1 19690EOF 19691 19692 echo "$as_me:19692: result: yes, in $ac_res" >&5 19693echo "${ECHO_T}yes, in $ac_res" >&6 19694 ;; 19695esac 19696 19697if test -n "$LIB_gethostbyname2"; then 19698 LIBS="$LIB_gethostbyname2 $LIBS" 19699fi 19700 19701echo "$as_me:19701: checking for res_search" >&5 19702echo $ECHO_N "checking for res_search... $ECHO_C" >&6 19703if test "${ac_cv_funclib_res_search+set}" = set; then 19704 echo $ECHO_N "(cached) $ECHO_C" >&6 19705else 19706 19707if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 19708 ac_save_LIBS="$LIBS" 19709 for ac_lib in "" resolv; do 19710 case "$ac_lib" in 19711 "") ;; 19712 yes) ac_lib="" ;; 19713 no) continue ;; 19714 -l*) ;; 19715 *) ac_lib="-l$ac_lib" ;; 19716 esac 19717 LIBS=" $ac_lib $ac_save_LIBS" 19718 cat >conftest.$ac_ext <<_ACEOF 19719#line 19719 "configure" 19720#include "confdefs.h" 19721 19722#include <stdio.h> 19723#ifdef HAVE_SYS_TYPES_H 19724#include <sys/types.h> 19725#endif 19726#ifdef HAVE_NETINET_IN_H 19727#include <netinet/in.h> 19728#endif 19729#ifdef HAVE_ARPA_NAMESER_H 19730#include <arpa/nameser.h> 19731#endif 19732#ifdef HAVE_RESOLV_H 19733#include <resolv.h> 19734#endif 19735 19736int 19737main () 19738{ 19739res_search(0,0,0,0,0) 19740 ; 19741 return 0; 19742} 19743_ACEOF 19744rm -f conftest.$ac_objext conftest$ac_exeext 19745if { (eval echo "$as_me:19745: \"$ac_link\"") >&5 19746 (eval $ac_link) 2>&5 19747 ac_status=$? 19748 echo "$as_me:19748: \$? = $ac_status" >&5 19749 (exit $ac_status); } && 19750 { ac_try='test -s conftest$ac_exeext' 19751 { (eval echo "$as_me:19751: \"$ac_try\"") >&5 19752 (eval $ac_try) 2>&5 19753 ac_status=$? 19754 echo "$as_me:19754: \$? = $ac_status" >&5 19755 (exit $ac_status); }; }; then 19756 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 19757else 19758 echo "$as_me: failed program was:" >&5 19759cat conftest.$ac_ext >&5 19760fi 19761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19762 done 19763 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 19764 LIBS="$ac_save_LIBS" 19765fi 19766 19767fi 19768 19769eval "ac_res=\$ac_cv_funclib_res_search" 19770 19771if false; then 19772 19773for ac_func in res_search 19774do 19775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19776echo "$as_me:19776: checking for $ac_func" >&5 19777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19778if eval "test \"\${$as_ac_var+set}\" = set"; then 19779 echo $ECHO_N "(cached) $ECHO_C" >&6 19780else 19781 cat >conftest.$ac_ext <<_ACEOF 19782#line 19782 "configure" 19783#include "confdefs.h" 19784/* System header to define __stub macros and hopefully few prototypes, 19785 which can conflict with char $ac_func (); below. */ 19786#include <assert.h> 19787/* Override any gcc2 internal prototype to avoid an error. */ 19788#ifdef __cplusplus 19789extern "C" 19790#endif 19791/* We use char because int might match the return type of a gcc2 19792 builtin and then its argument prototype would still apply. */ 19793char $ac_func (); 19794char (*f) (); 19795 19796int 19797main () 19798{ 19799/* The GNU C library defines this for functions which it implements 19800 to always fail with ENOSYS. Some functions are actually named 19801 something starting with __ and the normal name is an alias. */ 19802#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19803choke me 19804#else 19805f = $ac_func; 19806#endif 19807 19808 ; 19809 return 0; 19810} 19811_ACEOF 19812rm -f conftest.$ac_objext conftest$ac_exeext 19813if { (eval echo "$as_me:19813: \"$ac_link\"") >&5 19814 (eval $ac_link) 2>&5 19815 ac_status=$? 19816 echo "$as_me:19816: \$? = $ac_status" >&5 19817 (exit $ac_status); } && 19818 { ac_try='test -s conftest$ac_exeext' 19819 { (eval echo "$as_me:19819: \"$ac_try\"") >&5 19820 (eval $ac_try) 2>&5 19821 ac_status=$? 19822 echo "$as_me:19822: \$? = $ac_status" >&5 19823 (exit $ac_status); }; }; then 19824 eval "$as_ac_var=yes" 19825else 19826 echo "$as_me: failed program was:" >&5 19827cat conftest.$ac_ext >&5 19828eval "$as_ac_var=no" 19829fi 19830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19831fi 19832echo "$as_me:19832: result: `eval echo '${'$as_ac_var'}'`" >&5 19833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19834if test `eval echo '${'$as_ac_var'}'` = yes; then 19835 cat >>confdefs.h <<EOF 19836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19837EOF 19838 19839fi 19840done 19841 19842fi 19843# res_search 19844eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19845eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19846eval "LIB_res_search=$ac_res" 19847 19848case "$ac_res" in 19849 yes) 19850 eval "ac_cv_func_res_search=yes" 19851 eval "LIB_res_search=" 19852 cat >>confdefs.h <<EOF 19853#define $ac_tr_func 1 19854EOF 19855 19856 echo "$as_me:19856: result: yes" >&5 19857echo "${ECHO_T}yes" >&6 19858 ;; 19859 no) 19860 eval "ac_cv_func_res_search=no" 19861 eval "LIB_res_search=" 19862 echo "$as_me:19862: result: no" >&5 19863echo "${ECHO_T}no" >&6 19864 ;; 19865 *) 19866 eval "ac_cv_func_res_search=yes" 19867 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19868 cat >>confdefs.h <<EOF 19869#define $ac_tr_func 1 19870EOF 19871 19872 cat >>confdefs.h <<EOF 19873#define $ac_tr_lib 1 19874EOF 19875 19876 echo "$as_me:19876: result: yes, in $ac_res" >&5 19877echo "${ECHO_T}yes, in $ac_res" >&6 19878 ;; 19879esac 19880 19881if test -n "$LIB_res_search"; then 19882 LIBS="$LIB_res_search $LIBS" 19883fi 19884 19885echo "$as_me:19885: checking for dn_expand" >&5 19886echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6 19887if test "${ac_cv_funclib_dn_expand+set}" = set; then 19888 echo $ECHO_N "(cached) $ECHO_C" >&6 19889else 19890 19891if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 19892 ac_save_LIBS="$LIBS" 19893 for ac_lib in "" resolv; do 19894 case "$ac_lib" in 19895 "") ;; 19896 yes) ac_lib="" ;; 19897 no) continue ;; 19898 -l*) ;; 19899 *) ac_lib="-l$ac_lib" ;; 19900 esac 19901 LIBS=" $ac_lib $ac_save_LIBS" 19902 cat >conftest.$ac_ext <<_ACEOF 19903#line 19903 "configure" 19904#include "confdefs.h" 19905 19906#include <stdio.h> 19907#ifdef HAVE_SYS_TYPES_H 19908#include <sys/types.h> 19909#endif 19910#ifdef HAVE_NETINET_IN_H 19911#include <netinet/in.h> 19912#endif 19913#ifdef HAVE_ARPA_NAMESER_H 19914#include <arpa/nameser.h> 19915#endif 19916#ifdef HAVE_RESOLV_H 19917#include <resolv.h> 19918#endif 19919 19920int 19921main () 19922{ 19923dn_expand(0,0,0,0,0) 19924 ; 19925 return 0; 19926} 19927_ACEOF 19928rm -f conftest.$ac_objext conftest$ac_exeext 19929if { (eval echo "$as_me:19929: \"$ac_link\"") >&5 19930 (eval $ac_link) 2>&5 19931 ac_status=$? 19932 echo "$as_me:19932: \$? = $ac_status" >&5 19933 (exit $ac_status); } && 19934 { ac_try='test -s conftest$ac_exeext' 19935 { (eval echo "$as_me:19935: \"$ac_try\"") >&5 19936 (eval $ac_try) 2>&5 19937 ac_status=$? 19938 echo "$as_me:19938: \$? = $ac_status" >&5 19939 (exit $ac_status); }; }; then 19940 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 19941else 19942 echo "$as_me: failed program was:" >&5 19943cat conftest.$ac_ext >&5 19944fi 19945rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19946 done 19947 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 19948 LIBS="$ac_save_LIBS" 19949fi 19950 19951fi 19952 19953eval "ac_res=\$ac_cv_funclib_dn_expand" 19954 19955if false; then 19956 19957for ac_func in dn_expand 19958do 19959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19960echo "$as_me:19960: checking for $ac_func" >&5 19961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19962if eval "test \"\${$as_ac_var+set}\" = set"; then 19963 echo $ECHO_N "(cached) $ECHO_C" >&6 19964else 19965 cat >conftest.$ac_ext <<_ACEOF 19966#line 19966 "configure" 19967#include "confdefs.h" 19968/* System header to define __stub macros and hopefully few prototypes, 19969 which can conflict with char $ac_func (); below. */ 19970#include <assert.h> 19971/* Override any gcc2 internal prototype to avoid an error. */ 19972#ifdef __cplusplus 19973extern "C" 19974#endif 19975/* We use char because int might match the return type of a gcc2 19976 builtin and then its argument prototype would still apply. */ 19977char $ac_func (); 19978char (*f) (); 19979 19980int 19981main () 19982{ 19983/* The GNU C library defines this for functions which it implements 19984 to always fail with ENOSYS. Some functions are actually named 19985 something starting with __ and the normal name is an alias. */ 19986#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19987choke me 19988#else 19989f = $ac_func; 19990#endif 19991 19992 ; 19993 return 0; 19994} 19995_ACEOF 19996rm -f conftest.$ac_objext conftest$ac_exeext 19997if { (eval echo "$as_me:19997: \"$ac_link\"") >&5 19998 (eval $ac_link) 2>&5 19999 ac_status=$? 20000 echo "$as_me:20000: \$? = $ac_status" >&5 20001 (exit $ac_status); } && 20002 { ac_try='test -s conftest$ac_exeext' 20003 { (eval echo "$as_me:20003: \"$ac_try\"") >&5 20004 (eval $ac_try) 2>&5 20005 ac_status=$? 20006 echo "$as_me:20006: \$? = $ac_status" >&5 20007 (exit $ac_status); }; }; then 20008 eval "$as_ac_var=yes" 20009else 20010 echo "$as_me: failed program was:" >&5 20011cat conftest.$ac_ext >&5 20012eval "$as_ac_var=no" 20013fi 20014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20015fi 20016echo "$as_me:20016: result: `eval echo '${'$as_ac_var'}'`" >&5 20017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20018if test `eval echo '${'$as_ac_var'}'` = yes; then 20019 cat >>confdefs.h <<EOF 20020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20021EOF 20022 20023fi 20024done 20025 20026fi 20027# dn_expand 20028eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20029eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20030eval "LIB_dn_expand=$ac_res" 20031 20032case "$ac_res" in 20033 yes) 20034 eval "ac_cv_func_dn_expand=yes" 20035 eval "LIB_dn_expand=" 20036 cat >>confdefs.h <<EOF 20037#define $ac_tr_func 1 20038EOF 20039 20040 echo "$as_me:20040: result: yes" >&5 20041echo "${ECHO_T}yes" >&6 20042 ;; 20043 no) 20044 eval "ac_cv_func_dn_expand=no" 20045 eval "LIB_dn_expand=" 20046 echo "$as_me:20046: result: no" >&5 20047echo "${ECHO_T}no" >&6 20048 ;; 20049 *) 20050 eval "ac_cv_func_dn_expand=yes" 20051 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 20052 cat >>confdefs.h <<EOF 20053#define $ac_tr_func 1 20054EOF 20055 20056 cat >>confdefs.h <<EOF 20057#define $ac_tr_lib 1 20058EOF 20059 20060 echo "$as_me:20060: result: yes, in $ac_res" >&5 20061echo "${ECHO_T}yes, in $ac_res" >&6 20062 ;; 20063esac 20064 20065if test -n "$LIB_dn_expand"; then 20066 LIBS="$LIB_dn_expand $LIBS" 20067fi 20068 20069echo "$as_me:20069: checking for working snprintf" >&5 20070echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 20071if test "${ac_cv_func_snprintf_working+set}" = set; then 20072 echo $ECHO_N "(cached) $ECHO_C" >&6 20073else 20074 ac_cv_func_snprintf_working=yes 20075if test "$cross_compiling" = yes; then 20076 : 20077else 20078 cat >conftest.$ac_ext <<_ACEOF 20079#line 20079 "configure" 20080#include "confdefs.h" 20081 20082#include <stdio.h> 20083#include <string.h> 20084int main() 20085{ 20086 char foo[3]; 20087 snprintf(foo, 2, "12"); 20088 return strcmp(foo, "1"); 20089} 20090_ACEOF 20091rm -f conftest$ac_exeext 20092if { (eval echo "$as_me:20092: \"$ac_link\"") >&5 20093 (eval $ac_link) 2>&5 20094 ac_status=$? 20095 echo "$as_me:20095: \$? = $ac_status" >&5 20096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20097 { (eval echo "$as_me:20097: \"$ac_try\"") >&5 20098 (eval $ac_try) 2>&5 20099 ac_status=$? 20100 echo "$as_me:20100: \$? = $ac_status" >&5 20101 (exit $ac_status); }; }; then 20102 : 20103else 20104 echo "$as_me: program exited with status $ac_status" >&5 20105echo "$as_me: failed program was:" >&5 20106cat conftest.$ac_ext >&5 20107ac_cv_func_snprintf_working=no 20108fi 20109rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20110fi 20111fi 20112echo "$as_me:20112: result: $ac_cv_func_snprintf_working" >&5 20113echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6 20114 20115if test "$ac_cv_func_snprintf_working" = yes; then 20116 20117cat >>confdefs.h <<EOF 20118#define HAVE_SNPRINTF 1 20119EOF 20120 20121fi 20122if test "$ac_cv_func_snprintf_working" = yes; then 20123 20124if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 20125echo "$as_me:20125: checking if snprintf needs a prototype" >&5 20126echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6 20127if test "${ac_cv_func_snprintf_noproto+set}" = set; then 20128 echo $ECHO_N "(cached) $ECHO_C" >&6 20129else 20130 cat >conftest.$ac_ext <<_ACEOF 20131#line 20131 "configure" 20132#include "confdefs.h" 20133#include <stdio.h> 20134int 20135main () 20136{ 20137struct foo { int foo; } xx; 20138extern int snprintf (struct foo*); 20139snprintf(&xx); 20140 20141 ; 20142 return 0; 20143} 20144_ACEOF 20145rm -f conftest.$ac_objext 20146if { (eval echo "$as_me:20146: \"$ac_compile\"") >&5 20147 (eval $ac_compile) 2>&5 20148 ac_status=$? 20149 echo "$as_me:20149: \$? = $ac_status" >&5 20150 (exit $ac_status); } && 20151 { ac_try='test -s conftest.$ac_objext' 20152 { (eval echo "$as_me:20152: \"$ac_try\"") >&5 20153 (eval $ac_try) 2>&5 20154 ac_status=$? 20155 echo "$as_me:20155: \$? = $ac_status" >&5 20156 (exit $ac_status); }; }; then 20157 eval "ac_cv_func_snprintf_noproto=yes" 20158else 20159 echo "$as_me: failed program was:" >&5 20160cat conftest.$ac_ext >&5 20161eval "ac_cv_func_snprintf_noproto=no" 20162fi 20163rm -f conftest.$ac_objext conftest.$ac_ext 20164fi 20165echo "$as_me:20165: result: $ac_cv_func_snprintf_noproto" >&5 20166echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6 20167 20168if test "$ac_cv_func_snprintf_noproto" = yes; then 20169 20170cat >>confdefs.h <<\EOF 20171#define NEED_SNPRINTF_PROTO 1 20172EOF 20173 20174fi 20175 20176fi 20177 20178fi 20179 20180echo "$as_me:20180: checking for working vsnprintf" >&5 20181echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6 20182if test "${ac_cv_func_vsnprintf_working+set}" = set; then 20183 echo $ECHO_N "(cached) $ECHO_C" >&6 20184else 20185 ac_cv_func_vsnprintf_working=yes 20186if test "$cross_compiling" = yes; then 20187 : 20188else 20189 cat >conftest.$ac_ext <<_ACEOF 20190#line 20190 "configure" 20191#include "confdefs.h" 20192 20193#include <stdio.h> 20194#include <string.h> 20195#include <stdarg.h> 20196 20197int foo(int num, ...) 20198{ 20199 char bar[3]; 20200 va_list arg; 20201 va_start(arg, num); 20202 vsnprintf(bar, 2, "%s", arg); 20203 va_end(arg); 20204 return strcmp(bar, "1"); 20205} 20206 20207int main() 20208{ 20209 return foo(0, "12"); 20210} 20211_ACEOF 20212rm -f conftest$ac_exeext 20213if { (eval echo "$as_me:20213: \"$ac_link\"") >&5 20214 (eval $ac_link) 2>&5 20215 ac_status=$? 20216 echo "$as_me:20216: \$? = $ac_status" >&5 20217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20218 { (eval echo "$as_me:20218: \"$ac_try\"") >&5 20219 (eval $ac_try) 2>&5 20220 ac_status=$? 20221 echo "$as_me:20221: \$? = $ac_status" >&5 20222 (exit $ac_status); }; }; then 20223 : 20224else 20225 echo "$as_me: program exited with status $ac_status" >&5 20226echo "$as_me: failed program was:" >&5 20227cat conftest.$ac_ext >&5 20228ac_cv_func_vsnprintf_working=no 20229fi 20230rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20231fi 20232fi 20233echo "$as_me:20233: result: $ac_cv_func_vsnprintf_working" >&5 20234echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6 20235 20236if test "$ac_cv_func_vsnprintf_working" = yes; then 20237 20238cat >>confdefs.h <<EOF 20239#define HAVE_VSNPRINTF 1 20240EOF 20241 20242fi 20243if test "$ac_cv_func_vsnprintf_working" = yes; then 20244 20245if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 20246echo "$as_me:20246: checking if vsnprintf needs a prototype" >&5 20247echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6 20248if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 20249 echo $ECHO_N "(cached) $ECHO_C" >&6 20250else 20251 cat >conftest.$ac_ext <<_ACEOF 20252#line 20252 "configure" 20253#include "confdefs.h" 20254#include <stdio.h> 20255int 20256main () 20257{ 20258struct foo { int foo; } xx; 20259extern int vsnprintf (struct foo*); 20260vsnprintf(&xx); 20261 20262 ; 20263 return 0; 20264} 20265_ACEOF 20266rm -f conftest.$ac_objext 20267if { (eval echo "$as_me:20267: \"$ac_compile\"") >&5 20268 (eval $ac_compile) 2>&5 20269 ac_status=$? 20270 echo "$as_me:20270: \$? = $ac_status" >&5 20271 (exit $ac_status); } && 20272 { ac_try='test -s conftest.$ac_objext' 20273 { (eval echo "$as_me:20273: \"$ac_try\"") >&5 20274 (eval $ac_try) 2>&5 20275 ac_status=$? 20276 echo "$as_me:20276: \$? = $ac_status" >&5 20277 (exit $ac_status); }; }; then 20278 eval "ac_cv_func_vsnprintf_noproto=yes" 20279else 20280 echo "$as_me: failed program was:" >&5 20281cat conftest.$ac_ext >&5 20282eval "ac_cv_func_vsnprintf_noproto=no" 20283fi 20284rm -f conftest.$ac_objext conftest.$ac_ext 20285fi 20286echo "$as_me:20286: result: $ac_cv_func_vsnprintf_noproto" >&5 20287echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6 20288 20289if test "$ac_cv_func_vsnprintf_noproto" = yes; then 20290 20291cat >>confdefs.h <<\EOF 20292#define NEED_VSNPRINTF_PROTO 1 20293EOF 20294 20295fi 20296 20297fi 20298 20299fi 20300 20301for ac_func in \ 20302 _getpty \ 20303 _scrsize \ 20304 fcntl \ 20305 gettimeofday \ 20306 getuid \ 20307 grantpt \ 20308 mktime \ 20309 ptsname \ 20310 rand \ 20311 random \ 20312 revoke \ 20313 select \ 20314 setitimer \ 20315 setpcred \ 20316 setpgid \ 20317 setproctitle \ 20318 setregid \ 20319 setresgid \ 20320 setresuid \ 20321 setreuid \ 20322 setsid \ 20323 setutent \ 20324 sigaction \ 20325 strstr \ 20326 timegm \ 20327 ttyname \ 20328 ttyslot \ 20329 umask \ 20330 unlockpt \ 20331 vhangup \ 20332 yp_get_default_domain \ 20333 20334do 20335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20336echo "$as_me:20336: checking for $ac_func" >&5 20337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20338if eval "test \"\${$as_ac_var+set}\" = set"; then 20339 echo $ECHO_N "(cached) $ECHO_C" >&6 20340else 20341 cat >conftest.$ac_ext <<_ACEOF 20342#line 20342 "configure" 20343#include "confdefs.h" 20344/* System header to define __stub macros and hopefully few prototypes, 20345 which can conflict with char $ac_func (); below. */ 20346#include <assert.h> 20347/* Override any gcc2 internal prototype to avoid an error. */ 20348#ifdef __cplusplus 20349extern "C" 20350#endif 20351/* We use char because int might match the return type of a gcc2 20352 builtin and then its argument prototype would still apply. */ 20353char $ac_func (); 20354char (*f) (); 20355 20356int 20357main () 20358{ 20359/* The GNU C library defines this for functions which it implements 20360 to always fail with ENOSYS. Some functions are actually named 20361 something starting with __ and the normal name is an alias. */ 20362#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20363choke me 20364#else 20365f = $ac_func; 20366#endif 20367 20368 ; 20369 return 0; 20370} 20371_ACEOF 20372rm -f conftest.$ac_objext conftest$ac_exeext 20373if { (eval echo "$as_me:20373: \"$ac_link\"") >&5 20374 (eval $ac_link) 2>&5 20375 ac_status=$? 20376 echo "$as_me:20376: \$? = $ac_status" >&5 20377 (exit $ac_status); } && 20378 { ac_try='test -s conftest$ac_exeext' 20379 { (eval echo "$as_me:20379: \"$ac_try\"") >&5 20380 (eval $ac_try) 2>&5 20381 ac_status=$? 20382 echo "$as_me:20382: \$? = $ac_status" >&5 20383 (exit $ac_status); }; }; then 20384 eval "$as_ac_var=yes" 20385else 20386 echo "$as_me: failed program was:" >&5 20387cat conftest.$ac_ext >&5 20388eval "$as_ac_var=no" 20389fi 20390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20391fi 20392echo "$as_me:20392: result: `eval echo '${'$as_ac_var'}'`" >&5 20393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20394if test `eval echo '${'$as_ac_var'}'` = yes; then 20395 cat >>confdefs.h <<EOF 20396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20397EOF 20398 20399fi 20400done 20401 20402for ac_header in capability.h sys/capability.h 20403do 20404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20405echo "$as_me:20405: checking for $ac_header" >&5 20406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20407if eval "test \"\${$as_ac_Header+set}\" = set"; then 20408 echo $ECHO_N "(cached) $ECHO_C" >&6 20409else 20410 cat >conftest.$ac_ext <<_ACEOF 20411#line 20411 "configure" 20412#include "confdefs.h" 20413#include <$ac_header> 20414_ACEOF 20415if { (eval echo "$as_me:20415: \"$ac_cpp conftest.$ac_ext\"") >&5 20416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20417 ac_status=$? 20418 egrep -v '^ *\+' conftest.er1 >conftest.err 20419 rm -f conftest.er1 20420 cat conftest.err >&5 20421 echo "$as_me:20421: \$? = $ac_status" >&5 20422 (exit $ac_status); } >/dev/null; then 20423 if test -s conftest.err; then 20424 ac_cpp_err=$ac_c_preproc_warn_flag 20425 else 20426 ac_cpp_err= 20427 fi 20428else 20429 ac_cpp_err=yes 20430fi 20431if test -z "$ac_cpp_err"; then 20432 eval "$as_ac_Header=yes" 20433else 20434 echo "$as_me: failed program was:" >&5 20435 cat conftest.$ac_ext >&5 20436 eval "$as_ac_Header=no" 20437fi 20438rm -f conftest.err conftest.$ac_ext 20439fi 20440echo "$as_me:20440: result: `eval echo '${'$as_ac_Header'}'`" >&5 20441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20442if test `eval echo '${'$as_ac_Header'}'` = yes; then 20443 cat >>confdefs.h <<EOF 20444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20445EOF 20446 20447fi 20448done 20449 20450for ac_func in sgi_getcapabilitybyname cap_set_proc 20451do 20452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20453echo "$as_me:20453: checking for $ac_func" >&5 20454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20455if eval "test \"\${$as_ac_var+set}\" = set"; then 20456 echo $ECHO_N "(cached) $ECHO_C" >&6 20457else 20458 cat >conftest.$ac_ext <<_ACEOF 20459#line 20459 "configure" 20460#include "confdefs.h" 20461/* System header to define __stub macros and hopefully few prototypes, 20462 which can conflict with char $ac_func (); below. */ 20463#include <assert.h> 20464/* Override any gcc2 internal prototype to avoid an error. */ 20465#ifdef __cplusplus 20466extern "C" 20467#endif 20468/* We use char because int might match the return type of a gcc2 20469 builtin and then its argument prototype would still apply. */ 20470char $ac_func (); 20471char (*f) (); 20472 20473int 20474main () 20475{ 20476/* The GNU C library defines this for functions which it implements 20477 to always fail with ENOSYS. Some functions are actually named 20478 something starting with __ and the normal name is an alias. */ 20479#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20480choke me 20481#else 20482f = $ac_func; 20483#endif 20484 20485 ; 20486 return 0; 20487} 20488_ACEOF 20489rm -f conftest.$ac_objext conftest$ac_exeext 20490if { (eval echo "$as_me:20490: \"$ac_link\"") >&5 20491 (eval $ac_link) 2>&5 20492 ac_status=$? 20493 echo "$as_me:20493: \$? = $ac_status" >&5 20494 (exit $ac_status); } && 20495 { ac_try='test -s conftest$ac_exeext' 20496 { (eval echo "$as_me:20496: \"$ac_try\"") >&5 20497 (eval $ac_try) 2>&5 20498 ac_status=$? 20499 echo "$as_me:20499: \$? = $ac_status" >&5 20500 (exit $ac_status); }; }; then 20501 eval "$as_ac_var=yes" 20502else 20503 echo "$as_me: failed program was:" >&5 20504cat conftest.$ac_ext >&5 20505eval "$as_ac_var=no" 20506fi 20507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20508fi 20509echo "$as_me:20509: result: `eval echo '${'$as_ac_var'}'`" >&5 20510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20511if test `eval echo '${'$as_ac_var'}'` = yes; then 20512 cat >>confdefs.h <<EOF 20513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20514EOF 20515 20516fi 20517done 20518 20519echo "$as_me:20519: checking for getpwnam_r" >&5 20520echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6 20521if test "${ac_cv_funclib_getpwnam_r+set}" = set; then 20522 echo $ECHO_N "(cached) $ECHO_C" >&6 20523else 20524 20525if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 20526 ac_save_LIBS="$LIBS" 20527 for ac_lib in "" c_r; do 20528 case "$ac_lib" in 20529 "") ;; 20530 yes) ac_lib="" ;; 20531 no) continue ;; 20532 -l*) ;; 20533 *) ac_lib="-l$ac_lib" ;; 20534 esac 20535 LIBS=" $ac_lib $ac_save_LIBS" 20536 cat >conftest.$ac_ext <<_ACEOF 20537#line 20537 "configure" 20538#include "confdefs.h" 20539 20540int 20541main () 20542{ 20543getpwnam_r() 20544 ; 20545 return 0; 20546} 20547_ACEOF 20548rm -f conftest.$ac_objext conftest$ac_exeext 20549if { (eval echo "$as_me:20549: \"$ac_link\"") >&5 20550 (eval $ac_link) 2>&5 20551 ac_status=$? 20552 echo "$as_me:20552: \$? = $ac_status" >&5 20553 (exit $ac_status); } && 20554 { ac_try='test -s conftest$ac_exeext' 20555 { (eval echo "$as_me:20555: \"$ac_try\"") >&5 20556 (eval $ac_try) 2>&5 20557 ac_status=$? 20558 echo "$as_me:20558: \$? = $ac_status" >&5 20559 (exit $ac_status); }; }; then 20560 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 20561else 20562 echo "$as_me: failed program was:" >&5 20563cat conftest.$ac_ext >&5 20564fi 20565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20566 done 20567 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 20568 LIBS="$ac_save_LIBS" 20569fi 20570 20571fi 20572 20573eval "ac_res=\$ac_cv_funclib_getpwnam_r" 20574 20575if false; then 20576 20577for ac_func in getpwnam_r 20578do 20579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20580echo "$as_me:20580: checking for $ac_func" >&5 20581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20582if eval "test \"\${$as_ac_var+set}\" = set"; then 20583 echo $ECHO_N "(cached) $ECHO_C" >&6 20584else 20585 cat >conftest.$ac_ext <<_ACEOF 20586#line 20586 "configure" 20587#include "confdefs.h" 20588/* System header to define __stub macros and hopefully few prototypes, 20589 which can conflict with char $ac_func (); below. */ 20590#include <assert.h> 20591/* Override any gcc2 internal prototype to avoid an error. */ 20592#ifdef __cplusplus 20593extern "C" 20594#endif 20595/* We use char because int might match the return type of a gcc2 20596 builtin and then its argument prototype would still apply. */ 20597char $ac_func (); 20598char (*f) (); 20599 20600int 20601main () 20602{ 20603/* The GNU C library defines this for functions which it implements 20604 to always fail with ENOSYS. Some functions are actually named 20605 something starting with __ and the normal name is an alias. */ 20606#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20607choke me 20608#else 20609f = $ac_func; 20610#endif 20611 20612 ; 20613 return 0; 20614} 20615_ACEOF 20616rm -f conftest.$ac_objext conftest$ac_exeext 20617if { (eval echo "$as_me:20617: \"$ac_link\"") >&5 20618 (eval $ac_link) 2>&5 20619 ac_status=$? 20620 echo "$as_me:20620: \$? = $ac_status" >&5 20621 (exit $ac_status); } && 20622 { ac_try='test -s conftest$ac_exeext' 20623 { (eval echo "$as_me:20623: \"$ac_try\"") >&5 20624 (eval $ac_try) 2>&5 20625 ac_status=$? 20626 echo "$as_me:20626: \$? = $ac_status" >&5 20627 (exit $ac_status); }; }; then 20628 eval "$as_ac_var=yes" 20629else 20630 echo "$as_me: failed program was:" >&5 20631cat conftest.$ac_ext >&5 20632eval "$as_ac_var=no" 20633fi 20634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20635fi 20636echo "$as_me:20636: result: `eval echo '${'$as_ac_var'}'`" >&5 20637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20638if test `eval echo '${'$as_ac_var'}'` = yes; then 20639 cat >>confdefs.h <<EOF 20640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20641EOF 20642 20643fi 20644done 20645 20646fi 20647# getpwnam_r 20648eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20649eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20650eval "LIB_getpwnam_r=$ac_res" 20651 20652case "$ac_res" in 20653 yes) 20654 eval "ac_cv_func_getpwnam_r=yes" 20655 eval "LIB_getpwnam_r=" 20656 cat >>confdefs.h <<EOF 20657#define $ac_tr_func 1 20658EOF 20659 20660 echo "$as_me:20660: result: yes" >&5 20661echo "${ECHO_T}yes" >&6 20662 ;; 20663 no) 20664 eval "ac_cv_func_getpwnam_r=no" 20665 eval "LIB_getpwnam_r=" 20666 echo "$as_me:20666: result: no" >&5 20667echo "${ECHO_T}no" >&6 20668 ;; 20669 *) 20670 eval "ac_cv_func_getpwnam_r=yes" 20671 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 20672 cat >>confdefs.h <<EOF 20673#define $ac_tr_func 1 20674EOF 20675 20676 cat >>confdefs.h <<EOF 20677#define $ac_tr_lib 1 20678EOF 20679 20680 echo "$as_me:20680: result: yes, in $ac_res" >&5 20681echo "${ECHO_T}yes, in $ac_res" >&6 20682 ;; 20683esac 20684 20685if test "$ac_cv_func_getpwnam_r" = yes; then 20686 echo "$as_me:20686: checking if getpwnam_r is posix" >&5 20687echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6 20688if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then 20689 echo $ECHO_N "(cached) $ECHO_C" >&6 20690else 20691 ac_libs="$LIBS" 20692 LIBS="$LIBS $LIB_getpwnam_r" 20693 if test "$cross_compiling" = yes; then 20694 : 20695else 20696 cat >conftest.$ac_ext <<_ACEOF 20697#line 20697 "configure" 20698#include "confdefs.h" 20699 20700#include <pwd.h> 20701int main() 20702{ 20703 struct passwd pw, *pwd; 20704 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0; 20705} 20706 20707_ACEOF 20708rm -f conftest$ac_exeext 20709if { (eval echo "$as_me:20709: \"$ac_link\"") >&5 20710 (eval $ac_link) 2>&5 20711 ac_status=$? 20712 echo "$as_me:20712: \$? = $ac_status" >&5 20713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20714 { (eval echo "$as_me:20714: \"$ac_try\"") >&5 20715 (eval $ac_try) 2>&5 20716 ac_status=$? 20717 echo "$as_me:20717: \$? = $ac_status" >&5 20718 (exit $ac_status); }; }; then 20719 ac_cv_func_getpwnam_r_posix=yes 20720else 20721 echo "$as_me: program exited with status $ac_status" >&5 20722echo "$as_me: failed program was:" >&5 20723cat conftest.$ac_ext >&5 20724ac_cv_func_getpwnam_r_posix=no 20725fi 20726rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20727fi 20728LIBS="$ac_libs" 20729fi 20730echo "$as_me:20730: result: $ac_cv_func_getpwnam_r_posix" >&5 20731echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6 20732if test "$ac_cv_func_getpwnam_r_posix" = yes; then 20733 20734cat >>confdefs.h <<\EOF 20735#define POSIX_GETPWNAM_R 1 20736EOF 20737 20738fi 20739fi 20740 20741echo "$as_me:20741: checking for getsockopt" >&5 20742echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6 20743if test "${ac_cv_funclib_getsockopt+set}" = set; then 20744 echo $ECHO_N "(cached) $ECHO_C" >&6 20745else 20746 20747if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 20748 ac_save_LIBS="$LIBS" 20749 for ac_lib in "" ; do 20750 case "$ac_lib" in 20751 "") ;; 20752 yes) ac_lib="" ;; 20753 no) continue ;; 20754 -l*) ;; 20755 *) ac_lib="-l$ac_lib" ;; 20756 esac 20757 LIBS=" $ac_lib $ac_save_LIBS" 20758 cat >conftest.$ac_ext <<_ACEOF 20759#line 20759 "configure" 20760#include "confdefs.h" 20761#ifdef HAVE_SYS_TYPES_H 20762#include <sys/types.h> 20763#endif 20764#ifdef HAVE_SYS_SOCKET_H 20765#include <sys/socket.h> 20766#endif 20767int 20768main () 20769{ 20770getsockopt(0,0,0,0,0) 20771 ; 20772 return 0; 20773} 20774_ACEOF 20775rm -f conftest.$ac_objext conftest$ac_exeext 20776if { (eval echo "$as_me:20776: \"$ac_link\"") >&5 20777 (eval $ac_link) 2>&5 20778 ac_status=$? 20779 echo "$as_me:20779: \$? = $ac_status" >&5 20780 (exit $ac_status); } && 20781 { ac_try='test -s conftest$ac_exeext' 20782 { (eval echo "$as_me:20782: \"$ac_try\"") >&5 20783 (eval $ac_try) 2>&5 20784 ac_status=$? 20785 echo "$as_me:20785: \$? = $ac_status" >&5 20786 (exit $ac_status); }; }; then 20787 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 20788else 20789 echo "$as_me: failed program was:" >&5 20790cat conftest.$ac_ext >&5 20791fi 20792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20793 done 20794 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 20795 LIBS="$ac_save_LIBS" 20796fi 20797 20798fi 20799 20800eval "ac_res=\$ac_cv_funclib_getsockopt" 20801 20802if false; then 20803 20804for ac_func in getsockopt 20805do 20806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20807echo "$as_me:20807: checking for $ac_func" >&5 20808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20809if eval "test \"\${$as_ac_var+set}\" = set"; then 20810 echo $ECHO_N "(cached) $ECHO_C" >&6 20811else 20812 cat >conftest.$ac_ext <<_ACEOF 20813#line 20813 "configure" 20814#include "confdefs.h" 20815/* System header to define __stub macros and hopefully few prototypes, 20816 which can conflict with char $ac_func (); below. */ 20817#include <assert.h> 20818/* Override any gcc2 internal prototype to avoid an error. */ 20819#ifdef __cplusplus 20820extern "C" 20821#endif 20822/* We use char because int might match the return type of a gcc2 20823 builtin and then its argument prototype would still apply. */ 20824char $ac_func (); 20825char (*f) (); 20826 20827int 20828main () 20829{ 20830/* The GNU C library defines this for functions which it implements 20831 to always fail with ENOSYS. Some functions are actually named 20832 something starting with __ and the normal name is an alias. */ 20833#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20834choke me 20835#else 20836f = $ac_func; 20837#endif 20838 20839 ; 20840 return 0; 20841} 20842_ACEOF 20843rm -f conftest.$ac_objext conftest$ac_exeext 20844if { (eval echo "$as_me:20844: \"$ac_link\"") >&5 20845 (eval $ac_link) 2>&5 20846 ac_status=$? 20847 echo "$as_me:20847: \$? = $ac_status" >&5 20848 (exit $ac_status); } && 20849 { ac_try='test -s conftest$ac_exeext' 20850 { (eval echo "$as_me:20850: \"$ac_try\"") >&5 20851 (eval $ac_try) 2>&5 20852 ac_status=$? 20853 echo "$as_me:20853: \$? = $ac_status" >&5 20854 (exit $ac_status); }; }; then 20855 eval "$as_ac_var=yes" 20856else 20857 echo "$as_me: failed program was:" >&5 20858cat conftest.$ac_ext >&5 20859eval "$as_ac_var=no" 20860fi 20861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20862fi 20863echo "$as_me:20863: result: `eval echo '${'$as_ac_var'}'`" >&5 20864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20865if test `eval echo '${'$as_ac_var'}'` = yes; then 20866 cat >>confdefs.h <<EOF 20867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20868EOF 20869 20870fi 20871done 20872 20873fi 20874# getsockopt 20875eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20876eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20877eval "LIB_getsockopt=$ac_res" 20878 20879case "$ac_res" in 20880 yes) 20881 eval "ac_cv_func_getsockopt=yes" 20882 eval "LIB_getsockopt=" 20883 cat >>confdefs.h <<EOF 20884#define $ac_tr_func 1 20885EOF 20886 20887 echo "$as_me:20887: result: yes" >&5 20888echo "${ECHO_T}yes" >&6 20889 ;; 20890 no) 20891 eval "ac_cv_func_getsockopt=no" 20892 eval "LIB_getsockopt=" 20893 echo "$as_me:20893: result: no" >&5 20894echo "${ECHO_T}no" >&6 20895 ;; 20896 *) 20897 eval "ac_cv_func_getsockopt=yes" 20898 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 20899 cat >>confdefs.h <<EOF 20900#define $ac_tr_func 1 20901EOF 20902 20903 cat >>confdefs.h <<EOF 20904#define $ac_tr_lib 1 20905EOF 20906 20907 echo "$as_me:20907: result: yes, in $ac_res" >&5 20908echo "${ECHO_T}yes, in $ac_res" >&6 20909 ;; 20910esac 20911 20912echo "$as_me:20912: checking for setsockopt" >&5 20913echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 20914if test "${ac_cv_funclib_setsockopt+set}" = set; then 20915 echo $ECHO_N "(cached) $ECHO_C" >&6 20916else 20917 20918if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 20919 ac_save_LIBS="$LIBS" 20920 for ac_lib in "" ; do 20921 case "$ac_lib" in 20922 "") ;; 20923 yes) ac_lib="" ;; 20924 no) continue ;; 20925 -l*) ;; 20926 *) ac_lib="-l$ac_lib" ;; 20927 esac 20928 LIBS=" $ac_lib $ac_save_LIBS" 20929 cat >conftest.$ac_ext <<_ACEOF 20930#line 20930 "configure" 20931#include "confdefs.h" 20932#ifdef HAVE_SYS_TYPES_H 20933#include <sys/types.h> 20934#endif 20935#ifdef HAVE_SYS_SOCKET_H 20936#include <sys/socket.h> 20937#endif 20938int 20939main () 20940{ 20941setsockopt(0,0,0,0,0) 20942 ; 20943 return 0; 20944} 20945_ACEOF 20946rm -f conftest.$ac_objext conftest$ac_exeext 20947if { (eval echo "$as_me:20947: \"$ac_link\"") >&5 20948 (eval $ac_link) 2>&5 20949 ac_status=$? 20950 echo "$as_me:20950: \$? = $ac_status" >&5 20951 (exit $ac_status); } && 20952 { ac_try='test -s conftest$ac_exeext' 20953 { (eval echo "$as_me:20953: \"$ac_try\"") >&5 20954 (eval $ac_try) 2>&5 20955 ac_status=$? 20956 echo "$as_me:20956: \$? = $ac_status" >&5 20957 (exit $ac_status); }; }; then 20958 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 20959else 20960 echo "$as_me: failed program was:" >&5 20961cat conftest.$ac_ext >&5 20962fi 20963rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20964 done 20965 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 20966 LIBS="$ac_save_LIBS" 20967fi 20968 20969fi 20970 20971eval "ac_res=\$ac_cv_funclib_setsockopt" 20972 20973if false; then 20974 20975for ac_func in setsockopt 20976do 20977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20978echo "$as_me:20978: checking for $ac_func" >&5 20979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20980if eval "test \"\${$as_ac_var+set}\" = set"; then 20981 echo $ECHO_N "(cached) $ECHO_C" >&6 20982else 20983 cat >conftest.$ac_ext <<_ACEOF 20984#line 20984 "configure" 20985#include "confdefs.h" 20986/* System header to define __stub macros and hopefully few prototypes, 20987 which can conflict with char $ac_func (); below. */ 20988#include <assert.h> 20989/* Override any gcc2 internal prototype to avoid an error. */ 20990#ifdef __cplusplus 20991extern "C" 20992#endif 20993/* We use char because int might match the return type of a gcc2 20994 builtin and then its argument prototype would still apply. */ 20995char $ac_func (); 20996char (*f) (); 20997 20998int 20999main () 21000{ 21001/* The GNU C library defines this for functions which it implements 21002 to always fail with ENOSYS. Some functions are actually named 21003 something starting with __ and the normal name is an alias. */ 21004#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21005choke me 21006#else 21007f = $ac_func; 21008#endif 21009 21010 ; 21011 return 0; 21012} 21013_ACEOF 21014rm -f conftest.$ac_objext conftest$ac_exeext 21015if { (eval echo "$as_me:21015: \"$ac_link\"") >&5 21016 (eval $ac_link) 2>&5 21017 ac_status=$? 21018 echo "$as_me:21018: \$? = $ac_status" >&5 21019 (exit $ac_status); } && 21020 { ac_try='test -s conftest$ac_exeext' 21021 { (eval echo "$as_me:21021: \"$ac_try\"") >&5 21022 (eval $ac_try) 2>&5 21023 ac_status=$? 21024 echo "$as_me:21024: \$? = $ac_status" >&5 21025 (exit $ac_status); }; }; then 21026 eval "$as_ac_var=yes" 21027else 21028 echo "$as_me: failed program was:" >&5 21029cat conftest.$ac_ext >&5 21030eval "$as_ac_var=no" 21031fi 21032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21033fi 21034echo "$as_me:21034: result: `eval echo '${'$as_ac_var'}'`" >&5 21035echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21036if test `eval echo '${'$as_ac_var'}'` = yes; then 21037 cat >>confdefs.h <<EOF 21038#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21039EOF 21040 21041fi 21042done 21043 21044fi 21045# setsockopt 21046eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21047eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21048eval "LIB_setsockopt=$ac_res" 21049 21050case "$ac_res" in 21051 yes) 21052 eval "ac_cv_func_setsockopt=yes" 21053 eval "LIB_setsockopt=" 21054 cat >>confdefs.h <<EOF 21055#define $ac_tr_func 1 21056EOF 21057 21058 echo "$as_me:21058: result: yes" >&5 21059echo "${ECHO_T}yes" >&6 21060 ;; 21061 no) 21062 eval "ac_cv_func_setsockopt=no" 21063 eval "LIB_setsockopt=" 21064 echo "$as_me:21064: result: no" >&5 21065echo "${ECHO_T}no" >&6 21066 ;; 21067 *) 21068 eval "ac_cv_func_setsockopt=yes" 21069 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 21070 cat >>confdefs.h <<EOF 21071#define $ac_tr_func 1 21072EOF 21073 21074 cat >>confdefs.h <<EOF 21075#define $ac_tr_lib 1 21076EOF 21077 21078 echo "$as_me:21078: result: yes, in $ac_res" >&5 21079echo "${ECHO_T}yes, in $ac_res" >&6 21080 ;; 21081esac 21082 21083for ac_func in getudbnam setlim 21084do 21085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21086echo "$as_me:21086: checking for $ac_func" >&5 21087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21088if eval "test \"\${$as_ac_var+set}\" = set"; then 21089 echo $ECHO_N "(cached) $ECHO_C" >&6 21090else 21091 cat >conftest.$ac_ext <<_ACEOF 21092#line 21092 "configure" 21093#include "confdefs.h" 21094/* System header to define __stub macros and hopefully few prototypes, 21095 which can conflict with char $ac_func (); below. */ 21096#include <assert.h> 21097/* Override any gcc2 internal prototype to avoid an error. */ 21098#ifdef __cplusplus 21099extern "C" 21100#endif 21101/* We use char because int might match the return type of a gcc2 21102 builtin and then its argument prototype would still apply. */ 21103char $ac_func (); 21104char (*f) (); 21105 21106int 21107main () 21108{ 21109/* The GNU C library defines this for functions which it implements 21110 to always fail with ENOSYS. Some functions are actually named 21111 something starting with __ and the normal name is an alias. */ 21112#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21113choke me 21114#else 21115f = $ac_func; 21116#endif 21117 21118 ; 21119 return 0; 21120} 21121_ACEOF 21122rm -f conftest.$ac_objext conftest$ac_exeext 21123if { (eval echo "$as_me:21123: \"$ac_link\"") >&5 21124 (eval $ac_link) 2>&5 21125 ac_status=$? 21126 echo "$as_me:21126: \$? = $ac_status" >&5 21127 (exit $ac_status); } && 21128 { ac_try='test -s conftest$ac_exeext' 21129 { (eval echo "$as_me:21129: \"$ac_try\"") >&5 21130 (eval $ac_try) 2>&5 21131 ac_status=$? 21132 echo "$as_me:21132: \$? = $ac_status" >&5 21133 (exit $ac_status); }; }; then 21134 eval "$as_ac_var=yes" 21135else 21136 echo "$as_me: failed program was:" >&5 21137cat conftest.$ac_ext >&5 21138eval "$as_ac_var=no" 21139fi 21140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21141fi 21142echo "$as_me:21142: result: `eval echo '${'$as_ac_var'}'`" >&5 21143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21144if test `eval echo '${'$as_ac_var'}'` = yes; then 21145 cat >>confdefs.h <<EOF 21146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21147EOF 21148 21149fi 21150done 21151 21152echo "$as_me:21152: checking for ut_addr in struct utmp" >&5 21153echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6 21154if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then 21155 echo $ECHO_N "(cached) $ECHO_C" >&6 21156else 21157 21158cat >conftest.$ac_ext <<_ACEOF 21159#line 21159 "configure" 21160#include "confdefs.h" 21161#include <utmp.h> 21162int 21163main () 21164{ 21165struct utmp x; x.ut_addr; 21166 ; 21167 return 0; 21168} 21169_ACEOF 21170rm -f conftest.$ac_objext 21171if { (eval echo "$as_me:21171: \"$ac_compile\"") >&5 21172 (eval $ac_compile) 2>&5 21173 ac_status=$? 21174 echo "$as_me:21174: \$? = $ac_status" >&5 21175 (exit $ac_status); } && 21176 { ac_try='test -s conftest.$ac_objext' 21177 { (eval echo "$as_me:21177: \"$ac_try\"") >&5 21178 (eval $ac_try) 2>&5 21179 ac_status=$? 21180 echo "$as_me:21180: \$? = $ac_status" >&5 21181 (exit $ac_status); }; }; then 21182 ac_cv_type_struct_utmp_ut_addr=yes 21183else 21184 echo "$as_me: failed program was:" >&5 21185cat conftest.$ac_ext >&5 21186ac_cv_type_struct_utmp_ut_addr=no 21187fi 21188rm -f conftest.$ac_objext conftest.$ac_ext 21189fi 21190echo "$as_me:21190: result: $ac_cv_type_struct_utmp_ut_addr" >&5 21191echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6 21192if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then 21193 21194cat >>confdefs.h <<\EOF 21195#define HAVE_STRUCT_UTMP_UT_ADDR 1 21196EOF 21197 21198fi 21199 21200echo "$as_me:21200: checking for ut_host in struct utmp" >&5 21201echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6 21202if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then 21203 echo $ECHO_N "(cached) $ECHO_C" >&6 21204else 21205 21206cat >conftest.$ac_ext <<_ACEOF 21207#line 21207 "configure" 21208#include "confdefs.h" 21209#include <utmp.h> 21210int 21211main () 21212{ 21213struct utmp x; x.ut_host; 21214 ; 21215 return 0; 21216} 21217_ACEOF 21218rm -f conftest.$ac_objext 21219if { (eval echo "$as_me:21219: \"$ac_compile\"") >&5 21220 (eval $ac_compile) 2>&5 21221 ac_status=$? 21222 echo "$as_me:21222: \$? = $ac_status" >&5 21223 (exit $ac_status); } && 21224 { ac_try='test -s conftest.$ac_objext' 21225 { (eval echo "$as_me:21225: \"$ac_try\"") >&5 21226 (eval $ac_try) 2>&5 21227 ac_status=$? 21228 echo "$as_me:21228: \$? = $ac_status" >&5 21229 (exit $ac_status); }; }; then 21230 ac_cv_type_struct_utmp_ut_host=yes 21231else 21232 echo "$as_me: failed program was:" >&5 21233cat conftest.$ac_ext >&5 21234ac_cv_type_struct_utmp_ut_host=no 21235fi 21236rm -f conftest.$ac_objext conftest.$ac_ext 21237fi 21238echo "$as_me:21238: result: $ac_cv_type_struct_utmp_ut_host" >&5 21239echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6 21240if test "$ac_cv_type_struct_utmp_ut_host" = yes; then 21241 21242cat >>confdefs.h <<\EOF 21243#define HAVE_STRUCT_UTMP_UT_HOST 1 21244EOF 21245 21246fi 21247 21248echo "$as_me:21248: checking for ut_id in struct utmp" >&5 21249echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6 21250if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then 21251 echo $ECHO_N "(cached) $ECHO_C" >&6 21252else 21253 21254cat >conftest.$ac_ext <<_ACEOF 21255#line 21255 "configure" 21256#include "confdefs.h" 21257#include <utmp.h> 21258int 21259main () 21260{ 21261struct utmp x; x.ut_id; 21262 ; 21263 return 0; 21264} 21265_ACEOF 21266rm -f conftest.$ac_objext 21267if { (eval echo "$as_me:21267: \"$ac_compile\"") >&5 21268 (eval $ac_compile) 2>&5 21269 ac_status=$? 21270 echo "$as_me:21270: \$? = $ac_status" >&5 21271 (exit $ac_status); } && 21272 { ac_try='test -s conftest.$ac_objext' 21273 { (eval echo "$as_me:21273: \"$ac_try\"") >&5 21274 (eval $ac_try) 2>&5 21275 ac_status=$? 21276 echo "$as_me:21276: \$? = $ac_status" >&5 21277 (exit $ac_status); }; }; then 21278 ac_cv_type_struct_utmp_ut_id=yes 21279else 21280 echo "$as_me: failed program was:" >&5 21281cat conftest.$ac_ext >&5 21282ac_cv_type_struct_utmp_ut_id=no 21283fi 21284rm -f conftest.$ac_objext conftest.$ac_ext 21285fi 21286echo "$as_me:21286: result: $ac_cv_type_struct_utmp_ut_id" >&5 21287echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6 21288if test "$ac_cv_type_struct_utmp_ut_id" = yes; then 21289 21290cat >>confdefs.h <<\EOF 21291#define HAVE_STRUCT_UTMP_UT_ID 1 21292EOF 21293 21294fi 21295 21296echo "$as_me:21296: checking for ut_pid in struct utmp" >&5 21297echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6 21298if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then 21299 echo $ECHO_N "(cached) $ECHO_C" >&6 21300else 21301 21302cat >conftest.$ac_ext <<_ACEOF 21303#line 21303 "configure" 21304#include "confdefs.h" 21305#include <utmp.h> 21306int 21307main () 21308{ 21309struct utmp x; x.ut_pid; 21310 ; 21311 return 0; 21312} 21313_ACEOF 21314rm -f conftest.$ac_objext 21315if { (eval echo "$as_me:21315: \"$ac_compile\"") >&5 21316 (eval $ac_compile) 2>&5 21317 ac_status=$? 21318 echo "$as_me:21318: \$? = $ac_status" >&5 21319 (exit $ac_status); } && 21320 { ac_try='test -s conftest.$ac_objext' 21321 { (eval echo "$as_me:21321: \"$ac_try\"") >&5 21322 (eval $ac_try) 2>&5 21323 ac_status=$? 21324 echo "$as_me:21324: \$? = $ac_status" >&5 21325 (exit $ac_status); }; }; then 21326 ac_cv_type_struct_utmp_ut_pid=yes 21327else 21328 echo "$as_me: failed program was:" >&5 21329cat conftest.$ac_ext >&5 21330ac_cv_type_struct_utmp_ut_pid=no 21331fi 21332rm -f conftest.$ac_objext conftest.$ac_ext 21333fi 21334echo "$as_me:21334: result: $ac_cv_type_struct_utmp_ut_pid" >&5 21335echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6 21336if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then 21337 21338cat >>confdefs.h <<\EOF 21339#define HAVE_STRUCT_UTMP_UT_PID 1 21340EOF 21341 21342fi 21343 21344echo "$as_me:21344: checking for ut_type in struct utmp" >&5 21345echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6 21346if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then 21347 echo $ECHO_N "(cached) $ECHO_C" >&6 21348else 21349 21350cat >conftest.$ac_ext <<_ACEOF 21351#line 21351 "configure" 21352#include "confdefs.h" 21353#include <utmp.h> 21354int 21355main () 21356{ 21357struct utmp x; x.ut_type; 21358 ; 21359 return 0; 21360} 21361_ACEOF 21362rm -f conftest.$ac_objext 21363if { (eval echo "$as_me:21363: \"$ac_compile\"") >&5 21364 (eval $ac_compile) 2>&5 21365 ac_status=$? 21366 echo "$as_me:21366: \$? = $ac_status" >&5 21367 (exit $ac_status); } && 21368 { ac_try='test -s conftest.$ac_objext' 21369 { (eval echo "$as_me:21369: \"$ac_try\"") >&5 21370 (eval $ac_try) 2>&5 21371 ac_status=$? 21372 echo "$as_me:21372: \$? = $ac_status" >&5 21373 (exit $ac_status); }; }; then 21374 ac_cv_type_struct_utmp_ut_type=yes 21375else 21376 echo "$as_me: failed program was:" >&5 21377cat conftest.$ac_ext >&5 21378ac_cv_type_struct_utmp_ut_type=no 21379fi 21380rm -f conftest.$ac_objext conftest.$ac_ext 21381fi 21382echo "$as_me:21382: result: $ac_cv_type_struct_utmp_ut_type" >&5 21383echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6 21384if test "$ac_cv_type_struct_utmp_ut_type" = yes; then 21385 21386cat >>confdefs.h <<\EOF 21387#define HAVE_STRUCT_UTMP_UT_TYPE 1 21388EOF 21389 21390fi 21391 21392echo "$as_me:21392: checking for ut_user in struct utmp" >&5 21393echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6 21394if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then 21395 echo $ECHO_N "(cached) $ECHO_C" >&6 21396else 21397 21398cat >conftest.$ac_ext <<_ACEOF 21399#line 21399 "configure" 21400#include "confdefs.h" 21401#include <utmp.h> 21402int 21403main () 21404{ 21405struct utmp x; x.ut_user; 21406 ; 21407 return 0; 21408} 21409_ACEOF 21410rm -f conftest.$ac_objext 21411if { (eval echo "$as_me:21411: \"$ac_compile\"") >&5 21412 (eval $ac_compile) 2>&5 21413 ac_status=$? 21414 echo "$as_me:21414: \$? = $ac_status" >&5 21415 (exit $ac_status); } && 21416 { ac_try='test -s conftest.$ac_objext' 21417 { (eval echo "$as_me:21417: \"$ac_try\"") >&5 21418 (eval $ac_try) 2>&5 21419 ac_status=$? 21420 echo "$as_me:21420: \$? = $ac_status" >&5 21421 (exit $ac_status); }; }; then 21422 ac_cv_type_struct_utmp_ut_user=yes 21423else 21424 echo "$as_me: failed program was:" >&5 21425cat conftest.$ac_ext >&5 21426ac_cv_type_struct_utmp_ut_user=no 21427fi 21428rm -f conftest.$ac_objext conftest.$ac_ext 21429fi 21430echo "$as_me:21430: result: $ac_cv_type_struct_utmp_ut_user" >&5 21431echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6 21432if test "$ac_cv_type_struct_utmp_ut_user" = yes; then 21433 21434cat >>confdefs.h <<\EOF 21435#define HAVE_STRUCT_UTMP_UT_USER 1 21436EOF 21437 21438fi 21439 21440echo "$as_me:21440: checking for ut_exit in struct utmpx" >&5 21441echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6 21442if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then 21443 echo $ECHO_N "(cached) $ECHO_C" >&6 21444else 21445 21446cat >conftest.$ac_ext <<_ACEOF 21447#line 21447 "configure" 21448#include "confdefs.h" 21449#include <utmpx.h> 21450int 21451main () 21452{ 21453struct utmpx x; x.ut_exit; 21454 ; 21455 return 0; 21456} 21457_ACEOF 21458rm -f conftest.$ac_objext 21459if { (eval echo "$as_me:21459: \"$ac_compile\"") >&5 21460 (eval $ac_compile) 2>&5 21461 ac_status=$? 21462 echo "$as_me:21462: \$? = $ac_status" >&5 21463 (exit $ac_status); } && 21464 { ac_try='test -s conftest.$ac_objext' 21465 { (eval echo "$as_me:21465: \"$ac_try\"") >&5 21466 (eval $ac_try) 2>&5 21467 ac_status=$? 21468 echo "$as_me:21468: \$? = $ac_status" >&5 21469 (exit $ac_status); }; }; then 21470 ac_cv_type_struct_utmpx_ut_exit=yes 21471else 21472 echo "$as_me: failed program was:" >&5 21473cat conftest.$ac_ext >&5 21474ac_cv_type_struct_utmpx_ut_exit=no 21475fi 21476rm -f conftest.$ac_objext conftest.$ac_ext 21477fi 21478echo "$as_me:21478: result: $ac_cv_type_struct_utmpx_ut_exit" >&5 21479echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6 21480if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then 21481 21482cat >>confdefs.h <<\EOF 21483#define HAVE_STRUCT_UTMPX_UT_EXIT 1 21484EOF 21485 21486fi 21487 21488echo "$as_me:21488: checking for ut_syslen in struct utmpx" >&5 21489echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6 21490if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then 21491 echo $ECHO_N "(cached) $ECHO_C" >&6 21492else 21493 21494cat >conftest.$ac_ext <<_ACEOF 21495#line 21495 "configure" 21496#include "confdefs.h" 21497#include <utmpx.h> 21498int 21499main () 21500{ 21501struct utmpx x; x.ut_syslen; 21502 ; 21503 return 0; 21504} 21505_ACEOF 21506rm -f conftest.$ac_objext 21507if { (eval echo "$as_me:21507: \"$ac_compile\"") >&5 21508 (eval $ac_compile) 2>&5 21509 ac_status=$? 21510 echo "$as_me:21510: \$? = $ac_status" >&5 21511 (exit $ac_status); } && 21512 { ac_try='test -s conftest.$ac_objext' 21513 { (eval echo "$as_me:21513: \"$ac_try\"") >&5 21514 (eval $ac_try) 2>&5 21515 ac_status=$? 21516 echo "$as_me:21516: \$? = $ac_status" >&5 21517 (exit $ac_status); }; }; then 21518 ac_cv_type_struct_utmpx_ut_syslen=yes 21519else 21520 echo "$as_me: failed program was:" >&5 21521cat conftest.$ac_ext >&5 21522ac_cv_type_struct_utmpx_ut_syslen=no 21523fi 21524rm -f conftest.$ac_objext conftest.$ac_ext 21525fi 21526echo "$as_me:21526: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5 21527echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6 21528if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then 21529 21530cat >>confdefs.h <<\EOF 21531#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 21532EOF 21533 21534fi 21535 21536echo "$as_me:21536: checking for tm_gmtoff in struct tm" >&5 21537echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 21538if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 21539 echo $ECHO_N "(cached) $ECHO_C" >&6 21540else 21541 21542cat >conftest.$ac_ext <<_ACEOF 21543#line 21543 "configure" 21544#include "confdefs.h" 21545#include <time.h> 21546int 21547main () 21548{ 21549struct tm x; x.tm_gmtoff; 21550 ; 21551 return 0; 21552} 21553_ACEOF 21554rm -f conftest.$ac_objext 21555if { (eval echo "$as_me:21555: \"$ac_compile\"") >&5 21556 (eval $ac_compile) 2>&5 21557 ac_status=$? 21558 echo "$as_me:21558: \$? = $ac_status" >&5 21559 (exit $ac_status); } && 21560 { ac_try='test -s conftest.$ac_objext' 21561 { (eval echo "$as_me:21561: \"$ac_try\"") >&5 21562 (eval $ac_try) 2>&5 21563 ac_status=$? 21564 echo "$as_me:21564: \$? = $ac_status" >&5 21565 (exit $ac_status); }; }; then 21566 ac_cv_type_struct_tm_tm_gmtoff=yes 21567else 21568 echo "$as_me: failed program was:" >&5 21569cat conftest.$ac_ext >&5 21570ac_cv_type_struct_tm_tm_gmtoff=no 21571fi 21572rm -f conftest.$ac_objext conftest.$ac_ext 21573fi 21574echo "$as_me:21574: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 21575echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6 21576if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 21577 21578cat >>confdefs.h <<\EOF 21579#define HAVE_STRUCT_TM_TM_GMTOFF 1 21580EOF 21581 21582fi 21583 21584echo "$as_me:21584: checking for tm_zone in struct tm" >&5 21585echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 21586if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 21587 echo $ECHO_N "(cached) $ECHO_C" >&6 21588else 21589 21590cat >conftest.$ac_ext <<_ACEOF 21591#line 21591 "configure" 21592#include "confdefs.h" 21593#include <time.h> 21594int 21595main () 21596{ 21597struct tm x; x.tm_zone; 21598 ; 21599 return 0; 21600} 21601_ACEOF 21602rm -f conftest.$ac_objext 21603if { (eval echo "$as_me:21603: \"$ac_compile\"") >&5 21604 (eval $ac_compile) 2>&5 21605 ac_status=$? 21606 echo "$as_me:21606: \$? = $ac_status" >&5 21607 (exit $ac_status); } && 21608 { ac_try='test -s conftest.$ac_objext' 21609 { (eval echo "$as_me:21609: \"$ac_try\"") >&5 21610 (eval $ac_try) 2>&5 21611 ac_status=$? 21612 echo "$as_me:21612: \$? = $ac_status" >&5 21613 (exit $ac_status); }; }; then 21614 ac_cv_type_struct_tm_tm_zone=yes 21615else 21616 echo "$as_me: failed program was:" >&5 21617cat conftest.$ac_ext >&5 21618ac_cv_type_struct_tm_tm_zone=no 21619fi 21620rm -f conftest.$ac_objext conftest.$ac_ext 21621fi 21622echo "$as_me:21622: result: $ac_cv_type_struct_tm_tm_zone" >&5 21623echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6 21624if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 21625 21626cat >>confdefs.h <<\EOF 21627#define HAVE_STRUCT_TM_TM_ZONE 1 21628EOF 21629 21630fi 21631 21632echo "$as_me:21632: checking for timezone" >&5 21633echo $ECHO_N "checking for timezone... $ECHO_C" >&6 21634if test "${ac_cv_var_timezone+set}" = set; then 21635 echo $ECHO_N "(cached) $ECHO_C" >&6 21636else 21637 21638cat >conftest.$ac_ext <<_ACEOF 21639#line 21639 "configure" 21640#include "confdefs.h" 21641extern int timezone; 21642int foo() { return timezone; } 21643int 21644main () 21645{ 21646foo() 21647 ; 21648 return 0; 21649} 21650_ACEOF 21651rm -f conftest.$ac_objext conftest$ac_exeext 21652if { (eval echo "$as_me:21652: \"$ac_link\"") >&5 21653 (eval $ac_link) 2>&5 21654 ac_status=$? 21655 echo "$as_me:21655: \$? = $ac_status" >&5 21656 (exit $ac_status); } && 21657 { ac_try='test -s conftest$ac_exeext' 21658 { (eval echo "$as_me:21658: \"$ac_try\"") >&5 21659 (eval $ac_try) 2>&5 21660 ac_status=$? 21661 echo "$as_me:21661: \$? = $ac_status" >&5 21662 (exit $ac_status); }; }; then 21663 ac_cv_var_timezone=yes 21664else 21665 echo "$as_me: failed program was:" >&5 21666cat conftest.$ac_ext >&5 21667ac_cv_var_timezone=no 21668fi 21669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21670 21671fi 21672 21673ac_foo=`eval echo \\$ac_cv_var_timezone` 21674echo "$as_me:21674: result: $ac_foo" >&5 21675echo "${ECHO_T}$ac_foo" >&6 21676if test "$ac_foo" = yes; then 21677 21678cat >>confdefs.h <<EOF 21679#define HAVE_TIMEZONE 1 21680EOF 21681 21682echo "$as_me:21682: checking if timezone is properly declared" >&5 21683echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6 21684if test "${ac_cv_var_timezone_declaration+set}" = set; then 21685 echo $ECHO_N "(cached) $ECHO_C" >&6 21686else 21687 21688cat >conftest.$ac_ext <<_ACEOF 21689#line 21689 "configure" 21690#include "confdefs.h" 21691#include <time.h> 21692extern struct { int foo; } timezone; 21693int 21694main () 21695{ 21696timezone.foo = 1; 21697 ; 21698 return 0; 21699} 21700_ACEOF 21701rm -f conftest.$ac_objext 21702if { (eval echo "$as_me:21702: \"$ac_compile\"") >&5 21703 (eval $ac_compile) 2>&5 21704 ac_status=$? 21705 echo "$as_me:21705: \$? = $ac_status" >&5 21706 (exit $ac_status); } && 21707 { ac_try='test -s conftest.$ac_objext' 21708 { (eval echo "$as_me:21708: \"$ac_try\"") >&5 21709 (eval $ac_try) 2>&5 21710 ac_status=$? 21711 echo "$as_me:21711: \$? = $ac_status" >&5 21712 (exit $ac_status); }; }; then 21713 eval "ac_cv_var_timezone_declaration=no" 21714else 21715 echo "$as_me: failed program was:" >&5 21716cat conftest.$ac_ext >&5 21717eval "ac_cv_var_timezone_declaration=yes" 21718fi 21719rm -f conftest.$ac_objext conftest.$ac_ext 21720 21721fi 21722 21723echo "$as_me:21723: result: $ac_cv_var_timezone_declaration" >&5 21724echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6 21725if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 21726 21727cat >>confdefs.h <<\EOF 21728#define HAVE_TIMEZONE_DECLARATION 1 21729EOF 21730 21731fi 21732 21733fi 21734 21735cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 21736echo "$as_me:21736: checking for sa_family_t" >&5 21737echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 21738if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 21739 echo $ECHO_N "(cached) $ECHO_C" >&6 21740else 21741 cat >conftest.$ac_ext <<_ACEOF 21742#line 21742 "configure" 21743#include "confdefs.h" 21744#include <sys/types.h> 21745#if STDC_HEADERS 21746#include <stdlib.h> 21747#include <stddef.h> 21748#endif 21749#include <sys/socket.h> 21750int 21751main () 21752{ 21753sa_family_t foo; 21754 ; 21755 return 0; 21756} 21757_ACEOF 21758rm -f conftest.$ac_objext 21759if { (eval echo "$as_me:21759: \"$ac_compile\"") >&5 21760 (eval $ac_compile) 2>&5 21761 ac_status=$? 21762 echo "$as_me:21762: \$? = $ac_status" >&5 21763 (exit $ac_status); } && 21764 { ac_try='test -s conftest.$ac_objext' 21765 { (eval echo "$as_me:21765: \"$ac_try\"") >&5 21766 (eval $ac_try) 2>&5 21767 ac_status=$? 21768 echo "$as_me:21768: \$? = $ac_status" >&5 21769 (exit $ac_status); }; }; then 21770 eval "ac_cv_type_$cv=yes" 21771else 21772 echo "$as_me: failed program was:" >&5 21773cat conftest.$ac_ext >&5 21774eval "ac_cv_type_$cv=no" 21775fi 21776rm -f conftest.$ac_objext conftest.$ac_ext 21777fi 21778ac_foo=`eval echo \\$ac_cv_type_$cv` 21779echo "$as_me:21779: result: $ac_foo" >&5 21780echo "${ECHO_T}$ac_foo" >&6 21781if test "$ac_foo" = yes; then 21782 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 21783if false; then 21784 echo "$as_me:21784: checking for sa_family_t" >&5 21785echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 21786if test "${ac_cv_type_sa_family_t+set}" = set; then 21787 echo $ECHO_N "(cached) $ECHO_C" >&6 21788else 21789 cat >conftest.$ac_ext <<_ACEOF 21790#line 21790 "configure" 21791#include "confdefs.h" 21792$ac_includes_default 21793int 21794main () 21795{ 21796if ((sa_family_t *) 0) 21797 return 0; 21798if (sizeof (sa_family_t)) 21799 return 0; 21800 ; 21801 return 0; 21802} 21803_ACEOF 21804rm -f conftest.$ac_objext 21805if { (eval echo "$as_me:21805: \"$ac_compile\"") >&5 21806 (eval $ac_compile) 2>&5 21807 ac_status=$? 21808 echo "$as_me:21808: \$? = $ac_status" >&5 21809 (exit $ac_status); } && 21810 { ac_try='test -s conftest.$ac_objext' 21811 { (eval echo "$as_me:21811: \"$ac_try\"") >&5 21812 (eval $ac_try) 2>&5 21813 ac_status=$? 21814 echo "$as_me:21814: \$? = $ac_status" >&5 21815 (exit $ac_status); }; }; then 21816 ac_cv_type_sa_family_t=yes 21817else 21818 echo "$as_me: failed program was:" >&5 21819cat conftest.$ac_ext >&5 21820ac_cv_type_sa_family_t=no 21821fi 21822rm -f conftest.$ac_objext conftest.$ac_ext 21823fi 21824echo "$as_me:21824: result: $ac_cv_type_sa_family_t" >&5 21825echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6 21826if test $ac_cv_type_sa_family_t = yes; then 21827 21828cat >>confdefs.h <<EOF 21829#define HAVE_SA_FAMILY_T 1 21830EOF 21831 21832fi 21833 21834fi 21835 21836cat >>confdefs.h <<EOF 21837#define $ac_tr_hdr 1 21838EOF 21839 21840fi 21841 21842cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 21843echo "$as_me:21843: checking for socklen_t" >&5 21844echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 21845if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 21846 echo $ECHO_N "(cached) $ECHO_C" >&6 21847else 21848 cat >conftest.$ac_ext <<_ACEOF 21849#line 21849 "configure" 21850#include "confdefs.h" 21851#include <sys/types.h> 21852#if STDC_HEADERS 21853#include <stdlib.h> 21854#include <stddef.h> 21855#endif 21856#include <sys/socket.h> 21857int 21858main () 21859{ 21860socklen_t foo; 21861 ; 21862 return 0; 21863} 21864_ACEOF 21865rm -f conftest.$ac_objext 21866if { (eval echo "$as_me:21866: \"$ac_compile\"") >&5 21867 (eval $ac_compile) 2>&5 21868 ac_status=$? 21869 echo "$as_me:21869: \$? = $ac_status" >&5 21870 (exit $ac_status); } && 21871 { ac_try='test -s conftest.$ac_objext' 21872 { (eval echo "$as_me:21872: \"$ac_try\"") >&5 21873 (eval $ac_try) 2>&5 21874 ac_status=$? 21875 echo "$as_me:21875: \$? = $ac_status" >&5 21876 (exit $ac_status); }; }; then 21877 eval "ac_cv_type_$cv=yes" 21878else 21879 echo "$as_me: failed program was:" >&5 21880cat conftest.$ac_ext >&5 21881eval "ac_cv_type_$cv=no" 21882fi 21883rm -f conftest.$ac_objext conftest.$ac_ext 21884fi 21885ac_foo=`eval echo \\$ac_cv_type_$cv` 21886echo "$as_me:21886: result: $ac_foo" >&5 21887echo "${ECHO_T}$ac_foo" >&6 21888if test "$ac_foo" = yes; then 21889 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 21890if false; then 21891 echo "$as_me:21891: checking for socklen_t" >&5 21892echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 21893if test "${ac_cv_type_socklen_t+set}" = set; then 21894 echo $ECHO_N "(cached) $ECHO_C" >&6 21895else 21896 cat >conftest.$ac_ext <<_ACEOF 21897#line 21897 "configure" 21898#include "confdefs.h" 21899$ac_includes_default 21900int 21901main () 21902{ 21903if ((socklen_t *) 0) 21904 return 0; 21905if (sizeof (socklen_t)) 21906 return 0; 21907 ; 21908 return 0; 21909} 21910_ACEOF 21911rm -f conftest.$ac_objext 21912if { (eval echo "$as_me:21912: \"$ac_compile\"") >&5 21913 (eval $ac_compile) 2>&5 21914 ac_status=$? 21915 echo "$as_me:21915: \$? = $ac_status" >&5 21916 (exit $ac_status); } && 21917 { ac_try='test -s conftest.$ac_objext' 21918 { (eval echo "$as_me:21918: \"$ac_try\"") >&5 21919 (eval $ac_try) 2>&5 21920 ac_status=$? 21921 echo "$as_me:21921: \$? = $ac_status" >&5 21922 (exit $ac_status); }; }; then 21923 ac_cv_type_socklen_t=yes 21924else 21925 echo "$as_me: failed program was:" >&5 21926cat conftest.$ac_ext >&5 21927ac_cv_type_socklen_t=no 21928fi 21929rm -f conftest.$ac_objext conftest.$ac_ext 21930fi 21931echo "$as_me:21931: result: $ac_cv_type_socklen_t" >&5 21932echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 21933if test $ac_cv_type_socklen_t = yes; then 21934 21935cat >>confdefs.h <<EOF 21936#define HAVE_SOCKLEN_T 1 21937EOF 21938 21939fi 21940 21941fi 21942 21943cat >>confdefs.h <<EOF 21944#define $ac_tr_hdr 1 21945EOF 21946 21947fi 21948 21949cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 21950echo "$as_me:21950: checking for struct sockaddr" >&5 21951echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 21952if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 21953 echo $ECHO_N "(cached) $ECHO_C" >&6 21954else 21955 cat >conftest.$ac_ext <<_ACEOF 21956#line 21956 "configure" 21957#include "confdefs.h" 21958#include <sys/types.h> 21959#if STDC_HEADERS 21960#include <stdlib.h> 21961#include <stddef.h> 21962#endif 21963#include <sys/socket.h> 21964int 21965main () 21966{ 21967struct sockaddr foo; 21968 ; 21969 return 0; 21970} 21971_ACEOF 21972rm -f conftest.$ac_objext 21973if { (eval echo "$as_me:21973: \"$ac_compile\"") >&5 21974 (eval $ac_compile) 2>&5 21975 ac_status=$? 21976 echo "$as_me:21976: \$? = $ac_status" >&5 21977 (exit $ac_status); } && 21978 { ac_try='test -s conftest.$ac_objext' 21979 { (eval echo "$as_me:21979: \"$ac_try\"") >&5 21980 (eval $ac_try) 2>&5 21981 ac_status=$? 21982 echo "$as_me:21982: \$? = $ac_status" >&5 21983 (exit $ac_status); }; }; then 21984 eval "ac_cv_type_$cv=yes" 21985else 21986 echo "$as_me: failed program was:" >&5 21987cat conftest.$ac_ext >&5 21988eval "ac_cv_type_$cv=no" 21989fi 21990rm -f conftest.$ac_objext conftest.$ac_ext 21991fi 21992ac_foo=`eval echo \\$ac_cv_type_$cv` 21993echo "$as_me:21993: result: $ac_foo" >&5 21994echo "${ECHO_T}$ac_foo" >&6 21995if test "$ac_foo" = yes; then 21996 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 21997if false; then 21998 echo "$as_me:21998: checking for struct sockaddr" >&5 21999echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 22000if test "${ac_cv_type_struct_sockaddr+set}" = set; then 22001 echo $ECHO_N "(cached) $ECHO_C" >&6 22002else 22003 cat >conftest.$ac_ext <<_ACEOF 22004#line 22004 "configure" 22005#include "confdefs.h" 22006$ac_includes_default 22007int 22008main () 22009{ 22010if ((struct sockaddr *) 0) 22011 return 0; 22012if (sizeof (struct sockaddr)) 22013 return 0; 22014 ; 22015 return 0; 22016} 22017_ACEOF 22018rm -f conftest.$ac_objext 22019if { (eval echo "$as_me:22019: \"$ac_compile\"") >&5 22020 (eval $ac_compile) 2>&5 22021 ac_status=$? 22022 echo "$as_me:22022: \$? = $ac_status" >&5 22023 (exit $ac_status); } && 22024 { ac_try='test -s conftest.$ac_objext' 22025 { (eval echo "$as_me:22025: \"$ac_try\"") >&5 22026 (eval $ac_try) 2>&5 22027 ac_status=$? 22028 echo "$as_me:22028: \$? = $ac_status" >&5 22029 (exit $ac_status); }; }; then 22030 ac_cv_type_struct_sockaddr=yes 22031else 22032 echo "$as_me: failed program was:" >&5 22033cat conftest.$ac_ext >&5 22034ac_cv_type_struct_sockaddr=no 22035fi 22036rm -f conftest.$ac_objext conftest.$ac_ext 22037fi 22038echo "$as_me:22038: result: $ac_cv_type_struct_sockaddr" >&5 22039echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6 22040if test $ac_cv_type_struct_sockaddr = yes; then 22041 22042cat >>confdefs.h <<EOF 22043#define HAVE_STRUCT_SOCKADDR 1 22044EOF 22045 22046fi 22047 22048fi 22049 22050cat >>confdefs.h <<EOF 22051#define $ac_tr_hdr 1 22052EOF 22053 22054fi 22055 22056cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 22057echo "$as_me:22057: checking for struct sockaddr_storage" >&5 22058echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 22059if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 22060 echo $ECHO_N "(cached) $ECHO_C" >&6 22061else 22062 cat >conftest.$ac_ext <<_ACEOF 22063#line 22063 "configure" 22064#include "confdefs.h" 22065#include <sys/types.h> 22066#if STDC_HEADERS 22067#include <stdlib.h> 22068#include <stddef.h> 22069#endif 22070#include <sys/socket.h> 22071int 22072main () 22073{ 22074struct sockaddr_storage foo; 22075 ; 22076 return 0; 22077} 22078_ACEOF 22079rm -f conftest.$ac_objext 22080if { (eval echo "$as_me:22080: \"$ac_compile\"") >&5 22081 (eval $ac_compile) 2>&5 22082 ac_status=$? 22083 echo "$as_me:22083: \$? = $ac_status" >&5 22084 (exit $ac_status); } && 22085 { ac_try='test -s conftest.$ac_objext' 22086 { (eval echo "$as_me:22086: \"$ac_try\"") >&5 22087 (eval $ac_try) 2>&5 22088 ac_status=$? 22089 echo "$as_me:22089: \$? = $ac_status" >&5 22090 (exit $ac_status); }; }; then 22091 eval "ac_cv_type_$cv=yes" 22092else 22093 echo "$as_me: failed program was:" >&5 22094cat conftest.$ac_ext >&5 22095eval "ac_cv_type_$cv=no" 22096fi 22097rm -f conftest.$ac_objext conftest.$ac_ext 22098fi 22099ac_foo=`eval echo \\$ac_cv_type_$cv` 22100echo "$as_me:22100: result: $ac_foo" >&5 22101echo "${ECHO_T}$ac_foo" >&6 22102if test "$ac_foo" = yes; then 22103 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22104if false; then 22105 echo "$as_me:22105: checking for struct sockaddr_storage" >&5 22106echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 22107if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 22108 echo $ECHO_N "(cached) $ECHO_C" >&6 22109else 22110 cat >conftest.$ac_ext <<_ACEOF 22111#line 22111 "configure" 22112#include "confdefs.h" 22113$ac_includes_default 22114int 22115main () 22116{ 22117if ((struct sockaddr_storage *) 0) 22118 return 0; 22119if (sizeof (struct sockaddr_storage)) 22120 return 0; 22121 ; 22122 return 0; 22123} 22124_ACEOF 22125rm -f conftest.$ac_objext 22126if { (eval echo "$as_me:22126: \"$ac_compile\"") >&5 22127 (eval $ac_compile) 2>&5 22128 ac_status=$? 22129 echo "$as_me:22129: \$? = $ac_status" >&5 22130 (exit $ac_status); } && 22131 { ac_try='test -s conftest.$ac_objext' 22132 { (eval echo "$as_me:22132: \"$ac_try\"") >&5 22133 (eval $ac_try) 2>&5 22134 ac_status=$? 22135 echo "$as_me:22135: \$? = $ac_status" >&5 22136 (exit $ac_status); }; }; then 22137 ac_cv_type_struct_sockaddr_storage=yes 22138else 22139 echo "$as_me: failed program was:" >&5 22140cat conftest.$ac_ext >&5 22141ac_cv_type_struct_sockaddr_storage=no 22142fi 22143rm -f conftest.$ac_objext conftest.$ac_ext 22144fi 22145echo "$as_me:22145: result: $ac_cv_type_struct_sockaddr_storage" >&5 22146echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 22147if test $ac_cv_type_struct_sockaddr_storage = yes; then 22148 22149cat >>confdefs.h <<EOF 22150#define HAVE_STRUCT_SOCKADDR_STORAGE 1 22151EOF 22152 22153fi 22154 22155fi 22156 22157cat >>confdefs.h <<EOF 22158#define $ac_tr_hdr 1 22159EOF 22160 22161fi 22162 22163cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 22164echo "$as_me:22164: checking for struct addrinfo" >&5 22165echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 22166if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 22167 echo $ECHO_N "(cached) $ECHO_C" >&6 22168else 22169 cat >conftest.$ac_ext <<_ACEOF 22170#line 22170 "configure" 22171#include "confdefs.h" 22172#include <sys/types.h> 22173#if STDC_HEADERS 22174#include <stdlib.h> 22175#include <stddef.h> 22176#endif 22177#include <netdb.h> 22178int 22179main () 22180{ 22181struct addrinfo foo; 22182 ; 22183 return 0; 22184} 22185_ACEOF 22186rm -f conftest.$ac_objext 22187if { (eval echo "$as_me:22187: \"$ac_compile\"") >&5 22188 (eval $ac_compile) 2>&5 22189 ac_status=$? 22190 echo "$as_me:22190: \$? = $ac_status" >&5 22191 (exit $ac_status); } && 22192 { ac_try='test -s conftest.$ac_objext' 22193 { (eval echo "$as_me:22193: \"$ac_try\"") >&5 22194 (eval $ac_try) 2>&5 22195 ac_status=$? 22196 echo "$as_me:22196: \$? = $ac_status" >&5 22197 (exit $ac_status); }; }; then 22198 eval "ac_cv_type_$cv=yes" 22199else 22200 echo "$as_me: failed program was:" >&5 22201cat conftest.$ac_ext >&5 22202eval "ac_cv_type_$cv=no" 22203fi 22204rm -f conftest.$ac_objext conftest.$ac_ext 22205fi 22206ac_foo=`eval echo \\$ac_cv_type_$cv` 22207echo "$as_me:22207: result: $ac_foo" >&5 22208echo "${ECHO_T}$ac_foo" >&6 22209if test "$ac_foo" = yes; then 22210 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 22211if false; then 22212 echo "$as_me:22212: checking for struct addrinfo" >&5 22213echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 22214if test "${ac_cv_type_struct_addrinfo+set}" = set; then 22215 echo $ECHO_N "(cached) $ECHO_C" >&6 22216else 22217 cat >conftest.$ac_ext <<_ACEOF 22218#line 22218 "configure" 22219#include "confdefs.h" 22220$ac_includes_default 22221int 22222main () 22223{ 22224if ((struct addrinfo *) 0) 22225 return 0; 22226if (sizeof (struct addrinfo)) 22227 return 0; 22228 ; 22229 return 0; 22230} 22231_ACEOF 22232rm -f conftest.$ac_objext 22233if { (eval echo "$as_me:22233: \"$ac_compile\"") >&5 22234 (eval $ac_compile) 2>&5 22235 ac_status=$? 22236 echo "$as_me:22236: \$? = $ac_status" >&5 22237 (exit $ac_status); } && 22238 { ac_try='test -s conftest.$ac_objext' 22239 { (eval echo "$as_me:22239: \"$ac_try\"") >&5 22240 (eval $ac_try) 2>&5 22241 ac_status=$? 22242 echo "$as_me:22242: \$? = $ac_status" >&5 22243 (exit $ac_status); }; }; then 22244 ac_cv_type_struct_addrinfo=yes 22245else 22246 echo "$as_me: failed program was:" >&5 22247cat conftest.$ac_ext >&5 22248ac_cv_type_struct_addrinfo=no 22249fi 22250rm -f conftest.$ac_objext conftest.$ac_ext 22251fi 22252echo "$as_me:22252: result: $ac_cv_type_struct_addrinfo" >&5 22253echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6 22254if test $ac_cv_type_struct_addrinfo = yes; then 22255 22256cat >>confdefs.h <<EOF 22257#define HAVE_STRUCT_ADDRINFO 1 22258EOF 22259 22260fi 22261 22262fi 22263 22264cat >>confdefs.h <<EOF 22265#define $ac_tr_hdr 1 22266EOF 22267 22268fi 22269 22270echo "$as_me:22270: checking for struct winsize" >&5 22271echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6 22272if test "${ac_cv_struct_winsize+set}" = set; then 22273 echo $ECHO_N "(cached) $ECHO_C" >&6 22274else 22275 22276ac_cv_struct_winsize=no 22277for i in sys/termios.h sys/ioctl.h; do 22278cat >conftest.$ac_ext <<_ACEOF 22279#line 22279 "configure" 22280#include "confdefs.h" 22281#include <$i> 22282 22283_ACEOF 22284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22285 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 22286 ac_cv_struct_winsize=yes; break 22287fi 22288rm -f conftest* 22289done 22290 22291fi 22292 22293if test "$ac_cv_struct_winsize" = "yes"; then 22294 22295cat >>confdefs.h <<\EOF 22296#define HAVE_STRUCT_WINSIZE 1 22297EOF 22298 22299fi 22300echo "$as_me:22300: result: $ac_cv_struct_winsize" >&5 22301echo "${ECHO_T}$ac_cv_struct_winsize" >&6 22302cat >conftest.$ac_ext <<_ACEOF 22303#line 22303 "configure" 22304#include "confdefs.h" 22305#include <termios.h> 22306 22307_ACEOF 22308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22309 egrep "ws_xpixel" >/dev/null 2>&1; then 22310 22311cat >>confdefs.h <<\EOF 22312#define HAVE_WS_XPIXEL 1 22313EOF 22314 22315fi 22316rm -f conftest* 22317 22318cat >conftest.$ac_ext <<_ACEOF 22319#line 22319 "configure" 22320#include "confdefs.h" 22321#include <termios.h> 22322 22323_ACEOF 22324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22325 egrep "ws_ypixel" >/dev/null 2>&1; then 22326 22327cat >>confdefs.h <<\EOF 22328#define HAVE_WS_YPIXEL 1 22329EOF 22330 22331fi 22332rm -f conftest* 22333 22334echo "$as_me:22334: checking for struct spwd" >&5 22335echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6 22336if test "${ac_cv_struct_spwd+set}" = set; then 22337 echo $ECHO_N "(cached) $ECHO_C" >&6 22338else 22339 22340cat >conftest.$ac_ext <<_ACEOF 22341#line 22341 "configure" 22342#include "confdefs.h" 22343#include <pwd.h> 22344#ifdef HAVE_SHADOW_H 22345#include <shadow.h> 22346#endif 22347int 22348main () 22349{ 22350struct spwd foo; 22351 ; 22352 return 0; 22353} 22354_ACEOF 22355rm -f conftest.$ac_objext 22356if { (eval echo "$as_me:22356: \"$ac_compile\"") >&5 22357 (eval $ac_compile) 2>&5 22358 ac_status=$? 22359 echo "$as_me:22359: \$? = $ac_status" >&5 22360 (exit $ac_status); } && 22361 { ac_try='test -s conftest.$ac_objext' 22362 { (eval echo "$as_me:22362: \"$ac_try\"") >&5 22363 (eval $ac_try) 2>&5 22364 ac_status=$? 22365 echo "$as_me:22365: \$? = $ac_status" >&5 22366 (exit $ac_status); }; }; then 22367 ac_cv_struct_spwd=yes 22368else 22369 echo "$as_me: failed program was:" >&5 22370cat conftest.$ac_ext >&5 22371ac_cv_struct_spwd=no 22372fi 22373rm -f conftest.$ac_objext conftest.$ac_ext 22374 22375fi 22376 22377echo "$as_me:22377: result: $ac_cv_struct_spwd" >&5 22378echo "${ECHO_T}$ac_cv_struct_spwd" >&6 22379 22380if test "$ac_cv_struct_spwd" = "yes"; then 22381 22382cat >>confdefs.h <<\EOF 22383#define HAVE_STRUCT_SPWD 1 22384EOF 22385 22386fi 22387 22388echo "$as_me:22388: checking for sa_len in struct sockaddr" >&5 22389echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 22390if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 22391 echo $ECHO_N "(cached) $ECHO_C" >&6 22392else 22393 22394cat >conftest.$ac_ext <<_ACEOF 22395#line 22395 "configure" 22396#include "confdefs.h" 22397#include <sys/types.h> 22398#include <sys/socket.h> 22399int 22400main () 22401{ 22402struct sockaddr x; x.sa_len; 22403 ; 22404 return 0; 22405} 22406_ACEOF 22407rm -f conftest.$ac_objext 22408if { (eval echo "$as_me:22408: \"$ac_compile\"") >&5 22409 (eval $ac_compile) 2>&5 22410 ac_status=$? 22411 echo "$as_me:22411: \$? = $ac_status" >&5 22412 (exit $ac_status); } && 22413 { ac_try='test -s conftest.$ac_objext' 22414 { (eval echo "$as_me:22414: \"$ac_try\"") >&5 22415 (eval $ac_try) 2>&5 22416 ac_status=$? 22417 echo "$as_me:22417: \$? = $ac_status" >&5 22418 (exit $ac_status); }; }; then 22419 ac_cv_type_struct_sockaddr_sa_len=yes 22420else 22421 echo "$as_me: failed program was:" >&5 22422cat conftest.$ac_ext >&5 22423ac_cv_type_struct_sockaddr_sa_len=no 22424fi 22425rm -f conftest.$ac_objext conftest.$ac_ext 22426fi 22427echo "$as_me:22427: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 22428echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6 22429if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 22430 22431cat >>confdefs.h <<\EOF 22432#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 22433EOF 22434 22435fi 22436 22437echo "$as_me:22437: checking for int8_t" >&5 22438echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 22439if test "${ac_cv_type_int8_t+set}" = set; then 22440 echo $ECHO_N "(cached) $ECHO_C" >&6 22441else 22442 cat >conftest.$ac_ext <<_ACEOF 22443#line 22443 "configure" 22444#include "confdefs.h" 22445 22446#ifdef HAVE_INTTYPES_H 22447#include <inttypes.h> 22448#endif 22449#ifdef HAVE_SYS_TYPES_H 22450#include <sys/types.h> 22451#endif 22452#ifdef HAVE_SYS_BITYPES_H 22453#include <sys/bitypes.h> 22454#endif 22455#ifdef HAVE_BIND_BITYPES_H 22456#include <bind/bitypes.h> 22457#endif 22458#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22459#include <netinet/in6_machtypes.h> 22460#endif 22461 22462int 22463main () 22464{ 22465if ((int8_t *) 0) 22466 return 0; 22467if (sizeof (int8_t)) 22468 return 0; 22469 ; 22470 return 0; 22471} 22472_ACEOF 22473rm -f conftest.$ac_objext 22474if { (eval echo "$as_me:22474: \"$ac_compile\"") >&5 22475 (eval $ac_compile) 2>&5 22476 ac_status=$? 22477 echo "$as_me:22477: \$? = $ac_status" >&5 22478 (exit $ac_status); } && 22479 { ac_try='test -s conftest.$ac_objext' 22480 { (eval echo "$as_me:22480: \"$ac_try\"") >&5 22481 (eval $ac_try) 2>&5 22482 ac_status=$? 22483 echo "$as_me:22483: \$? = $ac_status" >&5 22484 (exit $ac_status); }; }; then 22485 ac_cv_type_int8_t=yes 22486else 22487 echo "$as_me: failed program was:" >&5 22488cat conftest.$ac_ext >&5 22489ac_cv_type_int8_t=no 22490fi 22491rm -f conftest.$ac_objext conftest.$ac_ext 22492fi 22493echo "$as_me:22493: result: $ac_cv_type_int8_t" >&5 22494echo "${ECHO_T}$ac_cv_type_int8_t" >&6 22495if test $ac_cv_type_int8_t = yes; then 22496 22497cat >>confdefs.h <<EOF 22498#define HAVE_INT8_T 1 22499EOF 22500 22501fi 22502echo "$as_me:22502: checking for int16_t" >&5 22503echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 22504if test "${ac_cv_type_int16_t+set}" = set; then 22505 echo $ECHO_N "(cached) $ECHO_C" >&6 22506else 22507 cat >conftest.$ac_ext <<_ACEOF 22508#line 22508 "configure" 22509#include "confdefs.h" 22510 22511#ifdef HAVE_INTTYPES_H 22512#include <inttypes.h> 22513#endif 22514#ifdef HAVE_SYS_TYPES_H 22515#include <sys/types.h> 22516#endif 22517#ifdef HAVE_SYS_BITYPES_H 22518#include <sys/bitypes.h> 22519#endif 22520#ifdef HAVE_BIND_BITYPES_H 22521#include <bind/bitypes.h> 22522#endif 22523#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22524#include <netinet/in6_machtypes.h> 22525#endif 22526 22527int 22528main () 22529{ 22530if ((int16_t *) 0) 22531 return 0; 22532if (sizeof (int16_t)) 22533 return 0; 22534 ; 22535 return 0; 22536} 22537_ACEOF 22538rm -f conftest.$ac_objext 22539if { (eval echo "$as_me:22539: \"$ac_compile\"") >&5 22540 (eval $ac_compile) 2>&5 22541 ac_status=$? 22542 echo "$as_me:22542: \$? = $ac_status" >&5 22543 (exit $ac_status); } && 22544 { ac_try='test -s conftest.$ac_objext' 22545 { (eval echo "$as_me:22545: \"$ac_try\"") >&5 22546 (eval $ac_try) 2>&5 22547 ac_status=$? 22548 echo "$as_me:22548: \$? = $ac_status" >&5 22549 (exit $ac_status); }; }; then 22550 ac_cv_type_int16_t=yes 22551else 22552 echo "$as_me: failed program was:" >&5 22553cat conftest.$ac_ext >&5 22554ac_cv_type_int16_t=no 22555fi 22556rm -f conftest.$ac_objext conftest.$ac_ext 22557fi 22558echo "$as_me:22558: result: $ac_cv_type_int16_t" >&5 22559echo "${ECHO_T}$ac_cv_type_int16_t" >&6 22560if test $ac_cv_type_int16_t = yes; then 22561 22562cat >>confdefs.h <<EOF 22563#define HAVE_INT16_T 1 22564EOF 22565 22566fi 22567echo "$as_me:22567: checking for int32_t" >&5 22568echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 22569if test "${ac_cv_type_int32_t+set}" = set; then 22570 echo $ECHO_N "(cached) $ECHO_C" >&6 22571else 22572 cat >conftest.$ac_ext <<_ACEOF 22573#line 22573 "configure" 22574#include "confdefs.h" 22575 22576#ifdef HAVE_INTTYPES_H 22577#include <inttypes.h> 22578#endif 22579#ifdef HAVE_SYS_TYPES_H 22580#include <sys/types.h> 22581#endif 22582#ifdef HAVE_SYS_BITYPES_H 22583#include <sys/bitypes.h> 22584#endif 22585#ifdef HAVE_BIND_BITYPES_H 22586#include <bind/bitypes.h> 22587#endif 22588#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22589#include <netinet/in6_machtypes.h> 22590#endif 22591 22592int 22593main () 22594{ 22595if ((int32_t *) 0) 22596 return 0; 22597if (sizeof (int32_t)) 22598 return 0; 22599 ; 22600 return 0; 22601} 22602_ACEOF 22603rm -f conftest.$ac_objext 22604if { (eval echo "$as_me:22604: \"$ac_compile\"") >&5 22605 (eval $ac_compile) 2>&5 22606 ac_status=$? 22607 echo "$as_me:22607: \$? = $ac_status" >&5 22608 (exit $ac_status); } && 22609 { ac_try='test -s conftest.$ac_objext' 22610 { (eval echo "$as_me:22610: \"$ac_try\"") >&5 22611 (eval $ac_try) 2>&5 22612 ac_status=$? 22613 echo "$as_me:22613: \$? = $ac_status" >&5 22614 (exit $ac_status); }; }; then 22615 ac_cv_type_int32_t=yes 22616else 22617 echo "$as_me: failed program was:" >&5 22618cat conftest.$ac_ext >&5 22619ac_cv_type_int32_t=no 22620fi 22621rm -f conftest.$ac_objext conftest.$ac_ext 22622fi 22623echo "$as_me:22623: result: $ac_cv_type_int32_t" >&5 22624echo "${ECHO_T}$ac_cv_type_int32_t" >&6 22625if test $ac_cv_type_int32_t = yes; then 22626 22627cat >>confdefs.h <<EOF 22628#define HAVE_INT32_T 1 22629EOF 22630 22631fi 22632echo "$as_me:22632: checking for int64_t" >&5 22633echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 22634if test "${ac_cv_type_int64_t+set}" = set; then 22635 echo $ECHO_N "(cached) $ECHO_C" >&6 22636else 22637 cat >conftest.$ac_ext <<_ACEOF 22638#line 22638 "configure" 22639#include "confdefs.h" 22640 22641#ifdef HAVE_INTTYPES_H 22642#include <inttypes.h> 22643#endif 22644#ifdef HAVE_SYS_TYPES_H 22645#include <sys/types.h> 22646#endif 22647#ifdef HAVE_SYS_BITYPES_H 22648#include <sys/bitypes.h> 22649#endif 22650#ifdef HAVE_BIND_BITYPES_H 22651#include <bind/bitypes.h> 22652#endif 22653#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22654#include <netinet/in6_machtypes.h> 22655#endif 22656 22657int 22658main () 22659{ 22660if ((int64_t *) 0) 22661 return 0; 22662if (sizeof (int64_t)) 22663 return 0; 22664 ; 22665 return 0; 22666} 22667_ACEOF 22668rm -f conftest.$ac_objext 22669if { (eval echo "$as_me:22669: \"$ac_compile\"") >&5 22670 (eval $ac_compile) 2>&5 22671 ac_status=$? 22672 echo "$as_me:22672: \$? = $ac_status" >&5 22673 (exit $ac_status); } && 22674 { ac_try='test -s conftest.$ac_objext' 22675 { (eval echo "$as_me:22675: \"$ac_try\"") >&5 22676 (eval $ac_try) 2>&5 22677 ac_status=$? 22678 echo "$as_me:22678: \$? = $ac_status" >&5 22679 (exit $ac_status); }; }; then 22680 ac_cv_type_int64_t=yes 22681else 22682 echo "$as_me: failed program was:" >&5 22683cat conftest.$ac_ext >&5 22684ac_cv_type_int64_t=no 22685fi 22686rm -f conftest.$ac_objext conftest.$ac_ext 22687fi 22688echo "$as_me:22688: result: $ac_cv_type_int64_t" >&5 22689echo "${ECHO_T}$ac_cv_type_int64_t" >&6 22690if test $ac_cv_type_int64_t = yes; then 22691 22692cat >>confdefs.h <<EOF 22693#define HAVE_INT64_T 1 22694EOF 22695 22696fi 22697echo "$as_me:22697: checking for u_int8_t" >&5 22698echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 22699if test "${ac_cv_type_u_int8_t+set}" = set; then 22700 echo $ECHO_N "(cached) $ECHO_C" >&6 22701else 22702 cat >conftest.$ac_ext <<_ACEOF 22703#line 22703 "configure" 22704#include "confdefs.h" 22705 22706#ifdef HAVE_INTTYPES_H 22707#include <inttypes.h> 22708#endif 22709#ifdef HAVE_SYS_TYPES_H 22710#include <sys/types.h> 22711#endif 22712#ifdef HAVE_SYS_BITYPES_H 22713#include <sys/bitypes.h> 22714#endif 22715#ifdef HAVE_BIND_BITYPES_H 22716#include <bind/bitypes.h> 22717#endif 22718#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22719#include <netinet/in6_machtypes.h> 22720#endif 22721 22722int 22723main () 22724{ 22725if ((u_int8_t *) 0) 22726 return 0; 22727if (sizeof (u_int8_t)) 22728 return 0; 22729 ; 22730 return 0; 22731} 22732_ACEOF 22733rm -f conftest.$ac_objext 22734if { (eval echo "$as_me:22734: \"$ac_compile\"") >&5 22735 (eval $ac_compile) 2>&5 22736 ac_status=$? 22737 echo "$as_me:22737: \$? = $ac_status" >&5 22738 (exit $ac_status); } && 22739 { ac_try='test -s conftest.$ac_objext' 22740 { (eval echo "$as_me:22740: \"$ac_try\"") >&5 22741 (eval $ac_try) 2>&5 22742 ac_status=$? 22743 echo "$as_me:22743: \$? = $ac_status" >&5 22744 (exit $ac_status); }; }; then 22745 ac_cv_type_u_int8_t=yes 22746else 22747 echo "$as_me: failed program was:" >&5 22748cat conftest.$ac_ext >&5 22749ac_cv_type_u_int8_t=no 22750fi 22751rm -f conftest.$ac_objext conftest.$ac_ext 22752fi 22753echo "$as_me:22753: result: $ac_cv_type_u_int8_t" >&5 22754echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 22755if test $ac_cv_type_u_int8_t = yes; then 22756 22757cat >>confdefs.h <<EOF 22758#define HAVE_U_INT8_T 1 22759EOF 22760 22761fi 22762echo "$as_me:22762: checking for u_int16_t" >&5 22763echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 22764if test "${ac_cv_type_u_int16_t+set}" = set; then 22765 echo $ECHO_N "(cached) $ECHO_C" >&6 22766else 22767 cat >conftest.$ac_ext <<_ACEOF 22768#line 22768 "configure" 22769#include "confdefs.h" 22770 22771#ifdef HAVE_INTTYPES_H 22772#include <inttypes.h> 22773#endif 22774#ifdef HAVE_SYS_TYPES_H 22775#include <sys/types.h> 22776#endif 22777#ifdef HAVE_SYS_BITYPES_H 22778#include <sys/bitypes.h> 22779#endif 22780#ifdef HAVE_BIND_BITYPES_H 22781#include <bind/bitypes.h> 22782#endif 22783#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22784#include <netinet/in6_machtypes.h> 22785#endif 22786 22787int 22788main () 22789{ 22790if ((u_int16_t *) 0) 22791 return 0; 22792if (sizeof (u_int16_t)) 22793 return 0; 22794 ; 22795 return 0; 22796} 22797_ACEOF 22798rm -f conftest.$ac_objext 22799if { (eval echo "$as_me:22799: \"$ac_compile\"") >&5 22800 (eval $ac_compile) 2>&5 22801 ac_status=$? 22802 echo "$as_me:22802: \$? = $ac_status" >&5 22803 (exit $ac_status); } && 22804 { ac_try='test -s conftest.$ac_objext' 22805 { (eval echo "$as_me:22805: \"$ac_try\"") >&5 22806 (eval $ac_try) 2>&5 22807 ac_status=$? 22808 echo "$as_me:22808: \$? = $ac_status" >&5 22809 (exit $ac_status); }; }; then 22810 ac_cv_type_u_int16_t=yes 22811else 22812 echo "$as_me: failed program was:" >&5 22813cat conftest.$ac_ext >&5 22814ac_cv_type_u_int16_t=no 22815fi 22816rm -f conftest.$ac_objext conftest.$ac_ext 22817fi 22818echo "$as_me:22818: result: $ac_cv_type_u_int16_t" >&5 22819echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 22820if test $ac_cv_type_u_int16_t = yes; then 22821 22822cat >>confdefs.h <<EOF 22823#define HAVE_U_INT16_T 1 22824EOF 22825 22826fi 22827echo "$as_me:22827: checking for u_int32_t" >&5 22828echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 22829if test "${ac_cv_type_u_int32_t+set}" = set; then 22830 echo $ECHO_N "(cached) $ECHO_C" >&6 22831else 22832 cat >conftest.$ac_ext <<_ACEOF 22833#line 22833 "configure" 22834#include "confdefs.h" 22835 22836#ifdef HAVE_INTTYPES_H 22837#include <inttypes.h> 22838#endif 22839#ifdef HAVE_SYS_TYPES_H 22840#include <sys/types.h> 22841#endif 22842#ifdef HAVE_SYS_BITYPES_H 22843#include <sys/bitypes.h> 22844#endif 22845#ifdef HAVE_BIND_BITYPES_H 22846#include <bind/bitypes.h> 22847#endif 22848#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22849#include <netinet/in6_machtypes.h> 22850#endif 22851 22852int 22853main () 22854{ 22855if ((u_int32_t *) 0) 22856 return 0; 22857if (sizeof (u_int32_t)) 22858 return 0; 22859 ; 22860 return 0; 22861} 22862_ACEOF 22863rm -f conftest.$ac_objext 22864if { (eval echo "$as_me:22864: \"$ac_compile\"") >&5 22865 (eval $ac_compile) 2>&5 22866 ac_status=$? 22867 echo "$as_me:22867: \$? = $ac_status" >&5 22868 (exit $ac_status); } && 22869 { ac_try='test -s conftest.$ac_objext' 22870 { (eval echo "$as_me:22870: \"$ac_try\"") >&5 22871 (eval $ac_try) 2>&5 22872 ac_status=$? 22873 echo "$as_me:22873: \$? = $ac_status" >&5 22874 (exit $ac_status); }; }; then 22875 ac_cv_type_u_int32_t=yes 22876else 22877 echo "$as_me: failed program was:" >&5 22878cat conftest.$ac_ext >&5 22879ac_cv_type_u_int32_t=no 22880fi 22881rm -f conftest.$ac_objext conftest.$ac_ext 22882fi 22883echo "$as_me:22883: result: $ac_cv_type_u_int32_t" >&5 22884echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 22885if test $ac_cv_type_u_int32_t = yes; then 22886 22887cat >>confdefs.h <<EOF 22888#define HAVE_U_INT32_T 1 22889EOF 22890 22891fi 22892echo "$as_me:22892: checking for u_int64_t" >&5 22893echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 22894if test "${ac_cv_type_u_int64_t+set}" = set; then 22895 echo $ECHO_N "(cached) $ECHO_C" >&6 22896else 22897 cat >conftest.$ac_ext <<_ACEOF 22898#line 22898 "configure" 22899#include "confdefs.h" 22900 22901#ifdef HAVE_INTTYPES_H 22902#include <inttypes.h> 22903#endif 22904#ifdef HAVE_SYS_TYPES_H 22905#include <sys/types.h> 22906#endif 22907#ifdef HAVE_SYS_BITYPES_H 22908#include <sys/bitypes.h> 22909#endif 22910#ifdef HAVE_BIND_BITYPES_H 22911#include <bind/bitypes.h> 22912#endif 22913#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22914#include <netinet/in6_machtypes.h> 22915#endif 22916 22917int 22918main () 22919{ 22920if ((u_int64_t *) 0) 22921 return 0; 22922if (sizeof (u_int64_t)) 22923 return 0; 22924 ; 22925 return 0; 22926} 22927_ACEOF 22928rm -f conftest.$ac_objext 22929if { (eval echo "$as_me:22929: \"$ac_compile\"") >&5 22930 (eval $ac_compile) 2>&5 22931 ac_status=$? 22932 echo "$as_me:22932: \$? = $ac_status" >&5 22933 (exit $ac_status); } && 22934 { ac_try='test -s conftest.$ac_objext' 22935 { (eval echo "$as_me:22935: \"$ac_try\"") >&5 22936 (eval $ac_try) 2>&5 22937 ac_status=$? 22938 echo "$as_me:22938: \$? = $ac_status" >&5 22939 (exit $ac_status); }; }; then 22940 ac_cv_type_u_int64_t=yes 22941else 22942 echo "$as_me: failed program was:" >&5 22943cat conftest.$ac_ext >&5 22944ac_cv_type_u_int64_t=no 22945fi 22946rm -f conftest.$ac_objext conftest.$ac_ext 22947fi 22948echo "$as_me:22948: result: $ac_cv_type_u_int64_t" >&5 22949echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 22950if test $ac_cv_type_u_int64_t = yes; then 22951 22952cat >>confdefs.h <<EOF 22953#define HAVE_U_INT64_T 1 22954EOF 22955 22956fi 22957echo "$as_me:22957: checking for uint8_t" >&5 22958echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 22959if test "${ac_cv_type_uint8_t+set}" = set; then 22960 echo $ECHO_N "(cached) $ECHO_C" >&6 22961else 22962 cat >conftest.$ac_ext <<_ACEOF 22963#line 22963 "configure" 22964#include "confdefs.h" 22965 22966#ifdef HAVE_INTTYPES_H 22967#include <inttypes.h> 22968#endif 22969#ifdef HAVE_SYS_TYPES_H 22970#include <sys/types.h> 22971#endif 22972#ifdef HAVE_SYS_BITYPES_H 22973#include <sys/bitypes.h> 22974#endif 22975#ifdef HAVE_BIND_BITYPES_H 22976#include <bind/bitypes.h> 22977#endif 22978#ifdef HAVE_NETINET_IN6_MACHTYPES_H 22979#include <netinet/in6_machtypes.h> 22980#endif 22981 22982int 22983main () 22984{ 22985if ((uint8_t *) 0) 22986 return 0; 22987if (sizeof (uint8_t)) 22988 return 0; 22989 ; 22990 return 0; 22991} 22992_ACEOF 22993rm -f conftest.$ac_objext 22994if { (eval echo "$as_me:22994: \"$ac_compile\"") >&5 22995 (eval $ac_compile) 2>&5 22996 ac_status=$? 22997 echo "$as_me:22997: \$? = $ac_status" >&5 22998 (exit $ac_status); } && 22999 { ac_try='test -s conftest.$ac_objext' 23000 { (eval echo "$as_me:23000: \"$ac_try\"") >&5 23001 (eval $ac_try) 2>&5 23002 ac_status=$? 23003 echo "$as_me:23003: \$? = $ac_status" >&5 23004 (exit $ac_status); }; }; then 23005 ac_cv_type_uint8_t=yes 23006else 23007 echo "$as_me: failed program was:" >&5 23008cat conftest.$ac_ext >&5 23009ac_cv_type_uint8_t=no 23010fi 23011rm -f conftest.$ac_objext conftest.$ac_ext 23012fi 23013echo "$as_me:23013: result: $ac_cv_type_uint8_t" >&5 23014echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 23015if test $ac_cv_type_uint8_t = yes; then 23016 23017cat >>confdefs.h <<EOF 23018#define HAVE_UINT8_T 1 23019EOF 23020 23021fi 23022echo "$as_me:23022: checking for uint16_t" >&5 23023echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 23024if test "${ac_cv_type_uint16_t+set}" = set; then 23025 echo $ECHO_N "(cached) $ECHO_C" >&6 23026else 23027 cat >conftest.$ac_ext <<_ACEOF 23028#line 23028 "configure" 23029#include "confdefs.h" 23030 23031#ifdef HAVE_INTTYPES_H 23032#include <inttypes.h> 23033#endif 23034#ifdef HAVE_SYS_TYPES_H 23035#include <sys/types.h> 23036#endif 23037#ifdef HAVE_SYS_BITYPES_H 23038#include <sys/bitypes.h> 23039#endif 23040#ifdef HAVE_BIND_BITYPES_H 23041#include <bind/bitypes.h> 23042#endif 23043#ifdef HAVE_NETINET_IN6_MACHTYPES_H 23044#include <netinet/in6_machtypes.h> 23045#endif 23046 23047int 23048main () 23049{ 23050if ((uint16_t *) 0) 23051 return 0; 23052if (sizeof (uint16_t)) 23053 return 0; 23054 ; 23055 return 0; 23056} 23057_ACEOF 23058rm -f conftest.$ac_objext 23059if { (eval echo "$as_me:23059: \"$ac_compile\"") >&5 23060 (eval $ac_compile) 2>&5 23061 ac_status=$? 23062 echo "$as_me:23062: \$? = $ac_status" >&5 23063 (exit $ac_status); } && 23064 { ac_try='test -s conftest.$ac_objext' 23065 { (eval echo "$as_me:23065: \"$ac_try\"") >&5 23066 (eval $ac_try) 2>&5 23067 ac_status=$? 23068 echo "$as_me:23068: \$? = $ac_status" >&5 23069 (exit $ac_status); }; }; then 23070 ac_cv_type_uint16_t=yes 23071else 23072 echo "$as_me: failed program was:" >&5 23073cat conftest.$ac_ext >&5 23074ac_cv_type_uint16_t=no 23075fi 23076rm -f conftest.$ac_objext conftest.$ac_ext 23077fi 23078echo "$as_me:23078: result: $ac_cv_type_uint16_t" >&5 23079echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 23080if test $ac_cv_type_uint16_t = yes; then 23081 23082cat >>confdefs.h <<EOF 23083#define HAVE_UINT16_T 1 23084EOF 23085 23086fi 23087echo "$as_me:23087: checking for uint32_t" >&5 23088echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 23089if test "${ac_cv_type_uint32_t+set}" = set; then 23090 echo $ECHO_N "(cached) $ECHO_C" >&6 23091else 23092 cat >conftest.$ac_ext <<_ACEOF 23093#line 23093 "configure" 23094#include "confdefs.h" 23095 23096#ifdef HAVE_INTTYPES_H 23097#include <inttypes.h> 23098#endif 23099#ifdef HAVE_SYS_TYPES_H 23100#include <sys/types.h> 23101#endif 23102#ifdef HAVE_SYS_BITYPES_H 23103#include <sys/bitypes.h> 23104#endif 23105#ifdef HAVE_BIND_BITYPES_H 23106#include <bind/bitypes.h> 23107#endif 23108#ifdef HAVE_NETINET_IN6_MACHTYPES_H 23109#include <netinet/in6_machtypes.h> 23110#endif 23111 23112int 23113main () 23114{ 23115if ((uint32_t *) 0) 23116 return 0; 23117if (sizeof (uint32_t)) 23118 return 0; 23119 ; 23120 return 0; 23121} 23122_ACEOF 23123rm -f conftest.$ac_objext 23124if { (eval echo "$as_me:23124: \"$ac_compile\"") >&5 23125 (eval $ac_compile) 2>&5 23126 ac_status=$? 23127 echo "$as_me:23127: \$? = $ac_status" >&5 23128 (exit $ac_status); } && 23129 { ac_try='test -s conftest.$ac_objext' 23130 { (eval echo "$as_me:23130: \"$ac_try\"") >&5 23131 (eval $ac_try) 2>&5 23132 ac_status=$? 23133 echo "$as_me:23133: \$? = $ac_status" >&5 23134 (exit $ac_status); }; }; then 23135 ac_cv_type_uint32_t=yes 23136else 23137 echo "$as_me: failed program was:" >&5 23138cat conftest.$ac_ext >&5 23139ac_cv_type_uint32_t=no 23140fi 23141rm -f conftest.$ac_objext conftest.$ac_ext 23142fi 23143echo "$as_me:23143: result: $ac_cv_type_uint32_t" >&5 23144echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 23145if test $ac_cv_type_uint32_t = yes; then 23146 23147cat >>confdefs.h <<EOF 23148#define HAVE_UINT32_T 1 23149EOF 23150 23151fi 23152echo "$as_me:23152: checking for uint64_t" >&5 23153echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 23154if test "${ac_cv_type_uint64_t+set}" = set; then 23155 echo $ECHO_N "(cached) $ECHO_C" >&6 23156else 23157 cat >conftest.$ac_ext <<_ACEOF 23158#line 23158 "configure" 23159#include "confdefs.h" 23160 23161#ifdef HAVE_INTTYPES_H 23162#include <inttypes.h> 23163#endif 23164#ifdef HAVE_SYS_TYPES_H 23165#include <sys/types.h> 23166#endif 23167#ifdef HAVE_SYS_BITYPES_H 23168#include <sys/bitypes.h> 23169#endif 23170#ifdef HAVE_BIND_BITYPES_H 23171#include <bind/bitypes.h> 23172#endif 23173#ifdef HAVE_NETINET_IN6_MACHTYPES_H 23174#include <netinet/in6_machtypes.h> 23175#endif 23176 23177int 23178main () 23179{ 23180if ((uint64_t *) 0) 23181 return 0; 23182if (sizeof (uint64_t)) 23183 return 0; 23184 ; 23185 return 0; 23186} 23187_ACEOF 23188rm -f conftest.$ac_objext 23189if { (eval echo "$as_me:23189: \"$ac_compile\"") >&5 23190 (eval $ac_compile) 2>&5 23191 ac_status=$? 23192 echo "$as_me:23192: \$? = $ac_status" >&5 23193 (exit $ac_status); } && 23194 { ac_try='test -s conftest.$ac_objext' 23195 { (eval echo "$as_me:23195: \"$ac_try\"") >&5 23196 (eval $ac_try) 2>&5 23197 ac_status=$? 23198 echo "$as_me:23198: \$? = $ac_status" >&5 23199 (exit $ac_status); }; }; then 23200 ac_cv_type_uint64_t=yes 23201else 23202 echo "$as_me: failed program was:" >&5 23203cat conftest.$ac_ext >&5 23204ac_cv_type_uint64_t=no 23205fi 23206rm -f conftest.$ac_objext conftest.$ac_ext 23207fi 23208echo "$as_me:23208: result: $ac_cv_type_uint64_t" >&5 23209echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 23210if test $ac_cv_type_uint64_t = yes; then 23211 23212cat >>confdefs.h <<EOF 23213#define HAVE_UINT64_T 1 23214EOF 23215 23216fi 23217 23218crypto_lib=unknown 23219 23220# Check whether --with-openssl or --without-openssl was given. 23221if test "${with_openssl+set}" = set; then 23222 withval="$with_openssl" 23223 23224fi; 23225 23226# Check whether --with-openssl-lib or --without-openssl-lib was given. 23227if test "${with_openssl_lib+set}" = set; then 23228 withval="$with_openssl_lib" 23229 if test "$withval" = "yes" -o "$withval" = "no"; then 23230 { { echo "$as_me:23230: error: No argument for --with-openssl-lib" >&5 23231echo "$as_me: error: No argument for --with-openssl-lib" >&2;} 23232 { (exit 1); exit 1; }; } 23233elif test "X$with_openssl" = "X"; then 23234 with_openssl=yes 23235fi 23236fi; 23237 23238# Check whether --with-openssl-include or --without-openssl-include was given. 23239if test "${with_openssl_include+set}" = set; then 23240 withval="$with_openssl_include" 23241 if test "$withval" = "yes" -o "$withval" = "no"; then 23242 { { echo "$as_me:23242: error: No argument for --with-openssl-include" >&5 23243echo "$as_me: error: No argument for --with-openssl-include" >&2;} 23244 { (exit 1); exit 1; }; } 23245elif test "X$with_openssl" = "X"; then 23246 with_openssl=yes 23247fi 23248fi; 23249 23250case "$with_openssl" in 23251yes) ;; 23252no) ;; 23253"") ;; 23254*) if test "$with_openssl_include" = ""; then 23255 with_openssl_include="$with_openssl/include" 23256 fi 23257 if test "$with_openssl_lib" = ""; then 23258 with_openssl_lib="$with_openssl/lib$abilibdirext" 23259 fi 23260 ;; 23261esac 23262 23263DIR_des= 23264 23265echo "$as_me:23265: checking for crypto library" >&5 23266echo $ECHO_N "checking for crypto library... $ECHO_C" >&6 23267 23268if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then 23269 23270 save_CPPFLAGS="$CPPFLAGS" 23271 save_LIBS="$LIBS" 23272 INCLUDE_des= 23273 LIB_des= 23274 if test "$with_openssl_include" != ""; then 23275 INCLUDE_des="-I${with_openssl}/include" 23276 fi 23277 if test "$with_openssl_lib" != ""; then 23278 LIB_des="-L${with_openssl}/lib" 23279 fi 23280 CPPFLAGS="${INCLUDE_des} ${CPPFLAGS}" 23281 LIB_des="${LIB_des} -lcrypto" 23282 LIB_des_a="$LIB_des" 23283 LIB_des_so="$LIB_des" 23284 LIB_des_appl="$LIB_des" 23285 LIBS="${LIBS} ${LIB_des}" 23286 cat >conftest.$ac_ext <<_ACEOF 23287#line 23287 "configure" 23288#include "confdefs.h" 23289 23290 #include <openssl/md4.h> 23291 #include <openssl/md5.h> 23292 #include <openssl/sha.h> 23293 #include <openssl/des.h> 23294 #include <openssl/rc4.h> 23295 23296int 23297main () 23298{ 23299 23300 MD4_CTX md4; 23301 MD5_CTX md5; 23302 SHA_CTX sha1; 23303 23304 MD4_Init(&md4); 23305 MD5_Init(&md5); 23306 SHA1_Init(&sha1); 23307 23308 des_cbc_encrypt(0, 0, 0, 0, 0, 0); 23309 RC4(0, 0, 0, 0); 23310 23311 ; 23312 return 0; 23313} 23314_ACEOF 23315rm -f conftest.$ac_objext conftest$ac_exeext 23316if { (eval echo "$as_me:23316: \"$ac_link\"") >&5 23317 (eval $ac_link) 2>&5 23318 ac_status=$? 23319 echo "$as_me:23319: \$? = $ac_status" >&5 23320 (exit $ac_status); } && 23321 { ac_try='test -s conftest$ac_exeext' 23322 { (eval echo "$as_me:23322: \"$ac_try\"") >&5 23323 (eval $ac_try) 2>&5 23324 ac_status=$? 23325 echo "$as_me:23325: \$? = $ac_status" >&5 23326 (exit $ac_status); }; }; then 23327 23328 crypto_lib=libcrypto 23329 23330cat >>confdefs.h <<\EOF 23331#define HAVE_OPENSSL 1 23332EOF 23333 23334 echo "$as_me:23334: result: libcrypto" >&5 23335echo "${ECHO_T}libcrypto" >&6 23336else 23337 echo "$as_me: failed program was:" >&5 23338cat conftest.$ac_ext >&5 23339fi 23340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23341 CPPFLAGS="$save_CPPFLAGS" 23342 LIBS="$save_LIBS" 23343fi 23344 23345if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then 23346 23347 save_CPPFLAGS="$CPPFLAGS" 23348 save_LIBS="$LIBS" 23349 INCLUDE_des="${INCLUDE_krb4}" 23350 LIB_des= 23351 if test "$krb4_libdir"; then 23352 LIB_des="-L${krb4_libdir}" 23353 fi 23354 LIB_des="${LIB_des} -ldes" 23355 CPPFLAGS="${CPPFLAGS} ${INCLUDE_des}" 23356 LIBS="${LIBS} ${LIB_des}" 23357 LIB_des_a="$LIB_des" 23358 LIB_des_so="$LIB_des" 23359 LIB_des_appl="$LIB_des" 23360 LIBS="${LIBS} ${LIB_des}" 23361 cat >conftest.$ac_ext <<_ACEOF 23362#line 23362 "configure" 23363#include "confdefs.h" 23364 23365 #undef KRB5 /* makes md4.h et al unhappy */ 23366 #define KRB4 23367 #include <md4.h> 23368 #include <md5.h> 23369 #include <sha.h> 23370 #include <des.h> 23371 #include <rc4.h> 23372 23373int 23374main () 23375{ 23376 23377 MD4_CTX md4; 23378 MD5_CTX md5; 23379 SHA_CTX sha1; 23380 23381 MD4_Init(&md4); 23382 MD5_Init(&md5); 23383 SHA1_Init(&sha1); 23384 23385 des_cbc_encrypt(0, 0, 0, 0, 0, 0); 23386 RC4(0, 0, 0, 0); 23387 23388 ; 23389 return 0; 23390} 23391_ACEOF 23392rm -f conftest.$ac_objext conftest$ac_exeext 23393if { (eval echo "$as_me:23393: \"$ac_link\"") >&5 23394 (eval $ac_link) 2>&5 23395 ac_status=$? 23396 echo "$as_me:23396: \$? = $ac_status" >&5 23397 (exit $ac_status); } && 23398 { ac_try='test -s conftest$ac_exeext' 23399 { (eval echo "$as_me:23399: \"$ac_try\"") >&5 23400 (eval $ac_try) 2>&5 23401 ac_status=$? 23402 echo "$as_me:23402: \$? = $ac_status" >&5 23403 (exit $ac_status); }; }; then 23404 crypto_lib=krb4; echo "$as_me:23404: result: krb4's libdes" >&5 23405echo "${ECHO_T}krb4's libdes" >&6 23406else 23407 echo "$as_me: failed program was:" >&5 23408cat conftest.$ac_ext >&5 23409fi 23410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23411 CPPFLAGS="$save_CPPFLAGS" 23412 LIBS="$save_LIBS" 23413fi 23414 23415if test "$crypto_lib" = "unknown"; then 23416 23417 DIR_des='des' 23418 LIB_des='$(top_builddir)/lib/des/libdes.la' 23419 LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a' 23420 LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so' 23421 LIB_des_appl="-ldes" 23422 23423 echo "$as_me:23423: result: included libdes" >&5 23424echo "${ECHO_T}included libdes" >&6 23425 23426fi 23427 23428echo "$as_me:23428: checking for el_init" >&5 23429echo $ECHO_N "checking for el_init... $ECHO_C" >&6 23430if test "${ac_cv_funclib_el_init+set}" = set; then 23431 echo $ECHO_N "(cached) $ECHO_C" >&6 23432else 23433 23434if eval "test \"\$ac_cv_func_el_init\" != yes" ; then 23435 ac_save_LIBS="$LIBS" 23436 for ac_lib in "" edit; do 23437 case "$ac_lib" in 23438 "") ;; 23439 yes) ac_lib="" ;; 23440 no) continue ;; 23441 -l*) ;; 23442 *) ac_lib="-l$ac_lib" ;; 23443 esac 23444 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS" 23445 cat >conftest.$ac_ext <<_ACEOF 23446#line 23446 "configure" 23447#include "confdefs.h" 23448 23449int 23450main () 23451{ 23452el_init() 23453 ; 23454 return 0; 23455} 23456_ACEOF 23457rm -f conftest.$ac_objext conftest$ac_exeext 23458if { (eval echo "$as_me:23458: \"$ac_link\"") >&5 23459 (eval $ac_link) 2>&5 23460 ac_status=$? 23461 echo "$as_me:23461: \$? = $ac_status" >&5 23462 (exit $ac_status); } && 23463 { ac_try='test -s conftest$ac_exeext' 23464 { (eval echo "$as_me:23464: \"$ac_try\"") >&5 23465 (eval $ac_try) 2>&5 23466 ac_status=$? 23467 echo "$as_me:23467: \$? = $ac_status" >&5 23468 (exit $ac_status); }; }; then 23469 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break 23470else 23471 echo "$as_me: failed program was:" >&5 23472cat conftest.$ac_ext >&5 23473fi 23474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23475 done 23476 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}" 23477 LIBS="$ac_save_LIBS" 23478fi 23479 23480fi 23481 23482eval "ac_res=\$ac_cv_funclib_el_init" 23483 23484if false; then 23485 23486for ac_func in el_init 23487do 23488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23489echo "$as_me:23489: checking for $ac_func" >&5 23490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23491if eval "test \"\${$as_ac_var+set}\" = set"; then 23492 echo $ECHO_N "(cached) $ECHO_C" >&6 23493else 23494 cat >conftest.$ac_ext <<_ACEOF 23495#line 23495 "configure" 23496#include "confdefs.h" 23497/* System header to define __stub macros and hopefully few prototypes, 23498 which can conflict with char $ac_func (); below. */ 23499#include <assert.h> 23500/* Override any gcc2 internal prototype to avoid an error. */ 23501#ifdef __cplusplus 23502extern "C" 23503#endif 23504/* We use char because int might match the return type of a gcc2 23505 builtin and then its argument prototype would still apply. */ 23506char $ac_func (); 23507char (*f) (); 23508 23509int 23510main () 23511{ 23512/* The GNU C library defines this for functions which it implements 23513 to always fail with ENOSYS. Some functions are actually named 23514 something starting with __ and the normal name is an alias. */ 23515#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23516choke me 23517#else 23518f = $ac_func; 23519#endif 23520 23521 ; 23522 return 0; 23523} 23524_ACEOF 23525rm -f conftest.$ac_objext conftest$ac_exeext 23526if { (eval echo "$as_me:23526: \"$ac_link\"") >&5 23527 (eval $ac_link) 2>&5 23528 ac_status=$? 23529 echo "$as_me:23529: \$? = $ac_status" >&5 23530 (exit $ac_status); } && 23531 { ac_try='test -s conftest$ac_exeext' 23532 { (eval echo "$as_me:23532: \"$ac_try\"") >&5 23533 (eval $ac_try) 2>&5 23534 ac_status=$? 23535 echo "$as_me:23535: \$? = $ac_status" >&5 23536 (exit $ac_status); }; }; then 23537 eval "$as_ac_var=yes" 23538else 23539 echo "$as_me: failed program was:" >&5 23540cat conftest.$ac_ext >&5 23541eval "$as_ac_var=no" 23542fi 23543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23544fi 23545echo "$as_me:23545: result: `eval echo '${'$as_ac_var'}'`" >&5 23546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23547if test `eval echo '${'$as_ac_var'}'` = yes; then 23548 cat >>confdefs.h <<EOF 23549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23550EOF 23551 23552fi 23553done 23554 23555fi 23556# el_init 23557eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23558eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 23559eval "LIB_el_init=$ac_res" 23560 23561case "$ac_res" in 23562 yes) 23563 eval "ac_cv_func_el_init=yes" 23564 eval "LIB_el_init=" 23565 cat >>confdefs.h <<EOF 23566#define $ac_tr_func 1 23567EOF 23568 23569 echo "$as_me:23569: result: yes" >&5 23570echo "${ECHO_T}yes" >&6 23571 ;; 23572 no) 23573 eval "ac_cv_func_el_init=no" 23574 eval "LIB_el_init=" 23575 echo "$as_me:23575: result: no" >&5 23576echo "${ECHO_T}no" >&6 23577 ;; 23578 *) 23579 eval "ac_cv_func_el_init=yes" 23580 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 23581 cat >>confdefs.h <<EOF 23582#define $ac_tr_func 1 23583EOF 23584 23585 cat >>confdefs.h <<EOF 23586#define $ac_tr_lib 1 23587EOF 23588 23589 echo "$as_me:23589: result: yes, in $ac_res" >&5 23590echo "${ECHO_T}yes, in $ac_res" >&6 23591 ;; 23592esac 23593 23594if test "$ac_cv_func_el_init" = yes ; then 23595 echo "$as_me:23595: checking for four argument el_init" >&5 23596echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6 23597if test "${ac_cv_func_el_init_four+set}" = set; then 23598 echo $ECHO_N "(cached) $ECHO_C" >&6 23599else 23600 23601 cat >conftest.$ac_ext <<_ACEOF 23602#line 23602 "configure" 23603#include "confdefs.h" 23604#include <stdio.h> 23605 #include <histedit.h> 23606int 23607main () 23608{ 23609el_init("", NULL, NULL, NULL); 23610 ; 23611 return 0; 23612} 23613_ACEOF 23614rm -f conftest.$ac_objext 23615if { (eval echo "$as_me:23615: \"$ac_compile\"") >&5 23616 (eval $ac_compile) 2>&5 23617 ac_status=$? 23618 echo "$as_me:23618: \$? = $ac_status" >&5 23619 (exit $ac_status); } && 23620 { ac_try='test -s conftest.$ac_objext' 23621 { (eval echo "$as_me:23621: \"$ac_try\"") >&5 23622 (eval $ac_try) 2>&5 23623 ac_status=$? 23624 echo "$as_me:23624: \$? = $ac_status" >&5 23625 (exit $ac_status); }; }; then 23626 ac_cv_func_el_init_four=yes 23627else 23628 echo "$as_me: failed program was:" >&5 23629cat conftest.$ac_ext >&5 23630ac_cv_func_el_init_four=no 23631fi 23632rm -f conftest.$ac_objext conftest.$ac_ext 23633fi 23634echo "$as_me:23634: result: $ac_cv_func_el_init_four" >&5 23635echo "${ECHO_T}$ac_cv_func_el_init_four" >&6 23636 if test "$ac_cv_func_el_init_four" = yes; then 23637 23638cat >>confdefs.h <<\EOF 23639#define HAVE_FOUR_VALUED_EL_INIT 1 23640EOF 23641 23642 fi 23643fi 23644 23645ac_foo=no 23646if test "$with_readline" = yes; then 23647 : 23648elif test "$ac_cv_func_readline" = yes; then 23649 : 23650elif test "$ac_cv_func_el_init" = yes; then 23651 ac_foo=yes 23652 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la $LIB_el_init" 23653else 23654 LIB_readline='$(top_builddir)/lib/editline/libeditline.la' 23655fi 23656 23657if test "$ac_foo" = yes; then 23658 el_compat_TRUE= 23659 el_compat_FALSE='#' 23660else 23661 el_compat_TRUE='#' 23662 el_compat_FALSE= 23663fi 23664if test "$readline_libdir"; then 23665 LIB_readline="-rpath $readline_libdir $LIB_readline" 23666fi 23667LIB_readline="$LIB_readline \$(LIB_tgetent)" 23668 23669cat >>confdefs.h <<\EOF 23670#define HAVE_READLINE 1 23671EOF 23672 23673cat >>confdefs.h <<\EOF 23674#define AUTHENTICATION 1 23675EOF 23676 23677cat >>confdefs.h <<\EOF 23678#define ENCRYPTION 1 23679EOF 23680 23681cat >>confdefs.h <<\EOF 23682#define DES_ENCRYPTION 1 23683EOF 23684 23685cat >>confdefs.h <<\EOF 23686#define DIAGNOSTICS 1 23687EOF 23688 23689cat >>confdefs.h <<\EOF 23690#define OLD_ENVIRON 1 23691EOF 23692if false; then 23693 23694cat >>confdefs.h <<\EOF 23695#define ENV_HACK 1 23696EOF 23697 23698fi 23699 23700# Simple test for streamspty, based on the existance of getmsg(), alas 23701# this breaks on SunOS4 which have streams but BSD-like ptys 23702# 23703# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 23704 23705echo "$as_me:23705: checking for getmsg" >&5 23706echo $ECHO_N "checking for getmsg... $ECHO_C" >&6 23707if test "${ac_cv_func_getmsg+set}" = set; then 23708 echo $ECHO_N "(cached) $ECHO_C" >&6 23709else 23710 cat >conftest.$ac_ext <<_ACEOF 23711#line 23711 "configure" 23712#include "confdefs.h" 23713/* System header to define __stub macros and hopefully few prototypes, 23714 which can conflict with char getmsg (); below. */ 23715#include <assert.h> 23716/* Override any gcc2 internal prototype to avoid an error. */ 23717#ifdef __cplusplus 23718extern "C" 23719#endif 23720/* We use char because int might match the return type of a gcc2 23721 builtin and then its argument prototype would still apply. */ 23722char getmsg (); 23723char (*f) (); 23724 23725int 23726main () 23727{ 23728/* The GNU C library defines this for functions which it implements 23729 to always fail with ENOSYS. Some functions are actually named 23730 something starting with __ and the normal name is an alias. */ 23731#if defined (__stub_getmsg) || defined (__stub___getmsg) 23732choke me 23733#else 23734f = getmsg; 23735#endif 23736 23737 ; 23738 return 0; 23739} 23740_ACEOF 23741rm -f conftest.$ac_objext conftest$ac_exeext 23742if { (eval echo "$as_me:23742: \"$ac_link\"") >&5 23743 (eval $ac_link) 2>&5 23744 ac_status=$? 23745 echo "$as_me:23745: \$? = $ac_status" >&5 23746 (exit $ac_status); } && 23747 { ac_try='test -s conftest$ac_exeext' 23748 { (eval echo "$as_me:23748: \"$ac_try\"") >&5 23749 (eval $ac_try) 2>&5 23750 ac_status=$? 23751 echo "$as_me:23751: \$? = $ac_status" >&5 23752 (exit $ac_status); }; }; then 23753 ac_cv_func_getmsg=yes 23754else 23755 echo "$as_me: failed program was:" >&5 23756cat conftest.$ac_ext >&5 23757ac_cv_func_getmsg=no 23758fi 23759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23760fi 23761echo "$as_me:23761: result: $ac_cv_func_getmsg" >&5 23762echo "${ECHO_T}$ac_cv_func_getmsg" >&6 23763 23764if test "$ac_cv_func_getmsg" = "yes"; then 23765 23766echo "$as_me:23766: checking for working getmsg" >&5 23767echo $ECHO_N "checking for working getmsg... $ECHO_C" >&6 23768if test "${ac_cv_func_getmsg_work+set}" = set; then 23769 echo $ECHO_N "(cached) $ECHO_C" >&6 23770else 23771 if test "$cross_compiling" = yes; then 23772 ac_cv_func_getmsg_work=no 23773else 23774 cat >conftest.$ac_ext <<_ACEOF 23775#line 23775 "configure" 23776#include "confdefs.h" 23777 23778#include <stdio.h> 23779#include <errno.h> 23780 23781int main() 23782{ 23783 int ret; 23784 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 23785 if(ret < 0 && errno == ENOSYS) 23786 return 1; 23787 return 0; 23788} 23789 23790_ACEOF 23791rm -f conftest$ac_exeext 23792if { (eval echo "$as_me:23792: \"$ac_link\"") >&5 23793 (eval $ac_link) 2>&5 23794 ac_status=$? 23795 echo "$as_me:23795: \$? = $ac_status" >&5 23796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23797 { (eval echo "$as_me:23797: \"$ac_try\"") >&5 23798 (eval $ac_try) 2>&5 23799 ac_status=$? 23800 echo "$as_me:23800: \$? = $ac_status" >&5 23801 (exit $ac_status); }; }; then 23802 ac_cv_func_getmsg_work=yes 23803else 23804 echo "$as_me: program exited with status $ac_status" >&5 23805echo "$as_me: failed program was:" >&5 23806cat conftest.$ac_ext >&5 23807ac_cv_func_getmsg_work=no 23808fi 23809rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23810fi 23811fi 23812echo "$as_me:23812: result: $ac_cv_func_getmsg_work" >&5 23813echo "${ECHO_T}$ac_cv_func_getmsg_work" >&6 23814test "$ac_cv_func_getmsg_work" = "yes" && 23815 23816cat >>confdefs.h <<\EOF 23817#define HAVE_GETMSG 1 23818EOF 23819 23820fi 23821 23822if test "$ac_cv_func_getmsg_work" = yes; then 23823echo "$as_me:23823: checking for streamspty" >&5 23824echo $ECHO_N "checking for streamspty... $ECHO_C" >&6 23825case "$host" in 23826*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 23827 krb_cv_sys_streamspty=no 23828 ;; 23829*) 23830 krb_cv_sys_streamspty=yes 23831 ;; 23832esac 23833echo "$as_me:23833: result: $krb_cv_sys_streamspty" >&5 23834echo "${ECHO_T}$krb_cv_sys_streamspty" >&6 23835fi 23836if test "$krb_cv_sys_streamspty" = yes; then 23837 23838cat >>confdefs.h <<\EOF 23839#define STREAMSPTY 1 23840EOF 23841 23842fi 23843 23844# Extract the first word of "compile_et", so it can be a program name with args. 23845set dummy compile_et; ac_word=$2 23846echo "$as_me:23846: checking for $ac_word" >&5 23847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23848if test "${ac_cv_prog_COMPILE_ET+set}" = set; then 23849 echo $ECHO_N "(cached) $ECHO_C" >&6 23850else 23851 if test -n "$COMPILE_ET"; then 23852 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test. 23853else 23854 ac_save_IFS=$IFS; IFS=$ac_path_separator 23855ac_dummy="$PATH" 23856for ac_dir in $ac_dummy; do 23857 IFS=$ac_save_IFS 23858 test -z "$ac_dir" && ac_dir=. 23859 $as_executable_p "$ac_dir/$ac_word" || continue 23860ac_cv_prog_COMPILE_ET="compile_et" 23861echo "$as_me:23861: found $ac_dir/$ac_word" >&5 23862break 23863done 23864 23865fi 23866fi 23867COMPILE_ET=$ac_cv_prog_COMPILE_ET 23868if test -n "$COMPILE_ET"; then 23869 echo "$as_me:23869: result: $COMPILE_ET" >&5 23870echo "${ECHO_T}$COMPILE_ET" >&6 23871else 23872 echo "$as_me:23872: result: no" >&5 23873echo "${ECHO_T}no" >&6 23874fi 23875 23876krb_cv_compile_et="no" 23877if test "${COMPILE_ET}" = "compile_et"; then 23878 23879echo "$as_me:23879: checking whether compile_et has the features we need" >&5 23880echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6 23881cat > conftest_et.et <<'EOF' 23882error_table conf 23883prefix CONFTEST 23884index 1 23885error_code CODE1, "CODE1" 23886index 128 23887error_code CODE2, "CODE2" 23888end 23889EOF 23890if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then 23891 save_CPPFLAGS="${save_CPPFLAGS}" 23892 if test -d "/usr/include/et"; then 23893 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" 23894 fi 23895 if test "$cross_compiling" = yes; then 23896 { { echo "$as_me:23896: error: cannot run test program while cross compiling" >&5 23897echo "$as_me: error: cannot run test program while cross compiling" >&2;} 23898 { (exit 1); exit 1; }; } 23899else 23900 cat >conftest.$ac_ext <<_ACEOF 23901#line 23901 "configure" 23902#include "confdefs.h" 23903 23904#include <com_err.h> 23905#include <string.h> 23906#include "conftest_et.h" 23907int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;} 23908 23909_ACEOF 23910rm -f conftest$ac_exeext 23911if { (eval echo "$as_me:23911: \"$ac_link\"") >&5 23912 (eval $ac_link) 2>&5 23913 ac_status=$? 23914 echo "$as_me:23914: \$? = $ac_status" >&5 23915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23916 { (eval echo "$as_me:23916: \"$ac_try\"") >&5 23917 (eval $ac_try) 2>&5 23918 ac_status=$? 23919 echo "$as_me:23919: \$? = $ac_status" >&5 23920 (exit $ac_status); }; }; then 23921 krb_cv_compile_et="yes" 23922else 23923 echo "$as_me: program exited with status $ac_status" >&5 23924echo "$as_me: failed program was:" >&5 23925cat conftest.$ac_ext >&5 23926CPPFLAGS="${save_CPPFLAGS}" 23927fi 23928rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23929fi 23930fi 23931echo "$as_me:23931: result: ${krb_cv_compile_et}" >&5 23932echo "${ECHO_T}${krb_cv_compile_et}" >&6 23933rm -fr conftest* 23934fi 23935 23936if test "${krb_cv_compile_et}" = "yes"; then 23937 krb_cv_save_LIBS="${LIBS}" 23938 LIBS="${LIBS} -lcom_err" 23939 echo "$as_me:23939: checking for com_err" >&5 23940echo $ECHO_N "checking for com_err... $ECHO_C" >&6 23941 cat >conftest.$ac_ext <<_ACEOF 23942#line 23942 "configure" 23943#include "confdefs.h" 23944#include <com_err.h> 23945int 23946main () 23947{ 23948 23949 const char *p; 23950 p = error_message(0); 23951 23952 ; 23953 return 0; 23954} 23955_ACEOF 23956rm -f conftest.$ac_objext conftest$ac_exeext 23957if { (eval echo "$as_me:23957: \"$ac_link\"") >&5 23958 (eval $ac_link) 2>&5 23959 ac_status=$? 23960 echo "$as_me:23960: \$? = $ac_status" >&5 23961 (exit $ac_status); } && 23962 { ac_try='test -s conftest$ac_exeext' 23963 { (eval echo "$as_me:23963: \"$ac_try\"") >&5 23964 (eval $ac_try) 2>&5 23965 ac_status=$? 23966 echo "$as_me:23966: \$? = $ac_status" >&5 23967 (exit $ac_status); }; }; then 23968 krb_cv_com_err="yes" 23969else 23970 echo "$as_me: failed program was:" >&5 23971cat conftest.$ac_ext >&5 23972krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}" 23973fi 23974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23975 echo "$as_me:23975: result: ${krb_cv_com_err}" >&5 23976echo "${ECHO_T}${krb_cv_com_err}" >&6 23977 LIBS="${krb_cv_save_LIBS}" 23978else 23979 krb_cv_com_err="no" 23980fi 23981 23982if test "${krb_cv_com_err}" = "yes"; then 23983 DIR_com_err="" 23984 LIB_com_err="-lcom_err" 23985 LIB_com_err_a="" 23986 LIB_com_err_so="" 23987 { echo "$as_me:23987: Using the already-installed com_err" >&5 23988echo "$as_me: Using the already-installed com_err" >&6;} 23989else 23990 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et" 23991 DIR_com_err="com_err" 23992 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 23993 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 23994 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 23995 { echo "$as_me:23995: Using our own com_err" >&5 23996echo "$as_me: Using our own com_err" >&6;} 23997fi 23998 23999echo "$as_me:23999: checking which authentication modules should be built" >&5 24000echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6 24001 24002LIB_AUTH_SUBDIRS= 24003 24004if test "$ac_cv_header_siad_h" = yes; then 24005 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 24006fi 24007 24008if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then 24009 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 24010fi 24011 24012case "${host}" in 24013*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 24014esac 24015 24016echo "$as_me:24016: result: $LIB_AUTH_SUBDIRS" >&5 24017echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6 24018 24019test "x$prefix" = xNONE && prefix=$ac_default_prefix 24020test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24021 24022for i in bin lib libexec sbin; do 24023 i=${i}dir 24024 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'` 24025 x="\$${i}" 24026 eval y="$x" 24027 while test "x$y" != "x$x"; do 24028 x="$y" 24029 eval y="$x" 24030 done 24031 cat >>confdefs.h <<EOF 24032#define $foo "$x" 24033EOF 24034 24035done 24036 24037LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'` 24038 24039ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile" 24040 24041cat >confcache <<\_ACEOF 24042# This file is a shell script that caches the results of configure 24043# tests run on this system so they can be shared between configure 24044# scripts and configure runs, see configure's option --config-cache. 24045# It is not useful on other systems. If it contains results you don't 24046# want to keep, you may remove or edit it. 24047# 24048# config.status only pays attention to the cache file if you give it 24049# the --recheck option to rerun configure. 24050# 24051# `ac_cv_env_foo' variables (set or unset) will be overriden when 24052# loading this file, other *unset* `ac_cv_foo' will be assigned the 24053# following values. 24054 24055_ACEOF 24056 24057# The following way of writing the cache mishandles newlines in values, 24058# but we know of no workaround that is simple, portable, and efficient. 24059# So, don't put newlines in cache variables' values. 24060# Ultrix sh set writes to stderr and can't be redirected directly, 24061# and sets the high bit in the cache file unless we assign to the vars. 24062{ 24063 (set) 2>&1 | 24064 case `(ac_space=' '; set | grep ac_space) 2>&1` in 24065 *ac_space=\ *) 24066 # `set' does not quote correctly, so add quotes (double-quote 24067 # substitution turns \\\\ into \\, and sed turns \\ into \). 24068 sed -n \ 24069 "s/'/'\\\\''/g; 24070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24071 ;; 24072 *) 24073 # `set' quotes correctly as required by POSIX, so do not add quotes. 24074 sed -n \ 24075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 24076 ;; 24077 esac; 24078} | 24079 sed ' 24080 t clear 24081 : clear 24082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24083 t end 24084 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24085 : end' >>confcache 24086if cmp -s $cache_file confcache; then :; else 24087 if test -w $cache_file; then 24088 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 24089 cat confcache >$cache_file 24090 else 24091 echo "not updating unwritable cache $cache_file" 24092 fi 24093fi 24094rm -f confcache 24095 24096test "x$prefix" = xNONE && prefix=$ac_default_prefix 24097# Let make expand exec_prefix. 24098test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24099 24100# VPATH may cause trouble with some makes, so we remove $(srcdir), 24101# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24102# trailing colons and then remove the whole line if VPATH becomes empty 24103# (actually we leave an empty line to preserve line numbers). 24104if test "x$srcdir" = x.; then 24105 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24106s/:*\$(srcdir):*/:/; 24107s/:*\${srcdir}:*/:/; 24108s/:*@srcdir@:*/:/; 24109s/^\([^=]*=[ ]*\):*/\1/; 24110s/:*$//; 24111s/^[^=]*=[ ]*$//; 24112}' 24113fi 24114 24115DEFS=-DHAVE_CONFIG_H 24116 24117: ${CONFIG_STATUS=./config.status} 24118ac_clean_files_save=$ac_clean_files 24119ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24120{ echo "$as_me:24120: creating $CONFIG_STATUS" >&5 24121echo "$as_me: creating $CONFIG_STATUS" >&6;} 24122cat >$CONFIG_STATUS <<_ACEOF 24123#! $SHELL 24124# Generated automatically by configure. 24125# Run this file to recreate the current configuration. 24126# Compiler output produced by configure, useful for debugging 24127# configure, is in config.log if it exists. 24128 24129debug=false 24130SHELL=\${CONFIG_SHELL-$SHELL} 24131ac_cs_invocation="\$0 \$@" 24132 24133_ACEOF 24134 24135cat >>$CONFIG_STATUS <<\_ACEOF 24136# Be Bourne compatible 24137if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 24138 emulate sh 24139 NULLCMD=: 24140elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24141 set -o posix 24142fi 24143 24144# Name of the executable. 24145as_me=`echo "$0" |sed 's,.*[\\/],,'` 24146 24147if expr a : '\(a\)' >/dev/null 2>&1; then 24148 as_expr=expr 24149else 24150 as_expr=false 24151fi 24152 24153rm -f conf$$ conf$$.exe conf$$.file 24154echo >conf$$.file 24155if ln -s conf$$.file conf$$ 2>/dev/null; then 24156 # We could just check for DJGPP; but this test a) works b) is more generic 24157 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 24158 if test -f conf$$.exe; then 24159 # Don't use ln at all; we don't have any links 24160 as_ln_s='cp -p' 24161 else 24162 as_ln_s='ln -s' 24163 fi 24164elif ln conf$$.file conf$$ 2>/dev/null; then 24165 as_ln_s=ln 24166else 24167 as_ln_s='cp -p' 24168fi 24169rm -f conf$$ conf$$.exe conf$$.file 24170 24171as_executable_p="test -f" 24172 24173# Support unset when possible. 24174if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 24175 as_unset=unset 24176else 24177 as_unset=false 24178fi 24179 24180# NLS nuisances. 24181$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 24182$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 24183$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 24184$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 24185$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 24186$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 24187$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 24188$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 24189 24190# IFS 24191# We need space, tab and new line, in precisely that order. 24192as_nl=' 24193' 24194IFS=" $as_nl" 24195 24196# CDPATH. 24197$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 24198 24199exec 6>&1 24200 24201_ACEOF 24202 24203# Files that config.status was made for. 24204if test -n "$ac_config_files"; then 24205 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 24206fi 24207 24208if test -n "$ac_config_headers"; then 24209 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 24210fi 24211 24212if test -n "$ac_config_links"; then 24213 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 24214fi 24215 24216if test -n "$ac_config_commands"; then 24217 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 24218fi 24219 24220cat >>$CONFIG_STATUS <<\EOF 24221 24222ac_cs_usage="\ 24223\`$as_me' instantiates files from templates according to the 24224current configuration. 24225 24226Usage: $0 [OPTIONS] [FILE]... 24227 24228 -h, --help print this help, then exit 24229 -V, --version print version number, then exit 24230 -d, --debug don't remove temporary files 24231 --recheck update $as_me by reconfiguring in the same conditions 24232 --file=FILE[:TEMPLATE] 24233 instantiate the configuration file FILE 24234 --header=FILE[:TEMPLATE] 24235 instantiate the configuration header FILE 24236 24237Configuration files: 24238$config_files 24239 24240Configuration headers: 24241$config_headers 24242 24243Configuration commands: 24244$config_commands 24245 24246Report bugs to <bug-autoconf@gnu.org>." 24247EOF 24248 24249cat >>$CONFIG_STATUS <<EOF 24250ac_cs_version="\\ 24251heimdal config.status 0.4e 24252configured by $0, generated by GNU Autoconf 2.52, 24253 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 24254 24255Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 24256Free Software Foundation, Inc. 24257This config.status script is free software; the Free Software Foundation 24258gives unlimited permission to copy, distribute and modify it." 24259srcdir=$srcdir 24260INSTALL="$INSTALL" 24261EOF 24262 24263cat >>$CONFIG_STATUS <<\EOF 24264# If no file are specified by the user, then we need to provide default 24265# value. By we need to know if files were specified by the user. 24266ac_need_defaults=: 24267while test $# != 0 24268do 24269 case $1 in 24270 --*=*) 24271 ac_option=`expr "x$1" : 'x\([^=]*\)='` 24272 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 24273 shift 24274 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 24275 shift 24276 ;; 24277 -*);; 24278 *) # This is not an option, so the user has probably given explicit 24279 # arguments. 24280 ac_need_defaults=false;; 24281 esac 24282 24283 case $1 in 24284 # Handling of the options. 24285EOF 24286cat >>$CONFIG_STATUS <<EOF 24287 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24288 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 24289 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 24290EOF 24291cat >>$CONFIG_STATUS <<\EOF 24292 --version | --vers* | -V ) 24293 echo "$ac_cs_version"; exit 0 ;; 24294 --he | --h) 24295 # Conflict between --help and --header 24296 { { echo "$as_me:24296: error: ambiguous option: $1 24297Try \`$0 --help' for more information." >&5 24298echo "$as_me: error: ambiguous option: $1 24299Try \`$0 --help' for more information." >&2;} 24300 { (exit 1); exit 1; }; };; 24301 --help | --hel | -h ) 24302 echo "$ac_cs_usage"; exit 0 ;; 24303 --debug | --d* | -d ) 24304 debug=: ;; 24305 --file | --fil | --fi | --f ) 24306 shift 24307 CONFIG_FILES="$CONFIG_FILES $1" 24308 ac_need_defaults=false;; 24309 --header | --heade | --head | --hea ) 24310 shift 24311 CONFIG_HEADERS="$CONFIG_HEADERS $1" 24312 ac_need_defaults=false;; 24313 24314 # This is an error. 24315 -*) { { echo "$as_me:24315: error: unrecognized option: $1 24316Try \`$0 --help' for more information." >&5 24317echo "$as_me: error: unrecognized option: $1 24318Try \`$0 --help' for more information." >&2;} 24319 { (exit 1); exit 1; }; } ;; 24320 24321 *) ac_config_targets="$ac_config_targets $1" ;; 24322 24323 esac 24324 shift 24325done 24326 24327exec 5>>config.log 24328cat >&5 << _ACEOF 24329 24330## ----------------------- ## 24331## Running config.status. ## 24332## ----------------------- ## 24333 24334This file was extended by $as_me (heimdal 0.4e) 2.52, executed with 24335 CONFIG_FILES = $CONFIG_FILES 24336 CONFIG_HEADERS = $CONFIG_HEADERS 24337 CONFIG_LINKS = $CONFIG_LINKS 24338 CONFIG_COMMANDS = $CONFIG_COMMANDS 24339 > $ac_cs_invocation 24340on `(hostname || uname -n) 2>/dev/null | sed 1q` 24341 24342_ACEOF 24343EOF 24344 24345cat >>$CONFIG_STATUS <<EOF 24346# 24347# INIT-COMMANDS section. 24348# 24349 24350AMDEP_TRUE="$AMDEP_TRUE" 24351ac_aux_dir="$ac_aux_dir" 24352 24353EOF 24354 24355cat >>$CONFIG_STATUS <<\EOF 24356for ac_config_target in $ac_config_targets 24357do 24358 case "$ac_config_target" in 24359 # Handling of arguments. 24360 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24361 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24362 "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 24363 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 24364 "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;; 24365 "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;; 24366 "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;; 24367 "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;; 24368 "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;; 24369 "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 24370 "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 24371 "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;; 24372 "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;; 24373 "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 24374 "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 24375 "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 24376 "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 24377 "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 24378 "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 24379 "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 24380 "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 24381 "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 24382 "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 24383 "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 24384 "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 24385 "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 24386 "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 24387 "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 24388 "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 24389 "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 24390 "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;; 24391 "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;; 24392 "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;; 24393 "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;; 24394 "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;; 24395 "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;; 24396 "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 24397 "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;; 24398 "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;; 24399 "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;; 24400 "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;; 24401 "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 24402 "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;; 24403 "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;; 24404 "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;; 24405 "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;; 24406 "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;; 24407 "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 24408 "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 24409 "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 24410 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 24411 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 24412 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 24413 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 24414 *) { { echo "$as_me:24414: error: invalid argument: $ac_config_target" >&5 24415echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24416 { (exit 1); exit 1; }; };; 24417 esac 24418done 24419 24420# If the user did not use the arguments to specify the items to instantiate, 24421# then the envvar interface is used. Set only those that are not. 24422# We use the long form for the default assignment because of an extremely 24423# bizarre bug on SunOS 4.1.3. 24424if $ac_need_defaults; then 24425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24428fi 24429 24430# Create a temporary directory, and hook for its removal unless debugging. 24431$debug || 24432{ 24433 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 24434 trap '{ (exit 1); exit 1; }' 1 2 13 15 24435} 24436 24437# Create a (secure) tmp directory for tmp files. 24438: ${TMPDIR=/tmp} 24439{ 24440 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 24441 test -n "$tmp" && test -d "$tmp" 24442} || 24443{ 24444 tmp=$TMPDIR/cs$$-$RANDOM 24445 (umask 077 && mkdir $tmp) 24446} || 24447{ 24448 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 24449 { (exit 1); exit 1; } 24450} 24451 24452EOF 24453 24454cat >>$CONFIG_STATUS <<EOF 24455 24456# 24457# CONFIG_FILES section. 24458# 24459 24460# No need to generate the scripts if there are no CONFIG_FILES. 24461# This happens for instance when ./config.status config.h 24462if test -n "\$CONFIG_FILES"; then 24463 # Protect against being on the right side of a sed subst in config.status. 24464 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 24465 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 24466s,@SHELL@,$SHELL,;t t 24467s,@exec_prefix@,$exec_prefix,;t t 24468s,@prefix@,$prefix,;t t 24469s,@program_transform_name@,$program_transform_name,;t t 24470s,@bindir@,$bindir,;t t 24471s,@sbindir@,$sbindir,;t t 24472s,@libexecdir@,$libexecdir,;t t 24473s,@datadir@,$datadir,;t t 24474s,@sysconfdir@,$sysconfdir,;t t 24475s,@sharedstatedir@,$sharedstatedir,;t t 24476s,@localstatedir@,$localstatedir,;t t 24477s,@libdir@,$libdir,;t t 24478s,@includedir@,$includedir,;t t 24479s,@oldincludedir@,$oldincludedir,;t t 24480s,@infodir@,$infodir,;t t 24481s,@mandir@,$mandir,;t t 24482s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 24483s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 24484s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 24485s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 24486s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 24487s,@build_alias@,$build_alias,;t t 24488s,@host_alias@,$host_alias,;t t 24489s,@target_alias@,$target_alias,;t t 24490s,@ECHO_C@,$ECHO_C,;t t 24491s,@ECHO_N@,$ECHO_N,;t t 24492s,@ECHO_T@,$ECHO_T,;t t 24493s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 24494s,@DEFS@,$DEFS,;t t 24495s,@LIBS@,$LIBS,;t t 24496s,@CC@,$CC,;t t 24497s,@CFLAGS@,$CFLAGS,;t t 24498s,@LDFLAGS@,$LDFLAGS,;t t 24499s,@CPPFLAGS@,$CPPFLAGS,;t t 24500s,@ac_ct_CC@,$ac_ct_CC,;t t 24501s,@EXEEXT@,$EXEEXT,;t t 24502s,@OBJEXT@,$OBJEXT,;t t 24503s,@CPP@,$CPP,;t t 24504s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 24505s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 24506s,@INSTALL_DATA@,$INSTALL_DATA,;t t 24507s,@PACKAGE@,$PACKAGE,;t t 24508s,@VERSION@,$VERSION,;t t 24509s,@ACLOCAL@,$ACLOCAL,;t t 24510s,@AUTOCONF@,$AUTOCONF,;t t 24511s,@AUTOMAKE@,$AUTOMAKE,;t t 24512s,@AUTOHEADER@,$AUTOHEADER,;t t 24513s,@MAKEINFO@,$MAKEINFO,;t t 24514s,@AMTAR@,$AMTAR,;t t 24515s,@install_sh@,$install_sh,;t t 24516s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 24517s,@AWK@,$AWK,;t t 24518s,@SET_MAKE@,$SET_MAKE,;t t 24519s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 24520s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 24521s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 24522s,@DEPDIR@,$DEPDIR,;t t 24523s,@am__include@,$am__include,;t t 24524s,@am__quote@,$am__quote,;t t 24525s,@CCDEPMODE@,$CCDEPMODE,;t t 24526s,@build@,$build,;t t 24527s,@build_cpu@,$build_cpu,;t t 24528s,@build_vendor@,$build_vendor,;t t 24529s,@build_os@,$build_os,;t t 24530s,@host@,$host,;t t 24531s,@host_cpu@,$host_cpu,;t t 24532s,@host_vendor@,$host_vendor,;t t 24533s,@host_os@,$host_os,;t t 24534s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t 24535s,@YACC@,$YACC,;t t 24536s,@LEX@,$LEX,;t t 24537s,@LEXLIB@,$LEXLIB,;t t 24538s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 24539s,@RANLIB@,$RANLIB,;t t 24540s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 24541s,@LN_S@,$LN_S,;t t 24542s,@LIBTOOL@,$LIBTOOL,;t t 24543s,@WFLAGS@,$WFLAGS,;t t 24544s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t 24545s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t 24546s,@LIB_db_create@,$LIB_db_create,;t t 24547s,@LIB_dbopen@,$LIB_dbopen,;t t 24548s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t 24549s,@DBLIB@,$DBLIB,;t t 24550s,@LIB_NDBM@,$LIB_NDBM,;t t 24551s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t 24552s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t 24553s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t 24554s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t 24555s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t 24556s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t 24557s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t 24558s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t 24559s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t 24560s,@LIB_socket@,$LIB_socket,;t t 24561s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t 24562s,@LIB_syslog@,$LIB_syslog,;t t 24563s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t 24564s,@LIB_res_search@,$LIB_res_search,;t t 24565s,@LIB_dn_expand@,$LIB_dn_expand,;t t 24566s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t 24567s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t 24568s,@LIB_getsockopt@,$LIB_getsockopt,;t t 24569s,@LIB_setsockopt@,$LIB_setsockopt,;t t 24570s,@LIB_hstrerror@,$LIB_hstrerror,;t t 24571s,@LIBOBJS@,$LIBOBJS,;t t 24572s,@LIB_bswap16@,$LIB_bswap16,;t t 24573s,@LIB_bswap32@,$LIB_bswap32,;t t 24574s,@LIB_pidfile@,$LIB_pidfile,;t t 24575s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t 24576s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t 24577s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t 24578s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t 24579s,@LIB_crypt@,$LIB_crypt,;t t 24580s,@DIR_roken@,$DIR_roken,;t t 24581s,@LIB_roken@,$LIB_roken,;t t 24582s,@INCLUDES_roken@,$INCLUDES_roken,;t t 24583s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t 24584s,@LIB_openldap@,$LIB_openldap,;t t 24585s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t 24586s,@LIB_krb4@,$LIB_krb4,;t t 24587s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t 24588s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t 24589s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t 24590s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t 24591s,@KRB4_TRUE@,$KRB4_TRUE,;t t 24592s,@KRB4_FALSE@,$KRB4_FALSE,;t t 24593s,@KRB5_TRUE@,$KRB5_TRUE,;t t 24594s,@KRB5_FALSE@,$KRB5_FALSE,;t t 24595s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t 24596s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t 24597s,@LIB_kdb@,$LIB_kdb,;t t 24598s,@DCE_TRUE@,$DCE_TRUE,;t t 24599s,@DCE_FALSE@,$DCE_FALSE,;t t 24600s,@dpagaix_CFLAGS@,$dpagaix_CFLAGS,;t t 24601s,@dpagaix_LDADD@,$dpagaix_LDADD,;t t 24602s,@LIB_otp@,$LIB_otp,;t t 24603s,@OTP_TRUE@,$OTP_TRUE,;t t 24604s,@OTP_FALSE@,$OTP_FALSE,;t t 24605s,@LIB_security@,$LIB_security,;t t 24606s,@NROFF@,$NROFF,;t t 24607s,@GROFF@,$GROFF,;t t 24608s,@CATMAN@,$CATMAN,;t t 24609s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t 24610s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t 24611s,@CATMANEXT@,$CATMANEXT,;t t 24612s,@INCLUDE_readline@,$INCLUDE_readline,;t t 24613s,@LIB_readline@,$LIB_readline,;t t 24614s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t 24615s,@LIB_hesiod@,$LIB_hesiod,;t t 24616s,@AIX_TRUE@,$AIX_TRUE,;t t 24617s,@AIX_FALSE@,$AIX_FALSE,;t t 24618s,@AIX4_TRUE@,$AIX4_TRUE,;t t 24619s,@AIX4_FALSE@,$AIX4_FALSE,;t t 24620s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t 24621s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t 24622s,@LIB_dlopen@,$LIB_dlopen,;t t 24623s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t 24624s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t 24625s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t 24626s,@IRIX_TRUE@,$IRIX_TRUE,;t t 24627s,@IRIX_FALSE@,$IRIX_FALSE,;t t 24628s,@X_CFLAGS@,$X_CFLAGS,;t t 24629s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 24630s,@X_LIBS@,$X_LIBS,;t t 24631s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 24632s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t 24633s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t 24634s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t 24635s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t 24636s,@LIB_XauFileName@,$LIB_XauFileName,;t t 24637s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t 24638s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t 24639s,@LIB_logwtmp@,$LIB_logwtmp,;t t 24640s,@LIB_logout@,$LIB_logout,;t t 24641s,@LIB_openpty@,$LIB_openpty,;t t 24642s,@LIB_tgetent@,$LIB_tgetent,;t t 24643s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t 24644s,@DIR_des@,$DIR_des,;t t 24645s,@INCLUDE_des@,$INCLUDE_des,;t t 24646s,@LIB_des@,$LIB_des,;t t 24647s,@LIB_des_a@,$LIB_des_a,;t t 24648s,@LIB_des_so@,$LIB_des_so,;t t 24649s,@LIB_des_appl@,$LIB_des_appl,;t t 24650s,@LIB_el_init@,$LIB_el_init,;t t 24651s,@el_compat_TRUE@,$el_compat_TRUE,;t t 24652s,@el_compat_FALSE@,$el_compat_FALSE,;t t 24653s,@COMPILE_ET@,$COMPILE_ET,;t t 24654s,@DIR_com_err@,$DIR_com_err,;t t 24655s,@LIB_com_err@,$LIB_com_err,;t t 24656s,@LIB_com_err_a@,$LIB_com_err_a,;t t 24657s,@LIB_com_err_so@,$LIB_com_err_so,;t t 24658s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t 24659s,@LTLIBOBJS@,$LTLIBOBJS,;t t 24660CEOF 24661 24662EOF 24663 24664 cat >>$CONFIG_STATUS <<\EOF 24665 # Split the substitutions into bite-sized pieces for seds with 24666 # small command number limits, like on Digital OSF/1 and HP-UX. 24667 ac_max_sed_lines=48 24668 ac_sed_frag=1 # Number of current file. 24669 ac_beg=1 # First line for current file. 24670 ac_end=$ac_max_sed_lines # Line after last line for current file. 24671 ac_more_lines=: 24672 ac_sed_cmds= 24673 while $ac_more_lines; do 24674 if test $ac_beg -gt 1; then 24675 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24676 else 24677 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24678 fi 24679 if test ! -s $tmp/subs.frag; then 24680 ac_more_lines=false 24681 else 24682 # The purpose of the label and of the branching condition is to 24683 # speed up the sed processing (if there are no `@' at all, there 24684 # is no need to browse any of the substitutions). 24685 # These are the two extra sed commands mentioned above. 24686 (echo ':t 24687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 24688 if test -z "$ac_sed_cmds"; then 24689 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 24690 else 24691 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 24692 fi 24693 ac_sed_frag=`expr $ac_sed_frag + 1` 24694 ac_beg=$ac_end 24695 ac_end=`expr $ac_end + $ac_max_sed_lines` 24696 fi 24697 done 24698 if test -z "$ac_sed_cmds"; then 24699 ac_sed_cmds=cat 24700 fi 24701fi # test -n "$CONFIG_FILES" 24702 24703EOF 24704cat >>$CONFIG_STATUS <<\EOF 24705for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 24706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24707 case $ac_file in 24708 - | *:- | *:-:* ) # input from stdin 24709 cat >$tmp/stdin 24710 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24712 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24714 * ) ac_file_in=$ac_file.in ;; 24715 esac 24716 24717 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 24718 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24719 X"$ac_file" : 'X\(//\)[^/]' \| \ 24720 X"$ac_file" : 'X\(//\)$' \| \ 24721 X"$ac_file" : 'X\(/\)' \| \ 24722 . : '\(.\)' 2>/dev/null || 24723echo X"$ac_file" | 24724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24725 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24726 /^X\(\/\/\)$/{ s//\1/; q; } 24727 /^X\(\/\).*/{ s//\1/; q; } 24728 s/.*/./; q'` 24729 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 24730 { case "$ac_dir" in 24731 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 24732 *) as_incr_dir=.;; 24733esac 24734as_dummy="$ac_dir" 24735for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 24736 case $as_mkdir_dir in 24737 # Skip DOS drivespec 24738 ?:) as_incr_dir=$as_mkdir_dir ;; 24739 *) 24740 as_incr_dir=$as_incr_dir/$as_mkdir_dir 24741 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 24742 ;; 24743 esac 24744done; } 24745 24746 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 24747 # A "../" for each directory in $ac_dir_suffix. 24748 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 24749 else 24750 ac_dir_suffix= ac_dots= 24751 fi 24752 24753 case $srcdir in 24754 .) ac_srcdir=. 24755 if test -z "$ac_dots"; then 24756 ac_top_srcdir=. 24757 else 24758 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 24759 fi ;; 24760 [\\/]* | ?:[\\/]* ) 24761 ac_srcdir=$srcdir$ac_dir_suffix; 24762 ac_top_srcdir=$srcdir ;; 24763 *) # Relative path. 24764 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 24765 ac_top_srcdir=$ac_dots$srcdir ;; 24766 esac 24767 24768 case $INSTALL in 24769 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24770 *) ac_INSTALL=$ac_dots$INSTALL ;; 24771 esac 24772 24773 if test x"$ac_file" != x-; then 24774 { echo "$as_me:24774: creating $ac_file" >&5 24775echo "$as_me: creating $ac_file" >&6;} 24776 rm -f "$ac_file" 24777 fi 24778 # Let's still pretend it is `configure' which instantiates (i.e., don't 24779 # use $as_me), people would be surprised to read: 24780 # /* config.h. Generated automatically by config.status. */ 24781 configure_input="Generated automatically from `echo $ac_file_in | 24782 sed 's,.*/,,'` by configure." 24783 24784 # First look for the input files in the build tree, otherwise in the 24785 # src tree. 24786 ac_file_inputs=`IFS=: 24787 for f in $ac_file_in; do 24788 case $f in 24789 -) echo $tmp/stdin ;; 24790 [\\/$]*) 24791 # Absolute (can't be DOS-style, as IFS=:) 24792 test -f "$f" || { { echo "$as_me:24792: error: cannot find input file: $f" >&5 24793echo "$as_me: error: cannot find input file: $f" >&2;} 24794 { (exit 1); exit 1; }; } 24795 echo $f;; 24796 *) # Relative 24797 if test -f "$f"; then 24798 # Build tree 24799 echo $f 24800 elif test -f "$srcdir/$f"; then 24801 # Source tree 24802 echo $srcdir/$f 24803 else 24804 # /dev/null tree 24805 { { echo "$as_me:24805: error: cannot find input file: $f" >&5 24806echo "$as_me: error: cannot find input file: $f" >&2;} 24807 { (exit 1); exit 1; }; } 24808 fi;; 24809 esac 24810 done` || { (exit 1); exit 1; } 24811EOF 24812cat >>$CONFIG_STATUS <<EOF 24813 sed "$ac_vpsub 24814$extrasub 24815EOF 24816cat >>$CONFIG_STATUS <<\EOF 24817:t 24818/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24819s,@configure_input@,$configure_input,;t t 24820s,@srcdir@,$ac_srcdir,;t t 24821s,@top_srcdir@,$ac_top_srcdir,;t t 24822s,@INSTALL@,$ac_INSTALL,;t t 24823" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 24824 rm -f $tmp/stdin 24825 if test x"$ac_file" != x-; then 24826 mv $tmp/out $ac_file 24827 else 24828 cat $tmp/out 24829 rm -f $tmp/out 24830 fi 24831 24832done 24833EOF 24834cat >>$CONFIG_STATUS <<\EOF 24835 24836# 24837# CONFIG_HEADER section. 24838# 24839 24840# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 24841# NAME is the cpp macro being defined and VALUE is the value it is being given. 24842# 24843# ac_d sets the value in "#define NAME VALUE" lines. 24844ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 24845ac_dB='[ ].*$,\1#\2' 24846ac_dC=' ' 24847ac_dD=',;t' 24848# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 24849ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 24850ac_uB='$,\1#\2define\3' 24851ac_uC=' ' 24852ac_uD=',;t' 24853 24854for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 24855 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24856 case $ac_file in 24857 - | *:- | *:-:* ) # input from stdin 24858 cat >$tmp/stdin 24859 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24861 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24863 * ) ac_file_in=$ac_file.in ;; 24864 esac 24865 24866 test x"$ac_file" != x- && { echo "$as_me:24866: creating $ac_file" >&5 24867echo "$as_me: creating $ac_file" >&6;} 24868 24869 # First look for the input files in the build tree, otherwise in the 24870 # src tree. 24871 ac_file_inputs=`IFS=: 24872 for f in $ac_file_in; do 24873 case $f in 24874 -) echo $tmp/stdin ;; 24875 [\\/$]*) 24876 # Absolute (can't be DOS-style, as IFS=:) 24877 test -f "$f" || { { echo "$as_me:24877: error: cannot find input file: $f" >&5 24878echo "$as_me: error: cannot find input file: $f" >&2;} 24879 { (exit 1); exit 1; }; } 24880 echo $f;; 24881 *) # Relative 24882 if test -f "$f"; then 24883 # Build tree 24884 echo $f 24885 elif test -f "$srcdir/$f"; then 24886 # Source tree 24887 echo $srcdir/$f 24888 else 24889 # /dev/null tree 24890 { { echo "$as_me:24890: error: cannot find input file: $f" >&5 24891echo "$as_me: error: cannot find input file: $f" >&2;} 24892 { (exit 1); exit 1; }; } 24893 fi;; 24894 esac 24895 done` || { (exit 1); exit 1; } 24896 # Remove the trailing spaces. 24897 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 24898 24899EOF 24900 24901# Transform confdefs.h into two sed scripts, `conftest.defines' and 24902# `conftest.undefs', that substitutes the proper values into 24903# config.h.in to produce config.h. The first handles `#define' 24904# templates, and the second `#undef' templates. 24905# And first: Protect against being on the right side of a sed subst in 24906# config.status. Protect against being in an unquoted here document 24907# in config.status. 24908rm -f conftest.defines conftest.undefs 24909# Using a here document instead of a string reduces the quoting nightmare. 24910# Putting comments in sed scripts is not portable. 24911# 24912# `end' is used to avoid that the second main sed command (meant for 24913# 0-ary CPP macros) applies to n-ary macro definitions. 24914# See the Autoconf documentation for `clear'. 24915cat >confdef2sed.sed <<\EOF 24916s/[\\&,]/\\&/g 24917s,[\\$`],\\&,g 24918t clear 24919: clear 24920s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 24921t end 24922s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 24923: end 24924EOF 24925# If some macros were called several times there might be several times 24926# the same #defines, which is useless. Nevertheless, we may not want to 24927# sort them, since we want the *last* AC-DEFINE to be honored. 24928uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 24929sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 24930rm -f confdef2sed.sed 24931 24932# This sed command replaces #undef with comments. This is necessary, for 24933# example, in the case of _POSIX_SOURCE, which is predefined and required 24934# on some systems where configure will not decide to define it. 24935cat >>conftest.undefs <<\EOF 24936s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 24937EOF 24938 24939# Break up conftest.defines because some shells have a limit on the size 24940# of here documents, and old seds have small limits too (100 cmds). 24941echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 24942echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 24943echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 24944echo ' :' >>$CONFIG_STATUS 24945rm -f conftest.tail 24946while grep . conftest.defines >/dev/null 24947do 24948 # Write a limited-size here document to $tmp/defines.sed. 24949 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 24950 # Speed up: don't consider the non `#define' lines. 24951 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 24952 # Work around the forget-to-reset-the-flag bug. 24953 echo 't clr' >>$CONFIG_STATUS 24954 echo ': clr' >>$CONFIG_STATUS 24955 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 24956 echo 'CEOF 24957 sed -f $tmp/defines.sed $tmp/in >$tmp/out 24958 rm -f $tmp/in 24959 mv $tmp/out $tmp/in 24960' >>$CONFIG_STATUS 24961 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 24962 rm -f conftest.defines 24963 mv conftest.tail conftest.defines 24964done 24965rm -f conftest.defines 24966echo ' fi # egrep' >>$CONFIG_STATUS 24967echo >>$CONFIG_STATUS 24968 24969# Break up conftest.undefs because some shells have a limit on the size 24970# of here documents, and old seds have small limits too (100 cmds). 24971echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 24972rm -f conftest.tail 24973while grep . conftest.undefs >/dev/null 24974do 24975 # Write a limited-size here document to $tmp/undefs.sed. 24976 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 24977 # Speed up: don't consider the non `#undef' 24978 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 24979 # Work around the forget-to-reset-the-flag bug. 24980 echo 't clr' >>$CONFIG_STATUS 24981 echo ': clr' >>$CONFIG_STATUS 24982 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 24983 echo 'CEOF 24984 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 24985 rm -f $tmp/in 24986 mv $tmp/out $tmp/in 24987' >>$CONFIG_STATUS 24988 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 24989 rm -f conftest.undefs 24990 mv conftest.tail conftest.undefs 24991done 24992rm -f conftest.undefs 24993 24994cat >>$CONFIG_STATUS <<\EOF 24995 # Let's still pretend it is `configure' which instantiates (i.e., don't 24996 # use $as_me), people would be surprised to read: 24997 # /* config.h. Generated automatically by config.status. */ 24998 if test x"$ac_file" = x-; then 24999 echo "/* Generated automatically by configure. */" >$tmp/config.h 25000 else 25001 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 25002 fi 25003 cat $tmp/in >>$tmp/config.h 25004 rm -f $tmp/in 25005 if test x"$ac_file" != x-; then 25006 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 25007 { echo "$as_me:25007: $ac_file is unchanged" >&5 25008echo "$as_me: $ac_file is unchanged" >&6;} 25009 else 25010 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25011 X"$ac_file" : 'X\(//\)[^/]' \| \ 25012 X"$ac_file" : 'X\(//\)$' \| \ 25013 X"$ac_file" : 'X\(/\)' \| \ 25014 . : '\(.\)' 2>/dev/null || 25015echo X"$ac_file" | 25016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25017 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25018 /^X\(\/\/\)$/{ s//\1/; q; } 25019 /^X\(\/\).*/{ s//\1/; q; } 25020 s/.*/./; q'` 25021 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 25022 { case "$ac_dir" in 25023 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 25024 *) as_incr_dir=.;; 25025esac 25026as_dummy="$ac_dir" 25027for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 25028 case $as_mkdir_dir in 25029 # Skip DOS drivespec 25030 ?:) as_incr_dir=$as_mkdir_dir ;; 25031 *) 25032 as_incr_dir=$as_incr_dir/$as_mkdir_dir 25033 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 25034 ;; 25035 esac 25036done; } 25037 25038 fi 25039 rm -f $ac_file 25040 mv $tmp/config.h $ac_file 25041 fi 25042 else 25043 cat $tmp/config.h 25044 rm -f $tmp/config.h 25045 fi 25046 # Run the commands associated with the file. 25047 case $ac_file in 25048 include/config.h ) # update the timestamp 25049echo timestamp >"include/stamp-h1" 25050 ;; 25051 esac 25052done 25053EOF 25054cat >>$CONFIG_STATUS <<\EOF 25055 25056# 25057# CONFIG_COMMANDS section. 25058# 25059for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 25060 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 25061 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 25062 25063 case $ac_dest in 25064 default-1 ) 25065test x"$AMDEP_TRUE" != x"" || 25066for mf in $CONFIG_FILES; do 25067 case "$mf" in 25068 Makefile) dirpart=.;; 25069 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 25070 *) continue;; 25071 esac 25072 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 25073 # Extract the definition of DEP_FILES from the Makefile without 25074 # running `make'. 25075 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 25076 test -z "$DEPDIR" && continue 25077 # When using ansi2knr, U may be empty or an underscore; expand it 25078 U=`sed -n -e '/^U = / s///p' < "$mf"` 25079 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 25080 # We invoke sed twice because it is the simplest approach to 25081 # changing $(DEPDIR) to its actual value in the expansion. 25082 for file in `sed -n -e ' 25083 /^DEP_FILES = .*\\\\$/ { 25084 s/^DEP_FILES = // 25085 :loop 25086 s/\\\\$// 25087 p 25088 n 25089 /\\\\$/ b loop 25090 p 25091 } 25092 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 25093 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 25094 # Make sure the directory exists. 25095 test -f "$dirpart/$file" && continue 25096 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 25097 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 25098 # echo "creating $dirpart/$file" 25099 echo '# dummy' > "$dirpart/$file" 25100 done 25101done 25102 ;; 25103 esac 25104done 25105EOF 25106 25107cat >>$CONFIG_STATUS <<\EOF 25108 25109{ (exit 0); exit 0; } 25110EOF 25111chmod +x $CONFIG_STATUS 25112ac_clean_files=$ac_clean_files_save 25113 25114# configure is writing to config.log, and then calls config.status. 25115# config.status does its own redirection, appending to config.log. 25116# Unfortunately, on DOS this fails, as config.log is still kept open 25117# by configure, so config.status won't be able to write to it; its 25118# output is simply discarded. So we exec the FD to /dev/null, 25119# effectively closing config.log, so it can be properly (re)opened and 25120# appended to by config.status. When coming back to configure, we 25121# need to make the FD available again. 25122if test "$no_create" != yes; then 25123 ac_cs_success=: 25124 exec 5>/dev/null 25125 $SHELL $CONFIG_STATUS || ac_cs_success=false 25126 exec 5>>config.log 25127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25128 # would make configure fail if this is the last instruction. 25129 $ac_cs_success || { (exit 1); exit 1; } 25130fi 25131 25132HEIMDALVERSION="$PACKAGE-$VERSION" 25133 25134cat > include/newversion.h.in <<EOF 25135const char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$"; 25136const char *heimdal_version = "$HEIMDALVERSION"; 25137EOF 25138 25139if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 25140 echo "include/version.h is unchanged" 25141 rm -f include/newversion.h.in 25142else 25143 echo "creating include/version.h" 25144 User=${USER-${LOGNAME}} 25145 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 25146 Date=`date` 25147 mv -f include/newversion.h.in include/version.h.in 25148 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 25149fi 25150