1#! /bin/sh 2# From configure.in Revision: 1.278 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.49b for heimdal 0.3f. 5# 6# Report bugs to <heimdal-bugs@pdc.kth.se>. 7# 8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 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# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 18 set -o posix 19fi 20 21if expr a : '\(a\)' >/dev/null 2>&1; then 22 as_expr=expr 23else 24 as_expr=false 25fi 26# Support unset when possible. 27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33# NLS nuisances. 34$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 35$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 36$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 37$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 38$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 39$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 40$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 41$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 42 43# IFS 44# We need space, tab and new line, in precisely that order. 45ac_nl=' 46' 47IFS=" $ac_nl" 48 49# CDPATH. 50$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 51 52cat >config.log << EOF 53This file contains any messages produced by compilers while 54running configure, to aid debugging if configure makes a mistake. 55 56It was created by $as_me (heimdal 0.3f) 2.49b, executed with 57 > $0 $@ 58 59on `(hostname || uname -n) 2>/dev/null | sed 1q`: 60 61uname -m = `(uname -m) 2>/dev/null || echo unknown` 62uname -r = `(uname -r) 2>/dev/null || echo unknown` 63uname -s = `(uname -s) 2>/dev/null || echo unknown` 64uname -v = `(uname -v) 2>/dev/null || echo unknown` 65 66/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 67/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 68 69/bin/arch = `(/bin/arch) 2>/dev/null` 70/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 71/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 72hostinfo = `(hostinfo) 2>/dev/null` 73/bin/machine = `(/bin/machine) 2>/dev/null` 74/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 75/bin/universe = `(/bin/universe) 2>/dev/null` 76 77PATH = $PATH 78EOF 79 80# File descriptor usage: 81# 0 standard input 82# 1 file creation 83# 2 errors and warnings 84# 3 some systems may open it to /dev/tty 85# 4 used on the Kubota Titan 86# 6 checking for... messages and results 87# 5 compiler messages saved in config.log 88if test "$silent" = yes; then 89 exec 6>/dev/null 90else 91 exec 6>&1 92fi 93exec 5>>config.log 94 95# 96# Initializations. 97# 98ac_default_prefix=/usr/local 99cross_compiling=no 100subdirs= 101MFLAGS= MAKEFLAGS= 102SHELL=${CONFIG_SHELL-/bin/sh} 103 104# Maximum number of lines to put in a shell here document. 105# This variable seems obsolete. It should probably be removed, and 106# only ac_max_sed_lines should be used. 107: ${ac_max_here_lines=38} 108 109# Name of the host. 110# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 111# so uname gets run too. 112ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 113 114# Name of the executable. 115as_me=`echo "$0" | sed 's,.*/,,'` 116 117# Avoid depending upon Character Ranges. 118ac_cr_az='abcdefghijklmnopqrstuvwxyz' 119ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 120ac_cr_09='0123456789' 121ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 122 123# Sed expression to map a string onto a valid sh and CPP variable names. 124ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" 125ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" 126 127# By default always use an empty string as the executable extension. 128# Only change it if the script calls AC_EXEEXT. 129ac_exeext= 130# By default assume that objects files use an extension of .o. Only 131# change it if the script calls AC_OBJEXT. 132ac_objext=o 133# Factoring default headers for most tests. 134ac_includes_default="\ 135#include <stdio.h> 136#include <sys/types.h> 137#include <sys/stat.h> 138#if STDC_HEADERS 139# include <stdlib.h> 140# include <stddef.h> 141#else 142# if HAVE_STDLIB_H 143# include <stdlib.h> 144# endif 145#endif 146#if HAVE_STRING_H 147# if !STDC_HEADERS && HAVE_MEMORY_H 148# include <memory.h> 149# endif 150# include <string.h> 151#else 152# if HAVE_STRINGS_H 153# include <strings.h> 154# endif 155#endif 156#if HAVE_INTTYPES_H 157# include <inttypes.h> 158#endif 159#if HAVE_UNISTD_H 160# include <unistd.h> 161#endif" 162ac_default_prefix=/usr/heimdal 163 164# Initialize some variables set by options. 165ac_init_help= 166ac_init_version=false 167# The variables have the same names as the options, with 168# dashes changed to underlines. 169cache_file=/dev/null 170exec_prefix=NONE 171no_create= 172no_recursion= 173prefix=NONE 174program_prefix=NONE 175program_suffix=NONE 176program_transform_name=s,x,x, 177silent= 178site= 179srcdir= 180verbose= 181x_includes=NONE 182x_libraries=NONE 183bindir='${exec_prefix}/bin' 184sbindir='${exec_prefix}/sbin' 185libexecdir='${exec_prefix}/libexec' 186datadir='${prefix}/share' 187sysconfdir='${prefix}/etc' 188sharedstatedir='${prefix}/com' 189localstatedir='${prefix}/var' 190libdir='${exec_prefix}/lib' 191includedir='${prefix}/include' 192oldincludedir='/usr/include' 193infodir='${prefix}/info' 194mandir='${prefix}/man' 195 196ac_prev= 197for ac_option 198do 199 # If the previous option needs an argument, assign it. 200 if test -n "$ac_prev"; then 201 eval "$ac_prev=\$ac_option" 202 ac_prev= 203 continue 204 fi 205 206 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 207 208 # Accept the important Cygnus configure options, so we can diagnose typos. 209 210 case $ac_option in 211 212 -bindir | --bindir | --bindi | --bind | --bin | --bi) 213 ac_prev=bindir ;; 214 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 215 bindir=$ac_optarg ;; 216 217 -build | --build | --buil | --bui | --bu) 218 ac_prev=build_alias ;; 219 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 220 build_alias=$ac_optarg ;; 221 222 -cache-file | --cache-file | --cache-fil | --cache-fi \ 223 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 224 ac_prev=cache_file ;; 225 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 226 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 227 cache_file=$ac_optarg ;; 228 229 --config-cache | -C) 230 cache_file=config.cache ;; 231 232 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 233 ac_prev=datadir ;; 234 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 235 | --da=*) 236 datadir=$ac_optarg ;; 237 238 -disable-* | --disable-*) 239 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 240 # Reject names that are not valid shell variable names. 241 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 242 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 243 { (exit 1); exit; }; } 244 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 245 eval "enable_$ac_feature=no" ;; 246 247 -enable-* | --enable-*) 248 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 249 # Reject names that are not valid shell variable names. 250 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 251 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 252 { (exit 1); exit; }; } 253 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 254 case $ac_option in 255 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 256 *) ac_optarg=yes ;; 257 esac 258 eval "enable_$ac_feature='$ac_optarg'" ;; 259 260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 262 | --exec | --exe | --ex) 263 ac_prev=exec_prefix ;; 264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 266 | --exec=* | --exe=* | --ex=*) 267 exec_prefix=$ac_optarg ;; 268 269 -gas | --gas | --ga | --g) 270 # Obsolete; use --with-gas. 271 with_gas=yes ;; 272 273 -help | --help | --hel | --he | -h) 274 ac_init_help=long ;; 275 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 276 ac_init_help=recursive ;; 277 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 278 ac_init_help=short ;; 279 280 -host | --host | --hos | --ho) 281 ac_prev=host_alias ;; 282 -host=* | --host=* | --hos=* | --ho=*) 283 host_alias=$ac_optarg ;; 284 285 -includedir | --includedir | --includedi | --included | --include \ 286 | --includ | --inclu | --incl | --inc) 287 ac_prev=includedir ;; 288 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 289 | --includ=* | --inclu=* | --incl=* | --inc=*) 290 includedir=$ac_optarg ;; 291 292 -infodir | --infodir | --infodi | --infod | --info | --inf) 293 ac_prev=infodir ;; 294 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 295 infodir=$ac_optarg ;; 296 297 -libdir | --libdir | --libdi | --libd) 298 ac_prev=libdir ;; 299 -libdir=* | --libdir=* | --libdi=* | --libd=*) 300 libdir=$ac_optarg ;; 301 302 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 303 | --libexe | --libex | --libe) 304 ac_prev=libexecdir ;; 305 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 306 | --libexe=* | --libex=* | --libe=*) 307 libexecdir=$ac_optarg ;; 308 309 -localstatedir | --localstatedir | --localstatedi | --localstated \ 310 | --localstate | --localstat | --localsta | --localst \ 311 | --locals | --local | --loca | --loc | --lo) 312 ac_prev=localstatedir ;; 313 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 314 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 315 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 316 localstatedir=$ac_optarg ;; 317 318 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 319 ac_prev=mandir ;; 320 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 321 mandir=$ac_optarg ;; 322 323 -nfp | --nfp | --nf) 324 # Obsolete; use --without-fp. 325 with_fp=no ;; 326 327 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 328 | --no-cr | --no-c) 329 no_create=yes ;; 330 331 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 332 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 333 no_recursion=yes ;; 334 335 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 336 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 337 | --oldin | --oldi | --old | --ol | --o) 338 ac_prev=oldincludedir ;; 339 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 340 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 341 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 342 oldincludedir=$ac_optarg ;; 343 344 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 345 ac_prev=prefix ;; 346 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 347 prefix=$ac_optarg ;; 348 349 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 350 | --program-pre | --program-pr | --program-p) 351 ac_prev=program_prefix ;; 352 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 353 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 354 program_prefix=$ac_optarg ;; 355 356 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 357 | --program-suf | --program-su | --program-s) 358 ac_prev=program_suffix ;; 359 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 360 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 361 program_suffix=$ac_optarg ;; 362 363 -program-transform-name | --program-transform-name \ 364 | --program-transform-nam | --program-transform-na \ 365 | --program-transform-n | --program-transform- \ 366 | --program-transform | --program-transfor \ 367 | --program-transfo | --program-transf \ 368 | --program-trans | --program-tran \ 369 | --progr-tra | --program-tr | --program-t) 370 ac_prev=program_transform_name ;; 371 -program-transform-name=* | --program-transform-name=* \ 372 | --program-transform-nam=* | --program-transform-na=* \ 373 | --program-transform-n=* | --program-transform-=* \ 374 | --program-transform=* | --program-transfor=* \ 375 | --program-transfo=* | --program-transf=* \ 376 | --program-trans=* | --program-tran=* \ 377 | --progr-tra=* | --program-tr=* | --program-t=*) 378 program_transform_name=$ac_optarg ;; 379 380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 381 | -silent | --silent | --silen | --sile | --sil) 382 silent=yes ;; 383 384 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 385 ac_prev=sbindir ;; 386 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 387 | --sbi=* | --sb=*) 388 sbindir=$ac_optarg ;; 389 390 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 391 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 392 | --sharedst | --shareds | --shared | --share | --shar \ 393 | --sha | --sh) 394 ac_prev=sharedstatedir ;; 395 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 396 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 397 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 398 | --sha=* | --sh=*) 399 sharedstatedir=$ac_optarg ;; 400 401 -site | --site | --sit) 402 ac_prev=site ;; 403 -site=* | --site=* | --sit=*) 404 site=$ac_optarg ;; 405 406 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 407 ac_prev=srcdir ;; 408 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 409 srcdir=$ac_optarg ;; 410 411 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 412 | --syscon | --sysco | --sysc | --sys | --sy) 413 ac_prev=sysconfdir ;; 414 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 415 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 416 sysconfdir=$ac_optarg ;; 417 418 -target | --target | --targe | --targ | --tar | --ta | --t) 419 ac_prev=target_alias ;; 420 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 421 target_alias=$ac_optarg ;; 422 423 -v | -verbose | --verbose | --verbos | --verbo | --verb) 424 verbose=yes ;; 425 426 -version | --version | --versio | --versi | --vers | -V) 427 ac_init_version=: ;; 428 429 -with-* | --with-*) 430 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 431 # Reject names that are not valid shell variable names. 432 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 433 { echo "$as_me: error: invalid package name: $ac_package" >&2 434 { (exit 1); exit; }; } 435 ac_package=`echo $ac_package| sed 's/-/_/g'` 436 case $ac_option in 437 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 438 *) ac_optarg=yes ;; 439 esac 440 eval "with_$ac_package='$ac_optarg'" ;; 441 442 -without-* | --without-*) 443 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 444 # Reject names that are not valid shell variable names. 445 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 446 { echo "$as_me: error: invalid package name: $ac_package" >&2 447 { (exit 1); exit; }; } 448 ac_package=`echo $ac_package | sed 's/-/_/g'` 449 eval "with_$ac_package=no" ;; 450 451 --x) 452 # Obsolete; use --with-x. 453 with_x=yes ;; 454 455 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 456 | --x-incl | --x-inc | --x-in | --x-i) 457 ac_prev=x_includes ;; 458 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 459 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 460 x_includes=$ac_optarg ;; 461 462 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 463 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 464 ac_prev=x_libraries ;; 465 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 466 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 467 x_libraries=$ac_optarg ;; 468 469 -*) { echo "$as_me: error: unrecognized option: $ac_option 470Try \`$0 --help' for more information." >&2 471 { (exit 1); exit; }; } 472 ;; 473 474 *=*) 475 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 476 # Reject names that are not valid shell variable names. 477 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && 478 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 479 { (exit 1); exit; }; } 480 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 481 eval "$ac_envvar='$ac_optarg'" 482 export $ac_envvar ;; 483 484 *) 485 # FIXME: should be removed in autoconf 3.0. 486 { echo "$as_me:486: WARNING: you should use --build, --host, --target" >&5 487echo "$as_me: warning: you should use --build, --host, --target" >&2; } 488 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && 489 { echo "$as_me:489: WARNING: invalid host type: $ac_option" >&5 490echo "$as_me: warning: invalid host type: $ac_option" >&2; } 491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 492 ;; 493 494 esac 495done 496 497if test -n "$ac_prev"; then 498 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 499 { echo "$as_me: error: missing argument to $ac_option" >&2 500 { (exit 1); exit; }; } 501fi 502 503# Be sure to have absolute paths. 504for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 505 localstatedir libdir includedir oldincludedir infodir mandir \ 506 exec_prefix prefix 507do 508 eval ac_val=$`echo $ac_var` 509 case $ac_val in 510 [\\/$]* | ?:[\\/]* ) ;; 511 NONE ) ;; 512 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 513 { (exit 1); exit; }; };; 514 esac 515done 516 517# There might be people who depend on the old broken behavior: `$host' 518# used to hold the argument of --host etc. 519build=$build_alias 520host=$host_alias 521target=$target_alias 522 523# FIXME: should be removed in autoconf 3.0. 524if test "x$host_alias" != x; then 525 if test "x$build_alias" = x; then 526 cross_compiling=maybe 527 { echo "$as_me:527: WARNING: If you wanted to set the --build type, don't use --host. 528 If a cross compiler is detected then cross compile mode will be used." >&5 529echo "$as_me: warning: If you wanted to set the --build type, don't use --host. 530 If a cross compiler is detected then cross compile mode will be used." >&2; } 531 elif test "x$build_alias" != "x$host_alias"; then 532 cross_compiling=yes 533 fi 534fi 535 536ac_tool_prefix= 537test -n "$host_alias" && ac_tool_prefix=$host_alias- 538 539# Find the source files, if location was not specified. 540if test -z "$srcdir"; then 541 ac_srcdir_defaulted=yes 542 # Try the directory containing this script, then its parent. 543 ac_prog=$0 544 ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'` 545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 546 srcdir=$ac_confdir 547 if test ! -r $srcdir/$ac_unique_file; then 548 srcdir=.. 549 fi 550else 551 ac_srcdir_defaulted=no 552fi 553if test ! -r $srcdir/$ac_unique_file; then 554 if test "$ac_srcdir_defaulted" = yes; then 555 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 556 { (exit 1); exit; }; } 557 else 558 { echo "$as_me: error: cannot find sources in $srcdir" >&2 559 { (exit 1); exit; }; } 560 fi 561fi 562srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'` 563ac_env_build_alias_set=${build_alias+set} 564ac_env_build_alias_value=$build_alias 565ac_cv_env_build_alias_set=${build_alias+set} 566ac_cv_env_build_alias_value=$build_alias 567ac_env_host_alias_set=${host_alias+set} 568ac_env_host_alias_value=$host_alias 569ac_cv_env_host_alias_set=${host_alias+set} 570ac_cv_env_host_alias_value=$host_alias 571ac_env_target_alias_set=${target_alias+set} 572ac_env_target_alias_value=$target_alias 573ac_cv_env_target_alias_set=${target_alias+set} 574ac_cv_env_target_alias_value=$target_alias 575ac_env_CC_set=${CC+set} 576ac_env_CC_value=$CC 577ac_cv_env_CC_set=${CC+set} 578ac_cv_env_CC_value=$CC 579ac_env_CFLAGS_set=${CFLAGS+set} 580ac_env_CFLAGS_value=$CFLAGS 581ac_cv_env_CFLAGS_set=${CFLAGS+set} 582ac_cv_env_CFLAGS_value=$CFLAGS 583ac_env_LDFLAGS_set=${LDFLAGS+set} 584ac_env_LDFLAGS_value=$LDFLAGS 585ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 586ac_cv_env_LDFLAGS_value=$LDFLAGS 587ac_env_CPPFLAGS_set=${CPPFLAGS+set} 588ac_env_CPPFLAGS_value=$CPPFLAGS 589ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 590ac_cv_env_CPPFLAGS_value=$CPPFLAGS 591 592# 593# Report the --help message. 594# 595if test "$ac_init_help" = "long"; then 596 # Omit some internal or obsolete options to make the list less imposing. 597 # This message is too long to be a string in the A/UX 3.1 sh. 598 cat <<EOF 599\`configure' configures heimdal 0.3f to adapt to many kinds of systems. 600 601Usage: $0 [OPTION]... [VAR=VALUE]... 602 603To assign environment variables (e.g., CC, CFLAGS...), specify them as 604VAR=VALUE. See below for descriptions of some of the useful variables. 605 606Defaults for the options are specified in brackets. 607 608Configuration: 609 -h, --help display this help and exit 610 --help=short display options specific to this package 611 --help=recursive display the short help of all the included packages 612 -V, --version display version information and exit 613 -q, --quiet, --silent do not print \`checking...' messages 614 --cache-file=FILE cache test results in FILE [disabled] 615 -C, --config-cache alias for \`--cache-file=config.cache' 616 -n, --no-create do not create output files 617 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 618 619EOF 620 621 cat <<EOF 622Installation directories: 623 --prefix=PREFIX install architecture-independent files in PREFIX 624 [$ac_default_prefix] 625 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 626 [PREFIX] 627 628By default, \`make install' will install all the files in 629\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 630an installation prefix other than \`$ac_default_prefix' using \`--prefix', 631for instance \`--prefix=\$HOME'. 632 633For better control, use the options below. 634 635Fine tuning of the installation directories: 636 --bindir=DIR user executables [EPREFIX/bin] 637 --sbindir=DIR system admin executables [EPREFIX/sbin] 638 --libexecdir=DIR program executables [EPREFIX/libexec] 639 --datadir=DIR read-only architecture-independent data [PREFIX/share] 640 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 641 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 642 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 643 --libdir=DIR object code libraries [EPREFIX/lib] 644 --includedir=DIR C header files [PREFIX/include] 645 --oldincludedir=DIR C header files for non-gcc [/usr/include] 646 --infodir=DIR info documentation [PREFIX/info] 647 --mandir=DIR man documentation [PREFIX/man] 648EOF 649 650 cat <<\EOF 651 652Program names: 653 --program-prefix=PREFIX prepend PREFIX to installed program names 654 --program-suffix=SUFFIX append SUFFIX to installed program names 655 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 656 657X features: 658 --x-includes=DIR X include files are in DIR 659 --x-libraries=DIR X library files are in DIR 660 661System types: 662 --build=BUILD configure for building on BUILD [guessed] 663 --host=HOST build programs to run on HOST [BUILD] 664EOF 665fi 666 667if test -n "$ac_init_help"; then 668 case $ac_init_help in 669 short | recursive ) echo "Configuration of heimdal 0.3f:";; 670 esac 671 cat <<\EOF 672 673Optional Features: 674 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 675 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 676 --disable-dependency-tracking Speeds up one-time builds 677 --enable-dependency-tracking Do not reject slow dependency extractors 678 --enable-shared=PKGS build shared libraries default=no 679 --enable-static=PKGS build static libraries default=yes 680 --enable-fast-install=PKGS optimize for fast installation default=yes 681 --disable-libtool-lock avoid locking (might break parallel builds) 682 --enable-dce if you want support for DCE/DFS PAG's. 683 --enable-kaserver if you want the KDC to try to emulate a kaserver 684 --enable-kaserver-db if you want support for reading kaserver databases in hprop 685 --disable-otp if you don't want OTP support 686 --enable-osfc2 enable some OSF C2 support 687 --enable-bigendian the target is big endian 688 --enable-littleendian the target is little endian 689 --enable-netinfo enable netinfo for configuration lookup 690 691Optional Packages: 692 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 693 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 694 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 695 --with-gnu-ld assume the C compiler uses GNU ld default=no 696 --with-pic try to use only PIC/non-PIC objects default=use both 697 --without-berkeley-db if you don't want berkeley db 698 --without-ipv6 do not enable IPv6 support 699 --with-openldap=dir use openldap in dir 700 --with-openldap-lib=dir use openldap libraries in dir 701 --with-openldap-include=dir use openldap headers in dir 702 --with-krb4=dir use krb4 in dir 703 --with-krb4-lib=dir use krb4 libraries in dir 704 --with-krb4-include=dir use krb4 headers in dir 705 --with-readline=dir use readline in dir 706 --with-readline-lib=dir use readline libraries in dir 707 --with-readline-include=dir use readline headers in dir 708 --with-hesiod=dir use hesiod in dir 709 --with-hesiod-lib=dir use hesiod libraries in dir 710 --with-hesiod-include=dir use hesiod headers in dir 711 --with-x use the X Window System 712 713Some influential environment variables: 714 CC C compiler command 715 CFLAGS C compiler flags 716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 717 nonstandard directory <lib dir> 718 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 719 headers in a nonstandard directory <include dir> 720 721Use these variables to override the choices made by `configure' or to help 722it to find libraries and programs with nonstandard names/locations. 723 724Report bugs to <heimdal-bugs@pdc.kth.se>. 725EOF 726fi 727 728if test "$ac_init_help" = "recursive"; then 729 # If there are subdirs, report their specific --help. 730 ac_popdir=`pwd` 731 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 732 cd $ac_subdir 733 # A "../" for each directory in /$ac_subdir. 734 ac_dots=`echo $ac_subdir | 735 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 736 737 case $srcdir in 738 .) # No --srcdir option. We are building in place. 739 ac_sub_srcdir=$srcdir ;; 740 [\\/]* | ?:[\\/]* ) # Absolute path. 741 ac_sub_srcdir=$srcdir/$ac_subdir ;; 742 *) # Relative path. 743 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 744 esac 745 746 # Check for guested configure; otherwise get Cygnus style configure. 747 if test -f $ac_sub_srcdir/configure.gnu; then 748 echo 749 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 750 elif test -f $ac_sub_srcdir/configure; then 751 echo 752 $SHELL $ac_sub_srcdir/configure --help=recursive 753 elif test -f $ac_sub_srcdir/configure.in; then 754 echo 755 $ac_configure --help 756 else 757 { echo "$as_me:757: WARNING: no configuration information is in $ac_subdir" >&5 758echo "$as_me: warning: no configuration information is in $ac_subdir" >&2; } 759 fi 760 cd $ac_popdir 761 done 762fi 763 764test -n "$ac_init_help" && exit 0 765if $ac_init_version; then 766 cat <<\EOF 767configure (heimdal 0.3f) 2.49b 768 769Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 770Free Software Foundation, Inc. 771This configure script is free software; the Free Software Foundation 772gives unlimited permission to copy, distribute and modify it. 773EOF 774 exit 0 775fi 776 777# Keep a trace of the command line. 778# Strip out --no-create and --no-recursion so they do not pile up. 779# Also quote any args containing shell meta-characters. 780ac_configure_args= 781ac_sep= 782for ac_arg 783do 784 case $ac_arg in 785 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 786 | --no-cr | --no-c) ;; 787 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 788 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 789 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 790 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 791 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 792 ac_sep=" " ;; 793 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 794 ac_sep=" " ;; 795 esac 796 # Get rid of the leading space. 797done 798 799# When interrupted or exit'd, cleanup temporary files, and complete 800# config.log. 801trap 'exit_status=$? 802 test "$ac_signal" != 0 && 803 echo "$as_me: caught signal $ac_signal" >&5 804 echo "$as_me: exit $exit_status" >&5 805 rm -rf conftest* confdefs* core core.* *.core $ac_clean_files && 806 exit $exit_status 807 ' 0 808for ac_signal in 1 2 13 15; do 809 trap 'ac_status=$?; ac_signal='$ac_signal'; exit $ac_status' $ac_signal 810done 811ac_signal=0 812 813# confdefs.h avoids OS command line length limits that DEFS can exceed. 814rm -rf conftest* confdefs.h 815# AIX cpp loses on an empty file, so make sure it contains at least a newline. 816echo >confdefs.h 817 818# Let the site file select an alternate cache file if it wants to. 819# Prefer explicitly selected file to automatically selected ones. 820if test -z "$CONFIG_SITE"; then 821 if test "x$prefix" != xNONE; then 822 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 823 else 824 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 825 fi 826fi 827for ac_site_file in $CONFIG_SITE; do 828 if test -r "$ac_site_file"; then 829 echo "loading site script $ac_site_file" 830 . "$ac_site_file" 831 fi 832done 833 834if test -r "$cache_file"; then 835 # Some versions of bash will fail to source /dev/null (special 836 # files actually), so we avoid doing that. 837 if test -f "$cache_file"; then 838 { echo "$as_me:838: loading cache $cache_file" >&5 839echo "loading cache $cache_file" >&6;} 840 case $cache_file in 841 [\\/]* | ?:[\\/]* ) . $cache_file;; 842 *) . ./$cache_file;; 843 esac 844 fi 845else 846 { echo "$as_me:846: creating cache $cache_file" >&5 847echo "creating cache $cache_file" >&6;} 848 >$cache_file 849fi 850 851# Check that the precious variables saved in the cache have kept the same 852# value. 853ac_suggest_removing_cache=false 854for ac_var in `(set) 2>&1 | 855 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 856 eval ac_old_set=\$ac_cv_env_${ac_var}_set 857 eval ac_new_set=\$ac_env_${ac_var}_set 858 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 859 eval ac_new_val="\$ac_env_${ac_var}_value" 860 case $ac_old_set,$ac_new_set in 861 set,) 862 { echo "$as_me:862: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 863echo "$as_me: warning: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2; } 864 ac_suggest_removing_cache=: ;; 865 ,set) 866 { echo "$as_me:866: WARNING: \`$ac_var' was not set in the previous run" >&5 867echo "$as_me: warning: \`$ac_var' was not set in the previous run" >&2; } 868 ac_suggest_removing_cache=: ;; 869 ,);; 870 *) 871 if test "x$ac_old_val" != "x$ac_new_val"; then 872 { echo "$as_me:872: WARNING: \`$ac_var' has changed since the previous run:" >&5 873echo "$as_me: warning: \`$ac_var' has changed since the previous run:" >&2; } 874 { echo "$as_me:874: WARNING: former value: $ac_old_val" >&5 875echo "$as_me: warning: former value: $ac_old_val" >&2; } 876 { echo "$as_me:876: WARNING: current value: $ac_new_val" >&5 877echo "$as_me: warning: current value: $ac_new_val" >&2; } 878 ac_suggest_removing_cache=: 879 fi;; 880 esac 881done 882if $ac_suggest_removing_cache; then 883 { echo "$as_me:883: WARNING: changes in the environment can compromise the build" >&5 884echo "$as_me: warning: changes in the environment can compromise the build" >&2; } 885 { echo "$as_me:885: WARNING: consider removing $cache_file and starting over" >&5 886echo "$as_me: warning: consider removing $cache_file and starting over" >&2; } 887fi 888 889ac_ext=c 890ac_cpp='$CPP $CPPFLAGS' 891ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 892ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 893ac_compiler_gnu=$ac_cv_c_compiler_gnu 894 895case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 896 *c*,-n*) ECHO_N= ECHO_C=' 897' ECHO_T=' ' ;; 898 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 899 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 900esac 901 902ac_config_headers="$ac_config_headers include/config.h" 903 904 ac_config_commands="$ac_config_commands default-1" 905 906ac_ext=c 907ac_cpp='$CPP $CPPFLAGS' 908ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 909ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 910ac_compiler_gnu=$ac_cv_c_compiler_gnu 911 912if test -n "$ac_tool_prefix"; then 913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 914set dummy ${ac_tool_prefix}gcc; ac_word=$2 915echo "$as_me:915: checking for $ac_word" >&5 916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 917if test "${ac_cv_prog_CC+set}" = set; then 918 echo $ECHO_N "(cached) $ECHO_C" >&6 919else 920 if test -n "$CC"; then 921 ac_cv_prog_CC="$CC" # Let the user override the test. 922else 923 ac_save_IFS=$IFS; IFS=':' 924ac_dummy="$PATH" 925for ac_dir in $ac_dummy; do 926 IFS=$ac_save_IFS 927 test -z "$ac_dir" && ac_dir=. 928 test -f "$ac_dir/$ac_word" || continue 929ac_cv_prog_CC="${ac_tool_prefix}gcc" 930break 931done 932 933fi 934fi 935CC=$ac_cv_prog_CC 936if test -n "$CC"; then 937 echo "$as_me:937: result: $CC" >&5 938echo "${ECHO_T}$CC" >&6 939else 940 echo "$as_me:940: result: no" >&5 941echo "${ECHO_T}no" >&6 942fi 943 944fi 945if test -z "$ac_cv_prog_CC"; then 946 ac_ct_CC=$CC 947 # Extract the first word of "gcc", so it can be a program name with args. 948set dummy gcc; ac_word=$2 949echo "$as_me:949: checking for $ac_word" >&5 950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 951if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 952 echo $ECHO_N "(cached) $ECHO_C" >&6 953else 954 if test -n "$ac_ct_CC"; then 955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 956else 957 ac_save_IFS=$IFS; IFS=':' 958ac_dummy="$PATH" 959for ac_dir in $ac_dummy; do 960 IFS=$ac_save_IFS 961 test -z "$ac_dir" && ac_dir=. 962 test -f "$ac_dir/$ac_word" || continue 963ac_cv_prog_ac_ct_CC="gcc" 964break 965done 966 967fi 968fi 969ac_ct_CC=$ac_cv_prog_ac_ct_CC 970if test -n "$ac_ct_CC"; then 971 echo "$as_me:971: result: $ac_ct_CC" >&5 972echo "${ECHO_T}$ac_ct_CC" >&6 973else 974 echo "$as_me:974: result: no" >&5 975echo "${ECHO_T}no" >&6 976fi 977 978 CC=$ac_ct_CC 979else 980 CC="$ac_cv_prog_CC" 981fi 982 983if test -z "$CC"; then 984 if test -n "$ac_tool_prefix"; then 985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 986set dummy ${ac_tool_prefix}cc; ac_word=$2 987echo "$as_me:987: checking for $ac_word" >&5 988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 989if test "${ac_cv_prog_CC+set}" = set; then 990 echo $ECHO_N "(cached) $ECHO_C" >&6 991else 992 if test -n "$CC"; then 993 ac_cv_prog_CC="$CC" # Let the user override the test. 994else 995 ac_save_IFS=$IFS; IFS=':' 996ac_dummy="$PATH" 997for ac_dir in $ac_dummy; do 998 IFS=$ac_save_IFS 999 test -z "$ac_dir" && ac_dir=. 1000 test -f "$ac_dir/$ac_word" || continue 1001ac_cv_prog_CC="${ac_tool_prefix}cc" 1002break 1003done 1004 1005fi 1006fi 1007CC=$ac_cv_prog_CC 1008if test -n "$CC"; then 1009 echo "$as_me:1009: result: $CC" >&5 1010echo "${ECHO_T}$CC" >&6 1011else 1012 echo "$as_me:1012: result: no" >&5 1013echo "${ECHO_T}no" >&6 1014fi 1015 1016fi 1017if test -z "$ac_cv_prog_CC"; then 1018 ac_ct_CC=$CC 1019 # Extract the first word of "cc", so it can be a program name with args. 1020set dummy cc; ac_word=$2 1021echo "$as_me:1021: checking for $ac_word" >&5 1022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1024 echo $ECHO_N "(cached) $ECHO_C" >&6 1025else 1026 if test -n "$ac_ct_CC"; then 1027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1028else 1029 ac_save_IFS=$IFS; IFS=':' 1030ac_dummy="$PATH" 1031for ac_dir in $ac_dummy; do 1032 IFS=$ac_save_IFS 1033 test -z "$ac_dir" && ac_dir=. 1034 test -f "$ac_dir/$ac_word" || continue 1035ac_cv_prog_ac_ct_CC="cc" 1036break 1037done 1038 1039fi 1040fi 1041ac_ct_CC=$ac_cv_prog_ac_ct_CC 1042if test -n "$ac_ct_CC"; then 1043 echo "$as_me:1043: result: $ac_ct_CC" >&5 1044echo "${ECHO_T}$ac_ct_CC" >&6 1045else 1046 echo "$as_me:1046: result: no" >&5 1047echo "${ECHO_T}no" >&6 1048fi 1049 1050 CC=$ac_ct_CC 1051else 1052 CC="$ac_cv_prog_CC" 1053fi 1054 1055fi 1056if test -z "$CC"; then 1057 # Extract the first word of "cc", so it can be a program name with args. 1058set dummy cc; ac_word=$2 1059echo "$as_me:1059: checking for $ac_word" >&5 1060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1061if test "${ac_cv_prog_CC+set}" = set; then 1062 echo $ECHO_N "(cached) $ECHO_C" >&6 1063else 1064 if test -n "$CC"; then 1065 ac_cv_prog_CC="$CC" # Let the user override the test. 1066else 1067 ac_prog_rejected=no 1068 ac_save_IFS=$IFS; IFS=':' 1069ac_dummy="$PATH" 1070for ac_dir in $ac_dummy; do 1071 IFS=$ac_save_IFS 1072 test -z "$ac_dir" && ac_dir=. 1073 test -f "$ac_dir/$ac_word" || continue 1074if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1075 ac_prog_rejected=yes 1076 continue 1077fi 1078ac_cv_prog_CC="cc" 1079break 1080done 1081 1082if test $ac_prog_rejected = yes; then 1083 # We found a bogon in the path, so make sure we never use it. 1084 set dummy $ac_cv_prog_CC 1085 shift 1086 if test $# != 0; then 1087 # We chose a different compiler from the bogus one. 1088 # However, it has the same basename, so the bogon will be chosen 1089 # first if we set CC to just the basename; use the full file name. 1090 shift 1091 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1092 shift 1093 ac_cv_prog_CC="$@" 1094 fi 1095fi 1096fi 1097fi 1098CC=$ac_cv_prog_CC 1099if test -n "$CC"; then 1100 echo "$as_me:1100: result: $CC" >&5 1101echo "${ECHO_T}$CC" >&6 1102else 1103 echo "$as_me:1103: result: no" >&5 1104echo "${ECHO_T}no" >&6 1105fi 1106 1107fi 1108if test -z "$CC"; then 1109 if test -n "$ac_tool_prefix"; then 1110 for ac_prog in cl 1111 do 1112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1113set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1114echo "$as_me:1114: checking for $ac_word" >&5 1115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1116if test "${ac_cv_prog_CC+set}" = set; then 1117 echo $ECHO_N "(cached) $ECHO_C" >&6 1118else 1119 if test -n "$CC"; then 1120 ac_cv_prog_CC="$CC" # Let the user override the test. 1121else 1122 ac_save_IFS=$IFS; IFS=':' 1123ac_dummy="$PATH" 1124for ac_dir in $ac_dummy; do 1125 IFS=$ac_save_IFS 1126 test -z "$ac_dir" && ac_dir=. 1127 test -f "$ac_dir/$ac_word" || continue 1128ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1129break 1130done 1131 1132fi 1133fi 1134CC=$ac_cv_prog_CC 1135if test -n "$CC"; then 1136 echo "$as_me:1136: result: $CC" >&5 1137echo "${ECHO_T}$CC" >&6 1138else 1139 echo "$as_me:1139: result: no" >&5 1140echo "${ECHO_T}no" >&6 1141fi 1142 1143 test -n "$CC" && break 1144 done 1145fi 1146if test -z "$CC"; then 1147 ac_ct_CC=$CC 1148 for ac_prog in cl 1149do 1150 # Extract the first word of "$ac_prog", so it can be a program name with args. 1151set dummy $ac_prog; ac_word=$2 1152echo "$as_me:1152: checking for $ac_word" >&5 1153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1154if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1155 echo $ECHO_N "(cached) $ECHO_C" >&6 1156else 1157 if test -n "$ac_ct_CC"; then 1158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1159else 1160 ac_save_IFS=$IFS; IFS=':' 1161ac_dummy="$PATH" 1162for ac_dir in $ac_dummy; do 1163 IFS=$ac_save_IFS 1164 test -z "$ac_dir" && ac_dir=. 1165 test -f "$ac_dir/$ac_word" || continue 1166ac_cv_prog_ac_ct_CC="$ac_prog" 1167break 1168done 1169 1170fi 1171fi 1172ac_ct_CC=$ac_cv_prog_ac_ct_CC 1173if test -n "$ac_ct_CC"; then 1174 echo "$as_me:1174: result: $ac_ct_CC" >&5 1175echo "${ECHO_T}$ac_ct_CC" >&6 1176else 1177 echo "$as_me:1177: result: no" >&5 1178echo "${ECHO_T}no" >&6 1179fi 1180 1181 test -n "$ac_ct_CC" && break 1182done 1183 1184 CC=$ac_ct_CC 1185fi 1186 1187fi 1188 1189test -z "$CC" && { echo "$as_me: error: no acceptable cc found in \$PATH" >&2 1190 { (exit 1); exit; }; } 1191 1192echo "$as_me:1192: checking whether the C compiler works" >&5 1193echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1194cat >conftest.$ac_ext <<_ACEOF 1195#line 1195 "configure" 1196#include "confdefs.h" 1197 1198int 1199main () 1200{ 1201 1202 ; 1203 return 0; 1204} 1205_ACEOF 1206rm -f conftest.$ac_objext conftest$ac_exeext 1207if { (eval echo $as_me:1207: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 1208 # FIXME: these cross compiler hacks should be removed for autoconf 3.0 1209# If not cross compiling, check that we can run a simple program. 1210if test "$cross_compiling" != yes; then 1211 if { ac_try='./conftest$ac_exeext'; { (eval echo $as_me:1211: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; }; then 1212 cross_compiling=no 1213 else 1214 if test "$cross_compiling" = maybe; then 1215 cross_compiling=yes 1216 else 1217 { echo "$as_me: error: cannot run C compiled programs. 1218To enable cross compilation, use \`--host'." >&2 1219 { (exit 1); exit; }; } 1220 fi 1221 fi 1222fi 1223echo "$as_me:1223: result: yes" >&5 1224echo "${ECHO_T}yes" >&6 1225else 1226 echo "$as_me: failed program was:" >&5 1227 cat conftest.$ac_ext >&5 1228 echo "$as_me:1228: result: no" >&5 1229echo "${ECHO_T}no" >&6 1230{ echo "$as_me: error: C compiler cannot create executables" >&2 1231 { (exit 77); exit; }; } 1232fi 1233rm -f conftest$ac_exeext conftest.$ac_ext 1234echo "$as_me:1234: checking whether we are cross compiling" >&5 1235echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1236echo "$as_me:1236: result: $cross_compiling" >&5 1237echo "${ECHO_T}$cross_compiling" >&6 1238 1239echo "$as_me:1239: checking whether we are using the GNU C compiler" >&5 1240echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1241if test "${ac_cv_c_compiler_gnu+set}" = set; then 1242 echo $ECHO_N "(cached) $ECHO_C" >&6 1243else 1244 cat >conftest.$ac_ext <<_ACEOF 1245#line 1245 "configure" 1246#include "confdefs.h" 1247 1248int 1249main () 1250{ 1251#ifndef __GNUC__ 1252 choke me 1253#endif 1254 1255 ; 1256 return 0; 1257} 1258_ACEOF 1259rm -f conftest.$ac_objext 1260if { (eval echo $as_me:1260: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 1261 ac_compiler_gnu=yes 1262else 1263 echo "$as_me: failed program was:" >&5 1264 cat conftest.$ac_ext >&5 1265 ac_compiler_gnu=no 1266fi 1267rm -f conftest.$ac_objext conftest.$ac_ext 1268ac_cv_c_compiler_gnu=$ac_compiler_gnu 1269 1270fi 1271echo "$as_me:1271: result: $ac_cv_c_compiler_gnu" >&5 1272echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1273GCC=`test $ac_compiler_gnu = yes && echo yes` 1274echo "$as_me:1274: checking for object suffix" >&5 1275echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1276if test "${ac_cv_objext+set}" = set; then 1277 echo $ECHO_N "(cached) $ECHO_C" >&6 1278else 1279 cat >conftest.$ac_ext <<_ACEOF 1280#line 1280 "configure" 1281#include "confdefs.h" 1282 1283int 1284main () 1285{ 1286 1287 ; 1288 return 0; 1289} 1290_ACEOF 1291if { (eval echo $as_me:1291: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then 1292 for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do 1293 case $ac_file in 1294 *.$ac_ext | *.tds | *.d ) ;; 1295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1296 break;; 1297 esac 1298 done 1299 rm -f conftest.$ac_objext conftest.$ac_ext 1300else 1301 { echo "$as_me: error: cannot compile" >&2 1302 { (exit 1); exit; }; } 1303fi 1304fi 1305echo "$as_me:1305: result: $ac_cv_objext" >&5 1306echo "${ECHO_T}$ac_cv_objext" >&6 1307OBJEXT=$ac_cv_objext 1308ac_objext=$ac_cv_objext 1309 1310echo "$as_me:1310: checking for executable suffix" >&5 1311echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1312if test "${ac_cv_exeext+set}" = set; then 1313 echo $ECHO_N "(cached) $ECHO_C" >&6 1314else 1315 case "$CYGWIN $MINGW32 $EMXOS2" in 1316 *yes*) ac_cv_exeext=.exe ;; 1317 *) 1318 cat >conftest.$ac_ext <<_ACEOF 1319#line 1319 "configure" 1320#include "confdefs.h" 1321 1322int 1323main () 1324{ 1325 1326 ; 1327 return 0; 1328} 1329_ACEOF 1330 if { (eval echo $as_me:1330: \"$ac_link\") >&5; (eval $ac_link) 2>&5; }; then 1331 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1333 # work properly (i.e., refer to `conftest.exe'), while it won't with 1334 # `rm'. 1335 for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do 1336 case $ac_file in 1337 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d) ;; 1338 *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'` 1339 break;; 1340 esac 1341 done 1342 rm -f conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 1343 else 1344 { echo "$as_me: error: cannot compile and link" >&2 1345 { (exit 1); exit; }; } 1346 fi 1347 ;; 1348esac 1349fi 1350echo "$as_me:1350: result: $ac_cv_exeext" >&5 1351echo "${ECHO_T}$ac_cv_exeext" >&6 1352EXEEXT=$ac_cv_exeext 1353ac_exeext=$EXEEXT 1354 1355ac_test_CFLAGS=${CFLAGS+set} 1356ac_save_CFLAGS=$CFLAGS 1357CFLAGS="-g" 1358echo "$as_me:1358: checking whether ${CC-cc} accepts -g" >&5 1359echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" >&6 1360if test "${ac_cv_prog_cc_g+set}" = set; then 1361 echo $ECHO_N "(cached) $ECHO_C" >&6 1362else 1363 cat >conftest.$ac_ext <<_ACEOF 1364#line 1364 "configure" 1365#include "confdefs.h" 1366 1367int 1368main () 1369{ 1370 1371 ; 1372 return 0; 1373} 1374_ACEOF 1375rm -f conftest.$ac_objext 1376if { (eval echo $as_me:1376: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 1377 ac_cv_prog_cc_g=yes 1378else 1379 echo "$as_me: failed program was:" >&5 1380 cat conftest.$ac_ext >&5 1381 ac_cv_prog_cc_g=no 1382fi 1383rm -f conftest.$ac_objext conftest.$ac_ext 1384fi 1385echo "$as_me:1385: result: $ac_cv_prog_cc_g" >&5 1386echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1387if test "$ac_test_CFLAGS" = set; then 1388 CFLAGS=$ac_save_CFLAGS 1389elif test $ac_cv_prog_cc_g = yes; then 1390 if test "$GCC" = yes; then 1391 CFLAGS="-g -O2" 1392 else 1393 CFLAGS="-g" 1394 fi 1395else 1396 if test "$GCC" = yes; then 1397 CFLAGS="-O2" 1398 else 1399 CFLAGS= 1400 fi 1401fi 1402 1403echo "$as_me:1403: checking how to run the C preprocessor" >&5 1404echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1405# On Suns, sometimes $CPP names a directory. 1406if test -n "$CPP" && test -d "$CPP"; then 1407 CPP= 1408fi 1409if test -z "$CPP"; then 1410 if test "${ac_cv_prog_CPP+set}" = set; then 1411 echo $ECHO_N "(cached) $ECHO_C" >&6 1412else 1413 # Double quotes because CPP needs to be expanded 1414 for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp" 1415 do 1416 # Use a header file that comes with gcc, so configuring glibc 1417# with a fresh cross-compiler works. 1418# On the NeXT, cc -E runs the code through the compiler's parser, 1419# not just through cpp. "Syntax error" is here to catch this case. 1420cat >conftest.$ac_ext <<_ACEOF 1421#line 1421 "configure" 1422#include "confdefs.h" 1423#include <assert.h> 1424Syntax error 1425_ACEOF 1426ac_c_preproc_warn_flag=maybe 1427ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 1428if { (eval echo $as_me:1428: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 1429 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 1430 ac_cpp_err=$ac_c_preproc_warn_flag 1431 else 1432 ac_cpp_err= 1433 fi 1434else 1435 ac_cpp_err=yes 1436fi 1437 1438# Now check whether non-existent headers can be detected and how 1439# Skip if ac_cpp_err is not empty - ac_cpp is broken 1440if test -z "$ac_cpp_err"; then 1441 cat >conftest.$ac_ext <<_ACEOF 1442#line 1442 "configure" 1443#include "confdefs.h" 1444#include <ac_nonexistent.h> 1445_ACEOF 1446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 1447if { (eval echo $as_me:1447: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 1448 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 1449 ac_cpp_err=$ac_c_preproc_warn_flag 1450 else 1451 ac_cpp_err= 1452 fi 1453else 1454 ac_cpp_err=yes 1455fi 1456 1457 if test -z "$ac_cpp_err"; then 1458 # cannot detect missing includes at all 1459 ac_cpp_err=yes 1460 else 1461 if test "x$ac_cpp_err" = xmaybe; then 1462 ac_c_preproc_warn_flag=yes 1463 else 1464 ac_c_preproc_warn_flag= 1465 fi 1466 ac_cpp_err= 1467 fi 1468fi 1469rm -f conftest* 1470 1471 if test -z "$ac_cpp_err"; then 1472 break 1473 fi 1474 done 1475 ac_cv_prog_CPP=$CPP 1476 1477fi 1478 CPP=$ac_cv_prog_CPP 1479else 1480 # Use a header file that comes with gcc, so configuring glibc 1481# with a fresh cross-compiler works. 1482# On the NeXT, cc -E runs the code through the compiler's parser, 1483# not just through cpp. "Syntax error" is here to catch this case. 1484cat >conftest.$ac_ext <<_ACEOF 1485#line 1485 "configure" 1486#include "confdefs.h" 1487#include <assert.h> 1488Syntax error 1489_ACEOF 1490ac_c_preproc_warn_flag=maybe 1491ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 1492if { (eval echo $as_me:1492: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 1493 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 1494 ac_cpp_err=$ac_c_preproc_warn_flag 1495 else 1496 ac_cpp_err= 1497 fi 1498else 1499 ac_cpp_err=yes 1500fi 1501 1502# Now check whether non-existent headers can be detected and how 1503# Skip if ac_cpp_err is not empty - ac_cpp is broken 1504if test -z "$ac_cpp_err"; then 1505 cat >conftest.$ac_ext <<_ACEOF 1506#line 1506 "configure" 1507#include "confdefs.h" 1508#include <ac_nonexistent.h> 1509_ACEOF 1510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 1511if { (eval echo $as_me:1511: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 1512 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 1513 ac_cpp_err=$ac_c_preproc_warn_flag 1514 else 1515 ac_cpp_err= 1516 fi 1517else 1518 ac_cpp_err=yes 1519fi 1520 1521 if test -z "$ac_cpp_err"; then 1522 # cannot detect missing includes at all 1523 ac_cpp_err=yes 1524 else 1525 if test "x$ac_cpp_err" = xmaybe; then 1526 ac_c_preproc_warn_flag=yes 1527 else 1528 ac_c_preproc_warn_flag= 1529 fi 1530 ac_cpp_err= 1531 fi 1532fi 1533rm -f conftest* 1534 1535 ac_cv_prog_CPP=$CPP 1536fi 1537echo "$as_me:1537: result: $CPP" >&5 1538echo "${ECHO_T}$CPP" >&6 1539if test -n "$ac_cpp_err"; then 1540 { echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2 1541 { (exit 1); exit; }; } 1542fi 1543 1544echo "$as_me:1544: checking for ${CC-cc} option to accept ANSI C" >&5 1545echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 1546if test "${ac_cv_prog_cc_stdc+set}" = set; then 1547 echo $ECHO_N "(cached) $ECHO_C" >&6 1548else 1549 ac_cv_prog_cc_stdc=no 1550ac_save_CC=$CC 1551cat >conftest.$ac_ext <<_ACEOF 1552#line 1552 "configure" 1553#include "confdefs.h" 1554#include <stdarg.h> 1555#include <stdio.h> 1556#include <sys/types.h> 1557#include <sys/stat.h> 1558/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1559struct buf { int x; }; 1560FILE * (*rcsopen) (struct buf *, struct stat *, int); 1561static char *e (p, i) 1562 char **p; 1563 int i; 1564{ 1565 return p[i]; 1566} 1567static char *f (char * (*g) (char **, int), char **p, ...) 1568{ 1569 char *s; 1570 va_list v; 1571 va_start (v,p); 1572 s = g (p, va_arg (v,int)); 1573 va_end (v); 1574 return s; 1575} 1576int test (int i, double x); 1577struct s1 {int (*f) (int a);}; 1578struct s2 {int (*f) (double a);}; 1579int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1580int argc; 1581char **argv; 1582int 1583main () 1584{ 1585return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1586 ; 1587 return 0; 1588} 1589_ACEOF 1590# Don't try gcc -ansi; that turns off useful extensions and 1591# breaks some systems' header files. 1592# AIX -qlanglvl=ansi 1593# Ultrix and OSF/1 -std1 1594# HP-UX 10.20 and later -Ae 1595# HP-UX older versions -Aa -D_HPUX_SOURCE 1596# SVR4 -Xc -D__EXTENSIONS__ 1597for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1598do 1599 CC="$ac_save_CC $ac_arg" 1600 rm -f conftest.$ac_objext 1601if { (eval echo $as_me:1601: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 1602 ac_cv_prog_cc_stdc=$ac_arg 1603rm -f conftest.$ac_ext conftest.$ac_objext 1604break 1605else 1606 echo "$as_me: failed program was:" >&5 1607 cat conftest.$ac_ext >&5 1608fi 1609rm -f conftest.$ac_objext 1610done 1611CC=$ac_save_CC 1612 1613fi 1614 1615case "x$ac_cv_prog_cc_stdc" in 1616 x|xno) 1617 echo "$as_me:1617: result: none needed" >&5 1618echo "${ECHO_T}none needed" >&6 ;; 1619 *) 1620 echo "$as_me:1620: result: $ac_cv_prog_cc_stdc" >&5 1621echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1622 CC="$CC $ac_cv_prog_cc_stdc" ;; 1623esac 1624 1625ac_aux_dir= 1626for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1627 if test -f $ac_dir/install-sh; then 1628 ac_aux_dir=$ac_dir 1629 ac_install_sh="$ac_aux_dir/install-sh -c" 1630 break 1631 elif test -f $ac_dir/install.sh; then 1632 ac_aux_dir=$ac_dir 1633 ac_install_sh="$ac_aux_dir/install.sh -c" 1634 break 1635 elif test -f $ac_dir/shtool; then 1636 ac_aux_dir=$ac_dir 1637 ac_install_sh="$ac_aux_dir/shtool install -c" 1638 break 1639 fi 1640done 1641if test -z "$ac_aux_dir"; then 1642 { echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2 1643 { (exit 1); exit; }; } 1644fi 1645ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1646ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1647ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1648 1649# Find a good install program. We prefer a C program (faster), 1650# so one script is as good as another. But avoid the broken or 1651# incompatible versions: 1652# SysV /etc/install, /usr/sbin/install 1653# SunOS /usr/etc/install 1654# IRIX /sbin/install 1655# AIX /bin/install 1656# AmigaOS /C/install, which installs bootblocks on floppy discs 1657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1658# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1660# ./install, which can be erroneously created by make from ./install.sh. 1661echo "$as_me:1661: checking for a BSD compatible install" >&5 1662echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 1663if test -z "$INSTALL"; then 1664if test "${ac_cv_path_install+set}" = set; then 1665 echo $ECHO_N "(cached) $ECHO_C" >&6 1666else 1667 ac_save_IFS=$IFS; IFS=':' 1668 for ac_dir in $PATH; do 1669 # Account for people who put trailing slashes in PATH elements. 1670 case $ac_dir/ in 1671 / | ./ | .// | /cC/* \ 1672 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 1673 | /usr/ucb/* ) ;; 1674 *) 1675 # OSF1 and SCO ODT 3.0 have their own names for install. 1676 # Don't use installbsd from OSF since it installs stuff as root 1677 # by default. 1678 for ac_prog in ginstall scoinst install; do 1679 if test -f "$ac_dir/$ac_prog"; then 1680 if test $ac_prog = install && 1681 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1682 # AIX install. It has an incompatible calling convention. 1683 : 1684 elif test $ac_prog = install && 1685 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1686 # program-specific install script used by HP pwplus--don't use. 1687 : 1688 else 1689 ac_cv_path_install="$ac_dir/$ac_prog -c" 1690 break 2 1691 fi 1692 fi 1693 done 1694 ;; 1695 esac 1696 done 1697 IFS=$ac_save_IFS 1698 1699fi 1700 if test "${ac_cv_path_install+set}" = set; then 1701 INSTALL=$ac_cv_path_install 1702 else 1703 # As a last resort, use the slow shell script. We don't cache a 1704 # path for INSTALL within a source directory, because that will 1705 # break other packages using the cache if that directory is 1706 # removed, or if the path is relative. 1707 INSTALL=$ac_install_sh 1708 fi 1709fi 1710echo "$as_me:1710: result: $INSTALL" >&5 1711echo "${ECHO_T}$INSTALL" >&6 1712 1713# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1714# It thinks the first close brace ends the variable substitution. 1715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1716 1717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1718 1719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1720 1721echo "$as_me:1721: checking whether build environment is sane" >&5 1722echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1723# Just in case 1724sleep 1 1725echo timestamp > conftestfile 1726# Do `set' in a subshell so we don't clobber the current shell's 1727# arguments. Must try -L first in case configure is actually a 1728# symlink; some systems play weird games with the mod time of symlinks 1729# (eg FreeBSD returns the mod time of the symlink's containing 1730# directory). 1731if ( 1732 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 1733 if test "$*" = "X"; then 1734 # -L didn't work. 1735 set X `ls -t $srcdir/configure conftestfile` 1736 fi 1737 if test "$*" != "X $srcdir/configure conftestfile" \ 1738 && test "$*" != "X conftestfile $srcdir/configure"; then 1739 1740 # If neither matched, then we have a broken ls. This can happen 1741 # if, for instance, CONFIG_SHELL is bash and it inherits a 1742 # broken ls alias from the environment. This has actually 1743 # happened. Such a system could not be considered "sane". 1744 { echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1745alias in your environment" >&2 1746 { (exit 1); exit; }; } 1747 fi 1748 1749 test "$2" = conftestfile 1750 ) 1751then 1752 # Ok. 1753 : 1754else 1755 { echo "$as_me: error: newly created file is older than distributed files! 1756Check your system clock" >&2 1757 { (exit 1); exit; }; } 1758fi 1759rm -f conftest* 1760echo "$as_me:1760: result: yes" >&5 1761echo "${ECHO_T}yes" >&6 1762if test "$program_transform_name" = s,x,x,; then 1763 program_transform_name= 1764else 1765 # Double any \ or $. echo might interpret backslashes. 1766 cat <<\EOF >conftestsed 1767s,\\,\\\\,g; s,\$,$$,g 1768EOF 1769 program_transform_name=`echo $program_transform_name | sed -f conftestsed` 1770 rm -f conftestsed 1771fi 1772test "$program_prefix" != NONE && 1773 program_transform_name="s,^,${program_prefix},;$program_transform_name" 1774# Use a double $ so make ignores it. 1775test "$program_suffix" != NONE && 1776 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 1777 1778# sed with no file args requires a program. 1779test -z "$program_transform_name" && program_transform_name="s,x,x," 1780 1781test x"${MISSING+set}" = xset || \ 1782 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing" 1783# Use eval to expand $SHELL 1784if eval "$MISSING --run :"; then 1785 am_missing_run="$MISSING --run " 1786else 1787 am_missing_run= 1788 am_backtick='`' 1789 { echo "$as_me:1789: WARNING: ${am_backtick}missing' script is too old or missing" >&5 1790echo "$as_me: warning: ${am_backtick}missing' script is too old or missing" >&2; } 1791fi 1792 1793for ac_prog in mawk gawk nawk awk 1794do 1795 # Extract the first word of "$ac_prog", so it can be a program name with args. 1796set dummy $ac_prog; ac_word=$2 1797echo "$as_me:1797: checking for $ac_word" >&5 1798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1799if test "${ac_cv_prog_AWK+set}" = set; then 1800 echo $ECHO_N "(cached) $ECHO_C" >&6 1801else 1802 if test -n "$AWK"; then 1803 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1804else 1805 ac_save_IFS=$IFS; IFS=':' 1806ac_dummy="$PATH" 1807for ac_dir in $ac_dummy; do 1808 IFS=$ac_save_IFS 1809 test -z "$ac_dir" && ac_dir=. 1810 test -f "$ac_dir/$ac_word" || continue 1811ac_cv_prog_AWK="$ac_prog" 1812break 1813done 1814 1815fi 1816fi 1817AWK=$ac_cv_prog_AWK 1818if test -n "$AWK"; then 1819 echo "$as_me:1819: result: $AWK" >&5 1820echo "${ECHO_T}$AWK" >&6 1821else 1822 echo "$as_me:1822: result: no" >&5 1823echo "${ECHO_T}no" >&6 1824fi 1825 1826 test -n "$AWK" && break 1827done 1828 1829echo "$as_me:1829: checking whether ${MAKE-make} sets \${MAKE}" >&5 1830echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1831set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1832if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1833 echo $ECHO_N "(cached) $ECHO_C" >&6 1834else 1835 cat >conftestmake <<\EOF 1836all: 1837 @echo 'ac_maketemp="${MAKE}"' 1838EOF 1839# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1840eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1841if test -n "$ac_maketemp"; then 1842 eval ac_cv_prog_make_${ac_make}_set=yes 1843else 1844 eval ac_cv_prog_make_${ac_make}_set=no 1845fi 1846rm -f conftestmake 1847fi 1848if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1849 echo "$as_me:1849: result: yes" >&5 1850echo "${ECHO_T}yes" >&6 1851 SET_MAKE= 1852else 1853 echo "$as_me:1853: result: no" >&5 1854echo "${ECHO_T}no" >&6 1855 SET_MAKE="MAKE=${MAKE-make}" 1856fi 1857 1858# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 1859if test "${enable_dependency_tracking+set}" = set; then 1860 enableval="$enable_dependency_tracking" 1861 1862fi; 1863if test "x$enable_dependency_tracking" = xno; then 1864 AMDEP="#" 1865else 1866 am_depcomp="$ac_aux_dir/depcomp" 1867 if test ! -f "$am_depcomp"; then 1868 AMDEP="#" 1869 else 1870 AMDEP= 1871 fi 1872fi 1873 1874if test -z "$AMDEP"; then 1875 AMDEPBACKSLASH='\' 1876else 1877 AMDEPBACKSLASH= 1878fi 1879 1880if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then 1881 DEPDIR=.deps 1882 # We redirect because .deps might already exist and be populated. 1883 # In this situation we don't want to see an error. 1884 rmdir .deps > /dev/null 2>&1 1885else 1886 DEPDIR=_deps 1887fi 1888 1889ac_config_commands="$ac_config_commands default-2" 1890 1891# test to see if srcdir already configured 1892if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 1893 test -f $srcdir/config.status; then 1894 { echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2 1895 { (exit 1); exit; }; } 1896fi 1897 1898# Define the identity of the package. 1899PACKAGE=heimdal 1900VERSION=0.3f 1901 1902cat >>confdefs.h <<EOF 1903#define PACKAGE "$PACKAGE" 1904EOF 1905 1906cat >>confdefs.h <<EOF 1907#define VERSION "$VERSION" 1908EOF 1909 1910# Some tools Automake needs. 1911 1912ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 1913 1914AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1915 1916AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 1917 1918AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1919 1920MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1921 1922AMTAR=${AMTAR-"${am_missing_run}tar"} 1923 1924if test -z "$install_sh"; then 1925 install_sh="$ac_aux_dir/install-sh" 1926 test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh" 1927 test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh" 1928 install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`" 1929fi 1930 1931# We need awk for the "check" target. The system "awk" is bad on 1932# some platforms. 1933 1934depcc="$CC" 1935depcpp="$CPP" 1936echo "$as_me:1936: checking dependency style of $depcc" >&5 1937echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 1938if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 1939 echo $ECHO_N "(cached) $ECHO_C" >&6 1940else 1941 1942if test -z "$AMDEP"; then 1943 echo '#include "conftest.h"' > conftest.c 1944 echo 'int i;' > conftest.h 1945 1946 am_cv_CC_dependencies_compiler_type=none 1947 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do 1948 case "$depmode" in 1949 nosideeffect) 1950 # after this tag, mechanisms are not by side-effect, so they'll 1951 # only be used when explicitly requested 1952 if test "x$enable_dependency_tracking" = xyes; then 1953 continue 1954 else 1955 break 1956 fi 1957 ;; 1958 none) break ;; 1959 esac 1960 # We check with `-c' and `-o' for the sake of the "dashmstdout" 1961 # mode. It turns out that the SunPro C++ compiler does not properly 1962 # handle `-M -o', and we need to detect this. 1963 if depmode="$depmode" \ 1964 source=conftest.c object=conftest.o \ 1965 depfile=conftest.Po tmpdepfile=conftest.TPo \ 1966 $SHELL $am_depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 1967 grep conftest.h conftest.Po > /dev/null 2>&1; then 1968 am_cv_CC_dependencies_compiler_type="$depmode" 1969 break 1970 fi 1971 done 1972 1973 rm -f conftest.* 1974else 1975 am_cv_CC_dependencies_compiler_type=none 1976fi 1977 1978fi 1979 1980echo "$as_me:1980: result: $am_cv_CC_dependencies_compiler_type" >&5 1981echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 1982CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 1983 1984# Make sure we can run config.sub. 1985$ac_config_sub sun4 >/dev/null 2>&1 || 1986 { echo "$as_me: error: cannot run $ac_config_sub" >&2 1987 { (exit 1); exit; }; } 1988 1989echo "$as_me:1989: checking build system type" >&5 1990echo $ECHO_N "checking build system type... $ECHO_C" >&6 1991if test "${ac_cv_build+set}" = set; then 1992 echo $ECHO_N "(cached) $ECHO_C" >&6 1993else 1994 ac_cv_build_alias=$build_alias 1995test -z "$ac_cv_build_alias" && 1996 ac_cv_build_alias=`$ac_config_guess` 1997test -z "$ac_cv_build_alias" && 1998 { echo "$as_me: error: cannot guess build type; you must specify one" >&2 1999 { (exit 1); exit; }; } 2000ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2001 { echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2 2002 { (exit 1); exit; }; } 2003 2004fi 2005echo "$as_me:2005: result: $ac_cv_build" >&5 2006echo "${ECHO_T}$ac_cv_build" >&6 2007build=$ac_cv_build 2008build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2009build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2010build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2011 2012echo "$as_me:2012: checking host system type" >&5 2013echo $ECHO_N "checking host system type... $ECHO_C" >&6 2014if test "${ac_cv_host+set}" = set; then 2015 echo $ECHO_N "(cached) $ECHO_C" >&6 2016else 2017 ac_cv_host_alias=$host_alias 2018test -z "$ac_cv_host_alias" && 2019 ac_cv_host_alias=$ac_cv_build_alias 2020ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2021 { echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2 2022 { (exit 1); exit; }; } 2023 2024fi 2025echo "$as_me:2025: result: $ac_cv_host" >&5 2026echo "${ECHO_T}$ac_cv_host" >&6 2027host=$ac_cv_host 2028host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2029host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2030host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2031 2032CANONICAL_HOST=$host 2033 2034sunos=no 2035case "$host" in 2036*-*-sunos4*) 2037 sunos=40 2038 ;; 2039*-*-solaris2.7) 2040 sunos=57 2041 ;; 2042*-*-solaris2.8) 2043 sunos=58 2044 ;; 2045*-*-solaris2*) 2046 sunos=50 2047 ;; 2048esac 2049if test "$sunos" != no; then 2050 2051cat >>confdefs.h <<EOF 2052#define SunOS $sunos 2053EOF 2054 2055fi 2056 2057aix=no 2058case "$host" in 2059*-*-aix3*) 2060 aix=3 2061 ;; 2062*-*-aix4*) 2063 aix=4 2064 ;; 2065esac 2066 2067#test -z "$CFLAGS" && CFLAGS="-g" 2068 2069for ac_prog in 'bison -y' byacc 2070do 2071 # Extract the first word of "$ac_prog", so it can be a program name with args. 2072set dummy $ac_prog; ac_word=$2 2073echo "$as_me:2073: checking for $ac_word" >&5 2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2075if test "${ac_cv_prog_YACC+set}" = set; then 2076 echo $ECHO_N "(cached) $ECHO_C" >&6 2077else 2078 if test -n "$YACC"; then 2079 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2080else 2081 ac_save_IFS=$IFS; IFS=':' 2082ac_dummy="$PATH" 2083for ac_dir in $ac_dummy; do 2084 IFS=$ac_save_IFS 2085 test -z "$ac_dir" && ac_dir=. 2086 test -f "$ac_dir/$ac_word" || continue 2087ac_cv_prog_YACC="$ac_prog" 2088break 2089done 2090 2091fi 2092fi 2093YACC=$ac_cv_prog_YACC 2094if test -n "$YACC"; then 2095 echo "$as_me:2095: result: $YACC" >&5 2096echo "${ECHO_T}$YACC" >&6 2097else 2098 echo "$as_me:2098: result: no" >&5 2099echo "${ECHO_T}no" >&6 2100fi 2101 2102 test -n "$YACC" && break 2103done 2104test -n "$YACC" || YACC="yacc" 2105 2106for ac_prog in flex lex 2107do 2108 # Extract the first word of "$ac_prog", so it can be a program name with args. 2109set dummy $ac_prog; ac_word=$2 2110echo "$as_me:2110: checking for $ac_word" >&5 2111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2112if test "${ac_cv_prog_LEX+set}" = set; then 2113 echo $ECHO_N "(cached) $ECHO_C" >&6 2114else 2115 if test -n "$LEX"; then 2116 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2117else 2118 ac_save_IFS=$IFS; IFS=':' 2119ac_dummy="$PATH" 2120for ac_dir in $ac_dummy; do 2121 IFS=$ac_save_IFS 2122 test -z "$ac_dir" && ac_dir=. 2123 test -f "$ac_dir/$ac_word" || continue 2124ac_cv_prog_LEX="$ac_prog" 2125break 2126done 2127 2128fi 2129fi 2130LEX=$ac_cv_prog_LEX 2131if test -n "$LEX"; then 2132 echo "$as_me:2132: result: $LEX" >&5 2133echo "${ECHO_T}$LEX" >&6 2134else 2135 echo "$as_me:2135: result: no" >&5 2136echo "${ECHO_T}no" >&6 2137fi 2138 2139 test -n "$LEX" && break 2140done 2141test -n "$LEX" || LEX="${am_missing_run}flex" 2142 2143for ac_prog in flex lex 2144do 2145 # Extract the first word of "$ac_prog", so it can be a program name with args. 2146set dummy $ac_prog; ac_word=$2 2147echo "$as_me:2147: checking for $ac_word" >&5 2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2149if test "${ac_cv_prog_LEX+set}" = set; then 2150 echo $ECHO_N "(cached) $ECHO_C" >&6 2151else 2152 if test -n "$LEX"; then 2153 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2154else 2155 ac_save_IFS=$IFS; IFS=':' 2156ac_dummy="$PATH" 2157for ac_dir in $ac_dummy; do 2158 IFS=$ac_save_IFS 2159 test -z "$ac_dir" && ac_dir=. 2160 test -f "$ac_dir/$ac_word" || continue 2161ac_cv_prog_LEX="$ac_prog" 2162break 2163done 2164 2165fi 2166fi 2167LEX=$ac_cv_prog_LEX 2168if test -n "$LEX"; then 2169 echo "$as_me:2169: result: $LEX" >&5 2170echo "${ECHO_T}$LEX" >&6 2171else 2172 echo "$as_me:2172: result: no" >&5 2173echo "${ECHO_T}no" >&6 2174fi 2175 2176 test -n "$LEX" && break 2177done 2178test -n "$LEX" || LEX=":" 2179 2180if test -z "$LEXLIB" 2181then 2182 2183echo "$as_me:2183: checking for yywrap in -lfl" >&5 2184echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 2185if test "${ac_cv_lib_fl_yywrap+set}" = set; then 2186 echo $ECHO_N "(cached) $ECHO_C" >&6 2187else 2188 ac_check_lib_save_LIBS=$LIBS 2189LIBS="-lfl $LIBS" 2190cat >conftest.$ac_ext <<_ACEOF 2191#line 2191 "configure" 2192#include "confdefs.h" 2193 2194/* Override any gcc2 internal prototype to avoid an error. */ 2195#ifdef __cplusplus 2196extern "C" 2197#endif 2198/* We use char because int might match the return type of a gcc2 2199 builtin and then its argument prototype would still apply. */ 2200char yywrap (); 2201int 2202main () 2203{ 2204yywrap (); 2205 ; 2206 return 0; 2207} 2208_ACEOF 2209rm -f conftest.$ac_objext conftest$ac_exeext 2210if { (eval echo $as_me:2210: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 2211 ac_cv_lib_fl_yywrap=yes 2212else 2213 echo "$as_me: failed program was:" >&5 2214 cat conftest.$ac_ext >&5 2215 ac_cv_lib_fl_yywrap=no 2216fi 2217rm -f conftest$ac_exeext conftest.$ac_ext 2218LIBS=$ac_check_lib_save_LIBS 2219fi 2220echo "$as_me:2220: result: $ac_cv_lib_fl_yywrap" >&5 2221echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 2222if test $ac_cv_lib_fl_yywrap = yes; then 2223 LEXLIB="-lfl" 2224else 2225 2226echo "$as_me:2226: checking for yywrap in -ll" >&5 2227echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 2228if test "${ac_cv_lib_l_yywrap+set}" = set; then 2229 echo $ECHO_N "(cached) $ECHO_C" >&6 2230else 2231 ac_check_lib_save_LIBS=$LIBS 2232LIBS="-ll $LIBS" 2233cat >conftest.$ac_ext <<_ACEOF 2234#line 2234 "configure" 2235#include "confdefs.h" 2236 2237/* Override any gcc2 internal prototype to avoid an error. */ 2238#ifdef __cplusplus 2239extern "C" 2240#endif 2241/* We use char because int might match the return type of a gcc2 2242 builtin and then its argument prototype would still apply. */ 2243char yywrap (); 2244int 2245main () 2246{ 2247yywrap (); 2248 ; 2249 return 0; 2250} 2251_ACEOF 2252rm -f conftest.$ac_objext conftest$ac_exeext 2253if { (eval echo $as_me:2253: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 2254 ac_cv_lib_l_yywrap=yes 2255else 2256 echo "$as_me: failed program was:" >&5 2257 cat conftest.$ac_ext >&5 2258 ac_cv_lib_l_yywrap=no 2259fi 2260rm -f conftest$ac_exeext conftest.$ac_ext 2261LIBS=$ac_check_lib_save_LIBS 2262fi 2263echo "$as_me:2263: result: $ac_cv_lib_l_yywrap" >&5 2264echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 2265if test $ac_cv_lib_l_yywrap = yes; then 2266 LEXLIB="-ll" 2267fi 2268 2269fi 2270 2271fi 2272 2273if test "x$LEX" != "x:"; then 2274 echo "$as_me:2274: checking lex output file root" >&5 2275echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 2276if test "${ac_cv_prog_lex_root+set}" = set; then 2277 echo $ECHO_N "(cached) $ECHO_C" >&6 2278else 2279 # The minimal lex program is just a single line: %%. But some broken lexes 2280# (Solaris, I think it was) want two %% lines, so accommodate them. 2281echo '%% 2282%%' | $LEX 2283if test -f lex.yy.c; then 2284 ac_cv_prog_lex_root=lex.yy 2285elif test -f lexyy.c; then 2286 ac_cv_prog_lex_root=lexyy 2287else 2288 { echo "$as_me: error: cannot find output from $LEX; giving up" >&2 2289 { (exit 1); exit; }; } 2290fi 2291fi 2292echo "$as_me:2292: result: $ac_cv_prog_lex_root" >&5 2293echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 2294LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 2295 2296echo "$as_me:2296: checking whether yytext is a pointer" >&5 2297echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 2298if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 2299 echo $ECHO_N "(cached) $ECHO_C" >&6 2300else 2301 # POSIX says lex can declare yytext either as a pointer or an array; the 2302# default is implementation-dependent. Figure out which it is, since 2303# not all implementations provide the %pointer and %array declarations. 2304ac_cv_prog_lex_yytext_pointer=no 2305echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 2306ac_save_LIBS=$LIBS 2307LIBS="$LIBS $LEXLIB" 2308cat >conftest.$ac_ext <<_ACEOF 2309`cat $LEX_OUTPUT_ROOT.c` 2310_ACEOF 2311rm -f conftest.$ac_objext conftest$ac_exeext 2312if { (eval echo $as_me:2312: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 2313 ac_cv_prog_lex_yytext_pointer=yes 2314else 2315 echo "$as_me: failed program was:" >&5 2316 cat conftest.$ac_ext >&5 2317fi 2318rm -f conftest$ac_exeext conftest.$ac_ext 2319LIBS=$ac_save_LIBS 2320rm -f "${LEX_OUTPUT_ROOT}.c" 2321 2322fi 2323echo "$as_me:2323: result: $ac_cv_prog_lex_yytext_pointer" >&5 2324echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 2325if test $ac_cv_prog_lex_yytext_pointer = yes; then 2326 2327cat >>confdefs.h <<\EOF 2328#define YYTEXT_POINTER 1 2329EOF 2330 2331fi 2332 2333fi 2334 2335if test -n "$ac_tool_prefix"; then 2336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2337set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2338echo "$as_me:2338: checking for $ac_word" >&5 2339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2340if test "${ac_cv_prog_RANLIB+set}" = set; then 2341 echo $ECHO_N "(cached) $ECHO_C" >&6 2342else 2343 if test -n "$RANLIB"; then 2344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2345else 2346 ac_save_IFS=$IFS; IFS=':' 2347ac_dummy="$PATH" 2348for ac_dir in $ac_dummy; do 2349 IFS=$ac_save_IFS 2350 test -z "$ac_dir" && ac_dir=. 2351 test -f "$ac_dir/$ac_word" || continue 2352ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2353break 2354done 2355 2356fi 2357fi 2358RANLIB=$ac_cv_prog_RANLIB 2359if test -n "$RANLIB"; then 2360 echo "$as_me:2360: result: $RANLIB" >&5 2361echo "${ECHO_T}$RANLIB" >&6 2362else 2363 echo "$as_me:2363: result: no" >&5 2364echo "${ECHO_T}no" >&6 2365fi 2366 2367fi 2368if test -z "$ac_cv_prog_RANLIB"; then 2369 ac_ct_RANLIB=$RANLIB 2370 # Extract the first word of "ranlib", so it can be a program name with args. 2371set dummy ranlib; ac_word=$2 2372echo "$as_me:2372: checking for $ac_word" >&5 2373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2374if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2375 echo $ECHO_N "(cached) $ECHO_C" >&6 2376else 2377 if test -n "$ac_ct_RANLIB"; then 2378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2379else 2380 ac_save_IFS=$IFS; IFS=':' 2381ac_dummy="$PATH" 2382for ac_dir in $ac_dummy; do 2383 IFS=$ac_save_IFS 2384 test -z "$ac_dir" && ac_dir=. 2385 test -f "$ac_dir/$ac_word" || continue 2386ac_cv_prog_ac_ct_RANLIB="ranlib" 2387break 2388done 2389 2390 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2391fi 2392fi 2393ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2394if test -n "$ac_ct_RANLIB"; then 2395 echo "$as_me:2395: result: $ac_ct_RANLIB" >&5 2396echo "${ECHO_T}$ac_ct_RANLIB" >&6 2397else 2398 echo "$as_me:2398: result: no" >&5 2399echo "${ECHO_T}no" >&6 2400fi 2401 2402 RANLIB=$ac_ct_RANLIB 2403else 2404 RANLIB="$ac_cv_prog_RANLIB" 2405fi 2406 2407for ac_prog in mawk gawk nawk awk 2408do 2409 # Extract the first word of "$ac_prog", so it can be a program name with args. 2410set dummy $ac_prog; ac_word=$2 2411echo "$as_me:2411: checking for $ac_word" >&5 2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2413if test "${ac_cv_prog_AWK+set}" = set; then 2414 echo $ECHO_N "(cached) $ECHO_C" >&6 2415else 2416 if test -n "$AWK"; then 2417 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2418else 2419 ac_save_IFS=$IFS; IFS=':' 2420ac_dummy="$PATH" 2421for ac_dir in $ac_dummy; do 2422 IFS=$ac_save_IFS 2423 test -z "$ac_dir" && ac_dir=. 2424 test -f "$ac_dir/$ac_word" || continue 2425ac_cv_prog_AWK="$ac_prog" 2426break 2427done 2428 2429fi 2430fi 2431AWK=$ac_cv_prog_AWK 2432if test -n "$AWK"; then 2433 echo "$as_me:2433: result: $AWK" >&5 2434echo "${ECHO_T}$AWK" >&6 2435else 2436 echo "$as_me:2436: result: no" >&5 2437echo "${ECHO_T}no" >&6 2438fi 2439 2440 test -n "$AWK" && break 2441done 2442 2443echo "$as_me:2443: checking for ln -s or something else" >&5 2444echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6 2445if test "${ac_cv_prog_LN_S+set}" = set; then 2446 echo $ECHO_N "(cached) $ECHO_C" >&6 2447else 2448 rm -f conftestdata 2449if ln -s X conftestdata 2>/dev/null 2450then 2451 rm -f conftestdata 2452 ac_cv_prog_LN_S="ln -s" 2453else 2454 touch conftestdata1 2455 if ln conftestdata1 conftestdata2; then 2456 rm -f conftestdata* 2457 ac_cv_prog_LN_S=ln 2458 else 2459 ac_cv_prog_LN_S=cp 2460 fi 2461fi 2462fi 2463LN_S="$ac_cv_prog_LN_S" 2464echo "$as_me:2464: result: $ac_cv_prog_LN_S" >&5 2465echo "${ECHO_T}$ac_cv_prog_LN_S" >&6 2466 2467# Check whether --with-mips_abi or --without-mips_abi was given. 2468if test "${with_mips_abi+set}" = set; then 2469 withval="$with_mips_abi" 2470 2471fi; 2472 2473case "$host_os" in 2474irix*) 2475with_mips_abi="${with_mips_abi:-yes}" 2476if test -n "$GCC"; then 2477 2478# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 2479# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 2480# 2481# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 2482# GCC and revert back to O32. The same goes if O32 is asked for - old 2483# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 2484# 2485# Don't you just love *all* the different SGI ABIs? 2486 2487case "${with_mips_abi}" in 2488 32|o32) abi='-mabi=32'; abilibdirext='' ;; 2489 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 2490 64) abi='-mabi=64'; abilibdirext='64' ;; 2491 no) abi=''; abilibdirext='';; 2492 *) { echo "$as_me: error: \"Invalid ABI specified\"" >&2 2493 { (exit 1); exit; }; } ;; 2494esac 2495if test -n "$abi" ; then 2496ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 2497echo "$as_me:2497: checking if $CC supports the $abi option" >&5 2498echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6 2499if eval "test \"\${$ac_foo+set}\" = set"; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 2503save_CFLAGS="$CFLAGS" 2504CFLAGS="$CFLAGS $abi" 2505cat >conftest.$ac_ext <<_ACEOF 2506#line 2506 "configure" 2507#include "confdefs.h" 2508 2509int 2510main () 2511{ 2512int x; 2513 ; 2514 return 0; 2515} 2516_ACEOF 2517rm -f conftest.$ac_objext 2518if { (eval echo $as_me:2518: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 2519 eval $ac_foo=yes 2520else 2521 echo "$as_me: failed program was:" >&5 2522 cat conftest.$ac_ext >&5 2523 eval $ac_foo=no 2524fi 2525rm -f conftest.$ac_objext conftest.$ac_ext 2526CFLAGS="$save_CFLAGS" 2527 2528fi 2529 2530ac_res=`eval echo \\\$$ac_foo` 2531echo "$as_me:2531: result: $ac_res" >&5 2532echo "${ECHO_T}$ac_res" >&6 2533if test $ac_res = no; then 2534# Try to figure out why that failed... 2535case $abi in 2536 -mabi=32) 2537 save_CFLAGS="$CFLAGS" 2538 CFLAGS="$CFLAGS -mabi=n32" 2539 cat >conftest.$ac_ext <<_ACEOF 2540#line 2540 "configure" 2541#include "confdefs.h" 2542 2543int 2544main () 2545{ 2546int x; 2547 ; 2548 return 0; 2549} 2550_ACEOF 2551rm -f conftest.$ac_objext 2552if { (eval echo $as_me:2552: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 2553 ac_res=yes 2554else 2555 echo "$as_me: failed program was:" >&5 2556 cat conftest.$ac_ext >&5 2557 ac_res=no 2558fi 2559rm -f conftest.$ac_objext conftest.$ac_ext 2560 CLAGS="$save_CFLAGS" 2561 if test $ac_res = yes; then 2562 # New GCC 2563 { echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2 2564 { (exit 1); exit; }; } 2565 fi 2566 # Old GCC 2567 abi='' 2568 abilibdirext='' 2569 ;; 2570 -mabi=n32|-mabi=64) 2571 if test $with_mips_abi = yes; then 2572 # Old GCC, default to O32 2573 abi='' 2574 abilibdirext='' 2575 else 2576 # Some broken GCC 2577 { echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2 2578 { (exit 1); exit; }; } 2579 fi 2580 ;; 2581esac 2582fi #if test $ac_res = no; then 2583fi #if test -n "$abi" ; then 2584else 2585case "${with_mips_abi}" in 2586 32|o32) abi='-32'; abilibdirext='' ;; 2587 n32|yes) abi='-n32'; abilibdirext='32' ;; 2588 64) abi='-64'; abilibdirext='64' ;; 2589 no) abi=''; abilibdirext='';; 2590 *) { echo "$as_me: error: \"Invalid ABI specified\"" >&2 2591 { (exit 1); exit; }; } ;; 2592esac 2593fi #if test -n "$GCC"; then 2594;; 2595esac 2596 2597CC="$CC $abi" 2598libdir="$libdir$abilibdirext" 2599 2600echo "$as_me:2600: checking for __attribute__" >&5 2601echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 2602if test "${ac_cv___attribute__+set}" = set; then 2603 echo $ECHO_N "(cached) $ECHO_C" >&6 2604else 2605 2606cat >conftest.$ac_ext <<_ACEOF 2607#line 2607 "configure" 2608#include "confdefs.h" 2609 2610#include <stdlib.h> 2611 2612int 2613main () 2614{ 2615 2616static void foo(void) __attribute__ ((noreturn)); 2617 2618static void 2619foo(void) 2620{ 2621 exit(1); 2622} 2623 2624 ; 2625 return 0; 2626} 2627_ACEOF 2628rm -f conftest.$ac_objext 2629if { (eval echo $as_me:2629: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 2630 ac_cv___attribute__=yes 2631else 2632 echo "$as_me: failed program was:" >&5 2633 cat conftest.$ac_ext >&5 2634 ac_cv___attribute__=no 2635fi 2636rm -f conftest.$ac_objext conftest.$ac_ext 2637fi 2638 2639if test "$ac_cv___attribute__" = "yes"; then 2640 2641cat >>confdefs.h <<\EOF 2642#define HAVE___ATTRIBUTE__ 1 2643EOF 2644 2645fi 2646echo "$as_me:2646: result: $ac_cv___attribute__" >&5 2647echo "${ECHO_T}$ac_cv___attribute__" >&6 2648 2649# Check whether --enable-shared or --disable-shared was given. 2650if test "${enable_shared+set}" = set; then 2651 enableval="$enable_shared" 2652 p=${PACKAGE-default} 2653case "$enableval" in 2654yes) enable_shared=yes ;; 2655no) enable_shared=no ;; 2656*) 2657 enable_shared=no 2658 # Look at the argument we got. We use all the common list separators. 2659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2660 for pkg in $enableval; do 2661 if test "X$pkg" = "X$p"; then 2662 enable_shared=yes 2663 fi 2664 done 2665 IFS="$ac_save_ifs" 2666 ;; 2667esac 2668else 2669 enable_shared=no 2670fi; 2671# Check whether --enable-static or --disable-static was given. 2672if test "${enable_static+set}" = set; then 2673 enableval="$enable_static" 2674 p=${PACKAGE-default} 2675case "$enableval" in 2676yes) enable_static=yes ;; 2677no) enable_static=no ;; 2678*) 2679 enable_static=no 2680 # Look at the argument we got. We use all the common list separators. 2681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2682 for pkg in $enableval; do 2683 if test "X$pkg" = "X$p"; then 2684 enable_static=yes 2685 fi 2686 done 2687 IFS="$ac_save_ifs" 2688 ;; 2689esac 2690else 2691 enable_static=yes 2692fi; 2693# Check whether --enable-fast-install or --disable-fast-install was given. 2694if test "${enable_fast_install+set}" = set; then 2695 enableval="$enable_fast_install" 2696 p=${PACKAGE-default} 2697case "$enableval" in 2698yes) enable_fast_install=yes ;; 2699no) enable_fast_install=no ;; 2700*) 2701 enable_fast_install=no 2702 # Look at the argument we got. We use all the common list separators. 2703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2704 for pkg in $enableval; do 2705 if test "X$pkg" = "X$p"; then 2706 enable_fast_install=yes 2707 fi 2708 done 2709 IFS="$ac_save_ifs" 2710 ;; 2711esac 2712else 2713 enable_fast_install=yes 2714fi; 2715 2716# Check whether --with-gnu-ld or --without-gnu-ld was given. 2717if test "${with_gnu_ld+set}" = set; then 2718 withval="$with_gnu_ld" 2719 test "$withval" = no || with_gnu_ld=yes 2720else 2721 with_gnu_ld=no 2722fi; 2723ac_prog=ld 2724if test "$ac_cv_c_compiler_gnu" = yes; then 2725 # Check if gcc -print-prog-name=ld gives a path. 2726 echo "$as_me:2726: checking for ld used by GCC" >&5 2727echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 2728 case $host in 2729 *-*-mingw*) 2730 # gcc leaves a trailing carriage return which upsets mingw 2731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2732 *) 2733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2734 esac 2735 case "$ac_prog" in 2736 # Accept absolute paths. 2737 [\\/]* | [A-Za-z]:[\\/]*) 2738 re_direlt='/[^/][^/]*/\.\./' 2739 # Canonicalize the path of ld 2740 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 2741 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2742 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 2743 done 2744 test -z "$LD" && LD="$ac_prog" 2745 ;; 2746 "") 2747 # If it fails, then pretend we aren't using GCC. 2748 ac_prog=ld 2749 ;; 2750 *) 2751 # If it is relative, then search for the first ld in PATH. 2752 with_gnu_ld=unknown 2753 ;; 2754 esac 2755elif test "$with_gnu_ld" = yes; then 2756 echo "$as_me:2756: checking for GNU ld" >&5 2757echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 2758else 2759 echo "$as_me:2759: checking for non-GNU ld" >&5 2760echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 2761fi 2762if test "${ac_cv_path_LD+set}" = set; then 2763 echo $ECHO_N "(cached) $ECHO_C" >&6 2764else 2765 if test -z "$LD"; then 2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 2767 for ac_dir in $PATH; do 2768 test -z "$ac_dir" && ac_dir=. 2769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2770 ac_cv_path_LD="$ac_dir/$ac_prog" 2771 # Check to see if the program is GNU ld. I'd rather use --version, 2772 # but apparently some GNU ld's only accept -v. 2773 # Break only if it was the GNU/non-GNU ld that we prefer. 2774 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 2775 test "$with_gnu_ld" != no && break 2776 else 2777 test "$with_gnu_ld" != yes && break 2778 fi 2779 fi 2780 done 2781 IFS="$ac_save_ifs" 2782else 2783 ac_cv_path_LD="$LD" # Let the user override the test with a path. 2784fi 2785fi 2786 2787LD="$ac_cv_path_LD" 2788if test -n "$LD"; then 2789 echo "$as_me:2789: result: $LD" >&5 2790echo "${ECHO_T}$LD" >&6 2791else 2792 echo "$as_me:2792: result: no" >&5 2793echo "${ECHO_T}no" >&6 2794fi 2795test -z "$LD" && { echo "$as_me: error: no acceptable ld found in \$PATH" >&2 2796 { (exit 1); exit; }; } 2797echo "$as_me:2797: checking if the linker ($LD) is GNU ld" >&5 2798echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 2799if test "${ac_cv_prog_gnu_ld+set}" = set; then 2800 echo $ECHO_N "(cached) $ECHO_C" >&6 2801else 2802 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 2803if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 2804 ac_cv_prog_gnu_ld=yes 2805else 2806 ac_cv_prog_gnu_ld=no 2807fi 2808fi 2809echo "$as_me:2809: result: $ac_cv_prog_gnu_ld" >&5 2810echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6 2811with_gnu_ld=$ac_cv_prog_gnu_ld 2812 2813echo "$as_me:2813: checking for $LD option to reload object files" >&5 2814echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 2815if test "${lt_cv_ld_reload_flag+set}" = set; then 2816 echo $ECHO_N "(cached) $ECHO_C" >&6 2817else 2818 lt_cv_ld_reload_flag='-r' 2819fi 2820echo "$as_me:2820: result: $lt_cv_ld_reload_flag" >&5 2821echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 2822reload_flag=$lt_cv_ld_reload_flag 2823test -n "$reload_flag" && reload_flag=" $reload_flag" 2824 2825echo "$as_me:2825: checking for BSD-compatible nm" >&5 2826echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 2827if test "${ac_cv_path_NM+set}" = set; then 2828 echo $ECHO_N "(cached) $ECHO_C" >&6 2829else 2830 if test -n "$NM"; then 2831 # Let the user override the test. 2832 ac_cv_path_NM="$NM" 2833else 2834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 2835 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2836 test -z "$ac_dir" && ac_dir=. 2837 tmp_nm=$ac_dir/${ac_tool_prefix}nm 2838 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 2839 # Check to see if the nm accepts a BSD-compat flag. 2840 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2841 # nm: unknown option "B" ignored 2842 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2843 ac_cv_path_NM="$tmp_nm -B" 2844 break 2845 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2846 ac_cv_path_NM="$tmp_nm -p" 2847 break 2848 else 2849 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but 2850 continue # so that we can try to find one that supports BSD flags 2851 fi 2852 fi 2853 done 2854 IFS="$ac_save_ifs" 2855 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 2856fi 2857fi 2858 2859NM="$ac_cv_path_NM" 2860echo "$as_me:2860: result: $NM" >&5 2861echo "${ECHO_T}$NM" >&6 2862 2863echo "$as_me:2863: checking whether ln -s works" >&5 2864echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2865if test "${ac_cv_prog_LN_S+set}" = set; then 2866 echo $ECHO_N "(cached) $ECHO_C" >&6 2867else 2868 rm -f conftest.sym conftest.file 2869echo >conftest.file 2870if ln -s conftest.file conftest.sym 2>/dev/null; then 2871 ac_cv_prog_LN_S="ln -s" 2872elif ln conftest.file conftest.sym 2>/dev/null; then 2873 ac_cv_prog_LN_S=ln 2874else 2875 ac_cv_prog_LN_S=cp 2876fi 2877rm -f conftest.sym conftest.file 2878fi 2879LN_S=$ac_cv_prog_LN_S 2880 2881if test "$ac_cv_prog_LN_S" = "ln -s"; then 2882 echo "$as_me:2882: result: yes" >&5 2883echo "${ECHO_T}yes" >&6 2884else 2885 echo "$as_me:2885: result: no, using $LN_S" >&5 2886echo "${ECHO_T}no, using $LN_S" >&6 2887fi 2888 2889echo "$as_me:2889: checking how to recognise dependant libraries" >&5 2890echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 2891if test "${lt_cv_deplibs_check_method+set}" = set; then 2892 echo $ECHO_N "(cached) $ECHO_C" >&6 2893else 2894 lt_cv_file_magic_cmd='${MAGIC}' 2895lt_cv_file_magic_test_file= 2896lt_cv_deplibs_check_method='unknown' 2897# Need to set the preceding variable on all platforms that support 2898# interlibrary dependencies. 2899# 'none' -- dependencies not supported. 2900# `unknown' -- same as none, but documents that we really don't know. 2901# 'pass_all' -- all dependencies passed with no checks. 2902# 'test_compile' -- check by making test program. 2903# 'file_magic [regex]' -- check by looking for files in library path 2904# which responds to the $file_magic_cmd with a given egrep regex. 2905# If you have `file' or equivalent on your system and you're not sure 2906# whether `pass_all' will *always* work, you probably want this one. 2907 2908case "$host_os" in 2909aix4*) 2910 lt_cv_deplibs_check_method=pass_all 2911 ;; 2912 2913beos*) 2914 lt_cv_deplibs_check_method=pass_all 2915 ;; 2916 2917bsdi4*) 2918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 2919 lt_cv_file_magic_cmd='/usr/bin/file -L' 2920 lt_cv_file_magic_test_file=/shlib/libc.so 2921 ;; 2922 2923cygwin* | mingw*) 2924 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2925 lt_cv_file_magic_cmd='${OBJDUMP} -f' 2926 ;; 2927 2928freebsd*) 2929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2930 case "$host_cpu" in 2931 i*86 ) 2932 lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library' 2933 lt_cv_file_magic_cmd=/usr/bin/file 2934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2935 ;; 2936 esac 2937 else 2938 lt_cv_deplibs_check_method=pass_all 2939 fi 2940 ;; 2941 2942gnu*) 2943 lt_cv_deplibs_check_method=pass_all 2944 ;; 2945 2946hpux10.20*) 2947 # TODO: Does this work for hpux-11 too? 2948 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library' 2949 lt_cv_file_magic_cmd=/usr/bin/file 2950 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2951 ;; 2952 2953irix5* | irix6*) 2954 case "$host_os" in 2955 irix5*) 2956 # this will be overridden with pass_all, but let us keep it just in case 2957 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 2958 ;; 2959 *) 2960 case "$LD" in 2961 *-32|*"-32 ") libmagic=32-bit;; 2962 *-n32|*"-n32 ") libmagic=N32;; 2963 *-64|*"-64 ") libmagic=64-bit;; 2964 *) libmagic=never-match;; 2965 esac 2966 # this will be overridden with pass_all, but let us keep it just in case 2967 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 2968 ;; 2969 esac 2970 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 2971 lt_cv_deplibs_check_method=pass_all 2972 ;; 2973 2974# This must be Linux ELF. 2975linux-gnu*) 2976 case "$host_cpu" in 2977 alpha* | i*86 | powerpc* | sparc* | ia64* ) 2978 lt_cv_deplibs_check_method=pass_all ;; 2979 *) 2980 # glibc up to 2.1.1 does not perform some relocations on ARM 2981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 2982 esac 2983 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2984 ;; 2985 2986netbsd*) 2987 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then : 2988 else 2989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 2990 lt_cv_file_magic_cmd='/usr/bin/file -L' 2991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2992 fi 2993 ;; 2994 2995osf3* | osf4* | osf5*) 2996 # this will be overridden with pass_all, but let us keep it just in case 2997 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 2998 lt_cv_file_magic_test_file=/shlib/libc.so 2999 lt_cv_deplibs_check_method=pass_all 3000 ;; 3001 3002sco3.2v5*) 3003 lt_cv_deplibs_check_method=pass_all 3004 ;; 3005 3006solaris*) 3007 lt_cv_deplibs_check_method=pass_all 3008 lt_cv_file_magic_test_file=/lib/libc.so 3009 ;; 3010 3011sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3012 case "$host_vendor" in 3013 ncr) 3014 lt_cv_deplibs_check_method=pass_all 3015 ;; 3016 motorola) 3017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 3018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3019 ;; 3020 esac 3021 ;; 3022esac 3023 3024fi 3025echo "$as_me:3025: result: $lt_cv_deplibs_check_method" >&5 3026echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3027file_magic_cmd=$lt_cv_file_magic_cmd 3028deplibs_check_method=$lt_cv_deplibs_check_method 3029 3030# Only perform the check for file, if the check method requires it 3031case "$deplibs_check_method" in 3032file_magic*) 3033 if test "$file_magic_cmd" = '${MAGIC}'; then 3034 echo "$as_me:3034: checking for ${ac_tool_prefix}file" >&5 3035echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 3036if test "${lt_cv_path_MAGIC+set}" = set; then 3037 echo $ECHO_N "(cached) $ECHO_C" >&6 3038else 3039 case "$MAGIC" in 3040 /*) 3041 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. 3042 ;; 3043 ?:/*) 3044 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path. 3045 ;; 3046 *) 3047 ac_save_MAGIC="$MAGIC" 3048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3049 ac_dummy="/usr/bin:$PATH" 3050 for ac_dir in $ac_dummy; do 3051 test -z "$ac_dir" && ac_dir=. 3052 if test -f $ac_dir/${ac_tool_prefix}file; then 3053 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file" 3054 if test -n "$file_magic_test_file"; then 3055 case "$deplibs_check_method" in 3056 "file_magic "*) 3057 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3058 MAGIC="$lt_cv_path_MAGIC" 3059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3060 egrep "$file_magic_regex" > /dev/null; then 3061 : 3062 else 3063 cat <<EOF 1>&2 3064 3065*** Warning: the command libtool uses to detect shared libraries, 3066*** $file_magic_cmd, produces output that libtool cannot recognize. 3067*** The result is that libtool may fail to recognize shared libraries 3068*** as such. This will affect the creation of libtool libraries that 3069*** depend on shared libraries, but programs linked with such libtool 3070*** libraries will work regardless of this problem. Nevertheless, you 3071*** may want to report the problem to your system manager and/or to 3072*** bug-libtool@gnu.org 3073 3074EOF 3075 fi ;; 3076 esac 3077 fi 3078 break 3079 fi 3080 done 3081 IFS="$ac_save_ifs" 3082 MAGIC="$ac_save_MAGIC" 3083 ;; 3084esac 3085fi 3086 3087MAGIC="$lt_cv_path_MAGIC" 3088if test -n "$MAGIC"; then 3089 echo "$as_me:3089: result: $MAGIC" >&5 3090echo "${ECHO_T}$MAGIC" >&6 3091else 3092 echo "$as_me:3092: result: no" >&5 3093echo "${ECHO_T}no" >&6 3094fi 3095 3096if test -z "$lt_cv_path_MAGIC"; then 3097 if test -n "$ac_tool_prefix"; then 3098 echo "$as_me:3098: checking for file" >&5 3099echo $ECHO_N "checking for file... $ECHO_C" >&6 3100if test "${lt_cv_path_MAGIC+set}" = set; then 3101 echo $ECHO_N "(cached) $ECHO_C" >&6 3102else 3103 case "$MAGIC" in 3104 /*) 3105 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. 3106 ;; 3107 ?:/*) 3108 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path. 3109 ;; 3110 *) 3111 ac_save_MAGIC="$MAGIC" 3112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3113 ac_dummy="/usr/bin:$PATH" 3114 for ac_dir in $ac_dummy; do 3115 test -z "$ac_dir" && ac_dir=. 3116 if test -f $ac_dir/file; then 3117 lt_cv_path_MAGIC="$ac_dir/file" 3118 if test -n "$file_magic_test_file"; then 3119 case "$deplibs_check_method" in 3120 "file_magic "*) 3121 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3122 MAGIC="$lt_cv_path_MAGIC" 3123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3124 egrep "$file_magic_regex" > /dev/null; then 3125 : 3126 else 3127 cat <<EOF 1>&2 3128 3129*** Warning: the command libtool uses to detect shared libraries, 3130*** $file_magic_cmd, produces output that libtool cannot recognize. 3131*** The result is that libtool may fail to recognize shared libraries 3132*** as such. This will affect the creation of libtool libraries that 3133*** depend on shared libraries, but programs linked with such libtool 3134*** libraries will work regardless of this problem. Nevertheless, you 3135*** may want to report the problem to your system manager and/or to 3136*** bug-libtool@gnu.org 3137 3138EOF 3139 fi ;; 3140 esac 3141 fi 3142 break 3143 fi 3144 done 3145 IFS="$ac_save_ifs" 3146 MAGIC="$ac_save_MAGIC" 3147 ;; 3148esac 3149fi 3150 3151MAGIC="$lt_cv_path_MAGIC" 3152if test -n "$MAGIC"; then 3153 echo "$as_me:3153: result: $MAGIC" >&5 3154echo "${ECHO_T}$MAGIC" >&6 3155else 3156 echo "$as_me:3156: result: no" >&5 3157echo "${ECHO_T}no" >&6 3158fi 3159 3160 else 3161 MAGIC=: 3162 fi 3163fi 3164 3165 fi 3166 ;; 3167esac 3168 3169if test -n "$ac_tool_prefix"; then 3170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3171set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3172echo "$as_me:3172: checking for $ac_word" >&5 3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3174if test "${ac_cv_prog_RANLIB+set}" = set; then 3175 echo $ECHO_N "(cached) $ECHO_C" >&6 3176else 3177 if test -n "$RANLIB"; then 3178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3179else 3180 ac_save_IFS=$IFS; IFS=':' 3181ac_dummy="$PATH" 3182for ac_dir in $ac_dummy; do 3183 IFS=$ac_save_IFS 3184 test -z "$ac_dir" && ac_dir=. 3185 test -f "$ac_dir/$ac_word" || continue 3186ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3187break 3188done 3189 3190fi 3191fi 3192RANLIB=$ac_cv_prog_RANLIB 3193if test -n "$RANLIB"; then 3194 echo "$as_me:3194: result: $RANLIB" >&5 3195echo "${ECHO_T}$RANLIB" >&6 3196else 3197 echo "$as_me:3197: result: no" >&5 3198echo "${ECHO_T}no" >&6 3199fi 3200 3201fi 3202if test -z "$ac_cv_prog_RANLIB"; then 3203 ac_ct_RANLIB=$RANLIB 3204 # Extract the first word of "ranlib", so it can be a program name with args. 3205set dummy ranlib; ac_word=$2 3206echo "$as_me:3206: checking for $ac_word" >&5 3207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3208if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3209 echo $ECHO_N "(cached) $ECHO_C" >&6 3210else 3211 if test -n "$ac_ct_RANLIB"; then 3212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3213else 3214 ac_save_IFS=$IFS; IFS=':' 3215ac_dummy="$PATH" 3216for ac_dir in $ac_dummy; do 3217 IFS=$ac_save_IFS 3218 test -z "$ac_dir" && ac_dir=. 3219 test -f "$ac_dir/$ac_word" || continue 3220ac_cv_prog_ac_ct_RANLIB="ranlib" 3221break 3222done 3223 3224 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3225fi 3226fi 3227ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3228if test -n "$ac_ct_RANLIB"; then 3229 echo "$as_me:3229: result: $ac_ct_RANLIB" >&5 3230echo "${ECHO_T}$ac_ct_RANLIB" >&6 3231else 3232 echo "$as_me:3232: result: no" >&5 3233echo "${ECHO_T}no" >&6 3234fi 3235 3236 RANLIB=$ac_ct_RANLIB 3237else 3238 RANLIB="$ac_cv_prog_RANLIB" 3239fi 3240 3241if test -n "$ac_tool_prefix"; then 3242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3243set dummy ${ac_tool_prefix}strip; ac_word=$2 3244echo "$as_me:3244: checking for $ac_word" >&5 3245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3246if test "${ac_cv_prog_STRIP+set}" = set; then 3247 echo $ECHO_N "(cached) $ECHO_C" >&6 3248else 3249 if test -n "$STRIP"; then 3250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3251else 3252 ac_save_IFS=$IFS; IFS=':' 3253ac_dummy="$PATH" 3254for ac_dir in $ac_dummy; do 3255 IFS=$ac_save_IFS 3256 test -z "$ac_dir" && ac_dir=. 3257 test -f "$ac_dir/$ac_word" || continue 3258ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3259break 3260done 3261 3262fi 3263fi 3264STRIP=$ac_cv_prog_STRIP 3265if test -n "$STRIP"; then 3266 echo "$as_me:3266: result: $STRIP" >&5 3267echo "${ECHO_T}$STRIP" >&6 3268else 3269 echo "$as_me:3269: result: no" >&5 3270echo "${ECHO_T}no" >&6 3271fi 3272 3273fi 3274if test -z "$ac_cv_prog_STRIP"; then 3275 ac_ct_STRIP=$STRIP 3276 # Extract the first word of "strip", so it can be a program name with args. 3277set dummy strip; ac_word=$2 3278echo "$as_me:3278: checking for $ac_word" >&5 3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3280if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3281 echo $ECHO_N "(cached) $ECHO_C" >&6 3282else 3283 if test -n "$ac_ct_STRIP"; then 3284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3285else 3286 ac_save_IFS=$IFS; IFS=':' 3287ac_dummy="$PATH" 3288for ac_dir in $ac_dummy; do 3289 IFS=$ac_save_IFS 3290 test -z "$ac_dir" && ac_dir=. 3291 test -f "$ac_dir/$ac_word" || continue 3292ac_cv_prog_ac_ct_STRIP="strip" 3293break 3294done 3295 3296 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3297fi 3298fi 3299ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3300if test -n "$ac_ct_STRIP"; then 3301 echo "$as_me:3301: result: $ac_ct_STRIP" >&5 3302echo "${ECHO_T}$ac_ct_STRIP" >&6 3303else 3304 echo "$as_me:3304: result: no" >&5 3305echo "${ECHO_T}no" >&6 3306fi 3307 3308 STRIP=$ac_ct_STRIP 3309else 3310 STRIP="$ac_cv_prog_STRIP" 3311fi 3312 3313# Check for any special flags to pass to ltconfig. 3314libtool_flags="--cache-file=$cache_file" 3315test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 3316test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 3317test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 3318test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc" 3319test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 3320 3321# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3322if test "${enable_libtool_lock+set}" = set; then 3323 enableval="$enable_libtool_lock" 3324 3325fi; 3326test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 3327test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 3328 3329# Check whether --with-pic or --without-pic was given. 3330if test "${with_pic+set}" = set; then 3331 withval="$with_pic" 3332 pic_mode="$withval" 3333else 3334 pic_mode=default 3335fi; 3336test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 3337test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 3338 3339# Some flags need to be propagated to the compiler or linker for good 3340# libtool support. 3341case "$host" in 3342*-*-irix6*) 3343 # Find out which ABI we are using. 3344 echo '#line 3344 "configure"' > conftest.$ac_ext 3345 if { (eval echo $as_me:3345: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then 3346 case "`/usr/bin/file conftest.o`" in 3347 *32-bit*) 3348 LD="${LD-ld} -32" 3349 ;; 3350 *N32*) 3351 LD="${LD-ld} -n32" 3352 ;; 3353 *64-bit*) 3354 LD="${LD-ld} -64" 3355 ;; 3356 esac 3357 fi 3358 rm -rf conftest* 3359 ;; 3360 3361*-*-sco3.2v5*) 3362 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3363 SAVE_CFLAGS="$CFLAGS" 3364 CFLAGS="$CFLAGS -belf" 3365 echo "$as_me:3365: checking whether the C compiler needs -belf" >&5 3366echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3367if test "${lt_cv_cc_needs_belf+set}" = set; then 3368 echo $ECHO_N "(cached) $ECHO_C" >&6 3369else 3370 3371 cat >conftest.$ac_ext <<_ACEOF 3372#line 3372 "configure" 3373#include "confdefs.h" 3374 3375int 3376main () 3377{ 3378 3379 ; 3380 return 0; 3381} 3382_ACEOF 3383rm -f conftest.$ac_objext conftest$ac_exeext 3384if { (eval echo $as_me:3384: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 3385 lt_cv_cc_needs_belf=yes 3386else 3387 echo "$as_me: failed program was:" >&5 3388 cat conftest.$ac_ext >&5 3389 lt_cv_cc_needs_belf=no 3390fi 3391rm -f conftest$ac_exeext conftest.$ac_ext 3392 3393fi 3394echo "$as_me:3394: result: $lt_cv_cc_needs_belf" >&5 3395echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3396 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3397 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3398 CFLAGS="$SAVE_CFLAGS" 3399 fi 3400 ;; 3401 3402esac 3403 3404# Save cache, so that ltconfig can load it 3405cat >confcache <<\_ACEOF 3406# This file is a shell script that caches the results of configure 3407# tests run on this system so they can be shared between configure 3408# scripts and configure runs, see configure's option --config-cache. 3409# It is not useful on other systems. If it contains results you don't 3410# want to keep, you may remove or edit it. 3411# 3412# config.status only pays attention to the cache file if you give it 3413# the --recheck option to rerun configure. 3414# 3415# `ac_cv_env_foo' variables (set or unset) will be overriden when 3416# loading this file, other *unset* `ac_cv_foo' will be assigned the 3417# following values. 3418 3419_ACEOF 3420 3421# The following way of writing the cache mishandles newlines in values, 3422# but we know of no workaround that is simple, portable, and efficient. 3423# So, don't put newlines in cache variables' values. 3424# Ultrix sh set writes to stderr and can't be redirected directly, 3425# and sets the high bit in the cache file unless we assign to the vars. 3426{ 3427 (set) 2>&1 | 3428 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3429 *ac_space=\ *) 3430 # `set' does not quote correctly, so add quotes (double-quote 3431 # substitution turns \\\\ into \\, and sed turns \\ into \). 3432 sed -n \ 3433 "s/'/'\\\\''/g; 3434 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3435 ;; 3436 *) 3437 # `set' quotes correctly as required by POSIX, so do not add quotes. 3438 sed -n \ 3439 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3440 ;; 3441 esac; 3442} | 3443 sed ' 3444 t clear 3445 : clear 3446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3447 t end 3448 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3449 : end' >>confcache 3450if cmp -s $cache_file confcache; then :; else 3451 if test -w $cache_file; then 3452 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3453 cat confcache >$cache_file 3454 else 3455 echo "not updating unwritable cache $cache_file" 3456 fi 3457fi 3458rm -f confcache 3459 3460# Actually configure libtool. ac_aux_dir is where install-sh is found. 3461AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 3462MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 3463LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 3464AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 3465objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 3466deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 3467${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 3468$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 3469|| { echo "$as_me: error: libtool configure failed" >&2 3470 { (exit 1); exit; }; } 3471 3472# Reload cache, that may have been modified by ltconfig 3473if test -r "$cache_file"; then 3474 # Some versions of bash will fail to source /dev/null (special 3475 # files actually), so we avoid doing that. 3476 if test -f "$cache_file"; then 3477 { echo "$as_me:3477: loading cache $cache_file" >&5 3478echo "loading cache $cache_file" >&6;} 3479 case $cache_file in 3480 [\\/]* | ?:[\\/]* ) . $cache_file;; 3481 *) . ./$cache_file;; 3482 esac 3483 fi 3484else 3485 { echo "$as_me:3485: creating cache $cache_file" >&5 3486echo "creating cache $cache_file" >&6;} 3487 >$cache_file 3488fi 3489 3490# This can be used to rebuild libtool when needed 3491LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 3492 3493# Always use our own libtool. 3494LIBTOOL='$(SHELL) $(top_builddir)/libtool' 3495 3496# Redirect the config.log output again, so that the ltconfig log is not 3497# clobbered by the next message. 3498exec 5>>./config.log 3499 3500WFLAGS_NOUNUSED="" 3501WFLAGS_NOIMPLICITINT="" 3502if test -z "$WFLAGS" -a "$GCC" = "yes"; then 3503 # -Wno-implicit-int for broken X11 headers 3504 # leave these out for now: 3505 # -Wcast-align doesn't work well on alpha osf/1 3506 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 3507 # -Wmissing-declarations -Wnested-externs 3508 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 3509 WFLAGS_NOUNUSED="-Wno-unused" 3510 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 3511fi 3512 3513berkeley_db=db 3514 3515# Check whether --with-berkeley-db or --without-berkeley-db was given. 3516if test "${with_berkeley_db+set}" = set; then 3517 withval="$with_berkeley_db" 3518 3519if test "$withval" = no; then 3520 berkeley_db="" 3521fi 3522 3523fi; 3524if test "$berkeley_db"; then 3525 3526for ac_header in \ 3527 db.h \ 3528 db_185.h \ 3529 3530do 3531ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 3532 3533echo "$as_me:3533: checking for $ac_header" >&5 3534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3535if eval "test \"\${$ac_ac_Header+set}\" = set"; then 3536 echo $ECHO_N "(cached) $ECHO_C" >&6 3537else 3538 cat >conftest.$ac_ext <<_ACEOF 3539#line 3539 "configure" 3540#include "confdefs.h" 3541#include <$ac_header> 3542 3543_ACEOF 3544ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 3545if { (eval echo $as_me:3545: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 3546 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 3547 ac_cpp_err=$ac_c_preproc_warn_flag 3548 else 3549 ac_cpp_err= 3550 fi 3551else 3552 ac_cpp_err=yes 3553fi 3554 3555if test -z "$ac_cpp_err"; then 3556 eval "$ac_ac_Header=yes" 3557else 3558 cat conftest.err >&5 3559 echo "$as_me: failed program was:" >&5 3560 cat conftest.$ac_ext >&5 3561 eval "$ac_ac_Header=no" 3562fi 3563rm -f conftest* 3564 3565fi 3566echo "$as_me:3566: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3567echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3568if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3569 cat >>confdefs.h <<EOF 3570#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 3571EOF 3572 3573fi 3574done 3575 3576fi 3577 3578echo "$as_me:3578: checking for dbopen" >&5 3579echo $ECHO_N "checking for dbopen... $ECHO_C" >&6 3580if test "${ac_cv_funclib_dbopen+set}" = set; then 3581 echo $ECHO_N "(cached) $ECHO_C" >&6 3582else 3583 3584if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 3585 ac_save_LIBS="$LIBS" 3586 for ac_lib in $berkeley_db; do 3587 if test -n "$ac_lib"; then 3588 ac_lib="-l$ac_lib" 3589 else 3590 ac_lib="" 3591 fi 3592 LIBS=" $ac_lib $ac_save_LIBS" 3593 cat >conftest.$ac_ext <<_ACEOF 3594#line 3594 "configure" 3595#include "confdefs.h" 3596 3597#include <stdio.h> 3598#if defined(HAVE_DB_185_H) 3599#include <db_185.h> 3600#elif defined(HAVE_DB_H) 3601#include <db.h> 3602#endif 3603 3604int 3605main () 3606{ 3607dbopen(NULL, 0, 0, 0, NULL) 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612rm -f conftest.$ac_objext conftest$ac_exeext 3613if { (eval echo $as_me:3613: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 3614 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 3615else 3616 echo "$as_me: failed program was:" >&5 3617 cat conftest.$ac_ext >&5 3618fi 3619rm -f conftest$ac_exeext conftest.$ac_ext 3620 done 3621 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 3622 LIBS="$ac_save_LIBS" 3623fi 3624 3625fi 3626 3627eval "ac_res=\$ac_cv_funclib_dbopen" 3628 3629if false; then 3630 3631for ac_func in dbopen 3632do 3633ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 3634echo "$as_me:3634: checking for $ac_func" >&5 3635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3636if eval "test \"\${$ac_ac_var+set}\" = set"; then 3637 echo $ECHO_N "(cached) $ECHO_C" >&6 3638else 3639 cat >conftest.$ac_ext <<_ACEOF 3640#line 3640 "configure" 3641#include "confdefs.h" 3642/* System header to define __stub macros and hopefully few prototypes, 3643 which can conflict with char $ac_func (); below. */ 3644#include <assert.h> 3645/* Override any gcc2 internal prototype to avoid an error. */ 3646#ifdef __cplusplus 3647extern "C" 3648#endif 3649/* We use char because int might match the return type of a gcc2 3650 builtin and then its argument prototype would still apply. */ 3651char $ac_func (); 3652char (*f) (); 3653 3654int 3655main () 3656{ 3657/* The GNU C library defines this for functions which it implements 3658 to always fail with ENOSYS. Some functions are actually named 3659 something starting with __ and the normal name is an alias. */ 3660#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3661choke me 3662#else 3663f = $ac_func; 3664#endif 3665 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670rm -f conftest.$ac_objext conftest$ac_exeext 3671if { (eval echo $as_me:3671: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 3672 eval "$ac_ac_var=yes" 3673else 3674 echo "$as_me: failed program was:" >&5 3675 cat conftest.$ac_ext >&5 3676 eval "$ac_ac_var=no" 3677fi 3678rm -f conftest$ac_exeext conftest.$ac_ext 3679fi 3680echo "$as_me:3680: result: `eval echo '${'$ac_ac_var'}'`" >&5 3681echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 3682if test `eval echo '${'$ac_ac_var'}'` = yes; then 3683 cat >>confdefs.h <<EOF 3684#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 3685EOF 3686 3687fi 3688done 3689 3690fi 3691# dbopen 3692eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3693eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3694eval "LIB_dbopen=$ac_res" 3695 3696case "$ac_res" in 3697 yes) 3698 eval "ac_cv_func_dbopen=yes" 3699 eval "LIB_dbopen=" 3700 cat >>confdefs.h <<EOF 3701#define $ac_tr_func 1 3702EOF 3703 3704 echo "$as_me:3704: result: yes" >&5 3705echo "${ECHO_T}yes" >&6 3706 ;; 3707 no) 3708 eval "ac_cv_func_dbopen=no" 3709 eval "LIB_dbopen=" 3710 echo "$as_me:3710: result: no" >&5 3711echo "${ECHO_T}no" >&6 3712 ;; 3713 *) 3714 eval "ac_cv_func_dbopen=yes" 3715 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 3716 cat >>confdefs.h <<EOF 3717#define $ac_tr_func 1 3718EOF 3719 3720 cat >>confdefs.h <<EOF 3721#define $ac_tr_lib 1 3722EOF 3723 3724 echo "$as_me:3724: result: yes, in $ac_res" >&5 3725echo "${ECHO_T}yes, in $ac_res" >&6 3726 ;; 3727esac 3728 3729echo "$as_me:3729: checking for dbm_firstkey" >&5 3730echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 3731if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 3732 echo $ECHO_N "(cached) $ECHO_C" >&6 3733else 3734 3735if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 3736 ac_save_LIBS="$LIBS" 3737 for ac_lib in "" $berkeley_db gdbm ndbm; do 3738 if test -n "$ac_lib"; then 3739 ac_lib="-l$ac_lib" 3740 else 3741 ac_lib="" 3742 fi 3743 LIBS=" $ac_lib $ac_save_LIBS" 3744 cat >conftest.$ac_ext <<_ACEOF 3745#line 3745 "configure" 3746#include "confdefs.h" 3747 3748int 3749main () 3750{ 3751dbm_firstkey() 3752 ; 3753 return 0; 3754} 3755_ACEOF 3756rm -f conftest.$ac_objext conftest$ac_exeext 3757if { (eval echo $as_me:3757: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 3758 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 3759else 3760 echo "$as_me: failed program was:" >&5 3761 cat conftest.$ac_ext >&5 3762fi 3763rm -f conftest$ac_exeext conftest.$ac_ext 3764 done 3765 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 3766 LIBS="$ac_save_LIBS" 3767fi 3768 3769fi 3770 3771eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 3772 3773if false; then 3774 3775for ac_func in dbm_firstkey 3776do 3777ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 3778echo "$as_me:3778: checking for $ac_func" >&5 3779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3780if eval "test \"\${$ac_ac_var+set}\" = set"; then 3781 echo $ECHO_N "(cached) $ECHO_C" >&6 3782else 3783 cat >conftest.$ac_ext <<_ACEOF 3784#line 3784 "configure" 3785#include "confdefs.h" 3786/* System header to define __stub macros and hopefully few prototypes, 3787 which can conflict with char $ac_func (); below. */ 3788#include <assert.h> 3789/* Override any gcc2 internal prototype to avoid an error. */ 3790#ifdef __cplusplus 3791extern "C" 3792#endif 3793/* We use char because int might match the return type of a gcc2 3794 builtin and then its argument prototype would still apply. */ 3795char $ac_func (); 3796char (*f) (); 3797 3798int 3799main () 3800{ 3801/* The GNU C library defines this for functions which it implements 3802 to always fail with ENOSYS. Some functions are actually named 3803 something starting with __ and the normal name is an alias. */ 3804#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3805choke me 3806#else 3807f = $ac_func; 3808#endif 3809 3810 ; 3811 return 0; 3812} 3813_ACEOF 3814rm -f conftest.$ac_objext conftest$ac_exeext 3815if { (eval echo $as_me:3815: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 3816 eval "$ac_ac_var=yes" 3817else 3818 echo "$as_me: failed program was:" >&5 3819 cat conftest.$ac_ext >&5 3820 eval "$ac_ac_var=no" 3821fi 3822rm -f conftest$ac_exeext conftest.$ac_ext 3823fi 3824echo "$as_me:3824: result: `eval echo '${'$ac_ac_var'}'`" >&5 3825echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 3826if test `eval echo '${'$ac_ac_var'}'` = yes; then 3827 cat >>confdefs.h <<EOF 3828#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 3829EOF 3830 3831fi 3832done 3833 3834fi 3835# dbm_firstkey 3836eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3837eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3838eval "LIB_dbm_firstkey=$ac_res" 3839 3840case "$ac_res" in 3841 yes) 3842 eval "ac_cv_func_dbm_firstkey=yes" 3843 eval "LIB_dbm_firstkey=" 3844 cat >>confdefs.h <<EOF 3845#define $ac_tr_func 1 3846EOF 3847 3848 echo "$as_me:3848: result: yes" >&5 3849echo "${ECHO_T}yes" >&6 3850 ;; 3851 no) 3852 eval "ac_cv_func_dbm_firstkey=no" 3853 eval "LIB_dbm_firstkey=" 3854 echo "$as_me:3854: result: no" >&5 3855echo "${ECHO_T}no" >&6 3856 ;; 3857 *) 3858 eval "ac_cv_func_dbm_firstkey=yes" 3859 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 3860 cat >>confdefs.h <<EOF 3861#define $ac_tr_func 1 3862EOF 3863 3864 cat >>confdefs.h <<EOF 3865#define $ac_tr_lib 1 3866EOF 3867 3868 echo "$as_me:3868: result: yes, in $ac_res" >&5 3869echo "${ECHO_T}yes, in $ac_res" >&6 3870 ;; 3871esac 3872 3873echo "$as_me:3873: checking for db_create" >&5 3874echo $ECHO_N "checking for db_create... $ECHO_C" >&6 3875if test "${ac_cv_funclib_db_create+set}" = set; then 3876 echo $ECHO_N "(cached) $ECHO_C" >&6 3877else 3878 3879if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 3880 ac_save_LIBS="$LIBS" 3881 for ac_lib in "" $berkeley_db; do 3882 if test -n "$ac_lib"; then 3883 ac_lib="-l$ac_lib" 3884 else 3885 ac_lib="" 3886 fi 3887 LIBS=" $ac_lib $ac_save_LIBS" 3888 cat >conftest.$ac_ext <<_ACEOF 3889#line 3889 "configure" 3890#include "confdefs.h" 3891 3892int 3893main () 3894{ 3895db_create() 3896 ; 3897 return 0; 3898} 3899_ACEOF 3900rm -f conftest.$ac_objext conftest$ac_exeext 3901if { (eval echo $as_me:3901: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 3902 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 3903else 3904 echo "$as_me: failed program was:" >&5 3905 cat conftest.$ac_ext >&5 3906fi 3907rm -f conftest$ac_exeext conftest.$ac_ext 3908 done 3909 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 3910 LIBS="$ac_save_LIBS" 3911fi 3912 3913fi 3914 3915eval "ac_res=\$ac_cv_funclib_db_create" 3916 3917if false; then 3918 3919for ac_func in db_create 3920do 3921ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 3922echo "$as_me:3922: checking for $ac_func" >&5 3923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3924if eval "test \"\${$ac_ac_var+set}\" = set"; then 3925 echo $ECHO_N "(cached) $ECHO_C" >&6 3926else 3927 cat >conftest.$ac_ext <<_ACEOF 3928#line 3928 "configure" 3929#include "confdefs.h" 3930/* System header to define __stub macros and hopefully few prototypes, 3931 which can conflict with char $ac_func (); below. */ 3932#include <assert.h> 3933/* Override any gcc2 internal prototype to avoid an error. */ 3934#ifdef __cplusplus 3935extern "C" 3936#endif 3937/* We use char because int might match the return type of a gcc2 3938 builtin and then its argument prototype would still apply. */ 3939char $ac_func (); 3940char (*f) (); 3941 3942int 3943main () 3944{ 3945/* The GNU C library defines this for functions which it implements 3946 to always fail with ENOSYS. Some functions are actually named 3947 something starting with __ and the normal name is an alias. */ 3948#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3949choke me 3950#else 3951f = $ac_func; 3952#endif 3953 3954 ; 3955 return 0; 3956} 3957_ACEOF 3958rm -f conftest.$ac_objext conftest$ac_exeext 3959if { (eval echo $as_me:3959: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 3960 eval "$ac_ac_var=yes" 3961else 3962 echo "$as_me: failed program was:" >&5 3963 cat conftest.$ac_ext >&5 3964 eval "$ac_ac_var=no" 3965fi 3966rm -f conftest$ac_exeext conftest.$ac_ext 3967fi 3968echo "$as_me:3968: result: `eval echo '${'$ac_ac_var'}'`" >&5 3969echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 3970if test `eval echo '${'$ac_ac_var'}'` = yes; then 3971 cat >>confdefs.h <<EOF 3972#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 3973EOF 3974 3975fi 3976done 3977 3978fi 3979# db_create 3980eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3981eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 3982eval "LIB_db_create=$ac_res" 3983 3984case "$ac_res" in 3985 yes) 3986 eval "ac_cv_func_db_create=yes" 3987 eval "LIB_db_create=" 3988 cat >>confdefs.h <<EOF 3989#define $ac_tr_func 1 3990EOF 3991 3992 echo "$as_me:3992: result: yes" >&5 3993echo "${ECHO_T}yes" >&6 3994 ;; 3995 no) 3996 eval "ac_cv_func_db_create=no" 3997 eval "LIB_db_create=" 3998 echo "$as_me:3998: result: no" >&5 3999echo "${ECHO_T}no" >&6 4000 ;; 4001 *) 4002 eval "ac_cv_func_db_create=yes" 4003 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4004 cat >>confdefs.h <<EOF 4005#define $ac_tr_func 1 4006EOF 4007 4008 cat >>confdefs.h <<EOF 4009#define $ac_tr_lib 1 4010EOF 4011 4012 echo "$as_me:4012: result: yes, in $ac_res" >&5 4013echo "${ECHO_T}yes, in $ac_res" >&6 4014 ;; 4015esac 4016 4017DBLIB="$LIB_dbopen" 4018if test "$LIB_dbopen" != "$LIB_db_create"; then 4019 DBLIB="$DBLIB $LIB_db_create" 4020fi 4021if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then 4022 DBLIB="$DBLIB $LIB_dbm_firstkey" 4023fi 4024 4025echo "$as_me:4025: checking for inline" >&5 4026echo $ECHO_N "checking for inline... $ECHO_C" >&6 4027if test "${ac_cv_c_inline+set}" = set; then 4028 echo $ECHO_N "(cached) $ECHO_C" >&6 4029else 4030 ac_cv_c_inline=no 4031for ac_kw in inline __inline__ __inline; do 4032 cat >conftest.$ac_ext <<_ACEOF 4033#line 4033 "configure" 4034#include "confdefs.h" 4035#ifndef __cplusplus 4036$ac_kw int foo () {return 0; } 4037#endif 4038 4039_ACEOF 4040rm -f conftest.$ac_objext 4041if { (eval echo $as_me:4041: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 4042 ac_cv_c_inline=$ac_kw; break 4043else 4044 echo "$as_me: failed program was:" >&5 4045 cat conftest.$ac_ext >&5 4046fi 4047rm -f conftest.$ac_objext conftest.$ac_ext 4048done 4049 4050fi 4051echo "$as_me:4051: result: $ac_cv_c_inline" >&5 4052echo "${ECHO_T}$ac_cv_c_inline" >&6 4053case $ac_cv_c_inline in 4054 inline | yes) ;; 4055 no) 4056cat >>confdefs.h <<\EOF 4057#define inline 4058EOF 4059 ;; 4060 *) cat >>confdefs.h <<EOF 4061#define inline $ac_cv_c_inline 4062EOF 4063 ;; 4064esac 4065 4066echo "$as_me:4066: checking for an ANSI C-conforming const" >&5 4067echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4068if test "${ac_cv_c_const+set}" = set; then 4069 echo $ECHO_N "(cached) $ECHO_C" >&6 4070else 4071 cat >conftest.$ac_ext <<_ACEOF 4072#line 4072 "configure" 4073#include "confdefs.h" 4074 4075int 4076main () 4077{ 4078/* FIXME: Include the comments suggested by Paul. */ 4079#ifndef __cplusplus 4080 /* Ultrix mips cc rejects this. */ 4081 typedef int charset[2]; 4082 const charset x; 4083 /* SunOS 4.1.1 cc rejects this. */ 4084 char const *const *ccp; 4085 char **p; 4086 /* NEC SVR4.0.2 mips cc rejects this. */ 4087 struct point {int x, y;}; 4088 static struct point const zero = {0,0}; 4089 /* AIX XL C 1.02.0.0 rejects this. 4090 It does not let you subtract one const X* pointer from another in 4091 an arm of an if-expression whose if-part is not a constant 4092 expression */ 4093 const char *g = "string"; 4094 ccp = &g + (g ? g-g : 0); 4095 /* HPUX 7.0 cc rejects these. */ 4096 ++ccp; 4097 p = (char**) ccp; 4098 ccp = (char const *const *) p; 4099 { /* SCO 3.2v4 cc rejects this. */ 4100 char *t; 4101 char const *s = 0 ? (char *) 0 : (char const *) 0; 4102 4103 *t++ = 0; 4104 } 4105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4106 int x[] = {25, 17}; 4107 const int *foo = &x[0]; 4108 ++foo; 4109 } 4110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4111 typedef const int *iptr; 4112 iptr p = 0; 4113 ++p; 4114 } 4115 { /* AIX XL C 1.02.0.0 rejects this saying 4116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4117 struct s { int j; const int *ap[3]; }; 4118 struct s *b; b->j = 5; 4119 } 4120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4121 const int foo = 10; 4122 } 4123#endif 4124 4125 ; 4126 return 0; 4127} 4128_ACEOF 4129rm -f conftest.$ac_objext 4130if { (eval echo $as_me:4130: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 4131 ac_cv_c_const=yes 4132else 4133 echo "$as_me: failed program was:" >&5 4134 cat conftest.$ac_ext >&5 4135 ac_cv_c_const=no 4136fi 4137rm -f conftest.$ac_objext conftest.$ac_ext 4138fi 4139echo "$as_me:4139: result: $ac_cv_c_const" >&5 4140echo "${ECHO_T}$ac_cv_c_const" >&6 4141if test $ac_cv_c_const = no; then 4142 4143cat >>confdefs.h <<\EOF 4144#define const 4145EOF 4146 4147fi 4148 4149echo "$as_me:4149: checking for ANSI C header files" >&5 4150echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4151if test "${ac_cv_header_stdc+set}" = set; then 4152 echo $ECHO_N "(cached) $ECHO_C" >&6 4153else 4154 cat >conftest.$ac_ext <<_ACEOF 4155#line 4155 "configure" 4156#include "confdefs.h" 4157#include <stdlib.h> 4158#include <stdarg.h> 4159#include <string.h> 4160#include <float.h> 4161 4162_ACEOF 4163ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 4164if { (eval echo $as_me:4164: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 4165 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 4166 ac_cpp_err=$ac_c_preproc_warn_flag 4167 else 4168 ac_cpp_err= 4169 fi 4170else 4171 ac_cpp_err=yes 4172fi 4173 4174if test -z "$ac_cpp_err"; then 4175 ac_cv_header_stdc=yes 4176else 4177 cat conftest.err >&5 4178 echo "$as_me: failed program was:" >&5 4179 cat conftest.$ac_ext >&5 4180 ac_cv_header_stdc=no 4181fi 4182rm -f conftest* 4183 4184if test $ac_cv_header_stdc = yes; then 4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4186 cat >conftest.$ac_ext <<_ACEOF 4187#line 4187 "configure" 4188#include "confdefs.h" 4189#include <string.h> 4190 4191_ACEOF 4192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4193 egrep "memchr" >/dev/null 2>&1; then 4194 : 4195else 4196 ac_cv_header_stdc=no 4197fi 4198rm -f conftest* 4199 4200fi 4201 4202if test $ac_cv_header_stdc = yes; then 4203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4204 cat >conftest.$ac_ext <<_ACEOF 4205#line 4205 "configure" 4206#include "confdefs.h" 4207#include <stdlib.h> 4208 4209_ACEOF 4210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4211 egrep "free" >/dev/null 2>&1; then 4212 : 4213else 4214 ac_cv_header_stdc=no 4215fi 4216rm -f conftest* 4217 4218fi 4219 4220if test $ac_cv_header_stdc = yes; then 4221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4222 if test "$cross_compiling" = yes; then 4223 : 4224else 4225 cat >conftest.$ac_ext <<_ACEOF 4226#line 4226 "configure" 4227#include "confdefs.h" 4228#include <ctype.h> 4229#if ((' ' & 0x0FF) == 0x020) 4230# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4231# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4232#else 4233# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4234 || ('j' <= (c) && (c) <= 'r') \ 4235 || ('s' <= (c) && (c) <= 'z')) 4236# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4237#endif 4238 4239#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4240int 4241main () 4242{ 4243 int i; 4244 for (i = 0; i < 256; i++) 4245 if (XOR (islower (i), ISLOWER (i)) 4246 || toupper (i) != TOUPPER (i)) 4247 exit(2); 4248 exit (0); 4249} 4250_ACEOF 4251rm -f conftest$ac_exeext 4252{ (eval echo $as_me:4252: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 4253 (./conftest$ac_exeext) >&5 2>&1; 4254ac_status=$? 4255if test $ac_status = 0; then 4256 : 4257else 4258 echo "$as_me: program exited with status $ac_status" >&5 4259echo "$as_me: failed program was:" >&5 4260cat conftest.$ac_ext >&5 4261ac_cv_header_stdc=no 4262fi 4263 4264rm -f conftest$ac_exeext conftest.$ac_ext 4265fi 4266 4267fi 4268fi 4269echo "$as_me:4269: result: $ac_cv_header_stdc" >&5 4270echo "${ECHO_T}$ac_cv_header_stdc" >&6 4271if test $ac_cv_header_stdc = yes; then 4272 4273cat >>confdefs.h <<\EOF 4274#define STDC_HEADERS 1 4275EOF 4276 4277fi 4278 4279echo "$as_me:4279: checking for size_t" >&5 4280echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4281if test "${ac_cv_type_size_t+set}" = set; then 4282 echo $ECHO_N "(cached) $ECHO_C" >&6 4283else 4284 cat >conftest.$ac_ext <<_ACEOF 4285#line 4285 "configure" 4286#include "confdefs.h" 4287$ac_includes_default 4288int 4289main () 4290{ 4291if ((size_t *) 0) 4292 return 0; 4293if (sizeof (size_t)) 4294 return 0; 4295 ; 4296 return 0; 4297} 4298_ACEOF 4299rm -f conftest.$ac_objext 4300if { (eval echo $as_me:4300: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 4301 ac_cv_type_size_t=yes 4302else 4303 echo "$as_me: failed program was:" >&5 4304 cat conftest.$ac_ext >&5 4305 ac_cv_type_size_t=no 4306fi 4307rm -f conftest.$ac_objext conftest.$ac_ext 4308fi 4309echo "$as_me:4309: result: $ac_cv_type_size_t" >&5 4310echo "${ECHO_T}$ac_cv_type_size_t" >&6 4311if test $ac_cv_type_size_t = yes; then 4312 : 4313else 4314 4315cat >>confdefs.h <<EOF 4316#define size_t unsigned 4317EOF 4318 4319fi 4320 4321echo "$as_me:4321: checking for pid_t" >&5 4322echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 4323if test "${ac_cv_type_pid_t+set}" = set; then 4324 echo $ECHO_N "(cached) $ECHO_C" >&6 4325else 4326 cat >conftest.$ac_ext <<_ACEOF 4327#line 4327 "configure" 4328#include "confdefs.h" 4329$ac_includes_default 4330int 4331main () 4332{ 4333if ((pid_t *) 0) 4334 return 0; 4335if (sizeof (pid_t)) 4336 return 0; 4337 ; 4338 return 0; 4339} 4340_ACEOF 4341rm -f conftest.$ac_objext 4342if { (eval echo $as_me:4342: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 4343 ac_cv_type_pid_t=yes 4344else 4345 echo "$as_me: failed program was:" >&5 4346 cat conftest.$ac_ext >&5 4347 ac_cv_type_pid_t=no 4348fi 4349rm -f conftest.$ac_objext conftest.$ac_ext 4350fi 4351echo "$as_me:4351: result: $ac_cv_type_pid_t" >&5 4352echo "${ECHO_T}$ac_cv_type_pid_t" >&6 4353if test $ac_cv_type_pid_t = yes; then 4354 : 4355else 4356 4357cat >>confdefs.h <<EOF 4358#define pid_t int 4359EOF 4360 4361fi 4362 4363echo "$as_me:4363: checking for uid_t in sys/types.h" >&5 4364echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 4365if test "${ac_cv_type_uid_t+set}" = set; then 4366 echo $ECHO_N "(cached) $ECHO_C" >&6 4367else 4368 cat >conftest.$ac_ext <<_ACEOF 4369#line 4369 "configure" 4370#include "confdefs.h" 4371#include <sys/types.h> 4372 4373_ACEOF 4374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4375 egrep "uid_t" >/dev/null 2>&1; then 4376 ac_cv_type_uid_t=yes 4377else 4378 ac_cv_type_uid_t=no 4379fi 4380rm -f conftest* 4381 4382fi 4383echo "$as_me:4383: result: $ac_cv_type_uid_t" >&5 4384echo "${ECHO_T}$ac_cv_type_uid_t" >&6 4385if test $ac_cv_type_uid_t = no; then 4386 4387cat >>confdefs.h <<\EOF 4388#define uid_t int 4389EOF 4390 4391cat >>confdefs.h <<\EOF 4392#define gid_t int 4393EOF 4394 4395fi 4396 4397echo "$as_me:4397: checking return type of signal handlers" >&5 4398echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4399if test "${ac_cv_type_signal+set}" = set; then 4400 echo $ECHO_N "(cached) $ECHO_C" >&6 4401else 4402 cat >conftest.$ac_ext <<_ACEOF 4403#line 4403 "configure" 4404#include "confdefs.h" 4405#include <sys/types.h> 4406#include <signal.h> 4407#ifdef signal 4408# undef signal 4409#endif 4410#ifdef __cplusplus 4411extern "C" void (*signal (int, void (*)(int)))(int); 4412#else 4413void (*signal ()) (); 4414#endif 4415 4416int 4417main () 4418{ 4419int i; 4420 ; 4421 return 0; 4422} 4423_ACEOF 4424rm -f conftest.$ac_objext 4425if { (eval echo $as_me:4425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 4426 ac_cv_type_signal=void 4427else 4428 echo "$as_me: failed program was:" >&5 4429 cat conftest.$ac_ext >&5 4430 ac_cv_type_signal=int 4431fi 4432rm -f conftest.$ac_objext conftest.$ac_ext 4433fi 4434echo "$as_me:4434: result: $ac_cv_type_signal" >&5 4435echo "${ECHO_T}$ac_cv_type_signal" >&6 4436 4437cat >>confdefs.h <<EOF 4438#define RETSIGTYPE $ac_cv_type_signal 4439EOF 4440 4441if test "$ac_cv_type_signal" = "void" ; then 4442 4443cat >>confdefs.h <<\EOF 4444#define VOID_RETSIGTYPE 1 4445EOF 4446 4447fi 4448 4449echo "$as_me:4449: checking whether time.h and sys/time.h may both be included" >&5 4450echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4451if test "${ac_cv_header_time+set}" = set; then 4452 echo $ECHO_N "(cached) $ECHO_C" >&6 4453else 4454 cat >conftest.$ac_ext <<_ACEOF 4455#line 4455 "configure" 4456#include "confdefs.h" 4457#include <sys/types.h> 4458#include <sys/time.h> 4459#include <time.h> 4460 4461int 4462main () 4463{ 4464struct tm *tp; 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469rm -f conftest.$ac_objext 4470if { (eval echo $as_me:4470: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 4471 ac_cv_header_time=yes 4472else 4473 echo "$as_me: failed program was:" >&5 4474 cat conftest.$ac_ext >&5 4475 ac_cv_header_time=no 4476fi 4477rm -f conftest.$ac_objext conftest.$ac_ext 4478fi 4479echo "$as_me:4479: result: $ac_cv_header_time" >&5 4480echo "${ECHO_T}$ac_cv_header_time" >&6 4481if test $ac_cv_header_time = yes; then 4482 4483cat >>confdefs.h <<\EOF 4484#define TIME_WITH_SYS_TIME 1 4485EOF 4486 4487fi 4488 4489for ac_header in standards.h 4490do 4491ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4492 4493echo "$as_me:4493: checking for $ac_header" >&5 4494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4495if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497else 4498 cat >conftest.$ac_ext <<_ACEOF 4499#line 4499 "configure" 4500#include "confdefs.h" 4501#include <$ac_header> 4502 4503_ACEOF 4504ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 4505if { (eval echo $as_me:4505: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 4506 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 4507 ac_cpp_err=$ac_c_preproc_warn_flag 4508 else 4509 ac_cpp_err= 4510 fi 4511else 4512 ac_cpp_err=yes 4513fi 4514 4515if test -z "$ac_cpp_err"; then 4516 eval "$ac_ac_Header=yes" 4517else 4518 cat conftest.err >&5 4519 echo "$as_me: failed program was:" >&5 4520 cat conftest.$ac_ext >&5 4521 eval "$ac_ac_Header=no" 4522fi 4523rm -f conftest* 4524 4525fi 4526echo "$as_me:4526: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4527echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4528if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4529 cat >>confdefs.h <<EOF 4530#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4531EOF 4532 4533fi 4534done 4535 4536for i in netinet/ip.h netinet/tcp.h; do 4537 4538cv=`echo "$i" | sed 'y%./+-%__p_%'` 4539 4540echo "$as_me:4540: checking for $i" >&5 4541echo $ECHO_N "checking for $i... $ECHO_C" >&6 4542if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then 4543 echo $ECHO_N "(cached) $ECHO_C" >&6 4544else 4545 cat >conftest.$ac_ext <<_ACEOF 4546#line 4546 "configure" 4547#include "confdefs.h" 4548\ 4549#ifdef HAVE_STANDARDS_H 4550#include <standards.h> 4551#endif 4552#include <$i> 4553 4554_ACEOF 4555ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 4556if { (eval echo $as_me:4556: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 4557 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 4558 ac_cpp_err=$ac_c_preproc_warn_flag 4559 else 4560 ac_cpp_err= 4561 fi 4562else 4563 ac_cpp_err=yes 4564fi 4565 4566if test -z "$ac_cpp_err"; then 4567 eval "ac_cv_header_$cv=yes" 4568else 4569 cat conftest.err >&5 4570 echo "$as_me: failed program was:" >&5 4571 cat conftest.$ac_ext >&5 4572 eval "ac_cv_header_$cv=no" 4573fi 4574rm -f conftest* 4575 4576fi 4577echo "$as_me:4577: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5 4578echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6 4579ac_res=`eval echo \\$ac_cv_header_$cv` 4580if test "$ac_res" = yes; then 4581 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4582 cat >>confdefs.h <<EOF 4583#define $ac_tr_hdr 1 4584EOF 4585 4586fi 4587done 4588if false;then 4589 4590for ac_header in netinet/ip.h netinet/tcp.h 4591do 4592ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4593 4594echo "$as_me:4594: checking for $ac_header" >&5 4595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4596if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4597 echo $ECHO_N "(cached) $ECHO_C" >&6 4598else 4599 cat >conftest.$ac_ext <<_ACEOF 4600#line 4600 "configure" 4601#include "confdefs.h" 4602#include <$ac_header> 4603 4604_ACEOF 4605ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 4606if { (eval echo $as_me:4606: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 4607 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 4608 ac_cpp_err=$ac_c_preproc_warn_flag 4609 else 4610 ac_cpp_err= 4611 fi 4612else 4613 ac_cpp_err=yes 4614fi 4615 4616if test -z "$ac_cpp_err"; then 4617 eval "$ac_ac_Header=yes" 4618else 4619 cat conftest.err >&5 4620 echo "$as_me: failed program was:" >&5 4621 cat conftest.$ac_ext >&5 4622 eval "$ac_ac_Header=no" 4623fi 4624rm -f conftest* 4625 4626fi 4627echo "$as_me:4627: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4628echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4629if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4630 cat >>confdefs.h <<EOF 4631#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4632EOF 4633 4634fi 4635done 4636 4637fi 4638 4639for ac_func in getlogin setlogin 4640do 4641ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4642echo "$as_me:4642: checking for $ac_func" >&5 4643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4644if eval "test \"\${$ac_ac_var+set}\" = set"; then 4645 echo $ECHO_N "(cached) $ECHO_C" >&6 4646else 4647 cat >conftest.$ac_ext <<_ACEOF 4648#line 4648 "configure" 4649#include "confdefs.h" 4650/* System header to define __stub macros and hopefully few prototypes, 4651 which can conflict with char $ac_func (); below. */ 4652#include <assert.h> 4653/* Override any gcc2 internal prototype to avoid an error. */ 4654#ifdef __cplusplus 4655extern "C" 4656#endif 4657/* We use char because int might match the return type of a gcc2 4658 builtin and then its argument prototype would still apply. */ 4659char $ac_func (); 4660char (*f) (); 4661 4662int 4663main () 4664{ 4665/* The GNU C library defines this for functions which it implements 4666 to always fail with ENOSYS. Some functions are actually named 4667 something starting with __ and the normal name is an alias. */ 4668#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4669choke me 4670#else 4671f = $ac_func; 4672#endif 4673 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678rm -f conftest.$ac_objext conftest$ac_exeext 4679if { (eval echo $as_me:4679: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 4680 eval "$ac_ac_var=yes" 4681else 4682 echo "$as_me: failed program was:" >&5 4683 cat conftest.$ac_ext >&5 4684 eval "$ac_ac_var=no" 4685fi 4686rm -f conftest$ac_exeext conftest.$ac_ext 4687fi 4688echo "$as_me:4688: result: `eval echo '${'$ac_ac_var'}'`" >&5 4689echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4690if test `eval echo '${'$ac_ac_var'}'` = yes; then 4691 cat >>confdefs.h <<EOF 4692#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4693EOF 4694 4695fi 4696done 4697 4698if test "$ac_cv_func_getlogin" = yes; then 4699echo "$as_me:4699: checking if getlogin is posix" >&5 4700echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6 4701if test "${ac_cv_func_getlogin_posix+set}" = set; then 4702 echo $ECHO_N "(cached) $ECHO_C" >&6 4703else 4704 4705if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 4706 ac_cv_func_getlogin_posix=no 4707else 4708 ac_cv_func_getlogin_posix=yes 4709fi 4710 4711fi 4712echo "$as_me:4712: result: $ac_cv_func_getlogin_posix" >&5 4713echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6 4714if test "$ac_cv_func_getlogin_posix" = yes; then 4715 4716cat >>confdefs.h <<\EOF 4717#define POSIX_GETLOGIN 1 4718EOF 4719 4720fi 4721fi 4722 4723echo "$as_me:4723: checking if realloc if broken" >&5 4724echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6 4725if test "${ac_cv_func_realloc_broken+set}" = set; then 4726 echo $ECHO_N "(cached) $ECHO_C" >&6 4727else 4728 4729ac_cv_func_realloc_broken=no 4730if test "$cross_compiling" = yes; then 4731 : 4732else 4733 cat >conftest.$ac_ext <<_ACEOF 4734#line 4734 "configure" 4735#include "confdefs.h" 4736 4737#include <stddef.h> 4738#include <stdlib.h> 4739 4740int main() 4741{ 4742 return realloc(NULL, 17) == NULL; 4743} 4744 4745_ACEOF 4746rm -f conftest$ac_exeext 4747{ (eval echo $as_me:4747: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 4748 (./conftest$ac_exeext) >&5 2>&1; 4749ac_status=$? 4750if test $ac_status = 0; then 4751 : 4752else 4753 echo "$as_me: program exited with status $ac_status" >&5 4754echo "$as_me: failed program was:" >&5 4755cat conftest.$ac_ext >&5 4756ac_cv_func_realloc_broken=yes 4757fi 4758 4759rm -f conftest$ac_exeext conftest.$ac_ext 4760fi 4761 4762fi 4763echo "$as_me:4763: result: $ac_cv_func_realloc_broken" >&5 4764echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6 4765if test "$ac_cv_func_realloc_broken" = yes ; then 4766 4767cat >>confdefs.h <<\EOF 4768#define BROKEN_REALLOC 1 4769EOF 4770 4771fi 4772 4773DIR_roken=roken 4774LIB_roken='$(top_builddir)/lib/roken/libroken.la' 4775INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 4776 4777WFLAGS_NOUNUSED="" 4778WFLAGS_NOIMPLICITINT="" 4779if test -z "$WFLAGS" -a "$GCC" = "yes"; then 4780 # -Wno-implicit-int for broken X11 headers 4781 # leave these out for now: 4782 # -Wcast-align doesn't work well on alpha osf/1 4783 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 4784 # -Wmissing-declarations -Wnested-externs 4785 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 4786 WFLAGS_NOUNUSED="-Wno-unused" 4787 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 4788fi 4789 4790echo "$as_me:4790: checking for ssize_t" >&5 4791echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 4792if test "${ac_cv_type_ssize_t+set}" = set; then 4793 echo $ECHO_N "(cached) $ECHO_C" >&6 4794else 4795 cat >conftest.$ac_ext <<_ACEOF 4796#line 4796 "configure" 4797#include "confdefs.h" 4798#include <sys/types.h> 4799#if STDC_HEADERS 4800#include <stdlib.h> 4801#include <stddef.h> 4802#endif 4803#include <unistd.h> 4804_ACEOF 4805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4806 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 4807 ac_cv_type_ssize_t=yes 4808else 4809 ac_cv_type_ssize_t=no 4810fi 4811rm -f conftest* 4812 4813fi 4814echo "$as_me:4814: result: $ac_cv_type_ssize_t" >&5 4815echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 4816if test $ac_cv_type_ssize_t = no; then 4817 4818cat >>confdefs.h <<\EOF 4819#define ssize_t int 4820EOF 4821 4822fi 4823 4824cv=`echo "long long" | sed 'y%./+- %__p__%'` 4825echo "$as_me:4825: checking for long long" >&5 4826echo $ECHO_N "checking for long long... $ECHO_C" >&6 4827if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 4828 echo $ECHO_N "(cached) $ECHO_C" >&6 4829else 4830 cat >conftest.$ac_ext <<_ACEOF 4831#line 4831 "configure" 4832#include "confdefs.h" 4833#include <sys/types.h> 4834#if STDC_HEADERS 4835#include <stdlib.h> 4836#include <stddef.h> 4837#endif 4838 4839int 4840main () 4841{ 4842long long foo; 4843 ; 4844 return 0; 4845} 4846_ACEOF 4847rm -f conftest.$ac_objext 4848if { (eval echo $as_me:4848: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 4849 eval "ac_cv_type_$cv=yes" 4850else 4851 echo "$as_me: failed program was:" >&5 4852 cat conftest.$ac_ext >&5 4853 eval "ac_cv_type_$cv=no" 4854fi 4855rm -f conftest.$ac_objext conftest.$ac_ext 4856fi 4857ac_foo=`eval echo \\$ac_cv_type_$cv` 4858echo "$as_me:4858: result: $ac_foo" >&5 4859echo "${ECHO_T}$ac_foo" >&6 4860if test "$ac_foo" = yes; then 4861 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 4862if false; then 4863 echo "$as_me:4863: checking for long long" >&5 4864echo $ECHO_N "checking for long long... $ECHO_C" >&6 4865if test "${ac_cv_type_long_long+set}" = set; then 4866 echo $ECHO_N "(cached) $ECHO_C" >&6 4867else 4868 cat >conftest.$ac_ext <<_ACEOF 4869#line 4869 "configure" 4870#include "confdefs.h" 4871$ac_includes_default 4872int 4873main () 4874{ 4875if ((long long *) 0) 4876 return 0; 4877if (sizeof (long long)) 4878 return 0; 4879 ; 4880 return 0; 4881} 4882_ACEOF 4883rm -f conftest.$ac_objext 4884if { (eval echo $as_me:4884: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 4885 ac_cv_type_long_long=yes 4886else 4887 echo "$as_me: failed program was:" >&5 4888 cat conftest.$ac_ext >&5 4889 ac_cv_type_long_long=no 4890fi 4891rm -f conftest.$ac_objext conftest.$ac_ext 4892fi 4893echo "$as_me:4893: result: $ac_cv_type_long_long" >&5 4894echo "${ECHO_T}$ac_cv_type_long_long" >&6 4895if test $ac_cv_type_long_long = yes; then 4896 4897cat >>confdefs.h <<EOF 4898#define HAVE_LONG_LONG 1 4899EOF 4900 4901fi 4902 4903fi 4904 4905cat >>confdefs.h <<EOF 4906#define $ac_tr_hdr 1 4907EOF 4908 4909fi 4910 4911for ac_header in \ 4912 arpa/inet.h \ 4913 arpa/nameser.h \ 4914 config.h \ 4915 crypt.h \ 4916 dbm.h \ 4917 db.h \ 4918 dirent.h \ 4919 errno.h \ 4920 err.h \ 4921 fcntl.h \ 4922 gdbm/ndbm.h \ 4923 grp.h \ 4924 ifaddrs.h \ 4925 ndbm.h \ 4926 net/if.h \ 4927 netdb.h \ 4928 netinet/in.h \ 4929 netinet/in6.h \ 4930 netinet/in_systm.h \ 4931 netinet6/in6.h \ 4932 netinet6/in6_var.h \ 4933 paths.h \ 4934 pwd.h \ 4935 resolv.h \ 4936 rpcsvc/dbm.h \ 4937 rpcsvc/ypclnt.h \ 4938 shadow.h \ 4939 sys/bswap.h \ 4940 sys/ioctl.h \ 4941 sys/param.h \ 4942 sys/proc.h \ 4943 sys/resource.h \ 4944 sys/socket.h \ 4945 sys/sockio.h \ 4946 sys/stat.h \ 4947 sys/sysctl.h \ 4948 sys/time.h \ 4949 sys/tty.h \ 4950 sys/types.h \ 4951 sys/uio.h \ 4952 sys/utsname.h \ 4953 sys/wait.h \ 4954 syslog.h \ 4955 termios.h \ 4956 unistd.h \ 4957 userconf.h \ 4958 usersec.h \ 4959 util.h \ 4960 vis.h \ 4961 winsock.h \ 4962 4963do 4964ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4965 4966echo "$as_me:4966: checking for $ac_header" >&5 4967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4968if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4969 echo $ECHO_N "(cached) $ECHO_C" >&6 4970else 4971 cat >conftest.$ac_ext <<_ACEOF 4972#line 4972 "configure" 4973#include "confdefs.h" 4974#include <$ac_header> 4975 4976_ACEOF 4977ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 4978if { (eval echo $as_me:4978: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 4979 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 4980 ac_cpp_err=$ac_c_preproc_warn_flag 4981 else 4982 ac_cpp_err= 4983 fi 4984else 4985 ac_cpp_err=yes 4986fi 4987 4988if test -z "$ac_cpp_err"; then 4989 eval "$ac_ac_Header=yes" 4990else 4991 cat conftest.err >&5 4992 echo "$as_me: failed program was:" >&5 4993 cat conftest.$ac_ext >&5 4994 eval "$ac_ac_Header=no" 4995fi 4996rm -f conftest* 4997 4998fi 4999echo "$as_me:4999: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5000echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5001if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5002 cat >>confdefs.h <<EOF 5003#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5004EOF 5005 5006fi 5007done 5008 5009if test "$ac_cv_header_err_h" = yes; then 5010 have_err_h_TRUE= 5011 have_err_h_FALSE='#' 5012else 5013 have_err_h_TRUE='#' 5014 have_err_h_FALSE= 5015fi 5016 5017if test "$ac_cv_header_fnmatch_h" = yes; then 5018 have_fnmatch_h_TRUE= 5019 have_fnmatch_h_FALSE='#' 5020else 5021 have_fnmatch_h_TRUE='#' 5022 have_fnmatch_h_FALSE= 5023fi 5024 5025if test "$ac_cv_header_ifaddrs_h" = yes; then 5026 have_ifaddrs_h_TRUE= 5027 have_ifaddrs_h_FALSE='#' 5028else 5029 have_ifaddrs_h_TRUE='#' 5030 have_ifaddrs_h_FALSE= 5031fi 5032 5033if test "$ac_cv_header_vis_h" = yes; then 5034 have_vis_h_TRUE= 5035 have_vis_h_FALSE='#' 5036else 5037 have_vis_h_TRUE='#' 5038 have_vis_h_FALSE= 5039fi 5040 5041# Check whether --with-ipv6 or --without-ipv6 was given. 5042if test "${with_ipv6+set}" = set; then 5043 withval="$with_ipv6" 5044 5045if test "$withval" = "no"; then 5046 ac_cv_lib_ipv6=no 5047fi 5048fi; 5049save_CFLAGS="${CFLAGS}" 5050if test "${ac_cv_lib_ipv6+set}" = set; then 5051 echo $ECHO_N "(cached) $ECHO_C" >&6 5052else 5053 v6type=unknown 5054v6lib=none 5055 5056echo "$as_me:5056: checking ipv6 stack type" >&5 5057echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 5058for i in v6d toshiba kame inria zeta linux; do 5059 case $i in 5060 v6d) 5061 cat >conftest.$ac_ext <<_ACEOF 5062#line 5062 "configure" 5063#include "confdefs.h" 5064 5065#include </usr/local/v6/include/sys/types.h> 5066#ifdef __V6D__ 5067yes 5068#endif 5069_ACEOF 5070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5071 egrep "yes" >/dev/null 2>&1; then 5072 v6type=$i; v6lib=v6; 5073 v6libdir=/usr/local/v6/lib; 5074 CFLAGS="-I/usr/local/v6/include $CFLAGS" 5075fi 5076rm -f conftest* 5077 5078 ;; 5079 toshiba) 5080 cat >conftest.$ac_ext <<_ACEOF 5081#line 5081 "configure" 5082#include "confdefs.h" 5083 5084#include <sys/param.h> 5085#ifdef _TOSHIBA_INET6 5086yes 5087#endif 5088_ACEOF 5089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5090 egrep "yes" >/dev/null 2>&1; then 5091 v6type=$i; v6lib=inet6; 5092 v6libdir=/usr/local/v6/lib; 5093 CFLAGS="-DINET6 $CFLAGS" 5094fi 5095rm -f conftest* 5096 5097 ;; 5098 kame) 5099 cat >conftest.$ac_ext <<_ACEOF 5100#line 5100 "configure" 5101#include "confdefs.h" 5102 5103#include <netinet/in.h> 5104#ifdef __KAME__ 5105yes 5106#endif 5107_ACEOF 5108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5109 egrep "yes" >/dev/null 2>&1; then 5110 v6type=$i; v6lib=inet6; 5111 v6libdir=/usr/local/v6/lib; 5112 CFLAGS="-DINET6 $CFLAGS" 5113fi 5114rm -f conftest* 5115 5116 ;; 5117 inria) 5118 cat >conftest.$ac_ext <<_ACEOF 5119#line 5119 "configure" 5120#include "confdefs.h" 5121 5122#include <netinet/in.h> 5123#ifdef IPV6_INRIA_VERSION 5124yes 5125#endif 5126_ACEOF 5127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5128 egrep "yes" >/dev/null 2>&1; then 5129 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 5130fi 5131rm -f conftest* 5132 5133 ;; 5134 zeta) 5135 cat >conftest.$ac_ext <<_ACEOF 5136#line 5136 "configure" 5137#include "confdefs.h" 5138 5139#include <sys/param.h> 5140#ifdef _ZETA_MINAMI_INET6 5141yes 5142#endif 5143_ACEOF 5144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5145 egrep "yes" >/dev/null 2>&1; then 5146 v6type=$i; v6lib=inet6; 5147 v6libdir=/usr/local/v6/lib; 5148 CFLAGS="-DINET6 $CFLAGS" 5149fi 5150rm -f conftest* 5151 5152 ;; 5153 linux) 5154 if test -d /usr/inet6; then 5155 v6type=$i 5156 v6lib=inet6 5157 v6libdir=/usr/inet6 5158 CFLAGS="-DINET6 $CFLAGS" 5159 fi 5160 ;; 5161 esac 5162 if test "$v6type" != "unknown"; then 5163 break 5164 fi 5165done 5166echo "$as_me:5166: result: $v6type" >&5 5167echo "${ECHO_T}$v6type" >&6 5168 5169if test "$v6lib" != "none"; then 5170 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 5171 if test -d $dir -a -f $dir/lib$v6lib.a; then 5172 LIBS="-L$dir -l$v6lib $LIBS" 5173 break 5174 fi 5175 done 5176fi 5177cat >conftest.$ac_ext <<_ACEOF 5178#line 5178 "configure" 5179#include "confdefs.h" 5180 5181#ifdef HAVE_SYS_TYPES_H 5182#include <sys/types.h> 5183#endif 5184#ifdef HAVE_SYS_SOCKET_H 5185#include <sys/socket.h> 5186#endif 5187#ifdef HAVE_NETINET_IN_H 5188#include <netinet/in.h> 5189#endif 5190#ifdef HAVE_NETINET_IN6_H 5191#include <netinet/in6.h> 5192#endif 5193 5194int 5195main () 5196{ 5197 5198 struct sockaddr_in6 sin6; 5199 int s; 5200 5201 s = socket(AF_INET6, SOCK_DGRAM, 0); 5202 5203 sin6.sin6_family = AF_INET6; 5204 sin6.sin6_port = htons(17); 5205 sin6.sin6_addr = in6addr_any; 5206 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 5207 5208 ; 5209 return 0; 5210} 5211_ACEOF 5212rm -f conftest.$ac_objext conftest$ac_exeext 5213if { (eval echo $as_me:5213: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5214 ac_cv_lib_ipv6=yes 5215else 5216 echo "$as_me: failed program was:" >&5 5217 cat conftest.$ac_ext >&5 5218 ac_cv_lib_ipv6=no 5219fi 5220rm -f conftest$ac_exeext conftest.$ac_ext 5221fi 5222 5223echo "$as_me:5223: checking for IPv6" >&5 5224echo $ECHO_N "checking for IPv6... $ECHO_C" >&6 5225echo "$as_me:5225: result: $ac_cv_lib_ipv6" >&5 5226echo "${ECHO_T}$ac_cv_lib_ipv6" >&6 5227if test "$ac_cv_lib_ipv6" = yes; then 5228 5229cat >>confdefs.h <<\EOF 5230#define HAVE_IPV6 1 5231EOF 5232 5233else 5234 CFLAGS="${save_CFLAGS}" 5235fi 5236 5237echo "$as_me:5237: checking for socket" >&5 5238echo $ECHO_N "checking for socket... $ECHO_C" >&6 5239if test "${ac_cv_funclib_socket+set}" = set; then 5240 echo $ECHO_N "(cached) $ECHO_C" >&6 5241else 5242 5243if eval "test \"\$ac_cv_func_socket\" != yes" ; then 5244 ac_save_LIBS="$LIBS" 5245 for ac_lib in "" socket; do 5246 if test -n "$ac_lib"; then 5247 ac_lib="-l$ac_lib" 5248 else 5249 ac_lib="" 5250 fi 5251 LIBS=" $ac_lib $ac_save_LIBS" 5252 cat >conftest.$ac_ext <<_ACEOF 5253#line 5253 "configure" 5254#include "confdefs.h" 5255 5256int 5257main () 5258{ 5259socket() 5260 ; 5261 return 0; 5262} 5263_ACEOF 5264rm -f conftest.$ac_objext conftest$ac_exeext 5265if { (eval echo $as_me:5265: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5266 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 5267else 5268 echo "$as_me: failed program was:" >&5 5269 cat conftest.$ac_ext >&5 5270fi 5271rm -f conftest$ac_exeext conftest.$ac_ext 5272 done 5273 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 5274 LIBS="$ac_save_LIBS" 5275fi 5276 5277fi 5278 5279eval "ac_res=\$ac_cv_funclib_socket" 5280 5281if false; then 5282 5283for ac_func in socket 5284do 5285ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 5286echo "$as_me:5286: checking for $ac_func" >&5 5287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5288if eval "test \"\${$ac_ac_var+set}\" = set"; then 5289 echo $ECHO_N "(cached) $ECHO_C" >&6 5290else 5291 cat >conftest.$ac_ext <<_ACEOF 5292#line 5292 "configure" 5293#include "confdefs.h" 5294/* System header to define __stub macros and hopefully few prototypes, 5295 which can conflict with char $ac_func (); below. */ 5296#include <assert.h> 5297/* Override any gcc2 internal prototype to avoid an error. */ 5298#ifdef __cplusplus 5299extern "C" 5300#endif 5301/* We use char because int might match the return type of a gcc2 5302 builtin and then its argument prototype would still apply. */ 5303char $ac_func (); 5304char (*f) (); 5305 5306int 5307main () 5308{ 5309/* The GNU C library defines this for functions which it implements 5310 to always fail with ENOSYS. Some functions are actually named 5311 something starting with __ and the normal name is an alias. */ 5312#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5313choke me 5314#else 5315f = $ac_func; 5316#endif 5317 5318 ; 5319 return 0; 5320} 5321_ACEOF 5322rm -f conftest.$ac_objext conftest$ac_exeext 5323if { (eval echo $as_me:5323: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5324 eval "$ac_ac_var=yes" 5325else 5326 echo "$as_me: failed program was:" >&5 5327 cat conftest.$ac_ext >&5 5328 eval "$ac_ac_var=no" 5329fi 5330rm -f conftest$ac_exeext conftest.$ac_ext 5331fi 5332echo "$as_me:5332: result: `eval echo '${'$ac_ac_var'}'`" >&5 5333echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 5334if test `eval echo '${'$ac_ac_var'}'` = yes; then 5335 cat >>confdefs.h <<EOF 5336#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 5337EOF 5338 5339fi 5340done 5341 5342fi 5343# socket 5344eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5345eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5346eval "LIB_socket=$ac_res" 5347 5348case "$ac_res" in 5349 yes) 5350 eval "ac_cv_func_socket=yes" 5351 eval "LIB_socket=" 5352 cat >>confdefs.h <<EOF 5353#define $ac_tr_func 1 5354EOF 5355 5356 echo "$as_me:5356: result: yes" >&5 5357echo "${ECHO_T}yes" >&6 5358 ;; 5359 no) 5360 eval "ac_cv_func_socket=no" 5361 eval "LIB_socket=" 5362 echo "$as_me:5362: result: no" >&5 5363echo "${ECHO_T}no" >&6 5364 ;; 5365 *) 5366 eval "ac_cv_func_socket=yes" 5367 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 5368 cat >>confdefs.h <<EOF 5369#define $ac_tr_func 1 5370EOF 5371 5372 cat >>confdefs.h <<EOF 5373#define $ac_tr_lib 1 5374EOF 5375 5376 echo "$as_me:5376: result: yes, in $ac_res" >&5 5377echo "${ECHO_T}yes, in $ac_res" >&6 5378 ;; 5379esac 5380 5381if test -n "$LIB_socket"; then 5382 LIBS="$LIB_socket $LIBS" 5383fi 5384 5385echo "$as_me:5385: checking for gethostbyname" >&5 5386echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 5387if test "${ac_cv_funclib_gethostbyname+set}" = set; then 5388 echo $ECHO_N "(cached) $ECHO_C" >&6 5389else 5390 5391if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 5392 ac_save_LIBS="$LIBS" 5393 for ac_lib in "" nsl; do 5394 if test -n "$ac_lib"; then 5395 ac_lib="-l$ac_lib" 5396 else 5397 ac_lib="" 5398 fi 5399 LIBS=" $ac_lib $ac_save_LIBS" 5400 cat >conftest.$ac_ext <<_ACEOF 5401#line 5401 "configure" 5402#include "confdefs.h" 5403 5404int 5405main () 5406{ 5407gethostbyname() 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412rm -f conftest.$ac_objext conftest$ac_exeext 5413if { (eval echo $as_me:5413: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5414 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 5415else 5416 echo "$as_me: failed program was:" >&5 5417 cat conftest.$ac_ext >&5 5418fi 5419rm -f conftest$ac_exeext conftest.$ac_ext 5420 done 5421 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 5422 LIBS="$ac_save_LIBS" 5423fi 5424 5425fi 5426 5427eval "ac_res=\$ac_cv_funclib_gethostbyname" 5428 5429if false; then 5430 5431for ac_func in gethostbyname 5432do 5433ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 5434echo "$as_me:5434: checking for $ac_func" >&5 5435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5436if eval "test \"\${$ac_ac_var+set}\" = set"; then 5437 echo $ECHO_N "(cached) $ECHO_C" >&6 5438else 5439 cat >conftest.$ac_ext <<_ACEOF 5440#line 5440 "configure" 5441#include "confdefs.h" 5442/* System header to define __stub macros and hopefully few prototypes, 5443 which can conflict with char $ac_func (); below. */ 5444#include <assert.h> 5445/* Override any gcc2 internal prototype to avoid an error. */ 5446#ifdef __cplusplus 5447extern "C" 5448#endif 5449/* We use char because int might match the return type of a gcc2 5450 builtin and then its argument prototype would still apply. */ 5451char $ac_func (); 5452char (*f) (); 5453 5454int 5455main () 5456{ 5457/* The GNU C library defines this for functions which it implements 5458 to always fail with ENOSYS. Some functions are actually named 5459 something starting with __ and the normal name is an alias. */ 5460#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5461choke me 5462#else 5463f = $ac_func; 5464#endif 5465 5466 ; 5467 return 0; 5468} 5469_ACEOF 5470rm -f conftest.$ac_objext conftest$ac_exeext 5471if { (eval echo $as_me:5471: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5472 eval "$ac_ac_var=yes" 5473else 5474 echo "$as_me: failed program was:" >&5 5475 cat conftest.$ac_ext >&5 5476 eval "$ac_ac_var=no" 5477fi 5478rm -f conftest$ac_exeext conftest.$ac_ext 5479fi 5480echo "$as_me:5480: result: `eval echo '${'$ac_ac_var'}'`" >&5 5481echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 5482if test `eval echo '${'$ac_ac_var'}'` = yes; then 5483 cat >>confdefs.h <<EOF 5484#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 5485EOF 5486 5487fi 5488done 5489 5490fi 5491# gethostbyname 5492eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5493eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5494eval "LIB_gethostbyname=$ac_res" 5495 5496case "$ac_res" in 5497 yes) 5498 eval "ac_cv_func_gethostbyname=yes" 5499 eval "LIB_gethostbyname=" 5500 cat >>confdefs.h <<EOF 5501#define $ac_tr_func 1 5502EOF 5503 5504 echo "$as_me:5504: result: yes" >&5 5505echo "${ECHO_T}yes" >&6 5506 ;; 5507 no) 5508 eval "ac_cv_func_gethostbyname=no" 5509 eval "LIB_gethostbyname=" 5510 echo "$as_me:5510: result: no" >&5 5511echo "${ECHO_T}no" >&6 5512 ;; 5513 *) 5514 eval "ac_cv_func_gethostbyname=yes" 5515 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 5516 cat >>confdefs.h <<EOF 5517#define $ac_tr_func 1 5518EOF 5519 5520 cat >>confdefs.h <<EOF 5521#define $ac_tr_lib 1 5522EOF 5523 5524 echo "$as_me:5524: result: yes, in $ac_res" >&5 5525echo "${ECHO_T}yes, in $ac_res" >&6 5526 ;; 5527esac 5528 5529if test -n "$LIB_gethostbyname"; then 5530 LIBS="$LIB_gethostbyname $LIBS" 5531fi 5532 5533echo "$as_me:5533: checking for syslog" >&5 5534echo $ECHO_N "checking for syslog... $ECHO_C" >&6 5535if test "${ac_cv_funclib_syslog+set}" = set; then 5536 echo $ECHO_N "(cached) $ECHO_C" >&6 5537else 5538 5539if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 5540 ac_save_LIBS="$LIBS" 5541 for ac_lib in "" syslog; do 5542 if test -n "$ac_lib"; then 5543 ac_lib="-l$ac_lib" 5544 else 5545 ac_lib="" 5546 fi 5547 LIBS=" $ac_lib $ac_save_LIBS" 5548 cat >conftest.$ac_ext <<_ACEOF 5549#line 5549 "configure" 5550#include "confdefs.h" 5551 5552int 5553main () 5554{ 5555syslog() 5556 ; 5557 return 0; 5558} 5559_ACEOF 5560rm -f conftest.$ac_objext conftest$ac_exeext 5561if { (eval echo $as_me:5561: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5562 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 5563else 5564 echo "$as_me: failed program was:" >&5 5565 cat conftest.$ac_ext >&5 5566fi 5567rm -f conftest$ac_exeext conftest.$ac_ext 5568 done 5569 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 5570 LIBS="$ac_save_LIBS" 5571fi 5572 5573fi 5574 5575eval "ac_res=\$ac_cv_funclib_syslog" 5576 5577if false; then 5578 5579for ac_func in syslog 5580do 5581ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 5582echo "$as_me:5582: checking for $ac_func" >&5 5583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5584if eval "test \"\${$ac_ac_var+set}\" = set"; then 5585 echo $ECHO_N "(cached) $ECHO_C" >&6 5586else 5587 cat >conftest.$ac_ext <<_ACEOF 5588#line 5588 "configure" 5589#include "confdefs.h" 5590/* System header to define __stub macros and hopefully few prototypes, 5591 which can conflict with char $ac_func (); below. */ 5592#include <assert.h> 5593/* Override any gcc2 internal prototype to avoid an error. */ 5594#ifdef __cplusplus 5595extern "C" 5596#endif 5597/* We use char because int might match the return type of a gcc2 5598 builtin and then its argument prototype would still apply. */ 5599char $ac_func (); 5600char (*f) (); 5601 5602int 5603main () 5604{ 5605/* The GNU C library defines this for functions which it implements 5606 to always fail with ENOSYS. Some functions are actually named 5607 something starting with __ and the normal name is an alias. */ 5608#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5609choke me 5610#else 5611f = $ac_func; 5612#endif 5613 5614 ; 5615 return 0; 5616} 5617_ACEOF 5618rm -f conftest.$ac_objext conftest$ac_exeext 5619if { (eval echo $as_me:5619: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5620 eval "$ac_ac_var=yes" 5621else 5622 echo "$as_me: failed program was:" >&5 5623 cat conftest.$ac_ext >&5 5624 eval "$ac_ac_var=no" 5625fi 5626rm -f conftest$ac_exeext conftest.$ac_ext 5627fi 5628echo "$as_me:5628: result: `eval echo '${'$ac_ac_var'}'`" >&5 5629echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 5630if test `eval echo '${'$ac_ac_var'}'` = yes; then 5631 cat >>confdefs.h <<EOF 5632#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 5633EOF 5634 5635fi 5636done 5637 5638fi 5639# syslog 5640eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5641eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5642eval "LIB_syslog=$ac_res" 5643 5644case "$ac_res" in 5645 yes) 5646 eval "ac_cv_func_syslog=yes" 5647 eval "LIB_syslog=" 5648 cat >>confdefs.h <<EOF 5649#define $ac_tr_func 1 5650EOF 5651 5652 echo "$as_me:5652: result: yes" >&5 5653echo "${ECHO_T}yes" >&6 5654 ;; 5655 no) 5656 eval "ac_cv_func_syslog=no" 5657 eval "LIB_syslog=" 5658 echo "$as_me:5658: result: no" >&5 5659echo "${ECHO_T}no" >&6 5660 ;; 5661 *) 5662 eval "ac_cv_func_syslog=yes" 5663 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 5664 cat >>confdefs.h <<EOF 5665#define $ac_tr_func 1 5666EOF 5667 5668 cat >>confdefs.h <<EOF 5669#define $ac_tr_lib 1 5670EOF 5671 5672 echo "$as_me:5672: result: yes, in $ac_res" >&5 5673echo "${ECHO_T}yes, in $ac_res" >&6 5674 ;; 5675esac 5676 5677if test -n "$LIB_syslog"; then 5678 LIBS="$LIB_syslog $LIBS" 5679fi 5680 5681echo "$as_me:5681: checking for gethostbyname2" >&5 5682echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6 5683if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 5684 echo $ECHO_N "(cached) $ECHO_C" >&6 5685else 5686 5687if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 5688 ac_save_LIBS="$LIBS" 5689 for ac_lib in "" inet6 ip6; do 5690 if test -n "$ac_lib"; then 5691 ac_lib="-l$ac_lib" 5692 else 5693 ac_lib="" 5694 fi 5695 LIBS=" $ac_lib $ac_save_LIBS" 5696 cat >conftest.$ac_ext <<_ACEOF 5697#line 5697 "configure" 5698#include "confdefs.h" 5699 5700int 5701main () 5702{ 5703gethostbyname2() 5704 ; 5705 return 0; 5706} 5707_ACEOF 5708rm -f conftest.$ac_objext conftest$ac_exeext 5709if { (eval echo $as_me:5709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5710 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 5711else 5712 echo "$as_me: failed program was:" >&5 5713 cat conftest.$ac_ext >&5 5714fi 5715rm -f conftest$ac_exeext conftest.$ac_ext 5716 done 5717 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 5718 LIBS="$ac_save_LIBS" 5719fi 5720 5721fi 5722 5723eval "ac_res=\$ac_cv_funclib_gethostbyname2" 5724 5725if false; then 5726 5727for ac_func in gethostbyname2 5728do 5729ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 5730echo "$as_me:5730: checking for $ac_func" >&5 5731echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5732if eval "test \"\${$ac_ac_var+set}\" = set"; then 5733 echo $ECHO_N "(cached) $ECHO_C" >&6 5734else 5735 cat >conftest.$ac_ext <<_ACEOF 5736#line 5736 "configure" 5737#include "confdefs.h" 5738/* System header to define __stub macros and hopefully few prototypes, 5739 which can conflict with char $ac_func (); below. */ 5740#include <assert.h> 5741/* Override any gcc2 internal prototype to avoid an error. */ 5742#ifdef __cplusplus 5743extern "C" 5744#endif 5745/* We use char because int might match the return type of a gcc2 5746 builtin and then its argument prototype would still apply. */ 5747char $ac_func (); 5748char (*f) (); 5749 5750int 5751main () 5752{ 5753/* The GNU C library defines this for functions which it implements 5754 to always fail with ENOSYS. Some functions are actually named 5755 something starting with __ and the normal name is an alias. */ 5756#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5757choke me 5758#else 5759f = $ac_func; 5760#endif 5761 5762 ; 5763 return 0; 5764} 5765_ACEOF 5766rm -f conftest.$ac_objext conftest$ac_exeext 5767if { (eval echo $as_me:5767: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5768 eval "$ac_ac_var=yes" 5769else 5770 echo "$as_me: failed program was:" >&5 5771 cat conftest.$ac_ext >&5 5772 eval "$ac_ac_var=no" 5773fi 5774rm -f conftest$ac_exeext conftest.$ac_ext 5775fi 5776echo "$as_me:5776: result: `eval echo '${'$ac_ac_var'}'`" >&5 5777echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 5778if test `eval echo '${'$ac_ac_var'}'` = yes; then 5779 cat >>confdefs.h <<EOF 5780#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 5781EOF 5782 5783fi 5784done 5785 5786fi 5787# gethostbyname2 5788eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5789eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5790eval "LIB_gethostbyname2=$ac_res" 5791 5792case "$ac_res" in 5793 yes) 5794 eval "ac_cv_func_gethostbyname2=yes" 5795 eval "LIB_gethostbyname2=" 5796 cat >>confdefs.h <<EOF 5797#define $ac_tr_func 1 5798EOF 5799 5800 echo "$as_me:5800: result: yes" >&5 5801echo "${ECHO_T}yes" >&6 5802 ;; 5803 no) 5804 eval "ac_cv_func_gethostbyname2=no" 5805 eval "LIB_gethostbyname2=" 5806 echo "$as_me:5806: result: no" >&5 5807echo "${ECHO_T}no" >&6 5808 ;; 5809 *) 5810 eval "ac_cv_func_gethostbyname2=yes" 5811 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 5812 cat >>confdefs.h <<EOF 5813#define $ac_tr_func 1 5814EOF 5815 5816 cat >>confdefs.h <<EOF 5817#define $ac_tr_lib 1 5818EOF 5819 5820 echo "$as_me:5820: result: yes, in $ac_res" >&5 5821echo "${ECHO_T}yes, in $ac_res" >&6 5822 ;; 5823esac 5824 5825if test -n "$LIB_gethostbyname2"; then 5826 LIBS="$LIB_gethostbyname2 $LIBS" 5827fi 5828 5829echo "$as_me:5829: checking for res_search" >&5 5830echo $ECHO_N "checking for res_search... $ECHO_C" >&6 5831if test "${ac_cv_funclib_res_search+set}" = set; then 5832 echo $ECHO_N "(cached) $ECHO_C" >&6 5833else 5834 5835if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 5836 ac_save_LIBS="$LIBS" 5837 for ac_lib in "" resolv; do 5838 if test -n "$ac_lib"; then 5839 ac_lib="-l$ac_lib" 5840 else 5841 ac_lib="" 5842 fi 5843 LIBS=" $ac_lib $ac_save_LIBS" 5844 cat >conftest.$ac_ext <<_ACEOF 5845#line 5845 "configure" 5846#include "confdefs.h" 5847 5848#include <stdio.h> 5849#ifdef HAVE_SYS_TYPES_H 5850#include <sys/types.h> 5851#endif 5852#ifdef HAVE_NETINET_IN_H 5853#include <netinet/in.h> 5854#endif 5855#ifdef HAVE_ARPA_NAMESER_H 5856#include <arpa/nameser.h> 5857#endif 5858#ifdef HAVE_RESOLV_H 5859#include <resolv.h> 5860#endif 5861 5862int 5863main () 5864{ 5865res_search(0,0,0,0,0) 5866 ; 5867 return 0; 5868} 5869_ACEOF 5870rm -f conftest.$ac_objext conftest$ac_exeext 5871if { (eval echo $as_me:5871: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5872 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 5873else 5874 echo "$as_me: failed program was:" >&5 5875 cat conftest.$ac_ext >&5 5876fi 5877rm -f conftest$ac_exeext conftest.$ac_ext 5878 done 5879 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 5880 LIBS="$ac_save_LIBS" 5881fi 5882 5883fi 5884 5885eval "ac_res=\$ac_cv_funclib_res_search" 5886 5887if false; then 5888 5889for ac_func in res_search 5890do 5891ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 5892echo "$as_me:5892: checking for $ac_func" >&5 5893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5894if eval "test \"\${$ac_ac_var+set}\" = set"; then 5895 echo $ECHO_N "(cached) $ECHO_C" >&6 5896else 5897 cat >conftest.$ac_ext <<_ACEOF 5898#line 5898 "configure" 5899#include "confdefs.h" 5900/* System header to define __stub macros and hopefully few prototypes, 5901 which can conflict with char $ac_func (); below. */ 5902#include <assert.h> 5903/* Override any gcc2 internal prototype to avoid an error. */ 5904#ifdef __cplusplus 5905extern "C" 5906#endif 5907/* We use char because int might match the return type of a gcc2 5908 builtin and then its argument prototype would still apply. */ 5909char $ac_func (); 5910char (*f) (); 5911 5912int 5913main () 5914{ 5915/* The GNU C library defines this for functions which it implements 5916 to always fail with ENOSYS. Some functions are actually named 5917 something starting with __ and the normal name is an alias. */ 5918#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5919choke me 5920#else 5921f = $ac_func; 5922#endif 5923 5924 ; 5925 return 0; 5926} 5927_ACEOF 5928rm -f conftest.$ac_objext conftest$ac_exeext 5929if { (eval echo $as_me:5929: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 5930 eval "$ac_ac_var=yes" 5931else 5932 echo "$as_me: failed program was:" >&5 5933 cat conftest.$ac_ext >&5 5934 eval "$ac_ac_var=no" 5935fi 5936rm -f conftest$ac_exeext conftest.$ac_ext 5937fi 5938echo "$as_me:5938: result: `eval echo '${'$ac_ac_var'}'`" >&5 5939echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 5940if test `eval echo '${'$ac_ac_var'}'` = yes; then 5941 cat >>confdefs.h <<EOF 5942#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 5943EOF 5944 5945fi 5946done 5947 5948fi 5949# res_search 5950eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5951eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5952eval "LIB_res_search=$ac_res" 5953 5954case "$ac_res" in 5955 yes) 5956 eval "ac_cv_func_res_search=yes" 5957 eval "LIB_res_search=" 5958 cat >>confdefs.h <<EOF 5959#define $ac_tr_func 1 5960EOF 5961 5962 echo "$as_me:5962: result: yes" >&5 5963echo "${ECHO_T}yes" >&6 5964 ;; 5965 no) 5966 eval "ac_cv_func_res_search=no" 5967 eval "LIB_res_search=" 5968 echo "$as_me:5968: result: no" >&5 5969echo "${ECHO_T}no" >&6 5970 ;; 5971 *) 5972 eval "ac_cv_func_res_search=yes" 5973 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 5974 cat >>confdefs.h <<EOF 5975#define $ac_tr_func 1 5976EOF 5977 5978 cat >>confdefs.h <<EOF 5979#define $ac_tr_lib 1 5980EOF 5981 5982 echo "$as_me:5982: result: yes, in $ac_res" >&5 5983echo "${ECHO_T}yes, in $ac_res" >&6 5984 ;; 5985esac 5986 5987if test -n "$LIB_res_search"; then 5988 LIBS="$LIB_res_search $LIBS" 5989fi 5990 5991echo "$as_me:5991: checking for dn_expand" >&5 5992echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6 5993if test "${ac_cv_funclib_dn_expand+set}" = set; then 5994 echo $ECHO_N "(cached) $ECHO_C" >&6 5995else 5996 5997if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 5998 ac_save_LIBS="$LIBS" 5999 for ac_lib in "" resolv; do 6000 if test -n "$ac_lib"; then 6001 ac_lib="-l$ac_lib" 6002 else 6003 ac_lib="" 6004 fi 6005 LIBS=" $ac_lib $ac_save_LIBS" 6006 cat >conftest.$ac_ext <<_ACEOF 6007#line 6007 "configure" 6008#include "confdefs.h" 6009 6010#include <stdio.h> 6011#ifdef HAVE_SYS_TYPES_H 6012#include <sys/types.h> 6013#endif 6014#ifdef HAVE_NETINET_IN_H 6015#include <netinet/in.h> 6016#endif 6017#ifdef HAVE_ARPA_NAMESER_H 6018#include <arpa/nameser.h> 6019#endif 6020#ifdef HAVE_RESOLV_H 6021#include <resolv.h> 6022#endif 6023 6024int 6025main () 6026{ 6027dn_expand(0,0,0,0,0) 6028 ; 6029 return 0; 6030} 6031_ACEOF 6032rm -f conftest.$ac_objext conftest$ac_exeext 6033if { (eval echo $as_me:6033: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6034 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 6035else 6036 echo "$as_me: failed program was:" >&5 6037 cat conftest.$ac_ext >&5 6038fi 6039rm -f conftest$ac_exeext conftest.$ac_ext 6040 done 6041 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 6042 LIBS="$ac_save_LIBS" 6043fi 6044 6045fi 6046 6047eval "ac_res=\$ac_cv_funclib_dn_expand" 6048 6049if false; then 6050 6051for ac_func in dn_expand 6052do 6053ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6054echo "$as_me:6054: checking for $ac_func" >&5 6055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6056if eval "test \"\${$ac_ac_var+set}\" = set"; then 6057 echo $ECHO_N "(cached) $ECHO_C" >&6 6058else 6059 cat >conftest.$ac_ext <<_ACEOF 6060#line 6060 "configure" 6061#include "confdefs.h" 6062/* System header to define __stub macros and hopefully few prototypes, 6063 which can conflict with char $ac_func (); below. */ 6064#include <assert.h> 6065/* Override any gcc2 internal prototype to avoid an error. */ 6066#ifdef __cplusplus 6067extern "C" 6068#endif 6069/* We use char because int might match the return type of a gcc2 6070 builtin and then its argument prototype would still apply. */ 6071char $ac_func (); 6072char (*f) (); 6073 6074int 6075main () 6076{ 6077/* The GNU C library defines this for functions which it implements 6078 to always fail with ENOSYS. Some functions are actually named 6079 something starting with __ and the normal name is an alias. */ 6080#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6081choke me 6082#else 6083f = $ac_func; 6084#endif 6085 6086 ; 6087 return 0; 6088} 6089_ACEOF 6090rm -f conftest.$ac_objext conftest$ac_exeext 6091if { (eval echo $as_me:6091: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6092 eval "$ac_ac_var=yes" 6093else 6094 echo "$as_me: failed program was:" >&5 6095 cat conftest.$ac_ext >&5 6096 eval "$ac_ac_var=no" 6097fi 6098rm -f conftest$ac_exeext conftest.$ac_ext 6099fi 6100echo "$as_me:6100: result: `eval echo '${'$ac_ac_var'}'`" >&5 6101echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6102if test `eval echo '${'$ac_ac_var'}'` = yes; then 6103 cat >>confdefs.h <<EOF 6104#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6105EOF 6106 6107fi 6108done 6109 6110fi 6111# dn_expand 6112eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6113eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6114eval "LIB_dn_expand=$ac_res" 6115 6116case "$ac_res" in 6117 yes) 6118 eval "ac_cv_func_dn_expand=yes" 6119 eval "LIB_dn_expand=" 6120 cat >>confdefs.h <<EOF 6121#define $ac_tr_func 1 6122EOF 6123 6124 echo "$as_me:6124: result: yes" >&5 6125echo "${ECHO_T}yes" >&6 6126 ;; 6127 no) 6128 eval "ac_cv_func_dn_expand=no" 6129 eval "LIB_dn_expand=" 6130 echo "$as_me:6130: result: no" >&5 6131echo "${ECHO_T}no" >&6 6132 ;; 6133 *) 6134 eval "ac_cv_func_dn_expand=yes" 6135 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6136 cat >>confdefs.h <<EOF 6137#define $ac_tr_func 1 6138EOF 6139 6140 cat >>confdefs.h <<EOF 6141#define $ac_tr_lib 1 6142EOF 6143 6144 echo "$as_me:6144: result: yes, in $ac_res" >&5 6145echo "${ECHO_T}yes, in $ac_res" >&6 6146 ;; 6147esac 6148 6149if test -n "$LIB_dn_expand"; then 6150 LIBS="$LIB_dn_expand $LIBS" 6151fi 6152 6153echo "$as_me:6153: checking for working snprintf" >&5 6154echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 6155if test "${ac_cv_func_snprintf_working+set}" = set; then 6156 echo $ECHO_N "(cached) $ECHO_C" >&6 6157else 6158 ac_cv_func_snprintf_working=yes 6159if test "$cross_compiling" = yes; then 6160 : 6161else 6162 cat >conftest.$ac_ext <<_ACEOF 6163#line 6163 "configure" 6164#include "confdefs.h" 6165 6166#include <stdio.h> 6167#include <string.h> 6168int main() 6169{ 6170 char foo[3]; 6171 snprintf(foo, 2, "12"); 6172 return strcmp(foo, "1"); 6173} 6174_ACEOF 6175rm -f conftest$ac_exeext 6176{ (eval echo $as_me:6176: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 6177 (./conftest$ac_exeext) >&5 2>&1; 6178ac_status=$? 6179if test $ac_status = 0; then 6180 : 6181else 6182 echo "$as_me: program exited with status $ac_status" >&5 6183echo "$as_me: failed program was:" >&5 6184cat conftest.$ac_ext >&5 6185ac_cv_func_snprintf_working=no 6186fi 6187 6188rm -f conftest$ac_exeext conftest.$ac_ext 6189fi 6190 6191fi 6192echo "$as_me:6192: result: $ac_cv_func_snprintf_working" >&5 6193echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6 6194 6195if test "$ac_cv_func_snprintf_working" = yes; then 6196 6197cat >>confdefs.h <<EOF 6198#define HAVE_SNPRINTF 1 6199EOF 6200 6201fi 6202if test "$ac_cv_func_snprintf_working" = yes; then 6203 6204if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 6205echo "$as_me:6205: checking if snprintf needs a prototype" >&5 6206echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6 6207if test "${ac_cv_func_snprintf_noproto+set}" = set; then 6208 echo $ECHO_N "(cached) $ECHO_C" >&6 6209else 6210 cat >conftest.$ac_ext <<_ACEOF 6211#line 6211 "configure" 6212#include "confdefs.h" 6213#include <stdio.h> 6214int 6215main () 6216{ 6217struct foo { int foo; } xx; 6218extern int snprintf (struct foo*); 6219snprintf(&xx); 6220 6221 ; 6222 return 0; 6223} 6224_ACEOF 6225rm -f conftest.$ac_objext 6226if { (eval echo $as_me:6226: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 6227 eval "ac_cv_func_snprintf_noproto=yes" 6228else 6229 echo "$as_me: failed program was:" >&5 6230 cat conftest.$ac_ext >&5 6231 eval "ac_cv_func_snprintf_noproto=no" 6232fi 6233rm -f conftest.$ac_objext conftest.$ac_ext 6234fi 6235echo "$as_me:6235: result: $ac_cv_func_snprintf_noproto" >&5 6236echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6 6237 6238if test "$ac_cv_func_snprintf_noproto" = yes; then 6239 6240cat >>confdefs.h <<\EOF 6241#define NEED_SNPRINTF_PROTO 1 6242EOF 6243 6244fi 6245 6246fi 6247 6248fi 6249 6250echo "$as_me:6250: checking for working vsnprintf" >&5 6251echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6 6252if test "${ac_cv_func_vsnprintf_working+set}" = set; then 6253 echo $ECHO_N "(cached) $ECHO_C" >&6 6254else 6255 ac_cv_func_vsnprintf_working=yes 6256if test "$cross_compiling" = yes; then 6257 : 6258else 6259 cat >conftest.$ac_ext <<_ACEOF 6260#line 6260 "configure" 6261#include "confdefs.h" 6262 6263#include <stdio.h> 6264#include <string.h> 6265#include <stdarg.h> 6266 6267int foo(int num, ...) 6268{ 6269 char bar[3]; 6270 va_list arg; 6271 va_start(arg, num); 6272 vsnprintf(bar, 2, "%s", arg); 6273 va_end(arg); 6274 return strcmp(bar, "1"); 6275} 6276 6277int main() 6278{ 6279 return foo(0, "12"); 6280} 6281_ACEOF 6282rm -f conftest$ac_exeext 6283{ (eval echo $as_me:6283: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 6284 (./conftest$ac_exeext) >&5 2>&1; 6285ac_status=$? 6286if test $ac_status = 0; then 6287 : 6288else 6289 echo "$as_me: program exited with status $ac_status" >&5 6290echo "$as_me: failed program was:" >&5 6291cat conftest.$ac_ext >&5 6292ac_cv_func_vsnprintf_working=no 6293fi 6294 6295rm -f conftest$ac_exeext conftest.$ac_ext 6296fi 6297 6298fi 6299echo "$as_me:6299: result: $ac_cv_func_vsnprintf_working" >&5 6300echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6 6301 6302if test "$ac_cv_func_vsnprintf_working" = yes; then 6303 6304cat >>confdefs.h <<EOF 6305#define HAVE_VSNPRINTF 1 6306EOF 6307 6308fi 6309if test "$ac_cv_func_vsnprintf_working" = yes; then 6310 6311if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 6312echo "$as_me:6312: checking if vsnprintf needs a prototype" >&5 6313echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6 6314if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 6315 echo $ECHO_N "(cached) $ECHO_C" >&6 6316else 6317 cat >conftest.$ac_ext <<_ACEOF 6318#line 6318 "configure" 6319#include "confdefs.h" 6320#include <stdio.h> 6321int 6322main () 6323{ 6324struct foo { int foo; } xx; 6325extern int vsnprintf (struct foo*); 6326vsnprintf(&xx); 6327 6328 ; 6329 return 0; 6330} 6331_ACEOF 6332rm -f conftest.$ac_objext 6333if { (eval echo $as_me:6333: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 6334 eval "ac_cv_func_vsnprintf_noproto=yes" 6335else 6336 echo "$as_me: failed program was:" >&5 6337 cat conftest.$ac_ext >&5 6338 eval "ac_cv_func_vsnprintf_noproto=no" 6339fi 6340rm -f conftest.$ac_objext conftest.$ac_ext 6341fi 6342echo "$as_me:6342: result: $ac_cv_func_vsnprintf_noproto" >&5 6343echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6 6344 6345if test "$ac_cv_func_vsnprintf_noproto" = yes; then 6346 6347cat >>confdefs.h <<\EOF 6348#define NEED_VSNPRINTF_PROTO 1 6349EOF 6350 6351fi 6352 6353fi 6354 6355fi 6356 6357echo "$as_me:6357: checking for working glob" >&5 6358echo $ECHO_N "checking for working glob... $ECHO_C" >&6 6359if test "${ac_cv_func_glob_working+set}" = set; then 6360 echo $ECHO_N "(cached) $ECHO_C" >&6 6361else 6362 ac_cv_func_glob_working=yes 6363cat >conftest.$ac_ext <<_ACEOF 6364#line 6364 "configure" 6365#include "confdefs.h" 6366 6367#include <stdio.h> 6368#include <glob.h> 6369int 6370main () 6371{ 6372 6373glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|GLOB_LIMIT, 6374NULL, NULL); 6375 6376 ; 6377 return 0; 6378} 6379_ACEOF 6380rm -f conftest.$ac_objext conftest$ac_exeext 6381if { (eval echo $as_me:6381: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6382 : 6383else 6384 echo "$as_me: failed program was:" >&5 6385 cat conftest.$ac_ext >&5 6386 ac_cv_func_glob_working=no 6387fi 6388rm -f conftest$ac_exeext conftest.$ac_ext 6389fi 6390echo "$as_me:6390: result: $ac_cv_func_glob_working" >&5 6391echo "${ECHO_T}$ac_cv_func_glob_working" >&6 6392 6393if test "$ac_cv_func_glob_working" = yes; then 6394 6395cat >>confdefs.h <<\EOF 6396#define HAVE_GLOB 1 6397EOF 6398 6399fi 6400if test "$ac_cv_func_glob_working" = yes; then 6401 6402if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 6403echo "$as_me:6403: checking if glob needs a prototype" >&5 6404echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6 6405if test "${ac_cv_func_glob_noproto+set}" = set; then 6406 echo $ECHO_N "(cached) $ECHO_C" >&6 6407else 6408 cat >conftest.$ac_ext <<_ACEOF 6409#line 6409 "configure" 6410#include "confdefs.h" 6411#include <stdio.h> 6412#include <glob.h> 6413int 6414main () 6415{ 6416struct foo { int foo; } xx; 6417extern int glob (struct foo*); 6418glob(&xx); 6419 6420 ; 6421 return 0; 6422} 6423_ACEOF 6424rm -f conftest.$ac_objext 6425if { (eval echo $as_me:6425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 6426 eval "ac_cv_func_glob_noproto=yes" 6427else 6428 echo "$as_me: failed program was:" >&5 6429 cat conftest.$ac_ext >&5 6430 eval "ac_cv_func_glob_noproto=no" 6431fi 6432rm -f conftest.$ac_objext conftest.$ac_ext 6433fi 6434echo "$as_me:6434: result: $ac_cv_func_glob_noproto" >&5 6435echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6 6436 6437if test "$ac_cv_func_glob_noproto" = yes; then 6438 6439cat >>confdefs.h <<\EOF 6440#define NEED_GLOB_PROTO 1 6441EOF 6442 6443fi 6444 6445fi 6446 6447fi 6448 6449if test "$ac_cv_func_glob_working" != yes; then 6450 LIBOBJS="$LIBOBJS glob.o" 6451fi 6452 6453if test "$ac_cv_func_glob_working" = yes; then 6454 have_glob_h_TRUE= 6455 have_glob_h_FALSE='#' 6456else 6457 have_glob_h_TRUE='#' 6458 have_glob_h_FALSE= 6459fi 6460 6461for ac_func in \ 6462 asnprintf \ 6463 asprintf \ 6464 cgetent \ 6465 getconfattr \ 6466 getprogname \ 6467 getrlimit \ 6468 getspnam \ 6469 setprogname \ 6470 strsvis \ 6471 strunvis \ 6472 strvis \ 6473 strvisx \ 6474 svis \ 6475 sysconf \ 6476 sysctl \ 6477 uname \ 6478 unvis \ 6479 vasnprintf \ 6480 vasprintf \ 6481 vis \ 6482 6483do 6484ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6485echo "$as_me:6485: checking for $ac_func" >&5 6486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6487if eval "test \"\${$ac_ac_var+set}\" = set"; then 6488 echo $ECHO_N "(cached) $ECHO_C" >&6 6489else 6490 cat >conftest.$ac_ext <<_ACEOF 6491#line 6491 "configure" 6492#include "confdefs.h" 6493/* System header to define __stub macros and hopefully few prototypes, 6494 which can conflict with char $ac_func (); below. */ 6495#include <assert.h> 6496/* Override any gcc2 internal prototype to avoid an error. */ 6497#ifdef __cplusplus 6498extern "C" 6499#endif 6500/* We use char because int might match the return type of a gcc2 6501 builtin and then its argument prototype would still apply. */ 6502char $ac_func (); 6503char (*f) (); 6504 6505int 6506main () 6507{ 6508/* The GNU C library defines this for functions which it implements 6509 to always fail with ENOSYS. Some functions are actually named 6510 something starting with __ and the normal name is an alias. */ 6511#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6512choke me 6513#else 6514f = $ac_func; 6515#endif 6516 6517 ; 6518 return 0; 6519} 6520_ACEOF 6521rm -f conftest.$ac_objext conftest$ac_exeext 6522if { (eval echo $as_me:6522: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6523 eval "$ac_ac_var=yes" 6524else 6525 echo "$as_me: failed program was:" >&5 6526 cat conftest.$ac_ext >&5 6527 eval "$ac_ac_var=no" 6528fi 6529rm -f conftest$ac_exeext conftest.$ac_ext 6530fi 6531echo "$as_me:6531: result: `eval echo '${'$ac_ac_var'}'`" >&5 6532echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6533if test `eval echo '${'$ac_ac_var'}'` = yes; then 6534 cat >>confdefs.h <<EOF 6535#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6536EOF 6537 6538fi 6539done 6540 6541if test "$ac_cv_func_cgetent" = no; then 6542 LIBOBJS="$LIBOBJS getcap.o" 6543fi 6544 6545echo "$as_me:6545: checking for getsockopt" >&5 6546echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6 6547if test "${ac_cv_funclib_getsockopt+set}" = set; then 6548 echo $ECHO_N "(cached) $ECHO_C" >&6 6549else 6550 6551if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 6552 ac_save_LIBS="$LIBS" 6553 for ac_lib in "" ; do 6554 if test -n "$ac_lib"; then 6555 ac_lib="-l$ac_lib" 6556 else 6557 ac_lib="" 6558 fi 6559 LIBS=" $ac_lib $ac_save_LIBS" 6560 cat >conftest.$ac_ext <<_ACEOF 6561#line 6561 "configure" 6562#include "confdefs.h" 6563#ifdef HAVE_SYS_TYPES_H 6564#include <sys/types.h> 6565#endif 6566#ifdef HAVE_SYS_SOCKET_H 6567#include <sys/socket.h> 6568#endif 6569int 6570main () 6571{ 6572getsockopt(0,0,0,0,0) 6573 ; 6574 return 0; 6575} 6576_ACEOF 6577rm -f conftest.$ac_objext conftest$ac_exeext 6578if { (eval echo $as_me:6578: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6579 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 6580else 6581 echo "$as_me: failed program was:" >&5 6582 cat conftest.$ac_ext >&5 6583fi 6584rm -f conftest$ac_exeext conftest.$ac_ext 6585 done 6586 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 6587 LIBS="$ac_save_LIBS" 6588fi 6589 6590fi 6591 6592eval "ac_res=\$ac_cv_funclib_getsockopt" 6593 6594if false; then 6595 6596for ac_func in getsockopt 6597do 6598ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6599echo "$as_me:6599: checking for $ac_func" >&5 6600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6601if eval "test \"\${$ac_ac_var+set}\" = set"; then 6602 echo $ECHO_N "(cached) $ECHO_C" >&6 6603else 6604 cat >conftest.$ac_ext <<_ACEOF 6605#line 6605 "configure" 6606#include "confdefs.h" 6607/* System header to define __stub macros and hopefully few prototypes, 6608 which can conflict with char $ac_func (); below. */ 6609#include <assert.h> 6610/* Override any gcc2 internal prototype to avoid an error. */ 6611#ifdef __cplusplus 6612extern "C" 6613#endif 6614/* We use char because int might match the return type of a gcc2 6615 builtin and then its argument prototype would still apply. */ 6616char $ac_func (); 6617char (*f) (); 6618 6619int 6620main () 6621{ 6622/* The GNU C library defines this for functions which it implements 6623 to always fail with ENOSYS. Some functions are actually named 6624 something starting with __ and the normal name is an alias. */ 6625#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6626choke me 6627#else 6628f = $ac_func; 6629#endif 6630 6631 ; 6632 return 0; 6633} 6634_ACEOF 6635rm -f conftest.$ac_objext conftest$ac_exeext 6636if { (eval echo $as_me:6636: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6637 eval "$ac_ac_var=yes" 6638else 6639 echo "$as_me: failed program was:" >&5 6640 cat conftest.$ac_ext >&5 6641 eval "$ac_ac_var=no" 6642fi 6643rm -f conftest$ac_exeext conftest.$ac_ext 6644fi 6645echo "$as_me:6645: result: `eval echo '${'$ac_ac_var'}'`" >&5 6646echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6647if test `eval echo '${'$ac_ac_var'}'` = yes; then 6648 cat >>confdefs.h <<EOF 6649#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6650EOF 6651 6652fi 6653done 6654 6655fi 6656# getsockopt 6657eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6658eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6659eval "LIB_getsockopt=$ac_res" 6660 6661case "$ac_res" in 6662 yes) 6663 eval "ac_cv_func_getsockopt=yes" 6664 eval "LIB_getsockopt=" 6665 cat >>confdefs.h <<EOF 6666#define $ac_tr_func 1 6667EOF 6668 6669 echo "$as_me:6669: result: yes" >&5 6670echo "${ECHO_T}yes" >&6 6671 ;; 6672 no) 6673 eval "ac_cv_func_getsockopt=no" 6674 eval "LIB_getsockopt=" 6675 echo "$as_me:6675: result: no" >&5 6676echo "${ECHO_T}no" >&6 6677 ;; 6678 *) 6679 eval "ac_cv_func_getsockopt=yes" 6680 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6681 cat >>confdefs.h <<EOF 6682#define $ac_tr_func 1 6683EOF 6684 6685 cat >>confdefs.h <<EOF 6686#define $ac_tr_lib 1 6687EOF 6688 6689 echo "$as_me:6689: result: yes, in $ac_res" >&5 6690echo "${ECHO_T}yes, in $ac_res" >&6 6691 ;; 6692esac 6693 6694echo "$as_me:6694: checking for setsockopt" >&5 6695echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 6696if test "${ac_cv_funclib_setsockopt+set}" = set; then 6697 echo $ECHO_N "(cached) $ECHO_C" >&6 6698else 6699 6700if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 6701 ac_save_LIBS="$LIBS" 6702 for ac_lib in "" ; do 6703 if test -n "$ac_lib"; then 6704 ac_lib="-l$ac_lib" 6705 else 6706 ac_lib="" 6707 fi 6708 LIBS=" $ac_lib $ac_save_LIBS" 6709 cat >conftest.$ac_ext <<_ACEOF 6710#line 6710 "configure" 6711#include "confdefs.h" 6712#ifdef HAVE_SYS_TYPES_H 6713#include <sys/types.h> 6714#endif 6715#ifdef HAVE_SYS_SOCKET_H 6716#include <sys/socket.h> 6717#endif 6718int 6719main () 6720{ 6721setsockopt(0,0,0,0,0) 6722 ; 6723 return 0; 6724} 6725_ACEOF 6726rm -f conftest.$ac_objext conftest$ac_exeext 6727if { (eval echo $as_me:6727: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6728 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 6729else 6730 echo "$as_me: failed program was:" >&5 6731 cat conftest.$ac_ext >&5 6732fi 6733rm -f conftest$ac_exeext conftest.$ac_ext 6734 done 6735 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 6736 LIBS="$ac_save_LIBS" 6737fi 6738 6739fi 6740 6741eval "ac_res=\$ac_cv_funclib_setsockopt" 6742 6743if false; then 6744 6745for ac_func in setsockopt 6746do 6747ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6748echo "$as_me:6748: checking for $ac_func" >&5 6749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6750if eval "test \"\${$ac_ac_var+set}\" = set"; then 6751 echo $ECHO_N "(cached) $ECHO_C" >&6 6752else 6753 cat >conftest.$ac_ext <<_ACEOF 6754#line 6754 "configure" 6755#include "confdefs.h" 6756/* System header to define __stub macros and hopefully few prototypes, 6757 which can conflict with char $ac_func (); below. */ 6758#include <assert.h> 6759/* Override any gcc2 internal prototype to avoid an error. */ 6760#ifdef __cplusplus 6761extern "C" 6762#endif 6763/* We use char because int might match the return type of a gcc2 6764 builtin and then its argument prototype would still apply. */ 6765char $ac_func (); 6766char (*f) (); 6767 6768int 6769main () 6770{ 6771/* The GNU C library defines this for functions which it implements 6772 to always fail with ENOSYS. Some functions are actually named 6773 something starting with __ and the normal name is an alias. */ 6774#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6775choke me 6776#else 6777f = $ac_func; 6778#endif 6779 6780 ; 6781 return 0; 6782} 6783_ACEOF 6784rm -f conftest.$ac_objext conftest$ac_exeext 6785if { (eval echo $as_me:6785: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6786 eval "$ac_ac_var=yes" 6787else 6788 echo "$as_me: failed program was:" >&5 6789 cat conftest.$ac_ext >&5 6790 eval "$ac_ac_var=no" 6791fi 6792rm -f conftest$ac_exeext conftest.$ac_ext 6793fi 6794echo "$as_me:6794: result: `eval echo '${'$ac_ac_var'}'`" >&5 6795echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6796if test `eval echo '${'$ac_ac_var'}'` = yes; then 6797 cat >>confdefs.h <<EOF 6798#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6799EOF 6800 6801fi 6802done 6803 6804fi 6805# setsockopt 6806eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6807eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6808eval "LIB_setsockopt=$ac_res" 6809 6810case "$ac_res" in 6811 yes) 6812 eval "ac_cv_func_setsockopt=yes" 6813 eval "LIB_setsockopt=" 6814 cat >>confdefs.h <<EOF 6815#define $ac_tr_func 1 6816EOF 6817 6818 echo "$as_me:6818: result: yes" >&5 6819echo "${ECHO_T}yes" >&6 6820 ;; 6821 no) 6822 eval "ac_cv_func_setsockopt=no" 6823 eval "LIB_setsockopt=" 6824 echo "$as_me:6824: result: no" >&5 6825echo "${ECHO_T}no" >&6 6826 ;; 6827 *) 6828 eval "ac_cv_func_setsockopt=yes" 6829 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6830 cat >>confdefs.h <<EOF 6831#define $ac_tr_func 1 6832EOF 6833 6834 cat >>confdefs.h <<EOF 6835#define $ac_tr_lib 1 6836EOF 6837 6838 echo "$as_me:6838: result: yes, in $ac_res" >&5 6839echo "${ECHO_T}yes, in $ac_res" >&6 6840 ;; 6841esac 6842 6843echo "$as_me:6843: checking for hstrerror" >&5 6844echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 6845if test "${ac_cv_funclib_hstrerror+set}" = set; then 6846 echo $ECHO_N "(cached) $ECHO_C" >&6 6847else 6848 6849if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 6850 ac_save_LIBS="$LIBS" 6851 for ac_lib in "" resolv; do 6852 if test -n "$ac_lib"; then 6853 ac_lib="-l$ac_lib" 6854 else 6855 ac_lib="" 6856 fi 6857 LIBS=" $ac_lib $ac_save_LIBS" 6858 cat >conftest.$ac_ext <<_ACEOF 6859#line 6859 "configure" 6860#include "confdefs.h" 6861#ifdef HAVE_NETDB_H 6862#include <netdb.h> 6863#endif 6864int 6865main () 6866{ 6867hstrerror(17) 6868 ; 6869 return 0; 6870} 6871_ACEOF 6872rm -f conftest.$ac_objext conftest$ac_exeext 6873if { (eval echo $as_me:6873: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6874 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 6875else 6876 echo "$as_me: failed program was:" >&5 6877 cat conftest.$ac_ext >&5 6878fi 6879rm -f conftest$ac_exeext conftest.$ac_ext 6880 done 6881 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 6882 LIBS="$ac_save_LIBS" 6883fi 6884 6885fi 6886 6887eval "ac_res=\$ac_cv_funclib_hstrerror" 6888 6889if false; then 6890 6891for ac_func in hstrerror 6892do 6893ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6894echo "$as_me:6894: checking for $ac_func" >&5 6895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6896if eval "test \"\${$ac_ac_var+set}\" = set"; then 6897 echo $ECHO_N "(cached) $ECHO_C" >&6 6898else 6899 cat >conftest.$ac_ext <<_ACEOF 6900#line 6900 "configure" 6901#include "confdefs.h" 6902/* System header to define __stub macros and hopefully few prototypes, 6903 which can conflict with char $ac_func (); below. */ 6904#include <assert.h> 6905/* Override any gcc2 internal prototype to avoid an error. */ 6906#ifdef __cplusplus 6907extern "C" 6908#endif 6909/* We use char because int might match the return type of a gcc2 6910 builtin and then its argument prototype would still apply. */ 6911char $ac_func (); 6912char (*f) (); 6913 6914int 6915main () 6916{ 6917/* The GNU C library defines this for functions which it implements 6918 to always fail with ENOSYS. Some functions are actually named 6919 something starting with __ and the normal name is an alias. */ 6920#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6921choke me 6922#else 6923f = $ac_func; 6924#endif 6925 6926 ; 6927 return 0; 6928} 6929_ACEOF 6930rm -f conftest.$ac_objext conftest$ac_exeext 6931if { (eval echo $as_me:6931: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 6932 eval "$ac_ac_var=yes" 6933else 6934 echo "$as_me: failed program was:" >&5 6935 cat conftest.$ac_ext >&5 6936 eval "$ac_ac_var=no" 6937fi 6938rm -f conftest$ac_exeext conftest.$ac_ext 6939fi 6940echo "$as_me:6940: result: `eval echo '${'$ac_ac_var'}'`" >&5 6941echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6942if test `eval echo '${'$ac_ac_var'}'` = yes; then 6943 cat >>confdefs.h <<EOF 6944#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6945EOF 6946 6947fi 6948done 6949 6950fi 6951# hstrerror 6952eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6953eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6954eval "LIB_hstrerror=$ac_res" 6955 6956case "$ac_res" in 6957 yes) 6958 eval "ac_cv_func_hstrerror=yes" 6959 eval "LIB_hstrerror=" 6960 cat >>confdefs.h <<EOF 6961#define $ac_tr_func 1 6962EOF 6963 6964 echo "$as_me:6964: result: yes" >&5 6965echo "${ECHO_T}yes" >&6 6966 ;; 6967 no) 6968 eval "ac_cv_func_hstrerror=no" 6969 eval "LIB_hstrerror=" 6970 echo "$as_me:6970: result: no" >&5 6971echo "${ECHO_T}no" >&6 6972 ;; 6973 *) 6974 eval "ac_cv_func_hstrerror=yes" 6975 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6976 cat >>confdefs.h <<EOF 6977#define $ac_tr_func 1 6978EOF 6979 6980 cat >>confdefs.h <<EOF 6981#define $ac_tr_lib 1 6982EOF 6983 6984 echo "$as_me:6984: result: yes, in $ac_res" >&5 6985echo "${ECHO_T}yes, in $ac_res" >&6 6986 ;; 6987esac 6988 6989if test -n "$LIB_hstrerror"; then 6990 LIBS="$LIB_hstrerror $LIBS" 6991fi 6992 6993if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 6994LIBOBJS="$LIBOBJS hstrerror.o" 6995fi 6996 6997if test "$ac_cv_func_hstrerror" = yes; then 6998 6999if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 7000echo "$as_me:7000: checking if hstrerror needs a prototype" >&5 7001echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6 7002if test "${ac_cv_func_hstrerror_noproto+set}" = set; then 7003 echo $ECHO_N "(cached) $ECHO_C" >&6 7004else 7005 cat >conftest.$ac_ext <<_ACEOF 7006#line 7006 "configure" 7007#include "confdefs.h" 7008 7009#ifdef HAVE_NETDB_H 7010#include <netdb.h> 7011#endif 7012int 7013main () 7014{ 7015struct foo { int foo; } xx; 7016extern int hstrerror (struct foo*); 7017hstrerror(&xx); 7018 7019 ; 7020 return 0; 7021} 7022_ACEOF 7023rm -f conftest.$ac_objext 7024if { (eval echo $as_me:7024: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 7025 eval "ac_cv_func_hstrerror_noproto=yes" 7026else 7027 echo "$as_me: failed program was:" >&5 7028 cat conftest.$ac_ext >&5 7029 eval "ac_cv_func_hstrerror_noproto=no" 7030fi 7031rm -f conftest.$ac_objext conftest.$ac_ext 7032fi 7033echo "$as_me:7033: result: $ac_cv_func_hstrerror_noproto" >&5 7034echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6 7035 7036if test "$ac_cv_func_hstrerror_noproto" = yes; then 7037 7038cat >>confdefs.h <<\EOF 7039#define NEED_HSTRERROR_PROTO 1 7040EOF 7041 7042fi 7043 7044fi 7045 7046fi 7047 7048if test "$ac_cv_func_asprintf" = yes; then 7049 7050if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 7051echo "$as_me:7051: checking if asprintf needs a prototype" >&5 7052echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6 7053if test "${ac_cv_func_asprintf_noproto+set}" = set; then 7054 echo $ECHO_N "(cached) $ECHO_C" >&6 7055else 7056 cat >conftest.$ac_ext <<_ACEOF 7057#line 7057 "configure" 7058#include "confdefs.h" 7059 7060#include <stdio.h> 7061#include <string.h> 7062int 7063main () 7064{ 7065struct foo { int foo; } xx; 7066extern int asprintf (struct foo*); 7067asprintf(&xx); 7068 7069 ; 7070 return 0; 7071} 7072_ACEOF 7073rm -f conftest.$ac_objext 7074if { (eval echo $as_me:7074: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 7075 eval "ac_cv_func_asprintf_noproto=yes" 7076else 7077 echo "$as_me: failed program was:" >&5 7078 cat conftest.$ac_ext >&5 7079 eval "ac_cv_func_asprintf_noproto=no" 7080fi 7081rm -f conftest.$ac_objext conftest.$ac_ext 7082fi 7083echo "$as_me:7083: result: $ac_cv_func_asprintf_noproto" >&5 7084echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6 7085 7086if test "$ac_cv_func_asprintf_noproto" = yes; then 7087 7088cat >>confdefs.h <<\EOF 7089#define NEED_ASPRINTF_PROTO 1 7090EOF 7091 7092fi 7093 7094fi 7095fi 7096if test "$ac_cv_func_vasprintf" = yes; then 7097 7098if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 7099echo "$as_me:7099: checking if vasprintf needs a prototype" >&5 7100echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6 7101if test "${ac_cv_func_vasprintf_noproto+set}" = set; then 7102 echo $ECHO_N "(cached) $ECHO_C" >&6 7103else 7104 cat >conftest.$ac_ext <<_ACEOF 7105#line 7105 "configure" 7106#include "confdefs.h" 7107 7108#include <stdio.h> 7109#include <string.h> 7110int 7111main () 7112{ 7113struct foo { int foo; } xx; 7114extern int vasprintf (struct foo*); 7115vasprintf(&xx); 7116 7117 ; 7118 return 0; 7119} 7120_ACEOF 7121rm -f conftest.$ac_objext 7122if { (eval echo $as_me:7122: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 7123 eval "ac_cv_func_vasprintf_noproto=yes" 7124else 7125 echo "$as_me: failed program was:" >&5 7126 cat conftest.$ac_ext >&5 7127 eval "ac_cv_func_vasprintf_noproto=no" 7128fi 7129rm -f conftest.$ac_objext conftest.$ac_ext 7130fi 7131echo "$as_me:7131: result: $ac_cv_func_vasprintf_noproto" >&5 7132echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6 7133 7134if test "$ac_cv_func_vasprintf_noproto" = yes; then 7135 7136cat >>confdefs.h <<\EOF 7137#define NEED_VASPRINTF_PROTO 1 7138EOF 7139 7140fi 7141 7142fi 7143fi 7144if test "$ac_cv_func_asnprintf" = yes; then 7145 7146if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 7147echo "$as_me:7147: checking if asnprintf needs a prototype" >&5 7148echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6 7149if test "${ac_cv_func_asnprintf_noproto+set}" = set; then 7150 echo $ECHO_N "(cached) $ECHO_C" >&6 7151else 7152 cat >conftest.$ac_ext <<_ACEOF 7153#line 7153 "configure" 7154#include "confdefs.h" 7155 7156#include <stdio.h> 7157#include <string.h> 7158int 7159main () 7160{ 7161struct foo { int foo; } xx; 7162extern int asnprintf (struct foo*); 7163asnprintf(&xx); 7164 7165 ; 7166 return 0; 7167} 7168_ACEOF 7169rm -f conftest.$ac_objext 7170if { (eval echo $as_me:7170: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 7171 eval "ac_cv_func_asnprintf_noproto=yes" 7172else 7173 echo "$as_me: failed program was:" >&5 7174 cat conftest.$ac_ext >&5 7175 eval "ac_cv_func_asnprintf_noproto=no" 7176fi 7177rm -f conftest.$ac_objext conftest.$ac_ext 7178fi 7179echo "$as_me:7179: result: $ac_cv_func_asnprintf_noproto" >&5 7180echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6 7181 7182if test "$ac_cv_func_asnprintf_noproto" = yes; then 7183 7184cat >>confdefs.h <<\EOF 7185#define NEED_ASNPRINTF_PROTO 1 7186EOF 7187 7188fi 7189 7190fi 7191fi 7192if test "$ac_cv_func_vasnprintf" = yes; then 7193 7194if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 7195echo "$as_me:7195: checking if vasnprintf needs a prototype" >&5 7196echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6 7197if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then 7198 echo $ECHO_N "(cached) $ECHO_C" >&6 7199else 7200 cat >conftest.$ac_ext <<_ACEOF 7201#line 7201 "configure" 7202#include "confdefs.h" 7203 7204#include <stdio.h> 7205#include <string.h> 7206int 7207main () 7208{ 7209struct foo { int foo; } xx; 7210extern int vasnprintf (struct foo*); 7211vasnprintf(&xx); 7212 7213 ; 7214 return 0; 7215} 7216_ACEOF 7217rm -f conftest.$ac_objext 7218if { (eval echo $as_me:7218: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 7219 eval "ac_cv_func_vasnprintf_noproto=yes" 7220else 7221 echo "$as_me: failed program was:" >&5 7222 cat conftest.$ac_ext >&5 7223 eval "ac_cv_func_vasnprintf_noproto=no" 7224fi 7225rm -f conftest.$ac_objext conftest.$ac_ext 7226fi 7227echo "$as_me:7227: result: $ac_cv_func_vasnprintf_noproto" >&5 7228echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6 7229 7230if test "$ac_cv_func_vasnprintf_noproto" = yes; then 7231 7232cat >>confdefs.h <<\EOF 7233#define NEED_VASNPRINTF_PROTO 1 7234EOF 7235 7236fi 7237 7238fi 7239fi 7240 7241echo "$as_me:7241: checking for bswap16" >&5 7242echo $ECHO_N "checking for bswap16... $ECHO_C" >&6 7243if test "${ac_cv_funclib_bswap16+set}" = set; then 7244 echo $ECHO_N "(cached) $ECHO_C" >&6 7245else 7246 7247if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 7248 ac_save_LIBS="$LIBS" 7249 for ac_lib in "" ; do 7250 if test -n "$ac_lib"; then 7251 ac_lib="-l$ac_lib" 7252 else 7253 ac_lib="" 7254 fi 7255 LIBS=" $ac_lib $ac_save_LIBS" 7256 cat >conftest.$ac_ext <<_ACEOF 7257#line 7257 "configure" 7258#include "confdefs.h" 7259#ifdef HAVE_SYS_BSWAP_H 7260#include <sys/bswap.h> 7261#endif 7262int 7263main () 7264{ 7265bswap16(0) 7266 ; 7267 return 0; 7268} 7269_ACEOF 7270rm -f conftest.$ac_objext conftest$ac_exeext 7271if { (eval echo $as_me:7271: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7272 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 7273else 7274 echo "$as_me: failed program was:" >&5 7275 cat conftest.$ac_ext >&5 7276fi 7277rm -f conftest$ac_exeext conftest.$ac_ext 7278 done 7279 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 7280 LIBS="$ac_save_LIBS" 7281fi 7282 7283fi 7284 7285eval "ac_res=\$ac_cv_funclib_bswap16" 7286 7287if false; then 7288 7289for ac_func in bswap16 7290do 7291ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7292echo "$as_me:7292: checking for $ac_func" >&5 7293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7294if eval "test \"\${$ac_ac_var+set}\" = set"; then 7295 echo $ECHO_N "(cached) $ECHO_C" >&6 7296else 7297 cat >conftest.$ac_ext <<_ACEOF 7298#line 7298 "configure" 7299#include "confdefs.h" 7300/* System header to define __stub macros and hopefully few prototypes, 7301 which can conflict with char $ac_func (); below. */ 7302#include <assert.h> 7303/* Override any gcc2 internal prototype to avoid an error. */ 7304#ifdef __cplusplus 7305extern "C" 7306#endif 7307/* We use char because int might match the return type of a gcc2 7308 builtin and then its argument prototype would still apply. */ 7309char $ac_func (); 7310char (*f) (); 7311 7312int 7313main () 7314{ 7315/* The GNU C library defines this for functions which it implements 7316 to always fail with ENOSYS. Some functions are actually named 7317 something starting with __ and the normal name is an alias. */ 7318#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7319choke me 7320#else 7321f = $ac_func; 7322#endif 7323 7324 ; 7325 return 0; 7326} 7327_ACEOF 7328rm -f conftest.$ac_objext conftest$ac_exeext 7329if { (eval echo $as_me:7329: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7330 eval "$ac_ac_var=yes" 7331else 7332 echo "$as_me: failed program was:" >&5 7333 cat conftest.$ac_ext >&5 7334 eval "$ac_ac_var=no" 7335fi 7336rm -f conftest$ac_exeext conftest.$ac_ext 7337fi 7338echo "$as_me:7338: result: `eval echo '${'$ac_ac_var'}'`" >&5 7339echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7340if test `eval echo '${'$ac_ac_var'}'` = yes; then 7341 cat >>confdefs.h <<EOF 7342#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 7343EOF 7344 7345fi 7346done 7347 7348fi 7349# bswap16 7350eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7351eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7352eval "LIB_bswap16=$ac_res" 7353 7354case "$ac_res" in 7355 yes) 7356 eval "ac_cv_func_bswap16=yes" 7357 eval "LIB_bswap16=" 7358 cat >>confdefs.h <<EOF 7359#define $ac_tr_func 1 7360EOF 7361 7362 echo "$as_me:7362: result: yes" >&5 7363echo "${ECHO_T}yes" >&6 7364 ;; 7365 no) 7366 eval "ac_cv_func_bswap16=no" 7367 eval "LIB_bswap16=" 7368 echo "$as_me:7368: result: no" >&5 7369echo "${ECHO_T}no" >&6 7370 ;; 7371 *) 7372 eval "ac_cv_func_bswap16=yes" 7373 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7374 cat >>confdefs.h <<EOF 7375#define $ac_tr_func 1 7376EOF 7377 7378 cat >>confdefs.h <<EOF 7379#define $ac_tr_lib 1 7380EOF 7381 7382 echo "$as_me:7382: result: yes, in $ac_res" >&5 7383echo "${ECHO_T}yes, in $ac_res" >&6 7384 ;; 7385esac 7386 7387echo "$as_me:7387: checking for bswap32" >&5 7388echo $ECHO_N "checking for bswap32... $ECHO_C" >&6 7389if test "${ac_cv_funclib_bswap32+set}" = set; then 7390 echo $ECHO_N "(cached) $ECHO_C" >&6 7391else 7392 7393if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 7394 ac_save_LIBS="$LIBS" 7395 for ac_lib in "" ; do 7396 if test -n "$ac_lib"; then 7397 ac_lib="-l$ac_lib" 7398 else 7399 ac_lib="" 7400 fi 7401 LIBS=" $ac_lib $ac_save_LIBS" 7402 cat >conftest.$ac_ext <<_ACEOF 7403#line 7403 "configure" 7404#include "confdefs.h" 7405#ifdef HAVE_SYS_BSWAP_H 7406#include <sys/bswap.h> 7407#endif 7408int 7409main () 7410{ 7411bswap32(0) 7412 ; 7413 return 0; 7414} 7415_ACEOF 7416rm -f conftest.$ac_objext conftest$ac_exeext 7417if { (eval echo $as_me:7417: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7418 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 7419else 7420 echo "$as_me: failed program was:" >&5 7421 cat conftest.$ac_ext >&5 7422fi 7423rm -f conftest$ac_exeext conftest.$ac_ext 7424 done 7425 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 7426 LIBS="$ac_save_LIBS" 7427fi 7428 7429fi 7430 7431eval "ac_res=\$ac_cv_funclib_bswap32" 7432 7433if false; then 7434 7435for ac_func in bswap32 7436do 7437ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7438echo "$as_me:7438: checking for $ac_func" >&5 7439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7440if eval "test \"\${$ac_ac_var+set}\" = set"; then 7441 echo $ECHO_N "(cached) $ECHO_C" >&6 7442else 7443 cat >conftest.$ac_ext <<_ACEOF 7444#line 7444 "configure" 7445#include "confdefs.h" 7446/* System header to define __stub macros and hopefully few prototypes, 7447 which can conflict with char $ac_func (); below. */ 7448#include <assert.h> 7449/* Override any gcc2 internal prototype to avoid an error. */ 7450#ifdef __cplusplus 7451extern "C" 7452#endif 7453/* We use char because int might match the return type of a gcc2 7454 builtin and then its argument prototype would still apply. */ 7455char $ac_func (); 7456char (*f) (); 7457 7458int 7459main () 7460{ 7461/* The GNU C library defines this for functions which it implements 7462 to always fail with ENOSYS. Some functions are actually named 7463 something starting with __ and the normal name is an alias. */ 7464#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7465choke me 7466#else 7467f = $ac_func; 7468#endif 7469 7470 ; 7471 return 0; 7472} 7473_ACEOF 7474rm -f conftest.$ac_objext conftest$ac_exeext 7475if { (eval echo $as_me:7475: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7476 eval "$ac_ac_var=yes" 7477else 7478 echo "$as_me: failed program was:" >&5 7479 cat conftest.$ac_ext >&5 7480 eval "$ac_ac_var=no" 7481fi 7482rm -f conftest$ac_exeext conftest.$ac_ext 7483fi 7484echo "$as_me:7484: result: `eval echo '${'$ac_ac_var'}'`" >&5 7485echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7486if test `eval echo '${'$ac_ac_var'}'` = yes; then 7487 cat >>confdefs.h <<EOF 7488#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 7489EOF 7490 7491fi 7492done 7493 7494fi 7495# bswap32 7496eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7497eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7498eval "LIB_bswap32=$ac_res" 7499 7500case "$ac_res" in 7501 yes) 7502 eval "ac_cv_func_bswap32=yes" 7503 eval "LIB_bswap32=" 7504 cat >>confdefs.h <<EOF 7505#define $ac_tr_func 1 7506EOF 7507 7508 echo "$as_me:7508: result: yes" >&5 7509echo "${ECHO_T}yes" >&6 7510 ;; 7511 no) 7512 eval "ac_cv_func_bswap32=no" 7513 eval "LIB_bswap32=" 7514 echo "$as_me:7514: result: no" >&5 7515echo "${ECHO_T}no" >&6 7516 ;; 7517 *) 7518 eval "ac_cv_func_bswap32=yes" 7519 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7520 cat >>confdefs.h <<EOF 7521#define $ac_tr_func 1 7522EOF 7523 7524 cat >>confdefs.h <<EOF 7525#define $ac_tr_lib 1 7526EOF 7527 7528 echo "$as_me:7528: result: yes, in $ac_res" >&5 7529echo "${ECHO_T}yes, in $ac_res" >&6 7530 ;; 7531esac 7532 7533echo "$as_me:7533: checking for pidfile" >&5 7534echo $ECHO_N "checking for pidfile... $ECHO_C" >&6 7535if test "${ac_cv_funclib_pidfile+set}" = set; then 7536 echo $ECHO_N "(cached) $ECHO_C" >&6 7537else 7538 7539if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 7540 ac_save_LIBS="$LIBS" 7541 for ac_lib in "" util; do 7542 if test -n "$ac_lib"; then 7543 ac_lib="-l$ac_lib" 7544 else 7545 ac_lib="" 7546 fi 7547 LIBS=" $ac_lib $ac_save_LIBS" 7548 cat >conftest.$ac_ext <<_ACEOF 7549#line 7549 "configure" 7550#include "confdefs.h" 7551#ifdef HAVE_UTIL_H 7552#include <util.h> 7553#endif 7554int 7555main () 7556{ 7557pidfile(0) 7558 ; 7559 return 0; 7560} 7561_ACEOF 7562rm -f conftest.$ac_objext conftest$ac_exeext 7563if { (eval echo $as_me:7563: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7564 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 7565else 7566 echo "$as_me: failed program was:" >&5 7567 cat conftest.$ac_ext >&5 7568fi 7569rm -f conftest$ac_exeext conftest.$ac_ext 7570 done 7571 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 7572 LIBS="$ac_save_LIBS" 7573fi 7574 7575fi 7576 7577eval "ac_res=\$ac_cv_funclib_pidfile" 7578 7579if false; then 7580 7581for ac_func in pidfile 7582do 7583ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7584echo "$as_me:7584: checking for $ac_func" >&5 7585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7586if eval "test \"\${$ac_ac_var+set}\" = set"; then 7587 echo $ECHO_N "(cached) $ECHO_C" >&6 7588else 7589 cat >conftest.$ac_ext <<_ACEOF 7590#line 7590 "configure" 7591#include "confdefs.h" 7592/* System header to define __stub macros and hopefully few prototypes, 7593 which can conflict with char $ac_func (); below. */ 7594#include <assert.h> 7595/* Override any gcc2 internal prototype to avoid an error. */ 7596#ifdef __cplusplus 7597extern "C" 7598#endif 7599/* We use char because int might match the return type of a gcc2 7600 builtin and then its argument prototype would still apply. */ 7601char $ac_func (); 7602char (*f) (); 7603 7604int 7605main () 7606{ 7607/* The GNU C library defines this for functions which it implements 7608 to always fail with ENOSYS. Some functions are actually named 7609 something starting with __ and the normal name is an alias. */ 7610#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7611choke me 7612#else 7613f = $ac_func; 7614#endif 7615 7616 ; 7617 return 0; 7618} 7619_ACEOF 7620rm -f conftest.$ac_objext conftest$ac_exeext 7621if { (eval echo $as_me:7621: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7622 eval "$ac_ac_var=yes" 7623else 7624 echo "$as_me: failed program was:" >&5 7625 cat conftest.$ac_ext >&5 7626 eval "$ac_ac_var=no" 7627fi 7628rm -f conftest$ac_exeext conftest.$ac_ext 7629fi 7630echo "$as_me:7630: result: `eval echo '${'$ac_ac_var'}'`" >&5 7631echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7632if test `eval echo '${'$ac_ac_var'}'` = yes; then 7633 cat >>confdefs.h <<EOF 7634#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 7635EOF 7636 7637fi 7638done 7639 7640fi 7641# pidfile 7642eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7643eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7644eval "LIB_pidfile=$ac_res" 7645 7646case "$ac_res" in 7647 yes) 7648 eval "ac_cv_func_pidfile=yes" 7649 eval "LIB_pidfile=" 7650 cat >>confdefs.h <<EOF 7651#define $ac_tr_func 1 7652EOF 7653 7654 echo "$as_me:7654: result: yes" >&5 7655echo "${ECHO_T}yes" >&6 7656 ;; 7657 no) 7658 eval "ac_cv_func_pidfile=no" 7659 eval "LIB_pidfile=" 7660 echo "$as_me:7660: result: no" >&5 7661echo "${ECHO_T}no" >&6 7662 ;; 7663 *) 7664 eval "ac_cv_func_pidfile=yes" 7665 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7666 cat >>confdefs.h <<EOF 7667#define $ac_tr_func 1 7668EOF 7669 7670 cat >>confdefs.h <<EOF 7671#define $ac_tr_lib 1 7672EOF 7673 7674 echo "$as_me:7674: result: yes, in $ac_res" >&5 7675echo "${ECHO_T}yes, in $ac_res" >&6 7676 ;; 7677esac 7678 7679for ac_func in \ 7680 chown \ 7681 copyhostent \ 7682 daemon \ 7683 err \ 7684 errx \ 7685 fchown \ 7686 flock \ 7687 fnmatch \ 7688 freeaddrinfo \ 7689 freehostent \ 7690 gai_strerror \ 7691 getaddrinfo \ 7692 getcwd \ 7693 getdtablesize \ 7694 getegid \ 7695 geteuid \ 7696 getgid \ 7697 gethostname \ 7698 getifaddrs \ 7699 getipnodebyaddr \ 7700 getipnodebyname \ 7701 getnameinfo \ 7702 getopt \ 7703 gettimeofday \ 7704 getuid \ 7705 getusershell \ 7706 initgroups \ 7707 innetgr \ 7708 iruserok \ 7709 lstat \ 7710 memmove \ 7711 mkstemp \ 7712 putenv \ 7713 rcmd \ 7714 readv \ 7715 recvmsg \ 7716 sendmsg \ 7717 setegid \ 7718 setenv \ 7719 seteuid \ 7720 strcasecmp \ 7721 strdup \ 7722 strerror \ 7723 strftime \ 7724 strlcat \ 7725 strlcpy \ 7726 strlwr \ 7727 strncasecmp \ 7728 strndup \ 7729 strnlen \ 7730 strptime \ 7731 strsep \ 7732 strsep_copy \ 7733 strtok_r \ 7734 strupr \ 7735 swab \ 7736 unsetenv \ 7737 verr \ 7738 verrx \ 7739 vsyslog \ 7740 vwarn \ 7741 vwarnx \ 7742 warn \ 7743 warnx \ 7744 writev \ 7745 7746do 7747ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7748echo "$as_me:7748: checking for $ac_func" >&5 7749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7750if eval "test \"\${$ac_ac_var+set}\" = set"; then 7751 echo $ECHO_N "(cached) $ECHO_C" >&6 7752else 7753 cat >conftest.$ac_ext <<_ACEOF 7754#line 7754 "configure" 7755#include "confdefs.h" 7756/* System header to define __stub macros and hopefully few prototypes, 7757 which can conflict with char $ac_func (); below. */ 7758#include <assert.h> 7759/* Override any gcc2 internal prototype to avoid an error. */ 7760#ifdef __cplusplus 7761extern "C" 7762#endif 7763/* We use char because int might match the return type of a gcc2 7764 builtin and then its argument prototype would still apply. */ 7765char $ac_func (); 7766char (*f) (); 7767 7768int 7769main () 7770{ 7771/* The GNU C library defines this for functions which it implements 7772 to always fail with ENOSYS. Some functions are actually named 7773 something starting with __ and the normal name is an alias. */ 7774#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7775choke me 7776#else 7777f = $ac_func; 7778#endif 7779 7780 ; 7781 return 0; 7782} 7783_ACEOF 7784rm -f conftest.$ac_objext conftest$ac_exeext 7785if { (eval echo $as_me:7785: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7786 eval "$ac_ac_var=yes" 7787else 7788 echo "$as_me: failed program was:" >&5 7789 cat conftest.$ac_ext >&5 7790 eval "$ac_ac_var=no" 7791fi 7792rm -f conftest$ac_exeext conftest.$ac_ext 7793fi 7794echo "$as_me:7794: result: `eval echo '${'$ac_ac_var'}'`" >&5 7795echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7796if test `eval echo '${'$ac_ac_var'}'` = yes; then 7797 7798ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 7799cat >>confdefs.h <<EOF 7800#define $ac_tr_func 1 7801EOF 7802 7803else 7804 LIBOBJS="$LIBOBJS ${ac_func}.o" 7805fi 7806 7807if false; then 7808 7809for ac_func in \ 7810 chown \ 7811 copyhostent \ 7812 daemon \ 7813 err \ 7814 errx \ 7815 fchown \ 7816 flock \ 7817 fnmatch \ 7818 freeaddrinfo \ 7819 freehostent \ 7820 gai_strerror \ 7821 getaddrinfo \ 7822 getcwd \ 7823 getdtablesize \ 7824 getegid \ 7825 geteuid \ 7826 getgid \ 7827 gethostname \ 7828 getifaddrs \ 7829 getipnodebyaddr \ 7830 getipnodebyname \ 7831 getnameinfo \ 7832 getopt \ 7833 gettimeofday \ 7834 getuid \ 7835 getusershell \ 7836 initgroups \ 7837 innetgr \ 7838 iruserok \ 7839 lstat \ 7840 memmove \ 7841 mkstemp \ 7842 putenv \ 7843 rcmd \ 7844 readv \ 7845 recvmsg \ 7846 sendmsg \ 7847 setegid \ 7848 setenv \ 7849 seteuid \ 7850 strcasecmp \ 7851 strdup \ 7852 strerror \ 7853 strftime \ 7854 strlcat \ 7855 strlcpy \ 7856 strlwr \ 7857 strncasecmp \ 7858 strndup \ 7859 strnlen \ 7860 strptime \ 7861 strsep \ 7862 strsep_copy \ 7863 strtok_r \ 7864 strupr \ 7865 swab \ 7866 unsetenv \ 7867 verr \ 7868 verrx \ 7869 vsyslog \ 7870 vwarn \ 7871 vwarnx \ 7872 warn \ 7873 warnx \ 7874 writev \ 7875 7876do 7877ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7878echo "$as_me:7878: checking for $ac_func" >&5 7879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7880if eval "test \"\${$ac_ac_var+set}\" = set"; then 7881 echo $ECHO_N "(cached) $ECHO_C" >&6 7882else 7883 cat >conftest.$ac_ext <<_ACEOF 7884#line 7884 "configure" 7885#include "confdefs.h" 7886/* System header to define __stub macros and hopefully few prototypes, 7887 which can conflict with char $ac_func (); below. */ 7888#include <assert.h> 7889/* Override any gcc2 internal prototype to avoid an error. */ 7890#ifdef __cplusplus 7891extern "C" 7892#endif 7893/* We use char because int might match the return type of a gcc2 7894 builtin and then its argument prototype would still apply. */ 7895char $ac_func (); 7896char (*f) (); 7897 7898int 7899main () 7900{ 7901/* The GNU C library defines this for functions which it implements 7902 to always fail with ENOSYS. Some functions are actually named 7903 something starting with __ and the normal name is an alias. */ 7904#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7905choke me 7906#else 7907f = $ac_func; 7908#endif 7909 7910 ; 7911 return 0; 7912} 7913_ACEOF 7914rm -f conftest.$ac_objext conftest$ac_exeext 7915if { (eval echo $as_me:7915: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7916 eval "$ac_ac_var=yes" 7917else 7918 echo "$as_me: failed program was:" >&5 7919 cat conftest.$ac_ext >&5 7920 eval "$ac_ac_var=no" 7921fi 7922rm -f conftest$ac_exeext conftest.$ac_ext 7923fi 7924echo "$as_me:7924: result: `eval echo '${'$ac_ac_var'}'`" >&5 7925echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7926if test `eval echo '${'$ac_ac_var'}'` = yes; then 7927 cat >>confdefs.h <<EOF 7928#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 7929EOF 7930 7931fi 7932done 7933 7934fi 7935done 7936 7937for ac_func in inet_aton 7938do 7939echo "$as_me:7939: checking for $ac_func" >&5 7940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7941if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 7942 echo $ECHO_N "(cached) $ECHO_C" >&6 7943else 7944 cat >conftest.$ac_ext <<_ACEOF 7945#line 7945 "configure" 7946#include "confdefs.h" 7947#ifdef HAVE_SYS_TYPES_H 7948#include <sys/types.h> 7949#endif 7950#ifdef HAVE_SYS_SOCKET_H 7951#include <sys/socket.h> 7952#endif 7953#ifdef HAVE_NETINET_IN_H 7954#include <netinet/in.h> 7955#endif 7956#ifdef HAVE_ARPA_INET_H 7957#include <arpa/inet.h> 7958#endif 7959int 7960main () 7961{ 7962 7963/* The GNU C library defines this for functions which it implements 7964 to always fail with ENOSYS. Some functions are actually named 7965 something starting with __ and the normal name is an alias. */ 7966#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 7967choke me 7968#else 7969$ac_func(0,0) 7970#endif 7971 7972 ; 7973 return 0; 7974} 7975_ACEOF 7976rm -f conftest.$ac_objext conftest$ac_exeext 7977if { (eval echo $as_me:7977: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 7978 eval "ac_cv_func_$ac_func=yes" 7979else 7980 echo "$as_me: failed program was:" >&5 7981 cat conftest.$ac_ext >&5 7982 eval "ac_cv_func_$ac_func=no" 7983fi 7984rm -f conftest$ac_exeext conftest.$ac_ext 7985fi 7986 7987if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 7988 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 7989 cat >>confdefs.h <<EOF 7990#define $ac_tr_func 1 7991EOF 7992 7993 echo "$as_me:7993: result: yes" >&5 7994echo "${ECHO_T}yes" >&6 7995else 7996 echo "$as_me:7996: result: no" >&5 7997echo "${ECHO_T}no" >&6 7998 LIBOBJS="$LIBOBJS ${ac_func}.o" 7999fi 8000done 8001if false; then 8002 8003for ac_func in inet_aton 8004do 8005ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8006echo "$as_me:8006: checking for $ac_func" >&5 8007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8008if eval "test \"\${$ac_ac_var+set}\" = set"; then 8009 echo $ECHO_N "(cached) $ECHO_C" >&6 8010else 8011 cat >conftest.$ac_ext <<_ACEOF 8012#line 8012 "configure" 8013#include "confdefs.h" 8014/* System header to define __stub macros and hopefully few prototypes, 8015 which can conflict with char $ac_func (); below. */ 8016#include <assert.h> 8017/* Override any gcc2 internal prototype to avoid an error. */ 8018#ifdef __cplusplus 8019extern "C" 8020#endif 8021/* We use char because int might match the return type of a gcc2 8022 builtin and then its argument prototype would still apply. */ 8023char $ac_func (); 8024char (*f) (); 8025 8026int 8027main () 8028{ 8029/* The GNU C library defines this for functions which it implements 8030 to always fail with ENOSYS. Some functions are actually named 8031 something starting with __ and the normal name is an alias. */ 8032#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8033choke me 8034#else 8035f = $ac_func; 8036#endif 8037 8038 ; 8039 return 0; 8040} 8041_ACEOF 8042rm -f conftest.$ac_objext conftest$ac_exeext 8043if { (eval echo $as_me:8043: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 8044 eval "$ac_ac_var=yes" 8045else 8046 echo "$as_me: failed program was:" >&5 8047 cat conftest.$ac_ext >&5 8048 eval "$ac_ac_var=no" 8049fi 8050rm -f conftest$ac_exeext conftest.$ac_ext 8051fi 8052echo "$as_me:8052: result: `eval echo '${'$ac_ac_var'}'`" >&5 8053echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8054if test `eval echo '${'$ac_ac_var'}'` = yes; then 8055 cat >>confdefs.h <<EOF 8056#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8057EOF 8058 8059fi 8060done 8061 8062fi 8063 8064for ac_func in inet_ntop 8065do 8066echo "$as_me:8066: checking for $ac_func" >&5 8067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8068if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 8069 echo $ECHO_N "(cached) $ECHO_C" >&6 8070else 8071 cat >conftest.$ac_ext <<_ACEOF 8072#line 8072 "configure" 8073#include "confdefs.h" 8074#ifdef HAVE_SYS_TYPES_H 8075#include <sys/types.h> 8076#endif 8077#ifdef HAVE_SYS_SOCKET_H 8078#include <sys/socket.h> 8079#endif 8080#ifdef HAVE_NETINET_IN_H 8081#include <netinet/in.h> 8082#endif 8083#ifdef HAVE_ARPA_INET_H 8084#include <arpa/inet.h> 8085#endif 8086int 8087main () 8088{ 8089 8090/* The GNU C library defines this for functions which it implements 8091 to always fail with ENOSYS. Some functions are actually named 8092 something starting with __ and the normal name is an alias. */ 8093#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 8094choke me 8095#else 8096$ac_func(0, 0, 0, 0) 8097#endif 8098 8099 ; 8100 return 0; 8101} 8102_ACEOF 8103rm -f conftest.$ac_objext conftest$ac_exeext 8104if { (eval echo $as_me:8104: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 8105 eval "ac_cv_func_$ac_func=yes" 8106else 8107 echo "$as_me: failed program was:" >&5 8108 cat conftest.$ac_ext >&5 8109 eval "ac_cv_func_$ac_func=no" 8110fi 8111rm -f conftest$ac_exeext conftest.$ac_ext 8112fi 8113 8114if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 8115 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8116 cat >>confdefs.h <<EOF 8117#define $ac_tr_func 1 8118EOF 8119 8120 echo "$as_me:8120: result: yes" >&5 8121echo "${ECHO_T}yes" >&6 8122else 8123 echo "$as_me:8123: result: no" >&5 8124echo "${ECHO_T}no" >&6 8125 LIBOBJS="$LIBOBJS ${ac_func}.o" 8126fi 8127done 8128if false; then 8129 8130for ac_func in inet_ntop 8131do 8132ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8133echo "$as_me:8133: checking for $ac_func" >&5 8134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8135if eval "test \"\${$ac_ac_var+set}\" = set"; then 8136 echo $ECHO_N "(cached) $ECHO_C" >&6 8137else 8138 cat >conftest.$ac_ext <<_ACEOF 8139#line 8139 "configure" 8140#include "confdefs.h" 8141/* System header to define __stub macros and hopefully few prototypes, 8142 which can conflict with char $ac_func (); below. */ 8143#include <assert.h> 8144/* Override any gcc2 internal prototype to avoid an error. */ 8145#ifdef __cplusplus 8146extern "C" 8147#endif 8148/* We use char because int might match the return type of a gcc2 8149 builtin and then its argument prototype would still apply. */ 8150char $ac_func (); 8151char (*f) (); 8152 8153int 8154main () 8155{ 8156/* The GNU C library defines this for functions which it implements 8157 to always fail with ENOSYS. Some functions are actually named 8158 something starting with __ and the normal name is an alias. */ 8159#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8160choke me 8161#else 8162f = $ac_func; 8163#endif 8164 8165 ; 8166 return 0; 8167} 8168_ACEOF 8169rm -f conftest.$ac_objext conftest$ac_exeext 8170if { (eval echo $as_me:8170: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 8171 eval "$ac_ac_var=yes" 8172else 8173 echo "$as_me: failed program was:" >&5 8174 cat conftest.$ac_ext >&5 8175 eval "$ac_ac_var=no" 8176fi 8177rm -f conftest$ac_exeext conftest.$ac_ext 8178fi 8179echo "$as_me:8179: result: `eval echo '${'$ac_ac_var'}'`" >&5 8180echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8181if test `eval echo '${'$ac_ac_var'}'` = yes; then 8182 cat >>confdefs.h <<EOF 8183#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8184EOF 8185 8186fi 8187done 8188 8189fi 8190 8191for ac_func in inet_pton 8192do 8193echo "$as_me:8193: checking for $ac_func" >&5 8194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8195if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 8196 echo $ECHO_N "(cached) $ECHO_C" >&6 8197else 8198 cat >conftest.$ac_ext <<_ACEOF 8199#line 8199 "configure" 8200#include "confdefs.h" 8201#ifdef HAVE_SYS_TYPES_H 8202#include <sys/types.h> 8203#endif 8204#ifdef HAVE_SYS_SOCKET_H 8205#include <sys/socket.h> 8206#endif 8207#ifdef HAVE_NETINET_IN_H 8208#include <netinet/in.h> 8209#endif 8210#ifdef HAVE_ARPA_INET_H 8211#include <arpa/inet.h> 8212#endif 8213int 8214main () 8215{ 8216 8217/* The GNU C library defines this for functions which it implements 8218 to always fail with ENOSYS. Some functions are actually named 8219 something starting with __ and the normal name is an alias. */ 8220#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 8221choke me 8222#else 8223$ac_func(0,0,0) 8224#endif 8225 8226 ; 8227 return 0; 8228} 8229_ACEOF 8230rm -f conftest.$ac_objext conftest$ac_exeext 8231if { (eval echo $as_me:8231: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 8232 eval "ac_cv_func_$ac_func=yes" 8233else 8234 echo "$as_me: failed program was:" >&5 8235 cat conftest.$ac_ext >&5 8236 eval "ac_cv_func_$ac_func=no" 8237fi 8238rm -f conftest$ac_exeext conftest.$ac_ext 8239fi 8240 8241if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 8242 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8243 cat >>confdefs.h <<EOF 8244#define $ac_tr_func 1 8245EOF 8246 8247 echo "$as_me:8247: result: yes" >&5 8248echo "${ECHO_T}yes" >&6 8249else 8250 echo "$as_me:8250: result: no" >&5 8251echo "${ECHO_T}no" >&6 8252 LIBOBJS="$LIBOBJS ${ac_func}.o" 8253fi 8254done 8255if false; then 8256 8257for ac_func in inet_pton 8258do 8259ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8260echo "$as_me:8260: checking for $ac_func" >&5 8261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8262if eval "test \"\${$ac_ac_var+set}\" = set"; then 8263 echo $ECHO_N "(cached) $ECHO_C" >&6 8264else 8265 cat >conftest.$ac_ext <<_ACEOF 8266#line 8266 "configure" 8267#include "confdefs.h" 8268/* System header to define __stub macros and hopefully few prototypes, 8269 which can conflict with char $ac_func (); below. */ 8270#include <assert.h> 8271/* Override any gcc2 internal prototype to avoid an error. */ 8272#ifdef __cplusplus 8273extern "C" 8274#endif 8275/* We use char because int might match the return type of a gcc2 8276 builtin and then its argument prototype would still apply. */ 8277char $ac_func (); 8278char (*f) (); 8279 8280int 8281main () 8282{ 8283/* The GNU C library defines this for functions which it implements 8284 to always fail with ENOSYS. Some functions are actually named 8285 something starting with __ and the normal name is an alias. */ 8286#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8287choke me 8288#else 8289f = $ac_func; 8290#endif 8291 8292 ; 8293 return 0; 8294} 8295_ACEOF 8296rm -f conftest.$ac_objext conftest$ac_exeext 8297if { (eval echo $as_me:8297: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 8298 eval "$ac_ac_var=yes" 8299else 8300 echo "$as_me: failed program was:" >&5 8301 cat conftest.$ac_ext >&5 8302 eval "$ac_ac_var=no" 8303fi 8304rm -f conftest$ac_exeext conftest.$ac_ext 8305fi 8306echo "$as_me:8306: result: `eval echo '${'$ac_ac_var'}'`" >&5 8307echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8308if test `eval echo '${'$ac_ac_var'}'` = yes; then 8309 cat >>confdefs.h <<EOF 8310#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8311EOF 8312 8313fi 8314done 8315 8316fi 8317 8318echo "$as_me:8318: checking for sa_len in struct sockaddr" >&5 8319echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 8320if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 8321 echo $ECHO_N "(cached) $ECHO_C" >&6 8322else 8323 8324cat >conftest.$ac_ext <<_ACEOF 8325#line 8325 "configure" 8326#include "confdefs.h" 8327#include <sys/types.h> 8328#include <sys/socket.h> 8329int 8330main () 8331{ 8332struct sockaddr x; x.sa_len; 8333 ; 8334 return 0; 8335} 8336_ACEOF 8337rm -f conftest.$ac_objext 8338if { (eval echo $as_me:8338: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8339 ac_cv_type_struct_sockaddr_sa_len=yes 8340else 8341 echo "$as_me: failed program was:" >&5 8342 cat conftest.$ac_ext >&5 8343 ac_cv_type_struct_sockaddr_sa_len=no 8344fi 8345rm -f conftest.$ac_objext conftest.$ac_ext 8346fi 8347echo "$as_me:8347: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 8348echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6 8349if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 8350 8351cat >>confdefs.h <<\EOF 8352#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 8353EOF 8354 8355fi 8356 8357if test "$ac_cv_func_getnameinfo" = "yes"; then 8358 8359echo "$as_me:8359: checking if getnameinfo is broken" >&5 8360echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6 8361if test "${ac_cv_func_getnameinfo_broken+set}" = set; then 8362 echo $ECHO_N "(cached) $ECHO_C" >&6 8363else 8364 if test "$cross_compiling" = yes; then 8365 { echo "$as_me: error: cannot run test program while cross compiling" >&2 8366 { (exit 1); exit; }; } 8367else 8368 cat >conftest.$ac_ext <<_ACEOF 8369#line 8369 "configure" 8370#include "confdefs.h" 8371#include <stdio.h> 8372#include <sys/types.h> 8373#include <sys/socket.h> 8374#include <netinet/in.h> 8375#include <netdb.h> 8376 8377int 8378main(int argc, char **argv) 8379{ 8380 struct sockaddr_in sin; 8381 char host[256]; 8382 memset(&sin, 0, sizeof(sin)); 8383#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN 8384 sin.sin_len = sizeof(sin); 8385#endif 8386 sin.sin_family = AF_INET; 8387 sin.sin_addr.s_addr = 0xffffffff; 8388 sin.sin_port = 0; 8389 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host), 8390 NULL, 0, 0); 8391} 8392 8393_ACEOF 8394rm -f conftest$ac_exeext 8395{ (eval echo $as_me:8395: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 8396 (./conftest$ac_exeext) >&5 2>&1; 8397ac_status=$? 8398if test $ac_status = 0; then 8399 ac_cv_func_getnameinfo_broken=no 8400else 8401 echo "$as_me: program exited with status $ac_status" >&5 8402echo "$as_me: failed program was:" >&5 8403cat conftest.$ac_ext >&5 8404ac_cv_func_getnameinfo_broken=yes 8405fi 8406 8407rm -f conftest$ac_exeext conftest.$ac_ext 8408fi 8409 8410fi 8411echo "$as_me:8411: result: $ac_cv_func_getnameinfo_broken" >&5 8412echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6 8413 if test "$ac_cv_func_getnameinfo_broken" = yes; then 8414 LIBOBJS="$LIBOBJS getnameinfo.o" 8415 fi 8416fi 8417 8418if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 8419echo "$as_me:8419: checking if setenv needs a prototype" >&5 8420echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6 8421if test "${ac_cv_func_setenv_noproto+set}" = set; then 8422 echo $ECHO_N "(cached) $ECHO_C" >&6 8423else 8424 cat >conftest.$ac_ext <<_ACEOF 8425#line 8425 "configure" 8426#include "confdefs.h" 8427#include <stdlib.h> 8428int 8429main () 8430{ 8431struct foo { int foo; } xx; 8432extern int setenv (struct foo*); 8433setenv(&xx); 8434 8435 ; 8436 return 0; 8437} 8438_ACEOF 8439rm -f conftest.$ac_objext 8440if { (eval echo $as_me:8440: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8441 eval "ac_cv_func_setenv_noproto=yes" 8442else 8443 echo "$as_me: failed program was:" >&5 8444 cat conftest.$ac_ext >&5 8445 eval "ac_cv_func_setenv_noproto=no" 8446fi 8447rm -f conftest.$ac_objext conftest.$ac_ext 8448fi 8449echo "$as_me:8449: result: $ac_cv_func_setenv_noproto" >&5 8450echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6 8451 8452if test "$ac_cv_func_setenv_noproto" = yes; then 8453 8454cat >>confdefs.h <<\EOF 8455#define NEED_SETENV_PROTO 1 8456EOF 8457 8458fi 8459 8460fi 8461 8462if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 8463echo "$as_me:8463: checking if unsetenv needs a prototype" >&5 8464echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6 8465if test "${ac_cv_func_unsetenv_noproto+set}" = set; then 8466 echo $ECHO_N "(cached) $ECHO_C" >&6 8467else 8468 cat >conftest.$ac_ext <<_ACEOF 8469#line 8469 "configure" 8470#include "confdefs.h" 8471#include <stdlib.h> 8472int 8473main () 8474{ 8475struct foo { int foo; } xx; 8476extern int unsetenv (struct foo*); 8477unsetenv(&xx); 8478 8479 ; 8480 return 0; 8481} 8482_ACEOF 8483rm -f conftest.$ac_objext 8484if { (eval echo $as_me:8484: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8485 eval "ac_cv_func_unsetenv_noproto=yes" 8486else 8487 echo "$as_me: failed program was:" >&5 8488 cat conftest.$ac_ext >&5 8489 eval "ac_cv_func_unsetenv_noproto=no" 8490fi 8491rm -f conftest.$ac_objext conftest.$ac_ext 8492fi 8493echo "$as_me:8493: result: $ac_cv_func_unsetenv_noproto" >&5 8494echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6 8495 8496if test "$ac_cv_func_unsetenv_noproto" = yes; then 8497 8498cat >>confdefs.h <<\EOF 8499#define NEED_UNSETENV_PROTO 1 8500EOF 8501 8502fi 8503 8504fi 8505 8506if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 8507echo "$as_me:8507: checking if gethostname needs a prototype" >&5 8508echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6 8509if test "${ac_cv_func_gethostname_noproto+set}" = set; then 8510 echo $ECHO_N "(cached) $ECHO_C" >&6 8511else 8512 cat >conftest.$ac_ext <<_ACEOF 8513#line 8513 "configure" 8514#include "confdefs.h" 8515#include <unistd.h> 8516int 8517main () 8518{ 8519struct foo { int foo; } xx; 8520extern int gethostname (struct foo*); 8521gethostname(&xx); 8522 8523 ; 8524 return 0; 8525} 8526_ACEOF 8527rm -f conftest.$ac_objext 8528if { (eval echo $as_me:8528: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8529 eval "ac_cv_func_gethostname_noproto=yes" 8530else 8531 echo "$as_me: failed program was:" >&5 8532 cat conftest.$ac_ext >&5 8533 eval "ac_cv_func_gethostname_noproto=no" 8534fi 8535rm -f conftest.$ac_objext conftest.$ac_ext 8536fi 8537echo "$as_me:8537: result: $ac_cv_func_gethostname_noproto" >&5 8538echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6 8539 8540if test "$ac_cv_func_gethostname_noproto" = yes; then 8541 8542cat >>confdefs.h <<\EOF 8543#define NEED_GETHOSTNAME_PROTO 1 8544EOF 8545 8546fi 8547 8548fi 8549 8550if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 8551echo "$as_me:8551: checking if mkstemp needs a prototype" >&5 8552echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6 8553if test "${ac_cv_func_mkstemp_noproto+set}" = set; then 8554 echo $ECHO_N "(cached) $ECHO_C" >&6 8555else 8556 cat >conftest.$ac_ext <<_ACEOF 8557#line 8557 "configure" 8558#include "confdefs.h" 8559#include <unistd.h> 8560int 8561main () 8562{ 8563struct foo { int foo; } xx; 8564extern int mkstemp (struct foo*); 8565mkstemp(&xx); 8566 8567 ; 8568 return 0; 8569} 8570_ACEOF 8571rm -f conftest.$ac_objext 8572if { (eval echo $as_me:8572: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8573 eval "ac_cv_func_mkstemp_noproto=yes" 8574else 8575 echo "$as_me: failed program was:" >&5 8576 cat conftest.$ac_ext >&5 8577 eval "ac_cv_func_mkstemp_noproto=no" 8578fi 8579rm -f conftest.$ac_objext conftest.$ac_ext 8580fi 8581echo "$as_me:8581: result: $ac_cv_func_mkstemp_noproto" >&5 8582echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6 8583 8584if test "$ac_cv_func_mkstemp_noproto" = yes; then 8585 8586cat >>confdefs.h <<\EOF 8587#define NEED_MKSTEMP_PROTO 1 8588EOF 8589 8590fi 8591 8592fi 8593 8594if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 8595echo "$as_me:8595: checking if getusershell needs a prototype" >&5 8596echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6 8597if test "${ac_cv_func_getusershell_noproto+set}" = set; then 8598 echo $ECHO_N "(cached) $ECHO_C" >&6 8599else 8600 cat >conftest.$ac_ext <<_ACEOF 8601#line 8601 "configure" 8602#include "confdefs.h" 8603#include <unistd.h> 8604int 8605main () 8606{ 8607struct foo { int foo; } xx; 8608extern int getusershell (struct foo*); 8609getusershell(&xx); 8610 8611 ; 8612 return 0; 8613} 8614_ACEOF 8615rm -f conftest.$ac_objext 8616if { (eval echo $as_me:8616: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8617 eval "ac_cv_func_getusershell_noproto=yes" 8618else 8619 echo "$as_me: failed program was:" >&5 8620 cat conftest.$ac_ext >&5 8621 eval "ac_cv_func_getusershell_noproto=no" 8622fi 8623rm -f conftest.$ac_objext conftest.$ac_ext 8624fi 8625echo "$as_me:8625: result: $ac_cv_func_getusershell_noproto" >&5 8626echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6 8627 8628if test "$ac_cv_func_getusershell_noproto" = yes; then 8629 8630cat >>confdefs.h <<\EOF 8631#define NEED_GETUSERSHELL_PROTO 1 8632EOF 8633 8634fi 8635 8636fi 8637 8638if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 8639echo "$as_me:8639: checking if inet_aton needs a prototype" >&5 8640echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6 8641if test "${ac_cv_func_inet_aton_noproto+set}" = set; then 8642 echo $ECHO_N "(cached) $ECHO_C" >&6 8643else 8644 cat >conftest.$ac_ext <<_ACEOF 8645#line 8645 "configure" 8646#include "confdefs.h" 8647 8648#ifdef HAVE_SYS_TYPES_H 8649#include <sys/types.h> 8650#endif 8651#ifdef HAVE_SYS_SOCKET_H 8652#include <sys/socket.h> 8653#endif 8654#ifdef HAVE_NETINET_IN_H 8655#include <netinet/in.h> 8656#endif 8657#ifdef HAVE_ARPA_INET_H 8658#include <arpa/inet.h> 8659#endif 8660int 8661main () 8662{ 8663struct foo { int foo; } xx; 8664extern int inet_aton (struct foo*); 8665inet_aton(&xx); 8666 8667 ; 8668 return 0; 8669} 8670_ACEOF 8671rm -f conftest.$ac_objext 8672if { (eval echo $as_me:8672: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8673 eval "ac_cv_func_inet_aton_noproto=yes" 8674else 8675 echo "$as_me: failed program was:" >&5 8676 cat conftest.$ac_ext >&5 8677 eval "ac_cv_func_inet_aton_noproto=no" 8678fi 8679rm -f conftest.$ac_objext conftest.$ac_ext 8680fi 8681echo "$as_me:8681: result: $ac_cv_func_inet_aton_noproto" >&5 8682echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6 8683 8684if test "$ac_cv_func_inet_aton_noproto" = yes; then 8685 8686cat >>confdefs.h <<\EOF 8687#define NEED_INET_ATON_PROTO 1 8688EOF 8689 8690fi 8691 8692fi 8693 8694echo "$as_me:8694: checking for crypt" >&5 8695echo $ECHO_N "checking for crypt... $ECHO_C" >&6 8696if test "${ac_cv_funclib_crypt+set}" = set; then 8697 echo $ECHO_N "(cached) $ECHO_C" >&6 8698else 8699 8700if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 8701 ac_save_LIBS="$LIBS" 8702 for ac_lib in "" crypt; do 8703 if test -n "$ac_lib"; then 8704 ac_lib="-l$ac_lib" 8705 else 8706 ac_lib="" 8707 fi 8708 LIBS=" $ac_lib $ac_save_LIBS" 8709 cat >conftest.$ac_ext <<_ACEOF 8710#line 8710 "configure" 8711#include "confdefs.h" 8712 8713int 8714main () 8715{ 8716crypt() 8717 ; 8718 return 0; 8719} 8720_ACEOF 8721rm -f conftest.$ac_objext conftest$ac_exeext 8722if { (eval echo $as_me:8722: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 8723 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 8724else 8725 echo "$as_me: failed program was:" >&5 8726 cat conftest.$ac_ext >&5 8727fi 8728rm -f conftest$ac_exeext conftest.$ac_ext 8729 done 8730 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 8731 LIBS="$ac_save_LIBS" 8732fi 8733 8734fi 8735 8736eval "ac_res=\$ac_cv_funclib_crypt" 8737 8738if false; then 8739 8740for ac_func in crypt 8741do 8742ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8743echo "$as_me:8743: checking for $ac_func" >&5 8744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8745if eval "test \"\${$ac_ac_var+set}\" = set"; then 8746 echo $ECHO_N "(cached) $ECHO_C" >&6 8747else 8748 cat >conftest.$ac_ext <<_ACEOF 8749#line 8749 "configure" 8750#include "confdefs.h" 8751/* System header to define __stub macros and hopefully few prototypes, 8752 which can conflict with char $ac_func (); below. */ 8753#include <assert.h> 8754/* Override any gcc2 internal prototype to avoid an error. */ 8755#ifdef __cplusplus 8756extern "C" 8757#endif 8758/* We use char because int might match the return type of a gcc2 8759 builtin and then its argument prototype would still apply. */ 8760char $ac_func (); 8761char (*f) (); 8762 8763int 8764main () 8765{ 8766/* The GNU C library defines this for functions which it implements 8767 to always fail with ENOSYS. Some functions are actually named 8768 something starting with __ and the normal name is an alias. */ 8769#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8770choke me 8771#else 8772f = $ac_func; 8773#endif 8774 8775 ; 8776 return 0; 8777} 8778_ACEOF 8779rm -f conftest.$ac_objext conftest$ac_exeext 8780if { (eval echo $as_me:8780: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 8781 eval "$ac_ac_var=yes" 8782else 8783 echo "$as_me: failed program was:" >&5 8784 cat conftest.$ac_ext >&5 8785 eval "$ac_ac_var=no" 8786fi 8787rm -f conftest$ac_exeext conftest.$ac_ext 8788fi 8789echo "$as_me:8789: result: `eval echo '${'$ac_ac_var'}'`" >&5 8790echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8791if test `eval echo '${'$ac_ac_var'}'` = yes; then 8792 cat >>confdefs.h <<EOF 8793#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8794EOF 8795 8796fi 8797done 8798 8799fi 8800# crypt 8801eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8802eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8803eval "LIB_crypt=$ac_res" 8804 8805case "$ac_res" in 8806 yes) 8807 eval "ac_cv_func_crypt=yes" 8808 eval "LIB_crypt=" 8809 cat >>confdefs.h <<EOF 8810#define $ac_tr_func 1 8811EOF 8812 8813 echo "$as_me:8813: result: yes" >&5 8814echo "${ECHO_T}yes" >&6 8815 ;; 8816 no) 8817 eval "ac_cv_func_crypt=no" 8818 eval "LIB_crypt=" 8819 echo "$as_me:8819: result: no" >&5 8820echo "${ECHO_T}no" >&6 8821 ;; 8822 *) 8823 eval "ac_cv_func_crypt=yes" 8824 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 8825 cat >>confdefs.h <<EOF 8826#define $ac_tr_func 1 8827EOF 8828 8829 cat >>confdefs.h <<EOF 8830#define $ac_tr_lib 1 8831EOF 8832 8833 echo "$as_me:8833: result: yes, in $ac_res" >&5 8834echo "${ECHO_T}yes, in $ac_res" >&6 8835 ;; 8836esac 8837 8838echo "$as_me:8838: checking if gethostbyname is compatible with system prototype" >&5 8839echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6 8840if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then 8841 echo $ECHO_N "(cached) $ECHO_C" >&6 8842else 8843 cat >conftest.$ac_ext <<_ACEOF 8844#line 8844 "configure" 8845#include "confdefs.h" 8846 8847#ifdef HAVE_SYS_TYPES_H 8848#include <sys/types.h> 8849#endif 8850#ifdef HAVE_SYS_SOCKET_H 8851#include <sys/socket.h> 8852#endif 8853#ifdef HAVE_NETINET_IN_H 8854#include <netinet/in.h> 8855#endif 8856#ifdef HAVE_ARPA_INET_H 8857#include <arpa/inet.h> 8858#endif 8859#ifdef HAVE_NETDB_H 8860#include <netdb.h> 8861#endif 8862 8863int 8864main () 8865{ 8866struct hostent *gethostbyname(const char *); 8867 ; 8868 return 0; 8869} 8870_ACEOF 8871rm -f conftest.$ac_objext 8872if { (eval echo $as_me:8872: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8873 eval "ac_cv_func_gethostbyname_proto_compat=yes" 8874else 8875 echo "$as_me: failed program was:" >&5 8876 cat conftest.$ac_ext >&5 8877 eval "ac_cv_func_gethostbyname_proto_compat=no" 8878fi 8879rm -f conftest.$ac_objext conftest.$ac_ext 8880fi 8881echo "$as_me:8881: result: $ac_cv_func_gethostbyname_proto_compat" >&5 8882echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6 8883 8884if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 8885 8886cat >>confdefs.h <<\EOF 8887#define GETHOSTBYNAME_PROTO_COMPATIBLE 1 8888EOF 8889 8890fi 8891 8892echo "$as_me:8892: checking if gethostbyaddr is compatible with system prototype" >&5 8893echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6 8894if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then 8895 echo $ECHO_N "(cached) $ECHO_C" >&6 8896else 8897 cat >conftest.$ac_ext <<_ACEOF 8898#line 8898 "configure" 8899#include "confdefs.h" 8900 8901#ifdef HAVE_SYS_TYPES_H 8902#include <sys/types.h> 8903#endif 8904#ifdef HAVE_SYS_SOCKET_H 8905#include <sys/socket.h> 8906#endif 8907#ifdef HAVE_NETINET_IN_H 8908#include <netinet/in.h> 8909#endif 8910#ifdef HAVE_ARPA_INET_H 8911#include <arpa/inet.h> 8912#endif 8913#ifdef HAVE_NETDB_H 8914#include <netdb.h> 8915#endif 8916 8917int 8918main () 8919{ 8920struct hostent *gethostbyaddr(const void *, size_t, int); 8921 ; 8922 return 0; 8923} 8924_ACEOF 8925rm -f conftest.$ac_objext 8926if { (eval echo $as_me:8926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8927 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 8928else 8929 echo "$as_me: failed program was:" >&5 8930 cat conftest.$ac_ext >&5 8931 eval "ac_cv_func_gethostbyaddr_proto_compat=no" 8932fi 8933rm -f conftest.$ac_objext conftest.$ac_ext 8934fi 8935echo "$as_me:8935: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 8936echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6 8937 8938if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 8939 8940cat >>confdefs.h <<\EOF 8941#define GETHOSTBYADDR_PROTO_COMPATIBLE 1 8942EOF 8943 8944fi 8945 8946echo "$as_me:8946: checking if getservbyname is compatible with system prototype" >&5 8947echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6 8948if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then 8949 echo $ECHO_N "(cached) $ECHO_C" >&6 8950else 8951 cat >conftest.$ac_ext <<_ACEOF 8952#line 8952 "configure" 8953#include "confdefs.h" 8954 8955#ifdef HAVE_SYS_TYPES_H 8956#include <sys/types.h> 8957#endif 8958#ifdef HAVE_SYS_SOCKET_H 8959#include <sys/socket.h> 8960#endif 8961#ifdef HAVE_NETINET_IN_H 8962#include <netinet/in.h> 8963#endif 8964#ifdef HAVE_ARPA_INET_H 8965#include <arpa/inet.h> 8966#endif 8967#ifdef HAVE_NETDB_H 8968#include <netdb.h> 8969#endif 8970 8971int 8972main () 8973{ 8974struct servent *getservbyname(const char *, const char *); 8975 ; 8976 return 0; 8977} 8978_ACEOF 8979rm -f conftest.$ac_objext 8980if { (eval echo $as_me:8980: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 8981 eval "ac_cv_func_getservbyname_proto_compat=yes" 8982else 8983 echo "$as_me: failed program was:" >&5 8984 cat conftest.$ac_ext >&5 8985 eval "ac_cv_func_getservbyname_proto_compat=no" 8986fi 8987rm -f conftest.$ac_objext conftest.$ac_ext 8988fi 8989echo "$as_me:8989: result: $ac_cv_func_getservbyname_proto_compat" >&5 8990echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6 8991 8992if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 8993 8994cat >>confdefs.h <<\EOF 8995#define GETSERVBYNAME_PROTO_COMPATIBLE 1 8996EOF 8997 8998fi 8999 9000echo "$as_me:9000: checking if getsockname is compatible with system prototype" >&5 9001echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6 9002if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then 9003 echo $ECHO_N "(cached) $ECHO_C" >&6 9004else 9005 cat >conftest.$ac_ext <<_ACEOF 9006#line 9006 "configure" 9007#include "confdefs.h" 9008 9009#ifdef HAVE_SYS_TYPES_H 9010#include <sys/types.h> 9011#endif 9012#ifdef HAVE_SYS_SOCKET_H 9013#include <sys/socket.h> 9014#endif 9015 9016int 9017main () 9018{ 9019int getsockname(int, struct sockaddr*, socklen_t*); 9020 ; 9021 return 0; 9022} 9023_ACEOF 9024rm -f conftest.$ac_objext 9025if { (eval echo $as_me:9025: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9026 eval "ac_cv_func_getsockname_proto_compat=yes" 9027else 9028 echo "$as_me: failed program was:" >&5 9029 cat conftest.$ac_ext >&5 9030 eval "ac_cv_func_getsockname_proto_compat=no" 9031fi 9032rm -f conftest.$ac_objext conftest.$ac_ext 9033fi 9034echo "$as_me:9034: result: $ac_cv_func_getsockname_proto_compat" >&5 9035echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6 9036 9037if test "$ac_cv_func_getsockname_proto_compat" = yes; then 9038 9039cat >>confdefs.h <<\EOF 9040#define GETSOCKNAME_PROTO_COMPATIBLE 1 9041EOF 9042 9043fi 9044 9045echo "$as_me:9045: checking if openlog is compatible with system prototype" >&5 9046echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6 9047if test "${ac_cv_func_openlog_proto_compat+set}" = set; then 9048 echo $ECHO_N "(cached) $ECHO_C" >&6 9049else 9050 cat >conftest.$ac_ext <<_ACEOF 9051#line 9051 "configure" 9052#include "confdefs.h" 9053 9054#ifdef HAVE_SYSLOG_H 9055#include <syslog.h> 9056#endif 9057 9058int 9059main () 9060{ 9061void openlog(const char *, int, int); 9062 ; 9063 return 0; 9064} 9065_ACEOF 9066rm -f conftest.$ac_objext 9067if { (eval echo $as_me:9067: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9068 eval "ac_cv_func_openlog_proto_compat=yes" 9069else 9070 echo "$as_me: failed program was:" >&5 9071 cat conftest.$ac_ext >&5 9072 eval "ac_cv_func_openlog_proto_compat=no" 9073fi 9074rm -f conftest.$ac_objext conftest.$ac_ext 9075fi 9076echo "$as_me:9076: result: $ac_cv_func_openlog_proto_compat" >&5 9077echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6 9078 9079if test "$ac_cv_func_openlog_proto_compat" = yes; then 9080 9081cat >>confdefs.h <<\EOF 9082#define OPENLOG_PROTO_COMPATIBLE 1 9083EOF 9084 9085fi 9086 9087if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 9088echo "$as_me:9088: checking if crypt needs a prototype" >&5 9089echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6 9090if test "${ac_cv_func_crypt_noproto+set}" = set; then 9091 echo $ECHO_N "(cached) $ECHO_C" >&6 9092else 9093 cat >conftest.$ac_ext <<_ACEOF 9094#line 9094 "configure" 9095#include "confdefs.h" 9096 9097#ifdef HAVE_CRYPT_H 9098#include <crypt.h> 9099#endif 9100#ifdef HAVE_UNISTD_H 9101#include <unistd.h> 9102#endif 9103 9104int 9105main () 9106{ 9107struct foo { int foo; } xx; 9108extern int crypt (struct foo*); 9109crypt(&xx); 9110 9111 ; 9112 return 0; 9113} 9114_ACEOF 9115rm -f conftest.$ac_objext 9116if { (eval echo $as_me:9116: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9117 eval "ac_cv_func_crypt_noproto=yes" 9118else 9119 echo "$as_me: failed program was:" >&5 9120 cat conftest.$ac_ext >&5 9121 eval "ac_cv_func_crypt_noproto=no" 9122fi 9123rm -f conftest.$ac_objext conftest.$ac_ext 9124fi 9125echo "$as_me:9125: result: $ac_cv_func_crypt_noproto" >&5 9126echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6 9127 9128if test "$ac_cv_func_crypt_noproto" = yes; then 9129 9130cat >>confdefs.h <<\EOF 9131#define NEED_CRYPT_PROTO 1 9132EOF 9133 9134fi 9135 9136fi 9137 9138if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 9139echo "$as_me:9139: checking if strtok_r needs a prototype" >&5 9140echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6 9141if test "${ac_cv_func_strtok_r_noproto+set}" = set; then 9142 echo $ECHO_N "(cached) $ECHO_C" >&6 9143else 9144 cat >conftest.$ac_ext <<_ACEOF 9145#line 9145 "configure" 9146#include "confdefs.h" 9147 9148#include <string.h> 9149 9150int 9151main () 9152{ 9153struct foo { int foo; } xx; 9154extern int strtok_r (struct foo*); 9155strtok_r(&xx); 9156 9157 ; 9158 return 0; 9159} 9160_ACEOF 9161rm -f conftest.$ac_objext 9162if { (eval echo $as_me:9162: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9163 eval "ac_cv_func_strtok_r_noproto=yes" 9164else 9165 echo "$as_me: failed program was:" >&5 9166 cat conftest.$ac_ext >&5 9167 eval "ac_cv_func_strtok_r_noproto=no" 9168fi 9169rm -f conftest.$ac_objext conftest.$ac_ext 9170fi 9171echo "$as_me:9171: result: $ac_cv_func_strtok_r_noproto" >&5 9172echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6 9173 9174if test "$ac_cv_func_strtok_r_noproto" = yes; then 9175 9176cat >>confdefs.h <<\EOF 9177#define NEED_STRTOK_R_PROTO 1 9178EOF 9179 9180fi 9181 9182fi 9183 9184if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 9185echo "$as_me:9185: checking if strsep needs a prototype" >&5 9186echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6 9187if test "${ac_cv_func_strsep_noproto+set}" = set; then 9188 echo $ECHO_N "(cached) $ECHO_C" >&6 9189else 9190 cat >conftest.$ac_ext <<_ACEOF 9191#line 9191 "configure" 9192#include "confdefs.h" 9193 9194#include <string.h> 9195 9196int 9197main () 9198{ 9199struct foo { int foo; } xx; 9200extern int strsep (struct foo*); 9201strsep(&xx); 9202 9203 ; 9204 return 0; 9205} 9206_ACEOF 9207rm -f conftest.$ac_objext 9208if { (eval echo $as_me:9208: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9209 eval "ac_cv_func_strsep_noproto=yes" 9210else 9211 echo "$as_me: failed program was:" >&5 9212 cat conftest.$ac_ext >&5 9213 eval "ac_cv_func_strsep_noproto=no" 9214fi 9215rm -f conftest.$ac_objext conftest.$ac_ext 9216fi 9217echo "$as_me:9217: result: $ac_cv_func_strsep_noproto" >&5 9218echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6 9219 9220if test "$ac_cv_func_strsep_noproto" = yes; then 9221 9222cat >>confdefs.h <<\EOF 9223#define NEED_STRSEP_PROTO 1 9224EOF 9225 9226fi 9227 9228fi 9229 9230echo "$as_me:9230: checking for h_errno" >&5 9231echo $ECHO_N "checking for h_errno... $ECHO_C" >&6 9232if test "${ac_cv_var_h_errno+set}" = set; then 9233 echo $ECHO_N "(cached) $ECHO_C" >&6 9234else 9235 9236cat >conftest.$ac_ext <<_ACEOF 9237#line 9237 "configure" 9238#include "confdefs.h" 9239extern int h_errno; 9240int foo() { return h_errno; } 9241int 9242main () 9243{ 9244foo() 9245 ; 9246 return 0; 9247} 9248_ACEOF 9249rm -f conftest.$ac_objext conftest$ac_exeext 9250if { (eval echo $as_me:9250: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 9251 ac_cv_var_h_errno=yes 9252else 9253 echo "$as_me: failed program was:" >&5 9254 cat conftest.$ac_ext >&5 9255 ac_cv_var_h_errno=no 9256fi 9257rm -f conftest$ac_exeext conftest.$ac_ext 9258 9259fi 9260 9261ac_foo=`eval echo \\$ac_cv_var_h_errno` 9262echo "$as_me:9262: result: $ac_foo" >&5 9263echo "${ECHO_T}$ac_foo" >&6 9264if test "$ac_foo" = yes; then 9265 9266cat >>confdefs.h <<EOF 9267#define HAVE_H_ERRNO 1 9268EOF 9269 9270echo "$as_me:9270: checking if h_errno is properly declared" >&5 9271echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6 9272if test "${ac_cv_var_h_errno_declaration+set}" = set; then 9273 echo $ECHO_N "(cached) $ECHO_C" >&6 9274else 9275 9276cat >conftest.$ac_ext <<_ACEOF 9277#line 9277 "configure" 9278#include "confdefs.h" 9279#ifdef HAVE_SYS_TYPES_H 9280#include <sys/types.h> 9281#endif 9282#ifdef HAVE_NETDB_H 9283#include <netdb.h> 9284#endif 9285extern struct { int foo; } h_errno; 9286int 9287main () 9288{ 9289h_errno.foo = 1; 9290 ; 9291 return 0; 9292} 9293_ACEOF 9294rm -f conftest.$ac_objext 9295if { (eval echo $as_me:9295: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9296 eval "ac_cv_var_h_errno_declaration=no" 9297else 9298 echo "$as_me: failed program was:" >&5 9299 cat conftest.$ac_ext >&5 9300 eval "ac_cv_var_h_errno_declaration=yes" 9301fi 9302rm -f conftest.$ac_objext conftest.$ac_ext 9303 9304fi 9305 9306echo "$as_me:9306: result: $ac_cv_var_h_errno_declaration" >&5 9307echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6 9308if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then 9309 9310cat >>confdefs.h <<\EOF 9311#define HAVE_H_ERRNO_DECLARATION 1 9312EOF 9313 9314fi 9315 9316fi 9317 9318echo "$as_me:9318: checking for h_errlist" >&5 9319echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6 9320if test "${ac_cv_var_h_errlist+set}" = set; then 9321 echo $ECHO_N "(cached) $ECHO_C" >&6 9322else 9323 9324cat >conftest.$ac_ext <<_ACEOF 9325#line 9325 "configure" 9326#include "confdefs.h" 9327extern int h_errlist; 9328int foo() { return h_errlist; } 9329int 9330main () 9331{ 9332foo() 9333 ; 9334 return 0; 9335} 9336_ACEOF 9337rm -f conftest.$ac_objext conftest$ac_exeext 9338if { (eval echo $as_me:9338: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 9339 ac_cv_var_h_errlist=yes 9340else 9341 echo "$as_me: failed program was:" >&5 9342 cat conftest.$ac_ext >&5 9343 ac_cv_var_h_errlist=no 9344fi 9345rm -f conftest$ac_exeext conftest.$ac_ext 9346 9347fi 9348 9349ac_foo=`eval echo \\$ac_cv_var_h_errlist` 9350echo "$as_me:9350: result: $ac_foo" >&5 9351echo "${ECHO_T}$ac_foo" >&6 9352if test "$ac_foo" = yes; then 9353 9354cat >>confdefs.h <<EOF 9355#define HAVE_H_ERRLIST 1 9356EOF 9357 9358echo "$as_me:9358: checking if h_errlist is properly declared" >&5 9359echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6 9360if test "${ac_cv_var_h_errlist_declaration+set}" = set; then 9361 echo $ECHO_N "(cached) $ECHO_C" >&6 9362else 9363 9364cat >conftest.$ac_ext <<_ACEOF 9365#line 9365 "configure" 9366#include "confdefs.h" 9367#ifdef HAVE_NETDB_H 9368#include <netdb.h> 9369#endif 9370extern struct { int foo; } h_errlist; 9371int 9372main () 9373{ 9374h_errlist.foo = 1; 9375 ; 9376 return 0; 9377} 9378_ACEOF 9379rm -f conftest.$ac_objext 9380if { (eval echo $as_me:9380: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9381 eval "ac_cv_var_h_errlist_declaration=no" 9382else 9383 echo "$as_me: failed program was:" >&5 9384 cat conftest.$ac_ext >&5 9385 eval "ac_cv_var_h_errlist_declaration=yes" 9386fi 9387rm -f conftest.$ac_objext conftest.$ac_ext 9388 9389fi 9390 9391echo "$as_me:9391: result: $ac_cv_var_h_errlist_declaration" >&5 9392echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6 9393if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then 9394 9395cat >>confdefs.h <<\EOF 9396#define HAVE_H_ERRLIST_DECLARATION 1 9397EOF 9398 9399fi 9400 9401fi 9402 9403echo "$as_me:9403: checking for h_nerr" >&5 9404echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6 9405if test "${ac_cv_var_h_nerr+set}" = set; then 9406 echo $ECHO_N "(cached) $ECHO_C" >&6 9407else 9408 9409cat >conftest.$ac_ext <<_ACEOF 9410#line 9410 "configure" 9411#include "confdefs.h" 9412extern int h_nerr; 9413int foo() { return h_nerr; } 9414int 9415main () 9416{ 9417foo() 9418 ; 9419 return 0; 9420} 9421_ACEOF 9422rm -f conftest.$ac_objext conftest$ac_exeext 9423if { (eval echo $as_me:9423: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 9424 ac_cv_var_h_nerr=yes 9425else 9426 echo "$as_me: failed program was:" >&5 9427 cat conftest.$ac_ext >&5 9428 ac_cv_var_h_nerr=no 9429fi 9430rm -f conftest$ac_exeext conftest.$ac_ext 9431 9432fi 9433 9434ac_foo=`eval echo \\$ac_cv_var_h_nerr` 9435echo "$as_me:9435: result: $ac_foo" >&5 9436echo "${ECHO_T}$ac_foo" >&6 9437if test "$ac_foo" = yes; then 9438 9439cat >>confdefs.h <<EOF 9440#define HAVE_H_NERR 1 9441EOF 9442 9443echo "$as_me:9443: checking if h_nerr is properly declared" >&5 9444echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6 9445if test "${ac_cv_var_h_nerr_declaration+set}" = set; then 9446 echo $ECHO_N "(cached) $ECHO_C" >&6 9447else 9448 9449cat >conftest.$ac_ext <<_ACEOF 9450#line 9450 "configure" 9451#include "confdefs.h" 9452#ifdef HAVE_NETDB_H 9453#include <netdb.h> 9454#endif 9455extern struct { int foo; } h_nerr; 9456int 9457main () 9458{ 9459h_nerr.foo = 1; 9460 ; 9461 return 0; 9462} 9463_ACEOF 9464rm -f conftest.$ac_objext 9465if { (eval echo $as_me:9465: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9466 eval "ac_cv_var_h_nerr_declaration=no" 9467else 9468 echo "$as_me: failed program was:" >&5 9469 cat conftest.$ac_ext >&5 9470 eval "ac_cv_var_h_nerr_declaration=yes" 9471fi 9472rm -f conftest.$ac_objext conftest.$ac_ext 9473 9474fi 9475 9476echo "$as_me:9476: result: $ac_cv_var_h_nerr_declaration" >&5 9477echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6 9478if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then 9479 9480cat >>confdefs.h <<\EOF 9481#define HAVE_H_NERR_DECLARATION 1 9482EOF 9483 9484fi 9485 9486fi 9487 9488echo "$as_me:9488: checking for __progname" >&5 9489echo $ECHO_N "checking for __progname... $ECHO_C" >&6 9490if test "${ac_cv_var___progname+set}" = set; then 9491 echo $ECHO_N "(cached) $ECHO_C" >&6 9492else 9493 9494cat >conftest.$ac_ext <<_ACEOF 9495#line 9495 "configure" 9496#include "confdefs.h" 9497extern int __progname; 9498int foo() { return __progname; } 9499int 9500main () 9501{ 9502foo() 9503 ; 9504 return 0; 9505} 9506_ACEOF 9507rm -f conftest.$ac_objext conftest$ac_exeext 9508if { (eval echo $as_me:9508: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 9509 ac_cv_var___progname=yes 9510else 9511 echo "$as_me: failed program was:" >&5 9512 cat conftest.$ac_ext >&5 9513 ac_cv_var___progname=no 9514fi 9515rm -f conftest$ac_exeext conftest.$ac_ext 9516 9517fi 9518 9519ac_foo=`eval echo \\$ac_cv_var___progname` 9520echo "$as_me:9520: result: $ac_foo" >&5 9521echo "${ECHO_T}$ac_foo" >&6 9522if test "$ac_foo" = yes; then 9523 9524cat >>confdefs.h <<EOF 9525#define HAVE___PROGNAME 1 9526EOF 9527 9528echo "$as_me:9528: checking if __progname is properly declared" >&5 9529echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6 9530if test "${ac_cv_var___progname_declaration+set}" = set; then 9531 echo $ECHO_N "(cached) $ECHO_C" >&6 9532else 9533 9534cat >conftest.$ac_ext <<_ACEOF 9535#line 9535 "configure" 9536#include "confdefs.h" 9537#ifdef HAVE_ERR_H 9538#include <err.h> 9539#endif 9540extern struct { int foo; } __progname; 9541int 9542main () 9543{ 9544__progname.foo = 1; 9545 ; 9546 return 0; 9547} 9548_ACEOF 9549rm -f conftest.$ac_objext 9550if { (eval echo $as_me:9550: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9551 eval "ac_cv_var___progname_declaration=no" 9552else 9553 echo "$as_me: failed program was:" >&5 9554 cat conftest.$ac_ext >&5 9555 eval "ac_cv_var___progname_declaration=yes" 9556fi 9557rm -f conftest.$ac_objext conftest.$ac_ext 9558 9559fi 9560 9561echo "$as_me:9561: result: $ac_cv_var___progname_declaration" >&5 9562echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6 9563if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then 9564 9565cat >>confdefs.h <<\EOF 9566#define HAVE___PROGNAME_DECLARATION 1 9567EOF 9568 9569fi 9570 9571fi 9572 9573echo "$as_me:9573: checking if optarg is properly declared" >&5 9574echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6 9575if test "${ac_cv_var_optarg_declaration+set}" = set; then 9576 echo $ECHO_N "(cached) $ECHO_C" >&6 9577else 9578 9579cat >conftest.$ac_ext <<_ACEOF 9580#line 9580 "configure" 9581#include "confdefs.h" 9582#include <stdlib.h> 9583#ifdef HAVE_UNISTD_H 9584#include <unistd.h> 9585#endif 9586extern struct { int foo; } optarg; 9587int 9588main () 9589{ 9590optarg.foo = 1; 9591 ; 9592 return 0; 9593} 9594_ACEOF 9595rm -f conftest.$ac_objext 9596if { (eval echo $as_me:9596: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9597 eval "ac_cv_var_optarg_declaration=no" 9598else 9599 echo "$as_me: failed program was:" >&5 9600 cat conftest.$ac_ext >&5 9601 eval "ac_cv_var_optarg_declaration=yes" 9602fi 9603rm -f conftest.$ac_objext conftest.$ac_ext 9604 9605fi 9606 9607echo "$as_me:9607: result: $ac_cv_var_optarg_declaration" >&5 9608echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6 9609if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then 9610 9611cat >>confdefs.h <<\EOF 9612#define HAVE_OPTARG_DECLARATION 1 9613EOF 9614 9615fi 9616 9617echo "$as_me:9617: checking if optind is properly declared" >&5 9618echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6 9619if test "${ac_cv_var_optind_declaration+set}" = set; then 9620 echo $ECHO_N "(cached) $ECHO_C" >&6 9621else 9622 9623cat >conftest.$ac_ext <<_ACEOF 9624#line 9624 "configure" 9625#include "confdefs.h" 9626#include <stdlib.h> 9627#ifdef HAVE_UNISTD_H 9628#include <unistd.h> 9629#endif 9630extern struct { int foo; } optind; 9631int 9632main () 9633{ 9634optind.foo = 1; 9635 ; 9636 return 0; 9637} 9638_ACEOF 9639rm -f conftest.$ac_objext 9640if { (eval echo $as_me:9640: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9641 eval "ac_cv_var_optind_declaration=no" 9642else 9643 echo "$as_me: failed program was:" >&5 9644 cat conftest.$ac_ext >&5 9645 eval "ac_cv_var_optind_declaration=yes" 9646fi 9647rm -f conftest.$ac_objext conftest.$ac_ext 9648 9649fi 9650 9651echo "$as_me:9651: result: $ac_cv_var_optind_declaration" >&5 9652echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6 9653if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then 9654 9655cat >>confdefs.h <<\EOF 9656#define HAVE_OPTIND_DECLARATION 1 9657EOF 9658 9659fi 9660 9661echo "$as_me:9661: checking if opterr is properly declared" >&5 9662echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6 9663if test "${ac_cv_var_opterr_declaration+set}" = set; then 9664 echo $ECHO_N "(cached) $ECHO_C" >&6 9665else 9666 9667cat >conftest.$ac_ext <<_ACEOF 9668#line 9668 "configure" 9669#include "confdefs.h" 9670#include <stdlib.h> 9671#ifdef HAVE_UNISTD_H 9672#include <unistd.h> 9673#endif 9674extern struct { int foo; } opterr; 9675int 9676main () 9677{ 9678opterr.foo = 1; 9679 ; 9680 return 0; 9681} 9682_ACEOF 9683rm -f conftest.$ac_objext 9684if { (eval echo $as_me:9684: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9685 eval "ac_cv_var_opterr_declaration=no" 9686else 9687 echo "$as_me: failed program was:" >&5 9688 cat conftest.$ac_ext >&5 9689 eval "ac_cv_var_opterr_declaration=yes" 9690fi 9691rm -f conftest.$ac_objext conftest.$ac_ext 9692 9693fi 9694 9695echo "$as_me:9695: result: $ac_cv_var_opterr_declaration" >&5 9696echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6 9697if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then 9698 9699cat >>confdefs.h <<\EOF 9700#define HAVE_OPTERR_DECLARATION 1 9701EOF 9702 9703fi 9704 9705echo "$as_me:9705: checking if optopt is properly declared" >&5 9706echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6 9707if test "${ac_cv_var_optopt_declaration+set}" = set; then 9708 echo $ECHO_N "(cached) $ECHO_C" >&6 9709else 9710 9711cat >conftest.$ac_ext <<_ACEOF 9712#line 9712 "configure" 9713#include "confdefs.h" 9714#include <stdlib.h> 9715#ifdef HAVE_UNISTD_H 9716#include <unistd.h> 9717#endif 9718extern struct { int foo; } optopt; 9719int 9720main () 9721{ 9722optopt.foo = 1; 9723 ; 9724 return 0; 9725} 9726_ACEOF 9727rm -f conftest.$ac_objext 9728if { (eval echo $as_me:9728: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9729 eval "ac_cv_var_optopt_declaration=no" 9730else 9731 echo "$as_me: failed program was:" >&5 9732 cat conftest.$ac_ext >&5 9733 eval "ac_cv_var_optopt_declaration=yes" 9734fi 9735rm -f conftest.$ac_objext conftest.$ac_ext 9736 9737fi 9738 9739echo "$as_me:9739: result: $ac_cv_var_optopt_declaration" >&5 9740echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6 9741if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then 9742 9743cat >>confdefs.h <<\EOF 9744#define HAVE_OPTOPT_DECLARATION 1 9745EOF 9746 9747fi 9748 9749echo "$as_me:9749: checking if environ is properly declared" >&5 9750echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6 9751if test "${ac_cv_var_environ_declaration+set}" = set; then 9752 echo $ECHO_N "(cached) $ECHO_C" >&6 9753else 9754 9755cat >conftest.$ac_ext <<_ACEOF 9756#line 9756 "configure" 9757#include "confdefs.h" 9758#include <stdlib.h> 9759extern struct { int foo; } environ; 9760int 9761main () 9762{ 9763environ.foo = 1; 9764 ; 9765 return 0; 9766} 9767_ACEOF 9768rm -f conftest.$ac_objext 9769if { (eval echo $as_me:9769: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9770 eval "ac_cv_var_environ_declaration=no" 9771else 9772 echo "$as_me: failed program was:" >&5 9773 cat conftest.$ac_ext >&5 9774 eval "ac_cv_var_environ_declaration=yes" 9775fi 9776rm -f conftest.$ac_objext conftest.$ac_ext 9777 9778fi 9779 9780echo "$as_me:9780: result: $ac_cv_var_environ_declaration" >&5 9781echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6 9782if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then 9783 9784cat >>confdefs.h <<\EOF 9785#define HAVE_ENVIRON_DECLARATION 1 9786EOF 9787 9788fi 9789 9790echo "$as_me:9790: checking for tm_gmtoff in struct tm" >&5 9791echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 9792if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 9793 echo $ECHO_N "(cached) $ECHO_C" >&6 9794else 9795 9796cat >conftest.$ac_ext <<_ACEOF 9797#line 9797 "configure" 9798#include "confdefs.h" 9799#include <time.h> 9800int 9801main () 9802{ 9803struct tm x; x.tm_gmtoff; 9804 ; 9805 return 0; 9806} 9807_ACEOF 9808rm -f conftest.$ac_objext 9809if { (eval echo $as_me:9809: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9810 ac_cv_type_struct_tm_tm_gmtoff=yes 9811else 9812 echo "$as_me: failed program was:" >&5 9813 cat conftest.$ac_ext >&5 9814 ac_cv_type_struct_tm_tm_gmtoff=no 9815fi 9816rm -f conftest.$ac_objext conftest.$ac_ext 9817fi 9818echo "$as_me:9818: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 9819echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6 9820if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 9821 9822cat >>confdefs.h <<\EOF 9823#define HAVE_STRUCT_TM_TM_GMTOFF 1 9824EOF 9825 9826fi 9827 9828echo "$as_me:9828: checking for tm_zone in struct tm" >&5 9829echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 9830if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 9831 echo $ECHO_N "(cached) $ECHO_C" >&6 9832else 9833 9834cat >conftest.$ac_ext <<_ACEOF 9835#line 9835 "configure" 9836#include "confdefs.h" 9837#include <time.h> 9838int 9839main () 9840{ 9841struct tm x; x.tm_zone; 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846rm -f conftest.$ac_objext 9847if { (eval echo $as_me:9847: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9848 ac_cv_type_struct_tm_tm_zone=yes 9849else 9850 echo "$as_me: failed program was:" >&5 9851 cat conftest.$ac_ext >&5 9852 ac_cv_type_struct_tm_tm_zone=no 9853fi 9854rm -f conftest.$ac_objext conftest.$ac_ext 9855fi 9856echo "$as_me:9856: result: $ac_cv_type_struct_tm_tm_zone" >&5 9857echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6 9858if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 9859 9860cat >>confdefs.h <<\EOF 9861#define HAVE_STRUCT_TM_TM_ZONE 1 9862EOF 9863 9864fi 9865 9866echo "$as_me:9866: checking for timezone" >&5 9867echo $ECHO_N "checking for timezone... $ECHO_C" >&6 9868if test "${ac_cv_var_timezone+set}" = set; then 9869 echo $ECHO_N "(cached) $ECHO_C" >&6 9870else 9871 9872cat >conftest.$ac_ext <<_ACEOF 9873#line 9873 "configure" 9874#include "confdefs.h" 9875extern int timezone; 9876int foo() { return timezone; } 9877int 9878main () 9879{ 9880foo() 9881 ; 9882 return 0; 9883} 9884_ACEOF 9885rm -f conftest.$ac_objext conftest$ac_exeext 9886if { (eval echo $as_me:9886: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 9887 ac_cv_var_timezone=yes 9888else 9889 echo "$as_me: failed program was:" >&5 9890 cat conftest.$ac_ext >&5 9891 ac_cv_var_timezone=no 9892fi 9893rm -f conftest$ac_exeext conftest.$ac_ext 9894 9895fi 9896 9897ac_foo=`eval echo \\$ac_cv_var_timezone` 9898echo "$as_me:9898: result: $ac_foo" >&5 9899echo "${ECHO_T}$ac_foo" >&6 9900if test "$ac_foo" = yes; then 9901 9902cat >>confdefs.h <<EOF 9903#define HAVE_TIMEZONE 1 9904EOF 9905 9906echo "$as_me:9906: checking if timezone is properly declared" >&5 9907echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6 9908if test "${ac_cv_var_timezone_declaration+set}" = set; then 9909 echo $ECHO_N "(cached) $ECHO_C" >&6 9910else 9911 9912cat >conftest.$ac_ext <<_ACEOF 9913#line 9913 "configure" 9914#include "confdefs.h" 9915#include <time.h> 9916extern struct { int foo; } timezone; 9917int 9918main () 9919{ 9920timezone.foo = 1; 9921 ; 9922 return 0; 9923} 9924_ACEOF 9925rm -f conftest.$ac_objext 9926if { (eval echo $as_me:9926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9927 eval "ac_cv_var_timezone_declaration=no" 9928else 9929 echo "$as_me: failed program was:" >&5 9930 cat conftest.$ac_ext >&5 9931 eval "ac_cv_var_timezone_declaration=yes" 9932fi 9933rm -f conftest.$ac_objext conftest.$ac_ext 9934 9935fi 9936 9937echo "$as_me:9937: result: $ac_cv_var_timezone_declaration" >&5 9938echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6 9939if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 9940 9941cat >>confdefs.h <<\EOF 9942#define HAVE_TIMEZONE_DECLARATION 1 9943EOF 9944 9945fi 9946 9947fi 9948 9949cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 9950echo "$as_me:9950: checking for sa_family_t" >&5 9951echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 9952if eval "test \"\${ac_cv_type_$cv+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#include <sys/types.h> 9959#if STDC_HEADERS 9960#include <stdlib.h> 9961#include <stddef.h> 9962#endif 9963#include <sys/socket.h> 9964int 9965main () 9966{ 9967sa_family_t foo; 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972rm -f conftest.$ac_objext 9973if { (eval echo $as_me:9973: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 9974 eval "ac_cv_type_$cv=yes" 9975else 9976 echo "$as_me: failed program was:" >&5 9977 cat conftest.$ac_ext >&5 9978 eval "ac_cv_type_$cv=no" 9979fi 9980rm -f conftest.$ac_objext conftest.$ac_ext 9981fi 9982ac_foo=`eval echo \\$ac_cv_type_$cv` 9983echo "$as_me:9983: result: $ac_foo" >&5 9984echo "${ECHO_T}$ac_foo" >&6 9985if test "$ac_foo" = yes; then 9986 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 9987if false; then 9988 echo "$as_me:9988: checking for sa_family_t" >&5 9989echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 9990if test "${ac_cv_type_sa_family_t+set}" = set; then 9991 echo $ECHO_N "(cached) $ECHO_C" >&6 9992else 9993 cat >conftest.$ac_ext <<_ACEOF 9994#line 9994 "configure" 9995#include "confdefs.h" 9996$ac_includes_default 9997int 9998main () 9999{ 10000if ((sa_family_t *) 0) 10001 return 0; 10002if (sizeof (sa_family_t)) 10003 return 0; 10004 ; 10005 return 0; 10006} 10007_ACEOF 10008rm -f conftest.$ac_objext 10009if { (eval echo $as_me:10009: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10010 ac_cv_type_sa_family_t=yes 10011else 10012 echo "$as_me: failed program was:" >&5 10013 cat conftest.$ac_ext >&5 10014 ac_cv_type_sa_family_t=no 10015fi 10016rm -f conftest.$ac_objext conftest.$ac_ext 10017fi 10018echo "$as_me:10018: result: $ac_cv_type_sa_family_t" >&5 10019echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6 10020if test $ac_cv_type_sa_family_t = yes; then 10021 10022cat >>confdefs.h <<EOF 10023#define HAVE_SA_FAMILY_T 1 10024EOF 10025 10026fi 10027 10028fi 10029 10030cat >>confdefs.h <<EOF 10031#define $ac_tr_hdr 1 10032EOF 10033 10034fi 10035 10036cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 10037echo "$as_me:10037: checking for socklen_t" >&5 10038echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 10039if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 10040 echo $ECHO_N "(cached) $ECHO_C" >&6 10041else 10042 cat >conftest.$ac_ext <<_ACEOF 10043#line 10043 "configure" 10044#include "confdefs.h" 10045#include <sys/types.h> 10046#if STDC_HEADERS 10047#include <stdlib.h> 10048#include <stddef.h> 10049#endif 10050#include <sys/socket.h> 10051int 10052main () 10053{ 10054socklen_t foo; 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059rm -f conftest.$ac_objext 10060if { (eval echo $as_me:10060: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10061 eval "ac_cv_type_$cv=yes" 10062else 10063 echo "$as_me: failed program was:" >&5 10064 cat conftest.$ac_ext >&5 10065 eval "ac_cv_type_$cv=no" 10066fi 10067rm -f conftest.$ac_objext conftest.$ac_ext 10068fi 10069ac_foo=`eval echo \\$ac_cv_type_$cv` 10070echo "$as_me:10070: result: $ac_foo" >&5 10071echo "${ECHO_T}$ac_foo" >&6 10072if test "$ac_foo" = yes; then 10073 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 10074if false; then 10075 echo "$as_me:10075: checking for socklen_t" >&5 10076echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 10077if test "${ac_cv_type_socklen_t+set}" = set; then 10078 echo $ECHO_N "(cached) $ECHO_C" >&6 10079else 10080 cat >conftest.$ac_ext <<_ACEOF 10081#line 10081 "configure" 10082#include "confdefs.h" 10083$ac_includes_default 10084int 10085main () 10086{ 10087if ((socklen_t *) 0) 10088 return 0; 10089if (sizeof (socklen_t)) 10090 return 0; 10091 ; 10092 return 0; 10093} 10094_ACEOF 10095rm -f conftest.$ac_objext 10096if { (eval echo $as_me:10096: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10097 ac_cv_type_socklen_t=yes 10098else 10099 echo "$as_me: failed program was:" >&5 10100 cat conftest.$ac_ext >&5 10101 ac_cv_type_socklen_t=no 10102fi 10103rm -f conftest.$ac_objext conftest.$ac_ext 10104fi 10105echo "$as_me:10105: result: $ac_cv_type_socklen_t" >&5 10106echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 10107if test $ac_cv_type_socklen_t = yes; then 10108 10109cat >>confdefs.h <<EOF 10110#define HAVE_SOCKLEN_T 1 10111EOF 10112 10113fi 10114 10115fi 10116 10117cat >>confdefs.h <<EOF 10118#define $ac_tr_hdr 1 10119EOF 10120 10121fi 10122 10123cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 10124echo "$as_me:10124: checking for struct sockaddr" >&5 10125echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 10126if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 10127 echo $ECHO_N "(cached) $ECHO_C" >&6 10128else 10129 cat >conftest.$ac_ext <<_ACEOF 10130#line 10130 "configure" 10131#include "confdefs.h" 10132#include <sys/types.h> 10133#if STDC_HEADERS 10134#include <stdlib.h> 10135#include <stddef.h> 10136#endif 10137#include <sys/socket.h> 10138int 10139main () 10140{ 10141struct sockaddr foo; 10142 ; 10143 return 0; 10144} 10145_ACEOF 10146rm -f conftest.$ac_objext 10147if { (eval echo $as_me:10147: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10148 eval "ac_cv_type_$cv=yes" 10149else 10150 echo "$as_me: failed program was:" >&5 10151 cat conftest.$ac_ext >&5 10152 eval "ac_cv_type_$cv=no" 10153fi 10154rm -f conftest.$ac_objext conftest.$ac_ext 10155fi 10156ac_foo=`eval echo \\$ac_cv_type_$cv` 10157echo "$as_me:10157: result: $ac_foo" >&5 10158echo "${ECHO_T}$ac_foo" >&6 10159if test "$ac_foo" = yes; then 10160 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 10161if false; then 10162 echo "$as_me:10162: checking for struct sockaddr" >&5 10163echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 10164if test "${ac_cv_type_struct_sockaddr+set}" = set; then 10165 echo $ECHO_N "(cached) $ECHO_C" >&6 10166else 10167 cat >conftest.$ac_ext <<_ACEOF 10168#line 10168 "configure" 10169#include "confdefs.h" 10170$ac_includes_default 10171int 10172main () 10173{ 10174if ((struct sockaddr *) 0) 10175 return 0; 10176if (sizeof (struct sockaddr)) 10177 return 0; 10178 ; 10179 return 0; 10180} 10181_ACEOF 10182rm -f conftest.$ac_objext 10183if { (eval echo $as_me:10183: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10184 ac_cv_type_struct_sockaddr=yes 10185else 10186 echo "$as_me: failed program was:" >&5 10187 cat conftest.$ac_ext >&5 10188 ac_cv_type_struct_sockaddr=no 10189fi 10190rm -f conftest.$ac_objext conftest.$ac_ext 10191fi 10192echo "$as_me:10192: result: $ac_cv_type_struct_sockaddr" >&5 10193echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6 10194if test $ac_cv_type_struct_sockaddr = yes; then 10195 10196cat >>confdefs.h <<EOF 10197#define HAVE_STRUCT_SOCKADDR 1 10198EOF 10199 10200fi 10201 10202fi 10203 10204cat >>confdefs.h <<EOF 10205#define $ac_tr_hdr 1 10206EOF 10207 10208fi 10209 10210cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 10211echo "$as_me:10211: checking for struct sockaddr_storage" >&5 10212echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 10213if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 10214 echo $ECHO_N "(cached) $ECHO_C" >&6 10215else 10216 cat >conftest.$ac_ext <<_ACEOF 10217#line 10217 "configure" 10218#include "confdefs.h" 10219#include <sys/types.h> 10220#if STDC_HEADERS 10221#include <stdlib.h> 10222#include <stddef.h> 10223#endif 10224#include <sys/socket.h> 10225int 10226main () 10227{ 10228struct sockaddr_storage foo; 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233rm -f conftest.$ac_objext 10234if { (eval echo $as_me:10234: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10235 eval "ac_cv_type_$cv=yes" 10236else 10237 echo "$as_me: failed program was:" >&5 10238 cat conftest.$ac_ext >&5 10239 eval "ac_cv_type_$cv=no" 10240fi 10241rm -f conftest.$ac_objext conftest.$ac_ext 10242fi 10243ac_foo=`eval echo \\$ac_cv_type_$cv` 10244echo "$as_me:10244: result: $ac_foo" >&5 10245echo "${ECHO_T}$ac_foo" >&6 10246if test "$ac_foo" = yes; then 10247 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 10248if false; then 10249 echo "$as_me:10249: checking for struct sockaddr_storage" >&5 10250echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 10251if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 10252 echo $ECHO_N "(cached) $ECHO_C" >&6 10253else 10254 cat >conftest.$ac_ext <<_ACEOF 10255#line 10255 "configure" 10256#include "confdefs.h" 10257$ac_includes_default 10258int 10259main () 10260{ 10261if ((struct sockaddr_storage *) 0) 10262 return 0; 10263if (sizeof (struct sockaddr_storage)) 10264 return 0; 10265 ; 10266 return 0; 10267} 10268_ACEOF 10269rm -f conftest.$ac_objext 10270if { (eval echo $as_me:10270: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10271 ac_cv_type_struct_sockaddr_storage=yes 10272else 10273 echo "$as_me: failed program was:" >&5 10274 cat conftest.$ac_ext >&5 10275 ac_cv_type_struct_sockaddr_storage=no 10276fi 10277rm -f conftest.$ac_objext conftest.$ac_ext 10278fi 10279echo "$as_me:10279: result: $ac_cv_type_struct_sockaddr_storage" >&5 10280echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 10281if test $ac_cv_type_struct_sockaddr_storage = yes; then 10282 10283cat >>confdefs.h <<EOF 10284#define HAVE_STRUCT_SOCKADDR_STORAGE 1 10285EOF 10286 10287fi 10288 10289fi 10290 10291cat >>confdefs.h <<EOF 10292#define $ac_tr_hdr 1 10293EOF 10294 10295fi 10296 10297cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 10298echo "$as_me:10298: checking for struct addrinfo" >&5 10299echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 10300if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 10301 echo $ECHO_N "(cached) $ECHO_C" >&6 10302else 10303 cat >conftest.$ac_ext <<_ACEOF 10304#line 10304 "configure" 10305#include "confdefs.h" 10306#include <sys/types.h> 10307#if STDC_HEADERS 10308#include <stdlib.h> 10309#include <stddef.h> 10310#endif 10311#include <netdb.h> 10312int 10313main () 10314{ 10315struct addrinfo foo; 10316 ; 10317 return 0; 10318} 10319_ACEOF 10320rm -f conftest.$ac_objext 10321if { (eval echo $as_me:10321: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10322 eval "ac_cv_type_$cv=yes" 10323else 10324 echo "$as_me: failed program was:" >&5 10325 cat conftest.$ac_ext >&5 10326 eval "ac_cv_type_$cv=no" 10327fi 10328rm -f conftest.$ac_objext conftest.$ac_ext 10329fi 10330ac_foo=`eval echo \\$ac_cv_type_$cv` 10331echo "$as_me:10331: result: $ac_foo" >&5 10332echo "${ECHO_T}$ac_foo" >&6 10333if test "$ac_foo" = yes; then 10334 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 10335if false; then 10336 echo "$as_me:10336: checking for struct addrinfo" >&5 10337echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 10338if test "${ac_cv_type_struct_addrinfo+set}" = set; then 10339 echo $ECHO_N "(cached) $ECHO_C" >&6 10340else 10341 cat >conftest.$ac_ext <<_ACEOF 10342#line 10342 "configure" 10343#include "confdefs.h" 10344$ac_includes_default 10345int 10346main () 10347{ 10348if ((struct addrinfo *) 0) 10349 return 0; 10350if (sizeof (struct addrinfo)) 10351 return 0; 10352 ; 10353 return 0; 10354} 10355_ACEOF 10356rm -f conftest.$ac_objext 10357if { (eval echo $as_me:10357: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10358 ac_cv_type_struct_addrinfo=yes 10359else 10360 echo "$as_me: failed program was:" >&5 10361 cat conftest.$ac_ext >&5 10362 ac_cv_type_struct_addrinfo=no 10363fi 10364rm -f conftest.$ac_objext conftest.$ac_ext 10365fi 10366echo "$as_me:10366: result: $ac_cv_type_struct_addrinfo" >&5 10367echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6 10368if test $ac_cv_type_struct_addrinfo = yes; then 10369 10370cat >>confdefs.h <<EOF 10371#define HAVE_STRUCT_ADDRINFO 1 10372EOF 10373 10374fi 10375 10376fi 10377 10378cat >>confdefs.h <<EOF 10379#define $ac_tr_hdr 1 10380EOF 10381 10382fi 10383 10384cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 10385echo "$as_me:10385: checking for struct ifaddrs" >&5 10386echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 10387if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 10388 echo $ECHO_N "(cached) $ECHO_C" >&6 10389else 10390 cat >conftest.$ac_ext <<_ACEOF 10391#line 10391 "configure" 10392#include "confdefs.h" 10393#include <sys/types.h> 10394#if STDC_HEADERS 10395#include <stdlib.h> 10396#include <stddef.h> 10397#endif 10398#include <ifaddrs.h> 10399int 10400main () 10401{ 10402struct ifaddrs foo; 10403 ; 10404 return 0; 10405} 10406_ACEOF 10407rm -f conftest.$ac_objext 10408if { (eval echo $as_me:10408: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10409 eval "ac_cv_type_$cv=yes" 10410else 10411 echo "$as_me: failed program was:" >&5 10412 cat conftest.$ac_ext >&5 10413 eval "ac_cv_type_$cv=no" 10414fi 10415rm -f conftest.$ac_objext conftest.$ac_ext 10416fi 10417ac_foo=`eval echo \\$ac_cv_type_$cv` 10418echo "$as_me:10418: result: $ac_foo" >&5 10419echo "${ECHO_T}$ac_foo" >&6 10420if test "$ac_foo" = yes; then 10421 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 10422if false; then 10423 echo "$as_me:10423: checking for struct ifaddrs" >&5 10424echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 10425if test "${ac_cv_type_struct_ifaddrs+set}" = set; then 10426 echo $ECHO_N "(cached) $ECHO_C" >&6 10427else 10428 cat >conftest.$ac_ext <<_ACEOF 10429#line 10429 "configure" 10430#include "confdefs.h" 10431$ac_includes_default 10432int 10433main () 10434{ 10435if ((struct ifaddrs *) 0) 10436 return 0; 10437if (sizeof (struct ifaddrs)) 10438 return 0; 10439 ; 10440 return 0; 10441} 10442_ACEOF 10443rm -f conftest.$ac_objext 10444if { (eval echo $as_me:10444: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10445 ac_cv_type_struct_ifaddrs=yes 10446else 10447 echo "$as_me: failed program was:" >&5 10448 cat conftest.$ac_ext >&5 10449 ac_cv_type_struct_ifaddrs=no 10450fi 10451rm -f conftest.$ac_objext conftest.$ac_ext 10452fi 10453echo "$as_me:10453: result: $ac_cv_type_struct_ifaddrs" >&5 10454echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6 10455if test $ac_cv_type_struct_ifaddrs = yes; then 10456 10457cat >>confdefs.h <<EOF 10458#define HAVE_STRUCT_IFADDRS 1 10459EOF 10460 10461fi 10462 10463fi 10464 10465cat >>confdefs.h <<EOF 10466#define $ac_tr_hdr 1 10467EOF 10468 10469fi 10470 10471echo "$as_me:10471: checking for struct winsize" >&5 10472echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6 10473if test "${ac_cv_struct_winsize+set}" = set; then 10474 echo $ECHO_N "(cached) $ECHO_C" >&6 10475else 10476 10477ac_cv_struct_winsize=no 10478for i in sys/termios.h sys/ioctl.h; do 10479cat >conftest.$ac_ext <<_ACEOF 10480#line 10480 "configure" 10481#include "confdefs.h" 10482#include <$i> 10483 10484_ACEOF 10485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10486 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 10487 ac_cv_struct_winsize=yes; break 10488fi 10489rm -f conftest* 10490done 10491 10492fi 10493 10494if test "$ac_cv_struct_winsize" = "yes"; then 10495 10496cat >>confdefs.h <<\EOF 10497#define HAVE_STRUCT_WINSIZE 1 10498EOF 10499 10500fi 10501echo "$as_me:10501: result: $ac_cv_struct_winsize" >&5 10502echo "${ECHO_T}$ac_cv_struct_winsize" >&6 10503cat >conftest.$ac_ext <<_ACEOF 10504#line 10504 "configure" 10505#include "confdefs.h" 10506#include <termios.h> 10507 10508_ACEOF 10509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10510 egrep "ws_xpixel" >/dev/null 2>&1; then 10511 10512cat >>confdefs.h <<\EOF 10513#define HAVE_WS_XPIXEL 1 10514EOF 10515 10516fi 10517rm -f conftest* 10518 10519cat >conftest.$ac_ext <<_ACEOF 10520#line 10520 "configure" 10521#include "confdefs.h" 10522#include <termios.h> 10523 10524_ACEOF 10525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10526 egrep "ws_ypixel" >/dev/null 2>&1; then 10527 10528cat >>confdefs.h <<\EOF 10529#define HAVE_WS_YPIXEL 1 10530EOF 10531 10532fi 10533rm -f conftest* 10534 10535echo "$as_me:10535: checking for struct spwd" >&5 10536echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6 10537if test "${ac_cv_struct_spwd+set}" = set; then 10538 echo $ECHO_N "(cached) $ECHO_C" >&6 10539else 10540 10541cat >conftest.$ac_ext <<_ACEOF 10542#line 10542 "configure" 10543#include "confdefs.h" 10544#include <pwd.h> 10545#ifdef HAVE_SHADOW_H 10546#include <shadow.h> 10547#endif 10548int 10549main () 10550{ 10551struct spwd foo; 10552 ; 10553 return 0; 10554} 10555_ACEOF 10556rm -f conftest.$ac_objext 10557if { (eval echo $as_me:10557: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10558 ac_cv_struct_spwd=yes 10559else 10560 echo "$as_me: failed program was:" >&5 10561 cat conftest.$ac_ext >&5 10562 ac_cv_struct_spwd=no 10563fi 10564rm -f conftest.$ac_objext conftest.$ac_ext 10565 10566fi 10567 10568echo "$as_me:10568: result: $ac_cv_struct_spwd" >&5 10569echo "${ECHO_T}$ac_cv_struct_spwd" >&6 10570 10571if test "$ac_cv_struct_spwd" = "yes"; then 10572 10573cat >>confdefs.h <<\EOF 10574#define HAVE_STRUCT_SPWD 1 10575EOF 10576 10577fi 10578 10579LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 10580 10581LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 10582 10583# Check whether --with-openldap or --without-openldap was given. 10584if test "${with_openldap+set}" = set; then 10585 withval="$with_openldap" 10586 10587fi; 10588 10589# Check whether --with-openldap-lib or --without-openldap-lib was given. 10590if test "${with_openldap_lib+set}" = set; then 10591 withval="$with_openldap_lib" 10592 if test "$withval" = "yes" -o "$withval" = "no"; then 10593 { echo "$as_me: error: No argument for --with-openldap-lib" >&2 10594 { (exit 1); exit; }; } 10595elif test "X$with_openldap" = "X"; then 10596 with_openldap=yes 10597fi 10598fi; 10599 10600# Check whether --with-openldap-include or --without-openldap-include was given. 10601if test "${with_openldap_include+set}" = set; then 10602 withval="$with_openldap_include" 10603 if test "$withval" = "yes" -o "$withval" = "no"; then 10604 { echo "$as_me: error: No argument for --with-openldap-include" >&2 10605 { (exit 1); exit; }; } 10606elif test "X$with_openldap" = "X"; then 10607 with_openldap=yes 10608fi 10609fi; 10610 10611echo "$as_me:10611: checking for openldap" >&5 10612echo $ECHO_N "checking for openldap... $ECHO_C" >&6 10613 10614case "$with_openldap" in 10615yes) ;; 10616no) ;; 10617"") ;; 10618*) if test "$with_openldap_include" = ""; then 10619 with_openldap_include="$with_openldap/include" 10620 fi 10621 if test "$with_openldap_lib" = ""; then 10622 with_openldap_lib="$with_openldap/lib$abilibdirext" 10623 fi 10624 ;; 10625esac 10626header_dirs= 10627lib_dirs= 10628d='' 10629for i in $d; do 10630 header_dirs="$header_dirs $i/include" 10631 lib_dirs="$lib_dirs $i/lib$abilibdirext" 10632done 10633 10634case "$with_openldap_include" in 10635yes) ;; 10636no) ;; 10637*) header_dirs="$with_openldap_include $header_dirs";; 10638esac 10639case "$with_openldap_lib" in 10640yes) ;; 10641no) ;; 10642*) lib_dirs="$with_openldap_lib $lib_dirs";; 10643esac 10644 10645save_CFLAGS="$CFLAGS" 10646save_LIBS="$LIBS" 10647ires= lres= 10648for i in $header_dirs; do 10649 CFLAGS="-I$i $save_CFLAGS" 10650 cat >conftest.$ac_ext <<_ACEOF 10651#line 10651 "configure" 10652#include "confdefs.h" 10653#include <lber.h> 10654#include <ldap.h> 10655int 10656main () 10657{ 10658 10659 ; 10660 return 0; 10661} 10662_ACEOF 10663rm -f conftest.$ac_objext 10664if { (eval echo $as_me:10664: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10665 ires=$i;break 10666else 10667 echo "$as_me: failed program was:" >&5 10668 cat conftest.$ac_ext >&5 10669fi 10670rm -f conftest.$ac_objext conftest.$ac_ext 10671done 10672for i in $lib_dirs; do 10673 LIBS="-L$i -lldap -llber $save_LIBS" 10674 cat >conftest.$ac_ext <<_ACEOF 10675#line 10675 "configure" 10676#include "confdefs.h" 10677#include <lber.h> 10678#include <ldap.h> 10679int 10680main () 10681{ 10682 10683 ; 10684 return 0; 10685} 10686_ACEOF 10687rm -f conftest.$ac_objext conftest$ac_exeext 10688if { (eval echo $as_me:10688: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 10689 lres=$i;break 10690else 10691 echo "$as_me: failed program was:" >&5 10692 cat conftest.$ac_ext >&5 10693fi 10694rm -f conftest$ac_exeext conftest.$ac_ext 10695done 10696CFLAGS="$save_CFLAGS" 10697LIBS="$save_LIBS" 10698 10699if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 10700 openldap_includedir="$ires" 10701 openldap_libdir="$lres" 10702 INCLUDE_openldap="-I$openldap_includedir" 10703 LIB_openldap="-L$openldap_libdir -lldap -llber" 10704 10705cat >>confdefs.h <<EOF 10706#define OPENLDAP 1 10707EOF 10708 10709 with_openldap=yes 10710 echo "$as_me:10710: result: headers $ires, libraries $lres" >&5 10711echo "${ECHO_T}headers $ires, libraries $lres" >&6 10712else 10713 INCLUDE_openldap= 10714 LIB_openldap= 10715 with_openldap=no 10716 echo "$as_me:10716: result: $with_openldap" >&5 10717echo "${ECHO_T}$with_openldap" >&6 10718fi 10719 10720if test "$openldap_libdir"; then 10721 LIB_openldap="-R $openldap_libdir $LIB_openldap" 10722fi 10723 10724# Check whether --with-krb4 or --without-krb4 was given. 10725if test "${with_krb4+set}" = set; then 10726 withval="$with_krb4" 10727 10728fi; 10729 10730# Check whether --with-krb4-lib or --without-krb4-lib was given. 10731if test "${with_krb4_lib+set}" = set; then 10732 withval="$with_krb4_lib" 10733 if test "$withval" = "yes" -o "$withval" = "no"; then 10734 { echo "$as_me: error: No argument for --with-krb4-lib" >&2 10735 { (exit 1); exit; }; } 10736elif test "X$with_krb4" = "X"; then 10737 with_krb4=yes 10738fi 10739fi; 10740 10741# Check whether --with-krb4-include or --without-krb4-include was given. 10742if test "${with_krb4_include+set}" = set; then 10743 withval="$with_krb4_include" 10744 if test "$withval" = "yes" -o "$withval" = "no"; then 10745 { echo "$as_me: error: No argument for --with-krb4-include" >&2 10746 { (exit 1); exit; }; } 10747elif test "X$with_krb4" = "X"; then 10748 with_krb4=yes 10749fi 10750fi; 10751 10752echo "$as_me:10752: checking for krb4" >&5 10753echo $ECHO_N "checking for krb4... $ECHO_C" >&6 10754 10755case "$with_krb4" in 10756yes) ;; 10757no) ;; 10758"") ;; 10759*) if test "$with_krb4_include" = ""; then 10760 with_krb4_include="$with_krb4/include" 10761 fi 10762 if test "$with_krb4_lib" = ""; then 10763 with_krb4_lib="$with_krb4/lib$abilibdirext" 10764 fi 10765 ;; 10766esac 10767header_dirs= 10768lib_dirs= 10769d='/usr/athena' 10770for i in $d; do 10771 header_dirs="$header_dirs $i/include" 10772 lib_dirs="$lib_dirs $i/lib$abilibdirext" 10773done 10774 10775case "$with_krb4_include" in 10776yes) ;; 10777no) ;; 10778*) header_dirs="$with_krb4_include $header_dirs";; 10779esac 10780case "$with_krb4_lib" in 10781yes) ;; 10782no) ;; 10783*) lib_dirs="$with_krb4_lib $lib_dirs";; 10784esac 10785 10786save_CFLAGS="$CFLAGS" 10787save_LIBS="$LIBS" 10788ires= lres= 10789for i in $header_dirs; do 10790 CFLAGS="-I$i $save_CFLAGS" 10791 cat >conftest.$ac_ext <<_ACEOF 10792#line 10792 "configure" 10793#include "confdefs.h" 10794#include <krb.h> 10795int 10796main () 10797{ 10798 10799 ; 10800 return 0; 10801} 10802_ACEOF 10803rm -f conftest.$ac_objext 10804if { (eval echo $as_me:10804: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10805 ires=$i;break 10806else 10807 echo "$as_me: failed program was:" >&5 10808 cat conftest.$ac_ext >&5 10809fi 10810rm -f conftest.$ac_objext conftest.$ac_ext 10811done 10812for i in $lib_dirs; do 10813 LIBS="-L$i -lkrb -ldes $save_LIBS" 10814 cat >conftest.$ac_ext <<_ACEOF 10815#line 10815 "configure" 10816#include "confdefs.h" 10817#include <krb.h> 10818int 10819main () 10820{ 10821 10822 ; 10823 return 0; 10824} 10825_ACEOF 10826rm -f conftest.$ac_objext conftest$ac_exeext 10827if { (eval echo $as_me:10827: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 10828 lres=$i;break 10829else 10830 echo "$as_me: failed program was:" >&5 10831 cat conftest.$ac_ext >&5 10832fi 10833rm -f conftest$ac_exeext conftest.$ac_ext 10834done 10835CFLAGS="$save_CFLAGS" 10836LIBS="$save_LIBS" 10837 10838if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then 10839 krb4_includedir="$ires" 10840 krb4_libdir="$lres" 10841 INCLUDE_krb4="-I$krb4_includedir" 10842 LIB_krb4="-L$krb4_libdir -lkrb" 10843 10844cat >>confdefs.h <<EOF 10845#define KRB4 1 10846EOF 10847 10848 with_krb4=yes 10849 echo "$as_me:10849: result: headers $ires, libraries $lres" >&5 10850echo "${ECHO_T}headers $ires, libraries $lres" >&6 10851else 10852 INCLUDE_krb4= 10853 LIB_krb4= 10854 with_krb4=no 10855 echo "$as_me:10855: result: $with_krb4" >&5 10856echo "${ECHO_T}$with_krb4" >&6 10857fi 10858 10859LIB_kdb= 10860if test "$with_krb4" != "no"; then 10861 save_CFLAGS="$CFLAGS" 10862 CFLAGS="$CFLAGS $INCLUDE_krb4" 10863 save_LIBS="$LIBS" 10864 LIBS="$LIB_krb4 -ldes $LIBS" 10865 EXTRA_LIB45=lib45.a 10866 10867 echo "$as_me:10867: checking for four valued krb_put_int" >&5 10868echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6 10869if test "${ac_cv_func_krb_put_int_four+set}" = set; then 10870 echo $ECHO_N "(cached) $ECHO_C" >&6 10871else 10872 cat >conftest.$ac_ext <<_ACEOF 10873#line 10873 "configure" 10874#include "confdefs.h" 10875#include <krb.h> 10876int 10877main () 10878{ 10879 10880 char tmp[4]; 10881 krb_put_int(17, tmp, 4, sizeof(tmp)); 10882 ; 10883 return 0; 10884} 10885_ACEOF 10886rm -f conftest.$ac_objext 10887if { (eval echo $as_me:10887: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10888 ac_cv_func_krb_put_int_four=yes 10889else 10890 echo "$as_me: failed program was:" >&5 10891 cat conftest.$ac_ext >&5 10892 ac_cv_func_krb_put_int_four=no 10893fi 10894rm -f conftest.$ac_objext conftest.$ac_ext 10895 10896fi 10897echo "$as_me:10897: result: $ac_cv_func_krb_put_int_four" >&5 10898echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6 10899 if test "$ac_cv_func_krb_put_int_four" = yes; then 10900 10901cat >>confdefs.h <<\EOF 10902#define HAVE_FOUR_VALUED_KRB_PUT_INT 1 10903EOF 10904 10905 fi 10906 10907 echo "$as_me:10907: checking for KRB_VERIFY_SECURE" >&5 10908echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6 10909if test "${ac_cv_func_krb_verify_secure+set}" = set; then 10910 echo $ECHO_N "(cached) $ECHO_C" >&6 10911else 10912 cat >conftest.$ac_ext <<_ACEOF 10913#line 10913 "configure" 10914#include "confdefs.h" 10915#include <krb.h> 10916int 10917main () 10918{ 10919 10920 int x = KRB_VERIFY_SECURE 10921 ; 10922 return 0; 10923} 10924_ACEOF 10925rm -f conftest.$ac_objext 10926if { (eval echo $as_me:10926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10927 ac_cv_func_krb_verify_secure=yes 10928else 10929 echo "$as_me: failed program was:" >&5 10930 cat conftest.$ac_ext >&5 10931 ac_cv_func_krb_verify_secure=no 10932fi 10933rm -f conftest.$ac_objext conftest.$ac_ext 10934 10935fi 10936echo "$as_me:10936: result: $ac_cv_func_krb_verify_secure" >&5 10937echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6 10938 if test "$ac_cv_func_krb_verify_secure" != yes; then 10939 10940cat >>confdefs.h <<\EOF 10941#define KRB_VERIFY_SECURE 1 10942EOF 10943 10944cat >>confdefs.h <<\EOF 10945#define KRB_VERIFY_SECURE_FAIL 2 10946EOF 10947 10948 fi 10949 echo "$as_me:10949: checking for KRB_VERIFY_NOT_SECURE" >&5 10950echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6 10951if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then 10952 echo $ECHO_N "(cached) $ECHO_C" >&6 10953else 10954 cat >conftest.$ac_ext <<_ACEOF 10955#line 10955 "configure" 10956#include "confdefs.h" 10957#include <krb.h> 10958int 10959main () 10960{ 10961 10962 int x = KRB_VERIFY_NOT_SECURE 10963 ; 10964 return 0; 10965} 10966_ACEOF 10967rm -f conftest.$ac_objext 10968if { (eval echo $as_me:10968: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 10969 ac_cv_func_krb_verify_not_secure=yes 10970else 10971 echo "$as_me: failed program was:" >&5 10972 cat conftest.$ac_ext >&5 10973 ac_cv_func_krb_verify_not_secure=no 10974fi 10975rm -f conftest.$ac_objext conftest.$ac_ext 10976 10977fi 10978echo "$as_me:10978: result: $ac_cv_func_krb_verify_not_secure" >&5 10979echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6 10980 if test "$ac_cv_func_krb_verify_not_secure" != yes; then 10981 10982cat >>confdefs.h <<\EOF 10983#define KRB_VERIFY_NOT_SECURE 0 10984EOF 10985 10986 fi 10987 10988echo "$as_me:10988: checking for krb_enable_debug" >&5 10989echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6 10990if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then 10991 echo $ECHO_N "(cached) $ECHO_C" >&6 10992else 10993 10994if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then 10995 ac_save_LIBS="$LIBS" 10996 for ac_lib in "" ; do 10997 if test -n "$ac_lib"; then 10998 ac_lib="-l$ac_lib" 10999 else 11000 ac_lib="" 11001 fi 11002 LIBS=" $ac_lib $ac_save_LIBS" 11003 cat >conftest.$ac_ext <<_ACEOF 11004#line 11004 "configure" 11005#include "confdefs.h" 11006 11007int 11008main () 11009{ 11010krb_enable_debug() 11011 ; 11012 return 0; 11013} 11014_ACEOF 11015rm -f conftest.$ac_objext conftest$ac_exeext 11016if { (eval echo $as_me:11016: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 11017 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 11018else 11019 echo "$as_me: failed program was:" >&5 11020 cat conftest.$ac_ext >&5 11021fi 11022rm -f conftest$ac_exeext conftest.$ac_ext 11023 done 11024 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}" 11025 LIBS="$ac_save_LIBS" 11026fi 11027 11028fi 11029 11030eval "ac_res=\$ac_cv_funclib_krb_enable_debug" 11031 11032if false; then 11033 11034for ac_func in krb_enable_debug 11035do 11036ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 11037echo "$as_me:11037: checking for $ac_func" >&5 11038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11039if eval "test \"\${$ac_ac_var+set}\" = set"; then 11040 echo $ECHO_N "(cached) $ECHO_C" >&6 11041else 11042 cat >conftest.$ac_ext <<_ACEOF 11043#line 11043 "configure" 11044#include "confdefs.h" 11045/* System header to define __stub macros and hopefully few prototypes, 11046 which can conflict with char $ac_func (); below. */ 11047#include <assert.h> 11048/* Override any gcc2 internal prototype to avoid an error. */ 11049#ifdef __cplusplus 11050extern "C" 11051#endif 11052/* We use char because int might match the return type of a gcc2 11053 builtin and then its argument prototype would still apply. */ 11054char $ac_func (); 11055char (*f) (); 11056 11057int 11058main () 11059{ 11060/* The GNU C library defines this for functions which it implements 11061 to always fail with ENOSYS. Some functions are actually named 11062 something starting with __ and the normal name is an alias. */ 11063#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11064choke me 11065#else 11066f = $ac_func; 11067#endif 11068 11069 ; 11070 return 0; 11071} 11072_ACEOF 11073rm -f conftest.$ac_objext conftest$ac_exeext 11074if { (eval echo $as_me:11074: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 11075 eval "$ac_ac_var=yes" 11076else 11077 echo "$as_me: failed program was:" >&5 11078 cat conftest.$ac_ext >&5 11079 eval "$ac_ac_var=no" 11080fi 11081rm -f conftest$ac_exeext conftest.$ac_ext 11082fi 11083echo "$as_me:11083: result: `eval echo '${'$ac_ac_var'}'`" >&5 11084echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 11085if test `eval echo '${'$ac_ac_var'}'` = yes; then 11086 cat >>confdefs.h <<EOF 11087#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 11088EOF 11089 11090fi 11091done 11092 11093fi 11094# krb_enable_debug 11095eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11096eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11097eval "LIB_krb_enable_debug=$ac_res" 11098 11099case "$ac_res" in 11100 yes) 11101 eval "ac_cv_func_krb_enable_debug=yes" 11102 eval "LIB_krb_enable_debug=" 11103 cat >>confdefs.h <<EOF 11104#define $ac_tr_func 1 11105EOF 11106 11107 echo "$as_me:11107: result: yes" >&5 11108echo "${ECHO_T}yes" >&6 11109 ;; 11110 no) 11111 eval "ac_cv_func_krb_enable_debug=no" 11112 eval "LIB_krb_enable_debug=" 11113 echo "$as_me:11113: result: no" >&5 11114echo "${ECHO_T}no" >&6 11115 ;; 11116 *) 11117 eval "ac_cv_func_krb_enable_debug=yes" 11118 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11119 cat >>confdefs.h <<EOF 11120#define $ac_tr_func 1 11121EOF 11122 11123 cat >>confdefs.h <<EOF 11124#define $ac_tr_lib 1 11125EOF 11126 11127 echo "$as_me:11127: result: yes, in $ac_res" >&5 11128echo "${ECHO_T}yes, in $ac_res" >&6 11129 ;; 11130esac 11131 11132if test -n "$LIB_krb_enable_debug"; then 11133 LIBS="$LIB_krb_enable_debug $LIBS" 11134fi 11135 11136echo "$as_me:11136: checking for krb_disable_debug" >&5 11137echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6 11138if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then 11139 echo $ECHO_N "(cached) $ECHO_C" >&6 11140else 11141 11142if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then 11143 ac_save_LIBS="$LIBS" 11144 for ac_lib in "" ; do 11145 if test -n "$ac_lib"; then 11146 ac_lib="-l$ac_lib" 11147 else 11148 ac_lib="" 11149 fi 11150 LIBS=" $ac_lib $ac_save_LIBS" 11151 cat >conftest.$ac_ext <<_ACEOF 11152#line 11152 "configure" 11153#include "confdefs.h" 11154 11155int 11156main () 11157{ 11158krb_disable_debug() 11159 ; 11160 return 0; 11161} 11162_ACEOF 11163rm -f conftest.$ac_objext conftest$ac_exeext 11164if { (eval echo $as_me:11164: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 11165 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 11166else 11167 echo "$as_me: failed program was:" >&5 11168 cat conftest.$ac_ext >&5 11169fi 11170rm -f conftest$ac_exeext conftest.$ac_ext 11171 done 11172 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}" 11173 LIBS="$ac_save_LIBS" 11174fi 11175 11176fi 11177 11178eval "ac_res=\$ac_cv_funclib_krb_disable_debug" 11179 11180if false; then 11181 11182for ac_func in krb_disable_debug 11183do 11184ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 11185echo "$as_me:11185: checking for $ac_func" >&5 11186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11187if eval "test \"\${$ac_ac_var+set}\" = set"; then 11188 echo $ECHO_N "(cached) $ECHO_C" >&6 11189else 11190 cat >conftest.$ac_ext <<_ACEOF 11191#line 11191 "configure" 11192#include "confdefs.h" 11193/* System header to define __stub macros and hopefully few prototypes, 11194 which can conflict with char $ac_func (); below. */ 11195#include <assert.h> 11196/* Override any gcc2 internal prototype to avoid an error. */ 11197#ifdef __cplusplus 11198extern "C" 11199#endif 11200/* We use char because int might match the return type of a gcc2 11201 builtin and then its argument prototype would still apply. */ 11202char $ac_func (); 11203char (*f) (); 11204 11205int 11206main () 11207{ 11208/* The GNU C library defines this for functions which it implements 11209 to always fail with ENOSYS. Some functions are actually named 11210 something starting with __ and the normal name is an alias. */ 11211#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11212choke me 11213#else 11214f = $ac_func; 11215#endif 11216 11217 ; 11218 return 0; 11219} 11220_ACEOF 11221rm -f conftest.$ac_objext conftest$ac_exeext 11222if { (eval echo $as_me:11222: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 11223 eval "$ac_ac_var=yes" 11224else 11225 echo "$as_me: failed program was:" >&5 11226 cat conftest.$ac_ext >&5 11227 eval "$ac_ac_var=no" 11228fi 11229rm -f conftest$ac_exeext conftest.$ac_ext 11230fi 11231echo "$as_me:11231: result: `eval echo '${'$ac_ac_var'}'`" >&5 11232echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 11233if test `eval echo '${'$ac_ac_var'}'` = yes; then 11234 cat >>confdefs.h <<EOF 11235#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 11236EOF 11237 11238fi 11239done 11240 11241fi 11242# krb_disable_debug 11243eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11244eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11245eval "LIB_krb_disable_debug=$ac_res" 11246 11247case "$ac_res" in 11248 yes) 11249 eval "ac_cv_func_krb_disable_debug=yes" 11250 eval "LIB_krb_disable_debug=" 11251 cat >>confdefs.h <<EOF 11252#define $ac_tr_func 1 11253EOF 11254 11255 echo "$as_me:11255: result: yes" >&5 11256echo "${ECHO_T}yes" >&6 11257 ;; 11258 no) 11259 eval "ac_cv_func_krb_disable_debug=no" 11260 eval "LIB_krb_disable_debug=" 11261 echo "$as_me:11261: result: no" >&5 11262echo "${ECHO_T}no" >&6 11263 ;; 11264 *) 11265 eval "ac_cv_func_krb_disable_debug=yes" 11266 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11267 cat >>confdefs.h <<EOF 11268#define $ac_tr_func 1 11269EOF 11270 11271 cat >>confdefs.h <<EOF 11272#define $ac_tr_lib 1 11273EOF 11274 11275 echo "$as_me:11275: result: yes, in $ac_res" >&5 11276echo "${ECHO_T}yes, in $ac_res" >&6 11277 ;; 11278esac 11279 11280if test -n "$LIB_krb_disable_debug"; then 11281 LIBS="$LIB_krb_disable_debug $LIBS" 11282fi 11283 11284echo "$as_me:11284: checking for krb_get_our_ip_for_realm" >&5 11285echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6 11286if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then 11287 echo $ECHO_N "(cached) $ECHO_C" >&6 11288else 11289 11290if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then 11291 ac_save_LIBS="$LIBS" 11292 for ac_lib in "" ; do 11293 if test -n "$ac_lib"; then 11294 ac_lib="-l$ac_lib" 11295 else 11296 ac_lib="" 11297 fi 11298 LIBS=" $ac_lib $ac_save_LIBS" 11299 cat >conftest.$ac_ext <<_ACEOF 11300#line 11300 "configure" 11301#include "confdefs.h" 11302 11303int 11304main () 11305{ 11306krb_get_our_ip_for_realm() 11307 ; 11308 return 0; 11309} 11310_ACEOF 11311rm -f conftest.$ac_objext conftest$ac_exeext 11312if { (eval echo $as_me:11312: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 11313 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 11314else 11315 echo "$as_me: failed program was:" >&5 11316 cat conftest.$ac_ext >&5 11317fi 11318rm -f conftest$ac_exeext conftest.$ac_ext 11319 done 11320 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}" 11321 LIBS="$ac_save_LIBS" 11322fi 11323 11324fi 11325 11326eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm" 11327 11328if false; then 11329 11330for ac_func in krb_get_our_ip_for_realm 11331do 11332ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 11333echo "$as_me:11333: checking for $ac_func" >&5 11334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11335if eval "test \"\${$ac_ac_var+set}\" = set"; then 11336 echo $ECHO_N "(cached) $ECHO_C" >&6 11337else 11338 cat >conftest.$ac_ext <<_ACEOF 11339#line 11339 "configure" 11340#include "confdefs.h" 11341/* System header to define __stub macros and hopefully few prototypes, 11342 which can conflict with char $ac_func (); below. */ 11343#include <assert.h> 11344/* Override any gcc2 internal prototype to avoid an error. */ 11345#ifdef __cplusplus 11346extern "C" 11347#endif 11348/* We use char because int might match the return type of a gcc2 11349 builtin and then its argument prototype would still apply. */ 11350char $ac_func (); 11351char (*f) (); 11352 11353int 11354main () 11355{ 11356/* The GNU C library defines this for functions which it implements 11357 to always fail with ENOSYS. Some functions are actually named 11358 something starting with __ and the normal name is an alias. */ 11359#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11360choke me 11361#else 11362f = $ac_func; 11363#endif 11364 11365 ; 11366 return 0; 11367} 11368_ACEOF 11369rm -f conftest.$ac_objext conftest$ac_exeext 11370if { (eval echo $as_me:11370: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 11371 eval "$ac_ac_var=yes" 11372else 11373 echo "$as_me: failed program was:" >&5 11374 cat conftest.$ac_ext >&5 11375 eval "$ac_ac_var=no" 11376fi 11377rm -f conftest$ac_exeext conftest.$ac_ext 11378fi 11379echo "$as_me:11379: result: `eval echo '${'$ac_ac_var'}'`" >&5 11380echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 11381if test `eval echo '${'$ac_ac_var'}'` = yes; then 11382 cat >>confdefs.h <<EOF 11383#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 11384EOF 11385 11386fi 11387done 11388 11389fi 11390# krb_get_our_ip_for_realm 11391eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11392eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11393eval "LIB_krb_get_our_ip_for_realm=$ac_res" 11394 11395case "$ac_res" in 11396 yes) 11397 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 11398 eval "LIB_krb_get_our_ip_for_realm=" 11399 cat >>confdefs.h <<EOF 11400#define $ac_tr_func 1 11401EOF 11402 11403 echo "$as_me:11403: result: yes" >&5 11404echo "${ECHO_T}yes" >&6 11405 ;; 11406 no) 11407 eval "ac_cv_func_krb_get_our_ip_for_realm=no" 11408 eval "LIB_krb_get_our_ip_for_realm=" 11409 echo "$as_me:11409: result: no" >&5 11410echo "${ECHO_T}no" >&6 11411 ;; 11412 *) 11413 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 11414 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11415 cat >>confdefs.h <<EOF 11416#define $ac_tr_func 1 11417EOF 11418 11419 cat >>confdefs.h <<EOF 11420#define $ac_tr_lib 1 11421EOF 11422 11423 echo "$as_me:11423: result: yes, in $ac_res" >&5 11424echo "${ECHO_T}yes, in $ac_res" >&6 11425 ;; 11426esac 11427 11428if test -n "$LIB_krb_get_our_ip_for_realm"; then 11429 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS" 11430fi 11431 11432 echo "$as_me:11432: checking for krb_mk_req with const arguments" >&5 11433echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6 11434if test "${ac_cv_func_krb_mk_req_const+set}" = set; then 11435 echo $ECHO_N "(cached) $ECHO_C" >&6 11436else 11437 cat >conftest.$ac_ext <<_ACEOF 11438#line 11438 "configure" 11439#include "confdefs.h" 11440#include <krb.h> 11441 int krb_mk_req(KTEXT a, const char *s, const char *i, 11442 const char *r, int32_t checksum) 11443 { return 17; } 11444int 11445main () 11446{ 11447 11448 ; 11449 return 0; 11450} 11451_ACEOF 11452rm -f conftest.$ac_objext 11453if { (eval echo $as_me:11453: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 11454 ac_cv_func_krb_mk_req_const=yes 11455else 11456 echo "$as_me: failed program was:" >&5 11457 cat conftest.$ac_ext >&5 11458 ac_cv_func_krb_mk_req_const=no 11459fi 11460rm -f conftest.$ac_objext conftest.$ac_ext 11461 11462fi 11463echo "$as_me:11463: result: $ac_cv_func_krb_mk_req_const" >&5 11464echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6 11465 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then 11466 11467cat >>confdefs.h <<\EOF 11468#define KRB_MK_REQ_CONST 1 11469EOF 11470 11471 fi 11472 11473 LIBS="$save_LIBS" 11474 CFLAGS="$save_CFLAGS" 11475 LIB_kdb="-lkdb -lkrb" 11476 test_LIB_krb4="$LIB_krb4" 11477 if test "$krb4_libdir"; then 11478 LIB_krb4="-R $krb4_libdir $LIB_krb4" 11479 LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb" 11480 fi 11481fi 11482 11483if test "$with_krb4" != "no"; then 11484 KRB4_TRUE= 11485 KRB4_FALSE='#' 11486else 11487 KRB4_TRUE='#' 11488 KRB4_FALSE= 11489fi 11490 11491if true; then 11492 KRB5_TRUE= 11493 KRB5_FALSE='#' 11494else 11495 KRB5_TRUE='#' 11496 KRB5_FALSE= 11497fi 11498 11499if true; then 11500 do_roken_rename_TRUE= 11501 do_roken_rename_FALSE='#' 11502else 11503 do_roken_rename_TRUE='#' 11504 do_roken_rename_FALSE= 11505fi 11506 11507cat >>confdefs.h <<\EOF 11508#define KRB5 1 11509EOF 11510 11511# Check whether --enable-dce or --disable-dce was given. 11512if test "${enable_dce+set}" = set; then 11513 enableval="$enable_dce" 11514 11515fi; 11516if test "$enable_dce" = yes; then 11517 11518cat >>confdefs.h <<\EOF 11519#define DCE 1 11520EOF 11521 11522fi 11523 11524if test "$enable_dce" = yes; then 11525 DCE_TRUE= 11526 DCE_FALSE='#' 11527else 11528 DCE_TRUE='#' 11529 DCE_FALSE= 11530fi 11531 11532## XXX quite horrible: 11533if test -f /etc/ibmcxx.cfg; then 11534 dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 11535 dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 11536else 11537 dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 11538 dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 11539 dpagaix_LDFLAGS="-Wl,-bI:dfspag.exp" 11540fi 11541 11542# Check whether --enable-kaserver or --disable-kaserver was given. 11543if test "${enable_kaserver+set}" = set; then 11544 enableval="$enable_kaserver" 11545 11546fi; 11547if test "$enable_kaserver" = yes; then 11548 11549cat >>confdefs.h <<\EOF 11550#define KASERVER 1 11551EOF 11552 11553 if test "$with_krb4" = "no"; then 11554 { echo "$as_me: error: kaserver requires krb4" >&2 11555 { (exit 1); exit; }; } 11556 exit 1 11557 fi 11558fi 11559 11560# Check whether --enable-kaserver-db or --disable-kaserver-db was given. 11561if test "${enable_kaserver_db+set}" = set; then 11562 enableval="$enable_kaserver_db" 11563 11564fi; 11565if test "$enable_kaserver_db" = yes; then 11566 11567cat >>confdefs.h <<\EOF 11568#define KASERVER_DB 1 11569EOF 11570 11571 if test "$with_krb4" = "no"; then 11572 { echo "$as_me: error: kaserver-db requires krb4" >&2 11573 { (exit 1); exit; }; } 11574 exit 1 11575 fi 11576fi 11577 11578otp=yes 11579# Check whether --enable-otp or --disable-otp was given. 11580if test "${enable_otp+set}" = set; then 11581 enableval="$enable_otp" 11582 11583if test "$enableval" = "no"; then 11584 otp=no 11585fi 11586 11587fi; 11588if test "$otp" = "yes"; then 11589 11590cat >>confdefs.h <<\EOF 11591#define OTP 1 11592EOF 11593 11594 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 11595fi 11596 11597if test "$otp" = yes; then 11598 OTP_TRUE= 11599 OTP_FALSE='#' 11600else 11601 OTP_TRUE='#' 11602 OTP_FALSE= 11603fi 11604 11605# Check whether --enable-osfc2 or --disable-osfc2 was given. 11606if test "${enable_osfc2+set}" = set; then 11607 enableval="$enable_osfc2" 11608 11609fi; 11610LIB_security= 11611if test "$enable_osfc2" = yes; then 11612 11613cat >>confdefs.h <<\EOF 11614#define HAVE_OSFC2 1 11615EOF 11616 11617 LIB_security=-lsecurity 11618fi 11619 11620# Extract the first word of "nroff", so it can be a program name with args. 11621set dummy nroff; ac_word=$2 11622echo "$as_me:11622: checking for $ac_word" >&5 11623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11624if test "${ac_cv_path_NROFF+set}" = set; then 11625 echo $ECHO_N "(cached) $ECHO_C" >&6 11626else 11627 case $NROFF in 11628 [\\/]* | ?:[\\/]*) 11629 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 11630 ;; 11631 *) 11632 ac_save_IFS=$IFS; IFS=':' 11633ac_dummy="$PATH" 11634for ac_dir in $ac_dummy; do 11635 IFS=$ac_save_IFS 11636 test -z "$ac_dir" && ac_dir=. 11637 if test -f "$ac_dir/$ac_word"; then 11638 ac_cv_path_NROFF="$ac_dir/$ac_word" 11639 break 11640fi 11641done 11642 11643 ;; 11644esac 11645fi 11646NROFF=$ac_cv_path_NROFF 11647 11648if test -n "$NROFF"; then 11649 echo "$as_me:11649: result: $NROFF" >&5 11650echo "${ECHO_T}$NROFF" >&6 11651else 11652 echo "$as_me:11652: result: no" >&5 11653echo "${ECHO_T}no" >&6 11654fi 11655 11656# Extract the first word of "groff", so it can be a program name with args. 11657set dummy groff; ac_word=$2 11658echo "$as_me:11658: checking for $ac_word" >&5 11659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 11660if test "${ac_cv_path_GROFF+set}" = set; then 11661 echo $ECHO_N "(cached) $ECHO_C" >&6 11662else 11663 case $GROFF in 11664 [\\/]* | ?:[\\/]*) 11665 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 11666 ;; 11667 *) 11668 ac_save_IFS=$IFS; IFS=':' 11669ac_dummy="$PATH" 11670for ac_dir in $ac_dummy; do 11671 IFS=$ac_save_IFS 11672 test -z "$ac_dir" && ac_dir=. 11673 if test -f "$ac_dir/$ac_word"; then 11674 ac_cv_path_GROFF="$ac_dir/$ac_word" 11675 break 11676fi 11677done 11678 11679 ;; 11680esac 11681fi 11682GROFF=$ac_cv_path_GROFF 11683 11684if test -n "$GROFF"; then 11685 echo "$as_me:11685: result: $GROFF" >&5 11686echo "${ECHO_T}$GROFF" >&6 11687else 11688 echo "$as_me:11688: result: no" >&5 11689echo "${ECHO_T}no" >&6 11690fi 11691 11692echo "$as_me:11692: checking how to format man pages" >&5 11693echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6 11694if test "${ac_cv_sys_man_format+set}" = set; then 11695 echo $ECHO_N "(cached) $ECHO_C" >&6 11696else 11697 cat > conftest.1 << END 11698.Dd January 1, 1970 11699.Dt CONFTEST 1 11700.Sh NAME 11701.Nm conftest 11702.Nd 11703foobar 11704END 11705 11706if test "$NROFF" ; then 11707 for i in "-mdoc" "-mandoc"; do 11708 if "$NROFF" $i conftest.1 2> /dev/null | \ 11709 grep Jan > /dev/null 2>&1 ; then 11710 ac_cv_sys_man_format="$NROFF $i" 11711 break 11712 fi 11713 done 11714fi 11715if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 11716 for i in "-mdoc" "-mandoc"; do 11717 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 11718 grep Jan > /dev/null 2>&1 ; then 11719 ac_cv_sys_man_format="$GROFF -Tascii $i" 11720 break 11721 fi 11722 done 11723fi 11724if test "$ac_cv_sys_man_format"; then 11725 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 11726fi 11727 11728fi 11729echo "$as_me:11729: result: $ac_cv_sys_man_format" >&5 11730echo "${ECHO_T}$ac_cv_sys_man_format" >&6 11731if test "$ac_cv_sys_man_format"; then 11732 CATMAN="$ac_cv_sys_man_format" 11733 11734fi 11735 11736if test "$CATMAN"; then 11737 CATMAN_TRUE= 11738 CATMAN_FALSE='#' 11739else 11740 CATMAN_TRUE='#' 11741 CATMAN_FALSE= 11742fi 11743echo "$as_me:11743: checking extension of pre-formatted manual pages" >&5 11744echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6 11745if test "${ac_cv_sys_catman_ext+set}" = set; then 11746 echo $ECHO_N "(cached) $ECHO_C" >&6 11747else 11748 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 11749 ac_cv_sys_catman_ext=0 11750else 11751 ac_cv_sys_catman_ext=number 11752fi 11753 11754fi 11755echo "$as_me:11755: result: $ac_cv_sys_catman_ext" >&5 11756echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6 11757if test "$ac_cv_sys_catman_ext" = number; then 11758 CATMANEXT='$$section' 11759else 11760 CATMANEXT=0 11761fi 11762 11763# Check whether --with-readline or --without-readline was given. 11764if test "${with_readline+set}" = set; then 11765 withval="$with_readline" 11766 11767fi; 11768 11769# Check whether --with-readline-lib or --without-readline-lib was given. 11770if test "${with_readline_lib+set}" = set; then 11771 withval="$with_readline_lib" 11772 if test "$withval" = "yes" -o "$withval" = "no"; then 11773 { echo "$as_me: error: No argument for --with-readline-lib" >&2 11774 { (exit 1); exit; }; } 11775elif test "X$with_readline" = "X"; then 11776 with_readline=yes 11777fi 11778fi; 11779 11780# Check whether --with-readline-include or --without-readline-include was given. 11781if test "${with_readline_include+set}" = set; then 11782 withval="$with_readline_include" 11783 if test "$withval" = "yes" -o "$withval" = "no"; then 11784 { echo "$as_me: error: No argument for --with-readline-include" >&2 11785 { (exit 1); exit; }; } 11786elif test "X$with_readline" = "X"; then 11787 with_readline=yes 11788fi 11789fi; 11790 11791echo "$as_me:11791: checking for readline" >&5 11792echo $ECHO_N "checking for readline... $ECHO_C" >&6 11793 11794case "$with_readline" in 11795yes) ;; 11796no) ;; 11797"") ;; 11798*) if test "$with_readline_include" = ""; then 11799 with_readline_include="$with_readline/include" 11800 fi 11801 if test "$with_readline_lib" = ""; then 11802 with_readline_lib="$with_readline/lib$abilibdirext" 11803 fi 11804 ;; 11805esac 11806header_dirs= 11807lib_dirs= 11808d='' 11809for i in $d; do 11810 header_dirs="$header_dirs $i/include" 11811 lib_dirs="$lib_dirs $i/lib$abilibdirext" 11812done 11813 11814case "$with_readline_include" in 11815yes) ;; 11816no) ;; 11817*) header_dirs="$with_readline_include $header_dirs";; 11818esac 11819case "$with_readline_lib" in 11820yes) ;; 11821no) ;; 11822*) lib_dirs="$with_readline_lib $lib_dirs";; 11823esac 11824 11825save_CFLAGS="$CFLAGS" 11826save_LIBS="$LIBS" 11827ires= lres= 11828for i in $header_dirs; do 11829 CFLAGS="-I$i $save_CFLAGS" 11830 cat >conftest.$ac_ext <<_ACEOF 11831#line 11831 "configure" 11832#include "confdefs.h" 11833#include <stdio.h> 11834 #include <readline.h> 11835int 11836main () 11837{ 11838 11839 ; 11840 return 0; 11841} 11842_ACEOF 11843rm -f conftest.$ac_objext 11844if { (eval echo $as_me:11844: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 11845 ires=$i;break 11846else 11847 echo "$as_me: failed program was:" >&5 11848 cat conftest.$ac_ext >&5 11849fi 11850rm -f conftest.$ac_objext conftest.$ac_ext 11851done 11852for i in $lib_dirs; do 11853 LIBS="-L$i -lreadline $save_LIBS" 11854 cat >conftest.$ac_ext <<_ACEOF 11855#line 11855 "configure" 11856#include "confdefs.h" 11857#include <stdio.h> 11858 #include <readline.h> 11859int 11860main () 11861{ 11862 11863 ; 11864 return 0; 11865} 11866_ACEOF 11867rm -f conftest.$ac_objext conftest$ac_exeext 11868if { (eval echo $as_me:11868: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 11869 lres=$i;break 11870else 11871 echo "$as_me: failed program was:" >&5 11872 cat conftest.$ac_ext >&5 11873fi 11874rm -f conftest$ac_exeext conftest.$ac_ext 11875done 11876CFLAGS="$save_CFLAGS" 11877LIBS="$save_LIBS" 11878 11879if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 11880 readline_includedir="$ires" 11881 readline_libdir="$lres" 11882 INCLUDE_readline="-I$readline_includedir" 11883 LIB_readline="-L$readline_libdir -lreadline" 11884 11885cat >>confdefs.h <<EOF 11886#define READLINE 1 11887EOF 11888 11889 with_readline=yes 11890 echo "$as_me:11890: result: headers $ires, libraries $lres" >&5 11891echo "${ECHO_T}headers $ires, libraries $lres" >&6 11892else 11893 INCLUDE_readline= 11894 LIB_readline= 11895 with_readline=no 11896 echo "$as_me:11896: result: $with_readline" >&5 11897echo "${ECHO_T}$with_readline" >&6 11898fi 11899 11900# Check whether --with-hesiod or --without-hesiod was given. 11901if test "${with_hesiod+set}" = set; then 11902 withval="$with_hesiod" 11903 11904fi; 11905 11906# Check whether --with-hesiod-lib or --without-hesiod-lib was given. 11907if test "${with_hesiod_lib+set}" = set; then 11908 withval="$with_hesiod_lib" 11909 if test "$withval" = "yes" -o "$withval" = "no"; then 11910 { echo "$as_me: error: No argument for --with-hesiod-lib" >&2 11911 { (exit 1); exit; }; } 11912elif test "X$with_hesiod" = "X"; then 11913 with_hesiod=yes 11914fi 11915fi; 11916 11917# Check whether --with-hesiod-include or --without-hesiod-include was given. 11918if test "${with_hesiod_include+set}" = set; then 11919 withval="$with_hesiod_include" 11920 if test "$withval" = "yes" -o "$withval" = "no"; then 11921 { echo "$as_me: error: No argument for --with-hesiod-include" >&2 11922 { (exit 1); exit; }; } 11923elif test "X$with_hesiod" = "X"; then 11924 with_hesiod=yes 11925fi 11926fi; 11927 11928echo "$as_me:11928: checking for hesiod" >&5 11929echo $ECHO_N "checking for hesiod... $ECHO_C" >&6 11930 11931case "$with_hesiod" in 11932yes) ;; 11933no) ;; 11934"") ;; 11935*) if test "$with_hesiod_include" = ""; then 11936 with_hesiod_include="$with_hesiod/include" 11937 fi 11938 if test "$with_hesiod_lib" = ""; then 11939 with_hesiod_lib="$with_hesiod/lib$abilibdirext" 11940 fi 11941 ;; 11942esac 11943header_dirs= 11944lib_dirs= 11945d='' 11946for i in $d; do 11947 header_dirs="$header_dirs $i/include" 11948 lib_dirs="$lib_dirs $i/lib$abilibdirext" 11949done 11950 11951case "$with_hesiod_include" in 11952yes) ;; 11953no) ;; 11954*) header_dirs="$with_hesiod_include $header_dirs";; 11955esac 11956case "$with_hesiod_lib" in 11957yes) ;; 11958no) ;; 11959*) lib_dirs="$with_hesiod_lib $lib_dirs";; 11960esac 11961 11962save_CFLAGS="$CFLAGS" 11963save_LIBS="$LIBS" 11964ires= lres= 11965for i in $header_dirs; do 11966 CFLAGS="-I$i $save_CFLAGS" 11967 cat >conftest.$ac_ext <<_ACEOF 11968#line 11968 "configure" 11969#include "confdefs.h" 11970#include <hesiod.h> 11971int 11972main () 11973{ 11974 11975 ; 11976 return 0; 11977} 11978_ACEOF 11979rm -f conftest.$ac_objext 11980if { (eval echo $as_me:11980: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 11981 ires=$i;break 11982else 11983 echo "$as_me: failed program was:" >&5 11984 cat conftest.$ac_ext >&5 11985fi 11986rm -f conftest.$ac_objext conftest.$ac_ext 11987done 11988for i in $lib_dirs; do 11989 LIBS="-L$i -lhesiod $save_LIBS" 11990 cat >conftest.$ac_ext <<_ACEOF 11991#line 11991 "configure" 11992#include "confdefs.h" 11993#include <hesiod.h> 11994int 11995main () 11996{ 11997 11998 ; 11999 return 0; 12000} 12001_ACEOF 12002rm -f conftest.$ac_objext conftest$ac_exeext 12003if { (eval echo $as_me:12003: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12004 lres=$i;break 12005else 12006 echo "$as_me: failed program was:" >&5 12007 cat conftest.$ac_ext >&5 12008fi 12009rm -f conftest$ac_exeext conftest.$ac_ext 12010done 12011CFLAGS="$save_CFLAGS" 12012LIBS="$save_LIBS" 12013 12014if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then 12015 hesiod_includedir="$ires" 12016 hesiod_libdir="$lres" 12017 INCLUDE_hesiod="-I$hesiod_includedir" 12018 LIB_hesiod="-L$hesiod_libdir -lhesiod" 12019 12020cat >>confdefs.h <<EOF 12021#define HESIOD 1 12022EOF 12023 12024 with_hesiod=yes 12025 echo "$as_me:12025: result: headers $ires, libraries $lres" >&5 12026echo "${ECHO_T}headers $ires, libraries $lres" >&6 12027else 12028 INCLUDE_hesiod= 12029 LIB_hesiod= 12030 with_hesiod=no 12031 echo "$as_me:12031: result: $with_hesiod" >&5 12032echo "${ECHO_T}$with_hesiod" >&6 12033fi 12034 12035# Check whether --enable-bigendian or --disable-bigendian was given. 12036if test "${enable_bigendian+set}" = set; then 12037 enableval="$enable_bigendian" 12038 krb_cv_c_bigendian=yes 12039fi; 12040# Check whether --enable-littleendian or --disable-littleendian was given. 12041if test "${enable_littleendian+set}" = set; then 12042 enableval="$enable_littleendian" 12043 krb_cv_c_bigendian=no 12044fi; 12045echo "$as_me:12045: checking whether byte order is known at compile time" >&5 12046echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6 12047if test "${krb_cv_c_bigendian_compile+set}" = set; then 12048 echo $ECHO_N "(cached) $ECHO_C" >&6 12049else 12050 cat >conftest.$ac_ext <<_ACEOF 12051#line 12051 "configure" 12052#include "confdefs.h" 12053 12054#include <sys/types.h> 12055#include <sys/param.h> 12056int 12057main () 12058{ 12059 12060#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 12061 bogus endian macros 12062#endif 12063 ; 12064 return 0; 12065} 12066_ACEOF 12067rm -f conftest.$ac_objext 12068if { (eval echo $as_me:12068: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 12069 krb_cv_c_bigendian_compile=yes 12070else 12071 echo "$as_me: failed program was:" >&5 12072 cat conftest.$ac_ext >&5 12073 krb_cv_c_bigendian_compile=no 12074fi 12075rm -f conftest.$ac_objext conftest.$ac_ext 12076fi 12077echo "$as_me:12077: result: $krb_cv_c_bigendian_compile" >&5 12078echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6 12079echo "$as_me:12079: checking whether byte ordering is bigendian" >&5 12080echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 12081if test "${krb_cv_c_bigendian+set}" = set; then 12082 echo $ECHO_N "(cached) $ECHO_C" >&6 12083else 12084 12085 if test "$krb_cv_c_bigendian_compile" = "yes"; then 12086 cat >conftest.$ac_ext <<_ACEOF 12087#line 12087 "configure" 12088#include "confdefs.h" 12089 12090#include <sys/types.h> 12091#include <sys/param.h> 12092int 12093main () 12094{ 12095 12096#if BYTE_ORDER != BIG_ENDIAN 12097 not big endian 12098#endif 12099 ; 12100 return 0; 12101} 12102_ACEOF 12103rm -f conftest.$ac_objext 12104if { (eval echo $as_me:12104: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 12105 krb_cv_c_bigendian=yes 12106else 12107 echo "$as_me: failed program was:" >&5 12108 cat conftest.$ac_ext >&5 12109 krb_cv_c_bigendian=no 12110fi 12111rm -f conftest.$ac_objext conftest.$ac_ext 12112 else 12113 if test "$cross_compiling" = yes; then 12114 { echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2 12115 { (exit 1); exit; }; } 12116else 12117 cat >conftest.$ac_ext <<_ACEOF 12118#line 12118 "configure" 12119#include "confdefs.h" 12120main () { 12121 /* Are we little or big endian? From Harbison&Steele. */ 12122 union 12123 { 12124 long l; 12125 char c[sizeof (long)]; 12126 } u; 12127 u.l = 1; 12128 exit (u.c[sizeof (long) - 1] == 1); 12129 } 12130_ACEOF 12131rm -f conftest$ac_exeext 12132{ (eval echo $as_me:12132: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 12133 (./conftest$ac_exeext) >&5 2>&1; 12134ac_status=$? 12135if test $ac_status = 0; then 12136 krb_cv_c_bigendian=no 12137else 12138 echo "$as_me: program exited with status $ac_status" >&5 12139echo "$as_me: failed program was:" >&5 12140cat conftest.$ac_ext >&5 12141krb_cv_c_bigendian=yes 12142fi 12143 12144rm -f conftest$ac_exeext conftest.$ac_ext 12145fi 12146 12147 fi 12148 12149fi 12150echo "$as_me:12150: result: $krb_cv_c_bigendian" >&5 12151echo "${ECHO_T}$krb_cv_c_bigendian" >&6 12152if test "$krb_cv_c_bigendian" = "yes"; then 12153 12154cat >>confdefs.h <<\EOF 12155#define WORDS_BIGENDIAN 1 12156EOF 12157fi 12158if test "$krb_cv_c_bigendian_compile" = "yes"; then 12159 12160cat >>confdefs.h <<\EOF 12161#define ENDIANESS_IN_SYS_PARAM_H 1 12162EOF 12163fi 12164 12165echo "$as_me:12165: checking for inline" >&5 12166echo $ECHO_N "checking for inline... $ECHO_C" >&6 12167if test "${ac_cv_c_inline+set}" = set; then 12168 echo $ECHO_N "(cached) $ECHO_C" >&6 12169else 12170 ac_cv_c_inline=no 12171for ac_kw in inline __inline__ __inline; do 12172 cat >conftest.$ac_ext <<_ACEOF 12173#line 12173 "configure" 12174#include "confdefs.h" 12175#ifndef __cplusplus 12176$ac_kw int foo () {return 0; } 12177#endif 12178 12179_ACEOF 12180rm -f conftest.$ac_objext 12181if { (eval echo $as_me:12181: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 12182 ac_cv_c_inline=$ac_kw; break 12183else 12184 echo "$as_me: failed program was:" >&5 12185 cat conftest.$ac_ext >&5 12186fi 12187rm -f conftest.$ac_objext conftest.$ac_ext 12188done 12189 12190fi 12191echo "$as_me:12191: result: $ac_cv_c_inline" >&5 12192echo "${ECHO_T}$ac_cv_c_inline" >&6 12193case $ac_cv_c_inline in 12194 inline | yes) ;; 12195 no) 12196cat >>confdefs.h <<\EOF 12197#define inline 12198EOF 12199 ;; 12200 *) cat >>confdefs.h <<EOF 12201#define inline $ac_cv_c_inline 12202EOF 12203 ;; 12204esac 12205 12206aix=no 12207case "$host" in 12208*-*-aix3*) 12209 aix=3 12210 ;; 12211*-*-aix4*) 12212 aix=4 12213 ;; 12214esac 12215 12216if test "$aix" != no; then 12217 AIX_TRUE= 12218 AIX_FALSE='#' 12219else 12220 AIX_TRUE='#' 12221 AIX_FALSE= 12222fi 12223 12224if test "$aix" = 4; then 12225 AIX4_TRUE= 12226 AIX4_FALSE='#' 12227else 12228 AIX4_TRUE='#' 12229 AIX4_FALSE= 12230fi 12231aix_dynamic_afs=yes 12232 12233if test "$aix_dynamic_afs" = yes; then 12234 AIX_DYNAMIC_AFS_TRUE= 12235 AIX_DYNAMIC_AFS_FALSE='#' 12236else 12237 AIX_DYNAMIC_AFS_TRUE='#' 12238 AIX_DYNAMIC_AFS_FALSE= 12239fi 12240 12241echo "$as_me:12241: checking for dlopen" >&5 12242echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12243if test "${ac_cv_funclib_dlopen+set}" = set; then 12244 echo $ECHO_N "(cached) $ECHO_C" >&6 12245else 12246 12247if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 12248 ac_save_LIBS="$LIBS" 12249 for ac_lib in "" dl; do 12250 if test -n "$ac_lib"; then 12251 ac_lib="-l$ac_lib" 12252 else 12253 ac_lib="" 12254 fi 12255 LIBS=" $ac_lib $ac_save_LIBS" 12256 cat >conftest.$ac_ext <<_ACEOF 12257#line 12257 "configure" 12258#include "confdefs.h" 12259 12260int 12261main () 12262{ 12263dlopen() 12264 ; 12265 return 0; 12266} 12267_ACEOF 12268rm -f conftest.$ac_objext conftest$ac_exeext 12269if { (eval echo $as_me:12269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12270 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 12271else 12272 echo "$as_me: failed program was:" >&5 12273 cat conftest.$ac_ext >&5 12274fi 12275rm -f conftest$ac_exeext conftest.$ac_ext 12276 done 12277 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 12278 LIBS="$ac_save_LIBS" 12279fi 12280 12281fi 12282 12283eval "ac_res=\$ac_cv_funclib_dlopen" 12284 12285if false; then 12286 12287for ac_func in dlopen 12288do 12289ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 12290echo "$as_me:12290: checking for $ac_func" >&5 12291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12292if eval "test \"\${$ac_ac_var+set}\" = set"; then 12293 echo $ECHO_N "(cached) $ECHO_C" >&6 12294else 12295 cat >conftest.$ac_ext <<_ACEOF 12296#line 12296 "configure" 12297#include "confdefs.h" 12298/* System header to define __stub macros and hopefully few prototypes, 12299 which can conflict with char $ac_func (); below. */ 12300#include <assert.h> 12301/* Override any gcc2 internal prototype to avoid an error. */ 12302#ifdef __cplusplus 12303extern "C" 12304#endif 12305/* We use char because int might match the return type of a gcc2 12306 builtin and then its argument prototype would still apply. */ 12307char $ac_func (); 12308char (*f) (); 12309 12310int 12311main () 12312{ 12313/* The GNU C library defines this for functions which it implements 12314 to always fail with ENOSYS. Some functions are actually named 12315 something starting with __ and the normal name is an alias. */ 12316#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12317choke me 12318#else 12319f = $ac_func; 12320#endif 12321 12322 ; 12323 return 0; 12324} 12325_ACEOF 12326rm -f conftest.$ac_objext conftest$ac_exeext 12327if { (eval echo $as_me:12327: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12328 eval "$ac_ac_var=yes" 12329else 12330 echo "$as_me: failed program was:" >&5 12331 cat conftest.$ac_ext >&5 12332 eval "$ac_ac_var=no" 12333fi 12334rm -f conftest$ac_exeext conftest.$ac_ext 12335fi 12336echo "$as_me:12336: result: `eval echo '${'$ac_ac_var'}'`" >&5 12337echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 12338if test `eval echo '${'$ac_ac_var'}'` = yes; then 12339 cat >>confdefs.h <<EOF 12340#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 12341EOF 12342 12343fi 12344done 12345 12346fi 12347# dlopen 12348eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12349eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12350eval "LIB_dlopen=$ac_res" 12351 12352case "$ac_res" in 12353 yes) 12354 eval "ac_cv_func_dlopen=yes" 12355 eval "LIB_dlopen=" 12356 cat >>confdefs.h <<EOF 12357#define $ac_tr_func 1 12358EOF 12359 12360 echo "$as_me:12360: result: yes" >&5 12361echo "${ECHO_T}yes" >&6 12362 ;; 12363 no) 12364 eval "ac_cv_func_dlopen=no" 12365 eval "LIB_dlopen=" 12366 echo "$as_me:12366: result: no" >&5 12367echo "${ECHO_T}no" >&6 12368 ;; 12369 *) 12370 eval "ac_cv_func_dlopen=yes" 12371 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 12372 cat >>confdefs.h <<EOF 12373#define $ac_tr_func 1 12374EOF 12375 12376 cat >>confdefs.h <<EOF 12377#define $ac_tr_lib 1 12378EOF 12379 12380 echo "$as_me:12380: result: yes, in $ac_res" >&5 12381echo "${ECHO_T}yes, in $ac_res" >&6 12382 ;; 12383esac 12384 12385if test "$aix" != no; then 12386 if test "$aix_dynamic_afs" = yes; then 12387 if test "$ac_cv_funclib_dlopen" = yes; then 12388 AIX_EXTRA_KAFS= 12389 elif test "$ac_cv_funclib_dlopen" != no; then 12390 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen" 12391 else 12392 AIX_EXTRA_KAFS=-lld 12393 fi 12394 else 12395 AIX_EXTRA_KAFS= 12396 fi 12397fi 12398 12399if test "$ac_cv_funclib_dlopen" != no; then 12400 HAVE_DLOPEN_TRUE= 12401 HAVE_DLOPEN_FALSE='#' 12402else 12403 HAVE_DLOPEN_TRUE='#' 12404 HAVE_DLOPEN_FALSE= 12405fi 12406 12407irix=no 12408case "$host_os" in 12409irix*) irix=yes ;; 12410esac 12411 12412if test "$irix" != no; then 12413 IRIX_TRUE= 12414 IRIX_FALSE='#' 12415else 12416 IRIX_TRUE='#' 12417 IRIX_FALSE= 12418fi 12419 12420echo "$as_me:12420: checking for X" >&5 12421echo $ECHO_N "checking for X... $ECHO_C" >&6 12422 12423# Check whether --with-x or --without-x was given. 12424if test "${with_x+set}" = set; then 12425 withval="$with_x" 12426 12427fi; 12428# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 12429if test "x$with_x" = xno; then 12430 # The user explicitly disabled X. 12431 have_x=disabled 12432else 12433 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 12434 # Both variables are already set. 12435 have_x=yes 12436 else 12437if test "${ac_cv_have_x+set}" = set; then 12438 echo $ECHO_N "(cached) $ECHO_C" >&6 12439else 12440 # One or both of the vars are not set, and there is no cached value. 12441ac_x_includes=no ac_x_libraries=no 12442rm -fr conftestdir 12443if mkdir conftestdir; then 12444 cd conftestdir 12445 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 12446 cat >Imakefile <<'EOF' 12447acfindx: 12448 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 12449EOF 12450 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 12451 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 12452 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 12453 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 12454 for ac_extension in a so sl; do 12455 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 12456 test -f $ac_im_libdir/libX11.$ac_extension; then 12457 ac_im_usrlibdir=$ac_im_libdir; break 12458 fi 12459 done 12460 # Screen out bogus values from the imake configuration. They are 12461 # bogus both because they are the default anyway, and because 12462 # using them would break gcc on systems where it needs fixed includes. 12463 case $ac_im_incroot in 12464 /usr/include) ;; 12465 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 12466 esac 12467 case $ac_im_usrlibdir in 12468 /usr/lib | /lib) ;; 12469 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 12470 esac 12471 fi 12472 cd .. 12473 rm -fr conftestdir 12474fi 12475 12476# Standard set of common directories for X headers. 12477# Check X11 before X11Rn because it is often a symlink to the current release. 12478ac_x_header_dirs=' 12479/usr/X11/include 12480/usr/X11R6/include 12481/usr/X11R5/include 12482/usr/X11R4/include 12483 12484/usr/include/X11 12485/usr/include/X11R6 12486/usr/include/X11R5 12487/usr/include/X11R4 12488 12489/usr/local/X11/include 12490/usr/local/X11R6/include 12491/usr/local/X11R5/include 12492/usr/local/X11R4/include 12493 12494/usr/local/include/X11 12495/usr/local/include/X11R6 12496/usr/local/include/X11R5 12497/usr/local/include/X11R4 12498 12499/usr/X386/include 12500/usr/x386/include 12501/usr/XFree86/include/X11 12502 12503/usr/include 12504/usr/local/include 12505/usr/unsupported/include 12506/usr/athena/include 12507/usr/local/x11r5/include 12508/usr/lpp/Xamples/include 12509 12510/usr/openwin/include 12511/usr/openwin/share/include' 12512 12513if test "$ac_x_includes" = no; then 12514 # Guess where to find include files, by looking for Intrinsic.h. 12515 # First, try using that file with no special directory specified. 12516 cat >conftest.$ac_ext <<_ACEOF 12517#line 12517 "configure" 12518#include "confdefs.h" 12519#include <X11/Intrinsic.h> 12520_ACEOF 12521ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 12522if { (eval echo $as_me:12522: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 12523 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 12524 ac_cpp_err=$ac_c_preproc_warn_flag 12525 else 12526 ac_cpp_err= 12527 fi 12528else 12529 ac_cpp_err=yes 12530fi 12531 12532if test -z "$ac_cpp_err"; then 12533 # We can compile using X headers with no special include directory. 12534ac_x_includes= 12535else 12536 cat conftest.err >&5 12537 echo "$as_me: failed program was:" >&5 12538 cat conftest.$ac_ext >&5 12539 for ac_dir in $ac_x_header_dirs; do 12540 if test -r "$ac_dir/X11/Intrinsic.h"; then 12541 ac_x_includes=$ac_dir 12542 break 12543 fi 12544done 12545fi 12546rm -f conftest* 12547 12548fi # $ac_x_includes = no 12549 12550if test "$ac_x_libraries" = no; then 12551 # Check for the libraries. 12552 # See if we find them without any special options. 12553 # Don't add to $LIBS permanently. 12554 ac_save_LIBS=$LIBS 12555 LIBS="-lXt $LIBS" 12556 cat >conftest.$ac_ext <<_ACEOF 12557#line 12557 "configure" 12558#include "confdefs.h" 12559#include <X11/Intrinsic.h> 12560int 12561main () 12562{ 12563XtMalloc (0) 12564 ; 12565 return 0; 12566} 12567_ACEOF 12568rm -f conftest.$ac_objext conftest$ac_exeext 12569if { (eval echo $as_me:12569: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12570 LIBS=$ac_save_LIBS 12571# We can link X programs with no special library path. 12572ac_x_libraries= 12573else 12574 echo "$as_me: failed program was:" >&5 12575 cat conftest.$ac_ext >&5 12576 LIBS=$ac_save_LIBS 12577for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 12578do 12579 # Don't even attempt the hair of trying to link an X program! 12580 for ac_extension in a so sl; do 12581 if test -r $ac_dir/libXt.$ac_extension; then 12582 ac_x_libraries=$ac_dir 12583 break 2 12584 fi 12585 done 12586done 12587fi 12588rm -f conftest$ac_exeext conftest.$ac_ext 12589fi # $ac_x_libraries = no 12590 12591if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 12592 # Didn't find X anywhere. Cache the known absence of X. 12593 ac_cv_have_x="have_x=no" 12594else 12595 # Record where we found X for the cache. 12596 ac_cv_have_x="have_x=yes \ 12597 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 12598fi 12599fi 12600 fi 12601 eval "$ac_cv_have_x" 12602fi # $with_x != no 12603 12604if test "$have_x" != yes; then 12605 echo "$as_me:12605: result: $have_x" >&5 12606echo "${ECHO_T}$have_x" >&6 12607 no_x=yes 12608else 12609 # If each of the values was on the command line, it overrides each guess. 12610 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 12611 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 12612 # Update the cache value to reflect the command line values. 12613 ac_cv_have_x="have_x=yes \ 12614 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 12615 echo "$as_me:12615: result: libraries $x_libraries, headers $x_includes" >&5 12616echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 12617fi 12618 12619if test "$no_x" = yes; then 12620 # Not all programs may use this symbol, but it does not hurt to define it. 12621 12622cat >>confdefs.h <<\EOF 12623#define X_DISPLAY_MISSING 1 12624EOF 12625 12626 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 12627else 12628 if test -n "$x_includes"; then 12629 X_CFLAGS="$X_CFLAGS -I$x_includes" 12630 fi 12631 12632 # It would also be nice to do this for all -L options, not just this one. 12633 if test -n "$x_libraries"; then 12634 X_LIBS="$X_LIBS -L$x_libraries" 12635 # For Solaris; some versions of Sun CC require a space after -R and 12636 # others require no space. Words are not sufficient . . . . 12637 case `(uname -sr) 2>/dev/null` in 12638 "SunOS 5"*) 12639 echo "$as_me:12639: checking whether -R must be followed by a space" >&5 12640echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 12641 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 12642 cat >conftest.$ac_ext <<_ACEOF 12643#line 12643 "configure" 12644#include "confdefs.h" 12645 12646int 12647main () 12648{ 12649 12650 ; 12651 return 0; 12652} 12653_ACEOF 12654rm -f conftest.$ac_objext conftest$ac_exeext 12655if { (eval echo $as_me:12655: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12656 ac_R_nospace=yes 12657else 12658 echo "$as_me: failed program was:" >&5 12659 cat conftest.$ac_ext >&5 12660 ac_R_nospace=no 12661fi 12662rm -f conftest$ac_exeext conftest.$ac_ext 12663 if test $ac_R_nospace = yes; then 12664 echo "$as_me:12664: result: no" >&5 12665echo "${ECHO_T}no" >&6 12666 X_LIBS="$X_LIBS -R$x_libraries" 12667 else 12668 LIBS="$ac_xsave_LIBS -R $x_libraries" 12669 cat >conftest.$ac_ext <<_ACEOF 12670#line 12670 "configure" 12671#include "confdefs.h" 12672 12673int 12674main () 12675{ 12676 12677 ; 12678 return 0; 12679} 12680_ACEOF 12681rm -f conftest.$ac_objext conftest$ac_exeext 12682if { (eval echo $as_me:12682: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12683 ac_R_space=yes 12684else 12685 echo "$as_me: failed program was:" >&5 12686 cat conftest.$ac_ext >&5 12687 ac_R_space=no 12688fi 12689rm -f conftest$ac_exeext conftest.$ac_ext 12690 if test $ac_R_space = yes; then 12691 echo "$as_me:12691: result: yes" >&5 12692echo "${ECHO_T}yes" >&6 12693 X_LIBS="$X_LIBS -R $x_libraries" 12694 else 12695 echo "$as_me:12695: result: neither works" >&5 12696echo "${ECHO_T}neither works" >&6 12697 fi 12698 fi 12699 LIBS=$ac_xsave_LIBS 12700 esac 12701 fi 12702 12703 # Check for system-dependent libraries X programs must link with. 12704 # Do this before checking for the system-independent R6 libraries 12705 # (-lICE), since we may need -lsocket or whatever for X linking. 12706 12707 if test "$ISC" = yes; then 12708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 12709 else 12710 # Martyn Johnson says this is needed for Ultrix, if the X 12711 # libraries were built with DECnet support. And Karl Berry says 12712 # the Alpha needs dnet_stub (dnet does not exist). 12713 12714echo "$as_me:12714: checking for dnet_ntoa in -ldnet" >&5 12715echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 12716if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 12717 echo $ECHO_N "(cached) $ECHO_C" >&6 12718else 12719 ac_check_lib_save_LIBS=$LIBS 12720LIBS="-ldnet $LIBS" 12721cat >conftest.$ac_ext <<_ACEOF 12722#line 12722 "configure" 12723#include "confdefs.h" 12724 12725/* Override any gcc2 internal prototype to avoid an error. */ 12726#ifdef __cplusplus 12727extern "C" 12728#endif 12729/* We use char because int might match the return type of a gcc2 12730 builtin and then its argument prototype would still apply. */ 12731char dnet_ntoa (); 12732int 12733main () 12734{ 12735dnet_ntoa (); 12736 ; 12737 return 0; 12738} 12739_ACEOF 12740rm -f conftest.$ac_objext conftest$ac_exeext 12741if { (eval echo $as_me:12741: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12742 ac_cv_lib_dnet_dnet_ntoa=yes 12743else 12744 echo "$as_me: failed program was:" >&5 12745 cat conftest.$ac_ext >&5 12746 ac_cv_lib_dnet_dnet_ntoa=no 12747fi 12748rm -f conftest$ac_exeext conftest.$ac_ext 12749LIBS=$ac_check_lib_save_LIBS 12750fi 12751echo "$as_me:12751: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 12752echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 12753if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 12754 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 12755fi 12756 12757 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 12758 12759echo "$as_me:12759: checking for dnet_ntoa in -ldnet_stub" >&5 12760echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 12761if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 12762 echo $ECHO_N "(cached) $ECHO_C" >&6 12763else 12764 ac_check_lib_save_LIBS=$LIBS 12765LIBS="-ldnet_stub $LIBS" 12766cat >conftest.$ac_ext <<_ACEOF 12767#line 12767 "configure" 12768#include "confdefs.h" 12769 12770/* Override any gcc2 internal prototype to avoid an error. */ 12771#ifdef __cplusplus 12772extern "C" 12773#endif 12774/* We use char because int might match the return type of a gcc2 12775 builtin and then its argument prototype would still apply. */ 12776char dnet_ntoa (); 12777int 12778main () 12779{ 12780dnet_ntoa (); 12781 ; 12782 return 0; 12783} 12784_ACEOF 12785rm -f conftest.$ac_objext conftest$ac_exeext 12786if { (eval echo $as_me:12786: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12787 ac_cv_lib_dnet_stub_dnet_ntoa=yes 12788else 12789 echo "$as_me: failed program was:" >&5 12790 cat conftest.$ac_ext >&5 12791 ac_cv_lib_dnet_stub_dnet_ntoa=no 12792fi 12793rm -f conftest$ac_exeext conftest.$ac_ext 12794LIBS=$ac_check_lib_save_LIBS 12795fi 12796echo "$as_me:12796: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 12797echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 12798if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 12799 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 12800fi 12801 12802 fi 12803 12804 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 12805 # to get the SysV transport functions. 12806 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 12807 # needs -lnsl. 12808 # The nsl library prevents programs from opening the X display 12809 # on Irix 5.2, according to T.E. Dickey. 12810 # The functions gethostbyname, getservbyname, and inet_addr are 12811 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 12812 echo "$as_me:12812: checking for gethostbyname" >&5 12813echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 12814if test "${ac_cv_func_gethostbyname+set}" = set; then 12815 echo $ECHO_N "(cached) $ECHO_C" >&6 12816else 12817 cat >conftest.$ac_ext <<_ACEOF 12818#line 12818 "configure" 12819#include "confdefs.h" 12820/* System header to define __stub macros and hopefully few prototypes, 12821 which can conflict with char gethostbyname (); below. */ 12822#include <assert.h> 12823/* Override any gcc2 internal prototype to avoid an error. */ 12824#ifdef __cplusplus 12825extern "C" 12826#endif 12827/* We use char because int might match the return type of a gcc2 12828 builtin and then its argument prototype would still apply. */ 12829char gethostbyname (); 12830char (*f) (); 12831 12832int 12833main () 12834{ 12835/* The GNU C library defines this for functions which it implements 12836 to always fail with ENOSYS. Some functions are actually named 12837 something starting with __ and the normal name is an alias. */ 12838#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 12839choke me 12840#else 12841f = gethostbyname; 12842#endif 12843 12844 ; 12845 return 0; 12846} 12847_ACEOF 12848rm -f conftest.$ac_objext conftest$ac_exeext 12849if { (eval echo $as_me:12849: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12850 ac_cv_func_gethostbyname=yes 12851else 12852 echo "$as_me: failed program was:" >&5 12853 cat conftest.$ac_ext >&5 12854 ac_cv_func_gethostbyname=no 12855fi 12856rm -f conftest$ac_exeext conftest.$ac_ext 12857fi 12858echo "$as_me:12858: result: $ac_cv_func_gethostbyname" >&5 12859echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 12860 12861 if test $ac_cv_func_gethostbyname = no; then 12862 12863echo "$as_me:12863: checking for gethostbyname in -lnsl" >&5 12864echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 12865if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 12866 echo $ECHO_N "(cached) $ECHO_C" >&6 12867else 12868 ac_check_lib_save_LIBS=$LIBS 12869LIBS="-lnsl $LIBS" 12870cat >conftest.$ac_ext <<_ACEOF 12871#line 12871 "configure" 12872#include "confdefs.h" 12873 12874/* Override any gcc2 internal prototype to avoid an error. */ 12875#ifdef __cplusplus 12876extern "C" 12877#endif 12878/* We use char because int might match the return type of a gcc2 12879 builtin and then its argument prototype would still apply. */ 12880char gethostbyname (); 12881int 12882main () 12883{ 12884gethostbyname (); 12885 ; 12886 return 0; 12887} 12888_ACEOF 12889rm -f conftest.$ac_objext conftest$ac_exeext 12890if { (eval echo $as_me:12890: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12891 ac_cv_lib_nsl_gethostbyname=yes 12892else 12893 echo "$as_me: failed program was:" >&5 12894 cat conftest.$ac_ext >&5 12895 ac_cv_lib_nsl_gethostbyname=no 12896fi 12897rm -f conftest$ac_exeext conftest.$ac_ext 12898LIBS=$ac_check_lib_save_LIBS 12899fi 12900echo "$as_me:12900: result: $ac_cv_lib_nsl_gethostbyname" >&5 12901echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 12902if test $ac_cv_lib_nsl_gethostbyname = yes; then 12903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 12904fi 12905 12906 if test $ac_cv_lib_nsl_gethostbyname = no; then 12907 12908echo "$as_me:12908: checking for gethostbyname in -lbsd" >&5 12909echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 12910if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 12911 echo $ECHO_N "(cached) $ECHO_C" >&6 12912else 12913 ac_check_lib_save_LIBS=$LIBS 12914LIBS="-lbsd $LIBS" 12915cat >conftest.$ac_ext <<_ACEOF 12916#line 12916 "configure" 12917#include "confdefs.h" 12918 12919/* Override any gcc2 internal prototype to avoid an error. */ 12920#ifdef __cplusplus 12921extern "C" 12922#endif 12923/* We use char because int might match the return type of a gcc2 12924 builtin and then its argument prototype would still apply. */ 12925char gethostbyname (); 12926int 12927main () 12928{ 12929gethostbyname (); 12930 ; 12931 return 0; 12932} 12933_ACEOF 12934rm -f conftest.$ac_objext conftest$ac_exeext 12935if { (eval echo $as_me:12935: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12936 ac_cv_lib_bsd_gethostbyname=yes 12937else 12938 echo "$as_me: failed program was:" >&5 12939 cat conftest.$ac_ext >&5 12940 ac_cv_lib_bsd_gethostbyname=no 12941fi 12942rm -f conftest$ac_exeext conftest.$ac_ext 12943LIBS=$ac_check_lib_save_LIBS 12944fi 12945echo "$as_me:12945: result: $ac_cv_lib_bsd_gethostbyname" >&5 12946echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 12947if test $ac_cv_lib_bsd_gethostbyname = yes; then 12948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 12949fi 12950 12951 fi 12952 fi 12953 12954 # lieder@skyler.mavd.honeywell.com says without -lsocket, 12955 # socket/setsockopt and other routines are undefined under SCO ODT 12956 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 12957 # on later versions), says Simon Leinen: it contains gethostby* 12958 # variants that don't use the nameserver (or something). -lsocket 12959 # must be given before -lnsl if both are needed. We assume that 12960 # if connect needs -lnsl, so does gethostbyname. 12961 echo "$as_me:12961: checking for connect" >&5 12962echo $ECHO_N "checking for connect... $ECHO_C" >&6 12963if test "${ac_cv_func_connect+set}" = set; then 12964 echo $ECHO_N "(cached) $ECHO_C" >&6 12965else 12966 cat >conftest.$ac_ext <<_ACEOF 12967#line 12967 "configure" 12968#include "confdefs.h" 12969/* System header to define __stub macros and hopefully few prototypes, 12970 which can conflict with char connect (); below. */ 12971#include <assert.h> 12972/* Override any gcc2 internal prototype to avoid an error. */ 12973#ifdef __cplusplus 12974extern "C" 12975#endif 12976/* We use char because int might match the return type of a gcc2 12977 builtin and then its argument prototype would still apply. */ 12978char connect (); 12979char (*f) (); 12980 12981int 12982main () 12983{ 12984/* The GNU C library defines this for functions which it implements 12985 to always fail with ENOSYS. Some functions are actually named 12986 something starting with __ and the normal name is an alias. */ 12987#if defined (__stub_connect) || defined (__stub___connect) 12988choke me 12989#else 12990f = connect; 12991#endif 12992 12993 ; 12994 return 0; 12995} 12996_ACEOF 12997rm -f conftest.$ac_objext conftest$ac_exeext 12998if { (eval echo $as_me:12998: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 12999 ac_cv_func_connect=yes 13000else 13001 echo "$as_me: failed program was:" >&5 13002 cat conftest.$ac_ext >&5 13003 ac_cv_func_connect=no 13004fi 13005rm -f conftest$ac_exeext conftest.$ac_ext 13006fi 13007echo "$as_me:13007: result: $ac_cv_func_connect" >&5 13008echo "${ECHO_T}$ac_cv_func_connect" >&6 13009 13010 if test $ac_cv_func_connect = no; then 13011 13012echo "$as_me:13012: checking for connect in -lsocket" >&5 13013echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 13014if test "${ac_cv_lib_socket_connect+set}" = set; then 13015 echo $ECHO_N "(cached) $ECHO_C" >&6 13016else 13017 ac_check_lib_save_LIBS=$LIBS 13018LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 13019cat >conftest.$ac_ext <<_ACEOF 13020#line 13020 "configure" 13021#include "confdefs.h" 13022 13023/* Override any gcc2 internal prototype to avoid an error. */ 13024#ifdef __cplusplus 13025extern "C" 13026#endif 13027/* We use char because int might match the return type of a gcc2 13028 builtin and then its argument prototype would still apply. */ 13029char connect (); 13030int 13031main () 13032{ 13033connect (); 13034 ; 13035 return 0; 13036} 13037_ACEOF 13038rm -f conftest.$ac_objext conftest$ac_exeext 13039if { (eval echo $as_me:13039: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13040 ac_cv_lib_socket_connect=yes 13041else 13042 echo "$as_me: failed program was:" >&5 13043 cat conftest.$ac_ext >&5 13044 ac_cv_lib_socket_connect=no 13045fi 13046rm -f conftest$ac_exeext conftest.$ac_ext 13047LIBS=$ac_check_lib_save_LIBS 13048fi 13049echo "$as_me:13049: result: $ac_cv_lib_socket_connect" >&5 13050echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 13051if test $ac_cv_lib_socket_connect = yes; then 13052 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 13053fi 13054 13055 fi 13056 13057 # Guillermo Gomez says -lposix is necessary on A/UX. 13058 echo "$as_me:13058: checking for remove" >&5 13059echo $ECHO_N "checking for remove... $ECHO_C" >&6 13060if test "${ac_cv_func_remove+set}" = set; then 13061 echo $ECHO_N "(cached) $ECHO_C" >&6 13062else 13063 cat >conftest.$ac_ext <<_ACEOF 13064#line 13064 "configure" 13065#include "confdefs.h" 13066/* System header to define __stub macros and hopefully few prototypes, 13067 which can conflict with char remove (); below. */ 13068#include <assert.h> 13069/* Override any gcc2 internal prototype to avoid an error. */ 13070#ifdef __cplusplus 13071extern "C" 13072#endif 13073/* We use char because int might match the return type of a gcc2 13074 builtin and then its argument prototype would still apply. */ 13075char remove (); 13076char (*f) (); 13077 13078int 13079main () 13080{ 13081/* The GNU C library defines this for functions which it implements 13082 to always fail with ENOSYS. Some functions are actually named 13083 something starting with __ and the normal name is an alias. */ 13084#if defined (__stub_remove) || defined (__stub___remove) 13085choke me 13086#else 13087f = remove; 13088#endif 13089 13090 ; 13091 return 0; 13092} 13093_ACEOF 13094rm -f conftest.$ac_objext conftest$ac_exeext 13095if { (eval echo $as_me:13095: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13096 ac_cv_func_remove=yes 13097else 13098 echo "$as_me: failed program was:" >&5 13099 cat conftest.$ac_ext >&5 13100 ac_cv_func_remove=no 13101fi 13102rm -f conftest$ac_exeext conftest.$ac_ext 13103fi 13104echo "$as_me:13104: result: $ac_cv_func_remove" >&5 13105echo "${ECHO_T}$ac_cv_func_remove" >&6 13106 13107 if test $ac_cv_func_remove = no; then 13108 13109echo "$as_me:13109: checking for remove in -lposix" >&5 13110echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 13111if test "${ac_cv_lib_posix_remove+set}" = set; then 13112 echo $ECHO_N "(cached) $ECHO_C" >&6 13113else 13114 ac_check_lib_save_LIBS=$LIBS 13115LIBS="-lposix $LIBS" 13116cat >conftest.$ac_ext <<_ACEOF 13117#line 13117 "configure" 13118#include "confdefs.h" 13119 13120/* Override any gcc2 internal prototype to avoid an error. */ 13121#ifdef __cplusplus 13122extern "C" 13123#endif 13124/* We use char because int might match the return type of a gcc2 13125 builtin and then its argument prototype would still apply. */ 13126char remove (); 13127int 13128main () 13129{ 13130remove (); 13131 ; 13132 return 0; 13133} 13134_ACEOF 13135rm -f conftest.$ac_objext conftest$ac_exeext 13136if { (eval echo $as_me:13136: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13137 ac_cv_lib_posix_remove=yes 13138else 13139 echo "$as_me: failed program was:" >&5 13140 cat conftest.$ac_ext >&5 13141 ac_cv_lib_posix_remove=no 13142fi 13143rm -f conftest$ac_exeext conftest.$ac_ext 13144LIBS=$ac_check_lib_save_LIBS 13145fi 13146echo "$as_me:13146: result: $ac_cv_lib_posix_remove" >&5 13147echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 13148if test $ac_cv_lib_posix_remove = yes; then 13149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 13150fi 13151 13152 fi 13153 13154 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 13155 echo "$as_me:13155: checking for shmat" >&5 13156echo $ECHO_N "checking for shmat... $ECHO_C" >&6 13157if test "${ac_cv_func_shmat+set}" = set; then 13158 echo $ECHO_N "(cached) $ECHO_C" >&6 13159else 13160 cat >conftest.$ac_ext <<_ACEOF 13161#line 13161 "configure" 13162#include "confdefs.h" 13163/* System header to define __stub macros and hopefully few prototypes, 13164 which can conflict with char shmat (); below. */ 13165#include <assert.h> 13166/* Override any gcc2 internal prototype to avoid an error. */ 13167#ifdef __cplusplus 13168extern "C" 13169#endif 13170/* We use char because int might match the return type of a gcc2 13171 builtin and then its argument prototype would still apply. */ 13172char shmat (); 13173char (*f) (); 13174 13175int 13176main () 13177{ 13178/* The GNU C library defines this for functions which it implements 13179 to always fail with ENOSYS. Some functions are actually named 13180 something starting with __ and the normal name is an alias. */ 13181#if defined (__stub_shmat) || defined (__stub___shmat) 13182choke me 13183#else 13184f = shmat; 13185#endif 13186 13187 ; 13188 return 0; 13189} 13190_ACEOF 13191rm -f conftest.$ac_objext conftest$ac_exeext 13192if { (eval echo $as_me:13192: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13193 ac_cv_func_shmat=yes 13194else 13195 echo "$as_me: failed program was:" >&5 13196 cat conftest.$ac_ext >&5 13197 ac_cv_func_shmat=no 13198fi 13199rm -f conftest$ac_exeext conftest.$ac_ext 13200fi 13201echo "$as_me:13201: result: $ac_cv_func_shmat" >&5 13202echo "${ECHO_T}$ac_cv_func_shmat" >&6 13203 13204 if test $ac_cv_func_shmat = no; then 13205 13206echo "$as_me:13206: checking for shmat in -lipc" >&5 13207echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 13208if test "${ac_cv_lib_ipc_shmat+set}" = set; then 13209 echo $ECHO_N "(cached) $ECHO_C" >&6 13210else 13211 ac_check_lib_save_LIBS=$LIBS 13212LIBS="-lipc $LIBS" 13213cat >conftest.$ac_ext <<_ACEOF 13214#line 13214 "configure" 13215#include "confdefs.h" 13216 13217/* Override any gcc2 internal prototype to avoid an error. */ 13218#ifdef __cplusplus 13219extern "C" 13220#endif 13221/* We use char because int might match the return type of a gcc2 13222 builtin and then its argument prototype would still apply. */ 13223char shmat (); 13224int 13225main () 13226{ 13227shmat (); 13228 ; 13229 return 0; 13230} 13231_ACEOF 13232rm -f conftest.$ac_objext conftest$ac_exeext 13233if { (eval echo $as_me:13233: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13234 ac_cv_lib_ipc_shmat=yes 13235else 13236 echo "$as_me: failed program was:" >&5 13237 cat conftest.$ac_ext >&5 13238 ac_cv_lib_ipc_shmat=no 13239fi 13240rm -f conftest$ac_exeext conftest.$ac_ext 13241LIBS=$ac_check_lib_save_LIBS 13242fi 13243echo "$as_me:13243: result: $ac_cv_lib_ipc_shmat" >&5 13244echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 13245if test $ac_cv_lib_ipc_shmat = yes; then 13246 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 13247fi 13248 13249 fi 13250 fi 13251 13252 # Check for libraries that X11R6 Xt/Xaw programs need. 13253 ac_save_LDFLAGS=$LDFLAGS 13254 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 13255 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 13256 # check for ICE first), but we must link in the order -lSM -lICE or 13257 # we get undefined symbols. So assume we have SM if we have ICE. 13258 # These have to be linked with before -lX11, unlike the other 13259 # libraries we check for below, so use a different variable. 13260 # John Interrante, Karl Berry 13261 13262echo "$as_me:13262: checking for IceConnectionNumber in -lICE" >&5 13263echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 13264if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 13265 echo $ECHO_N "(cached) $ECHO_C" >&6 13266else 13267 ac_check_lib_save_LIBS=$LIBS 13268LIBS="-lICE $X_EXTRA_LIBS $LIBS" 13269cat >conftest.$ac_ext <<_ACEOF 13270#line 13270 "configure" 13271#include "confdefs.h" 13272 13273/* Override any gcc2 internal prototype to avoid an error. */ 13274#ifdef __cplusplus 13275extern "C" 13276#endif 13277/* We use char because int might match the return type of a gcc2 13278 builtin and then its argument prototype would still apply. */ 13279char IceConnectionNumber (); 13280int 13281main () 13282{ 13283IceConnectionNumber (); 13284 ; 13285 return 0; 13286} 13287_ACEOF 13288rm -f conftest.$ac_objext conftest$ac_exeext 13289if { (eval echo $as_me:13289: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13290 ac_cv_lib_ICE_IceConnectionNumber=yes 13291else 13292 echo "$as_me: failed program was:" >&5 13293 cat conftest.$ac_ext >&5 13294 ac_cv_lib_ICE_IceConnectionNumber=no 13295fi 13296rm -f conftest$ac_exeext conftest.$ac_ext 13297LIBS=$ac_check_lib_save_LIBS 13298fi 13299echo "$as_me:13299: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 13300echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 13301if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 13302 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 13303fi 13304 13305 LDFLAGS=$ac_save_LDFLAGS 13306 13307fi 13308 13309# try to figure out if we need any additional ld flags, like -R 13310# and yes, the autoconf X test is utterly broken 13311if test "$no_x" != yes; then 13312 echo "$as_me:13312: checking for special X linker flags" >&5 13313echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6 13314if test "${krb_cv_sys_x_libs_rpath+set}" = set; then 13315 echo $ECHO_N "(cached) $ECHO_C" >&6 13316else 13317 13318 ac_save_libs="$LIBS" 13319 ac_save_cflags="$CFLAGS" 13320 CFLAGS="$CFLAGS $X_CFLAGS" 13321 krb_cv_sys_x_libs_rpath="" 13322 krb_cv_sys_x_libs="" 13323 for rflag in "" "-R" "-R " "-rpath "; do 13324 if test "$rflag" = ""; then 13325 foo="$X_LIBS" 13326 else 13327 foo="" 13328 for flag in $X_LIBS; do 13329 case $flag in 13330 -L*) 13331 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`" 13332 ;; 13333 *) 13334 foo="$foo $flag" 13335 ;; 13336 esac 13337 done 13338 fi 13339 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 13340 if test "$cross_compiling" = yes; then 13341 { echo "$as_me: error: cannot run test program while cross compiling" >&2 13342 { (exit 1); exit; }; } 13343else 13344 cat >conftest.$ac_ext <<_ACEOF 13345#line 13345 "configure" 13346#include "confdefs.h" 13347 13348 #include <X11/Xlib.h> 13349 foo() 13350 { 13351 XOpenDisplay(NULL); 13352 } 13353 main() 13354 { 13355 return 0; 13356 } 13357 13358_ACEOF 13359rm -f conftest$ac_exeext 13360{ (eval echo $as_me:13360: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 13361 (./conftest$ac_exeext) >&5 2>&1; 13362ac_status=$? 13363if test $ac_status = 0; then 13364 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break 13365else 13366 echo "$as_me: program exited with status $ac_status" >&5 13367echo "$as_me: failed program was:" >&5 13368cat conftest.$ac_ext >&5 13369: 13370fi 13371 13372rm -f conftest$ac_exeext conftest.$ac_ext 13373fi 13374 13375 done 13376 LIBS="$ac_save_libs" 13377 CFLAGS="$ac_save_cflags" 13378 13379fi 13380echo "$as_me:13380: result: $krb_cv_sys_x_libs_rpath" >&5 13381echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6 13382 X_LIBS="$krb_cv_sys_x_libs" 13383fi 13384 13385if test "$no_x" != yes; then 13386 HAVE_X_TRUE= 13387 HAVE_X_FALSE='#' 13388else 13389 HAVE_X_TRUE='#' 13390 HAVE_X_FALSE= 13391fi 13392 13393save_CFLAGS="$CFLAGS" 13394CFLAGS="$X_CFLAGS $CFLAGS" 13395save_LIBS="$LIBS" 13396LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS" 13397save_LDFLAGS="$LDFLAGS" 13398LDFLAGS="$LDFLAGS $X_LIBS" 13399 13400echo "$as_me:13400: checking for XauWriteAuth" >&5 13401echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6 13402if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then 13403 echo $ECHO_N "(cached) $ECHO_C" >&6 13404else 13405 13406if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then 13407 ac_save_LIBS="$LIBS" 13408 for ac_lib in "" X11 Xau; do 13409 if test -n "$ac_lib"; then 13410 ac_lib="-l$ac_lib" 13411 else 13412 ac_lib="" 13413 fi 13414 LIBS=" $ac_lib $ac_save_LIBS" 13415 cat >conftest.$ac_ext <<_ACEOF 13416#line 13416 "configure" 13417#include "confdefs.h" 13418 13419int 13420main () 13421{ 13422XauWriteAuth() 13423 ; 13424 return 0; 13425} 13426_ACEOF 13427rm -f conftest.$ac_objext conftest$ac_exeext 13428if { (eval echo $as_me:13428: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13429 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break 13430else 13431 echo "$as_me: failed program was:" >&5 13432 cat conftest.$ac_ext >&5 13433fi 13434rm -f conftest$ac_exeext conftest.$ac_ext 13435 done 13436 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}" 13437 LIBS="$ac_save_LIBS" 13438fi 13439 13440fi 13441 13442eval "ac_res=\$ac_cv_funclib_XauWriteAuth" 13443 13444if false; then 13445 13446for ac_func in XauWriteAuth 13447do 13448ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 13449echo "$as_me:13449: checking for $ac_func" >&5 13450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13451if eval "test \"\${$ac_ac_var+set}\" = set"; then 13452 echo $ECHO_N "(cached) $ECHO_C" >&6 13453else 13454 cat >conftest.$ac_ext <<_ACEOF 13455#line 13455 "configure" 13456#include "confdefs.h" 13457/* System header to define __stub macros and hopefully few prototypes, 13458 which can conflict with char $ac_func (); below. */ 13459#include <assert.h> 13460/* Override any gcc2 internal prototype to avoid an error. */ 13461#ifdef __cplusplus 13462extern "C" 13463#endif 13464/* We use char because int might match the return type of a gcc2 13465 builtin and then its argument prototype would still apply. */ 13466char $ac_func (); 13467char (*f) (); 13468 13469int 13470main () 13471{ 13472/* The GNU C library defines this for functions which it implements 13473 to always fail with ENOSYS. Some functions are actually named 13474 something starting with __ and the normal name is an alias. */ 13475#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13476choke me 13477#else 13478f = $ac_func; 13479#endif 13480 13481 ; 13482 return 0; 13483} 13484_ACEOF 13485rm -f conftest.$ac_objext conftest$ac_exeext 13486if { (eval echo $as_me:13486: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13487 eval "$ac_ac_var=yes" 13488else 13489 echo "$as_me: failed program was:" >&5 13490 cat conftest.$ac_ext >&5 13491 eval "$ac_ac_var=no" 13492fi 13493rm -f conftest$ac_exeext conftest.$ac_ext 13494fi 13495echo "$as_me:13495: result: `eval echo '${'$ac_ac_var'}'`" >&5 13496echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 13497if test `eval echo '${'$ac_ac_var'}'` = yes; then 13498 cat >>confdefs.h <<EOF 13499#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 13500EOF 13501 13502fi 13503done 13504 13505fi 13506# XauWriteAuth 13507eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13508eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13509eval "LIB_XauWriteAuth=$ac_res" 13510 13511case "$ac_res" in 13512 yes) 13513 eval "ac_cv_func_XauWriteAuth=yes" 13514 eval "LIB_XauWriteAuth=" 13515 cat >>confdefs.h <<EOF 13516#define $ac_tr_func 1 13517EOF 13518 13519 echo "$as_me:13519: result: yes" >&5 13520echo "${ECHO_T}yes" >&6 13521 ;; 13522 no) 13523 eval "ac_cv_func_XauWriteAuth=no" 13524 eval "LIB_XauWriteAuth=" 13525 echo "$as_me:13525: result: no" >&5 13526echo "${ECHO_T}no" >&6 13527 ;; 13528 *) 13529 eval "ac_cv_func_XauWriteAuth=yes" 13530 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 13531 cat >>confdefs.h <<EOF 13532#define $ac_tr_func 1 13533EOF 13534 13535 cat >>confdefs.h <<EOF 13536#define $ac_tr_lib 1 13537EOF 13538 13539 echo "$as_me:13539: result: yes, in $ac_res" >&5 13540echo "${ECHO_T}yes, in $ac_res" >&6 13541 ;; 13542esac 13543 13544ac_xxx="$LIBS" 13545LIBS="$LIB_XauWriteAuth $LIBS" 13546 13547echo "$as_me:13547: checking for XauReadAuth" >&5 13548echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6 13549if test "${ac_cv_funclib_XauReadAuth+set}" = set; then 13550 echo $ECHO_N "(cached) $ECHO_C" >&6 13551else 13552 13553if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then 13554 ac_save_LIBS="$LIBS" 13555 for ac_lib in "" X11 Xau; do 13556 if test -n "$ac_lib"; then 13557 ac_lib="-l$ac_lib" 13558 else 13559 ac_lib="" 13560 fi 13561 LIBS=" $ac_lib $ac_save_LIBS" 13562 cat >conftest.$ac_ext <<_ACEOF 13563#line 13563 "configure" 13564#include "confdefs.h" 13565 13566int 13567main () 13568{ 13569XauReadAuth() 13570 ; 13571 return 0; 13572} 13573_ACEOF 13574rm -f conftest.$ac_objext conftest$ac_exeext 13575if { (eval echo $as_me:13575: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13576 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break 13577else 13578 echo "$as_me: failed program was:" >&5 13579 cat conftest.$ac_ext >&5 13580fi 13581rm -f conftest$ac_exeext conftest.$ac_ext 13582 done 13583 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}" 13584 LIBS="$ac_save_LIBS" 13585fi 13586 13587fi 13588 13589eval "ac_res=\$ac_cv_funclib_XauReadAuth" 13590 13591if false; then 13592 13593for ac_func in XauReadAuth 13594do 13595ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 13596echo "$as_me:13596: checking for $ac_func" >&5 13597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13598if eval "test \"\${$ac_ac_var+set}\" = set"; then 13599 echo $ECHO_N "(cached) $ECHO_C" >&6 13600else 13601 cat >conftest.$ac_ext <<_ACEOF 13602#line 13602 "configure" 13603#include "confdefs.h" 13604/* System header to define __stub macros and hopefully few prototypes, 13605 which can conflict with char $ac_func (); below. */ 13606#include <assert.h> 13607/* Override any gcc2 internal prototype to avoid an error. */ 13608#ifdef __cplusplus 13609extern "C" 13610#endif 13611/* We use char because int might match the return type of a gcc2 13612 builtin and then its argument prototype would still apply. */ 13613char $ac_func (); 13614char (*f) (); 13615 13616int 13617main () 13618{ 13619/* The GNU C library defines this for functions which it implements 13620 to always fail with ENOSYS. Some functions are actually named 13621 something starting with __ and the normal name is an alias. */ 13622#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13623choke me 13624#else 13625f = $ac_func; 13626#endif 13627 13628 ; 13629 return 0; 13630} 13631_ACEOF 13632rm -f conftest.$ac_objext conftest$ac_exeext 13633if { (eval echo $as_me:13633: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13634 eval "$ac_ac_var=yes" 13635else 13636 echo "$as_me: failed program was:" >&5 13637 cat conftest.$ac_ext >&5 13638 eval "$ac_ac_var=no" 13639fi 13640rm -f conftest$ac_exeext conftest.$ac_ext 13641fi 13642echo "$as_me:13642: result: `eval echo '${'$ac_ac_var'}'`" >&5 13643echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 13644if test `eval echo '${'$ac_ac_var'}'` = yes; then 13645 cat >>confdefs.h <<EOF 13646#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 13647EOF 13648 13649fi 13650done 13651 13652fi 13653# XauReadAuth 13654eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13655eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13656eval "LIB_XauReadAuth=$ac_res" 13657 13658case "$ac_res" in 13659 yes) 13660 eval "ac_cv_func_XauReadAuth=yes" 13661 eval "LIB_XauReadAuth=" 13662 cat >>confdefs.h <<EOF 13663#define $ac_tr_func 1 13664EOF 13665 13666 echo "$as_me:13666: result: yes" >&5 13667echo "${ECHO_T}yes" >&6 13668 ;; 13669 no) 13670 eval "ac_cv_func_XauReadAuth=no" 13671 eval "LIB_XauReadAuth=" 13672 echo "$as_me:13672: result: no" >&5 13673echo "${ECHO_T}no" >&6 13674 ;; 13675 *) 13676 eval "ac_cv_func_XauReadAuth=yes" 13677 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 13678 cat >>confdefs.h <<EOF 13679#define $ac_tr_func 1 13680EOF 13681 13682 cat >>confdefs.h <<EOF 13683#define $ac_tr_lib 1 13684EOF 13685 13686 echo "$as_me:13686: result: yes, in $ac_res" >&5 13687echo "${ECHO_T}yes, in $ac_res" >&6 13688 ;; 13689esac 13690 13691LIBS="$LIB_XauReadAauth $LIBS" 13692 13693echo "$as_me:13693: checking for XauFileName" >&5 13694echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6 13695if test "${ac_cv_funclib_XauFileName+set}" = set; then 13696 echo $ECHO_N "(cached) $ECHO_C" >&6 13697else 13698 13699if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then 13700 ac_save_LIBS="$LIBS" 13701 for ac_lib in "" X11 Xau; do 13702 if test -n "$ac_lib"; then 13703 ac_lib="-l$ac_lib" 13704 else 13705 ac_lib="" 13706 fi 13707 LIBS=" $ac_lib $ac_save_LIBS" 13708 cat >conftest.$ac_ext <<_ACEOF 13709#line 13709 "configure" 13710#include "confdefs.h" 13711 13712int 13713main () 13714{ 13715XauFileName() 13716 ; 13717 return 0; 13718} 13719_ACEOF 13720rm -f conftest.$ac_objext conftest$ac_exeext 13721if { (eval echo $as_me:13721: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13722 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break 13723else 13724 echo "$as_me: failed program was:" >&5 13725 cat conftest.$ac_ext >&5 13726fi 13727rm -f conftest$ac_exeext conftest.$ac_ext 13728 done 13729 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}" 13730 LIBS="$ac_save_LIBS" 13731fi 13732 13733fi 13734 13735eval "ac_res=\$ac_cv_funclib_XauFileName" 13736 13737if false; then 13738 13739for ac_func in XauFileName 13740do 13741ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 13742echo "$as_me:13742: checking for $ac_func" >&5 13743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13744if eval "test \"\${$ac_ac_var+set}\" = set"; then 13745 echo $ECHO_N "(cached) $ECHO_C" >&6 13746else 13747 cat >conftest.$ac_ext <<_ACEOF 13748#line 13748 "configure" 13749#include "confdefs.h" 13750/* System header to define __stub macros and hopefully few prototypes, 13751 which can conflict with char $ac_func (); below. */ 13752#include <assert.h> 13753/* Override any gcc2 internal prototype to avoid an error. */ 13754#ifdef __cplusplus 13755extern "C" 13756#endif 13757/* We use char because int might match the return type of a gcc2 13758 builtin and then its argument prototype would still apply. */ 13759char $ac_func (); 13760char (*f) (); 13761 13762int 13763main () 13764{ 13765/* The GNU C library defines this for functions which it implements 13766 to always fail with ENOSYS. Some functions are actually named 13767 something starting with __ and the normal name is an alias. */ 13768#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13769choke me 13770#else 13771f = $ac_func; 13772#endif 13773 13774 ; 13775 return 0; 13776} 13777_ACEOF 13778rm -f conftest.$ac_objext conftest$ac_exeext 13779if { (eval echo $as_me:13779: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 13780 eval "$ac_ac_var=yes" 13781else 13782 echo "$as_me: failed program was:" >&5 13783 cat conftest.$ac_ext >&5 13784 eval "$ac_ac_var=no" 13785fi 13786rm -f conftest$ac_exeext conftest.$ac_ext 13787fi 13788echo "$as_me:13788: result: `eval echo '${'$ac_ac_var'}'`" >&5 13789echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 13790if test `eval echo '${'$ac_ac_var'}'` = yes; then 13791 cat >>confdefs.h <<EOF 13792#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 13793EOF 13794 13795fi 13796done 13797 13798fi 13799# XauFileName 13800eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13801eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13802eval "LIB_XauFileName=$ac_res" 13803 13804case "$ac_res" in 13805 yes) 13806 eval "ac_cv_func_XauFileName=yes" 13807 eval "LIB_XauFileName=" 13808 cat >>confdefs.h <<EOF 13809#define $ac_tr_func 1 13810EOF 13811 13812 echo "$as_me:13812: result: yes" >&5 13813echo "${ECHO_T}yes" >&6 13814 ;; 13815 no) 13816 eval "ac_cv_func_XauFileName=no" 13817 eval "LIB_XauFileName=" 13818 echo "$as_me:13818: result: no" >&5 13819echo "${ECHO_T}no" >&6 13820 ;; 13821 *) 13822 eval "ac_cv_func_XauFileName=yes" 13823 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 13824 cat >>confdefs.h <<EOF 13825#define $ac_tr_func 1 13826EOF 13827 13828 cat >>confdefs.h <<EOF 13829#define $ac_tr_lib 1 13830EOF 13831 13832 echo "$as_me:13832: result: yes, in $ac_res" >&5 13833echo "${ECHO_T}yes, in $ac_res" >&6 13834 ;; 13835esac 13836 13837LIBS="$ac_xxx" 13838 13839case "$ac_cv_funclib_XauWriteAuth" in 13840yes) ;; 13841no) ;; 13842*) if test "$ac_cv_funclib_XauReadAuth" = yes; then 13843 if test "$ac_cv_funclib_XauFileName" = yes; then 13844 LIB_XauReadAuth="$LIB_XauWriteAuth" 13845 else 13846 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName" 13847 fi 13848 else 13849 if test "$ac_cv_funclib_XauFileName" = yes; then 13850 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth" 13851 else 13852 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName" 13853 fi 13854 fi 13855 ;; 13856esac 13857 13858if test "$AUTOMAKE" != ""; then 13859 13860if test "$ac_cv_func_XauWriteAuth" != "yes"; then 13861 NEED_WRITEAUTH_TRUE= 13862 NEED_WRITEAUTH_FALSE='#' 13863else 13864 NEED_WRITEAUTH_TRUE='#' 13865 NEED_WRITEAUTH_FALSE= 13866fi 13867else 13868 13869 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 13870 NEED_WRITEAUTH_TRUE= 13871 NEED_WRITEAUTH_FALSE='#' 13872 else 13873 NEED_WRITEAUTH_TRUE='#' 13874 NEED_WRITEAUTH_FALSE= 13875 fi 13876fi 13877CFLAGS=$save_CFLAGS 13878LIBS=$save_LIBS 13879LDFLAGS=$save_LDFLAGS 13880 13881echo "$as_me:13881: checking for an ANSI C-conforming const" >&5 13882echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 13883if test "${ac_cv_c_const+set}" = set; then 13884 echo $ECHO_N "(cached) $ECHO_C" >&6 13885else 13886 cat >conftest.$ac_ext <<_ACEOF 13887#line 13887 "configure" 13888#include "confdefs.h" 13889 13890int 13891main () 13892{ 13893/* FIXME: Include the comments suggested by Paul. */ 13894#ifndef __cplusplus 13895 /* Ultrix mips cc rejects this. */ 13896 typedef int charset[2]; 13897 const charset x; 13898 /* SunOS 4.1.1 cc rejects this. */ 13899 char const *const *ccp; 13900 char **p; 13901 /* NEC SVR4.0.2 mips cc rejects this. */ 13902 struct point {int x, y;}; 13903 static struct point const zero = {0,0}; 13904 /* AIX XL C 1.02.0.0 rejects this. 13905 It does not let you subtract one const X* pointer from another in 13906 an arm of an if-expression whose if-part is not a constant 13907 expression */ 13908 const char *g = "string"; 13909 ccp = &g + (g ? g-g : 0); 13910 /* HPUX 7.0 cc rejects these. */ 13911 ++ccp; 13912 p = (char**) ccp; 13913 ccp = (char const *const *) p; 13914 { /* SCO 3.2v4 cc rejects this. */ 13915 char *t; 13916 char const *s = 0 ? (char *) 0 : (char const *) 0; 13917 13918 *t++ = 0; 13919 } 13920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13921 int x[] = {25, 17}; 13922 const int *foo = &x[0]; 13923 ++foo; 13924 } 13925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13926 typedef const int *iptr; 13927 iptr p = 0; 13928 ++p; 13929 } 13930 { /* AIX XL C 1.02.0.0 rejects this saying 13931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13932 struct s { int j; const int *ap[3]; }; 13933 struct s *b; b->j = 5; 13934 } 13935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13936 const int foo = 10; 13937 } 13938#endif 13939 13940 ; 13941 return 0; 13942} 13943_ACEOF 13944rm -f conftest.$ac_objext 13945if { (eval echo $as_me:13945: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 13946 ac_cv_c_const=yes 13947else 13948 echo "$as_me: failed program was:" >&5 13949 cat conftest.$ac_ext >&5 13950 ac_cv_c_const=no 13951fi 13952rm -f conftest.$ac_objext conftest.$ac_ext 13953fi 13954echo "$as_me:13954: result: $ac_cv_c_const" >&5 13955echo "${ECHO_T}$ac_cv_c_const" >&6 13956if test $ac_cv_c_const = no; then 13957 13958cat >>confdefs.h <<\EOF 13959#define const 13960EOF 13961 13962fi 13963 13964echo "$as_me:13964: checking for off_t" >&5 13965echo $ECHO_N "checking for off_t... $ECHO_C" >&6 13966if test "${ac_cv_type_off_t+set}" = set; then 13967 echo $ECHO_N "(cached) $ECHO_C" >&6 13968else 13969 cat >conftest.$ac_ext <<_ACEOF 13970#line 13970 "configure" 13971#include "confdefs.h" 13972$ac_includes_default 13973int 13974main () 13975{ 13976if ((off_t *) 0) 13977 return 0; 13978if (sizeof (off_t)) 13979 return 0; 13980 ; 13981 return 0; 13982} 13983_ACEOF 13984rm -f conftest.$ac_objext 13985if { (eval echo $as_me:13985: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 13986 ac_cv_type_off_t=yes 13987else 13988 echo "$as_me: failed program was:" >&5 13989 cat conftest.$ac_ext >&5 13990 ac_cv_type_off_t=no 13991fi 13992rm -f conftest.$ac_objext conftest.$ac_ext 13993fi 13994echo "$as_me:13994: result: $ac_cv_type_off_t" >&5 13995echo "${ECHO_T}$ac_cv_type_off_t" >&6 13996if test $ac_cv_type_off_t = yes; then 13997 : 13998else 13999 14000cat >>confdefs.h <<EOF 14001#define off_t long 14002EOF 14003 14004fi 14005 14006echo "$as_me:14006: checking for size_t" >&5 14007echo $ECHO_N "checking for size_t... $ECHO_C" >&6 14008if test "${ac_cv_type_size_t+set}" = set; then 14009 echo $ECHO_N "(cached) $ECHO_C" >&6 14010else 14011 cat >conftest.$ac_ext <<_ACEOF 14012#line 14012 "configure" 14013#include "confdefs.h" 14014$ac_includes_default 14015int 14016main () 14017{ 14018if ((size_t *) 0) 14019 return 0; 14020if (sizeof (size_t)) 14021 return 0; 14022 ; 14023 return 0; 14024} 14025_ACEOF 14026rm -f conftest.$ac_objext 14027if { (eval echo $as_me:14027: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 14028 ac_cv_type_size_t=yes 14029else 14030 echo "$as_me: failed program was:" >&5 14031 cat conftest.$ac_ext >&5 14032 ac_cv_type_size_t=no 14033fi 14034rm -f conftest.$ac_objext conftest.$ac_ext 14035fi 14036echo "$as_me:14036: result: $ac_cv_type_size_t" >&5 14037echo "${ECHO_T}$ac_cv_type_size_t" >&6 14038if test $ac_cv_type_size_t = yes; then 14039 : 14040else 14041 14042cat >>confdefs.h <<EOF 14043#define size_t unsigned 14044EOF 14045 14046fi 14047 14048echo "$as_me:14048: checking for ssize_t" >&5 14049echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 14050if test "${ac_cv_type_ssize_t+set}" = set; then 14051 echo $ECHO_N "(cached) $ECHO_C" >&6 14052else 14053 cat >conftest.$ac_ext <<_ACEOF 14054#line 14054 "configure" 14055#include "confdefs.h" 14056#include <sys/types.h> 14057#if STDC_HEADERS 14058#include <stdlib.h> 14059#include <stddef.h> 14060#endif 14061#include <unistd.h> 14062_ACEOF 14063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14064 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 14065 ac_cv_type_ssize_t=yes 14066else 14067 ac_cv_type_ssize_t=no 14068fi 14069rm -f conftest* 14070 14071fi 14072echo "$as_me:14072: result: $ac_cv_type_ssize_t" >&5 14073echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 14074if test $ac_cv_type_ssize_t = no; then 14075 14076cat >>confdefs.h <<\EOF 14077#define ssize_t int 14078EOF 14079 14080fi 14081 14082echo "$as_me:14082: checking for pid_t" >&5 14083echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 14084if test "${ac_cv_type_pid_t+set}" = set; then 14085 echo $ECHO_N "(cached) $ECHO_C" >&6 14086else 14087 cat >conftest.$ac_ext <<_ACEOF 14088#line 14088 "configure" 14089#include "confdefs.h" 14090$ac_includes_default 14091int 14092main () 14093{ 14094if ((pid_t *) 0) 14095 return 0; 14096if (sizeof (pid_t)) 14097 return 0; 14098 ; 14099 return 0; 14100} 14101_ACEOF 14102rm -f conftest.$ac_objext 14103if { (eval echo $as_me:14103: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 14104 ac_cv_type_pid_t=yes 14105else 14106 echo "$as_me: failed program was:" >&5 14107 cat conftest.$ac_ext >&5 14108 ac_cv_type_pid_t=no 14109fi 14110rm -f conftest.$ac_objext conftest.$ac_ext 14111fi 14112echo "$as_me:14112: result: $ac_cv_type_pid_t" >&5 14113echo "${ECHO_T}$ac_cv_type_pid_t" >&6 14114if test $ac_cv_type_pid_t = yes; then 14115 : 14116else 14117 14118cat >>confdefs.h <<EOF 14119#define pid_t int 14120EOF 14121 14122fi 14123 14124echo "$as_me:14124: checking for uid_t in sys/types.h" >&5 14125echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 14126if test "${ac_cv_type_uid_t+set}" = set; then 14127 echo $ECHO_N "(cached) $ECHO_C" >&6 14128else 14129 cat >conftest.$ac_ext <<_ACEOF 14130#line 14130 "configure" 14131#include "confdefs.h" 14132#include <sys/types.h> 14133 14134_ACEOF 14135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14136 egrep "uid_t" >/dev/null 2>&1; then 14137 ac_cv_type_uid_t=yes 14138else 14139 ac_cv_type_uid_t=no 14140fi 14141rm -f conftest* 14142 14143fi 14144echo "$as_me:14144: result: $ac_cv_type_uid_t" >&5 14145echo "${ECHO_T}$ac_cv_type_uid_t" >&6 14146if test $ac_cv_type_uid_t = no; then 14147 14148cat >>confdefs.h <<\EOF 14149#define uid_t int 14150EOF 14151 14152cat >>confdefs.h <<\EOF 14153#define gid_t int 14154EOF 14155 14156fi 14157 14158echo "$as_me:14158: checking for mode_t" >&5 14159echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 14160if test "${ac_cv_type_mode_t+set}" = set; then 14161 echo $ECHO_N "(cached) $ECHO_C" >&6 14162else 14163 cat >conftest.$ac_ext <<_ACEOF 14164#line 14164 "configure" 14165#include "confdefs.h" 14166#include <sys/types.h> 14167#if STDC_HEADERS 14168#include <stdlib.h> 14169#include <stddef.h> 14170#endif 14171 14172_ACEOF 14173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14174 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 14175 ac_cv_type_mode_t=yes 14176else 14177 ac_cv_type_mode_t=no 14178fi 14179rm -f conftest* 14180 14181fi 14182echo "$as_me:14182: result: $ac_cv_type_mode_t" >&5 14183echo "${ECHO_T}$ac_cv_type_mode_t" >&6 14184if test $ac_cv_type_mode_t = no; then 14185 14186cat >>confdefs.h <<\EOF 14187#define mode_t unsigned short 14188EOF 14189 14190fi 14191 14192echo "$as_me:14192: checking for sig_atomic_t" >&5 14193echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 14194if test "${ac_cv_type_sig_atomic_t+set}" = set; then 14195 echo $ECHO_N "(cached) $ECHO_C" >&6 14196else 14197 cat >conftest.$ac_ext <<_ACEOF 14198#line 14198 "configure" 14199#include "confdefs.h" 14200#include <sys/types.h> 14201#if STDC_HEADERS 14202#include <stdlib.h> 14203#include <stddef.h> 14204#endif 14205#include <signal.h> 14206_ACEOF 14207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14208 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 14209 ac_cv_type_sig_atomic_t=yes 14210else 14211 ac_cv_type_sig_atomic_t=no 14212fi 14213rm -f conftest* 14214 14215fi 14216echo "$as_me:14216: result: $ac_cv_type_sig_atomic_t" >&5 14217echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 14218if test $ac_cv_type_sig_atomic_t = no; then 14219 14220cat >>confdefs.h <<\EOF 14221#define sig_atomic_t int 14222EOF 14223 14224fi 14225 14226cv=`echo "long long" | sed 'y%./+- %__p__%'` 14227echo "$as_me:14227: checking for long long" >&5 14228echo $ECHO_N "checking for long long... $ECHO_C" >&6 14229if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 14230 echo $ECHO_N "(cached) $ECHO_C" >&6 14231else 14232 cat >conftest.$ac_ext <<_ACEOF 14233#line 14233 "configure" 14234#include "confdefs.h" 14235#include <sys/types.h> 14236#if STDC_HEADERS 14237#include <stdlib.h> 14238#include <stddef.h> 14239#endif 14240 14241int 14242main () 14243{ 14244long long foo; 14245 ; 14246 return 0; 14247} 14248_ACEOF 14249rm -f conftest.$ac_objext 14250if { (eval echo $as_me:14250: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 14251 eval "ac_cv_type_$cv=yes" 14252else 14253 echo "$as_me: failed program was:" >&5 14254 cat conftest.$ac_ext >&5 14255 eval "ac_cv_type_$cv=no" 14256fi 14257rm -f conftest.$ac_objext conftest.$ac_ext 14258fi 14259ac_foo=`eval echo \\$ac_cv_type_$cv` 14260echo "$as_me:14260: result: $ac_foo" >&5 14261echo "${ECHO_T}$ac_foo" >&6 14262if test "$ac_foo" = yes; then 14263 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 14264if false; then 14265 echo "$as_me:14265: checking for long long" >&5 14266echo $ECHO_N "checking for long long... $ECHO_C" >&6 14267if test "${ac_cv_type_long_long+set}" = set; then 14268 echo $ECHO_N "(cached) $ECHO_C" >&6 14269else 14270 cat >conftest.$ac_ext <<_ACEOF 14271#line 14271 "configure" 14272#include "confdefs.h" 14273$ac_includes_default 14274int 14275main () 14276{ 14277if ((long long *) 0) 14278 return 0; 14279if (sizeof (long long)) 14280 return 0; 14281 ; 14282 return 0; 14283} 14284_ACEOF 14285rm -f conftest.$ac_objext 14286if { (eval echo $as_me:14286: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 14287 ac_cv_type_long_long=yes 14288else 14289 echo "$as_me: failed program was:" >&5 14290 cat conftest.$ac_ext >&5 14291 ac_cv_type_long_long=no 14292fi 14293rm -f conftest.$ac_objext conftest.$ac_ext 14294fi 14295echo "$as_me:14295: result: $ac_cv_type_long_long" >&5 14296echo "${ECHO_T}$ac_cv_type_long_long" >&6 14297if test $ac_cv_type_long_long = yes; then 14298 14299cat >>confdefs.h <<EOF 14300#define HAVE_LONG_LONG 1 14301EOF 14302 14303fi 14304 14305fi 14306 14307cat >>confdefs.h <<EOF 14308#define $ac_tr_hdr 1 14309EOF 14310 14311fi 14312 14313echo "$as_me:14313: checking whether time.h and sys/time.h may both be included" >&5 14314echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 14315if test "${ac_cv_header_time+set}" = set; then 14316 echo $ECHO_N "(cached) $ECHO_C" >&6 14317else 14318 cat >conftest.$ac_ext <<_ACEOF 14319#line 14319 "configure" 14320#include "confdefs.h" 14321#include <sys/types.h> 14322#include <sys/time.h> 14323#include <time.h> 14324 14325int 14326main () 14327{ 14328struct tm *tp; 14329 ; 14330 return 0; 14331} 14332_ACEOF 14333rm -f conftest.$ac_objext 14334if { (eval echo $as_me:14334: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 14335 ac_cv_header_time=yes 14336else 14337 echo "$as_me: failed program was:" >&5 14338 cat conftest.$ac_ext >&5 14339 ac_cv_header_time=no 14340fi 14341rm -f conftest.$ac_objext conftest.$ac_ext 14342fi 14343echo "$as_me:14343: result: $ac_cv_header_time" >&5 14344echo "${ECHO_T}$ac_cv_header_time" >&6 14345if test $ac_cv_header_time = yes; then 14346 14347cat >>confdefs.h <<\EOF 14348#define TIME_WITH_SYS_TIME 1 14349EOF 14350 14351fi 14352 14353echo "$as_me:14353: checking whether struct tm is in sys/time.h or time.h" >&5 14354echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 14355if test "${ac_cv_struct_tm+set}" = set; then 14356 echo $ECHO_N "(cached) $ECHO_C" >&6 14357else 14358 cat >conftest.$ac_ext <<_ACEOF 14359#line 14359 "configure" 14360#include "confdefs.h" 14361#include <sys/types.h> 14362#include <time.h> 14363 14364int 14365main () 14366{ 14367struct tm *tp; tp->tm_sec; 14368 ; 14369 return 0; 14370} 14371_ACEOF 14372rm -f conftest.$ac_objext 14373if { (eval echo $as_me:14373: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 14374 ac_cv_struct_tm=time.h 14375else 14376 echo "$as_me: failed program was:" >&5 14377 cat conftest.$ac_ext >&5 14378 ac_cv_struct_tm=sys/time.h 14379fi 14380rm -f conftest.$ac_objext conftest.$ac_ext 14381fi 14382echo "$as_me:14382: result: $ac_cv_struct_tm" >&5 14383echo "${ECHO_T}$ac_cv_struct_tm" >&6 14384if test $ac_cv_struct_tm = sys/time.h; then 14385 14386cat >>confdefs.h <<\EOF 14387#define TM_IN_SYS_TIME 1 14388EOF 14389 14390fi 14391 14392echo "$as_me:14392: checking for ANSI C header files" >&5 14393echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 14394if test "${ac_cv_header_stdc+set}" = set; then 14395 echo $ECHO_N "(cached) $ECHO_C" >&6 14396else 14397 cat >conftest.$ac_ext <<_ACEOF 14398#line 14398 "configure" 14399#include "confdefs.h" 14400#include <stdlib.h> 14401#include <stdarg.h> 14402#include <string.h> 14403#include <float.h> 14404 14405_ACEOF 14406ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 14407if { (eval echo $as_me:14407: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 14408 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 14409 ac_cpp_err=$ac_c_preproc_warn_flag 14410 else 14411 ac_cpp_err= 14412 fi 14413else 14414 ac_cpp_err=yes 14415fi 14416 14417if test -z "$ac_cpp_err"; then 14418 ac_cv_header_stdc=yes 14419else 14420 cat conftest.err >&5 14421 echo "$as_me: failed program was:" >&5 14422 cat conftest.$ac_ext >&5 14423 ac_cv_header_stdc=no 14424fi 14425rm -f conftest* 14426 14427if test $ac_cv_header_stdc = yes; then 14428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14429 cat >conftest.$ac_ext <<_ACEOF 14430#line 14430 "configure" 14431#include "confdefs.h" 14432#include <string.h> 14433 14434_ACEOF 14435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14436 egrep "memchr" >/dev/null 2>&1; then 14437 : 14438else 14439 ac_cv_header_stdc=no 14440fi 14441rm -f conftest* 14442 14443fi 14444 14445if test $ac_cv_header_stdc = yes; then 14446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14447 cat >conftest.$ac_ext <<_ACEOF 14448#line 14448 "configure" 14449#include "confdefs.h" 14450#include <stdlib.h> 14451 14452_ACEOF 14453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14454 egrep "free" >/dev/null 2>&1; then 14455 : 14456else 14457 ac_cv_header_stdc=no 14458fi 14459rm -f conftest* 14460 14461fi 14462 14463if test $ac_cv_header_stdc = yes; then 14464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14465 if test "$cross_compiling" = yes; then 14466 : 14467else 14468 cat >conftest.$ac_ext <<_ACEOF 14469#line 14469 "configure" 14470#include "confdefs.h" 14471#include <ctype.h> 14472#if ((' ' & 0x0FF) == 0x020) 14473# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14474# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14475#else 14476# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 14477 || ('j' <= (c) && (c) <= 'r') \ 14478 || ('s' <= (c) && (c) <= 'z')) 14479# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14480#endif 14481 14482#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14483int 14484main () 14485{ 14486 int i; 14487 for (i = 0; i < 256; i++) 14488 if (XOR (islower (i), ISLOWER (i)) 14489 || toupper (i) != TOUPPER (i)) 14490 exit(2); 14491 exit (0); 14492} 14493_ACEOF 14494rm -f conftest$ac_exeext 14495{ (eval echo $as_me:14495: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 14496 (./conftest$ac_exeext) >&5 2>&1; 14497ac_status=$? 14498if test $ac_status = 0; then 14499 : 14500else 14501 echo "$as_me: program exited with status $ac_status" >&5 14502echo "$as_me: failed program was:" >&5 14503cat conftest.$ac_ext >&5 14504ac_cv_header_stdc=no 14505fi 14506 14507rm -f conftest$ac_exeext conftest.$ac_ext 14508fi 14509 14510fi 14511fi 14512echo "$as_me:14512: result: $ac_cv_header_stdc" >&5 14513echo "${ECHO_T}$ac_cv_header_stdc" >&6 14514if test $ac_cv_header_stdc = yes; then 14515 14516cat >>confdefs.h <<\EOF 14517#define STDC_HEADERS 1 14518EOF 14519 14520fi 14521 14522for ac_header in \ 14523 arpa/ftp.h \ 14524 arpa/inet.h \ 14525 arpa/nameser.h \ 14526 arpa/telnet.h \ 14527 bind/bitypes.h \ 14528 bsdsetjmp.h \ 14529 crypt.h \ 14530 curses.h \ 14531 dbm.h \ 14532 dirent.h \ 14533 dlfcn.h \ 14534 err.h \ 14535 errno.h \ 14536 fcntl.h \ 14537 fnmatch.h \ 14538 gdbm/ndbm.h \ 14539 grp.h \ 14540 inttypes.h \ 14541 io.h \ 14542 limits.h \ 14543 maillock.h \ 14544 ndbm.h \ 14545 net/if.h \ 14546 netdb.h \ 14547 netinet/in.h \ 14548 netinet/in6.h \ 14549 netinet/in6_machtypes.h \ 14550 netinet/in6_var.h \ 14551 netinet/in_systm.h \ 14552 netinet6/in6.h \ 14553 netinfo/ni.h \ 14554 paths.h \ 14555 pthread.h \ 14556 pty.h \ 14557 pwd.h \ 14558 resolv.h \ 14559 rpcsvc/dbm.h \ 14560 sac.h \ 14561 security/pam_modules.h \ 14562 sgtty.h \ 14563 shadow.h \ 14564 siad.h \ 14565 signal.h \ 14566 stropts.h \ 14567 sys/bitypes.h \ 14568 sys/category.h \ 14569 sys/file.h \ 14570 sys/filio.h \ 14571 sys/ioccom.h \ 14572 sys/ioctl.h \ 14573 sys/param.h \ 14574 sys/proc.h \ 14575 sys/pty.h \ 14576 sys/ptyio.h \ 14577 sys/ptyvar.h \ 14578 sys/resource.h \ 14579 sys/select.h \ 14580 sys/socket.h \ 14581 sys/sockio.h \ 14582 sys/stat.h \ 14583 sys/str_tty.h \ 14584 sys/stream.h \ 14585 sys/stropts.h \ 14586 sys/strtty.h \ 14587 sys/syscall.h \ 14588 sys/sysctl.h \ 14589 sys/termio.h \ 14590 sys/time.h \ 14591 sys/timeb.h \ 14592 sys/times.h \ 14593 sys/tty.h \ 14594 sys/types.h \ 14595 sys/uio.h \ 14596 sys/un.h \ 14597 sys/utsname.h \ 14598 sys/wait.h \ 14599 syslog.h \ 14600 term.h \ 14601 termio.h \ 14602 termios.h \ 14603 time.h \ 14604 tmpdir.h \ 14605 udb.h \ 14606 unistd.h \ 14607 userconf.h \ 14608 usersec.h \ 14609 util.h \ 14610 utmp.h \ 14611 utmpx.h \ 14612 14613do 14614ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 14615 14616echo "$as_me:14616: checking for $ac_header" >&5 14617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14618if eval "test \"\${$ac_ac_Header+set}\" = set"; then 14619 echo $ECHO_N "(cached) $ECHO_C" >&6 14620else 14621 cat >conftest.$ac_ext <<_ACEOF 14622#line 14622 "configure" 14623#include "confdefs.h" 14624#include <$ac_header> 14625 14626_ACEOF 14627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 14628if { (eval echo $as_me:14628: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 14629 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 14630 ac_cpp_err=$ac_c_preproc_warn_flag 14631 else 14632 ac_cpp_err= 14633 fi 14634else 14635 ac_cpp_err=yes 14636fi 14637 14638if test -z "$ac_cpp_err"; then 14639 eval "$ac_ac_Header=yes" 14640else 14641 cat conftest.err >&5 14642 echo "$as_me: failed program was:" >&5 14643 cat conftest.$ac_ext >&5 14644 eval "$ac_ac_Header=no" 14645fi 14646rm -f conftest* 14647 14648fi 14649echo "$as_me:14649: result: `eval echo '${'$ac_ac_Header'}'`" >&5 14650echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 14651if test `eval echo '${'$ac_ac_Header'}'` = yes; then 14652 cat >>confdefs.h <<EOF 14653#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 14654EOF 14655 14656fi 14657done 14658 14659for ac_header in standards.h 14660do 14661ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 14662 14663echo "$as_me:14663: checking for $ac_header" >&5 14664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14665if eval "test \"\${$ac_ac_Header+set}\" = set"; then 14666 echo $ECHO_N "(cached) $ECHO_C" >&6 14667else 14668 cat >conftest.$ac_ext <<_ACEOF 14669#line 14669 "configure" 14670#include "confdefs.h" 14671#include <$ac_header> 14672 14673_ACEOF 14674ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 14675if { (eval echo $as_me:14675: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 14676 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 14677 ac_cpp_err=$ac_c_preproc_warn_flag 14678 else 14679 ac_cpp_err= 14680 fi 14681else 14682 ac_cpp_err=yes 14683fi 14684 14685if test -z "$ac_cpp_err"; then 14686 eval "$ac_ac_Header=yes" 14687else 14688 cat conftest.err >&5 14689 echo "$as_me: failed program was:" >&5 14690 cat conftest.$ac_ext >&5 14691 eval "$ac_ac_Header=no" 14692fi 14693rm -f conftest* 14694 14695fi 14696echo "$as_me:14696: result: `eval echo '${'$ac_ac_Header'}'`" >&5 14697echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 14698if test `eval echo '${'$ac_ac_Header'}'` = yes; then 14699 cat >>confdefs.h <<EOF 14700#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 14701EOF 14702 14703fi 14704done 14705 14706for i in netinet/ip.h netinet/tcp.h; do 14707 14708cv=`echo "$i" | sed 'y%./+-%__p_%'` 14709 14710echo "$as_me:14710: checking for $i" >&5 14711echo $ECHO_N "checking for $i... $ECHO_C" >&6 14712if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then 14713 echo $ECHO_N "(cached) $ECHO_C" >&6 14714else 14715 cat >conftest.$ac_ext <<_ACEOF 14716#line 14716 "configure" 14717#include "confdefs.h" 14718\ 14719#ifdef HAVE_STANDARDS_H 14720#include <standards.h> 14721#endif 14722#include <$i> 14723 14724_ACEOF 14725ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 14726if { (eval echo $as_me:14726: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 14727 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 14728 ac_cpp_err=$ac_c_preproc_warn_flag 14729 else 14730 ac_cpp_err= 14731 fi 14732else 14733 ac_cpp_err=yes 14734fi 14735 14736if test -z "$ac_cpp_err"; then 14737 eval "ac_cv_header_$cv=yes" 14738else 14739 cat conftest.err >&5 14740 echo "$as_me: failed program was:" >&5 14741 cat conftest.$ac_ext >&5 14742 eval "ac_cv_header_$cv=no" 14743fi 14744rm -f conftest* 14745 14746fi 14747echo "$as_me:14747: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5 14748echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6 14749ac_res=`eval echo \\$ac_cv_header_$cv` 14750if test "$ac_res" = yes; then 14751 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 14752 cat >>confdefs.h <<EOF 14753#define $ac_tr_hdr 1 14754EOF 14755 14756fi 14757done 14758if false;then 14759 14760for ac_header in netinet/ip.h netinet/tcp.h 14761do 14762ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 14763 14764echo "$as_me:14764: checking for $ac_header" >&5 14765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14766if eval "test \"\${$ac_ac_Header+set}\" = set"; then 14767 echo $ECHO_N "(cached) $ECHO_C" >&6 14768else 14769 cat >conftest.$ac_ext <<_ACEOF 14770#line 14770 "configure" 14771#include "confdefs.h" 14772#include <$ac_header> 14773 14774_ACEOF 14775ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 14776if { (eval echo $as_me:14776: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 14777 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 14778 ac_cpp_err=$ac_c_preproc_warn_flag 14779 else 14780 ac_cpp_err= 14781 fi 14782else 14783 ac_cpp_err=yes 14784fi 14785 14786if test -z "$ac_cpp_err"; then 14787 eval "$ac_ac_Header=yes" 14788else 14789 cat conftest.err >&5 14790 echo "$as_me: failed program was:" >&5 14791 cat conftest.$ac_ext >&5 14792 eval "$ac_ac_Header=no" 14793fi 14794rm -f conftest* 14795 14796fi 14797echo "$as_me:14797: result: `eval echo '${'$ac_ac_Header'}'`" >&5 14798echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 14799if test `eval echo '${'$ac_ac_Header'}'` = yes; then 14800 cat >>confdefs.h <<EOF 14801#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 14802EOF 14803 14804fi 14805done 14806 14807fi 14808 14809# Check whether --enable-netinfo or --disable-netinfo was given. 14810if test "${enable_netinfo+set}" = set; then 14811 enableval="$enable_netinfo" 14812 14813fi; 14814 14815if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then 14816 14817cat >>confdefs.h <<\EOF 14818#define HAVE_NETINFO 1 14819EOF 14820 14821fi 14822 14823if test "$ac_cv_header_err_h" = yes; then 14824 have_err_h_TRUE= 14825 have_err_h_FALSE='#' 14826else 14827 have_err_h_TRUE='#' 14828 have_err_h_FALSE= 14829fi 14830 14831if test "$ac_cv_header_fnmatch_h" = yes; then 14832 have_fnmatch_h_TRUE= 14833 have_fnmatch_h_FALSE='#' 14834else 14835 have_fnmatch_h_TRUE='#' 14836 have_fnmatch_h_FALSE= 14837fi 14838 14839# Check whether --with-ipv6 or --without-ipv6 was given. 14840if test "${with_ipv6+set}" = set; then 14841 withval="$with_ipv6" 14842 14843if test "$withval" = "no"; then 14844 ac_cv_lib_ipv6=no 14845fi 14846fi; 14847save_CFLAGS="${CFLAGS}" 14848if test "${ac_cv_lib_ipv6+set}" = set; then 14849 echo $ECHO_N "(cached) $ECHO_C" >&6 14850else 14851 v6type=unknown 14852v6lib=none 14853 14854echo "$as_me:14854: checking ipv6 stack type" >&5 14855echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 14856for i in v6d toshiba kame inria zeta linux; do 14857 case $i in 14858 v6d) 14859 cat >conftest.$ac_ext <<_ACEOF 14860#line 14860 "configure" 14861#include "confdefs.h" 14862 14863#include </usr/local/v6/include/sys/types.h> 14864#ifdef __V6D__ 14865yes 14866#endif 14867_ACEOF 14868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14869 egrep "yes" >/dev/null 2>&1; then 14870 v6type=$i; v6lib=v6; 14871 v6libdir=/usr/local/v6/lib; 14872 CFLAGS="-I/usr/local/v6/include $CFLAGS" 14873fi 14874rm -f conftest* 14875 14876 ;; 14877 toshiba) 14878 cat >conftest.$ac_ext <<_ACEOF 14879#line 14879 "configure" 14880#include "confdefs.h" 14881 14882#include <sys/param.h> 14883#ifdef _TOSHIBA_INET6 14884yes 14885#endif 14886_ACEOF 14887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14888 egrep "yes" >/dev/null 2>&1; then 14889 v6type=$i; v6lib=inet6; 14890 v6libdir=/usr/local/v6/lib; 14891 CFLAGS="-DINET6 $CFLAGS" 14892fi 14893rm -f conftest* 14894 14895 ;; 14896 kame) 14897 cat >conftest.$ac_ext <<_ACEOF 14898#line 14898 "configure" 14899#include "confdefs.h" 14900 14901#include <netinet/in.h> 14902#ifdef __KAME__ 14903yes 14904#endif 14905_ACEOF 14906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14907 egrep "yes" >/dev/null 2>&1; then 14908 v6type=$i; v6lib=inet6; 14909 v6libdir=/usr/local/v6/lib; 14910 CFLAGS="-DINET6 $CFLAGS" 14911fi 14912rm -f conftest* 14913 14914 ;; 14915 inria) 14916 cat >conftest.$ac_ext <<_ACEOF 14917#line 14917 "configure" 14918#include "confdefs.h" 14919 14920#include <netinet/in.h> 14921#ifdef IPV6_INRIA_VERSION 14922yes 14923#endif 14924_ACEOF 14925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14926 egrep "yes" >/dev/null 2>&1; then 14927 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 14928fi 14929rm -f conftest* 14930 14931 ;; 14932 zeta) 14933 cat >conftest.$ac_ext <<_ACEOF 14934#line 14934 "configure" 14935#include "confdefs.h" 14936 14937#include <sys/param.h> 14938#ifdef _ZETA_MINAMI_INET6 14939yes 14940#endif 14941_ACEOF 14942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14943 egrep "yes" >/dev/null 2>&1; then 14944 v6type=$i; v6lib=inet6; 14945 v6libdir=/usr/local/v6/lib; 14946 CFLAGS="-DINET6 $CFLAGS" 14947fi 14948rm -f conftest* 14949 14950 ;; 14951 linux) 14952 if test -d /usr/inet6; then 14953 v6type=$i 14954 v6lib=inet6 14955 v6libdir=/usr/inet6 14956 CFLAGS="-DINET6 $CFLAGS" 14957 fi 14958 ;; 14959 esac 14960 if test "$v6type" != "unknown"; then 14961 break 14962 fi 14963done 14964echo "$as_me:14964: result: $v6type" >&5 14965echo "${ECHO_T}$v6type" >&6 14966 14967if test "$v6lib" != "none"; then 14968 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 14969 if test -d $dir -a -f $dir/lib$v6lib.a; then 14970 LIBS="-L$dir -l$v6lib $LIBS" 14971 break 14972 fi 14973 done 14974fi 14975cat >conftest.$ac_ext <<_ACEOF 14976#line 14976 "configure" 14977#include "confdefs.h" 14978 14979#ifdef HAVE_SYS_TYPES_H 14980#include <sys/types.h> 14981#endif 14982#ifdef HAVE_SYS_SOCKET_H 14983#include <sys/socket.h> 14984#endif 14985#ifdef HAVE_NETINET_IN_H 14986#include <netinet/in.h> 14987#endif 14988#ifdef HAVE_NETINET_IN6_H 14989#include <netinet/in6.h> 14990#endif 14991 14992int 14993main () 14994{ 14995 14996 struct sockaddr_in6 sin6; 14997 int s; 14998 14999 s = socket(AF_INET6, SOCK_DGRAM, 0); 15000 15001 sin6.sin6_family = AF_INET6; 15002 sin6.sin6_port = htons(17); 15003 sin6.sin6_addr = in6addr_any; 15004 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 15005 15006 ; 15007 return 0; 15008} 15009_ACEOF 15010rm -f conftest.$ac_objext conftest$ac_exeext 15011if { (eval echo $as_me:15011: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15012 ac_cv_lib_ipv6=yes 15013else 15014 echo "$as_me: failed program was:" >&5 15015 cat conftest.$ac_ext >&5 15016 ac_cv_lib_ipv6=no 15017fi 15018rm -f conftest$ac_exeext conftest.$ac_ext 15019fi 15020 15021echo "$as_me:15021: checking for IPv6" >&5 15022echo $ECHO_N "checking for IPv6... $ECHO_C" >&6 15023echo "$as_me:15023: result: $ac_cv_lib_ipv6" >&5 15024echo "${ECHO_T}$ac_cv_lib_ipv6" >&6 15025if test "$ac_cv_lib_ipv6" = yes; then 15026 15027cat >>confdefs.h <<\EOF 15028#define HAVE_IPV6 1 15029EOF 15030 15031else 15032 CFLAGS="${save_CFLAGS}" 15033fi 15034 15035echo "$as_me:15035: checking for socket" >&5 15036echo $ECHO_N "checking for socket... $ECHO_C" >&6 15037if test "${ac_cv_funclib_socket+set}" = set; then 15038 echo $ECHO_N "(cached) $ECHO_C" >&6 15039else 15040 15041if eval "test \"\$ac_cv_func_socket\" != yes" ; then 15042 ac_save_LIBS="$LIBS" 15043 for ac_lib in "" socket; do 15044 if test -n "$ac_lib"; then 15045 ac_lib="-l$ac_lib" 15046 else 15047 ac_lib="" 15048 fi 15049 LIBS=" $ac_lib $ac_save_LIBS" 15050 cat >conftest.$ac_ext <<_ACEOF 15051#line 15051 "configure" 15052#include "confdefs.h" 15053 15054int 15055main () 15056{ 15057socket() 15058 ; 15059 return 0; 15060} 15061_ACEOF 15062rm -f conftest.$ac_objext conftest$ac_exeext 15063if { (eval echo $as_me:15063: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15064 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 15065else 15066 echo "$as_me: failed program was:" >&5 15067 cat conftest.$ac_ext >&5 15068fi 15069rm -f conftest$ac_exeext conftest.$ac_ext 15070 done 15071 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 15072 LIBS="$ac_save_LIBS" 15073fi 15074 15075fi 15076 15077eval "ac_res=\$ac_cv_funclib_socket" 15078 15079if false; then 15080 15081for ac_func in socket 15082do 15083ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15084echo "$as_me:15084: checking for $ac_func" >&5 15085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15086if eval "test \"\${$ac_ac_var+set}\" = set"; then 15087 echo $ECHO_N "(cached) $ECHO_C" >&6 15088else 15089 cat >conftest.$ac_ext <<_ACEOF 15090#line 15090 "configure" 15091#include "confdefs.h" 15092/* System header to define __stub macros and hopefully few prototypes, 15093 which can conflict with char $ac_func (); below. */ 15094#include <assert.h> 15095/* Override any gcc2 internal prototype to avoid an error. */ 15096#ifdef __cplusplus 15097extern "C" 15098#endif 15099/* We use char because int might match the return type of a gcc2 15100 builtin and then its argument prototype would still apply. */ 15101char $ac_func (); 15102char (*f) (); 15103 15104int 15105main () 15106{ 15107/* The GNU C library defines this for functions which it implements 15108 to always fail with ENOSYS. Some functions are actually named 15109 something starting with __ and the normal name is an alias. */ 15110#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15111choke me 15112#else 15113f = $ac_func; 15114#endif 15115 15116 ; 15117 return 0; 15118} 15119_ACEOF 15120rm -f conftest.$ac_objext conftest$ac_exeext 15121if { (eval echo $as_me:15121: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15122 eval "$ac_ac_var=yes" 15123else 15124 echo "$as_me: failed program was:" >&5 15125 cat conftest.$ac_ext >&5 15126 eval "$ac_ac_var=no" 15127fi 15128rm -f conftest$ac_exeext conftest.$ac_ext 15129fi 15130echo "$as_me:15130: result: `eval echo '${'$ac_ac_var'}'`" >&5 15131echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 15132if test `eval echo '${'$ac_ac_var'}'` = yes; then 15133 cat >>confdefs.h <<EOF 15134#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 15135EOF 15136 15137fi 15138done 15139 15140fi 15141# socket 15142eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15143eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15144eval "LIB_socket=$ac_res" 15145 15146case "$ac_res" in 15147 yes) 15148 eval "ac_cv_func_socket=yes" 15149 eval "LIB_socket=" 15150 cat >>confdefs.h <<EOF 15151#define $ac_tr_func 1 15152EOF 15153 15154 echo "$as_me:15154: result: yes" >&5 15155echo "${ECHO_T}yes" >&6 15156 ;; 15157 no) 15158 eval "ac_cv_func_socket=no" 15159 eval "LIB_socket=" 15160 echo "$as_me:15160: result: no" >&5 15161echo "${ECHO_T}no" >&6 15162 ;; 15163 *) 15164 eval "ac_cv_func_socket=yes" 15165 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15166 cat >>confdefs.h <<EOF 15167#define $ac_tr_func 1 15168EOF 15169 15170 cat >>confdefs.h <<EOF 15171#define $ac_tr_lib 1 15172EOF 15173 15174 echo "$as_me:15174: result: yes, in $ac_res" >&5 15175echo "${ECHO_T}yes, in $ac_res" >&6 15176 ;; 15177esac 15178 15179if test -n "$LIB_socket"; then 15180 LIBS="$LIB_socket $LIBS" 15181fi 15182 15183echo "$as_me:15183: checking for gethostbyname" >&5 15184echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 15185if test "${ac_cv_funclib_gethostbyname+set}" = set; then 15186 echo $ECHO_N "(cached) $ECHO_C" >&6 15187else 15188 15189if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 15190 ac_save_LIBS="$LIBS" 15191 for ac_lib in "" nsl; do 15192 if test -n "$ac_lib"; then 15193 ac_lib="-l$ac_lib" 15194 else 15195 ac_lib="" 15196 fi 15197 LIBS=" $ac_lib $ac_save_LIBS" 15198 cat >conftest.$ac_ext <<_ACEOF 15199#line 15199 "configure" 15200#include "confdefs.h" 15201 15202int 15203main () 15204{ 15205gethostbyname() 15206 ; 15207 return 0; 15208} 15209_ACEOF 15210rm -f conftest.$ac_objext conftest$ac_exeext 15211if { (eval echo $as_me:15211: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15212 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 15213else 15214 echo "$as_me: failed program was:" >&5 15215 cat conftest.$ac_ext >&5 15216fi 15217rm -f conftest$ac_exeext conftest.$ac_ext 15218 done 15219 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 15220 LIBS="$ac_save_LIBS" 15221fi 15222 15223fi 15224 15225eval "ac_res=\$ac_cv_funclib_gethostbyname" 15226 15227if false; then 15228 15229for ac_func in gethostbyname 15230do 15231ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15232echo "$as_me:15232: checking for $ac_func" >&5 15233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15234if eval "test \"\${$ac_ac_var+set}\" = set"; then 15235 echo $ECHO_N "(cached) $ECHO_C" >&6 15236else 15237 cat >conftest.$ac_ext <<_ACEOF 15238#line 15238 "configure" 15239#include "confdefs.h" 15240/* System header to define __stub macros and hopefully few prototypes, 15241 which can conflict with char $ac_func (); below. */ 15242#include <assert.h> 15243/* Override any gcc2 internal prototype to avoid an error. */ 15244#ifdef __cplusplus 15245extern "C" 15246#endif 15247/* We use char because int might match the return type of a gcc2 15248 builtin and then its argument prototype would still apply. */ 15249char $ac_func (); 15250char (*f) (); 15251 15252int 15253main () 15254{ 15255/* The GNU C library defines this for functions which it implements 15256 to always fail with ENOSYS. Some functions are actually named 15257 something starting with __ and the normal name is an alias. */ 15258#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15259choke me 15260#else 15261f = $ac_func; 15262#endif 15263 15264 ; 15265 return 0; 15266} 15267_ACEOF 15268rm -f conftest.$ac_objext conftest$ac_exeext 15269if { (eval echo $as_me:15269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15270 eval "$ac_ac_var=yes" 15271else 15272 echo "$as_me: failed program was:" >&5 15273 cat conftest.$ac_ext >&5 15274 eval "$ac_ac_var=no" 15275fi 15276rm -f conftest$ac_exeext conftest.$ac_ext 15277fi 15278echo "$as_me:15278: result: `eval echo '${'$ac_ac_var'}'`" >&5 15279echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 15280if test `eval echo '${'$ac_ac_var'}'` = yes; then 15281 cat >>confdefs.h <<EOF 15282#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 15283EOF 15284 15285fi 15286done 15287 15288fi 15289# gethostbyname 15290eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15291eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15292eval "LIB_gethostbyname=$ac_res" 15293 15294case "$ac_res" in 15295 yes) 15296 eval "ac_cv_func_gethostbyname=yes" 15297 eval "LIB_gethostbyname=" 15298 cat >>confdefs.h <<EOF 15299#define $ac_tr_func 1 15300EOF 15301 15302 echo "$as_me:15302: result: yes" >&5 15303echo "${ECHO_T}yes" >&6 15304 ;; 15305 no) 15306 eval "ac_cv_func_gethostbyname=no" 15307 eval "LIB_gethostbyname=" 15308 echo "$as_me:15308: result: no" >&5 15309echo "${ECHO_T}no" >&6 15310 ;; 15311 *) 15312 eval "ac_cv_func_gethostbyname=yes" 15313 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15314 cat >>confdefs.h <<EOF 15315#define $ac_tr_func 1 15316EOF 15317 15318 cat >>confdefs.h <<EOF 15319#define $ac_tr_lib 1 15320EOF 15321 15322 echo "$as_me:15322: result: yes, in $ac_res" >&5 15323echo "${ECHO_T}yes, in $ac_res" >&6 15324 ;; 15325esac 15326 15327if test -n "$LIB_gethostbyname"; then 15328 LIBS="$LIB_gethostbyname $LIBS" 15329fi 15330 15331echo "$as_me:15331: checking for syslog" >&5 15332echo $ECHO_N "checking for syslog... $ECHO_C" >&6 15333if test "${ac_cv_funclib_syslog+set}" = set; then 15334 echo $ECHO_N "(cached) $ECHO_C" >&6 15335else 15336 15337if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 15338 ac_save_LIBS="$LIBS" 15339 for ac_lib in "" syslog; do 15340 if test -n "$ac_lib"; then 15341 ac_lib="-l$ac_lib" 15342 else 15343 ac_lib="" 15344 fi 15345 LIBS=" $ac_lib $ac_save_LIBS" 15346 cat >conftest.$ac_ext <<_ACEOF 15347#line 15347 "configure" 15348#include "confdefs.h" 15349 15350int 15351main () 15352{ 15353syslog() 15354 ; 15355 return 0; 15356} 15357_ACEOF 15358rm -f conftest.$ac_objext conftest$ac_exeext 15359if { (eval echo $as_me:15359: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15360 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 15361else 15362 echo "$as_me: failed program was:" >&5 15363 cat conftest.$ac_ext >&5 15364fi 15365rm -f conftest$ac_exeext conftest.$ac_ext 15366 done 15367 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 15368 LIBS="$ac_save_LIBS" 15369fi 15370 15371fi 15372 15373eval "ac_res=\$ac_cv_funclib_syslog" 15374 15375if false; then 15376 15377for ac_func in syslog 15378do 15379ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15380echo "$as_me:15380: checking for $ac_func" >&5 15381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15382if eval "test \"\${$ac_ac_var+set}\" = set"; then 15383 echo $ECHO_N "(cached) $ECHO_C" >&6 15384else 15385 cat >conftest.$ac_ext <<_ACEOF 15386#line 15386 "configure" 15387#include "confdefs.h" 15388/* System header to define __stub macros and hopefully few prototypes, 15389 which can conflict with char $ac_func (); below. */ 15390#include <assert.h> 15391/* Override any gcc2 internal prototype to avoid an error. */ 15392#ifdef __cplusplus 15393extern "C" 15394#endif 15395/* We use char because int might match the return type of a gcc2 15396 builtin and then its argument prototype would still apply. */ 15397char $ac_func (); 15398char (*f) (); 15399 15400int 15401main () 15402{ 15403/* The GNU C library defines this for functions which it implements 15404 to always fail with ENOSYS. Some functions are actually named 15405 something starting with __ and the normal name is an alias. */ 15406#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15407choke me 15408#else 15409f = $ac_func; 15410#endif 15411 15412 ; 15413 return 0; 15414} 15415_ACEOF 15416rm -f conftest.$ac_objext conftest$ac_exeext 15417if { (eval echo $as_me:15417: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15418 eval "$ac_ac_var=yes" 15419else 15420 echo "$as_me: failed program was:" >&5 15421 cat conftest.$ac_ext >&5 15422 eval "$ac_ac_var=no" 15423fi 15424rm -f conftest$ac_exeext conftest.$ac_ext 15425fi 15426echo "$as_me:15426: result: `eval echo '${'$ac_ac_var'}'`" >&5 15427echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 15428if test `eval echo '${'$ac_ac_var'}'` = yes; then 15429 cat >>confdefs.h <<EOF 15430#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 15431EOF 15432 15433fi 15434done 15435 15436fi 15437# syslog 15438eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15439eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15440eval "LIB_syslog=$ac_res" 15441 15442case "$ac_res" in 15443 yes) 15444 eval "ac_cv_func_syslog=yes" 15445 eval "LIB_syslog=" 15446 cat >>confdefs.h <<EOF 15447#define $ac_tr_func 1 15448EOF 15449 15450 echo "$as_me:15450: result: yes" >&5 15451echo "${ECHO_T}yes" >&6 15452 ;; 15453 no) 15454 eval "ac_cv_func_syslog=no" 15455 eval "LIB_syslog=" 15456 echo "$as_me:15456: result: no" >&5 15457echo "${ECHO_T}no" >&6 15458 ;; 15459 *) 15460 eval "ac_cv_func_syslog=yes" 15461 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15462 cat >>confdefs.h <<EOF 15463#define $ac_tr_func 1 15464EOF 15465 15466 cat >>confdefs.h <<EOF 15467#define $ac_tr_lib 1 15468EOF 15469 15470 echo "$as_me:15470: result: yes, in $ac_res" >&5 15471echo "${ECHO_T}yes, in $ac_res" >&6 15472 ;; 15473esac 15474 15475if test -n "$LIB_syslog"; then 15476 LIBS="$LIB_syslog $LIBS" 15477fi 15478 15479echo "$as_me:15479: checking for logwtmp" >&5 15480echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6 15481if test "${ac_cv_funclib_logwtmp+set}" = set; then 15482 echo $ECHO_N "(cached) $ECHO_C" >&6 15483else 15484 15485if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 15486 ac_save_LIBS="$LIBS" 15487 for ac_lib in "" util; do 15488 if test -n "$ac_lib"; then 15489 ac_lib="-l$ac_lib" 15490 else 15491 ac_lib="" 15492 fi 15493 LIBS=" $ac_lib $ac_save_LIBS" 15494 cat >conftest.$ac_ext <<_ACEOF 15495#line 15495 "configure" 15496#include "confdefs.h" 15497 15498int 15499main () 15500{ 15501logwtmp() 15502 ; 15503 return 0; 15504} 15505_ACEOF 15506rm -f conftest.$ac_objext conftest$ac_exeext 15507if { (eval echo $as_me:15507: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15508 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 15509else 15510 echo "$as_me: failed program was:" >&5 15511 cat conftest.$ac_ext >&5 15512fi 15513rm -f conftest$ac_exeext conftest.$ac_ext 15514 done 15515 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 15516 LIBS="$ac_save_LIBS" 15517fi 15518 15519fi 15520 15521eval "ac_res=\$ac_cv_funclib_logwtmp" 15522 15523if false; then 15524 15525for ac_func in logwtmp 15526do 15527ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15528echo "$as_me:15528: checking for $ac_func" >&5 15529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15530if eval "test \"\${$ac_ac_var+set}\" = set"; then 15531 echo $ECHO_N "(cached) $ECHO_C" >&6 15532else 15533 cat >conftest.$ac_ext <<_ACEOF 15534#line 15534 "configure" 15535#include "confdefs.h" 15536/* System header to define __stub macros and hopefully few prototypes, 15537 which can conflict with char $ac_func (); below. */ 15538#include <assert.h> 15539/* Override any gcc2 internal prototype to avoid an error. */ 15540#ifdef __cplusplus 15541extern "C" 15542#endif 15543/* We use char because int might match the return type of a gcc2 15544 builtin and then its argument prototype would still apply. */ 15545char $ac_func (); 15546char (*f) (); 15547 15548int 15549main () 15550{ 15551/* The GNU C library defines this for functions which it implements 15552 to always fail with ENOSYS. Some functions are actually named 15553 something starting with __ and the normal name is an alias. */ 15554#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15555choke me 15556#else 15557f = $ac_func; 15558#endif 15559 15560 ; 15561 return 0; 15562} 15563_ACEOF 15564rm -f conftest.$ac_objext conftest$ac_exeext 15565if { (eval echo $as_me:15565: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15566 eval "$ac_ac_var=yes" 15567else 15568 echo "$as_me: failed program was:" >&5 15569 cat conftest.$ac_ext >&5 15570 eval "$ac_ac_var=no" 15571fi 15572rm -f conftest$ac_exeext conftest.$ac_ext 15573fi 15574echo "$as_me:15574: result: `eval echo '${'$ac_ac_var'}'`" >&5 15575echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 15576if test `eval echo '${'$ac_ac_var'}'` = yes; then 15577 cat >>confdefs.h <<EOF 15578#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 15579EOF 15580 15581fi 15582done 15583 15584fi 15585# logwtmp 15586eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15587eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15588eval "LIB_logwtmp=$ac_res" 15589 15590case "$ac_res" in 15591 yes) 15592 eval "ac_cv_func_logwtmp=yes" 15593 eval "LIB_logwtmp=" 15594 cat >>confdefs.h <<EOF 15595#define $ac_tr_func 1 15596EOF 15597 15598 echo "$as_me:15598: result: yes" >&5 15599echo "${ECHO_T}yes" >&6 15600 ;; 15601 no) 15602 eval "ac_cv_func_logwtmp=no" 15603 eval "LIB_logwtmp=" 15604 echo "$as_me:15604: result: no" >&5 15605echo "${ECHO_T}no" >&6 15606 ;; 15607 *) 15608 eval "ac_cv_func_logwtmp=yes" 15609 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15610 cat >>confdefs.h <<EOF 15611#define $ac_tr_func 1 15612EOF 15613 15614 cat >>confdefs.h <<EOF 15615#define $ac_tr_lib 1 15616EOF 15617 15618 echo "$as_me:15618: result: yes, in $ac_res" >&5 15619echo "${ECHO_T}yes, in $ac_res" >&6 15620 ;; 15621esac 15622 15623echo "$as_me:15623: checking for tgetent" >&5 15624echo $ECHO_N "checking for tgetent... $ECHO_C" >&6 15625if test "${ac_cv_funclib_tgetent+set}" = set; then 15626 echo $ECHO_N "(cached) $ECHO_C" >&6 15627else 15628 15629if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 15630 ac_save_LIBS="$LIBS" 15631 for ac_lib in "" termcap ncurses curses; do 15632 if test -n "$ac_lib"; then 15633 ac_lib="-l$ac_lib" 15634 else 15635 ac_lib="" 15636 fi 15637 LIBS=" $ac_lib $ac_save_LIBS" 15638 cat >conftest.$ac_ext <<_ACEOF 15639#line 15639 "configure" 15640#include "confdefs.h" 15641 15642int 15643main () 15644{ 15645tgetent() 15646 ; 15647 return 0; 15648} 15649_ACEOF 15650rm -f conftest.$ac_objext conftest$ac_exeext 15651if { (eval echo $as_me:15651: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15652 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 15653else 15654 echo "$as_me: failed program was:" >&5 15655 cat conftest.$ac_ext >&5 15656fi 15657rm -f conftest$ac_exeext conftest.$ac_ext 15658 done 15659 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 15660 LIBS="$ac_save_LIBS" 15661fi 15662 15663fi 15664 15665eval "ac_res=\$ac_cv_funclib_tgetent" 15666 15667if false; then 15668 15669for ac_func in tgetent 15670do 15671ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15672echo "$as_me:15672: checking for $ac_func" >&5 15673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15674if eval "test \"\${$ac_ac_var+set}\" = set"; then 15675 echo $ECHO_N "(cached) $ECHO_C" >&6 15676else 15677 cat >conftest.$ac_ext <<_ACEOF 15678#line 15678 "configure" 15679#include "confdefs.h" 15680/* System header to define __stub macros and hopefully few prototypes, 15681 which can conflict with char $ac_func (); below. */ 15682#include <assert.h> 15683/* Override any gcc2 internal prototype to avoid an error. */ 15684#ifdef __cplusplus 15685extern "C" 15686#endif 15687/* We use char because int might match the return type of a gcc2 15688 builtin and then its argument prototype would still apply. */ 15689char $ac_func (); 15690char (*f) (); 15691 15692int 15693main () 15694{ 15695/* The GNU C library defines this for functions which it implements 15696 to always fail with ENOSYS. Some functions are actually named 15697 something starting with __ and the normal name is an alias. */ 15698#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15699choke me 15700#else 15701f = $ac_func; 15702#endif 15703 15704 ; 15705 return 0; 15706} 15707_ACEOF 15708rm -f conftest.$ac_objext conftest$ac_exeext 15709if { (eval echo $as_me:15709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15710 eval "$ac_ac_var=yes" 15711else 15712 echo "$as_me: failed program was:" >&5 15713 cat conftest.$ac_ext >&5 15714 eval "$ac_ac_var=no" 15715fi 15716rm -f conftest$ac_exeext conftest.$ac_ext 15717fi 15718echo "$as_me:15718: result: `eval echo '${'$ac_ac_var'}'`" >&5 15719echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 15720if test `eval echo '${'$ac_ac_var'}'` = yes; then 15721 cat >>confdefs.h <<EOF 15722#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 15723EOF 15724 15725fi 15726done 15727 15728fi 15729# tgetent 15730eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15731eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15732eval "LIB_tgetent=$ac_res" 15733 15734case "$ac_res" in 15735 yes) 15736 eval "ac_cv_func_tgetent=yes" 15737 eval "LIB_tgetent=" 15738 cat >>confdefs.h <<EOF 15739#define $ac_tr_func 1 15740EOF 15741 15742 echo "$as_me:15742: result: yes" >&5 15743echo "${ECHO_T}yes" >&6 15744 ;; 15745 no) 15746 eval "ac_cv_func_tgetent=no" 15747 eval "LIB_tgetent=" 15748 echo "$as_me:15748: result: no" >&5 15749echo "${ECHO_T}no" >&6 15750 ;; 15751 *) 15752 eval "ac_cv_func_tgetent=yes" 15753 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15754 cat >>confdefs.h <<EOF 15755#define $ac_tr_func 1 15756EOF 15757 15758 cat >>confdefs.h <<EOF 15759#define $ac_tr_lib 1 15760EOF 15761 15762 echo "$as_me:15762: result: yes, in $ac_res" >&5 15763echo "${ECHO_T}yes, in $ac_res" >&6 15764 ;; 15765esac 15766 15767echo "$as_me:15767: checking for gethostbyname2" >&5 15768echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6 15769if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 15770 echo $ECHO_N "(cached) $ECHO_C" >&6 15771else 15772 15773if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 15774 ac_save_LIBS="$LIBS" 15775 for ac_lib in "" inet6 ip6; do 15776 if test -n "$ac_lib"; then 15777 ac_lib="-l$ac_lib" 15778 else 15779 ac_lib="" 15780 fi 15781 LIBS=" $ac_lib $ac_save_LIBS" 15782 cat >conftest.$ac_ext <<_ACEOF 15783#line 15783 "configure" 15784#include "confdefs.h" 15785 15786int 15787main () 15788{ 15789gethostbyname2() 15790 ; 15791 return 0; 15792} 15793_ACEOF 15794rm -f conftest.$ac_objext conftest$ac_exeext 15795if { (eval echo $as_me:15795: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15796 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 15797else 15798 echo "$as_me: failed program was:" >&5 15799 cat conftest.$ac_ext >&5 15800fi 15801rm -f conftest$ac_exeext conftest.$ac_ext 15802 done 15803 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 15804 LIBS="$ac_save_LIBS" 15805fi 15806 15807fi 15808 15809eval "ac_res=\$ac_cv_funclib_gethostbyname2" 15810 15811if false; then 15812 15813for ac_func in gethostbyname2 15814do 15815ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15816echo "$as_me:15816: checking for $ac_func" >&5 15817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15818if eval "test \"\${$ac_ac_var+set}\" = set"; then 15819 echo $ECHO_N "(cached) $ECHO_C" >&6 15820else 15821 cat >conftest.$ac_ext <<_ACEOF 15822#line 15822 "configure" 15823#include "confdefs.h" 15824/* System header to define __stub macros and hopefully few prototypes, 15825 which can conflict with char $ac_func (); below. */ 15826#include <assert.h> 15827/* Override any gcc2 internal prototype to avoid an error. */ 15828#ifdef __cplusplus 15829extern "C" 15830#endif 15831/* We use char because int might match the return type of a gcc2 15832 builtin and then its argument prototype would still apply. */ 15833char $ac_func (); 15834char (*f) (); 15835 15836int 15837main () 15838{ 15839/* The GNU C library defines this for functions which it implements 15840 to always fail with ENOSYS. Some functions are actually named 15841 something starting with __ and the normal name is an alias. */ 15842#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15843choke me 15844#else 15845f = $ac_func; 15846#endif 15847 15848 ; 15849 return 0; 15850} 15851_ACEOF 15852rm -f conftest.$ac_objext conftest$ac_exeext 15853if { (eval echo $as_me:15853: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15854 eval "$ac_ac_var=yes" 15855else 15856 echo "$as_me: failed program was:" >&5 15857 cat conftest.$ac_ext >&5 15858 eval "$ac_ac_var=no" 15859fi 15860rm -f conftest$ac_exeext conftest.$ac_ext 15861fi 15862echo "$as_me:15862: result: `eval echo '${'$ac_ac_var'}'`" >&5 15863echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 15864if test `eval echo '${'$ac_ac_var'}'` = yes; then 15865 cat >>confdefs.h <<EOF 15866#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 15867EOF 15868 15869fi 15870done 15871 15872fi 15873# gethostbyname2 15874eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15875eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15876eval "LIB_gethostbyname2=$ac_res" 15877 15878case "$ac_res" in 15879 yes) 15880 eval "ac_cv_func_gethostbyname2=yes" 15881 eval "LIB_gethostbyname2=" 15882 cat >>confdefs.h <<EOF 15883#define $ac_tr_func 1 15884EOF 15885 15886 echo "$as_me:15886: result: yes" >&5 15887echo "${ECHO_T}yes" >&6 15888 ;; 15889 no) 15890 eval "ac_cv_func_gethostbyname2=no" 15891 eval "LIB_gethostbyname2=" 15892 echo "$as_me:15892: result: no" >&5 15893echo "${ECHO_T}no" >&6 15894 ;; 15895 *) 15896 eval "ac_cv_func_gethostbyname2=yes" 15897 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15898 cat >>confdefs.h <<EOF 15899#define $ac_tr_func 1 15900EOF 15901 15902 cat >>confdefs.h <<EOF 15903#define $ac_tr_lib 1 15904EOF 15905 15906 echo "$as_me:15906: result: yes, in $ac_res" >&5 15907echo "${ECHO_T}yes, in $ac_res" >&6 15908 ;; 15909esac 15910 15911if test -n "$LIB_gethostbyname2"; then 15912 LIBS="$LIB_gethostbyname2 $LIBS" 15913fi 15914 15915echo "$as_me:15915: checking for res_search" >&5 15916echo $ECHO_N "checking for res_search... $ECHO_C" >&6 15917if test "${ac_cv_funclib_res_search+set}" = set; then 15918 echo $ECHO_N "(cached) $ECHO_C" >&6 15919else 15920 15921if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 15922 ac_save_LIBS="$LIBS" 15923 for ac_lib in "" resolv; do 15924 if test -n "$ac_lib"; then 15925 ac_lib="-l$ac_lib" 15926 else 15927 ac_lib="" 15928 fi 15929 LIBS=" $ac_lib $ac_save_LIBS" 15930 cat >conftest.$ac_ext <<_ACEOF 15931#line 15931 "configure" 15932#include "confdefs.h" 15933 15934#include <stdio.h> 15935#ifdef HAVE_SYS_TYPES_H 15936#include <sys/types.h> 15937#endif 15938#ifdef HAVE_NETINET_IN_H 15939#include <netinet/in.h> 15940#endif 15941#ifdef HAVE_ARPA_NAMESER_H 15942#include <arpa/nameser.h> 15943#endif 15944#ifdef HAVE_RESOLV_H 15945#include <resolv.h> 15946#endif 15947 15948int 15949main () 15950{ 15951res_search(0,0,0,0,0) 15952 ; 15953 return 0; 15954} 15955_ACEOF 15956rm -f conftest.$ac_objext conftest$ac_exeext 15957if { (eval echo $as_me:15957: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 15958 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 15959else 15960 echo "$as_me: failed program was:" >&5 15961 cat conftest.$ac_ext >&5 15962fi 15963rm -f conftest$ac_exeext conftest.$ac_ext 15964 done 15965 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 15966 LIBS="$ac_save_LIBS" 15967fi 15968 15969fi 15970 15971eval "ac_res=\$ac_cv_funclib_res_search" 15972 15973if false; then 15974 15975for ac_func in res_search 15976do 15977ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15978echo "$as_me:15978: checking for $ac_func" >&5 15979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15980if eval "test \"\${$ac_ac_var+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 $ac_func (); 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 $ac_func (); 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_$ac_func) || defined (__stub___$ac_func) 16005choke me 16006#else 16007f = $ac_func; 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; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16016 eval "$ac_ac_var=yes" 16017else 16018 echo "$as_me: failed program was:" >&5 16019 cat conftest.$ac_ext >&5 16020 eval "$ac_ac_var=no" 16021fi 16022rm -f conftest$ac_exeext conftest.$ac_ext 16023fi 16024echo "$as_me:16024: result: `eval echo '${'$ac_ac_var'}'`" >&5 16025echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 16026if test `eval echo '${'$ac_ac_var'}'` = yes; then 16027 cat >>confdefs.h <<EOF 16028#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 16029EOF 16030 16031fi 16032done 16033 16034fi 16035# res_search 16036eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16037eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16038eval "LIB_res_search=$ac_res" 16039 16040case "$ac_res" in 16041 yes) 16042 eval "ac_cv_func_res_search=yes" 16043 eval "LIB_res_search=" 16044 cat >>confdefs.h <<EOF 16045#define $ac_tr_func 1 16046EOF 16047 16048 echo "$as_me:16048: result: yes" >&5 16049echo "${ECHO_T}yes" >&6 16050 ;; 16051 no) 16052 eval "ac_cv_func_res_search=no" 16053 eval "LIB_res_search=" 16054 echo "$as_me:16054: result: no" >&5 16055echo "${ECHO_T}no" >&6 16056 ;; 16057 *) 16058 eval "ac_cv_func_res_search=yes" 16059 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16060 cat >>confdefs.h <<EOF 16061#define $ac_tr_func 1 16062EOF 16063 16064 cat >>confdefs.h <<EOF 16065#define $ac_tr_lib 1 16066EOF 16067 16068 echo "$as_me:16068: result: yes, in $ac_res" >&5 16069echo "${ECHO_T}yes, in $ac_res" >&6 16070 ;; 16071esac 16072 16073if test -n "$LIB_res_search"; then 16074 LIBS="$LIB_res_search $LIBS" 16075fi 16076 16077echo "$as_me:16077: checking for dn_expand" >&5 16078echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6 16079if test "${ac_cv_funclib_dn_expand+set}" = set; then 16080 echo $ECHO_N "(cached) $ECHO_C" >&6 16081else 16082 16083if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 16084 ac_save_LIBS="$LIBS" 16085 for ac_lib in "" resolv; do 16086 if test -n "$ac_lib"; then 16087 ac_lib="-l$ac_lib" 16088 else 16089 ac_lib="" 16090 fi 16091 LIBS=" $ac_lib $ac_save_LIBS" 16092 cat >conftest.$ac_ext <<_ACEOF 16093#line 16093 "configure" 16094#include "confdefs.h" 16095 16096#include <stdio.h> 16097#ifdef HAVE_SYS_TYPES_H 16098#include <sys/types.h> 16099#endif 16100#ifdef HAVE_NETINET_IN_H 16101#include <netinet/in.h> 16102#endif 16103#ifdef HAVE_ARPA_NAMESER_H 16104#include <arpa/nameser.h> 16105#endif 16106#ifdef HAVE_RESOLV_H 16107#include <resolv.h> 16108#endif 16109 16110int 16111main () 16112{ 16113dn_expand(0,0,0,0,0) 16114 ; 16115 return 0; 16116} 16117_ACEOF 16118rm -f conftest.$ac_objext conftest$ac_exeext 16119if { (eval echo $as_me:16119: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16120 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 16121else 16122 echo "$as_me: failed program was:" >&5 16123 cat conftest.$ac_ext >&5 16124fi 16125rm -f conftest$ac_exeext conftest.$ac_ext 16126 done 16127 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 16128 LIBS="$ac_save_LIBS" 16129fi 16130 16131fi 16132 16133eval "ac_res=\$ac_cv_funclib_dn_expand" 16134 16135if false; then 16136 16137for ac_func in dn_expand 16138do 16139ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 16140echo "$as_me:16140: checking for $ac_func" >&5 16141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16142if eval "test \"\${$ac_ac_var+set}\" = set"; then 16143 echo $ECHO_N "(cached) $ECHO_C" >&6 16144else 16145 cat >conftest.$ac_ext <<_ACEOF 16146#line 16146 "configure" 16147#include "confdefs.h" 16148/* System header to define __stub macros and hopefully few prototypes, 16149 which can conflict with char $ac_func (); below. */ 16150#include <assert.h> 16151/* Override any gcc2 internal prototype to avoid an error. */ 16152#ifdef __cplusplus 16153extern "C" 16154#endif 16155/* We use char because int might match the return type of a gcc2 16156 builtin and then its argument prototype would still apply. */ 16157char $ac_func (); 16158char (*f) (); 16159 16160int 16161main () 16162{ 16163/* The GNU C library defines this for functions which it implements 16164 to always fail with ENOSYS. Some functions are actually named 16165 something starting with __ and the normal name is an alias. */ 16166#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16167choke me 16168#else 16169f = $ac_func; 16170#endif 16171 16172 ; 16173 return 0; 16174} 16175_ACEOF 16176rm -f conftest.$ac_objext conftest$ac_exeext 16177if { (eval echo $as_me:16177: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16178 eval "$ac_ac_var=yes" 16179else 16180 echo "$as_me: failed program was:" >&5 16181 cat conftest.$ac_ext >&5 16182 eval "$ac_ac_var=no" 16183fi 16184rm -f conftest$ac_exeext conftest.$ac_ext 16185fi 16186echo "$as_me:16186: result: `eval echo '${'$ac_ac_var'}'`" >&5 16187echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 16188if test `eval echo '${'$ac_ac_var'}'` = yes; then 16189 cat >>confdefs.h <<EOF 16190#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 16191EOF 16192 16193fi 16194done 16195 16196fi 16197# dn_expand 16198eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16199eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16200eval "LIB_dn_expand=$ac_res" 16201 16202case "$ac_res" in 16203 yes) 16204 eval "ac_cv_func_dn_expand=yes" 16205 eval "LIB_dn_expand=" 16206 cat >>confdefs.h <<EOF 16207#define $ac_tr_func 1 16208EOF 16209 16210 echo "$as_me:16210: result: yes" >&5 16211echo "${ECHO_T}yes" >&6 16212 ;; 16213 no) 16214 eval "ac_cv_func_dn_expand=no" 16215 eval "LIB_dn_expand=" 16216 echo "$as_me:16216: result: no" >&5 16217echo "${ECHO_T}no" >&6 16218 ;; 16219 *) 16220 eval "ac_cv_func_dn_expand=yes" 16221 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16222 cat >>confdefs.h <<EOF 16223#define $ac_tr_func 1 16224EOF 16225 16226 cat >>confdefs.h <<EOF 16227#define $ac_tr_lib 1 16228EOF 16229 16230 echo "$as_me:16230: result: yes, in $ac_res" >&5 16231echo "${ECHO_T}yes, in $ac_res" >&6 16232 ;; 16233esac 16234 16235if test -n "$LIB_dn_expand"; then 16236 LIBS="$LIB_dn_expand $LIBS" 16237fi 16238 16239echo "$as_me:16239: checking for working snprintf" >&5 16240echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 16241if test "${ac_cv_func_snprintf_working+set}" = set; then 16242 echo $ECHO_N "(cached) $ECHO_C" >&6 16243else 16244 ac_cv_func_snprintf_working=yes 16245if test "$cross_compiling" = yes; then 16246 : 16247else 16248 cat >conftest.$ac_ext <<_ACEOF 16249#line 16249 "configure" 16250#include "confdefs.h" 16251 16252#include <stdio.h> 16253#include <string.h> 16254int main() 16255{ 16256 char foo[3]; 16257 snprintf(foo, 2, "12"); 16258 return strcmp(foo, "1"); 16259} 16260_ACEOF 16261rm -f conftest$ac_exeext 16262{ (eval echo $as_me:16262: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 16263 (./conftest$ac_exeext) >&5 2>&1; 16264ac_status=$? 16265if test $ac_status = 0; then 16266 : 16267else 16268 echo "$as_me: program exited with status $ac_status" >&5 16269echo "$as_me: failed program was:" >&5 16270cat conftest.$ac_ext >&5 16271ac_cv_func_snprintf_working=no 16272fi 16273 16274rm -f conftest$ac_exeext conftest.$ac_ext 16275fi 16276 16277fi 16278echo "$as_me:16278: result: $ac_cv_func_snprintf_working" >&5 16279echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6 16280 16281if test "$ac_cv_func_snprintf_working" = yes; then 16282 16283cat >>confdefs.h <<EOF 16284#define HAVE_SNPRINTF 1 16285EOF 16286 16287fi 16288if test "$ac_cv_func_snprintf_working" = yes; then 16289 16290if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 16291echo "$as_me:16291: checking if snprintf needs a prototype" >&5 16292echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6 16293if test "${ac_cv_func_snprintf_noproto+set}" = set; then 16294 echo $ECHO_N "(cached) $ECHO_C" >&6 16295else 16296 cat >conftest.$ac_ext <<_ACEOF 16297#line 16297 "configure" 16298#include "confdefs.h" 16299#include <stdio.h> 16300int 16301main () 16302{ 16303struct foo { int foo; } xx; 16304extern int snprintf (struct foo*); 16305snprintf(&xx); 16306 16307 ; 16308 return 0; 16309} 16310_ACEOF 16311rm -f conftest.$ac_objext 16312if { (eval echo $as_me:16312: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 16313 eval "ac_cv_func_snprintf_noproto=yes" 16314else 16315 echo "$as_me: failed program was:" >&5 16316 cat conftest.$ac_ext >&5 16317 eval "ac_cv_func_snprintf_noproto=no" 16318fi 16319rm -f conftest.$ac_objext conftest.$ac_ext 16320fi 16321echo "$as_me:16321: result: $ac_cv_func_snprintf_noproto" >&5 16322echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6 16323 16324if test "$ac_cv_func_snprintf_noproto" = yes; then 16325 16326cat >>confdefs.h <<\EOF 16327#define NEED_SNPRINTF_PROTO 1 16328EOF 16329 16330fi 16331 16332fi 16333 16334fi 16335 16336echo "$as_me:16336: checking for working vsnprintf" >&5 16337echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6 16338if test "${ac_cv_func_vsnprintf_working+set}" = set; then 16339 echo $ECHO_N "(cached) $ECHO_C" >&6 16340else 16341 ac_cv_func_vsnprintf_working=yes 16342if test "$cross_compiling" = yes; then 16343 : 16344else 16345 cat >conftest.$ac_ext <<_ACEOF 16346#line 16346 "configure" 16347#include "confdefs.h" 16348 16349#include <stdio.h> 16350#include <string.h> 16351#include <stdarg.h> 16352 16353int foo(int num, ...) 16354{ 16355 char bar[3]; 16356 va_list arg; 16357 va_start(arg, num); 16358 vsnprintf(bar, 2, "%s", arg); 16359 va_end(arg); 16360 return strcmp(bar, "1"); 16361} 16362 16363int main() 16364{ 16365 return foo(0, "12"); 16366} 16367_ACEOF 16368rm -f conftest$ac_exeext 16369{ (eval echo $as_me:16369: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 16370 (./conftest$ac_exeext) >&5 2>&1; 16371ac_status=$? 16372if test $ac_status = 0; then 16373 : 16374else 16375 echo "$as_me: program exited with status $ac_status" >&5 16376echo "$as_me: failed program was:" >&5 16377cat conftest.$ac_ext >&5 16378ac_cv_func_vsnprintf_working=no 16379fi 16380 16381rm -f conftest$ac_exeext conftest.$ac_ext 16382fi 16383 16384fi 16385echo "$as_me:16385: result: $ac_cv_func_vsnprintf_working" >&5 16386echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6 16387 16388if test "$ac_cv_func_vsnprintf_working" = yes; then 16389 16390cat >>confdefs.h <<EOF 16391#define HAVE_VSNPRINTF 1 16392EOF 16393 16394fi 16395if test "$ac_cv_func_vsnprintf_working" = yes; then 16396 16397if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 16398echo "$as_me:16398: checking if vsnprintf needs a prototype" >&5 16399echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6 16400if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 16401 echo $ECHO_N "(cached) $ECHO_C" >&6 16402else 16403 cat >conftest.$ac_ext <<_ACEOF 16404#line 16404 "configure" 16405#include "confdefs.h" 16406#include <stdio.h> 16407int 16408main () 16409{ 16410struct foo { int foo; } xx; 16411extern int vsnprintf (struct foo*); 16412vsnprintf(&xx); 16413 16414 ; 16415 return 0; 16416} 16417_ACEOF 16418rm -f conftest.$ac_objext 16419if { (eval echo $as_me:16419: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 16420 eval "ac_cv_func_vsnprintf_noproto=yes" 16421else 16422 echo "$as_me: failed program was:" >&5 16423 cat conftest.$ac_ext >&5 16424 eval "ac_cv_func_vsnprintf_noproto=no" 16425fi 16426rm -f conftest.$ac_objext conftest.$ac_ext 16427fi 16428echo "$as_me:16428: result: $ac_cv_func_vsnprintf_noproto" >&5 16429echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6 16430 16431if test "$ac_cv_func_vsnprintf_noproto" = yes; then 16432 16433cat >>confdefs.h <<\EOF 16434#define NEED_VSNPRINTF_PROTO 1 16435EOF 16436 16437fi 16438 16439fi 16440 16441fi 16442 16443for ac_func in \ 16444 _getpty \ 16445 _scrsize \ 16446 fcntl \ 16447 gettimeofday \ 16448 getuid \ 16449 grantpt \ 16450 mktime \ 16451 ptsname \ 16452 rand \ 16453 random \ 16454 revoke \ 16455 select \ 16456 setitimer \ 16457 setpcred \ 16458 setpgid \ 16459 setproctitle \ 16460 setregid \ 16461 setresgid \ 16462 setresuid \ 16463 setreuid \ 16464 setsid \ 16465 setutent \ 16466 sigaction \ 16467 strstr \ 16468 timegm \ 16469 ttyname \ 16470 ttyslot \ 16471 umask \ 16472 unlockpt \ 16473 vhangup \ 16474 yp_get_default_domain \ 16475 16476do 16477ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 16478echo "$as_me:16478: checking for $ac_func" >&5 16479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16480if eval "test \"\${$ac_ac_var+set}\" = set"; then 16481 echo $ECHO_N "(cached) $ECHO_C" >&6 16482else 16483 cat >conftest.$ac_ext <<_ACEOF 16484#line 16484 "configure" 16485#include "confdefs.h" 16486/* System header to define __stub macros and hopefully few prototypes, 16487 which can conflict with char $ac_func (); below. */ 16488#include <assert.h> 16489/* Override any gcc2 internal prototype to avoid an error. */ 16490#ifdef __cplusplus 16491extern "C" 16492#endif 16493/* We use char because int might match the return type of a gcc2 16494 builtin and then its argument prototype would still apply. */ 16495char $ac_func (); 16496char (*f) (); 16497 16498int 16499main () 16500{ 16501/* The GNU C library defines this for functions which it implements 16502 to always fail with ENOSYS. Some functions are actually named 16503 something starting with __ and the normal name is an alias. */ 16504#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16505choke me 16506#else 16507f = $ac_func; 16508#endif 16509 16510 ; 16511 return 0; 16512} 16513_ACEOF 16514rm -f conftest.$ac_objext conftest$ac_exeext 16515if { (eval echo $as_me:16515: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16516 eval "$ac_ac_var=yes" 16517else 16518 echo "$as_me: failed program was:" >&5 16519 cat conftest.$ac_ext >&5 16520 eval "$ac_ac_var=no" 16521fi 16522rm -f conftest$ac_exeext conftest.$ac_ext 16523fi 16524echo "$as_me:16524: result: `eval echo '${'$ac_ac_var'}'`" >&5 16525echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 16526if test `eval echo '${'$ac_ac_var'}'` = yes; then 16527 cat >>confdefs.h <<EOF 16528#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 16529EOF 16530 16531fi 16532done 16533 16534for ac_header in capability.h sys/capability.h 16535do 16536ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 16537 16538echo "$as_me:16538: checking for $ac_header" >&5 16539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16540if eval "test \"\${$ac_ac_Header+set}\" = set"; then 16541 echo $ECHO_N "(cached) $ECHO_C" >&6 16542else 16543 cat >conftest.$ac_ext <<_ACEOF 16544#line 16544 "configure" 16545#include "confdefs.h" 16546#include <$ac_header> 16547 16548_ACEOF 16549ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 16550if { (eval echo $as_me:16550: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 16551 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 16552 ac_cpp_err=$ac_c_preproc_warn_flag 16553 else 16554 ac_cpp_err= 16555 fi 16556else 16557 ac_cpp_err=yes 16558fi 16559 16560if test -z "$ac_cpp_err"; then 16561 eval "$ac_ac_Header=yes" 16562else 16563 cat conftest.err >&5 16564 echo "$as_me: failed program was:" >&5 16565 cat conftest.$ac_ext >&5 16566 eval "$ac_ac_Header=no" 16567fi 16568rm -f conftest* 16569 16570fi 16571echo "$as_me:16571: result: `eval echo '${'$ac_ac_Header'}'`" >&5 16572echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 16573if test `eval echo '${'$ac_ac_Header'}'` = yes; then 16574 cat >>confdefs.h <<EOF 16575#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 16576EOF 16577 16578fi 16579done 16580 16581for ac_func in sgi_getcapabilitybyname cap_set_proc 16582do 16583ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 16584echo "$as_me:16584: checking for $ac_func" >&5 16585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16586if eval "test \"\${$ac_ac_var+set}\" = set"; then 16587 echo $ECHO_N "(cached) $ECHO_C" >&6 16588else 16589 cat >conftest.$ac_ext <<_ACEOF 16590#line 16590 "configure" 16591#include "confdefs.h" 16592/* System header to define __stub macros and hopefully few prototypes, 16593 which can conflict with char $ac_func (); below. */ 16594#include <assert.h> 16595/* Override any gcc2 internal prototype to avoid an error. */ 16596#ifdef __cplusplus 16597extern "C" 16598#endif 16599/* We use char because int might match the return type of a gcc2 16600 builtin and then its argument prototype would still apply. */ 16601char $ac_func (); 16602char (*f) (); 16603 16604int 16605main () 16606{ 16607/* The GNU C library defines this for functions which it implements 16608 to always fail with ENOSYS. Some functions are actually named 16609 something starting with __ and the normal name is an alias. */ 16610#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16611choke me 16612#else 16613f = $ac_func; 16614#endif 16615 16616 ; 16617 return 0; 16618} 16619_ACEOF 16620rm -f conftest.$ac_objext conftest$ac_exeext 16621if { (eval echo $as_me:16621: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16622 eval "$ac_ac_var=yes" 16623else 16624 echo "$as_me: failed program was:" >&5 16625 cat conftest.$ac_ext >&5 16626 eval "$ac_ac_var=no" 16627fi 16628rm -f conftest$ac_exeext conftest.$ac_ext 16629fi 16630echo "$as_me:16630: result: `eval echo '${'$ac_ac_var'}'`" >&5 16631echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 16632if test `eval echo '${'$ac_ac_var'}'` = yes; then 16633 cat >>confdefs.h <<EOF 16634#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 16635EOF 16636 16637fi 16638done 16639 16640echo "$as_me:16640: checking for getpwnam_r" >&5 16641echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6 16642if test "${ac_cv_funclib_getpwnam_r+set}" = set; then 16643 echo $ECHO_N "(cached) $ECHO_C" >&6 16644else 16645 16646if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 16647 ac_save_LIBS="$LIBS" 16648 for ac_lib in "" c_r; do 16649 if test -n "$ac_lib"; then 16650 ac_lib="-l$ac_lib" 16651 else 16652 ac_lib="" 16653 fi 16654 LIBS=" $ac_lib $ac_save_LIBS" 16655 cat >conftest.$ac_ext <<_ACEOF 16656#line 16656 "configure" 16657#include "confdefs.h" 16658 16659int 16660main () 16661{ 16662getpwnam_r() 16663 ; 16664 return 0; 16665} 16666_ACEOF 16667rm -f conftest.$ac_objext conftest$ac_exeext 16668if { (eval echo $as_me:16668: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16669 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 16670else 16671 echo "$as_me: failed program was:" >&5 16672 cat conftest.$ac_ext >&5 16673fi 16674rm -f conftest$ac_exeext conftest.$ac_ext 16675 done 16676 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 16677 LIBS="$ac_save_LIBS" 16678fi 16679 16680fi 16681 16682eval "ac_res=\$ac_cv_funclib_getpwnam_r" 16683 16684if false; then 16685 16686for ac_func in getpwnam_r 16687do 16688ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 16689echo "$as_me:16689: checking for $ac_func" >&5 16690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16691if eval "test \"\${$ac_ac_var+set}\" = set"; then 16692 echo $ECHO_N "(cached) $ECHO_C" >&6 16693else 16694 cat >conftest.$ac_ext <<_ACEOF 16695#line 16695 "configure" 16696#include "confdefs.h" 16697/* System header to define __stub macros and hopefully few prototypes, 16698 which can conflict with char $ac_func (); below. */ 16699#include <assert.h> 16700/* Override any gcc2 internal prototype to avoid an error. */ 16701#ifdef __cplusplus 16702extern "C" 16703#endif 16704/* We use char because int might match the return type of a gcc2 16705 builtin and then its argument prototype would still apply. */ 16706char $ac_func (); 16707char (*f) (); 16708 16709int 16710main () 16711{ 16712/* The GNU C library defines this for functions which it implements 16713 to always fail with ENOSYS. Some functions are actually named 16714 something starting with __ and the normal name is an alias. */ 16715#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16716choke me 16717#else 16718f = $ac_func; 16719#endif 16720 16721 ; 16722 return 0; 16723} 16724_ACEOF 16725rm -f conftest.$ac_objext conftest$ac_exeext 16726if { (eval echo $as_me:16726: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16727 eval "$ac_ac_var=yes" 16728else 16729 echo "$as_me: failed program was:" >&5 16730 cat conftest.$ac_ext >&5 16731 eval "$ac_ac_var=no" 16732fi 16733rm -f conftest$ac_exeext conftest.$ac_ext 16734fi 16735echo "$as_me:16735: result: `eval echo '${'$ac_ac_var'}'`" >&5 16736echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 16737if test `eval echo '${'$ac_ac_var'}'` = yes; then 16738 cat >>confdefs.h <<EOF 16739#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 16740EOF 16741 16742fi 16743done 16744 16745fi 16746# getpwnam_r 16747eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16748eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16749eval "LIB_getpwnam_r=$ac_res" 16750 16751case "$ac_res" in 16752 yes) 16753 eval "ac_cv_func_getpwnam_r=yes" 16754 eval "LIB_getpwnam_r=" 16755 cat >>confdefs.h <<EOF 16756#define $ac_tr_func 1 16757EOF 16758 16759 echo "$as_me:16759: result: yes" >&5 16760echo "${ECHO_T}yes" >&6 16761 ;; 16762 no) 16763 eval "ac_cv_func_getpwnam_r=no" 16764 eval "LIB_getpwnam_r=" 16765 echo "$as_me:16765: result: no" >&5 16766echo "${ECHO_T}no" >&6 16767 ;; 16768 *) 16769 eval "ac_cv_func_getpwnam_r=yes" 16770 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16771 cat >>confdefs.h <<EOF 16772#define $ac_tr_func 1 16773EOF 16774 16775 cat >>confdefs.h <<EOF 16776#define $ac_tr_lib 1 16777EOF 16778 16779 echo "$as_me:16779: result: yes, in $ac_res" >&5 16780echo "${ECHO_T}yes, in $ac_res" >&6 16781 ;; 16782esac 16783 16784if test "$ac_cv_func_getpwnam_r" = yes; then 16785 echo "$as_me:16785: checking if getpwnam_r is posix" >&5 16786echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6 16787if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then 16788 echo $ECHO_N "(cached) $ECHO_C" >&6 16789else 16790 ac_libs="$LIBS" 16791 LIBS="$LIBS $LIB_getpwnam_r" 16792 if test "$cross_compiling" = yes; then 16793 : 16794else 16795 cat >conftest.$ac_ext <<_ACEOF 16796#line 16796 "configure" 16797#include "confdefs.h" 16798 16799#include <pwd.h> 16800int main() 16801{ 16802 struct passwd pw, *pwd; 16803 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0; 16804} 16805 16806_ACEOF 16807rm -f conftest$ac_exeext 16808{ (eval echo $as_me:16808: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 16809 (./conftest$ac_exeext) >&5 2>&1; 16810ac_status=$? 16811if test $ac_status = 0; then 16812 ac_cv_func_getpwnam_r_posix=yes 16813else 16814 echo "$as_me: program exited with status $ac_status" >&5 16815echo "$as_me: failed program was:" >&5 16816cat conftest.$ac_ext >&5 16817ac_cv_func_getpwnam_r_posix=no 16818fi 16819 16820rm -f conftest$ac_exeext conftest.$ac_ext 16821fi 16822 16823LIBS="$ac_libs" 16824fi 16825echo "$as_me:16825: result: $ac_cv_func_getpwnam_r_posix" >&5 16826echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6 16827if test "$ac_cv_func_getpwnam_r_posix" = yes; then 16828 16829cat >>confdefs.h <<\EOF 16830#define POSIX_GETPWNAM_R 1 16831EOF 16832 16833fi 16834fi 16835 16836echo "$as_me:16836: checking for getsockopt" >&5 16837echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6 16838if test "${ac_cv_funclib_getsockopt+set}" = set; then 16839 echo $ECHO_N "(cached) $ECHO_C" >&6 16840else 16841 16842if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 16843 ac_save_LIBS="$LIBS" 16844 for ac_lib in "" ; do 16845 if test -n "$ac_lib"; then 16846 ac_lib="-l$ac_lib" 16847 else 16848 ac_lib="" 16849 fi 16850 LIBS=" $ac_lib $ac_save_LIBS" 16851 cat >conftest.$ac_ext <<_ACEOF 16852#line 16852 "configure" 16853#include "confdefs.h" 16854#ifdef HAVE_SYS_TYPES_H 16855#include <sys/types.h> 16856#endif 16857#ifdef HAVE_SYS_SOCKET_H 16858#include <sys/socket.h> 16859#endif 16860int 16861main () 16862{ 16863getsockopt(0,0,0,0,0) 16864 ; 16865 return 0; 16866} 16867_ACEOF 16868rm -f conftest.$ac_objext conftest$ac_exeext 16869if { (eval echo $as_me:16869: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16870 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 16871else 16872 echo "$as_me: failed program was:" >&5 16873 cat conftest.$ac_ext >&5 16874fi 16875rm -f conftest$ac_exeext conftest.$ac_ext 16876 done 16877 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 16878 LIBS="$ac_save_LIBS" 16879fi 16880 16881fi 16882 16883eval "ac_res=\$ac_cv_funclib_getsockopt" 16884 16885if false; then 16886 16887for ac_func in getsockopt 16888do 16889ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 16890echo "$as_me:16890: checking for $ac_func" >&5 16891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16892if eval "test \"\${$ac_ac_var+set}\" = set"; then 16893 echo $ECHO_N "(cached) $ECHO_C" >&6 16894else 16895 cat >conftest.$ac_ext <<_ACEOF 16896#line 16896 "configure" 16897#include "confdefs.h" 16898/* System header to define __stub macros and hopefully few prototypes, 16899 which can conflict with char $ac_func (); below. */ 16900#include <assert.h> 16901/* Override any gcc2 internal prototype to avoid an error. */ 16902#ifdef __cplusplus 16903extern "C" 16904#endif 16905/* We use char because int might match the return type of a gcc2 16906 builtin and then its argument prototype would still apply. */ 16907char $ac_func (); 16908char (*f) (); 16909 16910int 16911main () 16912{ 16913/* The GNU C library defines this for functions which it implements 16914 to always fail with ENOSYS. Some functions are actually named 16915 something starting with __ and the normal name is an alias. */ 16916#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16917choke me 16918#else 16919f = $ac_func; 16920#endif 16921 16922 ; 16923 return 0; 16924} 16925_ACEOF 16926rm -f conftest.$ac_objext conftest$ac_exeext 16927if { (eval echo $as_me:16927: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 16928 eval "$ac_ac_var=yes" 16929else 16930 echo "$as_me: failed program was:" >&5 16931 cat conftest.$ac_ext >&5 16932 eval "$ac_ac_var=no" 16933fi 16934rm -f conftest$ac_exeext conftest.$ac_ext 16935fi 16936echo "$as_me:16936: result: `eval echo '${'$ac_ac_var'}'`" >&5 16937echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 16938if test `eval echo '${'$ac_ac_var'}'` = yes; then 16939 cat >>confdefs.h <<EOF 16940#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 16941EOF 16942 16943fi 16944done 16945 16946fi 16947# getsockopt 16948eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16949eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16950eval "LIB_getsockopt=$ac_res" 16951 16952case "$ac_res" in 16953 yes) 16954 eval "ac_cv_func_getsockopt=yes" 16955 eval "LIB_getsockopt=" 16956 cat >>confdefs.h <<EOF 16957#define $ac_tr_func 1 16958EOF 16959 16960 echo "$as_me:16960: result: yes" >&5 16961echo "${ECHO_T}yes" >&6 16962 ;; 16963 no) 16964 eval "ac_cv_func_getsockopt=no" 16965 eval "LIB_getsockopt=" 16966 echo "$as_me:16966: result: no" >&5 16967echo "${ECHO_T}no" >&6 16968 ;; 16969 *) 16970 eval "ac_cv_func_getsockopt=yes" 16971 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16972 cat >>confdefs.h <<EOF 16973#define $ac_tr_func 1 16974EOF 16975 16976 cat >>confdefs.h <<EOF 16977#define $ac_tr_lib 1 16978EOF 16979 16980 echo "$as_me:16980: result: yes, in $ac_res" >&5 16981echo "${ECHO_T}yes, in $ac_res" >&6 16982 ;; 16983esac 16984 16985echo "$as_me:16985: checking for setsockopt" >&5 16986echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 16987if test "${ac_cv_funclib_setsockopt+set}" = set; then 16988 echo $ECHO_N "(cached) $ECHO_C" >&6 16989else 16990 16991if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 16992 ac_save_LIBS="$LIBS" 16993 for ac_lib in "" ; do 16994 if test -n "$ac_lib"; then 16995 ac_lib="-l$ac_lib" 16996 else 16997 ac_lib="" 16998 fi 16999 LIBS=" $ac_lib $ac_save_LIBS" 17000 cat >conftest.$ac_ext <<_ACEOF 17001#line 17001 "configure" 17002#include "confdefs.h" 17003#ifdef HAVE_SYS_TYPES_H 17004#include <sys/types.h> 17005#endif 17006#ifdef HAVE_SYS_SOCKET_H 17007#include <sys/socket.h> 17008#endif 17009int 17010main () 17011{ 17012setsockopt(0,0,0,0,0) 17013 ; 17014 return 0; 17015} 17016_ACEOF 17017rm -f conftest.$ac_objext conftest$ac_exeext 17018if { (eval echo $as_me:17018: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 17019 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 17020else 17021 echo "$as_me: failed program was:" >&5 17022 cat conftest.$ac_ext >&5 17023fi 17024rm -f conftest$ac_exeext conftest.$ac_ext 17025 done 17026 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 17027 LIBS="$ac_save_LIBS" 17028fi 17029 17030fi 17031 17032eval "ac_res=\$ac_cv_funclib_setsockopt" 17033 17034if false; then 17035 17036for ac_func in setsockopt 17037do 17038ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 17039echo "$as_me:17039: checking for $ac_func" >&5 17040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17041if eval "test \"\${$ac_ac_var+set}\" = set"; then 17042 echo $ECHO_N "(cached) $ECHO_C" >&6 17043else 17044 cat >conftest.$ac_ext <<_ACEOF 17045#line 17045 "configure" 17046#include "confdefs.h" 17047/* System header to define __stub macros and hopefully few prototypes, 17048 which can conflict with char $ac_func (); below. */ 17049#include <assert.h> 17050/* Override any gcc2 internal prototype to avoid an error. */ 17051#ifdef __cplusplus 17052extern "C" 17053#endif 17054/* We use char because int might match the return type of a gcc2 17055 builtin and then its argument prototype would still apply. */ 17056char $ac_func (); 17057char (*f) (); 17058 17059int 17060main () 17061{ 17062/* The GNU C library defines this for functions which it implements 17063 to always fail with ENOSYS. Some functions are actually named 17064 something starting with __ and the normal name is an alias. */ 17065#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17066choke me 17067#else 17068f = $ac_func; 17069#endif 17070 17071 ; 17072 return 0; 17073} 17074_ACEOF 17075rm -f conftest.$ac_objext conftest$ac_exeext 17076if { (eval echo $as_me:17076: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 17077 eval "$ac_ac_var=yes" 17078else 17079 echo "$as_me: failed program was:" >&5 17080 cat conftest.$ac_ext >&5 17081 eval "$ac_ac_var=no" 17082fi 17083rm -f conftest$ac_exeext conftest.$ac_ext 17084fi 17085echo "$as_me:17085: result: `eval echo '${'$ac_ac_var'}'`" >&5 17086echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 17087if test `eval echo '${'$ac_ac_var'}'` = yes; then 17088 cat >>confdefs.h <<EOF 17089#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 17090EOF 17091 17092fi 17093done 17094 17095fi 17096# setsockopt 17097eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17098eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17099eval "LIB_setsockopt=$ac_res" 17100 17101case "$ac_res" in 17102 yes) 17103 eval "ac_cv_func_setsockopt=yes" 17104 eval "LIB_setsockopt=" 17105 cat >>confdefs.h <<EOF 17106#define $ac_tr_func 1 17107EOF 17108 17109 echo "$as_me:17109: result: yes" >&5 17110echo "${ECHO_T}yes" >&6 17111 ;; 17112 no) 17113 eval "ac_cv_func_setsockopt=no" 17114 eval "LIB_setsockopt=" 17115 echo "$as_me:17115: result: no" >&5 17116echo "${ECHO_T}no" >&6 17117 ;; 17118 *) 17119 eval "ac_cv_func_setsockopt=yes" 17120 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17121 cat >>confdefs.h <<EOF 17122#define $ac_tr_func 1 17123EOF 17124 17125 cat >>confdefs.h <<EOF 17126#define $ac_tr_lib 1 17127EOF 17128 17129 echo "$as_me:17129: result: yes, in $ac_res" >&5 17130echo "${ECHO_T}yes, in $ac_res" >&6 17131 ;; 17132esac 17133 17134for ac_func in getudbnam setlim 17135do 17136ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 17137echo "$as_me:17137: checking for $ac_func" >&5 17138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17139if eval "test \"\${$ac_ac_var+set}\" = set"; then 17140 echo $ECHO_N "(cached) $ECHO_C" >&6 17141else 17142 cat >conftest.$ac_ext <<_ACEOF 17143#line 17143 "configure" 17144#include "confdefs.h" 17145/* System header to define __stub macros and hopefully few prototypes, 17146 which can conflict with char $ac_func (); below. */ 17147#include <assert.h> 17148/* Override any gcc2 internal prototype to avoid an error. */ 17149#ifdef __cplusplus 17150extern "C" 17151#endif 17152/* We use char because int might match the return type of a gcc2 17153 builtin and then its argument prototype would still apply. */ 17154char $ac_func (); 17155char (*f) (); 17156 17157int 17158main () 17159{ 17160/* The GNU C library defines this for functions which it implements 17161 to always fail with ENOSYS. Some functions are actually named 17162 something starting with __ and the normal name is an alias. */ 17163#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17164choke me 17165#else 17166f = $ac_func; 17167#endif 17168 17169 ; 17170 return 0; 17171} 17172_ACEOF 17173rm -f conftest.$ac_objext conftest$ac_exeext 17174if { (eval echo $as_me:17174: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 17175 eval "$ac_ac_var=yes" 17176else 17177 echo "$as_me: failed program was:" >&5 17178 cat conftest.$ac_ext >&5 17179 eval "$ac_ac_var=no" 17180fi 17181rm -f conftest$ac_exeext conftest.$ac_ext 17182fi 17183echo "$as_me:17183: result: `eval echo '${'$ac_ac_var'}'`" >&5 17184echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 17185if test `eval echo '${'$ac_ac_var'}'` = yes; then 17186 cat >>confdefs.h <<EOF 17187#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 17188EOF 17189 17190fi 17191done 17192 17193echo "$as_me:17193: checking return type of signal handlers" >&5 17194echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 17195if test "${ac_cv_type_signal+set}" = set; then 17196 echo $ECHO_N "(cached) $ECHO_C" >&6 17197else 17198 cat >conftest.$ac_ext <<_ACEOF 17199#line 17199 "configure" 17200#include "confdefs.h" 17201#include <sys/types.h> 17202#include <signal.h> 17203#ifdef signal 17204# undef signal 17205#endif 17206#ifdef __cplusplus 17207extern "C" void (*signal (int, void (*)(int)))(int); 17208#else 17209void (*signal ()) (); 17210#endif 17211 17212int 17213main () 17214{ 17215int i; 17216 ; 17217 return 0; 17218} 17219_ACEOF 17220rm -f conftest.$ac_objext 17221if { (eval echo $as_me:17221: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17222 ac_cv_type_signal=void 17223else 17224 echo "$as_me: failed program was:" >&5 17225 cat conftest.$ac_ext >&5 17226 ac_cv_type_signal=int 17227fi 17228rm -f conftest.$ac_objext conftest.$ac_ext 17229fi 17230echo "$as_me:17230: result: $ac_cv_type_signal" >&5 17231echo "${ECHO_T}$ac_cv_type_signal" >&6 17232 17233cat >>confdefs.h <<EOF 17234#define RETSIGTYPE $ac_cv_type_signal 17235EOF 17236 17237if test "$ac_cv_type_signal" = "void" ; then 17238 17239cat >>confdefs.h <<\EOF 17240#define VOID_RETSIGTYPE 1 17241EOF 17242 17243fi 17244 17245echo "$as_me:17245: checking if realloc if broken" >&5 17246echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6 17247if test "${ac_cv_func_realloc_broken+set}" = set; then 17248 echo $ECHO_N "(cached) $ECHO_C" >&6 17249else 17250 17251ac_cv_func_realloc_broken=no 17252if test "$cross_compiling" = yes; then 17253 : 17254else 17255 cat >conftest.$ac_ext <<_ACEOF 17256#line 17256 "configure" 17257#include "confdefs.h" 17258 17259#include <stddef.h> 17260#include <stdlib.h> 17261 17262int main() 17263{ 17264 return realloc(NULL, 17) == NULL; 17265} 17266 17267_ACEOF 17268rm -f conftest$ac_exeext 17269{ (eval echo $as_me:17269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 17270 (./conftest$ac_exeext) >&5 2>&1; 17271ac_status=$? 17272if test $ac_status = 0; then 17273 : 17274else 17275 echo "$as_me: program exited with status $ac_status" >&5 17276echo "$as_me: failed program was:" >&5 17277cat conftest.$ac_ext >&5 17278ac_cv_func_realloc_broken=yes 17279fi 17280 17281rm -f conftest$ac_exeext conftest.$ac_ext 17282fi 17283 17284fi 17285echo "$as_me:17285: result: $ac_cv_func_realloc_broken" >&5 17286echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6 17287if test "$ac_cv_func_realloc_broken" = yes ; then 17288 17289cat >>confdefs.h <<\EOF 17290#define BROKEN_REALLOC 1 17291EOF 17292 17293fi 17294 17295echo "$as_me:17295: checking for ut_addr in struct utmp" >&5 17296echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6 17297if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then 17298 echo $ECHO_N "(cached) $ECHO_C" >&6 17299else 17300 17301cat >conftest.$ac_ext <<_ACEOF 17302#line 17302 "configure" 17303#include "confdefs.h" 17304#include <utmp.h> 17305int 17306main () 17307{ 17308struct utmp x; x.ut_addr; 17309 ; 17310 return 0; 17311} 17312_ACEOF 17313rm -f conftest.$ac_objext 17314if { (eval echo $as_me:17314: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17315 ac_cv_type_struct_utmp_ut_addr=yes 17316else 17317 echo "$as_me: failed program was:" >&5 17318 cat conftest.$ac_ext >&5 17319 ac_cv_type_struct_utmp_ut_addr=no 17320fi 17321rm -f conftest.$ac_objext conftest.$ac_ext 17322fi 17323echo "$as_me:17323: result: $ac_cv_type_struct_utmp_ut_addr" >&5 17324echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6 17325if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then 17326 17327cat >>confdefs.h <<\EOF 17328#define HAVE_STRUCT_UTMP_UT_ADDR 1 17329EOF 17330 17331fi 17332 17333echo "$as_me:17333: checking for ut_host in struct utmp" >&5 17334echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6 17335if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then 17336 echo $ECHO_N "(cached) $ECHO_C" >&6 17337else 17338 17339cat >conftest.$ac_ext <<_ACEOF 17340#line 17340 "configure" 17341#include "confdefs.h" 17342#include <utmp.h> 17343int 17344main () 17345{ 17346struct utmp x; x.ut_host; 17347 ; 17348 return 0; 17349} 17350_ACEOF 17351rm -f conftest.$ac_objext 17352if { (eval echo $as_me:17352: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17353 ac_cv_type_struct_utmp_ut_host=yes 17354else 17355 echo "$as_me: failed program was:" >&5 17356 cat conftest.$ac_ext >&5 17357 ac_cv_type_struct_utmp_ut_host=no 17358fi 17359rm -f conftest.$ac_objext conftest.$ac_ext 17360fi 17361echo "$as_me:17361: result: $ac_cv_type_struct_utmp_ut_host" >&5 17362echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6 17363if test "$ac_cv_type_struct_utmp_ut_host" = yes; then 17364 17365cat >>confdefs.h <<\EOF 17366#define HAVE_STRUCT_UTMP_UT_HOST 1 17367EOF 17368 17369fi 17370 17371echo "$as_me:17371: checking for ut_id in struct utmp" >&5 17372echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6 17373if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then 17374 echo $ECHO_N "(cached) $ECHO_C" >&6 17375else 17376 17377cat >conftest.$ac_ext <<_ACEOF 17378#line 17378 "configure" 17379#include "confdefs.h" 17380#include <utmp.h> 17381int 17382main () 17383{ 17384struct utmp x; x.ut_id; 17385 ; 17386 return 0; 17387} 17388_ACEOF 17389rm -f conftest.$ac_objext 17390if { (eval echo $as_me:17390: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17391 ac_cv_type_struct_utmp_ut_id=yes 17392else 17393 echo "$as_me: failed program was:" >&5 17394 cat conftest.$ac_ext >&5 17395 ac_cv_type_struct_utmp_ut_id=no 17396fi 17397rm -f conftest.$ac_objext conftest.$ac_ext 17398fi 17399echo "$as_me:17399: result: $ac_cv_type_struct_utmp_ut_id" >&5 17400echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6 17401if test "$ac_cv_type_struct_utmp_ut_id" = yes; then 17402 17403cat >>confdefs.h <<\EOF 17404#define HAVE_STRUCT_UTMP_UT_ID 1 17405EOF 17406 17407fi 17408 17409echo "$as_me:17409: checking for ut_pid in struct utmp" >&5 17410echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6 17411if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then 17412 echo $ECHO_N "(cached) $ECHO_C" >&6 17413else 17414 17415cat >conftest.$ac_ext <<_ACEOF 17416#line 17416 "configure" 17417#include "confdefs.h" 17418#include <utmp.h> 17419int 17420main () 17421{ 17422struct utmp x; x.ut_pid; 17423 ; 17424 return 0; 17425} 17426_ACEOF 17427rm -f conftest.$ac_objext 17428if { (eval echo $as_me:17428: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17429 ac_cv_type_struct_utmp_ut_pid=yes 17430else 17431 echo "$as_me: failed program was:" >&5 17432 cat conftest.$ac_ext >&5 17433 ac_cv_type_struct_utmp_ut_pid=no 17434fi 17435rm -f conftest.$ac_objext conftest.$ac_ext 17436fi 17437echo "$as_me:17437: result: $ac_cv_type_struct_utmp_ut_pid" >&5 17438echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6 17439if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then 17440 17441cat >>confdefs.h <<\EOF 17442#define HAVE_STRUCT_UTMP_UT_PID 1 17443EOF 17444 17445fi 17446 17447echo "$as_me:17447: checking for ut_type in struct utmp" >&5 17448echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6 17449if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then 17450 echo $ECHO_N "(cached) $ECHO_C" >&6 17451else 17452 17453cat >conftest.$ac_ext <<_ACEOF 17454#line 17454 "configure" 17455#include "confdefs.h" 17456#include <utmp.h> 17457int 17458main () 17459{ 17460struct utmp x; x.ut_type; 17461 ; 17462 return 0; 17463} 17464_ACEOF 17465rm -f conftest.$ac_objext 17466if { (eval echo $as_me:17466: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17467 ac_cv_type_struct_utmp_ut_type=yes 17468else 17469 echo "$as_me: failed program was:" >&5 17470 cat conftest.$ac_ext >&5 17471 ac_cv_type_struct_utmp_ut_type=no 17472fi 17473rm -f conftest.$ac_objext conftest.$ac_ext 17474fi 17475echo "$as_me:17475: result: $ac_cv_type_struct_utmp_ut_type" >&5 17476echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6 17477if test "$ac_cv_type_struct_utmp_ut_type" = yes; then 17478 17479cat >>confdefs.h <<\EOF 17480#define HAVE_STRUCT_UTMP_UT_TYPE 1 17481EOF 17482 17483fi 17484 17485echo "$as_me:17485: checking for ut_user in struct utmp" >&5 17486echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6 17487if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then 17488 echo $ECHO_N "(cached) $ECHO_C" >&6 17489else 17490 17491cat >conftest.$ac_ext <<_ACEOF 17492#line 17492 "configure" 17493#include "confdefs.h" 17494#include <utmp.h> 17495int 17496main () 17497{ 17498struct utmp x; x.ut_user; 17499 ; 17500 return 0; 17501} 17502_ACEOF 17503rm -f conftest.$ac_objext 17504if { (eval echo $as_me:17504: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17505 ac_cv_type_struct_utmp_ut_user=yes 17506else 17507 echo "$as_me: failed program was:" >&5 17508 cat conftest.$ac_ext >&5 17509 ac_cv_type_struct_utmp_ut_user=no 17510fi 17511rm -f conftest.$ac_objext conftest.$ac_ext 17512fi 17513echo "$as_me:17513: result: $ac_cv_type_struct_utmp_ut_user" >&5 17514echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6 17515if test "$ac_cv_type_struct_utmp_ut_user" = yes; then 17516 17517cat >>confdefs.h <<\EOF 17518#define HAVE_STRUCT_UTMP_UT_USER 1 17519EOF 17520 17521fi 17522 17523echo "$as_me:17523: checking for ut_exit in struct utmpx" >&5 17524echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6 17525if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then 17526 echo $ECHO_N "(cached) $ECHO_C" >&6 17527else 17528 17529cat >conftest.$ac_ext <<_ACEOF 17530#line 17530 "configure" 17531#include "confdefs.h" 17532#include <utmpx.h> 17533int 17534main () 17535{ 17536struct utmpx x; x.ut_exit; 17537 ; 17538 return 0; 17539} 17540_ACEOF 17541rm -f conftest.$ac_objext 17542if { (eval echo $as_me:17542: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17543 ac_cv_type_struct_utmpx_ut_exit=yes 17544else 17545 echo "$as_me: failed program was:" >&5 17546 cat conftest.$ac_ext >&5 17547 ac_cv_type_struct_utmpx_ut_exit=no 17548fi 17549rm -f conftest.$ac_objext conftest.$ac_ext 17550fi 17551echo "$as_me:17551: result: $ac_cv_type_struct_utmpx_ut_exit" >&5 17552echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6 17553if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then 17554 17555cat >>confdefs.h <<\EOF 17556#define HAVE_STRUCT_UTMPX_UT_EXIT 1 17557EOF 17558 17559fi 17560 17561echo "$as_me:17561: checking for ut_syslen in struct utmpx" >&5 17562echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6 17563if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then 17564 echo $ECHO_N "(cached) $ECHO_C" >&6 17565else 17566 17567cat >conftest.$ac_ext <<_ACEOF 17568#line 17568 "configure" 17569#include "confdefs.h" 17570#include <utmpx.h> 17571int 17572main () 17573{ 17574struct utmpx x; x.ut_syslen; 17575 ; 17576 return 0; 17577} 17578_ACEOF 17579rm -f conftest.$ac_objext 17580if { (eval echo $as_me:17580: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17581 ac_cv_type_struct_utmpx_ut_syslen=yes 17582else 17583 echo "$as_me: failed program was:" >&5 17584 cat conftest.$ac_ext >&5 17585 ac_cv_type_struct_utmpx_ut_syslen=no 17586fi 17587rm -f conftest.$ac_objext conftest.$ac_ext 17588fi 17589echo "$as_me:17589: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5 17590echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6 17591if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then 17592 17593cat >>confdefs.h <<\EOF 17594#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 17595EOF 17596 17597fi 17598 17599echo "$as_me:17599: checking for tm_gmtoff in struct tm" >&5 17600echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 17601if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 17602 echo $ECHO_N "(cached) $ECHO_C" >&6 17603else 17604 17605cat >conftest.$ac_ext <<_ACEOF 17606#line 17606 "configure" 17607#include "confdefs.h" 17608#include <time.h> 17609int 17610main () 17611{ 17612struct tm x; x.tm_gmtoff; 17613 ; 17614 return 0; 17615} 17616_ACEOF 17617rm -f conftest.$ac_objext 17618if { (eval echo $as_me:17618: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17619 ac_cv_type_struct_tm_tm_gmtoff=yes 17620else 17621 echo "$as_me: failed program was:" >&5 17622 cat conftest.$ac_ext >&5 17623 ac_cv_type_struct_tm_tm_gmtoff=no 17624fi 17625rm -f conftest.$ac_objext conftest.$ac_ext 17626fi 17627echo "$as_me:17627: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 17628echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6 17629if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 17630 17631cat >>confdefs.h <<\EOF 17632#define HAVE_STRUCT_TM_TM_GMTOFF 1 17633EOF 17634 17635fi 17636 17637echo "$as_me:17637: checking for tm_zone in struct tm" >&5 17638echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 17639if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 17640 echo $ECHO_N "(cached) $ECHO_C" >&6 17641else 17642 17643cat >conftest.$ac_ext <<_ACEOF 17644#line 17644 "configure" 17645#include "confdefs.h" 17646#include <time.h> 17647int 17648main () 17649{ 17650struct tm x; x.tm_zone; 17651 ; 17652 return 0; 17653} 17654_ACEOF 17655rm -f conftest.$ac_objext 17656if { (eval echo $as_me:17656: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17657 ac_cv_type_struct_tm_tm_zone=yes 17658else 17659 echo "$as_me: failed program was:" >&5 17660 cat conftest.$ac_ext >&5 17661 ac_cv_type_struct_tm_tm_zone=no 17662fi 17663rm -f conftest.$ac_objext conftest.$ac_ext 17664fi 17665echo "$as_me:17665: result: $ac_cv_type_struct_tm_tm_zone" >&5 17666echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6 17667if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 17668 17669cat >>confdefs.h <<\EOF 17670#define HAVE_STRUCT_TM_TM_ZONE 1 17671EOF 17672 17673fi 17674 17675echo "$as_me:17675: checking for timezone" >&5 17676echo $ECHO_N "checking for timezone... $ECHO_C" >&6 17677if test "${ac_cv_var_timezone+set}" = set; then 17678 echo $ECHO_N "(cached) $ECHO_C" >&6 17679else 17680 17681cat >conftest.$ac_ext <<_ACEOF 17682#line 17682 "configure" 17683#include "confdefs.h" 17684extern int timezone; 17685int foo() { return timezone; } 17686int 17687main () 17688{ 17689foo() 17690 ; 17691 return 0; 17692} 17693_ACEOF 17694rm -f conftest.$ac_objext conftest$ac_exeext 17695if { (eval echo $as_me:17695: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 17696 ac_cv_var_timezone=yes 17697else 17698 echo "$as_me: failed program was:" >&5 17699 cat conftest.$ac_ext >&5 17700 ac_cv_var_timezone=no 17701fi 17702rm -f conftest$ac_exeext conftest.$ac_ext 17703 17704fi 17705 17706ac_foo=`eval echo \\$ac_cv_var_timezone` 17707echo "$as_me:17707: result: $ac_foo" >&5 17708echo "${ECHO_T}$ac_foo" >&6 17709if test "$ac_foo" = yes; then 17710 17711cat >>confdefs.h <<EOF 17712#define HAVE_TIMEZONE 1 17713EOF 17714 17715echo "$as_me:17715: checking if timezone is properly declared" >&5 17716echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6 17717if test "${ac_cv_var_timezone_declaration+set}" = set; then 17718 echo $ECHO_N "(cached) $ECHO_C" >&6 17719else 17720 17721cat >conftest.$ac_ext <<_ACEOF 17722#line 17722 "configure" 17723#include "confdefs.h" 17724#include <time.h> 17725extern struct { int foo; } timezone; 17726int 17727main () 17728{ 17729timezone.foo = 1; 17730 ; 17731 return 0; 17732} 17733_ACEOF 17734rm -f conftest.$ac_objext 17735if { (eval echo $as_me:17735: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17736 eval "ac_cv_var_timezone_declaration=no" 17737else 17738 echo "$as_me: failed program was:" >&5 17739 cat conftest.$ac_ext >&5 17740 eval "ac_cv_var_timezone_declaration=yes" 17741fi 17742rm -f conftest.$ac_objext conftest.$ac_ext 17743 17744fi 17745 17746echo "$as_me:17746: result: $ac_cv_var_timezone_declaration" >&5 17747echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6 17748if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 17749 17750cat >>confdefs.h <<\EOF 17751#define HAVE_TIMEZONE_DECLARATION 1 17752EOF 17753 17754fi 17755 17756fi 17757 17758cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 17759echo "$as_me:17759: checking for sa_family_t" >&5 17760echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 17761if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 17762 echo $ECHO_N "(cached) $ECHO_C" >&6 17763else 17764 cat >conftest.$ac_ext <<_ACEOF 17765#line 17765 "configure" 17766#include "confdefs.h" 17767#include <sys/types.h> 17768#if STDC_HEADERS 17769#include <stdlib.h> 17770#include <stddef.h> 17771#endif 17772#include <sys/socket.h> 17773int 17774main () 17775{ 17776sa_family_t foo; 17777 ; 17778 return 0; 17779} 17780_ACEOF 17781rm -f conftest.$ac_objext 17782if { (eval echo $as_me:17782: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17783 eval "ac_cv_type_$cv=yes" 17784else 17785 echo "$as_me: failed program was:" >&5 17786 cat conftest.$ac_ext >&5 17787 eval "ac_cv_type_$cv=no" 17788fi 17789rm -f conftest.$ac_objext conftest.$ac_ext 17790fi 17791ac_foo=`eval echo \\$ac_cv_type_$cv` 17792echo "$as_me:17792: result: $ac_foo" >&5 17793echo "${ECHO_T}$ac_foo" >&6 17794if test "$ac_foo" = yes; then 17795 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 17796if false; then 17797 echo "$as_me:17797: checking for sa_family_t" >&5 17798echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 17799if test "${ac_cv_type_sa_family_t+set}" = set; then 17800 echo $ECHO_N "(cached) $ECHO_C" >&6 17801else 17802 cat >conftest.$ac_ext <<_ACEOF 17803#line 17803 "configure" 17804#include "confdefs.h" 17805$ac_includes_default 17806int 17807main () 17808{ 17809if ((sa_family_t *) 0) 17810 return 0; 17811if (sizeof (sa_family_t)) 17812 return 0; 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817rm -f conftest.$ac_objext 17818if { (eval echo $as_me:17818: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17819 ac_cv_type_sa_family_t=yes 17820else 17821 echo "$as_me: failed program was:" >&5 17822 cat conftest.$ac_ext >&5 17823 ac_cv_type_sa_family_t=no 17824fi 17825rm -f conftest.$ac_objext conftest.$ac_ext 17826fi 17827echo "$as_me:17827: result: $ac_cv_type_sa_family_t" >&5 17828echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6 17829if test $ac_cv_type_sa_family_t = yes; then 17830 17831cat >>confdefs.h <<EOF 17832#define HAVE_SA_FAMILY_T 1 17833EOF 17834 17835fi 17836 17837fi 17838 17839cat >>confdefs.h <<EOF 17840#define $ac_tr_hdr 1 17841EOF 17842 17843fi 17844 17845cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 17846echo "$as_me:17846: checking for socklen_t" >&5 17847echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 17848if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 17849 echo $ECHO_N "(cached) $ECHO_C" >&6 17850else 17851 cat >conftest.$ac_ext <<_ACEOF 17852#line 17852 "configure" 17853#include "confdefs.h" 17854#include <sys/types.h> 17855#if STDC_HEADERS 17856#include <stdlib.h> 17857#include <stddef.h> 17858#endif 17859#include <sys/socket.h> 17860int 17861main () 17862{ 17863socklen_t foo; 17864 ; 17865 return 0; 17866} 17867_ACEOF 17868rm -f conftest.$ac_objext 17869if { (eval echo $as_me:17869: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17870 eval "ac_cv_type_$cv=yes" 17871else 17872 echo "$as_me: failed program was:" >&5 17873 cat conftest.$ac_ext >&5 17874 eval "ac_cv_type_$cv=no" 17875fi 17876rm -f conftest.$ac_objext conftest.$ac_ext 17877fi 17878ac_foo=`eval echo \\$ac_cv_type_$cv` 17879echo "$as_me:17879: result: $ac_foo" >&5 17880echo "${ECHO_T}$ac_foo" >&6 17881if test "$ac_foo" = yes; then 17882 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 17883if false; then 17884 echo "$as_me:17884: checking for socklen_t" >&5 17885echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 17886if test "${ac_cv_type_socklen_t+set}" = set; then 17887 echo $ECHO_N "(cached) $ECHO_C" >&6 17888else 17889 cat >conftest.$ac_ext <<_ACEOF 17890#line 17890 "configure" 17891#include "confdefs.h" 17892$ac_includes_default 17893int 17894main () 17895{ 17896if ((socklen_t *) 0) 17897 return 0; 17898if (sizeof (socklen_t)) 17899 return 0; 17900 ; 17901 return 0; 17902} 17903_ACEOF 17904rm -f conftest.$ac_objext 17905if { (eval echo $as_me:17905: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17906 ac_cv_type_socklen_t=yes 17907else 17908 echo "$as_me: failed program was:" >&5 17909 cat conftest.$ac_ext >&5 17910 ac_cv_type_socklen_t=no 17911fi 17912rm -f conftest.$ac_objext conftest.$ac_ext 17913fi 17914echo "$as_me:17914: result: $ac_cv_type_socklen_t" >&5 17915echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 17916if test $ac_cv_type_socklen_t = yes; then 17917 17918cat >>confdefs.h <<EOF 17919#define HAVE_SOCKLEN_T 1 17920EOF 17921 17922fi 17923 17924fi 17925 17926cat >>confdefs.h <<EOF 17927#define $ac_tr_hdr 1 17928EOF 17929 17930fi 17931 17932cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 17933echo "$as_me:17933: checking for struct sockaddr" >&5 17934echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 17935if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 17936 echo $ECHO_N "(cached) $ECHO_C" >&6 17937else 17938 cat >conftest.$ac_ext <<_ACEOF 17939#line 17939 "configure" 17940#include "confdefs.h" 17941#include <sys/types.h> 17942#if STDC_HEADERS 17943#include <stdlib.h> 17944#include <stddef.h> 17945#endif 17946#include <sys/socket.h> 17947int 17948main () 17949{ 17950struct sockaddr foo; 17951 ; 17952 return 0; 17953} 17954_ACEOF 17955rm -f conftest.$ac_objext 17956if { (eval echo $as_me:17956: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17957 eval "ac_cv_type_$cv=yes" 17958else 17959 echo "$as_me: failed program was:" >&5 17960 cat conftest.$ac_ext >&5 17961 eval "ac_cv_type_$cv=no" 17962fi 17963rm -f conftest.$ac_objext conftest.$ac_ext 17964fi 17965ac_foo=`eval echo \\$ac_cv_type_$cv` 17966echo "$as_me:17966: result: $ac_foo" >&5 17967echo "${ECHO_T}$ac_foo" >&6 17968if test "$ac_foo" = yes; then 17969 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 17970if false; then 17971 echo "$as_me:17971: checking for struct sockaddr" >&5 17972echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 17973if test "${ac_cv_type_struct_sockaddr+set}" = set; then 17974 echo $ECHO_N "(cached) $ECHO_C" >&6 17975else 17976 cat >conftest.$ac_ext <<_ACEOF 17977#line 17977 "configure" 17978#include "confdefs.h" 17979$ac_includes_default 17980int 17981main () 17982{ 17983if ((struct sockaddr *) 0) 17984 return 0; 17985if (sizeof (struct sockaddr)) 17986 return 0; 17987 ; 17988 return 0; 17989} 17990_ACEOF 17991rm -f conftest.$ac_objext 17992if { (eval echo $as_me:17992: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 17993 ac_cv_type_struct_sockaddr=yes 17994else 17995 echo "$as_me: failed program was:" >&5 17996 cat conftest.$ac_ext >&5 17997 ac_cv_type_struct_sockaddr=no 17998fi 17999rm -f conftest.$ac_objext conftest.$ac_ext 18000fi 18001echo "$as_me:18001: result: $ac_cv_type_struct_sockaddr" >&5 18002echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6 18003if test $ac_cv_type_struct_sockaddr = yes; then 18004 18005cat >>confdefs.h <<EOF 18006#define HAVE_STRUCT_SOCKADDR 1 18007EOF 18008 18009fi 18010 18011fi 18012 18013cat >>confdefs.h <<EOF 18014#define $ac_tr_hdr 1 18015EOF 18016 18017fi 18018 18019cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 18020echo "$as_me:18020: checking for struct sockaddr_storage" >&5 18021echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 18022if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 18023 echo $ECHO_N "(cached) $ECHO_C" >&6 18024else 18025 cat >conftest.$ac_ext <<_ACEOF 18026#line 18026 "configure" 18027#include "confdefs.h" 18028#include <sys/types.h> 18029#if STDC_HEADERS 18030#include <stdlib.h> 18031#include <stddef.h> 18032#endif 18033#include <sys/socket.h> 18034int 18035main () 18036{ 18037struct sockaddr_storage foo; 18038 ; 18039 return 0; 18040} 18041_ACEOF 18042rm -f conftest.$ac_objext 18043if { (eval echo $as_me:18043: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 18044 eval "ac_cv_type_$cv=yes" 18045else 18046 echo "$as_me: failed program was:" >&5 18047 cat conftest.$ac_ext >&5 18048 eval "ac_cv_type_$cv=no" 18049fi 18050rm -f conftest.$ac_objext conftest.$ac_ext 18051fi 18052ac_foo=`eval echo \\$ac_cv_type_$cv` 18053echo "$as_me:18053: result: $ac_foo" >&5 18054echo "${ECHO_T}$ac_foo" >&6 18055if test "$ac_foo" = yes; then 18056 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 18057if false; then 18058 echo "$as_me:18058: checking for struct sockaddr_storage" >&5 18059echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 18060if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 18061 echo $ECHO_N "(cached) $ECHO_C" >&6 18062else 18063 cat >conftest.$ac_ext <<_ACEOF 18064#line 18064 "configure" 18065#include "confdefs.h" 18066$ac_includes_default 18067int 18068main () 18069{ 18070if ((struct sockaddr_storage *) 0) 18071 return 0; 18072if (sizeof (struct sockaddr_storage)) 18073 return 0; 18074 ; 18075 return 0; 18076} 18077_ACEOF 18078rm -f conftest.$ac_objext 18079if { (eval echo $as_me:18079: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 18080 ac_cv_type_struct_sockaddr_storage=yes 18081else 18082 echo "$as_me: failed program was:" >&5 18083 cat conftest.$ac_ext >&5 18084 ac_cv_type_struct_sockaddr_storage=no 18085fi 18086rm -f conftest.$ac_objext conftest.$ac_ext 18087fi 18088echo "$as_me:18088: result: $ac_cv_type_struct_sockaddr_storage" >&5 18089echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 18090if test $ac_cv_type_struct_sockaddr_storage = yes; then 18091 18092cat >>confdefs.h <<EOF 18093#define HAVE_STRUCT_SOCKADDR_STORAGE 1 18094EOF 18095 18096fi 18097 18098fi 18099 18100cat >>confdefs.h <<EOF 18101#define $ac_tr_hdr 1 18102EOF 18103 18104fi 18105 18106cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 18107echo "$as_me:18107: checking for struct addrinfo" >&5 18108echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 18109if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 18110 echo $ECHO_N "(cached) $ECHO_C" >&6 18111else 18112 cat >conftest.$ac_ext <<_ACEOF 18113#line 18113 "configure" 18114#include "confdefs.h" 18115#include <sys/types.h> 18116#if STDC_HEADERS 18117#include <stdlib.h> 18118#include <stddef.h> 18119#endif 18120#include <netdb.h> 18121int 18122main () 18123{ 18124struct addrinfo foo; 18125 ; 18126 return 0; 18127} 18128_ACEOF 18129rm -f conftest.$ac_objext 18130if { (eval echo $as_me:18130: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 18131 eval "ac_cv_type_$cv=yes" 18132else 18133 echo "$as_me: failed program was:" >&5 18134 cat conftest.$ac_ext >&5 18135 eval "ac_cv_type_$cv=no" 18136fi 18137rm -f conftest.$ac_objext conftest.$ac_ext 18138fi 18139ac_foo=`eval echo \\$ac_cv_type_$cv` 18140echo "$as_me:18140: result: $ac_foo" >&5 18141echo "${ECHO_T}$ac_foo" >&6 18142if test "$ac_foo" = yes; then 18143 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 18144if false; then 18145 echo "$as_me:18145: checking for struct addrinfo" >&5 18146echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 18147if test "${ac_cv_type_struct_addrinfo+set}" = set; then 18148 echo $ECHO_N "(cached) $ECHO_C" >&6 18149else 18150 cat >conftest.$ac_ext <<_ACEOF 18151#line 18151 "configure" 18152#include "confdefs.h" 18153$ac_includes_default 18154int 18155main () 18156{ 18157if ((struct addrinfo *) 0) 18158 return 0; 18159if (sizeof (struct addrinfo)) 18160 return 0; 18161 ; 18162 return 0; 18163} 18164_ACEOF 18165rm -f conftest.$ac_objext 18166if { (eval echo $as_me:18166: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 18167 ac_cv_type_struct_addrinfo=yes 18168else 18169 echo "$as_me: failed program was:" >&5 18170 cat conftest.$ac_ext >&5 18171 ac_cv_type_struct_addrinfo=no 18172fi 18173rm -f conftest.$ac_objext conftest.$ac_ext 18174fi 18175echo "$as_me:18175: result: $ac_cv_type_struct_addrinfo" >&5 18176echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6 18177if test $ac_cv_type_struct_addrinfo = yes; then 18178 18179cat >>confdefs.h <<EOF 18180#define HAVE_STRUCT_ADDRINFO 1 18181EOF 18182 18183fi 18184 18185fi 18186 18187cat >>confdefs.h <<EOF 18188#define $ac_tr_hdr 1 18189EOF 18190 18191fi 18192 18193echo "$as_me:18193: checking for struct winsize" >&5 18194echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6 18195if test "${ac_cv_struct_winsize+set}" = set; then 18196 echo $ECHO_N "(cached) $ECHO_C" >&6 18197else 18198 18199ac_cv_struct_winsize=no 18200for i in sys/termios.h sys/ioctl.h; do 18201cat >conftest.$ac_ext <<_ACEOF 18202#line 18202 "configure" 18203#include "confdefs.h" 18204#include <$i> 18205 18206_ACEOF 18207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18208 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 18209 ac_cv_struct_winsize=yes; break 18210fi 18211rm -f conftest* 18212done 18213 18214fi 18215 18216if test "$ac_cv_struct_winsize" = "yes"; then 18217 18218cat >>confdefs.h <<\EOF 18219#define HAVE_STRUCT_WINSIZE 1 18220EOF 18221 18222fi 18223echo "$as_me:18223: result: $ac_cv_struct_winsize" >&5 18224echo "${ECHO_T}$ac_cv_struct_winsize" >&6 18225cat >conftest.$ac_ext <<_ACEOF 18226#line 18226 "configure" 18227#include "confdefs.h" 18228#include <termios.h> 18229 18230_ACEOF 18231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18232 egrep "ws_xpixel" >/dev/null 2>&1; then 18233 18234cat >>confdefs.h <<\EOF 18235#define HAVE_WS_XPIXEL 1 18236EOF 18237 18238fi 18239rm -f conftest* 18240 18241cat >conftest.$ac_ext <<_ACEOF 18242#line 18242 "configure" 18243#include "confdefs.h" 18244#include <termios.h> 18245 18246_ACEOF 18247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18248 egrep "ws_ypixel" >/dev/null 2>&1; then 18249 18250cat >>confdefs.h <<\EOF 18251#define HAVE_WS_YPIXEL 1 18252EOF 18253 18254fi 18255rm -f conftest* 18256 18257echo "$as_me:18257: checking for struct spwd" >&5 18258echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6 18259if test "${ac_cv_struct_spwd+set}" = set; then 18260 echo $ECHO_N "(cached) $ECHO_C" >&6 18261else 18262 18263cat >conftest.$ac_ext <<_ACEOF 18264#line 18264 "configure" 18265#include "confdefs.h" 18266#include <pwd.h> 18267#ifdef HAVE_SHADOW_H 18268#include <shadow.h> 18269#endif 18270int 18271main () 18272{ 18273struct spwd foo; 18274 ; 18275 return 0; 18276} 18277_ACEOF 18278rm -f conftest.$ac_objext 18279if { (eval echo $as_me:18279: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 18280 ac_cv_struct_spwd=yes 18281else 18282 echo "$as_me: failed program was:" >&5 18283 cat conftest.$ac_ext >&5 18284 ac_cv_struct_spwd=no 18285fi 18286rm -f conftest.$ac_objext conftest.$ac_ext 18287 18288fi 18289 18290echo "$as_me:18290: result: $ac_cv_struct_spwd" >&5 18291echo "${ECHO_T}$ac_cv_struct_spwd" >&6 18292 18293if test "$ac_cv_struct_spwd" = "yes"; then 18294 18295cat >>confdefs.h <<\EOF 18296#define HAVE_STRUCT_SPWD 1 18297EOF 18298 18299fi 18300 18301echo "$as_me:18301: checking for sa_len in struct sockaddr" >&5 18302echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 18303if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 18304 echo $ECHO_N "(cached) $ECHO_C" >&6 18305else 18306 18307cat >conftest.$ac_ext <<_ACEOF 18308#line 18308 "configure" 18309#include "confdefs.h" 18310#include <sys/types.h> 18311#include <sys/socket.h> 18312int 18313main () 18314{ 18315struct sockaddr x; x.sa_len; 18316 ; 18317 return 0; 18318} 18319_ACEOF 18320rm -f conftest.$ac_objext 18321if { (eval echo $as_me:18321: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 18322 ac_cv_type_struct_sockaddr_sa_len=yes 18323else 18324 echo "$as_me: failed program was:" >&5 18325 cat conftest.$ac_ext >&5 18326 ac_cv_type_struct_sockaddr_sa_len=no 18327fi 18328rm -f conftest.$ac_objext conftest.$ac_ext 18329fi 18330echo "$as_me:18330: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 18331echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6 18332if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 18333 18334cat >>confdefs.h <<\EOF 18335#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 18336EOF 18337 18338fi 18339 18340for i in int8_t int16_t int32_t int64_t \ 18341 u_int8_t u_int16_t u_int32_t u_int64_t \ 18342 uint8_t uint16_t uint32_t uint64_t; do 18343 echo "$as_me:18343: checking for $i" >&5 18344echo $ECHO_N "checking for $i... $ECHO_C" >&6 18345 18346if eval "test \"\${ac_cv_type_$i+set}\" = set"; then 18347 echo $ECHO_N "(cached) $ECHO_C" >&6 18348else 18349 cat >conftest.$ac_ext <<_ACEOF 18350#line 18350 "configure" 18351#include "confdefs.h" 18352 18353#ifdef HAVE_INTTYPES_H 18354#include <inttypes.h> 18355#endif 18356#ifdef HAVE_SYS_TYPES_H 18357#include <sys/types.h> 18358#endif 18359#ifdef HAVE_SYS_BITYPES_H 18360#include <sys/bitypes.h> 18361#endif 18362#ifdef HAVE_BIND_BITYPES_H 18363#include <bind/bitypes.h> 18364#endif 18365#ifdef HAVE_NETINET_IN6_MACHTYPES_H 18366#include <netinet/in6_machtypes.h> 18367#endif 18368 18369int 18370main () 18371{ 18372$i x; 18373 18374 ; 18375 return 0; 18376} 18377_ACEOF 18378rm -f conftest.$ac_objext 18379if { (eval echo $as_me:18379: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 18380 eval ac_cv_type_$i=yes 18381else 18382 echo "$as_me: failed program was:" >&5 18383 cat conftest.$ac_ext >&5 18384 eval ac_cv_type_$i=no 18385fi 18386rm -f conftest.$ac_objext conftest.$ac_ext 18387fi 18388 18389 eval ac_res=\$ac_cv_type_$i 18390 if test "$ac_res" = yes; then 18391 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 18392 cat >>confdefs.h <<EOF 18393#define $type 1 18394EOF 18395 18396 fi 18397 echo "$as_me:18397: result: $ac_res" >&5 18398echo "${ECHO_T}$ac_res" >&6 18399done 18400 18401for ac_header in \ 18402 openssl/md4.h \ 18403 openssl/md5.h \ 18404 openssl/sha.h \ 18405 openssl/des.h \ 18406 openssl/rc4.h \ 18407 18408do 18409ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 18410 18411echo "$as_me:18411: checking for $ac_header" >&5 18412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18413if eval "test \"\${$ac_ac_Header+set}\" = set"; then 18414 echo $ECHO_N "(cached) $ECHO_C" >&6 18415else 18416 cat >conftest.$ac_ext <<_ACEOF 18417#line 18417 "configure" 18418#include "confdefs.h" 18419#include <$ac_header> 18420 18421_ACEOF 18422ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err" 18423if { (eval echo $as_me:18423: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then 18424 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then 18425 ac_cpp_err=$ac_c_preproc_warn_flag 18426 else 18427 ac_cpp_err= 18428 fi 18429else 18430 ac_cpp_err=yes 18431fi 18432 18433if test -z "$ac_cpp_err"; then 18434 eval "$ac_ac_Header=yes" 18435else 18436 cat conftest.err >&5 18437 echo "$as_me: failed program was:" >&5 18438 cat conftest.$ac_ext >&5 18439 eval "$ac_ac_Header=no" 18440fi 18441rm -f conftest* 18442 18443fi 18444echo "$as_me:18444: result: `eval echo '${'$ac_ac_Header'}'`" >&5 18445echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 18446if test `eval echo '${'$ac_ac_Header'}'` = yes; then 18447 cat >>confdefs.h <<EOF 18448#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 18449EOF 18450 18451fi 18452done 18453 18454echo "$as_me:18454: checking for MD4_Init" >&5 18455echo $ECHO_N "checking for MD4_Init... $ECHO_C" >&6 18456if test "${ac_cv_funclib_MD4_Init+set}" = set; then 18457 echo $ECHO_N "(cached) $ECHO_C" >&6 18458else 18459 18460if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then 18461 ac_save_LIBS="$LIBS" 18462 for ac_lib in crypto des; do 18463 if test -n "$ac_lib"; then 18464 ac_lib="-l$ac_lib" 18465 else 18466 ac_lib="" 18467 fi 18468 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS" 18469 cat >conftest.$ac_ext <<_ACEOF 18470#line 18470 "configure" 18471#include "confdefs.h" 18472 18473int 18474main () 18475{ 18476MD4_Init() 18477 ; 18478 return 0; 18479} 18480_ACEOF 18481rm -f conftest.$ac_objext conftest$ac_exeext 18482if { (eval echo $as_me:18482: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 18483 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_Init=yes; fi";break 18484else 18485 echo "$as_me: failed program was:" >&5 18486 cat conftest.$ac_ext >&5 18487fi 18488rm -f conftest$ac_exeext conftest.$ac_ext 18489 done 18490 eval "ac_cv_funclib_MD4_Init=\${ac_cv_funclib_MD4_Init-no}" 18491 LIBS="$ac_save_LIBS" 18492fi 18493 18494fi 18495 18496eval "ac_res=\$ac_cv_funclib_MD4_Init" 18497 18498if false; then 18499 18500for ac_func in MD4_Init 18501do 18502ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18503echo "$as_me:18503: checking for $ac_func" >&5 18504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18505if eval "test \"\${$ac_ac_var+set}\" = set"; then 18506 echo $ECHO_N "(cached) $ECHO_C" >&6 18507else 18508 cat >conftest.$ac_ext <<_ACEOF 18509#line 18509 "configure" 18510#include "confdefs.h" 18511/* System header to define __stub macros and hopefully few prototypes, 18512 which can conflict with char $ac_func (); below. */ 18513#include <assert.h> 18514/* Override any gcc2 internal prototype to avoid an error. */ 18515#ifdef __cplusplus 18516extern "C" 18517#endif 18518/* We use char because int might match the return type of a gcc2 18519 builtin and then its argument prototype would still apply. */ 18520char $ac_func (); 18521char (*f) (); 18522 18523int 18524main () 18525{ 18526/* The GNU C library defines this for functions which it implements 18527 to always fail with ENOSYS. Some functions are actually named 18528 something starting with __ and the normal name is an alias. */ 18529#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18530choke me 18531#else 18532f = $ac_func; 18533#endif 18534 18535 ; 18536 return 0; 18537} 18538_ACEOF 18539rm -f conftest.$ac_objext conftest$ac_exeext 18540if { (eval echo $as_me:18540: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 18541 eval "$ac_ac_var=yes" 18542else 18543 echo "$as_me: failed program was:" >&5 18544 cat conftest.$ac_ext >&5 18545 eval "$ac_ac_var=no" 18546fi 18547rm -f conftest$ac_exeext conftest.$ac_ext 18548fi 18549echo "$as_me:18549: result: `eval echo '${'$ac_ac_var'}'`" >&5 18550echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18551if test `eval echo '${'$ac_ac_var'}'` = yes; then 18552 cat >>confdefs.h <<EOF 18553#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18554EOF 18555 18556fi 18557done 18558 18559fi 18560# MD4_Init 18561eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18562eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18563eval "LIB_MD4_Init=$ac_res" 18564 18565case "$ac_res" in 18566 yes) 18567 eval "ac_cv_func_MD4_Init=yes" 18568 eval "LIB_MD4_Init=" 18569 cat >>confdefs.h <<EOF 18570#define $ac_tr_func 1 18571EOF 18572 18573 echo "$as_me:18573: result: yes" >&5 18574echo "${ECHO_T}yes" >&6 18575 ;; 18576 no) 18577 eval "ac_cv_func_MD4_Init=no" 18578 eval "LIB_MD4_Init=" 18579 echo "$as_me:18579: result: no" >&5 18580echo "${ECHO_T}no" >&6 18581 ;; 18582 *) 18583 eval "ac_cv_func_MD4_Init=yes" 18584 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18585 cat >>confdefs.h <<EOF 18586#define $ac_tr_func 1 18587EOF 18588 18589 cat >>confdefs.h <<EOF 18590#define $ac_tr_lib 1 18591EOF 18592 18593 echo "$as_me:18593: result: yes, in $ac_res" >&5 18594echo "${ECHO_T}yes, in $ac_res" >&6 18595 ;; 18596esac 18597 18598echo "$as_me:18598: checking for MD5_Init" >&5 18599echo $ECHO_N "checking for MD5_Init... $ECHO_C" >&6 18600if test "${ac_cv_funclib_MD5_Init+set}" = set; then 18601 echo $ECHO_N "(cached) $ECHO_C" >&6 18602else 18603 18604if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then 18605 ac_save_LIBS="$LIBS" 18606 for ac_lib in crypto des; do 18607 if test -n "$ac_lib"; then 18608 ac_lib="-l$ac_lib" 18609 else 18610 ac_lib="" 18611 fi 18612 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS" 18613 cat >conftest.$ac_ext <<_ACEOF 18614#line 18614 "configure" 18615#include "confdefs.h" 18616 18617int 18618main () 18619{ 18620MD5_Init() 18621 ; 18622 return 0; 18623} 18624_ACEOF 18625rm -f conftest.$ac_objext conftest$ac_exeext 18626if { (eval echo $as_me:18626: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 18627 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_Init=yes; fi";break 18628else 18629 echo "$as_me: failed program was:" >&5 18630 cat conftest.$ac_ext >&5 18631fi 18632rm -f conftest$ac_exeext conftest.$ac_ext 18633 done 18634 eval "ac_cv_funclib_MD5_Init=\${ac_cv_funclib_MD5_Init-no}" 18635 LIBS="$ac_save_LIBS" 18636fi 18637 18638fi 18639 18640eval "ac_res=\$ac_cv_funclib_MD5_Init" 18641 18642if false; then 18643 18644for ac_func in MD5_Init 18645do 18646ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18647echo "$as_me:18647: checking for $ac_func" >&5 18648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18649if eval "test \"\${$ac_ac_var+set}\" = set"; then 18650 echo $ECHO_N "(cached) $ECHO_C" >&6 18651else 18652 cat >conftest.$ac_ext <<_ACEOF 18653#line 18653 "configure" 18654#include "confdefs.h" 18655/* System header to define __stub macros and hopefully few prototypes, 18656 which can conflict with char $ac_func (); below. */ 18657#include <assert.h> 18658/* Override any gcc2 internal prototype to avoid an error. */ 18659#ifdef __cplusplus 18660extern "C" 18661#endif 18662/* We use char because int might match the return type of a gcc2 18663 builtin and then its argument prototype would still apply. */ 18664char $ac_func (); 18665char (*f) (); 18666 18667int 18668main () 18669{ 18670/* The GNU C library defines this for functions which it implements 18671 to always fail with ENOSYS. Some functions are actually named 18672 something starting with __ and the normal name is an alias. */ 18673#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18674choke me 18675#else 18676f = $ac_func; 18677#endif 18678 18679 ; 18680 return 0; 18681} 18682_ACEOF 18683rm -f conftest.$ac_objext conftest$ac_exeext 18684if { (eval echo $as_me:18684: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 18685 eval "$ac_ac_var=yes" 18686else 18687 echo "$as_me: failed program was:" >&5 18688 cat conftest.$ac_ext >&5 18689 eval "$ac_ac_var=no" 18690fi 18691rm -f conftest$ac_exeext conftest.$ac_ext 18692fi 18693echo "$as_me:18693: result: `eval echo '${'$ac_ac_var'}'`" >&5 18694echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18695if test `eval echo '${'$ac_ac_var'}'` = yes; then 18696 cat >>confdefs.h <<EOF 18697#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18698EOF 18699 18700fi 18701done 18702 18703fi 18704# MD5_Init 18705eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18706eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18707eval "LIB_MD5_Init=$ac_res" 18708 18709case "$ac_res" in 18710 yes) 18711 eval "ac_cv_func_MD5_Init=yes" 18712 eval "LIB_MD5_Init=" 18713 cat >>confdefs.h <<EOF 18714#define $ac_tr_func 1 18715EOF 18716 18717 echo "$as_me:18717: result: yes" >&5 18718echo "${ECHO_T}yes" >&6 18719 ;; 18720 no) 18721 eval "ac_cv_func_MD5_Init=no" 18722 eval "LIB_MD5_Init=" 18723 echo "$as_me:18723: result: no" >&5 18724echo "${ECHO_T}no" >&6 18725 ;; 18726 *) 18727 eval "ac_cv_func_MD5_Init=yes" 18728 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18729 cat >>confdefs.h <<EOF 18730#define $ac_tr_func 1 18731EOF 18732 18733 cat >>confdefs.h <<EOF 18734#define $ac_tr_lib 1 18735EOF 18736 18737 echo "$as_me:18737: result: yes, in $ac_res" >&5 18738echo "${ECHO_T}yes, in $ac_res" >&6 18739 ;; 18740esac 18741 18742echo "$as_me:18742: checking for SHA1_Init" >&5 18743echo $ECHO_N "checking for SHA1_Init... $ECHO_C" >&6 18744if test "${ac_cv_funclib_SHA1_Init+set}" = set; then 18745 echo $ECHO_N "(cached) $ECHO_C" >&6 18746else 18747 18748if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then 18749 ac_save_LIBS="$LIBS" 18750 for ac_lib in crypto des; do 18751 if test -n "$ac_lib"; then 18752 ac_lib="-l$ac_lib" 18753 else 18754 ac_lib="" 18755 fi 18756 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS" 18757 cat >conftest.$ac_ext <<_ACEOF 18758#line 18758 "configure" 18759#include "confdefs.h" 18760 18761int 18762main () 18763{ 18764SHA1_Init() 18765 ; 18766 return 0; 18767} 18768_ACEOF 18769rm -f conftest.$ac_objext conftest$ac_exeext 18770if { (eval echo $as_me:18770: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 18771 eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break 18772else 18773 echo "$as_me: failed program was:" >&5 18774 cat conftest.$ac_ext >&5 18775fi 18776rm -f conftest$ac_exeext conftest.$ac_ext 18777 done 18778 eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}" 18779 LIBS="$ac_save_LIBS" 18780fi 18781 18782fi 18783 18784eval "ac_res=\$ac_cv_funclib_SHA1_Init" 18785 18786if false; then 18787 18788for ac_func in SHA1_Init 18789do 18790ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18791echo "$as_me:18791: checking for $ac_func" >&5 18792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18793if eval "test \"\${$ac_ac_var+set}\" = set"; then 18794 echo $ECHO_N "(cached) $ECHO_C" >&6 18795else 18796 cat >conftest.$ac_ext <<_ACEOF 18797#line 18797 "configure" 18798#include "confdefs.h" 18799/* System header to define __stub macros and hopefully few prototypes, 18800 which can conflict with char $ac_func (); below. */ 18801#include <assert.h> 18802/* Override any gcc2 internal prototype to avoid an error. */ 18803#ifdef __cplusplus 18804extern "C" 18805#endif 18806/* We use char because int might match the return type of a gcc2 18807 builtin and then its argument prototype would still apply. */ 18808char $ac_func (); 18809char (*f) (); 18810 18811int 18812main () 18813{ 18814/* The GNU C library defines this for functions which it implements 18815 to always fail with ENOSYS. Some functions are actually named 18816 something starting with __ and the normal name is an alias. */ 18817#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18818choke me 18819#else 18820f = $ac_func; 18821#endif 18822 18823 ; 18824 return 0; 18825} 18826_ACEOF 18827rm -f conftest.$ac_objext conftest$ac_exeext 18828if { (eval echo $as_me:18828: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 18829 eval "$ac_ac_var=yes" 18830else 18831 echo "$as_me: failed program was:" >&5 18832 cat conftest.$ac_ext >&5 18833 eval "$ac_ac_var=no" 18834fi 18835rm -f conftest$ac_exeext conftest.$ac_ext 18836fi 18837echo "$as_me:18837: result: `eval echo '${'$ac_ac_var'}'`" >&5 18838echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18839if test `eval echo '${'$ac_ac_var'}'` = yes; then 18840 cat >>confdefs.h <<EOF 18841#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18842EOF 18843 18844fi 18845done 18846 18847fi 18848# SHA1_Init 18849eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18850eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18851eval "LIB_SHA1_Init=$ac_res" 18852 18853case "$ac_res" in 18854 yes) 18855 eval "ac_cv_func_SHA1_Init=yes" 18856 eval "LIB_SHA1_Init=" 18857 cat >>confdefs.h <<EOF 18858#define $ac_tr_func 1 18859EOF 18860 18861 echo "$as_me:18861: result: yes" >&5 18862echo "${ECHO_T}yes" >&6 18863 ;; 18864 no) 18865 eval "ac_cv_func_SHA1_Init=no" 18866 eval "LIB_SHA1_Init=" 18867 echo "$as_me:18867: result: no" >&5 18868echo "${ECHO_T}no" >&6 18869 ;; 18870 *) 18871 eval "ac_cv_func_SHA1_Init=yes" 18872 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18873 cat >>confdefs.h <<EOF 18874#define $ac_tr_func 1 18875EOF 18876 18877 cat >>confdefs.h <<EOF 18878#define $ac_tr_lib 1 18879EOF 18880 18881 echo "$as_me:18881: result: yes, in $ac_res" >&5 18882echo "${ECHO_T}yes, in $ac_res" >&6 18883 ;; 18884esac 18885 18886echo "$as_me:18886: checking for des_cbc_encrypt" >&5 18887echo $ECHO_N "checking for des_cbc_encrypt... $ECHO_C" >&6 18888if test "${ac_cv_funclib_des_cbc_encrypt+set}" = set; then 18889 echo $ECHO_N "(cached) $ECHO_C" >&6 18890else 18891 18892if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then 18893 ac_save_LIBS="$LIBS" 18894 for ac_lib in crypto des; do 18895 if test -n "$ac_lib"; then 18896 ac_lib="-l$ac_lib" 18897 else 18898 ac_lib="" 18899 fi 18900 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS" 18901 cat >conftest.$ac_ext <<_ACEOF 18902#line 18902 "configure" 18903#include "confdefs.h" 18904 18905int 18906main () 18907{ 18908des_cbc_encrypt() 18909 ; 18910 return 0; 18911} 18912_ACEOF 18913rm -f conftest.$ac_objext conftest$ac_exeext 18914if { (eval echo $as_me:18914: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 18915 eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break 18916else 18917 echo "$as_me: failed program was:" >&5 18918 cat conftest.$ac_ext >&5 18919fi 18920rm -f conftest$ac_exeext conftest.$ac_ext 18921 done 18922 eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}" 18923 LIBS="$ac_save_LIBS" 18924fi 18925 18926fi 18927 18928eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt" 18929 18930if false; then 18931 18932for ac_func in des_cbc_encrypt 18933do 18934ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18935echo "$as_me:18935: checking for $ac_func" >&5 18936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18937if eval "test \"\${$ac_ac_var+set}\" = set"; then 18938 echo $ECHO_N "(cached) $ECHO_C" >&6 18939else 18940 cat >conftest.$ac_ext <<_ACEOF 18941#line 18941 "configure" 18942#include "confdefs.h" 18943/* System header to define __stub macros and hopefully few prototypes, 18944 which can conflict with char $ac_func (); below. */ 18945#include <assert.h> 18946/* Override any gcc2 internal prototype to avoid an error. */ 18947#ifdef __cplusplus 18948extern "C" 18949#endif 18950/* We use char because int might match the return type of a gcc2 18951 builtin and then its argument prototype would still apply. */ 18952char $ac_func (); 18953char (*f) (); 18954 18955int 18956main () 18957{ 18958/* The GNU C library defines this for functions which it implements 18959 to always fail with ENOSYS. Some functions are actually named 18960 something starting with __ and the normal name is an alias. */ 18961#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18962choke me 18963#else 18964f = $ac_func; 18965#endif 18966 18967 ; 18968 return 0; 18969} 18970_ACEOF 18971rm -f conftest.$ac_objext conftest$ac_exeext 18972if { (eval echo $as_me:18972: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 18973 eval "$ac_ac_var=yes" 18974else 18975 echo "$as_me: failed program was:" >&5 18976 cat conftest.$ac_ext >&5 18977 eval "$ac_ac_var=no" 18978fi 18979rm -f conftest$ac_exeext conftest.$ac_ext 18980fi 18981echo "$as_me:18981: result: `eval echo '${'$ac_ac_var'}'`" >&5 18982echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18983if test `eval echo '${'$ac_ac_var'}'` = yes; then 18984 cat >>confdefs.h <<EOF 18985#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18986EOF 18987 18988fi 18989done 18990 18991fi 18992# des_cbc_encrypt 18993eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18994eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18995eval "LIB_des_cbc_encrypt=$ac_res" 18996 18997case "$ac_res" in 18998 yes) 18999 eval "ac_cv_func_des_cbc_encrypt=yes" 19000 eval "LIB_des_cbc_encrypt=" 19001 cat >>confdefs.h <<EOF 19002#define $ac_tr_func 1 19003EOF 19004 19005 echo "$as_me:19005: result: yes" >&5 19006echo "${ECHO_T}yes" >&6 19007 ;; 19008 no) 19009 eval "ac_cv_func_des_cbc_encrypt=no" 19010 eval "LIB_des_cbc_encrypt=" 19011 echo "$as_me:19011: result: no" >&5 19012echo "${ECHO_T}no" >&6 19013 ;; 19014 *) 19015 eval "ac_cv_func_des_cbc_encrypt=yes" 19016 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19017 cat >>confdefs.h <<EOF 19018#define $ac_tr_func 1 19019EOF 19020 19021 cat >>confdefs.h <<EOF 19022#define $ac_tr_lib 1 19023EOF 19024 19025 echo "$as_me:19025: result: yes, in $ac_res" >&5 19026echo "${ECHO_T}yes, in $ac_res" >&6 19027 ;; 19028esac 19029 19030echo "$as_me:19030: checking for RC4" >&5 19031echo $ECHO_N "checking for RC4... $ECHO_C" >&6 19032if test "${ac_cv_funclib_RC4+set}" = set; then 19033 echo $ECHO_N "(cached) $ECHO_C" >&6 19034else 19035 19036if eval "test \"\$ac_cv_func_RC4\" != yes" ; then 19037 ac_save_LIBS="$LIBS" 19038 for ac_lib in crypto des; do 19039 if test -n "$ac_lib"; then 19040 ac_lib="-l$ac_lib" 19041 else 19042 ac_lib="" 19043 fi 19044 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS" 19045 cat >conftest.$ac_ext <<_ACEOF 19046#line 19046 "configure" 19047#include "confdefs.h" 19048 19049int 19050main () 19051{ 19052RC4() 19053 ; 19054 return 0; 19055} 19056_ACEOF 19057rm -f conftest.$ac_objext conftest$ac_exeext 19058if { (eval echo $as_me:19058: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 19059 eval "if test -n \"$ac_lib\";then ac_cv_funclib_RC4=$ac_lib; else ac_cv_funclib_RC4=yes; fi";break 19060else 19061 echo "$as_me: failed program was:" >&5 19062 cat conftest.$ac_ext >&5 19063fi 19064rm -f conftest$ac_exeext conftest.$ac_ext 19065 done 19066 eval "ac_cv_funclib_RC4=\${ac_cv_funclib_RC4-no}" 19067 LIBS="$ac_save_LIBS" 19068fi 19069 19070fi 19071 19072eval "ac_res=\$ac_cv_funclib_RC4" 19073 19074if false; then 19075 19076for ac_func in RC4 19077do 19078ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 19079echo "$as_me:19079: checking for $ac_func" >&5 19080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19081if eval "test \"\${$ac_ac_var+set}\" = set"; then 19082 echo $ECHO_N "(cached) $ECHO_C" >&6 19083else 19084 cat >conftest.$ac_ext <<_ACEOF 19085#line 19085 "configure" 19086#include "confdefs.h" 19087/* System header to define __stub macros and hopefully few prototypes, 19088 which can conflict with char $ac_func (); below. */ 19089#include <assert.h> 19090/* Override any gcc2 internal prototype to avoid an error. */ 19091#ifdef __cplusplus 19092extern "C" 19093#endif 19094/* We use char because int might match the return type of a gcc2 19095 builtin and then its argument prototype would still apply. */ 19096char $ac_func (); 19097char (*f) (); 19098 19099int 19100main () 19101{ 19102/* The GNU C library defines this for functions which it implements 19103 to always fail with ENOSYS. Some functions are actually named 19104 something starting with __ and the normal name is an alias. */ 19105#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19106choke me 19107#else 19108f = $ac_func; 19109#endif 19110 19111 ; 19112 return 0; 19113} 19114_ACEOF 19115rm -f conftest.$ac_objext conftest$ac_exeext 19116if { (eval echo $as_me:19116: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 19117 eval "$ac_ac_var=yes" 19118else 19119 echo "$as_me: failed program was:" >&5 19120 cat conftest.$ac_ext >&5 19121 eval "$ac_ac_var=no" 19122fi 19123rm -f conftest$ac_exeext conftest.$ac_ext 19124fi 19125echo "$as_me:19125: result: `eval echo '${'$ac_ac_var'}'`" >&5 19126echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 19127if test `eval echo '${'$ac_ac_var'}'` = yes; then 19128 cat >>confdefs.h <<EOF 19129#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 19130EOF 19131 19132fi 19133done 19134 19135fi 19136# RC4 19137eval "ac_tr_func=HAVE_`echo RC4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19138eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19139eval "LIB_RC4=$ac_res" 19140 19141case "$ac_res" in 19142 yes) 19143 eval "ac_cv_func_RC4=yes" 19144 eval "LIB_RC4=" 19145 cat >>confdefs.h <<EOF 19146#define $ac_tr_func 1 19147EOF 19148 19149 echo "$as_me:19149: result: yes" >&5 19150echo "${ECHO_T}yes" >&6 19151 ;; 19152 no) 19153 eval "ac_cv_func_RC4=no" 19154 eval "LIB_RC4=" 19155 echo "$as_me:19155: result: no" >&5 19156echo "${ECHO_T}no" >&6 19157 ;; 19158 *) 19159 eval "ac_cv_func_RC4=yes" 19160 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19161 cat >>confdefs.h <<EOF 19162#define $ac_tr_func 1 19163EOF 19164 19165 cat >>confdefs.h <<EOF 19166#define $ac_tr_lib 1 19167EOF 19168 19169 echo "$as_me:19169: result: yes, in $ac_res" >&5 19170echo "${ECHO_T}yes, in $ac_res" >&6 19171 ;; 19172esac 19173 19174if test "$ac_cv_func_des_cbc_encrypt" = "yes" -a \ 19175"$ac_cv_func_MD4_Init" = "yes" -a \ 19176"$ac_cv_func_MD5_Init" = "yes" -a \ 19177"$ac_cv_func_SHA1_Init" = "yes" -a \ 19178"$ac_cv_func_RC4" = "yes"; then 19179 DIR_des='' 19180 LIB_des='' 19181 if test "$krb4_libdir" != ""; then 19182 LIB_des="-R $krb4_libdir -L$krb4_libdir" 19183 fi 19184 LIB_des="$LIB_des $ac_cv_funclib_MD4_Init" 19185 LIB_des_appl="$LIB_des" 19186else 19187 DIR_des='des' 19188 LIB_des='$(top_builddir)/lib/des/libdes.la' 19189 LIB_des_appl="-ldes" 19190fi 19191 19192echo "$as_me:19192: checking for el_init" >&5 19193echo $ECHO_N "checking for el_init... $ECHO_C" >&6 19194if test "${ac_cv_funclib_el_init+set}" = set; then 19195 echo $ECHO_N "(cached) $ECHO_C" >&6 19196else 19197 19198if eval "test \"\$ac_cv_func_el_init\" != yes" ; then 19199 ac_save_LIBS="$LIBS" 19200 for ac_lib in "" edit; do 19201 if test -n "$ac_lib"; then 19202 ac_lib="-l$ac_lib" 19203 else 19204 ac_lib="" 19205 fi 19206 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS" 19207 cat >conftest.$ac_ext <<_ACEOF 19208#line 19208 "configure" 19209#include "confdefs.h" 19210 19211int 19212main () 19213{ 19214el_init() 19215 ; 19216 return 0; 19217} 19218_ACEOF 19219rm -f conftest.$ac_objext conftest$ac_exeext 19220if { (eval echo $as_me:19220: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 19221 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break 19222else 19223 echo "$as_me: failed program was:" >&5 19224 cat conftest.$ac_ext >&5 19225fi 19226rm -f conftest$ac_exeext conftest.$ac_ext 19227 done 19228 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}" 19229 LIBS="$ac_save_LIBS" 19230fi 19231 19232fi 19233 19234eval "ac_res=\$ac_cv_funclib_el_init" 19235 19236if false; then 19237 19238for ac_func in el_init 19239do 19240ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 19241echo "$as_me:19241: checking for $ac_func" >&5 19242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19243if eval "test \"\${$ac_ac_var+set}\" = set"; then 19244 echo $ECHO_N "(cached) $ECHO_C" >&6 19245else 19246 cat >conftest.$ac_ext <<_ACEOF 19247#line 19247 "configure" 19248#include "confdefs.h" 19249/* System header to define __stub macros and hopefully few prototypes, 19250 which can conflict with char $ac_func (); below. */ 19251#include <assert.h> 19252/* Override any gcc2 internal prototype to avoid an error. */ 19253#ifdef __cplusplus 19254extern "C" 19255#endif 19256/* We use char because int might match the return type of a gcc2 19257 builtin and then its argument prototype would still apply. */ 19258char $ac_func (); 19259char (*f) (); 19260 19261int 19262main () 19263{ 19264/* The GNU C library defines this for functions which it implements 19265 to always fail with ENOSYS. Some functions are actually named 19266 something starting with __ and the normal name is an alias. */ 19267#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19268choke me 19269#else 19270f = $ac_func; 19271#endif 19272 19273 ; 19274 return 0; 19275} 19276_ACEOF 19277rm -f conftest.$ac_objext conftest$ac_exeext 19278if { (eval echo $as_me:19278: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 19279 eval "$ac_ac_var=yes" 19280else 19281 echo "$as_me: failed program was:" >&5 19282 cat conftest.$ac_ext >&5 19283 eval "$ac_ac_var=no" 19284fi 19285rm -f conftest$ac_exeext conftest.$ac_ext 19286fi 19287echo "$as_me:19287: result: `eval echo '${'$ac_ac_var'}'`" >&5 19288echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 19289if test `eval echo '${'$ac_ac_var'}'` = yes; then 19290 cat >>confdefs.h <<EOF 19291#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 19292EOF 19293 19294fi 19295done 19296 19297fi 19298# el_init 19299eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19300eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 19301eval "LIB_el_init=$ac_res" 19302 19303case "$ac_res" in 19304 yes) 19305 eval "ac_cv_func_el_init=yes" 19306 eval "LIB_el_init=" 19307 cat >>confdefs.h <<EOF 19308#define $ac_tr_func 1 19309EOF 19310 19311 echo "$as_me:19311: result: yes" >&5 19312echo "${ECHO_T}yes" >&6 19313 ;; 19314 no) 19315 eval "ac_cv_func_el_init=no" 19316 eval "LIB_el_init=" 19317 echo "$as_me:19317: result: no" >&5 19318echo "${ECHO_T}no" >&6 19319 ;; 19320 *) 19321 eval "ac_cv_func_el_init=yes" 19322 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 19323 cat >>confdefs.h <<EOF 19324#define $ac_tr_func 1 19325EOF 19326 19327 cat >>confdefs.h <<EOF 19328#define $ac_tr_lib 1 19329EOF 19330 19331 echo "$as_me:19331: result: yes, in $ac_res" >&5 19332echo "${ECHO_T}yes, in $ac_res" >&6 19333 ;; 19334esac 19335 19336if test "$ac_cv_func_el_init" = yes ; then 19337 echo "$as_me:19337: checking for four argument el_init" >&5 19338echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6 19339if test "${ac_cv_func_el_init_four+set}" = set; then 19340 echo $ECHO_N "(cached) $ECHO_C" >&6 19341else 19342 19343 cat >conftest.$ac_ext <<_ACEOF 19344#line 19344 "configure" 19345#include "confdefs.h" 19346#include <stdio.h> 19347 #include <histedit.h> 19348int 19349main () 19350{ 19351el_init("", NULL, NULL, NULL); 19352 ; 19353 return 0; 19354} 19355_ACEOF 19356rm -f conftest.$ac_objext 19357if { (eval echo $as_me:19357: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then 19358 ac_cv_func_el_init_four=yes 19359else 19360 echo "$as_me: failed program was:" >&5 19361 cat conftest.$ac_ext >&5 19362 ac_cv_func_el_init_four=no 19363fi 19364rm -f conftest.$ac_objext conftest.$ac_ext 19365fi 19366echo "$as_me:19366: result: $ac_cv_func_el_init_four" >&5 19367echo "${ECHO_T}$ac_cv_func_el_init_four" >&6 19368 if test "$ac_cv_func_el_init_four" = yes; then 19369 19370cat >>confdefs.h <<\EOF 19371#define HAVE_FOUR_VALUED_EL_INIT 1 19372EOF 19373 19374 fi 19375fi 19376 19377ac_foo=no 19378if test "$with_readline" = yes; then 19379 : 19380elif test "$ac_cv_func_readline" = yes; then 19381 : 19382elif test "$ac_cv_func_el_init" = yes; then 19383 ac_foo=yes 19384 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la $LIB_el_init" 19385else 19386 LIB_readline='$(top_builddir)/lib/editline/libeditline.la' 19387fi 19388 19389if test "$ac_foo" = yes; then 19390 el_compat_TRUE= 19391 el_compat_FALSE='#' 19392else 19393 el_compat_TRUE='#' 19394 el_compat_FALSE= 19395fi 19396if test "$readline_libdir"; then 19397 LIB_readline="-rpath $readline_libdir $LIB_readline" 19398fi 19399LIB_readline="$LIB_readline \$(LIB_tgetent)" 19400 19401cat >>confdefs.h <<\EOF 19402#define HAVE_READLINE 1 19403EOF 19404 19405cat >>confdefs.h <<\EOF 19406#define AUTHENTICATION 1 19407EOF 19408 19409cat >>confdefs.h <<\EOF 19410#define ENCRYPTION 1 19411EOF 19412 19413cat >>confdefs.h <<\EOF 19414#define DES_ENCRYPTION 1 19415EOF 19416 19417cat >>confdefs.h <<\EOF 19418#define DIAGNOSTICS 1 19419EOF 19420 19421cat >>confdefs.h <<\EOF 19422#define OLD_ENVIRON 1 19423EOF 19424if false; then 19425 19426cat >>confdefs.h <<\EOF 19427#define ENV_HACK 1 19428EOF 19429 19430fi 19431 19432# Simple test for streamspty, based on the existance of getmsg(), alas 19433# this breaks on SunOS4 which have streams but BSD-like ptys 19434# 19435# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 19436 19437echo "$as_me:19437: checking for getmsg" >&5 19438echo $ECHO_N "checking for getmsg... $ECHO_C" >&6 19439if test "${ac_cv_func_getmsg+set}" = set; then 19440 echo $ECHO_N "(cached) $ECHO_C" >&6 19441else 19442 cat >conftest.$ac_ext <<_ACEOF 19443#line 19443 "configure" 19444#include "confdefs.h" 19445/* System header to define __stub macros and hopefully few prototypes, 19446 which can conflict with char getmsg (); below. */ 19447#include <assert.h> 19448/* Override any gcc2 internal prototype to avoid an error. */ 19449#ifdef __cplusplus 19450extern "C" 19451#endif 19452/* We use char because int might match the return type of a gcc2 19453 builtin and then its argument prototype would still apply. */ 19454char getmsg (); 19455char (*f) (); 19456 19457int 19458main () 19459{ 19460/* The GNU C library defines this for functions which it implements 19461 to always fail with ENOSYS. Some functions are actually named 19462 something starting with __ and the normal name is an alias. */ 19463#if defined (__stub_getmsg) || defined (__stub___getmsg) 19464choke me 19465#else 19466f = getmsg; 19467#endif 19468 19469 ; 19470 return 0; 19471} 19472_ACEOF 19473rm -f conftest.$ac_objext conftest$ac_exeext 19474if { (eval echo $as_me:19474: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then 19475 ac_cv_func_getmsg=yes 19476else 19477 echo "$as_me: failed program was:" >&5 19478 cat conftest.$ac_ext >&5 19479 ac_cv_func_getmsg=no 19480fi 19481rm -f conftest$ac_exeext conftest.$ac_ext 19482fi 19483echo "$as_me:19483: result: $ac_cv_func_getmsg" >&5 19484echo "${ECHO_T}$ac_cv_func_getmsg" >&6 19485 19486if test "$ac_cv_func_getmsg" = "yes"; then 19487 19488echo "$as_me:19488: checking for working getmsg" >&5 19489echo $ECHO_N "checking for working getmsg... $ECHO_C" >&6 19490if test "${ac_cv_func_getmsg_work+set}" = set; then 19491 echo $ECHO_N "(cached) $ECHO_C" >&6 19492else 19493 if test "$cross_compiling" = yes; then 19494 ac_cv_func_getmsg_work=no 19495else 19496 cat >conftest.$ac_ext <<_ACEOF 19497#line 19497 "configure" 19498#include "confdefs.h" 19499 19500#include <stdio.h> 19501#include <errno.h> 19502 19503int main() 19504{ 19505 int ret; 19506 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 19507 if(ret < 0 && errno == ENOSYS) 19508 return 1; 19509 return 0; 19510} 19511 19512_ACEOF 19513rm -f conftest$ac_exeext 19514{ (eval echo $as_me:19514: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && 19515 (./conftest$ac_exeext) >&5 2>&1; 19516ac_status=$? 19517if test $ac_status = 0; then 19518 ac_cv_func_getmsg_work=yes 19519else 19520 echo "$as_me: program exited with status $ac_status" >&5 19521echo "$as_me: failed program was:" >&5 19522cat conftest.$ac_ext >&5 19523ac_cv_func_getmsg_work=no 19524fi 19525 19526rm -f conftest$ac_exeext conftest.$ac_ext 19527fi 19528 19529fi 19530echo "$as_me:19530: result: $ac_cv_func_getmsg_work" >&5 19531echo "${ECHO_T}$ac_cv_func_getmsg_work" >&6 19532test "$ac_cv_func_getmsg_work" = "yes" && 19533 19534cat >>confdefs.h <<\EOF 19535#define HAVE_GETMSG 1 19536EOF 19537 19538fi 19539 19540if test "$ac_cv_func_getmsg_work" = yes; then 19541echo "$as_me:19541: checking for streamspty" >&5 19542echo $ECHO_N "checking for streamspty... $ECHO_C" >&6 19543case "$host" in 19544*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 19545 krb_cv_sys_streamspty=no 19546 ;; 19547*) 19548 krb_cv_sys_streamspty=yes 19549 ;; 19550esac 19551echo "$as_me:19551: result: $krb_cv_sys_streamspty" >&5 19552echo "${ECHO_T}$krb_cv_sys_streamspty" >&6 19553fi 19554if test "$krb_cv_sys_streamspty" = yes; then 19555 19556cat >>confdefs.h <<\EOF 19557#define STREAMSPTY 1 19558EOF 19559 19560fi 19561 19562echo "$as_me:19562: checking which authentication modules should be built" >&5 19563echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6 19564 19565LIB_AUTH_SUBDIRS= 19566 19567if test "$ac_cv_header_siad_h" = yes; then 19568 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 19569fi 19570 19571if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then 19572 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 19573fi 19574 19575case "${host}" in 19576*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 19577esac 19578 19579echo "$as_me:19579: result: $LIB_AUTH_SUBDIRS" >&5 19580echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6 19581 19582test "x$prefix" = xNONE && prefix=$ac_default_prefix 19583test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19584 19585for i in bin lib libexec sbin; do 19586 i=${i}dir 19587 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'` 19588 x="\$${i}" 19589 eval y="$x" 19590 while test "x$y" != "x$x"; do 19591 x="$y" 19592 eval y="$x" 19593 done 19594 cat >>confdefs.h <<EOF 19595#define $foo "$x" 19596EOF 19597 19598done 19599 19600if false; then 19601 # hack to shut up automake 19602 LIBOBJS="$LIBOBJS make-print-version.o" 19603fi 19604LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'` 19605 19606ac_config_files="$ac_config_files Makefile \ 19607 include/Makefile \ 19608 include/kadm5/Makefile \ 19609 lib/Makefile \ 19610 lib/45/Makefile \ 19611 lib/auth/Makefile \ 19612 lib/auth/afskauthlib/Makefile \ 19613 lib/auth/pam/Makefile \ 19614 lib/auth/sia/Makefile \ 19615 lib/asn1/Makefile \ 19616 lib/com_err/Makefile \ 19617 lib/des/Makefile \ 19618 lib/editline/Makefile \ 19619 lib/gssapi/Makefile \ 19620 lib/hdb/Makefile \ 19621 lib/kadm5/Makefile \ 19622 lib/kafs/Makefile \ 19623 lib/kdfs/Makefile \ 19624 lib/krb5/Makefile \ 19625 lib/otp/Makefile \ 19626 lib/roken/Makefile \ 19627 lib/sl/Makefile \ 19628 lib/vers/Makefile \ 19629 kuser/Makefile \ 19630 kpasswd/Makefile \ 19631 kadmin/Makefile \ 19632 admin/Makefile \ 19633 kdc/Makefile \ 19634 appl/Makefile \ 19635 appl/afsutil/Makefile \ 19636 appl/ftp/Makefile \ 19637 appl/ftp/common/Makefile \ 19638 appl/ftp/ftp/Makefile \ 19639 appl/ftp/ftpd/Makefile \ 19640 appl/kx/Makefile \ 19641 appl/login/Makefile \ 19642 appl/otp/Makefile \ 19643 appl/popper/Makefile \ 19644 appl/push/Makefile \ 19645 appl/rsh/Makefile \ 19646 appl/rcp/Makefile \ 19647 appl/su/Makefile \ 19648 appl/xnlock/Makefile \ 19649 appl/telnet/Makefile \ 19650 appl/telnet/libtelnet/Makefile \ 19651 appl/telnet/telnet/Makefile \ 19652 appl/telnet/telnetd/Makefile \ 19653 appl/test/Makefile \ 19654 appl/kf/Makefile \ 19655 appl/dceutils/Makefile \ 19656 doc/Makefile \ 19657 tools/Makefile \ 19658" 19659 19660cat >confcache <<\_ACEOF 19661# This file is a shell script that caches the results of configure 19662# tests run on this system so they can be shared between configure 19663# scripts and configure runs, see configure's option --config-cache. 19664# It is not useful on other systems. If it contains results you don't 19665# want to keep, you may remove or edit it. 19666# 19667# config.status only pays attention to the cache file if you give it 19668# the --recheck option to rerun configure. 19669# 19670# `ac_cv_env_foo' variables (set or unset) will be overriden when 19671# loading this file, other *unset* `ac_cv_foo' will be assigned the 19672# following values. 19673 19674_ACEOF 19675 19676# The following way of writing the cache mishandles newlines in values, 19677# but we know of no workaround that is simple, portable, and efficient. 19678# So, don't put newlines in cache variables' values. 19679# Ultrix sh set writes to stderr and can't be redirected directly, 19680# and sets the high bit in the cache file unless we assign to the vars. 19681{ 19682 (set) 2>&1 | 19683 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19684 *ac_space=\ *) 19685 # `set' does not quote correctly, so add quotes (double-quote 19686 # substitution turns \\\\ into \\, and sed turns \\ into \). 19687 sed -n \ 19688 "s/'/'\\\\''/g; 19689 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19690 ;; 19691 *) 19692 # `set' quotes correctly as required by POSIX, so do not add quotes. 19693 sed -n \ 19694 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19695 ;; 19696 esac; 19697} | 19698 sed ' 19699 t clear 19700 : clear 19701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19702 t end 19703 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19704 : end' >>confcache 19705if cmp -s $cache_file confcache; then :; else 19706 if test -w $cache_file; then 19707 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19708 cat confcache >$cache_file 19709 else 19710 echo "not updating unwritable cache $cache_file" 19711 fi 19712fi 19713rm -f confcache 19714 19715test "x$prefix" = xNONE && prefix=$ac_default_prefix 19716# Let make expand exec_prefix. 19717test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19718 19719# Any assignment to VPATH causes Sun make to only execute 19720# the first set of double-colon rules, so remove it if not needed. 19721# If there is a colon in the path, we need to keep it. 19722if test "x$srcdir" = x.; then 19723 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 19724fi 19725 19726DEFS=-DHAVE_CONFIG_H 19727 19728# Save into config.log some information that might help in debugging. 19729echo >&5 19730echo "Cache variables:" >&5 19731# The following way of writing the cache mishandles newlines in values, 19732# but we know of no workaround that is simple, portable, and efficient. 19733# So, don't put newlines in cache variables' values. 19734# Ultrix sh set writes to stderr and can't be redirected directly, 19735# and sets the high bit in the cache file unless we assign to the vars. 19736{ 19737 (set) 2>&1 | 19738 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19739 *ac_space=\ *) 19740 # `set' does not quote correctly, so add quotes (double-quote 19741 # substitution turns \\\\ into \\, and sed turns \\ into \). 19742 sed -n \ 19743 "s/'/'\\\\''/g; 19744 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19745 ;; 19746 *) 19747 # `set' quotes correctly as required by POSIX, so do not add quotes. 19748 sed -n \ 19749 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19750 ;; 19751 esac; 19752} | sed 's/^/| /' >&5 19753echo >&5 19754echo "confdefs.h:" >&5 19755sed '/^$/d;s/^/| /' confdefs.h >&5 19756 19757: ${CONFIG_STATUS=./config.status} 19758ac_clean_files_save=$ac_clean_files 19759ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19760{ echo "$as_me:19760: creating $CONFIG_STATUS" >&5 19761echo "creating $CONFIG_STATUS" >&6;} 19762cat >$CONFIG_STATUS <<\_ACEOF 19763#! /bin/sh 19764# Generated automatically by configure. 19765# Run this file to recreate the current configuration. 19766# Compiler output produced by configure, useful for debugging 19767# configure, is in config.log if it exists. 19768 19769debug=false 19770as_me=`echo "$0" | sed 's,.*/,,'` 19771SHELL=${CONFIG_SHELL-/bin/sh} 19772 19773# Be Bourne compatible 19774if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19775 emulate sh 19776 NULLCMD=: 19777elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19778 set -o posix 19779fi 19780 19781if expr a : '\(a\)' >/dev/null 2>&1; then 19782 as_expr=expr 19783else 19784 as_expr=false 19785fi 19786# Support unset when possible. 19787if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 19788 as_unset=unset 19789else 19790 as_unset=false 19791fi 19792 19793# NLS nuisances. 19794$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 19795$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 19796$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 19797$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 19798$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 19799$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 19800$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 19801$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 19802 19803# IFS 19804# We need space, tab and new line, in precisely that order. 19805ac_nl=' 19806' 19807IFS=" $ac_nl" 19808 19809# CDPATH. 19810$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 19811 19812# File descriptor usage: 19813# 0 standard input 19814# 1 file creation 19815# 2 errors and warnings 19816# 3 some systems may open it to /dev/tty 19817# 4 used on the Kubota Titan 19818# 6 checking for... messages and results 19819# 5 compiler messages saved in config.log 19820if test "$silent" = yes; then 19821 exec 6>/dev/null 19822else 19823 exec 6>&1 19824fi 19825exec 5>>config.log 19826 19827cat >&5 << EOF 19828 19829---------------------------------------------------------------------- 19830 19831This file was extended by $as_me (heimdal 0.3f) 2.49b, executed with 19832 > $0 $@ 19833on `(hostname || uname -n) 2>/dev/null | sed 1q` 19834 19835EOF 19836 19837_ACEOF 19838 19839# Files that config.status was made for. 19840if test -n "$ac_config_files"; then 19841 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19842fi 19843 19844if test -n "$ac_config_headers"; then 19845 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19846fi 19847 19848if test -n "$ac_config_links"; then 19849 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19850fi 19851 19852if test -n "$ac_config_commands"; then 19853 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19854fi 19855 19856cat >>$CONFIG_STATUS <<\EOF 19857 19858ac_cs_usage="\ 19859\`$as_me' instantiates files from templates according to the 19860current configuration. 19861 19862Usage: $0 [OPTIONS] [FILE]... 19863 19864 -h, --help print this help, then exit 19865 -V, --version print version number, then exit 19866 -d, --debug don't remove temporary files 19867 --recheck update $as_me by reconfiguring in the same conditions 19868 --file=FILE[:TEMPLATE] 19869 instantiate the configuration file FILE 19870 --header=FILE[:TEMPLATE] 19871 instantiate the configuration header FILE 19872 19873Configuration files: 19874$config_files 19875 19876Configuration headers: 19877$config_headers 19878 19879Configuration commands: 19880$config_commands 19881 19882Report bugs to <bug-autoconf@gnu.org>." 19883EOF 19884 19885cat >>$CONFIG_STATUS <<EOF 19886ac_cs_version="\\ 19887$CONFIG_STATUS generated by $as_me (Autoconf 2.49b). 19888Configured on host $ac_hostname by 19889 `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`" 19890 19891ac_given_srcdir=$srcdir 19892ac_given_INSTALL="$INSTALL" 19893EOF 19894 19895cat >>$CONFIG_STATUS <<\EOF 19896# If no file are specified by the user, then we need to provide default 19897# value. By we need to know if files were specified by the user. 19898ac_need_defaults=: 19899while test $# != 0 19900do 19901 case $1 in 19902 --*=*) 19903 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19904 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19905 shift 19906 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 19907 shift 19908 ;; 19909 -*);; 19910 *) # This is not an option, so the user has probably given explicit 19911 # arguments. 19912 ac_need_defaults=false;; 19913 esac 19914 19915 case $1 in 19916 # Handling of the options. 19917EOF 19918cat >>$CONFIG_STATUS <<EOF 19919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19920 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 19921 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 19922EOF 19923cat >>$CONFIG_STATUS <<\EOF 19924 --version | --vers* | -V ) 19925 echo "$ac_cs_version"; exit 0 ;; 19926 --he | --h) 19927 # Conflict between --help and --header 19928 { echo "$as_me: error: ambiguous option: $1 19929Try \`$0 --help' for more information." >&2 19930 { (exit 1); exit; }; };; 19931 --help | --hel | -h ) 19932 echo "$ac_cs_usage"; exit 0 ;; 19933 --debug | --d* | -d ) 19934 debug=: ;; 19935 --file | --fil | --fi | --f ) 19936 shift 19937 CONFIG_FILES="$CONFIG_FILES $1" 19938 ac_need_defaults=false;; 19939 --header | --heade | --head | --hea ) 19940 shift 19941 CONFIG_HEADERS="$CONFIG_HEADERS $1" 19942 ac_need_defaults=false;; 19943 19944 # Handling of arguments. 19945 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19946 'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19947 'include/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 19948 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 19949 'lib/45/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;; 19950 'lib/auth/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;; 19951 'lib/auth/afskauthlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;; 19952 'lib/auth/pam/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;; 19953 'lib/auth/sia/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;; 19954 'lib/asn1/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 19955 'lib/com_err/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 19956 'lib/des/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;; 19957 'lib/editline/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;; 19958 'lib/gssapi/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 19959 'lib/hdb/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 19960 'lib/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 19961 'lib/kafs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 19962 'lib/kdfs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 19963 'lib/krb5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 19964 'lib/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 19965 'lib/roken/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 19966 'lib/sl/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 19967 'lib/vers/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 19968 'kuser/Makefile' ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 19969 'kpasswd/Makefile' ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 19970 'kadmin/Makefile' ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 19971 'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 19972 'kdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 19973 'appl/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 19974 'appl/afsutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 19975 'appl/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;; 19976 'appl/ftp/common/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;; 19977 'appl/ftp/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;; 19978 'appl/ftp/ftpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;; 19979 'appl/kx/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;; 19980 'appl/login/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;; 19981 'appl/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 19982 'appl/popper/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;; 19983 'appl/push/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;; 19984 'appl/rsh/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;; 19985 'appl/rcp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;; 19986 'appl/su/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 19987 'appl/xnlock/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;; 19988 'appl/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;; 19989 'appl/telnet/libtelnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;; 19990 'appl/telnet/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;; 19991 'appl/telnet/telnetd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;; 19992 'appl/test/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 19993 'appl/kf/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 19994 'appl/dceutils/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 19995 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19996 'tools/Makefile' ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 19997 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 19998 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; 19999 'include/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 20000 20001 # This is an error. 20002 -*) { echo "$as_me: error: unrecognized option: $1 20003Try \`$0 --help' for more information." >&2 20004 { (exit 1); exit; }; } ;; 20005 *) { echo "$as_me: error: invalid argument: $1" >&2 20006 { (exit 1); exit; }; };; 20007 esac 20008 shift 20009done 20010 20011EOF 20012 20013cat >>$CONFIG_STATUS <<\EOF 20014# If the user did not use the arguments to specify the items to instantiate, 20015# then the envvar interface is used. Set only those that are not. 20016if $ac_need_defaults; then 20017 CONFIG_FILES=${CONFIG_FILES="$config_files"} 20018 CONFIG_HEADERS=${CONFIG_HEADERS="$config_headers"} 20019 CONFIG_COMMANDS=${CONFIG_COMMANDS="$config_commands"} 20020fi 20021 20022# Create a temporary directory, and hook for its removal unless debugging. 20023$debug || 20024{ 20025 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20026 trap '{ (exit $?); exit; }' 1 2 13 15 20027} 20028 20029# Create a (secure) tmp directory for tmp files. 20030: ${TMPDIR=/tmp} 20031{ 20032 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 20033 test -n "$tmp" && test -d "$tmp" 20034} || 20035{ 20036 tmp=$TMPDIR/cs$$-$RANDOM 20037 (umask 077 && mkdir $tmp) 20038} || 20039{ 20040 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 20041 { (exit 1); exit; } 20042} 20043 20044EOF 20045 20046cat >>$CONFIG_STATUS <<EOF 20047# 20048# INIT-COMMANDS section. 20049# 20050 20051am_indx=1 20052 for am_file in include/config.h; do 20053 case " $CONFIG_HEADERS " in 20054 *" $am_file "*) 20055 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx 20056 ;; 20057 esac 20058 am_indx=\`expr \$am_indx + 1\` 20059 done 20060AMDEP="$AMDEP" 20061ac_aux_dir="$ac_aux_dir" 20062 20063EOF 20064 20065cat >>$CONFIG_STATUS <<EOF 20066 20067# 20068# CONFIG_FILES section. 20069# 20070 20071# No need to generate the scripts if there are no CONFIG_FILES. 20072# This happens for instance when ./config.status config.h 20073if test -n "\$CONFIG_FILES"; then 20074 # Protect against being on the right side of a sed subst in config.status. 20075 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20076 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20077s,@SHELL@,$SHELL,;t t 20078s,@exec_prefix@,$exec_prefix,;t t 20079s,@prefix@,$prefix,;t t 20080s,@program_transform_name@,$program_transform_name,;t t 20081s,@bindir@,$bindir,;t t 20082s,@sbindir@,$sbindir,;t t 20083s,@libexecdir@,$libexecdir,;t t 20084s,@datadir@,$datadir,;t t 20085s,@sysconfdir@,$sysconfdir,;t t 20086s,@sharedstatedir@,$sharedstatedir,;t t 20087s,@localstatedir@,$localstatedir,;t t 20088s,@libdir@,$libdir,;t t 20089s,@includedir@,$includedir,;t t 20090s,@oldincludedir@,$oldincludedir,;t t 20091s,@infodir@,$infodir,;t t 20092s,@mandir@,$mandir,;t t 20093s,@ECHO_C@,$ECHO_C,;t t 20094s,@ECHO_N@,$ECHO_N,;t t 20095s,@ECHO_T@,$ECHO_T,;t t 20096s,@CFLAGS@,$CFLAGS,;t t 20097s,@CPPFLAGS@,$CPPFLAGS,;t t 20098s,@CXXFLAGS@,$CXXFLAGS,;t t 20099s,@FFLAGS@,$FFLAGS,;t t 20100s,@DEFS@,$DEFS,;t t 20101s,@LDFLAGS@,$LDFLAGS,;t t 20102s,@LIBS@,$LIBS,;t t 20103s,@CC@,$CC,;t t 20104s,@ac_ct_CC@,$ac_ct_CC,;t t 20105s,@OBJEXT@,$OBJEXT,;t t 20106s,@EXEEXT@,$EXEEXT,;t t 20107s,@CPP@,$CPP,;t t 20108s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20109s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20110s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20111s,@PACKAGE@,$PACKAGE,;t t 20112s,@VERSION@,$VERSION,;t t 20113s,@ACLOCAL@,$ACLOCAL,;t t 20114s,@AUTOCONF@,$AUTOCONF,;t t 20115s,@AUTOMAKE@,$AUTOMAKE,;t t 20116s,@AUTOHEADER@,$AUTOHEADER,;t t 20117s,@MAKEINFO@,$MAKEINFO,;t t 20118s,@AMTAR@,$AMTAR,;t t 20119s,@install_sh@,$install_sh,;t t 20120s,@AWK@,$AWK,;t t 20121s,@SET_MAKE@,$SET_MAKE,;t t 20122s,@AMDEP@,$AMDEP,;t t 20123s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20124s,@DEPDIR@,$DEPDIR,;t t 20125s,@CCDEPMODE@,$CCDEPMODE,;t t 20126s,@build@,$build,;t t 20127s,@build_cpu@,$build_cpu,;t t 20128s,@build_vendor@,$build_vendor,;t t 20129s,@build_os@,$build_os,;t t 20130s,@host@,$host,;t t 20131s,@host_cpu@,$host_cpu,;t t 20132s,@host_vendor@,$host_vendor,;t t 20133s,@host_os@,$host_os,;t t 20134s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t 20135s,@YACC@,$YACC,;t t 20136s,@LEX@,$LEX,;t t 20137s,@LEXLIB@,$LEXLIB,;t t 20138s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 20139s,@RANLIB@,$RANLIB,;t t 20140s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20141s,@LN_S@,$LN_S,;t t 20142s,@STRIP@,$STRIP,;t t 20143s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20144s,@LIBTOOL@,$LIBTOOL,;t t 20145s,@WFLAGS@,$WFLAGS,;t t 20146s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t 20147s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t 20148s,@LIB_dbopen@,$LIB_dbopen,;t t 20149s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t 20150s,@LIB_db_create@,$LIB_db_create,;t t 20151s,@DBLIB@,$DBLIB,;t t 20152s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t 20153s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t 20154s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t 20155s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t 20156s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t 20157s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t 20158s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t 20159s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t 20160s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t 20161s,@LIB_socket@,$LIB_socket,;t t 20162s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t 20163s,@LIB_syslog@,$LIB_syslog,;t t 20164s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t 20165s,@LIB_res_search@,$LIB_res_search,;t t 20166s,@LIB_dn_expand@,$LIB_dn_expand,;t t 20167s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t 20168s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t 20169s,@LIB_getsockopt@,$LIB_getsockopt,;t t 20170s,@LIB_setsockopt@,$LIB_setsockopt,;t t 20171s,@LIB_hstrerror@,$LIB_hstrerror,;t t 20172s,@LIBOBJS@,$LIBOBJS,;t t 20173s,@LIB_bswap16@,$LIB_bswap16,;t t 20174s,@LIB_bswap32@,$LIB_bswap32,;t t 20175s,@LIB_pidfile@,$LIB_pidfile,;t t 20176s,@LIB_crypt@,$LIB_crypt,;t t 20177s,@DIR_roken@,$DIR_roken,;t t 20178s,@LIB_roken@,$LIB_roken,;t t 20179s,@INCLUDES_roken@,$INCLUDES_roken,;t t 20180s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t 20181s,@LIB_openldap@,$LIB_openldap,;t t 20182s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t 20183s,@LIB_krb4@,$LIB_krb4,;t t 20184s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t 20185s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t 20186s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t 20187s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t 20188s,@KRB4_TRUE@,$KRB4_TRUE,;t t 20189s,@KRB4_FALSE@,$KRB4_FALSE,;t t 20190s,@KRB5_TRUE@,$KRB5_TRUE,;t t 20191s,@KRB5_FALSE@,$KRB5_FALSE,;t t 20192s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t 20193s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t 20194s,@LIB_kdb@,$LIB_kdb,;t t 20195s,@DCE_TRUE@,$DCE_TRUE,;t t 20196s,@DCE_FALSE@,$DCE_FALSE,;t t 20197s,@dpagaix_CFLAGS@,$dpagaix_CFLAGS,;t t 20198s,@dpagaix_LDADD@,$dpagaix_LDADD,;t t 20199s,@LIB_otp@,$LIB_otp,;t t 20200s,@OTP_TRUE@,$OTP_TRUE,;t t 20201s,@OTP_FALSE@,$OTP_FALSE,;t t 20202s,@LIB_security@,$LIB_security,;t t 20203s,@NROFF@,$NROFF,;t t 20204s,@GROFF@,$GROFF,;t t 20205s,@CATMAN@,$CATMAN,;t t 20206s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t 20207s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t 20208s,@CATMANEXT@,$CATMANEXT,;t t 20209s,@INCLUDE_readline@,$INCLUDE_readline,;t t 20210s,@LIB_readline@,$LIB_readline,;t t 20211s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t 20212s,@LIB_hesiod@,$LIB_hesiod,;t t 20213s,@AIX_TRUE@,$AIX_TRUE,;t t 20214s,@AIX_FALSE@,$AIX_FALSE,;t t 20215s,@AIX4_TRUE@,$AIX4_TRUE,;t t 20216s,@AIX4_FALSE@,$AIX4_FALSE,;t t 20217s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t 20218s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t 20219s,@LIB_dlopen@,$LIB_dlopen,;t t 20220s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t 20221s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t 20222s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t 20223s,@IRIX_TRUE@,$IRIX_TRUE,;t t 20224s,@IRIX_FALSE@,$IRIX_FALSE,;t t 20225s,@X_CFLAGS@,$X_CFLAGS,;t t 20226s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 20227s,@X_LIBS@,$X_LIBS,;t t 20228s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 20229s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t 20230s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t 20231s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t 20232s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t 20233s,@LIB_XauFileName@,$LIB_XauFileName,;t t 20234s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t 20235s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t 20236s,@LIB_logwtmp@,$LIB_logwtmp,;t t 20237s,@LIB_tgetent@,$LIB_tgetent,;t t 20238s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t 20239s,@LIB_MD4_Init@,$LIB_MD4_Init,;t t 20240s,@LIB_MD5_Init@,$LIB_MD5_Init,;t t 20241s,@LIB_SHA1_Init@,$LIB_SHA1_Init,;t t 20242s,@LIB_des_cbc_encrypt@,$LIB_des_cbc_encrypt,;t t 20243s,@LIB_RC4@,$LIB_RC4,;t t 20244s,@DIR_des@,$DIR_des,;t t 20245s,@LIB_des@,$LIB_des,;t t 20246s,@LIB_des_appl@,$LIB_des_appl,;t t 20247s,@LIB_el_init@,$LIB_el_init,;t t 20248s,@el_compat_TRUE@,$el_compat_TRUE,;t t 20249s,@el_compat_FALSE@,$el_compat_FALSE,;t t 20250s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t 20251s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20252CEOF 20253 20254EOF 20255 20256 cat >>$CONFIG_STATUS <<\EOF 20257 # Split the substitutions into bite-sized pieces for seds with 20258 # small command number limits, like on Digital OSF/1 and HP-UX. 20259 ac_max_sed_lines=48 20260 ac_sed_frag=1 # Number of current file. 20261 ac_beg=1 # First line for current file. 20262 ac_end=$ac_max_sed_lines # Line after last line for current file. 20263 ac_more_lines=: 20264 ac_sed_cmds= 20265 while $ac_more_lines; do 20266 if test $ac_beg -gt 1; then 20267 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20268 else 20269 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20270 fi 20271 if test ! -s $tmp/subs.frag; then 20272 ac_more_lines=false 20273 else 20274 # The purpose of the label and of the branching condition is to 20275 # speed up the sed processing (if there are no `@' at all, there 20276 # is no need to browse any of the substitutions). 20277 # These are the two extra sed commands mentioned above. 20278 (echo ':t 20279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20280 if test -z "$ac_sed_cmds"; then 20281 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20282 else 20283 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20284 fi 20285 ac_sed_frag=`expr $ac_sed_frag + 1` 20286 ac_beg=$ac_end 20287 ac_end=`expr $ac_end + $ac_max_sed_lines` 20288 fi 20289 done 20290 if test -z "$ac_sed_cmds"; then 20291 ac_sed_cmds=cat 20292 fi 20293fi # test -n "$CONFIG_FILES" 20294 20295EOF 20296cat >>$CONFIG_STATUS <<\EOF 20297for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20299 case $ac_file in 20300 - | *:- | *:-:* ) # input from stdin 20301 cat >$tmp/stdin 20302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20306 * ) ac_file_in=$ac_file.in ;; 20307 esac 20308 20309 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 20310 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20311 X"$ac_file" : 'X\(//\)[^/]' \| \ 20312 X"$ac_file" : 'X\(//\)$' \| \ 20313 X"$ac_file" : 'X\(/\)' \| \ 20314 . : '\(.\)' 2>/dev/null || 20315echo X"$ac_file" | 20316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20317 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20318 /^X\(\/\/\)$/{ s//\1/; q; } 20319 /^X\(\/\).*/{ s//\1/; q; } 20320 s/.*/./; q'` 20321 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 20322 { case "$ac_dir" in 20323 [\\/]* | ?:[\\/]* ) ac_incr_dir=;; 20324 *) ac_incr_dir=.;; 20325esac 20326ac_dummy="$ac_dir" 20327for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do 20328 ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir 20329 test -d $ac_incr_dir || mkdir $ac_incr_dir 20330done; } 20331 20332 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 20333 # A "../" for each directory in $ac_dir_suffix. 20334 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 20335 else 20336 ac_dir_suffix= ac_dots= 20337 fi 20338 20339 case $ac_given_srcdir in 20340 .) srcdir=. 20341 if test -z "$ac_dots"; then top_srcdir=. 20342 else top_srcdir=`echo $ac_dots | sed 's,/$,,'`; fi ;; 20343 [\\/]* | ?:[\\/]* ) 20344 srcdir=$ac_given_srcdir$ac_dir_suffix; 20345 top_srcdir=$ac_given_srcdir ;; 20346 *) # Relative path. 20347 srcdir=$ac_dots$ac_given_srcdir$ac_dir_suffix 20348 top_srcdir=$ac_dots$ac_given_srcdir ;; 20349 esac 20350 20351 case $ac_given_INSTALL in 20352 [\\/$]* | ?:[\\/]* ) INSTALL=$ac_given_INSTALL ;; 20353 *) INSTALL=$ac_dots$ac_given_INSTALL ;; 20354 esac 20355 20356 if test x"$ac_file" != x-; then 20357 { echo "$as_me:20357: creating $ac_file" >&5 20358echo "creating $ac_file" >&6;} 20359 rm -f "$ac_file" 20360 fi 20361 # Let's still pretend it is `configure' which instantiates (i.e., don't 20362 # use $as_me), people would be surprised to read: 20363 # /* config.h. Generated automatically by config.status. */ 20364 configure_input="Generated automatically from `echo $ac_file_in | 20365 sed 's,.*/,,'` by configure." 20366 20367 # Don't redirect the output to AC_FILE directly: use `mv' so that 20368 # updating is atomic, and doesn't need trapping. 20369 20370 # First look for the input files in the build tree, otherwise in the 20371 # src tree. 20372 ac_file_inputs=`IFS=: 20373 for f in $ac_file_in; do 20374 case $f in 20375 -) echo $tmp/stdin ;; 20376 [\\/$]* | ?:[\\/]*) 20377 # Absolute 20378 test -f "$f" || { echo "$as_me: error: cannot find input file: $f" >&2 20379 { (exit 1); exit; }; } 20380 echo $f;; 20381 *) # Relative 20382 if test -f "$f"; then 20383 # Build tree 20384 echo $f 20385 elif test -f "$ac_given_srcdir/$f"; then 20386 # Source tree 20387 echo $ac_given_srcdir/$f 20388 else 20389 # /dev/null tree 20390 { echo "$as_me: error: cannot find input file: $f" >&2 20391 { (exit 1); exit; }; } 20392 fi;; 20393 esac 20394 done` || { (exit 1); exit; } 20395EOF 20396cat >>$CONFIG_STATUS <<EOF 20397 sed "$ac_vpsub 20398$extrasub 20399EOF 20400cat >>$CONFIG_STATUS <<\EOF 20401:t 20402/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20403s,@configure_input@,$configure_input,;t t 20404s,@srcdir@,$srcdir,;t t 20405s,@top_srcdir@,$top_srcdir,;t t 20406s,@INSTALL@,$INSTALL,;t t 20407" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20408 rm -f $tmp/stdin 20409 if test x"$ac_file" != x-; then 20410 mv $tmp/out $ac_file 20411 else 20412 cat $tmp/out 20413 rm -f $tmp/out 20414 fi 20415 20416done 20417EOF 20418cat >>$CONFIG_STATUS <<\EOF 20419 20420# 20421# CONFIG_HEADER section. 20422# 20423 20424# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20425# NAME is the cpp macro being defined and VALUE is the value it is being given. 20426# 20427# ac_d sets the value in "#define NAME VALUE" lines. 20428ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20429ac_dB='[ ].*$,\1#\2' 20430ac_dC=' ' 20431ac_dD=',;t' 20432# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20433ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20434ac_uB='$,\1#\2define\3' 20435ac_uC=' ' 20436ac_uD=',;t' 20437 20438for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20439 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20440 case $ac_file in 20441 - | *:- | *:-:* ) # input from stdin 20442 cat >$tmp/stdin 20443 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20444 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20445 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20447 * ) ac_file_in=$ac_file.in ;; 20448 esac 20449 20450 test x"$ac_file" != x- && { echo "$as_me:20450: creating $ac_file" >&5 20451echo "creating $ac_file" >&6;} 20452 20453 # First look for the input files in the build tree, otherwise in the 20454 # src tree. 20455 ac_file_inputs=`IFS=: 20456 for f in $ac_file_in; do 20457 case $f in 20458 -) echo $tmp/stdin ;; 20459 [\\/$]* | ?:[\\/]*) 20460 # Absolute 20461 test -f "$f" || { echo "$as_me: error: cannot find input file: $f" >&2 20462 { (exit 1); exit; }; } 20463 echo $f;; 20464 *) # Relative 20465 if test -f "$f"; then 20466 # Build tree 20467 echo $f 20468 elif test -f "$ac_given_srcdir/$f"; then 20469 # Source tree 20470 echo $ac_given_srcdir/$f 20471 else 20472 # /dev/null tree 20473 { echo "$as_me: error: cannot find input file: $f" >&2 20474 { (exit 1); exit; }; } 20475 fi;; 20476 esac 20477 done` || { (exit 1); exit; } 20478 # Remove the trailing spaces. 20479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20480 20481EOF 20482 20483# Transform confdefs.h into two sed scripts, `conftest.defines' and 20484# `conftest.undefs', that substitutes the proper values into 20485# config.h.in to produce config.h. The first handles `#define' 20486# templates, and the second `#undef' templates. 20487# And first: Protect against being on the right side of a sed subst in 20488# config.status. Protect against being in an unquoted here document 20489# in config.status. 20490rm -f conftest.defines conftest.undefs 20491# Using a here document instead of a string reduces the quoting nightmare. 20492# Putting comments in sed scripts is not portable. 20493# 20494# `end' is used to avoid that the second main sed command (meant for 20495# 0-ary CPP macros) applies to n-ary macro definitions. 20496# See the Autoconf documentation for `clear'. 20497cat >confdef2sed.sed <<\EOF 20498s/[\\&,]/\\&/g 20499s,[\\$`],\\&,g 20500t clear 20501: clear 20502s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 20503t end 20504s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20505: end 20506EOF 20507# If some macros were called several times there might be several times 20508# the same #defines, which is useless. Nevertheless, we may not want to 20509# sort them, since we want the *last* AC_DEFINE to be honored. 20510uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20511sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20512rm -f confdef2sed.sed 20513 20514# This sed command replaces #undef with comments. This is necessary, for 20515# example, in the case of _POSIX_SOURCE, which is predefined and required 20516# on some systems where configure will not decide to define it. 20517cat >>conftest.undefs <<\EOF 20518s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20519EOF 20520 20521# Break up conftest.defines because some shells have a limit on the size 20522# of here documents, and old seds have small limits too (100 cmds). 20523echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20524echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20525echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20526echo ' :' >>$CONFIG_STATUS 20527rm -f conftest.tail 20528while grep . conftest.defines >/dev/null 20529do 20530 # Write a limited-size here document to $tmp/defines.sed. 20531 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20532 # Speed up: don't consider the non `#define' lines. 20533 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20534 # Work around the forget-to-reset-the-flag bug. 20535 echo 't clr' >>$CONFIG_STATUS 20536 echo ': clr' >>$CONFIG_STATUS 20537 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20538 echo 'CEOF 20539 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20540 rm -f $tmp/in 20541 mv $tmp/out $tmp/in 20542' >>$CONFIG_STATUS 20543 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20544 rm -f conftest.defines 20545 mv conftest.tail conftest.defines 20546done 20547rm -f conftest.defines 20548echo ' fi # egrep' >>$CONFIG_STATUS 20549echo >>$CONFIG_STATUS 20550 20551# Break up conftest.undefs because some shells have a limit on the size 20552# of here documents, and old seds have small limits too (100 cmds). 20553echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20554rm -f conftest.tail 20555while grep . conftest.undefs >/dev/null 20556do 20557 # Write a limited-size here document to $tmp/undefs.sed. 20558 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20559 # Speed up: don't consider the non `#undef' 20560 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20561 # Work around the forget-to-reset-the-flag bug. 20562 echo 't clr' >>$CONFIG_STATUS 20563 echo ': clr' >>$CONFIG_STATUS 20564 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20565 echo 'CEOF 20566 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20567 rm -f $tmp/in 20568 mv $tmp/out $tmp/in 20569' >>$CONFIG_STATUS 20570 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20571 rm -f conftest.undefs 20572 mv conftest.tail conftest.undefs 20573done 20574rm -f conftest.undefs 20575 20576cat >>$CONFIG_STATUS <<\EOF 20577 # Let's still pretend it is `configure' which instantiates (i.e., don't 20578 # use $as_me), people would be surprised to read: 20579 # /* config.h. Generated automatically by config.status. */ 20580 if test x"$ac_file" = x-; then 20581 echo "/* Generated automatically by configure. */" >$tmp/config.h 20582 else 20583 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 20584 fi 20585 cat $tmp/in >>$tmp/config.h 20586 rm -f $tmp/in 20587 if test x"$ac_file" != x-; then 20588 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 20589 { echo "$as_me:20589: $ac_file is unchanged" >&5 20590echo "$ac_file is unchanged" >&6;} 20591 else 20592 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20593 X"$ac_file" : 'X\(//\)[^/]' \| \ 20594 X"$ac_file" : 'X\(//\)$' \| \ 20595 X"$ac_file" : 'X\(/\)' \| \ 20596 . : '\(.\)' 2>/dev/null || 20597echo X"$ac_file" | 20598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20599 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20600 /^X\(\/\/\)$/{ s//\1/; q; } 20601 /^X\(\/\).*/{ s//\1/; q; } 20602 s/.*/./; q'` 20603 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 20604 { case "$ac_dir" in 20605 [\\/]* | ?:[\\/]* ) ac_incr_dir=;; 20606 *) ac_incr_dir=.;; 20607esac 20608ac_dummy="$ac_dir" 20609for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do 20610 ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir 20611 test -d $ac_incr_dir || mkdir $ac_incr_dir 20612done; } 20613 20614 fi 20615 rm -f $ac_file 20616 mv $tmp/config.h $ac_file 20617 fi 20618 else 20619 cat $tmp/config.h 20620 rm -f $tmp/config.h 20621 fi 20622done 20623EOF 20624cat >>$CONFIG_STATUS <<\EOF 20625 20626# 20627# CONFIG_COMMANDS section. 20628# 20629for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20630 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20631 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20632 20633 case $ac_dest in 20634 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;; 20635 default-2 ) 20636test x"$AMDEP" != x"" || 20637for mf in $CONFIG_FILES; do 20638 case "$mf" in 20639 Makefile) dirpart=.;; 20640 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 20641 *) continue;; 20642 esac 20643 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 20644 # Extract the definition of DEP_FILES from the Makefile without 20645 # running `make'. 20646 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 20647 test -z "$DEPDIR" && continue 20648 # When using ansi2knr, U may be empty or an underscore; expand it 20649 U=`sed -n -e '/^U = / s///p' < "$mf"` 20650 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 20651 # We invoke sed twice because it is the simplest approach to 20652 # changing $(DEPDIR) to its actual value in the expansion. 20653 for file in `sed -n -e ' 20654 /^DEP_FILES = .*\\\\$/ { 20655 s/^DEP_FILES = // 20656 :loop 20657 s/\\\\$// 20658 p 20659 n 20660 /\\\\$/ b loop 20661 p 20662 } 20663 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 20664 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20665 # Make sure the directory exists. 20666 test -f "$dirpart/$file" && continue 20667 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 20668 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 20669 # echo "creating $dirpart/$file" 20670 echo '# dummy' > "$dirpart/$file" 20671 done 20672done 20673 ;; 20674 esac 20675done 20676EOF 20677 20678cat >>$CONFIG_STATUS <<\EOF 20679 20680exit 0 20681EOF 20682chmod +x $CONFIG_STATUS 20683ac_clean_files=$ac_clean_files_save 20684 20685test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit; } 20686 20687HEIMDALVERSION="$PACKAGE-$VERSION" 20688 20689cat > include/newversion.h.in <<EOF 20690const char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$"; 20691const char *heimdal_version = "$HEIMDALVERSION"; 20692EOF 20693 20694if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 20695 echo "include/version.h is unchanged" 20696 rm -f include/newversion.h.in 20697else 20698 echo "creating include/version.h" 20699 User=${USER-${LOGNAME}} 20700 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 20701 Date=`date` 20702 mv -f include/newversion.h.in include/version.h.in 20703 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 20704fi 20705