1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by Autoconf 2.50. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Be Bourne compatible 11if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12 emulate sh 13 NULLCMD=: 14elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 15 set -o posix 16fi 17 18# Name of the executable. 19as_me=`echo "$0" |sed 's,.*[\\/],,'` 20 21if expr a : '\(a\)' >/dev/null 2>&1; then 22 as_expr=expr 23else 24 as_expr=false 25fi 26 27rm -f conf$$ conf$$.exe conf$$.file 28echo >conf$$.file 29if ln -s conf$$.file conf$$ 2>/dev/null; then 30 # We could just check for DJGPP; but this test a) works b) is more generic 31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 32 if test -f conf$$.exe; then 33 # Don't use ln at all; we don't have any links 34 as_ln_s='cp -p' 35 else 36 as_ln_s='ln -s' 37 fi 38elif ln conf$$.file conf$$ 2>/dev/null; then 39 as_ln_s=ln 40else 41 as_ln_s='cp -p' 42fi 43rm -f conf$$ conf$$.exe conf$$.file 44 45as_executable_p="test -f" 46 47# Support unset when possible. 48if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 49 as_unset=unset 50else 51 as_unset=false 52fi 53 54# NLS nuisances. 55$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 56$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 57$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 58$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 59$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 60$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 61$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 62$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 63 64# IFS 65# We need space, tab and new line, in precisely that order. 66as_nl=' 67' 68IFS=" $as_nl" 69 70# CDPATH. 71$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 72 73# Name of the host. 74# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 75# so uname gets run too. 76ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 77 78exec 6>&1 79 80# 81# Initializations. 82# 83ac_default_prefix=/usr/local 84cross_compiling=no 85subdirs= 86MFLAGS= MAKEFLAGS= 87SHELL=${CONFIG_SHELL-/bin/sh} 88 89# Maximum number of lines to put in a shell here document. 90# This variable seems obsolete. It should probably be removed, and 91# only ac_max_sed_lines should be used. 92: ${ac_max_here_lines=38} 93 94# Avoid depending upon Character Ranges. 95ac_cr_az='abcdefghijklmnopqrstuvwxyz' 96ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 97ac_cr_09='0123456789' 98ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 99 100# Sed expression to map a string onto a valid sh and CPP variable names. 101ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" 102ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" 103 104ac_unique_file="ntpd/ntp_refclock.c" 105# Factoring default headers for most tests. 106ac_includes_default="\ 107#include <stdio.h> 108#include <sys/types.h> 109#include <sys/stat.h> 110#if STDC_HEADERS 111# include <stdlib.h> 112# include <stddef.h> 113#else 114# if HAVE_STDLIB_H 115# include <stdlib.h> 116# endif 117#endif 118#if HAVE_STRING_H 119# if !STDC_HEADERS && HAVE_MEMORY_H 120# include <memory.h> 121# endif 122# include <string.h> 123#else 124# if HAVE_STRINGS_H 125# include <strings.h> 126# endif 127#endif 128#if HAVE_INTTYPES_H 129# include <inttypes.h> 130#endif 131#if HAVE_UNISTD_H 132# include <unistd.h> 133#endif" 134 135# Initialize some variables set by options. 136ac_init_help= 137ac_init_version=false 138# The variables have the same names as the options, with 139# dashes changed to underlines. 140cache_file=/dev/null 141exec_prefix=NONE 142no_create= 143no_recursion= 144prefix=NONE 145program_prefix=NONE 146program_suffix=NONE 147program_transform_name=s,x,x, 148silent= 149site= 150srcdir= 151verbose= 152x_includes=NONE 153x_libraries=NONE 154 155# Installation directory options. 156# These are left unexpanded so users can "make install exec_prefix=/foo" 157# and all the variables that are supposed to be based on exec_prefix 158# by default will actually change. 159# Use braces instead of parens because sh, perl, etc. also accept them. 160bindir='${exec_prefix}/bin' 161sbindir='${exec_prefix}/sbin' 162libexecdir='${exec_prefix}/libexec' 163datadir='${prefix}/share' 164sysconfdir='${prefix}/etc' 165sharedstatedir='${prefix}/com' 166localstatedir='${prefix}/var' 167libdir='${exec_prefix}/lib' 168includedir='${prefix}/include' 169oldincludedir='/usr/include' 170infodir='${prefix}/info' 171mandir='${prefix}/man' 172 173# Identity of this package. 174PACKAGE_NAME= 175PACKAGE_TARNAME= 176PACKAGE_VERSION= 177PACKAGE_STRING= 178PACKAGE_BUGREPORT= 179 180ac_prev= 181for ac_option 182do 183 # If the previous option needs an argument, assign it. 184 if test -n "$ac_prev"; then 185 eval "$ac_prev=\$ac_option" 186 ac_prev= 187 continue 188 fi 189 190 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 191 192 # Accept the important Cygnus configure options, so we can diagnose typos. 193 194 case $ac_option in 195 196 -bindir | --bindir | --bindi | --bind | --bin | --bi) 197 ac_prev=bindir ;; 198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 199 bindir=$ac_optarg ;; 200 201 -build | --build | --buil | --bui | --bu) 202 ac_prev=build_alias ;; 203 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 204 build_alias=$ac_optarg ;; 205 206 -cache-file | --cache-file | --cache-fil | --cache-fi \ 207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 208 ac_prev=cache_file ;; 209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 211 cache_file=$ac_optarg ;; 212 213 --config-cache | -C) 214 cache_file=config.cache ;; 215 216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 217 ac_prev=datadir ;; 218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 219 | --da=*) 220 datadir=$ac_optarg ;; 221 222 -disable-* | --disable-*) 223 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 224 # Reject names that are not valid shell variable names. 225 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 226 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 227 { (exit 1); exit 1; }; } 228 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 229 eval "enable_$ac_feature=no" ;; 230 231 -enable-* | --enable-*) 232 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 233 # Reject names that are not valid shell variable names. 234 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 236 { (exit 1); exit 1; }; } 237 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 238 case $ac_option in 239 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 240 *) ac_optarg=yes ;; 241 esac 242 eval "enable_$ac_feature='$ac_optarg'" ;; 243 244 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 245 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 246 | --exec | --exe | --ex) 247 ac_prev=exec_prefix ;; 248 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 249 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 250 | --exec=* | --exe=* | --ex=*) 251 exec_prefix=$ac_optarg ;; 252 253 -gas | --gas | --ga | --g) 254 # Obsolete; use --with-gas. 255 with_gas=yes ;; 256 257 -help | --help | --hel | --he | -h) 258 ac_init_help=long ;; 259 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 260 ac_init_help=recursive ;; 261 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 262 ac_init_help=short ;; 263 264 -host | --host | --hos | --ho) 265 ac_prev=host_alias ;; 266 -host=* | --host=* | --hos=* | --ho=*) 267 host_alias=$ac_optarg ;; 268 269 -includedir | --includedir | --includedi | --included | --include \ 270 | --includ | --inclu | --incl | --inc) 271 ac_prev=includedir ;; 272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 273 | --includ=* | --inclu=* | --incl=* | --inc=*) 274 includedir=$ac_optarg ;; 275 276 -infodir | --infodir | --infodi | --infod | --info | --inf) 277 ac_prev=infodir ;; 278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 279 infodir=$ac_optarg ;; 280 281 -libdir | --libdir | --libdi | --libd) 282 ac_prev=libdir ;; 283 -libdir=* | --libdir=* | --libdi=* | --libd=*) 284 libdir=$ac_optarg ;; 285 286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 287 | --libexe | --libex | --libe) 288 ac_prev=libexecdir ;; 289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 290 | --libexe=* | --libex=* | --libe=*) 291 libexecdir=$ac_optarg ;; 292 293 -localstatedir | --localstatedir | --localstatedi | --localstated \ 294 | --localstate | --localstat | --localsta | --localst \ 295 | --locals | --local | --loca | --loc | --lo) 296 ac_prev=localstatedir ;; 297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 300 localstatedir=$ac_optarg ;; 301 302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 303 ac_prev=mandir ;; 304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 305 mandir=$ac_optarg ;; 306 307 -nfp | --nfp | --nf) 308 # Obsolete; use --without-fp. 309 with_fp=no ;; 310 311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 312 | --no-cr | --no-c) 313 no_create=yes ;; 314 315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 317 no_recursion=yes ;; 318 319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 321 | --oldin | --oldi | --old | --ol | --o) 322 ac_prev=oldincludedir ;; 323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 326 oldincludedir=$ac_optarg ;; 327 328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 329 ac_prev=prefix ;; 330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 331 prefix=$ac_optarg ;; 332 333 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 334 | --program-pre | --program-pr | --program-p) 335 ac_prev=program_prefix ;; 336 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 338 program_prefix=$ac_optarg ;; 339 340 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 341 | --program-suf | --program-su | --program-s) 342 ac_prev=program_suffix ;; 343 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 345 program_suffix=$ac_optarg ;; 346 347 -program-transform-name | --program-transform-name \ 348 | --program-transform-nam | --program-transform-na \ 349 | --program-transform-n | --program-transform- \ 350 | --program-transform | --program-transfor \ 351 | --program-transfo | --program-transf \ 352 | --program-trans | --program-tran \ 353 | --progr-tra | --program-tr | --program-t) 354 ac_prev=program_transform_name ;; 355 -program-transform-name=* | --program-transform-name=* \ 356 | --program-transform-nam=* | --program-transform-na=* \ 357 | --program-transform-n=* | --program-transform-=* \ 358 | --program-transform=* | --program-transfor=* \ 359 | --program-transfo=* | --program-transf=* \ 360 | --program-trans=* | --program-tran=* \ 361 | --progr-tra=* | --program-tr=* | --program-t=*) 362 program_transform_name=$ac_optarg ;; 363 364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 365 | -silent | --silent | --silen | --sile | --sil) 366 silent=yes ;; 367 368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 369 ac_prev=sbindir ;; 370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 371 | --sbi=* | --sb=*) 372 sbindir=$ac_optarg ;; 373 374 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 376 | --sharedst | --shareds | --shared | --share | --shar \ 377 | --sha | --sh) 378 ac_prev=sharedstatedir ;; 379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 382 | --sha=* | --sh=*) 383 sharedstatedir=$ac_optarg ;; 384 385 -site | --site | --sit) 386 ac_prev=site ;; 387 -site=* | --site=* | --sit=*) 388 site=$ac_optarg ;; 389 390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 391 ac_prev=srcdir ;; 392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 393 srcdir=$ac_optarg ;; 394 395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 396 | --syscon | --sysco | --sysc | --sys | --sy) 397 ac_prev=sysconfdir ;; 398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 400 sysconfdir=$ac_optarg ;; 401 402 -target | --target | --targe | --targ | --tar | --ta | --t) 403 ac_prev=target_alias ;; 404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 405 target_alias=$ac_optarg ;; 406 407 -v | -verbose | --verbose | --verbos | --verbo | --verb) 408 verbose=yes ;; 409 410 -version | --version | --versio | --versi | --vers | -V) 411 ac_init_version=: ;; 412 413 -with-* | --with-*) 414 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 415 # Reject names that are not valid shell variable names. 416 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 417 { echo "$as_me: error: invalid package name: $ac_package" >&2 418 { (exit 1); exit 1; }; } 419 ac_package=`echo $ac_package| sed 's/-/_/g'` 420 case $ac_option in 421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 422 *) ac_optarg=yes ;; 423 esac 424 eval "with_$ac_package='$ac_optarg'" ;; 425 426 -without-* | --without-*) 427 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 428 # Reject names that are not valid shell variable names. 429 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 430 { echo "$as_me: error: invalid package name: $ac_package" >&2 431 { (exit 1); exit 1; }; } 432 ac_package=`echo $ac_package | sed 's/-/_/g'` 433 eval "with_$ac_package=no" ;; 434 435 --x) 436 # Obsolete; use --with-x. 437 with_x=yes ;; 438 439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 440 | --x-incl | --x-inc | --x-in | --x-i) 441 ac_prev=x_includes ;; 442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 444 x_includes=$ac_optarg ;; 445 446 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 448 ac_prev=x_libraries ;; 449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 451 x_libraries=$ac_optarg ;; 452 453 -*) { echo "$as_me: error: unrecognized option: $ac_option 454Try \`$0 --help' for more information." >&2 455 { (exit 1); exit 1; }; } 456 ;; 457 458 *=*) 459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 460 # Reject names that are not valid shell variable names. 461 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && 462 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 463 { (exit 1); exit 1; }; } 464 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 465 eval "$ac_envvar='$ac_optarg'" 466 export $ac_envvar ;; 467 468 *) 469 # FIXME: should be removed in autoconf 3.0. 470 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 471 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && 472 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 474 ;; 475 476 esac 477done 478 479if test -n "$ac_prev"; then 480 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 481 { echo "$as_me: error: missing argument to $ac_option" >&2 482 { (exit 1); exit 1; }; } 483fi 484 485# Be sure to have absolute paths. 486for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 487 localstatedir libdir includedir oldincludedir infodir mandir \ 488 exec_prefix prefix 489do 490 eval ac_val=$`echo $ac_var` 491 case $ac_val in 492 [\\/$]* | ?:[\\/]* ) ;; 493 NONE ) ;; 494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 495 { (exit 1); exit 1; }; };; 496 esac 497done 498 499# There might be people who depend on the old broken behavior: `$host' 500# used to hold the argument of --host etc. 501build=$build_alias 502host=$host_alias 503target=$target_alias 504 505# FIXME: should be removed in autoconf 3.0. 506if test "x$host_alias" != x; then 507 if test "x$build_alias" = x; then 508 cross_compiling=maybe 509 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 510 If a cross compiler is detected then cross compile mode will be used." >&2 511 elif test "x$build_alias" != "x$host_alias"; then 512 cross_compiling=yes 513 fi 514fi 515 516ac_tool_prefix= 517test -n "$host_alias" && ac_tool_prefix=$host_alias- 518 519test "$silent" = yes && exec 6>/dev/null 520 521# Find the source files, if location was not specified. 522if test -z "$srcdir"; then 523 ac_srcdir_defaulted=yes 524 # Try the directory containing this script, then its parent. 525 ac_prog=$0 526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 528 srcdir=$ac_confdir 529 if test ! -r $srcdir/$ac_unique_file; then 530 srcdir=.. 531 fi 532else 533 ac_srcdir_defaulted=no 534fi 535if test ! -r $srcdir/$ac_unique_file; then 536 if test "$ac_srcdir_defaulted" = yes; then 537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 538 { (exit 1); exit 1; }; } 539 else 540 { echo "$as_me: error: cannot find sources in $srcdir" >&2 541 { (exit 1); exit 1; }; } 542 fi 543fi 544srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 545ac_env_build_alias_set=${build_alias+set} 546ac_env_build_alias_value=$build_alias 547ac_cv_env_build_alias_set=${build_alias+set} 548ac_cv_env_build_alias_value=$build_alias 549ac_env_host_alias_set=${host_alias+set} 550ac_env_host_alias_value=$host_alias 551ac_cv_env_host_alias_set=${host_alias+set} 552ac_cv_env_host_alias_value=$host_alias 553ac_env_target_alias_set=${target_alias+set} 554ac_env_target_alias_value=$target_alias 555ac_cv_env_target_alias_set=${target_alias+set} 556ac_cv_env_target_alias_value=$target_alias 557ac_env_CC_set=${CC+set} 558ac_env_CC_value=$CC 559ac_cv_env_CC_set=${CC+set} 560ac_cv_env_CC_value=$CC 561ac_env_CFLAGS_set=${CFLAGS+set} 562ac_env_CFLAGS_value=$CFLAGS 563ac_cv_env_CFLAGS_set=${CFLAGS+set} 564ac_cv_env_CFLAGS_value=$CFLAGS 565ac_env_LDFLAGS_set=${LDFLAGS+set} 566ac_env_LDFLAGS_value=$LDFLAGS 567ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 568ac_cv_env_LDFLAGS_value=$LDFLAGS 569ac_env_CPPFLAGS_set=${CPPFLAGS+set} 570ac_env_CPPFLAGS_value=$CPPFLAGS 571ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 572ac_cv_env_CPPFLAGS_value=$CPPFLAGS 573ac_env_CPP_set=${CPP+set} 574ac_env_CPP_value=$CPP 575ac_cv_env_CPP_set=${CPP+set} 576ac_cv_env_CPP_value=$CPP 577 578# 579# Report the --help message. 580# 581if test "$ac_init_help" = "long"; then 582 # Omit some internal or obsolete options to make the list less imposing. 583 # This message is too long to be a string in the A/UX 3.1 sh. 584 cat <<EOF 585\`configure' configures this package to adapt to many kinds of systems. 586 587Usage: $0 [OPTION]... [VAR=VALUE]... 588 589To assign environment variables (e.g., CC, CFLAGS...), specify them as 590VAR=VALUE. See below for descriptions of some of the useful variables. 591 592Defaults for the options are specified in brackets. 593 594Configuration: 595 -h, --help display this help and exit 596 --help=short display options specific to this package 597 --help=recursive display the short help of all the included packages 598 -V, --version display version information and exit 599 -q, --quiet, --silent do not print \`checking...' messages 600 --cache-file=FILE cache test results in FILE [disabled] 601 -C, --config-cache alias for \`--cache-file=config.cache' 602 -n, --no-create do not create output files 603 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 604 605EOF 606 607 cat <<EOF 608Installation directories: 609 --prefix=PREFIX install architecture-independent files in PREFIX 610 [$ac_default_prefix] 611 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 612 [PREFIX] 613 614By default, \`make install' will install all the files in 615\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 616an installation prefix other than \`$ac_default_prefix' using \`--prefix', 617for instance \`--prefix=\$HOME'. 618 619For better control, use the options below. 620 621Fine tuning of the installation directories: 622 --bindir=DIR user executables [EPREFIX/bin] 623 --sbindir=DIR system admin executables [EPREFIX/sbin] 624 --libexecdir=DIR program executables [EPREFIX/libexec] 625 --datadir=DIR read-only architecture-independent data [PREFIX/share] 626 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 627 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 628 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 629 --libdir=DIR object code libraries [EPREFIX/lib] 630 --includedir=DIR C header files [PREFIX/include] 631 --oldincludedir=DIR C header files for non-gcc [/usr/include] 632 --infodir=DIR info documentation [PREFIX/info] 633 --mandir=DIR man documentation [PREFIX/man] 634EOF 635 636 cat <<\EOF 637 638Program names: 639 --program-prefix=PREFIX prepend PREFIX to installed program names 640 --program-suffix=SUFFIX append SUFFIX to installed program names 641 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 642 643System types: 644 --build=BUILD configure for building on BUILD [guessed] 645 --host=HOST build programs to run on HOST [BUILD] 646 --target=TARGET configure for building compilers for TARGET [HOST] 647EOF 648fi 649 650if test -n "$ac_init_help"; then 651 652 cat <<\EOF 653 654Optional Features: 655 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 656 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 657 --disable-dependency-tracking Speeds up one-time builds 658 --enable-dependency-tracking Do not reject slow dependency extractors 659 --enable-debugging + include debugging code 660 --enable-dst-minutes=60 + minutes per DST adjustment 661 --enable-HOPFSERIAL + hopf serial clock device 662 --enable-HOPFPCI + hopf 6039 PCI board 663 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 664 --enable-GPSVME - TrueTime GPS receiver/VME interface 665 --enable-SHM - SHM clock attached thru shared memory 666 --enable-all-clocks + include all suitable non-PARSE clocks: 667 --enable-ACTS + ACTS modem service 668 --enable-ARBITER + Arbiter 1088A/B GPS receiver 669 --enable-ARCRON-MSF + Arcron MSF receiver 670 --enable-ATOM s ATOM PPS interface 671 --enable-AS2201 + Austron 2200A/2201A GPS receiver 672 --enable-CHU - CHU modem/decoder 673 --enable-AUDIO-CHU s CHU audio/decoder 674 --enable-DATUM s Datum Programmable Time System 675 --enable-FG + Forum Graphic GPS 676 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 677 --enable-HPGPS + HP 58503A GPS receiver 678 --enable-IRIG s Sun IRIG audio decoder 679 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 680 --enable-LOCAL-CLOCK + local clock reference 681 --enable-MSFEES + EES M201 MSF receiver 682 --enable-MX4200 s Magnavox MX4200 GPS receiver 683 --enable-NMEA + NMEA GPS receiver 684 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 685 --enable-PALISADE + Palisade clock 686 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 687 --enable-JUPITER s Rockwell Jupiter GPS receiver 688 --enable-PTBACTS s PTB modem service 689 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 690 --enable-TRAK + TRAK 8810 GPS receiver 691 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 692 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 693 --enable-PCF + Conrad parallel port radio clock 694 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 695 --enable-TRUETIME s Kinemetrics/TrueTime receivers 696 --enable-ULINK + Ultralink WWVB receiver 697 --enable-WWV + WWV Audio receiver 698 --enable-USNO s USNO modem service 699 --enable-parse-clocks - include all suitable PARSE clocks: 700 --enable-COMPUTIME s Diem Computime Radio Clock 701 --enable-DCF7000 s ELV/DCF7000 clock 702 --enable-HOPF6021 s HOPF 6021 clock 703 --enable-MEINBERG s Meinberg clocks 704 --enable-RAWDCF s DCF77 raw time code 705 --enable-RCC8000 s RCC 8000 clock 706 --enable-SCHMID s Schmid DCF77 clock 707 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 708 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 709 --enable-WHARTON s WHARTON 400A Series clock 710 --enable-VARITEXT s VARITEXT clock 711 --enable-kmem s read /dev/kmem for tick and/or tickadj 712 --enable-accurate-adjtime 713 s the adjtime() call is accurate 714 --enable-tick=VALUE s force a value for 'tick' 715 --enable-tickadj=VALUE s force a value for 'tickadj' 716 --enable-udp-wildcard s use UDP wildcard delivery 717 --enable-slew-always s always slew the time 718 --enable-step-slew s step and slew the time 719 --enable-ntpdate-step s if ntpdate should step the time 720 --enable-hourly-todr-sync 721 s if we should sync TODR hourly 722 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 723 724Optional Packages: 725 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 726 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 727 --with-openssl-libdir + =/something/reasonable 728 --with-openssl-incdir + =/something/reasonable 729 --with-crypto + ={autokey,rsaref} 730 --with-electricfence - compile with ElectricFence malloc debugger 731 732Some influential environment variables: 733 CC C compiler command 734 CFLAGS C compiler flags 735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 736 nonstandard directory <lib dir> 737 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 738 headers in a nonstandard directory <include dir> 739 CPP C preprocessor 740 741Use these variables to override the choices made by `configure' or to help 742it to find libraries and programs with nonstandard names/locations. 743 744EOF 745fi 746 747if test "$ac_init_help" = "recursive"; then 748 # If there are subdirs, report their specific --help. 749 ac_popdir=`pwd` 750 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 751 cd $ac_subdir 752 # A "../" for each directory in /$ac_subdir. 753 ac_dots=`echo $ac_subdir | 754 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 755 756 case $srcdir in 757 .) # No --srcdir option. We are building in place. 758 ac_sub_srcdir=$srcdir ;; 759 [\\/]* | ?:[\\/]* ) # Absolute path. 760 ac_sub_srcdir=$srcdir/$ac_subdir ;; 761 *) # Relative path. 762 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 763 esac 764 765 # Check for guested configure; otherwise get Cygnus style configure. 766 if test -f $ac_sub_srcdir/configure.gnu; then 767 echo 768 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 769 elif test -f $ac_sub_srcdir/configure; then 770 echo 771 $SHELL $ac_sub_srcdir/configure --help=recursive 772 elif test -f $ac_sub_srcdir/configure.ac || 773 test -f $ac_sub_srcdir/configure.in; then 774 echo 775 $ac_configure --help 776 else 777 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 778 fi 779 cd $ac_popdir 780 done 781fi 782 783test -n "$ac_init_help" && exit 0 784if $ac_init_version; then 785 cat <<\EOF 786 787Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 788Free Software Foundation, Inc. 789This configure script is free software; the Free Software Foundation 790gives unlimited permission to copy, distribute and modify it. 791EOF 792 exit 0 793fi 794exec 5>config.log 795cat >&5 <<EOF 796This file contains any messages produced by compilers while 797running configure, to aid debugging if configure makes a mistake. 798 799It was created by $as_me, which was 800generated by GNU Autoconf 2.50. Invocation command line was 801 802 $ $0 $@ 803 804EOF 805{ 806cat <<_ASUNAME 807## ---------- ## 808## Platform. ## 809## ---------- ## 810 811hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 812uname -m = `(uname -m) 2>/dev/null || echo unknown` 813uname -r = `(uname -r) 2>/dev/null || echo unknown` 814uname -s = `(uname -s) 2>/dev/null || echo unknown` 815uname -v = `(uname -v) 2>/dev/null || echo unknown` 816 817/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 818/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 819 820/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 821/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 822/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 823hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 824/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 825/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 826/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 827 828PATH = $PATH 829 830_ASUNAME 831} >&5 832 833cat >&5 <<EOF 834## ------------ ## 835## Core tests. ## 836## ------------ ## 837 838EOF 839 840# Keep a trace of the command line. 841# Strip out --no-create and --no-recursion so they do not pile up. 842# Also quote any args containing shell meta-characters. 843ac_configure_args= 844ac_sep= 845for ac_arg 846do 847 case $ac_arg in 848 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 849 | --no-cr | --no-c) ;; 850 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 851 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 852 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 853 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 854 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 855 ac_sep=" " ;; 856 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 857 ac_sep=" " ;; 858 esac 859 # Get rid of the leading space. 860done 861 862# When interrupted or exit'd, cleanup temporary files, and complete 863# config.log. We remove comments because anyway the quotes in there 864# would cause problems or look ugly. 865trap 'exit_status=$? 866 # Save into config.log some information that might help in debugging. 867 echo >&5 868 echo "## ----------------- ##" >&5 869 echo "## Cache variables. ##" >&5 870 echo "## ----------------- ##" >&5 871 echo >&5 872 # The following way of writing the cache mishandles newlines in values, 873{ 874 (set) 2>&1 | 875 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 876 *ac_space=\ *) 877 sed -n \ 878 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 879 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 880 ;; 881 *) 882 sed -n \ 883 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 884 ;; 885 esac; 886} >&5 887 sed "/^$/d" confdefs.h >conftest.log 888 if test -s conftest.log; then 889 echo >&5 890 echo "## ------------ ##" >&5 891 echo "## confdefs.h. ##" >&5 892 echo "## ------------ ##" >&5 893 echo >&5 894 cat conftest.log >&5 895 fi 896 (echo; echo) >&5 897 test "$ac_signal" != 0 && 898 echo "$as_me: caught signal $ac_signal" >&5 899 echo "$as_me: exit $exit_status" >&5 900 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 901 exit $exit_status 902 ' 0 903for ac_signal in 1 2 13 15; do 904 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal 905done 906ac_signal=0 907 908# confdefs.h avoids OS command line length limits that DEFS can exceed. 909rm -rf conftest* confdefs.h 910# AIX cpp loses on an empty file, so make sure it contains at least a newline. 911echo >confdefs.h 912 913# Let the site file select an alternate cache file if it wants to. 914# Prefer explicitly selected file to automatically selected ones. 915if test -z "$CONFIG_SITE"; then 916 if test "x$prefix" != xNONE; then 917 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 918 else 919 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 920 fi 921fi 922for ac_site_file in $CONFIG_SITE; do 923 if test -r "$ac_site_file"; then 924 { echo "$as_me:924: loading site script $ac_site_file" >&5 925echo "$as_me: loading site script $ac_site_file" >&6;} 926 cat "$ac_site_file" >&5 927 . "$ac_site_file" 928 fi 929done 930 931if test -r "$cache_file"; then 932 # Some versions of bash will fail to source /dev/null (special 933 # files actually), so we avoid doing that. 934 if test -f "$cache_file"; then 935 { echo "$as_me:935: loading cache $cache_file" >&5 936echo "$as_me: loading cache $cache_file" >&6;} 937 case $cache_file in 938 [\\/]* | ?:[\\/]* ) . $cache_file;; 939 *) . ./$cache_file;; 940 esac 941 fi 942else 943 { echo "$as_me:943: creating cache $cache_file" >&5 944echo "$as_me: creating cache $cache_file" >&6;} 945 >$cache_file 946fi 947 948# Check that the precious variables saved in the cache have kept the same 949# value. 950ac_suggest_removing_cache=false 951for ac_var in `(set) 2>&1 | 952 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 953 eval ac_old_set=\$ac_cv_env_${ac_var}_set 954 eval ac_new_set=\$ac_env_${ac_var}_set 955 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 956 eval ac_new_val="\$ac_env_${ac_var}_value" 957 case $ac_old_set,$ac_new_set in 958 set,) 959 { echo "$as_me:959: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 960echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 961 ac_suggest_removing_cache=: ;; 962 ,set) 963 { echo "$as_me:963: WARNING: \`$ac_var' was not set in the previous run" >&5 964echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} 965 ac_suggest_removing_cache=: ;; 966 ,);; 967 *) 968 if test "x$ac_old_val" != "x$ac_new_val"; then 969 { echo "$as_me:969: WARNING: \`$ac_var' has changed since the previous run:" >&5 970echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} 971 { echo "$as_me:971: WARNING: former value: $ac_old_val" >&5 972echo "$as_me: WARNING: former value: $ac_old_val" >&2;} 973 { echo "$as_me:973: WARNING: current value: $ac_new_val" >&5 974echo "$as_me: WARNING: current value: $ac_new_val" >&2;} 975 ac_suggest_removing_cache=: 976 fi;; 977 esac 978done 979if $ac_suggest_removing_cache; then 980 { echo "$as_me:980: WARNING: changes in the environment can compromise the build" >&5 981echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} 982 { echo "$as_me:982: WARNING: consider removing $cache_file and starting over" >&5 983echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} 984fi 985 986ac_ext=c 987ac_cpp='$CPP $CPPFLAGS' 988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 990ac_compiler_gnu=$ac_cv_c_compiler_gnu 991 992case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 993 *c*,-n*) ECHO_N= ECHO_C=' 994' ECHO_T=' ' ;; 995 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 996 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 997esac 998echo "#! $SHELL" >conftest.sh 999echo "exit 0" >>conftest.sh 1000chmod +x conftest.sh 1001if { (echo "$as_me:1001: PATH=\".;.\"; conftest.sh") >&5 1002 (PATH=".;."; conftest.sh) 2>&5 1003 ac_status=$? 1004 echo "$as_me:1004: \$? = $ac_status" >&5 1005 (exit $ac_status); }; then 1006 ac_path_separator=';' 1007else 1008 ac_path_separator=: 1009fi 1010PATH_SEPARATOR="$ac_path_separator" 1011rm -f conftest.sh 1012 1013ac_aux_dir= 1014for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1015 if test -f $ac_dir/install-sh; then 1016 ac_aux_dir=$ac_dir 1017 ac_install_sh="$ac_aux_dir/install-sh -c" 1018 break 1019 elif test -f $ac_dir/install.sh; then 1020 ac_aux_dir=$ac_dir 1021 ac_install_sh="$ac_aux_dir/install.sh -c" 1022 break 1023 elif test -f $ac_dir/shtool; then 1024 ac_aux_dir=$ac_dir 1025 ac_install_sh="$ac_aux_dir/shtool install -c" 1026 break 1027 fi 1028done 1029if test -z "$ac_aux_dir"; then 1030 { { echo "$as_me:1030: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1031echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1032 { (exit 1); exit 1; }; } 1033fi 1034ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1035ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1036ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1037 1038# Make sure we can run config.sub. 1039$ac_config_sub sun4 >/dev/null 2>&1 || 1040 { { echo "$as_me:1040: error: cannot run $ac_config_sub" >&5 1041echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1042 { (exit 1); exit 1; }; } 1043 1044echo "$as_me:1044: checking build system type" >&5 1045echo $ECHO_N "checking build system type... $ECHO_C" >&6 1046if test "${ac_cv_build+set}" = set; then 1047 echo $ECHO_N "(cached) $ECHO_C" >&6 1048else 1049 ac_cv_build_alias=$build_alias 1050test -z "$ac_cv_build_alias" && 1051 ac_cv_build_alias=`$ac_config_guess` 1052test -z "$ac_cv_build_alias" && 1053 { { echo "$as_me:1053: error: cannot guess build type; you must specify one" >&5 1054echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1055 { (exit 1); exit 1; }; } 1056ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1057 { { echo "$as_me:1057: error: $ac_config_sub $ac_cv_build_alias failed." >&5 1058echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 1059 { (exit 1); exit 1; }; } 1060 1061fi 1062echo "$as_me:1062: result: $ac_cv_build" >&5 1063echo "${ECHO_T}$ac_cv_build" >&6 1064build=$ac_cv_build 1065build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1066build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1067build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1068 1069echo "$as_me:1069: checking host system type" >&5 1070echo $ECHO_N "checking host system type... $ECHO_C" >&6 1071if test "${ac_cv_host+set}" = set; then 1072 echo $ECHO_N "(cached) $ECHO_C" >&6 1073else 1074 ac_cv_host_alias=$host_alias 1075test -z "$ac_cv_host_alias" && 1076 ac_cv_host_alias=$ac_cv_build_alias 1077ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1078 { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1079echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1080 { (exit 1); exit 1; }; } 1081 1082fi 1083echo "$as_me:1083: result: $ac_cv_host" >&5 1084echo "${ECHO_T}$ac_cv_host" >&6 1085host=$ac_cv_host 1086host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1087host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1088host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1089 1090echo "$as_me:1090: checking target system type" >&5 1091echo $ECHO_N "checking target system type... $ECHO_C" >&6 1092if test "${ac_cv_target+set}" = set; then 1093 echo $ECHO_N "(cached) $ECHO_C" >&6 1094else 1095 ac_cv_target_alias=$target_alias 1096test "x$ac_cv_target_alias" = "x" && 1097 ac_cv_target_alias=$ac_cv_host_alias 1098ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1099 { { echo "$as_me:1099: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1100echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1101 { (exit 1); exit 1; }; } 1102 1103fi 1104echo "$as_me:1104: result: $ac_cv_target" >&5 1105echo "${ECHO_T}$ac_cv_target" >&6 1106target=$ac_cv_target 1107target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1108target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1109target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1110 1111# The aliases save the names the user supplied, while $host etc. 1112# will get canonicalized. 1113test -n "$target_alias" && 1114 test "$program_prefix$program_suffix$program_transform_name" = \ 1115 NONENONEs,x,x, && 1116 program_prefix=${target_alias}- 1117cat >>confdefs.h <<EOF 1118#define STR_SYSTEM "$target" 1119EOF 1120 1121ac_config_headers="$ac_config_headers config.h" 1122 1123 ac_config_commands="$ac_config_commands default-1" 1124 1125if test "$program_transform_name" = s,x,x,; then 1126 program_transform_name= 1127else 1128 # Double any \ or $. echo might interpret backslashes. 1129 cat <<\EOF >conftest.sed 1130s,\\,\\\\,g; s,\$,$$,g 1131EOF 1132 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1133 rm -f conftest.sed 1134fi 1135test "$program_prefix" != NONE && 1136 program_transform_name="s,^,${program_prefix},;$program_transform_name" 1137# Use a double $ so make ignores it. 1138test "$program_suffix" != NONE && 1139 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 1140 1141# sed with no file args requires a program. 1142test -z "$program_transform_name" && program_transform_name="s,x,x," 1143 1144# Find a good install program. We prefer a C program (faster), 1145# so one script is as good as another. But avoid the broken or 1146# incompatible versions: 1147# SysV /etc/install, /usr/sbin/install 1148# SunOS /usr/etc/install 1149# IRIX /sbin/install 1150# AIX /bin/install 1151# AmigaOS /C/install, which installs bootblocks on floppy discs 1152# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1153# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1154# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1155# ./install, which can be erroneously created by make from ./install.sh. 1156echo "$as_me:1156: checking for a BSD compatible install" >&5 1157echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 1158if test -z "$INSTALL"; then 1159if test "${ac_cv_path_install+set}" = set; then 1160 echo $ECHO_N "(cached) $ECHO_C" >&6 1161else 1162 ac_save_IFS=$IFS; IFS=$ac_path_separator 1163 for ac_dir in $PATH; do 1164 IFS=$ac_save_IFS 1165 # Account for people who put trailing slashes in PATH elements. 1166 case $ac_dir/ in 1167 / | ./ | .// | /cC/* \ 1168 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 1169 | /usr/ucb/* ) ;; 1170 *) 1171 # OSF1 and SCO ODT 3.0 have their own names for install. 1172 # Don't use installbsd from OSF since it installs stuff as root 1173 # by default. 1174 for ac_prog in ginstall scoinst install; do 1175 if $as_executable_p "$ac_dir/$ac_prog"; then 1176 if test $ac_prog = install && 1177 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1178 # AIX install. It has an incompatible calling convention. 1179 : 1180 elif test $ac_prog = install && 1181 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1182 # program-specific install script used by HP pwplus--don't use. 1183 : 1184 else 1185 ac_cv_path_install="$ac_dir/$ac_prog -c" 1186 break 2 1187 fi 1188 fi 1189 done 1190 ;; 1191 esac 1192 done 1193 1194fi 1195 if test "${ac_cv_path_install+set}" = set; then 1196 INSTALL=$ac_cv_path_install 1197 else 1198 # As a last resort, use the slow shell script. We don't cache a 1199 # path for INSTALL within a source directory, because that will 1200 # break other packages using the cache if that directory is 1201 # removed, or if the path is relative. 1202 INSTALL=$ac_install_sh 1203 fi 1204fi 1205echo "$as_me:1205: result: $INSTALL" >&5 1206echo "${ECHO_T}$INSTALL" >&6 1207 1208# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1209# It thinks the first close brace ends the variable substitution. 1210test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1211 1212test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1213 1214test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1215 1216echo "$as_me:1216: checking whether build environment is sane" >&5 1217echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1218# Just in case 1219sleep 1 1220echo timestamp > conftest.file 1221# Do `set' in a subshell so we don't clobber the current shell's 1222# arguments. Must try -L first in case configure is actually a 1223# symlink; some systems play weird games with the mod time of symlinks 1224# (eg FreeBSD returns the mod time of the symlink's containing 1225# directory). 1226if ( 1227 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1228 if test "$*" = "X"; then 1229 # -L didn't work. 1230 set X `ls -t $srcdir/configure conftest.file` 1231 fi 1232 if test "$*" != "X $srcdir/configure conftest.file" \ 1233 && test "$*" != "X conftest.file $srcdir/configure"; then 1234 1235 # If neither matched, then we have a broken ls. This can happen 1236 # if, for instance, CONFIG_SHELL is bash and it inherits a 1237 # broken ls alias from the environment. This has actually 1238 # happened. Such a system could not be considered "sane". 1239 { { echo "$as_me:1239: error: ls -t appears to fail. Make sure there is not a broken 1240alias in your environment" >&5 1241echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1242alias in your environment" >&2;} 1243 { (exit 1); exit 1; }; } 1244 fi 1245 1246 test "$2" = conftest.file 1247 ) 1248then 1249 # Ok. 1250 : 1251else 1252 { { echo "$as_me:1252: error: newly created file is older than distributed files! 1253Check your system clock" >&5 1254echo "$as_me: error: newly created file is older than distributed files! 1255Check your system clock" >&2;} 1256 { (exit 1); exit 1; }; } 1257fi 1258rm -f conftest* 1259echo "$as_me:1259: result: yes" >&5 1260echo "${ECHO_T}yes" >&6 1261test x"${MISSING+set}" = xset || 1262 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing" 1263# Use eval to expand $SHELL 1264if eval "$MISSING --run :"; then 1265 am_missing_run="$MISSING --run " 1266else 1267 am_missing_run= 1268 am_backtick='`' 1269 { echo "$as_me:1269: WARNING: ${am_backtick}missing' script is too old or missing" >&5 1270echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} 1271fi 1272 1273for ac_prog in mawk gawk nawk awk 1274do 1275 # Extract the first word of "$ac_prog", so it can be a program name with args. 1276set dummy $ac_prog; ac_word=$2 1277echo "$as_me:1277: checking for $ac_word" >&5 1278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1279if test "${ac_cv_prog_AWK+set}" = set; then 1280 echo $ECHO_N "(cached) $ECHO_C" >&6 1281else 1282 if test -n "$AWK"; then 1283 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1284else 1285 ac_save_IFS=$IFS; IFS=$ac_path_separator 1286ac_dummy="$PATH" 1287for ac_dir in $ac_dummy; do 1288 IFS=$ac_save_IFS 1289 test -z "$ac_dir" && ac_dir=. 1290 $as_executable_p "$ac_dir/$ac_word" || continue 1291ac_cv_prog_AWK="$ac_prog" 1292echo "$as_me:1292: found $ac_dir/$ac_word" >&5 1293break 1294done 1295 1296fi 1297fi 1298AWK=$ac_cv_prog_AWK 1299if test -n "$AWK"; then 1300 echo "$as_me:1300: result: $AWK" >&5 1301echo "${ECHO_T}$AWK" >&6 1302else 1303 echo "$as_me:1303: result: no" >&5 1304echo "${ECHO_T}no" >&6 1305fi 1306 1307 test -n "$AWK" && break 1308done 1309 1310echo "$as_me:1310: checking whether ${MAKE-make} sets \${MAKE}" >&5 1311echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1312set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1313if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1314 echo $ECHO_N "(cached) $ECHO_C" >&6 1315else 1316 cat >conftest.make <<\EOF 1317all: 1318 @echo 'ac_maketemp="${MAKE}"' 1319EOF 1320# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1321eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1322if test -n "$ac_maketemp"; then 1323 eval ac_cv_prog_make_${ac_make}_set=yes 1324else 1325 eval ac_cv_prog_make_${ac_make}_set=no 1326fi 1327rm -f conftest.make 1328fi 1329if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1330 echo "$as_me:1330: result: yes" >&5 1331echo "${ECHO_T}yes" >&6 1332 SET_MAKE= 1333else 1334 echo "$as_me:1334: result: no" >&5 1335echo "${ECHO_T}no" >&6 1336 SET_MAKE="MAKE=${MAKE-make}" 1337fi 1338 1339# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 1340if test "${enable_dependency_tracking+set}" = set; then 1341 enableval="$enable_dependency_tracking" 1342 1343fi; 1344if test "x$enable_dependency_tracking" = xno; then 1345 AMDEP="#" 1346else 1347 am_depcomp="$ac_aux_dir/depcomp" 1348 if test ! -f "$am_depcomp"; then 1349 AMDEP="#" 1350 else 1351 AMDEP= 1352 fi 1353fi 1354 1355if test -z "$AMDEP"; then 1356 AMDEPBACKSLASH='\' 1357else 1358 AMDEPBACKSLASH= 1359fi 1360 1361if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then 1362 DEPDIR=.deps 1363 # We redirect because .deps might already exist and be populated. 1364 # In this situation we don't want to see an error. 1365 rmdir .deps > /dev/null 2>&1 1366else 1367 DEPDIR=_deps 1368fi 1369 1370# test to see if srcdir already configured 1371if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 1372 test -f $srcdir/config.status; then 1373 { { echo "$as_me:1373: error: source directory already configured; run \"make distclean\" there first" >&5 1374echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1375 { (exit 1); exit 1; }; } 1376fi 1377 1378# Define the identity of the package. 1379PACKAGE=ntp 1380VERSION=4.1.0 1381 1382cat >>confdefs.h <<EOF 1383#define PACKAGE "$PACKAGE" 1384EOF 1385 1386cat >>confdefs.h <<EOF 1387#define VERSION "$VERSION" 1388EOF 1389 1390# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 1391# the ones we care about. 1392 1393# Some tools Automake needs. 1394 1395ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 1396 1397AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1398 1399AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 1400 1401AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1402 1403MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1404 1405AMTAR=${AMTAR-"${am_missing_run}tar"} 1406 1407if test -z "$install_sh"; then 1408 for install_sh in "$ac_aux_dir/install-sh" \ 1409 "$ac_aux_dir/install.sh" \ 1410 "${am_missing_run}${ac_auxdir}/install-sh"; 1411 do 1412 test -f "$install_sh" && break 1413 done 1414 # FIXME: an evil hack: we remove the SHELL invocation from 1415 # install_sh because automake adds it back in. Sigh. 1416 install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'` 1417fi 1418 1419# We'd like to do this but we can't because it will unconditionally 1420# require config.guess. One way would be if autoconf had the capability 1421# to let us compile in this code only when config.guess was already 1422# a possibility. 1423#if test "$cross_compiling" != no; then 1424# # since we are cross-compiling, we need to check for a suitable `strip' 1425# AM_PROG_STRIP 1426# if test -z "$STRIP"; then 1427# AC_MSG_WARN([strip missing, install-strip will not strip binaries]) 1428# fi 1429#fi 1430 1431# If $STRIP is defined (either by the user, or by AM_PROG_STRIP), 1432# instruct install-strip to use install-sh and the given $STRIP program. 1433# Otherwise, just use ${INSTALL}: the idea is to use the vendor install 1434# as much as possible, because it's faster. 1435if test -z "$STRIP"; then 1436 # The top level make will set INSTALL_PROGRAM=$(INSTALL_STRIP_PROGRAM) 1437 # and the double dolard below is there to make sure that ${INSTALL} 1438 # is substitued in the sub-makes, not at the top-level; this is 1439 # needed if ${INSTALL} is a relative path (ajusted in each subdirectory 1440 # by config.status). 1441 INSTALL_STRIP_PROGRAM='$${INSTALL} -s' 1442 INSTALL_STRIP_PROGRAM_ENV='' 1443else 1444 _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`" 1445 INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s" 1446 INSTALL_STRIP_PROGRAM_ENV="STRIPPROG='\$(STRIP)'" 1447fi 1448 1449# We need awk for the "check" target. The system "awk" is bad on 1450# some platforms. 1451 1452ac_cv_var_oncore_ok=no 1453ac_cv_var_atom_ok=no 1454 1455iCFLAGS="$CFLAGS" 1456 1457ac_ext=c 1458ac_cpp='$CPP $CPPFLAGS' 1459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1461ac_compiler_gnu=$ac_cv_c_compiler_gnu 1462if test -n "$ac_tool_prefix"; then 1463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1464set dummy ${ac_tool_prefix}gcc; ac_word=$2 1465echo "$as_me:1465: checking for $ac_word" >&5 1466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1467if test "${ac_cv_prog_CC+set}" = set; then 1468 echo $ECHO_N "(cached) $ECHO_C" >&6 1469else 1470 if test -n "$CC"; then 1471 ac_cv_prog_CC="$CC" # Let the user override the test. 1472else 1473 ac_save_IFS=$IFS; IFS=$ac_path_separator 1474ac_dummy="$PATH" 1475for ac_dir in $ac_dummy; do 1476 IFS=$ac_save_IFS 1477 test -z "$ac_dir" && ac_dir=. 1478 $as_executable_p "$ac_dir/$ac_word" || continue 1479ac_cv_prog_CC="${ac_tool_prefix}gcc" 1480echo "$as_me:1480: found $ac_dir/$ac_word" >&5 1481break 1482done 1483 1484fi 1485fi 1486CC=$ac_cv_prog_CC 1487if test -n "$CC"; then 1488 echo "$as_me:1488: result: $CC" >&5 1489echo "${ECHO_T}$CC" >&6 1490else 1491 echo "$as_me:1491: result: no" >&5 1492echo "${ECHO_T}no" >&6 1493fi 1494 1495fi 1496if test -z "$ac_cv_prog_CC"; then 1497 ac_ct_CC=$CC 1498 # Extract the first word of "gcc", so it can be a program name with args. 1499set dummy gcc; ac_word=$2 1500echo "$as_me:1500: checking for $ac_word" >&5 1501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1503 echo $ECHO_N "(cached) $ECHO_C" >&6 1504else 1505 if test -n "$ac_ct_CC"; then 1506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1507else 1508 ac_save_IFS=$IFS; IFS=$ac_path_separator 1509ac_dummy="$PATH" 1510for ac_dir in $ac_dummy; do 1511 IFS=$ac_save_IFS 1512 test -z "$ac_dir" && ac_dir=. 1513 $as_executable_p "$ac_dir/$ac_word" || continue 1514ac_cv_prog_ac_ct_CC="gcc" 1515echo "$as_me:1515: found $ac_dir/$ac_word" >&5 1516break 1517done 1518 1519fi 1520fi 1521ac_ct_CC=$ac_cv_prog_ac_ct_CC 1522if test -n "$ac_ct_CC"; then 1523 echo "$as_me:1523: result: $ac_ct_CC" >&5 1524echo "${ECHO_T}$ac_ct_CC" >&6 1525else 1526 echo "$as_me:1526: result: no" >&5 1527echo "${ECHO_T}no" >&6 1528fi 1529 1530 CC=$ac_ct_CC 1531else 1532 CC="$ac_cv_prog_CC" 1533fi 1534 1535if test -z "$CC"; then 1536 if test -n "$ac_tool_prefix"; then 1537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1538set dummy ${ac_tool_prefix}cc; ac_word=$2 1539echo "$as_me:1539: checking for $ac_word" >&5 1540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1541if test "${ac_cv_prog_CC+set}" = set; then 1542 echo $ECHO_N "(cached) $ECHO_C" >&6 1543else 1544 if test -n "$CC"; then 1545 ac_cv_prog_CC="$CC" # Let the user override the test. 1546else 1547 ac_save_IFS=$IFS; IFS=$ac_path_separator 1548ac_dummy="$PATH" 1549for ac_dir in $ac_dummy; do 1550 IFS=$ac_save_IFS 1551 test -z "$ac_dir" && ac_dir=. 1552 $as_executable_p "$ac_dir/$ac_word" || continue 1553ac_cv_prog_CC="${ac_tool_prefix}cc" 1554echo "$as_me:1554: found $ac_dir/$ac_word" >&5 1555break 1556done 1557 1558fi 1559fi 1560CC=$ac_cv_prog_CC 1561if test -n "$CC"; then 1562 echo "$as_me:1562: result: $CC" >&5 1563echo "${ECHO_T}$CC" >&6 1564else 1565 echo "$as_me:1565: result: no" >&5 1566echo "${ECHO_T}no" >&6 1567fi 1568 1569fi 1570if test -z "$ac_cv_prog_CC"; then 1571 ac_ct_CC=$CC 1572 # Extract the first word of "cc", so it can be a program name with args. 1573set dummy cc; ac_word=$2 1574echo "$as_me:1574: checking for $ac_word" >&5 1575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1576if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1577 echo $ECHO_N "(cached) $ECHO_C" >&6 1578else 1579 if test -n "$ac_ct_CC"; then 1580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1581else 1582 ac_save_IFS=$IFS; IFS=$ac_path_separator 1583ac_dummy="$PATH" 1584for ac_dir in $ac_dummy; do 1585 IFS=$ac_save_IFS 1586 test -z "$ac_dir" && ac_dir=. 1587 $as_executable_p "$ac_dir/$ac_word" || continue 1588ac_cv_prog_ac_ct_CC="cc" 1589echo "$as_me:1589: found $ac_dir/$ac_word" >&5 1590break 1591done 1592 1593fi 1594fi 1595ac_ct_CC=$ac_cv_prog_ac_ct_CC 1596if test -n "$ac_ct_CC"; then 1597 echo "$as_me:1597: result: $ac_ct_CC" >&5 1598echo "${ECHO_T}$ac_ct_CC" >&6 1599else 1600 echo "$as_me:1600: result: no" >&5 1601echo "${ECHO_T}no" >&6 1602fi 1603 1604 CC=$ac_ct_CC 1605else 1606 CC="$ac_cv_prog_CC" 1607fi 1608 1609fi 1610if test -z "$CC"; then 1611 # Extract the first word of "cc", so it can be a program name with args. 1612set dummy cc; ac_word=$2 1613echo "$as_me:1613: checking for $ac_word" >&5 1614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1615if test "${ac_cv_prog_CC+set}" = set; then 1616 echo $ECHO_N "(cached) $ECHO_C" >&6 1617else 1618 if test -n "$CC"; then 1619 ac_cv_prog_CC="$CC" # Let the user override the test. 1620else 1621 ac_prog_rejected=no 1622 ac_save_IFS=$IFS; IFS=$ac_path_separator 1623ac_dummy="$PATH" 1624for ac_dir in $ac_dummy; do 1625 IFS=$ac_save_IFS 1626 test -z "$ac_dir" && ac_dir=. 1627 $as_executable_p "$ac_dir/$ac_word" || continue 1628if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1629 ac_prog_rejected=yes 1630 continue 1631fi 1632ac_cv_prog_CC="cc" 1633echo "$as_me:1633: found $ac_dir/$ac_word" >&5 1634break 1635done 1636 1637if test $ac_prog_rejected = yes; then 1638 # We found a bogon in the path, so make sure we never use it. 1639 set dummy $ac_cv_prog_CC 1640 shift 1641 if test $# != 0; then 1642 # We chose a different compiler from the bogus one. 1643 # However, it has the same basename, so the bogon will be chosen 1644 # first if we set CC to just the basename; use the full file name. 1645 shift 1646 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1647 shift 1648 ac_cv_prog_CC="$@" 1649 fi 1650fi 1651fi 1652fi 1653CC=$ac_cv_prog_CC 1654if test -n "$CC"; then 1655 echo "$as_me:1655: result: $CC" >&5 1656echo "${ECHO_T}$CC" >&6 1657else 1658 echo "$as_me:1658: result: no" >&5 1659echo "${ECHO_T}no" >&6 1660fi 1661 1662fi 1663if test -z "$CC"; then 1664 if test -n "$ac_tool_prefix"; then 1665 for ac_prog in cl 1666 do 1667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1668set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1669echo "$as_me:1669: checking for $ac_word" >&5 1670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1671if test "${ac_cv_prog_CC+set}" = set; then 1672 echo $ECHO_N "(cached) $ECHO_C" >&6 1673else 1674 if test -n "$CC"; then 1675 ac_cv_prog_CC="$CC" # Let the user override the test. 1676else 1677 ac_save_IFS=$IFS; IFS=$ac_path_separator 1678ac_dummy="$PATH" 1679for ac_dir in $ac_dummy; do 1680 IFS=$ac_save_IFS 1681 test -z "$ac_dir" && ac_dir=. 1682 $as_executable_p "$ac_dir/$ac_word" || continue 1683ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1684echo "$as_me:1684: found $ac_dir/$ac_word" >&5 1685break 1686done 1687 1688fi 1689fi 1690CC=$ac_cv_prog_CC 1691if test -n "$CC"; then 1692 echo "$as_me:1692: result: $CC" >&5 1693echo "${ECHO_T}$CC" >&6 1694else 1695 echo "$as_me:1695: result: no" >&5 1696echo "${ECHO_T}no" >&6 1697fi 1698 1699 test -n "$CC" && break 1700 done 1701fi 1702if test -z "$CC"; then 1703 ac_ct_CC=$CC 1704 for ac_prog in cl 1705do 1706 # Extract the first word of "$ac_prog", so it can be a program name with args. 1707set dummy $ac_prog; ac_word=$2 1708echo "$as_me:1708: checking for $ac_word" >&5 1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1710if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1711 echo $ECHO_N "(cached) $ECHO_C" >&6 1712else 1713 if test -n "$ac_ct_CC"; then 1714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1715else 1716 ac_save_IFS=$IFS; IFS=$ac_path_separator 1717ac_dummy="$PATH" 1718for ac_dir in $ac_dummy; do 1719 IFS=$ac_save_IFS 1720 test -z "$ac_dir" && ac_dir=. 1721 $as_executable_p "$ac_dir/$ac_word" || continue 1722ac_cv_prog_ac_ct_CC="$ac_prog" 1723echo "$as_me:1723: found $ac_dir/$ac_word" >&5 1724break 1725done 1726 1727fi 1728fi 1729ac_ct_CC=$ac_cv_prog_ac_ct_CC 1730if test -n "$ac_ct_CC"; then 1731 echo "$as_me:1731: result: $ac_ct_CC" >&5 1732echo "${ECHO_T}$ac_ct_CC" >&6 1733else 1734 echo "$as_me:1734: result: no" >&5 1735echo "${ECHO_T}no" >&6 1736fi 1737 1738 test -n "$ac_ct_CC" && break 1739done 1740 1741 CC=$ac_ct_CC 1742fi 1743 1744fi 1745 1746test -z "$CC" && { { echo "$as_me:1746: error: no acceptable cc found in \$PATH" >&5 1747echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1748 { (exit 1); exit 1; }; } 1749 1750cat >conftest.$ac_ext <<_ACEOF 1751#line 1751 "configure" 1752#include "confdefs.h" 1753 1754int 1755main () 1756{ 1757 1758 ; 1759 return 0; 1760} 1761_ACEOF 1762ac_clean_files_save=$ac_clean_files 1763ac_clean_files="$ac_clean_files a.out a.exe" 1764# Try to create an executable without -o first, disregard a.out. 1765# It will help us diagnose broken compiler, and finding out an intuition 1766# of exeext. 1767echo "$as_me:1767: checking for C compiler default output" >&5 1768echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1769ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1770if { (eval echo "$as_me:1770: \"$ac_link_default\"") >&5 1771 (eval $ac_link_default) 2>&5 1772 ac_status=$? 1773 echo "$as_me:1773: \$? = $ac_status" >&5 1774 (exit $ac_status); }; then 1775 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do 1776 case $ac_file in 1777 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1778 a.out ) # We found the default executable, but exeext='' is most 1779 # certainly right. 1780 break;; 1781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1782 export ac_cv_exeext 1783 break;; 1784 * ) break;; 1785 esac 1786done 1787else 1788 echo "$as_me: failed program was:" >&5 1789cat conftest.$ac_ext >&5 1790{ { echo "$as_me:1790: error: C compiler cannot create executables" >&5 1791echo "$as_me: error: C compiler cannot create executables" >&2;} 1792 { (exit 77); exit 77; }; } 1793fi 1794 1795ac_exeext=$ac_cv_exeext 1796echo "$as_me:1796: result: $ac_file" >&5 1797echo "${ECHO_T}$ac_file" >&6 1798 1799# Check the compiler produces executables we can run. If not, either 1800# the compiler is broken, or we cross compile. 1801echo "$as_me:1801: checking whether the C compiler works" >&5 1802echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1803# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1804# If not cross compiling, check that we can run a simple program. 1805if test "$cross_compiling" != yes; then 1806 if { ac_try='./$ac_file' 1807 { (eval echo "$as_me:1807: \"$ac_try\"") >&5 1808 (eval $ac_try) 2>&5 1809 ac_status=$? 1810 echo "$as_me:1810: \$? = $ac_status" >&5 1811 (exit $ac_status); }; }; then 1812 cross_compiling=no 1813 else 1814 if test "$cross_compiling" = maybe; then 1815 cross_compiling=yes 1816 else 1817 { { echo "$as_me:1817: error: cannot run C compiled programs. 1818If you meant to cross compile, use \`--host'." >&5 1819echo "$as_me: error: cannot run C compiled programs. 1820If you meant to cross compile, use \`--host'." >&2;} 1821 { (exit 1); exit 1; }; } 1822 fi 1823 fi 1824fi 1825echo "$as_me:1825: result: yes" >&5 1826echo "${ECHO_T}yes" >&6 1827 1828rm -f a.out a.exe conftest$ac_cv_exeext 1829ac_clean_files=$ac_clean_files_save 1830# Check the compiler produces executables we can run. If not, either 1831# the compiler is broken, or we cross compile. 1832echo "$as_me:1832: checking whether we are cross compiling" >&5 1833echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1834echo "$as_me:1834: result: $cross_compiling" >&5 1835echo "${ECHO_T}$cross_compiling" >&6 1836 1837echo "$as_me:1837: checking for executable suffix" >&5 1838echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1839if { (eval echo "$as_me:1839: \"$ac_link\"") >&5 1840 (eval $ac_link) 2>&5 1841 ac_status=$? 1842 echo "$as_me:1842: \$? = $ac_status" >&5 1843 (exit $ac_status); }; then 1844 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1845# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1846# work properly (i.e., refer to `conftest.exe'), while it won't with 1847# `rm'. 1848for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1849 case $ac_file in 1850 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1852 export ac_cv_exeext 1853 break;; 1854 * ) break;; 1855 esac 1856done 1857else 1858 { { echo "$as_me:1858: error: cannot compute EXEEXT: cannot compile and link" >&5 1859echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1860 { (exit 1); exit 1; }; } 1861fi 1862 1863rm -f conftest$ac_cv_exeext 1864echo "$as_me:1864: result: $ac_cv_exeext" >&5 1865echo "${ECHO_T}$ac_cv_exeext" >&6 1866 1867rm -f conftest.$ac_ext 1868EXEEXT=$ac_cv_exeext 1869ac_exeext=$EXEEXT 1870echo "$as_me:1870: checking for object suffix" >&5 1871echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1872if test "${ac_cv_objext+set}" = set; then 1873 echo $ECHO_N "(cached) $ECHO_C" >&6 1874else 1875 cat >conftest.$ac_ext <<_ACEOF 1876#line 1876 "configure" 1877#include "confdefs.h" 1878 1879int 1880main () 1881{ 1882 1883 ; 1884 return 0; 1885} 1886_ACEOF 1887rm -f conftest.o conftest.obj 1888if { (eval echo "$as_me:1888: \"$ac_compile\"") >&5 1889 (eval $ac_compile) 2>&5 1890 ac_status=$? 1891 echo "$as_me:1891: \$? = $ac_status" >&5 1892 (exit $ac_status); }; then 1893 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1894 case $ac_file in 1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1896 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1897 break;; 1898 esac 1899done 1900else 1901 echo "$as_me: failed program was:" >&5 1902cat conftest.$ac_ext >&5 1903{ { echo "$as_me:1903: error: cannot compute OBJEXT: cannot compile" >&5 1904echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1905 { (exit 1); exit 1; }; } 1906fi 1907 1908rm -f conftest.$ac_cv_objext conftest.$ac_ext 1909fi 1910echo "$as_me:1910: result: $ac_cv_objext" >&5 1911echo "${ECHO_T}$ac_cv_objext" >&6 1912OBJEXT=$ac_cv_objext 1913ac_objext=$OBJEXT 1914echo "$as_me:1914: checking whether we are using the GNU C compiler" >&5 1915echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1916if test "${ac_cv_c_compiler_gnu+set}" = set; then 1917 echo $ECHO_N "(cached) $ECHO_C" >&6 1918else 1919 cat >conftest.$ac_ext <<_ACEOF 1920#line 1920 "configure" 1921#include "confdefs.h" 1922 1923int 1924main () 1925{ 1926#ifndef __GNUC__ 1927 choke me 1928#endif 1929 1930 ; 1931 return 0; 1932} 1933_ACEOF 1934rm -f conftest.$ac_objext 1935if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5 1936 (eval $ac_compile) 2>&5 1937 ac_status=$? 1938 echo "$as_me:1938: \$? = $ac_status" >&5 1939 (exit $ac_status); } && 1940 { ac_try='test -s conftest.$ac_objext' 1941 { (eval echo "$as_me:1941: \"$ac_try\"") >&5 1942 (eval $ac_try) 2>&5 1943 ac_status=$? 1944 echo "$as_me:1944: \$? = $ac_status" >&5 1945 (exit $ac_status); }; }; then 1946 ac_compiler_gnu=yes 1947else 1948 echo "$as_me: failed program was:" >&5 1949cat conftest.$ac_ext >&5 1950ac_compiler_gnu=no 1951fi 1952rm -f conftest.$ac_objext conftest.$ac_ext 1953ac_cv_c_compiler_gnu=$ac_compiler_gnu 1954 1955fi 1956echo "$as_me:1956: result: $ac_cv_c_compiler_gnu" >&5 1957echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1958GCC=`test $ac_compiler_gnu = yes && echo yes` 1959ac_test_CFLAGS=${CFLAGS+set} 1960ac_save_CFLAGS=$CFLAGS 1961CFLAGS="-g" 1962echo "$as_me:1962: checking whether $CC accepts -g" >&5 1963echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1964if test "${ac_cv_prog_cc_g+set}" = set; then 1965 echo $ECHO_N "(cached) $ECHO_C" >&6 1966else 1967 cat >conftest.$ac_ext <<_ACEOF 1968#line 1968 "configure" 1969#include "confdefs.h" 1970 1971int 1972main () 1973{ 1974 1975 ; 1976 return 0; 1977} 1978_ACEOF 1979rm -f conftest.$ac_objext 1980if { (eval echo "$as_me:1980: \"$ac_compile\"") >&5 1981 (eval $ac_compile) 2>&5 1982 ac_status=$? 1983 echo "$as_me:1983: \$? = $ac_status" >&5 1984 (exit $ac_status); } && 1985 { ac_try='test -s conftest.$ac_objext' 1986 { (eval echo "$as_me:1986: \"$ac_try\"") >&5 1987 (eval $ac_try) 2>&5 1988 ac_status=$? 1989 echo "$as_me:1989: \$? = $ac_status" >&5 1990 (exit $ac_status); }; }; then 1991 ac_cv_prog_cc_g=yes 1992else 1993 echo "$as_me: failed program was:" >&5 1994cat conftest.$ac_ext >&5 1995ac_cv_prog_cc_g=no 1996fi 1997rm -f conftest.$ac_objext conftest.$ac_ext 1998fi 1999echo "$as_me:1999: result: $ac_cv_prog_cc_g" >&5 2000echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2001if test "$ac_test_CFLAGS" = set; then 2002 CFLAGS=$ac_save_CFLAGS 2003elif test $ac_cv_prog_cc_g = yes; then 2004 if test "$GCC" = yes; then 2005 CFLAGS="-g -O2" 2006 else 2007 CFLAGS="-g" 2008 fi 2009else 2010 if test "$GCC" = yes; then 2011 CFLAGS="-O2" 2012 else 2013 CFLAGS= 2014 fi 2015fi 2016# Some people use a C++ compiler to compile C. Since we use `exit', 2017# in C++ we need to declare it. In case someone uses the same compiler 2018# for both compiling C and C++ we need to have the C++ compiler decide 2019# the declaration of exit, since it's the most demanding environment. 2020cat >conftest.$ac_ext <<_ACEOF 2021#ifndef __cplusplus 2022 choke me 2023#endif 2024_ACEOF 2025rm -f conftest.$ac_objext 2026if { (eval echo "$as_me:2026: \"$ac_compile\"") >&5 2027 (eval $ac_compile) 2>&5 2028 ac_status=$? 2029 echo "$as_me:2029: \$? = $ac_status" >&5 2030 (exit $ac_status); } && 2031 { ac_try='test -s conftest.$ac_objext' 2032 { (eval echo "$as_me:2032: \"$ac_try\"") >&5 2033 (eval $ac_try) 2>&5 2034 ac_status=$? 2035 echo "$as_me:2035: \$? = $ac_status" >&5 2036 (exit $ac_status); }; }; then 2037 for ac_declaration in \ 2038 ''\ 2039 '#include <stdlib.h>' \ 2040 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2041 'extern "C" void std::exit (int); using std::exit;' \ 2042 'extern "C" void exit (int) throw ();' \ 2043 'extern "C" void exit (int);' \ 2044 'void exit (int);' 2045do 2046 cat >conftest.$ac_ext <<_ACEOF 2047#line 2047 "configure" 2048#include "confdefs.h" 2049#include <stdlib.h> 2050$ac_declaration 2051int 2052main () 2053{ 2054exit (42); 2055 ; 2056 return 0; 2057} 2058_ACEOF 2059rm -f conftest.$ac_objext 2060if { (eval echo "$as_me:2060: \"$ac_compile\"") >&5 2061 (eval $ac_compile) 2>&5 2062 ac_status=$? 2063 echo "$as_me:2063: \$? = $ac_status" >&5 2064 (exit $ac_status); } && 2065 { ac_try='test -s conftest.$ac_objext' 2066 { (eval echo "$as_me:2066: \"$ac_try\"") >&5 2067 (eval $ac_try) 2>&5 2068 ac_status=$? 2069 echo "$as_me:2069: \$? = $ac_status" >&5 2070 (exit $ac_status); }; }; then 2071 : 2072else 2073 echo "$as_me: failed program was:" >&5 2074cat conftest.$ac_ext >&5 2075continue 2076fi 2077rm -f conftest.$ac_objext conftest.$ac_ext 2078 cat >conftest.$ac_ext <<_ACEOF 2079#line 2079 "configure" 2080#include "confdefs.h" 2081$ac_declaration 2082int 2083main () 2084{ 2085exit (42); 2086 ; 2087 return 0; 2088} 2089_ACEOF 2090rm -f conftest.$ac_objext 2091if { (eval echo "$as_me:2091: \"$ac_compile\"") >&5 2092 (eval $ac_compile) 2>&5 2093 ac_status=$? 2094 echo "$as_me:2094: \$? = $ac_status" >&5 2095 (exit $ac_status); } && 2096 { ac_try='test -s conftest.$ac_objext' 2097 { (eval echo "$as_me:2097: \"$ac_try\"") >&5 2098 (eval $ac_try) 2>&5 2099 ac_status=$? 2100 echo "$as_me:2100: \$? = $ac_status" >&5 2101 (exit $ac_status); }; }; then 2102 break 2103else 2104 echo "$as_me: failed program was:" >&5 2105cat conftest.$ac_ext >&5 2106fi 2107rm -f conftest.$ac_objext conftest.$ac_ext 2108done 2109echo '#ifdef __cplusplus' >>confdefs.h 2110echo $ac_declaration >>confdefs.h 2111echo '#endif' >>confdefs.h 2112 2113else 2114 echo "$as_me: failed program was:" >&5 2115cat conftest.$ac_ext >&5 2116fi 2117rm -f conftest.$ac_objext conftest.$ac_ext 2118ac_ext=c 2119ac_cpp='$CPP $CPPFLAGS' 2120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2122ac_compiler_gnu=$ac_cv_c_compiler_gnu 2123 2124ac_config_commands="$ac_config_commands default-2" 2125 2126ac_ext=c 2127ac_cpp='$CPP $CPPFLAGS' 2128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2130ac_compiler_gnu=$ac_cv_c_compiler_gnu 2131echo "$as_me:2131: checking how to run the C preprocessor" >&5 2132echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2133# On Suns, sometimes $CPP names a directory. 2134if test -n "$CPP" && test -d "$CPP"; then 2135 CPP= 2136fi 2137if test -z "$CPP"; then 2138 if test "${ac_cv_prog_CPP+set}" = set; then 2139 echo $ECHO_N "(cached) $ECHO_C" >&6 2140else 2141 # Double quotes because CPP needs to be expanded 2142 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2143 do 2144 # break 2 since there is a loop in there. 2145 ac_preproc_ok=false 2146for ac_c_preproc_warn_flag in '' yes 2147do 2148 # Use a header file that comes with gcc, so configuring glibc 2149 # with a fresh cross-compiler works. 2150 # On the NeXT, cc -E runs the code through the compiler's parser, 2151 # not just through cpp. "Syntax error" is here to catch this case. 2152 cat >conftest.$ac_ext <<_ACEOF 2153#line 2153 "configure" 2154#include "confdefs.h" 2155#include <assert.h> 2156 Syntax error 2157_ACEOF 2158if { (eval echo "$as_me:2158: \"$ac_cpp conftest.$ac_ext\"") >&5 2159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2160 ac_status=$? 2161 egrep -v '^ *\+' conftest.er1 >conftest.err 2162 rm -f conftest.er1 2163 cat conftest.err >&5 2164 echo "$as_me:2164: \$? = $ac_status" >&5 2165 (exit $ac_status); } >/dev/null; then 2166 if test -s conftest.err; then 2167 ac_cpp_err=$ac_c_preproc_warn_flag 2168 else 2169 ac_cpp_err= 2170 fi 2171else 2172 ac_cpp_err=yes 2173fi 2174if test -z "$ac_cpp_err"; then 2175 : 2176else 2177 echo "$as_me: failed program was:" >&5 2178 cat conftest.$ac_ext >&5 2179 # Broken: fails on valid input. 2180continue 2181fi 2182rm -f conftest.err conftest.$ac_ext 2183 2184 # OK, works on sane cases. Now check whether non-existent headers 2185 # can be detected and how. 2186 cat >conftest.$ac_ext <<_ACEOF 2187#line 2187 "configure" 2188#include "confdefs.h" 2189#include <ac_nonexistent.h> 2190_ACEOF 2191if { (eval echo "$as_me:2191: \"$ac_cpp conftest.$ac_ext\"") >&5 2192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2193 ac_status=$? 2194 egrep -v '^ *\+' conftest.er1 >conftest.err 2195 rm -f conftest.er1 2196 cat conftest.err >&5 2197 echo "$as_me:2197: \$? = $ac_status" >&5 2198 (exit $ac_status); } >/dev/null; then 2199 if test -s conftest.err; then 2200 ac_cpp_err=$ac_c_preproc_warn_flag 2201 else 2202 ac_cpp_err= 2203 fi 2204else 2205 ac_cpp_err=yes 2206fi 2207if test -z "$ac_cpp_err"; then 2208 # Broken: success on invalid input. 2209continue 2210else 2211 echo "$as_me: failed program was:" >&5 2212 cat conftest.$ac_ext >&5 2213 # Passes both tests. 2214ac_preproc_ok=: 2215break 2216fi 2217rm -f conftest.err conftest.$ac_ext 2218 2219done 2220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2221rm -f conftest.err conftest.$ac_ext 2222if $ac_preproc_ok; then 2223 break 2 2224fi 2225 2226 done 2227 ac_cv_prog_CPP=$CPP 2228 2229fi 2230 CPP=$ac_cv_prog_CPP 2231else 2232 ac_cv_prog_CPP=$CPP 2233fi 2234echo "$as_me:2234: result: $CPP" >&5 2235echo "${ECHO_T}$CPP" >&6 2236ac_preproc_ok=false 2237for ac_c_preproc_warn_flag in '' yes 2238do 2239 # Use a header file that comes with gcc, so configuring glibc 2240 # with a fresh cross-compiler works. 2241 # On the NeXT, cc -E runs the code through the compiler's parser, 2242 # not just through cpp. "Syntax error" is here to catch this case. 2243 cat >conftest.$ac_ext <<_ACEOF 2244#line 2244 "configure" 2245#include "confdefs.h" 2246#include <assert.h> 2247 Syntax error 2248_ACEOF 2249if { (eval echo "$as_me:2249: \"$ac_cpp conftest.$ac_ext\"") >&5 2250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2251 ac_status=$? 2252 egrep -v '^ *\+' conftest.er1 >conftest.err 2253 rm -f conftest.er1 2254 cat conftest.err >&5 2255 echo "$as_me:2255: \$? = $ac_status" >&5 2256 (exit $ac_status); } >/dev/null; then 2257 if test -s conftest.err; then 2258 ac_cpp_err=$ac_c_preproc_warn_flag 2259 else 2260 ac_cpp_err= 2261 fi 2262else 2263 ac_cpp_err=yes 2264fi 2265if test -z "$ac_cpp_err"; then 2266 : 2267else 2268 echo "$as_me: failed program was:" >&5 2269 cat conftest.$ac_ext >&5 2270 # Broken: fails on valid input. 2271continue 2272fi 2273rm -f conftest.err conftest.$ac_ext 2274 2275 # OK, works on sane cases. Now check whether non-existent headers 2276 # can be detected and how. 2277 cat >conftest.$ac_ext <<_ACEOF 2278#line 2278 "configure" 2279#include "confdefs.h" 2280#include <ac_nonexistent.h> 2281_ACEOF 2282if { (eval echo "$as_me:2282: \"$ac_cpp conftest.$ac_ext\"") >&5 2283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2284 ac_status=$? 2285 egrep -v '^ *\+' conftest.er1 >conftest.err 2286 rm -f conftest.er1 2287 cat conftest.err >&5 2288 echo "$as_me:2288: \$? = $ac_status" >&5 2289 (exit $ac_status); } >/dev/null; then 2290 if test -s conftest.err; then 2291 ac_cpp_err=$ac_c_preproc_warn_flag 2292 else 2293 ac_cpp_err= 2294 fi 2295else 2296 ac_cpp_err=yes 2297fi 2298if test -z "$ac_cpp_err"; then 2299 # Broken: success on invalid input. 2300continue 2301else 2302 echo "$as_me: failed program was:" >&5 2303 cat conftest.$ac_ext >&5 2304 # Passes both tests. 2305ac_preproc_ok=: 2306break 2307fi 2308rm -f conftest.err conftest.$ac_ext 2309 2310done 2311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2312rm -f conftest.err conftest.$ac_ext 2313if $ac_preproc_ok; then 2314 : 2315else 2316 { { echo "$as_me:2316: error: C preprocessor \"$CPP\" fails sanity check" >&5 2317echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2318 { (exit 1); exit 1; }; } 2319fi 2320 2321ac_ext=c 2322ac_cpp='$CPP $CPPFLAGS' 2323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2325ac_compiler_gnu=$ac_cv_c_compiler_gnu 2326 2327am_make=${MAKE-make} 2328# BSD make uses .include 2329cat > confinc << 'END' 2330doit: 2331 @echo done 2332END 2333# If we don't find an include directive, just comment out the code. 2334echo "$as_me:2334: checking for style of include used by $am_make" >&5 2335echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2336_am_include='#' 2337for am_inc in include .include; do 2338 echo "$am_inc confinc" > confmf 2339 if test "`$am_make -f confmf 2> /dev/null`" = "done"; then 2340 _am_include=$am_inc 2341 break 2342 fi 2343done 2344 2345echo "$as_me:2345: result: $_am_include" >&5 2346echo "${ECHO_T}$_am_include" >&6 2347rm -f confinc confmf 2348 2349depcc="$CC" 2350depcpp="$CPP" 2351 2352echo "$as_me:2352: checking dependency style of $depcc" >&5 2353echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2354if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2356else 2357 if test -z "$AMDEP"; then 2358 # We make a subdir and do the tests there. Otherwise we can end up 2359 # making bogus files that we don't know about and never remove. For 2360 # instance it was reported that on HP-UX the gcc test will end up 2361 # making a dummy file named `D' -- because `-MD' means `put the output 2362 # in D'. 2363 mkdir confdir 2364 # Copy depcomp to subdir because otherwise we won't find it if we're 2365 # using a relative directory. 2366 cp "$am_depcomp" confdir 2367 cd confdir 2368 2369 am_cv_CC_dependencies_compiler_type=none 2370 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "./depcomp"`; do 2371 # We need to recreate these files for each test, as the compiler may 2372 # overwrite some of them when testing with obscure command lines. 2373 # This happens at least with the AIX C compiler. 2374 echo '#include "conftest.h"' > conftest.c 2375 echo 'int i;' > conftest.h 2376 2377 case "$depmode" in 2378 nosideeffect) 2379 # after this tag, mechanisms are not by side-effect, so they'll 2380 # only be used when explicitly requested 2381 if test "x$enable_dependency_tracking" = xyes; then 2382 continue 2383 else 2384 break 2385 fi 2386 ;; 2387 none) break ;; 2388 esac 2389 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2390 # mode. It turns out that the SunPro C++ compiler does not properly 2391 # handle `-M -o', and we need to detect this. 2392 if depmode="$depmode" \ 2393 source=conftest.c object=conftest.o \ 2394 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2395 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2396 grep conftest.h conftest.Po > /dev/null 2>&1; then 2397 am_cv_CC_dependencies_compiler_type="$depmode" 2398 break 2399 fi 2400 done 2401 2402 cd .. 2403 rm -rf confdir 2404else 2405 am_cv_CC_dependencies_compiler_type=none 2406fi 2407 2408fi 2409echo "$as_me:2409: result: $am_cv_CC_dependencies_compiler_type" >&5 2410echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2411CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 2412 2413echo "$as_me:2413: checking for $CC option to accept ANSI C" >&5 2414echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2415if test "${ac_cv_prog_cc_stdc+set}" = set; then 2416 echo $ECHO_N "(cached) $ECHO_C" >&6 2417else 2418 ac_cv_prog_cc_stdc=no 2419ac_save_CC=$CC 2420cat >conftest.$ac_ext <<_ACEOF 2421#line 2421 "configure" 2422#include "confdefs.h" 2423#include <stdarg.h> 2424#include <stdio.h> 2425#include <sys/types.h> 2426#include <sys/stat.h> 2427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2428struct buf { int x; }; 2429FILE * (*rcsopen) (struct buf *, struct stat *, int); 2430static char *e (p, i) 2431 char **p; 2432 int i; 2433{ 2434 return p[i]; 2435} 2436static char *f (char * (*g) (char **, int), char **p, ...) 2437{ 2438 char *s; 2439 va_list v; 2440 va_start (v,p); 2441 s = g (p, va_arg (v,int)); 2442 va_end (v); 2443 return s; 2444} 2445int test (int i, double x); 2446struct s1 {int (*f) (int a);}; 2447struct s2 {int (*f) (double a);}; 2448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2449int argc; 2450char **argv; 2451int 2452main () 2453{ 2454return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2455 ; 2456 return 0; 2457} 2458_ACEOF 2459# Don't try gcc -ansi; that turns off useful extensions and 2460# breaks some systems' header files. 2461# AIX -qlanglvl=ansi 2462# Ultrix and OSF/1 -std1 2463# HP-UX 10.20 and later -Ae 2464# HP-UX older versions -Aa -D_HPUX_SOURCE 2465# SVR4 -Xc -D__EXTENSIONS__ 2466for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2467do 2468 CC="$ac_save_CC $ac_arg" 2469 rm -f conftest.$ac_objext 2470if { (eval echo "$as_me:2470: \"$ac_compile\"") >&5 2471 (eval $ac_compile) 2>&5 2472 ac_status=$? 2473 echo "$as_me:2473: \$? = $ac_status" >&5 2474 (exit $ac_status); } && 2475 { ac_try='test -s conftest.$ac_objext' 2476 { (eval echo "$as_me:2476: \"$ac_try\"") >&5 2477 (eval $ac_try) 2>&5 2478 ac_status=$? 2479 echo "$as_me:2479: \$? = $ac_status" >&5 2480 (exit $ac_status); }; }; then 2481 ac_cv_prog_cc_stdc=$ac_arg 2482break 2483else 2484 echo "$as_me: failed program was:" >&5 2485cat conftest.$ac_ext >&5 2486fi 2487rm -f conftest.$ac_objext 2488done 2489rm -f conftest.$ac_ext conftest.$ac_objext 2490CC=$ac_save_CC 2491 2492fi 2493 2494case "x$ac_cv_prog_cc_stdc" in 2495 x|xno) 2496 echo "$as_me:2496: result: none needed" >&5 2497echo "${ECHO_T}none needed" >&6 ;; 2498 *) 2499 echo "$as_me:2499: result: $ac_cv_prog_cc_stdc" >&5 2500echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2501 CC="$CC $ac_cv_prog_cc_stdc" ;; 2502esac 2503 2504ac_ext=c 2505ac_cpp='$CPP $CPPFLAGS' 2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2508ac_compiler_gnu=$ac_cv_c_compiler_gnu 2509echo "$as_me:2509: checking how to run the C preprocessor" >&5 2510echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2511# On Suns, sometimes $CPP names a directory. 2512if test -n "$CPP" && test -d "$CPP"; then 2513 CPP= 2514fi 2515if test -z "$CPP"; then 2516 if test "${ac_cv_prog_CPP+set}" = set; then 2517 echo $ECHO_N "(cached) $ECHO_C" >&6 2518else 2519 # Double quotes because CPP needs to be expanded 2520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2521 do 2522 # break 2 since there is a loop in there. 2523 ac_preproc_ok=false 2524for ac_c_preproc_warn_flag in '' yes 2525do 2526 # Use a header file that comes with gcc, so configuring glibc 2527 # with a fresh cross-compiler works. 2528 # On the NeXT, cc -E runs the code through the compiler's parser, 2529 # not just through cpp. "Syntax error" is here to catch this case. 2530 cat >conftest.$ac_ext <<_ACEOF 2531#line 2531 "configure" 2532#include "confdefs.h" 2533#include <assert.h> 2534 Syntax error 2535_ACEOF 2536if { (eval echo "$as_me:2536: \"$ac_cpp conftest.$ac_ext\"") >&5 2537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2538 ac_status=$? 2539 egrep -v '^ *\+' conftest.er1 >conftest.err 2540 rm -f conftest.er1 2541 cat conftest.err >&5 2542 echo "$as_me:2542: \$? = $ac_status" >&5 2543 (exit $ac_status); } >/dev/null; then 2544 if test -s conftest.err; then 2545 ac_cpp_err=$ac_c_preproc_warn_flag 2546 else 2547 ac_cpp_err= 2548 fi 2549else 2550 ac_cpp_err=yes 2551fi 2552if test -z "$ac_cpp_err"; then 2553 : 2554else 2555 echo "$as_me: failed program was:" >&5 2556 cat conftest.$ac_ext >&5 2557 # Broken: fails on valid input. 2558continue 2559fi 2560rm -f conftest.err conftest.$ac_ext 2561 2562 # OK, works on sane cases. Now check whether non-existent headers 2563 # can be detected and how. 2564 cat >conftest.$ac_ext <<_ACEOF 2565#line 2565 "configure" 2566#include "confdefs.h" 2567#include <ac_nonexistent.h> 2568_ACEOF 2569if { (eval echo "$as_me:2569: \"$ac_cpp conftest.$ac_ext\"") >&5 2570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2571 ac_status=$? 2572 egrep -v '^ *\+' conftest.er1 >conftest.err 2573 rm -f conftest.er1 2574 cat conftest.err >&5 2575 echo "$as_me:2575: \$? = $ac_status" >&5 2576 (exit $ac_status); } >/dev/null; then 2577 if test -s conftest.err; then 2578 ac_cpp_err=$ac_c_preproc_warn_flag 2579 else 2580 ac_cpp_err= 2581 fi 2582else 2583 ac_cpp_err=yes 2584fi 2585if test -z "$ac_cpp_err"; then 2586 # Broken: success on invalid input. 2587continue 2588else 2589 echo "$as_me: failed program was:" >&5 2590 cat conftest.$ac_ext >&5 2591 # Passes both tests. 2592ac_preproc_ok=: 2593break 2594fi 2595rm -f conftest.err conftest.$ac_ext 2596 2597done 2598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2599rm -f conftest.err conftest.$ac_ext 2600if $ac_preproc_ok; then 2601 break 2 2602fi 2603 2604 done 2605 ac_cv_prog_CPP=$CPP 2606 2607fi 2608 CPP=$ac_cv_prog_CPP 2609else 2610 ac_cv_prog_CPP=$CPP 2611fi 2612echo "$as_me:2612: result: $CPP" >&5 2613echo "${ECHO_T}$CPP" >&6 2614ac_preproc_ok=false 2615for ac_c_preproc_warn_flag in '' yes 2616do 2617 # Use a header file that comes with gcc, so configuring glibc 2618 # with a fresh cross-compiler works. 2619 # On the NeXT, cc -E runs the code through the compiler's parser, 2620 # not just through cpp. "Syntax error" is here to catch this case. 2621 cat >conftest.$ac_ext <<_ACEOF 2622#line 2622 "configure" 2623#include "confdefs.h" 2624#include <assert.h> 2625 Syntax error 2626_ACEOF 2627if { (eval echo "$as_me:2627: \"$ac_cpp conftest.$ac_ext\"") >&5 2628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2629 ac_status=$? 2630 egrep -v '^ *\+' conftest.er1 >conftest.err 2631 rm -f conftest.er1 2632 cat conftest.err >&5 2633 echo "$as_me:2633: \$? = $ac_status" >&5 2634 (exit $ac_status); } >/dev/null; then 2635 if test -s conftest.err; then 2636 ac_cpp_err=$ac_c_preproc_warn_flag 2637 else 2638 ac_cpp_err= 2639 fi 2640else 2641 ac_cpp_err=yes 2642fi 2643if test -z "$ac_cpp_err"; then 2644 : 2645else 2646 echo "$as_me: failed program was:" >&5 2647 cat conftest.$ac_ext >&5 2648 # Broken: fails on valid input. 2649continue 2650fi 2651rm -f conftest.err conftest.$ac_ext 2652 2653 # OK, works on sane cases. Now check whether non-existent headers 2654 # can be detected and how. 2655 cat >conftest.$ac_ext <<_ACEOF 2656#line 2656 "configure" 2657#include "confdefs.h" 2658#include <ac_nonexistent.h> 2659_ACEOF 2660if { (eval echo "$as_me:2660: \"$ac_cpp conftest.$ac_ext\"") >&5 2661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2662 ac_status=$? 2663 egrep -v '^ *\+' conftest.er1 >conftest.err 2664 rm -f conftest.er1 2665 cat conftest.err >&5 2666 echo "$as_me:2666: \$? = $ac_status" >&5 2667 (exit $ac_status); } >/dev/null; then 2668 if test -s conftest.err; then 2669 ac_cpp_err=$ac_c_preproc_warn_flag 2670 else 2671 ac_cpp_err= 2672 fi 2673else 2674 ac_cpp_err=yes 2675fi 2676if test -z "$ac_cpp_err"; then 2677 # Broken: success on invalid input. 2678continue 2679else 2680 echo "$as_me: failed program was:" >&5 2681 cat conftest.$ac_ext >&5 2682 # Passes both tests. 2683ac_preproc_ok=: 2684break 2685fi 2686rm -f conftest.err conftest.$ac_ext 2687 2688done 2689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2690rm -f conftest.err conftest.$ac_ext 2691if $ac_preproc_ok; then 2692 : 2693else 2694 { { echo "$as_me:2694: error: C preprocessor \"$CPP\" fails sanity check" >&5 2695echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2696 { (exit 1); exit 1; }; } 2697fi 2698 2699ac_ext=c 2700ac_cpp='$CPP $CPPFLAGS' 2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2703ac_compiler_gnu=$ac_cv_c_compiler_gnu 2704 2705case "$target" in 2706 *-pc-cygwin*) 2707 CFLAGS="$CFLAGS -DSYS_CYGWIN32" 2708 ;; 2709 i386-sequent-sysv4) 2710 case "$CC" in 2711 cc) 2712 CFLAGS="$CFLAGS -Wc,+Abi-socket" 2713 ;; 2714 esac 2715 ;; 2716 alpha*-dec-osf*) 2717 case "$CC" in 2718 cc) 2719 CFLAGS="$CFLAGS -std1" 2720 ;; 2721 esac 2722 ;; 2723esac 2724 2725case "$host" in 2726 $target) 2727 ;; 2728 *) case "$target" in 2729 *-*-vxworks*) 2730 # Quick and dirty sanity check 2731 case "$VX_KERNEL" in 2732 '') { { echo "$as_me:2732: error: Please follow the directions in html/vxworks.html!" >&5 2733echo "$as_me: error: Please follow the directions in html/vxworks.html!" >&2;} 2734 { (exit 1); exit 1; }; } 2735 ;; 2736 esac 2737 CFLAGS="$CFLAGS -DSYS_VXWORKS" 2738 ;; 2739 esac 2740 ;; 2741esac 2742 2743for ac_prog in mawk gawk nawk awk 2744do 2745 # Extract the first word of "$ac_prog", so it can be a program name with args. 2746set dummy $ac_prog; ac_word=$2 2747echo "$as_me:2747: checking for $ac_word" >&5 2748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2749if test "${ac_cv_prog_AWK+set}" = set; then 2750 echo $ECHO_N "(cached) $ECHO_C" >&6 2751else 2752 if test -n "$AWK"; then 2753 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2754else 2755 ac_save_IFS=$IFS; IFS=$ac_path_separator 2756ac_dummy="$PATH" 2757for ac_dir in $ac_dummy; do 2758 IFS=$ac_save_IFS 2759 test -z "$ac_dir" && ac_dir=. 2760 $as_executable_p "$ac_dir/$ac_word" || continue 2761ac_cv_prog_AWK="$ac_prog" 2762echo "$as_me:2762: found $ac_dir/$ac_word" >&5 2763break 2764done 2765 2766fi 2767fi 2768AWK=$ac_cv_prog_AWK 2769if test -n "$AWK"; then 2770 echo "$as_me:2770: result: $AWK" >&5 2771echo "${ECHO_T}$AWK" >&6 2772else 2773 echo "$as_me:2773: result: no" >&5 2774echo "${ECHO_T}no" >&6 2775fi 2776 2777 test -n "$AWK" && break 2778done 2779 2780echo "$as_me:2780: checking whether ${MAKE-make} sets \${MAKE}" >&5 2781echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2782set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2783if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2784 echo $ECHO_N "(cached) $ECHO_C" >&6 2785else 2786 cat >conftest.make <<\EOF 2787all: 2788 @echo 'ac_maketemp="${MAKE}"' 2789EOF 2790# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2791eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2792if test -n "$ac_maketemp"; then 2793 eval ac_cv_prog_make_${ac_make}_set=yes 2794else 2795 eval ac_cv_prog_make_${ac_make}_set=no 2796fi 2797rm -f conftest.make 2798fi 2799if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2800 echo "$as_me:2800: result: yes" >&5 2801echo "${ECHO_T}yes" >&6 2802 SET_MAKE= 2803else 2804 echo "$as_me:2804: result: no" >&5 2805echo "${ECHO_T}no" >&6 2806 SET_MAKE="MAKE=${MAKE-make}" 2807fi 2808 2809rm -f conftest* 2810 2811case "$GCC" in 2812 yes) 2813 CFLAGS="$CFLAGS -Wall" 2814 # CFLAGS="$CFLAGS -Wcast-align" 2815 CFLAGS="$CFLAGS -Wcast-qual" 2816 # CFLAGS="$CFLAGS -Wconversion" 2817 # CFLAGS="$CFLAGS -Werror" 2818 CFLAGS="$CFLAGS -Wmissing-prototypes" 2819 CFLAGS="$CFLAGS -Wpointer-arith" 2820 CFLAGS="$CFLAGS -Wshadow" 2821 CFLAGS="$CFLAGS -Wstrict-prototypes" 2822 # CFLAGS="$CFLAGS -Wtraditional" 2823 # CFLAGS="$CFLAGS -Wwrite-strings" 2824 2825 echo "$as_me:2825: checking whether ${CC-cc} -pipe works" >&5 2826echo $ECHO_N "checking whether ${CC-cc} -pipe works... $ECHO_C" >&6 2827if test "${ac_cv_prog_cc_pipe+set}" = set; then 2828 echo $ECHO_N "(cached) $ECHO_C" >&6 2829else 2830 echo 'void f(){}' > conftest.c 2831 if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`" -a -s conftest.o; then 2832 ac_cv_prog_cc_pipe=yes 2833 else 2834 ac_cv_prog_cc_pipe=no 2835 fi 2836 rm -f conftest* 2837 2838fi 2839echo "$as_me:2839: result: $ac_cv_prog_cc_pipe" >&5 2840echo "${ECHO_T}$ac_cv_prog_cc_pipe" >&6 2841 2842 case "$ac_cv_prog_cc_pipe" in 2843 yes) 2844 CFLAGS="$CFLAGS -pipe" 2845 ;; 2846 esac 2847 ;; 2848esac 2849 2850ac_busted_vpath_in_make=no 2851 2852case "$target" in 2853 *-next-nextstep3) 2854 CFLAGS="$CFLAGS -posix" 2855 ;; 2856 *-*-irix6.1*) # 64 bit only 2857 # busted vpath? 2858 ;; 2859 *-*-irix6*) # 6.2 (and later?) 2860 ac_busted_vpath_in_make=yes 2861 # don't pass -n32 to gcc, it cannot handle and doesn't need it 2862 if test "$GCC" != yes; then 2863 case "$CFLAGS" in 2864 *-n32*) ;; 2865 *-n64*) ;; 2866 *) case "$iCFLAGS" in 2867 '') CFLAGS="-O2 -g3 -n32" ;; 2868 *) CFLAGS="$CFLAGS -n32" ;; 2869 esac 2870 ;; 2871 esac 2872 case "$LDFLAGS" in 2873 *-n32*) ;; 2874 *-n64*) ;; 2875 *) LDFLAGS="$LDFLAGS -n32" ;; 2876 esac 2877 fi 2878 ;; 2879 *-*-solaris2.5.1) 2880 ac_busted_vpath_in_make=yes 2881 ;; 2882esac 2883 2884case "$ac_busted_vpath_in_make$srcdir" in 2885 no*) ;; 2886 yes.) ;; 2887 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in 2888 '') 2889 { { echo "$as_me:2889: error: building outside of the main directory requires GNU make" >&5 2890echo "$as_me: error: building outside of the main directory requires GNU make" >&2;} 2891 { (exit 1); exit 1; }; } 2892 ;; 2893 *) ;; 2894 esac 2895 ;; 2896esac 2897 2898echo "$as_me:2898: checking whether ln -s works" >&5 2899echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2900LN_S=$as_ln_s 2901if test "$LN_S" = "ln -s"; then 2902 echo "$as_me:2902: result: yes" >&5 2903echo "${ECHO_T}yes" >&6 2904else 2905 echo "$as_me:2905: result: no, using $LN_S" >&5 2906echo "${ECHO_T}no, using $LN_S" >&6 2907fi 2908 2909if test $ac_cv_c_compiler_gnu = yes; then 2910 echo "$as_me:2910: checking whether $CC needs -traditional" >&5 2911echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2912if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2913 echo $ECHO_N "(cached) $ECHO_C" >&6 2914else 2915 ac_pattern="Autoconf.*'x'" 2916 cat >conftest.$ac_ext <<_ACEOF 2917#line 2917 "configure" 2918#include "confdefs.h" 2919#include <sgtty.h> 2920Autoconf TIOCGETP 2921_ACEOF 2922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2923 egrep "$ac_pattern" >/dev/null 2>&1; then 2924 ac_cv_prog_gcc_traditional=yes 2925else 2926 ac_cv_prog_gcc_traditional=no 2927fi 2928rm -f conftest* 2929 2930 if test $ac_cv_prog_gcc_traditional = no; then 2931 cat >conftest.$ac_ext <<_ACEOF 2932#line 2932 "configure" 2933#include "confdefs.h" 2934#include <termio.h> 2935Autoconf TCGETA 2936_ACEOF 2937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2938 egrep "$ac_pattern" >/dev/null 2>&1; then 2939 ac_cv_prog_gcc_traditional=yes 2940fi 2941rm -f conftest* 2942 2943 fi 2944fi 2945echo "$as_me:2945: result: $ac_cv_prog_gcc_traditional" >&5 2946echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2947 if test $ac_cv_prog_gcc_traditional = yes; then 2948 CC="$CC -traditional" 2949 fi 2950fi 2951 2952echo "$as_me:2952: checking for AIX" >&5 2953echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2954cat >conftest.$ac_ext <<_ACEOF 2955#line 2955 "configure" 2956#include "confdefs.h" 2957#ifdef _AIX 2958 yes 2959#endif 2960 2961_ACEOF 2962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2963 egrep "yes" >/dev/null 2>&1; then 2964 echo "$as_me:2964: result: yes" >&5 2965echo "${ECHO_T}yes" >&6 2966cat >>confdefs.h <<\EOF 2967#define _ALL_SOURCE 1 2968EOF 2969 2970else 2971 echo "$as_me:2971: result: no" >&5 2972echo "${ECHO_T}no" >&6 2973fi 2974rm -f conftest* 2975 2976echo "$as_me:2976: checking for minix/config.h" >&5 2977echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2978if test "${ac_cv_header_minix_config_h+set}" = set; then 2979 echo $ECHO_N "(cached) $ECHO_C" >&6 2980else 2981 cat >conftest.$ac_ext <<_ACEOF 2982#line 2982 "configure" 2983#include "confdefs.h" 2984#include <minix/config.h> 2985_ACEOF 2986if { (eval echo "$as_me:2986: \"$ac_cpp conftest.$ac_ext\"") >&5 2987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2988 ac_status=$? 2989 egrep -v '^ *\+' conftest.er1 >conftest.err 2990 rm -f conftest.er1 2991 cat conftest.err >&5 2992 echo "$as_me:2992: \$? = $ac_status" >&5 2993 (exit $ac_status); } >/dev/null; then 2994 if test -s conftest.err; then 2995 ac_cpp_err=$ac_c_preproc_warn_flag 2996 else 2997 ac_cpp_err= 2998 fi 2999else 3000 ac_cpp_err=yes 3001fi 3002if test -z "$ac_cpp_err"; then 3003 ac_cv_header_minix_config_h=yes 3004else 3005 echo "$as_me: failed program was:" >&5 3006 cat conftest.$ac_ext >&5 3007 ac_cv_header_minix_config_h=no 3008fi 3009rm -f conftest.err conftest.$ac_ext 3010fi 3011echo "$as_me:3011: result: $ac_cv_header_minix_config_h" >&5 3012echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3013if test $ac_cv_header_minix_config_h = yes; then 3014 MINIX=yes 3015else 3016 MINIX= 3017fi 3018 3019if test "$MINIX" = yes; then 3020 3021cat >>confdefs.h <<\EOF 3022#define _POSIX_SOURCE 1 3023EOF 3024 3025cat >>confdefs.h <<\EOF 3026#define _POSIX_1_SOURCE 2 3027EOF 3028 3029cat >>confdefs.h <<\EOF 3030#define _MINIX 1 3031EOF 3032 3033fi 3034 3035echo "$as_me:3035: checking for POSIXized ISC" >&5 3036echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 3037if test -d /etc/conf/kconfig.d && 3038 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3039then 3040 echo "$as_me:3040: result: yes" >&5 3041echo "${ECHO_T}yes" >&6 3042 ISC=yes # If later tests want to check for ISC. 3043 3044cat >>confdefs.h <<\EOF 3045#define _POSIX_SOURCE 1 3046EOF 3047 3048 if test "$GCC" = yes; then 3049 CC="$CC -posix" 3050 else 3051 CC="$CC -Xp" 3052 fi 3053else 3054 echo "$as_me:3054: result: no" >&5 3055echo "${ECHO_T}no" >&6 3056 ISC= 3057fi 3058 3059if test -n "$ac_tool_prefix"; then 3060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3061set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3062echo "$as_me:3062: checking for $ac_word" >&5 3063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3064if test "${ac_cv_prog_RANLIB+set}" = set; then 3065 echo $ECHO_N "(cached) $ECHO_C" >&6 3066else 3067 if test -n "$RANLIB"; then 3068 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3069else 3070 ac_save_IFS=$IFS; IFS=$ac_path_separator 3071ac_dummy="$PATH" 3072for ac_dir in $ac_dummy; do 3073 IFS=$ac_save_IFS 3074 test -z "$ac_dir" && ac_dir=. 3075 $as_executable_p "$ac_dir/$ac_word" || continue 3076ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3077echo "$as_me:3077: found $ac_dir/$ac_word" >&5 3078break 3079done 3080 3081fi 3082fi 3083RANLIB=$ac_cv_prog_RANLIB 3084if test -n "$RANLIB"; then 3085 echo "$as_me:3085: result: $RANLIB" >&5 3086echo "${ECHO_T}$RANLIB" >&6 3087else 3088 echo "$as_me:3088: result: no" >&5 3089echo "${ECHO_T}no" >&6 3090fi 3091 3092fi 3093if test -z "$ac_cv_prog_RANLIB"; then 3094 ac_ct_RANLIB=$RANLIB 3095 # Extract the first word of "ranlib", so it can be a program name with args. 3096set dummy ranlib; ac_word=$2 3097echo "$as_me:3097: checking for $ac_word" >&5 3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3099if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3100 echo $ECHO_N "(cached) $ECHO_C" >&6 3101else 3102 if test -n "$ac_ct_RANLIB"; then 3103 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3104else 3105 ac_save_IFS=$IFS; IFS=$ac_path_separator 3106ac_dummy="$PATH" 3107for ac_dir in $ac_dummy; do 3108 IFS=$ac_save_IFS 3109 test -z "$ac_dir" && ac_dir=. 3110 $as_executable_p "$ac_dir/$ac_word" || continue 3111ac_cv_prog_ac_ct_RANLIB="ranlib" 3112echo "$as_me:3112: found $ac_dir/$ac_word" >&5 3113break 3114done 3115 3116 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3117fi 3118fi 3119ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3120if test -n "$ac_ct_RANLIB"; then 3121 echo "$as_me:3121: result: $ac_ct_RANLIB" >&5 3122echo "${ECHO_T}$ac_ct_RANLIB" >&6 3123else 3124 echo "$as_me:3124: result: no" >&5 3125echo "${ECHO_T}no" >&6 3126fi 3127 3128 RANLIB=$ac_ct_RANLIB 3129else 3130 RANLIB="$ac_cv_prog_RANLIB" 3131fi 3132 3133# Extract the first word of "sh", so it can be a program name with args. 3134set dummy sh; ac_word=$2 3135echo "$as_me:3135: checking for $ac_word" >&5 3136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3137if test "${ac_cv_path_PATH_SH+set}" = set; then 3138 echo $ECHO_N "(cached) $ECHO_C" >&6 3139else 3140 case $PATH_SH in 3141 [\\/]* | ?:[\\/]*) 3142 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path. 3143 ;; 3144 *) 3145 ac_save_IFS=$IFS; IFS=$ac_path_separator 3146ac_dummy="$PATH" 3147for ac_dir in $ac_dummy; do 3148 IFS=$ac_save_IFS 3149 test -z "$ac_dir" && ac_dir=. 3150 if $as_executable_p "$ac_dir/$ac_word"; then 3151 ac_cv_path_PATH_SH="$ac_dir/$ac_word" 3152 echo "$as_me:3152: found $ac_dir/$ac_word" >&5 3153 break 3154fi 3155done 3156 3157 ;; 3158esac 3159fi 3160PATH_SH=$ac_cv_path_PATH_SH 3161 3162if test -n "$PATH_SH"; then 3163 echo "$as_me:3163: result: $PATH_SH" >&5 3164echo "${ECHO_T}$PATH_SH" >&6 3165else 3166 echo "$as_me:3166: result: no" >&5 3167echo "${ECHO_T}no" >&6 3168fi 3169 3170# Extract the first word of "perl", so it can be a program name with args. 3171set dummy perl; ac_word=$2 3172echo "$as_me:3172: checking for $ac_word" >&5 3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3174if test "${ac_cv_path_PATH_PERL+set}" = set; then 3175 echo $ECHO_N "(cached) $ECHO_C" >&6 3176else 3177 case $PATH_PERL in 3178 [\\/]* | ?:[\\/]*) 3179 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path. 3180 ;; 3181 *) 3182 ac_save_IFS=$IFS; IFS=$ac_path_separator 3183ac_dummy="$PATH" 3184for ac_dir in $ac_dummy; do 3185 IFS=$ac_save_IFS 3186 test -z "$ac_dir" && ac_dir=. 3187 if $as_executable_p "$ac_dir/$ac_word"; then 3188 ac_cv_path_PATH_PERL="$ac_dir/$ac_word" 3189 echo "$as_me:3189: found $ac_dir/$ac_word" >&5 3190 break 3191fi 3192done 3193 3194 ;; 3195esac 3196fi 3197PATH_PERL=$ac_cv_path_PATH_PERL 3198 3199if test -n "$PATH_PERL"; then 3200 echo "$as_me:3200: result: $PATH_PERL" >&5 3201echo "${ECHO_T}$PATH_PERL" >&6 3202else 3203 echo "$as_me:3203: result: no" >&5 3204echo "${ECHO_T}no" >&6 3205fi 3206 3207 cat >conftest.$ac_ext <<_ACEOF 3208#line 3208 "configure" 3209#include "confdefs.h" 3210#define ACAT(a,b)a ## b 3211ACAT(Cir,cus) 3212 3213_ACEOF 3214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3215 egrep "Circus" >/dev/null 2>&1; then 3216 cat >>confdefs.h <<\EOF 3217#define ULONG_CONST(a) a ## UL 3218EOF 3219 3220else 3221 cat >conftest.$ac_ext <<_ACEOF 3222#line 3222 "configure" 3223#include "confdefs.h" 3224#define RCAT(a,b)a/**/b 3225RCAT(Rei,ser) 3226 3227_ACEOF 3228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3229 egrep "Reiser" >/dev/null 2>&1; then 3230 cat >>confdefs.h <<\EOF 3231#define ULONG_CONST(a) a/**/L 3232EOF 3233 3234else 3235 { { echo "$as_me:3235: error: How do we create an unsigned long constant?" >&5 3236echo "$as_me: error: How do we create an unsigned long constant?" >&2;} 3237 { (exit 1); exit 1; }; } 3238fi 3239rm -f conftest* 3240 3241fi 3242rm -f conftest* 3243 3244case "$target" in 3245 *-*-vxworks*) 3246 ac_link="$ac_link $VX_KERNEL" 3247 ;; 3248esac 3249 3250# Find a good install program. We prefer a C program (faster), 3251# so one script is as good as another. But avoid the broken or 3252# incompatible versions: 3253# SysV /etc/install, /usr/sbin/install 3254# SunOS /usr/etc/install 3255# IRIX /sbin/install 3256# AIX /bin/install 3257# AmigaOS /C/install, which installs bootblocks on floppy discs 3258# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3259# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3260# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3261# ./install, which can be erroneously created by make from ./install.sh. 3262echo "$as_me:3262: checking for a BSD compatible install" >&5 3263echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 3264if test -z "$INSTALL"; then 3265if test "${ac_cv_path_install+set}" = set; then 3266 echo $ECHO_N "(cached) $ECHO_C" >&6 3267else 3268 ac_save_IFS=$IFS; IFS=$ac_path_separator 3269 for ac_dir in $PATH; do 3270 IFS=$ac_save_IFS 3271 # Account for people who put trailing slashes in PATH elements. 3272 case $ac_dir/ in 3273 / | ./ | .// | /cC/* \ 3274 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 3275 | /usr/ucb/* ) ;; 3276 *) 3277 # OSF1 and SCO ODT 3.0 have their own names for install. 3278 # Don't use installbsd from OSF since it installs stuff as root 3279 # by default. 3280 for ac_prog in ginstall scoinst install; do 3281 if $as_executable_p "$ac_dir/$ac_prog"; then 3282 if test $ac_prog = install && 3283 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3284 # AIX install. It has an incompatible calling convention. 3285 : 3286 elif test $ac_prog = install && 3287 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 3288 # program-specific install script used by HP pwplus--don't use. 3289 : 3290 else 3291 ac_cv_path_install="$ac_dir/$ac_prog -c" 3292 break 2 3293 fi 3294 fi 3295 done 3296 ;; 3297 esac 3298 done 3299 3300fi 3301 if test "${ac_cv_path_install+set}" = set; then 3302 INSTALL=$ac_cv_path_install 3303 else 3304 # As a last resort, use the slow shell script. We don't cache a 3305 # path for INSTALL within a source directory, because that will 3306 # break other packages using the cache if that directory is 3307 # removed, or if the path is relative. 3308 INSTALL=$ac_install_sh 3309 fi 3310fi 3311echo "$as_me:3311: result: $INSTALL" >&5 3312echo "${ECHO_T}$INSTALL" >&6 3313 3314# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3315# It thinks the first close brace ends the variable substitution. 3316test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3317 3318test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3319 3320test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3321 3322case "$target" in 3323 *-pc-cygwin*) 3324 3325echo "$as_me:3325: checking for main in -ladvapi32" >&5 3326echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6 3327if test "${ac_cv_lib_advapi32_main+set}" = set; then 3328 echo $ECHO_N "(cached) $ECHO_C" >&6 3329else 3330 ac_check_lib_save_LIBS=$LIBS 3331LIBS="-ladvapi32 $LIBS" 3332cat >conftest.$ac_ext <<_ACEOF 3333#line 3333 "configure" 3334#include "confdefs.h" 3335 3336int 3337main () 3338{ 3339main (); 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344rm -f conftest.$ac_objext conftest$ac_exeext 3345if { (eval echo "$as_me:3345: \"$ac_link\"") >&5 3346 (eval $ac_link) 2>&5 3347 ac_status=$? 3348 echo "$as_me:3348: \$? = $ac_status" >&5 3349 (exit $ac_status); } && 3350 { ac_try='test -s conftest$ac_exeext' 3351 { (eval echo "$as_me:3351: \"$ac_try\"") >&5 3352 (eval $ac_try) 2>&5 3353 ac_status=$? 3354 echo "$as_me:3354: \$? = $ac_status" >&5 3355 (exit $ac_status); }; }; then 3356 ac_cv_lib_advapi32_main=yes 3357else 3358 echo "$as_me: failed program was:" >&5 3359cat conftest.$ac_ext >&5 3360ac_cv_lib_advapi32_main=no 3361fi 3362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3363LIBS=$ac_check_lib_save_LIBS 3364fi 3365echo "$as_me:3365: result: $ac_cv_lib_advapi32_main" >&5 3366echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6 3367if test $ac_cv_lib_advapi32_main = yes; then 3368 cat >>confdefs.h <<EOF 3369#define HAVE_LIBADVAPI32 1 3370EOF 3371 3372 LIBS="-ladvapi32 $LIBS" 3373 3374fi 3375 3376 ;; 3377esac 3378 3379echo "$as_me:3379: checking for nlist in -lelf" >&5 3380echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6 3381if test "${ac_cv_lib_elf_nlist+set}" = set; then 3382 echo $ECHO_N "(cached) $ECHO_C" >&6 3383else 3384 ac_check_lib_save_LIBS=$LIBS 3385LIBS="-lelf $LIBS" 3386cat >conftest.$ac_ext <<_ACEOF 3387#line 3387 "configure" 3388#include "confdefs.h" 3389 3390/* Override any gcc2 internal prototype to avoid an error. */ 3391#ifdef __cplusplus 3392extern "C" 3393#endif 3394/* We use char because int might match the return type of a gcc2 3395 builtin and then its argument prototype would still apply. */ 3396char nlist (); 3397int 3398main () 3399{ 3400nlist (); 3401 ; 3402 return 0; 3403} 3404_ACEOF 3405rm -f conftest.$ac_objext conftest$ac_exeext 3406if { (eval echo "$as_me:3406: \"$ac_link\"") >&5 3407 (eval $ac_link) 2>&5 3408 ac_status=$? 3409 echo "$as_me:3409: \$? = $ac_status" >&5 3410 (exit $ac_status); } && 3411 { ac_try='test -s conftest$ac_exeext' 3412 { (eval echo "$as_me:3412: \"$ac_try\"") >&5 3413 (eval $ac_try) 2>&5 3414 ac_status=$? 3415 echo "$as_me:3415: \$? = $ac_status" >&5 3416 (exit $ac_status); }; }; then 3417 ac_cv_lib_elf_nlist=yes 3418else 3419 echo "$as_me: failed program was:" >&5 3420cat conftest.$ac_ext >&5 3421ac_cv_lib_elf_nlist=no 3422fi 3423rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3424LIBS=$ac_check_lib_save_LIBS 3425fi 3426echo "$as_me:3426: result: $ac_cv_lib_elf_nlist" >&5 3427echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6 3428if test $ac_cv_lib_elf_nlist = yes; then 3429 cat >>confdefs.h <<EOF 3430#define HAVE_LIBELF 1 3431EOF 3432 3433 LIBS="-lelf $LIBS" 3434 3435fi 3436 3437echo "$as_me:3437: checking for main in -lkvm" >&5 3438echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6 3439if test "${ac_cv_lib_kvm_main+set}" = set; then 3440 echo $ECHO_N "(cached) $ECHO_C" >&6 3441else 3442 ac_check_lib_save_LIBS=$LIBS 3443LIBS="-lkvm $LIBS" 3444cat >conftest.$ac_ext <<_ACEOF 3445#line 3445 "configure" 3446#include "confdefs.h" 3447 3448int 3449main () 3450{ 3451main (); 3452 ; 3453 return 0; 3454} 3455_ACEOF 3456rm -f conftest.$ac_objext conftest$ac_exeext 3457if { (eval echo "$as_me:3457: \"$ac_link\"") >&5 3458 (eval $ac_link) 2>&5 3459 ac_status=$? 3460 echo "$as_me:3460: \$? = $ac_status" >&5 3461 (exit $ac_status); } && 3462 { ac_try='test -s conftest$ac_exeext' 3463 { (eval echo "$as_me:3463: \"$ac_try\"") >&5 3464 (eval $ac_try) 2>&5 3465 ac_status=$? 3466 echo "$as_me:3466: \$? = $ac_status" >&5 3467 (exit $ac_status); }; }; then 3468 ac_cv_lib_kvm_main=yes 3469else 3470 echo "$as_me: failed program was:" >&5 3471cat conftest.$ac_ext >&5 3472ac_cv_lib_kvm_main=no 3473fi 3474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3475LIBS=$ac_check_lib_save_LIBS 3476fi 3477echo "$as_me:3477: result: $ac_cv_lib_kvm_main" >&5 3478echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6 3479if test $ac_cv_lib_kvm_main = yes; then 3480 cat >>confdefs.h <<EOF 3481#define HAVE_LIBKVM 1 3482EOF 3483 3484 LIBS="-lkvm $LIBS" 3485 3486fi 3487 3488echo "$as_me:3488: checking for nlist in -lld" >&5 3489echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6 3490if test "${ac_cv_lib_ld_nlist+set}" = set; then 3491 echo $ECHO_N "(cached) $ECHO_C" >&6 3492else 3493 ac_check_lib_save_LIBS=$LIBS 3494LIBS="-lld $LIBS" 3495cat >conftest.$ac_ext <<_ACEOF 3496#line 3496 "configure" 3497#include "confdefs.h" 3498 3499/* Override any gcc2 internal prototype to avoid an error. */ 3500#ifdef __cplusplus 3501extern "C" 3502#endif 3503/* We use char because int might match the return type of a gcc2 3504 builtin and then its argument prototype would still apply. */ 3505char nlist (); 3506int 3507main () 3508{ 3509nlist (); 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514rm -f conftest.$ac_objext conftest$ac_exeext 3515if { (eval echo "$as_me:3515: \"$ac_link\"") >&5 3516 (eval $ac_link) 2>&5 3517 ac_status=$? 3518 echo "$as_me:3518: \$? = $ac_status" >&5 3519 (exit $ac_status); } && 3520 { ac_try='test -s conftest$ac_exeext' 3521 { (eval echo "$as_me:3521: \"$ac_try\"") >&5 3522 (eval $ac_try) 2>&5 3523 ac_status=$? 3524 echo "$as_me:3524: \$? = $ac_status" >&5 3525 (exit $ac_status); }; }; then 3526 ac_cv_lib_ld_nlist=yes 3527else 3528 echo "$as_me: failed program was:" >&5 3529cat conftest.$ac_ext >&5 3530ac_cv_lib_ld_nlist=no 3531fi 3532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3533LIBS=$ac_check_lib_save_LIBS 3534fi 3535echo "$as_me:3535: result: $ac_cv_lib_ld_nlist" >&5 3536echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6 3537if test $ac_cv_lib_ld_nlist = yes; then 3538 cat >>confdefs.h <<EOF 3539#define HAVE_LIBLD 1 3540EOF 3541 3542 LIBS="-lld $LIBS" 3543 3544fi 3545 3546echo "$as_me:3546: checking for nlist in -lmld" >&5 3547echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6 3548if test "${ac_cv_lib_mld_nlist+set}" = set; then 3549 echo $ECHO_N "(cached) $ECHO_C" >&6 3550else 3551 ac_check_lib_save_LIBS=$LIBS 3552LIBS="-lmld $LIBS" 3553cat >conftest.$ac_ext <<_ACEOF 3554#line 3554 "configure" 3555#include "confdefs.h" 3556 3557/* Override any gcc2 internal prototype to avoid an error. */ 3558#ifdef __cplusplus 3559extern "C" 3560#endif 3561/* We use char because int might match the return type of a gcc2 3562 builtin and then its argument prototype would still apply. */ 3563char nlist (); 3564int 3565main () 3566{ 3567nlist (); 3568 ; 3569 return 0; 3570} 3571_ACEOF 3572rm -f conftest.$ac_objext conftest$ac_exeext 3573if { (eval echo "$as_me:3573: \"$ac_link\"") >&5 3574 (eval $ac_link) 2>&5 3575 ac_status=$? 3576 echo "$as_me:3576: \$? = $ac_status" >&5 3577 (exit $ac_status); } && 3578 { ac_try='test -s conftest$ac_exeext' 3579 { (eval echo "$as_me:3579: \"$ac_try\"") >&5 3580 (eval $ac_try) 2>&5 3581 ac_status=$? 3582 echo "$as_me:3582: \$? = $ac_status" >&5 3583 (exit $ac_status); }; }; then 3584 ac_cv_lib_mld_nlist=yes 3585else 3586 echo "$as_me: failed program was:" >&5 3587cat conftest.$ac_ext >&5 3588ac_cv_lib_mld_nlist=no 3589fi 3590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3591LIBS=$ac_check_lib_save_LIBS 3592fi 3593echo "$as_me:3593: result: $ac_cv_lib_mld_nlist" >&5 3594echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6 3595if test $ac_cv_lib_mld_nlist = yes; then 3596 cat >>confdefs.h <<EOF 3597#define HAVE_LIBMLD 1 3598EOF 3599 3600 LIBS="-lmld $LIBS" 3601 3602fi 3603 3604echo "$as_me:3604: checking for gethostent" >&5 3605echo $ECHO_N "checking for gethostent... $ECHO_C" >&6 3606if test "${ac_cv_func_gethostent+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 cat >conftest.$ac_ext <<_ACEOF 3610#line 3610 "configure" 3611#include "confdefs.h" 3612/* System header to define __stub macros and hopefully few prototypes, 3613 which can conflict with char gethostent (); below. */ 3614#include <assert.h> 3615/* Override any gcc2 internal prototype to avoid an error. */ 3616#ifdef __cplusplus 3617extern "C" 3618#endif 3619/* We use char because int might match the return type of a gcc2 3620 builtin and then its argument prototype would still apply. */ 3621char gethostent (); 3622char (*f) (); 3623 3624int 3625main () 3626{ 3627/* The GNU C library defines this for functions which it implements 3628 to always fail with ENOSYS. Some functions are actually named 3629 something starting with __ and the normal name is an alias. */ 3630#if defined (__stub_gethostent) || defined (__stub___gethostent) 3631choke me 3632#else 3633f = gethostent; 3634#endif 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640rm -f conftest.$ac_objext conftest$ac_exeext 3641if { (eval echo "$as_me:3641: \"$ac_link\"") >&5 3642 (eval $ac_link) 2>&5 3643 ac_status=$? 3644 echo "$as_me:3644: \$? = $ac_status" >&5 3645 (exit $ac_status); } && 3646 { ac_try='test -s conftest$ac_exeext' 3647 { (eval echo "$as_me:3647: \"$ac_try\"") >&5 3648 (eval $ac_try) 2>&5 3649 ac_status=$? 3650 echo "$as_me:3650: \$? = $ac_status" >&5 3651 (exit $ac_status); }; }; then 3652 ac_cv_func_gethostent=yes 3653else 3654 echo "$as_me: failed program was:" >&5 3655cat conftest.$ac_ext >&5 3656ac_cv_func_gethostent=no 3657fi 3658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3659fi 3660echo "$as_me:3660: result: $ac_cv_func_gethostent" >&5 3661echo "${ECHO_T}$ac_cv_func_gethostent" >&6 3662if test $ac_cv_func_gethostent = yes; then 3663 : 3664else 3665 3666echo "$as_me:3666: checking for gethostent in -lnsl" >&5 3667echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6 3668if test "${ac_cv_lib_nsl_gethostent+set}" = set; then 3669 echo $ECHO_N "(cached) $ECHO_C" >&6 3670else 3671 ac_check_lib_save_LIBS=$LIBS 3672LIBS="-lnsl -lsocket $LIBS" 3673cat >conftest.$ac_ext <<_ACEOF 3674#line 3674 "configure" 3675#include "confdefs.h" 3676 3677/* Override any gcc2 internal prototype to avoid an error. */ 3678#ifdef __cplusplus 3679extern "C" 3680#endif 3681/* We use char because int might match the return type of a gcc2 3682 builtin and then its argument prototype would still apply. */ 3683char gethostent (); 3684int 3685main () 3686{ 3687gethostent (); 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692rm -f conftest.$ac_objext conftest$ac_exeext 3693if { (eval echo "$as_me:3693: \"$ac_link\"") >&5 3694 (eval $ac_link) 2>&5 3695 ac_status=$? 3696 echo "$as_me:3696: \$? = $ac_status" >&5 3697 (exit $ac_status); } && 3698 { ac_try='test -s conftest$ac_exeext' 3699 { (eval echo "$as_me:3699: \"$ac_try\"") >&5 3700 (eval $ac_try) 2>&5 3701 ac_status=$? 3702 echo "$as_me:3702: \$? = $ac_status" >&5 3703 (exit $ac_status); }; }; then 3704 ac_cv_lib_nsl_gethostent=yes 3705else 3706 echo "$as_me: failed program was:" >&5 3707cat conftest.$ac_ext >&5 3708ac_cv_lib_nsl_gethostent=no 3709fi 3710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3711LIBS=$ac_check_lib_save_LIBS 3712fi 3713echo "$as_me:3713: result: $ac_cv_lib_nsl_gethostent" >&5 3714echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6 3715if test $ac_cv_lib_nsl_gethostent = yes; then 3716 cat >>confdefs.h <<EOF 3717#define HAVE_LIBNSL 1 3718EOF 3719 3720 LIBS="-lnsl $LIBS" 3721 3722fi 3723 3724fi 3725 3726echo "$as_me:3726: checking for openlog" >&5 3727echo $ECHO_N "checking for openlog... $ECHO_C" >&6 3728if test "${ac_cv_func_openlog+set}" = set; then 3729 echo $ECHO_N "(cached) $ECHO_C" >&6 3730else 3731 cat >conftest.$ac_ext <<_ACEOF 3732#line 3732 "configure" 3733#include "confdefs.h" 3734/* System header to define __stub macros and hopefully few prototypes, 3735 which can conflict with char openlog (); below. */ 3736#include <assert.h> 3737/* Override any gcc2 internal prototype to avoid an error. */ 3738#ifdef __cplusplus 3739extern "C" 3740#endif 3741/* We use char because int might match the return type of a gcc2 3742 builtin and then its argument prototype would still apply. */ 3743char openlog (); 3744char (*f) (); 3745 3746int 3747main () 3748{ 3749/* The GNU C library defines this for functions which it implements 3750 to always fail with ENOSYS. Some functions are actually named 3751 something starting with __ and the normal name is an alias. */ 3752#if defined (__stub_openlog) || defined (__stub___openlog) 3753choke me 3754#else 3755f = openlog; 3756#endif 3757 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762rm -f conftest.$ac_objext conftest$ac_exeext 3763if { (eval echo "$as_me:3763: \"$ac_link\"") >&5 3764 (eval $ac_link) 2>&5 3765 ac_status=$? 3766 echo "$as_me:3766: \$? = $ac_status" >&5 3767 (exit $ac_status); } && 3768 { ac_try='test -s conftest$ac_exeext' 3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5 3770 (eval $ac_try) 2>&5 3771 ac_status=$? 3772 echo "$as_me:3772: \$? = $ac_status" >&5 3773 (exit $ac_status); }; }; then 3774 ac_cv_func_openlog=yes 3775else 3776 echo "$as_me: failed program was:" >&5 3777cat conftest.$ac_ext >&5 3778ac_cv_func_openlog=no 3779fi 3780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3781fi 3782echo "$as_me:3782: result: $ac_cv_func_openlog" >&5 3783echo "${ECHO_T}$ac_cv_func_openlog" >&6 3784if test $ac_cv_func_openlog = yes; then 3785 : 3786else 3787 3788echo "$as_me:3788: checking for openlog in -lgen" >&5 3789echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6 3790if test "${ac_cv_lib_gen_openlog+set}" = set; then 3791 echo $ECHO_N "(cached) $ECHO_C" >&6 3792else 3793 ac_check_lib_save_LIBS=$LIBS 3794LIBS="-lgen $LIBS" 3795cat >conftest.$ac_ext <<_ACEOF 3796#line 3796 "configure" 3797#include "confdefs.h" 3798 3799/* Override any gcc2 internal prototype to avoid an error. */ 3800#ifdef __cplusplus 3801extern "C" 3802#endif 3803/* We use char because int might match the return type of a gcc2 3804 builtin and then its argument prototype would still apply. */ 3805char openlog (); 3806int 3807main () 3808{ 3809openlog (); 3810 ; 3811 return 0; 3812} 3813_ACEOF 3814rm -f conftest.$ac_objext conftest$ac_exeext 3815if { (eval echo "$as_me:3815: \"$ac_link\"") >&5 3816 (eval $ac_link) 2>&5 3817 ac_status=$? 3818 echo "$as_me:3818: \$? = $ac_status" >&5 3819 (exit $ac_status); } && 3820 { ac_try='test -s conftest$ac_exeext' 3821 { (eval echo "$as_me:3821: \"$ac_try\"") >&5 3822 (eval $ac_try) 2>&5 3823 ac_status=$? 3824 echo "$as_me:3824: \$? = $ac_status" >&5 3825 (exit $ac_status); }; }; then 3826 ac_cv_lib_gen_openlog=yes 3827else 3828 echo "$as_me: failed program was:" >&5 3829cat conftest.$ac_ext >&5 3830ac_cv_lib_gen_openlog=no 3831fi 3832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3833LIBS=$ac_check_lib_save_LIBS 3834fi 3835echo "$as_me:3835: result: $ac_cv_lib_gen_openlog" >&5 3836echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6 3837if test $ac_cv_lib_gen_openlog = yes; then 3838 cat >>confdefs.h <<EOF 3839#define HAVE_LIBGEN 1 3840EOF 3841 3842 LIBS="-lgen $LIBS" 3843 3844fi 3845 3846fi 3847 3848echo "$as_me:3848: checking for readline in -lreadline" >&5 3849echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 3850if test "${ac_cv_lib_readline_readline+set}" = set; then 3851 echo $ECHO_N "(cached) $ECHO_C" >&6 3852else 3853 ac_check_lib_save_LIBS=$LIBS 3854LIBS="-lreadline $LIBS" 3855cat >conftest.$ac_ext <<_ACEOF 3856#line 3856 "configure" 3857#include "confdefs.h" 3858 3859/* Override any gcc2 internal prototype to avoid an error. */ 3860#ifdef __cplusplus 3861extern "C" 3862#endif 3863/* We use char because int might match the return type of a gcc2 3864 builtin and then its argument prototype would still apply. */ 3865char readline (); 3866int 3867main () 3868{ 3869readline (); 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874rm -f conftest.$ac_objext conftest$ac_exeext 3875if { (eval echo "$as_me:3875: \"$ac_link\"") >&5 3876 (eval $ac_link) 2>&5 3877 ac_status=$? 3878 echo "$as_me:3878: \$? = $ac_status" >&5 3879 (exit $ac_status); } && 3880 { ac_try='test -s conftest$ac_exeext' 3881 { (eval echo "$as_me:3881: \"$ac_try\"") >&5 3882 (eval $ac_try) 2>&5 3883 ac_status=$? 3884 echo "$as_me:3884: \$? = $ac_status" >&5 3885 (exit $ac_status); }; }; then 3886 ac_cv_lib_readline_readline=yes 3887else 3888 echo "$as_me: failed program was:" >&5 3889cat conftest.$ac_ext >&5 3890ac_cv_lib_readline_readline=no 3891fi 3892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3893LIBS=$ac_check_lib_save_LIBS 3894fi 3895echo "$as_me:3895: result: $ac_cv_lib_readline_readline" >&5 3896echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 3897if test $ac_cv_lib_readline_readline = yes; then 3898 cat >>confdefs.h <<EOF 3899#define HAVE_LIBREADLINE 1 3900EOF 3901 3902 LIBS="-lreadline $LIBS" 3903 3904fi 3905 3906case "$target" in 3907 *-*-linux*) ;; 3908 *) 3909 3910echo "$as_me:3910: checking for sched_setscheduler in -lrt" >&5 3911echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6 3912if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then 3913 echo $ECHO_N "(cached) $ECHO_C" >&6 3914else 3915 ac_check_lib_save_LIBS=$LIBS 3916LIBS="-lrt $LIBS" 3917cat >conftest.$ac_ext <<_ACEOF 3918#line 3918 "configure" 3919#include "confdefs.h" 3920 3921/* Override any gcc2 internal prototype to avoid an error. */ 3922#ifdef __cplusplus 3923extern "C" 3924#endif 3925/* We use char because int might match the return type of a gcc2 3926 builtin and then its argument prototype would still apply. */ 3927char sched_setscheduler (); 3928int 3929main () 3930{ 3931sched_setscheduler (); 3932 ; 3933 return 0; 3934} 3935_ACEOF 3936rm -f conftest.$ac_objext conftest$ac_exeext 3937if { (eval echo "$as_me:3937: \"$ac_link\"") >&5 3938 (eval $ac_link) 2>&5 3939 ac_status=$? 3940 echo "$as_me:3940: \$? = $ac_status" >&5 3941 (exit $ac_status); } && 3942 { ac_try='test -s conftest$ac_exeext' 3943 { (eval echo "$as_me:3943: \"$ac_try\"") >&5 3944 (eval $ac_try) 2>&5 3945 ac_status=$? 3946 echo "$as_me:3946: \$? = $ac_status" >&5 3947 (exit $ac_status); }; }; then 3948 ac_cv_lib_rt_sched_setscheduler=yes 3949else 3950 echo "$as_me: failed program was:" >&5 3951cat conftest.$ac_ext >&5 3952ac_cv_lib_rt_sched_setscheduler=no 3953fi 3954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3955LIBS=$ac_check_lib_save_LIBS 3956fi 3957echo "$as_me:3957: result: $ac_cv_lib_rt_sched_setscheduler" >&5 3958echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6 3959if test $ac_cv_lib_rt_sched_setscheduler = yes; then 3960 cat >>confdefs.h <<EOF 3961#define HAVE_LIBRT 1 3962EOF 3963 3964 LIBS="-lrt $LIBS" 3965 3966else 3967 3968echo "$as_me:3968: checking for sched_setscheduler in -lposix4" >&5 3969echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6 3970if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then 3971 echo $ECHO_N "(cached) $ECHO_C" >&6 3972else 3973 ac_check_lib_save_LIBS=$LIBS 3974LIBS="-lposix4 $LIBS" 3975cat >conftest.$ac_ext <<_ACEOF 3976#line 3976 "configure" 3977#include "confdefs.h" 3978 3979/* Override any gcc2 internal prototype to avoid an error. */ 3980#ifdef __cplusplus 3981extern "C" 3982#endif 3983/* We use char because int might match the return type of a gcc2 3984 builtin and then its argument prototype would still apply. */ 3985char sched_setscheduler (); 3986int 3987main () 3988{ 3989sched_setscheduler (); 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994rm -f conftest.$ac_objext conftest$ac_exeext 3995if { (eval echo "$as_me:3995: \"$ac_link\"") >&5 3996 (eval $ac_link) 2>&5 3997 ac_status=$? 3998 echo "$as_me:3998: \$? = $ac_status" >&5 3999 (exit $ac_status); } && 4000 { ac_try='test -s conftest$ac_exeext' 4001 { (eval echo "$as_me:4001: \"$ac_try\"") >&5 4002 (eval $ac_try) 2>&5 4003 ac_status=$? 4004 echo "$as_me:4004: \$? = $ac_status" >&5 4005 (exit $ac_status); }; }; then 4006 ac_cv_lib_posix4_sched_setscheduler=yes 4007else 4008 echo "$as_me: failed program was:" >&5 4009cat conftest.$ac_ext >&5 4010ac_cv_lib_posix4_sched_setscheduler=no 4011fi 4012rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4013LIBS=$ac_check_lib_save_LIBS 4014fi 4015echo "$as_me:4015: result: $ac_cv_lib_posix4_sched_setscheduler" >&5 4016echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6 4017if test $ac_cv_lib_posix4_sched_setscheduler = yes; then 4018 cat >>confdefs.h <<EOF 4019#define HAVE_LIBPOSIX4 1 4020EOF 4021 4022 LIBS="-lposix4 $LIBS" 4023 4024fi 4025 4026fi 4027 4028 ;; 4029esac 4030 4031echo "$as_me:4031: checking for setsockopt" >&5 4032echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 4033if test "${ac_cv_func_setsockopt+set}" = set; then 4034 echo $ECHO_N "(cached) $ECHO_C" >&6 4035else 4036 cat >conftest.$ac_ext <<_ACEOF 4037#line 4037 "configure" 4038#include "confdefs.h" 4039/* System header to define __stub macros and hopefully few prototypes, 4040 which can conflict with char setsockopt (); below. */ 4041#include <assert.h> 4042/* Override any gcc2 internal prototype to avoid an error. */ 4043#ifdef __cplusplus 4044extern "C" 4045#endif 4046/* We use char because int might match the return type of a gcc2 4047 builtin and then its argument prototype would still apply. */ 4048char setsockopt (); 4049char (*f) (); 4050 4051int 4052main () 4053{ 4054/* The GNU C library defines this for functions which it implements 4055 to always fail with ENOSYS. Some functions are actually named 4056 something starting with __ and the normal name is an alias. */ 4057#if defined (__stub_setsockopt) || defined (__stub___setsockopt) 4058choke me 4059#else 4060f = setsockopt; 4061#endif 4062 4063 ; 4064 return 0; 4065} 4066_ACEOF 4067rm -f conftest.$ac_objext conftest$ac_exeext 4068if { (eval echo "$as_me:4068: \"$ac_link\"") >&5 4069 (eval $ac_link) 2>&5 4070 ac_status=$? 4071 echo "$as_me:4071: \$? = $ac_status" >&5 4072 (exit $ac_status); } && 4073 { ac_try='test -s conftest$ac_exeext' 4074 { (eval echo "$as_me:4074: \"$ac_try\"") >&5 4075 (eval $ac_try) 2>&5 4076 ac_status=$? 4077 echo "$as_me:4077: \$? = $ac_status" >&5 4078 (exit $ac_status); }; }; then 4079 ac_cv_func_setsockopt=yes 4080else 4081 echo "$as_me: failed program was:" >&5 4082cat conftest.$ac_ext >&5 4083ac_cv_func_setsockopt=no 4084fi 4085rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4086fi 4087echo "$as_me:4087: result: $ac_cv_func_setsockopt" >&5 4088echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 4089if test $ac_cv_func_setsockopt = yes; then 4090 : 4091else 4092 4093echo "$as_me:4093: checking for setsockopt in -lsocket" >&5 4094echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 4095if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4096 echo $ECHO_N "(cached) $ECHO_C" >&6 4097else 4098 ac_check_lib_save_LIBS=$LIBS 4099LIBS="-lsocket $LIBS" 4100cat >conftest.$ac_ext <<_ACEOF 4101#line 4101 "configure" 4102#include "confdefs.h" 4103 4104/* Override any gcc2 internal prototype to avoid an error. */ 4105#ifdef __cplusplus 4106extern "C" 4107#endif 4108/* We use char because int might match the return type of a gcc2 4109 builtin and then its argument prototype would still apply. */ 4110char setsockopt (); 4111int 4112main () 4113{ 4114setsockopt (); 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119rm -f conftest.$ac_objext conftest$ac_exeext 4120if { (eval echo "$as_me:4120: \"$ac_link\"") >&5 4121 (eval $ac_link) 2>&5 4122 ac_status=$? 4123 echo "$as_me:4123: \$? = $ac_status" >&5 4124 (exit $ac_status); } && 4125 { ac_try='test -s conftest$ac_exeext' 4126 { (eval echo "$as_me:4126: \"$ac_try\"") >&5 4127 (eval $ac_try) 2>&5 4128 ac_status=$? 4129 echo "$as_me:4129: \$? = $ac_status" >&5 4130 (exit $ac_status); }; }; then 4131 ac_cv_lib_socket_setsockopt=yes 4132else 4133 echo "$as_me: failed program was:" >&5 4134cat conftest.$ac_ext >&5 4135ac_cv_lib_socket_setsockopt=no 4136fi 4137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4138LIBS=$ac_check_lib_save_LIBS 4139fi 4140echo "$as_me:4140: result: $ac_cv_lib_socket_setsockopt" >&5 4141echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 4142if test $ac_cv_lib_socket_setsockopt = yes; then 4143 cat >>confdefs.h <<EOF 4144#define HAVE_LIBSOCKET 1 4145EOF 4146 4147 LIBS="-lsocket $LIBS" 4148 4149fi 4150 4151fi 4152 4153echo "$as_me:4153: checking for ANSI C header files" >&5 4154echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4155if test "${ac_cv_header_stdc+set}" = set; then 4156 echo $ECHO_N "(cached) $ECHO_C" >&6 4157else 4158 cat >conftest.$ac_ext <<_ACEOF 4159#line 4159 "configure" 4160#include "confdefs.h" 4161#include <stdlib.h> 4162#include <stdarg.h> 4163#include <string.h> 4164#include <float.h> 4165 4166_ACEOF 4167if { (eval echo "$as_me:4167: \"$ac_cpp conftest.$ac_ext\"") >&5 4168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4169 ac_status=$? 4170 egrep -v '^ *\+' conftest.er1 >conftest.err 4171 rm -f conftest.er1 4172 cat conftest.err >&5 4173 echo "$as_me:4173: \$? = $ac_status" >&5 4174 (exit $ac_status); } >/dev/null; then 4175 if test -s conftest.err; then 4176 ac_cpp_err=$ac_c_preproc_warn_flag 4177 else 4178 ac_cpp_err= 4179 fi 4180else 4181 ac_cpp_err=yes 4182fi 4183if test -z "$ac_cpp_err"; then 4184 ac_cv_header_stdc=yes 4185else 4186 echo "$as_me: failed program was:" >&5 4187 cat conftest.$ac_ext >&5 4188 ac_cv_header_stdc=no 4189fi 4190rm -f conftest.err conftest.$ac_ext 4191 4192if test $ac_cv_header_stdc = yes; then 4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4194 cat >conftest.$ac_ext <<_ACEOF 4195#line 4195 "configure" 4196#include "confdefs.h" 4197#include <string.h> 4198 4199_ACEOF 4200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4201 egrep "memchr" >/dev/null 2>&1; then 4202 : 4203else 4204 ac_cv_header_stdc=no 4205fi 4206rm -f conftest* 4207 4208fi 4209 4210if test $ac_cv_header_stdc = yes; then 4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4212 cat >conftest.$ac_ext <<_ACEOF 4213#line 4213 "configure" 4214#include "confdefs.h" 4215#include <stdlib.h> 4216 4217_ACEOF 4218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4219 egrep "free" >/dev/null 2>&1; then 4220 : 4221else 4222 ac_cv_header_stdc=no 4223fi 4224rm -f conftest* 4225 4226fi 4227 4228if test $ac_cv_header_stdc = yes; then 4229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4230 if test "$cross_compiling" = yes; then 4231 : 4232else 4233 cat >conftest.$ac_ext <<_ACEOF 4234#line 4234 "configure" 4235#include "confdefs.h" 4236#include <ctype.h> 4237#if ((' ' & 0x0FF) == 0x020) 4238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4240#else 4241# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4242 || ('j' <= (c) && (c) <= 'r') \ 4243 || ('s' <= (c) && (c) <= 'z')) 4244# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4245#endif 4246 4247#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4248int 4249main () 4250{ 4251 int i; 4252 for (i = 0; i < 256; i++) 4253 if (XOR (islower (i), ISLOWER (i)) 4254 || toupper (i) != TOUPPER (i)) 4255 exit(2); 4256 exit (0); 4257} 4258_ACEOF 4259rm -f conftest$ac_exeext 4260if { (eval echo "$as_me:4260: \"$ac_link\"") >&5 4261 (eval $ac_link) 2>&5 4262 ac_status=$? 4263 echo "$as_me:4263: \$? = $ac_status" >&5 4264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4265 { (eval echo "$as_me:4265: \"$ac_try\"") >&5 4266 (eval $ac_try) 2>&5 4267 ac_status=$? 4268 echo "$as_me:4268: \$? = $ac_status" >&5 4269 (exit $ac_status); }; }; then 4270 : 4271else 4272 echo "$as_me: program exited with status $ac_status" >&5 4273echo "$as_me: failed program was:" >&5 4274cat conftest.$ac_ext >&5 4275ac_cv_header_stdc=no 4276fi 4277rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 4278fi 4279fi 4280fi 4281echo "$as_me:4281: result: $ac_cv_header_stdc" >&5 4282echo "${ECHO_T}$ac_cv_header_stdc" >&6 4283if test $ac_cv_header_stdc = yes; then 4284 4285cat >>confdefs.h <<\EOF 4286#define STDC_HEADERS 1 4287EOF 4288 4289fi 4290 4291for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h memory.h netdb.h 4292do 4293ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4294echo "$as_me:4294: checking for $ac_header" >&5 4295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4296if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4297 echo $ECHO_N "(cached) $ECHO_C" >&6 4298else 4299 cat >conftest.$ac_ext <<_ACEOF 4300#line 4300 "configure" 4301#include "confdefs.h" 4302#include <$ac_header> 4303_ACEOF 4304if { (eval echo "$as_me:4304: \"$ac_cpp conftest.$ac_ext\"") >&5 4305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4306 ac_status=$? 4307 egrep -v '^ *\+' conftest.er1 >conftest.err 4308 rm -f conftest.er1 4309 cat conftest.err >&5 4310 echo "$as_me:4310: \$? = $ac_status" >&5 4311 (exit $ac_status); } >/dev/null; then 4312 if test -s conftest.err; then 4313 ac_cpp_err=$ac_c_preproc_warn_flag 4314 else 4315 ac_cpp_err= 4316 fi 4317else 4318 ac_cpp_err=yes 4319fi 4320if test -z "$ac_cpp_err"; then 4321 eval "$ac_ac_Header=yes" 4322else 4323 echo "$as_me: failed program was:" >&5 4324 cat conftest.$ac_ext >&5 4325 eval "$ac_ac_Header=no" 4326fi 4327rm -f conftest.err conftest.$ac_ext 4328fi 4329echo "$as_me:4329: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4330echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4331if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4332 cat >>confdefs.h <<EOF 4333#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4334EOF 4335 4336fi 4337done 4338 4339for ac_header in poll.h resolv.h sched.h sgtty.h stdlib.h string.h termio.h 4340do 4341ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4342echo "$as_me:4342: checking for $ac_header" >&5 4343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4344if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4345 echo $ECHO_N "(cached) $ECHO_C" >&6 4346else 4347 cat >conftest.$ac_ext <<_ACEOF 4348#line 4348 "configure" 4349#include "confdefs.h" 4350#include <$ac_header> 4351_ACEOF 4352if { (eval echo "$as_me:4352: \"$ac_cpp conftest.$ac_ext\"") >&5 4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4354 ac_status=$? 4355 egrep -v '^ *\+' conftest.er1 >conftest.err 4356 rm -f conftest.er1 4357 cat conftest.err >&5 4358 echo "$as_me:4358: \$? = $ac_status" >&5 4359 (exit $ac_status); } >/dev/null; then 4360 if test -s conftest.err; then 4361 ac_cpp_err=$ac_c_preproc_warn_flag 4362 else 4363 ac_cpp_err= 4364 fi 4365else 4366 ac_cpp_err=yes 4367fi 4368if test -z "$ac_cpp_err"; then 4369 eval "$ac_ac_Header=yes" 4370else 4371 echo "$as_me: failed program was:" >&5 4372 cat conftest.$ac_ext >&5 4373 eval "$ac_ac_Header=no" 4374fi 4375rm -f conftest.err conftest.$ac_ext 4376fi 4377echo "$as_me:4377: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4378echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4379if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4380 cat >>confdefs.h <<EOF 4381#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4382EOF 4383 4384fi 4385done 4386 4387for ac_header in termios.h timepps.h timex.h unistd.h utmp.h utmpx.h 4388do 4389ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4390echo "$as_me:4390: checking for $ac_header" >&5 4391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4392if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4393 echo $ECHO_N "(cached) $ECHO_C" >&6 4394else 4395 cat >conftest.$ac_ext <<_ACEOF 4396#line 4396 "configure" 4397#include "confdefs.h" 4398#include <$ac_header> 4399_ACEOF 4400if { (eval echo "$as_me:4400: \"$ac_cpp conftest.$ac_ext\"") >&5 4401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4402 ac_status=$? 4403 egrep -v '^ *\+' conftest.er1 >conftest.err 4404 rm -f conftest.er1 4405 cat conftest.err >&5 4406 echo "$as_me:4406: \$? = $ac_status" >&5 4407 (exit $ac_status); } >/dev/null; then 4408 if test -s conftest.err; then 4409 ac_cpp_err=$ac_c_preproc_warn_flag 4410 else 4411 ac_cpp_err= 4412 fi 4413else 4414 ac_cpp_err=yes 4415fi 4416if test -z "$ac_cpp_err"; then 4417 eval "$ac_ac_Header=yes" 4418else 4419 echo "$as_me: failed program was:" >&5 4420 cat conftest.$ac_ext >&5 4421 eval "$ac_ac_Header=no" 4422fi 4423rm -f conftest.err conftest.$ac_ext 4424fi 4425echo "$as_me:4425: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4426echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4427if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4428 cat >>confdefs.h <<EOF 4429#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4430EOF 4431 4432fi 4433done 4434 4435for ac_header in arpa/nameser.h net/if.h netinet/in_systm.h netinet/in.h 4436do 4437ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4438echo "$as_me:4438: checking for $ac_header" >&5 4439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4440if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4441 echo $ECHO_N "(cached) $ECHO_C" >&6 4442else 4443 cat >conftest.$ac_ext <<_ACEOF 4444#line 4444 "configure" 4445#include "confdefs.h" 4446#include <$ac_header> 4447_ACEOF 4448if { (eval echo "$as_me:4448: \"$ac_cpp conftest.$ac_ext\"") >&5 4449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4450 ac_status=$? 4451 egrep -v '^ *\+' conftest.er1 >conftest.err 4452 rm -f conftest.er1 4453 cat conftest.err >&5 4454 echo "$as_me:4454: \$? = $ac_status" >&5 4455 (exit $ac_status); } >/dev/null; then 4456 if test -s conftest.err; then 4457 ac_cpp_err=$ac_c_preproc_warn_flag 4458 else 4459 ac_cpp_err= 4460 fi 4461else 4462 ac_cpp_err=yes 4463fi 4464if test -z "$ac_cpp_err"; then 4465 eval "$ac_ac_Header=yes" 4466else 4467 echo "$as_me: failed program was:" >&5 4468 cat conftest.$ac_ext >&5 4469 eval "$ac_ac_Header=no" 4470fi 4471rm -f conftest.err conftest.$ac_ext 4472fi 4473echo "$as_me:4473: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4474echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4475if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4476 cat >>confdefs.h <<EOF 4477#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4478EOF 4479 4480fi 4481done 4482 4483for ac_header in netinfo/ni.h 4484do 4485ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4486echo "$as_me:4486: checking for $ac_header" >&5 4487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4488if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4489 echo $ECHO_N "(cached) $ECHO_C" >&6 4490else 4491 cat >conftest.$ac_ext <<_ACEOF 4492#line 4492 "configure" 4493#include "confdefs.h" 4494#include <$ac_header> 4495_ACEOF 4496if { (eval echo "$as_me:4496: \"$ac_cpp conftest.$ac_ext\"") >&5 4497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4498 ac_status=$? 4499 egrep -v '^ *\+' conftest.er1 >conftest.err 4500 rm -f conftest.er1 4501 cat conftest.err >&5 4502 echo "$as_me:4502: \$? = $ac_status" >&5 4503 (exit $ac_status); } >/dev/null; then 4504 if test -s conftest.err; then 4505 ac_cpp_err=$ac_c_preproc_warn_flag 4506 else 4507 ac_cpp_err= 4508 fi 4509else 4510 ac_cpp_err=yes 4511fi 4512if test -z "$ac_cpp_err"; then 4513 eval "$ac_ac_Header=yes" 4514else 4515 echo "$as_me: failed program was:" >&5 4516 cat conftest.$ac_ext >&5 4517 eval "$ac_ac_Header=no" 4518fi 4519rm -f conftest.err conftest.$ac_ext 4520fi 4521echo "$as_me:4521: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4522echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4523if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4524 cat >>confdefs.h <<EOF 4525#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4526EOF 4527 cat >>confdefs.h <<\EOF 4528#define HAVE_NETINFO 1 4529EOF 4530 4531fi 4532done 4533 4534for ac_header in sun/audioio.h sys/audioio.h 4535do 4536ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4537echo "$as_me:4537: checking for $ac_header" >&5 4538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4539if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541else 4542 cat >conftest.$ac_ext <<_ACEOF 4543#line 4543 "configure" 4544#include "confdefs.h" 4545#include <$ac_header> 4546_ACEOF 4547if { (eval echo "$as_me:4547: \"$ac_cpp conftest.$ac_ext\"") >&5 4548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4549 ac_status=$? 4550 egrep -v '^ *\+' conftest.er1 >conftest.err 4551 rm -f conftest.er1 4552 cat conftest.err >&5 4553 echo "$as_me:4553: \$? = $ac_status" >&5 4554 (exit $ac_status); } >/dev/null; then 4555 if test -s conftest.err; then 4556 ac_cpp_err=$ac_c_preproc_warn_flag 4557 else 4558 ac_cpp_err= 4559 fi 4560else 4561 ac_cpp_err=yes 4562fi 4563if test -z "$ac_cpp_err"; then 4564 eval "$ac_ac_Header=yes" 4565else 4566 echo "$as_me: failed program was:" >&5 4567 cat conftest.$ac_ext >&5 4568 eval "$ac_ac_Header=no" 4569fi 4570rm -f conftest.err conftest.$ac_ext 4571fi 4572echo "$as_me:4572: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4573echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4574if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4575 cat >>confdefs.h <<EOF 4576#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4577EOF 4578 4579fi 4580done 4581 4582for ac_header in sys/clkdefs.h sys/file.h 4583do 4584ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4585echo "$as_me:4585: checking for $ac_header" >&5 4586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4587if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4588 echo $ECHO_N "(cached) $ECHO_C" >&6 4589else 4590 cat >conftest.$ac_ext <<_ACEOF 4591#line 4591 "configure" 4592#include "confdefs.h" 4593#include <$ac_header> 4594_ACEOF 4595if { (eval echo "$as_me:4595: \"$ac_cpp conftest.$ac_ext\"") >&5 4596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4597 ac_status=$? 4598 egrep -v '^ *\+' conftest.er1 >conftest.err 4599 rm -f conftest.er1 4600 cat conftest.err >&5 4601 echo "$as_me:4601: \$? = $ac_status" >&5 4602 (exit $ac_status); } >/dev/null; then 4603 if test -s conftest.err; then 4604 ac_cpp_err=$ac_c_preproc_warn_flag 4605 else 4606 ac_cpp_err= 4607 fi 4608else 4609 ac_cpp_err=yes 4610fi 4611if test -z "$ac_cpp_err"; then 4612 eval "$ac_ac_Header=yes" 4613else 4614 echo "$as_me: failed program was:" >&5 4615 cat conftest.$ac_ext >&5 4616 eval "$ac_ac_Header=no" 4617fi 4618rm -f conftest.err conftest.$ac_ext 4619fi 4620echo "$as_me:4620: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4621echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4622if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4623 cat >>confdefs.h <<EOF 4624#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4625EOF 4626 4627fi 4628done 4629 4630case "$target" in 4631 *-*-sunos4*) ;; 4632 *) 4633for ac_header in sys/ioctl.h 4634do 4635ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4636echo "$as_me:4636: checking for $ac_header" >&5 4637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4638if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4639 echo $ECHO_N "(cached) $ECHO_C" >&6 4640else 4641 cat >conftest.$ac_ext <<_ACEOF 4642#line 4642 "configure" 4643#include "confdefs.h" 4644#include <$ac_header> 4645_ACEOF 4646if { (eval echo "$as_me:4646: \"$ac_cpp conftest.$ac_ext\"") >&5 4647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4648 ac_status=$? 4649 egrep -v '^ *\+' conftest.er1 >conftest.err 4650 rm -f conftest.er1 4651 cat conftest.err >&5 4652 echo "$as_me:4652: \$? = $ac_status" >&5 4653 (exit $ac_status); } >/dev/null; then 4654 if test -s conftest.err; then 4655 ac_cpp_err=$ac_c_preproc_warn_flag 4656 else 4657 ac_cpp_err= 4658 fi 4659else 4660 ac_cpp_err=yes 4661fi 4662if test -z "$ac_cpp_err"; then 4663 eval "$ac_ac_Header=yes" 4664else 4665 echo "$as_me: failed program was:" >&5 4666 cat conftest.$ac_ext >&5 4667 eval "$ac_ac_Header=no" 4668fi 4669rm -f conftest.err conftest.$ac_ext 4670fi 4671echo "$as_me:4671: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4672echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4673if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4674 cat >>confdefs.h <<EOF 4675#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4676EOF 4677 4678fi 4679done 4680 4681 ;; 4682esac 4683 4684for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h 4685do 4686ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4687echo "$as_me:4687: checking for $ac_header" >&5 4688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4689if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4690 echo $ECHO_N "(cached) $ECHO_C" >&6 4691else 4692 cat >conftest.$ac_ext <<_ACEOF 4693#line 4693 "configure" 4694#include "confdefs.h" 4695#include <$ac_header> 4696_ACEOF 4697if { (eval echo "$as_me:4697: \"$ac_cpp conftest.$ac_ext\"") >&5 4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4699 ac_status=$? 4700 egrep -v '^ *\+' conftest.er1 >conftest.err 4701 rm -f conftest.er1 4702 cat conftest.err >&5 4703 echo "$as_me:4703: \$? = $ac_status" >&5 4704 (exit $ac_status); } >/dev/null; then 4705 if test -s conftest.err; then 4706 ac_cpp_err=$ac_c_preproc_warn_flag 4707 else 4708 ac_cpp_err= 4709 fi 4710else 4711 ac_cpp_err=yes 4712fi 4713if test -z "$ac_cpp_err"; then 4714 eval "$ac_ac_Header=yes" 4715else 4716 echo "$as_me: failed program was:" >&5 4717 cat conftest.$ac_ext >&5 4718 eval "$ac_ac_Header=no" 4719fi 4720rm -f conftest.err conftest.$ac_ext 4721fi 4722echo "$as_me:4722: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4723echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4724if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4725 cat >>confdefs.h <<EOF 4726#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4727EOF 4728 4729fi 4730done 4731 4732for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h 4733do 4734ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4735echo "$as_me:4735: checking for $ac_header" >&5 4736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4737if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4738 echo $ECHO_N "(cached) $ECHO_C" >&6 4739else 4740 cat >conftest.$ac_ext <<_ACEOF 4741#line 4741 "configure" 4742#include "confdefs.h" 4743#include <$ac_header> 4744_ACEOF 4745if { (eval echo "$as_me:4745: \"$ac_cpp conftest.$ac_ext\"") >&5 4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4747 ac_status=$? 4748 egrep -v '^ *\+' conftest.er1 >conftest.err 4749 rm -f conftest.er1 4750 cat conftest.err >&5 4751 echo "$as_me:4751: \$? = $ac_status" >&5 4752 (exit $ac_status); } >/dev/null; then 4753 if test -s conftest.err; then 4754 ac_cpp_err=$ac_c_preproc_warn_flag 4755 else 4756 ac_cpp_err= 4757 fi 4758else 4759 ac_cpp_err=yes 4760fi 4761if test -z "$ac_cpp_err"; then 4762 eval "$ac_ac_Header=yes" 4763else 4764 echo "$as_me: failed program was:" >&5 4765 cat conftest.$ac_ext >&5 4766 eval "$ac_ac_Header=no" 4767fi 4768rm -f conftest.err conftest.$ac_ext 4769fi 4770echo "$as_me:4770: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4771echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4772if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4773 cat >>confdefs.h <<EOF 4774#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4775EOF 4776 4777fi 4778done 4779 4780case "$target" in 4781 *-*-sco*) 4782 4783for ac_header in sys/sio.h 4784do 4785ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4786echo "$as_me:4786: checking for $ac_header" >&5 4787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4788if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4789 echo $ECHO_N "(cached) $ECHO_C" >&6 4790else 4791 cat >conftest.$ac_ext <<_ACEOF 4792#line 4792 "configure" 4793#include "confdefs.h" 4794#include <$ac_header> 4795_ACEOF 4796if { (eval echo "$as_me:4796: \"$ac_cpp conftest.$ac_ext\"") >&5 4797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4798 ac_status=$? 4799 egrep -v '^ *\+' conftest.er1 >conftest.err 4800 rm -f conftest.er1 4801 cat conftest.err >&5 4802 echo "$as_me:4802: \$? = $ac_status" >&5 4803 (exit $ac_status); } >/dev/null; then 4804 if test -s conftest.err; then 4805 ac_cpp_err=$ac_c_preproc_warn_flag 4806 else 4807 ac_cpp_err= 4808 fi 4809else 4810 ac_cpp_err=yes 4811fi 4812if test -z "$ac_cpp_err"; then 4813 eval "$ac_ac_Header=yes" 4814else 4815 echo "$as_me: failed program was:" >&5 4816 cat conftest.$ac_ext >&5 4817 eval "$ac_ac_Header=no" 4818fi 4819rm -f conftest.err conftest.$ac_ext 4820fi 4821echo "$as_me:4821: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4822echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4823if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4824 cat >>confdefs.h <<EOF 4825#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4826EOF 4827 4828fi 4829done 4830 4831 ;; 4832esac 4833 4834for ac_header in sys/select.h sys/sockio.h sys/stat.h sys/stream.h 4835do 4836ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4837echo "$as_me:4837: checking for $ac_header" >&5 4838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4839if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4840 echo $ECHO_N "(cached) $ECHO_C" >&6 4841else 4842 cat >conftest.$ac_ext <<_ACEOF 4843#line 4843 "configure" 4844#include "confdefs.h" 4845#include <$ac_header> 4846_ACEOF 4847if { (eval echo "$as_me:4847: \"$ac_cpp conftest.$ac_ext\"") >&5 4848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4849 ac_status=$? 4850 egrep -v '^ *\+' conftest.er1 >conftest.err 4851 rm -f conftest.er1 4852 cat conftest.err >&5 4853 echo "$as_me:4853: \$? = $ac_status" >&5 4854 (exit $ac_status); } >/dev/null; then 4855 if test -s conftest.err; then 4856 ac_cpp_err=$ac_c_preproc_warn_flag 4857 else 4858 ac_cpp_err= 4859 fi 4860else 4861 ac_cpp_err=yes 4862fi 4863if test -z "$ac_cpp_err"; then 4864 eval "$ac_ac_Header=yes" 4865else 4866 echo "$as_me: failed program was:" >&5 4867 cat conftest.$ac_ext >&5 4868 eval "$ac_ac_Header=no" 4869fi 4870rm -f conftest.err conftest.$ac_ext 4871fi 4872echo "$as_me:4872: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4873echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4874if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4875 cat >>confdefs.h <<EOF 4876#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4877EOF 4878 4879fi 4880done 4881 4882for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/termios.h 4883do 4884ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4885echo "$as_me:4885: checking for $ac_header" >&5 4886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4887if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4888 echo $ECHO_N "(cached) $ECHO_C" >&6 4889else 4890 cat >conftest.$ac_ext <<_ACEOF 4891#line 4891 "configure" 4892#include "confdefs.h" 4893#include <$ac_header> 4894_ACEOF 4895if { (eval echo "$as_me:4895: \"$ac_cpp conftest.$ac_ext\"") >&5 4896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4897 ac_status=$? 4898 egrep -v '^ *\+' conftest.er1 >conftest.err 4899 rm -f conftest.er1 4900 cat conftest.err >&5 4901 echo "$as_me:4901: \$? = $ac_status" >&5 4902 (exit $ac_status); } >/dev/null; then 4903 if test -s conftest.err; then 4904 ac_cpp_err=$ac_c_preproc_warn_flag 4905 else 4906 ac_cpp_err= 4907 fi 4908else 4909 ac_cpp_err=yes 4910fi 4911if test -z "$ac_cpp_err"; then 4912 eval "$ac_ac_Header=yes" 4913else 4914 echo "$as_me: failed program was:" >&5 4915 cat conftest.$ac_ext >&5 4916 eval "$ac_ac_Header=no" 4917fi 4918rm -f conftest.err conftest.$ac_ext 4919fi 4920echo "$as_me:4920: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4921echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4922if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4923 cat >>confdefs.h <<EOF 4924#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4925EOF 4926 4927fi 4928done 4929 4930for ac_header in sys/time.h 4931do 4932ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4933echo "$as_me:4933: checking for $ac_header" >&5 4934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4935if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4936 echo $ECHO_N "(cached) $ECHO_C" >&6 4937else 4938 cat >conftest.$ac_ext <<_ACEOF 4939#line 4939 "configure" 4940#include "confdefs.h" 4941#include <$ac_header> 4942_ACEOF 4943if { (eval echo "$as_me:4943: \"$ac_cpp conftest.$ac_ext\"") >&5 4944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4945 ac_status=$? 4946 egrep -v '^ *\+' conftest.er1 >conftest.err 4947 rm -f conftest.er1 4948 cat conftest.err >&5 4949 echo "$as_me:4949: \$? = $ac_status" >&5 4950 (exit $ac_status); } >/dev/null; then 4951 if test -s conftest.err; then 4952 ac_cpp_err=$ac_c_preproc_warn_flag 4953 else 4954 ac_cpp_err= 4955 fi 4956else 4957 ac_cpp_err=yes 4958fi 4959if test -z "$ac_cpp_err"; then 4960 eval "$ac_ac_Header=yes" 4961else 4962 echo "$as_me: failed program was:" >&5 4963 cat conftest.$ac_ext >&5 4964 eval "$ac_ac_Header=no" 4965fi 4966rm -f conftest.err conftest.$ac_ext 4967fi 4968echo "$as_me:4968: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4969echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4970if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4971 cat >>confdefs.h <<EOF 4972#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4973EOF 4974 4975fi 4976done 4977 4978cat >conftest.$ac_ext <<_ACEOF 4979#line 4979 "configure" 4980#include "confdefs.h" 4981#include <sys/timepps.h> 4982#ifdef PPS_API_VERS_1 4983yes 4984#endif 4985 4986_ACEOF 4987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4988 egrep "yes" >/dev/null 2>&1; then 4989 4990for ac_header in sys/timepps.h 4991do 4992ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4993echo "$as_me:4993: checking for $ac_header" >&5 4994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4995if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4996 echo $ECHO_N "(cached) $ECHO_C" >&6 4997else 4998 cat >conftest.$ac_ext <<_ACEOF 4999#line 4999 "configure" 5000#include "confdefs.h" 5001#include <$ac_header> 5002_ACEOF 5003if { (eval echo "$as_me:5003: \"$ac_cpp conftest.$ac_ext\"") >&5 5004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5005 ac_status=$? 5006 egrep -v '^ *\+' conftest.er1 >conftest.err 5007 rm -f conftest.er1 5008 cat conftest.err >&5 5009 echo "$as_me:5009: \$? = $ac_status" >&5 5010 (exit $ac_status); } >/dev/null; then 5011 if test -s conftest.err; then 5012 ac_cpp_err=$ac_c_preproc_warn_flag 5013 else 5014 ac_cpp_err= 5015 fi 5016else 5017 ac_cpp_err=yes 5018fi 5019if test -z "$ac_cpp_err"; then 5020 eval "$ac_ac_Header=yes" 5021else 5022 echo "$as_me: failed program was:" >&5 5023 cat conftest.$ac_ext >&5 5024 eval "$ac_ac_Header=no" 5025fi 5026rm -f conftest.err conftest.$ac_ext 5027fi 5028echo "$as_me:5028: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5029echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5030if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5031 cat >>confdefs.h <<EOF 5032#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5033EOF 5034 5035fi 5036done 5037 5038fi 5039rm -f conftest* 5040 5041for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h 5042do 5043ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 5044echo "$as_me:5044: checking for $ac_header" >&5 5045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5046if eval "test \"\${$ac_ac_Header+set}\" = set"; then 5047 echo $ECHO_N "(cached) $ECHO_C" >&6 5048else 5049 cat >conftest.$ac_ext <<_ACEOF 5050#line 5050 "configure" 5051#include "confdefs.h" 5052#include <$ac_header> 5053_ACEOF 5054if { (eval echo "$as_me:5054: \"$ac_cpp conftest.$ac_ext\"") >&5 5055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5056 ac_status=$? 5057 egrep -v '^ *\+' conftest.er1 >conftest.err 5058 rm -f conftest.er1 5059 cat conftest.err >&5 5060 echo "$as_me:5060: \$? = $ac_status" >&5 5061 (exit $ac_status); } >/dev/null; then 5062 if test -s conftest.err; then 5063 ac_cpp_err=$ac_c_preproc_warn_flag 5064 else 5065 ac_cpp_err= 5066 fi 5067else 5068 ac_cpp_err=yes 5069fi 5070if test -z "$ac_cpp_err"; then 5071 eval "$ac_ac_Header=yes" 5072else 5073 echo "$as_me: failed program was:" >&5 5074 cat conftest.$ac_ext >&5 5075 eval "$ac_ac_Header=no" 5076fi 5077rm -f conftest.err conftest.$ac_ext 5078fi 5079echo "$as_me:5079: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5080echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5081if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5082 cat >>confdefs.h <<EOF 5083#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5084EOF 5085 5086fi 5087done 5088 5089echo "$as_me:5089: checking whether time.h and sys/time.h may both be included" >&5 5090echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5091if test "${ac_cv_header_time+set}" = set; then 5092 echo $ECHO_N "(cached) $ECHO_C" >&6 5093else 5094 cat >conftest.$ac_ext <<_ACEOF 5095#line 5095 "configure" 5096#include "confdefs.h" 5097#include <sys/types.h> 5098#include <sys/time.h> 5099#include <time.h> 5100 5101int 5102main () 5103{ 5104struct tm *tp; 5105 ; 5106 return 0; 5107} 5108_ACEOF 5109rm -f conftest.$ac_objext 5110if { (eval echo "$as_me:5110: \"$ac_compile\"") >&5 5111 (eval $ac_compile) 2>&5 5112 ac_status=$? 5113 echo "$as_me:5113: \$? = $ac_status" >&5 5114 (exit $ac_status); } && 5115 { ac_try='test -s conftest.$ac_objext' 5116 { (eval echo "$as_me:5116: \"$ac_try\"") >&5 5117 (eval $ac_try) 2>&5 5118 ac_status=$? 5119 echo "$as_me:5119: \$? = $ac_status" >&5 5120 (exit $ac_status); }; }; then 5121 ac_cv_header_time=yes 5122else 5123 echo "$as_me: failed program was:" >&5 5124cat conftest.$ac_ext >&5 5125ac_cv_header_time=no 5126fi 5127rm -f conftest.$ac_objext conftest.$ac_ext 5128fi 5129echo "$as_me:5129: result: $ac_cv_header_time" >&5 5130echo "${ECHO_T}$ac_cv_header_time" >&6 5131if test $ac_cv_header_time = yes; then 5132 5133cat >>confdefs.h <<\EOF 5134#define TIME_WITH_SYS_TIME 1 5135EOF 5136 5137fi 5138 5139case "$target" in 5140*-convex-*) 5141 5142for ac_header in /sys/sync/queue.h /sys/sync/sema.h 5143do 5144ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 5145echo "$as_me:5145: checking for $ac_header" >&5 5146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5147if eval "test \"\${$ac_ac_Header+set}\" = set"; then 5148 echo $ECHO_N "(cached) $ECHO_C" >&6 5149else 5150 cat >conftest.$ac_ext <<_ACEOF 5151#line 5151 "configure" 5152#include "confdefs.h" 5153#include <$ac_header> 5154_ACEOF 5155if { (eval echo "$as_me:5155: \"$ac_cpp conftest.$ac_ext\"") >&5 5156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5157 ac_status=$? 5158 egrep -v '^ *\+' conftest.er1 >conftest.err 5159 rm -f conftest.er1 5160 cat conftest.err >&5 5161 echo "$as_me:5161: \$? = $ac_status" >&5 5162 (exit $ac_status); } >/dev/null; then 5163 if test -s conftest.err; then 5164 ac_cpp_err=$ac_c_preproc_warn_flag 5165 else 5166 ac_cpp_err= 5167 fi 5168else 5169 ac_cpp_err=yes 5170fi 5171if test -z "$ac_cpp_err"; then 5172 eval "$ac_ac_Header=yes" 5173else 5174 echo "$as_me: failed program was:" >&5 5175 cat conftest.$ac_ext >&5 5176 eval "$ac_ac_Header=no" 5177fi 5178rm -f conftest.err conftest.$ac_ext 5179fi 5180echo "$as_me:5180: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5181echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5182if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5183 cat >>confdefs.h <<EOF 5184#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5185EOF 5186 5187fi 5188done 5189 5190 ;; 5191*-*-bsdi*) 5192 5193for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 5194do 5195ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 5196echo "$as_me:5196: checking for $ac_header" >&5 5197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5198if eval "test \"\${$ac_ac_Header+set}\" = set"; then 5199 echo $ECHO_N "(cached) $ECHO_C" >&6 5200else 5201 cat >conftest.$ac_ext <<_ACEOF 5202#line 5202 "configure" 5203#include "confdefs.h" 5204#include <$ac_header> 5205_ACEOF 5206if { (eval echo "$as_me:5206: \"$ac_cpp conftest.$ac_ext\"") >&5 5207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5208 ac_status=$? 5209 egrep -v '^ *\+' conftest.er1 >conftest.err 5210 rm -f conftest.er1 5211 cat conftest.err >&5 5212 echo "$as_me:5212: \$? = $ac_status" >&5 5213 (exit $ac_status); } >/dev/null; then 5214 if test -s conftest.err; then 5215 ac_cpp_err=$ac_c_preproc_warn_flag 5216 else 5217 ac_cpp_err= 5218 fi 5219else 5220 ac_cpp_err=yes 5221fi 5222if test -z "$ac_cpp_err"; then 5223 eval "$ac_ac_Header=yes" 5224else 5225 echo "$as_me: failed program was:" >&5 5226 cat conftest.$ac_ext >&5 5227 eval "$ac_ac_Header=no" 5228fi 5229rm -f conftest.err conftest.$ac_ext 5230fi 5231echo "$as_me:5231: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5232echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5233if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5234 cat >>confdefs.h <<EOF 5235#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5236EOF 5237 5238fi 5239done 5240 5241 ;; 5242esac 5243 5244echo "$as_me:5244: checking for nlist.h" >&5 5245echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6 5246if test "${ac_cv_header_nlist_h+set}" = set; then 5247 echo $ECHO_N "(cached) $ECHO_C" >&6 5248else 5249 cat >conftest.$ac_ext <<_ACEOF 5250#line 5250 "configure" 5251#include "confdefs.h" 5252#include <nlist.h> 5253_ACEOF 5254if { (eval echo "$as_me:5254: \"$ac_cpp conftest.$ac_ext\"") >&5 5255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5256 ac_status=$? 5257 egrep -v '^ *\+' conftest.er1 >conftest.err 5258 rm -f conftest.er1 5259 cat conftest.err >&5 5260 echo "$as_me:5260: \$? = $ac_status" >&5 5261 (exit $ac_status); } >/dev/null; then 5262 if test -s conftest.err; then 5263 ac_cpp_err=$ac_c_preproc_warn_flag 5264 else 5265 ac_cpp_err= 5266 fi 5267else 5268 ac_cpp_err=yes 5269fi 5270if test -z "$ac_cpp_err"; then 5271 ac_cv_header_nlist_h=yes 5272else 5273 echo "$as_me: failed program was:" >&5 5274 cat conftest.$ac_ext >&5 5275 ac_cv_header_nlist_h=no 5276fi 5277rm -f conftest.err conftest.$ac_ext 5278fi 5279echo "$as_me:5279: result: $ac_cv_header_nlist_h" >&5 5280echo "${ECHO_T}$ac_cv_header_nlist_h" >&6 5281if test $ac_cv_header_nlist_h = yes; then 5282 cat >>confdefs.h <<\EOF 5283#define NLIST_STRUCT 1 5284EOF 5285 5286echo "$as_me:5286: checking for n_un in struct nlist" >&5 5287echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6 5288if test "${ac_cv_struct_nlist_n_un+set}" = set; then 5289 echo $ECHO_N "(cached) $ECHO_C" >&6 5290else 5291 cat >conftest.$ac_ext <<_ACEOF 5292#line 5292 "configure" 5293#include "confdefs.h" 5294#include <nlist.h> 5295int 5296main () 5297{ 5298struct nlist n; n.n_un.n_name = 0; 5299 ; 5300 return 0; 5301} 5302_ACEOF 5303rm -f conftest.$ac_objext 5304if { (eval echo "$as_me:5304: \"$ac_compile\"") >&5 5305 (eval $ac_compile) 2>&5 5306 ac_status=$? 5307 echo "$as_me:5307: \$? = $ac_status" >&5 5308 (exit $ac_status); } && 5309 { ac_try='test -s conftest.$ac_objext' 5310 { (eval echo "$as_me:5310: \"$ac_try\"") >&5 5311 (eval $ac_try) 2>&5 5312 ac_status=$? 5313 echo "$as_me:5313: \$? = $ac_status" >&5 5314 (exit $ac_status); }; }; then 5315 ac_cv_struct_nlist_n_un=yes 5316else 5317 echo "$as_me: failed program was:" >&5 5318cat conftest.$ac_ext >&5 5319ac_cv_struct_nlist_n_un=no 5320fi 5321rm -f conftest.$ac_objext conftest.$ac_ext 5322fi 5323echo "$as_me:5323: result: $ac_cv_struct_nlist_n_un" >&5 5324echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6 5325if test $ac_cv_struct_nlist_n_un = yes; then 5326 cat >>confdefs.h <<\EOF 5327#define NLIST_NAME_UNION 1 5328EOF 5329 5330fi 5331 5332fi 5333 5334echo "$as_me:5334: checking for basic volatile support" >&5 5335echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6 5336if test "${ac_cv_c_volatile+set}" = set; then 5337 echo $ECHO_N "(cached) $ECHO_C" >&6 5338else 5339 cat >conftest.$ac_ext <<_ACEOF 5340#line 5340 "configure" 5341#include "confdefs.h" 5342 5343int 5344main () 5345{ 5346 5347volatile int x; 5348 ; 5349 return 0; 5350} 5351_ACEOF 5352rm -f conftest.$ac_objext 5353if { (eval echo "$as_me:5353: \"$ac_compile\"") >&5 5354 (eval $ac_compile) 2>&5 5355 ac_status=$? 5356 echo "$as_me:5356: \$? = $ac_status" >&5 5357 (exit $ac_status); } && 5358 { ac_try='test -s conftest.$ac_objext' 5359 { (eval echo "$as_me:5359: \"$ac_try\"") >&5 5360 (eval $ac_try) 2>&5 5361 ac_status=$? 5362 echo "$as_me:5362: \$? = $ac_status" >&5 5363 (exit $ac_status); }; }; then 5364 ac_cv_c_volatile=yes 5365else 5366 echo "$as_me: failed program was:" >&5 5367cat conftest.$ac_ext >&5 5368ac_cv_c_volatile=no 5369fi 5370rm -f conftest.$ac_objext conftest.$ac_ext 5371 5372fi 5373echo "$as_me:5373: result: $ac_cv_c_volatile" >&5 5374echo "${ECHO_T}$ac_cv_c_volatile" >&6 5375case "$ac_cv_c_volatile" in 5376 yes) 5377 ;; 5378 *) cat >>confdefs.h <<\EOF 5379#define volatile 5380EOF 5381 5382 ;; 5383esac 5384 5385case "$target" in 5386 sparc-*-solaris2*) 5387 # Assume that solaris2 is Ansi C... 5388 ;; 5389 *) 5390 5391echo "$as_me:5391: checking for ${CC-cc} option to accept ANSI C" >&5 5392echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 5393if test "${am_cv_prog_cc_stdc+set}" = set; then 5394 echo $ECHO_N "(cached) $ECHO_C" >&6 5395else 5396 am_cv_prog_cc_stdc=no 5397ac_save_CC="$CC" 5398# Don't try gcc -ansi; that turns off useful extensions and 5399# breaks some systems' header files. 5400# AIX -qlanglvl=ansi 5401# Ultrix and OSF/1 -std1 5402# HP-UX 10.20 and later -Ae 5403# HP-UX older versions -Aa -D_HPUX_SOURCE 5404# SVR4 -Xc -D__EXTENSIONS__ 5405for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5406do 5407 CC="$ac_save_CC $ac_arg" 5408 cat >conftest.$ac_ext <<_ACEOF 5409#line 5409 "configure" 5410#include "confdefs.h" 5411#include <stdarg.h> 5412#include <stdio.h> 5413#include <sys/types.h> 5414#include <sys/stat.h> 5415/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5416struct buf { int x; }; 5417FILE * (*rcsopen) (struct buf *, struct stat *, int); 5418static char *e (p, i) 5419 char **p; 5420 int i; 5421{ 5422 return p[i]; 5423} 5424static char *f (char * (*g) (char **, int), char **p, ...) 5425{ 5426 char *s; 5427 va_list v; 5428 va_start (v,p); 5429 s = g (p, va_arg (v,int)); 5430 va_end (v); 5431 return s; 5432} 5433int test (int i, double x); 5434struct s1 {int (*f) (int a);}; 5435struct s2 {int (*f) (double a);}; 5436int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5437int argc; 5438char **argv; 5439 5440int 5441main () 5442{ 5443 5444return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5445 5446 ; 5447 return 0; 5448} 5449_ACEOF 5450rm -f conftest.$ac_objext 5451if { (eval echo "$as_me:5451: \"$ac_compile\"") >&5 5452 (eval $ac_compile) 2>&5 5453 ac_status=$? 5454 echo "$as_me:5454: \$? = $ac_status" >&5 5455 (exit $ac_status); } && 5456 { ac_try='test -s conftest.$ac_objext' 5457 { (eval echo "$as_me:5457: \"$ac_try\"") >&5 5458 (eval $ac_try) 2>&5 5459 ac_status=$? 5460 echo "$as_me:5460: \$? = $ac_status" >&5 5461 (exit $ac_status); }; }; then 5462 am_cv_prog_cc_stdc="$ac_arg"; break 5463else 5464 echo "$as_me: failed program was:" >&5 5465cat conftest.$ac_ext >&5 5466fi 5467rm -f conftest.$ac_objext conftest.$ac_ext 5468done 5469CC="$ac_save_CC" 5470 5471fi 5472 5473if test -z "$am_cv_prog_cc_stdc"; then 5474 echo "$as_me:5474: result: none needed" >&5 5475echo "${ECHO_T}none needed" >&6 5476else 5477 echo "$as_me:5477: result: $am_cv_prog_cc_stdc" >&5 5478echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 5479fi 5480case "x$am_cv_prog_cc_stdc" in 5481 x|xno) ;; 5482 *) CC="$CC $am_cv_prog_cc_stdc" ;; 5483esac 5484 5485echo "$as_me:5485: checking for function prototypes" >&5 5486echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 5487if test "$am_cv_prog_cc_stdc" != no; then 5488 echo "$as_me:5488: result: yes" >&5 5489echo "${ECHO_T}yes" >&6 5490 5491cat >>confdefs.h <<\EOF 5492#define PROTOTYPES 1 5493EOF 5494 5495 U= ANSI2KNR= 5496else 5497 echo "$as_me:5497: result: no" >&5 5498echo "${ECHO_T}no" >&6 5499 U=_ ANSI2KNR=./ansi2knr 5500fi 5501# Ensure some checks needed by ansi2knr itself. 5502echo "$as_me:5502: checking for ANSI C header files" >&5 5503echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5504if test "${ac_cv_header_stdc+set}" = set; then 5505 echo $ECHO_N "(cached) $ECHO_C" >&6 5506else 5507 cat >conftest.$ac_ext <<_ACEOF 5508#line 5508 "configure" 5509#include "confdefs.h" 5510#include <stdlib.h> 5511#include <stdarg.h> 5512#include <string.h> 5513#include <float.h> 5514 5515_ACEOF 5516if { (eval echo "$as_me:5516: \"$ac_cpp conftest.$ac_ext\"") >&5 5517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5518 ac_status=$? 5519 egrep -v '^ *\+' conftest.er1 >conftest.err 5520 rm -f conftest.er1 5521 cat conftest.err >&5 5522 echo "$as_me:5522: \$? = $ac_status" >&5 5523 (exit $ac_status); } >/dev/null; then 5524 if test -s conftest.err; then 5525 ac_cpp_err=$ac_c_preproc_warn_flag 5526 else 5527 ac_cpp_err= 5528 fi 5529else 5530 ac_cpp_err=yes 5531fi 5532if test -z "$ac_cpp_err"; then 5533 ac_cv_header_stdc=yes 5534else 5535 echo "$as_me: failed program was:" >&5 5536 cat conftest.$ac_ext >&5 5537 ac_cv_header_stdc=no 5538fi 5539rm -f conftest.err conftest.$ac_ext 5540 5541if test $ac_cv_header_stdc = yes; then 5542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5543 cat >conftest.$ac_ext <<_ACEOF 5544#line 5544 "configure" 5545#include "confdefs.h" 5546#include <string.h> 5547 5548_ACEOF 5549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5550 egrep "memchr" >/dev/null 2>&1; then 5551 : 5552else 5553 ac_cv_header_stdc=no 5554fi 5555rm -f conftest* 5556 5557fi 5558 5559if test $ac_cv_header_stdc = yes; then 5560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5561 cat >conftest.$ac_ext <<_ACEOF 5562#line 5562 "configure" 5563#include "confdefs.h" 5564#include <stdlib.h> 5565 5566_ACEOF 5567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5568 egrep "free" >/dev/null 2>&1; then 5569 : 5570else 5571 ac_cv_header_stdc=no 5572fi 5573rm -f conftest* 5574 5575fi 5576 5577if test $ac_cv_header_stdc = yes; then 5578 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5579 if test "$cross_compiling" = yes; then 5580 : 5581else 5582 cat >conftest.$ac_ext <<_ACEOF 5583#line 5583 "configure" 5584#include "confdefs.h" 5585#include <ctype.h> 5586#if ((' ' & 0x0FF) == 0x020) 5587# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5588# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5589#else 5590# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5591 || ('j' <= (c) && (c) <= 'r') \ 5592 || ('s' <= (c) && (c) <= 'z')) 5593# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5594#endif 5595 5596#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5597int 5598main () 5599{ 5600 int i; 5601 for (i = 0; i < 256; i++) 5602 if (XOR (islower (i), ISLOWER (i)) 5603 || toupper (i) != TOUPPER (i)) 5604 exit(2); 5605 exit (0); 5606} 5607_ACEOF 5608rm -f conftest$ac_exeext 5609if { (eval echo "$as_me:5609: \"$ac_link\"") >&5 5610 (eval $ac_link) 2>&5 5611 ac_status=$? 5612 echo "$as_me:5612: \$? = $ac_status" >&5 5613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5614 { (eval echo "$as_me:5614: \"$ac_try\"") >&5 5615 (eval $ac_try) 2>&5 5616 ac_status=$? 5617 echo "$as_me:5617: \$? = $ac_status" >&5 5618 (exit $ac_status); }; }; then 5619 : 5620else 5621 echo "$as_me: program exited with status $ac_status" >&5 5622echo "$as_me: failed program was:" >&5 5623cat conftest.$ac_ext >&5 5624ac_cv_header_stdc=no 5625fi 5626rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 5627fi 5628fi 5629fi 5630echo "$as_me:5630: result: $ac_cv_header_stdc" >&5 5631echo "${ECHO_T}$ac_cv_header_stdc" >&6 5632if test $ac_cv_header_stdc = yes; then 5633 5634cat >>confdefs.h <<\EOF 5635#define STDC_HEADERS 1 5636EOF 5637 5638fi 5639 5640for ac_header in string.h 5641do 5642ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 5643echo "$as_me:5643: checking for $ac_header" >&5 5644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5645if eval "test \"\${$ac_ac_Header+set}\" = set"; then 5646 echo $ECHO_N "(cached) $ECHO_C" >&6 5647else 5648 cat >conftest.$ac_ext <<_ACEOF 5649#line 5649 "configure" 5650#include "confdefs.h" 5651#include <$ac_header> 5652_ACEOF 5653if { (eval echo "$as_me:5653: \"$ac_cpp conftest.$ac_ext\"") >&5 5654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5655 ac_status=$? 5656 egrep -v '^ *\+' conftest.er1 >conftest.err 5657 rm -f conftest.er1 5658 cat conftest.err >&5 5659 echo "$as_me:5659: \$? = $ac_status" >&5 5660 (exit $ac_status); } >/dev/null; then 5661 if test -s conftest.err; then 5662 ac_cpp_err=$ac_c_preproc_warn_flag 5663 else 5664 ac_cpp_err= 5665 fi 5666else 5667 ac_cpp_err=yes 5668fi 5669if test -z "$ac_cpp_err"; then 5670 eval "$ac_ac_Header=yes" 5671else 5672 echo "$as_me: failed program was:" >&5 5673 cat conftest.$ac_ext >&5 5674 eval "$ac_ac_Header=no" 5675fi 5676rm -f conftest.err conftest.$ac_ext 5677fi 5678echo "$as_me:5678: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5679echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5680if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5681 cat >>confdefs.h <<EOF 5682#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5683EOF 5684 5685fi 5686done 5687 5688 ;; 5689esac 5690echo "$as_me:5690: checking if C compiler permits function prototypes" >&5 5691echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6 5692if test "${ac_cv_have_prototypes+set}" = set; then 5693 echo $ECHO_N "(cached) $ECHO_C" >&6 5694else 5695 cat >conftest.$ac_ext <<_ACEOF 5696#line 5696 "configure" 5697#include "confdefs.h" 5698 5699extern int foo (short); 5700int foo(short i) { return i; } 5701int 5702main () 5703{ 5704 5705int i; 5706 ; 5707 return 0; 5708} 5709_ACEOF 5710rm -f conftest.$ac_objext 5711if { (eval echo "$as_me:5711: \"$ac_compile\"") >&5 5712 (eval $ac_compile) 2>&5 5713 ac_status=$? 5714 echo "$as_me:5714: \$? = $ac_status" >&5 5715 (exit $ac_status); } && 5716 { ac_try='test -s conftest.$ac_objext' 5717 { (eval echo "$as_me:5717: \"$ac_try\"") >&5 5718 (eval $ac_try) 2>&5 5719 ac_status=$? 5720 echo "$as_me:5720: \$? = $ac_status" >&5 5721 (exit $ac_status); }; }; then 5722 ac_cv_have_prototypes=yes 5723else 5724 echo "$as_me: failed program was:" >&5 5725cat conftest.$ac_ext >&5 5726ac_cv_have_prototypes=no 5727fi 5728rm -f conftest.$ac_objext conftest.$ac_ext 5729 5730fi 5731echo "$as_me:5731: result: $ac_cv_have_prototypes" >&5 5732echo "${ECHO_T}$ac_cv_have_prototypes" >&6 5733if test "$ac_cv_have_prototypes" = yes; then 5734 cat >>confdefs.h <<\EOF 5735#define HAVE_PROTOTYPES 1 5736EOF 5737 5738fi 5739 5740echo "$as_me:5740: checking for an ANSI C-conforming const" >&5 5741echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 5742if test "${ac_cv_c_const+set}" = set; then 5743 echo $ECHO_N "(cached) $ECHO_C" >&6 5744else 5745 cat >conftest.$ac_ext <<_ACEOF 5746#line 5746 "configure" 5747#include "confdefs.h" 5748 5749int 5750main () 5751{ 5752/* FIXME: Include the comments suggested by Paul. */ 5753#ifndef __cplusplus 5754 /* Ultrix mips cc rejects this. */ 5755 typedef int charset[2]; 5756 const charset x; 5757 /* SunOS 4.1.1 cc rejects this. */ 5758 char const *const *ccp; 5759 char **p; 5760 /* NEC SVR4.0.2 mips cc rejects this. */ 5761 struct point {int x, y;}; 5762 static struct point const zero = {0,0}; 5763 /* AIX XL C 1.02.0.0 rejects this. 5764 It does not let you subtract one const X* pointer from another in 5765 an arm of an if-expression whose if-part is not a constant 5766 expression */ 5767 const char *g = "string"; 5768 ccp = &g + (g ? g-g : 0); 5769 /* HPUX 7.0 cc rejects these. */ 5770 ++ccp; 5771 p = (char**) ccp; 5772 ccp = (char const *const *) p; 5773 { /* SCO 3.2v4 cc rejects this. */ 5774 char *t; 5775 char const *s = 0 ? (char *) 0 : (char const *) 0; 5776 5777 *t++ = 0; 5778 } 5779 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5780 int x[] = {25, 17}; 5781 const int *foo = &x[0]; 5782 ++foo; 5783 } 5784 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5785 typedef const int *iptr; 5786 iptr p = 0; 5787 ++p; 5788 } 5789 { /* AIX XL C 1.02.0.0 rejects this saying 5790 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5791 struct s { int j; const int *ap[3]; }; 5792 struct s *b; b->j = 5; 5793 } 5794 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5795 const int foo = 10; 5796 } 5797#endif 5798 5799 ; 5800 return 0; 5801} 5802_ACEOF 5803rm -f conftest.$ac_objext 5804if { (eval echo "$as_me:5804: \"$ac_compile\"") >&5 5805 (eval $ac_compile) 2>&5 5806 ac_status=$? 5807 echo "$as_me:5807: \$? = $ac_status" >&5 5808 (exit $ac_status); } && 5809 { ac_try='test -s conftest.$ac_objext' 5810 { (eval echo "$as_me:5810: \"$ac_try\"") >&5 5811 (eval $ac_try) 2>&5 5812 ac_status=$? 5813 echo "$as_me:5813: \$? = $ac_status" >&5 5814 (exit $ac_status); }; }; then 5815 ac_cv_c_const=yes 5816else 5817 echo "$as_me: failed program was:" >&5 5818cat conftest.$ac_ext >&5 5819ac_cv_c_const=no 5820fi 5821rm -f conftest.$ac_objext conftest.$ac_ext 5822fi 5823echo "$as_me:5823: result: $ac_cv_c_const" >&5 5824echo "${ECHO_T}$ac_cv_c_const" >&6 5825if test $ac_cv_c_const = no; then 5826 5827cat >>confdefs.h <<\EOF 5828#define const 5829EOF 5830 5831fi 5832 5833case "$host" in 5834 $target) 5835 echo "$as_me:5835: checking whether byte ordering is bigendian" >&5 5836echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 5837if test "${ac_cv_c_bigendian+set}" = set; then 5838 echo $ECHO_N "(cached) $ECHO_C" >&6 5839else 5840 ac_cv_c_bigendian=unknown 5841# See if sys/param.h defines the BYTE_ORDER macro. 5842cat >conftest.$ac_ext <<_ACEOF 5843#line 5843 "configure" 5844#include "confdefs.h" 5845#include <sys/types.h> 5846#include <sys/param.h> 5847 5848int 5849main () 5850{ 5851#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 5852 bogus endian macros 5853#endif 5854 5855 ; 5856 return 0; 5857} 5858_ACEOF 5859rm -f conftest.$ac_objext 5860if { (eval echo "$as_me:5860: \"$ac_compile\"") >&5 5861 (eval $ac_compile) 2>&5 5862 ac_status=$? 5863 echo "$as_me:5863: \$? = $ac_status" >&5 5864 (exit $ac_status); } && 5865 { ac_try='test -s conftest.$ac_objext' 5866 { (eval echo "$as_me:5866: \"$ac_try\"") >&5 5867 (eval $ac_try) 2>&5 5868 ac_status=$? 5869 echo "$as_me:5869: \$? = $ac_status" >&5 5870 (exit $ac_status); }; }; then 5871 # It does; now see whether it defined to BIG_ENDIAN or not. 5872cat >conftest.$ac_ext <<_ACEOF 5873#line 5873 "configure" 5874#include "confdefs.h" 5875#include <sys/types.h> 5876#include <sys/param.h> 5877 5878int 5879main () 5880{ 5881#if BYTE_ORDER != BIG_ENDIAN 5882 not big endian 5883#endif 5884 5885 ; 5886 return 0; 5887} 5888_ACEOF 5889rm -f conftest.$ac_objext 5890if { (eval echo "$as_me:5890: \"$ac_compile\"") >&5 5891 (eval $ac_compile) 2>&5 5892 ac_status=$? 5893 echo "$as_me:5893: \$? = $ac_status" >&5 5894 (exit $ac_status); } && 5895 { ac_try='test -s conftest.$ac_objext' 5896 { (eval echo "$as_me:5896: \"$ac_try\"") >&5 5897 (eval $ac_try) 2>&5 5898 ac_status=$? 5899 echo "$as_me:5899: \$? = $ac_status" >&5 5900 (exit $ac_status); }; }; then 5901 ac_cv_c_bigendian=yes 5902else 5903 echo "$as_me: failed program was:" >&5 5904cat conftest.$ac_ext >&5 5905ac_cv_c_bigendian=no 5906fi 5907rm -f conftest.$ac_objext conftest.$ac_ext 5908else 5909 echo "$as_me: failed program was:" >&5 5910cat conftest.$ac_ext >&5 5911fi 5912rm -f conftest.$ac_objext conftest.$ac_ext 5913if test $ac_cv_c_bigendian = unknown; then 5914if test "$cross_compiling" = yes; then 5915 { { echo "$as_me:5915: error: cannot run test program while cross compiling" >&5 5916echo "$as_me: error: cannot run test program while cross compiling" >&2;} 5917 { (exit 1); exit 1; }; } 5918else 5919 cat >conftest.$ac_ext <<_ACEOF 5920#line 5920 "configure" 5921#include "confdefs.h" 5922int 5923main () 5924{ 5925 /* Are we little or big endian? From Harbison&Steele. */ 5926 union 5927 { 5928 long l; 5929 char c[sizeof (long)]; 5930 } u; 5931 u.l = 1; 5932 exit (u.c[sizeof (long) - 1] == 1); 5933} 5934_ACEOF 5935rm -f conftest$ac_exeext 5936if { (eval echo "$as_me:5936: \"$ac_link\"") >&5 5937 (eval $ac_link) 2>&5 5938 ac_status=$? 5939 echo "$as_me:5939: \$? = $ac_status" >&5 5940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5941 { (eval echo "$as_me:5941: \"$ac_try\"") >&5 5942 (eval $ac_try) 2>&5 5943 ac_status=$? 5944 echo "$as_me:5944: \$? = $ac_status" >&5 5945 (exit $ac_status); }; }; then 5946 ac_cv_c_bigendian=no 5947else 5948 echo "$as_me: program exited with status $ac_status" >&5 5949echo "$as_me: failed program was:" >&5 5950cat conftest.$ac_ext >&5 5951ac_cv_c_bigendian=yes 5952fi 5953rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 5954fi 5955fi 5956fi 5957echo "$as_me:5957: result: $ac_cv_c_bigendian" >&5 5958echo "${ECHO_T}$ac_cv_c_bigendian" >&6 5959if test $ac_cv_c_bigendian = yes; then 5960 5961cat >>confdefs.h <<\EOF 5962#define WORDS_BIGENDIAN 1 5963EOF 5964 5965fi 5966 5967 ;; 5968 *) case "$target" in 5969 i*86-*-vxworks*) 5970 # LITTLEENDIAN 5971 ;; 5972 *-*-vxworks*) 5973 cat >>confdefs.h <<\EOF 5974#define WORDS_BIGENDIAN 1 5975EOF 5976 5977 ;; 5978 *) { { echo "$as_me:5978: error: Cross-compiling needs explicit byte order" >&5 5979echo "$as_me: error: Cross-compiling needs explicit byte order" >&2;} 5980 { (exit 1); exit 1; }; } 5981 ;; 5982 esac 5983 ;; 5984esac 5985echo "$as_me:5985: checking return type of signal handlers" >&5 5986echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 5987if test "${ac_cv_type_signal+set}" = set; then 5988 echo $ECHO_N "(cached) $ECHO_C" >&6 5989else 5990 cat >conftest.$ac_ext <<_ACEOF 5991#line 5991 "configure" 5992#include "confdefs.h" 5993#include <sys/types.h> 5994#include <signal.h> 5995#ifdef signal 5996# undef signal 5997#endif 5998#ifdef __cplusplus 5999extern "C" void (*signal (int, void (*)(int)))(int); 6000#else 6001void (*signal ()) (); 6002#endif 6003 6004int 6005main () 6006{ 6007int i; 6008 ; 6009 return 0; 6010} 6011_ACEOF 6012rm -f conftest.$ac_objext 6013if { (eval echo "$as_me:6013: \"$ac_compile\"") >&5 6014 (eval $ac_compile) 2>&5 6015 ac_status=$? 6016 echo "$as_me:6016: \$? = $ac_status" >&5 6017 (exit $ac_status); } && 6018 { ac_try='test -s conftest.$ac_objext' 6019 { (eval echo "$as_me:6019: \"$ac_try\"") >&5 6020 (eval $ac_try) 2>&5 6021 ac_status=$? 6022 echo "$as_me:6022: \$? = $ac_status" >&5 6023 (exit $ac_status); }; }; then 6024 ac_cv_type_signal=void 6025else 6026 echo "$as_me: failed program was:" >&5 6027cat conftest.$ac_ext >&5 6028ac_cv_type_signal=int 6029fi 6030rm -f conftest.$ac_objext conftest.$ac_ext 6031fi 6032echo "$as_me:6032: result: $ac_cv_type_signal" >&5 6033echo "${ECHO_T}$ac_cv_type_signal" >&6 6034 6035cat >>confdefs.h <<EOF 6036#define RETSIGTYPE $ac_cv_type_signal 6037EOF 6038 6039for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h 6040do 6041ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 6042echo "$as_me:6042: checking for $ac_header" >&5 6043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6044if eval "test \"\${$ac_ac_Header+set}\" = set"; then 6045 echo $ECHO_N "(cached) $ECHO_C" >&6 6046else 6047 cat >conftest.$ac_ext <<_ACEOF 6048#line 6048 "configure" 6049#include "confdefs.h" 6050#include <$ac_header> 6051_ACEOF 6052if { (eval echo "$as_me:6052: \"$ac_cpp conftest.$ac_ext\"") >&5 6053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6054 ac_status=$? 6055 egrep -v '^ *\+' conftest.er1 >conftest.err 6056 rm -f conftest.er1 6057 cat conftest.err >&5 6058 echo "$as_me:6058: \$? = $ac_status" >&5 6059 (exit $ac_status); } >/dev/null; then 6060 if test -s conftest.err; then 6061 ac_cpp_err=$ac_c_preproc_warn_flag 6062 else 6063 ac_cpp_err= 6064 fi 6065else 6066 ac_cpp_err=yes 6067fi 6068if test -z "$ac_cpp_err"; then 6069 eval "$ac_ac_Header=yes" 6070else 6071 echo "$as_me: failed program was:" >&5 6072 cat conftest.$ac_ext >&5 6073 eval "$ac_ac_Header=no" 6074fi 6075rm -f conftest.err conftest.$ac_ext 6076fi 6077echo "$as_me:6077: result: `eval echo '${'$ac_ac_Header'}'`" >&5 6078echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 6079if test `eval echo '${'$ac_ac_Header'}'` = yes; then 6080 cat >>confdefs.h <<EOF 6081#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 6082EOF 6083 6084fi 6085done 6086 6087echo "$as_me:6087: checking for off_t" >&5 6088echo $ECHO_N "checking for off_t... $ECHO_C" >&6 6089if test "${ac_cv_type_off_t+set}" = set; then 6090 echo $ECHO_N "(cached) $ECHO_C" >&6 6091else 6092 cat >conftest.$ac_ext <<_ACEOF 6093#line 6093 "configure" 6094#include "confdefs.h" 6095$ac_includes_default 6096int 6097main () 6098{ 6099if ((off_t *) 0) 6100 return 0; 6101if (sizeof (off_t)) 6102 return 0; 6103 ; 6104 return 0; 6105} 6106_ACEOF 6107rm -f conftest.$ac_objext 6108if { (eval echo "$as_me:6108: \"$ac_compile\"") >&5 6109 (eval $ac_compile) 2>&5 6110 ac_status=$? 6111 echo "$as_me:6111: \$? = $ac_status" >&5 6112 (exit $ac_status); } && 6113 { ac_try='test -s conftest.$ac_objext' 6114 { (eval echo "$as_me:6114: \"$ac_try\"") >&5 6115 (eval $ac_try) 2>&5 6116 ac_status=$? 6117 echo "$as_me:6117: \$? = $ac_status" >&5 6118 (exit $ac_status); }; }; then 6119 ac_cv_type_off_t=yes 6120else 6121 echo "$as_me: failed program was:" >&5 6122cat conftest.$ac_ext >&5 6123ac_cv_type_off_t=no 6124fi 6125rm -f conftest.$ac_objext conftest.$ac_ext 6126fi 6127echo "$as_me:6127: result: $ac_cv_type_off_t" >&5 6128echo "${ECHO_T}$ac_cv_type_off_t" >&6 6129if test $ac_cv_type_off_t = yes; then 6130 : 6131else 6132 6133cat >>confdefs.h <<EOF 6134#define off_t long 6135EOF 6136 6137fi 6138 6139echo "$as_me:6139: checking for size_t" >&5 6140echo $ECHO_N "checking for size_t... $ECHO_C" >&6 6141if test "${ac_cv_type_size_t+set}" = set; then 6142 echo $ECHO_N "(cached) $ECHO_C" >&6 6143else 6144 cat >conftest.$ac_ext <<_ACEOF 6145#line 6145 "configure" 6146#include "confdefs.h" 6147$ac_includes_default 6148int 6149main () 6150{ 6151if ((size_t *) 0) 6152 return 0; 6153if (sizeof (size_t)) 6154 return 0; 6155 ; 6156 return 0; 6157} 6158_ACEOF 6159rm -f conftest.$ac_objext 6160if { (eval echo "$as_me:6160: \"$ac_compile\"") >&5 6161 (eval $ac_compile) 2>&5 6162 ac_status=$? 6163 echo "$as_me:6163: \$? = $ac_status" >&5 6164 (exit $ac_status); } && 6165 { ac_try='test -s conftest.$ac_objext' 6166 { (eval echo "$as_me:6166: \"$ac_try\"") >&5 6167 (eval $ac_try) 2>&5 6168 ac_status=$? 6169 echo "$as_me:6169: \$? = $ac_status" >&5 6170 (exit $ac_status); }; }; then 6171 ac_cv_type_size_t=yes 6172else 6173 echo "$as_me: failed program was:" >&5 6174cat conftest.$ac_ext >&5 6175ac_cv_type_size_t=no 6176fi 6177rm -f conftest.$ac_objext conftest.$ac_ext 6178fi 6179echo "$as_me:6179: result: $ac_cv_type_size_t" >&5 6180echo "${ECHO_T}$ac_cv_type_size_t" >&6 6181if test $ac_cv_type_size_t = yes; then 6182 : 6183else 6184 6185cat >>confdefs.h <<EOF 6186#define size_t unsigned 6187EOF 6188 6189fi 6190 6191echo "$as_me:6191: checking for time_t" >&5 6192echo $ECHO_N "checking for time_t... $ECHO_C" >&6 6193if test "${ac_cv_type_time_t+set}" = set; then 6194 echo $ECHO_N "(cached) $ECHO_C" >&6 6195else 6196 cat >conftest.$ac_ext <<_ACEOF 6197#line 6197 "configure" 6198#include "confdefs.h" 6199$ac_includes_default 6200int 6201main () 6202{ 6203if ((time_t *) 0) 6204 return 0; 6205if (sizeof (time_t)) 6206 return 0; 6207 ; 6208 return 0; 6209} 6210_ACEOF 6211rm -f conftest.$ac_objext 6212if { (eval echo "$as_me:6212: \"$ac_compile\"") >&5 6213 (eval $ac_compile) 2>&5 6214 ac_status=$? 6215 echo "$as_me:6215: \$? = $ac_status" >&5 6216 (exit $ac_status); } && 6217 { ac_try='test -s conftest.$ac_objext' 6218 { (eval echo "$as_me:6218: \"$ac_try\"") >&5 6219 (eval $ac_try) 2>&5 6220 ac_status=$? 6221 echo "$as_me:6221: \$? = $ac_status" >&5 6222 (exit $ac_status); }; }; then 6223 ac_cv_type_time_t=yes 6224else 6225 echo "$as_me: failed program was:" >&5 6226cat conftest.$ac_ext >&5 6227ac_cv_type_time_t=no 6228fi 6229rm -f conftest.$ac_objext conftest.$ac_ext 6230fi 6231echo "$as_me:6231: result: $ac_cv_type_time_t" >&5 6232echo "${ECHO_T}$ac_cv_type_time_t" >&6 6233if test $ac_cv_type_time_t = yes; then 6234 : 6235else 6236 6237cat >>confdefs.h <<EOF 6238#define time_t long 6239EOF 6240 6241fi 6242 6243echo "$as_me:6243: checking whether struct tm is in sys/time.h or time.h" >&5 6244echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 6245if test "${ac_cv_struct_tm+set}" = set; then 6246 echo $ECHO_N "(cached) $ECHO_C" >&6 6247else 6248 cat >conftest.$ac_ext <<_ACEOF 6249#line 6249 "configure" 6250#include "confdefs.h" 6251#include <sys/types.h> 6252#include <time.h> 6253 6254int 6255main () 6256{ 6257struct tm *tp; tp->tm_sec; 6258 ; 6259 return 0; 6260} 6261_ACEOF 6262rm -f conftest.$ac_objext 6263if { (eval echo "$as_me:6263: \"$ac_compile\"") >&5 6264 (eval $ac_compile) 2>&5 6265 ac_status=$? 6266 echo "$as_me:6266: \$? = $ac_status" >&5 6267 (exit $ac_status); } && 6268 { ac_try='test -s conftest.$ac_objext' 6269 { (eval echo "$as_me:6269: \"$ac_try\"") >&5 6270 (eval $ac_try) 2>&5 6271 ac_status=$? 6272 echo "$as_me:6272: \$? = $ac_status" >&5 6273 (exit $ac_status); }; }; then 6274 ac_cv_struct_tm=time.h 6275else 6276 echo "$as_me: failed program was:" >&5 6277cat conftest.$ac_ext >&5 6278ac_cv_struct_tm=sys/time.h 6279fi 6280rm -f conftest.$ac_objext conftest.$ac_ext 6281fi 6282echo "$as_me:6282: result: $ac_cv_struct_tm" >&5 6283echo "${ECHO_T}$ac_cv_struct_tm" >&6 6284if test $ac_cv_struct_tm = sys/time.h; then 6285 6286cat >>confdefs.h <<\EOF 6287#define TM_IN_SYS_TIME 1 6288EOF 6289 6290fi 6291 6292echo "$as_me:6292: checking for a fallback value for HZ" >&5 6293echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6 6294if test "${ac_cv_var_default_hz+set}" = set; then 6295 echo $ECHO_N "(cached) $ECHO_C" >&6 6296else 6297 ac_cv_var_default_hz=100 6298case "$target" in 6299 alpha*-dec-osf4*|alpha*-dec-osf5*) 6300 ac_cv_var_default_hz=1024 6301 ;; 6302 mips-dec-ultrix4*) 6303 ac_cv_var_default_hz=256 6304 ;; 6305esac 6306fi 6307echo "$as_me:6307: result: $ac_cv_var_default_hz" >&5 6308echo "${ECHO_T}$ac_cv_var_default_hz" >&6 6309cat >>confdefs.h <<EOF 6310#define DEFAULT_HZ $ac_cv_var_default_hz 6311EOF 6312 6313echo "$as_me:6313: checking if we need to override the system's value for HZ" >&5 6314echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6 6315if test "${ac_cv_var_override_hz+set}" = set; then 6316 echo $ECHO_N "(cached) $ECHO_C" >&6 6317else 6318 ac_cv_var_override_hz=no 6319case "$target" in 6320 alpha*-dec-osf4*|alpha*-dec-osf5*) 6321 ac_cv_var_override_hz=yes 6322 ;; 6323 mips-dec-ultrix4*) 6324 ac_cv_var_override_hz=yes 6325 ;; 6326 *-*-freebsd*) 6327 ac_cv_var_override_hz=yes 6328 ;; 6329 *-*-sunos4*) 6330 ac_cv_var_override_hz=yes 6331 ;; 6332esac 6333fi 6334echo "$as_me:6334: result: $ac_cv_var_override_hz" >&5 6335echo "${ECHO_T}$ac_cv_var_override_hz" >&6 6336case "$ac_cv_var_override_hz" in 6337 yes) 6338 cat >>confdefs.h <<\EOF 6339#define OVERRIDE_HZ 1 6340EOF 6341 6342 ;; 6343esac 6344 6345echo "$as_me:6345: checking struct sigaction for sa_sigaction" >&5 6346echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6 6347if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then 6348 echo $ECHO_N "(cached) $ECHO_C" >&6 6349else 6350 6351 cat >conftest.$ac_ext <<_ACEOF 6352#line 6352 "configure" 6353#include "confdefs.h" 6354#include <signal.h> 6355int 6356main () 6357{ 6358struct sigaction act; act.sa_sigaction = 0; 6359 ; 6360 return 0; 6361} 6362_ACEOF 6363rm -f conftest.$ac_objext 6364if { (eval echo "$as_me:6364: \"$ac_compile\"") >&5 6365 (eval $ac_compile) 2>&5 6366 ac_status=$? 6367 echo "$as_me:6367: \$? = $ac_status" >&5 6368 (exit $ac_status); } && 6369 { ac_try='test -s conftest.$ac_objext' 6370 { (eval echo "$as_me:6370: \"$ac_try\"") >&5 6371 (eval $ac_try) 2>&5 6372 ac_status=$? 6373 echo "$as_me:6373: \$? = $ac_status" >&5 6374 (exit $ac_status); }; }; then 6375 ac_cv_struct_sigaction_has_sa_sigaction=yes 6376else 6377 echo "$as_me: failed program was:" >&5 6378cat conftest.$ac_ext >&5 6379ac_cv_struct_sigaction_has_sa_sigaction=no 6380 6381fi 6382rm -f conftest.$ac_objext conftest.$ac_ext 6383 6384fi 6385echo "$as_me:6385: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5 6386echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6 6387if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then 6388 cat >>confdefs.h <<\EOF 6389#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1 6390EOF 6391 6392fi 6393 6394echo "$as_me:6394: checking for struct ppsclockev" >&5 6395echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6 6396if test "${ac_cv_struct_ppsclockev+set}" = set; then 6397 echo $ECHO_N "(cached) $ECHO_C" >&6 6398else 6399 cat >conftest.$ac_ext <<_ACEOF 6400#line 6400 "configure" 6401#include "confdefs.h" 6402 6403#include <sys/types.h> 6404#ifdef HAVE_SYS_TERMIOS_H 6405# include <sys/termios.h> 6406#endif 6407#ifdef HAVE_SYS_TIME_H 6408# include <sys/time.h> 6409#endif 6410#ifdef HAVE_SYS_PPSCLOCK_H 6411# include <sys/ppsclock.h> 6412#endif 6413int 6414main () 6415{ 6416 6417extern struct ppsclockev *pce; 6418return pce->serial; 6419 ; 6420 return 0; 6421} 6422_ACEOF 6423rm -f conftest.$ac_objext 6424if { (eval echo "$as_me:6424: \"$ac_compile\"") >&5 6425 (eval $ac_compile) 2>&5 6426 ac_status=$? 6427 echo "$as_me:6427: \$? = $ac_status" >&5 6428 (exit $ac_status); } && 6429 { ac_try='test -s conftest.$ac_objext' 6430 { (eval echo "$as_me:6430: \"$ac_try\"") >&5 6431 (eval $ac_try) 2>&5 6432 ac_status=$? 6433 echo "$as_me:6433: \$? = $ac_status" >&5 6434 (exit $ac_status); }; }; then 6435 ac_cv_struct_ppsclockev=yes 6436else 6437 echo "$as_me: failed program was:" >&5 6438cat conftest.$ac_ext >&5 6439ac_cv_struct_ppsclockev=no 6440fi 6441rm -f conftest.$ac_objext conftest.$ac_ext 6442 6443fi 6444echo "$as_me:6444: result: $ac_cv_struct_ppsclockev" >&5 6445echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6 6446if test $ac_cv_struct_ppsclockev = yes; then 6447 cat >>confdefs.h <<\EOF 6448#define HAVE_STRUCT_PPSCLOCKEV 1 6449EOF 6450 6451fi 6452 6453echo "$as_me:6453: checking struct sockaddr for sa_len" >&5 6454echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6 6455if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then 6456 echo $ECHO_N "(cached) $ECHO_C" >&6 6457else 6458 cat >conftest.$ac_ext <<_ACEOF 6459#line 6459 "configure" 6460#include "confdefs.h" 6461 6462#include <sys/types.h> 6463#include <sys/socket.h> 6464int 6465main () 6466{ 6467 6468extern struct sockaddr *ps; 6469return ps->sa_len; 6470 ; 6471 return 0; 6472} 6473_ACEOF 6474rm -f conftest.$ac_objext 6475if { (eval echo "$as_me:6475: \"$ac_compile\"") >&5 6476 (eval $ac_compile) 2>&5 6477 ac_status=$? 6478 echo "$as_me:6478: \$? = $ac_status" >&5 6479 (exit $ac_status); } && 6480 { ac_try='test -s conftest.$ac_objext' 6481 { (eval echo "$as_me:6481: \"$ac_try\"") >&5 6482 (eval $ac_try) 2>&5 6483 ac_status=$? 6484 echo "$as_me:6484: \$? = $ac_status" >&5 6485 (exit $ac_status); }; }; then 6486 ac_cv_struct_sockaddr_has_sa_len=yes 6487else 6488 echo "$as_me: failed program was:" >&5 6489cat conftest.$ac_ext >&5 6490ac_cv_struct_sockaddr_has_sa_len=no 6491fi 6492rm -f conftest.$ac_objext conftest.$ac_ext 6493 6494fi 6495echo "$as_me:6495: result: $ac_cv_struct_sockaddr_has_sa_len" >&5 6496echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6 6497if test $ac_cv_struct_sockaddr_has_sa_len = yes; then 6498 cat >>confdefs.h <<\EOF 6499#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1 6500EOF 6501 6502fi 6503 6504echo "$as_me:6504: checking struct clockinfo for hz" >&5 6505echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6 6506if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then 6507 echo $ECHO_N "(cached) $ECHO_C" >&6 6508else 6509 cat >conftest.$ac_ext <<_ACEOF 6510#line 6510 "configure" 6511#include "confdefs.h" 6512 6513#include <sys/time.h> 6514int 6515main () 6516{ 6517 6518extern struct clockinfo *pc; 6519return pc->hz; 6520 ; 6521 return 0; 6522} 6523_ACEOF 6524rm -f conftest.$ac_objext 6525if { (eval echo "$as_me:6525: \"$ac_compile\"") >&5 6526 (eval $ac_compile) 2>&5 6527 ac_status=$? 6528 echo "$as_me:6528: \$? = $ac_status" >&5 6529 (exit $ac_status); } && 6530 { ac_try='test -s conftest.$ac_objext' 6531 { (eval echo "$as_me:6531: \"$ac_try\"") >&5 6532 (eval $ac_try) 2>&5 6533 ac_status=$? 6534 echo "$as_me:6534: \$? = $ac_status" >&5 6535 (exit $ac_status); }; }; then 6536 ac_cv_struct_clockinfo_has_hz=yes 6537else 6538 echo "$as_me: failed program was:" >&5 6539cat conftest.$ac_ext >&5 6540ac_cv_struct_clockinfo_has_hz=no 6541fi 6542rm -f conftest.$ac_objext conftest.$ac_ext 6543 6544fi 6545echo "$as_me:6545: result: $ac_cv_struct_clockinfo_has_hz" >&5 6546echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6 6547if test $ac_cv_struct_clockinfo_has_hz = yes; then 6548 cat >>confdefs.h <<\EOF 6549#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1 6550EOF 6551 6552fi 6553 6554echo "$as_me:6554: checking struct clockinfo for tickadj" >&5 6555echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6 6556if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then 6557 echo $ECHO_N "(cached) $ECHO_C" >&6 6558else 6559 cat >conftest.$ac_ext <<_ACEOF 6560#line 6560 "configure" 6561#include "confdefs.h" 6562 6563#include <sys/time.h> 6564int 6565main () 6566{ 6567 6568extern struct clockinfo *pc; 6569return pc->tickadj; 6570 ; 6571 return 0; 6572} 6573_ACEOF 6574rm -f conftest.$ac_objext 6575if { (eval echo "$as_me:6575: \"$ac_compile\"") >&5 6576 (eval $ac_compile) 2>&5 6577 ac_status=$? 6578 echo "$as_me:6578: \$? = $ac_status" >&5 6579 (exit $ac_status); } && 6580 { ac_try='test -s conftest.$ac_objext' 6581 { (eval echo "$as_me:6581: \"$ac_try\"") >&5 6582 (eval $ac_try) 2>&5 6583 ac_status=$? 6584 echo "$as_me:6584: \$? = $ac_status" >&5 6585 (exit $ac_status); }; }; then 6586 ac_cv_struct_clockinfo_has_tickadj=yes 6587else 6588 echo "$as_me: failed program was:" >&5 6589cat conftest.$ac_ext >&5 6590ac_cv_struct_clockinfo_has_tickadj=no 6591fi 6592rm -f conftest.$ac_objext conftest.$ac_ext 6593 6594fi 6595echo "$as_me:6595: result: $ac_cv_struct_clockinfo_has_tickadj" >&5 6596echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6 6597if test $ac_cv_struct_clockinfo_has_tickadj = yes; then 6598 cat >>confdefs.h <<\EOF 6599#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1 6600EOF 6601 6602fi 6603 6604echo "$as_me:6604: checking for struct timespec" >&5 6605echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 6606if test "${ac_cv_struct_timespec+set}" = set; then 6607 echo $ECHO_N "(cached) $ECHO_C" >&6 6608else 6609 cat >conftest.$ac_ext <<_ACEOF 6610#line 6610 "configure" 6611#include "confdefs.h" 6612 6613#include <sys/time.h> 6614/* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */ 6615#ifdef HAVE_ERRNO_H 6616# include <errno.h> 6617#endif 6618#ifdef HAVE_SYS_TIMEPPS_H 6619# define FRAC 4294967296 6620# include <sys/timepps.h> 6621#endif 6622int 6623main () 6624{ 6625struct timespec n; 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630rm -f conftest.$ac_objext 6631if { (eval echo "$as_me:6631: \"$ac_compile\"") >&5 6632 (eval $ac_compile) 2>&5 6633 ac_status=$? 6634 echo "$as_me:6634: \$? = $ac_status" >&5 6635 (exit $ac_status); } && 6636 { ac_try='test -s conftest.$ac_objext' 6637 { (eval echo "$as_me:6637: \"$ac_try\"") >&5 6638 (eval $ac_try) 2>&5 6639 ac_status=$? 6640 echo "$as_me:6640: \$? = $ac_status" >&5 6641 (exit $ac_status); }; }; then 6642 ac_cv_struct_timespec=yes 6643else 6644 echo "$as_me: failed program was:" >&5 6645cat conftest.$ac_ext >&5 6646ac_cv_struct_timespec=no 6647fi 6648rm -f conftest.$ac_objext conftest.$ac_ext 6649fi 6650echo "$as_me:6650: result: $ac_cv_struct_timespec" >&5 6651echo "${ECHO_T}$ac_cv_struct_timespec" >&6 6652if test $ac_cv_struct_timespec = yes; then 6653 6654cat >>confdefs.h <<\EOF 6655#define HAVE_STRUCT_TIMESPEC 1 6656EOF 6657 6658fi 6659 6660echo "$as_me:6660: checking for struct ntptimeval" >&5 6661echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6 6662if test "${ac_cv_struct_ntptimeval+set}" = set; then 6663 echo $ECHO_N "(cached) $ECHO_C" >&6 6664else 6665 cat >conftest.$ac_ext <<_ACEOF 6666#line 6666 "configure" 6667#include "confdefs.h" 6668 6669#include <sys/time.h> 6670#include <sys/timex.h> 6671int 6672main () 6673{ 6674struct ntptimeval n; 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679rm -f conftest.$ac_objext 6680if { (eval echo "$as_me:6680: \"$ac_compile\"") >&5 6681 (eval $ac_compile) 2>&5 6682 ac_status=$? 6683 echo "$as_me:6683: \$? = $ac_status" >&5 6684 (exit $ac_status); } && 6685 { ac_try='test -s conftest.$ac_objext' 6686 { (eval echo "$as_me:6686: \"$ac_try\"") >&5 6687 (eval $ac_try) 2>&5 6688 ac_status=$? 6689 echo "$as_me:6689: \$? = $ac_status" >&5 6690 (exit $ac_status); }; }; then 6691 ac_cv_struct_ntptimeval=yes 6692else 6693 echo "$as_me: failed program was:" >&5 6694cat conftest.$ac_ext >&5 6695ac_cv_struct_ntptimeval=no 6696fi 6697rm -f conftest.$ac_objext conftest.$ac_ext 6698fi 6699echo "$as_me:6699: result: $ac_cv_struct_ntptimeval" >&5 6700echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6 6701if test $ac_cv_struct_ntptimeval = yes; then 6702 6703cat >>confdefs.h <<\EOF 6704#define HAVE_STRUCT_NTPTIMEVAL 1 6705EOF 6706 6707fi 6708 6709echo "$as_me:6709: checking for struct ntptimeval.time.tv_nsec" >&5 6710echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6 6711if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then 6712 echo $ECHO_N "(cached) $ECHO_C" >&6 6713else 6714 cat >conftest.$ac_ext <<_ACEOF 6715#line 6715 "configure" 6716#include "confdefs.h" 6717#ifdef HAVE_SYS_TIME_H 6718#include <sys/time.h> 6719#else 6720# ifdef HAVE_TIME_H 6721# include <time.h> 6722# endif 6723#endif 6724#ifdef HAVE_SYS_TIMEX_H 6725#include <sys/timex.h> 6726#else 6727# ifdef HAVE_TIMEX_H 6728# include <timex.h> 6729# endif 6730#endif 6731 6732int 6733main () 6734{ 6735struct ntptimeval foo; 6736foo.time.tv_nsec; 6737 ; 6738 return 0; 6739} 6740_ACEOF 6741rm -f conftest.$ac_objext 6742if { (eval echo "$as_me:6742: \"$ac_compile\"") >&5 6743 (eval $ac_compile) 2>&5 6744 ac_status=$? 6745 echo "$as_me:6745: \$? = $ac_status" >&5 6746 (exit $ac_status); } && 6747 { ac_try='test -s conftest.$ac_objext' 6748 { (eval echo "$as_me:6748: \"$ac_try\"") >&5 6749 (eval $ac_try) 2>&5 6750 ac_status=$? 6751 echo "$as_me:6751: \$? = $ac_status" >&5 6752 (exit $ac_status); }; }; then 6753 ac_cv_member_struct_ntptimeval_time_tv_nsec=yes 6754else 6755 echo "$as_me: failed program was:" >&5 6756cat conftest.$ac_ext >&5 6757ac_cv_member_struct_ntptimeval_time_tv_nsec=no 6758fi 6759rm -f conftest.$ac_objext conftest.$ac_ext 6760fi 6761echo "$as_me:6761: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5 6762echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6 6763if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then 6764 6765cat >>confdefs.h <<EOF 6766#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 6767EOF 6768 6769fi 6770 6771echo "$as_me:6771: checking for inline" >&5 6772echo $ECHO_N "checking for inline... $ECHO_C" >&6 6773if test "${ac_cv_c_inline+set}" = set; then 6774 echo $ECHO_N "(cached) $ECHO_C" >&6 6775else 6776 ac_cv_c_inline=no 6777for ac_kw in inline __inline__ __inline; do 6778 cat >conftest.$ac_ext <<_ACEOF 6779#line 6779 "configure" 6780#include "confdefs.h" 6781#ifndef __cplusplus 6782static $ac_kw int static_foo () {return 0; } 6783$ac_kw int foo () {return 0; } 6784#endif 6785 6786_ACEOF 6787rm -f conftest.$ac_objext 6788if { (eval echo "$as_me:6788: \"$ac_compile\"") >&5 6789 (eval $ac_compile) 2>&5 6790 ac_status=$? 6791 echo "$as_me:6791: \$? = $ac_status" >&5 6792 (exit $ac_status); } && 6793 { ac_try='test -s conftest.$ac_objext' 6794 { (eval echo "$as_me:6794: \"$ac_try\"") >&5 6795 (eval $ac_try) 2>&5 6796 ac_status=$? 6797 echo "$as_me:6797: \$? = $ac_status" >&5 6798 (exit $ac_status); }; }; then 6799 ac_cv_c_inline=$ac_kw; break 6800else 6801 echo "$as_me: failed program was:" >&5 6802cat conftest.$ac_ext >&5 6803fi 6804rm -f conftest.$ac_objext conftest.$ac_ext 6805done 6806 6807fi 6808echo "$as_me:6808: result: $ac_cv_c_inline" >&5 6809echo "${ECHO_T}$ac_cv_c_inline" >&6 6810case $ac_cv_c_inline in 6811 inline | yes) ;; 6812 no) 6813cat >>confdefs.h <<\EOF 6814#define inline 6815EOF 6816 ;; 6817 *) cat >>confdefs.h <<EOF 6818#define inline $ac_cv_c_inline 6819EOF 6820 ;; 6821esac 6822 6823echo "$as_me:6823: checking whether char is unsigned" >&5 6824echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 6825if test "${ac_cv_c_char_unsigned+set}" = set; then 6826 echo $ECHO_N "(cached) $ECHO_C" >&6 6827else 6828 cat >conftest.$ac_ext <<_ACEOF 6829#line 6829 "configure" 6830#include "confdefs.h" 6831$ac_includes_default 6832int 6833main () 6834{ 6835int _array_ [1 - 2 * !(((char) -1) < 0)] 6836 ; 6837 return 0; 6838} 6839_ACEOF 6840rm -f conftest.$ac_objext 6841if { (eval echo "$as_me:6841: \"$ac_compile\"") >&5 6842 (eval $ac_compile) 2>&5 6843 ac_status=$? 6844 echo "$as_me:6844: \$? = $ac_status" >&5 6845 (exit $ac_status); } && 6846 { ac_try='test -s conftest.$ac_objext' 6847 { (eval echo "$as_me:6847: \"$ac_try\"") >&5 6848 (eval $ac_try) 2>&5 6849 ac_status=$? 6850 echo "$as_me:6850: \$? = $ac_status" >&5 6851 (exit $ac_status); }; }; then 6852 ac_cv_c_char_unsigned=no 6853else 6854 echo "$as_me: failed program was:" >&5 6855cat conftest.$ac_ext >&5 6856ac_cv_c_char_unsigned=yes 6857fi 6858rm -f conftest.$ac_objext conftest.$ac_ext 6859fi 6860echo "$as_me:6860: result: $ac_cv_c_char_unsigned" >&5 6861echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 6862if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 6863 cat >>confdefs.h <<\EOF 6864#define __CHAR_UNSIGNED__ 1 6865EOF 6866 6867fi 6868 case "$host" in 6869 $target) 6870 echo "$as_me:6870: checking for signed char" >&5 6871echo $ECHO_N "checking for signed char... $ECHO_C" >&6 6872if test "${ac_cv_type_signed_char+set}" = set; then 6873 echo $ECHO_N "(cached) $ECHO_C" >&6 6874else 6875 cat >conftest.$ac_ext <<_ACEOF 6876#line 6876 "configure" 6877#include "confdefs.h" 6878$ac_includes_default 6879int 6880main () 6881{ 6882if ((signed char *) 0) 6883 return 0; 6884if (sizeof (signed char)) 6885 return 0; 6886 ; 6887 return 0; 6888} 6889_ACEOF 6890rm -f conftest.$ac_objext 6891if { (eval echo "$as_me:6891: \"$ac_compile\"") >&5 6892 (eval $ac_compile) 2>&5 6893 ac_status=$? 6894 echo "$as_me:6894: \$? = $ac_status" >&5 6895 (exit $ac_status); } && 6896 { ac_try='test -s conftest.$ac_objext' 6897 { (eval echo "$as_me:6897: \"$ac_try\"") >&5 6898 (eval $ac_try) 2>&5 6899 ac_status=$? 6900 echo "$as_me:6900: \$? = $ac_status" >&5 6901 (exit $ac_status); }; }; then 6902 ac_cv_type_signed_char=yes 6903else 6904 echo "$as_me: failed program was:" >&5 6905cat conftest.$ac_ext >&5 6906ac_cv_type_signed_char=no 6907fi 6908rm -f conftest.$ac_objext conftest.$ac_ext 6909fi 6910echo "$as_me:6910: result: $ac_cv_type_signed_char" >&5 6911echo "${ECHO_T}$ac_cv_type_signed_char" >&6 6912 6913echo "$as_me:6913: checking size of signed char" >&5 6914echo $ECHO_N "checking size of signed char... $ECHO_C" >&6 6915if test "${ac_cv_sizeof_signed_char+set}" = set; then 6916 echo $ECHO_N "(cached) $ECHO_C" >&6 6917else 6918 if test "$ac_cv_type_signed_char" = yes; then 6919 if test "$cross_compiling" = yes; then 6920 # Depending upon the size, compute the lo and hi bounds. 6921cat >conftest.$ac_ext <<_ACEOF 6922#line 6922 "configure" 6923#include "confdefs.h" 6924$ac_includes_default 6925int 6926main () 6927{ 6928int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)] 6929 ; 6930 return 0; 6931} 6932_ACEOF 6933rm -f conftest.$ac_objext 6934if { (eval echo "$as_me:6934: \"$ac_compile\"") >&5 6935 (eval $ac_compile) 2>&5 6936 ac_status=$? 6937 echo "$as_me:6937: \$? = $ac_status" >&5 6938 (exit $ac_status); } && 6939 { ac_try='test -s conftest.$ac_objext' 6940 { (eval echo "$as_me:6940: \"$ac_try\"") >&5 6941 (eval $ac_try) 2>&5 6942 ac_status=$? 6943 echo "$as_me:6943: \$? = $ac_status" >&5 6944 (exit $ac_status); }; }; then 6945 ac_lo=0 ac_mid=0 6946 while :; do 6947 cat >conftest.$ac_ext <<_ACEOF 6948#line 6948 "configure" 6949#include "confdefs.h" 6950$ac_includes_default 6951int 6952main () 6953{ 6954int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 6955 ; 6956 return 0; 6957} 6958_ACEOF 6959rm -f conftest.$ac_objext 6960if { (eval echo "$as_me:6960: \"$ac_compile\"") >&5 6961 (eval $ac_compile) 2>&5 6962 ac_status=$? 6963 echo "$as_me:6963: \$? = $ac_status" >&5 6964 (exit $ac_status); } && 6965 { ac_try='test -s conftest.$ac_objext' 6966 { (eval echo "$as_me:6966: \"$ac_try\"") >&5 6967 (eval $ac_try) 2>&5 6968 ac_status=$? 6969 echo "$as_me:6969: \$? = $ac_status" >&5 6970 (exit $ac_status); }; }; then 6971 ac_hi=$ac_mid; break 6972else 6973 echo "$as_me: failed program was:" >&5 6974cat conftest.$ac_ext >&5 6975ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 6976fi 6977rm -f conftest.$ac_objext conftest.$ac_ext 6978 done 6979else 6980 echo "$as_me: failed program was:" >&5 6981cat conftest.$ac_ext >&5 6982ac_hi=-1 ac_mid=-1 6983 while :; do 6984 cat >conftest.$ac_ext <<_ACEOF 6985#line 6985 "configure" 6986#include "confdefs.h" 6987$ac_includes_default 6988int 6989main () 6990{ 6991int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)] 6992 ; 6993 return 0; 6994} 6995_ACEOF 6996rm -f conftest.$ac_objext 6997if { (eval echo "$as_me:6997: \"$ac_compile\"") >&5 6998 (eval $ac_compile) 2>&5 6999 ac_status=$? 7000 echo "$as_me:7000: \$? = $ac_status" >&5 7001 (exit $ac_status); } && 7002 { ac_try='test -s conftest.$ac_objext' 7003 { (eval echo "$as_me:7003: \"$ac_try\"") >&5 7004 (eval $ac_try) 2>&5 7005 ac_status=$? 7006 echo "$as_me:7006: \$? = $ac_status" >&5 7007 (exit $ac_status); }; }; then 7008 ac_lo=$ac_mid; break 7009else 7010 echo "$as_me: failed program was:" >&5 7011cat conftest.$ac_ext >&5 7012ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 7013fi 7014rm -f conftest.$ac_objext conftest.$ac_ext 7015 done 7016fi 7017rm -f conftest.$ac_objext conftest.$ac_ext 7018# Binary search between lo and hi bounds. 7019while test "x$ac_lo" != "x$ac_hi"; do 7020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7021 cat >conftest.$ac_ext <<_ACEOF 7022#line 7022 "configure" 7023#include "confdefs.h" 7024$ac_includes_default 7025int 7026main () 7027{ 7028int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 7029 ; 7030 return 0; 7031} 7032_ACEOF 7033rm -f conftest.$ac_objext 7034if { (eval echo "$as_me:7034: \"$ac_compile\"") >&5 7035 (eval $ac_compile) 2>&5 7036 ac_status=$? 7037 echo "$as_me:7037: \$? = $ac_status" >&5 7038 (exit $ac_status); } && 7039 { ac_try='test -s conftest.$ac_objext' 7040 { (eval echo "$as_me:7040: \"$ac_try\"") >&5 7041 (eval $ac_try) 2>&5 7042 ac_status=$? 7043 echo "$as_me:7043: \$? = $ac_status" >&5 7044 (exit $ac_status); }; }; then 7045 ac_hi=$ac_mid 7046else 7047 echo "$as_me: failed program was:" >&5 7048cat conftest.$ac_ext >&5 7049ac_lo=`expr $ac_mid + 1` 7050fi 7051rm -f conftest.$ac_objext conftest.$ac_ext 7052done 7053ac_cv_sizeof_signed_char=$ac_lo 7054else 7055 if test "$cross_compiling" = yes; then 7056 { { echo "$as_me:7056: error: cannot run test program while cross compiling" >&5 7057echo "$as_me: error: cannot run test program while cross compiling" >&2;} 7058 { (exit 1); exit 1; }; } 7059else 7060 cat >conftest.$ac_ext <<_ACEOF 7061#line 7061 "configure" 7062#include "confdefs.h" 7063$ac_includes_default 7064int 7065main () 7066{ 7067FILE *f = fopen ("conftest.val", "w"); 7068if (!f) 7069 exit (1); 7070fprintf (f, "%d", (sizeof (signed char))); 7071fclose (f); 7072 ; 7073 return 0; 7074} 7075_ACEOF 7076rm -f conftest$ac_exeext 7077if { (eval echo "$as_me:7077: \"$ac_link\"") >&5 7078 (eval $ac_link) 2>&5 7079 ac_status=$? 7080 echo "$as_me:7080: \$? = $ac_status" >&5 7081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7082 { (eval echo "$as_me:7082: \"$ac_try\"") >&5 7083 (eval $ac_try) 2>&5 7084 ac_status=$? 7085 echo "$as_me:7085: \$? = $ac_status" >&5 7086 (exit $ac_status); }; }; then 7087 ac_cv_sizeof_signed_char=`cat conftest.val` 7088else 7089 echo "$as_me: program exited with status $ac_status" >&5 7090echo "$as_me: failed program was:" >&5 7091cat conftest.$ac_ext >&5 7092fi 7093rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 7094fi 7095fi 7096rm -f conftest.val 7097else 7098 ac_cv_sizeof_signed_char=0 7099fi 7100fi 7101echo "$as_me:7101: result: $ac_cv_sizeof_signed_char" >&5 7102echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6 7103cat >>confdefs.h <<EOF 7104#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 7105EOF 7106 7107 ;; 7108 *) case "$target" in 7109 *-*-vxworks*) 7110 echo "$as_me:7110: checking for signed char" >&5 7111echo $ECHO_N "checking for signed char... $ECHO_C" >&6 7112if test "${ac_cv_type_signed_char+set}" = set; then 7113 echo $ECHO_N "(cached) $ECHO_C" >&6 7114else 7115 cat >conftest.$ac_ext <<_ACEOF 7116#line 7116 "configure" 7117#include "confdefs.h" 7118$ac_includes_default 7119int 7120main () 7121{ 7122if ((signed char *) 0) 7123 return 0; 7124if (sizeof (signed char)) 7125 return 0; 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130rm -f conftest.$ac_objext 7131if { (eval echo "$as_me:7131: \"$ac_compile\"") >&5 7132 (eval $ac_compile) 2>&5 7133 ac_status=$? 7134 echo "$as_me:7134: \$? = $ac_status" >&5 7135 (exit $ac_status); } && 7136 { ac_try='test -s conftest.$ac_objext' 7137 { (eval echo "$as_me:7137: \"$ac_try\"") >&5 7138 (eval $ac_try) 2>&5 7139 ac_status=$? 7140 echo "$as_me:7140: \$? = $ac_status" >&5 7141 (exit $ac_status); }; }; then 7142 ac_cv_type_signed_char=yes 7143else 7144 echo "$as_me: failed program was:" >&5 7145cat conftest.$ac_ext >&5 7146ac_cv_type_signed_char=no 7147fi 7148rm -f conftest.$ac_objext conftest.$ac_ext 7149fi 7150echo "$as_me:7150: result: $ac_cv_type_signed_char" >&5 7151echo "${ECHO_T}$ac_cv_type_signed_char" >&6 7152 7153echo "$as_me:7153: checking size of signed char" >&5 7154echo $ECHO_N "checking size of signed char... $ECHO_C" >&6 7155if test "${ac_cv_sizeof_signed_char+set}" = set; then 7156 echo $ECHO_N "(cached) $ECHO_C" >&6 7157else 7158 if test "$ac_cv_type_signed_char" = yes; then 7159 if test "$cross_compiling" = yes; then 7160 # Depending upon the size, compute the lo and hi bounds. 7161cat >conftest.$ac_ext <<_ACEOF 7162#line 7162 "configure" 7163#include "confdefs.h" 7164$ac_includes_default 7165int 7166main () 7167{ 7168int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)] 7169 ; 7170 return 0; 7171} 7172_ACEOF 7173rm -f conftest.$ac_objext 7174if { (eval echo "$as_me:7174: \"$ac_compile\"") >&5 7175 (eval $ac_compile) 2>&5 7176 ac_status=$? 7177 echo "$as_me:7177: \$? = $ac_status" >&5 7178 (exit $ac_status); } && 7179 { ac_try='test -s conftest.$ac_objext' 7180 { (eval echo "$as_me:7180: \"$ac_try\"") >&5 7181 (eval $ac_try) 2>&5 7182 ac_status=$? 7183 echo "$as_me:7183: \$? = $ac_status" >&5 7184 (exit $ac_status); }; }; then 7185 ac_lo=0 ac_mid=0 7186 while :; do 7187 cat >conftest.$ac_ext <<_ACEOF 7188#line 7188 "configure" 7189#include "confdefs.h" 7190$ac_includes_default 7191int 7192main () 7193{ 7194int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 7195 ; 7196 return 0; 7197} 7198_ACEOF 7199rm -f conftest.$ac_objext 7200if { (eval echo "$as_me:7200: \"$ac_compile\"") >&5 7201 (eval $ac_compile) 2>&5 7202 ac_status=$? 7203 echo "$as_me:7203: \$? = $ac_status" >&5 7204 (exit $ac_status); } && 7205 { ac_try='test -s conftest.$ac_objext' 7206 { (eval echo "$as_me:7206: \"$ac_try\"") >&5 7207 (eval $ac_try) 2>&5 7208 ac_status=$? 7209 echo "$as_me:7209: \$? = $ac_status" >&5 7210 (exit $ac_status); }; }; then 7211 ac_hi=$ac_mid; break 7212else 7213 echo "$as_me: failed program was:" >&5 7214cat conftest.$ac_ext >&5 7215ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 7216fi 7217rm -f conftest.$ac_objext conftest.$ac_ext 7218 done 7219else 7220 echo "$as_me: failed program was:" >&5 7221cat conftest.$ac_ext >&5 7222ac_hi=-1 ac_mid=-1 7223 while :; do 7224 cat >conftest.$ac_ext <<_ACEOF 7225#line 7225 "configure" 7226#include "confdefs.h" 7227$ac_includes_default 7228int 7229main () 7230{ 7231int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)] 7232 ; 7233 return 0; 7234} 7235_ACEOF 7236rm -f conftest.$ac_objext 7237if { (eval echo "$as_me:7237: \"$ac_compile\"") >&5 7238 (eval $ac_compile) 2>&5 7239 ac_status=$? 7240 echo "$as_me:7240: \$? = $ac_status" >&5 7241 (exit $ac_status); } && 7242 { ac_try='test -s conftest.$ac_objext' 7243 { (eval echo "$as_me:7243: \"$ac_try\"") >&5 7244 (eval $ac_try) 2>&5 7245 ac_status=$? 7246 echo "$as_me:7246: \$? = $ac_status" >&5 7247 (exit $ac_status); }; }; then 7248 ac_lo=$ac_mid; break 7249else 7250 echo "$as_me: failed program was:" >&5 7251cat conftest.$ac_ext >&5 7252ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 7253fi 7254rm -f conftest.$ac_objext conftest.$ac_ext 7255 done 7256fi 7257rm -f conftest.$ac_objext conftest.$ac_ext 7258# Binary search between lo and hi bounds. 7259while test "x$ac_lo" != "x$ac_hi"; do 7260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7261 cat >conftest.$ac_ext <<_ACEOF 7262#line 7262 "configure" 7263#include "confdefs.h" 7264$ac_includes_default 7265int 7266main () 7267{ 7268int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)] 7269 ; 7270 return 0; 7271} 7272_ACEOF 7273rm -f conftest.$ac_objext 7274if { (eval echo "$as_me:7274: \"$ac_compile\"") >&5 7275 (eval $ac_compile) 2>&5 7276 ac_status=$? 7277 echo "$as_me:7277: \$? = $ac_status" >&5 7278 (exit $ac_status); } && 7279 { ac_try='test -s conftest.$ac_objext' 7280 { (eval echo "$as_me:7280: \"$ac_try\"") >&5 7281 (eval $ac_try) 2>&5 7282 ac_status=$? 7283 echo "$as_me:7283: \$? = $ac_status" >&5 7284 (exit $ac_status); }; }; then 7285 ac_hi=$ac_mid 7286else 7287 echo "$as_me: failed program was:" >&5 7288cat conftest.$ac_ext >&5 7289ac_lo=`expr $ac_mid + 1` 7290fi 7291rm -f conftest.$ac_objext conftest.$ac_ext 7292done 7293ac_cv_sizeof_signed_char=$ac_lo 7294else 7295 if test "$cross_compiling" = yes; then 7296 { { echo "$as_me:7296: error: cannot run test program while cross compiling" >&5 7297echo "$as_me: error: cannot run test program while cross compiling" >&2;} 7298 { (exit 1); exit 1; }; } 7299else 7300 cat >conftest.$ac_ext <<_ACEOF 7301#line 7301 "configure" 7302#include "confdefs.h" 7303$ac_includes_default 7304int 7305main () 7306{ 7307FILE *f = fopen ("conftest.val", "w"); 7308if (!f) 7309 exit (1); 7310fprintf (f, "%d", (sizeof (signed char))); 7311fclose (f); 7312 ; 7313 return 0; 7314} 7315_ACEOF 7316rm -f conftest$ac_exeext 7317if { (eval echo "$as_me:7317: \"$ac_link\"") >&5 7318 (eval $ac_link) 2>&5 7319 ac_status=$? 7320 echo "$as_me:7320: \$? = $ac_status" >&5 7321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7322 { (eval echo "$as_me:7322: \"$ac_try\"") >&5 7323 (eval $ac_try) 2>&5 7324 ac_status=$? 7325 echo "$as_me:7325: \$? = $ac_status" >&5 7326 (exit $ac_status); }; }; then 7327 ac_cv_sizeof_signed_char=`cat conftest.val` 7328else 7329 echo "$as_me: program exited with status $ac_status" >&5 7330echo "$as_me: failed program was:" >&5 7331cat conftest.$ac_ext >&5 7332fi 7333rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 7334fi 7335fi 7336rm -f conftest.val 7337else 7338 ac_cv_sizeof_signed_char=0 7339fi 7340fi 7341echo "$as_me:7341: result: $ac_cv_sizeof_signed_char" >&5 7342echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6 7343cat >>confdefs.h <<EOF 7344#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 7345EOF 7346 7347 ;; 7348 *) { { echo "$as_me:7348: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" >&5 7349echo "$as_me: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" >&2;} 7350 { (exit 1); exit 1; }; } 7351 ;; 7352 esac 7353 ;; 7354esac 7355 7356case "$host" in 7357 $target) 7358 echo "$as_me:7358: checking for int" >&5 7359echo $ECHO_N "checking for int... $ECHO_C" >&6 7360if test "${ac_cv_type_int+set}" = set; then 7361 echo $ECHO_N "(cached) $ECHO_C" >&6 7362else 7363 cat >conftest.$ac_ext <<_ACEOF 7364#line 7364 "configure" 7365#include "confdefs.h" 7366$ac_includes_default 7367int 7368main () 7369{ 7370if ((int *) 0) 7371 return 0; 7372if (sizeof (int)) 7373 return 0; 7374 ; 7375 return 0; 7376} 7377_ACEOF 7378rm -f conftest.$ac_objext 7379if { (eval echo "$as_me:7379: \"$ac_compile\"") >&5 7380 (eval $ac_compile) 2>&5 7381 ac_status=$? 7382 echo "$as_me:7382: \$? = $ac_status" >&5 7383 (exit $ac_status); } && 7384 { ac_try='test -s conftest.$ac_objext' 7385 { (eval echo "$as_me:7385: \"$ac_try\"") >&5 7386 (eval $ac_try) 2>&5 7387 ac_status=$? 7388 echo "$as_me:7388: \$? = $ac_status" >&5 7389 (exit $ac_status); }; }; then 7390 ac_cv_type_int=yes 7391else 7392 echo "$as_me: failed program was:" >&5 7393cat conftest.$ac_ext >&5 7394ac_cv_type_int=no 7395fi 7396rm -f conftest.$ac_objext conftest.$ac_ext 7397fi 7398echo "$as_me:7398: result: $ac_cv_type_int" >&5 7399echo "${ECHO_T}$ac_cv_type_int" >&6 7400 7401echo "$as_me:7401: checking size of int" >&5 7402echo $ECHO_N "checking size of int... $ECHO_C" >&6 7403if test "${ac_cv_sizeof_int+set}" = set; then 7404 echo $ECHO_N "(cached) $ECHO_C" >&6 7405else 7406 if test "$ac_cv_type_int" = yes; then 7407 if test "$cross_compiling" = yes; then 7408 # Depending upon the size, compute the lo and hi bounds. 7409cat >conftest.$ac_ext <<_ACEOF 7410#line 7410 "configure" 7411#include "confdefs.h" 7412$ac_includes_default 7413int 7414main () 7415{ 7416int _array_ [1 - 2 * !((sizeof (int)) >= 0)] 7417 ; 7418 return 0; 7419} 7420_ACEOF 7421rm -f conftest.$ac_objext 7422if { (eval echo "$as_me:7422: \"$ac_compile\"") >&5 7423 (eval $ac_compile) 2>&5 7424 ac_status=$? 7425 echo "$as_me:7425: \$? = $ac_status" >&5 7426 (exit $ac_status); } && 7427 { ac_try='test -s conftest.$ac_objext' 7428 { (eval echo "$as_me:7428: \"$ac_try\"") >&5 7429 (eval $ac_try) 2>&5 7430 ac_status=$? 7431 echo "$as_me:7431: \$? = $ac_status" >&5 7432 (exit $ac_status); }; }; then 7433 ac_lo=0 ac_mid=0 7434 while :; do 7435 cat >conftest.$ac_ext <<_ACEOF 7436#line 7436 "configure" 7437#include "confdefs.h" 7438$ac_includes_default 7439int 7440main () 7441{ 7442int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] 7443 ; 7444 return 0; 7445} 7446_ACEOF 7447rm -f conftest.$ac_objext 7448if { (eval echo "$as_me:7448: \"$ac_compile\"") >&5 7449 (eval $ac_compile) 2>&5 7450 ac_status=$? 7451 echo "$as_me:7451: \$? = $ac_status" >&5 7452 (exit $ac_status); } && 7453 { ac_try='test -s conftest.$ac_objext' 7454 { (eval echo "$as_me:7454: \"$ac_try\"") >&5 7455 (eval $ac_try) 2>&5 7456 ac_status=$? 7457 echo "$as_me:7457: \$? = $ac_status" >&5 7458 (exit $ac_status); }; }; then 7459 ac_hi=$ac_mid; break 7460else 7461 echo "$as_me: failed program was:" >&5 7462cat conftest.$ac_ext >&5 7463ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 7464fi 7465rm -f conftest.$ac_objext conftest.$ac_ext 7466 done 7467else 7468 echo "$as_me: failed program was:" >&5 7469cat conftest.$ac_ext >&5 7470ac_hi=-1 ac_mid=-1 7471 while :; do 7472 cat >conftest.$ac_ext <<_ACEOF 7473#line 7473 "configure" 7474#include "confdefs.h" 7475$ac_includes_default 7476int 7477main () 7478{ 7479int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] 7480 ; 7481 return 0; 7482} 7483_ACEOF 7484rm -f conftest.$ac_objext 7485if { (eval echo "$as_me:7485: \"$ac_compile\"") >&5 7486 (eval $ac_compile) 2>&5 7487 ac_status=$? 7488 echo "$as_me:7488: \$? = $ac_status" >&5 7489 (exit $ac_status); } && 7490 { ac_try='test -s conftest.$ac_objext' 7491 { (eval echo "$as_me:7491: \"$ac_try\"") >&5 7492 (eval $ac_try) 2>&5 7493 ac_status=$? 7494 echo "$as_me:7494: \$? = $ac_status" >&5 7495 (exit $ac_status); }; }; then 7496 ac_lo=$ac_mid; break 7497else 7498 echo "$as_me: failed program was:" >&5 7499cat conftest.$ac_ext >&5 7500ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 7501fi 7502rm -f conftest.$ac_objext conftest.$ac_ext 7503 done 7504fi 7505rm -f conftest.$ac_objext conftest.$ac_ext 7506# Binary search between lo and hi bounds. 7507while test "x$ac_lo" != "x$ac_hi"; do 7508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7509 cat >conftest.$ac_ext <<_ACEOF 7510#line 7510 "configure" 7511#include "confdefs.h" 7512$ac_includes_default 7513int 7514main () 7515{ 7516int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] 7517 ; 7518 return 0; 7519} 7520_ACEOF 7521rm -f conftest.$ac_objext 7522if { (eval echo "$as_me:7522: \"$ac_compile\"") >&5 7523 (eval $ac_compile) 2>&5 7524 ac_status=$? 7525 echo "$as_me:7525: \$? = $ac_status" >&5 7526 (exit $ac_status); } && 7527 { ac_try='test -s conftest.$ac_objext' 7528 { (eval echo "$as_me:7528: \"$ac_try\"") >&5 7529 (eval $ac_try) 2>&5 7530 ac_status=$? 7531 echo "$as_me:7531: \$? = $ac_status" >&5 7532 (exit $ac_status); }; }; then 7533 ac_hi=$ac_mid 7534else 7535 echo "$as_me: failed program was:" >&5 7536cat conftest.$ac_ext >&5 7537ac_lo=`expr $ac_mid + 1` 7538fi 7539rm -f conftest.$ac_objext conftest.$ac_ext 7540done 7541ac_cv_sizeof_int=$ac_lo 7542else 7543 if test "$cross_compiling" = yes; then 7544 { { echo "$as_me:7544: error: cannot run test program while cross compiling" >&5 7545echo "$as_me: error: cannot run test program while cross compiling" >&2;} 7546 { (exit 1); exit 1; }; } 7547else 7548 cat >conftest.$ac_ext <<_ACEOF 7549#line 7549 "configure" 7550#include "confdefs.h" 7551$ac_includes_default 7552int 7553main () 7554{ 7555FILE *f = fopen ("conftest.val", "w"); 7556if (!f) 7557 exit (1); 7558fprintf (f, "%d", (sizeof (int))); 7559fclose (f); 7560 ; 7561 return 0; 7562} 7563_ACEOF 7564rm -f conftest$ac_exeext 7565if { (eval echo "$as_me:7565: \"$ac_link\"") >&5 7566 (eval $ac_link) 2>&5 7567 ac_status=$? 7568 echo "$as_me:7568: \$? = $ac_status" >&5 7569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7570 { (eval echo "$as_me:7570: \"$ac_try\"") >&5 7571 (eval $ac_try) 2>&5 7572 ac_status=$? 7573 echo "$as_me:7573: \$? = $ac_status" >&5 7574 (exit $ac_status); }; }; then 7575 ac_cv_sizeof_int=`cat conftest.val` 7576else 7577 echo "$as_me: program exited with status $ac_status" >&5 7578echo "$as_me: failed program was:" >&5 7579cat conftest.$ac_ext >&5 7580fi 7581rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 7582fi 7583fi 7584rm -f conftest.val 7585else 7586 ac_cv_sizeof_int=0 7587fi 7588fi 7589echo "$as_me:7589: result: $ac_cv_sizeof_int" >&5 7590echo "${ECHO_T}$ac_cv_sizeof_int" >&6 7591cat >>confdefs.h <<EOF 7592#define SIZEOF_INT $ac_cv_sizeof_int 7593EOF 7594 7595 ;; 7596 *) case "$target" in 7597 *-*-vxworks*) 7598 echo "$as_me:7598: checking for int" >&5 7599echo $ECHO_N "checking for int... $ECHO_C" >&6 7600if test "${ac_cv_type_int+set}" = set; then 7601 echo $ECHO_N "(cached) $ECHO_C" >&6 7602else 7603 cat >conftest.$ac_ext <<_ACEOF 7604#line 7604 "configure" 7605#include "confdefs.h" 7606$ac_includes_default 7607int 7608main () 7609{ 7610if ((int *) 0) 7611 return 0; 7612if (sizeof (int)) 7613 return 0; 7614 ; 7615 return 0; 7616} 7617_ACEOF 7618rm -f conftest.$ac_objext 7619if { (eval echo "$as_me:7619: \"$ac_compile\"") >&5 7620 (eval $ac_compile) 2>&5 7621 ac_status=$? 7622 echo "$as_me:7622: \$? = $ac_status" >&5 7623 (exit $ac_status); } && 7624 { ac_try='test -s conftest.$ac_objext' 7625 { (eval echo "$as_me:7625: \"$ac_try\"") >&5 7626 (eval $ac_try) 2>&5 7627 ac_status=$? 7628 echo "$as_me:7628: \$? = $ac_status" >&5 7629 (exit $ac_status); }; }; then 7630 ac_cv_type_int=yes 7631else 7632 echo "$as_me: failed program was:" >&5 7633cat conftest.$ac_ext >&5 7634ac_cv_type_int=no 7635fi 7636rm -f conftest.$ac_objext conftest.$ac_ext 7637fi 7638echo "$as_me:7638: result: $ac_cv_type_int" >&5 7639echo "${ECHO_T}$ac_cv_type_int" >&6 7640 7641echo "$as_me:7641: checking size of int" >&5 7642echo $ECHO_N "checking size of int... $ECHO_C" >&6 7643if test "${ac_cv_sizeof_int+set}" = set; then 7644 echo $ECHO_N "(cached) $ECHO_C" >&6 7645else 7646 if test "$ac_cv_type_int" = yes; then 7647 if test "$cross_compiling" = yes; then 7648 # Depending upon the size, compute the lo and hi bounds. 7649cat >conftest.$ac_ext <<_ACEOF 7650#line 7650 "configure" 7651#include "confdefs.h" 7652$ac_includes_default 7653int 7654main () 7655{ 7656int _array_ [1 - 2 * !((sizeof (int)) >= 0)] 7657 ; 7658 return 0; 7659} 7660_ACEOF 7661rm -f conftest.$ac_objext 7662if { (eval echo "$as_me:7662: \"$ac_compile\"") >&5 7663 (eval $ac_compile) 2>&5 7664 ac_status=$? 7665 echo "$as_me:7665: \$? = $ac_status" >&5 7666 (exit $ac_status); } && 7667 { ac_try='test -s conftest.$ac_objext' 7668 { (eval echo "$as_me:7668: \"$ac_try\"") >&5 7669 (eval $ac_try) 2>&5 7670 ac_status=$? 7671 echo "$as_me:7671: \$? = $ac_status" >&5 7672 (exit $ac_status); }; }; then 7673 ac_lo=0 ac_mid=0 7674 while :; do 7675 cat >conftest.$ac_ext <<_ACEOF 7676#line 7676 "configure" 7677#include "confdefs.h" 7678$ac_includes_default 7679int 7680main () 7681{ 7682int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687rm -f conftest.$ac_objext 7688if { (eval echo "$as_me:7688: \"$ac_compile\"") >&5 7689 (eval $ac_compile) 2>&5 7690 ac_status=$? 7691 echo "$as_me:7691: \$? = $ac_status" >&5 7692 (exit $ac_status); } && 7693 { ac_try='test -s conftest.$ac_objext' 7694 { (eval echo "$as_me:7694: \"$ac_try\"") >&5 7695 (eval $ac_try) 2>&5 7696 ac_status=$? 7697 echo "$as_me:7697: \$? = $ac_status" >&5 7698 (exit $ac_status); }; }; then 7699 ac_hi=$ac_mid; break 7700else 7701 echo "$as_me: failed program was:" >&5 7702cat conftest.$ac_ext >&5 7703ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 7704fi 7705rm -f conftest.$ac_objext conftest.$ac_ext 7706 done 7707else 7708 echo "$as_me: failed program was:" >&5 7709cat conftest.$ac_ext >&5 7710ac_hi=-1 ac_mid=-1 7711 while :; do 7712 cat >conftest.$ac_ext <<_ACEOF 7713#line 7713 "configure" 7714#include "confdefs.h" 7715$ac_includes_default 7716int 7717main () 7718{ 7719int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)] 7720 ; 7721 return 0; 7722} 7723_ACEOF 7724rm -f conftest.$ac_objext 7725if { (eval echo "$as_me:7725: \"$ac_compile\"") >&5 7726 (eval $ac_compile) 2>&5 7727 ac_status=$? 7728 echo "$as_me:7728: \$? = $ac_status" >&5 7729 (exit $ac_status); } && 7730 { ac_try='test -s conftest.$ac_objext' 7731 { (eval echo "$as_me:7731: \"$ac_try\"") >&5 7732 (eval $ac_try) 2>&5 7733 ac_status=$? 7734 echo "$as_me:7734: \$? = $ac_status" >&5 7735 (exit $ac_status); }; }; then 7736 ac_lo=$ac_mid; break 7737else 7738 echo "$as_me: failed program was:" >&5 7739cat conftest.$ac_ext >&5 7740ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 7741fi 7742rm -f conftest.$ac_objext conftest.$ac_ext 7743 done 7744fi 7745rm -f conftest.$ac_objext conftest.$ac_ext 7746# Binary search between lo and hi bounds. 7747while test "x$ac_lo" != "x$ac_hi"; do 7748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7749 cat >conftest.$ac_ext <<_ACEOF 7750#line 7750 "configure" 7751#include "confdefs.h" 7752$ac_includes_default 7753int 7754main () 7755{ 7756int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)] 7757 ; 7758 return 0; 7759} 7760_ACEOF 7761rm -f conftest.$ac_objext 7762if { (eval echo "$as_me:7762: \"$ac_compile\"") >&5 7763 (eval $ac_compile) 2>&5 7764 ac_status=$? 7765 echo "$as_me:7765: \$? = $ac_status" >&5 7766 (exit $ac_status); } && 7767 { ac_try='test -s conftest.$ac_objext' 7768 { (eval echo "$as_me:7768: \"$ac_try\"") >&5 7769 (eval $ac_try) 2>&5 7770 ac_status=$? 7771 echo "$as_me:7771: \$? = $ac_status" >&5 7772 (exit $ac_status); }; }; then 7773 ac_hi=$ac_mid 7774else 7775 echo "$as_me: failed program was:" >&5 7776cat conftest.$ac_ext >&5 7777ac_lo=`expr $ac_mid + 1` 7778fi 7779rm -f conftest.$ac_objext conftest.$ac_ext 7780done 7781ac_cv_sizeof_int=$ac_lo 7782else 7783 if test "$cross_compiling" = yes; then 7784 { { echo "$as_me:7784: error: cannot run test program while cross compiling" >&5 7785echo "$as_me: error: cannot run test program while cross compiling" >&2;} 7786 { (exit 1); exit 1; }; } 7787else 7788 cat >conftest.$ac_ext <<_ACEOF 7789#line 7789 "configure" 7790#include "confdefs.h" 7791$ac_includes_default 7792int 7793main () 7794{ 7795FILE *f = fopen ("conftest.val", "w"); 7796if (!f) 7797 exit (1); 7798fprintf (f, "%d", (sizeof (int))); 7799fclose (f); 7800 ; 7801 return 0; 7802} 7803_ACEOF 7804rm -f conftest$ac_exeext 7805if { (eval echo "$as_me:7805: \"$ac_link\"") >&5 7806 (eval $ac_link) 2>&5 7807 ac_status=$? 7808 echo "$as_me:7808: \$? = $ac_status" >&5 7809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7810 { (eval echo "$as_me:7810: \"$ac_try\"") >&5 7811 (eval $ac_try) 2>&5 7812 ac_status=$? 7813 echo "$as_me:7813: \$? = $ac_status" >&5 7814 (exit $ac_status); }; }; then 7815 ac_cv_sizeof_int=`cat conftest.val` 7816else 7817 echo "$as_me: program exited with status $ac_status" >&5 7818echo "$as_me: failed program was:" >&5 7819cat conftest.$ac_ext >&5 7820fi 7821rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 7822fi 7823fi 7824rm -f conftest.val 7825else 7826 ac_cv_sizeof_int=0 7827fi 7828fi 7829echo "$as_me:7829: result: $ac_cv_sizeof_int" >&5 7830echo "${ECHO_T}$ac_cv_sizeof_int" >&6 7831cat >>confdefs.h <<EOF 7832#define SIZEOF_INT $ac_cv_sizeof_int 7833EOF 7834 7835 ;; 7836 *) { { echo "$as_me:7836: error: Cross-compiling needs explicit SIZEOF_INT" >&5 7837echo "$as_me: error: Cross-compiling needs explicit SIZEOF_INT" >&2;} 7838 { (exit 1); exit 1; }; } 7839 ;; 7840 esac 7841 ;; 7842esac 7843 7844case "$host" in 7845 $target) 7846 echo "$as_me:7846: checking for long" >&5 7847echo $ECHO_N "checking for long... $ECHO_C" >&6 7848if test "${ac_cv_type_long+set}" = set; then 7849 echo $ECHO_N "(cached) $ECHO_C" >&6 7850else 7851 cat >conftest.$ac_ext <<_ACEOF 7852#line 7852 "configure" 7853#include "confdefs.h" 7854$ac_includes_default 7855int 7856main () 7857{ 7858if ((long *) 0) 7859 return 0; 7860if (sizeof (long)) 7861 return 0; 7862 ; 7863 return 0; 7864} 7865_ACEOF 7866rm -f conftest.$ac_objext 7867if { (eval echo "$as_me:7867: \"$ac_compile\"") >&5 7868 (eval $ac_compile) 2>&5 7869 ac_status=$? 7870 echo "$as_me:7870: \$? = $ac_status" >&5 7871 (exit $ac_status); } && 7872 { ac_try='test -s conftest.$ac_objext' 7873 { (eval echo "$as_me:7873: \"$ac_try\"") >&5 7874 (eval $ac_try) 2>&5 7875 ac_status=$? 7876 echo "$as_me:7876: \$? = $ac_status" >&5 7877 (exit $ac_status); }; }; then 7878 ac_cv_type_long=yes 7879else 7880 echo "$as_me: failed program was:" >&5 7881cat conftest.$ac_ext >&5 7882ac_cv_type_long=no 7883fi 7884rm -f conftest.$ac_objext conftest.$ac_ext 7885fi 7886echo "$as_me:7886: result: $ac_cv_type_long" >&5 7887echo "${ECHO_T}$ac_cv_type_long" >&6 7888 7889echo "$as_me:7889: checking size of long" >&5 7890echo $ECHO_N "checking size of long... $ECHO_C" >&6 7891if test "${ac_cv_sizeof_long+set}" = set; then 7892 echo $ECHO_N "(cached) $ECHO_C" >&6 7893else 7894 if test "$ac_cv_type_long" = yes; then 7895 if test "$cross_compiling" = yes; then 7896 # Depending upon the size, compute the lo and hi bounds. 7897cat >conftest.$ac_ext <<_ACEOF 7898#line 7898 "configure" 7899#include "confdefs.h" 7900$ac_includes_default 7901int 7902main () 7903{ 7904int _array_ [1 - 2 * !((sizeof (long)) >= 0)] 7905 ; 7906 return 0; 7907} 7908_ACEOF 7909rm -f conftest.$ac_objext 7910if { (eval echo "$as_me:7910: \"$ac_compile\"") >&5 7911 (eval $ac_compile) 2>&5 7912 ac_status=$? 7913 echo "$as_me:7913: \$? = $ac_status" >&5 7914 (exit $ac_status); } && 7915 { ac_try='test -s conftest.$ac_objext' 7916 { (eval echo "$as_me:7916: \"$ac_try\"") >&5 7917 (eval $ac_try) 2>&5 7918 ac_status=$? 7919 echo "$as_me:7919: \$? = $ac_status" >&5 7920 (exit $ac_status); }; }; then 7921 ac_lo=0 ac_mid=0 7922 while :; do 7923 cat >conftest.$ac_ext <<_ACEOF 7924#line 7924 "configure" 7925#include "confdefs.h" 7926$ac_includes_default 7927int 7928main () 7929{ 7930int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] 7931 ; 7932 return 0; 7933} 7934_ACEOF 7935rm -f conftest.$ac_objext 7936if { (eval echo "$as_me:7936: \"$ac_compile\"") >&5 7937 (eval $ac_compile) 2>&5 7938 ac_status=$? 7939 echo "$as_me:7939: \$? = $ac_status" >&5 7940 (exit $ac_status); } && 7941 { ac_try='test -s conftest.$ac_objext' 7942 { (eval echo "$as_me:7942: \"$ac_try\"") >&5 7943 (eval $ac_try) 2>&5 7944 ac_status=$? 7945 echo "$as_me:7945: \$? = $ac_status" >&5 7946 (exit $ac_status); }; }; then 7947 ac_hi=$ac_mid; break 7948else 7949 echo "$as_me: failed program was:" >&5 7950cat conftest.$ac_ext >&5 7951ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 7952fi 7953rm -f conftest.$ac_objext conftest.$ac_ext 7954 done 7955else 7956 echo "$as_me: failed program was:" >&5 7957cat conftest.$ac_ext >&5 7958ac_hi=-1 ac_mid=-1 7959 while :; do 7960 cat >conftest.$ac_ext <<_ACEOF 7961#line 7961 "configure" 7962#include "confdefs.h" 7963$ac_includes_default 7964int 7965main () 7966{ 7967int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)] 7968 ; 7969 return 0; 7970} 7971_ACEOF 7972rm -f conftest.$ac_objext 7973if { (eval echo "$as_me:7973: \"$ac_compile\"") >&5 7974 (eval $ac_compile) 2>&5 7975 ac_status=$? 7976 echo "$as_me:7976: \$? = $ac_status" >&5 7977 (exit $ac_status); } && 7978 { ac_try='test -s conftest.$ac_objext' 7979 { (eval echo "$as_me:7979: \"$ac_try\"") >&5 7980 (eval $ac_try) 2>&5 7981 ac_status=$? 7982 echo "$as_me:7982: \$? = $ac_status" >&5 7983 (exit $ac_status); }; }; then 7984 ac_lo=$ac_mid; break 7985else 7986 echo "$as_me: failed program was:" >&5 7987cat conftest.$ac_ext >&5 7988ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 7989fi 7990rm -f conftest.$ac_objext conftest.$ac_ext 7991 done 7992fi 7993rm -f conftest.$ac_objext conftest.$ac_ext 7994# Binary search between lo and hi bounds. 7995while test "x$ac_lo" != "x$ac_hi"; do 7996 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7997 cat >conftest.$ac_ext <<_ACEOF 7998#line 7998 "configure" 7999#include "confdefs.h" 8000$ac_includes_default 8001int 8002main () 8003{ 8004int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] 8005 ; 8006 return 0; 8007} 8008_ACEOF 8009rm -f conftest.$ac_objext 8010if { (eval echo "$as_me:8010: \"$ac_compile\"") >&5 8011 (eval $ac_compile) 2>&5 8012 ac_status=$? 8013 echo "$as_me:8013: \$? = $ac_status" >&5 8014 (exit $ac_status); } && 8015 { ac_try='test -s conftest.$ac_objext' 8016 { (eval echo "$as_me:8016: \"$ac_try\"") >&5 8017 (eval $ac_try) 2>&5 8018 ac_status=$? 8019 echo "$as_me:8019: \$? = $ac_status" >&5 8020 (exit $ac_status); }; }; then 8021 ac_hi=$ac_mid 8022else 8023 echo "$as_me: failed program was:" >&5 8024cat conftest.$ac_ext >&5 8025ac_lo=`expr $ac_mid + 1` 8026fi 8027rm -f conftest.$ac_objext conftest.$ac_ext 8028done 8029ac_cv_sizeof_long=$ac_lo 8030else 8031 if test "$cross_compiling" = yes; then 8032 { { echo "$as_me:8032: error: cannot run test program while cross compiling" >&5 8033echo "$as_me: error: cannot run test program while cross compiling" >&2;} 8034 { (exit 1); exit 1; }; } 8035else 8036 cat >conftest.$ac_ext <<_ACEOF 8037#line 8037 "configure" 8038#include "confdefs.h" 8039$ac_includes_default 8040int 8041main () 8042{ 8043FILE *f = fopen ("conftest.val", "w"); 8044if (!f) 8045 exit (1); 8046fprintf (f, "%d", (sizeof (long))); 8047fclose (f); 8048 ; 8049 return 0; 8050} 8051_ACEOF 8052rm -f conftest$ac_exeext 8053if { (eval echo "$as_me:8053: \"$ac_link\"") >&5 8054 (eval $ac_link) 2>&5 8055 ac_status=$? 8056 echo "$as_me:8056: \$? = $ac_status" >&5 8057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8058 { (eval echo "$as_me:8058: \"$ac_try\"") >&5 8059 (eval $ac_try) 2>&5 8060 ac_status=$? 8061 echo "$as_me:8061: \$? = $ac_status" >&5 8062 (exit $ac_status); }; }; then 8063 ac_cv_sizeof_long=`cat conftest.val` 8064else 8065 echo "$as_me: program exited with status $ac_status" >&5 8066echo "$as_me: failed program was:" >&5 8067cat conftest.$ac_ext >&5 8068fi 8069rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 8070fi 8071fi 8072rm -f conftest.val 8073else 8074 ac_cv_sizeof_long=0 8075fi 8076fi 8077echo "$as_me:8077: result: $ac_cv_sizeof_long" >&5 8078echo "${ECHO_T}$ac_cv_sizeof_long" >&6 8079cat >>confdefs.h <<EOF 8080#define SIZEOF_LONG $ac_cv_sizeof_long 8081EOF 8082 8083 ;; 8084 *) case "$target" in 8085 *-*-vxworks*) 8086 echo "$as_me:8086: checking for long" >&5 8087echo $ECHO_N "checking for long... $ECHO_C" >&6 8088if test "${ac_cv_type_long+set}" = set; then 8089 echo $ECHO_N "(cached) $ECHO_C" >&6 8090else 8091 cat >conftest.$ac_ext <<_ACEOF 8092#line 8092 "configure" 8093#include "confdefs.h" 8094$ac_includes_default 8095int 8096main () 8097{ 8098if ((long *) 0) 8099 return 0; 8100if (sizeof (long)) 8101 return 0; 8102 ; 8103 return 0; 8104} 8105_ACEOF 8106rm -f conftest.$ac_objext 8107if { (eval echo "$as_me:8107: \"$ac_compile\"") >&5 8108 (eval $ac_compile) 2>&5 8109 ac_status=$? 8110 echo "$as_me:8110: \$? = $ac_status" >&5 8111 (exit $ac_status); } && 8112 { ac_try='test -s conftest.$ac_objext' 8113 { (eval echo "$as_me:8113: \"$ac_try\"") >&5 8114 (eval $ac_try) 2>&5 8115 ac_status=$? 8116 echo "$as_me:8116: \$? = $ac_status" >&5 8117 (exit $ac_status); }; }; then 8118 ac_cv_type_long=yes 8119else 8120 echo "$as_me: failed program was:" >&5 8121cat conftest.$ac_ext >&5 8122ac_cv_type_long=no 8123fi 8124rm -f conftest.$ac_objext conftest.$ac_ext 8125fi 8126echo "$as_me:8126: result: $ac_cv_type_long" >&5 8127echo "${ECHO_T}$ac_cv_type_long" >&6 8128 8129echo "$as_me:8129: checking size of long" >&5 8130echo $ECHO_N "checking size of long... $ECHO_C" >&6 8131if test "${ac_cv_sizeof_long+set}" = set; then 8132 echo $ECHO_N "(cached) $ECHO_C" >&6 8133else 8134 if test "$ac_cv_type_long" = yes; then 8135 if test "$cross_compiling" = yes; then 8136 # Depending upon the size, compute the lo and hi bounds. 8137cat >conftest.$ac_ext <<_ACEOF 8138#line 8138 "configure" 8139#include "confdefs.h" 8140$ac_includes_default 8141int 8142main () 8143{ 8144int _array_ [1 - 2 * !((sizeof (long)) >= 0)] 8145 ; 8146 return 0; 8147} 8148_ACEOF 8149rm -f conftest.$ac_objext 8150if { (eval echo "$as_me:8150: \"$ac_compile\"") >&5 8151 (eval $ac_compile) 2>&5 8152 ac_status=$? 8153 echo "$as_me:8153: \$? = $ac_status" >&5 8154 (exit $ac_status); } && 8155 { ac_try='test -s conftest.$ac_objext' 8156 { (eval echo "$as_me:8156: \"$ac_try\"") >&5 8157 (eval $ac_try) 2>&5 8158 ac_status=$? 8159 echo "$as_me:8159: \$? = $ac_status" >&5 8160 (exit $ac_status); }; }; then 8161 ac_lo=0 ac_mid=0 8162 while :; do 8163 cat >conftest.$ac_ext <<_ACEOF 8164#line 8164 "configure" 8165#include "confdefs.h" 8166$ac_includes_default 8167int 8168main () 8169{ 8170int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175rm -f conftest.$ac_objext 8176if { (eval echo "$as_me:8176: \"$ac_compile\"") >&5 8177 (eval $ac_compile) 2>&5 8178 ac_status=$? 8179 echo "$as_me:8179: \$? = $ac_status" >&5 8180 (exit $ac_status); } && 8181 { ac_try='test -s conftest.$ac_objext' 8182 { (eval echo "$as_me:8182: \"$ac_try\"") >&5 8183 (eval $ac_try) 2>&5 8184 ac_status=$? 8185 echo "$as_me:8185: \$? = $ac_status" >&5 8186 (exit $ac_status); }; }; then 8187 ac_hi=$ac_mid; break 8188else 8189 echo "$as_me: failed program was:" >&5 8190cat conftest.$ac_ext >&5 8191ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 8192fi 8193rm -f conftest.$ac_objext conftest.$ac_ext 8194 done 8195else 8196 echo "$as_me: failed program was:" >&5 8197cat conftest.$ac_ext >&5 8198ac_hi=-1 ac_mid=-1 8199 while :; do 8200 cat >conftest.$ac_ext <<_ACEOF 8201#line 8201 "configure" 8202#include "confdefs.h" 8203$ac_includes_default 8204int 8205main () 8206{ 8207int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)] 8208 ; 8209 return 0; 8210} 8211_ACEOF 8212rm -f conftest.$ac_objext 8213if { (eval echo "$as_me:8213: \"$ac_compile\"") >&5 8214 (eval $ac_compile) 2>&5 8215 ac_status=$? 8216 echo "$as_me:8216: \$? = $ac_status" >&5 8217 (exit $ac_status); } && 8218 { ac_try='test -s conftest.$ac_objext' 8219 { (eval echo "$as_me:8219: \"$ac_try\"") >&5 8220 (eval $ac_try) 2>&5 8221 ac_status=$? 8222 echo "$as_me:8222: \$? = $ac_status" >&5 8223 (exit $ac_status); }; }; then 8224 ac_lo=$ac_mid; break 8225else 8226 echo "$as_me: failed program was:" >&5 8227cat conftest.$ac_ext >&5 8228ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 8229fi 8230rm -f conftest.$ac_objext conftest.$ac_ext 8231 done 8232fi 8233rm -f conftest.$ac_objext conftest.$ac_ext 8234# Binary search between lo and hi bounds. 8235while test "x$ac_lo" != "x$ac_hi"; do 8236 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8237 cat >conftest.$ac_ext <<_ACEOF 8238#line 8238 "configure" 8239#include "confdefs.h" 8240$ac_includes_default 8241int 8242main () 8243{ 8244int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)] 8245 ; 8246 return 0; 8247} 8248_ACEOF 8249rm -f conftest.$ac_objext 8250if { (eval echo "$as_me:8250: \"$ac_compile\"") >&5 8251 (eval $ac_compile) 2>&5 8252 ac_status=$? 8253 echo "$as_me:8253: \$? = $ac_status" >&5 8254 (exit $ac_status); } && 8255 { ac_try='test -s conftest.$ac_objext' 8256 { (eval echo "$as_me:8256: \"$ac_try\"") >&5 8257 (eval $ac_try) 2>&5 8258 ac_status=$? 8259 echo "$as_me:8259: \$? = $ac_status" >&5 8260 (exit $ac_status); }; }; then 8261 ac_hi=$ac_mid 8262else 8263 echo "$as_me: failed program was:" >&5 8264cat conftest.$ac_ext >&5 8265ac_lo=`expr $ac_mid + 1` 8266fi 8267rm -f conftest.$ac_objext conftest.$ac_ext 8268done 8269ac_cv_sizeof_long=$ac_lo 8270else 8271 if test "$cross_compiling" = yes; then 8272 { { echo "$as_me:8272: error: cannot run test program while cross compiling" >&5 8273echo "$as_me: error: cannot run test program while cross compiling" >&2;} 8274 { (exit 1); exit 1; }; } 8275else 8276 cat >conftest.$ac_ext <<_ACEOF 8277#line 8277 "configure" 8278#include "confdefs.h" 8279$ac_includes_default 8280int 8281main () 8282{ 8283FILE *f = fopen ("conftest.val", "w"); 8284if (!f) 8285 exit (1); 8286fprintf (f, "%d", (sizeof (long))); 8287fclose (f); 8288 ; 8289 return 0; 8290} 8291_ACEOF 8292rm -f conftest$ac_exeext 8293if { (eval echo "$as_me:8293: \"$ac_link\"") >&5 8294 (eval $ac_link) 2>&5 8295 ac_status=$? 8296 echo "$as_me:8296: \$? = $ac_status" >&5 8297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8298 { (eval echo "$as_me:8298: \"$ac_try\"") >&5 8299 (eval $ac_try) 2>&5 8300 ac_status=$? 8301 echo "$as_me:8301: \$? = $ac_status" >&5 8302 (exit $ac_status); }; }; then 8303 ac_cv_sizeof_long=`cat conftest.val` 8304else 8305 echo "$as_me: program exited with status $ac_status" >&5 8306echo "$as_me: failed program was:" >&5 8307cat conftest.$ac_ext >&5 8308fi 8309rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 8310fi 8311fi 8312rm -f conftest.val 8313else 8314 ac_cv_sizeof_long=0 8315fi 8316fi 8317echo "$as_me:8317: result: $ac_cv_sizeof_long" >&5 8318echo "${ECHO_T}$ac_cv_sizeof_long" >&6 8319cat >>confdefs.h <<EOF 8320#define SIZEOF_LONG $ac_cv_sizeof_long 8321EOF 8322 8323 ;; 8324 *) { { echo "$as_me:8324: error: Cross-compiling needs explicit SIZEOF_LONG" >&5 8325echo "$as_me: error: Cross-compiling needs explicit SIZEOF_LONG" >&2;} 8326 { (exit 1); exit 1; }; } 8327 ;; 8328 esac 8329 ;; 8330esac 8331 8332echo "$as_me:8332: checking for s_char" >&5 8333echo $ECHO_N "checking for s_char... $ECHO_C" >&6 8334if test "${ac_cv_type_s_char+set}" = set; then 8335 echo $ECHO_N "(cached) $ECHO_C" >&6 8336else 8337 cat >conftest.$ac_ext <<_ACEOF 8338#line 8338 "configure" 8339#include "confdefs.h" 8340$ac_includes_default 8341int 8342main () 8343{ 8344if ((s_char *) 0) 8345 return 0; 8346if (sizeof (s_char)) 8347 return 0; 8348 ; 8349 return 0; 8350} 8351_ACEOF 8352rm -f conftest.$ac_objext 8353if { (eval echo "$as_me:8353: \"$ac_compile\"") >&5 8354 (eval $ac_compile) 2>&5 8355 ac_status=$? 8356 echo "$as_me:8356: \$? = $ac_status" >&5 8357 (exit $ac_status); } && 8358 { ac_try='test -s conftest.$ac_objext' 8359 { (eval echo "$as_me:8359: \"$ac_try\"") >&5 8360 (eval $ac_try) 2>&5 8361 ac_status=$? 8362 echo "$as_me:8362: \$? = $ac_status" >&5 8363 (exit $ac_status); }; }; then 8364 ac_cv_type_s_char=yes 8365else 8366 echo "$as_me: failed program was:" >&5 8367cat conftest.$ac_ext >&5 8368ac_cv_type_s_char=no 8369fi 8370rm -f conftest.$ac_objext conftest.$ac_ext 8371fi 8372echo "$as_me:8372: result: $ac_cv_type_s_char" >&5 8373echo "${ECHO_T}$ac_cv_type_s_char" >&6 8374if test $ac_cv_type_s_char = yes; then 8375 8376cat >>confdefs.h <<EOF 8377#define HAVE_S_CHAR 1 8378EOF 8379 8380fi 8381 8382case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 8383 *yes) 8384 # We have a typedef for s_char. Might as well believe it... 8385 ;; 8386 no0no) 8387 # We have signed chars, can't say 'signed char', no s_char typedef. 8388 cat >>confdefs.h <<\EOF 8389#define NEED_S_CHAR_TYPEDEF 1 8390EOF 8391 8392 ;; 8393 no1no) 8394 # We have signed chars, can say 'signed char', no s_char typedef. 8395 cat >>confdefs.h <<\EOF 8396#define NEED_S_CHAR_TYPEDEF 1 8397EOF 8398 8399 ;; 8400 yes0no) 8401 # We have unsigned chars, can't say 'signed char', no s_char typedef. 8402 { { echo "$as_me:8402: error: No way to specify a signed character!" >&5 8403echo "$as_me: error: No way to specify a signed character!" >&2;} 8404 { (exit 1); exit 1; }; } 8405 ;; 8406 yes1no) 8407 # We have unsigned chars, can say 'signed char', no s_char typedef. 8408 cat >>confdefs.h <<\EOF 8409#define NEED_S_CHAR_TYPEDEF 1 8410EOF 8411 8412 ;; 8413esac 8414echo "$as_me:8414: checking for uid_t in sys/types.h" >&5 8415echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 8416if test "${ac_cv_type_uid_t+set}" = set; then 8417 echo $ECHO_N "(cached) $ECHO_C" >&6 8418else 8419 cat >conftest.$ac_ext <<_ACEOF 8420#line 8420 "configure" 8421#include "confdefs.h" 8422#include <sys/types.h> 8423 8424_ACEOF 8425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8426 egrep "uid_t" >/dev/null 2>&1; then 8427 ac_cv_type_uid_t=yes 8428else 8429 ac_cv_type_uid_t=no 8430fi 8431rm -f conftest* 8432 8433fi 8434echo "$as_me:8434: result: $ac_cv_type_uid_t" >&5 8435echo "${ECHO_T}$ac_cv_type_uid_t" >&6 8436if test $ac_cv_type_uid_t = no; then 8437 8438cat >>confdefs.h <<\EOF 8439#define uid_t int 8440EOF 8441 8442cat >>confdefs.h <<\EOF 8443#define gid_t int 8444EOF 8445 8446fi 8447 8448case "$target" in 8449 *-*-linux*) 8450 8451for ac_func in __adjtimex __ntp_gettime 8452do 8453ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8454echo "$as_me:8454: checking for $ac_func" >&5 8455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8456if eval "test \"\${$ac_ac_var+set}\" = set"; then 8457 echo $ECHO_N "(cached) $ECHO_C" >&6 8458else 8459 cat >conftest.$ac_ext <<_ACEOF 8460#line 8460 "configure" 8461#include "confdefs.h" 8462/* System header to define __stub macros and hopefully few prototypes, 8463 which can conflict with char $ac_func (); below. */ 8464#include <assert.h> 8465/* Override any gcc2 internal prototype to avoid an error. */ 8466#ifdef __cplusplus 8467extern "C" 8468#endif 8469/* We use char because int might match the return type of a gcc2 8470 builtin and then its argument prototype would still apply. */ 8471char $ac_func (); 8472char (*f) (); 8473 8474int 8475main () 8476{ 8477/* The GNU C library defines this for functions which it implements 8478 to always fail with ENOSYS. Some functions are actually named 8479 something starting with __ and the normal name is an alias. */ 8480#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8481choke me 8482#else 8483f = $ac_func; 8484#endif 8485 8486 ; 8487 return 0; 8488} 8489_ACEOF 8490rm -f conftest.$ac_objext conftest$ac_exeext 8491if { (eval echo "$as_me:8491: \"$ac_link\"") >&5 8492 (eval $ac_link) 2>&5 8493 ac_status=$? 8494 echo "$as_me:8494: \$? = $ac_status" >&5 8495 (exit $ac_status); } && 8496 { ac_try='test -s conftest$ac_exeext' 8497 { (eval echo "$as_me:8497: \"$ac_try\"") >&5 8498 (eval $ac_try) 2>&5 8499 ac_status=$? 8500 echo "$as_me:8500: \$? = $ac_status" >&5 8501 (exit $ac_status); }; }; then 8502 eval "$ac_ac_var=yes" 8503else 8504 echo "$as_me: failed program was:" >&5 8505cat conftest.$ac_ext >&5 8506eval "$ac_ac_var=no" 8507fi 8508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8509fi 8510echo "$as_me:8510: result: `eval echo '${'$ac_ac_var'}'`" >&5 8511echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8512if test `eval echo '${'$ac_ac_var'}'` = yes; then 8513 cat >>confdefs.h <<EOF 8514#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8515EOF 8516 8517fi 8518done 8519 8520 ;; 8521esac 8522case "$target" in 8523 *-*-aix4*) 8524 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 8525 # (returning ENOSYS). I didn't check 4.2. If, in the future, 8526 # IBM pulls its thumbs out long enough to implement clock_settime, 8527 # this conditional will need to change. Maybe use AC_TRY_RUN 8528 # instead to try to set the time to itself and check errno. 8529 ;; 8530 *) 8531for ac_func in clock_settime 8532do 8533ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8534echo "$as_me:8534: checking for $ac_func" >&5 8535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8536if eval "test \"\${$ac_ac_var+set}\" = set"; then 8537 echo $ECHO_N "(cached) $ECHO_C" >&6 8538else 8539 cat >conftest.$ac_ext <<_ACEOF 8540#line 8540 "configure" 8541#include "confdefs.h" 8542/* System header to define __stub macros and hopefully few prototypes, 8543 which can conflict with char $ac_func (); below. */ 8544#include <assert.h> 8545/* Override any gcc2 internal prototype to avoid an error. */ 8546#ifdef __cplusplus 8547extern "C" 8548#endif 8549/* We use char because int might match the return type of a gcc2 8550 builtin and then its argument prototype would still apply. */ 8551char $ac_func (); 8552char (*f) (); 8553 8554int 8555main () 8556{ 8557/* The GNU C library defines this for functions which it implements 8558 to always fail with ENOSYS. Some functions are actually named 8559 something starting with __ and the normal name is an alias. */ 8560#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8561choke me 8562#else 8563f = $ac_func; 8564#endif 8565 8566 ; 8567 return 0; 8568} 8569_ACEOF 8570rm -f conftest.$ac_objext conftest$ac_exeext 8571if { (eval echo "$as_me:8571: \"$ac_link\"") >&5 8572 (eval $ac_link) 2>&5 8573 ac_status=$? 8574 echo "$as_me:8574: \$? = $ac_status" >&5 8575 (exit $ac_status); } && 8576 { ac_try='test -s conftest$ac_exeext' 8577 { (eval echo "$as_me:8577: \"$ac_try\"") >&5 8578 (eval $ac_try) 2>&5 8579 ac_status=$? 8580 echo "$as_me:8580: \$? = $ac_status" >&5 8581 (exit $ac_status); }; }; then 8582 eval "$ac_ac_var=yes" 8583else 8584 echo "$as_me: failed program was:" >&5 8585cat conftest.$ac_ext >&5 8586eval "$ac_ac_var=no" 8587fi 8588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8589fi 8590echo "$as_me:8590: result: `eval echo '${'$ac_ac_var'}'`" >&5 8591echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8592if test `eval echo '${'$ac_ac_var'}'` = yes; then 8593 cat >>confdefs.h <<EOF 8594#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8595EOF 8596 8597fi 8598done 8599 8600 ;; 8601esac 8602 8603for ac_func in daemon 8604do 8605ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8606echo "$as_me:8606: checking for $ac_func" >&5 8607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8608if eval "test \"\${$ac_ac_var+set}\" = set"; then 8609 echo $ECHO_N "(cached) $ECHO_C" >&6 8610else 8611 cat >conftest.$ac_ext <<_ACEOF 8612#line 8612 "configure" 8613#include "confdefs.h" 8614/* System header to define __stub macros and hopefully few prototypes, 8615 which can conflict with char $ac_func (); below. */ 8616#include <assert.h> 8617/* Override any gcc2 internal prototype to avoid an error. */ 8618#ifdef __cplusplus 8619extern "C" 8620#endif 8621/* We use char because int might match the return type of a gcc2 8622 builtin and then its argument prototype would still apply. */ 8623char $ac_func (); 8624char (*f) (); 8625 8626int 8627main () 8628{ 8629/* The GNU C library defines this for functions which it implements 8630 to always fail with ENOSYS. Some functions are actually named 8631 something starting with __ and the normal name is an alias. */ 8632#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8633choke me 8634#else 8635f = $ac_func; 8636#endif 8637 8638 ; 8639 return 0; 8640} 8641_ACEOF 8642rm -f conftest.$ac_objext conftest$ac_exeext 8643if { (eval echo "$as_me:8643: \"$ac_link\"") >&5 8644 (eval $ac_link) 2>&5 8645 ac_status=$? 8646 echo "$as_me:8646: \$? = $ac_status" >&5 8647 (exit $ac_status); } && 8648 { ac_try='test -s conftest$ac_exeext' 8649 { (eval echo "$as_me:8649: \"$ac_try\"") >&5 8650 (eval $ac_try) 2>&5 8651 ac_status=$? 8652 echo "$as_me:8652: \$? = $ac_status" >&5 8653 (exit $ac_status); }; }; then 8654 eval "$ac_ac_var=yes" 8655else 8656 echo "$as_me: failed program was:" >&5 8657cat conftest.$ac_ext >&5 8658eval "$ac_ac_var=no" 8659fi 8660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8661fi 8662echo "$as_me:8662: result: `eval echo '${'$ac_ac_var'}'`" >&5 8663echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8664if test `eval echo '${'$ac_ac_var'}'` = yes; then 8665 cat >>confdefs.h <<EOF 8666#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8667EOF 8668 8669fi 8670done 8671 8672for ac_func in finite 8673do 8674ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8675echo "$as_me:8675: checking for $ac_func" >&5 8676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8677if eval "test \"\${$ac_ac_var+set}\" = set"; then 8678 echo $ECHO_N "(cached) $ECHO_C" >&6 8679else 8680 cat >conftest.$ac_ext <<_ACEOF 8681#line 8681 "configure" 8682#include "confdefs.h" 8683/* System header to define __stub macros and hopefully few prototypes, 8684 which can conflict with char $ac_func (); below. */ 8685#include <assert.h> 8686/* Override any gcc2 internal prototype to avoid an error. */ 8687#ifdef __cplusplus 8688extern "C" 8689#endif 8690/* We use char because int might match the return type of a gcc2 8691 builtin and then its argument prototype would still apply. */ 8692char $ac_func (); 8693char (*f) (); 8694 8695int 8696main () 8697{ 8698/* The GNU C library defines this for functions which it implements 8699 to always fail with ENOSYS. Some functions are actually named 8700 something starting with __ and the normal name is an alias. */ 8701#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8702choke me 8703#else 8704f = $ac_func; 8705#endif 8706 8707 ; 8708 return 0; 8709} 8710_ACEOF 8711rm -f conftest.$ac_objext conftest$ac_exeext 8712if { (eval echo "$as_me:8712: \"$ac_link\"") >&5 8713 (eval $ac_link) 2>&5 8714 ac_status=$? 8715 echo "$as_me:8715: \$? = $ac_status" >&5 8716 (exit $ac_status); } && 8717 { ac_try='test -s conftest$ac_exeext' 8718 { (eval echo "$as_me:8718: \"$ac_try\"") >&5 8719 (eval $ac_try) 2>&5 8720 ac_status=$? 8721 echo "$as_me:8721: \$? = $ac_status" >&5 8722 (exit $ac_status); }; }; then 8723 eval "$ac_ac_var=yes" 8724else 8725 echo "$as_me: failed program was:" >&5 8726cat conftest.$ac_ext >&5 8727eval "$ac_ac_var=no" 8728fi 8729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8730fi 8731echo "$as_me:8731: result: `eval echo '${'$ac_ac_var'}'`" >&5 8732echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8733if test `eval echo '${'$ac_ac_var'}'` = yes; then 8734 cat >>confdefs.h <<EOF 8735#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8736EOF 8737 8738else 8739 8740for ac_func in isfinite 8741do 8742ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8743echo "$as_me:8743: checking for $ac_func" >&5 8744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8745if eval "test \"\${$ac_ac_var+set}\" = set"; then 8746 echo $ECHO_N "(cached) $ECHO_C" >&6 8747else 8748 cat >conftest.$ac_ext <<_ACEOF 8749#line 8749 "configure" 8750#include "confdefs.h" 8751/* System header to define __stub macros and hopefully few prototypes, 8752 which can conflict with char $ac_func (); below. */ 8753#include <assert.h> 8754/* Override any gcc2 internal prototype to avoid an error. */ 8755#ifdef __cplusplus 8756extern "C" 8757#endif 8758/* We use char because int might match the return type of a gcc2 8759 builtin and then its argument prototype would still apply. */ 8760char $ac_func (); 8761char (*f) (); 8762 8763int 8764main () 8765{ 8766/* The GNU C library defines this for functions which it implements 8767 to always fail with ENOSYS. Some functions are actually named 8768 something starting with __ and the normal name is an alias. */ 8769#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8770choke me 8771#else 8772f = $ac_func; 8773#endif 8774 8775 ; 8776 return 0; 8777} 8778_ACEOF 8779rm -f conftest.$ac_objext conftest$ac_exeext 8780if { (eval echo "$as_me:8780: \"$ac_link\"") >&5 8781 (eval $ac_link) 2>&5 8782 ac_status=$? 8783 echo "$as_me:8783: \$? = $ac_status" >&5 8784 (exit $ac_status); } && 8785 { ac_try='test -s conftest$ac_exeext' 8786 { (eval echo "$as_me:8786: \"$ac_try\"") >&5 8787 (eval $ac_try) 2>&5 8788 ac_status=$? 8789 echo "$as_me:8789: \$? = $ac_status" >&5 8790 (exit $ac_status); }; }; then 8791 eval "$ac_ac_var=yes" 8792else 8793 echo "$as_me: failed program was:" >&5 8794cat conftest.$ac_ext >&5 8795eval "$ac_ac_var=no" 8796fi 8797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8798fi 8799echo "$as_me:8799: result: `eval echo '${'$ac_ac_var'}'`" >&5 8800echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8801if test `eval echo '${'$ac_ac_var'}'` = yes; then 8802 cat >>confdefs.h <<EOF 8803#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8804EOF 8805 8806else 8807 echo "$as_me:8807: checking for isfinite with <math.h>" >&5 8808echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6 8809 _libs=$LIBS 8810 LIBS="$LIBS -lm" 8811 cat >conftest.$ac_ext <<_ACEOF 8812#line 8812 "configure" 8813#include "confdefs.h" 8814#include <math.h> 8815int 8816main () 8817{ 8818float f = 0.0; isfinite(f) 8819 ; 8820 return 0; 8821} 8822_ACEOF 8823rm -f conftest.$ac_objext conftest$ac_exeext 8824if { (eval echo "$as_me:8824: \"$ac_link\"") >&5 8825 (eval $ac_link) 2>&5 8826 ac_status=$? 8827 echo "$as_me:8827: \$? = $ac_status" >&5 8828 (exit $ac_status); } && 8829 { ac_try='test -s conftest$ac_exeext' 8830 { (eval echo "$as_me:8830: \"$ac_try\"") >&5 8831 (eval $ac_try) 2>&5 8832 ac_status=$? 8833 echo "$as_me:8833: \$? = $ac_status" >&5 8834 (exit $ac_status); }; }; then 8835 echo "$as_me:8835: result: yes" >&5 8836echo "${ECHO_T}yes" >&6 8837 cat >>confdefs.h <<\EOF 8838#define HAVE_ISFINITE 1 8839EOF 8840 8841else 8842 echo "$as_me: failed program was:" >&5 8843cat conftest.$ac_ext >&5 8844echo "$as_me:8844: result: no" >&5 8845echo "${ECHO_T}no" >&6 8846fi 8847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8848 LIBS=$_libs 8849fi 8850done 8851 8852fi 8853done 8854 8855for ac_func in getbootfile getclock getdtablesize getrusage gettimeofday 8856do 8857ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8858echo "$as_me:8858: checking for $ac_func" >&5 8859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8860if eval "test \"\${$ac_ac_var+set}\" = set"; then 8861 echo $ECHO_N "(cached) $ECHO_C" >&6 8862else 8863 cat >conftest.$ac_ext <<_ACEOF 8864#line 8864 "configure" 8865#include "confdefs.h" 8866/* System header to define __stub macros and hopefully few prototypes, 8867 which can conflict with char $ac_func (); below. */ 8868#include <assert.h> 8869/* Override any gcc2 internal prototype to avoid an error. */ 8870#ifdef __cplusplus 8871extern "C" 8872#endif 8873/* We use char because int might match the return type of a gcc2 8874 builtin and then its argument prototype would still apply. */ 8875char $ac_func (); 8876char (*f) (); 8877 8878int 8879main () 8880{ 8881/* The GNU C library defines this for functions which it implements 8882 to always fail with ENOSYS. Some functions are actually named 8883 something starting with __ and the normal name is an alias. */ 8884#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8885choke me 8886#else 8887f = $ac_func; 8888#endif 8889 8890 ; 8891 return 0; 8892} 8893_ACEOF 8894rm -f conftest.$ac_objext conftest$ac_exeext 8895if { (eval echo "$as_me:8895: \"$ac_link\"") >&5 8896 (eval $ac_link) 2>&5 8897 ac_status=$? 8898 echo "$as_me:8898: \$? = $ac_status" >&5 8899 (exit $ac_status); } && 8900 { ac_try='test -s conftest$ac_exeext' 8901 { (eval echo "$as_me:8901: \"$ac_try\"") >&5 8902 (eval $ac_try) 2>&5 8903 ac_status=$? 8904 echo "$as_me:8904: \$? = $ac_status" >&5 8905 (exit $ac_status); }; }; then 8906 eval "$ac_ac_var=yes" 8907else 8908 echo "$as_me: failed program was:" >&5 8909cat conftest.$ac_ext >&5 8910eval "$ac_ac_var=no" 8911fi 8912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8913fi 8914echo "$as_me:8914: result: `eval echo '${'$ac_ac_var'}'`" >&5 8915echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8916if test `eval echo '${'$ac_ac_var'}'` = yes; then 8917 cat >>confdefs.h <<EOF 8918#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8919EOF 8920 8921fi 8922done 8923 8924case "$target" in 8925 *-pc-cygwin*) 8926 ;; 8927 *) 8928for ac_func in getuid 8929do 8930ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8931echo "$as_me:8931: checking for $ac_func" >&5 8932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8933if eval "test \"\${$ac_ac_var+set}\" = set"; then 8934 echo $ECHO_N "(cached) $ECHO_C" >&6 8935else 8936 cat >conftest.$ac_ext <<_ACEOF 8937#line 8937 "configure" 8938#include "confdefs.h" 8939/* System header to define __stub macros and hopefully few prototypes, 8940 which can conflict with char $ac_func (); below. */ 8941#include <assert.h> 8942/* Override any gcc2 internal prototype to avoid an error. */ 8943#ifdef __cplusplus 8944extern "C" 8945#endif 8946/* We use char because int might match the return type of a gcc2 8947 builtin and then its argument prototype would still apply. */ 8948char $ac_func (); 8949char (*f) (); 8950 8951int 8952main () 8953{ 8954/* The GNU C library defines this for functions which it implements 8955 to always fail with ENOSYS. Some functions are actually named 8956 something starting with __ and the normal name is an alias. */ 8957#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8958choke me 8959#else 8960f = $ac_func; 8961#endif 8962 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967rm -f conftest.$ac_objext conftest$ac_exeext 8968if { (eval echo "$as_me:8968: \"$ac_link\"") >&5 8969 (eval $ac_link) 2>&5 8970 ac_status=$? 8971 echo "$as_me:8971: \$? = $ac_status" >&5 8972 (exit $ac_status); } && 8973 { ac_try='test -s conftest$ac_exeext' 8974 { (eval echo "$as_me:8974: \"$ac_try\"") >&5 8975 (eval $ac_try) 2>&5 8976 ac_status=$? 8977 echo "$as_me:8977: \$? = $ac_status" >&5 8978 (exit $ac_status); }; }; then 8979 eval "$ac_ac_var=yes" 8980else 8981 echo "$as_me: failed program was:" >&5 8982cat conftest.$ac_ext >&5 8983eval "$ac_ac_var=no" 8984fi 8985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8986fi 8987echo "$as_me:8987: result: `eval echo '${'$ac_ac_var'}'`" >&5 8988echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8989if test `eval echo '${'$ac_ac_var'}'` = yes; then 8990 cat >>confdefs.h <<EOF 8991#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8992EOF 8993 8994fi 8995done 8996 8997 ;; 8998esac 8999 9000for ac_func in hstrerror K_open kvm_open memcpy memmove memset 9001do 9002ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9003echo "$as_me:9003: checking for $ac_func" >&5 9004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9005if eval "test \"\${$ac_ac_var+set}\" = set"; then 9006 echo $ECHO_N "(cached) $ECHO_C" >&6 9007else 9008 cat >conftest.$ac_ext <<_ACEOF 9009#line 9009 "configure" 9010#include "confdefs.h" 9011/* System header to define __stub macros and hopefully few prototypes, 9012 which can conflict with char $ac_func (); below. */ 9013#include <assert.h> 9014/* Override any gcc2 internal prototype to avoid an error. */ 9015#ifdef __cplusplus 9016extern "C" 9017#endif 9018/* We use char because int might match the return type of a gcc2 9019 builtin and then its argument prototype would still apply. */ 9020char $ac_func (); 9021char (*f) (); 9022 9023int 9024main () 9025{ 9026/* The GNU C library defines this for functions which it implements 9027 to always fail with ENOSYS. Some functions are actually named 9028 something starting with __ and the normal name is an alias. */ 9029#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9030choke me 9031#else 9032f = $ac_func; 9033#endif 9034 9035 ; 9036 return 0; 9037} 9038_ACEOF 9039rm -f conftest.$ac_objext conftest$ac_exeext 9040if { (eval echo "$as_me:9040: \"$ac_link\"") >&5 9041 (eval $ac_link) 2>&5 9042 ac_status=$? 9043 echo "$as_me:9043: \$? = $ac_status" >&5 9044 (exit $ac_status); } && 9045 { ac_try='test -s conftest$ac_exeext' 9046 { (eval echo "$as_me:9046: \"$ac_try\"") >&5 9047 (eval $ac_try) 2>&5 9048 ac_status=$? 9049 echo "$as_me:9049: \$? = $ac_status" >&5 9050 (exit $ac_status); }; }; then 9051 eval "$ac_ac_var=yes" 9052else 9053 echo "$as_me: failed program was:" >&5 9054cat conftest.$ac_ext >&5 9055eval "$ac_ac_var=no" 9056fi 9057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9058fi 9059echo "$as_me:9059: result: `eval echo '${'$ac_ac_var'}'`" >&5 9060echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9061if test `eval echo '${'$ac_ac_var'}'` = yes; then 9062 cat >>confdefs.h <<EOF 9063#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9064EOF 9065 9066fi 9067done 9068 9069case "$target" in 9070 *-*-sco3.2v5.0.*) 9071 # Just stubs. Idiots. 9072 ;; 9073 *) 9074for ac_func in mkstemp 9075do 9076ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9077echo "$as_me:9077: checking for $ac_func" >&5 9078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9079if eval "test \"\${$ac_ac_var+set}\" = set"; then 9080 echo $ECHO_N "(cached) $ECHO_C" >&6 9081else 9082 cat >conftest.$ac_ext <<_ACEOF 9083#line 9083 "configure" 9084#include "confdefs.h" 9085/* System header to define __stub macros and hopefully few prototypes, 9086 which can conflict with char $ac_func (); below. */ 9087#include <assert.h> 9088/* Override any gcc2 internal prototype to avoid an error. */ 9089#ifdef __cplusplus 9090extern "C" 9091#endif 9092/* We use char because int might match the return type of a gcc2 9093 builtin and then its argument prototype would still apply. */ 9094char $ac_func (); 9095char (*f) (); 9096 9097int 9098main () 9099{ 9100/* The GNU C library defines this for functions which it implements 9101 to always fail with ENOSYS. Some functions are actually named 9102 something starting with __ and the normal name is an alias. */ 9103#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9104choke me 9105#else 9106f = $ac_func; 9107#endif 9108 9109 ; 9110 return 0; 9111} 9112_ACEOF 9113rm -f conftest.$ac_objext conftest$ac_exeext 9114if { (eval echo "$as_me:9114: \"$ac_link\"") >&5 9115 (eval $ac_link) 2>&5 9116 ac_status=$? 9117 echo "$as_me:9117: \$? = $ac_status" >&5 9118 (exit $ac_status); } && 9119 { ac_try='test -s conftest$ac_exeext' 9120 { (eval echo "$as_me:9120: \"$ac_try\"") >&5 9121 (eval $ac_try) 2>&5 9122 ac_status=$? 9123 echo "$as_me:9123: \$? = $ac_status" >&5 9124 (exit $ac_status); }; }; then 9125 eval "$ac_ac_var=yes" 9126else 9127 echo "$as_me: failed program was:" >&5 9128cat conftest.$ac_ext >&5 9129eval "$ac_ac_var=no" 9130fi 9131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9132fi 9133echo "$as_me:9133: result: `eval echo '${'$ac_ac_var'}'`" >&5 9134echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9135if test `eval echo '${'$ac_ac_var'}'` = yes; then 9136 cat >>confdefs.h <<EOF 9137#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9138EOF 9139 9140fi 9141done 9142 9143 ;; 9144esac 9145 9146for ac_func in mktime 9147do 9148ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9149echo "$as_me:9149: checking for $ac_func" >&5 9150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9151if eval "test \"\${$ac_ac_var+set}\" = set"; then 9152 echo $ECHO_N "(cached) $ECHO_C" >&6 9153else 9154 cat >conftest.$ac_ext <<_ACEOF 9155#line 9155 "configure" 9156#include "confdefs.h" 9157/* System header to define __stub macros and hopefully few prototypes, 9158 which can conflict with char $ac_func (); below. */ 9159#include <assert.h> 9160/* Override any gcc2 internal prototype to avoid an error. */ 9161#ifdef __cplusplus 9162extern "C" 9163#endif 9164/* We use char because int might match the return type of a gcc2 9165 builtin and then its argument prototype would still apply. */ 9166char $ac_func (); 9167char (*f) (); 9168 9169int 9170main () 9171{ 9172/* The GNU C library defines this for functions which it implements 9173 to always fail with ENOSYS. Some functions are actually named 9174 something starting with __ and the normal name is an alias. */ 9175#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9176choke me 9177#else 9178f = $ac_func; 9179#endif 9180 9181 ; 9182 return 0; 9183} 9184_ACEOF 9185rm -f conftest.$ac_objext conftest$ac_exeext 9186if { (eval echo "$as_me:9186: \"$ac_link\"") >&5 9187 (eval $ac_link) 2>&5 9188 ac_status=$? 9189 echo "$as_me:9189: \$? = $ac_status" >&5 9190 (exit $ac_status); } && 9191 { ac_try='test -s conftest$ac_exeext' 9192 { (eval echo "$as_me:9192: \"$ac_try\"") >&5 9193 (eval $ac_try) 2>&5 9194 ac_status=$? 9195 echo "$as_me:9195: \$? = $ac_status" >&5 9196 (exit $ac_status); }; }; then 9197 eval "$ac_ac_var=yes" 9198else 9199 echo "$as_me: failed program was:" >&5 9200cat conftest.$ac_ext >&5 9201eval "$ac_ac_var=no" 9202fi 9203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9204fi 9205echo "$as_me:9205: result: `eval echo '${'$ac_ac_var'}'`" >&5 9206echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9207if test `eval echo '${'$ac_ac_var'}'` = yes; then 9208 cat >>confdefs.h <<EOF 9209#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9210EOF 9211 9212else 9213 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 9214fi 9215done 9216 9217case "$target" in 9218 *-*-aix4*) 9219 # Just a stub. Idiots. 9220 ;; 9221 *-*-irix*) 9222 # Just stubs in Irix. Idiots. 9223 ;; 9224 *-*-sco3.2v5.0.*) 9225 # Just stubs. Idiots. 9226 ;; 9227 alpha*-dec-osf4*|alpha*-dec-osf5*) 9228 # mlockall is there, as a #define calling memlk via <sys/mman.h> 9229 # Not easy to test for - cheat. 9230 9231for ac_func in memlk 9232do 9233ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9234echo "$as_me:9234: checking for $ac_func" >&5 9235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9236if eval "test \"\${$ac_ac_var+set}\" = set"; then 9237 echo $ECHO_N "(cached) $ECHO_C" >&6 9238else 9239 cat >conftest.$ac_ext <<_ACEOF 9240#line 9240 "configure" 9241#include "confdefs.h" 9242/* System header to define __stub macros and hopefully few prototypes, 9243 which can conflict with char $ac_func (); below. */ 9244#include <assert.h> 9245/* Override any gcc2 internal prototype to avoid an error. */ 9246#ifdef __cplusplus 9247extern "C" 9248#endif 9249/* We use char because int might match the return type of a gcc2 9250 builtin and then its argument prototype would still apply. */ 9251char $ac_func (); 9252char (*f) (); 9253 9254int 9255main () 9256{ 9257/* The GNU C library defines this for functions which it implements 9258 to always fail with ENOSYS. Some functions are actually named 9259 something starting with __ and the normal name is an alias. */ 9260#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9261choke me 9262#else 9263f = $ac_func; 9264#endif 9265 9266 ; 9267 return 0; 9268} 9269_ACEOF 9270rm -f conftest.$ac_objext conftest$ac_exeext 9271if { (eval echo "$as_me:9271: \"$ac_link\"") >&5 9272 (eval $ac_link) 2>&5 9273 ac_status=$? 9274 echo "$as_me:9274: \$? = $ac_status" >&5 9275 (exit $ac_status); } && 9276 { ac_try='test -s conftest$ac_exeext' 9277 { (eval echo "$as_me:9277: \"$ac_try\"") >&5 9278 (eval $ac_try) 2>&5 9279 ac_status=$? 9280 echo "$as_me:9280: \$? = $ac_status" >&5 9281 (exit $ac_status); }; }; then 9282 eval "$ac_ac_var=yes" 9283else 9284 echo "$as_me: failed program was:" >&5 9285cat conftest.$ac_ext >&5 9286eval "$ac_ac_var=no" 9287fi 9288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9289fi 9290echo "$as_me:9290: result: `eval echo '${'$ac_ac_var'}'`" >&5 9291echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9292if test `eval echo '${'$ac_ac_var'}'` = yes; then 9293 cat >>confdefs.h <<EOF 9294#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9295EOF 9296 ac_cv_func_mlockall='yes' 9297fi 9298done 9299 9300for ac_func in mlockall 9301do 9302ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9303echo "$as_me:9303: checking for $ac_func" >&5 9304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9305if eval "test \"\${$ac_ac_var+set}\" = set"; then 9306 echo $ECHO_N "(cached) $ECHO_C" >&6 9307else 9308 cat >conftest.$ac_ext <<_ACEOF 9309#line 9309 "configure" 9310#include "confdefs.h" 9311/* System header to define __stub macros and hopefully few prototypes, 9312 which can conflict with char $ac_func (); below. */ 9313#include <assert.h> 9314/* Override any gcc2 internal prototype to avoid an error. */ 9315#ifdef __cplusplus 9316extern "C" 9317#endif 9318/* We use char because int might match the return type of a gcc2 9319 builtin and then its argument prototype would still apply. */ 9320char $ac_func (); 9321char (*f) (); 9322 9323int 9324main () 9325{ 9326/* The GNU C library defines this for functions which it implements 9327 to always fail with ENOSYS. Some functions are actually named 9328 something starting with __ and the normal name is an alias. */ 9329#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9330choke me 9331#else 9332f = $ac_func; 9333#endif 9334 9335 ; 9336 return 0; 9337} 9338_ACEOF 9339rm -f conftest.$ac_objext conftest$ac_exeext 9340if { (eval echo "$as_me:9340: \"$ac_link\"") >&5 9341 (eval $ac_link) 2>&5 9342 ac_status=$? 9343 echo "$as_me:9343: \$? = $ac_status" >&5 9344 (exit $ac_status); } && 9345 { ac_try='test -s conftest$ac_exeext' 9346 { (eval echo "$as_me:9346: \"$ac_try\"") >&5 9347 (eval $ac_try) 2>&5 9348 ac_status=$? 9349 echo "$as_me:9349: \$? = $ac_status" >&5 9350 (exit $ac_status); }; }; then 9351 eval "$ac_ac_var=yes" 9352else 9353 echo "$as_me: failed program was:" >&5 9354cat conftest.$ac_ext >&5 9355eval "$ac_ac_var=no" 9356fi 9357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9358fi 9359echo "$as_me:9359: result: `eval echo '${'$ac_ac_var'}'`" >&5 9360echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9361if test `eval echo '${'$ac_ac_var'}'` = yes; then 9362 cat >>confdefs.h <<EOF 9363#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9364EOF 9365 9366fi 9367done 9368 9369 ;; 9370 *) 9371for ac_func in mlockall 9372do 9373ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9374echo "$as_me:9374: checking for $ac_func" >&5 9375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9376if eval "test \"\${$ac_ac_var+set}\" = set"; then 9377 echo $ECHO_N "(cached) $ECHO_C" >&6 9378else 9379 cat >conftest.$ac_ext <<_ACEOF 9380#line 9380 "configure" 9381#include "confdefs.h" 9382/* System header to define __stub macros and hopefully few prototypes, 9383 which can conflict with char $ac_func (); below. */ 9384#include <assert.h> 9385/* Override any gcc2 internal prototype to avoid an error. */ 9386#ifdef __cplusplus 9387extern "C" 9388#endif 9389/* We use char because int might match the return type of a gcc2 9390 builtin and then its argument prototype would still apply. */ 9391char $ac_func (); 9392char (*f) (); 9393 9394int 9395main () 9396{ 9397/* The GNU C library defines this for functions which it implements 9398 to always fail with ENOSYS. Some functions are actually named 9399 something starting with __ and the normal name is an alias. */ 9400#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9401choke me 9402#else 9403f = $ac_func; 9404#endif 9405 9406 ; 9407 return 0; 9408} 9409_ACEOF 9410rm -f conftest.$ac_objext conftest$ac_exeext 9411if { (eval echo "$as_me:9411: \"$ac_link\"") >&5 9412 (eval $ac_link) 2>&5 9413 ac_status=$? 9414 echo "$as_me:9414: \$? = $ac_status" >&5 9415 (exit $ac_status); } && 9416 { ac_try='test -s conftest$ac_exeext' 9417 { (eval echo "$as_me:9417: \"$ac_try\"") >&5 9418 (eval $ac_try) 2>&5 9419 ac_status=$? 9420 echo "$as_me:9420: \$? = $ac_status" >&5 9421 (exit $ac_status); }; }; then 9422 eval "$ac_ac_var=yes" 9423else 9424 echo "$as_me: failed program was:" >&5 9425cat conftest.$ac_ext >&5 9426eval "$ac_ac_var=no" 9427fi 9428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9429fi 9430echo "$as_me:9430: result: `eval echo '${'$ac_ac_var'}'`" >&5 9431echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9432if test `eval echo '${'$ac_ac_var'}'` = yes; then 9433 cat >>confdefs.h <<EOF 9434#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9435EOF 9436 9437fi 9438done 9439 9440 ;; 9441esac 9442 9443for ac_func in mrand48 srand48 nice nlist 9444do 9445ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9446echo "$as_me:9446: checking for $ac_func" >&5 9447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9448if eval "test \"\${$ac_ac_var+set}\" = set"; then 9449 echo $ECHO_N "(cached) $ECHO_C" >&6 9450else 9451 cat >conftest.$ac_ext <<_ACEOF 9452#line 9452 "configure" 9453#include "confdefs.h" 9454/* System header to define __stub macros and hopefully few prototypes, 9455 which can conflict with char $ac_func (); below. */ 9456#include <assert.h> 9457/* Override any gcc2 internal prototype to avoid an error. */ 9458#ifdef __cplusplus 9459extern "C" 9460#endif 9461/* We use char because int might match the return type of a gcc2 9462 builtin and then its argument prototype would still apply. */ 9463char $ac_func (); 9464char (*f) (); 9465 9466int 9467main () 9468{ 9469/* The GNU C library defines this for functions which it implements 9470 to always fail with ENOSYS. Some functions are actually named 9471 something starting with __ and the normal name is an alias. */ 9472#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9473choke me 9474#else 9475f = $ac_func; 9476#endif 9477 9478 ; 9479 return 0; 9480} 9481_ACEOF 9482rm -f conftest.$ac_objext conftest$ac_exeext 9483if { (eval echo "$as_me:9483: \"$ac_link\"") >&5 9484 (eval $ac_link) 2>&5 9485 ac_status=$? 9486 echo "$as_me:9486: \$? = $ac_status" >&5 9487 (exit $ac_status); } && 9488 { ac_try='test -s conftest$ac_exeext' 9489 { (eval echo "$as_me:9489: \"$ac_try\"") >&5 9490 (eval $ac_try) 2>&5 9491 ac_status=$? 9492 echo "$as_me:9492: \$? = $ac_status" >&5 9493 (exit $ac_status); }; }; then 9494 eval "$ac_ac_var=yes" 9495else 9496 echo "$as_me: failed program was:" >&5 9497cat conftest.$ac_ext >&5 9498eval "$ac_ac_var=no" 9499fi 9500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9501fi 9502echo "$as_me:9502: result: `eval echo '${'$ac_ac_var'}'`" >&5 9503echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9504if test `eval echo '${'$ac_ac_var'}'` = yes; then 9505 cat >>confdefs.h <<EOF 9506#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9507EOF 9508 9509fi 9510done 9511 9512case "$target" in 9513 *-*-solaris2.6) 9514 # Broken... 9515 ;; 9516 *) 9517 9518for ac_func in ntp_adjtime ntp_gettime 9519do 9520ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9521echo "$as_me:9521: checking for $ac_func" >&5 9522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9523if eval "test \"\${$ac_ac_var+set}\" = set"; then 9524 echo $ECHO_N "(cached) $ECHO_C" >&6 9525else 9526 cat >conftest.$ac_ext <<_ACEOF 9527#line 9527 "configure" 9528#include "confdefs.h" 9529/* System header to define __stub macros and hopefully few prototypes, 9530 which can conflict with char $ac_func (); below. */ 9531#include <assert.h> 9532/* Override any gcc2 internal prototype to avoid an error. */ 9533#ifdef __cplusplus 9534extern "C" 9535#endif 9536/* We use char because int might match the return type of a gcc2 9537 builtin and then its argument prototype would still apply. */ 9538char $ac_func (); 9539char (*f) (); 9540 9541int 9542main () 9543{ 9544/* The GNU C library defines this for functions which it implements 9545 to always fail with ENOSYS. Some functions are actually named 9546 something starting with __ and the normal name is an alias. */ 9547#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9548choke me 9549#else 9550f = $ac_func; 9551#endif 9552 9553 ; 9554 return 0; 9555} 9556_ACEOF 9557rm -f conftest.$ac_objext conftest$ac_exeext 9558if { (eval echo "$as_me:9558: \"$ac_link\"") >&5 9559 (eval $ac_link) 2>&5 9560 ac_status=$? 9561 echo "$as_me:9561: \$? = $ac_status" >&5 9562 (exit $ac_status); } && 9563 { ac_try='test -s conftest$ac_exeext' 9564 { (eval echo "$as_me:9564: \"$ac_try\"") >&5 9565 (eval $ac_try) 2>&5 9566 ac_status=$? 9567 echo "$as_me:9567: \$? = $ac_status" >&5 9568 (exit $ac_status); }; }; then 9569 eval "$ac_ac_var=yes" 9570else 9571 echo "$as_me: failed program was:" >&5 9572cat conftest.$ac_ext >&5 9573eval "$ac_ac_var=no" 9574fi 9575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9576fi 9577echo "$as_me:9577: result: `eval echo '${'$ac_ac_var'}'`" >&5 9578echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9579if test `eval echo '${'$ac_ac_var'}'` = yes; then 9580 cat >>confdefs.h <<EOF 9581#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9582EOF 9583 9584fi 9585done 9586 9587 ;; 9588esac 9589 9590for ac_func in plock pututline pututxline readlink rtprio 9591do 9592ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9593echo "$as_me:9593: checking for $ac_func" >&5 9594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9595if eval "test \"\${$ac_ac_var+set}\" = set"; then 9596 echo $ECHO_N "(cached) $ECHO_C" >&6 9597else 9598 cat >conftest.$ac_ext <<_ACEOF 9599#line 9599 "configure" 9600#include "confdefs.h" 9601/* System header to define __stub macros and hopefully few prototypes, 9602 which can conflict with char $ac_func (); below. */ 9603#include <assert.h> 9604/* Override any gcc2 internal prototype to avoid an error. */ 9605#ifdef __cplusplus 9606extern "C" 9607#endif 9608/* We use char because int might match the return type of a gcc2 9609 builtin and then its argument prototype would still apply. */ 9610char $ac_func (); 9611char (*f) (); 9612 9613int 9614main () 9615{ 9616/* The GNU C library defines this for functions which it implements 9617 to always fail with ENOSYS. Some functions are actually named 9618 something starting with __ and the normal name is an alias. */ 9619#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9620choke me 9621#else 9622f = $ac_func; 9623#endif 9624 9625 ; 9626 return 0; 9627} 9628_ACEOF 9629rm -f conftest.$ac_objext conftest$ac_exeext 9630if { (eval echo "$as_me:9630: \"$ac_link\"") >&5 9631 (eval $ac_link) 2>&5 9632 ac_status=$? 9633 echo "$as_me:9633: \$? = $ac_status" >&5 9634 (exit $ac_status); } && 9635 { ac_try='test -s conftest$ac_exeext' 9636 { (eval echo "$as_me:9636: \"$ac_try\"") >&5 9637 (eval $ac_try) 2>&5 9638 ac_status=$? 9639 echo "$as_me:9639: \$? = $ac_status" >&5 9640 (exit $ac_status); }; }; then 9641 eval "$ac_ac_var=yes" 9642else 9643 echo "$as_me: failed program was:" >&5 9644cat conftest.$ac_ext >&5 9645eval "$ac_ac_var=no" 9646fi 9647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9648fi 9649echo "$as_me:9649: result: `eval echo '${'$ac_ac_var'}'`" >&5 9650echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9651if test `eval echo '${'$ac_ac_var'}'` = yes; then 9652 cat >>confdefs.h <<EOF 9653#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9654EOF 9655 9656fi 9657done 9658 9659case "$ac_cv_func_mrand48" in 9660 yes) ;; 9661 *) 9662for ac_func in random 9663do 9664ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9665echo "$as_me:9665: checking for $ac_func" >&5 9666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9667if eval "test \"\${$ac_ac_var+set}\" = set"; then 9668 echo $ECHO_N "(cached) $ECHO_C" >&6 9669else 9670 cat >conftest.$ac_ext <<_ACEOF 9671#line 9671 "configure" 9672#include "confdefs.h" 9673/* System header to define __stub macros and hopefully few prototypes, 9674 which can conflict with char $ac_func (); below. */ 9675#include <assert.h> 9676/* Override any gcc2 internal prototype to avoid an error. */ 9677#ifdef __cplusplus 9678extern "C" 9679#endif 9680/* We use char because int might match the return type of a gcc2 9681 builtin and then its argument prototype would still apply. */ 9682char $ac_func (); 9683char (*f) (); 9684 9685int 9686main () 9687{ 9688/* The GNU C library defines this for functions which it implements 9689 to always fail with ENOSYS. Some functions are actually named 9690 something starting with __ and the normal name is an alias. */ 9691#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9692choke me 9693#else 9694f = $ac_func; 9695#endif 9696 9697 ; 9698 return 0; 9699} 9700_ACEOF 9701rm -f conftest.$ac_objext conftest$ac_exeext 9702if { (eval echo "$as_me:9702: \"$ac_link\"") >&5 9703 (eval $ac_link) 2>&5 9704 ac_status=$? 9705 echo "$as_me:9705: \$? = $ac_status" >&5 9706 (exit $ac_status); } && 9707 { ac_try='test -s conftest$ac_exeext' 9708 { (eval echo "$as_me:9708: \"$ac_try\"") >&5 9709 (eval $ac_try) 2>&5 9710 ac_status=$? 9711 echo "$as_me:9711: \$? = $ac_status" >&5 9712 (exit $ac_status); }; }; then 9713 eval "$ac_ac_var=yes" 9714else 9715 echo "$as_me: failed program was:" >&5 9716cat conftest.$ac_ext >&5 9717eval "$ac_ac_var=no" 9718fi 9719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9720fi 9721echo "$as_me:9721: result: `eval echo '${'$ac_ac_var'}'`" >&5 9722echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9723if test `eval echo '${'$ac_ac_var'}'` = yes; then 9724 cat >>confdefs.h <<EOF 9725#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9726EOF 9727 9728else 9729 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 9730fi 9731done 9732 9733 ;; 9734esac 9735case "$target" in 9736 *-*-aix4*) 9737 # Just a stub in AIX 4. Idiots. 9738 ;; 9739 *-*-solaris2.5*) 9740 # Just stubs in solaris2.5. Idiots. 9741 ;; 9742 *) 9743for ac_func in sched_setscheduler 9744do 9745ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9746echo "$as_me:9746: checking for $ac_func" >&5 9747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9748if eval "test \"\${$ac_ac_var+set}\" = set"; then 9749 echo $ECHO_N "(cached) $ECHO_C" >&6 9750else 9751 cat >conftest.$ac_ext <<_ACEOF 9752#line 9752 "configure" 9753#include "confdefs.h" 9754/* System header to define __stub macros and hopefully few prototypes, 9755 which can conflict with char $ac_func (); below. */ 9756#include <assert.h> 9757/* Override any gcc2 internal prototype to avoid an error. */ 9758#ifdef __cplusplus 9759extern "C" 9760#endif 9761/* We use char because int might match the return type of a gcc2 9762 builtin and then its argument prototype would still apply. */ 9763char $ac_func (); 9764char (*f) (); 9765 9766int 9767main () 9768{ 9769/* The GNU C library defines this for functions which it implements 9770 to always fail with ENOSYS. Some functions are actually named 9771 something starting with __ and the normal name is an alias. */ 9772#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9773choke me 9774#else 9775f = $ac_func; 9776#endif 9777 9778 ; 9779 return 0; 9780} 9781_ACEOF 9782rm -f conftest.$ac_objext conftest$ac_exeext 9783if { (eval echo "$as_me:9783: \"$ac_link\"") >&5 9784 (eval $ac_link) 2>&5 9785 ac_status=$? 9786 echo "$as_me:9786: \$? = $ac_status" >&5 9787 (exit $ac_status); } && 9788 { ac_try='test -s conftest$ac_exeext' 9789 { (eval echo "$as_me:9789: \"$ac_try\"") >&5 9790 (eval $ac_try) 2>&5 9791 ac_status=$? 9792 echo "$as_me:9792: \$? = $ac_status" >&5 9793 (exit $ac_status); }; }; then 9794 eval "$ac_ac_var=yes" 9795else 9796 echo "$as_me: failed program was:" >&5 9797cat conftest.$ac_ext >&5 9798eval "$ac_ac_var=no" 9799fi 9800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9801fi 9802echo "$as_me:9802: result: `eval echo '${'$ac_ac_var'}'`" >&5 9803echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9804if test `eval echo '${'$ac_ac_var'}'` = yes; then 9805 cat >>confdefs.h <<EOF 9806#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9807EOF 9808 9809fi 9810done 9811 9812 ;; 9813esac 9814 9815for ac_func in setlinebuf 9816do 9817ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9818echo "$as_me:9818: checking for $ac_func" >&5 9819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9820if eval "test \"\${$ac_ac_var+set}\" = set"; then 9821 echo $ECHO_N "(cached) $ECHO_C" >&6 9822else 9823 cat >conftest.$ac_ext <<_ACEOF 9824#line 9824 "configure" 9825#include "confdefs.h" 9826/* System header to define __stub macros and hopefully few prototypes, 9827 which can conflict with char $ac_func (); below. */ 9828#include <assert.h> 9829/* Override any gcc2 internal prototype to avoid an error. */ 9830#ifdef __cplusplus 9831extern "C" 9832#endif 9833/* We use char because int might match the return type of a gcc2 9834 builtin and then its argument prototype would still apply. */ 9835char $ac_func (); 9836char (*f) (); 9837 9838int 9839main () 9840{ 9841/* The GNU C library defines this for functions which it implements 9842 to always fail with ENOSYS. Some functions are actually named 9843 something starting with __ and the normal name is an alias. */ 9844#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9845choke me 9846#else 9847f = $ac_func; 9848#endif 9849 9850 ; 9851 return 0; 9852} 9853_ACEOF 9854rm -f conftest.$ac_objext conftest$ac_exeext 9855if { (eval echo "$as_me:9855: \"$ac_link\"") >&5 9856 (eval $ac_link) 2>&5 9857 ac_status=$? 9858 echo "$as_me:9858: \$? = $ac_status" >&5 9859 (exit $ac_status); } && 9860 { ac_try='test -s conftest$ac_exeext' 9861 { (eval echo "$as_me:9861: \"$ac_try\"") >&5 9862 (eval $ac_try) 2>&5 9863 ac_status=$? 9864 echo "$as_me:9864: \$? = $ac_status" >&5 9865 (exit $ac_status); }; }; then 9866 eval "$ac_ac_var=yes" 9867else 9868 echo "$as_me: failed program was:" >&5 9869cat conftest.$ac_ext >&5 9870eval "$ac_ac_var=no" 9871fi 9872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9873fi 9874echo "$as_me:9874: result: `eval echo '${'$ac_ac_var'}'`" >&5 9875echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9876if test `eval echo '${'$ac_ac_var'}'` = yes; then 9877 cat >>confdefs.h <<EOF 9878#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9879EOF 9880 9881fi 9882done 9883 9884for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction 9885do 9886ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9887echo "$as_me:9887: checking for $ac_func" >&5 9888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9889if eval "test \"\${$ac_ac_var+set}\" = set"; then 9890 echo $ECHO_N "(cached) $ECHO_C" >&6 9891else 9892 cat >conftest.$ac_ext <<_ACEOF 9893#line 9893 "configure" 9894#include "confdefs.h" 9895/* System header to define __stub macros and hopefully few prototypes, 9896 which can conflict with char $ac_func (); below. */ 9897#include <assert.h> 9898/* Override any gcc2 internal prototype to avoid an error. */ 9899#ifdef __cplusplus 9900extern "C" 9901#endif 9902/* We use char because int might match the return type of a gcc2 9903 builtin and then its argument prototype would still apply. */ 9904char $ac_func (); 9905char (*f) (); 9906 9907int 9908main () 9909{ 9910/* The GNU C library defines this for functions which it implements 9911 to always fail with ENOSYS. Some functions are actually named 9912 something starting with __ and the normal name is an alias. */ 9913#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9914choke me 9915#else 9916f = $ac_func; 9917#endif 9918 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923rm -f conftest.$ac_objext conftest$ac_exeext 9924if { (eval echo "$as_me:9924: \"$ac_link\"") >&5 9925 (eval $ac_link) 2>&5 9926 ac_status=$? 9927 echo "$as_me:9927: \$? = $ac_status" >&5 9928 (exit $ac_status); } && 9929 { ac_try='test -s conftest$ac_exeext' 9930 { (eval echo "$as_me:9930: \"$ac_try\"") >&5 9931 (eval $ac_try) 2>&5 9932 ac_status=$? 9933 echo "$as_me:9933: \$? = $ac_status" >&5 9934 (exit $ac_status); }; }; then 9935 eval "$ac_ac_var=yes" 9936else 9937 echo "$as_me: failed program was:" >&5 9938cat conftest.$ac_ext >&5 9939eval "$ac_ac_var=no" 9940fi 9941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9942fi 9943echo "$as_me:9943: result: `eval echo '${'$ac_ac_var'}'`" >&5 9944echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9945if test `eval echo '${'$ac_ac_var'}'` = yes; then 9946 cat >>confdefs.h <<EOF 9947#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9948EOF 9949 9950fi 9951done 9952 9953for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl 9954do 9955ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9956echo "$as_me:9956: checking for $ac_func" >&5 9957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9958if eval "test \"\${$ac_ac_var+set}\" = set"; then 9959 echo $ECHO_N "(cached) $ECHO_C" >&6 9960else 9961 cat >conftest.$ac_ext <<_ACEOF 9962#line 9962 "configure" 9963#include "confdefs.h" 9964/* System header to define __stub macros and hopefully few prototypes, 9965 which can conflict with char $ac_func (); below. */ 9966#include <assert.h> 9967/* Override any gcc2 internal prototype to avoid an error. */ 9968#ifdef __cplusplus 9969extern "C" 9970#endif 9971/* We use char because int might match the return type of a gcc2 9972 builtin and then its argument prototype would still apply. */ 9973char $ac_func (); 9974char (*f) (); 9975 9976int 9977main () 9978{ 9979/* The GNU C library defines this for functions which it implements 9980 to always fail with ENOSYS. Some functions are actually named 9981 something starting with __ and the normal name is an alias. */ 9982#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9983choke me 9984#else 9985f = $ac_func; 9986#endif 9987 9988 ; 9989 return 0; 9990} 9991_ACEOF 9992rm -f conftest.$ac_objext conftest$ac_exeext 9993if { (eval echo "$as_me:9993: \"$ac_link\"") >&5 9994 (eval $ac_link) 2>&5 9995 ac_status=$? 9996 echo "$as_me:9996: \$? = $ac_status" >&5 9997 (exit $ac_status); } && 9998 { ac_try='test -s conftest$ac_exeext' 9999 { (eval echo "$as_me:9999: \"$ac_try\"") >&5 10000 (eval $ac_try) 2>&5 10001 ac_status=$? 10002 echo "$as_me:10002: \$? = $ac_status" >&5 10003 (exit $ac_status); }; }; then 10004 eval "$ac_ac_var=yes" 10005else 10006 echo "$as_me: failed program was:" >&5 10007cat conftest.$ac_ext >&5 10008eval "$ac_ac_var=no" 10009fi 10010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10011fi 10012echo "$as_me:10012: result: `eval echo '${'$ac_ac_var'}'`" >&5 10013echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 10014if test `eval echo '${'$ac_ac_var'}'` = yes; then 10015 cat >>confdefs.h <<EOF 10016#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 10017EOF 10018 10019fi 10020done 10021 10022for ac_func in snprintf strdup strerror 10023do 10024ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 10025echo "$as_me:10025: checking for $ac_func" >&5 10026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10027if eval "test \"\${$ac_ac_var+set}\" = set"; then 10028 echo $ECHO_N "(cached) $ECHO_C" >&6 10029else 10030 cat >conftest.$ac_ext <<_ACEOF 10031#line 10031 "configure" 10032#include "confdefs.h" 10033/* System header to define __stub macros and hopefully few prototypes, 10034 which can conflict with char $ac_func (); below. */ 10035#include <assert.h> 10036/* Override any gcc2 internal prototype to avoid an error. */ 10037#ifdef __cplusplus 10038extern "C" 10039#endif 10040/* We use char because int might match the return type of a gcc2 10041 builtin and then its argument prototype would still apply. */ 10042char $ac_func (); 10043char (*f) (); 10044 10045int 10046main () 10047{ 10048/* The GNU C library defines this for functions which it implements 10049 to always fail with ENOSYS. Some functions are actually named 10050 something starting with __ and the normal name is an alias. */ 10051#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10052choke me 10053#else 10054f = $ac_func; 10055#endif 10056 10057 ; 10058 return 0; 10059} 10060_ACEOF 10061rm -f conftest.$ac_objext conftest$ac_exeext 10062if { (eval echo "$as_me:10062: \"$ac_link\"") >&5 10063 (eval $ac_link) 2>&5 10064 ac_status=$? 10065 echo "$as_me:10065: \$? = $ac_status" >&5 10066 (exit $ac_status); } && 10067 { ac_try='test -s conftest$ac_exeext' 10068 { (eval echo "$as_me:10068: \"$ac_try\"") >&5 10069 (eval $ac_try) 2>&5 10070 ac_status=$? 10071 echo "$as_me:10071: \$? = $ac_status" >&5 10072 (exit $ac_status); }; }; then 10073 eval "$ac_ac_var=yes" 10074else 10075 echo "$as_me: failed program was:" >&5 10076cat conftest.$ac_ext >&5 10077eval "$ac_ac_var=no" 10078fi 10079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10080fi 10081echo "$as_me:10081: result: `eval echo '${'$ac_ac_var'}'`" >&5 10082echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 10083if test `eval echo '${'$ac_ac_var'}'` = yes; then 10084 cat >>confdefs.h <<EOF 10085#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 10086EOF 10087 10088else 10089 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10090fi 10091done 10092 10093case "$target" in 10094 *-*-aix4*) 10095 # Just stubs. Idiots. 10096 ;; 10097 *-*-netbsd*) 10098 # Just stubs. Idiots. 10099 ;; 10100 *-*-openbsd*) 10101 # Just stubs. Idiots. 10102 ;; 10103 *) 10104 10105for ac_func in timer_create timer_settime 10106do 10107ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 10108echo "$as_me:10108: checking for $ac_func" >&5 10109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10110if eval "test \"\${$ac_ac_var+set}\" = set"; then 10111 echo $ECHO_N "(cached) $ECHO_C" >&6 10112else 10113 cat >conftest.$ac_ext <<_ACEOF 10114#line 10114 "configure" 10115#include "confdefs.h" 10116/* System header to define __stub macros and hopefully few prototypes, 10117 which can conflict with char $ac_func (); below. */ 10118#include <assert.h> 10119/* Override any gcc2 internal prototype to avoid an error. */ 10120#ifdef __cplusplus 10121extern "C" 10122#endif 10123/* We use char because int might match the return type of a gcc2 10124 builtin and then its argument prototype would still apply. */ 10125char $ac_func (); 10126char (*f) (); 10127 10128int 10129main () 10130{ 10131/* The GNU C library defines this for functions which it implements 10132 to always fail with ENOSYS. Some functions are actually named 10133 something starting with __ and the normal name is an alias. */ 10134#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10135choke me 10136#else 10137f = $ac_func; 10138#endif 10139 10140 ; 10141 return 0; 10142} 10143_ACEOF 10144rm -f conftest.$ac_objext conftest$ac_exeext 10145if { (eval echo "$as_me:10145: \"$ac_link\"") >&5 10146 (eval $ac_link) 2>&5 10147 ac_status=$? 10148 echo "$as_me:10148: \$? = $ac_status" >&5 10149 (exit $ac_status); } && 10150 { ac_try='test -s conftest$ac_exeext' 10151 { (eval echo "$as_me:10151: \"$ac_try\"") >&5 10152 (eval $ac_try) 2>&5 10153 ac_status=$? 10154 echo "$as_me:10154: \$? = $ac_status" >&5 10155 (exit $ac_status); }; }; then 10156 eval "$ac_ac_var=yes" 10157else 10158 echo "$as_me: failed program was:" >&5 10159cat conftest.$ac_ext >&5 10160eval "$ac_ac_var=no" 10161fi 10162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10163fi 10164echo "$as_me:10164: result: `eval echo '${'$ac_ac_var'}'`" >&5 10165echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 10166if test `eval echo '${'$ac_ac_var'}'` = yes; then 10167 cat >>confdefs.h <<EOF 10168#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 10169EOF 10170 10171fi 10172done 10173 10174 ;; 10175esac 10176case "$target" in 10177 *-pc-cygwin*) 10178 # I have no idea... 10179 ;; 10180 *) 10181for ac_func in umask 10182do 10183ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 10184echo "$as_me:10184: checking for $ac_func" >&5 10185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10186if eval "test \"\${$ac_ac_var+set}\" = set"; then 10187 echo $ECHO_N "(cached) $ECHO_C" >&6 10188else 10189 cat >conftest.$ac_ext <<_ACEOF 10190#line 10190 "configure" 10191#include "confdefs.h" 10192/* System header to define __stub macros and hopefully few prototypes, 10193 which can conflict with char $ac_func (); below. */ 10194#include <assert.h> 10195/* Override any gcc2 internal prototype to avoid an error. */ 10196#ifdef __cplusplus 10197extern "C" 10198#endif 10199/* We use char because int might match the return type of a gcc2 10200 builtin and then its argument prototype would still apply. */ 10201char $ac_func (); 10202char (*f) (); 10203 10204int 10205main () 10206{ 10207/* The GNU C library defines this for functions which it implements 10208 to always fail with ENOSYS. Some functions are actually named 10209 something starting with __ and the normal name is an alias. */ 10210#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10211choke me 10212#else 10213f = $ac_func; 10214#endif 10215 10216 ; 10217 return 0; 10218} 10219_ACEOF 10220rm -f conftest.$ac_objext conftest$ac_exeext 10221if { (eval echo "$as_me:10221: \"$ac_link\"") >&5 10222 (eval $ac_link) 2>&5 10223 ac_status=$? 10224 echo "$as_me:10224: \$? = $ac_status" >&5 10225 (exit $ac_status); } && 10226 { ac_try='test -s conftest$ac_exeext' 10227 { (eval echo "$as_me:10227: \"$ac_try\"") >&5 10228 (eval $ac_try) 2>&5 10229 ac_status=$? 10230 echo "$as_me:10230: \$? = $ac_status" >&5 10231 (exit $ac_status); }; }; then 10232 eval "$ac_ac_var=yes" 10233else 10234 echo "$as_me: failed program was:" >&5 10235cat conftest.$ac_ext >&5 10236eval "$ac_ac_var=no" 10237fi 10238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10239fi 10240echo "$as_me:10240: result: `eval echo '${'$ac_ac_var'}'`" >&5 10241echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 10242if test `eval echo '${'$ac_ac_var'}'` = yes; then 10243 cat >>confdefs.h <<EOF 10244#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 10245EOF 10246 10247fi 10248done 10249 10250 ;; 10251esac 10252 10253for ac_func in uname updwtmp updwtmpx vsprintf 10254do 10255ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 10256echo "$as_me:10256: checking for $ac_func" >&5 10257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10258if eval "test \"\${$ac_ac_var+set}\" = set"; then 10259 echo $ECHO_N "(cached) $ECHO_C" >&6 10260else 10261 cat >conftest.$ac_ext <<_ACEOF 10262#line 10262 "configure" 10263#include "confdefs.h" 10264/* System header to define __stub macros and hopefully few prototypes, 10265 which can conflict with char $ac_func (); below. */ 10266#include <assert.h> 10267/* Override any gcc2 internal prototype to avoid an error. */ 10268#ifdef __cplusplus 10269extern "C" 10270#endif 10271/* We use char because int might match the return type of a gcc2 10272 builtin and then its argument prototype would still apply. */ 10273char $ac_func (); 10274char (*f) (); 10275 10276int 10277main () 10278{ 10279/* The GNU C library defines this for functions which it implements 10280 to always fail with ENOSYS. Some functions are actually named 10281 something starting with __ and the normal name is an alias. */ 10282#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10283choke me 10284#else 10285f = $ac_func; 10286#endif 10287 10288 ; 10289 return 0; 10290} 10291_ACEOF 10292rm -f conftest.$ac_objext conftest$ac_exeext 10293if { (eval echo "$as_me:10293: \"$ac_link\"") >&5 10294 (eval $ac_link) 2>&5 10295 ac_status=$? 10296 echo "$as_me:10296: \$? = $ac_status" >&5 10297 (exit $ac_status); } && 10298 { ac_try='test -s conftest$ac_exeext' 10299 { (eval echo "$as_me:10299: \"$ac_try\"") >&5 10300 (eval $ac_try) 2>&5 10301 ac_status=$? 10302 echo "$as_me:10302: \$? = $ac_status" >&5 10303 (exit $ac_status); }; }; then 10304 eval "$ac_ac_var=yes" 10305else 10306 echo "$as_me: failed program was:" >&5 10307cat conftest.$ac_ext >&5 10308eval "$ac_ac_var=no" 10309fi 10310rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10311fi 10312echo "$as_me:10312: result: `eval echo '${'$ac_ac_var'}'`" >&5 10313echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 10314if test `eval echo '${'$ac_ac_var'}'` = yes; then 10315 cat >>confdefs.h <<EOF 10316#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 10317EOF 10318 10319fi 10320done 10321 10322echo "$as_me:10322: checking number of arguments to gettimeofday()" >&5 10323echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6 10324if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then 10325 echo $ECHO_N "(cached) $ECHO_C" >&6 10326else 10327 cat >conftest.$ac_ext <<_ACEOF 10328#line 10328 "configure" 10329#include "confdefs.h" 10330#include <sys/time.h> 10331int 10332main () 10333{ 10334 10335gettimeofday((struct timeval*)0,(struct timezone*)0); 10336settimeofday((struct timeval*)0,(struct timezone*)0); 10337 10338 ; 10339 return 0; 10340} 10341_ACEOF 10342rm -f conftest.$ac_objext 10343if { (eval echo "$as_me:10343: \"$ac_compile\"") >&5 10344 (eval $ac_compile) 2>&5 10345 ac_status=$? 10346 echo "$as_me:10346: \$? = $ac_status" >&5 10347 (exit $ac_status); } && 10348 { ac_try='test -s conftest.$ac_objext' 10349 { (eval echo "$as_me:10349: \"$ac_try\"") >&5 10350 (eval $ac_try) 2>&5 10351 ac_status=$? 10352 echo "$as_me:10352: \$? = $ac_status" >&5 10353 (exit $ac_status); }; }; then 10354 ac_cv_func_Xettimeofday_nargs=2 10355else 10356 echo "$as_me: failed program was:" >&5 10357cat conftest.$ac_ext >&5 10358ac_cv_func_Xettimeofday_nargs=1 10359fi 10360rm -f conftest.$ac_objext conftest.$ac_ext 10361 10362fi 10363echo "$as_me:10363: result: $ac_cv_func_Xettimeofday_nargs" >&5 10364echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6 10365if test $ac_cv_func_Xettimeofday_nargs = 1; then 10366 cat >>confdefs.h <<\EOF 10367#define SYSV_TIMEOFDAY 1 10368EOF 10369 10370fi 10371 10372echo "$as_me:10372: checking number of arguments taken by setpgrp()" >&5 10373echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6 10374if test "${ac_cv_func_setpgrp_nargs+set}" = set; then 10375 echo $ECHO_N "(cached) $ECHO_C" >&6 10376else 10377 cat >conftest.$ac_ext <<_ACEOF 10378#line 10378 "configure" 10379#include "confdefs.h" 10380 10381#ifdef HAVE_SYS_TYPES_H 10382# include <sys/types.h> 10383#endif 10384#ifdef HAVE_UNISTD_H 10385# include <unistd.h> 10386#endif 10387 10388int 10389main () 10390{ 10391setpgrp(0,0); 10392 ; 10393 return 0; 10394} 10395_ACEOF 10396rm -f conftest.$ac_objext 10397if { (eval echo "$as_me:10397: \"$ac_compile\"") >&5 10398 (eval $ac_compile) 2>&5 10399 ac_status=$? 10400 echo "$as_me:10400: \$? = $ac_status" >&5 10401 (exit $ac_status); } && 10402 { ac_try='test -s conftest.$ac_objext' 10403 { (eval echo "$as_me:10403: \"$ac_try\"") >&5 10404 (eval $ac_try) 2>&5 10405 ac_status=$? 10406 echo "$as_me:10406: \$? = $ac_status" >&5 10407 (exit $ac_status); }; }; then 10408 ac_cv_func_setpgrp_nargs=2 10409else 10410 echo "$as_me: failed program was:" >&5 10411cat conftest.$ac_ext >&5 10412ac_cv_func_setpgrp_nargs=0 10413fi 10414rm -f conftest.$ac_objext conftest.$ac_ext 10415 10416fi 10417echo "$as_me:10417: result: $ac_cv_func_setpgrp_nargs" >&5 10418echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6 10419if test $ac_cv_func_setpgrp_nargs = 0; then 10420 cat >>confdefs.h <<\EOF 10421#define HAVE_SETPGRP_0 1 10422EOF 10423 10424fi 10425 10426save_CFLAGS=$CFLAGS 10427CFLAGS="$CFLAGS -I$srcdir/include" 10428 10429echo "$as_me:10429: checking argument pointer type of qsort()'s compare function and base" >&5 10430echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6 10431if test "${ac_cv_func_qsort_argtype+set}" = set; then 10432 echo $ECHO_N "(cached) $ECHO_C" >&6 10433else 10434 cat >conftest.$ac_ext <<_ACEOF 10435#line 10435 "configure" 10436#include "confdefs.h" 10437 10438#include "l_stdlib.h" 10439 10440#ifdef HAVE_PROTOTYPES 10441#define P(x) x 10442#else 10443#define P(x) () 10444#endif 10445 10446extern void *base; 10447extern sortfunc P((const void *, const void *)); 10448int sortfunc(a, b) 10449 const void *a; 10450 const void *b; { return 0; } 10451 10452int 10453main () 10454{ 10455 10456qsort(base, 2, sizeof(char *), sortfunc); 10457 10458 ; 10459 return 0; 10460} 10461_ACEOF 10462rm -f conftest.$ac_objext 10463if { (eval echo "$as_me:10463: \"$ac_compile\"") >&5 10464 (eval $ac_compile) 2>&5 10465 ac_status=$? 10466 echo "$as_me:10466: \$? = $ac_status" >&5 10467 (exit $ac_status); } && 10468 { ac_try='test -s conftest.$ac_objext' 10469 { (eval echo "$as_me:10469: \"$ac_try\"") >&5 10470 (eval $ac_try) 2>&5 10471 ac_status=$? 10472 echo "$as_me:10472: \$? = $ac_status" >&5 10473 (exit $ac_status); }; }; then 10474 ac_cv_func_qsort_argtype=void 10475else 10476 echo "$as_me: failed program was:" >&5 10477cat conftest.$ac_ext >&5 10478ac_cv_func_qsort_argtype=char 10479fi 10480rm -f conftest.$ac_objext conftest.$ac_ext 10481 10482fi 10483echo "$as_me:10483: result: $ac_cv_func_qsort_argtype" >&5 10484echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6 10485case "$ac_cv_func_qsort_argtype" in 10486 void) 10487 cat >>confdefs.h <<\EOF 10488#define QSORT_USES_VOID_P 1 10489EOF 10490 10491 ;; 10492esac 10493 10494CFLAGS=$save_CFLAGS 10495 10496echo "$as_me:10496: checking if we need to declare 'errno'" >&5 10497echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6 10498if test "${ac_cv_decl_errno+set}" = set; then 10499 echo $ECHO_N "(cached) $ECHO_C" >&6 10500else 10501 cat >conftest.$ac_ext <<_ACEOF 10502#line 10502 "configure" 10503#include "confdefs.h" 10504#ifdef HAVE_ERRNO_H 10505#include <errno.h> 10506#endif 10507int 10508main () 10509{ 10510errno = 0; 10511 ; 10512 return 0; 10513} 10514_ACEOF 10515rm -f conftest.$ac_objext 10516if { (eval echo "$as_me:10516: \"$ac_compile\"") >&5 10517 (eval $ac_compile) 2>&5 10518 ac_status=$? 10519 echo "$as_me:10519: \$? = $ac_status" >&5 10520 (exit $ac_status); } && 10521 { ac_try='test -s conftest.$ac_objext' 10522 { (eval echo "$as_me:10522: \"$ac_try\"") >&5 10523 (eval $ac_try) 2>&5 10524 ac_status=$? 10525 echo "$as_me:10525: \$? = $ac_status" >&5 10526 (exit $ac_status); }; }; then 10527 ac_cv_decl_errno=no 10528else 10529 echo "$as_me: failed program was:" >&5 10530cat conftest.$ac_ext >&5 10531ac_cv_decl_errno=yes 10532fi 10533rm -f conftest.$ac_objext conftest.$ac_ext 10534fi 10535echo "$as_me:10535: result: $ac_cv_decl_errno" >&5 10536echo "${ECHO_T}$ac_cv_decl_errno" >&6 10537case "$ac_cv_decl_errno" in 10538 yes) cat >>confdefs.h <<\EOF 10539#define DECL_ERRNO 1 10540EOF 10541 ;; 10542esac 10543 10544echo "$as_me:10544: checking if we may declare 'h_errno'" >&5 10545echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6 10546if test "${ac_cv_decl_h_errno+set}" = set; then 10547 echo $ECHO_N "(cached) $ECHO_C" >&6 10548else 10549 cat >conftest.$ac_ext <<_ACEOF 10550#line 10550 "configure" 10551#include "confdefs.h" 10552#include <sys/types.h> 10553#ifdef HAVE_NETINET_IN_H 10554#include <netinet/in.h> 10555#endif 10556#ifdef HAVE_ARPA_NAMESER_H 10557#include <arpa/nameser.h> 10558#endif 10559#ifdef HAVE_NETDB_H 10560#include <netdb.h> 10561#endif 10562#ifdef HAVE_RESOLV_H 10563#include <resolv.h> 10564#endif 10565int 10566main () 10567{ 10568extern int h_errno; 10569 ; 10570 return 0; 10571} 10572_ACEOF 10573rm -f conftest.$ac_objext 10574if { (eval echo "$as_me:10574: \"$ac_compile\"") >&5 10575 (eval $ac_compile) 2>&5 10576 ac_status=$? 10577 echo "$as_me:10577: \$? = $ac_status" >&5 10578 (exit $ac_status); } && 10579 { ac_try='test -s conftest.$ac_objext' 10580 { (eval echo "$as_me:10580: \"$ac_try\"") >&5 10581 (eval $ac_try) 2>&5 10582 ac_status=$? 10583 echo "$as_me:10583: \$? = $ac_status" >&5 10584 (exit $ac_status); }; }; then 10585 ac_cv_decl_h_errno=yes 10586else 10587 echo "$as_me: failed program was:" >&5 10588cat conftest.$ac_ext >&5 10589ac_cv_decl_h_errno=no 10590fi 10591rm -f conftest.$ac_objext conftest.$ac_ext 10592fi 10593echo "$as_me:10593: result: $ac_cv_decl_h_errno" >&5 10594echo "${ECHO_T}$ac_cv_decl_h_errno" >&6 10595case "$ac_cv_decl_h_errno" in 10596 yes) cat >>confdefs.h <<\EOF 10597#define DECL_H_ERRNO 1 10598EOF 10599 ;; 10600esac 10601 10602echo "$as_me:10602: checking if declaring 'char *sys_errlist[]' is ok" >&5 10603echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6 10604if test "${ac_cv_decl_sys_errlist+set}" = set; then 10605 echo $ECHO_N "(cached) $ECHO_C" >&6 10606else 10607 cat >conftest.$ac_ext <<_ACEOF 10608#line 10608 "configure" 10609#include "confdefs.h" 10610#include <stdio.h> 10611#ifdef HAVE_ERRNO_H 10612#include <errno.h> 10613#endif 10614int 10615main () 10616{ 10617extern char *sys_errlist[]; 10618 10619 ; 10620 return 0; 10621} 10622_ACEOF 10623rm -f conftest.$ac_objext 10624if { (eval echo "$as_me:10624: \"$ac_compile\"") >&5 10625 (eval $ac_compile) 2>&5 10626 ac_status=$? 10627 echo "$as_me:10627: \$? = $ac_status" >&5 10628 (exit $ac_status); } && 10629 { ac_try='test -s conftest.$ac_objext' 10630 { (eval echo "$as_me:10630: \"$ac_try\"") >&5 10631 (eval $ac_try) 2>&5 10632 ac_status=$? 10633 echo "$as_me:10633: \$? = $ac_status" >&5 10634 (exit $ac_status); }; }; then 10635 ac_cv_decl_sys_errlist=yes 10636else 10637 echo "$as_me: failed program was:" >&5 10638cat conftest.$ac_ext >&5 10639ac_cv_decl_sys_errlist=no 10640fi 10641rm -f conftest.$ac_objext conftest.$ac_ext 10642fi 10643echo "$as_me:10643: result: $ac_cv_decl_sys_errlist" >&5 10644echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6 10645case "$ac_cv_decl_sys_errlist" in 10646 yes) cat >>confdefs.h <<\EOF 10647#define CHAR_SYS_ERRLIST 1 10648EOF 10649 ;; 10650esac 10651 10652echo "$as_me:10652: checking if declaring 'syscall()' is ok" >&5 10653echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6 10654if test "${ac_cv_decl_syscall+set}" = set; then 10655 echo $ECHO_N "(cached) $ECHO_C" >&6 10656else 10657 cat >conftest.$ac_ext <<_ACEOF 10658#line 10658 "configure" 10659#include "confdefs.h" 10660 10661#ifdef HAVE_SYS_TYPES_H 10662# include <sys/types.h> 10663#endif 10664#ifdef HAVE_UNISTD_H 10665# include <unistd.h> 10666#endif 10667#ifdef HAVE_PROTOTYPES 10668#define P(x) x 10669#else 10670#define P(x) () 10671#endif 10672 10673int 10674main () 10675{ 10676extern int syscall P((int, ...)); 10677 ; 10678 return 0; 10679} 10680_ACEOF 10681rm -f conftest.$ac_objext 10682if { (eval echo "$as_me:10682: \"$ac_compile\"") >&5 10683 (eval $ac_compile) 2>&5 10684 ac_status=$? 10685 echo "$as_me:10685: \$? = $ac_status" >&5 10686 (exit $ac_status); } && 10687 { ac_try='test -s conftest.$ac_objext' 10688 { (eval echo "$as_me:10688: \"$ac_try\"") >&5 10689 (eval $ac_try) 2>&5 10690 ac_status=$? 10691 echo "$as_me:10691: \$? = $ac_status" >&5 10692 (exit $ac_status); }; }; then 10693 ac_cv_decl_syscall=yes 10694else 10695 echo "$as_me: failed program was:" >&5 10696cat conftest.$ac_ext >&5 10697ac_cv_decl_syscall=no 10698fi 10699rm -f conftest.$ac_objext conftest.$ac_ext 10700fi 10701echo "$as_me:10701: result: $ac_cv_decl_syscall" >&5 10702echo "${ECHO_T}$ac_cv_decl_syscall" >&6 10703case "$ac_cv_decl_syscall" in 10704 yes) cat >>confdefs.h <<\EOF 10705#define DECL_SYSCALL 1 10706EOF 10707 ;; 10708esac 10709 10710case "$target" in 10711 *-*-aix4.3.*) 10712 cat >>confdefs.h <<\EOF 10713#define DECL_HSTRERROR_0 1 10714EOF 10715 # Needed for XLC under AIX 4.3.2 10716 ;; 10717 *-*-osf[45]*) 10718 cat >>confdefs.h <<\EOF 10719#define DECL_PLOCK_0 1 10720EOF 10721 10722 cat >>confdefs.h <<\EOF 10723#define DECL_STIME_1 1 10724EOF 10725 10726 ;; 10727 *-*-riscos4*) 10728 cat >>confdefs.h <<\EOF 10729#define DECL_ADJTIME_0 1 10730EOF 10731 10732 cat >>confdefs.h <<\EOF 10733#define DECL_BZERO_0 1 10734EOF 10735 10736 cat >>confdefs.h <<\EOF 10737#define DECL_IOCTL_0 1 10738EOF 10739 10740 cat >>confdefs.h <<\EOF 10741#define DECL_IPC_0 1 10742EOF 10743 10744 cat >>confdefs.h <<\EOF 10745#define DECL_MEMMOVE_0 1 10746EOF 10747 10748 cat >>confdefs.h <<\EOF 10749#define DECL_MKTEMP_0 1 10750EOF 10751 10752 cat >>confdefs.h <<\EOF 10753#define DECL_RENAME_0 1 10754EOF 10755 10756 cat >>confdefs.h <<\EOF 10757#define DECL_SELECT_0 1 10758EOF 10759 10760 cat >>confdefs.h <<\EOF 10761#define DECL_SETITIMER_0 1 10762EOF 10763 10764 cat >>confdefs.h <<\EOF 10765#define DECL_SETPRIORITY_0 1 10766EOF 10767 10768 cat >>confdefs.h <<\EOF 10769#define DECL_STDIO_0 1 10770EOF 10771 10772 cat >>confdefs.h <<\EOF 10773#define DECL_STRTOL_0 1 10774EOF 10775 10776 cat >>confdefs.h <<\EOF 10777#define DECL_SYSLOG_0 1 10778EOF 10779 10780 cat >>confdefs.h <<\EOF 10781#define DECL_TIME_0 1 10782EOF 10783 10784 cat >>confdefs.h <<\EOF 10785#define DECL_TIMEOFDAY_0 1 10786EOF 10787 10788 cat >>confdefs.h <<\EOF 10789#define DECL_TOLOWER_0 1 10790EOF 10791 10792 ;; 10793 *-*-solaris2*) 10794 cat >>confdefs.h <<\EOF 10795#define DECL_MKSTEMP_0 1 10796EOF 10797 10798 cat >>confdefs.h <<\EOF 10799#define DECL_SETPRIORITY_1 1 10800EOF 10801 10802 case "$target" in 10803 *-*-solaris2.4) 10804 cat >>confdefs.h <<\EOF 10805#define DECL_TIMEOFDAY_0 1 10806EOF 10807 10808 ;; 10809 esac 10810 ;; 10811 *-*-sunos4*) 10812 cat >>confdefs.h <<\EOF 10813#define DECL_ADJTIME_0 1 10814EOF 10815 10816 cat >>confdefs.h <<\EOF 10817#define DECL_BCOPY_0 1 10818EOF 10819 10820 cat >>confdefs.h <<\EOF 10821#define DECL_BZERO_0 1 10822EOF 10823 10824 cat >>confdefs.h <<\EOF 10825#define DECL_IOCTL_0 1 10826EOF 10827 10828 cat >>confdefs.h <<\EOF 10829#define DECL_IPC_0 1 10830EOF 10831 10832 cat >>confdefs.h <<\EOF 10833#define DECL_MEMMOVE_0 1 10834EOF 10835 10836 cat >>confdefs.h <<\EOF 10837#define DECL_MKTEMP_0 1 10838EOF 10839 10840 cat >>confdefs.h <<\EOF 10841#define DECL_MKSTEMP_0 1 10842EOF 10843 10844 cat >>confdefs.h <<\EOF 10845#define DECL_MRAND48_0 1 10846EOF 10847 10848 cat >>confdefs.h <<\EOF 10849#define DECL_RENAME_0 1 10850EOF 10851 10852 cat >>confdefs.h <<\EOF 10853#define DECL_SELECT_0 1 10854EOF 10855 10856 cat >>confdefs.h <<\EOF 10857#define DECL_SETITIMER_0 1 10858EOF 10859 10860 cat >>confdefs.h <<\EOF 10861#define DECL_SETPRIORITY_0 1 10862EOF 10863 10864 cat >>confdefs.h <<\EOF 10865#define DECL_SIGVEC_0 1 10866EOF 10867 10868 cat >>confdefs.h <<\EOF 10869#define DECL_SRAND48_0 1 10870EOF 10871 10872 case "`basename $ac_cv_prog_CC`" in 10873 acc*) ;; 10874 *) cat >>confdefs.h <<\EOF 10875#define DECL_STDIO_0 1 10876EOF 10877 10878 ;; 10879 esac 10880 cat >>confdefs.h <<\EOF 10881#define DECL_STRTOL_0 1 10882EOF 10883 10884 cat >>confdefs.h <<\EOF 10885#define DECL_SYSLOG_0 1 10886EOF 10887 10888 cat >>confdefs.h <<\EOF 10889#define DECL_TIME_0 1 10890EOF 10891 10892 cat >>confdefs.h <<\EOF 10893#define DECL_TIMEOFDAY_0 1 10894EOF 10895 10896 cat >>confdefs.h <<\EOF 10897#define DECL_TOLOWER_0 1 10898EOF 10899 10900 cat >>confdefs.h <<\EOF 10901#define DECL_TOUPPER_0 1 10902EOF 10903 10904 cat >>confdefs.h <<\EOF 10905#define DECL_STRERROR_0 1 10906EOF 10907 10908 ;; 10909 *-*-ultrix4*) 10910 cat >>confdefs.h <<\EOF 10911#define DECL_ADJTIME_0 1 10912EOF 10913 10914 cat >>confdefs.h <<\EOF 10915#define DECL_BZERO_0 1 10916EOF 10917 10918 cat >>confdefs.h <<\EOF 10919#define DECL_CFSETISPEED_0 1 10920EOF 10921 10922 cat >>confdefs.h <<\EOF 10923#define DECL_IOCTL_0 1 10924EOF 10925 10926 cat >>confdefs.h <<\EOF 10927#define DECL_IPC_0 1 10928EOF 10929 10930 cat >>confdefs.h <<\EOF 10931#define DECL_MKTEMP_0 1 10932EOF 10933 10934 cat >>confdefs.h <<\EOF 10935#define DECL_MRAND48_0 1 10936EOF 10937 10938 cat >>confdefs.h <<\EOF 10939#define DECL_NLIST_0 1 10940EOF 10941 10942 cat >>confdefs.h <<\EOF 10943#define DECL_PLOCK_0 1 10944EOF 10945 10946 cat >>confdefs.h <<\EOF 10947#define DECL_SELECT_0 1 10948EOF 10949 10950 cat >>confdefs.h <<\EOF 10951#define DECL_SETITIMER_0 1 10952EOF 10953 10954 cat >>confdefs.h <<\EOF 10955#define DECL_SETPRIORITY_0 1 10956EOF 10957 10958 cat >>confdefs.h <<\EOF 10959#define DECL_SRAND48_0 1 10960EOF 10961 10962 cat >>confdefs.h <<\EOF 10963#define DECL_STIME_0 1 10964EOF 10965 10966 cat >>confdefs.h <<\EOF 10967#define DECL_SYSLOG_0 1 10968EOF 10969 10970 cat >>confdefs.h <<\EOF 10971#define DECL_TIMEOFDAY_0 1 10972EOF 10973 10974 ;; 10975esac 10976 10977case "$target" in 10978 *-*-sco3.2*) 10979 cat >>confdefs.h <<\EOF 10980#define TERMIOS_NEEDS__SVID3 1 10981EOF 10982 10983 ;; 10984esac 10985 10986echo "$as_me:10986: checking if we should use a streams device for ifconfig" >&5 10987echo $ECHO_N "checking if we should use a streams device for ifconfig... $ECHO_C" >&6 10988if test "${ac_cv_var_use_streams_device_for_ifconfig+set}" = set; then 10989 echo $ECHO_N "(cached) $ECHO_C" >&6 10990else 10991 ac_cv_var_use_streams_device_for_ifconfig=no 10992fi 10993echo "$as_me:10993: result: $ac_cv_var_use_streams_device_for_ifconfig" >&5 10994echo "${ECHO_T}$ac_cv_var_use_streams_device_for_ifconfig" >&6 10995 10996echo "$as_me:10996: checking if we need extra room for SO_RCVBUF" >&5 10997echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6 10998if test "${ac_cv_var_rcvbuf_slop+set}" = set; then 10999 echo $ECHO_N "(cached) $ECHO_C" >&6 11000else 11001 ans=no 11002case "$target" in 11003 *-*-hpux[567]*) 11004 ans=yes 11005 ;; 11006esac 11007ac_cv_var_rcvbuf_slop=$ans 11008fi 11009echo "$as_me:11009: result: $ac_cv_var_rcvbuf_slop" >&5 11010echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6 11011case "$ac_cv_var_rcvbuf_slop" in 11012 yes) cat >>confdefs.h <<\EOF 11013#define NEED_RCVBUF_SLOP 1 11014EOF 11015 ;; 11016esac 11017 11018echo "$as_me:11018: checking if we will open the broadcast socket" >&5 11019echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6 11020if test "${ac_cv_var_open_bcast_socket+set}" = set; then 11021 echo $ECHO_N "(cached) $ECHO_C" >&6 11022else 11023 ans=yes 11024case "$target" in 11025 *-*-domainos) 11026 ans=no 11027 ;; 11028 *-*-linux*) 11029 ans=no 11030 ;; 11031esac 11032ac_cv_var_open_bcast_socket=$ans 11033fi 11034echo "$as_me:11034: result: $ac_cv_var_open_bcast_socket" >&5 11035echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6 11036case "$ac_cv_var_open_bcast_socket" in 11037 yes) cat >>confdefs.h <<\EOF 11038#define OPEN_BCAST_SOCKET 1 11039EOF 11040 ;; 11041esac 11042 11043echo "$as_me:11043: checking if we want the HPUX version of FindConfig()" >&5 11044echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6 11045if test "${ac_cv_var_hpux_findconfig+set}" = set; then 11046 echo $ECHO_N "(cached) $ECHO_C" >&6 11047else 11048 ans=no 11049case "$target" in 11050 *-*-hpux*) 11051 ans=yes 11052 ;; 11053esac 11054ac_cv_var_hpux_findconfig=$ans 11055fi 11056echo "$as_me:11056: result: $ac_cv_var_hpux_findconfig" >&5 11057echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6 11058case "$ac_cv_var_hpux_findconfig" in 11059 yes) cat >>confdefs.h <<\EOF 11060#define NEED_HPUX_FINDCONFIG 1 11061EOF 11062 ;; 11063esac 11064 11065echo "$as_me:11065: checking if process groups are set with -pid" >&5 11066echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6 11067if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then 11068 echo $ECHO_N "(cached) $ECHO_C" >&6 11069else 11070 case "$target" in 11071 *-*-hpux[567]*) 11072 ans=no 11073 ;; 11074 *-*-hpux*) 11075 ans=yes 11076 ;; 11077 *-*-linux*) 11078 ans=yes 11079 ;; 11080 *-*-sunos3*) 11081 ans=yes 11082 ;; 11083 *-*-ultrix2*) 11084 ans=yes 11085 ;; 11086 *) 11087 ans=no 11088 ;; 11089esac 11090ac_cv_arg_setpgrp_negpid=$ans 11091fi 11092echo "$as_me:11092: result: $ac_cv_arg_setpgrp_negpid" >&5 11093echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6 11094case "$ac_cv_arg_setpgrp_negpid" in 11095 yes) cat >>confdefs.h <<\EOF 11096#define UDP_BACKWARDS_SETOWN 1 11097EOF 11098 ;; 11099esac 11100 11101echo "$as_me:11101: checking if we need a ctty for F_SETOWN" >&5 11102echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6 11103if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then 11104 echo $ECHO_N "(cached) $ECHO_C" >&6 11105else 11106 case "$target" in 11107 *-*-bsdi23*) 11108 ans=yes 11109 ;; 11110 *-*-freebsd*) 11111 ans=yes 11112 ;; 11113 *-*-netbsd*) 11114 ans=yes 11115 ;; 11116 *-*-openbsd*) 11117 ans=yes 11118 ;; 11119 *-*-osf*) 11120 ans=yes 11121 ;; 11122 *) ans=no 11123 ;; 11124esac 11125ac_cv_func_ctty_for_f_setown=$ans 11126fi 11127echo "$as_me:11127: result: $ac_cv_func_ctty_for_f_setown" >&5 11128echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6 11129case "$ac_cv_func_ctty_for_f_setown" in 11130 yes) cat >>confdefs.h <<\EOF 11131#define USE_FSETOWNCTTY 1 11132EOF 11133 ;; 11134esac 11135 11136ntp_warning='GRONK' 11137echo "$as_me:11137: checking if we'll use clock_settime or settimeofday or stime" >&5 11138echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6 11139case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 11140 yes*) 11141 ntp_warning='' 11142 ans='clock_settime()' 11143 ;; 11144 noyes*) 11145 ntp_warning='But clock_settime() would be better (if we had it)' 11146 ans='settimeofday()' 11147 ;; 11148 nonoyes) 11149 ntp_warning='Which is the worst of the three' 11150 ans='stime()' 11151 ;; 11152 *) 11153 case "$host" in 11154 $target) ntp_warning='Which leaves us with nothing to use!' 11155 ans=none 11156 ;; 11157esac 11158esac 11159echo "$as_me:11159: result: $ans" >&5 11160echo "${ECHO_T}$ans" >&6 11161case "$ntp_warning" in 11162 '') ;; 11163 *) { echo "$as_me:11163: WARNING: *** $ntp_warning ***" >&5 11164echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 11165 ;; 11166esac 11167 11168echo "$as_me:11168: checking if we have a losing syscall()" >&5 11169echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6 11170if test "${ac_cv_var_syscall_bug+set}" = set; then 11171 echo $ECHO_N "(cached) $ECHO_C" >&6 11172else 11173 case "$target" in 11174 *-*-solaris2.4*) 11175 ans=yes 11176 ;; 11177 *) ans=no 11178 ;; 11179esac 11180ac_cv_var_syscall_bug=$ans 11181fi 11182echo "$as_me:11182: result: $ac_cv_var_syscall_bug" >&5 11183echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6 11184case "$ac_cv_var_syscall_bug" in 11185 yes) cat >>confdefs.h <<\EOF 11186#define SYSCALL_BUG 1 11187EOF 11188 ;; 11189esac 11190 11191echo "$as_me:11191: checking for Streams/TLI" >&5 11192echo $ECHO_N "checking for Streams/TLI... $ECHO_C" >&6 11193if test "${ac_cv_var_streams_tli+set}" = set; then 11194 echo $ECHO_N "(cached) $ECHO_C" >&6 11195else 11196 case "$ac_cv_header_sys_stropts_h" in 11197 yes) 11198 ans=no 11199 # There must be a better way... 11200 case "$target" in 11201 *-*-ptx*) 11202 ans=yes 11203 ;; 11204 esac 11205 ;; 11206 esac 11207 ac_cv_var_streams_tli=$ans 11208fi 11209echo "$as_me:11209: result: $ac_cv_var_streams_tli" >&5 11210echo "${ECHO_T}$ac_cv_var_streams_tli" >&6 11211case "$ac_cv_var_streams_tli" in 11212 yes) 11213 cat >>confdefs.h <<\EOF 11214#define STREAMS_TLI 1 11215EOF 11216 11217 ;; 11218esac 11219 11220echo "$as_me:11220: checking for SIGIO" >&5 11221echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6 11222if test "${ac_cv_hdr_def_sigio+set}" = set; then 11223 echo $ECHO_N "(cached) $ECHO_C" >&6 11224else 11225 cat >conftest.$ac_ext <<_ACEOF 11226#line 11226 "configure" 11227#include "confdefs.h" 11228#include <signal.h> 11229#ifdef SIGIO 11230 yes 11231#endif 11232 11233_ACEOF 11234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11235 egrep "yes" >/dev/null 2>&1; then 11236 ac_cv_hdr_def_sigio=yes 11237else 11238 ac_cv_hdr_def_sigio=no 11239fi 11240rm -f conftest* 11241 11242fi 11243echo "$as_me:11243: result: $ac_cv_hdr_def_sigio" >&5 11244echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6 11245 11246echo "$as_me:11246: checking if we want to use signalled IO" >&5 11247echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6 11248if test "${ac_cv_var_signalled_io+set}" = set; then 11249 echo $ECHO_N "(cached) $ECHO_C" >&6 11250else 11251 ans=no 11252case "$ac_cv_hdr_def_sigio" in 11253 yes) 11254 ans=yes 11255 case "$target" in 11256 alpha*-dec-osf4*|alpha*-dec-osf5*) 11257 ans=no 11258 ;; 11259 *-convex-*) 11260 ans=no 11261 ;; 11262 *-dec-*) 11263 ans=no 11264 ;; 11265 *-pc-cygwin*) 11266 ans=no 11267 ;; 11268 *-sni-sysv*) 11269 ans=no 11270 ;; 11271 *-univel-sysv*) 11272 ans=no 11273 ;; 11274 *-*-irix6*) 11275 ans=no 11276 ;; 11277 *-*-freebsd*) 11278 ans=no 11279 ;; 11280 *-*-linux*) 11281 ans=no 11282 ;; 11283 esac 11284 ;; 11285esac 11286ac_cv_var_signalled_io=$ans 11287fi 11288echo "$as_me:11288: result: $ac_cv_var_signalled_io" >&5 11289echo "${ECHO_T}$ac_cv_var_signalled_io" >&6 11290case "$ac_cv_var_signalled_io" in 11291 yes) cat >>confdefs.h <<\EOF 11292#define HAVE_SIGNALED_IO 1 11293EOF 11294 ;; 11295esac 11296 11297echo "$as_me:11297: checking for SIGPOLL" >&5 11298echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6 11299if test "${ac_cv_hdr_def_sigpoll+set}" = set; then 11300 echo $ECHO_N "(cached) $ECHO_C" >&6 11301else 11302 cat >conftest.$ac_ext <<_ACEOF 11303#line 11303 "configure" 11304#include "confdefs.h" 11305#include <signal.h> 11306#ifdef SIGPOLL 11307 yes 11308#endif 11309 11310_ACEOF 11311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11312 egrep "yes" >/dev/null 2>&1; then 11313 ac_cv_hdr_def_sigpoll=yes 11314else 11315 ac_cv_hdr_def_sigpoll=no 11316fi 11317rm -f conftest* 11318 11319fi 11320echo "$as_me:11320: result: $ac_cv_hdr_def_sigpoll" >&5 11321echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6 11322 11323echo "$as_me:11323: checking for SIGSYS" >&5 11324echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6 11325if test "${ac_cv_hdr_def_sigsys+set}" = set; then 11326 echo $ECHO_N "(cached) $ECHO_C" >&6 11327else 11328 cat >conftest.$ac_ext <<_ACEOF 11329#line 11329 "configure" 11330#include "confdefs.h" 11331#include <signal.h> 11332#ifdef SIGSYS 11333 yes 11334#endif 11335 11336_ACEOF 11337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11338 egrep "yes" >/dev/null 2>&1; then 11339 ac_cv_hdr_def_sigsys=yes 11340else 11341 ac_cv_hdr_def_sigsys=no 11342fi 11343rm -f conftest* 11344 11345fi 11346echo "$as_me:11346: result: $ac_cv_hdr_def_sigsys" >&5 11347echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6 11348 11349echo "$as_me:11349: checking if we can use SIGPOLL for UDP I/O" >&5 11350echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6 11351if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then 11352 echo $ECHO_N "(cached) $ECHO_C" >&6 11353else 11354 ans=no 11355case "$ac_cv_hdr_def_sigpoll" in 11356 yes) 11357 case "$target" in 11358 mips-sgi-irix*) 11359 ans=no 11360 ;; 11361 vax-dec-bsd) 11362 ans=no 11363 ;; 11364 *-pc-cygwin*) 11365 ans=no 11366 ;; 11367 *-sni-sysv*) 11368 ans=no 11369 ;; 11370 *-*-aix4*) 11371 ans=no 11372 ;; 11373 *-*-hpux*) 11374 ans=no 11375 ;; 11376 *-*-linux*) 11377 ans=no 11378 ;; 11379 *-*-osf*) 11380 ans=no 11381 ;; 11382 *-*-sunos*) 11383 ans=no 11384 ;; 11385 *-*-ultrix*) 11386 ans=no 11387 ;; 11388 *) ans=yes 11389 ;; 11390 esac 11391 ;; 11392esac 11393ac_cv_var_use_udp_sigpoll=$ans 11394fi 11395echo "$as_me:11395: result: $ac_cv_var_use_udp_sigpoll" >&5 11396echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6 11397case "$ac_cv_var_use_udp_sigpoll" in 11398 yes) cat >>confdefs.h <<\EOF 11399#define USE_UDP_SIGPOLL 1 11400EOF 11401 ;; 11402esac 11403 11404echo "$as_me:11404: checking if we can use SIGPOLL for TTY I/O" >&5 11405echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6 11406if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then 11407 echo $ECHO_N "(cached) $ECHO_C" >&6 11408else 11409 ans=no 11410case "$ac_cv_hdr_def_sigpoll" in 11411 yes) 11412 case "$target" in 11413 mips-sgi-irix*) 11414 ans=no 11415 ;; 11416 vax-dec-bsd) 11417 ans=no 11418 ;; 11419 *-pc-cygwin*) 11420 ans=no 11421 ;; 11422 *-sni-sysv*) 11423 ans=no 11424 ;; 11425 *-*-aix4*) 11426 ans=no 11427 ;; 11428 *-*-hpux*) 11429 ans=no 11430 ;; 11431 *-*-linux*) 11432 ans=no 11433 ;; 11434 *-*-osf*) 11435 ans=no 11436 ;; 11437 *-*-sunos*) 11438 ans=no 11439 ;; 11440 *-*-ultrix*) 11441 ans=no 11442 ;; 11443 *) ans=yes 11444 ;; 11445 esac 11446 ;; 11447esac 11448ac_cv_var_use_tty_sigpoll=$ans 11449fi 11450echo "$as_me:11450: result: $ac_cv_var_use_tty_sigpoll" >&5 11451echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6 11452case "$ac_cv_var_use_tty_sigpoll" in 11453 yes) cat >>confdefs.h <<\EOF 11454#define USE_TTY_SIGPOLL 1 11455EOF 11456 ;; 11457esac 11458 11459case "$ac_cv_header_sys_sio_h" in 11460 yes) 11461 echo "$as_me:11461: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5 11462echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6 11463if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then 11464 echo $ECHO_N "(cached) $ECHO_C" >&6 11465else 11466 cat >conftest.$ac_ext <<_ACEOF 11467#line 11467 "configure" 11468#include "confdefs.h" 11469#include <sys/sio.h> 11470#ifdef TIOCDCDTIMESTAMP 11471 yes 11472#endif 11473 11474_ACEOF 11475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11476 egrep "yes" >/dev/null 2>&1; then 11477 ac_cv_hdr_def_tiocdcdtimestamp=yes 11478else 11479 ac_cv_hdr_def_tiocdcdtimestamp=no 11480fi 11481rm -f conftest* 11482 11483fi 11484echo "$as_me:11484: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5 11485echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6 11486 ;; 11487esac 11488 11489case "$ac_cv_hdr_def_tiocdcdtimestamp" in 11490 yes) 11491 ac_cv_var_oncore_ok=yes 11492 ;; 11493esac 11494 11495echo "$as_me:11495: checking if nlist() values might require extra indirection" >&5 11496echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6 11497if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then 11498 echo $ECHO_N "(cached) $ECHO_C" >&6 11499else 11500 ans=no 11501case "$target" in 11502 *-*-aix*) 11503 ans=yes 11504 ;; 11505esac 11506ac_cv_var_nlist_extra_indirection=$ans 11507fi 11508echo "$as_me:11508: result: $ac_cv_var_nlist_extra_indirection" >&5 11509echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6 11510case "$ac_cv_var_nlist_extra_indirection" in 11511 yes) cat >>confdefs.h <<\EOF 11512#define NLIST_EXTRA_INDIRECTION 1 11513EOF 11514 ;; 11515esac 11516 11517echo "$as_me:11517: checking for a minimum recommended value of tickadj" >&5 11518echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6 11519if test "${ac_cv_var_min_rec_tickadj+set}" = set; then 11520 echo $ECHO_N "(cached) $ECHO_C" >&6 11521else 11522 ans=no 11523case "$target" in 11524 *-*-aix*) 11525 ans=40 11526 ;; 11527esac 11528ac_cv_var_min_rec_tickadj=$ans 11529fi 11530echo "$as_me:11530: result: $ac_cv_var_min_rec_tickadj" >&5 11531echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6 11532case "$ac_cv_var_min_rec_tickadj" in 11533 ''|no) ;; 11534 *) cat >>confdefs.h <<EOF 11535#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj 11536EOF 11537 ;; 11538esac 11539 11540echo "$as_me:11540: checking if the TTY code permits PARENB and IGNPAR" >&5 11541echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6 11542if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then 11543 echo $ECHO_N "(cached) $ECHO_C" >&6 11544else 11545 ans=no 11546case "$target" in 11547 i?86-*-linux*) 11548 ans=yes 11549 ;; 11550 mips-sgi-irix*) 11551 ans=yes 11552 ;; 11553esac 11554ac_cv_var_no_parenb_ignpar=$ans 11555fi 11556echo "$as_me:11556: result: $ac_cv_var_no_parenb_ignpar" >&5 11557echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6 11558case "$ac_cv_var_no_parenb_ignpar" in 11559 yes) cat >>confdefs.h <<\EOF 11560#define NO_PARENB_IGNPAR 1 11561EOF 11562 ;; 11563esac 11564 11565echo "$as_me:11565: checking if we're including debugging code" >&5 11566echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6 11567# Check whether --enable-debugging or --disable-debugging was given. 11568if test "${enable_debugging+set}" = set; then 11569 enableval="$enable_debugging" 11570 ntp_ok=$enableval 11571else 11572 ntp_ok=yes 11573fi; 11574if test "$ntp_ok" = "yes"; then 11575 cat >>confdefs.h <<\EOF 11576#define DEBUG 1 11577EOF 11578 11579fi 11580echo "$as_me:11580: result: $ntp_ok" >&5 11581echo "${ECHO_T}$ntp_ok" >&6 11582 11583echo "$as_me:11583: checking for a the number of minutes in a DST adjustment" >&5 11584echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6 11585# Check whether --enable-dst_minutes or --disable-dst_minutes was given. 11586if test "${enable_dst_minutes+set}" = set; then 11587 enableval="$enable_dst_minutes" 11588 ans=$enableval 11589else 11590 ans=60 11591fi; 11592cat >>confdefs.h <<EOF 11593#define DSTMINUTES $ans 11594EOF 11595 11596echo "$as_me:11596: result: $ans" >&5 11597echo "${ECHO_T}$ans" >&6 11598 11599echo "$as_me:11599: checking if we have the tty_clk line discipline/streams module" >&5 11600echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6 11601if test "${ac_cv_var_tty_clk+set}" = set; then 11602 echo $ECHO_N "(cached) $ECHO_C" >&6 11603else 11604 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in 11605 *yes*) ac_cv_var_tty_clk=yes ;; 11606 esac 11607fi 11608echo "$as_me:11608: result: $ac_cv_var_tty_clk" >&5 11609echo "${ECHO_T}$ac_cv_var_tty_clk" >&6 11610case "$ac_cv_var_tty_clk" in 11611 yes) cat >>confdefs.h <<\EOF 11612#define TTYCLK 1 11613EOF 11614 ;; 11615esac 11616 11617echo "$as_me:11617: checking for the ppsclock streams module" >&5 11618echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6 11619if test "${ac_cv_var_ppsclock+set}" = set; then 11620 echo $ECHO_N "(cached) $ECHO_C" >&6 11621else 11622 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev 11623fi 11624echo "$as_me:11624: result: $ac_cv_var_ppsclock" >&5 11625echo "${ECHO_T}$ac_cv_var_ppsclock" >&6 11626case "$ac_cv_var_ppsclock" in 11627 yes) cat >>confdefs.h <<\EOF 11628#define PPS 1 11629EOF 11630 ;; 11631esac 11632 11633echo "$as_me:11633: checking for kernel multicast support" >&5 11634echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6 11635if test "${ac_cv_var_mcast+set}" = set; then 11636 echo $ECHO_N "(cached) $ECHO_C" >&6 11637else 11638 ac_cv_var_mcast=no 11639 case "$target" in 11640 i386-sequent-sysv4) ;; 11641 *) cat >conftest.$ac_ext <<_ACEOF 11642#line 11642 "configure" 11643#include "confdefs.h" 11644#include <netinet/in.h> 11645#ifdef IP_ADD_MEMBERSHIP 11646 yes 11647#endif 11648 11649_ACEOF 11650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11651 egrep "yes" >/dev/null 2>&1; then 11652 ac_cv_var_mcast=yes 11653fi 11654rm -f conftest* 11655 ;; 11656 esac 11657fi 11658echo "$as_me:11658: result: $ac_cv_var_mcast" >&5 11659echo "${ECHO_T}$ac_cv_var_mcast" >&6 11660case "$ac_cv_var_mcast" in 11661 yes) cat >>confdefs.h <<\EOF 11662#define MCAST 1 11663EOF 11664 ;; 11665esac 11666 11667echo "$as_me:11667: checking availability of ntp_{adj,get}time()" >&5 11668echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6 11669if test "${ac_cv_var_ntp_syscalls+set}" = set; then 11670 echo $ECHO_N "(cached) $ECHO_C" >&6 11671else 11672 ac_cv_var_ntp_syscalls=no 11673 case "$ac_cv_func___adjtimex" in 11674 yes) 11675 ac_cv_var_ntp_syscalls=libc 11676 ;; 11677 *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in 11678 yesyes) 11679 ac_cv_var_ntp_syscalls=libc 11680 ;; 11681 *) cat >conftest.$ac_ext <<_ACEOF 11682#line 11682 "configure" 11683#include "confdefs.h" 11684#include <sys/syscall.h> 11685#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime) 11686 yes 11687#endif 11688 11689_ACEOF 11690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11691 egrep "yes" >/dev/null 2>&1; then 11692 ac_cv_var_ntp_syscalls=kernel 11693fi 11694rm -f conftest* 11695 11696 ;; 11697 esac 11698 ;; 11699 esac 11700fi 11701echo "$as_me:11701: result: $ac_cv_var_ntp_syscalls" >&5 11702echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6 11703case "$ac_cv_var_ntp_syscalls" in 11704 libc) 11705 cat >>confdefs.h <<\EOF 11706#define NTP_SYSCALLS_LIBC 1 11707EOF 11708 11709 ;; 11710 kernel) 11711 cat >>confdefs.h <<\EOF 11712#define NTP_SYSCALLS_STD 1 11713EOF 11714 11715 ;; 11716 *) 11717 ;; 11718esac 11719 11720echo "$as_me:11720: checking if sys/timex.h has STA_FLL" >&5 11721echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6 11722if test "${ac_cv_var_sta_fll+set}" = set; then 11723 echo $ECHO_N "(cached) $ECHO_C" >&6 11724else 11725 cat >conftest.$ac_ext <<_ACEOF 11726#line 11726 "configure" 11727#include "confdefs.h" 11728#include <sys/timex.h> 11729#ifdef STA_FLL 11730 yes 11731#endif 11732 11733_ACEOF 11734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11735 egrep "yes" >/dev/null 2>&1; then 11736 ac_cv_var_sta_fll=yes 11737else 11738 ac_cv_var_sta_fll=no 11739fi 11740rm -f conftest* 11741 11742fi 11743echo "$as_me:11743: result: $ac_cv_var_sta_fll" >&5 11744echo "${ECHO_T}$ac_cv_var_sta_fll" >&6 11745 11746echo "$as_me:11746: checking if we have kernel PLL support" >&5 11747echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6 11748if test "${ac_cv_var_kernel_pll+set}" = set; then 11749 echo $ECHO_N "(cached) $ECHO_C" >&6 11750else 11751 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in 11752 *no*) 11753 ac_cv_var_kernel_pll=no 11754 ;; 11755 *) ac_cv_var_kernel_pll=yes 11756 ;; 11757esac 11758fi 11759echo "$as_me:11759: result: $ac_cv_var_kernel_pll" >&5 11760echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6 11761case "$ac_cv_var_kernel_pll" in 11762 yes) 11763 cat >>confdefs.h <<\EOF 11764#define KERNEL_PLL 1 11765EOF 11766 11767 ;; 11768esac 11769 11770echo "$as_me:11770: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 11771echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6 11772if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then 11773 echo $ECHO_N "(cached) $ECHO_C" >&6 11774else 11775 ans=no 11776 case "$target" in 11777 *-fujitsu-uxp*) 11778 ans=yes 11779 ;; 11780 *-ncr-sysv4*) 11781 ans=yes 11782 ;; 11783 *-univel-sysv*) 11784 ans=yes 11785 ;; 11786 esac 11787 ac_cv_var_size_returned_in_buffer=$ans 11788fi 11789echo "$as_me:11789: result: $ac_cv_var_size_returned_in_buffer" >&5 11790echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6 11791case "$ac_cv_var_size_returned_in_buffer" in 11792 yes) cat >>confdefs.h <<\EOF 11793#define SIZE_RETURNED_IN_BUFFER 1 11794EOF 11795 ;; 11796esac 11797 11798# Check for ioctls TIOCGPPSEV 11799echo "$as_me:11799: checking ioctl TIOCGPPSEV" >&5 11800echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6 11801if test "$ac_cv_header_termios_h" = "yes"; then 11802 cat >conftest.$ac_ext <<_ACEOF 11803#line 11803 "configure" 11804#include "confdefs.h" 11805#include <termios.h> 11806#ifdef TIOCGPPSEV 11807 yes 11808#endif 11809 11810_ACEOF 11811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11812 egrep "yes" >/dev/null 2>&1; then 11813 ntp_ok=yes 11814else 11815 ntp_ok=no 11816fi 11817rm -f conftest* 11818 11819else 11820ntp_ok=no 11821fi 11822if test "$ntp_ok" = "yes"; then 11823 cat >>confdefs.h <<\EOF 11824#define HAVE_TIOCGPPSEV 1 11825EOF 11826 11827 ac_cv_var_oncore_ok=yes 11828fi 11829echo "$as_me:11829: result: $ntp_ok" >&5 11830echo "${ECHO_T}$ntp_ok" >&6 11831 11832# Check for ioctls TIOCSPPS 11833echo "$as_me:11833: checking ioctl TIOCSPPS" >&5 11834echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6 11835if test "$ac_cv_header_termios_h" = "yes"; then 11836 cat >conftest.$ac_ext <<_ACEOF 11837#line 11837 "configure" 11838#include "confdefs.h" 11839#include <termios.h> 11840#ifdef TIOCSPPS 11841 yes 11842#endif 11843 11844_ACEOF 11845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11846 egrep "yes" >/dev/null 2>&1; then 11847 ntp_ok=yes 11848else 11849 ntp_ok=no 11850fi 11851rm -f conftest* 11852 11853else 11854 ntp_ok=no 11855fi 11856 11857if test "$ntp_ok" = "yes"; then 11858 cat >>confdefs.h <<\EOF 11859#define HAVE_TIOCSPPS 1 11860EOF 11861 11862fi 11863echo "$as_me:11863: result: $ntp_ok" >&5 11864echo "${ECHO_T}$ntp_ok" >&6 11865 11866# Check for ioctls CIOGETEV 11867echo "$as_me:11867: checking ioctl CIOGETEV" >&5 11868echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6 11869if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then 11870 cat >conftest.$ac_ext <<_ACEOF 11871#line 11871 "configure" 11872#include "confdefs.h" 11873#include <sys/ppsclock.h> 11874#ifdef CIOGETEV 11875 yes 11876#endif 11877 11878_ACEOF 11879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11880 egrep "yes" >/dev/null 2>&1; then 11881 ntp_ok=yes 11882else 11883 ntp_ok=no 11884fi 11885rm -f conftest* 11886 11887else 11888ntp_ok=no 11889fi 11890if test "$ntp_ok" = "yes"; then 11891 ac_cv_var_oncore_ok=yes 11892 cat >>confdefs.h <<\EOF 11893#define HAVE_CIOGETEV 1 11894EOF 11895 11896fi 11897echo "$as_me:11897: result: $ntp_ok" >&5 11898echo "${ECHO_T}$ntp_ok" >&6 11899 11900# ATOM/PPSAPI stuff. 11901 11902# ATOM used to require struct timespec, but that's been fixed now. 11903 11904# case "$ac_cv_struct_timespec" in 11905# 'yes') 11906# ac_cv_var_atom_ok=yes 11907# ;; 11908# esac 11909ac_cv_var_atom_ok=yes 11910 11911# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 11912 11913# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 11914 11915# The PPSAPI needs ATOM 11916 11917# The PPSAPI needs struct timespec. 11918 11919case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in 11920 inlineyes*yes*) 11921 cat >>confdefs.h <<\EOF 11922#define HAVE_PPSAPI 1 11923EOF 11924 11925 ac_cv_var_oncore_ok=yes 11926 ;; 11927esac 11928 11929# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 11930echo "$as_me:11930: checking for linux/serial.h" >&5 11931echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6 11932if test "${ac_cv_header_linux_serial_h+set}" = set; then 11933 echo $ECHO_N "(cached) $ECHO_C" >&6 11934else 11935 cat >conftest.$ac_ext <<_ACEOF 11936#line 11936 "configure" 11937#include "confdefs.h" 11938#include <linux/serial.h> 11939_ACEOF 11940if { (eval echo "$as_me:11940: \"$ac_cpp conftest.$ac_ext\"") >&5 11941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11942 ac_status=$? 11943 egrep -v '^ *\+' conftest.er1 >conftest.err 11944 rm -f conftest.er1 11945 cat conftest.err >&5 11946 echo "$as_me:11946: \$? = $ac_status" >&5 11947 (exit $ac_status); } >/dev/null; then 11948 if test -s conftest.err; then 11949 ac_cpp_err=$ac_c_preproc_warn_flag 11950 else 11951 ac_cpp_err= 11952 fi 11953else 11954 ac_cpp_err=yes 11955fi 11956if test -z "$ac_cpp_err"; then 11957 ac_cv_header_linux_serial_h=yes 11958else 11959 echo "$as_me: failed program was:" >&5 11960 cat conftest.$ac_ext >&5 11961 ac_cv_header_linux_serial_h=no 11962fi 11963rm -f conftest.err conftest.$ac_ext 11964fi 11965echo "$as_me:11965: result: $ac_cv_header_linux_serial_h" >&5 11966echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6 11967 11968echo "$as_me:11968: checking ioctl TIOCGSERIAL" >&5 11969echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6 11970case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 11971 yesyes) 11972 cat >conftest.$ac_ext <<_ACEOF 11973#line 11973 "configure" 11974#include "confdefs.h" 11975#include <sys/time.h> 11976typedef int u_int; 11977 11978#include <sys/ppsclock.h> 11979#include <linux/serial.h> 11980 11981#ifdef TIOCGSERIAL 11982#ifdef TIOCSSERIAL 11983#ifdef ASYNC_PPS_CD_POS 11984#ifdef ASYNC_PPS_CD_NEG 11985#ifdef CIOGETEV 11986 yes 11987#endif 11988#endif 11989#endif 11990#endif 11991#endif 11992 11993_ACEOF 11994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11995 egrep "yes" >/dev/null 2>&1; then 11996 ntp_ok=yes 11997fi 11998rm -f conftest* 11999 12000 ;; 12001 *) 12002 ntp_ok=no 12003 ;; 12004esac 12005if test "$ntp_ok" = "yes"; then 12006 cat >>confdefs.h <<\EOF 12007#define HAVE_TIO_SERIAL_STUFF 1 12008EOF 12009 12010fi 12011echo "$as_me:12011: result: $ntp_ok" >&5 12012echo "${ECHO_T}$ntp_ok" >&6 12013 12014# Check for SHMEM_STATUS support 12015echo "$as_me:12015: checking SHMEM_STATUS support" >&5 12016echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6 12017case "$ac_cv_header_sys_mman_h" in 12018 yes) ntp_ok=yes ;; 12019 *) ntp_ok=no ;; 12020esac 12021if test "$ntp_ok" = "yes"; then 12022 cat >>confdefs.h <<\EOF 12023#define ONCORE_SHMEM_STATUS 1 12024EOF 12025 12026fi 12027echo "$as_me:12027: result: $ntp_ok" >&5 12028echo "${ECHO_T}$ntp_ok" >&6 12029 12030ntp_refclock=no 12031 12032echo "$as_me:12032: checking for hopf serial clock device" >&5 12033echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6 12034# Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given. 12035if test "${enable_HOPFSERIAL+set}" = set; then 12036 enableval="$enable_HOPFSERIAL" 12037 ntp_ok=$enableval 12038else 12039 ntp_ok=$ntp_eac 12040fi; 12041 if test "$ntp_ok" = "yes"; then 12042 ntp_refclock=yes 12043 cat >>confdefs.h <<\EOF 12044#define CLOCK_HOPF_SERIAL 1 12045EOF 12046 12047 fi 12048 echo "$as_me:12048: result: $ntp_ok" >&5 12049echo "${ECHO_T}$ntp_ok" >&6 12050 12051echo "$as_me:12051: checking for hopf PCI clock 6039" >&5 12052echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6 12053# Check whether --enable-HOPFPCI or --disable-HOPFPCI was given. 12054if test "${enable_HOPFPCI+set}" = set; then 12055 enableval="$enable_HOPFPCI" 12056 ntp_ok=$enableval 12057else 12058 ntp_ok=$ntp_eac 12059fi; 12060if test "$ntp_ok" = "yes"; then 12061 ntp_refclock=yes 12062 cat >>confdefs.h <<\EOF 12063#define CLOCK_HOPF_PCI 1 12064EOF 12065 12066fi 12067echo "$as_me:12067: result: $ntp_ok" >&5 12068echo "${ECHO_T}$ntp_ok" >&6 12069 12070# HPUX only, and by explicit request 12071echo "$as_me:12071: checking Datum/Bancomm bc635/VME interface" >&5 12072echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6 12073# Check whether --enable-BANCOMM or --disable-BANCOMM was given. 12074if test "${enable_BANCOMM+set}" = set; then 12075 enableval="$enable_BANCOMM" 12076 ntp_ok=$enableval 12077else 12078 ntp_ok=no 12079fi; 12080if test "$ntp_ok" = "yes"; then 12081 ntp_refclock=yes 12082 cat >>confdefs.h <<\EOF 12083#define CLOCK_BANC 1 12084EOF 12085 12086fi 12087echo "$as_me:12087: result: $ntp_ok" >&5 12088echo "${ECHO_T}$ntp_ok" >&6 12089case "$ntp_ok$target" in 12090 yes*-*-hpux*) ;; 12091 yes*) { echo "$as_me:12091: WARNING: *** But the expected answer is... no ***" >&5 12092echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 12093esac 12094 12095#HPUX only, and only by explicit request 12096echo "$as_me:12096: checking TrueTime GPS receiver/VME interface" >&5 12097echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6 12098# Check whether --enable-GPSVME or --disable-GPSVME was given. 12099if test "${enable_GPSVME+set}" = set; then 12100 enableval="$enable_GPSVME" 12101 ntp_ok=$enableval 12102else 12103 ntp_ok=no 12104fi; 12105if test "$ntp_ok" = "yes"; then 12106 ntp_refclock=yes 12107 cat >>confdefs.h <<\EOF 12108#define CLOCK_GPSVME 1 12109EOF 12110 12111fi 12112echo "$as_me:12112: result: $ntp_ok" >&5 12113echo "${ECHO_T}$ntp_ok" >&6 12114case "$ntp_ok$target" in 12115 yes*-*-hpux*) ;; 12116 yes*) { echo "$as_me:12116: WARNING: *** But the expected answer is... no ***" >&5 12117echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 12118esac 12119 12120echo "$as_me:12120: checking for PCL720 clock support" >&5 12121echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6 12122case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 12123 yesyesyes) 12124 cat >>confdefs.h <<\EOF 12125#define CLOCK_PPS720 1 12126EOF 12127 12128 ans=yes 12129 ;; 12130 *) 12131 ans=no 12132 ;; 12133esac 12134echo "$as_me:12134: result: $ans" >&5 12135echo "${ECHO_T}$ans" >&6 12136 12137echo "$as_me:12137: checking for SHM clock attached thru shared memory" >&5 12138echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6 12139# Check whether --enable-SHM or --disable-SHM was given. 12140if test "${enable_SHM+set}" = set; then 12141 enableval="$enable_SHM" 12142 ntp_ok=$enableval 12143else 12144 ntp_ok=no 12145fi; 12146if test "$ntp_ok" = "yes"; then 12147 ntp_refclock=yes 12148 cat >>confdefs.h <<\EOF 12149#define CLOCK_SHM 1 12150EOF 12151 12152fi 12153echo "$as_me:12153: result: $ntp_ok" >&5 12154echo "${ECHO_T}$ntp_ok" >&6 12155 12156echo "$as_me:12156: checking for default inclusion of all suitable non-PARSE clocks" >&5 12157echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6 12158# Check whether --enable-all-clocks or --disable-all-clocks was given. 12159if test "${enable_all_clocks+set}" = set; then 12160 enableval="$enable_all_clocks" 12161 ntp_eac=$enableval 12162else 12163 ntp_eac=yes 12164fi; 12165echo "$as_me:12165: result: $ntp_eac" >&5 12166echo "${ECHO_T}$ntp_eac" >&6 12167 12168echo "$as_me:12168: checking if we have support for PARSE clocks" >&5 12169echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6 12170case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 12171 yes*yes*) 12172 ntp_canparse=yes 12173 ;; 12174 *) ntp_canparse=no 12175 ;; 12176esac 12177echo "$as_me:12177: result: $ntp_canparse" >&5 12178echo "${ECHO_T}$ntp_canparse" >&6 12179 12180echo "$as_me:12180: checking if we have support for audio clocks" >&5 12181echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6 12182case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in 12183 *yes*) 12184 ntp_canaudio=yes 12185 12186cat >>confdefs.h <<\EOF 12187#define HAVE_AUDIO 12188EOF 12189 12190 ;; 12191 *) ntp_canaudio=no ;; 12192esac 12193echo "$as_me:12193: result: $ntp_canaudio" >&5 12194echo "${ECHO_T}$ntp_canaudio" >&6 12195 12196# Requires modem control 12197echo "$as_me:12197: checking ACTS modem service" >&5 12198echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6 12199# Check whether --enable-ACTS or --disable-ACTS was given. 12200if test "${enable_ACTS+set}" = set; then 12201 enableval="$enable_ACTS" 12202 ntp_ok=$enableval 12203else 12204 cat >conftest.$ac_ext <<_ACEOF 12205#line 12205 "configure" 12206#include "confdefs.h" 12207#include <termios.h> 12208#ifdef HAVE_SYS_IOCTL_H 12209#include <sys/ioctl.h> 12210#endif 12211#ifdef TIOCMBIS 12212 yes 12213#endif 12214 12215_ACEOF 12216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12217 egrep "yes" >/dev/null 2>&1; then 12218 ntp_ok=$ntp_eac 12219else 12220 ntp_ok=no 12221fi 12222rm -f conftest* 12223 12224fi; 12225if test "$ntp_ok" = "yes"; then 12226 ntp_refclock=yes 12227 cat >>confdefs.h <<\EOF 12228#define CLOCK_ACTS 1 12229EOF 12230 12231fi 12232echo "$as_me:12232: result: $ntp_ok" >&5 12233echo "${ECHO_T}$ntp_ok" >&6 12234 12235echo "$as_me:12235: checking Arbiter 1088A/B GPS receiver" >&5 12236echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6 12237# Check whether --enable-ARBITER or --disable-ARBITER was given. 12238if test "${enable_ARBITER+set}" = set; then 12239 enableval="$enable_ARBITER" 12240 ntp_ok=$enableval 12241else 12242 ntp_ok=$ntp_eac 12243fi; 12244if test "$ntp_ok" = "yes"; then 12245 ntp_refclock=yes 12246 cat >>confdefs.h <<\EOF 12247#define CLOCK_ARBITER 1 12248EOF 12249 12250fi 12251echo "$as_me:12251: result: $ntp_ok" >&5 12252echo "${ECHO_T}$ntp_ok" >&6 12253 12254echo "$as_me:12254: checking Arcron MSF receiver" >&5 12255echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6 12256# Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given. 12257if test "${enable_ARCRON_MSF+set}" = set; then 12258 enableval="$enable_ARCRON_MSF" 12259 ntp_ok=$enableval 12260else 12261 ntp_ok=$ntp_eac 12262fi; 12263if test "$ntp_ok" = "yes"; then 12264 ntp_refclock=yes 12265 cat >>confdefs.h <<\EOF 12266#define CLOCK_ARCRON_MSF 1 12267EOF 12268 12269fi 12270echo "$as_me:12270: result: $ntp_ok" >&5 12271echo "${ECHO_T}$ntp_ok" >&6 12272 12273echo "$as_me:12273: checking ATOM PPS interface" >&5 12274echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6 12275# Check whether --enable-ATOM or --disable-ATOM was given. 12276if test "${enable_ATOM+set}" = set; then 12277 enableval="$enable_ATOM" 12278 ntp_ok=$enableval 12279else 12280 ntp_ok=$ntp_eac 12281fi; 12282case "$ac_cv_var_atom_ok" in 12283 no) ntp_ok=no ;; 12284esac 12285if test "$ntp_ok" = "yes"; then 12286 ntp_refclock=yes 12287 cat >>confdefs.h <<\EOF 12288#define CLOCK_ATOM 1 12289EOF 12290 12291fi 12292echo "$as_me:12292: result: $ntp_ok" >&5 12293echo "${ECHO_T}$ntp_ok" >&6 12294 12295echo "$as_me:12295: checking Austron 2200A/2201A GPS receiver" >&5 12296echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6 12297# Check whether --enable-AS2201 or --disable-AS2201 was given. 12298if test "${enable_AS2201+set}" = set; then 12299 enableval="$enable_AS2201" 12300 ntp_ok=$enableval 12301else 12302 ntp_ok=$ntp_eac 12303fi; 12304if test "$ntp_ok" = "yes"; then 12305 ntp_refclock=yes 12306 cat >>confdefs.h <<\EOF 12307#define CLOCK_AS2201 1 12308EOF 12309 12310fi 12311echo "$as_me:12311: result: $ntp_ok" >&5 12312echo "${ECHO_T}$ntp_ok" >&6 12313 12314echo "$as_me:12314: checking CHU modem/decoder" >&5 12315echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6 12316# Check whether --enable-CHU or --disable-CHU was given. 12317if test "${enable_CHU+set}" = set; then 12318 enableval="$enable_CHU" 12319 ntp_ok=$enableval 12320else 12321 ntp_ok=$ntp_eac 12322fi; 12323if test "$ntp_ok" = "yes"; then 12324 ntp_refclock=yes 12325 cat >>confdefs.h <<\EOF 12326#define CLOCK_CHU 1 12327EOF 12328 12329fi 12330echo "$as_me:12330: result: $ntp_ok" >&5 12331echo "${ECHO_T}$ntp_ok" >&6 12332ac_refclock_chu=$ntp_ok 12333 12334echo "$as_me:12334: checking CHU audio/decoder" >&5 12335echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6 12336# Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given. 12337if test "${enable_AUDIO_CHU+set}" = set; then 12338 enableval="$enable_AUDIO_CHU" 12339 ntp_ok=$enableval 12340else 12341 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in 12342 *no*) ntp_ok=no ;; 12343 *) ntp_ok=yes ;; 12344esac 12345fi; 12346if test "$ntp_ok" = "yes"; then 12347 cat >>confdefs.h <<\EOF 12348#define AUDIO_CHU 1 12349EOF 12350 12351fi 12352echo "$as_me:12352: result: $ntp_ok" >&5 12353echo "${ECHO_T}$ntp_ok" >&6 12354# We used to check for sunos/solaris target... 12355case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in 12356 yes*no*) { echo "$as_me:12356: WARNING: *** But the expected answer is...no ***" >&5 12357echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;; 12358esac 12359 12360# Not under HP-UX 12361echo "$as_me:12361: checking Datum Programmable Time System" >&5 12362echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6 12363# Check whether --enable-DATUM or --disable-DATUM was given. 12364if test "${enable_DATUM+set}" = set; then 12365 enableval="$enable_DATUM" 12366 ntp_ok=$enableval 12367else 12368 case "$ac_cv_header_termios_h" in 12369 yes) 12370 ntp_ok=$ntp_eac 12371 ;; 12372 *) ntp_ok=no 12373 ;; 12374 esac 12375fi; 12376if test "$ntp_ok" = "yes"; then 12377 ntp_refclock=yes 12378 cat >>confdefs.h <<\EOF 12379#define CLOCK_DATUM 1 12380EOF 12381 12382fi 12383echo "$as_me:12383: result: $ntp_ok" >&5 12384echo "${ECHO_T}$ntp_ok" >&6 12385 12386echo "$as_me:12386: checking Forum Graphic GPS" >&5 12387echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6 12388# Check whether --enable-FG or --disable-FG was given. 12389if test "${enable_FG+set}" = set; then 12390 enableval="$enable_FG" 12391 ntp_ok=$enableval 12392else 12393 ntp_ok=$ntp_eac 12394fi; 12395if test "$ntp_ok" = "yes"; then 12396 ntp_refclock=yes 12397 cat >>confdefs.h <<\EOF 12398#define CLOCK_FG 1 12399EOF 12400 12401fi 12402echo "$as_me:12402: result: $ntp_ok" >&5 12403echo "${ECHO_T}$ntp_ok" >&6 12404 12405# Requires modem control 12406echo "$as_me:12406: checking Heath GC-1000 WWV/WWVH receiver" >&5 12407echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6 12408# Check whether --enable-HEATH or --disable-HEATH was given. 12409if test "${enable_HEATH+set}" = set; then 12410 enableval="$enable_HEATH" 12411 ntp_ok=$enableval 12412else 12413 cat >conftest.$ac_ext <<_ACEOF 12414#line 12414 "configure" 12415#include "confdefs.h" 12416#include <termios.h> 12417#ifdef HAVE_SYS_IOCTL_H 12418#include <sys/ioctl.h> 12419#endif 12420#ifdef TIOCMBIS 12421 yes 12422#endif 12423 12424_ACEOF 12425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12426 egrep "yes" >/dev/null 2>&1; then 12427 ntp_ok=$ntp_eac 12428else 12429 ntp_ok=no 12430fi 12431rm -f conftest* 12432 12433fi; 12434if test "$ntp_ok" = "yes"; then 12435 ntp_refclock=yes 12436 cat >>confdefs.h <<\EOF 12437#define CLOCK_HEATH 1 12438EOF 12439 12440fi 12441echo "$as_me:12441: result: $ntp_ok" >&5 12442echo "${ECHO_T}$ntp_ok" >&6 12443 12444echo "$as_me:12444: checking HP 58503A GPS receiver" >&5 12445echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6 12446# Check whether --enable-HPGPS or --disable-HPGPS was given. 12447if test "${enable_HPGPS+set}" = set; then 12448 enableval="$enable_HPGPS" 12449 ntp_ok=$enableval 12450else 12451 ntp_ok=$ntp_eac 12452fi; 12453if test "$ntp_ok" = "yes"; then 12454 ntp_refclock=yes 12455 cat >>confdefs.h <<\EOF 12456#define CLOCK_HPGPS 1 12457EOF 12458 12459fi 12460echo "$as_me:12460: result: $ntp_ok" >&5 12461echo "${ECHO_T}$ntp_ok" >&6 12462 12463echo "$as_me:12463: checking Sun IRIG audio decoder" >&5 12464echo $ECHO_N "checking Sun IRIG audio decoder... $ECHO_C" >&6 12465# Check whether --enable-IRIG or --disable-IRIG was given. 12466if test "${enable_IRIG+set}" = set; then 12467 enableval="$enable_IRIG" 12468 ntp_ok=$enableval 12469else 12470 case "$ntp_eac$ntp_canaudio" in 12471 *no*) ntp_ok=no ;; 12472 *) ntp_ok=yes ;; 12473 esac 12474fi; 12475if test "$ntp_ok" = "yes"; then 12476 ntp_refclock=yes 12477 cat >>confdefs.h <<\EOF 12478#define CLOCK_IRIG 1 12479EOF 12480 12481fi 12482echo "$as_me:12482: result: $ntp_ok" >&5 12483echo "${ECHO_T}$ntp_ok" >&6 12484case "$ntp_ok$ntp_canaudio" in 12485 yesno) { echo "$as_me:12485: WARNING: *** But the expected answer is... no ***" >&5 12486echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 12487esac 12488 12489echo "$as_me:12489: checking Leitch CSD 5300 Master Clock System Driver" >&5 12490echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6 12491# Check whether --enable-LEITCH or --disable-LEITCH was given. 12492if test "${enable_LEITCH+set}" = set; then 12493 enableval="$enable_LEITCH" 12494 ntp_ok=$enableval 12495else 12496 ntp_ok=$ntp_eac 12497fi; 12498if test "$ntp_ok" = "yes"; then 12499 ntp_refclock=yes 12500 cat >>confdefs.h <<\EOF 12501#define CLOCK_LEITCH 1 12502EOF 12503 12504fi 12505echo "$as_me:12505: result: $ntp_ok" >&5 12506echo "${ECHO_T}$ntp_ok" >&6 12507 12508echo "$as_me:12508: checking local clock reference" >&5 12509echo $ECHO_N "checking local clock reference... $ECHO_C" >&6 12510# Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given. 12511if test "${enable_LOCAL_CLOCK+set}" = set; then 12512 enableval="$enable_LOCAL_CLOCK" 12513 ntp_ok=$enableval 12514else 12515 ntp_ok=$ntp_eac 12516fi; 12517if test "$ntp_ok" = "yes"; then 12518 ntp_refclock=yes 12519 cat >>confdefs.h <<\EOF 12520#define CLOCK_LOCAL 1 12521EOF 12522 12523fi 12524echo "$as_me:12524: result: $ntp_ok" >&5 12525echo "${ECHO_T}$ntp_ok" >&6 12526 12527echo "$as_me:12527: checking EES M201 MSF receiver" >&5 12528echo $ECHO_N "checking EES M201 MSF receiver... $ECHO_C" >&6 12529# Check whether --enable-MSFEES or --disable-MSFEES was given. 12530if test "${enable_MSFEES+set}" = set; then 12531 enableval="$enable_MSFEES" 12532 ntp_ok=$enableval 12533else 12534 ntp_ok=$ntp_eac 12535fi; 12536if test "$ntp_ok" = "yes"; then 12537 ntp_refclock=yes 12538 cat >>confdefs.h <<\EOF 12539#define CLOCK_MSFEES 1 12540EOF 12541 12542fi 12543echo "$as_me:12543: result: $ntp_ok" >&5 12544echo "${ECHO_T}$ntp_ok" >&6 12545 12546# Not Ultrix 12547echo "$as_me:12547: checking Magnavox MX4200 GPS receiver" >&5 12548echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6 12549# Check whether --enable-MX4200 or --disable-MX4200 was given. 12550if test "${enable_MX4200+set}" = set; then 12551 enableval="$enable_MX4200" 12552 ntp_ok=$enableval 12553else 12554 case "$ac_cv_var_ppsclock" in 12555 yes) ntp_ok=$ntp_eac 12556 ;; 12557 *) ntp_ok=no 12558 ;; 12559 esac 12560fi; 12561if test "$ntp_ok" = "yes"; then 12562 ntp_refclock=yes 12563 cat >>confdefs.h <<\EOF 12564#define CLOCK_MX4200 1 12565EOF 12566 12567fi 12568echo "$as_me:12568: result: $ntp_ok" >&5 12569echo "${ECHO_T}$ntp_ok" >&6 12570case "$ntp_ok$target" in 12571 yes*-*-ultrix*) { echo "$as_me:12571: WARNING: *** But the expected answer is... no ***" >&5 12572echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 12573esac 12574 12575echo "$as_me:12575: checking NMEA GPS receiver" >&5 12576echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6 12577# Check whether --enable-NMEA or --disable-NMEA was given. 12578if test "${enable_NMEA+set}" = set; then 12579 enableval="$enable_NMEA" 12580 ntp_ok=$enableval 12581else 12582 ntp_ok=$ntp_eac 12583fi; 12584if test "$ntp_ok" = "yes"; then 12585 ntp_refclock=yes 12586 cat >>confdefs.h <<\EOF 12587#define CLOCK_NMEA 1 12588EOF 12589 12590fi 12591echo "$as_me:12591: result: $ntp_ok" >&5 12592echo "${ECHO_T}$ntp_ok" >&6 12593 12594echo "$as_me:12594: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 12595echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6 12596# Check whether --enable-ONCORE or --disable-ONCORE was given. 12597if test "${enable_ONCORE+set}" = set; then 12598 enableval="$enable_ONCORE" 12599 ntp_ok=$enableval 12600else 12601 ntp_ok=$ntp_eac 12602fi; 12603case "$ac_cv_var_oncore_ok" in 12604 no) ntp_ok=no ;; 12605esac 12606if test "$ntp_ok" = "yes"; then 12607 ntp_refclock=yes 12608 cat >>confdefs.h <<\EOF 12609#define CLOCK_ONCORE 1 12610EOF 12611 12612fi 12613echo "$as_me:12613: result: $ntp_ok" >&5 12614echo "${ECHO_T}$ntp_ok" >&6 12615 12616echo "$as_me:12616: checking for Palisade clock" >&5 12617echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6 12618# Check whether --enable-PALISADE or --disable-PALISADE was given. 12619if test "${enable_PALISADE+set}" = set; then 12620 enableval="$enable_PALISADE" 12621 ntp_ok=$enableval 12622else 12623 case "$ac_cv_header_termios_h" in 12624 yes) 12625 ntp_ok=$ntp_eac 12626 ;; 12627 *) ntp_ok=no 12628 ;; 12629 esac 12630fi; 12631 12632if test "$ntp_ok" = "yes"; then 12633 ntp_refclock=yes 12634 cat >>confdefs.h <<\EOF 12635#define CLOCK_PALISADE 1 12636EOF 12637 12638fi 12639echo "$as_me:12639: result: $ntp_ok" >&5 12640echo "${ECHO_T}$ntp_ok" >&6 12641 12642echo "$as_me:12642: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 12643echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6 12644# Check whether --enable-PST or --disable-PST was given. 12645if test "${enable_PST+set}" = set; then 12646 enableval="$enable_PST" 12647 ntp_ok=$enableval 12648else 12649 ntp_ok=$ntp_eac 12650fi; 12651if test "$ntp_ok" = "yes"; then 12652 ntp_refclock=yes 12653 cat >>confdefs.h <<\EOF 12654#define CLOCK_PST 1 12655EOF 12656 12657fi 12658echo "$as_me:12658: result: $ntp_ok" >&5 12659echo "${ECHO_T}$ntp_ok" >&6 12660 12661# Not Ultrix 12662echo "$as_me:12662: checking Rockwell Jupiter GPS receiver" >&5 12663echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6 12664# Check whether --enable-JUPITER or --disable-JUPITER was given. 12665if test "${enable_JUPITER+set}" = set; then 12666 enableval="$enable_JUPITER" 12667 ntp_ok=$enableval 12668else 12669 case "$ac_cv_var_ppsclock" in 12670# yes) ntp_ok=$ntp_eac 12671# ;; 12672 *) ntp_ok=no 12673 ;; 12674 esac 12675fi; 12676if test "$ntp_ok" = "yes"; then 12677 ntp_refclock=yes 12678 cat >>confdefs.h <<\EOF 12679#define CLOCK_JUPITER 1 12680EOF 12681 12682fi 12683echo "$as_me:12683: result: $ntp_ok" >&5 12684echo "${ECHO_T}$ntp_ok" >&6 12685case "$ntp_ok$target" in 12686 yes*-*-ultrix*) { echo "$as_me:12686: WARNING: *** But the expected answer is... no ***" >&5 12687echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 12688esac 12689 12690# Requires modem control 12691echo "$as_me:12691: checking PTB modem service" >&5 12692echo $ECHO_N "checking PTB modem service... $ECHO_C" >&6 12693# Check whether --enable-PTBACTS or --disable-PTBACTS was given. 12694if test "${enable_PTBACTS+set}" = set; then 12695 enableval="$enable_PTBACTS" 12696 ntp_ok=$enableval 12697else 12698 cat >conftest.$ac_ext <<_ACEOF 12699#line 12699 "configure" 12700#include "confdefs.h" 12701#include <termios.h> 12702#ifdef HAVE_SYS_IOCTL_H 12703#include <sys/ioctl.h> 12704#endif 12705#ifdef TIOCMBIS 12706 yes 12707#endif 12708 12709_ACEOF 12710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12711 egrep "yes" >/dev/null 2>&1; then 12712 ntp_ok=$ntp_eac 12713else 12714 ntp_ok=no 12715fi 12716rm -f conftest* 12717 12718fi; 12719if test "$ntp_ok" = "yes"; then 12720 ntp_refclock=yes 12721 cat >>confdefs.h <<\EOF 12722#define CLOCK_PTBACTS 1 12723EOF 12724 12725fi 12726echo "$as_me:12726: result: $ntp_ok" >&5 12727echo "${ECHO_T}$ntp_ok" >&6 12728 12729echo "$as_me:12729: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 12730echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6 12731# Check whether --enable-TPRO or --disable-TPRO was given. 12732if test "${enable_TPRO+set}" = set; then 12733 enableval="$enable_TPRO" 12734 ntp_ok=$enableval 12735else 12736 case "$ac_cv_header_sys_tpro_h" in 12737 yes) 12738 ntp_ok=$ntp_eac 12739 ;; 12740 *) ntp_ok=no 12741 ;; 12742 esac 12743fi; 12744if test "$ntp_ok" = "yes"; then 12745 ntp_refclock=yes 12746 cat >>confdefs.h <<\EOF 12747#define CLOCK_TPRO 1 12748EOF 12749 12750fi 12751echo "$as_me:12751: result: $ntp_ok" >&5 12752echo "${ECHO_T}$ntp_ok" >&6 12753case "$ntp_ok$ac_cv_header_sys_tpro" in 12754 yesno) { echo "$as_me:12754: WARNING: *** But the expected answer is... no ***" >&5 12755echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 12756esac 12757 12758echo "$as_me:12758: checking TRAK 8810 GPS receiver" >&5 12759echo $ECHO_N "checking TRAK 8810 GPS receiver... $ECHO_C" >&6 12760# Check whether --enable-TRAK or --disable-TRAK was given. 12761if test "${enable_TRAK+set}" = set; then 12762 enableval="$enable_TRAK" 12763 ntp_ok=$enableval 12764else 12765 ntp_ok=$ntp_eac 12766fi; 12767if test "$ntp_ok" = "yes"; then 12768 ntp_refclock=yes 12769 cat >>confdefs.h <<\EOF 12770#define CLOCK_TRAK 1 12771EOF 12772 12773fi 12774echo "$as_me:12774: result: $ntp_ok" >&5 12775echo "${ECHO_T}$ntp_ok" >&6 12776 12777echo "$as_me:12777: checking Chrono-log K-series WWVB receiver" >&5 12778echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6 12779# Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given. 12780if test "${enable_CHRONOLOG+set}" = set; then 12781 enableval="$enable_CHRONOLOG" 12782 ntp_ok=$enableval 12783else 12784 ntp_ok=$ntp_eac 12785fi; 12786if test "$ntp_ok" = "yes"; then 12787 ntp_refclock=yes 12788 cat >>confdefs.h <<\EOF 12789#define CLOCK_CHRONOLOG 1 12790EOF 12791 12792fi 12793echo "$as_me:12793: result: $ntp_ok" >&5 12794echo "${ECHO_T}$ntp_ok" >&6 12795 12796echo "$as_me:12796: checking Dumb generic hh:mm:ss local clock" >&5 12797echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6 12798# Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given. 12799if test "${enable_DUMBCLOCK+set}" = set; then 12800 enableval="$enable_DUMBCLOCK" 12801 ntp_ok=$enableval 12802else 12803 ntp_ok=$ntp_eac 12804fi; 12805if test "$ntp_ok" = "yes"; then 12806 ntp_refclock=yes 12807 cat >>confdefs.h <<\EOF 12808#define CLOCK_DUMBCLOCK 1 12809EOF 12810 12811fi 12812echo "$as_me:12812: result: $ntp_ok" >&5 12813echo "${ECHO_T}$ntp_ok" >&6 12814 12815echo "$as_me:12815: checking Conrad parallel port radio clock" >&5 12816echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6 12817# Check whether --enable-PCF or --disable-PCF was given. 12818if test "${enable_PCF+set}" = set; then 12819 enableval="$enable_PCF" 12820 ntp_ok=$enableval 12821else 12822 ntp_ok=$ntp_eac 12823fi; 12824if test "$ntp_ok" = "yes"; then 12825 ntp_refclock=yes 12826 cat >>confdefs.h <<\EOF 12827#define CLOCK_PCF 1 12828EOF 12829 12830fi 12831echo "$as_me:12831: result: $ntp_ok" >&5 12832echo "${ECHO_T}$ntp_ok" >&6 12833 12834echo "$as_me:12834: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 12835echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6 12836# Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given. 12837if test "${enable_SPECTRACOM+set}" = set; then 12838 enableval="$enable_SPECTRACOM" 12839 ntp_ok=$enableval 12840else 12841 ntp_ok=$ntp_eac 12842fi; 12843if test "$ntp_ok" = "yes"; then 12844 ntp_refclock=yes 12845 cat >>confdefs.h <<\EOF 12846#define CLOCK_SPECTRACOM 1 12847EOF 12848 12849fi 12850echo "$as_me:12850: result: $ntp_ok" >&5 12851echo "${ECHO_T}$ntp_ok" >&6 12852 12853# Not on a vax-dec-bsd 12854echo "$as_me:12854: checking Kinemetrics/TrueTime receivers" >&5 12855echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6 12856# Check whether --enable-TRUETIME or --disable-TRUETIME was given. 12857if test "${enable_TRUETIME+set}" = set; then 12858 enableval="$enable_TRUETIME" 12859 ntp_ok=$enableval 12860else 12861 case "$target" in 12862 vax-dec-bsd) 12863 ntp_ok=no 12864 ;; 12865 *) 12866 ntp_ok=$ntp_eac 12867 ;; 12868 esac 12869fi; 12870if test "$ntp_ok" = "yes"; then 12871 ntp_refclock=yes 12872 cat >>confdefs.h <<\EOF 12873#define CLOCK_TRUETIME 1 12874EOF 12875 12876fi 12877echo "$as_me:12877: result: $ntp_ok" >&5 12878echo "${ECHO_T}$ntp_ok" >&6 12879case "$ntp_ok$target" in 12880 yesvax-dec-bsd) { echo "$as_me:12880: WARNING: *** But the expected answer is... no ***" >&5 12881echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 12882esac 12883 12884echo "$as_me:12884: checking Ultralink M320 WWVB receiver" >&5 12885echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6 12886# Check whether --enable-ULINK or --disable-ULINK was given. 12887if test "${enable_ULINK+set}" = set; then 12888 enableval="$enable_ULINK" 12889 ntp_ok=$enableval 12890else 12891 ntp_ok=$ntp_eac 12892fi; 12893if test "$ntp_ok" = "yes"; then 12894 ntp_refclock=yes 12895 cat >>confdefs.h <<\EOF 12896#define CLOCK_ULINK 1 12897EOF 12898 12899fi 12900echo "$as_me:12900: result: $ntp_ok" >&5 12901echo "${ECHO_T}$ntp_ok" >&6 12902 12903echo "$as_me:12903: checking WWV receiver" >&5 12904echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6 12905# Check whether --enable-WWV or --disable-WWV was given. 12906if test "${enable_WWV+set}" = set; then 12907 enableval="$enable_WWV" 12908 ntp_ok=$enableval 12909else 12910 case "$ntp_eac$ntp_canaudio" in 12911 *no*) ntp_ok=no ;; 12912 *) ntp_ok=yes ;; 12913 esac 12914fi; 12915if test "$ntp_ok" = "yes"; then 12916 ntp_refclock=yes 12917 cat >>confdefs.h <<\EOF 12918#define CLOCK_WWV 1 12919EOF 12920 12921fi 12922echo "$as_me:12922: result: $ntp_ok" >&5 12923echo "${ECHO_T}$ntp_ok" >&6 12924case "$ntp_ok$ntp_canaudio" in 12925 yesno) { echo "$as_me:12925: WARNING: *** But the expected answer is... no ***" >&5 12926echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 12927esac 12928 12929# Requires modem control 12930echo "$as_me:12930: checking USNO modem service" >&5 12931echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6 12932# Check whether --enable-USNO or --disable-USNO was given. 12933if test "${enable_USNO+set}" = set; then 12934 enableval="$enable_USNO" 12935 ntp_ok=$enableval 12936else 12937 cat >conftest.$ac_ext <<_ACEOF 12938#line 12938 "configure" 12939#include "confdefs.h" 12940#include <termios.h> 12941#ifdef HAVE_SYS_IOCTL_H 12942#include <sys/ioctl.h> 12943#endif 12944#ifdef TIOCMBIS 12945 yes 12946#endif 12947 12948_ACEOF 12949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12950 egrep "yes" >/dev/null 2>&1; then 12951 ntp_ok=$ntp_eac 12952else 12953 ntp_ok=no 12954fi 12955rm -f conftest* 12956 12957fi; 12958if test "$ntp_ok" = "yes"; then 12959 ntp_refclock=yes 12960 cat >>confdefs.h <<\EOF 12961#define CLOCK_USNO 1 12962EOF 12963 12964fi 12965echo "$as_me:12965: result: $ntp_ok" >&5 12966echo "${ECHO_T}$ntp_ok" >&6 12967 12968echo "$as_me:12968: checking for default inclusion of all suitable PARSE clocks" >&5 12969echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6 12970# Check whether --enable-parse-clocks or --disable-parse-clocks was given. 12971if test "${enable_parse_clocks+set}" = set; then 12972 enableval="$enable_parse_clocks" 12973 ntp_eapc=$enableval 12974else 12975 case "$ntp_eac" in 12976 yes) ntp_eapc=$ntp_canparse ;; 12977 *) ntp_eapc=no ;; 12978 esac 12979 ntp_eapc=no 12980fi; 12981echo "$as_me:12981: result: $ntp_eapc" >&5 12982echo "${ECHO_T}$ntp_eapc" >&6 12983 12984case "$ntp_eac$ntp_eapc$ntp_canparse" in 12985 noyes*) 12986 { { echo "$as_me:12986: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5 12987echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;} 12988 { (exit 1); exit 1; }; } 12989 ;; 12990 yesyesno) 12991 { { echo "$as_me:12991: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5 12992echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;} 12993 { (exit 1); exit 1; }; } 12994 ;; 12995 *) ;; 12996esac 12997 12998ntp_libparse=no 12999ntp_parseutil=no 13000ntp_rawdcf=no 13001 13002echo "$as_me:13002: checking Diem Computime Radio Clock" >&5 13003echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6 13004# Check whether --enable-COMPUTIME or --disable-COMPUTIME was given. 13005if test "${enable_COMPUTIME+set}" = set; then 13006 enableval="$enable_COMPUTIME" 13007 ntp_ok=$enableval 13008else 13009 ntp_ok=$ntp_eapc 13010fi; 13011if test "$ntp_ok" = "yes"; then 13012 ntp_libparse=yes 13013 ntp_refclock=yes 13014 cat >>confdefs.h <<\EOF 13015#define CLOCK_COMPUTIME 1 13016EOF 13017 13018fi 13019echo "$as_me:13019: result: $ntp_ok" >&5 13020echo "${ECHO_T}$ntp_ok" >&6 13021case "$ntp_ok$ntp_canparse" in 13022 yesno) 13023 { { echo "$as_me:13023: error: That's a parse clock and this system doesn't support it!" >&5 13024echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13025 { (exit 1); exit 1; }; } 13026 ;; 13027esac 13028 13029echo "$as_me:13029: checking ELV/DCF7000 clock" >&5 13030echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6 13031# Check whether --enable-DCF7000 or --disable-DCF7000 was given. 13032if test "${enable_DCF7000+set}" = set; then 13033 enableval="$enable_DCF7000" 13034 ntp_ok=$enableval 13035else 13036 ntp_ok=$ntp_eapc 13037fi; 13038if test "$ntp_ok" = "yes"; then 13039 ntp_libparse=yes 13040 ntp_refclock=yes 13041 cat >>confdefs.h <<\EOF 13042#define CLOCK_DCF7000 1 13043EOF 13044 13045fi 13046echo "$as_me:13046: result: $ntp_ok" >&5 13047echo "${ECHO_T}$ntp_ok" >&6 13048case "$ntp_ok$ntp_canparse" in 13049 yesno) 13050 { { echo "$as_me:13050: error: That's a parse clock and this system doesn't support it!" >&5 13051echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13052 { (exit 1); exit 1; }; } 13053 ;; 13054esac 13055 13056echo "$as_me:13056: checking HOPF 6021 clock" >&5 13057echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6 13058# Check whether --enable-HOPF6021 or --disable-HOPF6021 was given. 13059if test "${enable_HOPF6021+set}" = set; then 13060 enableval="$enable_HOPF6021" 13061 ntp_ok=$enableval 13062else 13063 ntp_ok=$ntp_eapc 13064fi; 13065if test "$ntp_ok" = "yes"; then 13066 ntp_libparse=yes 13067 ntp_refclock=yes 13068 cat >>confdefs.h <<\EOF 13069#define CLOCK_HOPF6021 1 13070EOF 13071 13072fi 13073echo "$as_me:13073: result: $ntp_ok" >&5 13074echo "${ECHO_T}$ntp_ok" >&6 13075case "$ntp_ok$ntp_canparse" in 13076 yesno) 13077 { { echo "$as_me:13077: error: That's a parse clock and this system doesn't support it!" >&5 13078echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13079 { (exit 1); exit 1; }; } 13080 ;; 13081esac 13082 13083echo "$as_me:13083: checking Meinberg clocks" >&5 13084echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6 13085# Check whether --enable-MEINBERG or --disable-MEINBERG was given. 13086if test "${enable_MEINBERG+set}" = set; then 13087 enableval="$enable_MEINBERG" 13088 ntp_ok=$enableval 13089else 13090 ntp_ok=$ntp_eapc 13091fi; 13092if test "$ntp_ok" = "yes"; then 13093 ntp_libparse=yes 13094 ntp_refclock=yes 13095 cat >>confdefs.h <<\EOF 13096#define CLOCK_MEINBERG 1 13097EOF 13098 13099fi 13100echo "$as_me:13100: result: $ntp_ok" >&5 13101echo "${ECHO_T}$ntp_ok" >&6 13102case "$ntp_ok$ntp_canparse" in 13103 yesno) 13104 { { echo "$as_me:13104: error: That's a parse clock and this system doesn't support it!" >&5 13105echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13106 { (exit 1); exit 1; }; } 13107 ;; 13108esac 13109 13110echo "$as_me:13110: checking DCF77 raw time code" >&5 13111echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6 13112# Check whether --enable-RAWDCF or --disable-RAWDCF was given. 13113if test "${enable_RAWDCF+set}" = set; then 13114 enableval="$enable_RAWDCF" 13115 ntp_ok=$enableval 13116else 13117 ntp_ok=$ntp_eapc 13118fi; 13119if test "$ntp_ok" = "yes"; then 13120 ntp_libparse=yes 13121 ntp_parseutil=yes 13122 ntp_refclock=yes 13123 ntp_rawdcf=yes 13124 cat >>confdefs.h <<\EOF 13125#define CLOCK_RAWDCF 1 13126EOF 13127 13128fi 13129echo "$as_me:13129: result: $ntp_ok" >&5 13130echo "${ECHO_T}$ntp_ok" >&6 13131case "$ntp_ok$ntp_canparse" in 13132 yesno) 13133 { { echo "$as_me:13133: error: That's a parse clock and this system doesn't support it!" >&5 13134echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13135 { (exit 1); exit 1; }; } 13136 ;; 13137esac 13138 13139case "$ntp_rawdcf" in 13140 yes) 13141 echo "$as_me:13141: checking if we must enable parity for RAWDCF" >&5 13142echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6 13143if test "${ac_cv_var_rawdcf_parity+set}" = set; then 13144 echo $ECHO_N "(cached) $ECHO_C" >&6 13145else 13146 ans=no 13147 case "$target" in 13148 *-*-linux*) 13149 ans=yes 13150 ;; 13151 esac 13152 ac_cv_var_rawdcf_parity=$ans 13153fi 13154echo "$as_me:13154: result: $ac_cv_var_rawdcf_parity" >&5 13155echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6 13156 case "$ac_cv_var_rawdcf_parity" in 13157 yes) cat >>confdefs.h <<\EOF 13158#define RAWDCF_NO_IGNPAR 1 13159EOF 13160 ;; 13161 esac 13162 ;; 13163 13164 *) # HMS: Is this a good idea? 13165 ac_cv_var_rawdcf_parity=no 13166 ;; 13167esac 13168 13169echo "$as_me:13169: checking RCC 8000 clock" >&5 13170echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6 13171# Check whether --enable-RCC8000 or --disable-RCC8000 was given. 13172if test "${enable_RCC8000+set}" = set; then 13173 enableval="$enable_RCC8000" 13174 ntp_ok=$enableval 13175else 13176 ntp_ok=$ntp_eapc 13177fi; 13178if test "$ntp_ok" = "yes"; then 13179 ntp_libparse=yes 13180 ntp_refclock=yes 13181 cat >>confdefs.h <<\EOF 13182#define CLOCK_RCC8000 1 13183EOF 13184 13185fi 13186echo "$as_me:13186: result: $ntp_ok" >&5 13187echo "${ECHO_T}$ntp_ok" >&6 13188case "$ntp_ok$ntp_canparse" in 13189 yesno) 13190 { { echo "$as_me:13190: error: That's a parse clock and this system doesn't support it!" >&5 13191echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13192 { (exit 1); exit 1; }; } 13193 ;; 13194esac 13195 13196echo "$as_me:13196: checking Schmid DCF77 clock" >&5 13197echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6 13198# Check whether --enable-SCHMID or --disable-SCHMID was given. 13199if test "${enable_SCHMID+set}" = set; then 13200 enableval="$enable_SCHMID" 13201 ntp_ok=$enableval 13202else 13203 ntp_ok=$ntp_eapc 13204fi; 13205if test "$ntp_ok" = "yes"; then 13206 ntp_libparse=yes 13207 ntp_refclock=yes 13208 cat >>confdefs.h <<\EOF 13209#define CLOCK_SCHMID 1 13210EOF 13211 13212fi 13213echo "$as_me:13213: result: $ntp_ok" >&5 13214echo "${ECHO_T}$ntp_ok" >&6 13215case "$ntp_ok$ntp_canparse" in 13216 yesno) 13217 { { echo "$as_me:13217: error: That's a parse clock and this system doesn't support it!" >&5 13218echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13219 { (exit 1); exit 1; }; } 13220 ;; 13221esac 13222 13223echo "$as_me:13223: checking Trimble GPS receiver/TAIP protocol" >&5 13224echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6 13225# Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given. 13226if test "${enable_TRIMTAIP+set}" = set; then 13227 enableval="$enable_TRIMTAIP" 13228 ntp_ok=$enableval 13229else 13230 ntp_ok=$ntp_eapc 13231fi; 13232if test "$ntp_ok" = "yes"; then 13233 ntp_libparse=yes 13234 ntp_refclock=yes 13235 cat >>confdefs.h <<\EOF 13236#define CLOCK_TRIMTAIP 1 13237EOF 13238 13239fi 13240echo "$as_me:13240: result: $ntp_ok" >&5 13241echo "${ECHO_T}$ntp_ok" >&6 13242case "$ntp_ok$ntp_canparse" in 13243 yesno) 13244 { { echo "$as_me:13244: error: That's a parse clock and this system doesn't support it!" >&5 13245echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13246 { (exit 1); exit 1; }; } 13247 ;; 13248esac 13249 13250echo "$as_me:13250: checking Trimble GPS receiver/TSIP protocol" >&5 13251echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6 13252# Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given. 13253if test "${enable_TRIMTSIP+set}" = set; then 13254 enableval="$enable_TRIMTSIP" 13255 ntp_ok=$enableval 13256else 13257 ntp_ok=$ntp_eapc 13258fi; 13259if test "$ntp_ok" = "yes"; then 13260 ntp_libparse=yes 13261 ntp_refclock=yes 13262 cat >>confdefs.h <<\EOF 13263#define CLOCK_TRIMTSIP 1 13264EOF 13265 13266fi 13267echo "$as_me:13267: result: $ntp_ok" >&5 13268echo "${ECHO_T}$ntp_ok" >&6 13269case "$ntp_ok$ntp_canparse" in 13270 yesno) 13271 { { echo "$as_me:13271: error: That's a parse clock and this system doesn't support it!" >&5 13272echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13273 { (exit 1); exit 1; }; } 13274 ;; 13275esac 13276 13277echo "$as_me:13277: checking WHARTON 400A Series clock" >&5 13278echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6 13279# Check whether --enable-WHARTON or --disable-WHARTON was given. 13280if test "${enable_WHARTON+set}" = set; then 13281 enableval="$enable_WHARTON" 13282 ntp_ok=$enableval 13283else 13284 ntp_ok=$ntp_eapc 13285fi; 13286if test "$ntp_ok" = "yes"; then 13287 ntp_libparse=yes 13288 ntp_refclock=yes 13289 cat >>confdefs.h <<\EOF 13290#define CLOCK_WHARTON_400A 1 13291EOF 13292 13293fi 13294echo "$as_me:13294: result: $ntp_ok" >&5 13295echo "${ECHO_T}$ntp_ok" >&6 13296case "$ntp_ok$ntp_canparse" in 13297 yesno) 13298 { { echo "$as_me:13298: error: That's a parse clock and this system doesn't support it!" >&5 13299echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13300 { (exit 1); exit 1; }; } 13301 ;; 13302esac 13303 13304echo "$as_me:13304: checking VARITEXT clock" >&5 13305echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6 13306# Check whether --enable-VARITEXT or --disable-VARITEXT was given. 13307if test "${enable_VARITEXT+set}" = set; then 13308 enableval="$enable_VARITEXT" 13309 ntp_ok=$enableval 13310else 13311 ntp_ok=$ntp_eapc 13312fi; 13313if test "$ntp_ok" = "yes"; then 13314 ntp_libparse=yes 13315 ntp_refclock=yes 13316 cat >>confdefs.h <<\EOF 13317#define CLOCK_VARITEXT 1 13318EOF 13319 13320fi 13321echo "$as_me:13321: result: $ntp_ok" >&5 13322echo "${ECHO_T}$ntp_ok" >&6 13323case "$ntp_ok$ntp_canparse" in 13324 yesno) 13325 { { echo "$as_me:13325: error: That's a parse clock and this system doesn't support it!" >&5 13326echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 13327 { (exit 1); exit 1; }; } 13328 ;; 13329esac 13330 13331echo "$as_me:13331: checking if we need to make and use the parse libraries" >&5 13332echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6 13333ans=no 13334case "$ntp_libparse" in 13335 yes) 13336 ans=yes 13337 cat >>confdefs.h <<\EOF 13338#define CLOCK_PARSE 1 13339EOF 13340 13341 LIBPARSE=../libparse/libparse.a 13342 MAKE_LIBPARSE=libparse.a 13343 MAKE_CHECK_Y2K=check_y2k 13344 cat >>confdefs.h <<\EOF 13345#define PPS_SAMPLE 1 13346EOF 13347 13348 cat >>confdefs.h <<\EOF 13349#define CLOCK_ATOM 1 13350EOF 13351 13352 ;; 13353esac 13354echo "$as_me:13354: result: $ans" >&5 13355echo "${ECHO_T}$ans" >&6 13356 13357echo "$as_me:13357: checking for openssl library directory" >&5 13358echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6 13359 13360# Check whether --with-openssl-libdir or --without-openssl-libdir was given. 13361if test "${with_openssl_libdir+set}" = set; then 13362 withval="$with_openssl_libdir" 13363 ans=$withval 13364else 13365 ans=yes 13366fi; 13367case "$ans" in 13368 no) ;; 13369 yes) # Look in: 13370 ans="/usr/lib /usr/local/lib /usr/local/ssl/lib" 13371 ;; 13372 *) # Look where they said 13373 ;; 13374esac 13375case "$ans" in 13376 no) ;; 13377 *) # Look for libcrypto.a and libssl.a: 13378 for i in $ans no 13379 do 13380 test -f $i/libcrypto.a -a -f $i/libssl.a && break 13381 done 13382 case "$i" in 13383 no) 13384 ans=no 13385 OPENSSL_LIB= 13386 ;; 13387 *) ans=$i 13388 OPENSSL_LIB=$ans 13389 ;; 13390 esac 13391 ;; 13392esac 13393echo "$as_me:13393: result: $ans" >&5 13394echo "${ECHO_T}$ans" >&6 13395 13396echo "$as_me:13396: checking for openssl include directory" >&5 13397echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6 13398 13399# Check whether --with-openssl-incdir or --without-openssl-incdir was given. 13400if test "${with_openssl_incdir+set}" = set; then 13401 withval="$with_openssl_incdir" 13402 ans=$withval 13403else 13404 ans=yes 13405fi; 13406case "$ans" in 13407 no) ;; 13408 yes) # look in: 13409 ans="/usr/include /usr/local/include /usr/local/ssl/include" 13410 ;; 13411 *) # Look where they said 13412 ;; 13413esac 13414case "$ans" in 13415 no) ;; 13416 *) # look for openssl/opensslconf.h: 13417 for i in $ans no 13418 do 13419 test -f $i/openssl/opensslconf.h && break 13420 done 13421 case "$i" in 13422 no) 13423 ans=no 13424 OPENSSL_INC= 13425 ;; 13426 *) ans=$i 13427 OPENSSL_INC=$ans 13428 ;; 13429 esac 13430 ;; 13431esac 13432echo "$as_me:13432: result: $ans" >&5 13433echo "${ECHO_T}$ans" >&6 13434 13435echo "$as_me:13435: checking for the level of crypto support" >&5 13436echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6 13437 13438# Check whether --with-crypto or --without-crypto was given. 13439if test "${with_crypto+set}" = set; then 13440 withval="$with_crypto" 13441 ans=$withval 13442else 13443 ans=yes 13444fi; 13445case "$ans" in 13446 no) ;; 13447 yes|rsaref|openssl) 13448 case "$ans" in 13449 yes|rsaref) # Just "rsaref" when OpenSSL is ready 13450 ans=no 13451 ;; 13452 *) 13453 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC" 13454 then 13455 ans=no 13456 else 13457 # We have OpenSSL inc/lib - use them. 13458 ans=openssl 13459 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC" 13460 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB" 13461 LIBS="$LIBS -lcrypto" 13462 cat >>confdefs.h <<\EOF 13463#define DES 1 13464EOF 13465 13466cat >>confdefs.h <<\EOF 13467#define OPENSSL 13468EOF 13469 13470cat >>confdefs.h <<\EOF 13471#define PUBKEY 13472EOF 13473 13474 fi 13475 ;; 13476 esac 13477 13478 case "$ans" in 13479 no) 13480 if test -f $srcdir/rsaref2/source/digit.c 13481 then 13482 ans=rsaref 13483 RSAOBJS=digit.o 13484 RSASRCS="digit.c digit.h" 13485 RSADIR=rsaref2 13486 fi 13487 if test -f $srcdir/rsaeuro1/source/rsaeuro.h 13488 then 13489 ans=rsaref 13490 RSAOBJS="md4c.o shsc.o" 13491 RSASRCS="md4c.c shsc.c" 13492 RSADIR=rsaeuro1 13493 fi 13494 if test "$ans" = "rsaref"; then 13495 LIBRSAREF=../librsaref/librsaref.a 13496 MAKE_LIBRSAREF=librsaref.a 13497 cat >>confdefs.h <<\EOF 13498#define DES 1 13499EOF 13500 13501 cat >>confdefs.h <<\EOF 13502#define PUBKEY 1 13503EOF 13504 13505cat >>confdefs.h <<\EOF 13506#define RSAREF 13507EOF 13508 13509 fi 13510 ;; 13511 esac 13512 ;; 13513esac 13514 13515case "$ans" in 13516 no) ;; 13517 *) 13518 13519cat >>confdefs.h <<\EOF 13520#define AUTOKEY 13521EOF 13522 13523 AUTOKEY=1 13524 ;; 13525esac 13526echo "$as_me:13526: result: $ans" >&5 13527echo "${ECHO_T}$ans" >&6 13528 13529echo "$as_me:13529: checking if we want to compile with ElectricFence" >&5 13530echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6 13531 13532# Check whether --with-electricfence or --without-electricfence was given. 13533if test "${with_electricfence+set}" = set; then 13534 withval="$with_electricfence" 13535 ans=$withval 13536else 13537 ans=no 13538fi; 13539case "$ans" in 13540 no) ;; 13541 *) 13542 LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a" 13543 EF_PROGS="eftest tstheap" 13544 13545 EF_LIBS=libefence.a 13546 13547 ans=yes 13548 ;; 13549esac 13550echo "$as_me:13550: result: $ans" >&5 13551echo "${ECHO_T}$ans" >&6 13552 13553echo "$as_me:13553: checking if we can make dcf parse utilities" >&5 13554echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6 13555ans=no 13556if test "$ntp_parseutil" = "yes"; then 13557 case "$target" in 13558 *-*-sunos4*|*-*-solaris2*|*-*-linux*) 13559 ans="dcfd testdcf" 13560 DCFD=dcfd 13561 TESTDCF=testdcf 13562 ;; 13563 esac 13564fi 13565echo "$as_me:13565: result: $ans" >&5 13566echo "${ECHO_T}$ans" >&6 13567 13568echo "$as_me:13568: checking if we can build kernel streams modules for parse" >&5 13569echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6 13570ans=no 13571case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 13572 yesyes) 13573 case "$target" in 13574 sparc-*-sunos4*) 13575 case "$ac_cv_var_kernel_pll" in 13576 yes) 13577 cat >>confdefs.h <<\EOF 13578#define PPS_SYNC 1 13579EOF 13580 13581 ;; 13582 esac 13583 ans=parsestreams 13584 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 13585 ;; 13586 sparc-*-solaris2*) 13587 ans=parsesolaris 13588 MAKE_PARSEKMODULE=parse 13589 ;; 13590 esac 13591 ;; 13592esac 13593echo "$as_me:13593: result: $ans" >&5 13594echo "${ECHO_T}$ans" >&6 13595 13596echo "$as_me:13596: checking if we need basic refclock support" >&5 13597echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6 13598if test "$ntp_refclock" = "yes"; then 13599 cat >>confdefs.h <<\EOF 13600#define REFCLOCK 1 13601EOF 13602 13603fi 13604echo "$as_me:13604: result: $ntp_refclock" >&5 13605echo "${ECHO_T}$ntp_refclock" >&6 13606 13607echo "$as_me:13607: checking if we want HP-UX adjtimed support" >&5 13608echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6 13609case "$target" in 13610 *-*-hpux[56789]*) 13611 ans=yes 13612 ;; 13613 *) ans=no 13614 ;; 13615esac 13616if test "$ans" = "yes"; then 13617 MAKE_ADJTIMED=adjtimed 13618 cat >>confdefs.h <<\EOF 13619#define NEED_HPUX_ADJTIME 1 13620EOF 13621 13622fi 13623echo "$as_me:13623: result: $ans" >&5 13624echo "${ECHO_T}$ans" >&6 13625 13626echo "$as_me:13626: checking if we can read kmem" >&5 13627echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6 13628if test "${ac_cv_var_can_kmem+set}" = set; then 13629 echo $ECHO_N "(cached) $ECHO_C" >&6 13630else 13631 # Check whether --enable-kmem or --disable-kmem was given. 13632if test "${enable_kmem+set}" = set; then 13633 enableval="$enable_kmem" 13634 ans=$enableval 13635else 13636 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 13637 *yes*) 13638 ans=yes 13639 ;; 13640 *) ans=no 13641 ;; 13642 esac 13643 case "$target" in 13644 *-*-aix*) 13645 #ans=no 13646 ;; 13647 *-*-domainos) # Won't be found... 13648 ans=no 13649 ;; 13650 *-*-hpux*) 13651 #ans=no 13652 ;; 13653 *-*-irix[456]*) 13654 ans=no 13655 ;; 13656 *-*-linux*) 13657 ans=no 13658 ;; 13659 *-*-winnt3.5) 13660 ans=no 13661 ;; 13662 esac 13663 13664fi; 13665ac_cv_var_can_kmem=$ans 13666fi 13667echo "$as_me:13667: result: $ac_cv_var_can_kmem" >&5 13668echo "${ECHO_T}$ac_cv_var_can_kmem" >&6 13669 13670case "$ac_cv_var_can_kmem" in 13671 *yes*) ;; 13672 *) cat >>confdefs.h <<\EOF 13673#define NOKMEM 1 13674EOF 13675 ;; 13676esac 13677 13678echo "$as_me:13678: checking if adjtime is accurate" >&5 13679echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6 13680if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then 13681 echo $ECHO_N "(cached) $ECHO_C" >&6 13682else 13683 # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given. 13684if test "${enable_accurate_adjtime+set}" = set; then 13685 enableval="$enable_accurate_adjtime" 13686 ans=$enableval 13687else 13688 case "$target" in 13689 i386-sequent-ptx*) 13690 ans=no 13691 ;; 13692 i386-unknown-osf1*) 13693 ans=yes 13694 ;; 13695 mips-sgi-irix[456]*) 13696 ans=yes 13697 ;; 13698 *-fujitsu-uxp*) 13699 ans=yes 13700 ;; 13701 *-ibm-aix4*) 13702 ans=yes 13703 ;; 13704 *-*-linux*) 13705 ans=yes 13706 ;; 13707 *-*-solaris2.[01]*) 13708 ans=no 13709 ;; 13710 *-*-solaris2*) 13711 ans=yes 13712 ;; 13713 *) ans=no 13714 ;; 13715 esac 13716 13717fi; 13718ac_cv_var_adjtime_is_accurate=$ans 13719fi 13720echo "$as_me:13720: result: $ac_cv_var_adjtime_is_accurate" >&5 13721echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6 13722case "$ac_cv_var_adjtime_is_accurate" in 13723 yes) cat >>confdefs.h <<\EOF 13724#define ADJTIME_IS_ACCURATE 1 13725EOF 13726 ;; 13727esac 13728 13729echo "$as_me:13729: checking the name of 'tick' in the kernel" >&5 13730echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6 13731if test "${ac_cv_var_nlist_tick+set}" = set; then 13732 echo $ECHO_N "(cached) $ECHO_C" >&6 13733else 13734 ans=_tick 13735case "$target" in 13736 m68*-hp-hpux*) # HP9000/300? 13737 ans=_old_tick 13738 ;; 13739 *-apple-aux[23]*) 13740 ans=tick 13741 ;; 13742 *-hp-hpux*) 13743 ans=old_tick 13744 ;; 13745 *-ibm-aix[34]*) 13746 ans=no 13747 ;; 13748 *-*-ptx*) 13749 ans=tick 13750 ;; 13751 *-*-sco3.2v[45]*) 13752 ans=no 13753 ;; 13754 *-*-solaris2*) 13755 ans=nsec_per_tick 13756 ;; 13757 *-*-sysv4*) 13758 ans=tick 13759 ;; 13760esac 13761ac_cv_var_nlist_tick=$ans 13762fi 13763echo "$as_me:13763: result: $ac_cv_var_nlist_tick" >&5 13764echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6 13765case "$ac_cv_var_nlist_tick" in 13766 ''|no) ;; # HMS: I think we can only get 'no' here... 13767 *) cat >>confdefs.h <<EOF 13768#define K_TICK_NAME "$ac_cv_var_nlist_tick" 13769EOF 13770 ;; 13771esac 13772# 13773echo "$as_me:13773: checking for the units of 'tick'" >&5 13774echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6 13775if test "${ac_cv_var_tick_nano+set}" = set; then 13776 echo $ECHO_N "(cached) $ECHO_C" >&6 13777else 13778 ans=usec 13779case "$target" in 13780 *-*-solaris2*) 13781 ans=nsec 13782 ;; 13783esac 13784ac_cv_var_tick_nano=$ans 13785fi 13786echo "$as_me:13786: result: $ac_cv_var_tick_nano" >&5 13787echo "${ECHO_T}$ac_cv_var_tick_nano" >&6 13788case "$ac_cv_var_tick_nano" in 13789 nsec) 13790 cat >>confdefs.h <<\EOF 13791#define TICK_NANO 1 13792EOF 13793 13794 ;; 13795esac 13796# 13797echo "$as_me:13797: checking the name of 'tickadj' in the kernel" >&5 13798echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6 13799if test "${ac_cv_var_nlist_tickadj+set}" = set; then 13800 echo $ECHO_N "(cached) $ECHO_C" >&6 13801else 13802 ans=_tickadj 13803case "$target" in 13804 m68*-hp-hpux*) # HP9000/300? 13805 ans=_tickadj 13806 ;; 13807 *-apple-aux[23]*) 13808 ans=tickadj 13809 ;; 13810 *-hp-hpux10*) 13811 ans=no 13812 ;; 13813 *-hp-hpux9*) 13814 ans=no 13815 ;; 13816 *-hp-hpux*) 13817 ans=tickadj 13818 ;; 13819 *-*-aix*) 13820 ans=tickadj 13821 ;; 13822 *-*-ptx*) 13823 ans=tickadj 13824 ;; 13825 *-*-sco3.2v4*) 13826 ans=no 13827 ;; 13828 *-*-sco3.2v5.0*) 13829 ans=clock_drift 13830 ;; 13831 *-*-solaris2*) 13832 ans=no # hrestime_adj 13833 ;; 13834 *-*-sysv4*) 13835 ans=tickadj 13836 ;; 13837esac 13838ac_cv_var_nlist_tickadj=$ans 13839fi 13840echo "$as_me:13840: result: $ac_cv_var_nlist_tickadj" >&5 13841echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6 13842case "$ac_cv_var_nlist_tickadj" in 13843 ''|no) ;; # HMS: I think we can only get 'no' here... 13844 *) cat >>confdefs.h <<EOF 13845#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj" 13846EOF 13847 ;; 13848esac 13849# 13850echo "$as_me:13850: checking for the units of 'tickadj'" >&5 13851echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6 13852if test "${ac_cv_var_tickadj_nano+set}" = set; then 13853 echo $ECHO_N "(cached) $ECHO_C" >&6 13854else 13855 ans=usec 13856case "$target" in 13857 *-*-solaris2*) 13858 ans=nsec 13859 ;; 13860esac 13861ac_cv_var_tickadj_nano=$ans 13862fi 13863echo "$as_me:13863: result: $ac_cv_var_tickadj_nano" >&5 13864echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6 13865case "$ac_cv_var_tickadj_nano" in 13866 nsec) 13867 cat >>confdefs.h <<\EOF 13868#define TICKADJ_NANO 1 13869EOF 13870 13871 ;; 13872esac 13873# 13874echo "$as_me:13874: checking half-heartedly for 'dosynctodr' in the kernel" >&5 13875echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6 13876if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then 13877 echo $ECHO_N "(cached) $ECHO_C" >&6 13878else 13879 case "$target" in 13880 *-apple-aux[23]*) 13881 ans=no 13882 ;; 13883 *-sni-sysv*) 13884 ans=dosynctodr 13885 ;; 13886 *-*-aix*) 13887 ans=dosynctodr 13888 ;; 13889 *-*-hpux*) 13890 ans=no 13891 ;; 13892 *-*-nextstep*) 13893 ans=_dosynctodr 13894 ;; 13895 *-*-ptx*) 13896 ans=doresettodr 13897 ;; 13898 *-*-sco3.2v4*) 13899 ans=no 13900 ;; 13901 *-*-sco3.2v5*) 13902 ans=track_rtc 13903 ;; 13904 *-*-solaris2*) 13905 ans=dosynctodr 13906 ;; 13907 *-*-sysv4*) 13908 ans=doresettodr 13909 ;; 13910 *) 13911 ans=_dosynctodr 13912 ;; 13913esac 13914ac_cv_var_nlist_dosynctodr=$ans 13915fi 13916echo "$as_me:13916: result: $ac_cv_var_nlist_dosynctodr" >&5 13917echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6 13918case "$ac_cv_var_nlist_dosynctodr" in 13919 no) ;; 13920 *) cat >>confdefs.h <<EOF 13921#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr" 13922EOF 13923 13924 ;; 13925esac 13926# 13927echo "$as_me:13927: checking half-heartedly for 'noprintf' in the kernel" >&5 13928echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6 13929if test "${ac_cv_var_nlist_noprintf+set}" = set; then 13930 echo $ECHO_N "(cached) $ECHO_C" >&6 13931else 13932 case "$target" in 13933 *-apple-aux[23]*) 13934 ans=no 13935 ;; 13936 *-sni-sysv*) 13937 ans=noprintf 13938 ;; 13939 *-*-aix*) 13940 ans=noprintf 13941 ;; 13942 *-*-hpux*) 13943 ans=no 13944 ;; 13945 *-*-ptx*) 13946 ans=noprintf 13947 ;; 13948 *-*-nextstep*) 13949 ans=_noprintf 13950 ;; 13951 *-*-solaris2*) 13952 ans=noprintf 13953 ;; 13954 *-*-sysv4*) 13955 ans=noprintf 13956 ;; 13957 *) 13958 ans=_noprintf 13959 ;; 13960esac 13961ac_cv_var_nlist_noprintf=$ans 13962fi 13963echo "$as_me:13963: result: $ac_cv_var_nlist_noprintf" >&5 13964echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6 13965case "$ac_cv_var_nlist_noprintf" in 13966 no) ;; 13967 *) cat >>confdefs.h <<EOF 13968#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf" 13969EOF 13970 13971 ;; 13972esac 13973 13974echo "$as_me:13974: checking for a default value for 'tick'" >&5 13975echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6 13976if test "${ac_cv_var_tick+set}" = set; then 13977 echo $ECHO_N "(cached) $ECHO_C" >&6 13978else 13979 # Check whether --enable-tick or --disable-tick was given. 13980if test "${enable_tick+set}" = set; then 13981 enableval="$enable_tick" 13982 ans=$enableval 13983else 13984 ans=no 13985 case "$target" in 13986 XXX-*-pc-cygwin*) 13987 ;; 13988 *-univel-sysv*) 13989 ans=10000 13990 ;; 13991 *-*-irix*) 13992 ans=10000 13993 ;; 13994 *-*-linux*) 13995 ans=txc.tick 13996 ;; 13997 *-*-winnt3.5) 13998 ans='(every / 10)' 13999 ;; 14000 *) 14001 ans='1000000L/hz' 14002 ;; 14003 esac 14004fi; 14005ac_cv_var_tick=$ans 14006fi 14007echo "$as_me:14007: result: $ac_cv_var_tick" >&5 14008echo "${ECHO_T}$ac_cv_var_tick" >&6 14009case "$ac_cv_var_tick" in 14010 ''|no) ;; # HMS: I think we can only get 'no' here... 14011 *) cat >>confdefs.h <<EOF 14012#define PRESET_TICK $ac_cv_var_tick 14013EOF 14014 ;; 14015esac 14016 14017echo "$as_me:14017: checking for a default value for 'tickadj'" >&5 14018echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6 14019if test "${ac_cv_var_tickadj+set}" = set; then 14020 echo $ECHO_N "(cached) $ECHO_C" >&6 14021else 14022 # Check whether --enable-tickadj or --disable-tickadj was given. 14023if test "${enable_tickadj+set}" = set; then 14024 enableval="$enable_tickadj" 14025 ans=$enableval 14026else 14027 ans='500/hz' 14028 case "$target" in 14029 *-fujitsu-uxp*) 14030 case "$ac_cv_var_adjtime_is_accurate" in 14031 yes) ans='tick/16' ;; 14032 esac 14033 ;; 14034 XXX-*-pc-cygwin*) 14035 ans=no 14036 ;; 14037 *-univel-sysv*) 14038 ans=80 14039 ;; 14040 *-*-aix*) 14041 case "$ac_cv_var_can_kmem" in 14042 no) ans=1000 ;; 14043 esac 14044 ;; 14045 *-*-domainos) # Skippy: won't be found... 14046 case "$ac_cv_var_can_kmem" in 14047 no) ans=668 ;; 14048 esac 14049 ;; 14050 *-*-hpux*) 14051 case "$ac_cv_var_adjtime_is_accurate" in 14052 yes) ans='tick/16' ;; 14053 esac 14054 ;; 14055 *-*-irix*) 14056 ans=150 14057 ;; 14058 *-*-sco3.2v5.0*) 14059 ans=10000L/hz 14060 ;; 14061 *-*-solaris2*) 14062 case "$ac_cv_var_adjtime_is_accurate" in 14063 yes) 14064 #ans='tick/16' 14065 ;; 14066 esac 14067 ;; 14068 *-*-winnt3.5) 14069 ans=50 14070 ;; 14071 esac 14072fi; 14073ac_cv_var_tickadj=$ans 14074fi 14075echo "$as_me:14075: result: $ac_cv_var_tickadj" >&5 14076echo "${ECHO_T}$ac_cv_var_tickadj" >&6 14077case "$ac_cv_var_tickadj" in 14078 ''|no) ;; # HMS: I think we can only get 'no' here... 14079 *) cat >>confdefs.h <<EOF 14080#define PRESET_TICKADJ $ac_cv_var_tickadj 14081EOF 14082 ;; 14083esac 14084 14085# Newer versions of ReliantUNIX round adjtime() values down to 14086# 1/100s (system tick). Sigh ... 14087# Unfortunately, there is no easy way to know if particular release 14088# has this "feature" or any obvious way to test for it. 14089case "$target" in 14090 mips-sni-sysv4*) cat >>confdefs.h <<\EOF 14091#define RELIANTUNIX_CLOCK 1 14092EOF 14093 ;; 14094esac 14095 14096case "$target" in 14097 *-*-sco3.2v5*) cat >>confdefs.h <<\EOF 14098#define SCO5_CLOCK 1 14099EOF 14100 ;; 14101esac 14102 14103ac_cv_make_tickadj=yes 14104case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in 14105 nonono) # Don't read KMEM, no presets. Bogus. 14106 { echo "$as_me:14106: WARNING: Can't read kmem" >&5 14107echo "$as_me: WARNING: Can't read kmem" >&2;} 14108 ac_cv_make_tickadj=no 14109 ;; 14110 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 14111 { echo "$as_me:14111: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 14112echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 14113 ac_cv_make_tickadj=no 14114 ;; 14115 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 14116 { echo "$as_me:14116: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 14117echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 14118 ac_cv_make_tickadj=no 14119 ;; 14120 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 14121 ;; 14122 yesnono) # Read KMEM, no presets. Cool. 14123 ;; 14124 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 14125 { echo "$as_me:14125: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 14126echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 14127 ;; 14128 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 14129 ;; 14130 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 14131 ;; 14132 *) # Generally bogus. 14133 { { echo "$as_me:14133: error: This shouldn't happen." >&5 14134echo "$as_me: error: This shouldn't happen." >&2;} 14135 { (exit 1); exit 1; }; } 14136 ;; 14137esac 14138 14139echo "$as_me:14139: checking if we want and can make the ntptime utility" >&5 14140echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6 14141if test "${ac_cv_make_ntptime+set}" = set; then 14142 echo $ECHO_N "(cached) $ECHO_C" >&6 14143else 14144 case "$target" in 14145 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in 14146 yesyes) 14147 ans=yes 14148 ;; 14149 *) 14150 ans=no 14151 ;; 14152 esac 14153 ;; 14154esac 14155ac_cv_make_ntptime=$ans 14156fi 14157echo "$as_me:14157: result: $ac_cv_make_ntptime" >&5 14158echo "${ECHO_T}$ac_cv_make_ntptime" >&6 14159case "$ac_cv_make_ntptime" in 14160 yes) 14161 MAKE_NTPTIME=ntptime 14162 ;; 14163esac 14164 14165case "$target" in 14166 mips-sni-sysv4*) 14167 # tickadj is pretty useless on newer versions of ReliantUNIX 14168 # Do not bother 14169 ac_cv_make_tickadj=no 14170 ;; 14171 *-*-irix*) 14172 ac_cv_make_tickadj=no 14173 ;; 14174 *-*-solaris2*) 14175 # DLM says tickadj is a no-no starting with solaris2.5 14176 case "$target" in 14177 *-*-solaris2.0-4*) ;; 14178 *) ac_cv_make_tickadj=no ;; 14179 esac 14180 ;; 14181esac 14182echo "$as_me:14182: checking if we want and can make the tickadj utility" >&5 14183echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6 14184if test "${ac_cv_make_tickadj+set}" = set; then 14185 echo $ECHO_N "(cached) $ECHO_C" >&6 14186else 14187 ac_cv_make_tickadj=yes 14188fi 14189echo "$as_me:14189: result: $ac_cv_make_tickadj" >&5 14190echo "${ECHO_T}$ac_cv_make_tickadj" >&6 14191case "$ac_cv_make_tickadj" in 14192 yes) 14193 MAKE_TICKADJ=tickadj 14194 ;; 14195esac 14196 14197echo "$as_me:14197: checking if we want and can make the timetrim utility" >&5 14198echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6 14199if test "${ac_cv_make_timetrim+set}" = set; then 14200 echo $ECHO_N "(cached) $ECHO_C" >&6 14201else 14202 case "$target" in 14203 *-*-irix*) 14204 ac_cv_make_timetrim=yes 14205 ;; 14206 *) 14207 ac_cv_make_timetrim=no 14208 ;; 14209esac 14210fi 14211echo "$as_me:14211: result: $ac_cv_make_timetrim" >&5 14212echo "${ECHO_T}$ac_cv_make_timetrim" >&6 14213case "$ac_cv_make_timetrim" in 14214 yes) 14215 MAKE_TIMETRIM=timetrim 14216 ;; 14217esac 14218 14219echo "$as_me:14219: checking if we want UDP wildcard delivery" >&5 14220echo $ECHO_N "checking if we want UDP wildcard delivery... $ECHO_C" >&6 14221if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then 14222 echo $ECHO_N "(cached) $ECHO_C" >&6 14223else 14224 # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given. 14225if test "${enable_udp_wildcard+set}" = set; then 14226 enableval="$enable_udp_wildcard" 14227 ans=$enableval 14228else 14229 ans=no 14230 case "$target" in 14231 *-fujitsu-uxp*) 14232 ans=yes 14233 ;; 14234 *-univel-sysv*) 14235 ans=yes 14236 ;; 14237 *-*-aix3.2*) 14238 ans=yes 14239 ;; 14240 *-*-aix4*) 14241 ans=yes 14242 ;; 14243 *-*-bsdi*) 14244 ans=yes 14245 ;; 14246 *-*-domainos) 14247 ans=yes 14248 ;; 14249 *-*-freebsd*) 14250 ans=yes 14251 ;; 14252 *-*-hpux*) 14253 ans=yes 14254 ;; 14255 *-*-irix6*) 14256 ans=yes 14257 ;; 14258 *-*-linux*) 14259 ans=yes 14260 ;; 14261 *-*-osf*) 14262 ans=yes 14263 ;; 14264 *-*-ptx*) 14265 ans=yes 14266 ;; 14267 *-*-solaris2*) 14268 ans=yes 14269 ;; 14270 *-*-sunos4*) 14271 ans=yes 14272 ;; 14273 esac 14274fi; 14275ac_cv_var_udp_wildcard_delivery=$ans 14276fi 14277echo "$as_me:14277: result: $ac_cv_var_udp_wildcard_delivery" >&5 14278echo "${ECHO_T}$ac_cv_var_udp_wildcard_delivery" >&6 14279case "$ac_cv_var_udp_wildcard_delivery" in 14280 yes) cat >>confdefs.h <<\EOF 14281#define UDP_WILDCARD_DELIVERY 1 14282EOF 14283 ;; 14284esac 14285 14286case "$host" in 14287 $target) 14288 ;; 14289 *) case "$target" in 14290 *-*-vxworks*) 14291 LDFLAGS="$LDFLAGS -r" 14292 ;; 14293 esac 14294 ;; 14295esac 14296 14297echo "$as_me:14297: checking if we should always slew the time" >&5 14298echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6 14299if test "${ac_cv_var_slew_always+set}" = set; then 14300 echo $ECHO_N "(cached) $ECHO_C" >&6 14301else 14302 # Check whether --enable-slew-always or --disable-slew-always was given. 14303if test "${enable_slew_always+set}" = set; then 14304 enableval="$enable_slew_always" 14305 ans=$enableval 14306else 14307 case "$target" in 14308 *-apple-aux[23]*) 14309 ans=yes 14310 ;; 14311 *-*-bsdi[012]*) 14312 ans=no 14313 ;; 14314 *-*-bsdi*) 14315 ans=yes 14316 ;; 14317 *-*-openvms*) # HMS: won't be found 14318 ans=yes 14319 ;; 14320 *) ans=no 14321 ;; 14322 esac 14323 14324fi; 14325ac_cv_var_slew_always=$ans 14326fi 14327echo "$as_me:14327: result: $ac_cv_var_slew_always" >&5 14328echo "${ECHO_T}$ac_cv_var_slew_always" >&6 14329case "$ac_cv_var_slew_always" in 14330 yes) cat >>confdefs.h <<\EOF 14331#define SLEWALWAYS 1 14332EOF 14333 ;; 14334esac 14335 14336echo "$as_me:14336: checking if we should step and slew the time" >&5 14337echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6 14338if test "${ac_cv_var_step_slew+set}" = set; then 14339 echo $ECHO_N "(cached) $ECHO_C" >&6 14340else 14341 # Check whether --enable-step-slew or --disable-step-slew was given. 14342if test "${enable_step_slew+set}" = set; then 14343 enableval="$enable_step_slew" 14344 ans=$enableval 14345else 14346 case "$target" in 14347 *-sni-sysv*) 14348 ans=yes 14349 ;; 14350 *-univel-sysv*) 14351 ans=no 14352 ;; 14353 *-*-ptx*) 14354 ans=yes 14355 ;; 14356 *-*-solaris2.[012]*) 14357 ans=yes 14358 ;; 14359 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 14360 ans=yes 14361 ;; 14362 *) ans=no 14363 ;; 14364 esac 14365 14366fi; 14367ac_cv_var_step_slew=$ans 14368fi 14369echo "$as_me:14369: result: $ac_cv_var_step_slew" >&5 14370echo "${ECHO_T}$ac_cv_var_step_slew" >&6 14371case "$ac_cv_var_step_slew" in 14372 yes) cat >>confdefs.h <<\EOF 14373#define STEP_SLEW 1 14374EOF 14375 ;; 14376esac 14377 14378echo "$as_me:14378: checking if ntpdate should step the time" >&5 14379echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6 14380if test "${ac_cv_var_ntpdate_step+set}" = set; then 14381 echo $ECHO_N "(cached) $ECHO_C" >&6 14382else 14383 # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given. 14384if test "${enable_ntpdate_step+set}" = set; then 14385 enableval="$enable_ntpdate_step" 14386 ans=$enableval 14387else 14388 case "$target" in 14389 *-apple-aux[23]*) 14390 ans=yes 14391 ;; 14392 *) ans=no 14393 ;; 14394 esac 14395 14396fi; 14397ac_cv_var_ntpdate_step=$ans 14398fi 14399echo "$as_me:14399: result: $ac_cv_var_ntpdate_step" >&5 14400echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6 14401case "$ac_cv_var_ntpdate_step" in 14402 yes) cat >>confdefs.h <<\EOF 14403#define FORCE_NTPDATE_STEP 1 14404EOF 14405 ;; 14406esac 14407 14408echo "$as_me:14408: checking if we should sync TODR clock every hour" >&5 14409echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6 14410if test "${ac_cv_var_sync_todr+set}" = set; then 14411 echo $ECHO_N "(cached) $ECHO_C" >&6 14412else 14413 # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given. 14414if test "${enable_hourly_todr_sync+set}" = set; then 14415 enableval="$enable_hourly_todr_sync" 14416 ans=$enableval 14417else 14418 case "$target" in 14419 *-*-nextstep*) 14420 ans=yes 14421 ;; 14422 *-*-openvms*) # HMS: won't be found 14423 ans=yes 14424 ;; 14425 *) ans=no 14426 ;; 14427 esac 14428fi; 14429ac_cv_var_sync_todr=$ans 14430fi 14431echo "$as_me:14431: result: $ac_cv_var_sync_todr" >&5 14432echo "${ECHO_T}$ac_cv_var_sync_todr" >&6 14433case "$ac_cv_var_sync_todr" in 14434 yes) cat >>confdefs.h <<\EOF 14435#define DOSYNCTODR 1 14436EOF 14437 ;; 14438esac 14439 14440echo "$as_me:14440: checking if we should avoid kernel FLL bug" >&5 14441echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6 14442if test "${ac_cv_var_kernel_fll_bug+set}" = set; then 14443 echo $ECHO_N "(cached) $ECHO_C" >&6 14444else 14445 # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given. 14446if test "${enable_kernel_fll_bug+set}" = set; then 14447 enableval="$enable_kernel_fll_bug" 14448 ans=$enableval 14449else 14450 case "$target" in 14451 *-*-solaris2.6) 14452 unamev=`uname -v` 14453 case "$unamev" in 14454 Generic_105181-*) 14455 old_IFS="$IFS" 14456 IFS="-" 14457 set $unamev 14458 IFS="$old_IFS" 14459 if test "$2" -ge 17 14460 then 14461 # Generic_105181-17 and higher 14462 ans=no 14463 else 14464 ans=yes 14465 fi 14466 ;; 14467 *) ans=yes 14468 ;; 14469 esac 14470 ;; 14471 *-*-solaris2.7) 14472 unamev=`uname -v` 14473 case "$unamev" in 14474 Generic_106541-*) 14475 old_IFS="$IFS" 14476 IFS="-" 14477 set $unamev 14478 IFS="$old_IFS" 14479 if test "$2" -ge 07 14480 then 14481 # Generic_106541-07 and higher 14482 ans=no 14483 else 14484 ans=yes 14485 fi 14486 ;; 14487 *) ans=yes 14488 ;; 14489 esac 14490 ;; 14491 *) ans=no 14492 ;; 14493 esac 14494 14495fi; 14496ac_cv_var_kernel_fll_bug=$ans 14497fi 14498echo "$as_me:14498: result: $ac_cv_var_kernel_fll_bug" >&5 14499echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6 14500case "$ac_cv_var_kernel_fll_bug" in 14501 yes) cat >>confdefs.h <<\EOF 14502#define KERNEL_FLL_BUG 1 14503EOF 14504 ;; 14505esac 14506 14507case "$host" in 14508 $target) 14509 ;; 14510 *) case "$target" in 14511 *-*-vxworks*) 14512 LDFLAGS="$LDFLAGS -r" 14513 ;; 14514 esac 14515 ;; 14516esac 14517 14518 ac_expanded=`( 14519 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 14520 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 14521 eval echo \""$sysconfdir"\" 14522 )` 14523 14524cat >>confdefs.h <<EOF 14525#define NTP_KEYSDIR "$ac_expanded" 14526EOF 14527 14528# This is necessary so that .o files in LIBOBJS are also built via 14529# the ANSI2KNR-filtering rules. 14530LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` 14531 14532ac_config_files="$ac_config_files Makefile adjtimed/Makefile clockstuff/Makefile ElectricFence/Makefile include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile scripts/Makefile scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary util/Makefile" 14533 14534ac_config_commands="$ac_config_commands default" 14535 14536cat >confcache <<\_ACEOF 14537# This file is a shell script that caches the results of configure 14538# tests run on this system so they can be shared between configure 14539# scripts and configure runs, see configure's option --config-cache. 14540# It is not useful on other systems. If it contains results you don't 14541# want to keep, you may remove or edit it. 14542# 14543# config.status only pays attention to the cache file if you give it 14544# the --recheck option to rerun configure. 14545# 14546# `ac_cv_env_foo' variables (set or unset) will be overriden when 14547# loading this file, other *unset* `ac_cv_foo' will be assigned the 14548# following values. 14549 14550_ACEOF 14551 14552# The following way of writing the cache mishandles newlines in values, 14553# but we know of no workaround that is simple, portable, and efficient. 14554# So, don't put newlines in cache variables' values. 14555# Ultrix sh set writes to stderr and can't be redirected directly, 14556# and sets the high bit in the cache file unless we assign to the vars. 14557{ 14558 (set) 2>&1 | 14559 case `(ac_space=' '; set | grep ac_space) 2>&1` in 14560 *ac_space=\ *) 14561 # `set' does not quote correctly, so add quotes (double-quote 14562 # substitution turns \\\\ into \\, and sed turns \\ into \). 14563 sed -n \ 14564 "s/'/'\\\\''/g; 14565 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14566 ;; 14567 *) 14568 # `set' quotes correctly as required by POSIX, so do not add quotes. 14569 sed -n \ 14570 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 14571 ;; 14572 esac; 14573} | 14574 sed ' 14575 t clear 14576 : clear 14577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14578 t end 14579 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14580 : end' >>confcache 14581if cmp -s $cache_file confcache; then :; else 14582 if test -w $cache_file; then 14583 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 14584 cat confcache >$cache_file 14585 else 14586 echo "not updating unwritable cache $cache_file" 14587 fi 14588fi 14589rm -f confcache 14590 14591test "x$prefix" = xNONE && prefix=$ac_default_prefix 14592# Let make expand exec_prefix. 14593test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14594 14595# VPATH may cause trouble with some makes, so we remove $(srcdir), 14596# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14597# trailing colons and then remove the whole line if VPATH becomes empty 14598# (actually we leave an empty line to preserve line numbers). 14599if test "x$srcdir" = x.; then 14600 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14601s/:*\$(srcdir):*/:/; 14602s/:*\${srcdir}:*/:/; 14603s/:*@srcdir@:*/:/; 14604s/^\([^=]*=[ ]*\):*/\1/; 14605s/:*$//; 14606s/^[^=]*=[ ]*$//; 14607}' 14608fi 14609 14610DEFS=-DHAVE_CONFIG_H 14611 14612: ${CONFIG_STATUS=./config.status} 14613ac_clean_files_save=$ac_clean_files 14614ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14615{ echo "$as_me:14615: creating $CONFIG_STATUS" >&5 14616echo "$as_me: creating $CONFIG_STATUS" >&6;} 14617cat >$CONFIG_STATUS <<_ACEOF 14618#! $SHELL 14619# Generated automatically by configure. 14620# Run this file to recreate the current configuration. 14621# Compiler output produced by configure, useful for debugging 14622# configure, is in config.log if it exists. 14623 14624debug=false 14625SHELL=\${CONFIG_SHELL-$SHELL} 14626ac_cs_invocation="\$0 \$@" 14627 14628_ACEOF 14629 14630cat >>$CONFIG_STATUS <<\_ACEOF 14631# Be Bourne compatible 14632if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14633 emulate sh 14634 NULLCMD=: 14635elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 14636 set -o posix 14637fi 14638 14639# Name of the executable. 14640as_me=`echo "$0" |sed 's,.*[\\/],,'` 14641 14642if expr a : '\(a\)' >/dev/null 2>&1; then 14643 as_expr=expr 14644else 14645 as_expr=false 14646fi 14647 14648rm -f conf$$ conf$$.exe conf$$.file 14649echo >conf$$.file 14650if ln -s conf$$.file conf$$ 2>/dev/null; then 14651 # We could just check for DJGPP; but this test a) works b) is more generic 14652 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 14653 if test -f conf$$.exe; then 14654 # Don't use ln at all; we don't have any links 14655 as_ln_s='cp -p' 14656 else 14657 as_ln_s='ln -s' 14658 fi 14659elif ln conf$$.file conf$$ 2>/dev/null; then 14660 as_ln_s=ln 14661else 14662 as_ln_s='cp -p' 14663fi 14664rm -f conf$$ conf$$.exe conf$$.file 14665 14666as_executable_p="test -f" 14667 14668# Support unset when possible. 14669if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 14670 as_unset=unset 14671else 14672 as_unset=false 14673fi 14674 14675# NLS nuisances. 14676$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 14677$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 14678$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 14679$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 14680$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 14681$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 14682$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 14683$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 14684 14685# IFS 14686# We need space, tab and new line, in precisely that order. 14687as_nl=' 14688' 14689IFS=" $as_nl" 14690 14691# CDPATH. 14692$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 14693 14694exec 6>&1 14695 14696_ACEOF 14697 14698# Files that config.status was made for. 14699if test -n "$ac_config_files"; then 14700 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 14701fi 14702 14703if test -n "$ac_config_headers"; then 14704 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 14705fi 14706 14707if test -n "$ac_config_links"; then 14708 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 14709fi 14710 14711if test -n "$ac_config_commands"; then 14712 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 14713fi 14714 14715cat >>$CONFIG_STATUS <<\EOF 14716 14717ac_cs_usage="\ 14718\`$as_me' instantiates files from templates according to the 14719current configuration. 14720 14721Usage: $0 [OPTIONS] [FILE]... 14722 14723 -h, --help print this help, then exit 14724 -V, --version print version number, then exit 14725 -d, --debug don't remove temporary files 14726 --recheck update $as_me by reconfiguring in the same conditions 14727 --file=FILE[:TEMPLATE] 14728 instantiate the configuration file FILE 14729 --header=FILE[:TEMPLATE] 14730 instantiate the configuration header FILE 14731 14732Configuration files: 14733$config_files 14734 14735Configuration headers: 14736$config_headers 14737 14738Configuration commands: 14739$config_commands 14740 14741Report bugs to <bug-autoconf@gnu.org>." 14742EOF 14743 14744cat >>$CONFIG_STATUS <<EOF 14745ac_cs_version="\\ 14746config.status 14747configured by $0, generated by GNU Autoconf 2.50, 14748 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14749 14750Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 14751Free Software Foundation, Inc. 14752This config.status script is free software; the Free Software Foundation 14753gives unlimited permission to copy, distribute and modify it." 14754srcdir=$srcdir 14755INSTALL="$INSTALL" 14756EOF 14757 14758cat >>$CONFIG_STATUS <<\EOF 14759# If no file are specified by the user, then we need to provide default 14760# value. By we need to know if files were specified by the user. 14761ac_need_defaults=: 14762while test $# != 0 14763do 14764 case $1 in 14765 --*=*) 14766 ac_option=`expr "x$1" : 'x\([^=]*\)='` 14767 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 14768 shift 14769 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 14770 shift 14771 ;; 14772 -*);; 14773 *) # This is not an option, so the user has probably given explicit 14774 # arguments. 14775 ac_need_defaults=false;; 14776 esac 14777 14778 case $1 in 14779 # Handling of the options. 14780EOF 14781cat >>$CONFIG_STATUS <<EOF 14782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14783 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 14784 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 14785EOF 14786cat >>$CONFIG_STATUS <<\EOF 14787 --version | --vers* | -V ) 14788 echo "$ac_cs_version"; exit 0 ;; 14789 --he | --h) 14790 # Conflict between --help and --header 14791 { { echo "$as_me:14791: error: ambiguous option: $1 14792Try \`$0 --help' for more information." >&5 14793echo "$as_me: error: ambiguous option: $1 14794Try \`$0 --help' for more information." >&2;} 14795 { (exit 1); exit 1; }; };; 14796 --help | --hel | -h ) 14797 echo "$ac_cs_usage"; exit 0 ;; 14798 --debug | --d* | -d ) 14799 debug=: ;; 14800 --file | --fil | --fi | --f ) 14801 shift 14802 CONFIG_FILES="$CONFIG_FILES $1" 14803 ac_need_defaults=false;; 14804 --header | --heade | --head | --hea ) 14805 shift 14806 CONFIG_HEADERS="$CONFIG_HEADERS $1" 14807 ac_need_defaults=false;; 14808 14809 # Handling of arguments. 14810 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14811 'adjtimed/Makefile' ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 14812 'clockstuff/Makefile' ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 14813 'ElectricFence/Makefile' ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;; 14814 'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14815 'kernel/Makefile' ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 14816 'kernel/sys/Makefile' ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 14817 'libntp/Makefile' ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 14818 'libparse/Makefile' ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 14819 'librsaref/Makefile' ) CONFIG_FILES="$CONFIG_FILES librsaref/Makefile" ;; 14820 'ntpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 14821 'ntpdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 14822 'ntpdate/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 14823 'ntpq/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 14824 'ntptrace/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntptrace/Makefile" ;; 14825 'parseutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 14826 'scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 14827 'scripts/calc_tickadj' ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;; 14828 'scripts/checktime' ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;; 14829 'scripts/freq_adj' ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;; 14830 'scripts/mkver' ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;; 14831 'scripts/ntp-wait' ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;; 14832 'scripts/ntpsweep' ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;; 14833 'scripts/ntpver' ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 14834 'scripts/plot_summary' ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 14835 'scripts/summary' ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 14836 'util/Makefile' ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 14837 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14838 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; 14839 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 14840 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14841 14842 # This is an error. 14843 -*) { { echo "$as_me:14843: error: unrecognized option: $1 14844Try \`$0 --help' for more information." >&5 14845echo "$as_me: error: unrecognized option: $1 14846Try \`$0 --help' for more information." >&2;} 14847 { (exit 1); exit 1; }; } ;; 14848 *) { { echo "$as_me:14848: error: invalid argument: $1" >&5 14849echo "$as_me: error: invalid argument: $1" >&2;} 14850 { (exit 1); exit 1; }; };; 14851 esac 14852 shift 14853done 14854 14855exec 5>>config.log 14856cat >&5 << _ACEOF 14857 14858## ----------------------- ## 14859## Running config.status. ## 14860## ----------------------- ## 14861 14862This file was extended by $as_me 2.50, executed with 14863 > $ac_cs_invocation 14864on `(hostname || uname -n) 2>/dev/null | sed 1q` 14865 14866_ACEOF 14867EOF 14868 14869cat >>$CONFIG_STATUS <<\EOF 14870# If the user did not use the arguments to specify the items to instantiate, 14871# then the envvar interface is used. Set only those that are not. 14872# We use the long form for the default assignment because of an extremely 14873# bizarre bug on SunOS 4.1.3. 14874if $ac_need_defaults; then 14875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14878fi 14879 14880# Create a temporary directory, and hook for its removal unless debugging. 14881$debug || 14882{ 14883 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 14884 trap '{ (exit $?); exit $?; }' 1 2 13 15 14885} 14886 14887# Create a (secure) tmp directory for tmp files. 14888: ${TMPDIR=/tmp} 14889{ 14890 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 14891 test -n "$tmp" && test -d "$tmp" 14892} || 14893{ 14894 tmp=$TMPDIR/cs$$-$RANDOM 14895 (umask 077 && mkdir $tmp) 14896} || 14897{ 14898 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 14899 { (exit 1); exit 1; } 14900} 14901 14902EOF 14903 14904cat >>$CONFIG_STATUS <<EOF 14905# 14906# INIT-COMMANDS section. 14907# 14908 14909am_indx=1 14910 for am_file in config.h; do 14911 case " $CONFIG_HEADERS " in 14912 *" $am_file "*) 14913 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx 14914 ;; 14915 esac 14916 am_indx=\`expr \$am_indx + 1\` 14917 done 14918AMDEP="$AMDEP" 14919ac_aux_dir="$ac_aux_dir" 14920 14921EOF 14922 14923cat >>$CONFIG_STATUS <<EOF 14924 14925# 14926# CONFIG_FILES section. 14927# 14928 14929# No need to generate the scripts if there are no CONFIG_FILES. 14930# This happens for instance when ./config.status config.h 14931if test -n "\$CONFIG_FILES"; then 14932 # Protect against being on the right side of a sed subst in config.status. 14933 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 14934 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 14935s,@SHELL@,$SHELL,;t t 14936s,@exec_prefix@,$exec_prefix,;t t 14937s,@prefix@,$prefix,;t t 14938s,@program_transform_name@,$program_transform_name,;t t 14939s,@bindir@,$bindir,;t t 14940s,@sbindir@,$sbindir,;t t 14941s,@libexecdir@,$libexecdir,;t t 14942s,@datadir@,$datadir,;t t 14943s,@sysconfdir@,$sysconfdir,;t t 14944s,@sharedstatedir@,$sharedstatedir,;t t 14945s,@localstatedir@,$localstatedir,;t t 14946s,@libdir@,$libdir,;t t 14947s,@includedir@,$includedir,;t t 14948s,@oldincludedir@,$oldincludedir,;t t 14949s,@infodir@,$infodir,;t t 14950s,@mandir@,$mandir,;t t 14951s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 14952s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 14953s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 14954s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 14955s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 14956s,@ECHO_C@,$ECHO_C,;t t 14957s,@ECHO_N@,$ECHO_N,;t t 14958s,@ECHO_T@,$ECHO_T,;t t 14959s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 14960s,@DEFS@,$DEFS,;t t 14961s,@LIBS@,$LIBS,;t t 14962s,@build@,$build,;t t 14963s,@build_cpu@,$build_cpu,;t t 14964s,@build_vendor@,$build_vendor,;t t 14965s,@build_os@,$build_os,;t t 14966s,@host@,$host,;t t 14967s,@host_cpu@,$host_cpu,;t t 14968s,@host_vendor@,$host_vendor,;t t 14969s,@host_os@,$host_os,;t t 14970s,@target@,$target,;t t 14971s,@target_cpu@,$target_cpu,;t t 14972s,@target_vendor@,$target_vendor,;t t 14973s,@target_os@,$target_os,;t t 14974s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14975s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14976s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14977s,@PACKAGE@,$PACKAGE,;t t 14978s,@VERSION@,$VERSION,;t t 14979s,@ACLOCAL@,$ACLOCAL,;t t 14980s,@AUTOCONF@,$AUTOCONF,;t t 14981s,@AUTOMAKE@,$AUTOMAKE,;t t 14982s,@AUTOHEADER@,$AUTOHEADER,;t t 14983s,@MAKEINFO@,$MAKEINFO,;t t 14984s,@AMTAR@,$AMTAR,;t t 14985s,@install_sh@,$install_sh,;t t 14986s,@STRIP@,$STRIP,;t t 14987s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 14988s,@INSTALL_STRIP_PROGRAM_ENV@,$INSTALL_STRIP_PROGRAM_ENV,;t t 14989s,@AWK@,$AWK,;t t 14990s,@SET_MAKE@,$SET_MAKE,;t t 14991s,@AMDEP@,$AMDEP,;t t 14992s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 14993s,@DEPDIR@,$DEPDIR,;t t 14994s,@CC@,$CC,;t t 14995s,@CFLAGS@,$CFLAGS,;t t 14996s,@LDFLAGS@,$LDFLAGS,;t t 14997s,@CPPFLAGS@,$CPPFLAGS,;t t 14998s,@ac_ct_CC@,$ac_ct_CC,;t t 14999s,@EXEEXT@,$EXEEXT,;t t 15000s,@OBJEXT@,$OBJEXT,;t t 15001s,@CPP@,$CPP,;t t 15002s,@_am_include@,$_am_include,;t t 15003s,@CCDEPMODE@,$CCDEPMODE,;t t 15004s,@LN_S@,$LN_S,;t t 15005s,@RANLIB@,$RANLIB,;t t 15006s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 15007s,@PATH_SH@,$PATH_SH,;t t 15008s,@PATH_PERL@,$PATH_PERL,;t t 15009s,@U@,$U,;t t 15010s,@ANSI2KNR@,$ANSI2KNR,;t t 15011s,@LIBOBJS@,$LIBOBJS,;t t 15012s,@LIBPARSE@,$LIBPARSE,;t t 15013s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t 15014s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t 15015s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t 15016s,@RSAOBJS@,$RSAOBJS,;t t 15017s,@RSASRCS@,$RSASRCS,;t t 15018s,@RSADIR@,$RSADIR,;t t 15019s,@RSAREF@,$RSAREF,;t t 15020s,@LIBRSAREF@,$LIBRSAREF,;t t 15021s,@MAKE_LIBRSAREF@,$MAKE_LIBRSAREF,;t t 15022s,@OPENSSL@,$OPENSSL,;t t 15023s,@OPENSSL_INC@,$OPENSSL_INC,;t t 15024s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t 15025s,@MAKE_NTP_GENKEYS@,$MAKE_NTP_GENKEYS,;t t 15026s,@AUTOKEY@,$AUTOKEY,;t t 15027s,@EF_PROGS@,$EF_PROGS,;t t 15028s,@EF_LIBS@,$EF_LIBS,;t t 15029s,@TESTDCF@,$TESTDCF,;t t 15030s,@DCFD@,$DCFD,;t t 15031s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t 15032s,@PROPDELAY@,$PROPDELAY,;t t 15033s,@CHUTEST@,$CHUTEST,;t t 15034s,@CLKTEST@,$CLKTEST,;t t 15035s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t 15036s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t 15037s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t 15038s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t 15039CEOF 15040 15041EOF 15042 15043 cat >>$CONFIG_STATUS <<\EOF 15044 # Split the substitutions into bite-sized pieces for seds with 15045 # small command number limits, like on Digital OSF/1 and HP-UX. 15046 ac_max_sed_lines=48 15047 ac_sed_frag=1 # Number of current file. 15048 ac_beg=1 # First line for current file. 15049 ac_end=$ac_max_sed_lines # Line after last line for current file. 15050 ac_more_lines=: 15051 ac_sed_cmds= 15052 while $ac_more_lines; do 15053 if test $ac_beg -gt 1; then 15054 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15055 else 15056 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15057 fi 15058 if test ! -s $tmp/subs.frag; then 15059 ac_more_lines=false 15060 else 15061 # The purpose of the label and of the branching condition is to 15062 # speed up the sed processing (if there are no `@' at all, there 15063 # is no need to browse any of the substitutions). 15064 # These are the two extra sed commands mentioned above. 15065 (echo ':t 15066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 15067 if test -z "$ac_sed_cmds"; then 15068 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 15069 else 15070 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 15071 fi 15072 ac_sed_frag=`expr $ac_sed_frag + 1` 15073 ac_beg=$ac_end 15074 ac_end=`expr $ac_end + $ac_max_sed_lines` 15075 fi 15076 done 15077 if test -z "$ac_sed_cmds"; then 15078 ac_sed_cmds=cat 15079 fi 15080fi # test -n "$CONFIG_FILES" 15081 15082EOF 15083cat >>$CONFIG_STATUS <<\EOF 15084for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 15085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15086 case $ac_file in 15087 - | *:- | *:-:* ) # input from stdin 15088 cat >$tmp/stdin 15089 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15091 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15093 * ) ac_file_in=$ac_file.in ;; 15094 esac 15095 15096 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 15097 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15098 X"$ac_file" : 'X\(//\)[^/]' \| \ 15099 X"$ac_file" : 'X\(//\)$' \| \ 15100 X"$ac_file" : 'X\(/\)' \| \ 15101 . : '\(.\)' 2>/dev/null || 15102echo X"$ac_file" | 15103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15104 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15105 /^X\(\/\/\)$/{ s//\1/; q; } 15106 /^X\(\/\).*/{ s//\1/; q; } 15107 s/.*/./; q'` 15108 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 15109 { case "$ac_dir" in 15110 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 15111 *) as_incr_dir=.;; 15112esac 15113as_dummy="$ac_dir" 15114for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 15115 case $as_mkdir_dir in 15116 # Skip DOS drivespec 15117 ?:) as_incr_dir=$as_mkdir_dir ;; 15118 *) 15119 as_incr_dir=$as_incr_dir/$as_mkdir_dir 15120 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 15121 ;; 15122 esac 15123done; } 15124 15125 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 15126 # A "../" for each directory in $ac_dir_suffix. 15127 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 15128 else 15129 ac_dir_suffix= ac_dots= 15130 fi 15131 15132 case $srcdir in 15133 .) ac_srcdir=. 15134 if test -z "$ac_dots"; then 15135 ac_top_srcdir=. 15136 else 15137 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 15138 fi ;; 15139 [\\/]* | ?:[\\/]* ) 15140 ac_srcdir=$srcdir$ac_dir_suffix; 15141 ac_top_srcdir=$srcdir ;; 15142 *) # Relative path. 15143 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 15144 ac_top_srcdir=$ac_dots$srcdir ;; 15145 esac 15146 15147 case $INSTALL in 15148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15149 *) ac_INSTALL=$ac_dots$INSTALL ;; 15150 esac 15151 15152 if test x"$ac_file" != x-; then 15153 { echo "$as_me:15153: creating $ac_file" >&5 15154echo "$as_me: creating $ac_file" >&6;} 15155 rm -f "$ac_file" 15156 fi 15157 # Let's still pretend it is `configure' which instantiates (i.e., don't 15158 # use $as_me), people would be surprised to read: 15159 # /* config.h. Generated automatically by config.status. */ 15160 configure_input="Generated automatically from `echo $ac_file_in | 15161 sed 's,.*/,,'` by configure." 15162 15163 # First look for the input files in the build tree, otherwise in the 15164 # src tree. 15165 ac_file_inputs=`IFS=: 15166 for f in $ac_file_in; do 15167 case $f in 15168 -) echo $tmp/stdin ;; 15169 [\\/$]*) 15170 # Absolute (can't be DOS-style, as IFS=:) 15171 test -f "$f" || { { echo "$as_me:15171: error: cannot find input file: $f" >&5 15172echo "$as_me: error: cannot find input file: $f" >&2;} 15173 { (exit 1); exit 1; }; } 15174 echo $f;; 15175 *) # Relative 15176 if test -f "$f"; then 15177 # Build tree 15178 echo $f 15179 elif test -f "$srcdir/$f"; then 15180 # Source tree 15181 echo $srcdir/$f 15182 else 15183 # /dev/null tree 15184 { { echo "$as_me:15184: error: cannot find input file: $f" >&5 15185echo "$as_me: error: cannot find input file: $f" >&2;} 15186 { (exit 1); exit 1; }; } 15187 fi;; 15188 esac 15189 done` || { (exit 1); exit 1; } 15190EOF 15191cat >>$CONFIG_STATUS <<EOF 15192 sed "$ac_vpsub 15193$extrasub 15194EOF 15195cat >>$CONFIG_STATUS <<\EOF 15196:t 15197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15198s,@configure_input@,$configure_input,;t t 15199s,@srcdir@,$ac_srcdir,;t t 15200s,@top_srcdir@,$ac_top_srcdir,;t t 15201s,@INSTALL@,$ac_INSTALL,;t t 15202" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 15203 rm -f $tmp/stdin 15204 if test x"$ac_file" != x-; then 15205 mv $tmp/out $ac_file 15206 else 15207 cat $tmp/out 15208 rm -f $tmp/out 15209 fi 15210 15211done 15212EOF 15213cat >>$CONFIG_STATUS <<\EOF 15214 15215# 15216# CONFIG_HEADER section. 15217# 15218 15219# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 15220# NAME is the cpp macro being defined and VALUE is the value it is being given. 15221# 15222# ac_d sets the value in "#define NAME VALUE" lines. 15223ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 15224ac_dB='[ ].*$,\1#\2' 15225ac_dC=' ' 15226ac_dD=',;t' 15227# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 15228ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 15229ac_uB='$,\1#\2define\3' 15230ac_uC=' ' 15231ac_uD=',;t' 15232 15233for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 15234 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15235 case $ac_file in 15236 - | *:- | *:-:* ) # input from stdin 15237 cat >$tmp/stdin 15238 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15239 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15240 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15241 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15242 * ) ac_file_in=$ac_file.in ;; 15243 esac 15244 15245 test x"$ac_file" != x- && { echo "$as_me:15245: creating $ac_file" >&5 15246echo "$as_me: creating $ac_file" >&6;} 15247 15248 # First look for the input files in the build tree, otherwise in the 15249 # src tree. 15250 ac_file_inputs=`IFS=: 15251 for f in $ac_file_in; do 15252 case $f in 15253 -) echo $tmp/stdin ;; 15254 [\\/$]*) 15255 # Absolute (can't be DOS-style, as IFS=:) 15256 test -f "$f" || { { echo "$as_me:15256: error: cannot find input file: $f" >&5 15257echo "$as_me: error: cannot find input file: $f" >&2;} 15258 { (exit 1); exit 1; }; } 15259 echo $f;; 15260 *) # Relative 15261 if test -f "$f"; then 15262 # Build tree 15263 echo $f 15264 elif test -f "$srcdir/$f"; then 15265 # Source tree 15266 echo $srcdir/$f 15267 else 15268 # /dev/null tree 15269 { { echo "$as_me:15269: error: cannot find input file: $f" >&5 15270echo "$as_me: error: cannot find input file: $f" >&2;} 15271 { (exit 1); exit 1; }; } 15272 fi;; 15273 esac 15274 done` || { (exit 1); exit 1; } 15275 # Remove the trailing spaces. 15276 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 15277 15278EOF 15279 15280# Transform confdefs.h into two sed scripts, `conftest.defines' and 15281# `conftest.undefs', that substitutes the proper values into 15282# config.h.in to produce config.h. The first handles `#define' 15283# templates, and the second `#undef' templates. 15284# And first: Protect against being on the right side of a sed subst in 15285# config.status. Protect against being in an unquoted here document 15286# in config.status. 15287rm -f conftest.defines conftest.undefs 15288# Using a here document instead of a string reduces the quoting nightmare. 15289# Putting comments in sed scripts is not portable. 15290# 15291# `end' is used to avoid that the second main sed command (meant for 15292# 0-ary CPP macros) applies to n-ary macro definitions. 15293# See the Autoconf documentation for `clear'. 15294cat >confdef2sed.sed <<\EOF 15295s/[\\&,]/\\&/g 15296s,[\\$`],\\&,g 15297t clear 15298: clear 15299s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 15300t end 15301s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 15302: end 15303EOF 15304# If some macros were called several times there might be several times 15305# the same #defines, which is useless. Nevertheless, we may not want to 15306# sort them, since we want the *last* AC-DEFINE to be honored. 15307uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 15308sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 15309rm -f confdef2sed.sed 15310 15311# This sed command replaces #undef with comments. This is necessary, for 15312# example, in the case of _POSIX_SOURCE, which is predefined and required 15313# on some systems where configure will not decide to define it. 15314cat >>conftest.undefs <<\EOF 15315s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 15316EOF 15317 15318# Break up conftest.defines because some shells have a limit on the size 15319# of here documents, and old seds have small limits too (100 cmds). 15320echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 15321echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 15322echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 15323echo ' :' >>$CONFIG_STATUS 15324rm -f conftest.tail 15325while grep . conftest.defines >/dev/null 15326do 15327 # Write a limited-size here document to $tmp/defines.sed. 15328 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 15329 # Speed up: don't consider the non `#define' lines. 15330 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 15331 # Work around the forget-to-reset-the-flag bug. 15332 echo 't clr' >>$CONFIG_STATUS 15333 echo ': clr' >>$CONFIG_STATUS 15334 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 15335 echo 'CEOF 15336 sed -f $tmp/defines.sed $tmp/in >$tmp/out 15337 rm -f $tmp/in 15338 mv $tmp/out $tmp/in 15339' >>$CONFIG_STATUS 15340 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 15341 rm -f conftest.defines 15342 mv conftest.tail conftest.defines 15343done 15344rm -f conftest.defines 15345echo ' fi # egrep' >>$CONFIG_STATUS 15346echo >>$CONFIG_STATUS 15347 15348# Break up conftest.undefs because some shells have a limit on the size 15349# of here documents, and old seds have small limits too (100 cmds). 15350echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 15351rm -f conftest.tail 15352while grep . conftest.undefs >/dev/null 15353do 15354 # Write a limited-size here document to $tmp/undefs.sed. 15355 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 15356 # Speed up: don't consider the non `#undef' 15357 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 15358 # Work around the forget-to-reset-the-flag bug. 15359 echo 't clr' >>$CONFIG_STATUS 15360 echo ': clr' >>$CONFIG_STATUS 15361 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 15362 echo 'CEOF 15363 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 15364 rm -f $tmp/in 15365 mv $tmp/out $tmp/in 15366' >>$CONFIG_STATUS 15367 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 15368 rm -f conftest.undefs 15369 mv conftest.tail conftest.undefs 15370done 15371rm -f conftest.undefs 15372 15373cat >>$CONFIG_STATUS <<\EOF 15374 # Let's still pretend it is `configure' which instantiates (i.e., don't 15375 # use $as_me), people would be surprised to read: 15376 # /* config.h. Generated automatically by config.status. */ 15377 if test x"$ac_file" = x-; then 15378 echo "/* Generated automatically by configure. */" >$tmp/config.h 15379 else 15380 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 15381 fi 15382 cat $tmp/in >>$tmp/config.h 15383 rm -f $tmp/in 15384 if test x"$ac_file" != x-; then 15385 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 15386 { echo "$as_me:15386: $ac_file is unchanged" >&5 15387echo "$as_me: $ac_file is unchanged" >&6;} 15388 else 15389 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15390 X"$ac_file" : 'X\(//\)[^/]' \| \ 15391 X"$ac_file" : 'X\(//\)$' \| \ 15392 X"$ac_file" : 'X\(/\)' \| \ 15393 . : '\(.\)' 2>/dev/null || 15394echo X"$ac_file" | 15395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15396 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15397 /^X\(\/\/\)$/{ s//\1/; q; } 15398 /^X\(\/\).*/{ s//\1/; q; } 15399 s/.*/./; q'` 15400 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 15401 { case "$ac_dir" in 15402 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 15403 *) as_incr_dir=.;; 15404esac 15405as_dummy="$ac_dir" 15406for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 15407 case $as_mkdir_dir in 15408 # Skip DOS drivespec 15409 ?:) as_incr_dir=$as_mkdir_dir ;; 15410 *) 15411 as_incr_dir=$as_incr_dir/$as_mkdir_dir 15412 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 15413 ;; 15414 esac 15415done; } 15416 15417 fi 15418 rm -f $ac_file 15419 mv $tmp/config.h $ac_file 15420 fi 15421 else 15422 cat $tmp/config.h 15423 rm -f $tmp/config.h 15424 fi 15425done 15426EOF 15427cat >>$CONFIG_STATUS <<\EOF 15428 15429# 15430# CONFIG_COMMANDS section. 15431# 15432for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 15433 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 15434 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 15435 15436 case $ac_dest in 15437 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 15438 default-2 ) 15439test x"$AMDEP" != x"" || 15440for mf in $CONFIG_FILES; do 15441 case "$mf" in 15442 Makefile) dirpart=.;; 15443 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 15444 *) continue;; 15445 esac 15446 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 15447 # Extract the definition of DEP_FILES from the Makefile without 15448 # running `make'. 15449 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 15450 test -z "$DEPDIR" && continue 15451 # When using ansi2knr, U may be empty or an underscore; expand it 15452 U=`sed -n -e '/^U = / s///p' < "$mf"` 15453 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 15454 # We invoke sed twice because it is the simplest approach to 15455 # changing $(DEPDIR) to its actual value in the expansion. 15456 for file in `sed -n -e ' 15457 /^DEP_FILES = .*\\\\$/ { 15458 s/^DEP_FILES = // 15459 :loop 15460 s/\\\\$// 15461 p 15462 n 15463 /\\\\$/ b loop 15464 p 15465 } 15466 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 15467 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15468 # Make sure the directory exists. 15469 test -f "$dirpart/$file" && continue 15470 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 15471 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 15472 # echo "creating $dirpart/$file" 15473 echo '# dummy' > "$dirpart/$file" 15474 done 15475done 15476 ;; 15477 default ) chmod +x scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary ;; 15478 esac 15479done 15480EOF 15481 15482cat >>$CONFIG_STATUS <<\EOF 15483 15484{ (exit 0); exit 0; } 15485EOF 15486chmod +x $CONFIG_STATUS 15487ac_clean_files=$ac_clean_files_save 15488 15489# configure is writing to config.log, and then calls config.status. 15490# config.status does its own redirection, appending to config.log. 15491# Unfortunately, on DOS this fails, as config.log is still kept open 15492# by configure, so config.status won't be able to write to it; its 15493# output is simply discarded. So we exec the FD to /dev/null, 15494# effectively closing config.log, so it can be properly (re)opened and 15495# appended to by config.status. When coming back to configure, we 15496# need to make the FD available again. 15497if test "$no_create" != yes; then 15498 ac_cs_success=: 15499 exec 5>/dev/null 15500 $SHELL $CONFIG_STATUS || ac_cs_success=false 15501 exec 5>>config.log 15502 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15503 # would make configure fail if this is the last instruction. 15504 $ac_cs_success || { (exit 1); exit 1; } 15505fi 15506 15507#test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h]) 15508