1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.14.1 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --enable-debugging + include debugging code" 16ac_help="$ac_help 17 --enable-dst-minutes=60 + minutes per DST adjustment" 18ac_help="$ac_help 19 --enable-md5 + include support for MD5 keys" 20ac_help="$ac_help 21 --enable-BANCOMM - Datum/Bancomm bc635/VME interface" 22ac_help="$ac_help 23 --enable-GPSVME - TrueTime GPS receiver/VME interface" 24ac_help="$ac_help 25 --enable-SHM - SHM clock attached thru shared memory" 26ac_help="$ac_help 27 --enable-all-clocks + include all suitable non-PARSE clocks:" 28ac_help="$ac_help 29 --enable-ACTS + ACTS modem service" 30ac_help="$ac_help 31 --enable-ARBITER + Arbiter 1088A/B GPS receiver" 32ac_help="$ac_help 33 --enable-ARCRON-MSF + Arcron MSF receiver" 34ac_help="$ac_help 35 --enable-AS2201 + Austron 2200A/2201A GPS receiver" 36ac_help="$ac_help 37 --enable-ATOM + PPS interface" 38ac_help="$ac_help 39 --enable-CHU + CHU modem/decoder" 40ac_help="$ac_help 41 --enable-AUDIO-CHU s - CHU audio/decoder" 42ac_help="$ac_help 43 --enable-DATUM s Datum Programmable Time System" 44ac_help="$ac_help 45 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver" 46ac_help="$ac_help 47 --enable-HPGPS + HP 58503A GPS receiver" 48ac_help="$ac_help 49 --enable-IRIG s Sun IRIG audio decoder" 50ac_help="$ac_help 51 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver" 52ac_help="$ac_help 53 --enable-LOCAL-CLOCK + local clock reference" 54ac_help="$ac_help 55 --enable-MSFEES + EES M201 MSF receiver" 56ac_help="$ac_help 57 --enable-MX4200 s Magnavox MX4200 GPS receiver" 58ac_help="$ac_help 59 --enable-NMEA + NMEA GPS receiver" 60ac_help="$ac_help 61 --enable-ONCORE + Motorola VP/UT Oncore GPS receiver" 62ac_help="$ac_help 63 --enable-PALISADE + Palisade clock" 64ac_help="$ac_help 65 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver" 66ac_help="$ac_help 67 --enable-JUPITER s Rockwell Jupiter GPS receiver" 68ac_help="$ac_help 69 --enable-PTBACTS s PTB modem service" 70ac_help="$ac_help 71 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface" 72ac_help="$ac_help 73 --enable-TRAK + TRAK 8810 GPS receiver" 74ac_help="$ac_help 75 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver" 76ac_help="$ac_help 77 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock" 78ac_help="$ac_help 79 --enable-TRUETIME s Kinemetrics/TrueTime receivers" 80ac_help="$ac_help 81 --enable-WWVB + Spectracom 8170/Netclock/2 WWVB receiver" 82ac_help="$ac_help 83 --enable-ULINK + Ultralink WWVB receiver" 84ac_help="$ac_help 85 --enable-USNO s USNO modem service" 86ac_help="$ac_help 87 --enable-parse-clocks - include all suitable PARSE clocks:" 88ac_help="$ac_help 89 --enable-COMPUTIME s Diem Computime Radio Clock" 90ac_help="$ac_help 91 --enable-DCF7000 s ELV/DCF7000 clock" 92ac_help="$ac_help 93 --enable-HOPF6021 s HOPF 6021 clock" 94ac_help="$ac_help 95 --enable-MEINBERG s Meinberg clocks" 96ac_help="$ac_help 97 --enable-RAWDCF s DCF77 raw time code" 98ac_help="$ac_help 99 --enable-RCC8000 s RCC 8000 clock" 100ac_help="$ac_help 101 --enable-SCHMID s Schmid DCF77 clock" 102ac_help="$ac_help 103 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol" 104ac_help="$ac_help 105 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol" 106ac_help="$ac_help 107 --enable-WHARTON s WHARTON 400A Series clock" 108ac_help="$ac_help 109 --enable-VARITEXT s VARITEXT clock" 110ac_help="$ac_help 111 --enable-kmem s read /dev/kmem for tick and/or tickadj" 112ac_help="$ac_help 113 --enable-accurate-adjtime 114 s the adjtime() call is accurate" 115ac_help="$ac_help 116 --enable-tick=VALUE s force a value for 'tick'" 117ac_help="$ac_help 118 --enable-tickadj=VALUE s force a value for 'tickadj'" 119ac_help="$ac_help 120 --enable-udp-wildcard s use UDP wildcard delivery" 121ac_help="$ac_help 122 --enable-slew-always s always slew the time" 123ac_help="$ac_help 124 --enable-step-slew s step and slew the time" 125ac_help="$ac_help 126 --enable-ntpdate-step s if ntpdate should step the time" 127ac_help="$ac_help 128 --enable-hourly-todr-sync 129 s if we should sync TODR hourly" 130ac_help="$ac_help 131 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug" 132 133# Initialize some variables set by options. 134# The variables have the same names as the options, with 135# dashes changed to underlines. 136build=NONE 137cache_file=./config.cache 138exec_prefix=NONE 139host=NONE 140no_create= 141nonopt=NONE 142no_recursion= 143prefix=NONE 144program_prefix=NONE 145program_suffix=NONE 146program_transform_name=s,x,x, 147silent= 148site= 149srcdir= 150target=NONE 151verbose= 152x_includes=NONE 153x_libraries=NONE 154bindir='${exec_prefix}/bin' 155sbindir='${exec_prefix}/sbin' 156libexecdir='${exec_prefix}/libexec' 157datadir='${prefix}/share' 158sysconfdir='${prefix}/etc' 159sharedstatedir='${prefix}/com' 160localstatedir='${prefix}/var' 161libdir='${exec_prefix}/lib' 162includedir='${prefix}/include' 163oldincludedir='/usr/include' 164infodir='${prefix}/info' 165mandir='${prefix}/man' 166 167# Initialize some other variables. 168subdirs= 169MFLAGS= MAKEFLAGS= 170SHELL=${CONFIG_SHELL-/bin/sh} 171# Maximum number of lines to put in a shell here document. 172ac_max_here_lines=12 173 174ac_prev= 175for ac_option 176do 177 178 # If the previous option needs an argument, assign it. 179 if test -n "$ac_prev"; then 180 eval "$ac_prev=\$ac_option" 181 ac_prev= 182 continue 183 fi 184 185 case "$ac_option" in 186 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 187 *) ac_optarg= ;; 188 esac 189 190 # Accept the important Cygnus configure options, so we can diagnose typos. 191 192 case "$ac_option" in 193 194 -bindir | --bindir | --bindi | --bind | --bin | --bi) 195 ac_prev=bindir ;; 196 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 197 bindir="$ac_optarg" ;; 198 199 -build | --build | --buil | --bui | --bu) 200 ac_prev=build ;; 201 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 202 build="$ac_optarg" ;; 203 204 -cache-file | --cache-file | --cache-fil | --cache-fi \ 205 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 206 ac_prev=cache_file ;; 207 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 208 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 209 cache_file="$ac_optarg" ;; 210 211 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 212 ac_prev=datadir ;; 213 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 214 | --da=*) 215 datadir="$ac_optarg" ;; 216 217 -disable-* | --disable-*) 218 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 219 # Reject names that are not valid shell variable names. 220 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 221 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 222 fi 223 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 224 eval "enable_${ac_feature}=no" ;; 225 226 -enable-* | --enable-*) 227 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 228 # Reject names that are not valid shell variable names. 229 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 231 fi 232 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 233 case "$ac_option" in 234 *=*) ;; 235 *) ac_optarg=yes ;; 236 esac 237 eval "enable_${ac_feature}='$ac_optarg'" ;; 238 239 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 240 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 241 | --exec | --exe | --ex) 242 ac_prev=exec_prefix ;; 243 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 244 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 245 | --exec=* | --exe=* | --ex=*) 246 exec_prefix="$ac_optarg" ;; 247 248 -gas | --gas | --ga | --g) 249 # Obsolete; use --with-gas. 250 with_gas=yes ;; 251 252 -help | --help | --hel | --he) 253 # Omit some internal or obsolete options to make the list less imposing. 254 # This message is too long to be a string in the A/UX 3.1 sh. 255 cat << EOF 256Usage: configure [options] [host] 257Options: [defaults in brackets after descriptions] 258Configuration: 259 --cache-file=FILE cache test results in FILE 260 --help print this message 261 --no-create do not create output files 262 --quiet, --silent do not print \`checking...' messages 263 --version print the version of autoconf that created configure 264Directory and file names: 265 --prefix=PREFIX install architecture-independent files in PREFIX 266 [$ac_default_prefix] 267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 268 [same as prefix] 269 --bindir=DIR user executables in DIR [EPREFIX/bin] 270 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 271 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 272 --datadir=DIR read-only architecture-independent data in DIR 273 [PREFIX/share] 274 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 275 --sharedstatedir=DIR modifiable architecture-independent data in DIR 276 [PREFIX/com] 277 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 278 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 279 --includedir=DIR C header files in DIR [PREFIX/include] 280 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 281 --infodir=DIR info documentation in DIR [PREFIX/info] 282 --mandir=DIR man documentation in DIR [PREFIX/man] 283 --srcdir=DIR find the sources in DIR [configure dir or ..] 284 --program-prefix=PREFIX prepend PREFIX to installed program names 285 --program-suffix=SUFFIX append SUFFIX to installed program names 286 --program-transform-name=PROGRAM 287 run sed PROGRAM on installed program names 288EOF 289 cat << EOF 290Host type: 291 --build=BUILD configure for building on BUILD [BUILD=HOST] 292 --host=HOST configure for HOST [guessed] 293 --target=TARGET configure for TARGET [TARGET=HOST] 294Features and packages: 295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 297 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 298 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 299 --x-includes=DIR X include files are in DIR 300 --x-libraries=DIR X library files are in DIR 301EOF 302 if test -n "$ac_help"; then 303 echo "--enable and --with options recognized:$ac_help" 304 fi 305 exit 0 ;; 306 307 -host | --host | --hos | --ho) 308 ac_prev=host ;; 309 -host=* | --host=* | --hos=* | --ho=*) 310 host="$ac_optarg" ;; 311 312 -includedir | --includedir | --includedi | --included | --include \ 313 | --includ | --inclu | --incl | --inc) 314 ac_prev=includedir ;; 315 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 316 | --includ=* | --inclu=* | --incl=* | --inc=*) 317 includedir="$ac_optarg" ;; 318 319 -infodir | --infodir | --infodi | --infod | --info | --inf) 320 ac_prev=infodir ;; 321 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 322 infodir="$ac_optarg" ;; 323 324 -libdir | --libdir | --libdi | --libd) 325 ac_prev=libdir ;; 326 -libdir=* | --libdir=* | --libdi=* | --libd=*) 327 libdir="$ac_optarg" ;; 328 329 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 330 | --libexe | --libex | --libe) 331 ac_prev=libexecdir ;; 332 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 333 | --libexe=* | --libex=* | --libe=*) 334 libexecdir="$ac_optarg" ;; 335 336 -localstatedir | --localstatedir | --localstatedi | --localstated \ 337 | --localstate | --localstat | --localsta | --localst \ 338 | --locals | --local | --loca | --loc | --lo) 339 ac_prev=localstatedir ;; 340 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 341 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 342 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 343 localstatedir="$ac_optarg" ;; 344 345 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 346 ac_prev=mandir ;; 347 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 348 mandir="$ac_optarg" ;; 349 350 -nfp | --nfp | --nf) 351 # Obsolete; use --without-fp. 352 with_fp=no ;; 353 354 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 355 | --no-cr | --no-c) 356 no_create=yes ;; 357 358 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 359 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 360 no_recursion=yes ;; 361 362 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 363 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 364 | --oldin | --oldi | --old | --ol | --o) 365 ac_prev=oldincludedir ;; 366 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 367 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 368 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 369 oldincludedir="$ac_optarg" ;; 370 371 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 372 ac_prev=prefix ;; 373 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 374 prefix="$ac_optarg" ;; 375 376 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 377 | --program-pre | --program-pr | --program-p) 378 ac_prev=program_prefix ;; 379 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 380 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 381 program_prefix="$ac_optarg" ;; 382 383 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 384 | --program-suf | --program-su | --program-s) 385 ac_prev=program_suffix ;; 386 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 387 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 388 program_suffix="$ac_optarg" ;; 389 390 -program-transform-name | --program-transform-name \ 391 | --program-transform-nam | --program-transform-na \ 392 | --program-transform-n | --program-transform- \ 393 | --program-transform | --program-transfor \ 394 | --program-transfo | --program-transf \ 395 | --program-trans | --program-tran \ 396 | --progr-tra | --program-tr | --program-t) 397 ac_prev=program_transform_name ;; 398 -program-transform-name=* | --program-transform-name=* \ 399 | --program-transform-nam=* | --program-transform-na=* \ 400 | --program-transform-n=* | --program-transform-=* \ 401 | --program-transform=* | --program-transfor=* \ 402 | --program-transfo=* | --program-transf=* \ 403 | --program-trans=* | --program-tran=* \ 404 | --progr-tra=* | --program-tr=* | --program-t=*) 405 program_transform_name="$ac_optarg" ;; 406 407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 408 | -silent | --silent | --silen | --sile | --sil) 409 silent=yes ;; 410 411 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 412 ac_prev=sbindir ;; 413 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 414 | --sbi=* | --sb=*) 415 sbindir="$ac_optarg" ;; 416 417 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 418 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 419 | --sharedst | --shareds | --shared | --share | --shar \ 420 | --sha | --sh) 421 ac_prev=sharedstatedir ;; 422 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 423 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 424 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 425 | --sha=* | --sh=*) 426 sharedstatedir="$ac_optarg" ;; 427 428 -site | --site | --sit) 429 ac_prev=site ;; 430 -site=* | --site=* | --sit=*) 431 site="$ac_optarg" ;; 432 433 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 434 ac_prev=srcdir ;; 435 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 436 srcdir="$ac_optarg" ;; 437 438 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 439 | --syscon | --sysco | --sysc | --sys | --sy) 440 ac_prev=sysconfdir ;; 441 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 442 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 443 sysconfdir="$ac_optarg" ;; 444 445 -target | --target | --targe | --targ | --tar | --ta | --t) 446 ac_prev=target ;; 447 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 448 target="$ac_optarg" ;; 449 450 -v | -verbose | --verbose | --verbos | --verbo | --verb) 451 verbose=yes ;; 452 453 -version | --version | --versio | --versi | --vers) 454 echo "configure generated by autoconf version 2.14.1" 455 exit 0 ;; 456 457 -with-* | --with-*) 458 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 459 # Reject names that are not valid shell variable names. 460 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 461 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 462 fi 463 ac_package=`echo $ac_package| sed 's/-/_/g'` 464 case "$ac_option" in 465 *=*) ;; 466 *) ac_optarg=yes ;; 467 esac 468 eval "with_${ac_package}='$ac_optarg'" ;; 469 470 -without-* | --without-*) 471 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 472 # Reject names that are not valid shell variable names. 473 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 475 fi 476 ac_package=`echo $ac_package| sed 's/-/_/g'` 477 eval "with_${ac_package}=no" ;; 478 479 --x) 480 # Obsolete; use --with-x. 481 with_x=yes ;; 482 483 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 484 | --x-incl | --x-inc | --x-in | --x-i) 485 ac_prev=x_includes ;; 486 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 487 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 488 x_includes="$ac_optarg" ;; 489 490 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 491 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 492 ac_prev=x_libraries ;; 493 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 494 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 495 x_libraries="$ac_optarg" ;; 496 497 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 498 ;; 499 500 *) 501 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 502 echo "configure: warning: $ac_option: invalid host type" 1>&2 503 fi 504 if test "x$nonopt" != xNONE; then 505 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 506 fi 507 nonopt="$ac_option" 508 ;; 509 510 esac 511done 512 513if test -n "$ac_prev"; then 514 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 515fi 516 517trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 518 519# File descriptor usage: 520# 0 standard input 521# 1 file creation 522# 2 errors and warnings 523# 3 some systems may open it to /dev/tty 524# 4 used on the Kubota Titan 525# 6 checking for... messages and results 526# 5 compiler messages saved in config.log 527if test "$silent" = yes; then 528 exec 6>/dev/null 529else 530 exec 6>&1 531fi 532exec 5>./config.log 533 534echo "\ 535This file contains any messages produced by compilers while 536running configure, to aid debugging if configure makes a mistake. 537" 1>&5 538 539# Strip out --no-create and --no-recursion so they do not pile up. 540# Also quote any args containing shell metacharacters. 541ac_configure_args= 542for ac_arg 543do 544 case "$ac_arg" in 545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 546 | --no-cr | --no-c) ;; 547 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 548 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 549 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 550 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 551 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 552 esac 553done 554 555# NLS nuisances. 556# Only set these to C if already set. These must not be set unconditionally 557# because not all systems understand e.g. LANG=C (notably SCO). 558# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 559# Non-C LC_CTYPE values break the ctype check. 560if test "${LANG+set}" = set; then LANG=C; export LANG; fi 561if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 562if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 563if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 564 565# confdefs.h avoids OS command line length limits that DEFS can exceed. 566rm -rf conftest* confdefs.h 567# AIX cpp loses on an empty file, so make sure it contains at least a newline. 568echo > confdefs.h 569 570# A filename unique to this package, relative to the directory that 571# configure is in, which we can look for to find out if srcdir is correct. 572ac_unique_file=ntpd/ntp_refclock.c 573 574# Find the source files, if location was not specified. 575if test -z "$srcdir"; then 576 ac_srcdir_defaulted=yes 577 # Try the directory containing this script, then its parent. 578 ac_prog=$0 579 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 580 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 581 srcdir=$ac_confdir 582 if test ! -r $srcdir/$ac_unique_file; then 583 srcdir=.. 584 fi 585else 586 ac_srcdir_defaulted=no 587fi 588if test ! -r $srcdir/$ac_unique_file; then 589 if test "$ac_srcdir_defaulted" = yes; then 590 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 591 else 592 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 593 fi 594fi 595srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 596 597# Prefer explicitly selected file to automatically selected ones. 598if test -z "$CONFIG_SITE"; then 599 if test "x$prefix" != xNONE; then 600 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 601 else 602 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 603 fi 604fi 605for ac_site_file in $CONFIG_SITE; do 606 if test -r "$ac_site_file"; then 607 echo "loading site script $ac_site_file" 608 . "$ac_site_file" 609 fi 610done 611 612if test -r "$cache_file"; then 613 echo "loading cache $cache_file" 614 test -f "$cache_file" && . $cache_file 615else 616 echo "creating cache $cache_file" 617 > $cache_file 618fi 619 620ac_ext=c 621# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 622ac_cpp='$CPP $CPPFLAGS' 623ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 624ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 625cross_compiling=$ac_cv_prog_cc_cross 626 627ac_exeext= 628ac_objext=o 629if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 630 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 631 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 632 ac_n= ac_c=' 633' ac_t=' ' 634 else 635 ac_n=-n ac_c= ac_t= 636 fi 637else 638 ac_n= ac_c='\c' ac_t= 639fi 640 641 642ac_aux_dir= 643for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 644 if test -f $ac_dir/install-sh; then 645 ac_aux_dir=$ac_dir 646 ac_install_sh="$ac_aux_dir/install-sh -c" 647 break 648 elif test -f $ac_dir/install.sh; then 649 ac_aux_dir=$ac_dir 650 ac_install_sh="$ac_aux_dir/install.sh -c" 651 break 652 fi 653done 654if test -z "$ac_aux_dir"; then 655 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 656fi 657ac_config_guess="$SHELL $ac_aux_dir/config.guess" 658ac_config_sub="$SHELL $ac_aux_dir/config.sub" 659ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 660 661 662echo $ac_n "checking host system type""... $ac_c" 1>&6 663echo "configure:664: checking host system type" >&5 664if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then 665 666# Make sure we can run config.sub. 667 if $ac_config_sub sun4 >/dev/null 2>&1; then : 668 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 669 fi 670 671 ac_cv_host_alias=$host 672 case "$ac_cv_host_alias" in 673 NONE) 674 case $nonopt in 675 NONE) 676 if ac_cv_host_alias=`$ac_config_guess`; then : 677 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 678 fi ;; 679 *) ac_cv_host_alias=$nonopt ;; 680 esac ;; 681 esac 682 683 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` 684 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 685 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 686 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 687else 688 echo $ac_n "(cached) $ac_c" 1>&6 689fi 690 691echo "$ac_t""$ac_cv_host" 1>&6 692 693host=$ac_cv_host 694host_alias=$ac_cv_host_alias 695host_cpu=$ac_cv_host_cpu 696host_vendor=$ac_cv_host_vendor 697host_os=$ac_cv_host_os 698 699 700 701 702 703echo $ac_n "checking target system type""... $ac_c" 1>&6 704echo "configure:705: checking target system type" >&5 705if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then 706 707# Make sure we can run config.sub. 708 if $ac_config_sub sun4 >/dev/null 2>&1; then : 709 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 710 fi 711 712 ac_cv_target_alias=$target 713 case "$ac_cv_target_alias" in 714 NONE) 715 case $nonopt in 716 NONE) 717 ac_cv_target_alias=$host_alias ;; 718 719 *) ac_cv_target_alias=$nonopt ;; 720 esac ;; 721 esac 722 723 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` 724 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 725 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 726 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 727else 728 echo $ac_n "(cached) $ac_c" 1>&6 729fi 730 731echo "$ac_t""$ac_cv_target" 1>&6 732 733target=$ac_cv_target 734target_alias=$ac_cv_target_alias 735target_cpu=$ac_cv_target_cpu 736target_vendor=$ac_cv_target_vendor 737target_os=$ac_cv_target_os 738 739 740 741 742 743echo $ac_n "checking build system type""... $ac_c" 1>&6 744echo "configure:745: checking build system type" >&5 745if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then 746 747# Make sure we can run config.sub. 748 if $ac_config_sub sun4 >/dev/null 2>&1; then : 749 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 750 fi 751 752 ac_cv_build_alias=$build 753 case "$ac_cv_build_alias" in 754 NONE) 755 case $nonopt in 756 NONE) 757 ac_cv_build_alias=$host_alias ;; 758 759 *) ac_cv_build_alias=$nonopt ;; 760 esac ;; 761 esac 762 763 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` 764 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 765 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 766 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 767else 768 echo $ac_n "(cached) $ac_c" 1>&6 769fi 770 771echo "$ac_t""$ac_cv_build" 1>&6 772 773build=$ac_cv_build 774build_alias=$ac_cv_build_alias 775build_cpu=$ac_cv_build_cpu 776build_vendor=$ac_cv_build_vendor 777build_os=$ac_cv_build_os 778 779 780 781 782 783# Do some error checking and defaulting for the host and target type. 784# The inputs are: 785# configure --host=HOST --target=TARGET --build=BUILD NONOPT 786# 787# The rules are: 788# 1. You are not allowed to specify --host, --target, and nonopt at the 789# same time. 790# 2. Host defaults to nonopt. 791# 3. If nonopt is not specified, then host defaults to the current host, 792# as determined by config.guess. 793# 4. Target and build default to nonopt. 794# 5. If nonopt is not specified, then target and build default to host. 795 796# The aliases save the names the user supplied, while $host etc. 797# will get canonicalized. 798case $host---$target---$nonopt in 799NONE---*---* | *---NONE---* | *---*---NONE) ;; 800*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 801esac 802 803test "$host_alias" != "$target_alias" && 804 test "$program_prefix$program_suffix$program_transform_name" = \ 805 NONENONEs,x,x, && 806 program_prefix=${target_alias}- 807 808cat >> confdefs.h <<EOF 809#define STR_SYSTEM "$target" 810EOF 811 812 813 814 815if test "$program_transform_name" = s,x,x,; then 816 program_transform_name= 817else 818 # Double any \ or $. echo might interpret backslashes. 819 cat <<\EOF_SED > conftestsed 820s,\\,\\\\,g; s,\$,$$,g 821EOF_SED 822 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 823 rm -f conftestsed 824fi 825test "$program_prefix" != NONE && 826 program_transform_name="s,^,${program_prefix},;$program_transform_name" 827# Use a double $ so make ignores it. 828test "$program_suffix" != NONE && 829 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 830 831# sed with no file args requires a program. 832test "$program_transform_name" = "" && program_transform_name="s,x,x," 833 834# Find a good install program. We prefer a C program (faster), 835# so one script is as good as another. But avoid the broken or 836# incompatible versions: 837# SysV /etc/install, /usr/sbin/install 838# SunOS /usr/etc/install 839# IRIX /sbin/install 840# AIX /bin/install 841# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 842# AFS /usr/afsws/bin/install, which mishandles nonexistent args 843# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 844# ./install, which can be erroneously created by make from ./install.sh. 845echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 846echo "configure:847: checking for a BSD compatible install" >&5 847if test -z "$INSTALL"; then 848if eval "test \"\${ac_cv_path_install+set}\" = set"; then 849 echo $ac_n "(cached) $ac_c" 1>&6 850else 851 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 852 for ac_dir in $PATH; do 853 # Account for people who put trailing slashes in PATH elements. 854 case "$ac_dir/" in 855 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 856 *) 857 # OSF1 and SCO ODT 3.0 have their own names for install. 858 # Don't use installbsd from OSF since it installs stuff as root 859 # by default. 860 for ac_prog in ginstall scoinst install; do 861 if test -f $ac_dir/$ac_prog; then 862 if test $ac_prog = install && 863 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 864 # AIX install. It has an incompatible calling convention. 865 : 866 elif test $ac_prog = install && 867 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then 868 # program-specific install script used by HP pwplus--don't use. 869 : 870 else 871 ac_cv_path_install="$ac_dir/$ac_prog -c" 872 break 2 873 fi 874 fi 875 done 876 ;; 877 esac 878 done 879 IFS="$ac_save_IFS" 880 881fi 882 if test "${ac_cv_path_install+set}" = set; then 883 INSTALL="$ac_cv_path_install" 884 else 885 # As a last resort, use the slow shell script. We don't cache a 886 # path for INSTALL within a source directory, because that will 887 # break other packages using the cache if that directory is 888 # removed, or if the path is relative. 889 INSTALL="$ac_install_sh" 890 fi 891fi 892echo "$ac_t""$INSTALL" 1>&6 893 894# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 895# It thinks the first close brace ends the variable substitution. 896test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 897 898test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 899 900test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 901 902echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 903echo "configure:904: checking whether build environment is sane" >&5 904# Just in case 905sleep 1 906echo timestamp > conftestfile 907# Do `set' in a subshell so we don't clobber the current shell's 908# arguments. Must try -L first in case configure is actually a 909# symlink; some systems play weird games with the mod time of symlinks 910# (eg FreeBSD returns the mod time of the symlink's containing 911# directory). 912if ( 913 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 914 if test "$*" = "X"; then 915 # -L didn't work. 916 set X `ls -t $srcdir/configure conftestfile` 917 fi 918 if test "$*" != "X $srcdir/configure conftestfile" \ 919 && test "$*" != "X conftestfile $srcdir/configure"; then 920 921 # If neither matched, then we have a broken ls. This can happen 922 # if, for instance, CONFIG_SHELL is bash and it inherits a 923 # broken ls alias from the environment. This has actually 924 # happened. Such a system could not be considered "sane". 925 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 926alias in your environment" 1>&2; exit 1; } 927 fi 928 929 test "$2" = conftestfile 930 ) 931then 932 # Ok. 933 : 934else 935 { echo "configure: error: newly created file is older than distributed files! 936Check your system clock" 1>&2; exit 1; } 937fi 938rm -f conftest* 939echo "$ac_t""yes" 1>&6 940echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 941echo "configure:942: checking whether ${MAKE-make} sets \${MAKE}" >&5 942set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 943if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 944 echo $ac_n "(cached) $ac_c" 1>&6 945else 946 cat > conftestmake <<\EOF 947all: 948 @echo 'ac_maketemp="${MAKE}"' 949EOF 950# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 951eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 952if test -n "$ac_maketemp"; then 953 eval ac_cv_prog_make_${ac_make}_set=yes 954else 955 eval ac_cv_prog_make_${ac_make}_set=no 956fi 957rm -f conftestmake 958fi 959if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 960 echo "$ac_t""yes" 1>&6 961 SET_MAKE= 962else 963 echo "$ac_t""no" 1>&6 964 SET_MAKE="MAKE=${MAKE-make}" 965fi 966 967 968 969PACKAGE=ntp 970 971VERSION=4.0.98f 972 973if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 974 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 975fi 976cat >> confdefs.h <<EOF 977#define PACKAGE "$PACKAGE" 978EOF 979 980cat >> confdefs.h <<EOF 981#define VERSION "$VERSION" 982EOF 983 984 985 986missing_dir=`cd $ac_aux_dir && pwd` 987echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 988echo "configure:989: checking for working aclocal" >&5 989# Run test in a subshell; some versions of sh will print an error if 990# an executable is not found, even if stderr is redirected. 991# Redirect stdin to placate older versions of autoconf. Sigh. 992if (aclocal --version) < /dev/null > /dev/null 2>&1; then 993 ACLOCAL=aclocal 994 echo "$ac_t""found" 1>&6 995else 996 ACLOCAL="$missing_dir/missing aclocal" 997 echo "$ac_t""missing" 1>&6 998fi 999 1000echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 1001echo "configure:1002: checking for working autoconf" >&5 1002# Run test in a subshell; some versions of sh will print an error if 1003# an executable is not found, even if stderr is redirected. 1004# Redirect stdin to placate older versions of autoconf. Sigh. 1005if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1006 AUTOCONF=autoconf 1007 echo "$ac_t""found" 1>&6 1008else 1009 AUTOCONF="$missing_dir/missing autoconf" 1010 echo "$ac_t""missing" 1>&6 1011fi 1012 1013echo $ac_n "checking for working automake""... $ac_c" 1>&6 1014echo "configure:1015: checking for working automake" >&5 1015# Run test in a subshell; some versions of sh will print an error if 1016# an executable is not found, even if stderr is redirected. 1017# Redirect stdin to placate older versions of autoconf. Sigh. 1018if (automake --version) < /dev/null > /dev/null 2>&1; then 1019 AUTOMAKE=automake 1020 echo "$ac_t""found" 1>&6 1021else 1022 AUTOMAKE="$missing_dir/missing automake" 1023 echo "$ac_t""missing" 1>&6 1024fi 1025 1026echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 1027echo "configure:1028: checking for working autoheader" >&5 1028# Run test in a subshell; some versions of sh will print an error if 1029# an executable is not found, even if stderr is redirected. 1030# Redirect stdin to placate older versions of autoconf. Sigh. 1031if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1032 AUTOHEADER=autoheader 1033 echo "$ac_t""found" 1>&6 1034else 1035 AUTOHEADER="$missing_dir/missing autoheader" 1036 echo "$ac_t""missing" 1>&6 1037fi 1038 1039echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 1040echo "configure:1041: checking for working makeinfo" >&5 1041# Run test in a subshell; some versions of sh will print an error if 1042# an executable is not found, even if stderr is redirected. 1043# Redirect stdin to placate older versions of autoconf. Sigh. 1044if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1045 MAKEINFO=makeinfo 1046 echo "$ac_t""found" 1>&6 1047else 1048 MAKEINFO="$missing_dir/missing makeinfo" 1049 echo "$ac_t""missing" 1>&6 1050fi 1051 1052for ac_prog in gnutar gtar tar 1053do 1054# Extract the first word of "$ac_prog", so it can be a program name with args. 1055set dummy $ac_prog; ac_word=$2 1056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1057echo "configure:1058: checking for $ac_word" >&5 1058if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then 1059 echo $ac_n "(cached) $ac_c" 1>&6 1060else 1061 if test -n "$AMTAR"; then 1062 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test. 1063else 1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1065 ac_dummy="$PATH" 1066 for ac_dir in $ac_dummy; do 1067 test -z "$ac_dir" && ac_dir=. 1068 if test -f $ac_dir/$ac_word; then 1069 ac_cv_prog_AMTAR="$ac_prog" 1070 break 1071 fi 1072 done 1073 IFS="$ac_save_ifs" 1074fi 1075fi 1076AMTAR="$ac_cv_prog_AMTAR" 1077if test -n "$AMTAR"; then 1078 echo "$ac_t""$AMTAR" 1>&6 1079else 1080 echo "$ac_t""no" 1>&6 1081fi 1082 1083test -n "$AMTAR" && break 1084done 1085 1086AMTARFLAGS= 1087if test -n "$AMTAR"; then 1088 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then 1089 AMTARFLAGS=o 1090 fi 1091fi 1092 1093 1094 1095 1096ac_cv_var_oncore_ok=no 1097 1098iCFLAGS="$CFLAGS" 1099 1100# Extract the first word of "gcc", so it can be a program name with args. 1101set dummy gcc; ac_word=$2 1102echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1103echo "configure:1104: checking for $ac_word" >&5 1104if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then 1105 echo $ac_n "(cached) $ac_c" 1>&6 1106else 1107 if test -n "$CC"; then 1108 ac_cv_prog_CC="$CC" # Let the user override the test. 1109else 1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1111 ac_dummy="$PATH" 1112 for ac_dir in $ac_dummy; do 1113 test -z "$ac_dir" && ac_dir=. 1114 if test -f $ac_dir/$ac_word; then 1115 ac_cv_prog_CC="gcc" 1116 break 1117 fi 1118 done 1119 IFS="$ac_save_ifs" 1120fi 1121fi 1122CC="$ac_cv_prog_CC" 1123if test -n "$CC"; then 1124 echo "$ac_t""$CC" 1>&6 1125else 1126 echo "$ac_t""no" 1>&6 1127fi 1128 1129if test -z "$CC"; then 1130 # Extract the first word of "cc", so it can be a program name with args. 1131set dummy cc; ac_word=$2 1132echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1133echo "configure:1134: checking for $ac_word" >&5 1134if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then 1135 echo $ac_n "(cached) $ac_c" 1>&6 1136else 1137 if test -n "$CC"; then 1138 ac_cv_prog_CC="$CC" # Let the user override the test. 1139else 1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1141 ac_prog_rejected=no 1142 ac_dummy="$PATH" 1143 for ac_dir in $ac_dummy; do 1144 test -z "$ac_dir" && ac_dir=. 1145 if test -f $ac_dir/$ac_word; then 1146 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1147 ac_prog_rejected=yes 1148 continue 1149 fi 1150 ac_cv_prog_CC="cc" 1151 break 1152 fi 1153 done 1154 IFS="$ac_save_ifs" 1155if test $ac_prog_rejected = yes; then 1156 # We found a bogon in the path, so make sure we never use it. 1157 set dummy $ac_cv_prog_CC 1158 shift 1159 if test $# -gt 0; then 1160 # We chose a different compiler from the bogus one. 1161 # However, it has the same basename, so the bogon will be chosen 1162 # first if we set CC to just the basename; use the full file name. 1163 shift 1164 set dummy "$ac_dir/$ac_word" "$@" 1165 shift 1166 ac_cv_prog_CC="$@" 1167 fi 1168fi 1169fi 1170fi 1171CC="$ac_cv_prog_CC" 1172if test -n "$CC"; then 1173 echo "$ac_t""$CC" 1>&6 1174else 1175 echo "$ac_t""no" 1>&6 1176fi 1177 1178 if test -z "$CC"; then 1179 case "`uname -s`" in 1180 *win32* | *WIN32* | *CYGWIN*) 1181 # Extract the first word of "cl", so it can be a program name with args. 1182set dummy cl; ac_word=$2 1183echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1184echo "configure:1185: checking for $ac_word" >&5 1185if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then 1186 echo $ac_n "(cached) $ac_c" 1>&6 1187else 1188 if test -n "$CC"; then 1189 ac_cv_prog_CC="$CC" # Let the user override the test. 1190else 1191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1192 ac_dummy="$PATH" 1193 for ac_dir in $ac_dummy; do 1194 test -z "$ac_dir" && ac_dir=. 1195 if test -f $ac_dir/$ac_word; then 1196 ac_cv_prog_CC="cl" 1197 break 1198 fi 1199 done 1200 IFS="$ac_save_ifs" 1201fi 1202fi 1203CC="$ac_cv_prog_CC" 1204if test -n "$CC"; then 1205 echo "$ac_t""$CC" 1>&6 1206else 1207 echo "$ac_t""no" 1>&6 1208fi 1209 ;; 1210 esac 1211 fi 1212 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1213fi 1214 1215echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1216echo "configure:1217: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5 1217 1218ac_ext=c 1219# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1220ac_cpp='$CPP $CPPFLAGS' 1221ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1222ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1223cross_compiling=$ac_cv_prog_cc_cross 1224 1225cat > conftest.$ac_ext << EOF 1226 1227#line 1228 "configure" 1228#include "confdefs.h" 1229 1230main(){return(0);} 1231EOF 1232if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1233 ac_cv_prog_cc_works=yes 1234 # If we can't run a trivial program, we are probably using a cross compiler. 1235 if (./conftest; exit) 2>/dev/null; then 1236 ac_cv_prog_cc_cross=no 1237 else 1238 ac_cv_prog_cc_cross=yes 1239 fi 1240else 1241 echo "configure: failed program was:" >&5 1242 cat conftest.$ac_ext >&5 1243 ac_cv_prog_cc_works=no 1244fi 1245rm -fr conftest* 1246ac_ext=c 1247# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1248ac_cpp='$CPP $CPPFLAGS' 1249ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1250ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1251cross_compiling=$ac_cv_prog_cc_cross 1252 1253echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1254if test $ac_cv_prog_cc_works = no; then 1255 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1256fi 1257echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1258echo "configure:1259: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5 1259echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1260cross_compiling=$ac_cv_prog_cc_cross 1261 1262echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1263echo "configure:1264: checking whether we are using GNU C" >&5 1264if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then 1265 echo $ac_n "(cached) $ac_c" 1>&6 1266else 1267 cat > conftest.c <<EOF 1268#ifdef __GNUC__ 1269 yes; 1270#endif 1271EOF 1272if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1273 ac_cv_prog_gcc=yes 1274else 1275 ac_cv_prog_gcc=no 1276fi 1277fi 1278 1279echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1280 1281if test $ac_cv_prog_gcc = yes; then 1282 GCC=yes 1283else 1284 GCC= 1285fi 1286 1287ac_test_CFLAGS="${CFLAGS+set}" 1288ac_save_CFLAGS="$CFLAGS" 1289CFLAGS= 1290echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1291echo "configure:1292: checking whether ${CC-cc} accepts -g" >&5 1292if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then 1293 echo $ac_n "(cached) $ac_c" 1>&6 1294else 1295 echo 'void f(){}' > conftest.c 1296if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1297 ac_cv_prog_cc_g=yes 1298else 1299 ac_cv_prog_cc_g=no 1300fi 1301rm -f conftest* 1302 1303fi 1304 1305echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1306if test "$ac_test_CFLAGS" = set; then 1307 CFLAGS="$ac_save_CFLAGS" 1308elif test $ac_cv_prog_cc_g = yes; then 1309 if test "$GCC" = yes; then 1310 CFLAGS="-g -O2" 1311 else 1312 CFLAGS="-g" 1313 fi 1314else 1315 if test "$GCC" = yes; then 1316 CFLAGS="-O2" 1317 else 1318 CFLAGS= 1319 fi 1320fi 1321 1322echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1323echo "configure:1324: checking how to run the C preprocessor" >&5 1324# On Suns, sometimes $CPP names a directory. 1325if test -n "$CPP" && test -d "$CPP"; then 1326 CPP= 1327fi 1328if test -z "$CPP"; then 1329if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then 1330 echo $ac_n "(cached) $ac_c" 1>&6 1331else 1332 # This must be in double quotes, not single quotes, because CPP may get 1333 # substituted into the Makefile and "${CC-cc}" will confuse make. 1334 CPP="${CC-cc} -E" 1335 # On the NeXT, cc -E runs the code through the compiler's parser, 1336 # not just through cpp. 1337 cat > conftest.$ac_ext <<EOF 1338#line 1339 "configure" 1339#include "confdefs.h" 1340#include <assert.h> 1341Syntax Error 1342EOF 1343ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1344{ (eval echo configure:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1345ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1346if test -z "$ac_err"; then 1347 : 1348else 1349 echo "$ac_err" >&5 1350 echo "configure: failed program was:" >&5 1351 cat conftest.$ac_ext >&5 1352 rm -rf conftest* 1353 CPP="${CC-cc} -E -traditional-cpp" 1354 cat > conftest.$ac_ext <<EOF 1355#line 1356 "configure" 1356#include "confdefs.h" 1357#include <assert.h> 1358Syntax Error 1359EOF 1360ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1361{ (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1362ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1363if test -z "$ac_err"; then 1364 : 1365else 1366 echo "$ac_err" >&5 1367 echo "configure: failed program was:" >&5 1368 cat conftest.$ac_ext >&5 1369 rm -rf conftest* 1370 CPP="${CC-cc} -nologo -E" 1371 cat > conftest.$ac_ext <<EOF 1372#line 1373 "configure" 1373#include "confdefs.h" 1374#include <assert.h> 1375Syntax Error 1376EOF 1377ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1378{ (eval echo configure:1379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1379ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1380if test -z "$ac_err"; then 1381 : 1382else 1383 echo "$ac_err" >&5 1384 echo "configure: failed program was:" >&5 1385 cat conftest.$ac_ext >&5 1386 rm -rf conftest* 1387 CPP=/lib/cpp 1388fi 1389rm -f conftest* 1390fi 1391rm -f conftest* 1392fi 1393rm -f conftest* 1394 ac_cv_prog_CPP="$CPP" 1395fi 1396 CPP="$ac_cv_prog_CPP" 1397else 1398 ac_cv_prog_CPP="$CPP" 1399fi 1400echo "$ac_t""$CPP" 1>&6 1401 1402 1403case "$target" in 1404 *-pc-cygwin*) 1405 CFLAGS="$CFLAGS -DSYS_CYGWIN32" 1406 ;; 1407 i386-sequent-sysv4) 1408 case "$CC" in 1409 cc) 1410 CFLAGS="$CFLAGS -Wc,+Abi-socket" 1411 ;; 1412 esac 1413esac 1414 1415case "$host" in 1416 $target) 1417 ;; 1418 *) case "$target" in 1419 *-*-vxworks*) 1420 # Quick and dirty sanity check 1421 case "$VX_KERNEL" in 1422 '') { echo "configure: error: Please follow the directions in html/vxworks.html!" 1>&2; exit 1; } 1423 ;; 1424 esac 1425 CFLAGS="$CFLAGS -DSYS_VXWORKS" 1426 ;; 1427 esac 1428 ;; 1429esac 1430 1431for ac_prog in mawk gawk nawk awk 1432do 1433# Extract the first word of "$ac_prog", so it can be a program name with args. 1434set dummy $ac_prog; ac_word=$2 1435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1436echo "configure:1437: checking for $ac_word" >&5 1437if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then 1438 echo $ac_n "(cached) $ac_c" 1>&6 1439else 1440 if test -n "$AWK"; then 1441 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1442else 1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1444 ac_dummy="$PATH" 1445 for ac_dir in $ac_dummy; do 1446 test -z "$ac_dir" && ac_dir=. 1447 if test -f $ac_dir/$ac_word; then 1448 ac_cv_prog_AWK="$ac_prog" 1449 break 1450 fi 1451 done 1452 IFS="$ac_save_ifs" 1453fi 1454fi 1455AWK="$ac_cv_prog_AWK" 1456if test -n "$AWK"; then 1457 echo "$ac_t""$AWK" 1>&6 1458else 1459 echo "$ac_t""no" 1>&6 1460fi 1461 1462test -n "$AWK" && break 1463done 1464 1465echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1466echo "configure:1467: checking whether ${MAKE-make} sets \${MAKE}" >&5 1467set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1468if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1469 echo $ac_n "(cached) $ac_c" 1>&6 1470else 1471 cat > conftestmake <<\EOF 1472all: 1473 @echo 'ac_maketemp="${MAKE}"' 1474EOF 1475# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1476eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1477if test -n "$ac_maketemp"; then 1478 eval ac_cv_prog_make_${ac_make}_set=yes 1479else 1480 eval ac_cv_prog_make_${ac_make}_set=no 1481fi 1482rm -f conftestmake 1483fi 1484if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1485 echo "$ac_t""yes" 1>&6 1486 SET_MAKE= 1487else 1488 echo "$ac_t""no" 1>&6 1489 SET_MAKE="MAKE=${MAKE-make}" 1490fi 1491 1492 1493rm -f conftest* 1494 1495case "$GCC" in 1496 yes) 1497 CFLAGS="$CFLAGS -Wall" 1498 # CFLAGS="$CFLAGS -Wtraditional" 1499 CFLAGS="$CFLAGS -Wshadow" 1500 # CFLAGS="$CFLAGS -Wwrite-strings" 1501 CFLAGS="$CFLAGS -Wconversion" 1502 CFLAGS="$CFLAGS -Wpointer-arith" 1503 CFLAGS="$CFLAGS -Wcast-qual" 1504 # CFLAGS="$CFLAGS -Wcast-align" 1505 CFLAGS="$CFLAGS -Wstrict-prototypes" 1506 1507 echo $ac_n "checking whether ${CC-cc} -pipe works""... $ac_c" 1>&6 1508echo "configure:1509: checking whether ${CC-cc} -pipe works" >&5 1509if eval "test \"\${ac_cv_prog_cc_pipe+set}\" = set"; then 1510 echo $ac_n "(cached) $ac_c" 1>&6 1511else 1512 echo 'void f(){}' > conftest.c 1513 if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`" -a -s conftest.o; then 1514 ac_cv_prog_cc_pipe=yes 1515 else 1516 ac_cv_prog_cc_pipe=no 1517 fi 1518 rm -f conftest* 1519 1520fi 1521 1522echo "$ac_t""$ac_cv_prog_cc_pipe" 1>&6 1523 1524 case "$ac_cv_prog_cc_pipe" in 1525 yes) 1526 CFLAGS="$CFLAGS -pipe" 1527 ;; 1528 esac 1529 ;; 1530esac 1531 1532ac_busted_vpath_in_make=no 1533 1534case "$target" in 1535 *-*-irix6.1*) # 64 bit only 1536 ;; 1537 *-*-irix6*) # 6.2 (and later?) 1538 ac_busted_vpath_in_make=yes 1539 # don't pass -n32 to gcc, it cannot handle and doesn't need it 1540 if test "$GCC" != yes; then 1541 case "$CFLAGS" in 1542 *-n32*) ;; 1543 *-n64*) ;; 1544 *) case "$iCFLAGS" in 1545 '') CFLAGS="-O2 -g3 -n32" ;; 1546 *) CFLAGS="$CFLAGS -n32" ;; 1547 esac 1548 ;; 1549 esac 1550 case "$LDFLAGS" in 1551 *-n32*) ;; 1552 *-n64*) ;; 1553 *) LDFLAGS="$LDFLAGS -n32" ;; 1554 esac 1555 fi 1556 ;; 1557 *-next-nextstep3) 1558 CFLAGS="$CFLAGS -posix" ;; 1559 *-*-solaris2.5.1) 1560 ac_busted_vpath_in_make=yes 1561 ;; 1562esac 1563 1564case "$ac_busted_vpath_in_make$srcdir" in 1565 no*) ;; 1566 yes.) ;; 1567 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in 1568 '') 1569 { echo "configure: error: building outside of the main directory requires GNU make" 1>&2; exit 1; } 1570 ;; 1571 *) ;; 1572 esac 1573 ;; 1574esac 1575 1576 1577echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1578echo "configure:1579: checking whether ln -s works" >&5 1579if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then 1580 echo $ac_n "(cached) $ac_c" 1>&6 1581else 1582 rm -f conftestdata 1583if ln -s X conftestdata 2>/dev/null 1584then 1585 rm -f conftestdata 1586 ac_cv_prog_LN_S="ln -s" 1587else 1588 ac_cv_prog_LN_S=ln 1589fi 1590fi 1591LN_S="$ac_cv_prog_LN_S" 1592if test "$ac_cv_prog_LN_S" = "ln -s"; then 1593 echo "$ac_t""yes" 1>&6 1594else 1595 echo "$ac_t""no" 1>&6 1596fi 1597 1598if test $ac_cv_prog_gcc = yes; then 1599 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1600echo "configure:1601: checking whether ${CC-cc} needs -traditional" >&5 1601if eval "test \"\${ac_cv_prog_gcc_traditional+set}\" = set"; then 1602 echo $ac_n "(cached) $ac_c" 1>&6 1603else 1604 ac_pattern="Autoconf.*'x'" 1605 cat > conftest.$ac_ext <<EOF 1606#line 1607 "configure" 1607#include "confdefs.h" 1608#include <sgtty.h> 1609Autoconf TIOCGETP 1610EOF 1611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1612 egrep "$ac_pattern" >/dev/null 2>&1; then 1613 rm -rf conftest* 1614 ac_cv_prog_gcc_traditional=yes 1615else 1616 rm -rf conftest* 1617 ac_cv_prog_gcc_traditional=no 1618fi 1619rm -f conftest* 1620 1621 1622 if test $ac_cv_prog_gcc_traditional = no; then 1623 cat > conftest.$ac_ext <<EOF 1624#line 1625 "configure" 1625#include "confdefs.h" 1626#include <termio.h> 1627Autoconf TCGETA 1628EOF 1629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1630 egrep "$ac_pattern" >/dev/null 2>&1; then 1631 rm -rf conftest* 1632 ac_cv_prog_gcc_traditional=yes 1633fi 1634rm -f conftest* 1635 1636 fi 1637fi 1638 1639echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 1640 if test $ac_cv_prog_gcc_traditional = yes; then 1641 CC="$CC -traditional" 1642 fi 1643fi 1644 1645echo $ac_n "checking for AIX""... $ac_c" 1>&6 1646echo "configure:1647: checking for AIX" >&5 1647cat > conftest.$ac_ext <<EOF 1648#line 1649 "configure" 1649#include "confdefs.h" 1650#ifdef _AIX 1651 yes 1652#endif 1653 1654EOF 1655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1656 egrep "yes" >/dev/null 2>&1; then 1657 rm -rf conftest* 1658 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1659#define _ALL_SOURCE 1 1660EOF 1661 1662else 1663 rm -rf conftest* 1664 echo "$ac_t""no" 1>&6 1665fi 1666rm -f conftest* 1667 1668 1669ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1670echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1671echo "configure:1672: checking for minix/config.h" >&5 1672if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 1673 echo $ac_n "(cached) $ac_c" 1>&6 1674else 1675 cat > conftest.$ac_ext <<EOF 1676#line 1677 "configure" 1677#include "confdefs.h" 1678#include <minix/config.h> 1679EOF 1680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1681{ (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1682ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1683if test -z "$ac_err"; then 1684 rm -rf conftest* 1685 eval "ac_cv_header_$ac_safe=yes" 1686else 1687 echo "$ac_err" >&5 1688 echo "configure: failed program was:" >&5 1689 cat conftest.$ac_ext >&5 1690 rm -rf conftest* 1691 eval "ac_cv_header_$ac_safe=no" 1692fi 1693rm -f conftest* 1694fi 1695if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1696 echo "$ac_t""yes" 1>&6 1697 MINIX=yes 1698else 1699 echo "$ac_t""no" 1>&6 1700MINIX= 1701fi 1702 1703if test "$MINIX" = yes; then 1704 cat >> confdefs.h <<\EOF 1705#define _POSIX_SOURCE 1 1706EOF 1707 1708 cat >> confdefs.h <<\EOF 1709#define _POSIX_1_SOURCE 2 1710EOF 1711 1712 cat >> confdefs.h <<\EOF 1713#define _MINIX 1 1714EOF 1715 1716fi 1717 1718echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1719echo "configure:1720: checking for POSIXized ISC" >&5 1720if test -d /etc/conf/kconfig.d && 1721 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1722then 1723 echo "$ac_t""yes" 1>&6 1724 ISC=yes # If later tests want to check for ISC. 1725 cat >> confdefs.h <<\EOF 1726#define _POSIX_SOURCE 1 1727EOF 1728 1729 if test "$GCC" = yes; then 1730 CC="$CC -posix" 1731 else 1732 CC="$CC -Xp" 1733 fi 1734else 1735 echo "$ac_t""no" 1>&6 1736 ISC= 1737fi 1738 1739# Extract the first word of "ranlib", so it can be a program name with args. 1740set dummy ranlib; ac_word=$2 1741echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1742echo "configure:1743: checking for $ac_word" >&5 1743if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then 1744 echo $ac_n "(cached) $ac_c" 1>&6 1745else 1746 if test -n "$RANLIB"; then 1747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1748else 1749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1750 ac_dummy="$PATH" 1751 for ac_dir in $ac_dummy; do 1752 test -z "$ac_dir" && ac_dir=. 1753 if test -f $ac_dir/$ac_word; then 1754 ac_cv_prog_RANLIB="ranlib" 1755 break 1756 fi 1757 done 1758 IFS="$ac_save_ifs" 1759 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1760fi 1761fi 1762RANLIB="$ac_cv_prog_RANLIB" 1763if test -n "$RANLIB"; then 1764 echo "$ac_t""$RANLIB" 1>&6 1765else 1766 echo "$ac_t""no" 1>&6 1767fi 1768 1769# Extract the first word of "sh", so it can be a program name with args. 1770set dummy sh; ac_word=$2 1771echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1772echo "configure:1773: checking for $ac_word" >&5 1773if eval "test \"\${ac_cv_path_PATH_SH+set}\" = set"; then 1774 echo $ac_n "(cached) $ac_c" 1>&6 1775else 1776 case "$PATH_SH" in 1777 /*) 1778 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path. 1779 ;; 1780 ?:/*) 1781 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a dos path. 1782 ;; 1783 *) 1784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1785 ac_dummy="$PATH" 1786 for ac_dir in $ac_dummy; do 1787 test -z "$ac_dir" && ac_dir=. 1788 if test -f $ac_dir/$ac_word; then 1789 ac_cv_path_PATH_SH="$ac_dir/$ac_word" 1790 break 1791 fi 1792 done 1793 IFS="$ac_save_ifs" 1794 ;; 1795esac 1796fi 1797PATH_SH="$ac_cv_path_PATH_SH" 1798if test -n "$PATH_SH"; then 1799 echo "$ac_t""$PATH_SH" 1>&6 1800else 1801 echo "$ac_t""no" 1>&6 1802fi 1803 1804 1805case "$target" in 1806 *-*-vxworks*) 1807 ac_link="$ac_link $VX_KERNEL" 1808 ;; 1809esac 1810 1811# Find a good install program. We prefer a C program (faster), 1812# so one script is as good as another. But avoid the broken or 1813# incompatible versions: 1814# SysV /etc/install, /usr/sbin/install 1815# SunOS /usr/etc/install 1816# IRIX /sbin/install 1817# AIX /bin/install 1818# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1819# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1820# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1821# ./install, which can be erroneously created by make from ./install.sh. 1822echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1823echo "configure:1824: checking for a BSD compatible install" >&5 1824if test -z "$INSTALL"; then 1825if eval "test \"\${ac_cv_path_install+set}\" = set"; then 1826 echo $ac_n "(cached) $ac_c" 1>&6 1827else 1828 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1829 for ac_dir in $PATH; do 1830 # Account for people who put trailing slashes in PATH elements. 1831 case "$ac_dir/" in 1832 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1833 *) 1834 # OSF1 and SCO ODT 3.0 have their own names for install. 1835 # Don't use installbsd from OSF since it installs stuff as root 1836 # by default. 1837 for ac_prog in ginstall scoinst install; do 1838 if test -f $ac_dir/$ac_prog; then 1839 if test $ac_prog = install && 1840 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1841 # AIX install. It has an incompatible calling convention. 1842 : 1843 elif test $ac_prog = install && 1844 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then 1845 # program-specific install script used by HP pwplus--don't use. 1846 : 1847 else 1848 ac_cv_path_install="$ac_dir/$ac_prog -c" 1849 break 2 1850 fi 1851 fi 1852 done 1853 ;; 1854 esac 1855 done 1856 IFS="$ac_save_IFS" 1857 1858fi 1859 if test "${ac_cv_path_install+set}" = set; then 1860 INSTALL="$ac_cv_path_install" 1861 else 1862 # As a last resort, use the slow shell script. We don't cache a 1863 # path for INSTALL within a source directory, because that will 1864 # break other packages using the cache if that directory is 1865 # removed, or if the path is relative. 1866 INSTALL="$ac_install_sh" 1867 fi 1868fi 1869echo "$ac_t""$INSTALL" 1>&6 1870 1871# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1872# It thinks the first close brace ends the variable substitution. 1873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1874 1875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1876 1877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1878 1879 1880case "$target" in 1881 *-pc-cygwin*) 1882 echo $ac_n "checking for main in -ladvapi32""... $ac_c" 1>&6 1883echo "configure:1884: checking for main in -ladvapi32" >&5 1884ac_lib_var=`echo advapi32'_'main | sed 'y%./+-%__p_%'` 1885if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 1886 echo $ac_n "(cached) $ac_c" 1>&6 1887else 1888 ac_save_LIBS="$LIBS" 1889LIBS="-ladvapi32 $LIBS" 1890cat > conftest.$ac_ext <<EOF 1891#line 1892 "configure" 1892#include "confdefs.h" 1893 1894int main() { 1895main() 1896; return 0; } 1897EOF 1898if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1899 rm -rf conftest* 1900 eval "ac_cv_lib_$ac_lib_var=yes" 1901else 1902 echo "configure: failed program was:" >&5 1903 cat conftest.$ac_ext >&5 1904 rm -rf conftest* 1905 eval "ac_cv_lib_$ac_lib_var=no" 1906fi 1907rm -f conftest* 1908LIBS="$ac_save_LIBS" 1909 1910fi 1911if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1912 echo "$ac_t""yes" 1>&6 1913 ac_tr_lib=HAVE_LIB`echo advapi32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1915 cat >> confdefs.h <<EOF 1916#define $ac_tr_lib 1 1917EOF 1918 1919 LIBS="-ladvapi32 $LIBS" 1920 1921else 1922 echo "$ac_t""no" 1>&6 1923fi 1924 1925 ;; 1926esac 1927echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6 1928echo "configure:1929: checking for nlist in -lelf" >&5 1929ac_lib_var=`echo elf'_'nlist | sed 'y%./+-%__p_%'` 1930if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 1931 echo $ac_n "(cached) $ac_c" 1>&6 1932else 1933 ac_save_LIBS="$LIBS" 1934LIBS="-lelf $LIBS" 1935cat > conftest.$ac_ext <<EOF 1936#line 1937 "configure" 1937#include "confdefs.h" 1938/* Override any gcc2 internal prototype to avoid an error. */ 1939/* We use char because int might match the return type of a gcc2 1940 builtin and then its argument prototype would still apply. */ 1941char nlist(); 1942 1943int main() { 1944nlist() 1945; return 0; } 1946EOF 1947if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1948 rm -rf conftest* 1949 eval "ac_cv_lib_$ac_lib_var=yes" 1950else 1951 echo "configure: failed program was:" >&5 1952 cat conftest.$ac_ext >&5 1953 rm -rf conftest* 1954 eval "ac_cv_lib_$ac_lib_var=no" 1955fi 1956rm -f conftest* 1957LIBS="$ac_save_LIBS" 1958 1959fi 1960if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1961 echo "$ac_t""yes" 1>&6 1962 ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1964 cat >> confdefs.h <<EOF 1965#define $ac_tr_lib 1 1966EOF 1967 1968 LIBS="-lelf $LIBS" 1969 1970else 1971 echo "$ac_t""no" 1>&6 1972fi 1973 1974echo $ac_n "checking for main in -lkvm""... $ac_c" 1>&6 1975echo "configure:1976: checking for main in -lkvm" >&5 1976ac_lib_var=`echo kvm'_'main | sed 'y%./+-%__p_%'` 1977if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 1978 echo $ac_n "(cached) $ac_c" 1>&6 1979else 1980 ac_save_LIBS="$LIBS" 1981LIBS="-lkvm $LIBS" 1982cat > conftest.$ac_ext <<EOF 1983#line 1984 "configure" 1984#include "confdefs.h" 1985 1986int main() { 1987main() 1988; return 0; } 1989EOF 1990if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1991 rm -rf conftest* 1992 eval "ac_cv_lib_$ac_lib_var=yes" 1993else 1994 echo "configure: failed program was:" >&5 1995 cat conftest.$ac_ext >&5 1996 rm -rf conftest* 1997 eval "ac_cv_lib_$ac_lib_var=no" 1998fi 1999rm -f conftest* 2000LIBS="$ac_save_LIBS" 2001 2002fi 2003if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2004 echo "$ac_t""yes" 1>&6 2005 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2006 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2007 cat >> confdefs.h <<EOF 2008#define $ac_tr_lib 1 2009EOF 2010 2011 LIBS="-lkvm $LIBS" 2012 2013else 2014 echo "$ac_t""no" 1>&6 2015fi 2016 echo $ac_n "checking for nlist in -lld""... $ac_c" 1>&6 2017echo "configure:2018: checking for nlist in -lld" >&5 2018ac_lib_var=`echo ld'_'nlist | sed 'y%./+-%__p_%'` 2019if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 2020 echo $ac_n "(cached) $ac_c" 1>&6 2021else 2022 ac_save_LIBS="$LIBS" 2023LIBS="-lld $LIBS" 2024cat > conftest.$ac_ext <<EOF 2025#line 2026 "configure" 2026#include "confdefs.h" 2027/* Override any gcc2 internal prototype to avoid an error. */ 2028/* We use char because int might match the return type of a gcc2 2029 builtin and then its argument prototype would still apply. */ 2030char nlist(); 2031 2032int main() { 2033nlist() 2034; return 0; } 2035EOF 2036if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2037 rm -rf conftest* 2038 eval "ac_cv_lib_$ac_lib_var=yes" 2039else 2040 echo "configure: failed program was:" >&5 2041 cat conftest.$ac_ext >&5 2042 rm -rf conftest* 2043 eval "ac_cv_lib_$ac_lib_var=no" 2044fi 2045rm -f conftest* 2046LIBS="$ac_save_LIBS" 2047 2048fi 2049if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2050 echo "$ac_t""yes" 1>&6 2051 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2052 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2053 cat >> confdefs.h <<EOF 2054#define $ac_tr_lib 1 2055EOF 2056 2057 LIBS="-lld $LIBS" 2058 2059else 2060 echo "$ac_t""no" 1>&6 2061fi 2062 2063echo $ac_n "checking for nlist in -lmld""... $ac_c" 1>&6 2064echo "configure:2065: checking for nlist in -lmld" >&5 2065ac_lib_var=`echo mld'_'nlist | sed 'y%./+-%__p_%'` 2066if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 2067 echo $ac_n "(cached) $ac_c" 1>&6 2068else 2069 ac_save_LIBS="$LIBS" 2070LIBS="-lmld $LIBS" 2071cat > conftest.$ac_ext <<EOF 2072#line 2073 "configure" 2073#include "confdefs.h" 2074/* Override any gcc2 internal prototype to avoid an error. */ 2075/* We use char because int might match the return type of a gcc2 2076 builtin and then its argument prototype would still apply. */ 2077char nlist(); 2078 2079int main() { 2080nlist() 2081; return 0; } 2082EOF 2083if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2084 rm -rf conftest* 2085 eval "ac_cv_lib_$ac_lib_var=yes" 2086else 2087 echo "configure: failed program was:" >&5 2088 cat conftest.$ac_ext >&5 2089 rm -rf conftest* 2090 eval "ac_cv_lib_$ac_lib_var=no" 2091fi 2092rm -f conftest* 2093LIBS="$ac_save_LIBS" 2094 2095fi 2096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2097 echo "$ac_t""yes" 1>&6 2098 ac_tr_lib=HAVE_LIB`echo mld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2100 cat >> confdefs.h <<EOF 2101#define $ac_tr_lib 1 2102EOF 2103 2104 LIBS="-lmld $LIBS" 2105 2106else 2107 echo "$ac_t""no" 1>&6 2108fi 2109 2110echo $ac_n "checking for gethostent""... $ac_c" 1>&6 2111echo "configure:2112: checking for gethostent" >&5 2112if eval "test \"\${ac_cv_func_gethostent+set}\" = set"; then 2113 echo $ac_n "(cached) $ac_c" 1>&6 2114else 2115 cat > conftest.$ac_ext <<EOF 2116#line 2117 "configure" 2117#include "confdefs.h" 2118/* System header to define __stub macros and hopefully few prototypes, 2119 which can conflict with char gethostent(); below. */ 2120#include <assert.h> 2121/* Override any gcc2 internal prototype to avoid an error. */ 2122/* We use char because int might match the return type of a gcc2 2123 builtin and then its argument prototype would still apply. */ 2124char gethostent(); 2125char (*f)(); 2126 2127int main() { 2128 2129/* The GNU C library defines this for functions which it implements 2130 to always fail with ENOSYS. Some functions are actually named 2131 something starting with __ and the normal name is an alias. */ 2132#if defined (__stub_gethostent) || defined (__stub___gethostent) 2133choke me 2134#else 2135f = gethostent; 2136#endif 2137 2138; return 0; } 2139EOF 2140if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2141 rm -rf conftest* 2142 eval "ac_cv_func_gethostent=yes" 2143else 2144 echo "configure: failed program was:" >&5 2145 cat conftest.$ac_ext >&5 2146 rm -rf conftest* 2147 eval "ac_cv_func_gethostent=no" 2148fi 2149rm -f conftest* 2150fi 2151 2152if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then 2153 echo "$ac_t""yes" 1>&6 2154 : 2155else 2156 echo "$ac_t""no" 1>&6 2157echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 2158echo "configure:2159: checking for gethostent in -lnsl" >&5 2159ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` 2160if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 2161 echo $ac_n "(cached) $ac_c" 1>&6 2162else 2163 ac_save_LIBS="$LIBS" 2164LIBS="-lnsl -lsocket $LIBS" 2165cat > conftest.$ac_ext <<EOF 2166#line 2167 "configure" 2167#include "confdefs.h" 2168/* Override any gcc2 internal prototype to avoid an error. */ 2169/* We use char because int might match the return type of a gcc2 2170 builtin and then its argument prototype would still apply. */ 2171char gethostent(); 2172 2173int main() { 2174gethostent() 2175; return 0; } 2176EOF 2177if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2178 rm -rf conftest* 2179 eval "ac_cv_lib_$ac_lib_var=yes" 2180else 2181 echo "configure: failed program was:" >&5 2182 cat conftest.$ac_ext >&5 2183 rm -rf conftest* 2184 eval "ac_cv_lib_$ac_lib_var=no" 2185fi 2186rm -f conftest* 2187LIBS="$ac_save_LIBS" 2188 2189fi 2190if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2191 echo "$ac_t""yes" 1>&6 2192 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ 2193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2194 cat >> confdefs.h <<EOF 2195#define $ac_tr_lib 1 2196EOF 2197 2198 LIBS="-lnsl $LIBS" 2199 2200else 2201 echo "$ac_t""no" 1>&6 2202fi 2203 2204fi 2205 2206echo $ac_n "checking for openlog""... $ac_c" 1>&6 2207echo "configure:2208: checking for openlog" >&5 2208if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then 2209 echo $ac_n "(cached) $ac_c" 1>&6 2210else 2211 cat > conftest.$ac_ext <<EOF 2212#line 2213 "configure" 2213#include "confdefs.h" 2214/* System header to define __stub macros and hopefully few prototypes, 2215 which can conflict with char openlog(); below. */ 2216#include <assert.h> 2217/* Override any gcc2 internal prototype to avoid an error. */ 2218/* We use char because int might match the return type of a gcc2 2219 builtin and then its argument prototype would still apply. */ 2220char openlog(); 2221char (*f)(); 2222 2223int main() { 2224 2225/* The GNU C library defines this for functions which it implements 2226 to always fail with ENOSYS. Some functions are actually named 2227 something starting with __ and the normal name is an alias. */ 2228#if defined (__stub_openlog) || defined (__stub___openlog) 2229choke me 2230#else 2231f = openlog; 2232#endif 2233 2234; return 0; } 2235EOF 2236if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2237 rm -rf conftest* 2238 eval "ac_cv_func_openlog=yes" 2239else 2240 echo "configure: failed program was:" >&5 2241 cat conftest.$ac_ext >&5 2242 rm -rf conftest* 2243 eval "ac_cv_func_openlog=no" 2244fi 2245rm -f conftest* 2246fi 2247 2248if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then 2249 echo "$ac_t""yes" 1>&6 2250 : 2251else 2252 echo "$ac_t""no" 1>&6 2253echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6 2254echo "configure:2255: checking for openlog in -lgen" >&5 2255ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'` 2256if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 2257 echo $ac_n "(cached) $ac_c" 1>&6 2258else 2259 ac_save_LIBS="$LIBS" 2260LIBS="-lgen $LIBS" 2261cat > conftest.$ac_ext <<EOF 2262#line 2263 "configure" 2263#include "confdefs.h" 2264/* Override any gcc2 internal prototype to avoid an error. */ 2265/* We use char because int might match the return type of a gcc2 2266 builtin and then its argument prototype would still apply. */ 2267char openlog(); 2268 2269int main() { 2270openlog() 2271; return 0; } 2272EOF 2273if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2274 rm -rf conftest* 2275 eval "ac_cv_lib_$ac_lib_var=yes" 2276else 2277 echo "configure: failed program was:" >&5 2278 cat conftest.$ac_ext >&5 2279 rm -rf conftest* 2280 eval "ac_cv_lib_$ac_lib_var=no" 2281fi 2282rm -f conftest* 2283LIBS="$ac_save_LIBS" 2284 2285fi 2286if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2287 echo "$ac_t""yes" 1>&6 2288 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/^a-zA-Z0-9_/_/g' \ 2289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2290 cat >> confdefs.h <<EOF 2291#define $ac_tr_lib 1 2292EOF 2293 2294 LIBS="-lgen $LIBS" 2295 2296else 2297 echo "$ac_t""no" 1>&6 2298fi 2299 2300fi 2301 2302 2303echo $ac_n "checking for sched_setscheduler in -lrt""... $ac_c" 1>&6 2304echo "configure:2305: checking for sched_setscheduler in -lrt" >&5 2305ac_lib_var=`echo rt'_'sched_setscheduler | sed 'y%./+-%__p_%'` 2306if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 2307 echo $ac_n "(cached) $ac_c" 1>&6 2308else 2309 ac_save_LIBS="$LIBS" 2310LIBS="-lrt $LIBS" 2311cat > conftest.$ac_ext <<EOF 2312#line 2313 "configure" 2313#include "confdefs.h" 2314/* Override any gcc2 internal prototype to avoid an error. */ 2315/* We use char because int might match the return type of a gcc2 2316 builtin and then its argument prototype would still apply. */ 2317char sched_setscheduler(); 2318 2319int main() { 2320sched_setscheduler() 2321; return 0; } 2322EOF 2323if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2324 rm -rf conftest* 2325 eval "ac_cv_lib_$ac_lib_var=yes" 2326else 2327 echo "configure: failed program was:" >&5 2328 cat conftest.$ac_ext >&5 2329 rm -rf conftest* 2330 eval "ac_cv_lib_$ac_lib_var=no" 2331fi 2332rm -f conftest* 2333LIBS="$ac_save_LIBS" 2334 2335fi 2336if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2337 echo "$ac_t""yes" 1>&6 2338 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2340 cat >> confdefs.h <<EOF 2341#define $ac_tr_lib 1 2342EOF 2343 2344 LIBS="-lrt $LIBS" 2345 2346else 2347 echo "$ac_t""no" 1>&6 2348echo $ac_n "checking for sched_setscheduler in -lposix4""... $ac_c" 1>&6 2349echo "configure:2350: checking for sched_setscheduler in -lposix4" >&5 2350ac_lib_var=`echo posix4'_'sched_setscheduler | sed 'y%./+-%__p_%'` 2351if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 2352 echo $ac_n "(cached) $ac_c" 1>&6 2353else 2354 ac_save_LIBS="$LIBS" 2355LIBS="-lposix4 $LIBS" 2356cat > conftest.$ac_ext <<EOF 2357#line 2358 "configure" 2358#include "confdefs.h" 2359/* Override any gcc2 internal prototype to avoid an error. */ 2360/* We use char because int might match the return type of a gcc2 2361 builtin and then its argument prototype would still apply. */ 2362char sched_setscheduler(); 2363 2364int main() { 2365sched_setscheduler() 2366; return 0; } 2367EOF 2368if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2369 rm -rf conftest* 2370 eval "ac_cv_lib_$ac_lib_var=yes" 2371else 2372 echo "configure: failed program was:" >&5 2373 cat conftest.$ac_ext >&5 2374 rm -rf conftest* 2375 eval "ac_cv_lib_$ac_lib_var=no" 2376fi 2377rm -f conftest* 2378LIBS="$ac_save_LIBS" 2379 2380fi 2381if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2382 echo "$ac_t""yes" 1>&6 2383 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/^a-zA-Z0-9_/_/g' \ 2384 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2385 cat >> confdefs.h <<EOF 2386#define $ac_tr_lib 1 2387EOF 2388 2389 LIBS="-lposix4 $LIBS" 2390 2391else 2392 echo "$ac_t""no" 1>&6 2393fi 2394 2395fi 2396 2397echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 2398echo "configure:2399: checking for setsockopt" >&5 2399if eval "test \"\${ac_cv_func_setsockopt+set}\" = set"; then 2400 echo $ac_n "(cached) $ac_c" 1>&6 2401else 2402 cat > conftest.$ac_ext <<EOF 2403#line 2404 "configure" 2404#include "confdefs.h" 2405/* System header to define __stub macros and hopefully few prototypes, 2406 which can conflict with char setsockopt(); below. */ 2407#include <assert.h> 2408/* Override any gcc2 internal prototype to avoid an error. */ 2409/* We use char because int might match the return type of a gcc2 2410 builtin and then its argument prototype would still apply. */ 2411char setsockopt(); 2412char (*f)(); 2413 2414int main() { 2415 2416/* The GNU C library defines this for functions which it implements 2417 to always fail with ENOSYS. Some functions are actually named 2418 something starting with __ and the normal name is an alias. */ 2419#if defined (__stub_setsockopt) || defined (__stub___setsockopt) 2420choke me 2421#else 2422f = setsockopt; 2423#endif 2424 2425; return 0; } 2426EOF 2427if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2428 rm -rf conftest* 2429 eval "ac_cv_func_setsockopt=yes" 2430else 2431 echo "configure: failed program was:" >&5 2432 cat conftest.$ac_ext >&5 2433 rm -rf conftest* 2434 eval "ac_cv_func_setsockopt=no" 2435fi 2436rm -f conftest* 2437fi 2438 2439if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then 2440 echo "$ac_t""yes" 1>&6 2441 : 2442else 2443 echo "$ac_t""no" 1>&6 2444echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 2445echo "configure:2446: checking for setsockopt in -lsocket" >&5 2446ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` 2447if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then 2448 echo $ac_n "(cached) $ac_c" 1>&6 2449else 2450 ac_save_LIBS="$LIBS" 2451LIBS="-lsocket $LIBS" 2452cat > conftest.$ac_ext <<EOF 2453#line 2454 "configure" 2454#include "confdefs.h" 2455/* Override any gcc2 internal prototype to avoid an error. */ 2456/* We use char because int might match the return type of a gcc2 2457 builtin and then its argument prototype would still apply. */ 2458char setsockopt(); 2459 2460int main() { 2461setsockopt() 2462; return 0; } 2463EOF 2464if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2465 rm -rf conftest* 2466 eval "ac_cv_lib_$ac_lib_var=yes" 2467else 2468 echo "configure: failed program was:" >&5 2469 cat conftest.$ac_ext >&5 2470 rm -rf conftest* 2471 eval "ac_cv_lib_$ac_lib_var=no" 2472fi 2473rm -f conftest* 2474LIBS="$ac_save_LIBS" 2475 2476fi 2477if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2478 echo "$ac_t""yes" 1>&6 2479 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ 2480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2481 cat >> confdefs.h <<EOF 2482#define $ac_tr_lib 1 2483EOF 2484 2485 LIBS="-lsocket $LIBS" 2486 2487else 2488 echo "$ac_t""no" 1>&6 2489fi 2490 2491fi 2492 2493 2494echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2495echo "configure:2496: checking for ANSI C header files" >&5 2496if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then 2497 echo $ac_n "(cached) $ac_c" 1>&6 2498else 2499 cat > conftest.$ac_ext <<EOF 2500#line 2501 "configure" 2501#include "confdefs.h" 2502#include <stdlib.h> 2503#include <stdarg.h> 2504#include <string.h> 2505#include <float.h> 2506EOF 2507ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2508{ (eval echo configure:2509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2509ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2510if test -z "$ac_err"; then 2511 rm -rf conftest* 2512 ac_cv_header_stdc=yes 2513else 2514 echo "$ac_err" >&5 2515 echo "configure: failed program was:" >&5 2516 cat conftest.$ac_ext >&5 2517 rm -rf conftest* 2518 ac_cv_header_stdc=no 2519fi 2520rm -f conftest* 2521 2522if test $ac_cv_header_stdc = yes; then 2523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2524cat > conftest.$ac_ext <<EOF 2525#line 2526 "configure" 2526#include "confdefs.h" 2527#include <string.h> 2528EOF 2529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2530 egrep "memchr" >/dev/null 2>&1; then 2531 : 2532else 2533 rm -rf conftest* 2534 ac_cv_header_stdc=no 2535fi 2536rm -f conftest* 2537 2538fi 2539 2540if test $ac_cv_header_stdc = yes; then 2541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2542cat > conftest.$ac_ext <<EOF 2543#line 2544 "configure" 2544#include "confdefs.h" 2545#include <stdlib.h> 2546EOF 2547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2548 egrep "free" >/dev/null 2>&1; then 2549 : 2550else 2551 rm -rf conftest* 2552 ac_cv_header_stdc=no 2553fi 2554rm -f conftest* 2555 2556fi 2557 2558if test $ac_cv_header_stdc = yes; then 2559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2560if test "$cross_compiling" = yes; then 2561 : 2562else 2563 cat > conftest.$ac_ext <<EOF 2564#line 2565 "configure" 2565#include "confdefs.h" 2566#include <ctype.h> 2567#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2568#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2569#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2570int main () { int i; for (i = 0; i < 256; i++) 2571if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2572exit (0); } 2573 2574EOF 2575if { (eval echo configure:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2576then 2577 : 2578else 2579 echo "configure: failed program was:" >&5 2580 cat conftest.$ac_ext >&5 2581 rm -fr conftest* 2582 ac_cv_header_stdc=no 2583fi 2584rm -fr conftest* 2585fi 2586 2587fi 2588fi 2589 2590echo "$ac_t""$ac_cv_header_stdc" 1>&6 2591if test $ac_cv_header_stdc = yes; then 2592 cat >> confdefs.h <<\EOF 2593#define STDC_HEADERS 1 2594EOF 2595 2596fi 2597 2598for ac_hdr in bstring.h errno.h fcntl.h memory.h netdb.h poll.h resolv.h 2599do 2600ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2601echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2602echo "configure:2603: checking for $ac_hdr" >&5 2603if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2604 echo $ac_n "(cached) $ac_c" 1>&6 2605else 2606 cat > conftest.$ac_ext <<EOF 2607#line 2608 "configure" 2608#include "confdefs.h" 2609#include <$ac_hdr> 2610EOF 2611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2612{ (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2613ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2614if test -z "$ac_err"; then 2615 rm -rf conftest* 2616 eval "ac_cv_header_$ac_safe=yes" 2617else 2618 echo "$ac_err" >&5 2619 echo "configure: failed program was:" >&5 2620 cat conftest.$ac_ext >&5 2621 rm -rf conftest* 2622 eval "ac_cv_header_$ac_safe=no" 2623fi 2624rm -f conftest* 2625fi 2626if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2627 echo "$ac_t""yes" 1>&6 2628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2629 cat >> confdefs.h <<EOF 2630#define $ac_tr_hdr 1 2631EOF 2632 2633else 2634 echo "$ac_t""no" 1>&6 2635fi 2636done 2637 2638for ac_hdr in sched.h sgtty.h stdlib.h string.h termio.h termios.h 2639do 2640ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2641echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2642echo "configure:2643: checking for $ac_hdr" >&5 2643if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2644 echo $ac_n "(cached) $ac_c" 1>&6 2645else 2646 cat > conftest.$ac_ext <<EOF 2647#line 2648 "configure" 2648#include "confdefs.h" 2649#include <$ac_hdr> 2650EOF 2651ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2652{ (eval echo configure:2653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2653ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2654if test -z "$ac_err"; then 2655 rm -rf conftest* 2656 eval "ac_cv_header_$ac_safe=yes" 2657else 2658 echo "$ac_err" >&5 2659 echo "configure: failed program was:" >&5 2660 cat conftest.$ac_ext >&5 2661 rm -rf conftest* 2662 eval "ac_cv_header_$ac_safe=no" 2663fi 2664rm -f conftest* 2665fi 2666if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2667 echo "$ac_t""yes" 1>&6 2668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2669 cat >> confdefs.h <<EOF 2670#define $ac_tr_hdr 1 2671EOF 2672 2673else 2674 echo "$ac_t""no" 1>&6 2675fi 2676done 2677 2678for ac_hdr in timepps.h timex.h unistd.h utmp.h utmpx.h 2679do 2680ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2681echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2682echo "configure:2683: checking for $ac_hdr" >&5 2683if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2684 echo $ac_n "(cached) $ac_c" 1>&6 2685else 2686 cat > conftest.$ac_ext <<EOF 2687#line 2688 "configure" 2688#include "confdefs.h" 2689#include <$ac_hdr> 2690EOF 2691ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2692{ (eval echo configure:2693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2693ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2694if test -z "$ac_err"; then 2695 rm -rf conftest* 2696 eval "ac_cv_header_$ac_safe=yes" 2697else 2698 echo "$ac_err" >&5 2699 echo "configure: failed program was:" >&5 2700 cat conftest.$ac_ext >&5 2701 rm -rf conftest* 2702 eval "ac_cv_header_$ac_safe=no" 2703fi 2704rm -f conftest* 2705fi 2706if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2707 echo "$ac_t""yes" 1>&6 2708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2709 cat >> confdefs.h <<EOF 2710#define $ac_tr_hdr 1 2711EOF 2712 2713else 2714 echo "$ac_t""no" 1>&6 2715fi 2716done 2717 2718for ac_hdr in arpa/nameser.h net/if.h netinet/in.h netinet/ip.h 2719do 2720ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2721echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2722echo "configure:2723: checking for $ac_hdr" >&5 2723if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2724 echo $ac_n "(cached) $ac_c" 1>&6 2725else 2726 cat > conftest.$ac_ext <<EOF 2727#line 2728 "configure" 2728#include "confdefs.h" 2729#include <$ac_hdr> 2730EOF 2731ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2732{ (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2733ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2734if test -z "$ac_err"; then 2735 rm -rf conftest* 2736 eval "ac_cv_header_$ac_safe=yes" 2737else 2738 echo "$ac_err" >&5 2739 echo "configure: failed program was:" >&5 2740 cat conftest.$ac_ext >&5 2741 rm -rf conftest* 2742 eval "ac_cv_header_$ac_safe=no" 2743fi 2744rm -f conftest* 2745fi 2746if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2747 echo "$ac_t""yes" 1>&6 2748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2749 cat >> confdefs.h <<EOF 2750#define $ac_tr_hdr 1 2751EOF 2752 2753else 2754 echo "$ac_t""no" 1>&6 2755fi 2756done 2757 2758for ac_hdr in netinfo/ni.h 2759do 2760ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2761echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2762echo "configure:2763: checking for $ac_hdr" >&5 2763if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2764 echo $ac_n "(cached) $ac_c" 1>&6 2765else 2766 cat > conftest.$ac_ext <<EOF 2767#line 2768 "configure" 2768#include "confdefs.h" 2769#include <$ac_hdr> 2770EOF 2771ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2772{ (eval echo configure:2773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2773ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2774if test -z "$ac_err"; then 2775 rm -rf conftest* 2776 eval "ac_cv_header_$ac_safe=yes" 2777else 2778 echo "$ac_err" >&5 2779 echo "configure: failed program was:" >&5 2780 cat conftest.$ac_ext >&5 2781 rm -rf conftest* 2782 eval "ac_cv_header_$ac_safe=no" 2783fi 2784rm -f conftest* 2785fi 2786if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2787 echo "$ac_t""yes" 1>&6 2788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2789 cat >> confdefs.h <<EOF 2790#define $ac_tr_hdr 1 2791EOF 2792 cat >> confdefs.h <<\EOF 2793#define HAVE_NETINFO 1 2794EOF 2795 2796else 2797 echo "$ac_t""no" 1>&6 2798fi 2799done 2800 2801for ac_hdr in sun/audioio.h sys/audioio.h 2802do 2803ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2804echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2805echo "configure:2806: checking for $ac_hdr" >&5 2806if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2807 echo $ac_n "(cached) $ac_c" 1>&6 2808else 2809 cat > conftest.$ac_ext <<EOF 2810#line 2811 "configure" 2811#include "confdefs.h" 2812#include <$ac_hdr> 2813EOF 2814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2815{ (eval echo configure:2816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2817if test -z "$ac_err"; then 2818 rm -rf conftest* 2819 eval "ac_cv_header_$ac_safe=yes" 2820else 2821 echo "$ac_err" >&5 2822 echo "configure: failed program was:" >&5 2823 cat conftest.$ac_ext >&5 2824 rm -rf conftest* 2825 eval "ac_cv_header_$ac_safe=no" 2826fi 2827rm -f conftest* 2828fi 2829if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2830 echo "$ac_t""yes" 1>&6 2831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2832 cat >> confdefs.h <<EOF 2833#define $ac_tr_hdr 1 2834EOF 2835 2836else 2837 echo "$ac_t""no" 1>&6 2838fi 2839done 2840 2841for ac_hdr in sys/clkdefs.h sys/file.h 2842do 2843ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2844echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2845echo "configure:2846: checking for $ac_hdr" >&5 2846if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2847 echo $ac_n "(cached) $ac_c" 1>&6 2848else 2849 cat > conftest.$ac_ext <<EOF 2850#line 2851 "configure" 2851#include "confdefs.h" 2852#include <$ac_hdr> 2853EOF 2854ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2855{ (eval echo configure:2856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2856ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2857if test -z "$ac_err"; then 2858 rm -rf conftest* 2859 eval "ac_cv_header_$ac_safe=yes" 2860else 2861 echo "$ac_err" >&5 2862 echo "configure: failed program was:" >&5 2863 cat conftest.$ac_ext >&5 2864 rm -rf conftest* 2865 eval "ac_cv_header_$ac_safe=no" 2866fi 2867rm -f conftest* 2868fi 2869if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2870 echo "$ac_t""yes" 1>&6 2871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2872 cat >> confdefs.h <<EOF 2873#define $ac_tr_hdr 1 2874EOF 2875 2876else 2877 echo "$ac_t""no" 1>&6 2878fi 2879done 2880 2881case "$target" in 2882 *-*-sunos4*) ;; 2883 *) for ac_hdr in sys/ioctl.h 2884do 2885ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2886echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2887echo "configure:2888: checking for $ac_hdr" >&5 2888if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2889 echo $ac_n "(cached) $ac_c" 1>&6 2890else 2891 cat > conftest.$ac_ext <<EOF 2892#line 2893 "configure" 2893#include "confdefs.h" 2894#include <$ac_hdr> 2895EOF 2896ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2897{ (eval echo configure:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2898ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2899if test -z "$ac_err"; then 2900 rm -rf conftest* 2901 eval "ac_cv_header_$ac_safe=yes" 2902else 2903 echo "$ac_err" >&5 2904 echo "configure: failed program was:" >&5 2905 cat conftest.$ac_ext >&5 2906 rm -rf conftest* 2907 eval "ac_cv_header_$ac_safe=no" 2908fi 2909rm -f conftest* 2910fi 2911if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2912 echo "$ac_t""yes" 1>&6 2913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2914 cat >> confdefs.h <<EOF 2915#define $ac_tr_hdr 1 2916EOF 2917 2918else 2919 echo "$ac_t""no" 1>&6 2920fi 2921done 2922 2923 ;; 2924esac 2925for ac_hdr in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h 2926do 2927ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2928echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2929echo "configure:2930: checking for $ac_hdr" >&5 2930if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2931 echo $ac_n "(cached) $ac_c" 1>&6 2932else 2933 cat > conftest.$ac_ext <<EOF 2934#line 2935 "configure" 2935#include "confdefs.h" 2936#include <$ac_hdr> 2937EOF 2938ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2939{ (eval echo configure:2940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2940ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2941if test -z "$ac_err"; then 2942 rm -rf conftest* 2943 eval "ac_cv_header_$ac_safe=yes" 2944else 2945 echo "$ac_err" >&5 2946 echo "configure: failed program was:" >&5 2947 cat conftest.$ac_ext >&5 2948 rm -rf conftest* 2949 eval "ac_cv_header_$ac_safe=no" 2950fi 2951rm -f conftest* 2952fi 2953if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2954 echo "$ac_t""yes" 1>&6 2955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2956 cat >> confdefs.h <<EOF 2957#define $ac_tr_hdr 1 2958EOF 2959 2960else 2961 echo "$ac_t""no" 1>&6 2962fi 2963done 2964 2965for ac_hdr in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h 2966do 2967ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2968echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2969echo "configure:2970: checking for $ac_hdr" >&5 2970if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 2971 echo $ac_n "(cached) $ac_c" 1>&6 2972else 2973 cat > conftest.$ac_ext <<EOF 2974#line 2975 "configure" 2975#include "confdefs.h" 2976#include <$ac_hdr> 2977EOF 2978ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2979{ (eval echo configure:2980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2980ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2981if test -z "$ac_err"; then 2982 rm -rf conftest* 2983 eval "ac_cv_header_$ac_safe=yes" 2984else 2985 echo "$ac_err" >&5 2986 echo "configure: failed program was:" >&5 2987 cat conftest.$ac_ext >&5 2988 rm -rf conftest* 2989 eval "ac_cv_header_$ac_safe=no" 2990fi 2991rm -f conftest* 2992fi 2993if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2994 echo "$ac_t""yes" 1>&6 2995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2996 cat >> confdefs.h <<EOF 2997#define $ac_tr_hdr 1 2998EOF 2999 3000else 3001 echo "$ac_t""no" 1>&6 3002fi 3003done 3004 3005case "$target" in 3006 *-*-sco*) 3007 for ac_hdr in sys/sio.h 3008do 3009ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3010echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3011echo "configure:3012: checking for $ac_hdr" >&5 3012if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3013 echo $ac_n "(cached) $ac_c" 1>&6 3014else 3015 cat > conftest.$ac_ext <<EOF 3016#line 3017 "configure" 3017#include "confdefs.h" 3018#include <$ac_hdr> 3019EOF 3020ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3021{ (eval echo configure:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3022ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3023if test -z "$ac_err"; then 3024 rm -rf conftest* 3025 eval "ac_cv_header_$ac_safe=yes" 3026else 3027 echo "$ac_err" >&5 3028 echo "configure: failed program was:" >&5 3029 cat conftest.$ac_ext >&5 3030 rm -rf conftest* 3031 eval "ac_cv_header_$ac_safe=no" 3032fi 3033rm -f conftest* 3034fi 3035if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3036 echo "$ac_t""yes" 1>&6 3037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3038 cat >> confdefs.h <<EOF 3039#define $ac_tr_hdr 1 3040EOF 3041 3042else 3043 echo "$ac_t""no" 1>&6 3044fi 3045done 3046 3047 ;; 3048 *sgi*) 3049 for ac_hdr in sys/syssgi.h 3050do 3051ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3052echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3053echo "configure:3054: checking for $ac_hdr" >&5 3054if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3055 echo $ac_n "(cached) $ac_c" 1>&6 3056else 3057 cat > conftest.$ac_ext <<EOF 3058#line 3059 "configure" 3059#include "confdefs.h" 3060#include <$ac_hdr> 3061EOF 3062ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3063{ (eval echo configure:3064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3064ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3065if test -z "$ac_err"; then 3066 rm -rf conftest* 3067 eval "ac_cv_header_$ac_safe=yes" 3068else 3069 echo "$ac_err" >&5 3070 echo "configure: failed program was:" >&5 3071 cat conftest.$ac_ext >&5 3072 rm -rf conftest* 3073 eval "ac_cv_header_$ac_safe=no" 3074fi 3075rm -f conftest* 3076fi 3077if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3078 echo "$ac_t""yes" 1>&6 3079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3080 cat >> confdefs.h <<EOF 3081#define $ac_tr_hdr 1 3082EOF 3083 3084else 3085 echo "$ac_t""no" 1>&6 3086fi 3087done 3088 3089 ;; 3090 *) 3091 for ac_hdr in sys/select.h 3092do 3093ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3094echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3095echo "configure:3096: checking for $ac_hdr" >&5 3096if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3097 echo $ac_n "(cached) $ac_c" 1>&6 3098else 3099 cat > conftest.$ac_ext <<EOF 3100#line 3101 "configure" 3101#include "confdefs.h" 3102#include <$ac_hdr> 3103EOF 3104ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3105{ (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3106ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3107if test -z "$ac_err"; then 3108 rm -rf conftest* 3109 eval "ac_cv_header_$ac_safe=yes" 3110else 3111 echo "$ac_err" >&5 3112 echo "configure: failed program was:" >&5 3113 cat conftest.$ac_ext >&5 3114 rm -rf conftest* 3115 eval "ac_cv_header_$ac_safe=no" 3116fi 3117rm -f conftest* 3118fi 3119if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3120 echo "$ac_t""yes" 1>&6 3121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3122 cat >> confdefs.h <<EOF 3123#define $ac_tr_hdr 1 3124EOF 3125 3126else 3127 echo "$ac_t""no" 1>&6 3128fi 3129done 3130 3131 ;; 3132esac 3133for ac_hdr in sys/sockio.h sys/stat.h sys/stream.h sys/stropts.h 3134do 3135ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3136echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3137echo "configure:3138: checking for $ac_hdr" >&5 3138if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3139 echo $ac_n "(cached) $ac_c" 1>&6 3140else 3141 cat > conftest.$ac_ext <<EOF 3142#line 3143 "configure" 3143#include "confdefs.h" 3144#include <$ac_hdr> 3145EOF 3146ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3147{ (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3148ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3149if test -z "$ac_err"; then 3150 rm -rf conftest* 3151 eval "ac_cv_header_$ac_safe=yes" 3152else 3153 echo "$ac_err" >&5 3154 echo "configure: failed program was:" >&5 3155 cat conftest.$ac_ext >&5 3156 rm -rf conftest* 3157 eval "ac_cv_header_$ac_safe=no" 3158fi 3159rm -f conftest* 3160fi 3161if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3162 echo "$ac_t""yes" 1>&6 3163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3164 cat >> confdefs.h <<EOF 3165#define $ac_tr_hdr 1 3166EOF 3167 3168else 3169 echo "$ac_t""no" 1>&6 3170fi 3171done 3172 3173for ac_hdr in sys/sysctl.h sys/termios.h sys/time.h 3174do 3175ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3176echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3177echo "configure:3178: checking for $ac_hdr" >&5 3178if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3179 echo $ac_n "(cached) $ac_c" 1>&6 3180else 3181 cat > conftest.$ac_ext <<EOF 3182#line 3183 "configure" 3183#include "confdefs.h" 3184#include <$ac_hdr> 3185EOF 3186ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3187{ (eval echo configure:3188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3188ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3189if test -z "$ac_err"; then 3190 rm -rf conftest* 3191 eval "ac_cv_header_$ac_safe=yes" 3192else 3193 echo "$ac_err" >&5 3194 echo "configure: failed program was:" >&5 3195 cat conftest.$ac_ext >&5 3196 rm -rf conftest* 3197 eval "ac_cv_header_$ac_safe=no" 3198fi 3199rm -f conftest* 3200fi 3201if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3202 echo "$ac_t""yes" 1>&6 3203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3204 cat >> confdefs.h <<EOF 3205#define $ac_tr_hdr 1 3206EOF 3207 3208else 3209 echo "$ac_t""no" 1>&6 3210fi 3211done 3212 3213cat > conftest.$ac_ext <<EOF 3214#line 3215 "configure" 3215#include "confdefs.h" 3216#include <sys/timepps.h> 3217#ifdef PPS_API_VERS_1 3218yes 3219#endif 3220 3221EOF 3222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3223 egrep "yes" >/dev/null 2>&1; then 3224 rm -rf conftest* 3225 for ac_hdr in sys/timepps.h 3226do 3227ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3228echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3229echo "configure:3230: checking for $ac_hdr" >&5 3230if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3231 echo $ac_n "(cached) $ac_c" 1>&6 3232else 3233 cat > conftest.$ac_ext <<EOF 3234#line 3235 "configure" 3235#include "confdefs.h" 3236#include <$ac_hdr> 3237EOF 3238ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3239{ (eval echo configure:3240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3240ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3241if test -z "$ac_err"; then 3242 rm -rf conftest* 3243 eval "ac_cv_header_$ac_safe=yes" 3244else 3245 echo "$ac_err" >&5 3246 echo "configure: failed program was:" >&5 3247 cat conftest.$ac_ext >&5 3248 rm -rf conftest* 3249 eval "ac_cv_header_$ac_safe=no" 3250fi 3251rm -f conftest* 3252fi 3253if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3254 echo "$ac_t""yes" 1>&6 3255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3256 cat >> confdefs.h <<EOF 3257#define $ac_tr_hdr 1 3258EOF 3259 3260else 3261 echo "$ac_t""no" 1>&6 3262fi 3263done 3264 3265fi 3266rm -f conftest* 3267 3268for ac_hdr in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h 3269do 3270ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3271echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3272echo "configure:3273: checking for $ac_hdr" >&5 3273if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3274 echo $ac_n "(cached) $ac_c" 1>&6 3275else 3276 cat > conftest.$ac_ext <<EOF 3277#line 3278 "configure" 3278#include "confdefs.h" 3279#include <$ac_hdr> 3280EOF 3281ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3282{ (eval echo configure:3283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3283ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3284if test -z "$ac_err"; then 3285 rm -rf conftest* 3286 eval "ac_cv_header_$ac_safe=yes" 3287else 3288 echo "$ac_err" >&5 3289 echo "configure: failed program was:" >&5 3290 cat conftest.$ac_ext >&5 3291 rm -rf conftest* 3292 eval "ac_cv_header_$ac_safe=no" 3293fi 3294rm -f conftest* 3295fi 3296if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3297 echo "$ac_t""yes" 1>&6 3298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3299 cat >> confdefs.h <<EOF 3300#define $ac_tr_hdr 1 3301EOF 3302 3303else 3304 echo "$ac_t""no" 1>&6 3305fi 3306done 3307 3308echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3309echo "configure:3310: checking whether time.h and sys/time.h may both be included" >&5 3310if eval "test \"\${ac_cv_header_time+set}\" = set"; then 3311 echo $ac_n "(cached) $ac_c" 1>&6 3312else 3313 cat > conftest.$ac_ext <<EOF 3314#line 3315 "configure" 3315#include "confdefs.h" 3316#include <sys/types.h> 3317#include <sys/time.h> 3318#include <time.h> 3319int main() { 3320struct tm *tp; 3321; return 0; } 3322EOF 3323if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3324 rm -rf conftest* 3325 ac_cv_header_time=yes 3326else 3327 echo "configure: failed program was:" >&5 3328 cat conftest.$ac_ext >&5 3329 rm -rf conftest* 3330 ac_cv_header_time=no 3331fi 3332rm -f conftest* 3333fi 3334 3335echo "$ac_t""$ac_cv_header_time" 1>&6 3336if test $ac_cv_header_time = yes; then 3337 cat >> confdefs.h <<\EOF 3338#define TIME_WITH_SYS_TIME 1 3339EOF 3340 3341fi 3342 3343case "$target" in 3344*-convex-*) 3345 for ac_hdr in /sys/sync/queue.h /sys/sync/sema.h 3346do 3347ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3348echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3349echo "configure:3350: checking for $ac_hdr" >&5 3350if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3351 echo $ac_n "(cached) $ac_c" 1>&6 3352else 3353 cat > conftest.$ac_ext <<EOF 3354#line 3355 "configure" 3355#include "confdefs.h" 3356#include <$ac_hdr> 3357EOF 3358ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3359{ (eval echo configure:3360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3360ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3361if test -z "$ac_err"; then 3362 rm -rf conftest* 3363 eval "ac_cv_header_$ac_safe=yes" 3364else 3365 echo "$ac_err" >&5 3366 echo "configure: failed program was:" >&5 3367 cat conftest.$ac_ext >&5 3368 rm -rf conftest* 3369 eval "ac_cv_header_$ac_safe=no" 3370fi 3371rm -f conftest* 3372fi 3373if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3374 echo "$ac_t""yes" 1>&6 3375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3376 cat >> confdefs.h <<EOF 3377#define $ac_tr_hdr 1 3378EOF 3379 3380else 3381 echo "$ac_t""no" 1>&6 3382fi 3383done 3384 3385 ;; 3386*-*-bsdi*) 3387 for ac_hdr in machine/inline.h sys/pcl720.h sys/i8253.h 3388do 3389ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3390echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3391echo "configure:3392: checking for $ac_hdr" >&5 3392if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3393 echo $ac_n "(cached) $ac_c" 1>&6 3394else 3395 cat > conftest.$ac_ext <<EOF 3396#line 3397 "configure" 3397#include "confdefs.h" 3398#include <$ac_hdr> 3399EOF 3400ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3401{ (eval echo configure:3402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3402ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3403if test -z "$ac_err"; then 3404 rm -rf conftest* 3405 eval "ac_cv_header_$ac_safe=yes" 3406else 3407 echo "$ac_err" >&5 3408 echo "configure: failed program was:" >&5 3409 cat conftest.$ac_ext >&5 3410 rm -rf conftest* 3411 eval "ac_cv_header_$ac_safe=no" 3412fi 3413rm -f conftest* 3414fi 3415if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3416 echo "$ac_t""yes" 1>&6 3417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3418 cat >> confdefs.h <<EOF 3419#define $ac_tr_hdr 1 3420EOF 3421 3422else 3423 echo "$ac_t""no" 1>&6 3424fi 3425done 3426 3427 ;; 3428esac 3429 3430ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 3431echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 3432echo "configure:3433: checking for nlist.h" >&5 3433if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3434 echo $ac_n "(cached) $ac_c" 1>&6 3435else 3436 cat > conftest.$ac_ext <<EOF 3437#line 3438 "configure" 3438#include "confdefs.h" 3439#include <nlist.h> 3440EOF 3441ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3442{ (eval echo configure:3443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3443ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3444if test -z "$ac_err"; then 3445 rm -rf conftest* 3446 eval "ac_cv_header_$ac_safe=yes" 3447else 3448 echo "$ac_err" >&5 3449 echo "configure: failed program was:" >&5 3450 cat conftest.$ac_ext >&5 3451 rm -rf conftest* 3452 eval "ac_cv_header_$ac_safe=no" 3453fi 3454rm -f conftest* 3455fi 3456if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3457 echo "$ac_t""yes" 1>&6 3458 cat >> confdefs.h <<\EOF 3459#define NLIST_STRUCT 1 3460EOF 3461 3462echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 3463echo "configure:3464: checking for n_un in struct nlist" >&5 3464if eval "test \"\${ac_cv_struct_nlist_n_un+set}\" = set"; then 3465 echo $ac_n "(cached) $ac_c" 1>&6 3466else 3467 cat > conftest.$ac_ext <<EOF 3468#line 3469 "configure" 3469#include "confdefs.h" 3470#include <nlist.h> 3471int main() { 3472struct nlist n; n.n_un.n_name = 0; 3473; return 0; } 3474EOF 3475if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3476 rm -rf conftest* 3477 ac_cv_struct_nlist_n_un=yes 3478else 3479 echo "configure: failed program was:" >&5 3480 cat conftest.$ac_ext >&5 3481 rm -rf conftest* 3482 ac_cv_struct_nlist_n_un=no 3483fi 3484rm -f conftest* 3485fi 3486 3487echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 3488if test $ac_cv_struct_nlist_n_un = yes; then 3489 cat >> confdefs.h <<\EOF 3490#define NLIST_NAME_UNION 1 3491EOF 3492 3493fi 3494 3495else 3496 echo "$ac_t""no" 1>&6 3497fi 3498 3499echo $ac_n "checking for basic volatile support""... $ac_c" 1>&6 3500echo "configure:3501: checking for basic volatile support" >&5 3501if eval "test \"\${ac_cv_c_volatile+set}\" = set"; then 3502 echo $ac_n "(cached) $ac_c" 1>&6 3503else 3504 cat > conftest.$ac_ext <<EOF 3505#line 3506 "configure" 3506#include "confdefs.h" 3507 3508int main() { 3509 3510volatile int x; 3511; return 0; } 3512EOF 3513if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3514 rm -rf conftest* 3515 ac_cv_c_volatile=yes 3516else 3517 echo "configure: failed program was:" >&5 3518 cat conftest.$ac_ext >&5 3519 rm -rf conftest* 3520 ac_cv_c_volatile=no 3521fi 3522rm -f conftest* 3523 3524fi 3525 3526echo "$ac_t""$ac_cv_c_volatile" 1>&6 3527case "$ac_cv_c_volatile" in 3528 yes) 3529 ;; 3530 *) cat >> confdefs.h <<\EOF 3531#define volatile 3532EOF 3533 3534 ;; 3535esac 3536 3537case "$target" in 3538 sparc-*-solaris2*) 3539 # Assume that solaris2 is Ansi C... 3540 ;; 3541 *) 3542 3543 3544 3545echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 3546echo "configure:3547: checking for ${CC-cc} option to accept ANSI C" >&5 3547if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then 3548 echo $ac_n "(cached) $ac_c" 1>&6 3549else 3550 am_cv_prog_cc_stdc=no 3551ac_save_CC="$CC" 3552# Don't try gcc -ansi; that turns off useful extensions and 3553# breaks some systems' header files. 3554# AIX -qlanglvl=ansi 3555# Ultrix and OSF/1 -std1 3556# HP-UX 10.20 and later -Ae 3557# HP-UX older versions -Aa -D_HPUX_SOURCE 3558# SVR4 -Xc -D__EXTENSIONS__ 3559for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3560do 3561 CC="$ac_save_CC $ac_arg" 3562 cat > conftest.$ac_ext <<EOF 3563#line 3564 "configure" 3564#include "confdefs.h" 3565#include <stdarg.h> 3566#include <stdio.h> 3567#include <sys/types.h> 3568#include <sys/stat.h> 3569/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3570struct buf { int x; }; 3571FILE * (*rcsopen) (struct buf *, struct stat *, int); 3572static char *e (p, i) 3573 char **p; 3574 int i; 3575{ 3576 return p[i]; 3577} 3578static char *f (char * (*g) (char **, int), char **p, ...) 3579{ 3580 char *s; 3581 va_list v; 3582 va_start (v,p); 3583 s = g (p, va_arg (v,int)); 3584 va_end (v); 3585 return s; 3586} 3587int test (int i, double x); 3588struct s1 {int (*f) (int a);}; 3589struct s2 {int (*f) (double a);}; 3590int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3591int argc; 3592char **argv; 3593 3594int main() { 3595 3596return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3597 3598; return 0; } 3599EOF 3600if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3601 rm -rf conftest* 3602 am_cv_prog_cc_stdc="$ac_arg"; break 3603else 3604 echo "configure: failed program was:" >&5 3605 cat conftest.$ac_ext >&5 3606fi 3607rm -f conftest* 3608done 3609CC="$ac_save_CC" 3610 3611fi 3612 3613if test -z "$am_cv_prog_cc_stdc"; then 3614 echo "$ac_t""none needed" 1>&6 3615else 3616 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 3617fi 3618case "x$am_cv_prog_cc_stdc" in 3619 x|xno) ;; 3620 *) CC="$CC $am_cv_prog_cc_stdc" ;; 3621esac 3622 3623 3624 3625echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 3626echo "configure:3627: checking for function prototypes" >&5 3627if test "$am_cv_prog_cc_stdc" != no; then 3628 echo "$ac_t""yes" 1>&6 3629 cat >> confdefs.h <<\EOF 3630#define PROTOTYPES 1 3631EOF 3632 3633 U= ANSI2KNR= 3634else 3635 echo "$ac_t""no" 1>&6 3636 U=_ ANSI2KNR=./ansi2knr 3637 # Ensure some checks needed by ansi2knr itself. 3638 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3639echo "configure:3640: checking for ANSI C header files" >&5 3640if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then 3641 echo $ac_n "(cached) $ac_c" 1>&6 3642else 3643 cat > conftest.$ac_ext <<EOF 3644#line 3645 "configure" 3645#include "confdefs.h" 3646#include <stdlib.h> 3647#include <stdarg.h> 3648#include <string.h> 3649#include <float.h> 3650EOF 3651ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3652{ (eval echo configure:3653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3653ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3654if test -z "$ac_err"; then 3655 rm -rf conftest* 3656 ac_cv_header_stdc=yes 3657else 3658 echo "$ac_err" >&5 3659 echo "configure: failed program was:" >&5 3660 cat conftest.$ac_ext >&5 3661 rm -rf conftest* 3662 ac_cv_header_stdc=no 3663fi 3664rm -f conftest* 3665 3666if test $ac_cv_header_stdc = yes; then 3667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3668cat > conftest.$ac_ext <<EOF 3669#line 3670 "configure" 3670#include "confdefs.h" 3671#include <string.h> 3672EOF 3673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3674 egrep "memchr" >/dev/null 2>&1; then 3675 : 3676else 3677 rm -rf conftest* 3678 ac_cv_header_stdc=no 3679fi 3680rm -f conftest* 3681 3682fi 3683 3684if test $ac_cv_header_stdc = yes; then 3685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3686cat > conftest.$ac_ext <<EOF 3687#line 3688 "configure" 3688#include "confdefs.h" 3689#include <stdlib.h> 3690EOF 3691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3692 egrep "free" >/dev/null 2>&1; then 3693 : 3694else 3695 rm -rf conftest* 3696 ac_cv_header_stdc=no 3697fi 3698rm -f conftest* 3699 3700fi 3701 3702if test $ac_cv_header_stdc = yes; then 3703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3704if test "$cross_compiling" = yes; then 3705 : 3706else 3707 cat > conftest.$ac_ext <<EOF 3708#line 3709 "configure" 3709#include "confdefs.h" 3710#include <ctype.h> 3711#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3712#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3713#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3714int main () { int i; for (i = 0; i < 256; i++) 3715if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3716exit (0); } 3717 3718EOF 3719if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3720then 3721 : 3722else 3723 echo "configure: failed program was:" >&5 3724 cat conftest.$ac_ext >&5 3725 rm -fr conftest* 3726 ac_cv_header_stdc=no 3727fi 3728rm -fr conftest* 3729fi 3730 3731fi 3732fi 3733 3734echo "$ac_t""$ac_cv_header_stdc" 1>&6 3735if test $ac_cv_header_stdc = yes; then 3736 cat >> confdefs.h <<\EOF 3737#define STDC_HEADERS 1 3738EOF 3739 3740fi 3741 3742 for ac_hdr in string.h 3743do 3744ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3745echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3746echo "configure:3747: checking for $ac_hdr" >&5 3747if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 3748 echo $ac_n "(cached) $ac_c" 1>&6 3749else 3750 cat > conftest.$ac_ext <<EOF 3751#line 3752 "configure" 3752#include "confdefs.h" 3753#include <$ac_hdr> 3754EOF 3755ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3756{ (eval echo configure:3757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3757ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3758if test -z "$ac_err"; then 3759 rm -rf conftest* 3760 eval "ac_cv_header_$ac_safe=yes" 3761else 3762 echo "$ac_err" >&5 3763 echo "configure: failed program was:" >&5 3764 cat conftest.$ac_ext >&5 3765 rm -rf conftest* 3766 eval "ac_cv_header_$ac_safe=no" 3767fi 3768rm -f conftest* 3769fi 3770if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3771 echo "$ac_t""yes" 1>&6 3772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3773 cat >> confdefs.h <<EOF 3774#define $ac_tr_hdr 1 3775EOF 3776 3777else 3778 echo "$ac_t""no" 1>&6 3779fi 3780done 3781 3782fi 3783 3784 ;; 3785esac 3786echo $ac_n "checking if C compiler permits function prototypes""... $ac_c" 1>&6 3787echo "configure:3788: checking if C compiler permits function prototypes" >&5 3788if eval "test \"\${ac_cv_have_prototypes+set}\" = set"; then 3789 echo $ac_n "(cached) $ac_c" 1>&6 3790else 3791 cat > conftest.$ac_ext <<EOF 3792#line 3793 "configure" 3793#include "confdefs.h" 3794 3795extern int foo (short); 3796int foo(short i) { return i; } 3797int main() { 3798 3799int i; 3800; return 0; } 3801EOF 3802if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3803 rm -rf conftest* 3804 ac_cv_have_prototypes=yes 3805else 3806 echo "configure: failed program was:" >&5 3807 cat conftest.$ac_ext >&5 3808 rm -rf conftest* 3809 ac_cv_have_prototypes=no 3810fi 3811rm -f conftest* 3812 3813fi 3814 3815echo "$ac_t""$ac_cv_have_prototypes" 1>&6 3816if test "$ac_cv_have_prototypes" = yes; then 3817 cat >> confdefs.h <<\EOF 3818#define HAVE_PROTOTYPES 1 3819EOF 3820 3821fi 3822 3823echo $ac_n "checking for working const""... $ac_c" 1>&6 3824echo "configure:3825: checking for working const" >&5 3825if eval "test \"\${ac_cv_c_const+set}\" = set"; then 3826 echo $ac_n "(cached) $ac_c" 1>&6 3827else 3828 cat > conftest.$ac_ext <<EOF 3829#line 3830 "configure" 3830#include "confdefs.h" 3831 3832int main() { 3833 3834/* Ultrix mips cc rejects this. */ 3835typedef int charset[2]; const charset x; 3836/* SunOS 4.1.1 cc rejects this. */ 3837char const *const *ccp; 3838char **p; 3839/* NEC SVR4.0.2 mips cc rejects this. */ 3840struct point {int x, y;}; 3841static struct point const zero = {0,0}; 3842/* AIX XL C 1.02.0.0 rejects this. 3843 It does not let you subtract one const X* pointer from another in an arm 3844 of an if-expression whose if-part is not a constant expression */ 3845const char *g = "string"; 3846ccp = &g + (g ? g-g : 0); 3847/* HPUX 7.0 cc rejects these. */ 3848++ccp; 3849p = (char**) ccp; 3850ccp = (char const *const *) p; 3851{ /* SCO 3.2v4 cc rejects this. */ 3852 char *t; 3853 char const *s = 0 ? (char *) 0 : (char const *) 0; 3854 3855 *t++ = 0; 3856} 3857{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3858 int x[] = {25, 17}; 3859 const int *foo = &x[0]; 3860 ++foo; 3861} 3862{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3863 typedef const int *iptr; 3864 iptr p = 0; 3865 ++p; 3866} 3867{ /* AIX XL C 1.02.0.0 rejects this saying 3868 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3869 struct s { int j; const int *ap[3]; }; 3870 struct s *b; b->j = 5; 3871} 3872{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3873 const int foo = 10; 3874} 3875 3876; return 0; } 3877EOF 3878if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3879 rm -rf conftest* 3880 ac_cv_c_const=yes 3881else 3882 echo "configure: failed program was:" >&5 3883 cat conftest.$ac_ext >&5 3884 rm -rf conftest* 3885 ac_cv_c_const=no 3886fi 3887rm -f conftest* 3888fi 3889 3890echo "$ac_t""$ac_cv_c_const" 1>&6 3891if test $ac_cv_c_const = no; then 3892 cat >> confdefs.h <<\EOF 3893#define const 3894EOF 3895 3896fi 3897 3898case "$host" in 3899 $target) 3900 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3901echo "configure:3902: checking whether byte ordering is bigendian" >&5 3902if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then 3903 echo $ac_n "(cached) $ac_c" 1>&6 3904else 3905 ac_cv_c_bigendian=unknown 3906# See if sys/param.h defines the BYTE_ORDER macro. 3907cat > conftest.$ac_ext <<EOF 3908#line 3909 "configure" 3909#include "confdefs.h" 3910#include <sys/types.h> 3911#include <sys/param.h> 3912int main() { 3913 3914#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3915 bogus endian macros 3916#endif 3917; return 0; } 3918EOF 3919if { (eval echo configure:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3920 rm -rf conftest* 3921 # It does; now see whether it defined to BIG_ENDIAN or not. 3922cat > conftest.$ac_ext <<EOF 3923#line 3924 "configure" 3924#include "confdefs.h" 3925#include <sys/types.h> 3926#include <sys/param.h> 3927int main() { 3928 3929#if BYTE_ORDER != BIG_ENDIAN 3930 not big endian 3931#endif 3932; return 0; } 3933EOF 3934if { (eval echo configure:3935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3935 rm -rf conftest* 3936 ac_cv_c_bigendian=yes 3937else 3938 echo "configure: failed program was:" >&5 3939 cat conftest.$ac_ext >&5 3940 rm -rf conftest* 3941 ac_cv_c_bigendian=no 3942fi 3943rm -f conftest* 3944else 3945 echo "configure: failed program was:" >&5 3946 cat conftest.$ac_ext >&5 3947fi 3948rm -f conftest* 3949if test $ac_cv_c_bigendian = unknown; then 3950if test "$cross_compiling" = yes; then 3951 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 3952else 3953 cat > conftest.$ac_ext <<EOF 3954#line 3955 "configure" 3955#include "confdefs.h" 3956main () { 3957 /* Are we little or big endian? From Harbison&Steele. */ 3958 union 3959 { 3960 long l; 3961 char c[sizeof (long)]; 3962 } u; 3963 u.l = 1; 3964 exit (u.c[sizeof (long) - 1] == 1); 3965} 3966EOF 3967if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3968then 3969 ac_cv_c_bigendian=no 3970else 3971 echo "configure: failed program was:" >&5 3972 cat conftest.$ac_ext >&5 3973 rm -fr conftest* 3974 ac_cv_c_bigendian=yes 3975fi 3976rm -fr conftest* 3977fi 3978 3979fi 3980fi 3981 3982echo "$ac_t""$ac_cv_c_bigendian" 1>&6 3983if test $ac_cv_c_bigendian = yes; then 3984 cat >> confdefs.h <<\EOF 3985#define WORDS_BIGENDIAN 1 3986EOF 3987 3988fi 3989 3990 ;; 3991 *) case "$target" in 3992 i*86-*-vxworks*) 3993 # LITTLEENDIAN 3994 ;; 3995 *-*-vxworks*) 3996 cat >> confdefs.h <<\EOF 3997#define WORDS_BIGENDIAN 1 3998EOF 3999 4000 ;; 4001 *) { echo "configure: error: Cross-compiling needs explicit byte order" 1>&2; exit 1; } 4002 ;; 4003 esac 4004 ;; 4005esac 4006echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 4007echo "configure:4008: checking return type of signal handlers" >&5 4008if eval "test \"\${ac_cv_type_signal+set}\" = set"; then 4009 echo $ac_n "(cached) $ac_c" 1>&6 4010else 4011 cat > conftest.$ac_ext <<EOF 4012#line 4013 "configure" 4013#include "confdefs.h" 4014#include <sys/types.h> 4015#include <signal.h> 4016#ifdef signal 4017#undef signal 4018#endif 4019#ifdef __cplusplus 4020extern "C" void (*signal (int, void (*)(int)))(int); 4021#else 4022void (*signal ()) (); 4023#endif 4024 4025int main() { 4026int i; 4027; return 0; } 4028EOF 4029if { (eval echo configure:4030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4030 rm -rf conftest* 4031 ac_cv_type_signal=void 4032else 4033 echo "configure: failed program was:" >&5 4034 cat conftest.$ac_ext >&5 4035 rm -rf conftest* 4036 ac_cv_type_signal=int 4037fi 4038rm -f conftest* 4039fi 4040 4041echo "$ac_t""$ac_cv_type_signal" 1>&6 4042cat >> confdefs.h <<EOF 4043#define RETSIGTYPE $ac_cv_type_signal 4044EOF 4045 4046 4047echo $ac_n "checking for off_t""... $ac_c" 1>&6 4048echo "configure:4049: checking for off_t" >&5 4049if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then 4050 echo $ac_n "(cached) $ac_c" 1>&6 4051else 4052 cat > conftest.$ac_ext <<EOF 4053#line 4054 "configure" 4054#include "confdefs.h" 4055#include <sys/types.h> 4056#if STDC_HEADERS 4057#include <stdlib.h> 4058#include <stddef.h> 4059#endif 4060EOF 4061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4062 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 4063 rm -rf conftest* 4064 eval "ac_cv_type_off_t=yes" 4065else 4066 rm -rf conftest* 4067 eval "ac_cv_type_off_t=no" 4068fi 4069rm -f conftest* 4070 4071fi 4072if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then 4073 echo "$ac_t""yes" 1>&6 4074else 4075 echo "$ac_t""no" 1>&6 4076 cat >> confdefs.h <<EOF 4077#define off_t long 4078EOF 4079 4080fi 4081 4082echo $ac_n "checking for size_t""... $ac_c" 1>&6 4083echo "configure:4084: checking for size_t" >&5 4084if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then 4085 echo $ac_n "(cached) $ac_c" 1>&6 4086else 4087 cat > conftest.$ac_ext <<EOF 4088#line 4089 "configure" 4089#include "confdefs.h" 4090#include <sys/types.h> 4091#if STDC_HEADERS 4092#include <stdlib.h> 4093#include <stddef.h> 4094#endif 4095EOF 4096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4097 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 4098 rm -rf conftest* 4099 eval "ac_cv_type_size_t=yes" 4100else 4101 rm -rf conftest* 4102 eval "ac_cv_type_size_t=no" 4103fi 4104rm -f conftest* 4105 4106fi 4107if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then 4108 echo "$ac_t""yes" 1>&6 4109else 4110 echo "$ac_t""no" 1>&6 4111 cat >> confdefs.h <<EOF 4112#define size_t unsigned 4113EOF 4114 4115fi 4116 4117echo $ac_n "checking for time_t""... $ac_c" 1>&6 4118echo "configure:4119: checking for time_t" >&5 4119if eval "test \"\${ac_cv_type_time_t+set}\" = set"; then 4120 echo $ac_n "(cached) $ac_c" 1>&6 4121else 4122 cat > conftest.$ac_ext <<EOF 4123#line 4124 "configure" 4124#include "confdefs.h" 4125#include <sys/types.h> 4126#if STDC_HEADERS 4127#include <stdlib.h> 4128#include <stddef.h> 4129#endif 4130EOF 4131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4132 egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 4133 rm -rf conftest* 4134 eval "ac_cv_type_time_t=yes" 4135else 4136 rm -rf conftest* 4137 eval "ac_cv_type_time_t=no" 4138fi 4139rm -f conftest* 4140 4141fi 4142if eval "test \"`echo '$ac_cv_type_'time_t`\" = yes"; then 4143 echo "$ac_t""yes" 1>&6 4144else 4145 echo "$ac_t""no" 1>&6 4146 cat >> confdefs.h <<EOF 4147#define time_t long 4148EOF 4149 4150fi 4151 4152echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4153echo "configure:4154: checking whether struct tm is in sys/time.h or time.h" >&5 4154if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then 4155 echo $ac_n "(cached) $ac_c" 1>&6 4156else 4157 cat > conftest.$ac_ext <<EOF 4158#line 4159 "configure" 4159#include "confdefs.h" 4160#include <sys/types.h> 4161#include <time.h> 4162int main() { 4163struct tm *tp; tp->tm_sec; 4164; return 0; } 4165EOF 4166if { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4167 rm -rf conftest* 4168 ac_cv_struct_tm=time.h 4169else 4170 echo "configure: failed program was:" >&5 4171 cat conftest.$ac_ext >&5 4172 rm -rf conftest* 4173 ac_cv_struct_tm=sys/time.h 4174fi 4175rm -f conftest* 4176fi 4177 4178echo "$ac_t""$ac_cv_struct_tm" 1>&6 4179if test $ac_cv_struct_tm = sys/time.h; then 4180 cat >> confdefs.h <<\EOF 4181#define TM_IN_SYS_TIME 1 4182EOF 4183 4184fi 4185 4186 4187echo $ac_n "checking for a fallback value for HZ""... $ac_c" 1>&6 4188echo "configure:4189: checking for a fallback value for HZ" >&5 4189if eval "test \"\${ac_cv_var_default_hz+set}\" = set"; then 4190 echo $ac_n "(cached) $ac_c" 1>&6 4191else 4192 ac_cv_var_default_hz=100 4193case "$target" in 4194 alpha*-dec-osf4*|alpha*-dec-osf5*) 4195 ac_cv_var_default_hz=1024 4196 ;; 4197 mips-dec-ultrix4*) 4198 ac_cv_var_default_hz=256 4199 ;; 4200esac 4201fi 4202 4203echo "$ac_t""$ac_cv_var_default_hz" 1>&6 4204cat >> confdefs.h <<EOF 4205#define DEFAULT_HZ $ac_cv_var_default_hz 4206EOF 4207 4208 4209echo $ac_n "checking if we need to override the system's value for HZ""... $ac_c" 1>&6 4210echo "configure:4211: checking if we need to override the system's value for HZ" >&5 4211if eval "test \"\${ac_cv_var_override_hz+set}\" = set"; then 4212 echo $ac_n "(cached) $ac_c" 1>&6 4213else 4214 ac_cv_var_override_hz=no 4215case "$target" in 4216 alpha*-dec-osf4*|alpha*-dec-osf5*) 4217 ac_cv_var_override_hz=yes 4218 ;; 4219 mips-dec-ultrix4*) 4220 ac_cv_var_override_hz=yes 4221 ;; 4222 *-*-freebsd*) 4223 ac_cv_var_override_hz=yes 4224 ;; 4225 *-*-sunos4*) 4226 ac_cv_var_override_hz=yes 4227 ;; 4228esac 4229fi 4230 4231echo "$ac_t""$ac_cv_var_override_hz" 1>&6 4232case "$ac_cv_var_override_hz" in 4233 yes) 4234 cat >> confdefs.h <<\EOF 4235#define OVERRIDE_HZ 1 4236EOF 4237 4238 ;; 4239esac 4240 4241 4242 4243echo $ac_n "checking struct sigaction for sa_sigaction""... $ac_c" 1>&6 4244echo "configure:4245: checking struct sigaction for sa_sigaction" >&5 4245if eval "test \"\${ac_cv_struct_sigaction_has_sa_sigaction+set}\" = set"; then 4246 echo $ac_n "(cached) $ac_c" 1>&6 4247else 4248 4249 cat > conftest.$ac_ext <<EOF 4250#line 4251 "configure" 4251#include "confdefs.h" 4252#include <signal.h> 4253int main() { 4254struct sigaction act; act.sa_sigaction = 0; 4255; return 0; } 4256EOF 4257if { (eval echo configure:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4258 rm -rf conftest* 4259 ac_cv_struct_sigaction_has_sa_sigaction=yes 4260else 4261 echo "configure: failed program was:" >&5 4262 cat conftest.$ac_ext >&5 4263 rm -rf conftest* 4264 ac_cv_struct_sigaction_has_sa_sigaction=no 4265 4266fi 4267rm -f conftest* 4268 4269 4270fi 4271 4272echo "$ac_t""$ac_cv_struct_sigaction_has_sa_sigaction" 1>&6 4273if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then 4274 cat >> confdefs.h <<\EOF 4275#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1 4276EOF 4277 4278fi 4279 4280echo $ac_n "checking for struct ppsclockev""... $ac_c" 1>&6 4281echo "configure:4282: checking for struct ppsclockev" >&5 4282if eval "test \"\${ac_cv_struct_ppsclockev+set}\" = set"; then 4283 echo $ac_n "(cached) $ac_c" 1>&6 4284else 4285 cat > conftest.$ac_ext <<EOF 4286#line 4287 "configure" 4287#include "confdefs.h" 4288 4289#include <sys/types.h> 4290#ifdef HAVE_SYS_TERMIOS_H 4291# include <sys/termios.h> 4292#endif 4293#ifdef HAVE_SYS_TIME_H 4294# include <sys/time.h> 4295#endif 4296#ifdef HAVE_SYS_PPSCLOCK_H 4297# include <sys/ppsclock.h> 4298#endif 4299int main() { 4300 4301extern struct ppsclockev *pce; 4302return pce->serial; 4303; return 0; } 4304EOF 4305if { (eval echo configure:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4306 rm -rf conftest* 4307 ac_cv_struct_ppsclockev=yes 4308else 4309 echo "configure: failed program was:" >&5 4310 cat conftest.$ac_ext >&5 4311 rm -rf conftest* 4312 ac_cv_struct_ppsclockev=no 4313fi 4314rm -f conftest* 4315 4316fi 4317 4318echo "$ac_t""$ac_cv_struct_ppsclockev" 1>&6 4319if test $ac_cv_struct_ppsclockev = yes; then 4320 cat >> confdefs.h <<\EOF 4321#define HAVE_STRUCT_PPSCLOCKEV 1 4322EOF 4323 4324fi 4325 4326echo $ac_n "checking struct sockaddr for sa_len""... $ac_c" 1>&6 4327echo "configure:4328: checking struct sockaddr for sa_len" >&5 4328if eval "test \"\${ac_cv_struct_sockaddr_has_sa_len+set}\" = set"; then 4329 echo $ac_n "(cached) $ac_c" 1>&6 4330else 4331 cat > conftest.$ac_ext <<EOF 4332#line 4333 "configure" 4333#include "confdefs.h" 4334 4335#include <sys/types.h> 4336#include <sys/socket.h> 4337int main() { 4338 4339extern struct sockaddr *ps; 4340return ps->sa_len; 4341; return 0; } 4342EOF 4343if { (eval echo configure:4344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4344 rm -rf conftest* 4345 ac_cv_struct_sockaddr_has_sa_len=yes 4346else 4347 echo "configure: failed program was:" >&5 4348 cat conftest.$ac_ext >&5 4349 rm -rf conftest* 4350 ac_cv_struct_sockaddr_has_sa_len=no 4351fi 4352rm -f conftest* 4353 4354fi 4355 4356echo "$ac_t""$ac_cv_struct_sockaddr_has_sa_len" 1>&6 4357if test $ac_cv_struct_sockaddr_has_sa_len = yes; then 4358 cat >> confdefs.h <<\EOF 4359#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1 4360EOF 4361 4362fi 4363 4364echo $ac_n "checking struct clockinfo for hz""... $ac_c" 1>&6 4365echo "configure:4366: checking struct clockinfo for hz" >&5 4366if eval "test \"\${ac_cv_struct_clockinfo_has_hz+set}\" = set"; then 4367 echo $ac_n "(cached) $ac_c" 1>&6 4368else 4369 cat > conftest.$ac_ext <<EOF 4370#line 4371 "configure" 4371#include "confdefs.h" 4372 4373#include <sys/time.h> 4374int main() { 4375 4376extern struct clockinfo *pc; 4377return pc->hz; 4378; return 0; } 4379EOF 4380if { (eval echo configure:4381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4381 rm -rf conftest* 4382 ac_cv_struct_clockinfo_has_hz=yes 4383else 4384 echo "configure: failed program was:" >&5 4385 cat conftest.$ac_ext >&5 4386 rm -rf conftest* 4387 ac_cv_struct_clockinfo_has_hz=no 4388fi 4389rm -f conftest* 4390 4391fi 4392 4393echo "$ac_t""$ac_cv_struct_clockinfo_has_hz" 1>&6 4394if test $ac_cv_struct_clockinfo_has_hz = yes; then 4395 cat >> confdefs.h <<\EOF 4396#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1 4397EOF 4398 4399fi 4400 4401echo $ac_n "checking struct clockinfo for tickadj""... $ac_c" 1>&6 4402echo "configure:4403: checking struct clockinfo for tickadj" >&5 4403if eval "test \"\${ac_cv_struct_clockinfo_has_tickadj+set}\" = set"; then 4404 echo $ac_n "(cached) $ac_c" 1>&6 4405else 4406 cat > conftest.$ac_ext <<EOF 4407#line 4408 "configure" 4408#include "confdefs.h" 4409 4410#include <sys/time.h> 4411int main() { 4412 4413extern struct clockinfo *pc; 4414return pc->tickadj; 4415; return 0; } 4416EOF 4417if { (eval echo configure:4418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4418 rm -rf conftest* 4419 ac_cv_struct_clockinfo_has_tickadj=yes 4420else 4421 echo "configure: failed program was:" >&5 4422 cat conftest.$ac_ext >&5 4423 rm -rf conftest* 4424 ac_cv_struct_clockinfo_has_tickadj=no 4425fi 4426rm -f conftest* 4427 4428fi 4429 4430echo "$ac_t""$ac_cv_struct_clockinfo_has_tickadj" 1>&6 4431if test $ac_cv_struct_clockinfo_has_tickadj = yes; then 4432 cat >> confdefs.h <<\EOF 4433#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1 4434EOF 4435 4436fi 4437 4438echo $ac_n "checking for struct ntptimeval""... $ac_c" 1>&6 4439echo "configure:4440: checking for struct ntptimeval" >&5 4440if eval "test \"\${ac_cv_struct_ntptimeval+set}\" = set"; then 4441 echo $ac_n "(cached) $ac_c" 1>&6 4442else 4443 cat > conftest.$ac_ext <<EOF 4444#line 4445 "configure" 4445#include "confdefs.h" 4446 4447#include <sys/time.h> 4448#include <sys/timex.h> 4449int main() { 4450struct ntptimeval n; 4451; return 0; } 4452EOF 4453if { (eval echo configure:4454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4454 rm -rf conftest* 4455 ac_cv_struct_ntptimeval=yes 4456else 4457 echo "configure: failed program was:" >&5 4458 cat conftest.$ac_ext >&5 4459 rm -rf conftest* 4460 ac_cv_struct_ntptimeval=no 4461fi 4462rm -f conftest* 4463fi 4464 4465echo "$ac_t""$ac_cv_struct_ntptimeval" 1>&6 4466if test $ac_cv_struct_ntptimeval = yes; then 4467 cat >> confdefs.h <<\EOF 4468#define HAVE_STRUCT_NTPTIMEVAL 1 4469EOF 4470 4471fi 4472 4473echo $ac_n "checking struct ntptimeval for time.tv_nsec""... $ac_c" 1>&6 4474echo "configure:4475: checking struct ntptimeval for time.tv_nsec" >&5 4475if eval "test \"\${ac_cv_struct_ntptimeval_tv_nsec+set}\" = set"; then 4476 echo $ac_n "(cached) $ac_c" 1>&6 4477else 4478 cat > conftest.$ac_ext <<EOF 4479#line 4480 "configure" 4480#include "confdefs.h" 4481 4482#ifdef HAVE_SYS_TIME_H 4483#include <sys/time.h> 4484#else 4485# ifdef HAVE_TIME_H 4486# include <time.h> 4487# endif 4488#endif 4489#ifdef HAVE_SYS_TIMEX_H 4490#include <sys/timex.h> 4491#else 4492# ifdef HAVE_TIMEX_H 4493# include <timex.h> 4494# endif 4495#endif 4496int main() { 4497 4498extern struct ntptimeval *ntv; 4499return ntv->time.tv_nsec; 4500; return 0; } 4501EOF 4502if { (eval echo configure:4503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4503 rm -rf conftest* 4504 ac_cv_struct_ntptimeval_tv_nsec=yes 4505else 4506 echo "configure: failed program was:" >&5 4507 cat conftest.$ac_ext >&5 4508 rm -rf conftest* 4509 ac_cv_struct_ntptimeval_tv_nsec=no 4510fi 4511rm -f conftest* 4512 4513fi 4514 4515echo "$ac_t""$ac_cv_struct_ntptimeval_tv_nsec" 1>&6 4516if test "$ac_cv_struct_ntptimeval_tv_nsec" = "yes"; then 4517 cat >> confdefs.h <<\EOF 4518#define HAVE_TV_NSEC_IN_NTPTIMEVAL 1 4519EOF 4520 4521fi 4522 4523echo $ac_n "checking for struct timespec in struct ntptimeval""... $ac_c" 1>&6 4524echo "configure:4525: checking for struct timespec in struct ntptimeval" >&5 4525if eval "test \"\${ac_cv_struct_ntptimeval_timespec+set}\" = set"; then 4526 echo $ac_n "(cached) $ac_c" 1>&6 4527else 4528 cat > conftest.$ac_ext <<EOF 4529#line 4530 "configure" 4530#include "confdefs.h" 4531#include <sys/time.h> 4532#include <sys/timex.h> 4533int main() { 4534struct ntptimeval n; n.time.tv_nsec = 0; 4535; return 0; } 4536EOF 4537if { (eval echo configure:4538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4538 rm -rf conftest* 4539 ac_cv_struct_ntptimeval_timespec=yes 4540else 4541 echo "configure: failed program was:" >&5 4542 cat conftest.$ac_ext >&5 4543 rm -rf conftest* 4544 ac_cv_struct_ntptimeval_timespec=no 4545fi 4546rm -f conftest* 4547fi 4548 4549echo "$ac_t""$ac_cv_struct_ntptimeval_timespec" 1>&6 4550if test $ac_cv_struct_ntptimeval_timespec = yes; then 4551 cat >> confdefs.h <<\EOF 4552#define TIMESPEC_IN_NTPTIMEVAL 1 4553EOF 4554 4555fi 4556 4557echo $ac_n "checking for inline""... $ac_c" 1>&6 4558echo "configure:4559: checking for inline" >&5 4559if eval "test \"\${ac_cv_c_inline+set}\" = set"; then 4560 echo $ac_n "(cached) $ac_c" 1>&6 4561else 4562 ac_cv_c_inline=no 4563for ac_kw in inline __inline__ __inline; do 4564 cat > conftest.$ac_ext <<EOF 4565#line 4566 "configure" 4566#include "confdefs.h" 4567 4568int main() { 4569} $ac_kw foo() { 4570; return 0; } 4571EOF 4572if { (eval echo configure:4573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4573 rm -rf conftest* 4574 ac_cv_c_inline=$ac_kw; break 4575else 4576 echo "configure: failed program was:" >&5 4577 cat conftest.$ac_ext >&5 4578fi 4579rm -f conftest* 4580done 4581 4582fi 4583 4584echo "$ac_t""$ac_cv_c_inline" 1>&6 4585case "$ac_cv_c_inline" in 4586 inline | yes) ;; 4587 no) cat >> confdefs.h <<\EOF 4588#define inline 4589EOF 4590 ;; 4591 *) cat >> confdefs.h <<EOF 4592#define inline $ac_cv_c_inline 4593EOF 4594 ;; 4595esac 4596 4597echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 4598echo "configure:4599: checking whether char is unsigned" >&5 4599if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then 4600 echo $ac_n "(cached) $ac_c" 1>&6 4601else 4602 if test "$GCC" = yes; then 4603 # GCC predefines this symbol on systems where it applies. 4604cat > conftest.$ac_ext <<EOF 4605#line 4606 "configure" 4606#include "confdefs.h" 4607#ifdef __CHAR_UNSIGNED__ 4608 yes 4609#endif 4610 4611EOF 4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4613 egrep "yes" >/dev/null 2>&1; then 4614 rm -rf conftest* 4615 ac_cv_c_char_unsigned=yes 4616else 4617 rm -rf conftest* 4618 ac_cv_c_char_unsigned=no 4619fi 4620rm -f conftest* 4621 4622else 4623if test "$cross_compiling" = yes; then 4624 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4625else 4626 cat > conftest.$ac_ext <<EOF 4627#line 4628 "configure" 4628#include "confdefs.h" 4629/* volatile prevents gcc2 from optimizing the test away on sparcs. */ 4630#if !defined(__STDC__) || __STDC__ != 1 4631#define volatile 4632#endif 4633main() { 4634 volatile char c = 255; exit(c < 0); 4635} 4636EOF 4637if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4638then 4639 ac_cv_c_char_unsigned=yes 4640else 4641 echo "configure: failed program was:" >&5 4642 cat conftest.$ac_ext >&5 4643 rm -fr conftest* 4644 ac_cv_c_char_unsigned=no 4645fi 4646rm -fr conftest* 4647fi 4648 4649fi 4650fi 4651 4652echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 4653if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 4654 cat >> confdefs.h <<\EOF 4655#define __CHAR_UNSIGNED__ 1 4656EOF 4657 4658fi 4659 case "$host" in 4660 $target) 4661 echo $ac_n "checking size of signed char""... $ac_c" 1>&6 4662echo "configure:4663: checking size of signed char" >&5 4663if eval "test \"\${ac_cv_sizeof_signed_char+set}\" = set"; then 4664 echo $ac_n "(cached) $ac_c" 1>&6 4665else 4666 if test "$cross_compiling" = yes; then 4667 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4668else 4669 cat > conftest.$ac_ext <<EOF 4670#line 4671 "configure" 4671#include "confdefs.h" 4672#include <stdio.h> 4673main() 4674{ 4675 FILE *f=fopen("conftestval", "w"); 4676 if (!f) exit(1); 4677 fprintf(f, "%d\n", sizeof(signed char)); 4678 exit(0); 4679} 4680EOF 4681if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4682then 4683 ac_cv_sizeof_signed_char=`cat conftestval` 4684else 4685 echo "configure: failed program was:" >&5 4686 cat conftest.$ac_ext >&5 4687 rm -fr conftest* 4688 ac_cv_sizeof_signed_char=0 4689fi 4690rm -fr conftest* 4691fi 4692 4693fi 4694echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6 4695cat >> confdefs.h <<EOF 4696#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 4697EOF 4698 4699 4700 ;; 4701 *) case "$target" in 4702 *-*-vxworks*) 4703 echo $ac_n "checking size of signed char""... $ac_c" 1>&6 4704echo "configure:4705: checking size of signed char" >&5 4705if eval "test \"\${ac_cv_sizeof_signed_char+set}\" = set"; then 4706 echo $ac_n "(cached) $ac_c" 1>&6 4707else 4708 if test "$cross_compiling" = yes; then 4709 ac_cv_sizeof_signed_char=1 4710else 4711 cat > conftest.$ac_ext <<EOF 4712#line 4713 "configure" 4713#include "confdefs.h" 4714#include <stdio.h> 4715main() 4716{ 4717 FILE *f=fopen("conftestval", "w"); 4718 if (!f) exit(1); 4719 fprintf(f, "%d\n", sizeof(signed char)); 4720 exit(0); 4721} 4722EOF 4723if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4724then 4725 ac_cv_sizeof_signed_char=`cat conftestval` 4726else 4727 echo "configure: failed program was:" >&5 4728 cat conftest.$ac_ext >&5 4729 rm -fr conftest* 4730 ac_cv_sizeof_signed_char=0 4731fi 4732rm -fr conftest* 4733fi 4734 4735fi 4736echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6 4737cat >> confdefs.h <<EOF 4738#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 4739EOF 4740 4741 4742 ;; 4743 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" 1>&2; exit 1; } 4744 ;; 4745 esac 4746 ;; 4747esac 4748 4749case "$host" in 4750 $target) 4751 echo $ac_n "checking size of int""... $ac_c" 1>&6 4752echo "configure:4753: checking size of int" >&5 4753if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then 4754 echo $ac_n "(cached) $ac_c" 1>&6 4755else 4756 if test "$cross_compiling" = yes; then 4757 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4758else 4759 cat > conftest.$ac_ext <<EOF 4760#line 4761 "configure" 4761#include "confdefs.h" 4762#include <stdio.h> 4763main() 4764{ 4765 FILE *f=fopen("conftestval", "w"); 4766 if (!f) exit(1); 4767 fprintf(f, "%d\n", sizeof(int)); 4768 exit(0); 4769} 4770EOF 4771if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4772then 4773 ac_cv_sizeof_int=`cat conftestval` 4774else 4775 echo "configure: failed program was:" >&5 4776 cat conftest.$ac_ext >&5 4777 rm -fr conftest* 4778 ac_cv_sizeof_int=0 4779fi 4780rm -fr conftest* 4781fi 4782 4783fi 4784echo "$ac_t""$ac_cv_sizeof_int" 1>&6 4785cat >> confdefs.h <<EOF 4786#define SIZEOF_INT $ac_cv_sizeof_int 4787EOF 4788 4789 4790 ;; 4791 *) case "$target" in 4792 *-*-vxworks*) 4793 echo $ac_n "checking size of int""... $ac_c" 1>&6 4794echo "configure:4795: checking size of int" >&5 4795if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then 4796 echo $ac_n "(cached) $ac_c" 1>&6 4797else 4798 if test "$cross_compiling" = yes; then 4799 ac_cv_sizeof_int=4 4800else 4801 cat > conftest.$ac_ext <<EOF 4802#line 4803 "configure" 4803#include "confdefs.h" 4804#include <stdio.h> 4805main() 4806{ 4807 FILE *f=fopen("conftestval", "w"); 4808 if (!f) exit(1); 4809 fprintf(f, "%d\n", sizeof(int)); 4810 exit(0); 4811} 4812EOF 4813if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4814then 4815 ac_cv_sizeof_int=`cat conftestval` 4816else 4817 echo "configure: failed program was:" >&5 4818 cat conftest.$ac_ext >&5 4819 rm -fr conftest* 4820 ac_cv_sizeof_int=0 4821fi 4822rm -fr conftest* 4823fi 4824 4825fi 4826echo "$ac_t""$ac_cv_sizeof_int" 1>&6 4827cat >> confdefs.h <<EOF 4828#define SIZEOF_INT $ac_cv_sizeof_int 4829EOF 4830 4831 4832 ;; 4833 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_INT" 1>&2; exit 1; } 4834 ;; 4835 esac 4836 ;; 4837esac 4838 4839case "$host" in 4840 $target) 4841 echo $ac_n "checking size of long""... $ac_c" 1>&6 4842echo "configure:4843: checking size of long" >&5 4843if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then 4844 echo $ac_n "(cached) $ac_c" 1>&6 4845else 4846 if test "$cross_compiling" = yes; then 4847 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4848else 4849 cat > conftest.$ac_ext <<EOF 4850#line 4851 "configure" 4851#include "confdefs.h" 4852#include <stdio.h> 4853main() 4854{ 4855 FILE *f=fopen("conftestval", "w"); 4856 if (!f) exit(1); 4857 fprintf(f, "%d\n", sizeof(long)); 4858 exit(0); 4859} 4860EOF 4861if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4862then 4863 ac_cv_sizeof_long=`cat conftestval` 4864else 4865 echo "configure: failed program was:" >&5 4866 cat conftest.$ac_ext >&5 4867 rm -fr conftest* 4868 ac_cv_sizeof_long=0 4869fi 4870rm -fr conftest* 4871fi 4872 4873fi 4874echo "$ac_t""$ac_cv_sizeof_long" 1>&6 4875cat >> confdefs.h <<EOF 4876#define SIZEOF_LONG $ac_cv_sizeof_long 4877EOF 4878 4879 4880 ;; 4881 *) case "$target" in 4882 *-*-vxworks*) 4883 echo $ac_n "checking size of long""... $ac_c" 1>&6 4884echo "configure:4885: checking size of long" >&5 4885if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then 4886 echo $ac_n "(cached) $ac_c" 1>&6 4887else 4888 if test "$cross_compiling" = yes; then 4889 ac_cv_sizeof_long=4 4890else 4891 cat > conftest.$ac_ext <<EOF 4892#line 4893 "configure" 4893#include "confdefs.h" 4894#include <stdio.h> 4895main() 4896{ 4897 FILE *f=fopen("conftestval", "w"); 4898 if (!f) exit(1); 4899 fprintf(f, "%d\n", sizeof(long)); 4900 exit(0); 4901} 4902EOF 4903if { (eval echo configure:4904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4904then 4905 ac_cv_sizeof_long=`cat conftestval` 4906else 4907 echo "configure: failed program was:" >&5 4908 cat conftest.$ac_ext >&5 4909 rm -fr conftest* 4910 ac_cv_sizeof_long=0 4911fi 4912rm -fr conftest* 4913fi 4914 4915fi 4916echo "$ac_t""$ac_cv_sizeof_long" 1>&6 4917cat >> confdefs.h <<EOF 4918#define SIZEOF_LONG $ac_cv_sizeof_long 4919EOF 4920 4921 4922 ;; 4923 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_LONG" 1>&2; exit 1; } 4924 ;; 4925 esac 4926 ;; 4927esac 4928 4929echo $ac_n "checking for s_char""... $ac_c" 1>&6 4930echo "configure:4931: checking for s_char" >&5 4931if eval "test \"\${ac_cv_type_s_char+set}\" = set"; then 4932 echo $ac_n "(cached) $ac_c" 1>&6 4933else 4934 cat > conftest.$ac_ext <<EOF 4935#line 4936 "configure" 4936#include "confdefs.h" 4937#include <sys/types.h> 4938#if STDC_HEADERS 4939#include <stdlib.h> 4940#include <stddef.h> 4941#endif 4942EOF 4943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4944 egrep "(^|[^a-zA-Z_0-9])s_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then 4945 rm -rf conftest* 4946 eval "ac_cv_type_s_char=yes" 4947else 4948 rm -rf conftest* 4949 eval "ac_cv_type_s_char=no" 4950fi 4951rm -f conftest* 4952 4953fi 4954if eval "test \"`echo '$ac_cv_type_'s_char`\" = yes"; then 4955 echo "$ac_t""yes" 1>&6 4956else 4957 echo "$ac_t""no" 1>&6 4958 cat >> confdefs.h <<EOF 4959#define s_char signed char 4960EOF 4961 4962fi 4963 4964case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 4965 *yes) 4966 # We have a typedef for s_char. Might as well believe it... 4967 ;; 4968 no0no) 4969 # We have signed chars, can't say 'signed char', no s_char typedef. 4970 cat >> confdefs.h <<\EOF 4971#define NEED_S_CHAR_TYPEDEF 1 4972EOF 4973 4974 ;; 4975 no1no) 4976 # We have signed chars, can say 'signed char', no s_char typedef. 4977 cat >> confdefs.h <<\EOF 4978#define NEED_S_CHAR_TYPEDEF 1 4979EOF 4980 4981 ;; 4982 yes0no) 4983 # We have unsigned chars, can't say 'signed char', no s_char typedef. 4984 { echo "configure: error: No way to specify a signed character!" 1>&2; exit 1; } 4985 ;; 4986 yes1no) 4987 # We have unsigned chars, can say 'signed char', no s_char typedef. 4988 cat >> confdefs.h <<\EOF 4989#define NEED_S_CHAR_TYPEDEF 1 4990EOF 4991 4992 ;; 4993esac 4994echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 4995echo "configure:4996: checking for uid_t in sys/types.h" >&5 4996if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then 4997 echo $ac_n "(cached) $ac_c" 1>&6 4998else 4999 cat > conftest.$ac_ext <<EOF 5000#line 5001 "configure" 5001#include "confdefs.h" 5002#include <sys/types.h> 5003EOF 5004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5005 egrep "uid_t" >/dev/null 2>&1; then 5006 rm -rf conftest* 5007 ac_cv_type_uid_t=yes 5008else 5009 rm -rf conftest* 5010 ac_cv_type_uid_t=no 5011fi 5012rm -f conftest* 5013 5014fi 5015 5016echo "$ac_t""$ac_cv_type_uid_t" 1>&6 5017if test $ac_cv_type_uid_t = no; then 5018 cat >> confdefs.h <<\EOF 5019#define uid_t int 5020EOF 5021 5022 cat >> confdefs.h <<\EOF 5023#define gid_t int 5024EOF 5025 5026fi 5027 5028 5029case "$target" in 5030 *-*-linux*) 5031 for ac_func in __adjtimex __ntp_gettime 5032do 5033echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5034echo "configure:5035: checking for $ac_func" >&5 5035if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5036 echo $ac_n "(cached) $ac_c" 1>&6 5037else 5038 cat > conftest.$ac_ext <<EOF 5039#line 5040 "configure" 5040#include "confdefs.h" 5041/* System header to define __stub macros and hopefully few prototypes, 5042 which can conflict with char $ac_func(); below. */ 5043#include <assert.h> 5044/* Override any gcc2 internal prototype to avoid an error. */ 5045/* We use char because int might match the return type of a gcc2 5046 builtin and then its argument prototype would still apply. */ 5047char $ac_func(); 5048char (*f)(); 5049 5050int main() { 5051 5052/* The GNU C library defines this for functions which it implements 5053 to always fail with ENOSYS. Some functions are actually named 5054 something starting with __ and the normal name is an alias. */ 5055#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5056choke me 5057#else 5058f = $ac_func; 5059#endif 5060 5061; return 0; } 5062EOF 5063if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5064 rm -rf conftest* 5065 eval "ac_cv_func_$ac_func=yes" 5066else 5067 echo "configure: failed program was:" >&5 5068 cat conftest.$ac_ext >&5 5069 rm -rf conftest* 5070 eval "ac_cv_func_$ac_func=no" 5071fi 5072rm -f conftest* 5073fi 5074 5075if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5076 echo "$ac_t""yes" 1>&6 5077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5078 cat >> confdefs.h <<EOF 5079#define $ac_tr_func 1 5080EOF 5081 5082else 5083 echo "$ac_t""no" 1>&6 5084fi 5085done 5086 5087 ;; 5088esac 5089case "$target" in 5090 *-*-aix4*) 5091 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 5092 # (returning ENOSYS). I didn't check 4.2. If, in the future, 5093 # IBM pulls its thumbs out long enough to implement clock_settime, 5094 # this conditional will need to change. Maybe use AC_TRY_RUN 5095 # instead to try to set the time to itself and check errno. 5096 ;; 5097 *) for ac_func in clock_settime 5098do 5099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5100echo "configure:5101: checking for $ac_func" >&5 5101if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5102 echo $ac_n "(cached) $ac_c" 1>&6 5103else 5104 cat > conftest.$ac_ext <<EOF 5105#line 5106 "configure" 5106#include "confdefs.h" 5107/* System header to define __stub macros and hopefully few prototypes, 5108 which can conflict with char $ac_func(); below. */ 5109#include <assert.h> 5110/* Override any gcc2 internal prototype to avoid an error. */ 5111/* We use char because int might match the return type of a gcc2 5112 builtin and then its argument prototype would still apply. */ 5113char $ac_func(); 5114char (*f)(); 5115 5116int main() { 5117 5118/* The GNU C library defines this for functions which it implements 5119 to always fail with ENOSYS. Some functions are actually named 5120 something starting with __ and the normal name is an alias. */ 5121#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5122choke me 5123#else 5124f = $ac_func; 5125#endif 5126 5127; return 0; } 5128EOF 5129if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5130 rm -rf conftest* 5131 eval "ac_cv_func_$ac_func=yes" 5132else 5133 echo "configure: failed program was:" >&5 5134 cat conftest.$ac_ext >&5 5135 rm -rf conftest* 5136 eval "ac_cv_func_$ac_func=no" 5137fi 5138rm -f conftest* 5139fi 5140 5141if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5142 echo "$ac_t""yes" 1>&6 5143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5144 cat >> confdefs.h <<EOF 5145#define $ac_tr_func 1 5146EOF 5147 5148else 5149 echo "$ac_t""no" 1>&6 5150fi 5151done 5152 5153 ;; 5154esac 5155for ac_func in daemon getbootfile getdtablesize getrusage 5156do 5157echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5158echo "configure:5159: checking for $ac_func" >&5 5159if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5160 echo $ac_n "(cached) $ac_c" 1>&6 5161else 5162 cat > conftest.$ac_ext <<EOF 5163#line 5164 "configure" 5164#include "confdefs.h" 5165/* System header to define __stub macros and hopefully few prototypes, 5166 which can conflict with char $ac_func(); below. */ 5167#include <assert.h> 5168/* Override any gcc2 internal prototype to avoid an error. */ 5169/* We use char because int might match the return type of a gcc2 5170 builtin and then its argument prototype would still apply. */ 5171char $ac_func(); 5172char (*f)(); 5173 5174int main() { 5175 5176/* The GNU C library defines this for functions which it implements 5177 to always fail with ENOSYS. Some functions are actually named 5178 something starting with __ and the normal name is an alias. */ 5179#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5180choke me 5181#else 5182f = $ac_func; 5183#endif 5184 5185; return 0; } 5186EOF 5187if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5188 rm -rf conftest* 5189 eval "ac_cv_func_$ac_func=yes" 5190else 5191 echo "configure: failed program was:" >&5 5192 cat conftest.$ac_ext >&5 5193 rm -rf conftest* 5194 eval "ac_cv_func_$ac_func=no" 5195fi 5196rm -f conftest* 5197fi 5198 5199if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5200 echo "$ac_t""yes" 1>&6 5201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5202 cat >> confdefs.h <<EOF 5203#define $ac_tr_func 1 5204EOF 5205 5206else 5207 echo "$ac_t""no" 1>&6 5208fi 5209done 5210 5211for ac_func in gettimeofday 5212do 5213echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5214echo "configure:5215: checking for $ac_func" >&5 5215if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5216 echo $ac_n "(cached) $ac_c" 1>&6 5217else 5218 cat > conftest.$ac_ext <<EOF 5219#line 5220 "configure" 5220#include "confdefs.h" 5221/* System header to define __stub macros and hopefully few prototypes, 5222 which can conflict with char $ac_func(); below. */ 5223#include <assert.h> 5224/* Override any gcc2 internal prototype to avoid an error. */ 5225/* We use char because int might match the return type of a gcc2 5226 builtin and then its argument prototype would still apply. */ 5227char $ac_func(); 5228char (*f)(); 5229 5230int main() { 5231 5232/* The GNU C library defines this for functions which it implements 5233 to always fail with ENOSYS. Some functions are actually named 5234 something starting with __ and the normal name is an alias. */ 5235#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5236choke me 5237#else 5238f = $ac_func; 5239#endif 5240 5241; return 0; } 5242EOF 5243if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5244 rm -rf conftest* 5245 eval "ac_cv_func_$ac_func=yes" 5246else 5247 echo "configure: failed program was:" >&5 5248 cat conftest.$ac_ext >&5 5249 rm -rf conftest* 5250 eval "ac_cv_func_$ac_func=no" 5251fi 5252rm -f conftest* 5253fi 5254 5255if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5256 echo "$ac_t""yes" 1>&6 5257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5258 cat >> confdefs.h <<EOF 5259#define $ac_tr_func 1 5260EOF 5261 5262else 5263 echo "$ac_t""no" 1>&6 5264fi 5265done 5266 5267case "$target" in 5268 *-pc-cygwin*) 5269 ;; 5270 *) for ac_func in getuid 5271do 5272echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5273echo "configure:5274: checking for $ac_func" >&5 5274if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5275 echo $ac_n "(cached) $ac_c" 1>&6 5276else 5277 cat > conftest.$ac_ext <<EOF 5278#line 5279 "configure" 5279#include "confdefs.h" 5280/* System header to define __stub macros and hopefully few prototypes, 5281 which can conflict with char $ac_func(); below. */ 5282#include <assert.h> 5283/* Override any gcc2 internal prototype to avoid an error. */ 5284/* We use char because int might match the return type of a gcc2 5285 builtin and then its argument prototype would still apply. */ 5286char $ac_func(); 5287char (*f)(); 5288 5289int main() { 5290 5291/* The GNU C library defines this for functions which it implements 5292 to always fail with ENOSYS. Some functions are actually named 5293 something starting with __ and the normal name is an alias. */ 5294#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5295choke me 5296#else 5297f = $ac_func; 5298#endif 5299 5300; return 0; } 5301EOF 5302if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5303 rm -rf conftest* 5304 eval "ac_cv_func_$ac_func=yes" 5305else 5306 echo "configure: failed program was:" >&5 5307 cat conftest.$ac_ext >&5 5308 rm -rf conftest* 5309 eval "ac_cv_func_$ac_func=no" 5310fi 5311rm -f conftest* 5312fi 5313 5314if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5315 echo "$ac_t""yes" 1>&6 5316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5317 cat >> confdefs.h <<EOF 5318#define $ac_tr_func 1 5319EOF 5320 5321else 5322 echo "$ac_t""no" 1>&6 5323fi 5324done 5325 5326 ;; 5327esac 5328for ac_func in K_open kvm_open memcpy memmove memset 5329do 5330echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5331echo "configure:5332: checking for $ac_func" >&5 5332if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5333 echo $ac_n "(cached) $ac_c" 1>&6 5334else 5335 cat > conftest.$ac_ext <<EOF 5336#line 5337 "configure" 5337#include "confdefs.h" 5338/* System header to define __stub macros and hopefully few prototypes, 5339 which can conflict with char $ac_func(); below. */ 5340#include <assert.h> 5341/* Override any gcc2 internal prototype to avoid an error. */ 5342/* We use char because int might match the return type of a gcc2 5343 builtin and then its argument prototype would still apply. */ 5344char $ac_func(); 5345char (*f)(); 5346 5347int main() { 5348 5349/* The GNU C library defines this for functions which it implements 5350 to always fail with ENOSYS. Some functions are actually named 5351 something starting with __ and the normal name is an alias. */ 5352#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5353choke me 5354#else 5355f = $ac_func; 5356#endif 5357 5358; return 0; } 5359EOF 5360if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5361 rm -rf conftest* 5362 eval "ac_cv_func_$ac_func=yes" 5363else 5364 echo "configure: failed program was:" >&5 5365 cat conftest.$ac_ext >&5 5366 rm -rf conftest* 5367 eval "ac_cv_func_$ac_func=no" 5368fi 5369rm -f conftest* 5370fi 5371 5372if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5373 echo "$ac_t""yes" 1>&6 5374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5375 cat >> confdefs.h <<EOF 5376#define $ac_tr_func 1 5377EOF 5378 5379else 5380 echo "$ac_t""no" 1>&6 5381fi 5382done 5383 5384case "$target" in 5385 *-*-sco3.2v5.0.*) 5386 # Just stubs. Idiots. 5387 ;; 5388 *) for ac_func in mkstemp 5389do 5390echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5391echo "configure:5392: checking for $ac_func" >&5 5392if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5393 echo $ac_n "(cached) $ac_c" 1>&6 5394else 5395 cat > conftest.$ac_ext <<EOF 5396#line 5397 "configure" 5397#include "confdefs.h" 5398/* System header to define __stub macros and hopefully few prototypes, 5399 which can conflict with char $ac_func(); below. */ 5400#include <assert.h> 5401/* Override any gcc2 internal prototype to avoid an error. */ 5402/* We use char because int might match the return type of a gcc2 5403 builtin and then its argument prototype would still apply. */ 5404char $ac_func(); 5405char (*f)(); 5406 5407int main() { 5408 5409/* The GNU C library defines this for functions which it implements 5410 to always fail with ENOSYS. Some functions are actually named 5411 something starting with __ and the normal name is an alias. */ 5412#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5413choke me 5414#else 5415f = $ac_func; 5416#endif 5417 5418; return 0; } 5419EOF 5420if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5421 rm -rf conftest* 5422 eval "ac_cv_func_$ac_func=yes" 5423else 5424 echo "configure: failed program was:" >&5 5425 cat conftest.$ac_ext >&5 5426 rm -rf conftest* 5427 eval "ac_cv_func_$ac_func=no" 5428fi 5429rm -f conftest* 5430fi 5431 5432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5433 echo "$ac_t""yes" 1>&6 5434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5435 cat >> confdefs.h <<EOF 5436#define $ac_tr_func 1 5437EOF 5438 5439else 5440 echo "$ac_t""no" 1>&6 5441fi 5442done 5443 5444 ;; 5445esac 5446for ac_func in mktime 5447do 5448echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5449echo "configure:5450: checking for $ac_func" >&5 5450if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5451 echo $ac_n "(cached) $ac_c" 1>&6 5452else 5453 cat > conftest.$ac_ext <<EOF 5454#line 5455 "configure" 5455#include "confdefs.h" 5456/* System header to define __stub macros and hopefully few prototypes, 5457 which can conflict with char $ac_func(); below. */ 5458#include <assert.h> 5459/* Override any gcc2 internal prototype to avoid an error. */ 5460/* We use char because int might match the return type of a gcc2 5461 builtin and then its argument prototype would still apply. */ 5462char $ac_func(); 5463char (*f)(); 5464 5465int main() { 5466 5467/* The GNU C library defines this for functions which it implements 5468 to always fail with ENOSYS. Some functions are actually named 5469 something starting with __ and the normal name is an alias. */ 5470#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5471choke me 5472#else 5473f = $ac_func; 5474#endif 5475 5476; return 0; } 5477EOF 5478if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5479 rm -rf conftest* 5480 eval "ac_cv_func_$ac_func=yes" 5481else 5482 echo "configure: failed program was:" >&5 5483 cat conftest.$ac_ext >&5 5484 rm -rf conftest* 5485 eval "ac_cv_func_$ac_func=no" 5486fi 5487rm -f conftest* 5488fi 5489 5490if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5491 echo "$ac_t""yes" 1>&6 5492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5493 cat >> confdefs.h <<EOF 5494#define $ac_tr_func 1 5495EOF 5496 5497else 5498 echo "$ac_t""no" 1>&6 5499LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 5500fi 5501done 5502 5503 5504case "$target" in 5505 *-*-aix4*) 5506 # Just a stub. Idiots. 5507 ;; 5508 *-*-irix*) 5509 # Just stubs in Irix. Idiots. 5510 ;; 5511 *-*-sco3.2v5.0.*) 5512 # Just stubs. Idiots. 5513 ;; 5514 alpha*-dec-osf4*|alpha*-dec-osf5*) 5515 # mlockall is there, as a #define calling memlk via <sys/mman.h> 5516 # Not easy to test for - cheat. 5517 for ac_func in memlk 5518do 5519echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5520echo "configure:5521: checking for $ac_func" >&5 5521if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5522 echo $ac_n "(cached) $ac_c" 1>&6 5523else 5524 cat > conftest.$ac_ext <<EOF 5525#line 5526 "configure" 5526#include "confdefs.h" 5527/* System header to define __stub macros and hopefully few prototypes, 5528 which can conflict with char $ac_func(); below. */ 5529#include <assert.h> 5530/* Override any gcc2 internal prototype to avoid an error. */ 5531/* We use char because int might match the return type of a gcc2 5532 builtin and then its argument prototype would still apply. */ 5533char $ac_func(); 5534char (*f)(); 5535 5536int main() { 5537 5538/* The GNU C library defines this for functions which it implements 5539 to always fail with ENOSYS. Some functions are actually named 5540 something starting with __ and the normal name is an alias. */ 5541#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5542choke me 5543#else 5544f = $ac_func; 5545#endif 5546 5547; return 0; } 5548EOF 5549if { (eval echo configure:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5550 rm -rf conftest* 5551 eval "ac_cv_func_$ac_func=yes" 5552else 5553 echo "configure: failed program was:" >&5 5554 cat conftest.$ac_ext >&5 5555 rm -rf conftest* 5556 eval "ac_cv_func_$ac_func=no" 5557fi 5558rm -f conftest* 5559fi 5560 5561if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5562 echo "$ac_t""yes" 1>&6 5563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5564 cat >> confdefs.h <<EOF 5565#define $ac_tr_func 1 5566EOF 5567 ac_cv_func_mlockall='yes' 5568else 5569 echo "$ac_t""no" 1>&6 5570fi 5571done 5572 5573 for ac_func in mlockall 5574do 5575echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5576echo "configure:5577: checking for $ac_func" >&5 5577if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5578 echo $ac_n "(cached) $ac_c" 1>&6 5579else 5580 cat > conftest.$ac_ext <<EOF 5581#line 5582 "configure" 5582#include "confdefs.h" 5583/* System header to define __stub macros and hopefully few prototypes, 5584 which can conflict with char $ac_func(); below. */ 5585#include <assert.h> 5586/* Override any gcc2 internal prototype to avoid an error. */ 5587/* We use char because int might match the return type of a gcc2 5588 builtin and then its argument prototype would still apply. */ 5589char $ac_func(); 5590char (*f)(); 5591 5592int main() { 5593 5594/* The GNU C library defines this for functions which it implements 5595 to always fail with ENOSYS. Some functions are actually named 5596 something starting with __ and the normal name is an alias. */ 5597#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5598choke me 5599#else 5600f = $ac_func; 5601#endif 5602 5603; return 0; } 5604EOF 5605if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5606 rm -rf conftest* 5607 eval "ac_cv_func_$ac_func=yes" 5608else 5609 echo "configure: failed program was:" >&5 5610 cat conftest.$ac_ext >&5 5611 rm -rf conftest* 5612 eval "ac_cv_func_$ac_func=no" 5613fi 5614rm -f conftest* 5615fi 5616 5617if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5618 echo "$ac_t""yes" 1>&6 5619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5620 cat >> confdefs.h <<EOF 5621#define $ac_tr_func 1 5622EOF 5623 5624else 5625 echo "$ac_t""no" 1>&6 5626fi 5627done 5628 5629 ;; 5630 *) for ac_func in mlockall 5631do 5632echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5633echo "configure:5634: checking for $ac_func" >&5 5634if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5635 echo $ac_n "(cached) $ac_c" 1>&6 5636else 5637 cat > conftest.$ac_ext <<EOF 5638#line 5639 "configure" 5639#include "confdefs.h" 5640/* System header to define __stub macros and hopefully few prototypes, 5641 which can conflict with char $ac_func(); below. */ 5642#include <assert.h> 5643/* Override any gcc2 internal prototype to avoid an error. */ 5644/* We use char because int might match the return type of a gcc2 5645 builtin and then its argument prototype would still apply. */ 5646char $ac_func(); 5647char (*f)(); 5648 5649int main() { 5650 5651/* The GNU C library defines this for functions which it implements 5652 to always fail with ENOSYS. Some functions are actually named 5653 something starting with __ and the normal name is an alias. */ 5654#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5655choke me 5656#else 5657f = $ac_func; 5658#endif 5659 5660; return 0; } 5661EOF 5662if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5663 rm -rf conftest* 5664 eval "ac_cv_func_$ac_func=yes" 5665else 5666 echo "configure: failed program was:" >&5 5667 cat conftest.$ac_ext >&5 5668 rm -rf conftest* 5669 eval "ac_cv_func_$ac_func=no" 5670fi 5671rm -f conftest* 5672fi 5673 5674if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5675 echo "$ac_t""yes" 1>&6 5676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5677 cat >> confdefs.h <<EOF 5678#define $ac_tr_func 1 5679EOF 5680 5681else 5682 echo "$ac_t""no" 1>&6 5683fi 5684done 5685 5686 ;; 5687esac 5688for ac_func in nice nlist 5689do 5690echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5691echo "configure:5692: checking for $ac_func" >&5 5692if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5693 echo $ac_n "(cached) $ac_c" 1>&6 5694else 5695 cat > conftest.$ac_ext <<EOF 5696#line 5697 "configure" 5697#include "confdefs.h" 5698/* System header to define __stub macros and hopefully few prototypes, 5699 which can conflict with char $ac_func(); below. */ 5700#include <assert.h> 5701/* Override any gcc2 internal prototype to avoid an error. */ 5702/* We use char because int might match the return type of a gcc2 5703 builtin and then its argument prototype would still apply. */ 5704char $ac_func(); 5705char (*f)(); 5706 5707int main() { 5708 5709/* The GNU C library defines this for functions which it implements 5710 to always fail with ENOSYS. Some functions are actually named 5711 something starting with __ and the normal name is an alias. */ 5712#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5713choke me 5714#else 5715f = $ac_func; 5716#endif 5717 5718; return 0; } 5719EOF 5720if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5721 rm -rf conftest* 5722 eval "ac_cv_func_$ac_func=yes" 5723else 5724 echo "configure: failed program was:" >&5 5725 cat conftest.$ac_ext >&5 5726 rm -rf conftest* 5727 eval "ac_cv_func_$ac_func=no" 5728fi 5729rm -f conftest* 5730fi 5731 5732if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5733 echo "$ac_t""yes" 1>&6 5734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5735 cat >> confdefs.h <<EOF 5736#define $ac_tr_func 1 5737EOF 5738 5739else 5740 echo "$ac_t""no" 1>&6 5741fi 5742done 5743 5744case "$target" in 5745 *-*-solaris2.6) 5746 # Broken... 5747 ;; 5748 *) for ac_func in ntp_adjtime ntp_gettime 5749do 5750echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5751echo "configure:5752: checking for $ac_func" >&5 5752if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5753 echo $ac_n "(cached) $ac_c" 1>&6 5754else 5755 cat > conftest.$ac_ext <<EOF 5756#line 5757 "configure" 5757#include "confdefs.h" 5758/* System header to define __stub macros and hopefully few prototypes, 5759 which can conflict with char $ac_func(); below. */ 5760#include <assert.h> 5761/* Override any gcc2 internal prototype to avoid an error. */ 5762/* We use char because int might match the return type of a gcc2 5763 builtin and then its argument prototype would still apply. */ 5764char $ac_func(); 5765char (*f)(); 5766 5767int main() { 5768 5769/* The GNU C library defines this for functions which it implements 5770 to always fail with ENOSYS. Some functions are actually named 5771 something starting with __ and the normal name is an alias. */ 5772#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5773choke me 5774#else 5775f = $ac_func; 5776#endif 5777 5778; return 0; } 5779EOF 5780if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5781 rm -rf conftest* 5782 eval "ac_cv_func_$ac_func=yes" 5783else 5784 echo "configure: failed program was:" >&5 5785 cat conftest.$ac_ext >&5 5786 rm -rf conftest* 5787 eval "ac_cv_func_$ac_func=no" 5788fi 5789rm -f conftest* 5790fi 5791 5792if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5793 echo "$ac_t""yes" 1>&6 5794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5795 cat >> confdefs.h <<EOF 5796#define $ac_tr_func 1 5797EOF 5798 5799else 5800 echo "$ac_t""no" 1>&6 5801fi 5802done 5803 5804 ;; 5805esac 5806for ac_func in plock pututline pututxline rtprio 5807do 5808echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5809echo "configure:5810: checking for $ac_func" >&5 5810if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5811 echo $ac_n "(cached) $ac_c" 1>&6 5812else 5813 cat > conftest.$ac_ext <<EOF 5814#line 5815 "configure" 5815#include "confdefs.h" 5816/* System header to define __stub macros and hopefully few prototypes, 5817 which can conflict with char $ac_func(); below. */ 5818#include <assert.h> 5819/* Override any gcc2 internal prototype to avoid an error. */ 5820/* We use char because int might match the return type of a gcc2 5821 builtin and then its argument prototype would still apply. */ 5822char $ac_func(); 5823char (*f)(); 5824 5825int main() { 5826 5827/* The GNU C library defines this for functions which it implements 5828 to always fail with ENOSYS. Some functions are actually named 5829 something starting with __ and the normal name is an alias. */ 5830#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5831choke me 5832#else 5833f = $ac_func; 5834#endif 5835 5836; return 0; } 5837EOF 5838if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5839 rm -rf conftest* 5840 eval "ac_cv_func_$ac_func=yes" 5841else 5842 echo "configure: failed program was:" >&5 5843 cat conftest.$ac_ext >&5 5844 rm -rf conftest* 5845 eval "ac_cv_func_$ac_func=no" 5846fi 5847rm -f conftest* 5848fi 5849 5850if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5851 echo "$ac_t""yes" 1>&6 5852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5853 cat >> confdefs.h <<EOF 5854#define $ac_tr_func 1 5855EOF 5856 5857else 5858 echo "$ac_t""no" 1>&6 5859fi 5860done 5861 5862for ac_func in random srandom mrand48 srand48 5863do 5864echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5865echo "configure:5866: checking for $ac_func" >&5 5866if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5867 echo $ac_n "(cached) $ac_c" 1>&6 5868else 5869 cat > conftest.$ac_ext <<EOF 5870#line 5871 "configure" 5871#include "confdefs.h" 5872/* System header to define __stub macros and hopefully few prototypes, 5873 which can conflict with char $ac_func(); below. */ 5874#include <assert.h> 5875/* Override any gcc2 internal prototype to avoid an error. */ 5876/* We use char because int might match the return type of a gcc2 5877 builtin and then its argument prototype would still apply. */ 5878char $ac_func(); 5879char (*f)(); 5880 5881int main() { 5882 5883/* The GNU C library defines this for functions which it implements 5884 to always fail with ENOSYS. Some functions are actually named 5885 something starting with __ and the normal name is an alias. */ 5886#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5887choke me 5888#else 5889f = $ac_func; 5890#endif 5891 5892; return 0; } 5893EOF 5894if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5895 rm -rf conftest* 5896 eval "ac_cv_func_$ac_func=yes" 5897else 5898 echo "configure: failed program was:" >&5 5899 cat conftest.$ac_ext >&5 5900 rm -rf conftest* 5901 eval "ac_cv_func_$ac_func=no" 5902fi 5903rm -f conftest* 5904fi 5905 5906if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5907 echo "$ac_t""yes" 1>&6 5908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5909 cat >> confdefs.h <<EOF 5910#define $ac_tr_func 1 5911EOF 5912 5913else 5914 echo "$ac_t""no" 1>&6 5915fi 5916done 5917 5918case "$target" in 5919 *-*-aix4*) 5920 # Just a stub in AIX 4. Idiots. 5921 ;; 5922 *-*-solaris2.5*) 5923 # Just stubs in solaris2.5. Idiots. 5924 ;; 5925 *) for ac_func in sched_setscheduler 5926do 5927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5928echo "configure:5929: checking for $ac_func" >&5 5929if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5930 echo $ac_n "(cached) $ac_c" 1>&6 5931else 5932 cat > conftest.$ac_ext <<EOF 5933#line 5934 "configure" 5934#include "confdefs.h" 5935/* System header to define __stub macros and hopefully few prototypes, 5936 which can conflict with char $ac_func(); below. */ 5937#include <assert.h> 5938/* Override any gcc2 internal prototype to avoid an error. */ 5939/* We use char because int might match the return type of a gcc2 5940 builtin and then its argument prototype would still apply. */ 5941char $ac_func(); 5942char (*f)(); 5943 5944int main() { 5945 5946/* The GNU C library defines this for functions which it implements 5947 to always fail with ENOSYS. Some functions are actually named 5948 something starting with __ and the normal name is an alias. */ 5949#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5950choke me 5951#else 5952f = $ac_func; 5953#endif 5954 5955; return 0; } 5956EOF 5957if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5958 rm -rf conftest* 5959 eval "ac_cv_func_$ac_func=yes" 5960else 5961 echo "configure: failed program was:" >&5 5962 cat conftest.$ac_ext >&5 5963 rm -rf conftest* 5964 eval "ac_cv_func_$ac_func=no" 5965fi 5966rm -f conftest* 5967fi 5968 5969if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5970 echo "$ac_t""yes" 1>&6 5971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5972 cat >> confdefs.h <<EOF 5973#define $ac_tr_func 1 5974EOF 5975 5976else 5977 echo "$ac_t""no" 1>&6 5978fi 5979done 5980 5981 ;; 5982esac 5983for ac_func in setlinebuf 5984do 5985echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5986echo "configure:5987: checking for $ac_func" >&5 5987if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 5988 echo $ac_n "(cached) $ac_c" 1>&6 5989else 5990 cat > conftest.$ac_ext <<EOF 5991#line 5992 "configure" 5992#include "confdefs.h" 5993/* System header to define __stub macros and hopefully few prototypes, 5994 which can conflict with char $ac_func(); below. */ 5995#include <assert.h> 5996/* Override any gcc2 internal prototype to avoid an error. */ 5997/* We use char because int might match the return type of a gcc2 5998 builtin and then its argument prototype would still apply. */ 5999char $ac_func(); 6000char (*f)(); 6001 6002int main() { 6003 6004/* The GNU C library defines this for functions which it implements 6005 to always fail with ENOSYS. Some functions are actually named 6006 something starting with __ and the normal name is an alias. */ 6007#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6008choke me 6009#else 6010f = $ac_func; 6011#endif 6012 6013; return 0; } 6014EOF 6015if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6016 rm -rf conftest* 6017 eval "ac_cv_func_$ac_func=yes" 6018else 6019 echo "configure: failed program was:" >&5 6020 cat conftest.$ac_ext >&5 6021 rm -rf conftest* 6022 eval "ac_cv_func_$ac_func=no" 6023fi 6024rm -f conftest* 6025fi 6026 6027if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6028 echo "$ac_t""yes" 1>&6 6029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6030 cat >> confdefs.h <<EOF 6031#define $ac_tr_func 1 6032EOF 6033 6034else 6035 echo "$ac_t""no" 1>&6 6036fi 6037done 6038 6039for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction 6040do 6041echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6042echo "configure:6043: checking for $ac_func" >&5 6043if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 6044 echo $ac_n "(cached) $ac_c" 1>&6 6045else 6046 cat > conftest.$ac_ext <<EOF 6047#line 6048 "configure" 6048#include "confdefs.h" 6049/* System header to define __stub macros and hopefully few prototypes, 6050 which can conflict with char $ac_func(); below. */ 6051#include <assert.h> 6052/* Override any gcc2 internal prototype to avoid an error. */ 6053/* We use char because int might match the return type of a gcc2 6054 builtin and then its argument prototype would still apply. */ 6055char $ac_func(); 6056char (*f)(); 6057 6058int main() { 6059 6060/* The GNU C library defines this for functions which it implements 6061 to always fail with ENOSYS. Some functions are actually named 6062 something starting with __ and the normal name is an alias. */ 6063#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6064choke me 6065#else 6066f = $ac_func; 6067#endif 6068 6069; return 0; } 6070EOF 6071if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6072 rm -rf conftest* 6073 eval "ac_cv_func_$ac_func=yes" 6074else 6075 echo "configure: failed program was:" >&5 6076 cat conftest.$ac_ext >&5 6077 rm -rf conftest* 6078 eval "ac_cv_func_$ac_func=no" 6079fi 6080rm -f conftest* 6081fi 6082 6083if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6084 echo "$ac_t""yes" 1>&6 6085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6086 cat >> confdefs.h <<EOF 6087#define $ac_tr_func 1 6088EOF 6089 6090else 6091 echo "$ac_t""no" 1>&6 6092fi 6093done 6094 6095for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl 6096do 6097echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6098echo "configure:6099: checking for $ac_func" >&5 6099if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 6100 echo $ac_n "(cached) $ac_c" 1>&6 6101else 6102 cat > conftest.$ac_ext <<EOF 6103#line 6104 "configure" 6104#include "confdefs.h" 6105/* System header to define __stub macros and hopefully few prototypes, 6106 which can conflict with char $ac_func(); below. */ 6107#include <assert.h> 6108/* Override any gcc2 internal prototype to avoid an error. */ 6109/* We use char because int might match the return type of a gcc2 6110 builtin and then its argument prototype would still apply. */ 6111char $ac_func(); 6112char (*f)(); 6113 6114int main() { 6115 6116/* The GNU C library defines this for functions which it implements 6117 to always fail with ENOSYS. Some functions are actually named 6118 something starting with __ and the normal name is an alias. */ 6119#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6120choke me 6121#else 6122f = $ac_func; 6123#endif 6124 6125; return 0; } 6126EOF 6127if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6128 rm -rf conftest* 6129 eval "ac_cv_func_$ac_func=yes" 6130else 6131 echo "configure: failed program was:" >&5 6132 cat conftest.$ac_ext >&5 6133 rm -rf conftest* 6134 eval "ac_cv_func_$ac_func=no" 6135fi 6136rm -f conftest* 6137fi 6138 6139if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6140 echo "$ac_t""yes" 1>&6 6141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6142 cat >> confdefs.h <<EOF 6143#define $ac_tr_func 1 6144EOF 6145 6146else 6147 echo "$ac_t""no" 1>&6 6148fi 6149done 6150 6151for ac_func in strerror 6152do 6153echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6154echo "configure:6155: checking for $ac_func" >&5 6155if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 6156 echo $ac_n "(cached) $ac_c" 1>&6 6157else 6158 cat > conftest.$ac_ext <<EOF 6159#line 6160 "configure" 6160#include "confdefs.h" 6161/* System header to define __stub macros and hopefully few prototypes, 6162 which can conflict with char $ac_func(); below. */ 6163#include <assert.h> 6164/* Override any gcc2 internal prototype to avoid an error. */ 6165/* We use char because int might match the return type of a gcc2 6166 builtin and then its argument prototype would still apply. */ 6167char $ac_func(); 6168char (*f)(); 6169 6170int main() { 6171 6172/* The GNU C library defines this for functions which it implements 6173 to always fail with ENOSYS. Some functions are actually named 6174 something starting with __ and the normal name is an alias. */ 6175#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6176choke me 6177#else 6178f = $ac_func; 6179#endif 6180 6181; return 0; } 6182EOF 6183if { (eval echo configure:6184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6184 rm -rf conftest* 6185 eval "ac_cv_func_$ac_func=yes" 6186else 6187 echo "configure: failed program was:" >&5 6188 cat conftest.$ac_ext >&5 6189 rm -rf conftest* 6190 eval "ac_cv_func_$ac_func=no" 6191fi 6192rm -f conftest* 6193fi 6194 6195if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6196 echo "$ac_t""yes" 1>&6 6197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6198 cat >> confdefs.h <<EOF 6199#define $ac_tr_func 1 6200EOF 6201 6202else 6203 echo "$ac_t""no" 1>&6 6204LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 6205fi 6206done 6207 6208 6209case "$target" in 6210 *-*-aix4*) 6211 # Just stubs. Idiots. 6212 ;; 6213 *-*-netbsd*) 6214 # Just stubs. Idiots. 6215 ;; 6216 *-*-openbsd*) 6217 # Just stubs. Idiots. 6218 ;; 6219 *) for ac_func in timer_create timer_settime 6220do 6221echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6222echo "configure:6223: checking for $ac_func" >&5 6223if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 6224 echo $ac_n "(cached) $ac_c" 1>&6 6225else 6226 cat > conftest.$ac_ext <<EOF 6227#line 6228 "configure" 6228#include "confdefs.h" 6229/* System header to define __stub macros and hopefully few prototypes, 6230 which can conflict with char $ac_func(); below. */ 6231#include <assert.h> 6232/* Override any gcc2 internal prototype to avoid an error. */ 6233/* We use char because int might match the return type of a gcc2 6234 builtin and then its argument prototype would still apply. */ 6235char $ac_func(); 6236char (*f)(); 6237 6238int main() { 6239 6240/* The GNU C library defines this for functions which it implements 6241 to always fail with ENOSYS. Some functions are actually named 6242 something starting with __ and the normal name is an alias. */ 6243#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6244choke me 6245#else 6246f = $ac_func; 6247#endif 6248 6249; return 0; } 6250EOF 6251if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6252 rm -rf conftest* 6253 eval "ac_cv_func_$ac_func=yes" 6254else 6255 echo "configure: failed program was:" >&5 6256 cat conftest.$ac_ext >&5 6257 rm -rf conftest* 6258 eval "ac_cv_func_$ac_func=no" 6259fi 6260rm -f conftest* 6261fi 6262 6263if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6264 echo "$ac_t""yes" 1>&6 6265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6266 cat >> confdefs.h <<EOF 6267#define $ac_tr_func 1 6268EOF 6269 6270else 6271 echo "$ac_t""no" 1>&6 6272fi 6273done 6274 6275 ;; 6276esac 6277case "$target" in 6278 *-pc-cygwin*) 6279 # I have no idea... 6280 ;; 6281 *) for ac_func in umask 6282do 6283echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6284echo "configure:6285: checking for $ac_func" >&5 6285if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 6286 echo $ac_n "(cached) $ac_c" 1>&6 6287else 6288 cat > conftest.$ac_ext <<EOF 6289#line 6290 "configure" 6290#include "confdefs.h" 6291/* System header to define __stub macros and hopefully few prototypes, 6292 which can conflict with char $ac_func(); below. */ 6293#include <assert.h> 6294/* Override any gcc2 internal prototype to avoid an error. */ 6295/* We use char because int might match the return type of a gcc2 6296 builtin and then its argument prototype would still apply. */ 6297char $ac_func(); 6298char (*f)(); 6299 6300int main() { 6301 6302/* The GNU C library defines this for functions which it implements 6303 to always fail with ENOSYS. Some functions are actually named 6304 something starting with __ and the normal name is an alias. */ 6305#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6306choke me 6307#else 6308f = $ac_func; 6309#endif 6310 6311; return 0; } 6312EOF 6313if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6314 rm -rf conftest* 6315 eval "ac_cv_func_$ac_func=yes" 6316else 6317 echo "configure: failed program was:" >&5 6318 cat conftest.$ac_ext >&5 6319 rm -rf conftest* 6320 eval "ac_cv_func_$ac_func=no" 6321fi 6322rm -f conftest* 6323fi 6324 6325if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6326 echo "$ac_t""yes" 1>&6 6327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6328 cat >> confdefs.h <<EOF 6329#define $ac_tr_func 1 6330EOF 6331 6332else 6333 echo "$ac_t""no" 1>&6 6334fi 6335done 6336 6337 ;; 6338esac 6339for ac_func in uname updwtmp updwtmpx vsprintf 6340do 6341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6342echo "configure:6343: checking for $ac_func" >&5 6343if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 6344 echo $ac_n "(cached) $ac_c" 1>&6 6345else 6346 cat > conftest.$ac_ext <<EOF 6347#line 6348 "configure" 6348#include "confdefs.h" 6349/* System header to define __stub macros and hopefully few prototypes, 6350 which can conflict with char $ac_func(); below. */ 6351#include <assert.h> 6352/* Override any gcc2 internal prototype to avoid an error. */ 6353/* We use char because int might match the return type of a gcc2 6354 builtin and then its argument prototype would still apply. */ 6355char $ac_func(); 6356char (*f)(); 6357 6358int main() { 6359 6360/* The GNU C library defines this for functions which it implements 6361 to always fail with ENOSYS. Some functions are actually named 6362 something starting with __ and the normal name is an alias. */ 6363#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6364choke me 6365#else 6366f = $ac_func; 6367#endif 6368 6369; return 0; } 6370EOF 6371if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6372 rm -rf conftest* 6373 eval "ac_cv_func_$ac_func=yes" 6374else 6375 echo "configure: failed program was:" >&5 6376 cat conftest.$ac_ext >&5 6377 rm -rf conftest* 6378 eval "ac_cv_func_$ac_func=no" 6379fi 6380rm -f conftest* 6381fi 6382 6383if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 6384 echo "$ac_t""yes" 1>&6 6385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 6386 cat >> confdefs.h <<EOF 6387#define $ac_tr_func 1 6388EOF 6389 6390else 6391 echo "$ac_t""no" 1>&6 6392fi 6393done 6394 6395 6396echo $ac_n "checking number of arguments to gettimeofday()""... $ac_c" 1>&6 6397echo "configure:6398: checking number of arguments to gettimeofday()" >&5 6398if eval "test \"\${ac_cv_func_Xettimeofday_nargs+set}\" = set"; then 6399 echo $ac_n "(cached) $ac_c" 1>&6 6400else 6401 cat > conftest.$ac_ext <<EOF 6402#line 6403 "configure" 6403#include "confdefs.h" 6404#include <sys/time.h> 6405int main() { 6406 6407gettimeofday((struct timeval*)0,(struct timezone*)0); 6408settimeofday((struct timeval*)0,(struct timezone*)0); 6409 6410; return 0; } 6411EOF 6412if { (eval echo configure:6413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6413 rm -rf conftest* 6414 ac_cv_func_Xettimeofday_nargs=2 6415else 6416 echo "configure: failed program was:" >&5 6417 cat conftest.$ac_ext >&5 6418 rm -rf conftest* 6419 ac_cv_func_Xettimeofday_nargs=1 6420fi 6421rm -f conftest* 6422 6423fi 6424 6425echo "$ac_t""$ac_cv_func_Xettimeofday_nargs" 1>&6 6426if test $ac_cv_func_Xettimeofday_nargs = 1; then 6427 cat >> confdefs.h <<\EOF 6428#define SYSV_TIMEOFDAY 1 6429EOF 6430 6431fi 6432 6433echo $ac_n "checking number of arguments taken by setpgrp()""... $ac_c" 1>&6 6434echo "configure:6435: checking number of arguments taken by setpgrp()" >&5 6435if eval "test \"\${ac_cv_func_setpgrp_nargs+set}\" = set"; then 6436 echo $ac_n "(cached) $ac_c" 1>&6 6437else 6438 cat > conftest.$ac_ext <<EOF 6439#line 6440 "configure" 6440#include "confdefs.h" 6441 6442#ifdef HAVE_SYS_TYPES_H 6443# include <sys/types.h> 6444#endif 6445#ifdef HAVE_UNISTD_H 6446# include <unistd.h> 6447#endif 6448 6449int main() { 6450setpgrp(0,0); 6451; return 0; } 6452EOF 6453if { (eval echo configure:6454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6454 rm -rf conftest* 6455 ac_cv_func_setpgrp_nargs=2 6456else 6457 echo "configure: failed program was:" >&5 6458 cat conftest.$ac_ext >&5 6459 rm -rf conftest* 6460 ac_cv_func_setpgrp_nargs=0 6461fi 6462rm -f conftest* 6463 6464fi 6465 6466echo "$ac_t""$ac_cv_func_setpgrp_nargs" 1>&6 6467if test $ac_cv_func_setpgrp_nargs = 0; then 6468 cat >> confdefs.h <<\EOF 6469#define HAVE_SETPGRP_0 1 6470EOF 6471 6472fi 6473 6474save_CFLAGS=$CFLAGS 6475CFLAGS="$CFLAGS -I$srcdir/include" 6476 6477echo $ac_n "checking argument pointer type of qsort()'s compare function and base""... $ac_c" 1>&6 6478echo "configure:6479: checking argument pointer type of qsort()'s compare function and base" >&5 6479if eval "test \"\${ac_cv_func_qsort_argtype+set}\" = set"; then 6480 echo $ac_n "(cached) $ac_c" 1>&6 6481else 6482 cat > conftest.$ac_ext <<EOF 6483#line 6484 "configure" 6484#include "confdefs.h" 6485 6486#include "l_stdlib.h" 6487 6488#ifdef HAVE_PROTOTYPES 6489#define P(x) x 6490#else 6491#define P(x) () 6492#endif 6493 6494extern void *base; 6495extern sortfunc P((const void *, const void *)); 6496int sortfunc(a, b) 6497 const void *a; 6498 const void *b; { return 0; } 6499 6500int main() { 6501 6502qsort(base, 2, sizeof(char *), sortfunc); 6503 6504; return 0; } 6505EOF 6506if { (eval echo configure:6507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6507 rm -rf conftest* 6508 ac_cv_func_qsort_argtype=void 6509else 6510 echo "configure: failed program was:" >&5 6511 cat conftest.$ac_ext >&5 6512 rm -rf conftest* 6513 ac_cv_func_qsort_argtype=char 6514fi 6515rm -f conftest* 6516 6517fi 6518 6519echo "$ac_t""$ac_cv_func_qsort_argtype" 1>&6 6520case "$ac_cv_func_qsort_argtype" in 6521 void) 6522 cat >> confdefs.h <<\EOF 6523#define QSORT_USES_VOID_P 1 6524EOF 6525 6526 ;; 6527esac 6528 6529CFLAGS=$save_CFLAGS 6530 6531echo $ac_n "checking if we need to declare 'errno'""... $ac_c" 1>&6 6532echo "configure:6533: checking if we need to declare 'errno'" >&5 6533if eval "test \"\${ac_cv_decl_errno+set}\" = set"; then 6534 echo $ac_n "(cached) $ac_c" 1>&6 6535else 6536 cat > conftest.$ac_ext <<EOF 6537#line 6538 "configure" 6538#include "confdefs.h" 6539#ifdef HAVE_ERRNO_H 6540#include <errno.h> 6541#endif 6542int main() { 6543errno = 0; 6544; return 0; } 6545EOF 6546if { (eval echo configure:6547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6547 rm -rf conftest* 6548 ac_cv_decl_errno=no 6549else 6550 echo "configure: failed program was:" >&5 6551 cat conftest.$ac_ext >&5 6552 rm -rf conftest* 6553 ac_cv_decl_errno=yes 6554fi 6555rm -f conftest* 6556fi 6557 6558echo "$ac_t""$ac_cv_decl_errno" 1>&6 6559case "$ac_cv_decl_errno" in 6560 yes) cat >> confdefs.h <<\EOF 6561#define DECL_ERRNO 1 6562EOF 6563 ;; 6564esac 6565 6566echo $ac_n "checking if we may declare 'h_errno'""... $ac_c" 1>&6 6567echo "configure:6568: checking if we may declare 'h_errno'" >&5 6568if eval "test \"\${ac_cv_decl_h_errno+set}\" = set"; then 6569 echo $ac_n "(cached) $ac_c" 1>&6 6570else 6571 cat > conftest.$ac_ext <<EOF 6572#line 6573 "configure" 6573#include "confdefs.h" 6574#include <sys/types.h> 6575#ifdef HAVE_NETINET_IN_H 6576#include <netinet/in.h> 6577#endif 6578#ifdef HAVE_ARPA_NAMESER_H 6579#include <arpa/nameser.h> 6580#endif 6581#ifdef HAVE_NETDB_H 6582#include <netdb.h> 6583#endif 6584#ifdef HAVE_RESOLV_H 6585#include <resolv.h> 6586#endif 6587int main() { 6588extern int h_errno; 6589; return 0; } 6590EOF 6591if { (eval echo configure:6592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6592 rm -rf conftest* 6593 ac_cv_decl_h_errno=yes 6594else 6595 echo "configure: failed program was:" >&5 6596 cat conftest.$ac_ext >&5 6597 rm -rf conftest* 6598 ac_cv_decl_h_errno=no 6599fi 6600rm -f conftest* 6601fi 6602 6603echo "$ac_t""$ac_cv_decl_h_errno" 1>&6 6604case "$ac_cv_decl_h_errno" in 6605 yes) cat >> confdefs.h <<\EOF 6606#define DECL_H_ERRNO 1 6607EOF 6608 ;; 6609esac 6610 6611echo $ac_n "checking if declaring 'char *sys_errlist' is ok""... $ac_c" 1>&6 6612echo "configure:6613: checking if declaring 'char *sys_errlist' is ok" >&5 6613if eval "test \"\${ac_cv_decl_sys_errlist+set}\" = set"; then 6614 echo $ac_n "(cached) $ac_c" 1>&6 6615else 6616 cat > conftest.$ac_ext <<EOF 6617#line 6618 "configure" 6618#include "confdefs.h" 6619#include <stdio.h> 6620#ifdef HAVE_ERRNO_H 6621#include <errno.h> 6622#endif 6623int main() { 6624 extern char *sys_errlist[]; 6625 6626; return 0; } 6627EOF 6628if { (eval echo configure:6629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6629 rm -rf conftest* 6630 ac_cv_decl_sys_errlist=yes 6631else 6632 echo "configure: failed program was:" >&5 6633 cat conftest.$ac_ext >&5 6634 rm -rf conftest* 6635 ac_cv_decl_sys_errlist=no 6636fi 6637rm -f conftest* 6638fi 6639 6640echo "$ac_t""$ac_cv_decl_sys_errlist" 1>&6 6641case "$ac_cv_decl_sys_errlist" in 6642 yes) cat >> confdefs.h <<\EOF 6643#define CHAR_SYS_ERRLIST 1 6644EOF 6645 ;; 6646esac 6647 6648echo $ac_n "checking if declaring 'syscall()' is ok""... $ac_c" 1>&6 6649echo "configure:6650: checking if declaring 'syscall()' is ok" >&5 6650if eval "test \"\${ac_cv_decl_syscall+set}\" = set"; then 6651 echo $ac_n "(cached) $ac_c" 1>&6 6652else 6653 cat > conftest.$ac_ext <<EOF 6654#line 6655 "configure" 6655#include "confdefs.h" 6656 6657#ifdef HAVE_SYS_TYPES_H 6658# include <sys/types.h> 6659#endif 6660#ifdef HAVE_UNISTD_H 6661# include <unistd.h> 6662#endif 6663#ifdef HAVE_PROTOTYPES 6664#define P(x) x 6665#else 6666#define P(x) () 6667#endif 6668 6669int main() { 6670extern int syscall P((int, ...)); 6671; return 0; } 6672EOF 6673if { (eval echo configure:6674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6674 rm -rf conftest* 6675 ac_cv_decl_syscall=yes 6676else 6677 echo "configure: failed program was:" >&5 6678 cat conftest.$ac_ext >&5 6679 rm -rf conftest* 6680 ac_cv_decl_syscall=no 6681fi 6682rm -f conftest* 6683fi 6684 6685echo "$ac_t""$ac_cv_decl_syscall" 1>&6 6686case "$ac_cv_decl_syscall" in 6687 yes) cat >> confdefs.h <<\EOF 6688#define DECL_SYSCALL 1 6689EOF 6690 ;; 6691esac 6692 6693case "$target" in 6694 *-*-osf45*) 6695 cat >> confdefs.h <<\EOF 6696#define DECL_PLOCK_0 1 6697EOF 6698 6699 cat >> confdefs.h <<\EOF 6700#define DECL_STIME_0 1 6701EOF 6702 6703 ;; 6704 *-*-riscos4*) 6705 cat >> confdefs.h <<\EOF 6706#define DECL_ADJTIME_0 1 6707EOF 6708 6709 cat >> confdefs.h <<\EOF 6710#define DECL_BZERO_0 1 6711EOF 6712 6713 cat >> confdefs.h <<\EOF 6714#define DECL_IOCTL_0 1 6715EOF 6716 6717 cat >> confdefs.h <<\EOF 6718#define DECL_IPC_0 1 6719EOF 6720 6721 cat >> confdefs.h <<\EOF 6722#define DECL_MEMMOVE_0 1 6723EOF 6724 6725 cat >> confdefs.h <<\EOF 6726#define DECL_MKTEMP_0 1 6727EOF 6728 6729 cat >> confdefs.h <<\EOF 6730#define DECL_RENAME_0 1 6731EOF 6732 6733 cat >> confdefs.h <<\EOF 6734#define DECL_SELECT_0 1 6735EOF 6736 6737 cat >> confdefs.h <<\EOF 6738#define DECL_SETITIMER_0 1 6739EOF 6740 6741 cat >> confdefs.h <<\EOF 6742#define DECL_SETPRIORITY_0 1 6743EOF 6744 6745 cat >> confdefs.h <<\EOF 6746#define DECL_STDIO_0 1 6747EOF 6748 6749 cat >> confdefs.h <<\EOF 6750#define DECL_STRTOL_0 1 6751EOF 6752 6753 cat >> confdefs.h <<\EOF 6754#define DECL_SYSLOG_0 1 6755EOF 6756 6757 cat >> confdefs.h <<\EOF 6758#define DECL_TIME_0 1 6759EOF 6760 6761 cat >> confdefs.h <<\EOF 6762#define DECL_TIMEOFDAY_0 1 6763EOF 6764 6765 cat >> confdefs.h <<\EOF 6766#define DECL_TOLOWER_0 1 6767EOF 6768 6769 ;; 6770 *-*-solaris2*) 6771 cat >> confdefs.h <<\EOF 6772#define DECL_MKSTEMP_0 1 6773EOF 6774 6775 cat >> confdefs.h <<\EOF 6776#define DECL_SETPRIORITY_1 1 6777EOF 6778 6779 case "$target" in 6780 *-*-solaris2.4) 6781 cat >> confdefs.h <<\EOF 6782#define DECL_TIMEOFDAY_0 1 6783EOF 6784 6785 ;; 6786 esac 6787 ;; 6788 *-*-sunos4*) 6789 cat >> confdefs.h <<\EOF 6790#define DECL_ADJTIME_0 1 6791EOF 6792 6793 cat >> confdefs.h <<\EOF 6794#define DECL_BCOPY_0 1 6795EOF 6796 6797 cat >> confdefs.h <<\EOF 6798#define DECL_BZERO_0 1 6799EOF 6800 6801 cat >> confdefs.h <<\EOF 6802#define DECL_IOCTL_0 1 6803EOF 6804 6805 cat >> confdefs.h <<\EOF 6806#define DECL_IPC_0 1 6807EOF 6808 6809 cat >> confdefs.h <<\EOF 6810#define DECL_MEMMOVE_0 1 6811EOF 6812 6813 cat >> confdefs.h <<\EOF 6814#define DECL_MKTEMP_0 1 6815EOF 6816 6817 cat >> confdefs.h <<\EOF 6818#define DECL_MKSTEMP_0 1 6819EOF 6820 6821 cat >> confdefs.h <<\EOF 6822#define DECL_MRAND48_0 1 6823EOF 6824 6825 cat >> confdefs.h <<\EOF 6826#define DECL_RENAME_0 1 6827EOF 6828 6829 cat >> confdefs.h <<\EOF 6830#define DECL_SELECT_0 1 6831EOF 6832 6833 cat >> confdefs.h <<\EOF 6834#define DECL_SETITIMER_0 1 6835EOF 6836 6837 cat >> confdefs.h <<\EOF 6838#define DECL_SETPRIORITY_0 1 6839EOF 6840 6841 cat >> confdefs.h <<\EOF 6842#define DECL_SIGVEC_0 1 6843EOF 6844 6845 cat >> confdefs.h <<\EOF 6846#define DECL_SRAND48_0 1 6847EOF 6848 6849 case "`basename $ac_cv_prog_CC`" in 6850 acc*) ;; 6851 *) cat >> confdefs.h <<\EOF 6852#define DECL_STDIO_0 1 6853EOF 6854 6855 ;; 6856 esac 6857 cat >> confdefs.h <<\EOF 6858#define DECL_STRTOL_0 1 6859EOF 6860 6861 cat >> confdefs.h <<\EOF 6862#define DECL_SYSLOG_0 1 6863EOF 6864 6865 cat >> confdefs.h <<\EOF 6866#define DECL_TIME_0 1 6867EOF 6868 6869 cat >> confdefs.h <<\EOF 6870#define DECL_TIMEOFDAY_0 1 6871EOF 6872 6873 cat >> confdefs.h <<\EOF 6874#define DECL_TOLOWER_0 1 6875EOF 6876 6877 cat >> confdefs.h <<\EOF 6878#define DECL_TOUPPER_0 1 6879EOF 6880 6881 ;; 6882 *-*-ultrix4*) 6883 cat >> confdefs.h <<\EOF 6884#define DECL_ADJTIME_0 1 6885EOF 6886 6887 cat >> confdefs.h <<\EOF 6888#define DECL_BZERO_0 1 6889EOF 6890 6891 cat >> confdefs.h <<\EOF 6892#define DECL_CFSETISPEED_0 1 6893EOF 6894 6895 cat >> confdefs.h <<\EOF 6896#define DECL_IOCTL_0 1 6897EOF 6898 6899 cat >> confdefs.h <<\EOF 6900#define DECL_IPC_0 1 6901EOF 6902 6903 cat >> confdefs.h <<\EOF 6904#define DECL_MKTEMP_0 1 6905EOF 6906 6907 cat >> confdefs.h <<\EOF 6908#define DECL_MRAND48_0 1 6909EOF 6910 6911 cat >> confdefs.h <<\EOF 6912#define DECL_NLIST_0 1 6913EOF 6914 6915 cat >> confdefs.h <<\EOF 6916#define DECL_PLOCK_0 1 6917EOF 6918 6919 cat >> confdefs.h <<\EOF 6920#define DECL_SELECT_0 1 6921EOF 6922 6923 cat >> confdefs.h <<\EOF 6924#define DECL_SETITIMER_0 1 6925EOF 6926 6927 cat >> confdefs.h <<\EOF 6928#define DECL_SETPRIORITY_0 1 6929EOF 6930 6931 cat >> confdefs.h <<\EOF 6932#define DECL_SRAND48_0 1 6933EOF 6934 6935 cat >> confdefs.h <<\EOF 6936#define DECL_STIME_0 1 6937EOF 6938 6939 cat >> confdefs.h <<\EOF 6940#define DECL_SYSLOG_0 1 6941EOF 6942 6943 cat >> confdefs.h <<\EOF 6944#define DECL_TIMEOFDAY_0 1 6945EOF 6946 6947 ;; 6948esac 6949 6950case "$target" in 6951 *-*-sco3.2*) 6952 cat >> confdefs.h <<\EOF 6953#define TERMIOS_NEEDS__SVID3 1 6954EOF 6955 6956 ;; 6957esac 6958 6959echo $ac_n "checking if we should use a streams device for ifconfig""... $ac_c" 1>&6 6960echo "configure:6961: checking if we should use a streams device for ifconfig" >&5 6961if eval "test \"\${ac_cv_var_use_streams_device_for_ifconfig+set}\" = set"; then 6962 echo $ac_n "(cached) $ac_c" 1>&6 6963else 6964 ac_cv_var_use_streams_device_for_ifconfig=no 6965fi 6966 6967echo "$ac_t""$ac_cv_var_use_streams_device_for_ifconfig" 1>&6 6968 6969echo $ac_n "checking if we need extra room for SO_RCVBUF""... $ac_c" 1>&6 6970echo "configure:6971: checking if we need extra room for SO_RCVBUF" >&5 6971if eval "test \"\${ac_cv_var_rcvbuf_slop+set}\" = set"; then 6972 echo $ac_n "(cached) $ac_c" 1>&6 6973else 6974 ans=no 6975case "$target" in 6976 *-*-hpux[567]*) 6977 ans=yes 6978 ;; 6979esac 6980ac_cv_var_rcvbuf_slop=$ans 6981fi 6982 6983echo "$ac_t""$ac_cv_var_rcvbuf_slop" 1>&6 6984case "$ac_cv_var_rcvbuf_slop" in 6985 yes) cat >> confdefs.h <<\EOF 6986#define NEED_RCVBUF_SLOP 1 6987EOF 6988 ;; 6989esac 6990 6991echo $ac_n "checking if we will open the broadcast socket""... $ac_c" 1>&6 6992echo "configure:6993: checking if we will open the broadcast socket" >&5 6993if eval "test \"\${ac_cv_var_open_bcast_socket+set}\" = set"; then 6994 echo $ac_n "(cached) $ac_c" 1>&6 6995else 6996 ans=yes 6997case "$target" in 6998 *-*-domainos) 6999 ans=no 7000 ;; 7001 *-*-linux*) 7002 ans=no 7003 ;; 7004esac 7005ac_cv_var_open_bcast_socket=$ans 7006fi 7007 7008echo "$ac_t""$ac_cv_var_open_bcast_socket" 1>&6 7009case "$ac_cv_var_open_bcast_socket" in 7010 yes) cat >> confdefs.h <<\EOF 7011#define OPEN_BCAST_SOCKET 1 7012EOF 7013 ;; 7014esac 7015 7016echo $ac_n "checking if we want the HPUX version of FindConfig()""... $ac_c" 1>&6 7017echo "configure:7018: checking if we want the HPUX version of FindConfig()" >&5 7018if eval "test \"\${ac_cv_var_hpux_findconfig+set}\" = set"; then 7019 echo $ac_n "(cached) $ac_c" 1>&6 7020else 7021 ans=no 7022case "$target" in 7023 *-*-hpux*) 7024 ans=yes 7025 ;; 7026esac 7027ac_cv_var_hpux_findconfig=$ans 7028fi 7029 7030echo "$ac_t""$ac_cv_var_hpux_findconfig" 1>&6 7031case "$ac_cv_var_hpux_findconfig" in 7032 yes) cat >> confdefs.h <<\EOF 7033#define NEED_HPUX_FINDCONFIG 1 7034EOF 7035 ;; 7036esac 7037 7038echo $ac_n "checking if process groups are set with -pid""... $ac_c" 1>&6 7039echo "configure:7040: checking if process groups are set with -pid" >&5 7040if eval "test \"\${ac_cv_arg_setpgrp_negpid+set}\" = set"; then 7041 echo $ac_n "(cached) $ac_c" 1>&6 7042else 7043 case "$target" in 7044 *-*-hpux[567]*) 7045 ans=no 7046 ;; 7047 *-*-hpux*) 7048 ans=yes 7049 ;; 7050 *-*-linux*) 7051 ans=yes 7052 ;; 7053 *-*-sunos3*) 7054 ans=yes 7055 ;; 7056 *-*-ultrix2*) 7057 ans=yes 7058 ;; 7059 *) 7060 ans=no 7061 ;; 7062esac 7063ac_cv_arg_setpgrp_negpid=$ans 7064fi 7065 7066echo "$ac_t""$ac_cv_arg_setpgrp_negpid" 1>&6 7067case "$ac_cv_arg_setpgrp_negpid" in 7068 yes) cat >> confdefs.h <<\EOF 7069#define UDP_BACKWARDS_SETOWN 1 7070EOF 7071 ;; 7072esac 7073 7074echo $ac_n "checking if we need a ctty for F_SETOWN""... $ac_c" 1>&6 7075echo "configure:7076: checking if we need a ctty for F_SETOWN" >&5 7076if eval "test \"\${ac_cv_func_ctty_for_f_setown+set}\" = set"; then 7077 echo $ac_n "(cached) $ac_c" 1>&6 7078else 7079 case "$target" in 7080 *-*-bsdi2*) 7081 ans=yes 7082 ;; 7083 *-*-freebsd*) 7084 ans=yes 7085 ;; 7086 *-*-netbsd*) 7087 ans=yes 7088 ;; 7089 *-*-osf*) 7090 ans=yes 7091 ;; 7092 *) ans=no 7093 ;; 7094esac 7095ac_cv_func_ctty_for_f_setown=$ans 7096fi 7097 7098echo "$ac_t""$ac_cv_func_ctty_for_f_setown" 1>&6 7099case "$ac_cv_func_ctty_for_f_setown" in 7100 yes) cat >> confdefs.h <<\EOF 7101#define USE_FSETOWNCTTY 1 7102EOF 7103 ;; 7104esac 7105 7106ntp_warning='GRONK' 7107echo $ac_n "checking if we'll use clock_settime or settimeofday or stime""... $ac_c" 1>&6 7108echo "configure:7109: checking if we'll use clock_settime or settimeofday or stime" >&5 7109case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 7110 yes*) 7111 ntp_warning='' 7112 ans='clock_settime()' 7113 ;; 7114 noyes*) 7115 ntp_warning='But clock_settime() would be better (if we had it)' 7116 ans='settimeofday()' 7117 ;; 7118 nonoyes) 7119 ntp_warning='Which is the worst of the three' 7120 ans='stime()' 7121 ;; 7122 *) 7123 case "$host" in 7124 $target) ntp_warning='Which leaves us with nothing to use!' 7125 ans=none 7126 ;; 7127esac 7128esac 7129echo "$ac_t""$ans" 1>&6 7130case "$ntp_warning" in 7131 '') ;; 7132 *) echo "configure: warning: *** $ntp_warning ***" 1>&2 7133 ;; 7134esac 7135 7136echo $ac_n "checking if we have a losing syscall()""... $ac_c" 1>&6 7137echo "configure:7138: checking if we have a losing syscall()" >&5 7138if eval "test \"\${ac_cv_var_syscall_bug+set}\" = set"; then 7139 echo $ac_n "(cached) $ac_c" 1>&6 7140else 7141 case "$target" in 7142 *-*-solaris2.4*) 7143 ans=yes 7144 ;; 7145 *) ans=no 7146 ;; 7147esac 7148ac_cv_var_syscall_bug=$ans 7149fi 7150 7151echo "$ac_t""$ac_cv_var_syscall_bug" 1>&6 7152case "$ac_cv_var_syscall_bug" in 7153 yes) cat >> confdefs.h <<\EOF 7154#define SYSCALL_BUG 1 7155EOF 7156 ;; 7157esac 7158 7159echo $ac_n "checking for Streams/TLI""... $ac_c" 1>&6 7160echo "configure:7161: checking for Streams/TLI" >&5 7161if eval "test \"\${ac_cv_var_streams_tli+set}\" = set"; then 7162 echo $ac_n "(cached) $ac_c" 1>&6 7163else 7164 case "$ac_cv_header_sys_stropts_h" in 7165 yes) 7166 ans=no 7167 # There must be a better way... 7168 case "$target" in 7169 *-*-ptx*) 7170 ans=yes 7171 ;; 7172 esac 7173 ;; 7174 esac 7175 ac_cv_var_streams_tli=$ans 7176fi 7177 7178echo "$ac_t""$ac_cv_var_streams_tli" 1>&6 7179case "$ac_cv_var_streams_tli" in 7180 yes) 7181 cat >> confdefs.h <<\EOF 7182#define STREAMS_TLI 1 7183EOF 7184 7185 ;; 7186esac 7187 7188echo $ac_n "checking for SIGIO""... $ac_c" 1>&6 7189echo "configure:7190: checking for SIGIO" >&5 7190if eval "test \"\${ac_cv_hdr_def_sigio+set}\" = set"; then 7191 echo $ac_n "(cached) $ac_c" 1>&6 7192else 7193 cat > conftest.$ac_ext <<EOF 7194#line 7195 "configure" 7195#include "confdefs.h" 7196#include <signal.h> 7197#ifdef SIGIO 7198 yes 7199#endif 7200 7201EOF 7202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7203 egrep "yes" >/dev/null 2>&1; then 7204 rm -rf conftest* 7205 ac_cv_hdr_def_sigio=yes 7206else 7207 rm -rf conftest* 7208 ac_cv_hdr_def_sigio=no 7209fi 7210rm -f conftest* 7211 7212fi 7213 7214echo "$ac_t""$ac_cv_hdr_def_sigio" 1>&6 7215 7216echo $ac_n "checking if we want to use signalled IO""... $ac_c" 1>&6 7217echo "configure:7218: checking if we want to use signalled IO" >&5 7218if eval "test \"\${ac_cv_var_signalled_io+set}\" = set"; then 7219 echo $ac_n "(cached) $ac_c" 1>&6 7220else 7221 ans=no 7222case "$ac_cv_hdr_def_sigio" in 7223 yes) 7224 ans=yes 7225 case "$target" in 7226 alpha*-dec-osf4*|alpha*-dec-osf5*) 7227 ans=no 7228 ;; 7229 *-convex-*) 7230 ans=no 7231 ;; 7232 *-dec-*) 7233 ans=no 7234 ;; 7235 *-pc-cygwin*) 7236 ans=no 7237 ;; 7238 *-sni-sysv*) 7239 ans=no 7240 ;; 7241 *-univel-sysv*) 7242 ans=no 7243 ;; 7244 *-*-irix6*) 7245 ans=no 7246 ;; 7247 *-*-freebsd*) 7248 ans=no 7249 ;; 7250 *-*-linux*) 7251 ans=no 7252 ;; 7253 esac 7254 ;; 7255esac 7256ac_cv_var_signalled_io=$ans 7257fi 7258 7259echo "$ac_t""$ac_cv_var_signalled_io" 1>&6 7260case "$ac_cv_var_signalled_io" in 7261 yes) cat >> confdefs.h <<\EOF 7262#define HAVE_SIGNALED_IO 1 7263EOF 7264 ;; 7265esac 7266 7267echo $ac_n "checking for SIGPOLL""... $ac_c" 1>&6 7268echo "configure:7269: checking for SIGPOLL" >&5 7269if eval "test \"\${ac_cv_hdr_def_sigpoll+set}\" = set"; then 7270 echo $ac_n "(cached) $ac_c" 1>&6 7271else 7272 cat > conftest.$ac_ext <<EOF 7273#line 7274 "configure" 7274#include "confdefs.h" 7275#include <signal.h> 7276#ifdef SIGPOLL 7277 yes 7278#endif 7279 7280EOF 7281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7282 egrep "yes" >/dev/null 2>&1; then 7283 rm -rf conftest* 7284 ac_cv_hdr_def_sigpoll=yes 7285else 7286 rm -rf conftest* 7287 ac_cv_hdr_def_sigpoll=no 7288fi 7289rm -f conftest* 7290 7291fi 7292 7293echo "$ac_t""$ac_cv_hdr_def_sigpoll" 1>&6 7294 7295echo $ac_n "checking for SIGSYS""... $ac_c" 1>&6 7296echo "configure:7297: checking for SIGSYS" >&5 7297if eval "test \"\${ac_cv_hdr_def_sigsys+set}\" = set"; then 7298 echo $ac_n "(cached) $ac_c" 1>&6 7299else 7300 cat > conftest.$ac_ext <<EOF 7301#line 7302 "configure" 7302#include "confdefs.h" 7303#include <signal.h> 7304#ifdef SIGSYS 7305 yes 7306#endif 7307 7308EOF 7309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7310 egrep "yes" >/dev/null 2>&1; then 7311 rm -rf conftest* 7312 ac_cv_hdr_def_sigsys=yes 7313else 7314 rm -rf conftest* 7315 ac_cv_hdr_def_sigsys=no 7316fi 7317rm -f conftest* 7318 7319fi 7320 7321echo "$ac_t""$ac_cv_hdr_def_sigsys" 1>&6 7322 7323echo $ac_n "checking if we can use SIGPOLL for UDP I/O""... $ac_c" 1>&6 7324echo "configure:7325: checking if we can use SIGPOLL for UDP I/O" >&5 7325if eval "test \"\${ac_cv_var_use_udp_sigpoll+set}\" = set"; then 7326 echo $ac_n "(cached) $ac_c" 1>&6 7327else 7328 ans=no 7329case "$ac_cv_hdr_def_sigpoll" in 7330 yes) 7331 case "$target" in 7332 mips-sgi-irix*) 7333 ans=no 7334 ;; 7335 vax-dec-bsd) 7336 ans=no 7337 ;; 7338 *-pc-cygwin*) 7339 ans=no 7340 ;; 7341 *-sni-sysv*) 7342 ans=no 7343 ;; 7344 *-*-aix4*) 7345 ans=no 7346 ;; 7347 *-*-hpux*) 7348 ans=no 7349 ;; 7350 *-*-linux*) 7351 ans=no 7352 ;; 7353 *-*-osf*) 7354 ans=no 7355 ;; 7356 *-*-sunos*) 7357 ans=no 7358 ;; 7359 *-*-ultrix*) 7360 ans=no 7361 ;; 7362 *) ans=yes 7363 ;; 7364 esac 7365 ;; 7366esac 7367ac_cv_var_use_udp_sigpoll=$ans 7368fi 7369 7370echo "$ac_t""$ac_cv_var_use_udp_sigpoll" 1>&6 7371case "$ac_cv_var_use_udp_sigpoll" in 7372 yes) cat >> confdefs.h <<\EOF 7373#define USE_UDP_SIGPOLL 1 7374EOF 7375 ;; 7376esac 7377 7378echo $ac_n "checking if we can use SIGPOLL for TTY I/O""... $ac_c" 1>&6 7379echo "configure:7380: checking if we can use SIGPOLL for TTY I/O" >&5 7380if eval "test \"\${ac_cv_var_use_tty_sigpoll+set}\" = set"; then 7381 echo $ac_n "(cached) $ac_c" 1>&6 7382else 7383 ans=no 7384case "$ac_cv_hdr_def_sigpoll" in 7385 yes) 7386 case "$target" in 7387 mips-sgi-irix*) 7388 ans=no 7389 ;; 7390 vax-dec-bsd) 7391 ans=no 7392 ;; 7393 *-pc-cygwin*) 7394 ans=no 7395 ;; 7396 *-sni-sysv*) 7397 ans=no 7398 ;; 7399 *-*-aix4*) 7400 ans=no 7401 ;; 7402 *-*-hpux*) 7403 ans=no 7404 ;; 7405 *-*-linux*) 7406 ans=no 7407 ;; 7408 *-*-osf*) 7409 ans=no 7410 ;; 7411 *-*-sunos*) 7412 ans=no 7413 ;; 7414 *-*-ultrix*) 7415 ans=no 7416 ;; 7417 *) ans=yes 7418 ;; 7419 esac 7420 ;; 7421esac 7422ac_cv_var_use_tty_sigpoll=$ans 7423fi 7424 7425echo "$ac_t""$ac_cv_var_use_tty_sigpoll" 1>&6 7426case "$ac_cv_var_use_tty_sigpoll" in 7427 yes) cat >> confdefs.h <<\EOF 7428#define USE_TTY_SIGPOLL 1 7429EOF 7430 ;; 7431esac 7432 7433case "$ac_cv_header_sys_sio_h" in 7434 yes) 7435 echo $ac_n "checking sys/sio.h for TIOCDCDTIMESTAMP""... $ac_c" 1>&6 7436echo "configure:7437: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5 7437if eval "test \"\${ac_cv_hdr_def_tiocdcdtimestamp+set}\" = set"; then 7438 echo $ac_n "(cached) $ac_c" 1>&6 7439else 7440 cat > conftest.$ac_ext <<EOF 7441#line 7442 "configure" 7442#include "confdefs.h" 7443#include <sys/sio.h> 7444#ifdef TIOCDCDTIMESTAMP 7445 yes 7446#endif 7447 7448EOF 7449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7450 egrep "yes" >/dev/null 2>&1; then 7451 rm -rf conftest* 7452 ac_cv_hdr_def_tiocdcdtimestamp=yes 7453else 7454 rm -rf conftest* 7455 ac_cv_hdr_def_tiocdcdtimestamp=no 7456fi 7457rm -f conftest* 7458 7459fi 7460 7461echo "$ac_t""$ac_cv_hdr_def_tiocdcdtimestamp" 1>&6 7462 ;; 7463esac 7464 7465echo $ac_n "checking if nlist() values might require extra indirection""... $ac_c" 1>&6 7466echo "configure:7467: checking if nlist() values might require extra indirection" >&5 7467if eval "test \"\${ac_cv_var_nlist_extra_indirection+set}\" = set"; then 7468 echo $ac_n "(cached) $ac_c" 1>&6 7469else 7470 ans=no 7471case "$target" in 7472 *-*-aix*) 7473 ans=yes 7474 ;; 7475esac 7476ac_cv_var_nlist_extra_indirection=$ans 7477fi 7478 7479echo "$ac_t""$ac_cv_var_nlist_extra_indirection" 1>&6 7480case "$ac_cv_var_nlist_extra_indirection" in 7481 yes) cat >> confdefs.h <<\EOF 7482#define NLIST_EXTRA_INDIRECTION 1 7483EOF 7484 ;; 7485esac 7486 7487echo $ac_n "checking for a minimum recommended value of tickadj""... $ac_c" 1>&6 7488echo "configure:7489: checking for a minimum recommended value of tickadj" >&5 7489if eval "test \"\${ac_cv_var_min_rec_tickadj+set}\" = set"; then 7490 echo $ac_n "(cached) $ac_c" 1>&6 7491else 7492 ans=no 7493case "$target" in 7494 *-*-aix*) 7495 ans=40 7496 ;; 7497esac 7498ac_cv_var_min_rec_tickadj=$ans 7499fi 7500 7501echo "$ac_t""$ac_cv_var_min_rec_tickadj" 1>&6 7502case "$ac_cv_var_min_rec_tickadj" in 7503 ''|no) ;; 7504 *) cat >> confdefs.h <<EOF 7505#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj 7506EOF 7507 ;; 7508esac 7509 7510echo $ac_n "checking if the TTY code permits PARENB and IGNPAR""... $ac_c" 1>&6 7511echo "configure:7512: checking if the TTY code permits PARENB and IGNPAR" >&5 7512if eval "test \"\${ac_cv_var_no_parenb_ignpar+set}\" = set"; then 7513 echo $ac_n "(cached) $ac_c" 1>&6 7514else 7515 ans=no 7516case "$target" in 7517 i?86-*-linux*) 7518 ans=yes 7519 ;; 7520 mips-sgi-irix*) 7521 ans=yes 7522 ;; 7523esac 7524ac_cv_var_no_parenb_ignpar=$ans 7525fi 7526 7527echo "$ac_t""$ac_cv_var_no_parenb_ignpar" 1>&6 7528case "$ac_cv_var_no_parenb_ignpar" in 7529 yes) cat >> confdefs.h <<\EOF 7530#define NO_PARENB_IGNPAR 1 7531EOF 7532 ;; 7533esac 7534 7535echo $ac_n "checking if we're including debugging code""... $ac_c" 1>&6 7536echo "configure:7537: checking if we're including debugging code" >&5 7537# Check whether --enable-debugging or --disable-debugging was given. 7538if test "${enable_debugging+set}" = set; then 7539 enableval="$enable_debugging" 7540 ntp_ok=$enableval 7541else 7542 ntp_ok=yes 7543fi 7544 7545if test "$ntp_ok" = "yes"; then 7546 cat >> confdefs.h <<\EOF 7547#define DEBUG 1 7548EOF 7549 7550fi 7551echo "$ac_t""$ntp_ok" 1>&6 7552 7553echo $ac_n "checking for a the number of minutes in a DST adjustment""... $ac_c" 1>&6 7554echo "configure:7555: checking for a the number of minutes in a DST adjustment" >&5 7555# Check whether --enable-dst_minutes or --disable-dst_minutes was given. 7556if test "${enable_dst_minutes+set}" = set; then 7557 enableval="$enable_dst_minutes" 7558 ans=$enableval 7559else 7560 ans=60 7561fi 7562 7563cat >> confdefs.h <<EOF 7564#define DSTMINUTES $ans 7565EOF 7566 7567echo "$ac_t""$ans" 1>&6 7568 7569echo $ac_n "checking if we have the tty_clk line discipline/streams module""... $ac_c" 1>&6 7570echo "configure:7571: checking if we have the tty_clk line discipline/streams module" >&5 7571if eval "test \"\${ac_cv_var_tty_clk+set}\" = set"; then 7572 echo $ac_n "(cached) $ac_c" 1>&6 7573else 7574 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in 7575 *yes*) ac_cv_var_tty_clk=yes ;; 7576 esac 7577fi 7578 7579echo "$ac_t""$ac_cv_var_tty_clk" 1>&6 7580case "$ac_cv_var_tty_clk" in 7581 yes) cat >> confdefs.h <<\EOF 7582#define TTYCLK 1 7583EOF 7584 ;; 7585esac 7586 7587echo $ac_n "checking for the ppsclock streams module""... $ac_c" 1>&6 7588echo "configure:7589: checking for the ppsclock streams module" >&5 7589if eval "test \"\${ac_cv_var_ppsclock+set}\" = set"; then 7590 echo $ac_n "(cached) $ac_c" 1>&6 7591else 7592 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev 7593fi 7594 7595echo "$ac_t""$ac_cv_var_ppsclock" 1>&6 7596case "$ac_cv_var_ppsclock" in 7597 yes) cat >> confdefs.h <<\EOF 7598#define PPS 1 7599EOF 7600 ;; 7601esac 7602 7603echo $ac_n "checking for kernel multicast support""... $ac_c" 1>&6 7604echo "configure:7605: checking for kernel multicast support" >&5 7605if eval "test \"\${ac_cv_var_mcast+set}\" = set"; then 7606 echo $ac_n "(cached) $ac_c" 1>&6 7607else 7608 ac_cv_var_mcast=no 7609 case "$target" in 7610 i386-sequent-sysv4) ;; 7611 *) cat > conftest.$ac_ext <<EOF 7612#line 7613 "configure" 7613#include "confdefs.h" 7614#include <netinet/in.h> 7615#ifdef IP_ADD_MEMBERSHIP 7616 yes 7617#endif 7618 7619EOF 7620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7621 egrep "yes" >/dev/null 2>&1; then 7622 rm -rf conftest* 7623 ac_cv_var_mcast=yes 7624fi 7625rm -f conftest* 7626 ;; 7627 esac 7628fi 7629 7630echo "$ac_t""$ac_cv_var_mcast" 1>&6 7631case "$ac_cv_var_mcast" in 7632 yes) cat >> confdefs.h <<\EOF 7633#define MCAST 1 7634EOF 7635 ;; 7636esac 7637 7638echo $ac_n "checking availability of ntp_{adj,get}time()""... $ac_c" 1>&6 7639echo "configure:7640: checking availability of ntp_{adj,get}time()" >&5 7640if eval "test \"\${ac_cv_var_ntp_syscalls+set}\" = set"; then 7641 echo $ac_n "(cached) $ac_c" 1>&6 7642else 7643 ac_cv_var_ntp_syscalls=no 7644 case "$ac_cv_func___adjtimex" in 7645 yes) 7646 ac_cv_var_ntp_syscalls=libc 7647 ;; 7648 *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in 7649 yesyes) 7650 ac_cv_var_ntp_syscalls=libc 7651 ;; 7652 *) cat > conftest.$ac_ext <<EOF 7653#line 7654 "configure" 7654#include "confdefs.h" 7655#include <sys/syscall.h> 7656#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime) 7657 yes 7658#endif 7659 7660EOF 7661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7662 egrep "yes" >/dev/null 2>&1; then 7663 rm -rf conftest* 7664 ac_cv_var_ntp_syscalls=kernel 7665fi 7666rm -f conftest* 7667 7668 ;; 7669 esac 7670 ;; 7671 esac 7672fi 7673 7674echo "$ac_t""$ac_cv_var_ntp_syscalls" 1>&6 7675case "$ac_cv_var_ntp_syscalls" in 7676 libc) 7677 cat >> confdefs.h <<\EOF 7678#define NTP_SYSCALLS_LIBC 1 7679EOF 7680 7681 ;; 7682 kernel) 7683 cat >> confdefs.h <<\EOF 7684#define NTP_SYSCALLS_STD 1 7685EOF 7686 7687 ;; 7688 *) 7689 ;; 7690esac 7691 7692echo $ac_n "checking if sys/timex.h has STA_FLL""... $ac_c" 1>&6 7693echo "configure:7694: checking if sys/timex.h has STA_FLL" >&5 7694if eval "test \"\${ac_cv_var_sta_fll+set}\" = set"; then 7695 echo $ac_n "(cached) $ac_c" 1>&6 7696else 7697 cat > conftest.$ac_ext <<EOF 7698#line 7699 "configure" 7699#include "confdefs.h" 7700#include <sys/timex.h> 7701#ifdef STA_FLL 7702 yes 7703#endif 7704 7705EOF 7706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7707 egrep "yes" >/dev/null 2>&1; then 7708 rm -rf conftest* 7709 ac_cv_var_sta_fll=yes 7710else 7711 rm -rf conftest* 7712 ac_cv_var_sta_fll=no 7713fi 7714rm -f conftest* 7715 7716fi 7717 7718echo "$ac_t""$ac_cv_var_sta_fll" 1>&6 7719 7720echo $ac_n "checking if we have kernel PLL support""... $ac_c" 1>&6 7721echo "configure:7722: checking if we have kernel PLL support" >&5 7722if eval "test \"\${ac_cv_var_kernel_pll+set}\" = set"; then 7723 echo $ac_n "(cached) $ac_c" 1>&6 7724else 7725 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in 7726 *no*) 7727 ac_cv_var_kernel_pll=no 7728 ;; 7729 *) ac_cv_var_kernel_pll=yes 7730 ;; 7731esac 7732fi 7733 7734echo "$ac_t""$ac_cv_var_kernel_pll" 1>&6 7735case "$ac_cv_var_kernel_pll" in 7736 yes) 7737 cat >> confdefs.h <<\EOF 7738#define KERNEL_PLL 1 7739EOF 7740 7741 ;; 7742esac 7743 7744echo $ac_n "checking if SIOCGIFCONF returns buffer size in the buffer""... $ac_c" 1>&6 7745echo "configure:7746: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 7746if eval "test \"\${ac_cv_var_size_returned_in_buffer+set}\" = set"; then 7747 echo $ac_n "(cached) $ac_c" 1>&6 7748else 7749 ans=no 7750 case "$target" in 7751 *-fujitsu-uxp*) 7752 ans=yes 7753 ;; 7754 *-ncr-sysv4*) 7755 ans=yes 7756 ;; 7757 *-univel-sysv*) 7758 ans=yes 7759 ;; 7760 esac 7761 ac_cv_var_size_returned_in_buffer=$ans 7762fi 7763 7764echo "$ac_t""$ac_cv_var_size_returned_in_buffer" 1>&6 7765case "$ac_cv_var_size_returned_in_buffer" in 7766 yes) cat >> confdefs.h <<\EOF 7767#define SIZE_RETURNED_IN_BUFFER 1 7768EOF 7769 ;; 7770esac 7771 7772 7773echo $ac_n "checking if we want to use MD5 authentication""... $ac_c" 1>&6 7774echo "configure:7775: checking if we want to use MD5 authentication" >&5 7775if eval "test \"\${ac_cv_var_use_md5+set}\" = set"; then 7776 echo $ac_n "(cached) $ac_c" 1>&6 7777else 7778 # Check whether --enable-md5 or --disable-md5 was given. 7779if test "${enable_md5+set}" = set; then 7780 enableval="$enable_md5" 7781 ans=$enableval 7782else 7783 ans=yes 7784fi 7785 7786ac_cv_var_use_md5=$ans 7787fi 7788 7789echo "$ac_t""$ac_cv_var_use_md5" 1>&6 7790case "$ac_cv_var_use_md5" in 7791 yes) cat >> confdefs.h <<\EOF 7792#define MD5 1 7793EOF 7794 ;; 7795esac 7796 7797# Check for ioctls TIOCGPPSEV 7798echo $ac_n "checking ioctl TIOCGPPSEV""... $ac_c" 1>&6 7799echo "configure:7800: checking ioctl TIOCGPPSEV" >&5 7800if test "$ac_cv_header_termios_h" = "yes"; then 7801 cat > conftest.$ac_ext <<EOF 7802#line 7803 "configure" 7803#include "confdefs.h" 7804#include <termios.h> 7805#ifdef TIOCGPPSEV 7806 yes 7807#endif 7808 7809EOF 7810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7811 egrep "yes" >/dev/null 2>&1; then 7812 rm -rf conftest* 7813 ntp_ok=yes 7814else 7815 rm -rf conftest* 7816 ntp_ok=no 7817fi 7818rm -f conftest* 7819 7820else 7821ntp_ok=no 7822fi 7823 7824if test "$ntp_ok" = "yes"; then 7825 cat >> confdefs.h <<\EOF 7826#define HAVE_TIOCGPPSEV 1 7827EOF 7828 7829 ac_cv_var_oncore_ok=yes 7830fi 7831echo "$ac_t""$ntp_ok" 1>&6 7832 7833# Check for ioctls TIOCSPPS 7834echo $ac_n "checking ioctl TIOCSPPS""... $ac_c" 1>&6 7835echo "configure:7836: checking ioctl TIOCSPPS" >&5 7836if test "$ac_cv_header_termios_h" = "yes"; then 7837 cat > conftest.$ac_ext <<EOF 7838#line 7839 "configure" 7839#include "confdefs.h" 7840#include <termios.h> 7841#ifdef TIOCSPPS 7842 yes 7843#endif 7844 7845EOF 7846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7847 egrep "yes" >/dev/null 2>&1; then 7848 rm -rf conftest* 7849 ntp_ok=yes 7850else 7851 rm -rf conftest* 7852 ntp_ok=no 7853fi 7854rm -f conftest* 7855 7856else 7857 ntp_ok=no 7858fi 7859 7860if test "$ntp_ok" = "yes"; then 7861 cat >> confdefs.h <<\EOF 7862#define HAVE_TIOCSPPS 1 7863EOF 7864 7865fi 7866echo "$ac_t""$ntp_ok" 1>&6 7867 7868# Check for ioctls CIOGETEV 7869echo $ac_n "checking ioctl CIOGETEV""... $ac_c" 1>&6 7870echo "configure:7871: checking ioctl CIOGETEV" >&5 7871if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then 7872 cat > conftest.$ac_ext <<EOF 7873#line 7874 "configure" 7874#include "confdefs.h" 7875#include <sys/ppsclock.h> 7876#ifdef CIOGETEV 7877 yes 7878#endif 7879 7880EOF 7881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7882 egrep "yes" >/dev/null 2>&1; then 7883 rm -rf conftest* 7884 ntp_ok=yes 7885else 7886 rm -rf conftest* 7887 ntp_ok=no 7888fi 7889rm -f conftest* 7890 7891else 7892ntp_ok=no 7893fi 7894 7895if test "$ntp_ok" = "yes"; then 7896 ac_cv_var_oncore_ok=yes 7897 cat >> confdefs.h <<\EOF 7898#define HAVE_CIOGETEV 1 7899EOF 7900 7901fi 7902echo "$ac_t""$ntp_ok" 1>&6 7903 7904# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 7905# there is NO way that I can tell to tell if a given OS is using timespec or 7906# timeval so just set it here for the one case that is KNOWN to use timespec. 7907 7908case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in 7909 *yes*) 7910 cat >> confdefs.h <<\EOF 7911#define HAVE_PPSAPI 1 7912EOF 7913 7914 ac_cv_var_oncore_ok=yes 7915 cat >> confdefs.h <<\EOF 7916#define HAVE_TIMESPEC 1 7917EOF 7918 7919 ;; 7920esac 7921 7922# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 7923ac_safe=`echo "linux/serial.h" | sed 'y%./+-%__p_%'` 7924echo $ac_n "checking for linux/serial.h""... $ac_c" 1>&6 7925echo "configure:7926: checking for linux/serial.h" >&5 7926if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then 7927 echo $ac_n "(cached) $ac_c" 1>&6 7928else 7929 cat > conftest.$ac_ext <<EOF 7930#line 7931 "configure" 7931#include "confdefs.h" 7932#include <linux/serial.h> 7933EOF 7934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7935{ (eval echo configure:7936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7937if test -z "$ac_err"; then 7938 rm -rf conftest* 7939 eval "ac_cv_header_$ac_safe=yes" 7940else 7941 echo "$ac_err" >&5 7942 echo "configure: failed program was:" >&5 7943 cat conftest.$ac_ext >&5 7944 rm -rf conftest* 7945 eval "ac_cv_header_$ac_safe=no" 7946fi 7947rm -f conftest* 7948fi 7949if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7950 echo "$ac_t""yes" 1>&6 7951 : 7952else 7953 echo "$ac_t""no" 1>&6 7954fi 7955 7956echo $ac_n "checking ioctl TIOCGSERIAL""... $ac_c" 1>&6 7957echo "configure:7958: checking ioctl TIOCGSERIAL" >&5 7958case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 7959 yesyes) 7960 cat > conftest.$ac_ext <<EOF 7961#line 7962 "configure" 7962#include "confdefs.h" 7963#include <sys/time.h> 7964typedef int u_int; 7965 7966#include <sys/ppsclock.h> 7967#include <linux/serial.h> 7968 7969#ifdef TIOCGSERIAL 7970#ifdef TIOCSSERIAL 7971#ifdef ASYNC_PPS_CD_POS 7972#ifdef ASYNC_PPS_CD_NEG 7973#ifdef CIOGETEV 7974 yes 7975#endif 7976#endif 7977#endif 7978#endif 7979#endif 7980 7981EOF 7982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7983 egrep "yes" >/dev/null 2>&1; then 7984 rm -rf conftest* 7985 ntp_ok=yes 7986fi 7987rm -f conftest* 7988 7989 ;; 7990 *) 7991 ntp_ok=no 7992 ;; 7993esac 7994 7995if test "$ntp_ok" = "yes"; then 7996 cat >> confdefs.h <<\EOF 7997#define HAVE_TIO_SERIAL_STUFF 1 7998EOF 7999 8000fi 8001echo "$ac_t""$ntp_ok" 1>&6 8002 8003 8004ntp_refclock=no 8005 8006# HPUX only, and by explicit request 8007echo $ac_n "checking Datum/Bancomm bc635/VME interface""... $ac_c" 1>&6 8008echo "configure:8009: checking Datum/Bancomm bc635/VME interface" >&5 8009# Check whether --enable-BANCOMM or --disable-BANCOMM was given. 8010if test "${enable_BANCOMM+set}" = set; then 8011 enableval="$enable_BANCOMM" 8012 ntp_ok=$enableval 8013else 8014 ntp_ok=no 8015fi 8016 8017if test "$ntp_ok" = "yes"; then 8018 ntp_refclock=yes 8019 cat >> confdefs.h <<\EOF 8020#define CLOCK_BANC 1 8021EOF 8022 8023fi 8024echo "$ac_t""$ntp_ok" 1>&6 8025case "$ntp_ok$target" in 8026 yes*-*-hpux*) ;; 8027 yes*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;; 8028esac 8029 8030#HPUX only, and only by explicit request 8031echo $ac_n "checking TrueTime GPS receiver/VME interface""... $ac_c" 1>&6 8032echo "configure:8033: checking TrueTime GPS receiver/VME interface" >&5 8033# Check whether --enable-GPSVME or --disable-GPSVME was given. 8034if test "${enable_GPSVME+set}" = set; then 8035 enableval="$enable_GPSVME" 8036 ntp_ok=$enableval 8037else 8038 ntp_ok=no 8039fi 8040 8041if test "$ntp_ok" = "yes"; then 8042 ntp_refclock=yes 8043 cat >> confdefs.h <<\EOF 8044#define CLOCK_GPSVME 1 8045EOF 8046 8047fi 8048echo "$ac_t""$ntp_ok" 1>&6 8049case "$ntp_ok$target" in 8050 yes*-*-hpux*) ;; 8051 yes*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;; 8052esac 8053 8054echo $ac_n "checking for PCL720 clock support""... $ac_c" 1>&6 8055echo "configure:8056: checking for PCL720 clock support" >&5 8056case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 8057 yesyesyes) 8058 cat >> confdefs.h <<\EOF 8059#define CLOCK_PPS720 1 8060EOF 8061 8062 ans=yes 8063 ;; 8064 *) 8065 ans=no 8066 ;; 8067esac 8068echo "$ac_t""$ans" 1>&6 8069 8070echo $ac_n "checking for SHM clock attached thru shared memory""... $ac_c" 1>&6 8071echo "configure:8072: checking for SHM clock attached thru shared memory" >&5 8072# Check whether --enable-SHM or --disable-SHM was given. 8073if test "${enable_SHM+set}" = set; then 8074 enableval="$enable_SHM" 8075 ntp_ok=$enableval 8076else 8077 ntp_ok=no 8078fi 8079 8080if test "$ntp_ok" = "yes"; then 8081 ntp_refclock=yes 8082 cat >> confdefs.h <<\EOF 8083#define CLOCK_SHM 1 8084EOF 8085 8086fi 8087echo "$ac_t""$ntp_ok" 1>&6 8088 8089echo $ac_n "checking for default inclusion of all suitable non-PARSE clocks""... $ac_c" 1>&6 8090echo "configure:8091: checking for default inclusion of all suitable non-PARSE clocks" >&5 8091# Check whether --enable-all-clocks or --disable-all-clocks was given. 8092if test "${enable_all_clocks+set}" = set; then 8093 enableval="$enable_all_clocks" 8094 ntp_eac=$enableval 8095else 8096 ntp_eac=yes 8097fi 8098 8099echo "$ac_t""$ntp_eac" 1>&6 8100 8101echo $ac_n "checking if we have support for PARSE clocks""... $ac_c" 1>&6 8102echo "configure:8103: checking if we have support for PARSE clocks" >&5 8103case "$ac_cv_header_termio_h$ac_cv_header_termios_h" in 8104 *yes*) 8105 ntp_canparse=yes 8106 ;; 8107 *) ntp_canparse=no 8108 ;; 8109esac 8110echo "$ac_t""$ntp_canparse" 1>&6 8111 8112# Requires modem control 8113echo $ac_n "checking ACTS modem service""... $ac_c" 1>&6 8114echo "configure:8115: checking ACTS modem service" >&5 8115# Check whether --enable-ACTS or --disable-ACTS was given. 8116if test "${enable_ACTS+set}" = set; then 8117 enableval="$enable_ACTS" 8118 ntp_ok=$enableval 8119else 8120 cat > conftest.$ac_ext <<EOF 8121#line 8122 "configure" 8122#include "confdefs.h" 8123#include <termios.h> 8124#ifdef HAVE_SYS_IOCTL_H 8125#include <sys/ioctl.h> 8126#endif 8127#ifdef TIOCMBIS 8128 yes 8129#endif 8130 8131EOF 8132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8133 egrep "yes" >/dev/null 2>&1; then 8134 rm -rf conftest* 8135 ntp_ok=$ntp_eac 8136else 8137 rm -rf conftest* 8138 ntp_ok=no 8139fi 8140rm -f conftest* 8141 8142fi 8143 8144if test "$ntp_ok" = "yes"; then 8145 ntp_refclock=yes 8146 cat >> confdefs.h <<\EOF 8147#define CLOCK_ACTS 1 8148EOF 8149 8150fi 8151echo "$ac_t""$ntp_ok" 1>&6 8152 8153echo $ac_n "checking Arbiter 1088A/B GPS receiver""... $ac_c" 1>&6 8154echo "configure:8155: checking Arbiter 1088A/B GPS receiver" >&5 8155# Check whether --enable-ARBITER or --disable-ARBITER was given. 8156if test "${enable_ARBITER+set}" = set; then 8157 enableval="$enable_ARBITER" 8158 ntp_ok=$enableval 8159else 8160 ntp_ok=$ntp_eac 8161fi 8162 8163if test "$ntp_ok" = "yes"; then 8164 ntp_refclock=yes 8165 cat >> confdefs.h <<\EOF 8166#define CLOCK_ARBITER 1 8167EOF 8168 8169fi 8170echo "$ac_t""$ntp_ok" 1>&6 8171 8172echo $ac_n "checking Arcron MSF receiver""... $ac_c" 1>&6 8173echo "configure:8174: checking Arcron MSF receiver" >&5 8174# Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given. 8175if test "${enable_ARCRON_MSF+set}" = set; then 8176 enableval="$enable_ARCRON_MSF" 8177 ntp_ok=$enableval 8178else 8179 ntp_ok=$ntp_eac 8180fi 8181 8182if test "$ntp_ok" = "yes"; then 8183 ntp_refclock=yes 8184 cat >> confdefs.h <<\EOF 8185#define CLOCK_ARCRON_MSF 1 8186EOF 8187 8188fi 8189echo "$ac_t""$ntp_ok" 1>&6 8190 8191echo $ac_n "checking Austron 2200A/2201A GPS receiver""... $ac_c" 1>&6 8192echo "configure:8193: checking Austron 2200A/2201A GPS receiver" >&5 8193# Check whether --enable-AS2201 or --disable-AS2201 was given. 8194if test "${enable_AS2201+set}" = set; then 8195 enableval="$enable_AS2201" 8196 ntp_ok=$enableval 8197else 8198 ntp_ok=$ntp_eac 8199fi 8200 8201if test "$ntp_ok" = "yes"; then 8202 ntp_refclock=yes 8203 cat >> confdefs.h <<\EOF 8204#define CLOCK_AS2201 1 8205EOF 8206 8207fi 8208echo "$ac_t""$ntp_ok" 1>&6 8209 8210echo $ac_n "checking PPS interface""... $ac_c" 1>&6 8211echo "configure:8212: checking PPS interface" >&5 8212# Check whether --enable-ATOM or --disable-ATOM was given. 8213if test "${enable_ATOM+set}" = set; then 8214 enableval="$enable_ATOM" 8215 ntp_ok=$enableval 8216else 8217 ntp_ok=$ntp_eac 8218fi 8219 8220if test "$ntp_ok" = "yes"; then 8221 ntp_refclock=yes 8222 cat >> confdefs.h <<\EOF 8223#define CLOCK_ATOM 1 8224EOF 8225 8226fi 8227echo "$ac_t""$ntp_ok" 1>&6 8228 8229echo $ac_n "checking CHU modem/decoder""... $ac_c" 1>&6 8230echo "configure:8231: checking CHU modem/decoder" >&5 8231# Check whether --enable-CHU or --disable-CHU was given. 8232if test "${enable_CHU+set}" = set; then 8233 enableval="$enable_CHU" 8234 ntp_ok=$enableval 8235else 8236 ntp_ok=$ntp_eac 8237fi 8238 8239if test "$ntp_ok" = "yes"; then 8240 ntp_refclock=yes 8241 cat >> confdefs.h <<\EOF 8242#define CLOCK_CHU 1 8243EOF 8244 8245fi 8246echo "$ac_t""$ntp_ok" 1>&6 8247ac_refclock_chu=$ntp_ok 8248 8249echo $ac_n "checking CHU audio/decoder""... $ac_c" 1>&6 8250echo "configure:8251: checking CHU audio/decoder" >&5 8251# Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given. 8252if test "${enable_AUDIO_CHU+set}" = set; then 8253 enableval="$enable_AUDIO_CHU" 8254 ntp_ok=$enableval 8255else 8256 ntp_ok=no 8257fi 8258 8259if test "$ntp_ok" = "yes"; then 8260 cat >> confdefs.h <<\EOF 8261#define AUDIO_CHU 1 8262EOF 8263 8264fi 8265echo "$ac_t""$ntp_ok" 1>&6 8266case "$ntp_ok$ac_refclock_chu$target" in 8267 yesyes*-*-sunos*) ;; 8268 yesyes*-*-solaris*) ;; 8269 yes*) echo "configure: warning: *** But the expected answer is...no ***" 1>&2 ;; 8270esac 8271 8272# Not under HP-UX 8273echo $ac_n "checking Datum Programmable Time System""... $ac_c" 1>&6 8274echo "configure:8275: checking Datum Programmable Time System" >&5 8275# Check whether --enable-DATUM or --disable-DATUM was given. 8276if test "${enable_DATUM+set}" = set; then 8277 enableval="$enable_DATUM" 8278 ntp_ok=$enableval 8279else 8280 case "$ac_cv_header_termios_h" in 8281 yes) 8282 ntp_ok=$ntp_eac 8283 ;; 8284 *) ntp_ok=no 8285 ;; 8286 esac 8287fi 8288 8289if test "$ntp_ok" = "yes"; then 8290 ntp_refclock=yes 8291 cat >> confdefs.h <<\EOF 8292#define CLOCK_DATUM 1 8293EOF 8294 8295fi 8296echo "$ac_t""$ntp_ok" 1>&6 8297 8298# Requires modem control 8299echo $ac_n "checking Heath GC-1000 WWV/WWVH receiver""... $ac_c" 1>&6 8300echo "configure:8301: checking Heath GC-1000 WWV/WWVH receiver" >&5 8301# Check whether --enable-HEATH or --disable-HEATH was given. 8302if test "${enable_HEATH+set}" = set; then 8303 enableval="$enable_HEATH" 8304 ntp_ok=$enableval 8305else 8306 cat > conftest.$ac_ext <<EOF 8307#line 8308 "configure" 8308#include "confdefs.h" 8309#include <termios.h> 8310#ifdef HAVE_SYS_IOCTL_H 8311#include <sys/ioctl.h> 8312#endif 8313#ifdef TIOCMBIS 8314 yes 8315#endif 8316 8317EOF 8318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8319 egrep "yes" >/dev/null 2>&1; then 8320 rm -rf conftest* 8321 ntp_ok=$ntp_eac 8322else 8323 rm -rf conftest* 8324 ntp_ok=no 8325fi 8326rm -f conftest* 8327 8328fi 8329 8330if test "$ntp_ok" = "yes"; then 8331 ntp_refclock=yes 8332 cat >> confdefs.h <<\EOF 8333#define CLOCK_HEATH 1 8334EOF 8335 8336fi 8337echo "$ac_t""$ntp_ok" 1>&6 8338 8339echo $ac_n "checking HP 58503A GPS receiver""... $ac_c" 1>&6 8340echo "configure:8341: checking HP 58503A GPS receiver" >&5 8341# Check whether --enable-HPGPS or --disable-HPGPS was given. 8342if test "${enable_HPGPS+set}" = set; then 8343 enableval="$enable_HPGPS" 8344 ntp_ok=$enableval 8345else 8346 ntp_ok=$ntp_eac 8347fi 8348 8349if test "$ntp_ok" = "yes"; then 8350 ntp_refclock=yes 8351 cat >> confdefs.h <<\EOF 8352#define CLOCK_HPGPS 1 8353EOF 8354 8355fi 8356echo "$ac_t""$ntp_ok" 1>&6 8357 8358echo $ac_n "checking Sun IRIG audio decoder""... $ac_c" 1>&6 8359echo "configure:8360: checking Sun IRIG audio decoder" >&5 8360# Check whether --enable-IRIG or --disable-IRIG was given. 8361if test "${enable_IRIG+set}" = set; then 8362 enableval="$enable_IRIG" 8363 ntp_ok=$enableval 8364else 8365 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in 8366 *yes*) 8367 ntp_ok=$ntp_eac 8368 ;; 8369 *) ntp_ok=no 8370 ;; 8371 esac 8372fi 8373 8374if test "$ntp_ok" = "yes"; then 8375 ntp_refclock=yes 8376 cat >> confdefs.h <<\EOF 8377#define CLOCK_IRIG 1 8378EOF 8379 8380fi 8381echo "$ac_t""$ntp_ok" 1>&6 8382case "$ntp_ok$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in 8383 yesnono) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;; 8384esac 8385 8386echo $ac_n "checking Leitch CSD 5300 Master Clock System Driver""... $ac_c" 1>&6 8387echo "configure:8388: checking Leitch CSD 5300 Master Clock System Driver" >&5 8388# Check whether --enable-LEITCH or --disable-LEITCH was given. 8389if test "${enable_LEITCH+set}" = set; then 8390 enableval="$enable_LEITCH" 8391 ntp_ok=$enableval 8392else 8393 ntp_ok=$ntp_eac 8394fi 8395 8396if test "$ntp_ok" = "yes"; then 8397 ntp_refclock=yes 8398 cat >> confdefs.h <<\EOF 8399#define CLOCK_LEITCH 1 8400EOF 8401 8402fi 8403echo "$ac_t""$ntp_ok" 1>&6 8404 8405echo $ac_n "checking local clock reference""... $ac_c" 1>&6 8406echo "configure:8407: checking local clock reference" >&5 8407# Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given. 8408if test "${enable_LOCAL_CLOCK+set}" = set; then 8409 enableval="$enable_LOCAL_CLOCK" 8410 ntp_ok=$enableval 8411else 8412 ntp_ok=$ntp_eac 8413fi 8414 8415if test "$ntp_ok" = "yes"; then 8416 ntp_refclock=yes 8417 cat >> confdefs.h <<\EOF 8418#define CLOCK_LOCAL 1 8419EOF 8420 8421fi 8422echo "$ac_t""$ntp_ok" 1>&6 8423 8424echo $ac_n "checking EES M201 MSF receiver""... $ac_c" 1>&6 8425echo "configure:8426: checking EES M201 MSF receiver" >&5 8426# Check whether --enable-MSFEES or --disable-MSFEES was given. 8427if test "${enable_MSFEES+set}" = set; then 8428 enableval="$enable_MSFEES" 8429 ntp_ok=$enableval 8430else 8431 ntp_ok=$ntp_eac 8432fi 8433 8434if test "$ntp_ok" = "yes"; then 8435 ntp_refclock=yes 8436 cat >> confdefs.h <<\EOF 8437#define CLOCK_MSFEES 1 8438EOF 8439 8440fi 8441echo "$ac_t""$ntp_ok" 1>&6 8442 8443# Not Ultrix 8444echo $ac_n "checking Magnavox MX4200 GPS receiver""... $ac_c" 1>&6 8445echo "configure:8446: checking Magnavox MX4200 GPS receiver" >&5 8446# Check whether --enable-MX4200 or --disable-MX4200 was given. 8447if test "${enable_MX4200+set}" = set; then 8448 enableval="$enable_MX4200" 8449 ntp_ok=$enableval 8450else 8451 case "$ac_cv_var_ppsclock" in 8452 yes) ntp_ok=$ntp_eac 8453 ;; 8454 *) ntp_ok=no 8455 ;; 8456 esac 8457fi 8458 8459if test "$ntp_ok" = "yes"; then 8460 ntp_refclock=yes 8461 cat >> confdefs.h <<\EOF 8462#define CLOCK_MX4200 1 8463EOF 8464 8465fi 8466echo "$ac_t""$ntp_ok" 1>&6 8467case "$ntp_ok$target" in 8468 yes*-*-ultrix*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;; 8469esac 8470 8471echo $ac_n "checking NMEA GPS receiver""... $ac_c" 1>&6 8472echo "configure:8473: checking NMEA GPS receiver" >&5 8473# Check whether --enable-NMEA or --disable-NMEA was given. 8474if test "${enable_NMEA+set}" = set; then 8475 enableval="$enable_NMEA" 8476 ntp_ok=$enableval 8477else 8478 ntp_ok=$ntp_eac 8479fi 8480 8481if test "$ntp_ok" = "yes"; then 8482 ntp_refclock=yes 8483 cat >> confdefs.h <<\EOF 8484#define CLOCK_NMEA 1 8485EOF 8486 8487fi 8488echo "$ac_t""$ntp_ok" 1>&6 8489 8490echo $ac_n "checking for ONCORE Motorola VP/UT Oncore GPS""... $ac_c" 1>&6 8491echo "configure:8492: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 8492# Check whether --enable-ONCORE or --disable-ONCORE was given. 8493if test "${enable_ONCORE+set}" = set; then 8494 enableval="$enable_ONCORE" 8495 ntp_ok=$enableval 8496else 8497 ntp_ok=$ntp_eac 8498fi 8499 8500case "$ac_cv_var_oncore_ok" in 8501 no) ntp_ok=no ;; 8502esac 8503if test "$ntp_ok" = "yes"; then 8504 ntp_refclock=yes 8505 cat >> confdefs.h <<\EOF 8506#define CLOCK_ONCORE 1 8507EOF 8508 8509fi 8510echo "$ac_t""$ntp_ok" 1>&6 8511 8512echo $ac_n "checking for Palisade clock""... $ac_c" 1>&6 8513echo "configure:8514: checking for Palisade clock" >&5 8514# Check whether --enable-PALISADE or --disable-PALISADE was given. 8515if test "${enable_PALISADE+set}" = set; then 8516 enableval="$enable_PALISADE" 8517 ntp_ok=$enableval 8518else 8519 case "$ac_cv_header_termios_h" in 8520 yes) 8521 ntp_ok=$ntp_eac 8522 ;; 8523 *) ntp_ok=no 8524 ;; 8525 esac 8526fi 8527 8528 8529if test "$ntp_ok" = "yes"; then 8530 ntp_refclock=yes 8531 cat >> confdefs.h <<\EOF 8532#define CLOCK_PALISADE 1 8533EOF 8534 8535fi 8536echo "$ac_t""$ntp_ok" 1>&6 8537 8538echo $ac_n "checking PST/Traconex 1020 WWV/WWVH receiver""... $ac_c" 1>&6 8539echo "configure:8540: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 8540# Check whether --enable-PST or --disable-PST was given. 8541if test "${enable_PST+set}" = set; then 8542 enableval="$enable_PST" 8543 ntp_ok=$enableval 8544else 8545 ntp_ok=$ntp_eac 8546fi 8547 8548if test "$ntp_ok" = "yes"; then 8549 ntp_refclock=yes 8550 cat >> confdefs.h <<\EOF 8551#define CLOCK_PST 1 8552EOF 8553 8554fi 8555echo "$ac_t""$ntp_ok" 1>&6 8556 8557# Not Ultrix 8558echo $ac_n "checking Rockwell Jupiter GPS receiver""... $ac_c" 1>&6 8559echo "configure:8560: checking Rockwell Jupiter GPS receiver" >&5 8560# Check whether --enable-JUPITER or --disable-JUPITER was given. 8561if test "${enable_JUPITER+set}" = set; then 8562 enableval="$enable_JUPITER" 8563 ntp_ok=$enableval 8564else 8565 case "$ac_cv_var_ppsclock" in 8566# yes) ntp_ok=$ntp_eac 8567# ;; 8568 *) ntp_ok=no 8569 ;; 8570 esac 8571fi 8572 8573if test "$ntp_ok" = "yes"; then 8574 ntp_refclock=yes 8575 cat >> confdefs.h <<\EOF 8576#define CLOCK_JUPITER 1 8577EOF 8578 8579fi 8580echo "$ac_t""$ntp_ok" 1>&6 8581case "$ntp_ok$target" in 8582 yes*-*-ultrix*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;; 8583esac 8584 8585# Requires modem control 8586echo $ac_n "checking PTB modem service""... $ac_c" 1>&6 8587echo "configure:8588: checking PTB modem service" >&5 8588# Check whether --enable-PTBACTS or --disable-PTBACTS was given. 8589if test "${enable_PTBACTS+set}" = set; then 8590 enableval="$enable_PTBACTS" 8591 ntp_ok=$enableval 8592else 8593 cat > conftest.$ac_ext <<EOF 8594#line 8595 "configure" 8595#include "confdefs.h" 8596#include <termios.h> 8597#ifdef HAVE_SYS_IOCTL_H 8598#include <sys/ioctl.h> 8599#endif 8600#ifdef TIOCMBIS 8601 yes 8602#endif 8603 8604EOF 8605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8606 egrep "yes" >/dev/null 2>&1; then 8607 rm -rf conftest* 8608 ntp_ok=$ntp_eac 8609else 8610 rm -rf conftest* 8611 ntp_ok=no 8612fi 8613rm -f conftest* 8614 8615fi 8616 8617if test "$ntp_ok" = "yes"; then 8618 ntp_refclock=yes 8619 cat >> confdefs.h <<\EOF 8620#define CLOCK_PTBACTS 1 8621EOF 8622 8623fi 8624echo "$ac_t""$ntp_ok" 1>&6 8625 8626echo $ac_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface""... $ac_c" 1>&6 8627echo "configure:8628: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 8628# Check whether --enable-TPRO or --disable-TPRO was given. 8629if test "${enable_TPRO+set}" = set; then 8630 enableval="$enable_TPRO" 8631 ntp_ok=$enableval 8632else 8633 case "$ac_cv_header_sys_tpro_h" in 8634 yes) 8635 ntp_ok=$ntp_eac 8636 ;; 8637 *) ntp_ok=no 8638 ;; 8639 esac 8640fi 8641 8642if test "$ntp_ok" = "yes"; then 8643 ntp_refclock=yes 8644 cat >> confdefs.h <<\EOF 8645#define CLOCK_TPRO 1 8646EOF 8647 8648fi 8649echo "$ac_t""$ntp_ok" 1>&6 8650case "$ntp_ok$ac_cv_header_sys_tpro" in 8651 yesno) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;; 8652esac 8653 8654echo $ac_n "checking TRAK 8810 GPS receiver""... $ac_c" 1>&6 8655echo "configure:8656: checking TRAK 8810 GPS receiver" >&5 8656# Check whether --enable-TRAK or --disable-TRAK was given. 8657if test "${enable_TRAK+set}" = set; then 8658 enableval="$enable_TRAK" 8659 ntp_ok=$enableval 8660else 8661 ntp_ok=$ntp_eac 8662fi 8663 8664if test "$ntp_ok" = "yes"; then 8665 ntp_refclock=yes 8666 cat >> confdefs.h <<\EOF 8667#define CLOCK_TRAK 1 8668EOF 8669 8670fi 8671echo "$ac_t""$ntp_ok" 1>&6 8672 8673echo $ac_n "checking Chrono-log K-series WWVB receiver""... $ac_c" 1>&6 8674echo "configure:8675: checking Chrono-log K-series WWVB receiver" >&5 8675# Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given. 8676if test "${enable_CHRONOLOG+set}" = set; then 8677 enableval="$enable_CHRONOLOG" 8678 ntp_ok=$enableval 8679else 8680 ntp_ok=$ntp_eac 8681fi 8682 8683if test "$ntp_ok" = "yes"; then 8684 ntp_refclock=yes 8685 cat >> confdefs.h <<\EOF 8686#define CLOCK_CHRONOLOG 1 8687EOF 8688 8689fi 8690echo "$ac_t""$ntp_ok" 1>&6 8691 8692echo $ac_n "checking Dumb generic hh:mm:ss local clock""... $ac_c" 1>&6 8693echo "configure:8694: checking Dumb generic hh:mm:ss local clock" >&5 8694# Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given. 8695if test "${enable_DUMBCLOCK+set}" = set; then 8696 enableval="$enable_DUMBCLOCK" 8697 ntp_ok=$enableval 8698else 8699 ntp_ok=$ntp_eac 8700fi 8701 8702if test "$ntp_ok" = "yes"; then 8703 ntp_refclock=yes 8704 cat >> confdefs.h <<\EOF 8705#define CLOCK_DUMBCLOCK 1 8706EOF 8707 8708fi 8709echo "$ac_t""$ntp_ok" 1>&6 8710 8711# Not on a vax-dec-bsd 8712echo $ac_n "checking Kinemetrics/TrueTime receivers""... $ac_c" 1>&6 8713echo "configure:8714: checking Kinemetrics/TrueTime receivers" >&5 8714# Check whether --enable-TRUETIME or --disable-TRUETIME was given. 8715if test "${enable_TRUETIME+set}" = set; then 8716 enableval="$enable_TRUETIME" 8717 ntp_ok=$enableval 8718else 8719 case "$target" in 8720 vax-dec-bsd) 8721 ntp_ok=no 8722 ;; 8723 *) 8724 ntp_ok=$ntp_eac 8725 ;; 8726 esac 8727fi 8728 8729if test "$ntp_ok" = "yes"; then 8730 ntp_refclock=yes 8731 cat >> confdefs.h <<\EOF 8732#define CLOCK_TRUETIME 1 8733EOF 8734 8735fi 8736echo "$ac_t""$ntp_ok" 1>&6 8737case "$ntp_ok$target" in 8738 yesvax-dec-bsd) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;; 8739esac 8740 8741echo $ac_n "checking Spectracom 8170/Netclock/2 WWVB receiver""... $ac_c" 1>&6 8742echo "configure:8743: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 8743# Check whether --enable-WWVB or --disable-WWVB was given. 8744if test "${enable_WWVB+set}" = set; then 8745 enableval="$enable_WWVB" 8746 ntp_ok=$enableval 8747else 8748 ntp_ok=$ntp_eac 8749fi 8750 8751if test "$ntp_ok" = "yes"; then 8752 ntp_refclock=yes 8753 cat >> confdefs.h <<\EOF 8754#define CLOCK_WWVB 1 8755EOF 8756 8757fi 8758echo "$ac_t""$ntp_ok" 1>&6 8759 8760echo $ac_n "checking Ultralink M320 WWVB receiver""... $ac_c" 1>&6 8761echo "configure:8762: checking Ultralink M320 WWVB receiver" >&5 8762# Check whether --enable-ULINK or --disable-ULINK was given. 8763if test "${enable_ULINK+set}" = set; then 8764 enableval="$enable_ULINK" 8765 ntp_ok=$enableval 8766else 8767 ntp_ok=$ntp_eac 8768fi 8769 8770if test "$ntp_ok" = "yes"; then 8771 ntp_refclock=yes 8772 cat >> confdefs.h <<\EOF 8773#define CLOCK_ULINK 1 8774EOF 8775 8776fi 8777echo "$ac_t""$ntp_ok" 1>&6 8778 8779# Requires modem control 8780echo $ac_n "checking USNO modem service""... $ac_c" 1>&6 8781echo "configure:8782: checking USNO modem service" >&5 8782# Check whether --enable-USNO or --disable-USNO was given. 8783if test "${enable_USNO+set}" = set; then 8784 enableval="$enable_USNO" 8785 ntp_ok=$enableval 8786else 8787 cat > conftest.$ac_ext <<EOF 8788#line 8789 "configure" 8789#include "confdefs.h" 8790#include <termios.h> 8791#ifdef HAVE_SYS_IOCTL_H 8792#include <sys/ioctl.h> 8793#endif 8794#ifdef TIOCMBIS 8795 yes 8796#endif 8797 8798EOF 8799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8800 egrep "yes" >/dev/null 2>&1; then 8801 rm -rf conftest* 8802 ntp_ok=$ntp_eac 8803else 8804 rm -rf conftest* 8805 ntp_ok=no 8806fi 8807rm -f conftest* 8808 8809fi 8810 8811if test "$ntp_ok" = "yes"; then 8812 ntp_refclock=yes 8813 cat >> confdefs.h <<\EOF 8814#define CLOCK_USNO 1 8815EOF 8816 8817fi 8818echo "$ac_t""$ntp_ok" 1>&6 8819 8820echo $ac_n "checking for default inclusion of all suitable PARSE clocks""... $ac_c" 1>&6 8821echo "configure:8822: checking for default inclusion of all suitable PARSE clocks" >&5 8822# Check whether --enable-parse-clocks or --disable-parse-clocks was given. 8823if test "${enable_parse_clocks+set}" = set; then 8824 enableval="$enable_parse_clocks" 8825 ntp_eapc=$enableval 8826else 8827 case "$ntp_eac" in 8828 yes) ntp_eapc=$ntp_canparse ;; 8829 *) ntp_eapc=no ;; 8830 esac 8831 ntp_eapc=no 8832fi 8833 8834echo "$ac_t""$ntp_eapc" 1>&6 8835 8836case "$ntp_eac$ntp_eapc$ntp_canparse" in 8837 noyes*) 8838 { echo "configure: error: "--enable-parse-clocks" requires "--enable-all-clocks"." 1>&2; exit 1; } 8839 ;; 8840 yesyesno) 8841 { echo "configure: error: You said "--enable-parse-clocks" but PARSE isn't supported on this platform!" 1>&2; exit 1; } 8842 ;; 8843 *) ;; 8844esac 8845 8846ntp_libparse=no 8847ntp_parseutil=no 8848ntp_rawdcf=no 8849 8850echo $ac_n "checking Diem Computime Radio Clock""... $ac_c" 1>&6 8851echo "configure:8852: checking Diem Computime Radio Clock" >&5 8852# Check whether --enable-COMPUTIME or --disable-COMPUTIME was given. 8853if test "${enable_COMPUTIME+set}" = set; then 8854 enableval="$enable_COMPUTIME" 8855 ntp_ok=$enableval 8856else 8857 ntp_ok=$ntp_eapc 8858fi 8859 8860if test "$ntp_ok" = "yes"; then 8861 ntp_libparse=yes 8862 ntp_refclock=yes 8863 cat >> confdefs.h <<\EOF 8864#define CLOCK_COMPUTIME 1 8865EOF 8866 8867fi 8868echo "$ac_t""$ntp_ok" 1>&6 8869case "$ntp_ok$ntp_canparse" in 8870 yesno) 8871 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 8872 ;; 8873esac 8874 8875echo $ac_n "checking ELV/DCF7000 clock""... $ac_c" 1>&6 8876echo "configure:8877: checking ELV/DCF7000 clock" >&5 8877# Check whether --enable-DCF7000 or --disable-DCF7000 was given. 8878if test "${enable_DCF7000+set}" = set; then 8879 enableval="$enable_DCF7000" 8880 ntp_ok=$enableval 8881else 8882 ntp_ok=$ntp_eapc 8883fi 8884 8885if test "$ntp_ok" = "yes"; then 8886 ntp_libparse=yes 8887 ntp_refclock=yes 8888 cat >> confdefs.h <<\EOF 8889#define CLOCK_DCF7000 1 8890EOF 8891 8892fi 8893echo "$ac_t""$ntp_ok" 1>&6 8894case "$ntp_ok$ntp_canparse" in 8895 yesno) 8896 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 8897 ;; 8898esac 8899 8900echo $ac_n "checking HOPF 6021 clock""... $ac_c" 1>&6 8901echo "configure:8902: checking HOPF 6021 clock" >&5 8902# Check whether --enable-HOPF6021 or --disable-HOPF6021 was given. 8903if test "${enable_HOPF6021+set}" = set; then 8904 enableval="$enable_HOPF6021" 8905 ntp_ok=$enableval 8906else 8907 ntp_ok=$ntp_eapc 8908fi 8909 8910if test "$ntp_ok" = "yes"; then 8911 ntp_libparse=yes 8912 ntp_refclock=yes 8913 cat >> confdefs.h <<\EOF 8914#define CLOCK_HOPF6021 1 8915EOF 8916 8917fi 8918echo "$ac_t""$ntp_ok" 1>&6 8919case "$ntp_ok$ntp_canparse" in 8920 yesno) 8921 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 8922 ;; 8923esac 8924 8925echo $ac_n "checking Meinberg clocks""... $ac_c" 1>&6 8926echo "configure:8927: checking Meinberg clocks" >&5 8927# Check whether --enable-MEINBERG or --disable-MEINBERG was given. 8928if test "${enable_MEINBERG+set}" = set; then 8929 enableval="$enable_MEINBERG" 8930 ntp_ok=$enableval 8931else 8932 ntp_ok=$ntp_eapc 8933fi 8934 8935if test "$ntp_ok" = "yes"; then 8936 ntp_libparse=yes 8937 ntp_refclock=yes 8938 cat >> confdefs.h <<\EOF 8939#define CLOCK_MEINBERG 1 8940EOF 8941 8942fi 8943echo "$ac_t""$ntp_ok" 1>&6 8944case "$ntp_ok$ntp_canparse" in 8945 yesno) 8946 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 8947 ;; 8948esac 8949 8950echo $ac_n "checking DCF77 raw time code""... $ac_c" 1>&6 8951echo "configure:8952: checking DCF77 raw time code" >&5 8952# Check whether --enable-RAWDCF or --disable-RAWDCF was given. 8953if test "${enable_RAWDCF+set}" = set; then 8954 enableval="$enable_RAWDCF" 8955 ntp_ok=$enableval 8956else 8957 ntp_ok=$ntp_eapc 8958fi 8959 8960if test "$ntp_ok" = "yes"; then 8961 ntp_libparse=yes 8962 ntp_parseutil=yes 8963 ntp_refclock=yes 8964 ntp_rawdcf=yes 8965 cat >> confdefs.h <<\EOF 8966#define CLOCK_RAWDCF 1 8967EOF 8968 8969fi 8970echo "$ac_t""$ntp_ok" 1>&6 8971case "$ntp_ok$ntp_canparse" in 8972 yesno) 8973 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 8974 ;; 8975esac 8976 8977case "$ntp_rawdcf" in 8978 yes) 8979 echo $ac_n "checking if we must enable parity for RAWDCF""... $ac_c" 1>&6 8980echo "configure:8981: checking if we must enable parity for RAWDCF" >&5 8981if eval "test \"\${ac_cv_var_rawdcf_parity+set}\" = set"; then 8982 echo $ac_n "(cached) $ac_c" 1>&6 8983else 8984 ans=no 8985 case "$target" in 8986 *-*-linux*) 8987 ans=yes 8988 ;; 8989 esac 8990 ac_cv_var_rawdcf_parity=$ans 8991fi 8992 8993echo "$ac_t""$ac_cv_var_rawdcf_parity" 1>&6 8994 case "$ac_cv_var_rawdcf_parity" in 8995 yes) cat >> confdefs.h <<\EOF 8996#define RAWDCF_NO_IGNPAR 1 8997EOF 8998 ;; 8999 esac 9000 ;; 9001 9002 *) # HMS: Is this a good idea? 9003 ac_cv_var_rawdcf_parity=no 9004 ;; 9005esac 9006 9007echo $ac_n "checking RCC 8000 clock""... $ac_c" 1>&6 9008echo "configure:9009: checking RCC 8000 clock" >&5 9009# Check whether --enable-RCC8000 or --disable-RCC8000 was given. 9010if test "${enable_RCC8000+set}" = set; then 9011 enableval="$enable_RCC8000" 9012 ntp_ok=$enableval 9013else 9014 ntp_ok=$ntp_eapc 9015fi 9016 9017if test "$ntp_ok" = "yes"; then 9018 ntp_libparse=yes 9019 ntp_refclock=yes 9020 cat >> confdefs.h <<\EOF 9021#define CLOCK_RCC8000 1 9022EOF 9023 9024fi 9025echo "$ac_t""$ntp_ok" 1>&6 9026case "$ntp_ok$ntp_canparse" in 9027 yesno) 9028 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 9029 ;; 9030esac 9031 9032echo $ac_n "checking Schmid DCF77 clock""... $ac_c" 1>&6 9033echo "configure:9034: checking Schmid DCF77 clock" >&5 9034# Check whether --enable-SCHMID or --disable-SCHMID was given. 9035if test "${enable_SCHMID+set}" = set; then 9036 enableval="$enable_SCHMID" 9037 ntp_ok=$enableval 9038else 9039 ntp_ok=$ntp_eapc 9040fi 9041 9042if test "$ntp_ok" = "yes"; then 9043 ntp_libparse=yes 9044 ntp_refclock=yes 9045 cat >> confdefs.h <<\EOF 9046#define CLOCK_SCHMID 1 9047EOF 9048 9049fi 9050echo "$ac_t""$ntp_ok" 1>&6 9051case "$ntp_ok$ntp_canparse" in 9052 yesno) 9053 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 9054 ;; 9055esac 9056 9057echo $ac_n "checking Trimble GPS receiver/TAIP protocol""... $ac_c" 1>&6 9058echo "configure:9059: checking Trimble GPS receiver/TAIP protocol" >&5 9059# Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given. 9060if test "${enable_TRIMTAIP+set}" = set; then 9061 enableval="$enable_TRIMTAIP" 9062 ntp_ok=$enableval 9063else 9064 ntp_ok=$ntp_eapc 9065fi 9066 9067if test "$ntp_ok" = "yes"; then 9068 ntp_libparse=yes 9069 ntp_refclock=yes 9070 cat >> confdefs.h <<\EOF 9071#define CLOCK_TRIMTAIP 1 9072EOF 9073 9074fi 9075echo "$ac_t""$ntp_ok" 1>&6 9076case "$ntp_ok$ntp_canparse" in 9077 yesno) 9078 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 9079 ;; 9080esac 9081 9082echo $ac_n "checking Trimble GPS receiver/TSIP protocol""... $ac_c" 1>&6 9083echo "configure:9084: checking Trimble GPS receiver/TSIP protocol" >&5 9084# Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given. 9085if test "${enable_TRIMTSIP+set}" = set; then 9086 enableval="$enable_TRIMTSIP" 9087 ntp_ok=$enableval 9088else 9089 ntp_ok=$ntp_eapc 9090fi 9091 9092if test "$ntp_ok" = "yes"; then 9093 ntp_libparse=yes 9094 ntp_refclock=yes 9095 cat >> confdefs.h <<\EOF 9096#define CLOCK_TRIMTSIP 1 9097EOF 9098 9099fi 9100echo "$ac_t""$ntp_ok" 1>&6 9101case "$ntp_ok$ntp_canparse" in 9102 yesno) 9103 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 9104 ;; 9105esac 9106 9107echo $ac_n "checking WHARTON 400A Series clock""... $ac_c" 1>&6 9108echo "configure:9109: checking WHARTON 400A Series clock" >&5 9109# Check whether --enable-WHARTON or --disable-WHARTON was given. 9110if test "${enable_WHARTON+set}" = set; then 9111 enableval="$enable_WHARTON" 9112 ntp_ok=$enableval 9113else 9114 ntp_ok=$ntp_eapc 9115fi 9116 9117if test "$ntp_ok" = "yes"; then 9118 ntp_libparse=yes 9119 ntp_refclock=yes 9120 cat >> confdefs.h <<\EOF 9121#define CLOCK_WHARTON_400A 1 9122EOF 9123 9124fi 9125echo "$ac_t""$ntp_ok" 1>&6 9126case "$ntp_ok$ntp_canparse" in 9127 yesno) 9128 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 9129 ;; 9130esac 9131 9132echo $ac_n "checking VARITEXT clock""... $ac_c" 1>&6 9133echo "configure:9134: checking VARITEXT clock" >&5 9134# Check whether --enable-VARITEXT or --disable-VARITEXT was given. 9135if test "${enable_VARITEXT+set}" = set; then 9136 enableval="$enable_VARITEXT" 9137 ntp_ok=$enableval 9138else 9139 ntp_ok=$ntp_eapc 9140fi 9141 9142if test "$ntp_ok" = "yes"; then 9143 ntp_libparse=yes 9144 ntp_refclock=yes 9145 cat >> confdefs.h <<\EOF 9146#define CLOCK_VARITEXT 1 9147EOF 9148 9149fi 9150echo "$ac_t""$ntp_ok" 1>&6 9151case "$ntp_ok$ntp_canparse" in 9152 yesno) 9153 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; } 9154 ;; 9155esac 9156 9157 9158 9159 9160echo $ac_n "checking if we need to make and use the parse libraries""... $ac_c" 1>&6 9161echo "configure:9162: checking if we need to make and use the parse libraries" >&5 9162ans=no 9163case "$ntp_libparse" in 9164 yes) 9165 ans=yes 9166 cat >> confdefs.h <<\EOF 9167#define CLOCK_PARSE 1 9168EOF 9169 9170 LIBPARSE=../libparse/libparse.a 9171 MAKE_LIBPARSE=libparse.a 9172 MAKE_CHECK_Y2K=check_y2k 9173 cat >> confdefs.h <<\EOF 9174#define PPS_SAMPLE 1 9175EOF 9176 9177 cat >> confdefs.h <<\EOF 9178#define CLOCK_ATOM 1 9179EOF 9180 9181 ;; 9182esac 9183echo "$ac_t""$ans" 1>&6 9184 9185 9186 9187 9188echo $ac_n "checking if we need to make and use the RSAREF library""... $ac_c" 1>&6 9189echo "configure:9190: checking if we need to make and use the RSAREF library" >&5 9190ans=no 9191if test -f $srcdir/rsaref2/source/rsa.c 9192then 9193 ans=yes 9194 LIBRSAREF=../librsaref/librsaref.a 9195 MAKE_LIBRSAREF=librsaref.a 9196 cat >> confdefs.h <<\EOF 9197#define DES 1 9198EOF 9199 9200fi 9201echo "$ac_t""$ans" 1>&6 9202 9203 9204 9205 9206echo $ac_n "checking if we can make dcf parse utilities""... $ac_c" 1>&6 9207echo "configure:9208: checking if we can make dcf parse utilities" >&5 9208ans=no 9209if test "$ntp_parseutil" = "yes"; then 9210 case "$target" in 9211 *-*-sunos4*|*-*-solaris2*|*-*-linux*) 9212 ans="dcfd testdcf" 9213 DCFD=dcfd 9214 TESTDCF=testdcf 9215 ;; 9216 esac 9217fi 9218echo "$ac_t""$ans" 1>&6 9219 9220 9221echo $ac_n "checking if we can build kernel streams modules for parse""... $ac_c" 1>&6 9222echo "configure:9223: checking if we can build kernel streams modules for parse" >&5 9223ans=no 9224case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 9225 yesyes) 9226 case "$target" in 9227 sparc-*-sunos4*) 9228 case "$ac_cv_var_kernel_pll" in 9229 yes) 9230 cat >> confdefs.h <<\EOF 9231#define PPS_SYNC 1 9232EOF 9233 9234 ;; 9235 esac 9236 ans=parsestreams 9237 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 9238 ;; 9239 sparc-*-solaris2*) 9240 ans=parsesolaris 9241 MAKE_PARSEKMODULE=parse 9242 ;; 9243 esac 9244 ;; 9245esac 9246echo "$ac_t""$ans" 1>&6 9247 9248echo $ac_n "checking if we need basic refclock support""... $ac_c" 1>&6 9249echo "configure:9250: checking if we need basic refclock support" >&5 9250if test "$ntp_refclock" = "yes"; then 9251 cat >> confdefs.h <<\EOF 9252#define REFCLOCK 1 9253EOF 9254 9255fi 9256echo "$ac_t""$ntp_refclock" 1>&6 9257 9258 9259 9260echo $ac_n "checking if we want HP-UX adjtimed support""... $ac_c" 1>&6 9261echo "configure:9262: checking if we want HP-UX adjtimed support" >&5 9262case "$target" in 9263 *-*-hpux[56789]*) 9264 ans=yes 9265 ;; 9266 *) ans=no 9267 ;; 9268esac 9269if test "$ans" = "yes"; then 9270 MAKE_ADJTIMED=adjtimed 9271 cat >> confdefs.h <<\EOF 9272#define NEED_HPUX_ADJTIME 1 9273EOF 9274 9275fi 9276echo "$ac_t""$ans" 1>&6 9277 9278echo $ac_n "checking if we can read kmem""... $ac_c" 1>&6 9279echo "configure:9280: checking if we can read kmem" >&5 9280if eval "test \"\${ac_cv_var_can_kmem+set}\" = set"; then 9281 echo $ac_n "(cached) $ac_c" 1>&6 9282else 9283 # Check whether --enable-kmem or --disable-kmem was given. 9284if test "${enable_kmem+set}" = set; then 9285 enableval="$enable_kmem" 9286 ans=$enableval 9287else 9288 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 9289 *yes*) 9290 ans=yes 9291 ;; 9292 *) ans=no 9293 ;; 9294 esac 9295 case "$target" in 9296 *-*-aix*) 9297 #ans=no 9298 ;; 9299 *-*-domainos) # Won't be found... 9300 ans=no 9301 ;; 9302 *-*-hpux*) 9303 #ans=no 9304 ;; 9305 *-*-irix[456]*) 9306 ans=no 9307 ;; 9308 *-*-linux*) 9309 ans=no 9310 ;; 9311 *-*-winnt3.5) 9312 ans=no 9313 ;; 9314 esac 9315 9316fi 9317 9318ac_cv_var_can_kmem=$ans 9319fi 9320 9321echo "$ac_t""$ac_cv_var_can_kmem" 1>&6 9322 9323case "$ac_cv_var_can_kmem" in 9324 *yes*) ;; 9325 *) cat >> confdefs.h <<\EOF 9326#define NOKMEM 1 9327EOF 9328 ;; 9329esac 9330 9331echo $ac_n "checking if adjtime is accurate""... $ac_c" 1>&6 9332echo "configure:9333: checking if adjtime is accurate" >&5 9333if eval "test \"\${ac_cv_var_adjtime_is_accurate+set}\" = set"; then 9334 echo $ac_n "(cached) $ac_c" 1>&6 9335else 9336 # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given. 9337if test "${enable_accurate_adjtime+set}" = set; then 9338 enableval="$enable_accurate_adjtime" 9339 ans=$enableval 9340else 9341 case "$target" in 9342 i386-sequent-ptx*) 9343 ans=no 9344 ;; 9345 i386-unknown-osf1*) 9346 ans=yes 9347 ;; 9348 mips-sgi-irix[456]*) 9349 ans=yes 9350 ;; 9351 *-fujitsu-uxp*) 9352 ans=yes 9353 ;; 9354 *-ibm-aix4*) 9355 ans=yes 9356 ;; 9357 *-*-linux*) 9358 ans=yes 9359 ;; 9360 *-*-solaris2.[01]*) 9361 ans=no 9362 ;; 9363 *-*-solaris2*) 9364 ans=yes 9365 ;; 9366 *) ans=no 9367 ;; 9368 esac 9369 9370fi 9371 9372ac_cv_var_adjtime_is_accurate=$ans 9373fi 9374 9375echo "$ac_t""$ac_cv_var_adjtime_is_accurate" 1>&6 9376case "$ac_cv_var_adjtime_is_accurate" in 9377 yes) cat >> confdefs.h <<\EOF 9378#define ADJTIME_IS_ACCURATE 1 9379EOF 9380 ;; 9381esac 9382 9383echo $ac_n "checking the name of 'tick' in the kernel""... $ac_c" 1>&6 9384echo "configure:9385: checking the name of 'tick' in the kernel" >&5 9385if eval "test \"\${ac_cv_var_nlist_tick+set}\" = set"; then 9386 echo $ac_n "(cached) $ac_c" 1>&6 9387else 9388 ans=_tick 9389case "$target" in 9390 m68*-hp-hpux*) # HP9000/300? 9391 ans=_old_tick 9392 ;; 9393 *-apple-aux[23]*) 9394 ans=tick 9395 ;; 9396 *-hp-hpux*) 9397 ans=old_tick 9398 ;; 9399 *-ibm-aix[34]*) 9400 ans=no 9401 ;; 9402 *-*-ptx*) 9403 ans=tick 9404 ;; 9405 *-*-sco3.2v[45]*) 9406 ans=no 9407 ;; 9408 *-*-solaris2*) 9409 ans=nsec_per_tick 9410 ;; 9411 *-*-sysv4*) 9412 ans=tick 9413 ;; 9414esac 9415ac_cv_var_nlist_tick=$ans 9416fi 9417 9418echo "$ac_t""$ac_cv_var_nlist_tick" 1>&6 9419case "$ac_cv_var_nlist_tick" in 9420 ''|no) ;; # HMS: I think we can only get 'no' here... 9421 *) cat >> confdefs.h <<EOF 9422#define K_TICK_NAME "$ac_cv_var_nlist_tick" 9423EOF 9424 ;; 9425esac 9426# 9427echo $ac_n "checking for the units of 'tick'""... $ac_c" 1>&6 9428echo "configure:9429: checking for the units of 'tick'" >&5 9429if eval "test \"\${ac_cv_var_tick_nano+set}\" = set"; then 9430 echo $ac_n "(cached) $ac_c" 1>&6 9431else 9432 ans=usec 9433case "$target" in 9434 *-*-solaris2*) 9435 ans=nsec 9436 ;; 9437esac 9438ac_cv_var_tick_nano=$ans 9439fi 9440 9441echo "$ac_t""$ac_cv_var_tick_nano" 1>&6 9442case "$ac_cv_var_tick_nano" in 9443 nsec) 9444 cat >> confdefs.h <<\EOF 9445#define TICK_NANO 1 9446EOF 9447 9448 ;; 9449esac 9450# 9451echo $ac_n "checking the name of 'tickadj' in the kernel""... $ac_c" 1>&6 9452echo "configure:9453: checking the name of 'tickadj' in the kernel" >&5 9453if eval "test \"\${ac_cv_var_nlist_tickadj+set}\" = set"; then 9454 echo $ac_n "(cached) $ac_c" 1>&6 9455else 9456 ans=_tickadj 9457case "$target" in 9458 m68*-hp-hpux*) # HP9000/300? 9459 ans=_tickadj 9460 ;; 9461 *-apple-aux[23]*) 9462 ans=tickadj 9463 ;; 9464 *-hp-hpux10*) 9465 ans=no 9466 ;; 9467 *-hp-hpux9*) 9468 ans=no 9469 ;; 9470 *-hp-hpux*) 9471 ans=tickadj 9472 ;; 9473 *-*-aix*) 9474 ans=tickadj 9475 ;; 9476 *-*-ptx*) 9477 ans=tickadj 9478 ;; 9479 *-*-sco3.2v4*) 9480 ans=no 9481 ;; 9482 *-*-sco3.2v5.0*) 9483 ans=clock_drift 9484 ;; 9485 *-*-solaris2*) 9486 ans=no # hrestime_adj 9487 ;; 9488 *-*-sysv4*) 9489 ans=tickadj 9490 ;; 9491esac 9492ac_cv_var_nlist_tickadj=$ans 9493fi 9494 9495echo "$ac_t""$ac_cv_var_nlist_tickadj" 1>&6 9496case "$ac_cv_var_nlist_tickadj" in 9497 ''|no) ;; # HMS: I think we can only get 'no' here... 9498 *) cat >> confdefs.h <<EOF 9499#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj" 9500EOF 9501 ;; 9502esac 9503# 9504echo $ac_n "checking for the units of 'tickadj'""... $ac_c" 1>&6 9505echo "configure:9506: checking for the units of 'tickadj'" >&5 9506if eval "test \"\${ac_cv_var_tickadj_nano+set}\" = set"; then 9507 echo $ac_n "(cached) $ac_c" 1>&6 9508else 9509 ans=usec 9510case "$target" in 9511 *-*-solaris2*) 9512 ans=nsec 9513 ;; 9514esac 9515ac_cv_var_tickadj_nano=$ans 9516fi 9517 9518echo "$ac_t""$ac_cv_var_tickadj_nano" 1>&6 9519case "$ac_cv_var_tickadj_nano" in 9520 nsec) 9521 cat >> confdefs.h <<\EOF 9522#define TICKADJ_NANO 1 9523EOF 9524 9525 ;; 9526esac 9527# 9528echo $ac_n "checking half-heartedly for 'dosynctodr' in the kernel""... $ac_c" 1>&6 9529echo "configure:9530: checking half-heartedly for 'dosynctodr' in the kernel" >&5 9530if eval "test \"\${ac_cv_var_nlist_dosynctodr+set}\" = set"; then 9531 echo $ac_n "(cached) $ac_c" 1>&6 9532else 9533 case "$target" in 9534 *-apple-aux[23]*) 9535 ans=no 9536 ;; 9537 *-sni-sysv*) 9538 ans=dosynctodr 9539 ;; 9540 *-*-aix*) 9541 ans=dosynctodr 9542 ;; 9543 *-*-hpux*) 9544 ans=no 9545 ;; 9546 *-*-nextstep*) 9547 ans=_dosynctodr 9548 ;; 9549 *-*-ptx*) 9550 ans=doresettodr 9551 ;; 9552 *-*-sco3.2v4*) 9553 ans=no 9554 ;; 9555 *-*-sco3.2v5*) 9556 ans=track_rtc 9557 ;; 9558 *-*-solaris2*) 9559 ans=dosynctodr 9560 ;; 9561 *-*-sysv4*) 9562 ans=doresettodr 9563 ;; 9564 *) 9565 ans=_dosynctodr 9566 ;; 9567esac 9568ac_cv_var_nlist_dosynctodr=$ans 9569fi 9570 9571echo "$ac_t""$ac_cv_var_nlist_dosynctodr" 1>&6 9572case "$ac_cv_var_nlist_dosynctodr" in 9573 no) ;; 9574 *) cat >> confdefs.h <<EOF 9575#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr" 9576EOF 9577 9578 ;; 9579esac 9580# 9581echo $ac_n "checking half-heartedly for 'noprintf' in the kernel""... $ac_c" 1>&6 9582echo "configure:9583: checking half-heartedly for 'noprintf' in the kernel" >&5 9583if eval "test \"\${ac_cv_var_nlist_noprintf+set}\" = set"; then 9584 echo $ac_n "(cached) $ac_c" 1>&6 9585else 9586 case "$target" in 9587 *-apple-aux[23]*) 9588 ans=no 9589 ;; 9590 *-sni-sysv*) 9591 ans=noprintf 9592 ;; 9593 *-*-aix*) 9594 ans=noprintf 9595 ;; 9596 *-*-hpux*) 9597 ans=no 9598 ;; 9599 *-*-ptx*) 9600 ans=noprintf 9601 ;; 9602 *-*-nextstep*) 9603 ans=_noprintf 9604 ;; 9605 *-*-solaris2*) 9606 ans=noprintf 9607 ;; 9608 *-*-sysv4*) 9609 ans=noprintf 9610 ;; 9611 *) 9612 ans=_noprintf 9613 ;; 9614esac 9615ac_cv_var_nlist_noprintf=$ans 9616fi 9617 9618echo "$ac_t""$ac_cv_var_nlist_noprintf" 1>&6 9619case "$ac_cv_var_nlist_noprintf" in 9620 no) ;; 9621 *) cat >> confdefs.h <<EOF 9622#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf" 9623EOF 9624 9625 ;; 9626esac 9627 9628 9629 9630 9631echo $ac_n "checking for a default value for 'tick'""... $ac_c" 1>&6 9632echo "configure:9633: checking for a default value for 'tick'" >&5 9633if eval "test \"\${ac_cv_var_tick+set}\" = set"; then 9634 echo $ac_n "(cached) $ac_c" 1>&6 9635else 9636 # Check whether --enable-tick or --disable-tick was given. 9637if test "${enable_tick+set}" = set; then 9638 enableval="$enable_tick" 9639 ans=$enableval 9640else 9641 ans=no 9642 case "$target" in 9643 XXX-*-pc-cygwin*) 9644 ;; 9645 *-univel-sysv*) 9646 ans=10000 9647 ;; 9648 *-*-irix*) 9649 ans=10000 9650 ;; 9651 *-*-linux*) 9652 ans=txc.tick 9653 ;; 9654 *-*-winnt3.5) 9655 ans='(every / 10)' 9656 ;; 9657 *) 9658 ans='1000000L/hz' 9659 ;; 9660 esac 9661fi 9662 9663ac_cv_var_tick=$ans 9664fi 9665 9666echo "$ac_t""$ac_cv_var_tick" 1>&6 9667case "$ac_cv_var_tick" in 9668 ''|no) ;; # HMS: I think we can only get 'no' here... 9669 *) cat >> confdefs.h <<EOF 9670#define PRESET_TICK $ac_cv_var_tick 9671EOF 9672 ;; 9673esac 9674 9675echo $ac_n "checking for a default value for 'tickadj'""... $ac_c" 1>&6 9676echo "configure:9677: checking for a default value for 'tickadj'" >&5 9677if eval "test \"\${ac_cv_var_tickadj+set}\" = set"; then 9678 echo $ac_n "(cached) $ac_c" 1>&6 9679else 9680 # Check whether --enable-tickadj or --disable-tickadj was given. 9681if test "${enable_tickadj+set}" = set; then 9682 enableval="$enable_tickadj" 9683 ans=$enableval 9684else 9685 ans='500/hz' 9686 case "$target" in 9687 *-fujitsu-uxp*) 9688 case "$ac_cv_var_adjtime_is_accurate" in 9689 yes) ans='tick/16' ;; 9690 esac 9691 ;; 9692 XXX-*-pc-cygwin*) 9693 ans=no 9694 ;; 9695 *-univel-sysv*) 9696 ans=80 9697 ;; 9698 *-*-aix*) 9699 case "$ac_cv_var_can_kmem" in 9700 no) ans=1000 ;; 9701 esac 9702 ;; 9703 *-*-domainos) # Skippy: won't be found... 9704 case "$ac_cv_var_can_kmem" in 9705 no) ans=668 ;; 9706 esac 9707 ;; 9708 *-*-hpux*) 9709 case "$ac_cv_var_adjtime_is_accurate" in 9710 yes) ans='tick/16' ;; 9711 esac 9712 ;; 9713 *-*-irix*) 9714 ans=150 9715 ;; 9716 *-*-sco3.2v5.0*) 9717 ans=10000L/hz 9718 ;; 9719 *-*-solaris2*) 9720 case "$ac_cv_var_adjtime_is_accurate" in 9721 yes) 9722 #ans='tick/16' 9723 ;; 9724 esac 9725 ;; 9726 *-*-winnt3.5) 9727 ans=50 9728 ;; 9729 esac 9730fi 9731 9732ac_cv_var_tickadj=$ans 9733fi 9734 9735echo "$ac_t""$ac_cv_var_tickadj" 1>&6 9736case "$ac_cv_var_tickadj" in 9737 ''|no) ;; # HMS: I think we can only get 'no' here... 9738 *) cat >> confdefs.h <<EOF 9739#define PRESET_TICKADJ $ac_cv_var_tickadj 9740EOF 9741 ;; 9742esac 9743 9744# Newer versions of ReliantUNIX round adjtime() values down to 9745# 1/100s (system tick). Sigh ... 9746# Unfortunately, there is no easy way to know if particular release 9747# has this "feature" or any obvious way to test for it. 9748case "$target" in 9749 mips-sni-sysv4*) cat >> confdefs.h <<\EOF 9750#define RELIANTUNIX_CLOCK 1 9751EOF 9752 ;; 9753esac 9754 9755case "$target" in 9756 *-*-sco3.2v5*) cat >> confdefs.h <<\EOF 9757#define SCO5_CLOCK 1 9758EOF 9759 ;; 9760esac 9761 9762ac_cv_make_tickadj=yes 9763case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in 9764 nonono) # Don't read KMEM, no presets. Bogus. 9765 echo "configure: warning: Can't read kmem" 1>&2 9766 ac_cv_make_tickadj=no 9767 ;; 9768 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 9769 echo "configure: warning: Can't read kmem but no PRESET_TICK. No tickadj." 1>&2 9770 ac_cv_make_tickadj=no 9771 ;; 9772 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 9773 echo "configure: warning: Can't read kmem but no PRESET_TICKADJ. No tickadj." 1>&2 9774 ac_cv_make_tickadj=no 9775 ;; 9776 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 9777 ;; 9778 yesnono) # Read KMEM, no presets. Cool. 9779 ;; 9780 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 9781 echo "configure: warning: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." 1>&2 9782 ;; 9783 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 9784 ;; 9785 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 9786 ;; 9787 *) # Generally bogus. 9788 { echo "configure: error: This shouldn't happen." 1>&2; exit 1; } 9789 ;; 9790esac 9791 9792case "$target" in 9793 mips-sni-sysv4*) 9794 # tickadj is pretty useless on newer versions of ReliantUNIX 9795 # Do not bother 9796 ac_cv_make_tickadj=no 9797 ;; 9798 *-*-solaris2*) 9799 # DLM says tickadj is a no-no starting with solaris2.5 9800 case "$target" in 9801 *-*-solaris2.0-4*) ;; 9802 *) ac_cv_make_tickadj=no ;; 9803 esac 9804 ;; 9805esac 9806 9807 9808echo $ac_n "checking if we want and can make the tickadj utility""... $ac_c" 1>&6 9809echo "configure:9810: checking if we want and can make the tickadj utility" >&5 9810if eval "test \"\${ac_cv_make_tickadj+set}\" = set"; then 9811 echo $ac_n "(cached) $ac_c" 1>&6 9812else 9813 ac_cv_make_tickadj=yes 9814fi 9815 9816echo "$ac_t""$ac_cv_make_tickadj" 1>&6 9817case "$ac_cv_make_tickadj" in 9818 yes) 9819 MAKE_TICKADJ=tickadj 9820 ;; 9821esac 9822 9823 9824echo $ac_n "checking if we want and can make the ntptime utility""... $ac_c" 1>&6 9825echo "configure:9826: checking if we want and can make the ntptime utility" >&5 9826if eval "test \"\${ac_cv_make_ntptime+set}\" = set"; then 9827 echo $ac_n "(cached) $ac_c" 1>&6 9828else 9829 case "$target" in 9830 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in 9831 yesyes) 9832 ans=yes 9833 ;; 9834 *) 9835 ans=no 9836 ;; 9837 esac 9838 ;; 9839esac 9840ac_cv_make_ntptime=$ans 9841fi 9842 9843echo "$ac_t""$ac_cv_make_ntptime" 1>&6 9844case "$ac_cv_make_ntptime" in 9845 yes) 9846 MAKE_NTPTIME=ntptime 9847 ;; 9848esac 9849 9850echo $ac_n "checking if we want UDP wildcard delivery""... $ac_c" 1>&6 9851echo "configure:9852: checking if we want UDP wildcard delivery" >&5 9852if eval "test \"\${ac_cv_var_udp_wildcard_delivery+set}\" = set"; then 9853 echo $ac_n "(cached) $ac_c" 1>&6 9854else 9855 # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given. 9856if test "${enable_udp_wildcard+set}" = set; then 9857 enableval="$enable_udp_wildcard" 9858 ans=$enableval 9859else 9860 ans=no 9861 case "$target" in 9862 *-fujitsu-uxp*) 9863 ans=yes 9864 ;; 9865 *-univel-sysv*) 9866 ans=yes 9867 ;; 9868 *-*-aix3.2*) 9869 ans=yes 9870 ;; 9871 *-*-aix4*) 9872 ans=yes 9873 ;; 9874 *-*-bsdi*) 9875 ans=yes 9876 ;; 9877 *-*-domainos) 9878 ans=yes 9879 ;; 9880 *-*-freebsd*) 9881 ans=yes 9882 ;; 9883 *-*-hpux*) 9884 ans=yes 9885 ;; 9886 *-*-irix6*) 9887 ans=yes 9888 ;; 9889 *-*-linux*) 9890 ans=yes 9891 ;; 9892 *-*-osf*) 9893 ans=yes 9894 ;; 9895 *-*-ptx*) 9896 ans=yes 9897 ;; 9898 *-*-solaris2*) 9899 ans=yes 9900 ;; 9901 *-*-sunos4*) 9902 ans=yes 9903 ;; 9904 esac 9905fi 9906 9907ac_cv_var_udp_wildcard_delivery=$ans 9908fi 9909 9910echo "$ac_t""$ac_cv_var_udp_wildcard_delivery" 1>&6 9911case "$ac_cv_var_udp_wildcard_delivery" in 9912 yes) cat >> confdefs.h <<\EOF 9913#define UDP_WILDCARD_DELIVERY 1 9914EOF 9915 ;; 9916esac 9917 9918case "$host" in 9919 $target) 9920 ;; 9921 *) case "$target" in 9922 *-*-vxworks*) 9923 LDFLAGS="$LDFLAGS -r" 9924 ;; 9925 esac 9926 ;; 9927esac 9928 9929echo $ac_n "checking if we should always slew the time""... $ac_c" 1>&6 9930echo "configure:9931: checking if we should always slew the time" >&5 9931if eval "test \"\${ac_cv_var_slew_always+set}\" = set"; then 9932 echo $ac_n "(cached) $ac_c" 1>&6 9933else 9934 # Check whether --enable-slew-always or --disable-slew-always was given. 9935if test "${enable_slew_always+set}" = set; then 9936 enableval="$enable_slew_always" 9937 ans=$enableval 9938else 9939 case "$target" in 9940 *-apple-aux[23]*) 9941 ans=yes 9942 ;; 9943 *-*-bsdi[012]*) 9944 ans=no 9945 ;; 9946 *-*-bsdi*) 9947 ans=yes 9948 ;; 9949 *-*-openvms*) # HMS: won't be found 9950 ans=yes 9951 ;; 9952 *) ans=no 9953 ;; 9954 esac 9955 9956fi 9957 9958ac_cv_var_slew_always=$ans 9959fi 9960 9961echo "$ac_t""$ac_cv_var_slew_always" 1>&6 9962case "$ac_cv_var_slew_always" in 9963 yes) cat >> confdefs.h <<\EOF 9964#define SLEWALWAYS 1 9965EOF 9966 ;; 9967esac 9968 9969echo $ac_n "checking if we should step and slew the time""... $ac_c" 1>&6 9970echo "configure:9971: checking if we should step and slew the time" >&5 9971if eval "test \"\${ac_cv_var_step_slew+set}\" = set"; then 9972 echo $ac_n "(cached) $ac_c" 1>&6 9973else 9974 # Check whether --enable-step-slew or --disable-step-slew was given. 9975if test "${enable_step_slew+set}" = set; then 9976 enableval="$enable_step_slew" 9977 ans=$enableval 9978else 9979 case "$target" in 9980 *-sni-sysv*) 9981 ans=yes 9982 ;; 9983 *-univel-sysv*) 9984 ans=no 9985 ;; 9986 *-*-ptx*) 9987 ans=yes 9988 ;; 9989 *-*-solaris2.[012]*) 9990 ans=yes 9991 ;; 9992 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 9993 ans=yes 9994 ;; 9995 *) ans=no 9996 ;; 9997 esac 9998 9999fi 10000 10001ac_cv_var_step_slew=$ans 10002fi 10003 10004echo "$ac_t""$ac_cv_var_step_slew" 1>&6 10005case "$ac_cv_var_step_slew" in 10006 yes) cat >> confdefs.h <<\EOF 10007#define STEP_SLEW 1 10008EOF 10009 ;; 10010esac 10011 10012echo $ac_n "checking if ntpdate should step the time""... $ac_c" 1>&6 10013echo "configure:10014: checking if ntpdate should step the time" >&5 10014if eval "test \"\${ac_cv_var_ntpdate_step+set}\" = set"; then 10015 echo $ac_n "(cached) $ac_c" 1>&6 10016else 10017 # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given. 10018if test "${enable_ntpdate_step+set}" = set; then 10019 enableval="$enable_ntpdate_step" 10020 ans=$enableval 10021else 10022 case "$target" in 10023 *-apple-aux[23]*) 10024 ans=yes 10025 ;; 10026 *) ans=no 10027 ;; 10028 esac 10029 10030fi 10031 10032ac_cv_var_ntpdate_step=$ans 10033fi 10034 10035echo "$ac_t""$ac_cv_var_ntpdate_step" 1>&6 10036case "$ac_cv_var_ntpdate_step" in 10037 yes) cat >> confdefs.h <<\EOF 10038#define FORCE_NTPDATE_STEP 1 10039EOF 10040 ;; 10041esac 10042 10043echo $ac_n "checking if we should sync TODR clock every hour""... $ac_c" 1>&6 10044echo "configure:10045: checking if we should sync TODR clock every hour" >&5 10045if eval "test \"\${ac_cv_var_sync_todr+set}\" = set"; then 10046 echo $ac_n "(cached) $ac_c" 1>&6 10047else 10048 # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given. 10049if test "${enable_hourly_todr_sync+set}" = set; then 10050 enableval="$enable_hourly_todr_sync" 10051 ans=$enableval 10052else 10053 case "$target" in 10054 *-*-nextstep*) 10055 ans=yes 10056 ;; 10057 *-*-openvms*) # HMS: won't be found 10058 ans=yes 10059 ;; 10060 *) ans=no 10061 ;; 10062 esac 10063fi 10064 10065ac_cv_var_sync_todr=$ans 10066fi 10067 10068echo "$ac_t""$ac_cv_var_sync_todr" 1>&6 10069case "$ac_cv_var_sync_todr" in 10070 yes) cat >> confdefs.h <<\EOF 10071#define DOSYNCTODR 1 10072EOF 10073 ;; 10074esac 10075 10076echo $ac_n "checking if we should avoid kernel FLL bug""... $ac_c" 1>&6 10077echo "configure:10078: checking if we should avoid kernel FLL bug" >&5 10078if eval "test \"\${ac_cv_var_kernel_fll_bug+set}\" = set"; then 10079 echo $ac_n "(cached) $ac_c" 1>&6 10080else 10081 # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given. 10082if test "${enable_kernel_fll_bug+set}" = set; then 10083 enableval="$enable_kernel_fll_bug" 10084 ans=$enableval 10085else 10086 case "$target" in 10087 *-*-solaris2.6) 10088 ans=yes 10089 ;; 10090 *-*-solaris2.7) 10091 case "`uname -v`" in 10092 Generic_106541-07) 10093 ans=no 10094 ;; 10095 *) ans=yes 10096 ;; 10097 esac 10098 ;; 10099 *) ans=no 10100 ;; 10101 esac 10102 10103fi 10104 10105ac_cv_var_kernel_fll_bug=$ans 10106fi 10107 10108echo "$ac_t""$ac_cv_var_kernel_fll_bug" 1>&6 10109case "$ac_cv_var_kernel_fll_bug" in 10110 yes) cat >> confdefs.h <<\EOF 10111#define KERNEL_FLL_BUG 1 10112EOF 10113 ;; 10114esac 10115 10116case "$host" in 10117 $target) 10118 ;; 10119 *) case "$target" in 10120 *-*-vxworks*) 10121 LDFLAGS="$LDFLAGS -r" 10122 ;; 10123 esac 10124 ;; 10125esac 10126 10127# This is necessary so that .o files in LIBOBJS are also built via 10128# the ANSI2KNR-filtering rules. 10129LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` 10130 10131trap '' 1 2 15 10132cat > confcache <<\EOF 10133# This file is a shell script that caches the results of configure 10134# tests run on this system so they can be shared between configure 10135# scripts and configure runs. It is not useful on other systems. 10136# If it contains results you don't want to keep, you may remove or edit it. 10137# 10138# By default, configure uses ./config.cache as the cache file, 10139# creating it if it does not exist already. You can give configure 10140# the --cache-file=FILE option to use a different cache file; that is 10141# what configure does when it calls configure scripts in 10142# subdirectories, so they share the cache. 10143# Giving --cache-file=/dev/null disables caching, for debugging configure. 10144# config.status only pays attention to the cache file if you give it the 10145# --recheck option to rerun configure. 10146# 10147EOF 10148# The following way of writing the cache mishandles newlines in values, 10149# but we know of no workaround that is simple, portable, and efficient. 10150# So, don't put newlines in cache variables' values. 10151# Ultrix sh set writes to stderr and can't be redirected directly, 10152# and sets the high bit in the cache file unless we assign to the vars. 10153(set) 2>&1 | 10154 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10155 *ac_space=\ *) 10156 # `set' does not quote correctly, so add quotes (double-quote substitution 10157 # turns \\\\ into \\, and sed turns \\ into \). 10158 sed -n \ 10159 -e "s/'/'\\\\''/g" \ 10160 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 10161 ;; 10162 *) 10163 # `set' quotes correctly as required by POSIX, so do not add quotes. 10164 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 10165 ;; 10166 esac >> confcache 10167if cmp -s $cache_file confcache; then 10168 : 10169else 10170 if test -w $cache_file; then 10171 echo "updating cache $cache_file" 10172 cat confcache > $cache_file 10173 else 10174 echo "not updating unwritable cache $cache_file" 10175 fi 10176fi 10177rm -f confcache 10178 10179trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 10180 10181test "x$prefix" = xNONE && prefix=$ac_default_prefix 10182# Let make expand exec_prefix. 10183test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10184 10185# Any assignment to VPATH causes Sun make to only execute 10186# the first set of double-colon rules, so remove it if not needed. 10187# If there is a colon in the path, we need to keep it. 10188if test "x$srcdir" = x.; then 10189 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 10190fi 10191 10192trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 10193 10194DEFS=-DHAVE_CONFIG_H 10195 10196# Without the "./", some shells look in PATH for config.status. 10197: ${CONFIG_STATUS=./config.status} 10198 10199echo creating $CONFIG_STATUS 10200rm -f $CONFIG_STATUS 10201cat > $CONFIG_STATUS <<EOF 10202#! /bin/sh 10203# Generated automatically by configure. 10204# Run this file to recreate the current configuration. 10205# This directory was configured as follows, 10206# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10207# 10208# $0 $ac_configure_args 10209# 10210# Compiler output produced by configure, useful for debugging 10211# configure, is in ./config.log if it exists. 10212 10213ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 10214for ac_option 10215do 10216 case "\$ac_option" in 10217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10218 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 10219 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 10220 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 10221 echo "$CONFIG_STATUS generated by autoconf version 2.14.1" 10222 exit 0 ;; 10223 -help | --help | --hel | --he | --h) 10224 echo "\$ac_cs_usage"; exit 0 ;; 10225 *) echo "\$ac_cs_usage"; exit 1 ;; 10226 esac 10227done 10228 10229ac_given_srcdir=$srcdir 10230ac_given_INSTALL="$INSTALL" 10231 10232trap 'rm -fr `echo "Makefile adjtimed/Makefile clockstuff/Makefile \ 10233include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \ 10234libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile \ 10235ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile \ 10236scripts/Makefile scripts/mkver scripts/ntpver util/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 10237EOF 10238cat >> $CONFIG_STATUS <<EOF 10239 10240# Protect against being on the right side of a sed subst in config.status. 10241sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 10242 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 10243$ac_vpsub 10244$extrasub 10245s%@SHELL@%$SHELL%g 10246s%@CFLAGS@%$CFLAGS%g 10247s%@CPPFLAGS@%$CPPFLAGS%g 10248s%@CXXFLAGS@%$CXXFLAGS%g 10249s%@FFLAGS@%$FFLAGS%g 10250s%@DEFS@%$DEFS%g 10251s%@LDFLAGS@%$LDFLAGS%g 10252s%@LIBS@%$LIBS%g 10253s%@exec_prefix@%$exec_prefix%g 10254s%@prefix@%$prefix%g 10255s%@program_transform_name@%$program_transform_name%g 10256s%@bindir@%$bindir%g 10257s%@sbindir@%$sbindir%g 10258s%@libexecdir@%$libexecdir%g 10259s%@datadir@%$datadir%g 10260s%@sysconfdir@%$sysconfdir%g 10261s%@sharedstatedir@%$sharedstatedir%g 10262s%@localstatedir@%$localstatedir%g 10263s%@libdir@%$libdir%g 10264s%@includedir@%$includedir%g 10265s%@oldincludedir@%$oldincludedir%g 10266s%@infodir@%$infodir%g 10267s%@mandir@%$mandir%g 10268s%@host@%$host%g 10269s%@host_alias@%$host_alias%g 10270s%@host_cpu@%$host_cpu%g 10271s%@host_vendor@%$host_vendor%g 10272s%@host_os@%$host_os%g 10273s%@target@%$target%g 10274s%@target_alias@%$target_alias%g 10275s%@target_cpu@%$target_cpu%g 10276s%@target_vendor@%$target_vendor%g 10277s%@target_os@%$target_os%g 10278s%@build@%$build%g 10279s%@build_alias@%$build_alias%g 10280s%@build_cpu@%$build_cpu%g 10281s%@build_vendor@%$build_vendor%g 10282s%@build_os@%$build_os%g 10283s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 10284s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 10285s%@INSTALL_DATA@%$INSTALL_DATA%g 10286s%@PACKAGE@%$PACKAGE%g 10287s%@VERSION@%$VERSION%g 10288s%@ACLOCAL@%$ACLOCAL%g 10289s%@AUTOCONF@%$AUTOCONF%g 10290s%@AUTOMAKE@%$AUTOMAKE%g 10291s%@AUTOHEADER@%$AUTOHEADER%g 10292s%@MAKEINFO@%$MAKEINFO%g 10293s%@AMTAR@%$AMTAR%g 10294s%@AMTARFLAGS@%$AMTARFLAGS%g 10295s%@SET_MAKE@%$SET_MAKE%g 10296s%@CC@%$CC%g 10297s%@CPP@%$CPP%g 10298s%@AWK@%$AWK%g 10299s%@LN_S@%$LN_S%g 10300s%@RANLIB@%$RANLIB%g 10301s%@PATH_SH@%$PATH_SH%g 10302s%@U@%$U%g 10303s%@ANSI2KNR@%$ANSI2KNR%g 10304s%@LIBOBJS@%$LIBOBJS%g 10305s%@LIBPARSE@%$LIBPARSE%g 10306s%@MAKE_LIBPARSE@%$MAKE_LIBPARSE%g 10307s%@MAKE_LIBPARSE_KERNEL@%$MAKE_LIBPARSE_KERNEL%g 10308s%@MAKE_CHECK_Y2K@%$MAKE_CHECK_Y2K%g 10309s%@RSAREF@%$RSAREF%g 10310s%@LIBRSAREF@%$LIBRSAREF%g 10311s%@MAKE_LIBRSAREF@%$MAKE_LIBRSAREF%g 10312s%@TESTDCF@%$TESTDCF%g 10313s%@DCFD@%$DCFD%g 10314s%@MAKE_PARSEKMODULE@%$MAKE_PARSEKMODULE%g 10315s%@PROPDELAY@%$PROPDELAY%g 10316s%@CHUTEST@%$CHUTEST%g 10317s%@CLKTEST@%$CLKTEST%g 10318s%@MAKE_ADJTIMED@%$MAKE_ADJTIMED%g 10319s%@MAKE_TICKADJ@%$MAKE_TICKADJ%g 10320s%@MAKE_NTPTIME@%$MAKE_NTPTIME%g 10321 10322CEOF 10323EOF 10324 10325cat >> $CONFIG_STATUS <<\EOF 10326 10327# Split the substitutions into bite-sized pieces for seds with 10328# small command number limits, like on Digital OSF/1 and HP-UX. 10329ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 10330ac_file=1 # Number of current file. 10331ac_beg=1 # First line for current file. 10332ac_end=$ac_max_sed_cmds # Line after last line for current file. 10333ac_more_lines=: 10334ac_sed_cmds="" 10335while $ac_more_lines; do 10336 if test $ac_beg -gt 1; then 10337 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 10338 else 10339 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 10340 fi 10341 if test ! -s conftest.s$ac_file; then 10342 ac_more_lines=false 10343 rm -f conftest.s$ac_file 10344 else 10345 if test -z "$ac_sed_cmds"; then 10346 ac_sed_cmds="sed -f conftest.s$ac_file" 10347 else 10348 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 10349 fi 10350 ac_file=`expr $ac_file + 1` 10351 ac_beg=$ac_end 10352 ac_end=`expr $ac_end + $ac_max_sed_cmds` 10353 fi 10354done 10355if test -z "$ac_sed_cmds"; then 10356 ac_sed_cmds=cat 10357fi 10358EOF 10359 10360cat >> $CONFIG_STATUS <<EOF 10361 10362CONFIG_FILES=\${CONFIG_FILES-"Makefile adjtimed/Makefile clockstuff/Makefile \ 10363include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \ 10364libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile \ 10365ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile \ 10366scripts/Makefile scripts/mkver scripts/ntpver util/Makefile"} 10367EOF 10368cat >> $CONFIG_STATUS <<\EOF 10369for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 10370 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10371 case "$ac_file" in 10372 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 10373 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 10374 *) ac_file_in="${ac_file}.in" ;; 10375 esac 10376 10377 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 10378 10379 # Remove last slash and all that follows it. Not all systems have dirname. 10380 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 10381 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 10382 # The file is in a subdirectory. 10383 test ! -d "$ac_dir" && mkdir "$ac_dir" 10384 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 10385 # A "../" for each directory in $ac_dir_suffix. 10386 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 10387 else 10388 ac_dir_suffix= ac_dots= 10389 fi 10390 10391 case "$ac_given_srcdir" in 10392 .) srcdir=. 10393 if test -z "$ac_dots"; then top_srcdir=. 10394 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 10395 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 10396 *) # Relative path. 10397 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 10398 top_srcdir="$ac_dots$ac_given_srcdir" ;; 10399 esac 10400 10401 case "$ac_given_INSTALL" in 10402 [/$]*) INSTALL="$ac_given_INSTALL" ;; 10403 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 10404 esac 10405 10406 echo creating "$ac_file" 10407 rm -f "$ac_file" 10408 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 10409 case "$ac_file" in 10410 *Makefile*) ac_comsub="1i\\ 10411# $configure_input" ;; 10412 *) ac_comsub= ;; 10413 esac 10414 10415 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 10416 sed -e "$ac_comsub 10417s%@configure_input@%$configure_input%g 10418s%@srcdir@%$srcdir%g 10419s%@top_srcdir@%$top_srcdir%g 10420s%@INSTALL@%$INSTALL%g 10421" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 10422fi; done 10423rm -f conftest.s* 10424 10425# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 10426# NAME is the cpp macro being defined and VALUE is the value it is being given. 10427# 10428# ac_d sets the value in "#define NAME VALUE" lines. 10429ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 10430ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 10431ac_dC='\3' 10432ac_dD='%g' 10433# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 10434ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 10435ac_uB='\([ ]\)%\1#\2define\3' 10436ac_uC=' ' 10437ac_uD='\4%g' 10438# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 10439ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 10440ac_eB='$%\1#\2define\3' 10441ac_eC=' ' 10442ac_eD='%g' 10443 10444if test "${CONFIG_HEADERS+set}" != set; then 10445EOF 10446cat >> $CONFIG_STATUS <<EOF 10447 CONFIG_HEADERS="config.h" 10448EOF 10449cat >> $CONFIG_STATUS <<\EOF 10450fi 10451for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 10452 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10453 case "$ac_file" in 10454 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 10455 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 10456 *) ac_file_in="${ac_file}.in" ;; 10457 esac 10458 10459 echo creating $ac_file 10460 10461 rm -f conftest.frag conftest.in conftest.out 10462 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 10463 cat $ac_file_inputs > conftest.in 10464 10465EOF 10466 10467# Transform confdefs.h into a sed script conftest.vals that substitutes 10468# the proper values into config.h.in to produce config.h. And first: 10469# Protect against being on the right side of a sed subst in config.status. 10470# Protect against being in an unquoted here document in config.status. 10471rm -f conftest.vals 10472cat > conftest.hdr <<\EOF 10473s/[\\&%]/\\&/g 10474s%[\\$`]%\\&%g 10475s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 10476s%ac_d%ac_u%gp 10477s%ac_u%ac_e%gp 10478EOF 10479sed -n -f conftest.hdr confdefs.h > conftest.vals 10480rm -f conftest.hdr 10481 10482# This sed command replaces #undef with comments. This is necessary, for 10483# example, in the case of _POSIX_SOURCE, which is predefined and required 10484# on some systems where configure will not decide to define it. 10485cat >> conftest.vals <<\EOF 10486s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 10487EOF 10488 10489# Break up conftest.vals because some shells have a limit on 10490# the size of here documents, and old seds have small limits too. 10491 10492rm -f conftest.tail 10493while : 10494do 10495 ac_lines=`grep -c . conftest.vals` 10496 # grep -c gives empty output for an empty file on some AIX systems. 10497 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 10498 # Write a limited-size here document to conftest.frag. 10499 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 10500 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 10501 echo 'CEOF 10502 sed -f conftest.frag conftest.in > conftest.out 10503 rm -f conftest.in 10504 mv conftest.out conftest.in 10505' >> $CONFIG_STATUS 10506 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 10507 rm -f conftest.vals 10508 mv conftest.tail conftest.vals 10509done 10510rm -f conftest.vals 10511 10512cat >> $CONFIG_STATUS <<\EOF 10513 rm -f conftest.frag conftest.h 10514 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 10515 cat conftest.in >> conftest.h 10516 rm -f conftest.in 10517 if cmp -s $ac_file conftest.h 2>/dev/null; then 10518 echo "$ac_file is unchanged" 10519 rm -f conftest.h 10520 else 10521 # Remove last slash and all that follows it. Not all systems have dirname. 10522 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 10523 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 10524 # The file is in a subdirectory. 10525 test ! -d "$ac_dir" && mkdir "$ac_dir" 10526 fi 10527 rm -f $ac_file 10528 mv conftest.h $ac_file 10529 fi 10530fi; done 10531 10532EOF 10533cat >> $CONFIG_STATUS <<EOF 10534 10535 10536EOF 10537cat >> $CONFIG_STATUS <<\EOF 10538test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 10539chmod +x scripts/ntpver scripts/mkver 10540exit 0 10541EOF 10542chmod +x $CONFIG_STATUS 10543rm -fr confdefs* $ac_clean_files 10544test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1 10545 10546#test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h]) 10547