3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-dependency-tracking Speeds up one-time builds
16 --enable-dependency-tracking Do not reject slow dependency extractors"
18 --enable-debugging + include debugging code"
20 --enable-dst-minutes=60 + minutes per DST adjustment"
22 --enable-md5 + include support for MD5 keys"
24 --enable-BANCOMM - Datum/Bancomm bc635/VME interface"
26 --enable-GPSVME - TrueTime GPS receiver/VME interface"
28 --enable-SHM - SHM clock attached thru shared memory"
30 --enable-all-clocks + include all suitable non-PARSE clocks:"
32 --enable-ACTS + ACTS modem service"
34 --enable-ARBITER + Arbiter 1088A/B GPS receiver"
36 --enable-ARCRON-MSF + Arcron MSF receiver"
38 --enable-AS2201 + Austron 2200A/2201A GPS receiver"
40 --enable-ATOM + PPS interface"
42 --enable-CHU - CHU modem/decoder"
44 --enable-AUDIO-CHU s CHU audio/decoder"
46 --enable-DATUM s Datum Programmable Time System"
48 --enable-FG + Forum Graphic GPS"
50 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver"
52 --enable-HPGPS + HP 58503A GPS receiver"
54 --enable-IRIG s Sun IRIG audio decoder"
56 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver"
58 --enable-LOCAL-CLOCK + local clock reference"
60 --enable-MSFEES + EES M201 MSF receiver"
62 --enable-MX4200 s Magnavox MX4200 GPS receiver"
64 --enable-NMEA + NMEA GPS receiver"
66 --enable-ONCORE + Motorola VP/UT Oncore GPS receiver"
68 --enable-PALISADE + Palisade clock"
70 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver"
72 --enable-JUPITER s Rockwell Jupiter GPS receiver"
74 --enable-PTBACTS s PTB modem service"
76 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface"
78 --enable-TRAK + TRAK 8810 GPS receiver"
80 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver"
82 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock"
84 --enable-PCF + Conrad parallel port radio clock"
86 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver"
88 --enable-TRUETIME s Kinemetrics/TrueTime receivers"
90 --enable-ULINK + Ultralink WWVB receiver"
92 --enable-WWV + WWV Audio receiver"
94 --enable-USNO s USNO modem service"
96 --enable-parse-clocks - include all suitable PARSE clocks:"
98 --enable-COMPUTIME s Diem Computime Radio Clock"
100 --enable-DCF7000 s ELV/DCF7000 clock"
102 --enable-HOPF6021 s HOPF 6021 clock"
104 --enable-MEINBERG s Meinberg clocks"
106 --enable-RAWDCF s DCF77 raw time code"
108 --enable-RCC8000 s RCC 8000 clock"
110 --enable-SCHMID s Schmid DCF77 clock"
112 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol"
114 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol"
116 --enable-WHARTON s WHARTON 400A Series clock"
118 --enable-VARITEXT s VARITEXT clock"
120 --enable-kmem s read /dev/kmem for tick and/or tickadj"
122 --enable-accurate-adjtime
123 s the adjtime() call is accurate"
125 --enable-tick=VALUE s force a value for 'tick'"
127 --enable-tickadj=VALUE s force a value for 'tickadj'"
129 --enable-udp-wildcard s use UDP wildcard delivery"
131 --enable-slew-always s always slew the time"
133 --enable-step-slew s step and slew the time"
135 --enable-ntpdate-step s if ntpdate should step the time"
137 --enable-hourly-todr-sync
138 s if we should sync TODR hourly"
140 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file=./config.cache
155 program_transform_name=s,x,x,
163 bindir='${exec_prefix}/bin'
164 sbindir='${exec_prefix}/sbin'
165 libexecdir='${exec_prefix}/libexec'
166 datadir='${prefix}/share'
167 sysconfdir='${prefix}/etc'
168 sharedstatedir='${prefix}/com'
169 localstatedir='${prefix}/var'
170 libdir='${exec_prefix}/lib'
171 includedir='${prefix}/include'
172 oldincludedir='/usr/include'
173 infodir='${prefix}/info'
174 mandir='${prefix}/man'
176 # Initialize some other variables.
179 SHELL=${CONFIG_SHELL-/bin/sh}
180 # Maximum number of lines to put in a shell here document.
187 # If the previous option needs an argument, assign it.
188 if test -n "$ac_prev"; then
189 eval "$ac_prev=\$ac_option"
195 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
199 # Accept the important Cygnus configure options, so we can diagnose typos.
203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
206 bindir="$ac_optarg" ;;
208 -build | --build | --buil | --bui | --bu)
210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
211 build="$ac_optarg" ;;
213 -cache-file | --cache-file | --cache-fil | --cache-fi \
214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
215 ac_prev=cache_file ;;
216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
218 cache_file="$ac_optarg" ;;
220 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
222 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
224 datadir="$ac_optarg" ;;
226 -disable-* | --disable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
233 eval "enable_${ac_feature}=no" ;;
235 -enable-* | --enable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
246 eval "enable_${ac_feature}='$ac_optarg'" ;;
248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
250 | --exec | --exe | --ex)
251 ac_prev=exec_prefix ;;
252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
254 | --exec=* | --exe=* | --ex=*)
255 exec_prefix="$ac_optarg" ;;
257 -gas | --gas | --ga | --g)
258 # Obsolete; use --with-gas.
261 -help | --help | --hel | --he)
262 # Omit some internal or obsolete options to make the list less imposing.
263 # This message is too long to be a string in the A/UX 3.1 sh.
265 Usage: configure [options] [host]
266 Options: [defaults in brackets after descriptions]
268 --cache-file=FILE cache test results in FILE
269 --help print this message
270 --no-create do not create output files
271 --quiet, --silent do not print \`checking...' messages
272 --version print the version of autoconf that created configure
273 Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
281 --datadir=DIR read-only architecture-independent data in DIR
283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303 Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
316 -host | --host | --hos | --ho)
318 -host=* | --host=* | --hos=* | --ho=*)
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
333 -libdir | --libdir | --libdi | --libd)
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
360 # Obsolete; use --without-fp.
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424 sbindir="$ac_optarg" ;;
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435 sharedstatedir="$ac_optarg" ;;
437 -site | --site | --sit)
439 -site=* | --site=* | --sit=*)
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
445 srcdir="$ac_optarg" ;;
447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
452 sysconfdir="$ac_optarg" ;;
454 -target | --target | --targe | --targ | --tar | --ta | --t)
456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
457 target="$ac_optarg" ;;
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
462 -version | --version | --versio | --versi | --vers)
463 echo "configure generated by autoconf version 2.13"
467 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
468 # Reject names that are not valid shell variable names.
469 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
470 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
472 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 eval "with_${ac_package}='$ac_optarg'" ;;
479 -without-* | --without-*)
480 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
481 # Reject names that are not valid shell variable names.
482 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
483 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485 ac_package=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}=no" ;;
489 # Obsolete; use --with-x.
492 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
493 | --x-incl | --x-inc | --x-in | --x-i)
494 ac_prev=x_includes ;;
495 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
496 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
497 x_includes="$ac_optarg" ;;
499 -x-libraries | --x-libraries | --x-librarie | --x-librari \
500 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
501 ac_prev=x_libraries ;;
502 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
503 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
504 x_libraries="$ac_optarg" ;;
506 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
510 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
511 echo "configure: warning: $ac_option: invalid host type" 1>&2
513 if test "x$nonopt" != xNONE; then
514 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
522 if test -n "$ac_prev"; then
523 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
528 # File descriptor usage:
531 # 2 errors and warnings
532 # 3 some systems may open it to /dev/tty
533 # 4 used on the Kubota Titan
534 # 6 checking for... messages and results
535 # 5 compiler messages saved in config.log
536 if test "$silent" = yes; then
544 This file contains any messages produced by compilers while
545 running configure, to aid debugging if configure makes a mistake.
548 # Strip out --no-create and --no-recursion so they do not pile up.
549 # Also quote any args containing shell metacharacters.
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 | --no-cr | --no-c) ;;
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
558 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
559 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
560 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
565 # Only set these to C if already set. These must not be set unconditionally
566 # because not all systems understand e.g. LANG=C (notably SCO).
567 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
568 # Non-C LC_CTYPE values break the ctype check.
569 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
570 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
571 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
572 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
574 # confdefs.h avoids OS command line length limits that DEFS can exceed.
575 rm -rf conftest* confdefs.h
576 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
579 # A filename unique to this package, relative to the directory that
580 # configure is in, which we can look for to find out if srcdir is correct.
581 ac_unique_file=ntpd/ntp_refclock.c
583 # Find the source files, if location was not specified.
584 if test -z "$srcdir"; then
585 ac_srcdir_defaulted=yes
586 # Try the directory containing this script, then its parent.
588 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
589 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591 if test ! -r $srcdir/$ac_unique_file; then
595 ac_srcdir_defaulted=no
597 if test ! -r $srcdir/$ac_unique_file; then
598 if test "$ac_srcdir_defaulted" = yes; then
599 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
601 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
604 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
606 # Prefer explicitly selected file to automatically selected ones.
607 if test -z "$CONFIG_SITE"; then
608 if test "x$prefix" != xNONE; then
609 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
611 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
614 for ac_site_file in $CONFIG_SITE; do
615 if test -r "$ac_site_file"; then
616 echo "loading site script $ac_site_file"
621 if test -r "$cache_file"; then
622 echo "loading cache $cache_file"
625 echo "creating cache $cache_file"
630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
631 ac_cpp='$CPP $CPPFLAGS'
632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
634 cross_compiling=$ac_cv_prog_cc_cross
638 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
639 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
640 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
647 ac_n= ac_c='\c' ac_t=
652 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
653 if test -f $ac_dir/install-sh; then
655 ac_install_sh="$ac_aux_dir/install-sh -c"
657 elif test -f $ac_dir/install.sh; then
659 ac_install_sh="$ac_aux_dir/install.sh -c"
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
666 ac_config_guess=$ac_aux_dir/config.guess
667 ac_config_sub=$ac_aux_dir/config.sub
668 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
671 # Do some error checking and defaulting for the host and target type.
673 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
676 # 1. You are not allowed to specify --host, --target, and nonopt at the
678 # 2. Host defaults to nonopt.
679 # 3. If nonopt is not specified, then host defaults to the current host,
680 # as determined by config.guess.
681 # 4. Target and build default to nonopt.
682 # 5. If nonopt is not specified, then target and build default to host.
684 # The aliases save the names the user supplied, while $host etc.
685 # will get canonicalized.
686 case $host---$target---$nonopt in
687 NONE---*---* | *---NONE---* | *---*---NONE) ;;
688 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
692 # Make sure we can run config.sub.
693 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
694 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
697 echo $ac_n "checking host system type""... $ac_c" 1>&6
698 echo "configure:699: checking host system type" >&5
701 case "$host_alias" in
705 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
706 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
708 *) host_alias=$nonopt ;;
712 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
713 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
714 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
715 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
716 echo "$ac_t""$host" 1>&6
718 echo $ac_n "checking target system type""... $ac_c" 1>&6
719 echo "configure:720: checking target system type" >&5
722 case "$target_alias" in
725 NONE) target_alias=$host_alias ;;
726 *) target_alias=$nonopt ;;
730 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
731 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$target" 1>&6
736 echo $ac_n "checking build system type""... $ac_c" 1>&6
737 echo "configure:738: checking build system type" >&5
740 case "$build_alias" in
743 NONE) build_alias=$host_alias ;;
744 *) build_alias=$nonopt ;;
748 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
749 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
750 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
751 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
752 echo "$ac_t""$build" 1>&6
754 test "$host_alias" != "$target_alias" &&
755 test "$program_prefix$program_suffix$program_transform_name" = \
757 program_prefix=${target_alias}-
759 cat >> confdefs.h <<EOF
760 #define STR_SYSTEM "$target"
766 if test "$program_transform_name" = s,x,x,; then
767 program_transform_name=
769 # Double any \ or $. echo might interpret backslashes.
770 cat <<\EOF_SED > conftestsed
771 s,\\,\\\\,g; s,\$,$$,g
773 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
776 test "$program_prefix" != NONE &&
777 program_transform_name="s,^,${program_prefix},; $program_transform_name"
778 # Use a double $ so make ignores it.
779 test "$program_suffix" != NONE &&
780 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
782 # sed with no file args requires a program.
783 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
785 # Find a good install program. We prefer a C program (faster),
786 # so one script is as good as another. But avoid the broken or
787 # incompatible versions:
788 # SysV /etc/install, /usr/sbin/install
789 # SunOS /usr/etc/install
792 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
793 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
794 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
795 # ./install, which can be erroneously created by make from ./install.sh.
796 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
797 echo "configure:798: checking for a BSD compatible install" >&5
798 if test -z "$INSTALL"; then
799 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
803 for ac_dir in $PATH; do
804 # Account for people who put trailing slashes in PATH elements.
806 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
808 # OSF1 and SCO ODT 3.0 have their own names for install.
809 # Don't use installbsd from OSF since it installs stuff as root
811 for ac_prog in ginstall scoinst install; do
812 if test -f $ac_dir/$ac_prog; then
813 if test $ac_prog = install &&
814 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
815 # AIX install. It has an incompatible calling convention.
818 ac_cv_path_install="$ac_dir/$ac_prog -c"
829 if test "${ac_cv_path_install+set}" = set; then
830 INSTALL="$ac_cv_path_install"
832 # As a last resort, use the slow shell script. We don't cache a
833 # path for INSTALL within a source directory, because that will
834 # break other packages using the cache if that directory is
835 # removed, or if the path is relative.
836 INSTALL="$ac_install_sh"
839 echo "$ac_t""$INSTALL" 1>&6
841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
842 # It thinks the first close brace ends the variable substitution.
843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
849 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
850 echo "configure:851: checking whether build environment is sane" >&5
853 echo timestamp > conftestfile
854 # Do `set' in a subshell so we don't clobber the current shell's
855 # arguments. Must try -L first in case configure is actually a
856 # symlink; some systems play weird games with the mod time of symlinks
857 # (eg FreeBSD returns the mod time of the symlink's containing
860 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
861 if test "$*" = "X"; then
863 set X `ls -t $srcdir/configure conftestfile`
865 if test "$*" != "X $srcdir/configure conftestfile" \
866 && test "$*" != "X conftestfile $srcdir/configure"; then
868 # If neither matched, then we have a broken ls. This can happen
869 # if, for instance, CONFIG_SHELL is bash and it inherits a
870 # broken ls alias from the environment. This has actually
871 # happened. Such a system could not be considered "sane".
872 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
873 alias in your environment" 1>&2; exit 1; }
876 test "$2" = conftestfile
882 { echo "configure: error: newly created file is older than distributed files!
883 Check your system clock" 1>&2; exit 1; }
886 echo "$ac_t""yes" 1>&6
888 test x"${MISSING+set}" = xset || \
889 MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
890 if eval "$MISSING --run :"; then
891 am_missing_run="$MISSING --run "
894 echo "configure: warning: \`missing' script is too old or missing" 1>&2
897 for ac_prog in mawk gawk nawk awk
899 # Extract the first word of "$ac_prog", so it can be a program name with args.
900 set dummy $ac_prog; ac_word=$2
901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902 echo "configure:903: checking for $ac_word" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 if test -n "$AWK"; then
907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
911 for ac_dir in $ac_dummy; do
912 test -z "$ac_dir" && ac_dir=.
913 if test -f $ac_dir/$ac_word; then
914 ac_cv_prog_AWK="$ac_prog"
921 AWK="$ac_cv_prog_AWK"
922 if test -n "$AWK"; then
923 echo "$ac_t""$AWK" 1>&6
925 echo "$ac_t""no" 1>&6
928 test -n "$AWK" && break
931 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
932 echo "configure:933: checking whether ${MAKE-make} sets \${MAKE}" >&5
933 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
934 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 cat > conftestmake <<\EOF
939 @echo 'ac_maketemp="${MAKE}"'
941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
942 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
943 if test -n "$ac_maketemp"; then
944 eval ac_cv_prog_make_${ac_make}_set=yes
946 eval ac_cv_prog_make_${ac_make}_set=no
950 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
951 echo "$ac_t""yes" 1>&6
954 echo "$ac_t""no" 1>&6
955 SET_MAKE="MAKE=${MAKE-make}"
959 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
960 if test "${enable_dependency_tracking+set}" = set; then
961 enableval="$enable_dependency_tracking"
965 if test "x$enable_dependency_tracking" = xno; then
968 am_depcomp="$ac_aux_dir/depcomp"
969 if test ! -f "$am_depcomp"; then
976 if test -z "$AMDEP"; then
986 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
999 if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
1000 test -f $srcdir/config.status; then
1001 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1003 cat >> confdefs.h <<EOF
1004 #define PACKAGE "$PACKAGE"
1007 cat >> confdefs.h <<EOF
1008 #define VERSION "$VERSION"
1015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1019 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1031 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1035 AMTAR=${AMTAR-"${am_missing_run}tar"}
1039 if test -z "$install_sh"; then
1040 install_sh="$ac_aux_dir/install-sh"
1041 test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
1042 test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
1043 install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
1057 ac_cv_var_oncore_ok=no
1061 # Extract the first word of "gcc", so it can be a program name with args.
1062 set dummy gcc; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$CC"; then
1069 ac_cv_prog_CC="$CC" # Let the user override the test.
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1084 if test -n "$CC"; then
1085 echo "$ac_t""$CC" 1>&6
1087 echo "$ac_t""no" 1>&6
1090 if test -z "$CC"; then
1091 # Extract the first word of "cc", so it can be a program name with args.
1092 set dummy cc; ac_word=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 if test -n "$CC"; then
1099 ac_cv_prog_CC="$CC" # Let the user override the test.
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1104 for ac_dir in $ac_dummy; do
1105 test -z "$ac_dir" && ac_dir=.
1106 if test -f $ac_dir/$ac_word; then
1107 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1108 ac_prog_rejected=yes
1116 if test $ac_prog_rejected = yes; then
1117 # We found a bogon in the path, so make sure we never use it.
1118 set dummy $ac_cv_prog_CC
1120 if test $# -gt 0; then
1121 # We chose a different compiler from the bogus one.
1122 # However, it has the same basename, so the bogon will be chosen
1123 # first if we set CC to just the basename; use the full file name.
1125 set dummy "$ac_dir/$ac_word" "$@"
1133 if test -n "$CC"; then
1134 echo "$ac_t""$CC" 1>&6
1136 echo "$ac_t""no" 1>&6
1139 if test -z "$CC"; then
1140 case "`uname -s`" in
1142 # Extract the first word of "cl", so it can be a program name with args.
1143 set dummy cl; ac_word=$2
1144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1145 echo "configure:1146: checking for $ac_word" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 if test -n "$CC"; then
1150 ac_cv_prog_CC="$CC" # Let the user override the test.
1152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1154 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 if test -f $ac_dir/$ac_word; then
1165 if test -n "$CC"; then
1166 echo "$ac_t""$CC" 1>&6
1168 echo "$ac_t""no" 1>&6
1173 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1176 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1181 ac_cpp='$CPP $CPPFLAGS'
1182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1184 cross_compiling=$ac_cv_prog_cc_cross
1186 cat > conftest.$ac_ext << EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1193 if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1194 ac_cv_prog_cc_works=yes
1195 # If we can't run a trivial program, we are probably using a cross compiler.
1196 if (./conftest; exit) 2>/dev/null; then
1197 ac_cv_prog_cc_cross=no
1199 ac_cv_prog_cc_cross=yes
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 ac_cv_prog_cc_works=no
1208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1209 ac_cpp='$CPP $CPPFLAGS'
1210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1212 cross_compiling=$ac_cv_prog_cc_cross
1214 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1215 if test $ac_cv_prog_cc_works = no; then
1216 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1218 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1220 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1221 cross_compiling=$ac_cv_prog_cc_cross
1223 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1224 echo "configure:1225: checking whether we are using GNU C" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 cat > conftest.c <<EOF
1233 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1240 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1242 if test $ac_cv_prog_gcc = yes; then
1248 ac_test_CFLAGS="${CFLAGS+set}"
1249 ac_save_CFLAGS="$CFLAGS"
1251 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether ${CC-cc} accepts -g" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 echo 'void f(){}' > conftest.c
1257 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1266 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1267 if test "$ac_test_CFLAGS" = set; then
1268 CFLAGS="$ac_save_CFLAGS"
1269 elif test $ac_cv_prog_cc_g = yes; then
1270 if test "$GCC" = yes; then
1276 if test "$GCC" = yes; then
1284 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1285 echo "configure:1286: checking how to run the C preprocessor" >&5
1286 # On Suns, sometimes $CPP names a directory.
1287 if test -n "$CPP" && test -d "$CPP"; then
1290 if test -z "$CPP"; then
1291 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 # This must be in double quotes, not single quotes, because CPP may get
1295 # substituted into the Makefile and "${CC-cc}" will confuse make.
1297 # On the NeXT, cc -E runs the code through the compiler's parser,
1298 # not just through cpp.
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1312 echo "configure: failed program was:" >&5
1313 cat conftest.$ac_ext >&5
1315 CPP="${CC-cc} -E -traditional-cpp"
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1323 { (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1325 if test -z "$ac_err"; then
1329 echo "configure: failed program was:" >&5
1330 cat conftest.$ac_ext >&5
1332 CPP="${CC-cc} -nologo -E"
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1340 { (eval echo configure:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1342 if test -z "$ac_err"; then
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1356 ac_cv_prog_CPP="$CPP"
1358 CPP="$ac_cv_prog_CPP"
1360 ac_cv_prog_CPP="$CPP"
1362 echo "$ac_t""$CPP" 1>&6
1372 echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
1373 echo "configure:1374: checking dependency style of $depcc" >&5
1374 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1378 if test -z "$AMDEP"; then
1379 echo '#include "conftest.h"' > conftest.c
1380 echo 'int i;' > conftest.h
1382 am_cv_CC_dependencies_compiler_type=none
1383 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
1386 # after this tag, mechanisms are not by side-effect, so they'll
1387 # only be used when explicitly requested
1388 if test "x$enable_dependency_tracking" = xyes; then
1396 if depmode="$depmode" \
1397 source=conftest.c object=conftest.o \
1398 depfile=conftest.Po tmpdepfile=conftest.TPo \
1399 $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
1400 grep conftest.h conftest.Po > /dev/null 2>&1; then
1401 am_cv_CC_dependencies_compiler_type="$depmode"
1408 am_cv_CC_dependencies_compiler_type=none
1413 echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
1414 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1417 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1418 echo "configure:1419: checking how to run the C preprocessor" >&5
1419 # On Suns, sometimes $CPP names a directory.
1420 if test -n "$CPP" && test -d "$CPP"; then
1423 if test -z "$CPP"; then
1424 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 # This must be in double quotes, not single quotes, because CPP may get
1428 # substituted into the Makefile and "${CC-cc}" will confuse make.
1430 # On the NeXT, cc -E runs the code through the compiler's parser,
1431 # not just through cpp.
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1439 { (eval echo configure:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1441 if test -z "$ac_err"; then
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1448 CPP="${CC-cc} -E -traditional-cpp"
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1456 { (eval echo configure:1457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1458 if test -z "$ac_err"; then
1462 echo "configure: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1465 CPP="${CC-cc} -nologo -E"
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1473 { (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1475 if test -z "$ac_err"; then
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1489 ac_cv_prog_CPP="$CPP"
1491 CPP="$ac_cv_prog_CPP"
1493 ac_cv_prog_CPP="$CPP"
1495 echo "$ac_t""$CPP" 1>&6
1500 CFLAGS="$CFLAGS -DSYS_CYGWIN32"
1505 CFLAGS="$CFLAGS -Wc,+Abi-socket"
1512 CFLAGS="$CFLAGS -std1"
1521 *) case "$target" in
1523 # Quick and dirty sanity check
1524 case "$VX_KERNEL" in
1525 '') { echo "configure: error: Please follow the directions in html/vxworks.html!" 1>&2; exit 1; }
1528 CFLAGS="$CFLAGS -DSYS_VXWORKS"
1534 for ac_prog in mawk gawk nawk awk
1536 # Extract the first word of "$ac_prog", so it can be a program name with args.
1537 set dummy $ac_prog; ac_word=$2
1538 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1539 echo "configure:1540: checking for $ac_word" >&5
1540 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 if test -n "$AWK"; then
1544 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1548 for ac_dir in $ac_dummy; do
1549 test -z "$ac_dir" && ac_dir=.
1550 if test -f $ac_dir/$ac_word; then
1551 ac_cv_prog_AWK="$ac_prog"
1558 AWK="$ac_cv_prog_AWK"
1559 if test -n "$AWK"; then
1560 echo "$ac_t""$AWK" 1>&6
1562 echo "$ac_t""no" 1>&6
1565 test -n "$AWK" && break
1568 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1569 echo "configure:1570: checking whether ${MAKE-make} sets \${MAKE}" >&5
1570 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1571 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 cat > conftestmake <<\EOF
1576 @echo 'ac_maketemp="${MAKE}"'
1578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1579 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1580 if test -n "$ac_maketemp"; then
1581 eval ac_cv_prog_make_${ac_make}_set=yes
1583 eval ac_cv_prog_make_${ac_make}_set=no
1587 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1588 echo "$ac_t""yes" 1>&6
1591 echo "$ac_t""no" 1>&6
1592 SET_MAKE="MAKE=${MAKE-make}"
1600 CFLAGS="$CFLAGS -Wall"
1601 # CFLAGS="$CFLAGS -Wtraditional"
1602 CFLAGS="$CFLAGS -Wshadow"
1603 # CFLAGS="$CFLAGS -Wwrite-strings"
1604 CFLAGS="$CFLAGS -Wconversion"
1605 CFLAGS="$CFLAGS -Wpointer-arith"
1606 CFLAGS="$CFLAGS -Wcast-qual"
1607 # CFLAGS="$CFLAGS -Wcast-align"
1608 CFLAGS="$CFLAGS -Wstrict-prototypes"
1610 echo $ac_n "checking whether ${CC-cc} -pipe works""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether ${CC-cc} -pipe works" >&5
1612 if eval "test \"`echo '$''{'ac_cv_prog_cc_pipe'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 echo 'void f(){}' > conftest.c
1616 if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`" -a -s conftest.o; then
1617 ac_cv_prog_cc_pipe=yes
1619 ac_cv_prog_cc_pipe=no
1625 echo "$ac_t""$ac_cv_prog_cc_pipe" 1>&6
1627 case "$ac_cv_prog_cc_pipe" in
1629 CFLAGS="$CFLAGS -pipe"
1635 ac_busted_vpath_in_make=no
1638 *-*-irix6.1*) # 64 bit only
1640 *-*-irix6*) # 6.2 (and later?)
1641 ac_busted_vpath_in_make=yes
1642 # don't pass -n32 to gcc, it cannot handle and doesn't need it
1643 if test "$GCC" != yes; then
1647 *) case "$iCFLAGS" in
1648 '') CFLAGS="-O2 -g3 -n32" ;;
1649 *) CFLAGS="$CFLAGS -n32" ;;
1656 *) LDFLAGS="$LDFLAGS -n32" ;;
1661 CFLAGS="$CFLAGS -posix" ;;
1663 ac_busted_vpath_in_make=yes
1667 case "$ac_busted_vpath_in_make$srcdir" in
1670 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
1672 { echo "configure: error: building outside of the main directory requires GNU make" 1>&2; exit 1; }
1680 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether ln -s works" >&5
1682 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1686 if ln -s X conftestdata 2>/dev/null
1689 ac_cv_prog_LN_S="ln -s"
1694 LN_S="$ac_cv_prog_LN_S"
1695 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1696 echo "$ac_t""yes" 1>&6
1698 echo "$ac_t""no" 1>&6
1701 if test $ac_cv_prog_gcc = yes; then
1702 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1703 echo "configure:1704: checking whether ${CC-cc} needs -traditional" >&5
1704 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 ac_pattern="Autoconf.*'x'"
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715 egrep "$ac_pattern" >/dev/null 2>&1; then
1717 ac_cv_prog_gcc_traditional=yes
1720 ac_cv_prog_gcc_traditional=no
1725 if test $ac_cv_prog_gcc_traditional = no; then
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1733 egrep "$ac_pattern" >/dev/null 2>&1; then
1735 ac_cv_prog_gcc_traditional=yes
1742 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1743 if test $ac_cv_prog_gcc_traditional = yes; then
1744 CC="$CC -traditional"
1748 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1749 echo "configure:1750: checking for AIX" >&5
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1759 egrep "yes" >/dev/null 2>&1; then
1761 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1762 #define _ALL_SOURCE 1
1767 echo "$ac_t""no" 1>&6
1772 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1773 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1774 echo "configure:1775: checking for minix/config.h" >&5
1775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #include <minix/config.h>
1783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1784 { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1786 if test -z "$ac_err"; then
1788 eval "ac_cv_header_$ac_safe=yes"
1791 echo "configure: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1794 eval "ac_cv_header_$ac_safe=no"
1798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1802 echo "$ac_t""no" 1>&6
1806 if test "$MINIX" = yes; then
1807 cat >> confdefs.h <<\EOF
1808 #define _POSIX_SOURCE 1
1811 cat >> confdefs.h <<\EOF
1812 #define _POSIX_1_SOURCE 2
1815 cat >> confdefs.h <<\EOF
1821 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1822 echo "configure:1823: checking for POSIXized ISC" >&5
1823 if test -d /etc/conf/kconfig.d &&
1824 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1826 echo "$ac_t""yes" 1>&6
1827 ISC=yes # If later tests want to check for ISC.
1828 cat >> confdefs.h <<\EOF
1829 #define _POSIX_SOURCE 1
1832 if test "$GCC" = yes; then
1838 echo "$ac_t""no" 1>&6
1842 # Extract the first word of "ranlib", so it can be a program name with args.
1843 set dummy ranlib; ac_word=$2
1844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_word" >&5
1846 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 if test -n "$RANLIB"; then
1850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1854 for ac_dir in $ac_dummy; do
1855 test -z "$ac_dir" && ac_dir=.
1856 if test -f $ac_dir/$ac_word; then
1857 ac_cv_prog_RANLIB="ranlib"
1862 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1865 RANLIB="$ac_cv_prog_RANLIB"
1866 if test -n "$RANLIB"; then
1867 echo "$ac_t""$RANLIB" 1>&6
1869 echo "$ac_t""no" 1>&6
1872 # Extract the first word of "sh", so it can be a program name with args.
1873 set dummy sh; ac_word=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_path_PATH_SH'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1881 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
1884 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a dos path.
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 ac_cv_path_PATH_SH="$ac_dir/$ac_word"
1900 PATH_SH="$ac_cv_path_PATH_SH"
1901 if test -n "$PATH_SH"; then
1902 echo "$ac_t""$PATH_SH" 1>&6
1904 echo "$ac_t""no" 1>&6
1910 ac_link="$ac_link $VX_KERNEL"
1914 # Find a good install program. We prefer a C program (faster),
1915 # so one script is as good as another. But avoid the broken or
1916 # incompatible versions:
1917 # SysV /etc/install, /usr/sbin/install
1918 # SunOS /usr/etc/install
1919 # IRIX /sbin/install
1921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1924 # ./install, which can be erroneously created by make from ./install.sh.
1925 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1926 echo "configure:1927: checking for a BSD compatible install" >&5
1927 if test -z "$INSTALL"; then
1928 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1932 for ac_dir in $PATH; do
1933 # Account for people who put trailing slashes in PATH elements.
1935 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1937 # OSF1 and SCO ODT 3.0 have their own names for install.
1938 # Don't use installbsd from OSF since it installs stuff as root
1940 for ac_prog in ginstall scoinst install; do
1941 if test -f $ac_dir/$ac_prog; then
1942 if test $ac_prog = install &&
1943 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1944 # AIX install. It has an incompatible calling convention.
1947 ac_cv_path_install="$ac_dir/$ac_prog -c"
1958 if test "${ac_cv_path_install+set}" = set; then
1959 INSTALL="$ac_cv_path_install"
1961 # As a last resort, use the slow shell script. We don't cache a
1962 # path for INSTALL within a source directory, because that will
1963 # break other packages using the cache if that directory is
1964 # removed, or if the path is relative.
1965 INSTALL="$ac_install_sh"
1968 echo "$ac_t""$INSTALL" 1>&6
1970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1971 # It thinks the first close brace ends the variable substitution.
1972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1981 echo $ac_n "checking for main in -ladvapi32""... $ac_c" 1>&6
1982 echo "configure:1983: checking for main in -ladvapi32" >&5
1983 ac_lib_var=`echo advapi32'_'main | sed 'y%./+-%__p_%'`
1984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 ac_save_LIBS="$LIBS"
1988 LIBS="-ladvapi32 $LIBS"
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999 eval "ac_cv_lib_$ac_lib_var=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2004 eval "ac_cv_lib_$ac_lib_var=no"
2007 LIBS="$ac_save_LIBS"
2010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2011 echo "$ac_t""yes" 1>&6
2012 ac_tr_lib=HAVE_LIB`echo advapi32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2014 cat >> confdefs.h <<EOF
2015 #define $ac_tr_lib 1
2018 LIBS="-ladvapi32 $LIBS"
2021 echo "$ac_t""no" 1>&6
2026 echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6
2027 echo "configure:2028: checking for nlist in -lelf" >&5
2028 ac_lib_var=`echo elf'_'nlist | sed 'y%./+-%__p_%'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 ac_save_LIBS="$LIBS"
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2046 if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2048 eval "ac_cv_lib_$ac_lib_var=yes"
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2053 eval "ac_cv_lib_$ac_lib_var=no"
2056 LIBS="$ac_save_LIBS"
2059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2063 cat >> confdefs.h <<EOF
2064 #define $ac_tr_lib 1
2070 echo "$ac_t""no" 1>&6
2073 echo $ac_n "checking for main in -lkvm""... $ac_c" 1>&6
2074 echo "configure:2075: checking for main in -lkvm" >&5
2075 ac_lib_var=`echo kvm'_'main | sed 'y%./+-%__p_%'`
2076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 ac_save_LIBS="$LIBS"
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2089 if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2091 eval "ac_cv_lib_$ac_lib_var=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 eval "ac_cv_lib_$ac_lib_var=no"
2099 LIBS="$ac_save_LIBS"
2102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2104 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2105 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2106 cat >> confdefs.h <<EOF
2107 #define $ac_tr_lib 1
2113 echo "$ac_t""no" 1>&6
2115 echo $ac_n "checking for nlist in -lld""... $ac_c" 1>&6
2116 echo "configure:2117: checking for nlist in -lld" >&5
2117 ac_lib_var=`echo ld'_'nlist | sed 'y%./+-%__p_%'`
2118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 ac_save_LIBS="$LIBS"
2123 cat > conftest.$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 /* Override any gcc2 internal prototype to avoid an error. */
2127 /* We use char because int might match the return type of a gcc2
2128 builtin and then its argument prototype would still apply. */
2135 if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2137 eval "ac_cv_lib_$ac_lib_var=yes"
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 eval "ac_cv_lib_$ac_lib_var=no"
2145 LIBS="$ac_save_LIBS"
2148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2149 echo "$ac_t""yes" 1>&6
2150 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2152 cat >> confdefs.h <<EOF
2153 #define $ac_tr_lib 1
2159 echo "$ac_t""no" 1>&6
2162 echo $ac_n "checking for nlist in -lmld""... $ac_c" 1>&6
2163 echo "configure:2164: checking for nlist in -lmld" >&5
2164 ac_lib_var=`echo mld'_'nlist | sed 'y%./+-%__p_%'`
2165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 ac_save_LIBS="$LIBS"
2170 cat > conftest.$ac_ext <<EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2173 /* Override any gcc2 internal prototype to avoid an error. */
2174 /* We use char because int might match the return type of a gcc2
2175 builtin and then its argument prototype would still apply. */
2182 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2184 eval "ac_cv_lib_$ac_lib_var=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2189 eval "ac_cv_lib_$ac_lib_var=no"
2192 LIBS="$ac_save_LIBS"
2195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2196 echo "$ac_t""yes" 1>&6
2197 ac_tr_lib=HAVE_LIB`echo mld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2199 cat >> confdefs.h <<EOF
2200 #define $ac_tr_lib 1
2206 echo "$ac_t""no" 1>&6
2209 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
2210 echo "configure:2211: checking for gethostent" >&5
2211 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 /* System header to define __stub macros and hopefully few prototypes,
2218 which can conflict with char gethostent(); below. */
2220 /* Override any gcc2 internal prototype to avoid an error. */
2221 /* We use char because int might match the return type of a gcc2
2222 builtin and then its argument prototype would still apply. */
2227 /* The GNU C library defines this for functions which it implements
2228 to always fail with ENOSYS. Some functions are actually named
2229 something starting with __ and the normal name is an alias. */
2230 #if defined (__stub_gethostent) || defined (__stub___gethostent)
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2240 eval "ac_cv_func_gethostent=yes"
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 eval "ac_cv_func_gethostent=no"
2250 if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2254 echo "$ac_t""no" 1>&6
2255 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
2256 echo "configure:2257: checking for gethostent in -lnsl" >&5
2257 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
2258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 ac_save_LIBS="$LIBS"
2262 LIBS="-lnsl -lsocket $LIBS"
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 /* Override any gcc2 internal prototype to avoid an error. */
2267 /* We use char because int might match the return type of a gcc2
2268 builtin and then its argument prototype would still apply. */
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2277 eval "ac_cv_lib_$ac_lib_var=yes"
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 eval "ac_cv_lib_$ac_lib_var=no"
2285 LIBS="$ac_save_LIBS"
2288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2292 cat >> confdefs.h <<EOF
2293 #define $ac_tr_lib 1
2299 echo "$ac_t""no" 1>&6
2304 echo $ac_n "checking for openlog""... $ac_c" 1>&6
2305 echo "configure:2306: checking for openlog" >&5
2306 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char openlog(); below. */
2315 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */
2322 /* The GNU C library defines this for functions which it implements
2323 to always fail with ENOSYS. Some functions are actually named
2324 something starting with __ and the normal name is an alias. */
2325 #if defined (__stub_openlog) || defined (__stub___openlog)
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 eval "ac_cv_func_openlog=yes"
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 eval "ac_cv_func_openlog=no"
2345 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2349 echo "$ac_t""no" 1>&6
2350 echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6
2351 echo "configure:2352: checking for openlog in -lgen" >&5
2352 ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'`
2353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 ac_save_LIBS="$LIBS"
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2361 /* Override any gcc2 internal prototype to avoid an error. */
2362 /* We use char because int might match the return type of a gcc2
2363 builtin and then its argument prototype would still apply. */
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 eval "ac_cv_lib_$ac_lib_var=yes"
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 eval "ac_cv_lib_$ac_lib_var=no"
2380 LIBS="$ac_save_LIBS"
2383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/^a-zA-Z0-9_/_/g' \
2386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2387 cat >> confdefs.h <<EOF
2388 #define $ac_tr_lib 1
2394 echo "$ac_t""no" 1>&6
2400 echo $ac_n "checking for sched_setscheduler in -lrt""... $ac_c" 1>&6
2401 echo "configure:2402: checking for sched_setscheduler in -lrt" >&5
2402 ac_lib_var=`echo rt'_'sched_setscheduler | sed 'y%./+-%__p_%'`
2403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 ac_save_LIBS="$LIBS"
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 /* Override any gcc2 internal prototype to avoid an error. */
2412 /* We use char because int might match the return type of a gcc2
2413 builtin and then its argument prototype would still apply. */
2414 char sched_setscheduler();
2417 sched_setscheduler()
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2422 eval "ac_cv_lib_$ac_lib_var=yes"
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 eval "ac_cv_lib_$ac_lib_var=no"
2430 LIBS="$ac_save_LIBS"
2433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2435 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2437 cat >> confdefs.h <<EOF
2438 #define $ac_tr_lib 1
2444 echo "$ac_t""no" 1>&6
2445 echo $ac_n "checking for sched_setscheduler in -lposix4""... $ac_c" 1>&6
2446 echo "configure:2447: checking for sched_setscheduler in -lposix4" >&5
2447 ac_lib_var=`echo posix4'_'sched_setscheduler | sed 'y%./+-%__p_%'`
2448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 ac_save_LIBS="$LIBS"
2452 LIBS="-lposix4 $LIBS"
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* Override any gcc2 internal prototype to avoid an error. */
2457 /* We use char because int might match the return type of a gcc2
2458 builtin and then its argument prototype would still apply. */
2459 char sched_setscheduler();
2462 sched_setscheduler()
2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2467 eval "ac_cv_lib_$ac_lib_var=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2472 eval "ac_cv_lib_$ac_lib_var=no"
2475 LIBS="$ac_save_LIBS"
2478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2480 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/^a-zA-Z0-9_/_/g' \
2481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2482 cat >> confdefs.h <<EOF
2483 #define $ac_tr_lib 1
2486 LIBS="-lposix4 $LIBS"
2489 echo "$ac_t""no" 1>&6
2494 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
2495 echo "configure:2496: checking for setsockopt" >&5
2496 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 /* System header to define __stub macros and hopefully few prototypes,
2503 which can conflict with char setsockopt(); below. */
2505 /* Override any gcc2 internal prototype to avoid an error. */
2506 /* We use char because int might match the return type of a gcc2
2507 builtin and then its argument prototype would still apply. */
2512 /* The GNU C library defines this for functions which it implements
2513 to always fail with ENOSYS. Some functions are actually named
2514 something starting with __ and the normal name is an alias. */
2515 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2525 eval "ac_cv_func_setsockopt=yes"
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2530 eval "ac_cv_func_setsockopt=no"
2535 if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2539 echo "$ac_t""no" 1>&6
2540 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
2541 echo "configure:2542: checking for setsockopt in -lsocket" >&5
2542 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
2543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 ac_save_LIBS="$LIBS"
2547 LIBS="-lsocket $LIBS"
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 /* We use char because int might match the return type of a gcc2
2553 builtin and then its argument prototype would still apply. */
2560 if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2562 eval "ac_cv_lib_$ac_lib_var=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 eval "ac_cv_lib_$ac_lib_var=no"
2570 LIBS="$ac_save_LIBS"
2573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2574 echo "$ac_t""yes" 1>&6
2575 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2576 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2577 cat >> confdefs.h <<EOF
2578 #define $ac_tr_lib 1
2581 LIBS="-lsocket $LIBS"
2584 echo "$ac_t""no" 1>&6
2590 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2591 echo "configure:2592: checking for ANSI C header files" >&5
2592 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2608 ac_cv_header_stdc=yes
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 ac_cv_header_stdc=no
2618 if test $ac_cv_header_stdc = yes; then
2619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2626 egrep "memchr" >/dev/null 2>&1; then
2630 ac_cv_header_stdc=no
2636 if test $ac_cv_header_stdc = yes; then
2637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2644 egrep "free" >/dev/null 2>&1; then
2648 ac_cv_header_stdc=no
2654 if test $ac_cv_header_stdc = yes; then
2655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2656 if test "$cross_compiling" = yes; then
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2663 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2664 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2666 int main () { int i; for (i = 0; i < 256; i++)
2667 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2671 if { (eval echo configure:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2678 ac_cv_header_stdc=no
2686 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2687 if test $ac_cv_header_stdc = yes; then
2688 cat >> confdefs.h <<\EOF
2689 #define STDC_HEADERS 1
2694 for ac_hdr in bstring.h errno.h fcntl.h memory.h netdb.h poll.h resolv.h
2696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_hdr" >&5
2699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2712 eval "ac_cv_header_$ac_safe=yes"
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2718 eval "ac_cv_header_$ac_safe=no"
2722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2725 cat >> confdefs.h <<EOF
2726 #define $ac_tr_hdr 1
2730 echo "$ac_t""no" 1>&6
2734 for ac_hdr in sched.h sgtty.h stdlib.h string.h termio.h termios.h
2736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2738 echo "configure:2739: checking for $ac_hdr" >&5
2739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2748 { (eval echo configure:2749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2750 if test -z "$ac_err"; then
2752 eval "ac_cv_header_$ac_safe=yes"
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2758 eval "ac_cv_header_$ac_safe=no"
2762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2765 cat >> confdefs.h <<EOF
2766 #define $ac_tr_hdr 1
2770 echo "$ac_t""no" 1>&6
2774 for ac_hdr in timepps.h timex.h unistd.h utmp.h utmpx.h
2776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2778 echo "configure:2779: checking for $ac_hdr" >&5
2779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2788 { (eval echo configure:2789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2790 if test -z "$ac_err"; then
2792 eval "ac_cv_header_$ac_safe=yes"
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2798 eval "ac_cv_header_$ac_safe=no"
2802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2803 echo "$ac_t""yes" 1>&6
2804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2805 cat >> confdefs.h <<EOF
2806 #define $ac_tr_hdr 1
2810 echo "$ac_t""no" 1>&6
2814 for ac_hdr in arpa/nameser.h net/if.h netinet/in_systm.h netinet/in.h
2816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2818 echo "configure:2819: checking for $ac_hdr" >&5
2819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2828 { (eval echo configure:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2830 if test -z "$ac_err"; then
2832 eval "ac_cv_header_$ac_safe=yes"
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2838 eval "ac_cv_header_$ac_safe=no"
2842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2845 cat >> confdefs.h <<EOF
2846 #define $ac_tr_hdr 1
2850 echo "$ac_t""no" 1>&6
2854 for ac_hdr in netinfo/ni.h
2856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2858 echo "configure:2859: checking for $ac_hdr" >&5
2859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2868 { (eval echo configure:2869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2870 if test -z "$ac_err"; then
2872 eval "ac_cv_header_$ac_safe=yes"
2875 echo "configure: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2878 eval "ac_cv_header_$ac_safe=no"
2882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2883 echo "$ac_t""yes" 1>&6
2884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2885 cat >> confdefs.h <<EOF
2886 #define $ac_tr_hdr 1
2888 cat >> confdefs.h <<\EOF
2889 #define HAVE_NETINFO 1
2893 echo "$ac_t""no" 1>&6
2897 for ac_hdr in sun/audioio.h sys/audioio.h
2899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2915 eval "ac_cv_header_$ac_safe=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 eval "ac_cv_header_$ac_safe=no"
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928 cat >> confdefs.h <<EOF
2929 #define $ac_tr_hdr 1
2933 echo "$ac_t""no" 1>&6
2937 for ac_hdr in sys/clkdefs.h sys/file.h
2939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2941 echo "configure:2942: checking for $ac_hdr" >&5
2942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2951 { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2953 if test -z "$ac_err"; then
2955 eval "ac_cv_header_$ac_safe=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 eval "ac_cv_header_$ac_safe=no"
2965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2968 cat >> confdefs.h <<EOF
2969 #define $ac_tr_hdr 1
2973 echo "$ac_t""no" 1>&6
2979 *) for ac_hdr in sys/ioctl.h
2981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_hdr" >&5
2984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2993 { (eval echo configure:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2995 if test -z "$ac_err"; then
2997 eval "ac_cv_header_$ac_safe=yes"
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3003 eval "ac_cv_header_$ac_safe=no"
3007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3010 cat >> confdefs.h <<EOF
3011 #define $ac_tr_hdr 1
3015 echo "$ac_t""no" 1>&6
3021 for ac_hdr in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
3023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3025 echo "configure:3026: checking for $ac_hdr" >&5
3026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3035 { (eval echo configure:3036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3037 if test -z "$ac_err"; then
3039 eval "ac_cv_header_$ac_safe=yes"
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3045 eval "ac_cv_header_$ac_safe=no"
3049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3050 echo "$ac_t""yes" 1>&6
3051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3052 cat >> confdefs.h <<EOF
3053 #define $ac_tr_hdr 1
3057 echo "$ac_t""no" 1>&6
3061 for ac_hdr in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
3063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3065 echo "configure:3066: checking for $ac_hdr" >&5
3066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3075 { (eval echo configure:3076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3077 if test -z "$ac_err"; then
3079 eval "ac_cv_header_$ac_safe=yes"
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3085 eval "ac_cv_header_$ac_safe=no"
3089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3092 cat >> confdefs.h <<EOF
3093 #define $ac_tr_hdr 1
3097 echo "$ac_t""no" 1>&6
3103 for ac_hdr in sys/sio.h
3105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_hdr" >&5
3108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3117 { (eval echo configure:3118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3119 if test -z "$ac_err"; then
3121 eval "ac_cv_header_$ac_safe=yes"
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3127 eval "ac_cv_header_$ac_safe=no"
3131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3132 echo "$ac_t""yes" 1>&6
3133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3134 cat >> confdefs.h <<EOF
3135 #define $ac_tr_hdr 1
3139 echo "$ac_t""no" 1>&6
3145 for ac_hdr in sys/select.h sys/sockio.h sys/stat.h sys/stream.h
3147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3149 echo "configure:3150: checking for $ac_hdr" >&5
3150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3159 { (eval echo configure:3160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3161 if test -z "$ac_err"; then
3163 eval "ac_cv_header_$ac_safe=yes"
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3169 eval "ac_cv_header_$ac_safe=no"
3173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3174 echo "$ac_t""yes" 1>&6
3175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3176 cat >> confdefs.h <<EOF
3177 #define $ac_tr_hdr 1
3181 echo "$ac_t""no" 1>&6
3185 for ac_hdr in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/termios.h
3187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_hdr" >&5
3190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3199 { (eval echo configure:3200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3201 if test -z "$ac_err"; then
3203 eval "ac_cv_header_$ac_safe=yes"
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3209 eval "ac_cv_header_$ac_safe=no"
3213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3216 cat >> confdefs.h <<EOF
3217 #define $ac_tr_hdr 1
3221 echo "$ac_t""no" 1>&6
3225 for ac_hdr in sys/time.h
3227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3229 echo "configure:3230: checking for $ac_hdr" >&5
3230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3239 { (eval echo configure:3240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3241 if test -z "$ac_err"; then
3243 eval "ac_cv_header_$ac_safe=yes"
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 eval "ac_cv_header_$ac_safe=no"
3253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3256 cat >> confdefs.h <<EOF
3257 #define $ac_tr_hdr 1
3261 echo "$ac_t""no" 1>&6
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <sys/timepps.h>
3269 #ifdef PPS_API_VERS_1
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275 egrep "yes" >/dev/null 2>&1; then
3277 for ac_hdr in sys/timepps.h
3279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3281 echo "configure:3282: checking for $ac_hdr" >&5
3282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3291 { (eval echo configure:3292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3293 if test -z "$ac_err"; then
3295 eval "ac_cv_header_$ac_safe=yes"
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 eval "ac_cv_header_$ac_safe=no"
3305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3306 echo "$ac_t""yes" 1>&6
3307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3308 cat >> confdefs.h <<EOF
3309 #define $ac_tr_hdr 1
3313 echo "$ac_t""no" 1>&6
3320 for ac_hdr in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
3322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3324 echo "configure:3325: checking for $ac_hdr" >&5
3325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3334 { (eval echo configure:3335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3336 if test -z "$ac_err"; then
3338 eval "ac_cv_header_$ac_safe=yes"
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3344 eval "ac_cv_header_$ac_safe=no"
3348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3351 cat >> confdefs.h <<EOF
3352 #define $ac_tr_hdr 1
3356 echo "$ac_t""no" 1>&6
3360 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3361 echo "configure:3362: checking whether time.h and sys/time.h may both be included" >&5
3362 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <sys/types.h>
3369 #include <sys/time.h>
3375 if { (eval echo configure:3376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3377 ac_cv_header_time=yes
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3382 ac_cv_header_time=no
3387 echo "$ac_t""$ac_cv_header_time" 1>&6
3388 if test $ac_cv_header_time = yes; then
3389 cat >> confdefs.h <<\EOF
3390 #define TIME_WITH_SYS_TIME 1
3397 for ac_hdr in /sys/sync/queue.h /sys/sync/sema.h
3399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_hdr" >&5
3402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3411 { (eval echo configure:3412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3413 if test -z "$ac_err"; then
3415 eval "ac_cv_header_$ac_safe=yes"
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3421 eval "ac_cv_header_$ac_safe=no"
3425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3428 cat >> confdefs.h <<EOF
3429 #define $ac_tr_hdr 1
3433 echo "$ac_t""no" 1>&6
3439 for ac_hdr in machine/inline.h sys/pcl720.h sys/i8253.h
3441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $ac_hdr" >&5
3444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3453 { (eval echo configure:3454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3455 if test -z "$ac_err"; then
3457 eval "ac_cv_header_$ac_safe=yes"
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3463 eval "ac_cv_header_$ac_safe=no"
3467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3470 cat >> confdefs.h <<EOF
3471 #define $ac_tr_hdr 1
3475 echo "$ac_t""no" 1>&6
3482 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
3483 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
3484 echo "configure:3485: checking for nlist.h" >&5
3485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3494 { (eval echo configure:3495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3496 if test -z "$ac_err"; then
3498 eval "ac_cv_header_$ac_safe=yes"
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3504 eval "ac_cv_header_$ac_safe=no"
3508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3509 echo "$ac_t""yes" 1>&6
3510 cat >> confdefs.h <<\EOF
3511 #define NLIST_STRUCT 1
3514 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
3515 echo "configure:3516: checking for n_un in struct nlist" >&5
3516 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3524 struct nlist n; n.n_un.n_name = 0;
3527 if { (eval echo configure:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529 ac_cv_struct_nlist_n_un=yes
3531 echo "configure: failed program was:" >&5
3532 cat conftest.$ac_ext >&5
3534 ac_cv_struct_nlist_n_un=no
3539 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
3540 if test $ac_cv_struct_nlist_n_un = yes; then
3541 cat >> confdefs.h <<\EOF
3542 #define NLIST_NAME_UNION 1
3548 echo "$ac_t""no" 1>&6
3551 echo $ac_n "checking for basic volatile support""... $ac_c" 1>&6
3552 echo "configure:3553: checking for basic volatile support" >&5
3553 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 cat > conftest.$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3565 if { (eval echo configure:3566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567 ac_cv_c_volatile=yes
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3578 echo "$ac_t""$ac_cv_c_volatile" 1>&6
3579 case "$ac_cv_c_volatile" in
3582 *) cat >> confdefs.h <<\EOF
3591 # Assume that solaris2 is Ansi C...
3597 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3598 echo "configure:3599: checking for ${CC-cc} option to accept ANSI C" >&5
3599 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 am_cv_prog_cc_stdc=no
3604 # Don't try gcc -ansi; that turns off useful extensions and
3605 # breaks some systems' header files.
3606 # AIX -qlanglvl=ansi
3607 # Ultrix and OSF/1 -std1
3608 # HP-UX 10.20 and later -Ae
3609 # HP-UX older versions -Aa -D_HPUX_SOURCE
3610 # SVR4 -Xc -D__EXTENSIONS__
3611 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3613 CC="$ac_save_CC $ac_arg"
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3635 s = g (p, va_arg (v,int));
3639 int test (int i, double x);
3640 struct s1 {int (*f) (int a);};
3641 struct s2 {int (*f) (double a);};
3642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3648 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3652 if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3654 am_cv_prog_cc_stdc="$ac_arg"; break
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3665 if test -z "$am_cv_prog_cc_stdc"; then
3666 echo "$ac_t""none needed" 1>&6
3668 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3670 case "x$am_cv_prog_cc_stdc" in
3672 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3677 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3678 echo "configure:3679: checking for function prototypes" >&5
3679 if test "$am_cv_prog_cc_stdc" != no; then
3680 echo "$ac_t""yes" 1>&6
3681 cat >> confdefs.h <<\EOF
3682 #define PROTOTYPES 1
3687 echo "$ac_t""no" 1>&6
3688 U=_ ANSI2KNR=./ansi2knr
3689 # Ensure some checks needed by ansi2knr itself.
3690 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3691 echo "configure:3692: checking for ANSI C header files" >&5
3692 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3704 { (eval echo configure:3705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3706 if test -z "$ac_err"; then
3708 ac_cv_header_stdc=yes
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3714 ac_cv_header_stdc=no
3718 if test $ac_cv_header_stdc = yes; then
3719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 egrep "memchr" >/dev/null 2>&1; then
3730 ac_cv_header_stdc=no
3736 if test $ac_cv_header_stdc = yes; then
3737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744 egrep "free" >/dev/null 2>&1; then
3748 ac_cv_header_stdc=no
3754 if test $ac_cv_header_stdc = yes; then
3755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3756 if test "$cross_compiling" = yes; then
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3763 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3764 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3766 int main () { int i; for (i = 0; i < 256; i++)
3767 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3771 if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 ac_cv_header_stdc=no
3786 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3787 if test $ac_cv_header_stdc = yes; then
3788 cat >> confdefs.h <<\EOF
3789 #define STDC_HEADERS 1
3794 for ac_hdr in string.h
3796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3798 echo "configure:3799: checking for $ac_hdr" >&5
3799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3808 { (eval echo configure:3809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3810 if test -z "$ac_err"; then
3812 eval "ac_cv_header_$ac_safe=yes"
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 eval "ac_cv_header_$ac_safe=no"
3822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3823 echo "$ac_t""yes" 1>&6
3824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3825 cat >> confdefs.h <<EOF
3826 #define $ac_tr_hdr 1
3830 echo "$ac_t""no" 1>&6
3838 echo $ac_n "checking if C compiler permits function prototypes""... $ac_c" 1>&6
3839 echo "configure:3840: checking if C compiler permits function prototypes" >&5
3840 if eval "test \"`echo '$''{'ac_cv_have_prototypes'+set}'`\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3847 extern int foo (short);
3848 int foo(short i) { return i; }
3854 if { (eval echo configure:3855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3856 ac_cv_have_prototypes=yes
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3861 ac_cv_have_prototypes=no
3867 echo "$ac_t""$ac_cv_have_prototypes" 1>&6
3868 if test "$ac_cv_have_prototypes" = yes; then
3869 cat >> confdefs.h <<\EOF
3870 #define HAVE_PROTOTYPES 1
3875 echo $ac_n "checking for working const""... $ac_c" 1>&6
3876 echo "configure:3877: checking for working const" >&5
3877 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3886 /* Ultrix mips cc rejects this. */
3887 typedef int charset[2]; const charset x;
3888 /* SunOS 4.1.1 cc rejects this. */
3889 char const *const *ccp;
3891 /* NEC SVR4.0.2 mips cc rejects this. */
3892 struct point {int x, y;};
3893 static struct point const zero = {0,0};
3894 /* AIX XL C 1.02.0.0 rejects this.
3895 It does not let you subtract one const X* pointer from another in an arm
3896 of an if-expression whose if-part is not a constant expression */
3897 const char *g = "string";
3898 ccp = &g + (g ? g-g : 0);
3899 /* HPUX 7.0 cc rejects these. */
3902 ccp = (char const *const *) p;
3903 { /* SCO 3.2v4 cc rejects this. */
3905 char const *s = 0 ? (char *) 0 : (char const *) 0;
3909 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3911 const int *foo = &x[0];
3914 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3915 typedef const int *iptr;
3919 { /* AIX XL C 1.02.0.0 rejects this saying
3920 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3921 struct s { int j; const int *ap[3]; };
3922 struct s *b; b->j = 5;
3924 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3942 echo "$ac_t""$ac_cv_c_const" 1>&6
3943 if test $ac_cv_c_const = no; then
3944 cat >> confdefs.h <<\EOF
3952 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3953 echo "configure:3954: checking whether byte ordering is bigendian" >&5
3954 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_cv_c_bigendian=unknown
3958 # See if sys/param.h defines the BYTE_ORDER macro.
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 #include <sys/types.h>
3963 #include <sys/param.h>
3966 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3971 if { (eval echo configure:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3973 # It does; now see whether it defined to BIG_ENDIAN or not.
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 #include <sys/types.h>
3978 #include <sys/param.h>
3981 #if BYTE_ORDER != BIG_ENDIAN
3986 if { (eval echo configure:3987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3988 ac_cv_c_bigendian=yes
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 ac_cv_c_bigendian=no
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4001 if test $ac_cv_c_bigendian = unknown; then
4002 if test "$cross_compiling" = yes; then
4003 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4009 /* Are we little or big endian? From Harbison&Steele. */
4013 char c[sizeof (long)];
4016 exit (u.c[sizeof (long) - 1] == 1);
4019 if { (eval echo configure:4020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4021 ac_cv_c_bigendian=no
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4026 ac_cv_c_bigendian=yes
4034 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4035 if test $ac_cv_c_bigendian = yes; then
4036 cat >> confdefs.h <<\EOF
4037 #define WORDS_BIGENDIAN 1
4043 *) case "$target" in
4048 cat >> confdefs.h <<\EOF
4049 #define WORDS_BIGENDIAN 1
4053 *) { echo "configure: error: Cross-compiling needs explicit byte order" 1>&2; exit 1; }
4058 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4059 echo "configure:4060: checking return type of signal handlers" >&5
4060 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 #include <sys/types.h>
4072 extern "C" void (*signal (int, void (*)(int)))(int);
4074 void (*signal ()) ();
4081 if { (eval echo configure:4082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4083 ac_cv_type_signal=void
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4088 ac_cv_type_signal=int
4093 echo "$ac_t""$ac_cv_type_signal" 1>&6
4094 cat >> confdefs.h <<EOF
4095 #define RETSIGTYPE $ac_cv_type_signal
4099 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4100 echo "configure:4101: checking for off_t" >&5
4101 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 #include <sys/types.h>
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4116 ac_cv_type_off_t=yes
4124 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4125 if test $ac_cv_type_off_t = no; then
4126 cat >> confdefs.h <<\EOF
4132 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4133 echo "configure:4134: checking for size_t" >&5
4134 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4149 ac_cv_type_size_t=yes
4152 ac_cv_type_size_t=no
4157 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4158 if test $ac_cv_type_size_t = no; then
4159 cat >> confdefs.h <<\EOF
4160 #define size_t unsigned
4165 echo $ac_n "checking for time_t""... $ac_c" 1>&6
4166 echo "configure:4167: checking for time_t" >&5
4167 if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 #include <sys/types.h>
4179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4180 egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4182 ac_cv_type_time_t=yes
4185 ac_cv_type_time_t=no
4190 echo "$ac_t""$ac_cv_type_time_t" 1>&6
4191 if test $ac_cv_type_time_t = no; then
4192 cat >> confdefs.h <<\EOF
4198 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4199 echo "configure:4200: checking whether struct tm is in sys/time.h or time.h" >&5
4200 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 #include <sys/types.h>
4209 struct tm *tp; tp->tm_sec;
4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4214 ac_cv_struct_tm=time.h
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 ac_cv_struct_tm=sys/time.h
4224 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4225 if test $ac_cv_struct_tm = sys/time.h; then
4226 cat >> confdefs.h <<\EOF
4227 #define TM_IN_SYS_TIME 1
4233 echo $ac_n "checking for a fallback value for HZ""... $ac_c" 1>&6
4234 echo "configure:4235: checking for a fallback value for HZ" >&5
4235 if eval "test \"`echo '$''{'ac_cv_var_default_hz'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 ac_cv_var_default_hz=100
4240 alpha*-dec-osf4*|alpha*-dec-osf5*)
4241 ac_cv_var_default_hz=1024
4244 ac_cv_var_default_hz=256
4249 echo "$ac_t""$ac_cv_var_default_hz" 1>&6
4250 cat >> confdefs.h <<EOF
4251 #define DEFAULT_HZ $ac_cv_var_default_hz
4255 echo $ac_n "checking if we need to override the system's value for HZ""... $ac_c" 1>&6
4256 echo "configure:4257: checking if we need to override the system's value for HZ" >&5
4257 if eval "test \"`echo '$''{'ac_cv_var_override_hz'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 ac_cv_var_override_hz=no
4262 alpha*-dec-osf4*|alpha*-dec-osf5*)
4263 ac_cv_var_override_hz=yes
4266 ac_cv_var_override_hz=yes
4269 ac_cv_var_override_hz=yes
4272 ac_cv_var_override_hz=yes
4277 echo "$ac_t""$ac_cv_var_override_hz" 1>&6
4278 case "$ac_cv_var_override_hz" in
4280 cat >> confdefs.h <<\EOF
4281 #define OVERRIDE_HZ 1
4289 echo $ac_n "checking struct sigaction for sa_sigaction""... $ac_c" 1>&6
4290 echo "configure:4291: checking struct sigaction for sa_sigaction" >&5
4291 if eval "test \"`echo '$''{'ac_cv_struct_sigaction_has_sa_sigaction'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4300 struct sigaction act; act.sa_sigaction = 0;
4303 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4305 ac_cv_struct_sigaction_has_sa_sigaction=yes
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4310 ac_cv_struct_sigaction_has_sa_sigaction=no
4318 echo "$ac_t""$ac_cv_struct_sigaction_has_sa_sigaction" 1>&6
4319 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
4320 cat >> confdefs.h <<\EOF
4321 #define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
4326 echo $ac_n "checking for struct ppsclockev""... $ac_c" 1>&6
4327 echo "configure:4328: checking for struct ppsclockev" >&5
4328 if eval "test \"`echo '$''{'ac_cv_struct_ppsclockev'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4335 #include <sys/types.h>
4336 #ifdef HAVE_SYS_TERMIOS_H
4337 # include <sys/termios.h>
4339 #ifdef HAVE_SYS_TIME_H
4340 # include <sys/time.h>
4342 #ifdef HAVE_SYS_PPSCLOCK_H
4343 # include <sys/ppsclock.h>
4347 extern struct ppsclockev *pce;
4351 if { (eval echo configure:4352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4353 ac_cv_struct_ppsclockev=yes
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4358 ac_cv_struct_ppsclockev=no
4364 echo "$ac_t""$ac_cv_struct_ppsclockev" 1>&6
4365 if test $ac_cv_struct_ppsclockev = yes; then
4366 cat >> confdefs.h <<\EOF
4367 #define HAVE_STRUCT_PPSCLOCKEV 1
4372 echo $ac_n "checking struct sockaddr for sa_len""... $ac_c" 1>&6
4373 echo "configure:4374: checking struct sockaddr for sa_len" >&5
4374 if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_has_sa_len'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4381 #include <sys/types.h>
4382 #include <sys/socket.h>
4385 extern struct sockaddr *ps;
4389 if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4391 ac_cv_struct_sockaddr_has_sa_len=yes
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 ac_cv_struct_sockaddr_has_sa_len=no
4402 echo "$ac_t""$ac_cv_struct_sockaddr_has_sa_len" 1>&6
4403 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
4404 cat >> confdefs.h <<\EOF
4405 #define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
4410 echo $ac_n "checking struct clockinfo for hz""... $ac_c" 1>&6
4411 echo "configure:4412: checking struct clockinfo for hz" >&5
4412 if eval "test \"`echo '$''{'ac_cv_struct_clockinfo_has_hz'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4419 #include <sys/time.h>
4422 extern struct clockinfo *pc;
4426 if { (eval echo configure:4427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4428 ac_cv_struct_clockinfo_has_hz=yes
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 ac_cv_struct_clockinfo_has_hz=no
4439 echo "$ac_t""$ac_cv_struct_clockinfo_has_hz" 1>&6
4440 if test $ac_cv_struct_clockinfo_has_hz = yes; then
4441 cat >> confdefs.h <<\EOF
4442 #define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
4447 echo $ac_n "checking struct clockinfo for tickadj""... $ac_c" 1>&6
4448 echo "configure:4449: checking struct clockinfo for tickadj" >&5
4449 if eval "test \"`echo '$''{'ac_cv_struct_clockinfo_has_tickadj'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4456 #include <sys/time.h>
4459 extern struct clockinfo *pc;
4463 if { (eval echo configure:4464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4465 ac_cv_struct_clockinfo_has_tickadj=yes
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4470 ac_cv_struct_clockinfo_has_tickadj=no
4476 echo "$ac_t""$ac_cv_struct_clockinfo_has_tickadj" 1>&6
4477 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
4478 cat >> confdefs.h <<\EOF
4479 #define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
4484 echo $ac_n "checking for struct ntptimeval""... $ac_c" 1>&6
4485 echo "configure:4486: checking for struct ntptimeval" >&5
4486 if eval "test \"`echo '$''{'ac_cv_struct_ntptimeval'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4493 #include <sys/time.h>
4494 #include <sys/timex.h>
4496 struct ntptimeval n;
4499 if { (eval echo configure:4500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4501 ac_cv_struct_ntptimeval=yes
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 ac_cv_struct_ntptimeval=no
4511 echo "$ac_t""$ac_cv_struct_ntptimeval" 1>&6
4512 if test $ac_cv_struct_ntptimeval = yes; then
4513 cat >> confdefs.h <<\EOF
4514 #define HAVE_STRUCT_NTPTIMEVAL 1
4519 echo $ac_n "checking struct ntptimeval for time.tv_nsec""... $ac_c" 1>&6
4520 echo "configure:4521: checking struct ntptimeval for time.tv_nsec" >&5
4521 if eval "test \"`echo '$''{'ac_cv_struct_ntptimeval_tv_nsec'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4528 #ifdef HAVE_SYS_TIME_H
4529 #include <sys/time.h>
4535 #ifdef HAVE_SYS_TIMEX_H
4536 #include <sys/timex.h>
4538 # ifdef HAVE_TIMEX_H
4544 extern struct ntptimeval *ntv;
4545 return ntv->time.tv_nsec;
4548 if { (eval echo configure:4549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4550 ac_cv_struct_ntptimeval_tv_nsec=yes
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 ac_cv_struct_ntptimeval_tv_nsec=no
4561 echo "$ac_t""$ac_cv_struct_ntptimeval_tv_nsec" 1>&6
4562 if test "$ac_cv_struct_ntptimeval_tv_nsec" = "yes"; then
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_TV_NSEC_IN_NTPTIMEVAL 1
4569 echo $ac_n "checking for struct timespec in struct ntptimeval""... $ac_c" 1>&6
4570 echo "configure:4571: checking for struct timespec in struct ntptimeval" >&5
4571 if eval "test \"`echo '$''{'ac_cv_struct_ntptimeval_timespec'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 #include <sys/time.h>
4578 #include <sys/timex.h>
4580 struct ntptimeval n; n.time.tv_nsec = 0;
4583 if { (eval echo configure:4584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4585 ac_cv_struct_ntptimeval_timespec=yes
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4590 ac_cv_struct_ntptimeval_timespec=no
4595 echo "$ac_t""$ac_cv_struct_ntptimeval_timespec" 1>&6
4596 if test $ac_cv_struct_ntptimeval_timespec = yes; then
4597 cat >> confdefs.h <<\EOF
4598 #define TIMESPEC_IN_NTPTIMEVAL 1
4603 echo $ac_n "checking for inline""... $ac_c" 1>&6
4604 echo "configure:4605: checking for inline" >&5
4605 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4609 for ac_kw in inline __inline__ __inline; do
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4618 if { (eval echo configure:4619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4620 ac_cv_c_inline=$ac_kw; break
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4630 echo "$ac_t""$ac_cv_c_inline" 1>&6
4631 case "$ac_cv_c_inline" in
4633 no) cat >> confdefs.h <<\EOF
4637 *) cat >> confdefs.h <<EOF
4638 #define inline $ac_cv_c_inline
4643 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4644 echo "configure:4645: checking whether char is unsigned" >&5
4645 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 if test "$GCC" = yes; then
4649 # GCC predefines this symbol on systems where it applies.
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 #ifdef __CHAR_UNSIGNED__
4658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 egrep "yes" >/dev/null 2>&1; then
4661 ac_cv_c_char_unsigned=yes
4664 ac_cv_c_char_unsigned=no
4669 if test "$cross_compiling" = yes; then
4670 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4676 #if !defined(__STDC__) || __STDC__ != 1
4680 volatile char c = 255; exit(c < 0);
4683 if { (eval echo configure:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4685 ac_cv_c_char_unsigned=yes
4687 echo "configure: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4690 ac_cv_c_char_unsigned=no
4698 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4699 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4700 cat >> confdefs.h <<\EOF
4701 #define __CHAR_UNSIGNED__ 1
4707 echo $ac_n "checking size of signed char""... $ac_c" 1>&6
4708 echo "configure:4709: checking size of signed char" >&5
4709 if eval "test \"`echo '$''{'ac_cv_sizeof_signed_char'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 if test "$cross_compiling" = yes; then
4713 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4721 FILE *f=fopen("conftestval", "w");
4723 fprintf(f, "%d\n", sizeof(signed char));
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4729 ac_cv_sizeof_signed_char=`cat conftestval`
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 ac_cv_sizeof_signed_char=0
4740 echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6
4741 cat >> confdefs.h <<EOF
4742 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
4747 *) case "$target" in
4749 echo $ac_n "checking size of signed char""... $ac_c" 1>&6
4750 echo "configure:4751: checking size of signed char" >&5
4751 if eval "test \"`echo '$''{'ac_cv_sizeof_signed_char'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 if test "$cross_compiling" = yes; then
4755 ac_cv_sizeof_signed_char=1
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4763 FILE *f=fopen("conftestval", "w");
4765 fprintf(f, "%d\n", sizeof(signed char));
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4771 ac_cv_sizeof_signed_char=`cat conftestval`
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4776 ac_cv_sizeof_signed_char=0
4782 echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6
4783 cat >> confdefs.h <<EOF
4784 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
4789 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" 1>&2; exit 1; }
4797 echo $ac_n "checking size of int""... $ac_c" 1>&6
4798 echo "configure:4799: checking size of int" >&5
4799 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 if test "$cross_compiling" = yes; then
4803 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4805 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4811 FILE *f=fopen("conftestval", "w");
4813 fprintf(f, "%d\n", sizeof(int));
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4819 ac_cv_sizeof_int=`cat conftestval`
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4830 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4831 cat >> confdefs.h <<EOF
4832 #define SIZEOF_INT $ac_cv_sizeof_int
4837 *) case "$target" in
4839 echo $ac_n "checking size of int""... $ac_c" 1>&6
4840 echo "configure:4841: checking size of int" >&5
4841 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 if test "$cross_compiling" = yes; then
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4853 FILE *f=fopen("conftestval", "w");
4855 fprintf(f, "%d\n", sizeof(int));
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4861 ac_cv_sizeof_int=`cat conftestval`
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4872 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4873 cat >> confdefs.h <<EOF
4874 #define SIZEOF_INT $ac_cv_sizeof_int
4879 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_INT" 1>&2; exit 1; }
4887 echo $ac_n "checking size of long""... $ac_c" 1>&6
4888 echo "configure:4889: checking size of long" >&5
4889 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4892 if test "$cross_compiling" = yes; then
4893 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4895 cat > conftest.$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4901 FILE *f=fopen("conftestval", "w");
4903 fprintf(f, "%d\n", sizeof(long));
4907 if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4909 ac_cv_sizeof_long=`cat conftestval`
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4920 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4921 cat >> confdefs.h <<EOF
4922 #define SIZEOF_LONG $ac_cv_sizeof_long
4927 *) case "$target" in
4929 echo $ac_n "checking size of long""... $ac_c" 1>&6
4930 echo "configure:4931: checking size of long" >&5
4931 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 if test "$cross_compiling" = yes; then
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4943 FILE *f=fopen("conftestval", "w");
4945 fprintf(f, "%d\n", sizeof(long));
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4951 ac_cv_sizeof_long=`cat conftestval`
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4962 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4963 cat >> confdefs.h <<EOF
4964 #define SIZEOF_LONG $ac_cv_sizeof_long
4969 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_LONG" 1>&2; exit 1; }
4975 echo $ac_n "checking for s_char""... $ac_c" 1>&6
4976 echo "configure:4977: checking for s_char" >&5
4977 if eval "test \"`echo '$''{'ac_cv_type_s_char'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 #include <sys/types.h>
4989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4990 egrep "(^|[^a-zA-Z_0-9])s_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4992 ac_cv_type_s_char=yes
4995 ac_cv_type_s_char=no
5000 echo "$ac_t""$ac_cv_type_s_char" 1>&6
5001 if test $ac_cv_type_s_char = no; then
5002 cat >> confdefs.h <<\EOF
5003 #define s_char signed char
5008 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
5010 # We have a typedef for s_char. Might as well believe it...
5013 # We have signed chars, can't say 'signed char', no s_char typedef.
5014 cat >> confdefs.h <<\EOF
5015 #define NEED_S_CHAR_TYPEDEF 1
5020 # We have signed chars, can say 'signed char', no s_char typedef.
5021 cat >> confdefs.h <<\EOF
5022 #define NEED_S_CHAR_TYPEDEF 1
5027 # We have unsigned chars, can't say 'signed char', no s_char typedef.
5028 { echo "configure: error: No way to specify a signed character!" 1>&2; exit 1; }
5031 # We have unsigned chars, can say 'signed char', no s_char typedef.
5032 cat >> confdefs.h <<\EOF
5033 #define NEED_S_CHAR_TYPEDEF 1
5038 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5039 echo "configure:5040: checking for uid_t in sys/types.h" >&5
5040 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 #include <sys/types.h>
5048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5049 egrep "uid_t" >/dev/null 2>&1; then
5051 ac_cv_type_uid_t=yes
5060 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5061 if test $ac_cv_type_uid_t = no; then
5062 cat >> confdefs.h <<\EOF
5066 cat >> confdefs.h <<\EOF
5075 for ac_func in __adjtimex __ntp_gettime
5077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5078 echo "configure:5079: checking for $ac_func" >&5
5079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5085 /* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char $ac_func(); below. */
5088 /* Override any gcc2 internal prototype to avoid an error. */
5089 /* We use char because int might match the return type of a gcc2
5090 builtin and then its argument prototype would still apply. */
5095 /* The GNU C library defines this for functions which it implements
5096 to always fail with ENOSYS. Some functions are actually named
5097 something starting with __ and the normal name is an alias. */
5098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 eval "ac_cv_func_$ac_func=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 eval "ac_cv_func_$ac_func=no"
5118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5119 echo "$ac_t""yes" 1>&6
5120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_func 1
5126 echo "$ac_t""no" 1>&6
5134 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
5135 # (returning ENOSYS). I didn't check 4.2. If, in the future,
5136 # IBM pulls its thumbs out long enough to implement clock_settime,
5137 # this conditional will need to change. Maybe use AC_TRY_RUN
5138 # instead to try to set the time to itself and check errno.
5140 *) for ac_func in clock_settime
5142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5143 echo "configure:5144: checking for $ac_func" >&5
5144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150 /* System header to define __stub macros and hopefully few prototypes,
5151 which can conflict with char $ac_func(); below. */
5153 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5160 /* The GNU C library defines this for functions which it implements
5161 to always fail with ENOSYS. Some functions are actually named
5162 something starting with __ and the normal name is an alias. */
5163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5171 if { (eval echo configure:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5173 eval "ac_cv_func_$ac_func=yes"
5175 echo "configure: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5178 eval "ac_cv_func_$ac_func=no"
5183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5184 echo "$ac_t""yes" 1>&6
5185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5186 cat >> confdefs.h <<EOF
5187 #define $ac_tr_func 1
5191 echo "$ac_t""no" 1>&6
5197 for ac_func in daemon getbootfile getdtablesize getrusage
5199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5200 echo "configure:5201: checking for $ac_func" >&5
5201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char $ac_func(); below. */
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5217 /* The GNU C library defines this for functions which it implements
5218 to always fail with ENOSYS. Some functions are actually named
5219 something starting with __ and the normal name is an alias. */
5220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230 eval "ac_cv_func_$ac_func=yes"
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 eval "ac_cv_func_$ac_func=no"
5240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5241 echo "$ac_t""yes" 1>&6
5242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5243 cat >> confdefs.h <<EOF
5244 #define $ac_tr_func 1
5248 echo "$ac_t""no" 1>&6
5252 for ac_func in gettimeofday
5254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5255 echo "configure:5256: checking for $ac_func" >&5
5256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5262 /* System header to define __stub macros and hopefully few prototypes,
5263 which can conflict with char $ac_func(); below. */
5265 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5272 /* The GNU C library defines this for functions which it implements
5273 to always fail with ENOSYS. Some functions are actually named
5274 something starting with __ and the normal name is an alias. */
5275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5283 if { (eval echo configure:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5285 eval "ac_cv_func_$ac_func=yes"
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5290 eval "ac_cv_func_$ac_func=no"
5295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5296 echo "$ac_t""yes" 1>&6
5297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5298 cat >> confdefs.h <<EOF
5299 #define $ac_tr_func 1
5303 echo "$ac_t""no" 1>&6
5310 *) for ac_func in getuid
5312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_func" >&5
5314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5320 /* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char $ac_func(); below. */
5323 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5330 /* The GNU C library defines this for functions which it implements
5331 to always fail with ENOSYS. Some functions are actually named
5332 something starting with __ and the normal name is an alias. */
5333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5341 if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5343 eval "ac_cv_func_$ac_func=yes"
5345 echo "configure: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5348 eval "ac_cv_func_$ac_func=no"
5353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5356 cat >> confdefs.h <<EOF
5357 #define $ac_tr_func 1
5361 echo "$ac_t""no" 1>&6
5367 for ac_func in K_open kvm_open memcpy memmove memset
5369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5370 echo "configure:5371: checking for $ac_func" >&5
5371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5377 /* System header to define __stub macros and hopefully few prototypes,
5378 which can conflict with char $ac_func(); below. */
5380 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5387 /* The GNU C library defines this for functions which it implements
5388 to always fail with ENOSYS. Some functions are actually named
5389 something starting with __ and the normal name is an alias. */
5390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 eval "ac_cv_func_$ac_func=yes"
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5405 eval "ac_cv_func_$ac_func=no"
5410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5411 echo "$ac_t""yes" 1>&6
5412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5413 cat >> confdefs.h <<EOF
5414 #define $ac_tr_func 1
5418 echo "$ac_t""no" 1>&6
5424 # Just stubs. Idiots.
5426 *) for ac_func in mkstemp
5428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5429 echo "configure:5430: checking for $ac_func" >&5
5430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5436 /* System header to define __stub macros and hopefully few prototypes,
5437 which can conflict with char $ac_func(); below. */
5439 /* Override any gcc2 internal prototype to avoid an error. */
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5446 /* The GNU C library defines this for functions which it implements
5447 to always fail with ENOSYS. Some functions are actually named
5448 something starting with __ and the normal name is an alias. */
5449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459 eval "ac_cv_func_$ac_func=yes"
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 eval "ac_cv_func_$ac_func=no"
5469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5470 echo "$ac_t""yes" 1>&6
5471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5472 cat >> confdefs.h <<EOF
5473 #define $ac_tr_func 1
5477 echo "$ac_t""no" 1>&6
5483 for ac_func in mktime
5485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5486 echo "configure:5487: checking for $ac_func" >&5
5487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5493 /* System header to define __stub macros and hopefully few prototypes,
5494 which can conflict with char $ac_func(); below. */
5496 /* Override any gcc2 internal prototype to avoid an error. */
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5503 /* The GNU C library defines this for functions which it implements
5504 to always fail with ENOSYS. Some functions are actually named
5505 something starting with __ and the normal name is an alias. */
5506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5516 eval "ac_cv_func_$ac_func=yes"
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 eval "ac_cv_func_$ac_func=no"
5526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5527 echo "$ac_t""yes" 1>&6
5528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5529 cat >> confdefs.h <<EOF
5530 #define $ac_tr_func 1
5534 echo "$ac_t""no" 1>&6
5535 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5542 # Just a stub. Idiots.
5545 # Just stubs in Irix. Idiots.
5548 # Just stubs. Idiots.
5550 alpha*-dec-osf4*|alpha*-dec-osf5*)
5551 # mlockall is there, as a #define calling memlk via <sys/mman.h>
5552 # Not easy to test for - cheat.
5553 for ac_func in memlk
5555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char $ac_func(); below. */
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 eval "ac_cv_func_$ac_func=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5591 eval "ac_cv_func_$ac_func=no"
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5599 cat >> confdefs.h <<EOF
5600 #define $ac_tr_func 1
5602 ac_cv_func_mlockall='yes'
5604 echo "$ac_t""no" 1>&6
5608 for ac_func in mlockall
5610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5611 echo "configure:5612: checking for $ac_func" >&5
5612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 /* System header to define __stub macros and hopefully few prototypes,
5619 which can conflict with char $ac_func(); below. */
5621 /* Override any gcc2 internal prototype to avoid an error. */
5622 /* We use char because int might match the return type of a gcc2
5623 builtin and then its argument prototype would still apply. */
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 eval "ac_cv_func_$ac_func=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 eval "ac_cv_func_$ac_func=no"
5651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5654 cat >> confdefs.h <<EOF
5655 #define $ac_tr_func 1
5659 echo "$ac_t""no" 1>&6
5664 *) for ac_func in mlockall
5666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5667 echo "configure:5668: checking for $ac_func" >&5
5668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5671 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5674 /* System header to define __stub macros and hopefully few prototypes,
5675 which can conflict with char $ac_func(); below. */
5677 /* Override any gcc2 internal prototype to avoid an error. */
5678 /* We use char because int might match the return type of a gcc2
5679 builtin and then its argument prototype would still apply. */
5684 /* The GNU C library defines this for functions which it implements
5685 to always fail with ENOSYS. Some functions are actually named
5686 something starting with __ and the normal name is an alias. */
5687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5695 if { (eval echo configure:5696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5697 eval "ac_cv_func_$ac_func=yes"
5699 echo "configure: failed program was:" >&5
5700 cat conftest.$ac_ext >&5
5702 eval "ac_cv_func_$ac_func=no"
5707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5708 echo "$ac_t""yes" 1>&6
5709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5710 cat >> confdefs.h <<EOF
5711 #define $ac_tr_func 1
5715 echo "$ac_t""no" 1>&6
5721 for ac_func in nice nlist
5723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5724 echo "configure:5725: checking for $ac_func" >&5
5725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5731 /* System header to define __stub macros and hopefully few prototypes,
5732 which can conflict with char $ac_func(); below. */
5734 /* Override any gcc2 internal prototype to avoid an error. */
5735 /* We use char because int might match the return type of a gcc2
5736 builtin and then its argument prototype would still apply. */
5741 /* The GNU C library defines this for functions which it implements
5742 to always fail with ENOSYS. Some functions are actually named
5743 something starting with __ and the normal name is an alias. */
5744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5752 if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5754 eval "ac_cv_func_$ac_func=yes"
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 eval "ac_cv_func_$ac_func=no"
5764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5765 echo "$ac_t""yes" 1>&6
5766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5767 cat >> confdefs.h <<EOF
5768 #define $ac_tr_func 1
5772 echo "$ac_t""no" 1>&6
5780 *) for ac_func in ntp_adjtime ntp_gettime
5782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5783 echo "configure:5784: checking for $ac_func" >&5
5784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5790 /* System header to define __stub macros and hopefully few prototypes,
5791 which can conflict with char $ac_func(); below. */
5793 /* Override any gcc2 internal prototype to avoid an error. */
5794 /* We use char because int might match the return type of a gcc2
5795 builtin and then its argument prototype would still apply. */
5800 /* The GNU C library defines this for functions which it implements
5801 to always fail with ENOSYS. Some functions are actually named
5802 something starting with __ and the normal name is an alias. */
5803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5811 if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5813 eval "ac_cv_func_$ac_func=yes"
5815 echo "configure: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 eval "ac_cv_func_$ac_func=no"
5823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5824 echo "$ac_t""yes" 1>&6
5825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5826 cat >> confdefs.h <<EOF
5827 #define $ac_tr_func 1
5831 echo "$ac_t""no" 1>&6
5837 for ac_func in plock pututline pututxline rtprio
5839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5840 echo "configure:5841: checking for $ac_func" >&5
5841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5844 cat > conftest.$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5847 /* System header to define __stub macros and hopefully few prototypes,
5848 which can conflict with char $ac_func(); below. */
5850 /* Override any gcc2 internal prototype to avoid an error. */
5851 /* We use char because int might match the return type of a gcc2
5852 builtin and then its argument prototype would still apply. */
5857 /* The GNU C library defines this for functions which it implements
5858 to always fail with ENOSYS. Some functions are actually named
5859 something starting with __ and the normal name is an alias. */
5860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5870 eval "ac_cv_func_$ac_func=yes"
5872 echo "configure: failed program was:" >&5
5873 cat conftest.$ac_ext >&5
5875 eval "ac_cv_func_$ac_func=no"
5880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5881 echo "$ac_t""yes" 1>&6
5882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5883 cat >> confdefs.h <<EOF
5884 #define $ac_tr_func 1
5888 echo "$ac_t""no" 1>&6
5892 for ac_func in random srandom mrand48 srand48
5894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5895 echo "configure:5896: checking for $ac_func" >&5
5896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5902 /* System header to define __stub macros and hopefully few prototypes,
5903 which can conflict with char $ac_func(); below. */
5905 /* Override any gcc2 internal prototype to avoid an error. */
5906 /* We use char because int might match the return type of a gcc2
5907 builtin and then its argument prototype would still apply. */
5912 /* The GNU C library defines this for functions which it implements
5913 to always fail with ENOSYS. Some functions are actually named
5914 something starting with __ and the normal name is an alias. */
5915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5923 if { (eval echo configure:5924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5925 eval "ac_cv_func_$ac_func=yes"
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5930 eval "ac_cv_func_$ac_func=no"
5935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5936 echo "$ac_t""yes" 1>&6
5937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5938 cat >> confdefs.h <<EOF
5939 #define $ac_tr_func 1
5943 echo "$ac_t""no" 1>&6
5949 # Just a stub in AIX 4. Idiots.
5952 # Just stubs in solaris2.5. Idiots.
5954 *) for ac_func in sched_setscheduler
5956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5957 echo "configure:5958: checking for $ac_func" >&5
5958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 /* System header to define __stub macros and hopefully few prototypes,
5965 which can conflict with char $ac_func(); below. */
5967 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5974 /* The GNU C library defines this for functions which it implements
5975 to always fail with ENOSYS. Some functions are actually named
5976 something starting with __ and the normal name is an alias. */
5977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5985 if { (eval echo configure:5986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5987 eval "ac_cv_func_$ac_func=yes"
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5992 eval "ac_cv_func_$ac_func=no"
5997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5998 echo "$ac_t""yes" 1>&6
5999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6000 cat >> confdefs.h <<EOF
6001 #define $ac_tr_func 1
6005 echo "$ac_t""no" 1>&6
6011 for ac_func in setlinebuf
6013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6014 echo "configure:6015: checking for $ac_func" >&5
6015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 /* System header to define __stub macros and hopefully few prototypes,
6022 which can conflict with char $ac_func(); below. */
6024 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6031 /* The GNU C library defines this for functions which it implements
6032 to always fail with ENOSYS. Some functions are actually named
6033 something starting with __ and the normal name is an alias. */
6034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6044 eval "ac_cv_func_$ac_func=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 eval "ac_cv_func_$ac_func=no"
6054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6057 cat >> confdefs.h <<EOF
6058 #define $ac_tr_func 1
6062 echo "$ac_t""no" 1>&6
6066 for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction
6068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6069 echo "configure:6070: checking for $ac_func" >&5
6070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 /* System header to define __stub macros and hopefully few prototypes,
6077 which can conflict with char $ac_func(); below. */
6079 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6086 /* The GNU C library defines this for functions which it implements
6087 to always fail with ENOSYS. Some functions are actually named
6088 something starting with __ and the normal name is an alias. */
6089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6099 eval "ac_cv_func_$ac_func=yes"
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6104 eval "ac_cv_func_$ac_func=no"
6109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6110 echo "$ac_t""yes" 1>&6
6111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6112 cat >> confdefs.h <<EOF
6113 #define $ac_tr_func 1
6117 echo "$ac_t""no" 1>&6
6121 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
6123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6124 echo "configure:6125: checking for $ac_func" >&5
6125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6128 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6131 /* System header to define __stub macros and hopefully few prototypes,
6132 which can conflict with char $ac_func(); below. */
6134 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6141 /* The GNU C library defines this for functions which it implements
6142 to always fail with ENOSYS. Some functions are actually named
6143 something starting with __ and the normal name is an alias. */
6144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 eval "ac_cv_func_$ac_func=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6159 eval "ac_cv_func_$ac_func=no"
6164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6165 echo "$ac_t""yes" 1>&6
6166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6167 cat >> confdefs.h <<EOF
6168 #define $ac_tr_func 1
6172 echo "$ac_t""no" 1>&6
6176 for ac_func in strerror
6178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6179 echo "configure:6180: checking for $ac_func" >&5
6180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6186 /* System header to define __stub macros and hopefully few prototypes,
6187 which can conflict with char $ac_func(); below. */
6189 /* Override any gcc2 internal prototype to avoid an error. */
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6196 /* The GNU C library defines this for functions which it implements
6197 to always fail with ENOSYS. Some functions are actually named
6198 something starting with __ and the normal name is an alias. */
6199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6209 eval "ac_cv_func_$ac_func=yes"
6211 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6214 eval "ac_cv_func_$ac_func=no"
6219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6220 echo "$ac_t""yes" 1>&6
6221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6222 cat >> confdefs.h <<EOF
6223 #define $ac_tr_func 1
6227 echo "$ac_t""no" 1>&6
6228 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
6235 # Just stubs. Idiots.
6238 # Just stubs. Idiots.
6241 # Just stubs. Idiots.
6243 *) for ac_func in timer_create timer_settime
6245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6246 echo "configure:6247: checking for $ac_func" >&5
6247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 /* System header to define __stub macros and hopefully few prototypes,
6254 which can conflict with char $ac_func(); below. */
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6276 eval "ac_cv_func_$ac_func=yes"
6278 echo "configure: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 eval "ac_cv_func_$ac_func=no"
6286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6289 cat >> confdefs.h <<EOF
6290 #define $ac_tr_func 1
6294 echo "$ac_t""no" 1>&6
6304 *) for ac_func in umask
6306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6307 echo "configure:6308: checking for $ac_func" >&5
6308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6311 cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func(); below. */
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6324 /* The GNU C library defines this for functions which it implements
6325 to always fail with ENOSYS. Some functions are actually named
6326 something starting with __ and the normal name is an alias. */
6327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 eval "ac_cv_func_$ac_func=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 eval "ac_cv_func_$ac_func=no"
6347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6350 cat >> confdefs.h <<EOF
6351 #define $ac_tr_func 1
6355 echo "$ac_t""no" 1>&6
6361 for ac_func in uname updwtmp updwtmpx vsprintf
6363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6364 echo "configure:6365: checking for $ac_func" >&5
6365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6371 /* System header to define __stub macros and hopefully few prototypes,
6372 which can conflict with char $ac_func(); below. */
6374 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6381 /* The GNU C library defines this for functions which it implements
6382 to always fail with ENOSYS. Some functions are actually named
6383 something starting with __ and the normal name is an alias. */
6384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6392 if { (eval echo configure:6393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394 eval "ac_cv_func_$ac_func=yes"
6396 echo "configure: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6399 eval "ac_cv_func_$ac_func=no"
6404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6405 echo "$ac_t""yes" 1>&6
6406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6407 cat >> confdefs.h <<EOF
6408 #define $ac_tr_func 1
6412 echo "$ac_t""no" 1>&6
6417 echo $ac_n "checking number of arguments to gettimeofday()""... $ac_c" 1>&6
6418 echo "configure:6419: checking number of arguments to gettimeofday()" >&5
6419 if eval "test \"`echo '$''{'ac_cv_func_Xettimeofday_nargs'+set}'`\" = set"; then
6420 echo $ac_n "(cached) $ac_c" 1>&6
6422 cat > conftest.$ac_ext <<EOF
6423 #line 6424 "configure"
6424 #include "confdefs.h"
6425 #include <sys/time.h>
6428 gettimeofday((struct timeval*)0,(struct timezone*)0);
6429 settimeofday((struct timeval*)0,(struct timezone*)0);
6433 if { (eval echo configure:6434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6435 ac_cv_func_Xettimeofday_nargs=2
6437 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6440 ac_cv_func_Xettimeofday_nargs=1
6446 echo "$ac_t""$ac_cv_func_Xettimeofday_nargs" 1>&6
6447 if test $ac_cv_func_Xettimeofday_nargs = 1; then
6448 cat >> confdefs.h <<\EOF
6449 #define SYSV_TIMEOFDAY 1
6454 echo $ac_n "checking number of arguments taken by setpgrp()""... $ac_c" 1>&6
6455 echo "configure:6456: checking number of arguments taken by setpgrp()" >&5
6456 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_nargs'+set}'`\" = set"; then
6457 echo $ac_n "(cached) $ac_c" 1>&6
6459 cat > conftest.$ac_ext <<EOF
6460 #line 6461 "configure"
6461 #include "confdefs.h"
6463 #ifdef HAVE_SYS_TYPES_H
6464 # include <sys/types.h>
6466 #ifdef HAVE_UNISTD_H
6467 # include <unistd.h>
6474 if { (eval echo configure:6475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6476 ac_cv_func_setpgrp_nargs=2
6478 echo "configure: failed program was:" >&5
6479 cat conftest.$ac_ext >&5
6481 ac_cv_func_setpgrp_nargs=0
6487 echo "$ac_t""$ac_cv_func_setpgrp_nargs" 1>&6
6488 if test $ac_cv_func_setpgrp_nargs = 0; then
6489 cat >> confdefs.h <<\EOF
6490 #define HAVE_SETPGRP_0 1
6496 CFLAGS="$CFLAGS -I$srcdir/include"
6498 echo $ac_n "checking argument pointer type of qsort()'s compare function and base""... $ac_c" 1>&6
6499 echo "configure:6500: checking argument pointer type of qsort()'s compare function and base" >&5
6500 if eval "test \"`echo '$''{'ac_cv_func_qsort_argtype'+set}'`\" = set"; then
6501 echo $ac_n "(cached) $ac_c" 1>&6
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6507 #include "l_stdlib.h"
6509 #ifdef HAVE_PROTOTYPES
6516 extern sortfunc P((const void *, const void *));
6519 const void *b; { return 0; }
6523 qsort(base, 2, sizeof(char *), sortfunc);
6527 if { (eval echo configure:6528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6529 ac_cv_func_qsort_argtype=void
6531 echo "configure: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6534 ac_cv_func_qsort_argtype=char
6540 echo "$ac_t""$ac_cv_func_qsort_argtype" 1>&6
6541 case "$ac_cv_func_qsort_argtype" in
6543 cat >> confdefs.h <<\EOF
6544 #define QSORT_USES_VOID_P 1
6552 echo $ac_n "checking if we need to declare 'errno'""... $ac_c" 1>&6
6553 echo "configure:6554: checking if we need to declare 'errno'" >&5
6554 if eval "test \"`echo '$''{'ac_cv_decl_errno'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6567 if { (eval echo configure:6568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6571 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6574 ac_cv_decl_errno=yes
6579 echo "$ac_t""$ac_cv_decl_errno" 1>&6
6580 case "$ac_cv_decl_errno" in
6581 yes) cat >> confdefs.h <<\EOF
6582 #define DECL_ERRNO 1
6587 echo $ac_n "checking if we may declare 'h_errno'""... $ac_c" 1>&6
6588 echo "configure:6589: checking if we may declare 'h_errno'" >&5
6589 if eval "test \"`echo '$''{'ac_cv_decl_h_errno'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 #include <sys/types.h>
6596 #ifdef HAVE_NETINET_IN_H
6597 #include <netinet/in.h>
6599 #ifdef HAVE_ARPA_NAMESER_H
6600 #include <arpa/nameser.h>
6605 #ifdef HAVE_RESOLV_H
6612 if { (eval echo configure:6613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6614 ac_cv_decl_h_errno=yes
6616 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6619 ac_cv_decl_h_errno=no
6624 echo "$ac_t""$ac_cv_decl_h_errno" 1>&6
6625 case "$ac_cv_decl_h_errno" in
6626 yes) cat >> confdefs.h <<\EOF
6627 #define DECL_H_ERRNO 1
6632 echo $ac_n "checking if declaring 'char *sys_errlist[]' is ok""... $ac_c" 1>&6
6633 echo "configure:6634: checking if declaring 'char *sys_errlist[]' is ok" >&5
6634 if eval "test \"`echo '$''{'ac_cv_decl_sys_errlist'+set}'`\" = set"; then
6635 echo $ac_n "(cached) $ac_c" 1>&6
6637 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6645 extern char *sys_errlist[];
6649 if { (eval echo configure:6650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6651 ac_cv_decl_sys_errlist=yes
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6656 ac_cv_decl_sys_errlist=no
6661 echo "$ac_t""$ac_cv_decl_sys_errlist" 1>&6
6662 case "$ac_cv_decl_sys_errlist" in
6663 yes) cat >> confdefs.h <<\EOF
6664 #define CHAR_SYS_ERRLIST 1
6669 echo $ac_n "checking if declaring 'syscall()' is ok""... $ac_c" 1>&6
6670 echo "configure:6671: checking if declaring 'syscall()' is ok" >&5
6671 if eval "test \"`echo '$''{'ac_cv_decl_syscall'+set}'`\" = set"; then
6672 echo $ac_n "(cached) $ac_c" 1>&6
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6678 #ifdef HAVE_SYS_TYPES_H
6679 # include <sys/types.h>
6681 #ifdef HAVE_UNISTD_H
6682 # include <unistd.h>
6684 #ifdef HAVE_PROTOTYPES
6691 extern int syscall P((int, ...));
6694 if { (eval echo configure:6695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6696 ac_cv_decl_syscall=yes
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 ac_cv_decl_syscall=no
6706 echo "$ac_t""$ac_cv_decl_syscall" 1>&6
6707 case "$ac_cv_decl_syscall" in
6708 yes) cat >> confdefs.h <<\EOF
6709 #define DECL_SYSCALL 1
6716 cat >> confdefs.h <<\EOF
6717 #define DECL_PLOCK_0 1
6720 cat >> confdefs.h <<\EOF
6721 #define DECL_STIME_1 1
6726 cat >> confdefs.h <<\EOF
6727 #define DECL_ADJTIME_0 1
6730 cat >> confdefs.h <<\EOF
6731 #define DECL_BZERO_0 1
6734 cat >> confdefs.h <<\EOF
6735 #define DECL_IOCTL_0 1
6738 cat >> confdefs.h <<\EOF
6739 #define DECL_IPC_0 1
6742 cat >> confdefs.h <<\EOF
6743 #define DECL_MEMMOVE_0 1
6746 cat >> confdefs.h <<\EOF
6747 #define DECL_MKTEMP_0 1
6750 cat >> confdefs.h <<\EOF
6751 #define DECL_RENAME_0 1
6754 cat >> confdefs.h <<\EOF
6755 #define DECL_SELECT_0 1
6758 cat >> confdefs.h <<\EOF
6759 #define DECL_SETITIMER_0 1
6762 cat >> confdefs.h <<\EOF
6763 #define DECL_SETPRIORITY_0 1
6766 cat >> confdefs.h <<\EOF
6767 #define DECL_STDIO_0 1
6770 cat >> confdefs.h <<\EOF
6771 #define DECL_STRTOL_0 1
6774 cat >> confdefs.h <<\EOF
6775 #define DECL_SYSLOG_0 1
6778 cat >> confdefs.h <<\EOF
6779 #define DECL_TIME_0 1
6782 cat >> confdefs.h <<\EOF
6783 #define DECL_TIMEOFDAY_0 1
6786 cat >> confdefs.h <<\EOF
6787 #define DECL_TOLOWER_0 1
6792 cat >> confdefs.h <<\EOF
6793 #define DECL_MKSTEMP_0 1
6796 cat >> confdefs.h <<\EOF
6797 #define DECL_SETPRIORITY_1 1
6802 cat >> confdefs.h <<\EOF
6803 #define DECL_TIMEOFDAY_0 1
6810 cat >> confdefs.h <<\EOF
6811 #define DECL_ADJTIME_0 1
6814 cat >> confdefs.h <<\EOF
6815 #define DECL_BCOPY_0 1
6818 cat >> confdefs.h <<\EOF
6819 #define DECL_BZERO_0 1
6822 cat >> confdefs.h <<\EOF
6823 #define DECL_IOCTL_0 1
6826 cat >> confdefs.h <<\EOF
6827 #define DECL_IPC_0 1
6830 cat >> confdefs.h <<\EOF
6831 #define DECL_MEMMOVE_0 1
6834 cat >> confdefs.h <<\EOF
6835 #define DECL_MKTEMP_0 1
6838 cat >> confdefs.h <<\EOF
6839 #define DECL_MKSTEMP_0 1
6842 cat >> confdefs.h <<\EOF
6843 #define DECL_MRAND48_0 1
6846 cat >> confdefs.h <<\EOF
6847 #define DECL_RENAME_0 1
6850 cat >> confdefs.h <<\EOF
6851 #define DECL_SELECT_0 1
6854 cat >> confdefs.h <<\EOF
6855 #define DECL_SETITIMER_0 1
6858 cat >> confdefs.h <<\EOF
6859 #define DECL_SETPRIORITY_0 1
6862 cat >> confdefs.h <<\EOF
6863 #define DECL_SIGVEC_0 1
6866 cat >> confdefs.h <<\EOF
6867 #define DECL_SRAND48_0 1
6870 case "`basename $ac_cv_prog_CC`" in
6872 *) cat >> confdefs.h <<\EOF
6873 #define DECL_STDIO_0 1
6878 cat >> confdefs.h <<\EOF
6879 #define DECL_STRTOL_0 1
6882 cat >> confdefs.h <<\EOF
6883 #define DECL_SYSLOG_0 1
6886 cat >> confdefs.h <<\EOF
6887 #define DECL_TIME_0 1
6890 cat >> confdefs.h <<\EOF
6891 #define DECL_TIMEOFDAY_0 1
6894 cat >> confdefs.h <<\EOF
6895 #define DECL_TOLOWER_0 1
6898 cat >> confdefs.h <<\EOF
6899 #define DECL_TOUPPER_0 1
6904 cat >> confdefs.h <<\EOF
6905 #define DECL_ADJTIME_0 1
6908 cat >> confdefs.h <<\EOF
6909 #define DECL_BZERO_0 1
6912 cat >> confdefs.h <<\EOF
6913 #define DECL_CFSETISPEED_0 1
6916 cat >> confdefs.h <<\EOF
6917 #define DECL_IOCTL_0 1
6920 cat >> confdefs.h <<\EOF
6921 #define DECL_IPC_0 1
6924 cat >> confdefs.h <<\EOF
6925 #define DECL_MKTEMP_0 1
6928 cat >> confdefs.h <<\EOF
6929 #define DECL_MRAND48_0 1
6932 cat >> confdefs.h <<\EOF
6933 #define DECL_NLIST_0 1
6936 cat >> confdefs.h <<\EOF
6937 #define DECL_PLOCK_0 1
6940 cat >> confdefs.h <<\EOF
6941 #define DECL_SELECT_0 1
6944 cat >> confdefs.h <<\EOF
6945 #define DECL_SETITIMER_0 1
6948 cat >> confdefs.h <<\EOF
6949 #define DECL_SETPRIORITY_0 1
6952 cat >> confdefs.h <<\EOF
6953 #define DECL_SRAND48_0 1
6956 cat >> confdefs.h <<\EOF
6957 #define DECL_STIME_0 1
6960 cat >> confdefs.h <<\EOF
6961 #define DECL_SYSLOG_0 1
6964 cat >> confdefs.h <<\EOF
6965 #define DECL_TIMEOFDAY_0 1
6973 cat >> confdefs.h <<\EOF
6974 #define TERMIOS_NEEDS__SVID3 1
6980 echo $ac_n "checking if we should use a streams device for ifconfig""... $ac_c" 1>&6
6981 echo "configure:6982: checking if we should use a streams device for ifconfig" >&5
6982 if eval "test \"`echo '$''{'ac_cv_var_use_streams_device_for_ifconfig'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6985 ac_cv_var_use_streams_device_for_ifconfig=no
6988 echo "$ac_t""$ac_cv_var_use_streams_device_for_ifconfig" 1>&6
6990 echo $ac_n "checking if we need extra room for SO_RCVBUF""... $ac_c" 1>&6
6991 echo "configure:6992: checking if we need extra room for SO_RCVBUF" >&5
6992 if eval "test \"`echo '$''{'ac_cv_var_rcvbuf_slop'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
7001 ac_cv_var_rcvbuf_slop=$ans
7004 echo "$ac_t""$ac_cv_var_rcvbuf_slop" 1>&6
7005 case "$ac_cv_var_rcvbuf_slop" in
7006 yes) cat >> confdefs.h <<\EOF
7007 #define NEED_RCVBUF_SLOP 1
7012 echo $ac_n "checking if we will open the broadcast socket""... $ac_c" 1>&6
7013 echo "configure:7014: checking if we will open the broadcast socket" >&5
7014 if eval "test \"`echo '$''{'ac_cv_var_open_bcast_socket'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7026 ac_cv_var_open_bcast_socket=$ans
7029 echo "$ac_t""$ac_cv_var_open_bcast_socket" 1>&6
7030 case "$ac_cv_var_open_bcast_socket" in
7031 yes) cat >> confdefs.h <<\EOF
7032 #define OPEN_BCAST_SOCKET 1
7037 echo $ac_n "checking if we want the HPUX version of FindConfig()""... $ac_c" 1>&6
7038 echo "configure:7039: checking if we want the HPUX version of FindConfig()" >&5
7039 if eval "test \"`echo '$''{'ac_cv_var_hpux_findconfig'+set}'`\" = set"; then
7040 echo $ac_n "(cached) $ac_c" 1>&6
7048 ac_cv_var_hpux_findconfig=$ans
7051 echo "$ac_t""$ac_cv_var_hpux_findconfig" 1>&6
7052 case "$ac_cv_var_hpux_findconfig" in
7053 yes) cat >> confdefs.h <<\EOF
7054 #define NEED_HPUX_FINDCONFIG 1
7059 echo $ac_n "checking if process groups are set with -pid""... $ac_c" 1>&6
7060 echo "configure:7061: checking if process groups are set with -pid" >&5
7061 if eval "test \"`echo '$''{'ac_cv_arg_setpgrp_negpid'+set}'`\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7084 ac_cv_arg_setpgrp_negpid=$ans
7087 echo "$ac_t""$ac_cv_arg_setpgrp_negpid" 1>&6
7088 case "$ac_cv_arg_setpgrp_negpid" in
7089 yes) cat >> confdefs.h <<\EOF
7090 #define UDP_BACKWARDS_SETOWN 1
7095 echo $ac_n "checking if we need a ctty for F_SETOWN""... $ac_c" 1>&6
7096 echo "configure:7097: checking if we need a ctty for F_SETOWN" >&5
7097 if eval "test \"`echo '$''{'ac_cv_func_ctty_for_f_setown'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7116 ac_cv_func_ctty_for_f_setown=$ans
7119 echo "$ac_t""$ac_cv_func_ctty_for_f_setown" 1>&6
7120 case "$ac_cv_func_ctty_for_f_setown" in
7121 yes) cat >> confdefs.h <<\EOF
7122 #define USE_FSETOWNCTTY 1
7128 echo $ac_n "checking if we'll use clock_settime or settimeofday or stime""... $ac_c" 1>&6
7129 echo "configure:7130: checking if we'll use clock_settime or settimeofday or stime" >&5
7130 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
7133 ans='clock_settime()'
7136 ntp_warning='But clock_settime() would be better (if we had it)'
7137 ans='settimeofday()'
7140 ntp_warning='Which is the worst of the three'
7145 $target) ntp_warning='Which leaves us with nothing to use!'
7150 echo "$ac_t""$ans" 1>&6
7151 case "$ntp_warning" in
7153 *) echo "configure: warning: *** $ntp_warning ***" 1>&2
7157 echo $ac_n "checking if we have a losing syscall()""... $ac_c" 1>&6
7158 echo "configure:7159: checking if we have a losing syscall()" >&5
7159 if eval "test \"`echo '$''{'ac_cv_var_syscall_bug'+set}'`\" = set"; then
7160 echo $ac_n "(cached) $ac_c" 1>&6
7169 ac_cv_var_syscall_bug=$ans
7172 echo "$ac_t""$ac_cv_var_syscall_bug" 1>&6
7173 case "$ac_cv_var_syscall_bug" in
7174 yes) cat >> confdefs.h <<\EOF
7175 #define SYSCALL_BUG 1
7180 echo $ac_n "checking for Streams/TLI""... $ac_c" 1>&6
7181 echo "configure:7182: checking for Streams/TLI" >&5
7182 if eval "test \"`echo '$''{'ac_cv_var_streams_tli'+set}'`\" = set"; then
7183 echo $ac_n "(cached) $ac_c" 1>&6
7185 case "$ac_cv_header_sys_stropts_h" in
7188 # There must be a better way...
7196 ac_cv_var_streams_tli=$ans
7199 echo "$ac_t""$ac_cv_var_streams_tli" 1>&6
7200 case "$ac_cv_var_streams_tli" in
7202 cat >> confdefs.h <<\EOF
7203 #define STREAMS_TLI 1
7209 echo $ac_n "checking for SIGIO""... $ac_c" 1>&6
7210 echo "configure:7211: checking for SIGIO" >&5
7211 if eval "test \"`echo '$''{'ac_cv_hdr_def_sigio'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 cat > conftest.$ac_ext <<EOF
7215 #line 7216 "configure"
7216 #include "confdefs.h"
7223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7224 egrep "yes" >/dev/null 2>&1; then
7226 ac_cv_hdr_def_sigio=yes
7229 ac_cv_hdr_def_sigio=no
7235 echo "$ac_t""$ac_cv_hdr_def_sigio" 1>&6
7237 echo $ac_n "checking if we want to use signalled IO""... $ac_c" 1>&6
7238 echo "configure:7239: checking if we want to use signalled IO" >&5
7239 if eval "test \"`echo '$''{'ac_cv_var_signalled_io'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7243 case "$ac_cv_hdr_def_sigio" in
7247 alpha*-dec-osf4*|alpha*-dec-osf5*)
7277 ac_cv_var_signalled_io=$ans
7280 echo "$ac_t""$ac_cv_var_signalled_io" 1>&6
7281 case "$ac_cv_var_signalled_io" in
7282 yes) cat >> confdefs.h <<\EOF
7283 #define HAVE_SIGNALED_IO 1
7288 echo $ac_n "checking for SIGPOLL""... $ac_c" 1>&6
7289 echo "configure:7290: checking for SIGPOLL" >&5
7290 if eval "test \"`echo '$''{'ac_cv_hdr_def_sigpoll'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7303 egrep "yes" >/dev/null 2>&1; then
7305 ac_cv_hdr_def_sigpoll=yes
7308 ac_cv_hdr_def_sigpoll=no
7314 echo "$ac_t""$ac_cv_hdr_def_sigpoll" 1>&6
7316 echo $ac_n "checking for SIGSYS""... $ac_c" 1>&6
7317 echo "configure:7318: checking for SIGSYS" >&5
7318 if eval "test \"`echo '$''{'ac_cv_hdr_def_sigsys'+set}'`\" = set"; then
7319 echo $ac_n "(cached) $ac_c" 1>&6
7321 cat > conftest.$ac_ext <<EOF
7322 #line 7323 "configure"
7323 #include "confdefs.h"
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331 egrep "yes" >/dev/null 2>&1; then
7333 ac_cv_hdr_def_sigsys=yes
7336 ac_cv_hdr_def_sigsys=no
7342 echo "$ac_t""$ac_cv_hdr_def_sigsys" 1>&6
7344 echo $ac_n "checking if we can use SIGPOLL for UDP I/O""... $ac_c" 1>&6
7345 echo "configure:7346: checking if we can use SIGPOLL for UDP I/O" >&5
7346 if eval "test \"`echo '$''{'ac_cv_var_use_udp_sigpoll'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7350 case "$ac_cv_hdr_def_sigpoll" in
7388 ac_cv_var_use_udp_sigpoll=$ans
7391 echo "$ac_t""$ac_cv_var_use_udp_sigpoll" 1>&6
7392 case "$ac_cv_var_use_udp_sigpoll" in
7393 yes) cat >> confdefs.h <<\EOF
7394 #define USE_UDP_SIGPOLL 1
7399 echo $ac_n "checking if we can use SIGPOLL for TTY I/O""... $ac_c" 1>&6
7400 echo "configure:7401: checking if we can use SIGPOLL for TTY I/O" >&5
7401 if eval "test \"`echo '$''{'ac_cv_var_use_tty_sigpoll'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7405 case "$ac_cv_hdr_def_sigpoll" in
7443 ac_cv_var_use_tty_sigpoll=$ans
7446 echo "$ac_t""$ac_cv_var_use_tty_sigpoll" 1>&6
7447 case "$ac_cv_var_use_tty_sigpoll" in
7448 yes) cat >> confdefs.h <<\EOF
7449 #define USE_TTY_SIGPOLL 1
7454 case "$ac_cv_header_sys_sio_h" in
7456 echo $ac_n "checking sys/sio.h for TIOCDCDTIMESTAMP""... $ac_c" 1>&6
7457 echo "configure:7458: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
7458 if eval "test \"`echo '$''{'ac_cv_hdr_def_tiocdcdtimestamp'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7461 cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464 #include <sys/sio.h>
7465 #ifdef TIOCDCDTIMESTAMP
7470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7471 egrep "yes" >/dev/null 2>&1; then
7473 ac_cv_hdr_def_tiocdcdtimestamp=yes
7476 ac_cv_hdr_def_tiocdcdtimestamp=no
7482 echo "$ac_t""$ac_cv_hdr_def_tiocdcdtimestamp" 1>&6
7486 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
7488 ac_cv_var_oncore_ok=yes
7492 echo $ac_n "checking if nlist() values might require extra indirection""... $ac_c" 1>&6
7493 echo "configure:7494: checking if nlist() values might require extra indirection" >&5
7494 if eval "test \"`echo '$''{'ac_cv_var_nlist_extra_indirection'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7503 ac_cv_var_nlist_extra_indirection=$ans
7506 echo "$ac_t""$ac_cv_var_nlist_extra_indirection" 1>&6
7507 case "$ac_cv_var_nlist_extra_indirection" in
7508 yes) cat >> confdefs.h <<\EOF
7509 #define NLIST_EXTRA_INDIRECTION 1
7514 echo $ac_n "checking for a minimum recommended value of tickadj""... $ac_c" 1>&6
7515 echo "configure:7516: checking for a minimum recommended value of tickadj" >&5
7516 if eval "test \"`echo '$''{'ac_cv_var_min_rec_tickadj'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7525 ac_cv_var_min_rec_tickadj=$ans
7528 echo "$ac_t""$ac_cv_var_min_rec_tickadj" 1>&6
7529 case "$ac_cv_var_min_rec_tickadj" in
7531 *) cat >> confdefs.h <<EOF
7532 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
7537 echo $ac_n "checking if the TTY code permits PARENB and IGNPAR""... $ac_c" 1>&6
7538 echo "configure:7539: checking if the TTY code permits PARENB and IGNPAR" >&5
7539 if eval "test \"`echo '$''{'ac_cv_var_no_parenb_ignpar'+set}'`\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7551 ac_cv_var_no_parenb_ignpar=$ans
7554 echo "$ac_t""$ac_cv_var_no_parenb_ignpar" 1>&6
7555 case "$ac_cv_var_no_parenb_ignpar" in
7556 yes) cat >> confdefs.h <<\EOF
7557 #define NO_PARENB_IGNPAR 1
7562 echo $ac_n "checking if we're including debugging code""... $ac_c" 1>&6
7563 echo "configure:7564: checking if we're including debugging code" >&5
7564 # Check whether --enable-debugging or --disable-debugging was given.
7565 if test "${enable_debugging+set}" = set; then
7566 enableval="$enable_debugging"
7572 if test "$ntp_ok" = "yes"; then
7573 cat >> confdefs.h <<\EOF
7578 echo "$ac_t""$ntp_ok" 1>&6
7580 echo $ac_n "checking for a the number of minutes in a DST adjustment""... $ac_c" 1>&6
7581 echo "configure:7582: checking for a the number of minutes in a DST adjustment" >&5
7582 # Check whether --enable-dst_minutes or --disable-dst_minutes was given.
7583 if test "${enable_dst_minutes+set}" = set; then
7584 enableval="$enable_dst_minutes"
7590 cat >> confdefs.h <<EOF
7591 #define DSTMINUTES $ans
7594 echo "$ac_t""$ans" 1>&6
7596 echo $ac_n "checking if we have the tty_clk line discipline/streams module""... $ac_c" 1>&6
7597 echo "configure:7598: checking if we have the tty_clk line discipline/streams module" >&5
7598 if eval "test \"`echo '$''{'ac_cv_var_tty_clk'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7601 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
7602 *yes*) ac_cv_var_tty_clk=yes ;;
7606 echo "$ac_t""$ac_cv_var_tty_clk" 1>&6
7607 case "$ac_cv_var_tty_clk" in
7608 yes) cat >> confdefs.h <<\EOF
7614 echo $ac_n "checking for the ppsclock streams module""... $ac_c" 1>&6
7615 echo "configure:7616: checking for the ppsclock streams module" >&5
7616 if eval "test \"`echo '$''{'ac_cv_var_ppsclock'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
7622 echo "$ac_t""$ac_cv_var_ppsclock" 1>&6
7623 case "$ac_cv_var_ppsclock" in
7624 yes) cat >> confdefs.h <<\EOF
7630 echo $ac_n "checking for kernel multicast support""... $ac_c" 1>&6
7631 echo "configure:7632: checking for kernel multicast support" >&5
7632 if eval "test \"`echo '$''{'ac_cv_var_mcast'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7637 i386-sequent-sysv4) ;;
7638 *) cat > conftest.$ac_ext <<EOF
7639 #line 7640 "configure"
7640 #include "confdefs.h"
7641 #include <netinet/in.h>
7642 #ifdef IP_ADD_MEMBERSHIP
7647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7648 egrep "yes" >/dev/null 2>&1; then
7657 echo "$ac_t""$ac_cv_var_mcast" 1>&6
7658 case "$ac_cv_var_mcast" in
7659 yes) cat >> confdefs.h <<\EOF
7665 echo $ac_n "checking availability of ntp_{adj,get}time()""... $ac_c" 1>&6
7666 echo "configure:7667: checking availability of ntp_{adj,get}time()" >&5
7667 if eval "test \"`echo '$''{'ac_cv_var_ntp_syscalls'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 ac_cv_var_ntp_syscalls=no
7671 case "$ac_cv_func___adjtimex" in
7673 ac_cv_var_ntp_syscalls=libc
7675 *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
7677 ac_cv_var_ntp_syscalls=libc
7679 *) cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 #include <sys/syscall.h>
7683 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
7688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7689 egrep "yes" >/dev/null 2>&1; then
7691 ac_cv_var_ntp_syscalls=kernel
7701 echo "$ac_t""$ac_cv_var_ntp_syscalls" 1>&6
7702 case "$ac_cv_var_ntp_syscalls" in
7704 cat >> confdefs.h <<\EOF
7705 #define NTP_SYSCALLS_LIBC 1
7710 cat >> confdefs.h <<\EOF
7711 #define NTP_SYSCALLS_STD 1
7719 echo $ac_n "checking if sys/timex.h has STA_FLL""... $ac_c" 1>&6
7720 echo "configure:7721: checking if sys/timex.h has STA_FLL" >&5
7721 if eval "test \"`echo '$''{'ac_cv_var_sta_fll'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 #include <sys/timex.h>
7733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7734 egrep "yes" >/dev/null 2>&1; then
7736 ac_cv_var_sta_fll=yes
7739 ac_cv_var_sta_fll=no
7745 echo "$ac_t""$ac_cv_var_sta_fll" 1>&6
7747 echo $ac_n "checking if we have kernel PLL support""... $ac_c" 1>&6
7748 echo "configure:7749: checking if we have kernel PLL support" >&5
7749 if eval "test \"`echo '$''{'ac_cv_var_kernel_pll'+set}'`\" = set"; then
7750 echo $ac_n "(cached) $ac_c" 1>&6
7752 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
7754 ac_cv_var_kernel_pll=no
7756 *) ac_cv_var_kernel_pll=yes
7761 echo "$ac_t""$ac_cv_var_kernel_pll" 1>&6
7762 case "$ac_cv_var_kernel_pll" in
7764 cat >> confdefs.h <<\EOF
7765 #define KERNEL_PLL 1
7771 echo $ac_n "checking if SIOCGIFCONF returns buffer size in the buffer""... $ac_c" 1>&6
7772 echo "configure:7773: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
7773 if eval "test \"`echo '$''{'ac_cv_var_size_returned_in_buffer'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7788 ac_cv_var_size_returned_in_buffer=$ans
7791 echo "$ac_t""$ac_cv_var_size_returned_in_buffer" 1>&6
7792 case "$ac_cv_var_size_returned_in_buffer" in
7793 yes) cat >> confdefs.h <<\EOF
7794 #define SIZE_RETURNED_IN_BUFFER 1
7800 echo $ac_n "checking if we want to use MD5 authentication""... $ac_c" 1>&6
7801 echo "configure:7802: checking if we want to use MD5 authentication" >&5
7802 if eval "test \"`echo '$''{'ac_cv_var_use_md5'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7805 # Check whether --enable-md5 or --disable-md5 was given.
7806 if test "${enable_md5+set}" = set; then
7807 enableval="$enable_md5"
7813 ac_cv_var_use_md5=$ans
7816 echo "$ac_t""$ac_cv_var_use_md5" 1>&6
7817 case "$ac_cv_var_use_md5" in
7818 yes) cat >> confdefs.h <<\EOF
7824 # Check for ioctls TIOCGPPSEV
7825 echo $ac_n "checking ioctl TIOCGPPSEV""... $ac_c" 1>&6
7826 echo "configure:7827: checking ioctl TIOCGPPSEV" >&5
7827 if test "$ac_cv_header_termios_h" = "yes"; then
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 #include <termios.h>
7837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7838 egrep "yes" >/dev/null 2>&1; then
7850 if test "$ntp_ok" = "yes"; then
7851 cat >> confdefs.h <<\EOF
7852 #define HAVE_TIOCGPPSEV 1
7855 ac_cv_var_oncore_ok=yes
7857 echo "$ac_t""$ntp_ok" 1>&6
7859 # Check for ioctls TIOCSPPS
7860 echo $ac_n "checking ioctl TIOCSPPS""... $ac_c" 1>&6
7861 echo "configure:7862: checking ioctl TIOCSPPS" >&5
7862 if test "$ac_cv_header_termios_h" = "yes"; then
7863 cat > conftest.$ac_ext <<EOF
7864 #line 7865 "configure"
7865 #include "confdefs.h"
7866 #include <termios.h>
7872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7873 egrep "yes" >/dev/null 2>&1; then
7886 if test "$ntp_ok" = "yes"; then
7887 cat >> confdefs.h <<\EOF
7888 #define HAVE_TIOCSPPS 1
7892 echo "$ac_t""$ntp_ok" 1>&6
7894 # Check for ioctls CIOGETEV
7895 echo $ac_n "checking ioctl CIOGETEV""... $ac_c" 1>&6
7896 echo "configure:7897: checking ioctl CIOGETEV" >&5
7897 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7901 #include <sys/ppsclock.h>
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908 egrep "yes" >/dev/null 2>&1; then
7920 if test "$ntp_ok" = "yes"; then
7921 ac_cv_var_oncore_ok=yes
7922 cat >> confdefs.h <<\EOF
7923 #define HAVE_CIOGETEV 1
7927 echo "$ac_t""$ntp_ok" 1>&6
7929 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
7930 # there is NO way that I can tell to tell if a given OS is using timespec or
7931 # timeval so just set it here for the one case that is KNOWN to use timespec.
7933 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
7935 cat >> confdefs.h <<\EOF
7936 #define HAVE_PPSAPI 1
7939 ac_cv_var_oncore_ok=yes
7940 cat >> confdefs.h <<\EOF
7941 #define HAVE_TIMESPEC 1
7947 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
7948 ac_safe=`echo "linux/serial.h" | sed 'y%./+-%__p_%'`
7949 echo $ac_n "checking for linux/serial.h""... $ac_c" 1>&6
7950 echo "configure:7951: checking for linux/serial.h" >&5
7951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 #include <linux/serial.h>
7959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7960 { (eval echo configure:7961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7962 if test -z "$ac_err"; then
7964 eval "ac_cv_header_$ac_safe=yes"
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 eval "ac_cv_header_$ac_safe=no"
7974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7978 echo "$ac_t""no" 1>&6
7981 echo $ac_n "checking ioctl TIOCGSERIAL""... $ac_c" 1>&6
7982 echo "configure:7983: checking ioctl TIOCGSERIAL" >&5
7983 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7988 #include <sys/time.h>
7991 #include <sys/ppsclock.h>
7992 #include <linux/serial.h>
7996 #ifdef ASYNC_PPS_CD_POS
7997 #ifdef ASYNC_PPS_CD_NEG
8007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8008 egrep "yes" >/dev/null 2>&1; then
8019 if test "$ntp_ok" = "yes"; then
8020 cat >> confdefs.h <<\EOF
8021 #define HAVE_TIO_SERIAL_STUFF 1
8025 echo "$ac_t""$ntp_ok" 1>&6
8027 # Check for SHMEM_STATUS support
8028 echo $ac_n "checking SHMEM_STATUS support""... $ac_c" 1>&6
8029 echo "configure:8030: checking SHMEM_STATUS support" >&5
8030 case "$ac_cv_header_sys_mman_h" in
8034 if test "$ntp_ok" = "yes"; then
8035 cat >> confdefs.h <<\EOF
8036 #define ONCORE_SHMEM_STATUS 1
8040 echo "$ac_t""$ntp_ok" 1>&6
8045 # HPUX only, and by explicit request
8046 echo $ac_n "checking Datum/Bancomm bc635/VME interface""... $ac_c" 1>&6
8047 echo "configure:8048: checking Datum/Bancomm bc635/VME interface" >&5
8048 # Check whether --enable-BANCOMM or --disable-BANCOMM was given.
8049 if test "${enable_BANCOMM+set}" = set; then
8050 enableval="$enable_BANCOMM"
8056 if test "$ntp_ok" = "yes"; then
8058 cat >> confdefs.h <<\EOF
8059 #define CLOCK_BANC 1
8063 echo "$ac_t""$ntp_ok" 1>&6
8064 case "$ntp_ok$target" in
8066 yes*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8069 #HPUX only, and only by explicit request
8070 echo $ac_n "checking TrueTime GPS receiver/VME interface""... $ac_c" 1>&6
8071 echo "configure:8072: checking TrueTime GPS receiver/VME interface" >&5
8072 # Check whether --enable-GPSVME or --disable-GPSVME was given.
8073 if test "${enable_GPSVME+set}" = set; then
8074 enableval="$enable_GPSVME"
8080 if test "$ntp_ok" = "yes"; then
8082 cat >> confdefs.h <<\EOF
8083 #define CLOCK_GPSVME 1
8087 echo "$ac_t""$ntp_ok" 1>&6
8088 case "$ntp_ok$target" in
8090 yes*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8093 echo $ac_n "checking for PCL720 clock support""... $ac_c" 1>&6
8094 echo "configure:8095: checking for PCL720 clock support" >&5
8095 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
8097 cat >> confdefs.h <<\EOF
8098 #define CLOCK_PPS720 1
8107 echo "$ac_t""$ans" 1>&6
8109 echo $ac_n "checking for SHM clock attached thru shared memory""... $ac_c" 1>&6
8110 echo "configure:8111: checking for SHM clock attached thru shared memory" >&5
8111 # Check whether --enable-SHM or --disable-SHM was given.
8112 if test "${enable_SHM+set}" = set; then
8113 enableval="$enable_SHM"
8119 if test "$ntp_ok" = "yes"; then
8121 cat >> confdefs.h <<\EOF
8126 echo "$ac_t""$ntp_ok" 1>&6
8128 echo $ac_n "checking for default inclusion of all suitable non-PARSE clocks""... $ac_c" 1>&6
8129 echo "configure:8130: checking for default inclusion of all suitable non-PARSE clocks" >&5
8130 # Check whether --enable-all-clocks or --disable-all-clocks was given.
8131 if test "${enable_all_clocks+set}" = set; then
8132 enableval="$enable_all_clocks"
8138 echo "$ac_t""$ntp_eac" 1>&6
8140 echo $ac_n "checking if we have support for PARSE clocks""... $ac_c" 1>&6
8141 echo "configure:8142: checking if we have support for PARSE clocks" >&5
8142 case "$ac_cv_header_termio_h$ac_cv_header_termios_h" in
8149 echo "$ac_t""$ntp_canparse" 1>&6
8151 echo $ac_n "checking if we have support for audio clocks""... $ac_c" 1>&6
8152 echo "configure:8153: checking if we have support for audio clocks" >&5
8153 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in
8154 *yes*) ntp_canaudio=yes ;;
8155 *) ntp_canaudio=no ;;
8157 echo "$ac_t""$ntp_canaudio" 1>&6
8159 # Requires modem control
8160 echo $ac_n "checking ACTS modem service""... $ac_c" 1>&6
8161 echo "configure:8162: checking ACTS modem service" >&5
8162 # Check whether --enable-ACTS or --disable-ACTS was given.
8163 if test "${enable_ACTS+set}" = set; then
8164 enableval="$enable_ACTS"
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 #include <termios.h>
8171 #ifdef HAVE_SYS_IOCTL_H
8172 #include <sys/ioctl.h>
8179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8180 egrep "yes" >/dev/null 2>&1; then
8191 if test "$ntp_ok" = "yes"; then
8193 cat >> confdefs.h <<\EOF
8194 #define CLOCK_ACTS 1
8198 echo "$ac_t""$ntp_ok" 1>&6
8200 echo $ac_n "checking Arbiter 1088A/B GPS receiver""... $ac_c" 1>&6
8201 echo "configure:8202: checking Arbiter 1088A/B GPS receiver" >&5
8202 # Check whether --enable-ARBITER or --disable-ARBITER was given.
8203 if test "${enable_ARBITER+set}" = set; then
8204 enableval="$enable_ARBITER"
8210 if test "$ntp_ok" = "yes"; then
8212 cat >> confdefs.h <<\EOF
8213 #define CLOCK_ARBITER 1
8217 echo "$ac_t""$ntp_ok" 1>&6
8219 echo $ac_n "checking Arcron MSF receiver""... $ac_c" 1>&6
8220 echo "configure:8221: checking Arcron MSF receiver" >&5
8221 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
8222 if test "${enable_ARCRON_MSF+set}" = set; then
8223 enableval="$enable_ARCRON_MSF"
8229 if test "$ntp_ok" = "yes"; then
8231 cat >> confdefs.h <<\EOF
8232 #define CLOCK_ARCRON_MSF 1
8236 echo "$ac_t""$ntp_ok" 1>&6
8238 echo $ac_n "checking Austron 2200A/2201A GPS receiver""... $ac_c" 1>&6
8239 echo "configure:8240: checking Austron 2200A/2201A GPS receiver" >&5
8240 # Check whether --enable-AS2201 or --disable-AS2201 was given.
8241 if test "${enable_AS2201+set}" = set; then
8242 enableval="$enable_AS2201"
8248 if test "$ntp_ok" = "yes"; then
8250 cat >> confdefs.h <<\EOF
8251 #define CLOCK_AS2201 1
8255 echo "$ac_t""$ntp_ok" 1>&6
8257 echo $ac_n "checking PPS interface""... $ac_c" 1>&6
8258 echo "configure:8259: checking PPS interface" >&5
8259 # Check whether --enable-ATOM or --disable-ATOM was given.
8260 if test "${enable_ATOM+set}" = set; then
8261 enableval="$enable_ATOM"
8267 if test "$ntp_ok" = "yes"; then
8269 cat >> confdefs.h <<\EOF
8270 #define CLOCK_ATOM 1
8274 echo "$ac_t""$ntp_ok" 1>&6
8276 echo $ac_n "checking CHU modem/decoder""... $ac_c" 1>&6
8277 echo "configure:8278: checking CHU modem/decoder" >&5
8278 # Check whether --enable-CHU or --disable-CHU was given.
8279 if test "${enable_CHU+set}" = set; then
8280 enableval="$enable_CHU"
8286 if test "$ntp_ok" = "yes"; then
8288 cat >> confdefs.h <<\EOF
8293 echo "$ac_t""$ntp_ok" 1>&6
8294 ac_refclock_chu=$ntp_ok
8296 echo $ac_n "checking CHU audio/decoder""... $ac_c" 1>&6
8297 echo "configure:8298: checking CHU audio/decoder" >&5
8298 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
8299 if test "${enable_AUDIO_CHU+set}" = set; then
8300 enableval="$enable_AUDIO_CHU"
8303 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
8309 if test "$ntp_ok" = "yes"; then
8310 cat >> confdefs.h <<\EOF
8315 echo "$ac_t""$ntp_ok" 1>&6
8316 # We used to check for sunos/solaris target...
8317 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
8318 yes*no*) echo "configure: warning: *** But the expected answer is...no ***" 1>&2 ;;
8322 echo $ac_n "checking Datum Programmable Time System""... $ac_c" 1>&6
8323 echo "configure:8324: checking Datum Programmable Time System" >&5
8324 # Check whether --enable-DATUM or --disable-DATUM was given.
8325 if test "${enable_DATUM+set}" = set; then
8326 enableval="$enable_DATUM"
8329 case "$ac_cv_header_termios_h" in
8338 if test "$ntp_ok" = "yes"; then
8340 cat >> confdefs.h <<\EOF
8341 #define CLOCK_DATUM 1
8345 echo "$ac_t""$ntp_ok" 1>&6
8347 echo $ac_n "checking Forum Graphic GPS""... $ac_c" 1>&6
8348 echo "configure:8349: checking Forum Graphic GPS" >&5
8349 # Check whether --enable-FG or --disable-FG was given.
8350 if test "${enable_FG+set}" = set; then
8351 enableval="$enable_FG"
8357 if test "$ntp_ok" = "yes"; then
8359 cat >> confdefs.h <<\EOF
8364 echo "$ac_t""$ntp_ok" 1>&6
8366 # Requires modem control
8367 echo $ac_n "checking Heath GC-1000 WWV/WWVH receiver""... $ac_c" 1>&6
8368 echo "configure:8369: checking Heath GC-1000 WWV/WWVH receiver" >&5
8369 # Check whether --enable-HEATH or --disable-HEATH was given.
8370 if test "${enable_HEATH+set}" = set; then
8371 enableval="$enable_HEATH"
8374 cat > conftest.$ac_ext <<EOF
8375 #line 8376 "configure"
8376 #include "confdefs.h"
8377 #include <termios.h>
8378 #ifdef HAVE_SYS_IOCTL_H
8379 #include <sys/ioctl.h>
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 egrep "yes" >/dev/null 2>&1; then
8398 if test "$ntp_ok" = "yes"; then
8400 cat >> confdefs.h <<\EOF
8401 #define CLOCK_HEATH 1
8405 echo "$ac_t""$ntp_ok" 1>&6
8407 echo $ac_n "checking HP 58503A GPS receiver""... $ac_c" 1>&6
8408 echo "configure:8409: checking HP 58503A GPS receiver" >&5
8409 # Check whether --enable-HPGPS or --disable-HPGPS was given.
8410 if test "${enable_HPGPS+set}" = set; then
8411 enableval="$enable_HPGPS"
8417 if test "$ntp_ok" = "yes"; then
8419 cat >> confdefs.h <<\EOF
8420 #define CLOCK_HPGPS 1
8424 echo "$ac_t""$ntp_ok" 1>&6
8426 echo $ac_n "checking Sun IRIG audio decoder""... $ac_c" 1>&6
8427 echo "configure:8428: checking Sun IRIG audio decoder" >&5
8428 # Check whether --enable-IRIG or --disable-IRIG was given.
8429 if test "${enable_IRIG+set}" = set; then
8430 enableval="$enable_IRIG"
8433 case "$ntp_eac$ntp_canaudio" in
8439 if test "$ntp_ok" = "yes"; then
8441 cat >> confdefs.h <<\EOF
8442 #define CLOCK_IRIG 1
8446 echo "$ac_t""$ntp_ok" 1>&6
8447 case "$ntp_ok$ntp_canaudio" in
8448 yesno) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8451 echo $ac_n "checking Leitch CSD 5300 Master Clock System Driver""... $ac_c" 1>&6
8452 echo "configure:8453: checking Leitch CSD 5300 Master Clock System Driver" >&5
8453 # Check whether --enable-LEITCH or --disable-LEITCH was given.
8454 if test "${enable_LEITCH+set}" = set; then
8455 enableval="$enable_LEITCH"
8461 if test "$ntp_ok" = "yes"; then
8463 cat >> confdefs.h <<\EOF
8464 #define CLOCK_LEITCH 1
8468 echo "$ac_t""$ntp_ok" 1>&6
8470 echo $ac_n "checking local clock reference""... $ac_c" 1>&6
8471 echo "configure:8472: checking local clock reference" >&5
8472 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
8473 if test "${enable_LOCAL_CLOCK+set}" = set; then
8474 enableval="$enable_LOCAL_CLOCK"
8480 if test "$ntp_ok" = "yes"; then
8482 cat >> confdefs.h <<\EOF
8483 #define CLOCK_LOCAL 1
8487 echo "$ac_t""$ntp_ok" 1>&6
8489 echo $ac_n "checking EES M201 MSF receiver""... $ac_c" 1>&6
8490 echo "configure:8491: checking EES M201 MSF receiver" >&5
8491 # Check whether --enable-MSFEES or --disable-MSFEES was given.
8492 if test "${enable_MSFEES+set}" = set; then
8493 enableval="$enable_MSFEES"
8499 if test "$ntp_ok" = "yes"; then
8501 cat >> confdefs.h <<\EOF
8502 #define CLOCK_MSFEES 1
8506 echo "$ac_t""$ntp_ok" 1>&6
8509 echo $ac_n "checking Magnavox MX4200 GPS receiver""... $ac_c" 1>&6
8510 echo "configure:8511: checking Magnavox MX4200 GPS receiver" >&5
8511 # Check whether --enable-MX4200 or --disable-MX4200 was given.
8512 if test "${enable_MX4200+set}" = set; then
8513 enableval="$enable_MX4200"
8516 case "$ac_cv_var_ppsclock" in
8517 yes) ntp_ok=$ntp_eac
8524 if test "$ntp_ok" = "yes"; then
8526 cat >> confdefs.h <<\EOF
8527 #define CLOCK_MX4200 1
8531 echo "$ac_t""$ntp_ok" 1>&6
8532 case "$ntp_ok$target" in
8533 yes*-*-ultrix*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8536 echo $ac_n "checking NMEA GPS receiver""... $ac_c" 1>&6
8537 echo "configure:8538: checking NMEA GPS receiver" >&5
8538 # Check whether --enable-NMEA or --disable-NMEA was given.
8539 if test "${enable_NMEA+set}" = set; then
8540 enableval="$enable_NMEA"
8546 if test "$ntp_ok" = "yes"; then
8548 cat >> confdefs.h <<\EOF
8549 #define CLOCK_NMEA 1
8553 echo "$ac_t""$ntp_ok" 1>&6
8555 echo $ac_n "checking for ONCORE Motorola VP/UT Oncore GPS""... $ac_c" 1>&6
8556 echo "configure:8557: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
8557 # Check whether --enable-ONCORE or --disable-ONCORE was given.
8558 if test "${enable_ONCORE+set}" = set; then
8559 enableval="$enable_ONCORE"
8565 case "$ac_cv_var_oncore_ok" in
8568 if test "$ntp_ok" = "yes"; then
8570 cat >> confdefs.h <<\EOF
8571 #define CLOCK_ONCORE 1
8575 echo "$ac_t""$ntp_ok" 1>&6
8577 echo $ac_n "checking for Palisade clock""... $ac_c" 1>&6
8578 echo "configure:8579: checking for Palisade clock" >&5
8579 # Check whether --enable-PALISADE or --disable-PALISADE was given.
8580 if test "${enable_PALISADE+set}" = set; then
8581 enableval="$enable_PALISADE"
8584 case "$ac_cv_header_termios_h" in
8594 if test "$ntp_ok" = "yes"; then
8596 cat >> confdefs.h <<\EOF
8597 #define CLOCK_PALISADE 1
8601 echo "$ac_t""$ntp_ok" 1>&6
8603 echo $ac_n "checking PST/Traconex 1020 WWV/WWVH receiver""... $ac_c" 1>&6
8604 echo "configure:8605: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
8605 # Check whether --enable-PST or --disable-PST was given.
8606 if test "${enable_PST+set}" = set; then
8607 enableval="$enable_PST"
8613 if test "$ntp_ok" = "yes"; then
8615 cat >> confdefs.h <<\EOF
8620 echo "$ac_t""$ntp_ok" 1>&6
8623 echo $ac_n "checking Rockwell Jupiter GPS receiver""... $ac_c" 1>&6
8624 echo "configure:8625: checking Rockwell Jupiter GPS receiver" >&5
8625 # Check whether --enable-JUPITER or --disable-JUPITER was given.
8626 if test "${enable_JUPITER+set}" = set; then
8627 enableval="$enable_JUPITER"
8630 case "$ac_cv_var_ppsclock" in
8631 # yes) ntp_ok=$ntp_eac
8638 if test "$ntp_ok" = "yes"; then
8640 cat >> confdefs.h <<\EOF
8641 #define CLOCK_JUPITER 1
8645 echo "$ac_t""$ntp_ok" 1>&6
8646 case "$ntp_ok$target" in
8647 yes*-*-ultrix*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8650 # Requires modem control
8651 echo $ac_n "checking PTB modem service""... $ac_c" 1>&6
8652 echo "configure:8653: checking PTB modem service" >&5
8653 # Check whether --enable-PTBACTS or --disable-PTBACTS was given.
8654 if test "${enable_PTBACTS+set}" = set; then
8655 enableval="$enable_PTBACTS"
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8661 #include <termios.h>
8662 #ifdef HAVE_SYS_IOCTL_H
8663 #include <sys/ioctl.h>
8670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8671 egrep "yes" >/dev/null 2>&1; then
8682 if test "$ntp_ok" = "yes"; then
8684 cat >> confdefs.h <<\EOF
8685 #define CLOCK_PTBACTS 1
8689 echo "$ac_t""$ntp_ok" 1>&6
8691 echo $ac_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface""... $ac_c" 1>&6
8692 echo "configure:8693: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
8693 # Check whether --enable-TPRO or --disable-TPRO was given.
8694 if test "${enable_TPRO+set}" = set; then
8695 enableval="$enable_TPRO"
8698 case "$ac_cv_header_sys_tpro_h" in
8707 if test "$ntp_ok" = "yes"; then
8709 cat >> confdefs.h <<\EOF
8710 #define CLOCK_TPRO 1
8714 echo "$ac_t""$ntp_ok" 1>&6
8715 case "$ntp_ok$ac_cv_header_sys_tpro" in
8716 yesno) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8719 echo $ac_n "checking TRAK 8810 GPS receiver""... $ac_c" 1>&6
8720 echo "configure:8721: checking TRAK 8810 GPS receiver" >&5
8721 # Check whether --enable-TRAK or --disable-TRAK was given.
8722 if test "${enable_TRAK+set}" = set; then
8723 enableval="$enable_TRAK"
8729 if test "$ntp_ok" = "yes"; then
8731 cat >> confdefs.h <<\EOF
8732 #define CLOCK_TRAK 1
8736 echo "$ac_t""$ntp_ok" 1>&6
8738 echo $ac_n "checking Chrono-log K-series WWVB receiver""... $ac_c" 1>&6
8739 echo "configure:8740: checking Chrono-log K-series WWVB receiver" >&5
8740 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
8741 if test "${enable_CHRONOLOG+set}" = set; then
8742 enableval="$enable_CHRONOLOG"
8748 if test "$ntp_ok" = "yes"; then
8750 cat >> confdefs.h <<\EOF
8751 #define CLOCK_CHRONOLOG 1
8755 echo "$ac_t""$ntp_ok" 1>&6
8757 echo $ac_n "checking Dumb generic hh:mm:ss local clock""... $ac_c" 1>&6
8758 echo "configure:8759: checking Dumb generic hh:mm:ss local clock" >&5
8759 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
8760 if test "${enable_DUMBCLOCK+set}" = set; then
8761 enableval="$enable_DUMBCLOCK"
8767 if test "$ntp_ok" = "yes"; then
8769 cat >> confdefs.h <<\EOF
8770 #define CLOCK_DUMBCLOCK 1
8774 echo "$ac_t""$ntp_ok" 1>&6
8776 echo $ac_n "checking Conrad parallel port radio clock""... $ac_c" 1>&6
8777 echo "configure:8778: checking Conrad parallel port radio clock" >&5
8778 # Check whether --enable-PCF or --disable-PCF was given.
8779 if test "${enable_PCF+set}" = set; then
8780 enableval="$enable_PCF"
8786 if test "$ntp_ok" = "yes"; then
8788 cat >> confdefs.h <<\EOF
8793 echo "$ac_t""$ntp_ok" 1>&6
8795 echo $ac_n "checking Spectracom 8170/Netclock/2 WWVB receiver""... $ac_c" 1>&6
8796 echo "configure:8797: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
8797 # Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
8798 if test "${enable_SPECTRACOM+set}" = set; then
8799 enableval="$enable_SPECTRACOM"
8805 if test "$ntp_ok" = "yes"; then
8807 cat >> confdefs.h <<\EOF
8808 #define CLOCK_SPECTRACOM 1
8812 echo "$ac_t""$ntp_ok" 1>&6
8814 # Not on a vax-dec-bsd
8815 echo $ac_n "checking Kinemetrics/TrueTime receivers""... $ac_c" 1>&6
8816 echo "configure:8817: checking Kinemetrics/TrueTime receivers" >&5
8817 # Check whether --enable-TRUETIME or --disable-TRUETIME was given.
8818 if test "${enable_TRUETIME+set}" = set; then
8819 enableval="$enable_TRUETIME"
8832 if test "$ntp_ok" = "yes"; then
8834 cat >> confdefs.h <<\EOF
8835 #define CLOCK_TRUETIME 1
8839 echo "$ac_t""$ntp_ok" 1>&6
8840 case "$ntp_ok$target" in
8841 yesvax-dec-bsd) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8844 echo $ac_n "checking Ultralink M320 WWVB receiver""... $ac_c" 1>&6
8845 echo "configure:8846: checking Ultralink M320 WWVB receiver" >&5
8846 # Check whether --enable-ULINK or --disable-ULINK was given.
8847 if test "${enable_ULINK+set}" = set; then
8848 enableval="$enable_ULINK"
8854 if test "$ntp_ok" = "yes"; then
8856 cat >> confdefs.h <<\EOF
8857 #define CLOCK_ULINK 1
8861 echo "$ac_t""$ntp_ok" 1>&6
8863 echo $ac_n "checking WWV receiver""... $ac_c" 1>&6
8864 echo "configure:8865: checking WWV receiver" >&5
8865 # Check whether --enable-WWV or --disable-WWV was given.
8866 if test "${enable_WWV+set}" = set; then
8867 enableval="$enable_WWV"
8870 case "$ntp_eac$ntp_canaudio" in
8876 if test "$ntp_ok" = "yes"; then
8878 cat >> confdefs.h <<\EOF
8883 echo "$ac_t""$ntp_ok" 1>&6
8884 case "$ntp_ok$ntp_canaudio" in
8885 yesno) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8888 # Requires modem control
8889 echo $ac_n "checking USNO modem service""... $ac_c" 1>&6
8890 echo "configure:8891: checking USNO modem service" >&5
8891 # Check whether --enable-USNO or --disable-USNO was given.
8892 if test "${enable_USNO+set}" = set; then
8893 enableval="$enable_USNO"
8896 cat > conftest.$ac_ext <<EOF
8897 #line 8898 "configure"
8898 #include "confdefs.h"
8899 #include <termios.h>
8900 #ifdef HAVE_SYS_IOCTL_H
8901 #include <sys/ioctl.h>
8908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8909 egrep "yes" >/dev/null 2>&1; then
8920 if test "$ntp_ok" = "yes"; then
8922 cat >> confdefs.h <<\EOF
8923 #define CLOCK_USNO 1
8927 echo "$ac_t""$ntp_ok" 1>&6
8929 echo $ac_n "checking for default inclusion of all suitable PARSE clocks""... $ac_c" 1>&6
8930 echo "configure:8931: checking for default inclusion of all suitable PARSE clocks" >&5
8931 # Check whether --enable-parse-clocks or --disable-parse-clocks was given.
8932 if test "${enable_parse_clocks+set}" = set; then
8933 enableval="$enable_parse_clocks"
8937 yes) ntp_eapc=$ntp_canparse ;;
8943 echo "$ac_t""$ntp_eapc" 1>&6
8945 case "$ntp_eac$ntp_eapc$ntp_canparse" in
8947 { echo "configure: error: "--enable-parse-clocks" requires "--enable-all-clocks"." 1>&2; exit 1; }
8950 { echo "configure: error: You said "--enable-parse-clocks" but PARSE isn't supported on this platform!" 1>&2; exit 1; }
8959 echo $ac_n "checking Diem Computime Radio Clock""... $ac_c" 1>&6
8960 echo "configure:8961: checking Diem Computime Radio Clock" >&5
8961 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
8962 if test "${enable_COMPUTIME+set}" = set; then
8963 enableval="$enable_COMPUTIME"
8969 if test "$ntp_ok" = "yes"; then
8972 cat >> confdefs.h <<\EOF
8973 #define CLOCK_COMPUTIME 1
8977 echo "$ac_t""$ntp_ok" 1>&6
8978 case "$ntp_ok$ntp_canparse" in
8980 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
8984 echo $ac_n "checking ELV/DCF7000 clock""... $ac_c" 1>&6
8985 echo "configure:8986: checking ELV/DCF7000 clock" >&5
8986 # Check whether --enable-DCF7000 or --disable-DCF7000 was given.
8987 if test "${enable_DCF7000+set}" = set; then
8988 enableval="$enable_DCF7000"
8994 if test "$ntp_ok" = "yes"; then
8997 cat >> confdefs.h <<\EOF
8998 #define CLOCK_DCF7000 1
9002 echo "$ac_t""$ntp_ok" 1>&6
9003 case "$ntp_ok$ntp_canparse" in
9005 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9009 echo $ac_n "checking HOPF 6021 clock""... $ac_c" 1>&6
9010 echo "configure:9011: checking HOPF 6021 clock" >&5
9011 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
9012 if test "${enable_HOPF6021+set}" = set; then
9013 enableval="$enable_HOPF6021"
9019 if test "$ntp_ok" = "yes"; then
9022 cat >> confdefs.h <<\EOF
9023 #define CLOCK_HOPF6021 1
9027 echo "$ac_t""$ntp_ok" 1>&6
9028 case "$ntp_ok$ntp_canparse" in
9030 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9034 echo $ac_n "checking Meinberg clocks""... $ac_c" 1>&6
9035 echo "configure:9036: checking Meinberg clocks" >&5
9036 # Check whether --enable-MEINBERG or --disable-MEINBERG was given.
9037 if test "${enable_MEINBERG+set}" = set; then
9038 enableval="$enable_MEINBERG"
9044 if test "$ntp_ok" = "yes"; then
9047 cat >> confdefs.h <<\EOF
9048 #define CLOCK_MEINBERG 1
9052 echo "$ac_t""$ntp_ok" 1>&6
9053 case "$ntp_ok$ntp_canparse" in
9055 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9059 echo $ac_n "checking DCF77 raw time code""... $ac_c" 1>&6
9060 echo "configure:9061: checking DCF77 raw time code" >&5
9061 # Check whether --enable-RAWDCF or --disable-RAWDCF was given.
9062 if test "${enable_RAWDCF+set}" = set; then
9063 enableval="$enable_RAWDCF"
9069 if test "$ntp_ok" = "yes"; then
9074 cat >> confdefs.h <<\EOF
9075 #define CLOCK_RAWDCF 1
9079 echo "$ac_t""$ntp_ok" 1>&6
9080 case "$ntp_ok$ntp_canparse" in
9082 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9086 case "$ntp_rawdcf" in
9088 echo $ac_n "checking if we must enable parity for RAWDCF""... $ac_c" 1>&6
9089 echo "configure:9090: checking if we must enable parity for RAWDCF" >&5
9090 if eval "test \"`echo '$''{'ac_cv_var_rawdcf_parity'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9099 ac_cv_var_rawdcf_parity=$ans
9102 echo "$ac_t""$ac_cv_var_rawdcf_parity" 1>&6
9103 case "$ac_cv_var_rawdcf_parity" in
9104 yes) cat >> confdefs.h <<\EOF
9105 #define RAWDCF_NO_IGNPAR 1
9111 *) # HMS: Is this a good idea?
9112 ac_cv_var_rawdcf_parity=no
9116 echo $ac_n "checking RCC 8000 clock""... $ac_c" 1>&6
9117 echo "configure:9118: checking RCC 8000 clock" >&5
9118 # Check whether --enable-RCC8000 or --disable-RCC8000 was given.
9119 if test "${enable_RCC8000+set}" = set; then
9120 enableval="$enable_RCC8000"
9126 if test "$ntp_ok" = "yes"; then
9129 cat >> confdefs.h <<\EOF
9130 #define CLOCK_RCC8000 1
9134 echo "$ac_t""$ntp_ok" 1>&6
9135 case "$ntp_ok$ntp_canparse" in
9137 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9141 echo $ac_n "checking Schmid DCF77 clock""... $ac_c" 1>&6
9142 echo "configure:9143: checking Schmid DCF77 clock" >&5
9143 # Check whether --enable-SCHMID or --disable-SCHMID was given.
9144 if test "${enable_SCHMID+set}" = set; then
9145 enableval="$enable_SCHMID"
9151 if test "$ntp_ok" = "yes"; then
9154 cat >> confdefs.h <<\EOF
9155 #define CLOCK_SCHMID 1
9159 echo "$ac_t""$ntp_ok" 1>&6
9160 case "$ntp_ok$ntp_canparse" in
9162 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9166 echo $ac_n "checking Trimble GPS receiver/TAIP protocol""... $ac_c" 1>&6
9167 echo "configure:9168: checking Trimble GPS receiver/TAIP protocol" >&5
9168 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
9169 if test "${enable_TRIMTAIP+set}" = set; then
9170 enableval="$enable_TRIMTAIP"
9176 if test "$ntp_ok" = "yes"; then
9179 cat >> confdefs.h <<\EOF
9180 #define CLOCK_TRIMTAIP 1
9184 echo "$ac_t""$ntp_ok" 1>&6
9185 case "$ntp_ok$ntp_canparse" in
9187 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9191 echo $ac_n "checking Trimble GPS receiver/TSIP protocol""... $ac_c" 1>&6
9192 echo "configure:9193: checking Trimble GPS receiver/TSIP protocol" >&5
9193 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
9194 if test "${enable_TRIMTSIP+set}" = set; then
9195 enableval="$enable_TRIMTSIP"
9201 if test "$ntp_ok" = "yes"; then
9204 cat >> confdefs.h <<\EOF
9205 #define CLOCK_TRIMTSIP 1
9209 echo "$ac_t""$ntp_ok" 1>&6
9210 case "$ntp_ok$ntp_canparse" in
9212 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9216 echo $ac_n "checking WHARTON 400A Series clock""... $ac_c" 1>&6
9217 echo "configure:9218: checking WHARTON 400A Series clock" >&5
9218 # Check whether --enable-WHARTON or --disable-WHARTON was given.
9219 if test "${enable_WHARTON+set}" = set; then
9220 enableval="$enable_WHARTON"
9226 if test "$ntp_ok" = "yes"; then
9229 cat >> confdefs.h <<\EOF
9230 #define CLOCK_WHARTON_400A 1
9234 echo "$ac_t""$ntp_ok" 1>&6
9235 case "$ntp_ok$ntp_canparse" in
9237 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9241 echo $ac_n "checking VARITEXT clock""... $ac_c" 1>&6
9242 echo "configure:9243: checking VARITEXT clock" >&5
9243 # Check whether --enable-VARITEXT or --disable-VARITEXT was given.
9244 if test "${enable_VARITEXT+set}" = set; then
9245 enableval="$enable_VARITEXT"
9251 if test "$ntp_ok" = "yes"; then
9254 cat >> confdefs.h <<\EOF
9255 #define CLOCK_VARITEXT 1
9259 echo "$ac_t""$ntp_ok" 1>&6
9260 case "$ntp_ok$ntp_canparse" in
9262 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9269 echo $ac_n "checking if we need to make and use the parse libraries""... $ac_c" 1>&6
9270 echo "configure:9271: checking if we need to make and use the parse libraries" >&5
9272 case "$ntp_libparse" in
9275 cat >> confdefs.h <<\EOF
9276 #define CLOCK_PARSE 1
9279 LIBPARSE=../libparse/libparse.a
9280 MAKE_LIBPARSE=libparse.a
9281 MAKE_CHECK_Y2K=check_y2k
9282 cat >> confdefs.h <<\EOF
9283 #define PPS_SAMPLE 1
9286 cat >> confdefs.h <<\EOF
9287 #define CLOCK_ATOM 1
9292 echo "$ac_t""$ans" 1>&6
9297 echo $ac_n "checking if we need to make and use the RSAREF library""... $ac_c" 1>&6
9298 echo "configure:9299: checking if we need to make and use the RSAREF library" >&5
9300 if test -f $srcdir/rsaref2/source/rsa.c
9303 LIBRSAREF=../librsaref/librsaref.a
9304 MAKE_LIBRSAREF=librsaref.a
9305 cat >> confdefs.h <<\EOF
9310 echo "$ac_t""$ans" 1>&6
9315 echo $ac_n "checking if we can make dcf parse utilities""... $ac_c" 1>&6
9316 echo "configure:9317: checking if we can make dcf parse utilities" >&5
9318 if test "$ntp_parseutil" = "yes"; then
9320 *-*-sunos4*|*-*-solaris2*|*-*-linux*)
9327 echo "$ac_t""$ans" 1>&6
9330 echo $ac_n "checking if we can build kernel streams modules for parse""... $ac_c" 1>&6
9331 echo "configure:9332: checking if we can build kernel streams modules for parse" >&5
9333 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
9337 case "$ac_cv_var_kernel_pll" in
9339 cat >> confdefs.h <<\EOF
9346 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
9350 MAKE_PARSEKMODULE=parse
9355 echo "$ac_t""$ans" 1>&6
9357 echo $ac_n "checking if we need basic refclock support""... $ac_c" 1>&6
9358 echo "configure:9359: checking if we need basic refclock support" >&5
9359 if test "$ntp_refclock" = "yes"; then
9360 cat >> confdefs.h <<\EOF
9365 echo "$ac_t""$ntp_refclock" 1>&6
9369 echo $ac_n "checking if we want HP-UX adjtimed support""... $ac_c" 1>&6
9370 echo "configure:9371: checking if we want HP-UX adjtimed support" >&5
9378 if test "$ans" = "yes"; then
9379 MAKE_ADJTIMED=adjtimed
9380 cat >> confdefs.h <<\EOF
9381 #define NEED_HPUX_ADJTIME 1
9385 echo "$ac_t""$ans" 1>&6
9387 echo $ac_n "checking if we can read kmem""... $ac_c" 1>&6
9388 echo "configure:9389: checking if we can read kmem" >&5
9389 if eval "test \"`echo '$''{'ac_cv_var_can_kmem'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9392 # Check whether --enable-kmem or --disable-kmem was given.
9393 if test "${enable_kmem+set}" = set; then
9394 enableval="$enable_kmem"
9397 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
9408 *-*-domainos) # Won't be found...
9427 ac_cv_var_can_kmem=$ans
9430 echo "$ac_t""$ac_cv_var_can_kmem" 1>&6
9432 case "$ac_cv_var_can_kmem" in
9434 *) cat >> confdefs.h <<\EOF
9440 echo $ac_n "checking if adjtime is accurate""... $ac_c" 1>&6
9441 echo "configure:9442: checking if adjtime is accurate" >&5
9442 if eval "test \"`echo '$''{'ac_cv_var_adjtime_is_accurate'+set}'`\" = set"; then
9443 echo $ac_n "(cached) $ac_c" 1>&6
9445 # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
9446 if test "${enable_accurate_adjtime+set}" = set; then
9447 enableval="$enable_accurate_adjtime"
9457 mips-sgi-irix[456]*)
9481 ac_cv_var_adjtime_is_accurate=$ans
9484 echo "$ac_t""$ac_cv_var_adjtime_is_accurate" 1>&6
9485 case "$ac_cv_var_adjtime_is_accurate" in
9486 yes) cat >> confdefs.h <<\EOF
9487 #define ADJTIME_IS_ACCURATE 1
9492 echo $ac_n "checking the name of 'tick' in the kernel""... $ac_c" 1>&6
9493 echo "configure:9494: checking the name of 'tick' in the kernel" >&5
9494 if eval "test \"`echo '$''{'ac_cv_var_nlist_tick'+set}'`\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9499 m68*-hp-hpux*) # HP9000/300?
9524 ac_cv_var_nlist_tick=$ans
9527 echo "$ac_t""$ac_cv_var_nlist_tick" 1>&6
9528 case "$ac_cv_var_nlist_tick" in
9529 ''|no) ;; # HMS: I think we can only get 'no' here...
9530 *) cat >> confdefs.h <<EOF
9531 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
9536 echo $ac_n "checking for the units of 'tick'""... $ac_c" 1>&6
9537 echo "configure:9538: checking for the units of 'tick'" >&5
9538 if eval "test \"`echo '$''{'ac_cv_var_tick_nano'+set}'`\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9547 ac_cv_var_tick_nano=$ans
9550 echo "$ac_t""$ac_cv_var_tick_nano" 1>&6
9551 case "$ac_cv_var_tick_nano" in
9553 cat >> confdefs.h <<\EOF
9560 echo $ac_n "checking the name of 'tickadj' in the kernel""... $ac_c" 1>&6
9561 echo "configure:9562: checking the name of 'tickadj' in the kernel" >&5
9562 if eval "test \"`echo '$''{'ac_cv_var_nlist_tickadj'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9567 m68*-hp-hpux*) # HP9000/300?
9595 ans=no # hrestime_adj
9601 ac_cv_var_nlist_tickadj=$ans
9604 echo "$ac_t""$ac_cv_var_nlist_tickadj" 1>&6
9605 case "$ac_cv_var_nlist_tickadj" in
9606 ''|no) ;; # HMS: I think we can only get 'no' here...
9607 *) cat >> confdefs.h <<EOF
9608 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
9613 echo $ac_n "checking for the units of 'tickadj'""... $ac_c" 1>&6
9614 echo "configure:9615: checking for the units of 'tickadj'" >&5
9615 if eval "test \"`echo '$''{'ac_cv_var_tickadj_nano'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9624 ac_cv_var_tickadj_nano=$ans
9627 echo "$ac_t""$ac_cv_var_tickadj_nano" 1>&6
9628 case "$ac_cv_var_tickadj_nano" in
9630 cat >> confdefs.h <<\EOF
9631 #define TICKADJ_NANO 1
9637 echo $ac_n "checking half-heartedly for 'dosynctodr' in the kernel""... $ac_c" 1>&6
9638 echo "configure:9639: checking half-heartedly for 'dosynctodr' in the kernel" >&5
9639 if eval "test \"`echo '$''{'ac_cv_var_nlist_dosynctodr'+set}'`\" = set"; then
9640 echo $ac_n "(cached) $ac_c" 1>&6
9677 ac_cv_var_nlist_dosynctodr=$ans
9680 echo "$ac_t""$ac_cv_var_nlist_dosynctodr" 1>&6
9681 case "$ac_cv_var_nlist_dosynctodr" in
9683 *) cat >> confdefs.h <<EOF
9684 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
9690 echo $ac_n "checking half-heartedly for 'noprintf' in the kernel""... $ac_c" 1>&6
9691 echo "configure:9692: checking half-heartedly for 'noprintf' in the kernel" >&5
9692 if eval "test \"`echo '$''{'ac_cv_var_nlist_noprintf'+set}'`\" = set"; then
9693 echo $ac_n "(cached) $ac_c" 1>&6
9724 ac_cv_var_nlist_noprintf=$ans
9727 echo "$ac_t""$ac_cv_var_nlist_noprintf" 1>&6
9728 case "$ac_cv_var_nlist_noprintf" in
9730 *) cat >> confdefs.h <<EOF
9731 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
9740 echo $ac_n "checking for a default value for 'tick'""... $ac_c" 1>&6
9741 echo "configure:9742: checking for a default value for 'tick'" >&5
9742 if eval "test \"`echo '$''{'ac_cv_var_tick'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9745 # Check whether --enable-tick or --disable-tick was given.
9746 if test "${enable_tick+set}" = set; then
9747 enableval="$enable_tick"
9775 echo "$ac_t""$ac_cv_var_tick" 1>&6
9776 case "$ac_cv_var_tick" in
9777 ''|no) ;; # HMS: I think we can only get 'no' here...
9778 *) cat >> confdefs.h <<EOF
9779 #define PRESET_TICK $ac_cv_var_tick
9784 echo $ac_n "checking for a default value for 'tickadj'""... $ac_c" 1>&6
9785 echo "configure:9786: checking for a default value for 'tickadj'" >&5
9786 if eval "test \"`echo '$''{'ac_cv_var_tickadj'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9789 # Check whether --enable-tickadj or --disable-tickadj was given.
9790 if test "${enable_tickadj+set}" = set; then
9791 enableval="$enable_tickadj"
9797 case "$ac_cv_var_adjtime_is_accurate" in
9798 yes) ans='tick/16' ;;
9808 case "$ac_cv_var_can_kmem" in
9812 *-*-domainos) # Skippy: won't be found...
9813 case "$ac_cv_var_can_kmem" in
9818 case "$ac_cv_var_adjtime_is_accurate" in
9819 yes) ans='tick/16' ;;
9829 case "$ac_cv_var_adjtime_is_accurate" in
9841 ac_cv_var_tickadj=$ans
9844 echo "$ac_t""$ac_cv_var_tickadj" 1>&6
9845 case "$ac_cv_var_tickadj" in
9846 ''|no) ;; # HMS: I think we can only get 'no' here...
9847 *) cat >> confdefs.h <<EOF
9848 #define PRESET_TICKADJ $ac_cv_var_tickadj
9853 # Newer versions of ReliantUNIX round adjtime() values down to
9854 # 1/100s (system tick). Sigh ...
9855 # Unfortunately, there is no easy way to know if particular release
9856 # has this "feature" or any obvious way to test for it.
9858 mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9859 #define RELIANTUNIX_CLOCK 1
9865 *-*-sco3.2v5*) cat >> confdefs.h <<\EOF
9866 #define SCO5_CLOCK 1
9871 ac_cv_make_tickadj=yes
9872 case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
9873 nonono) # Don't read KMEM, no presets. Bogus.
9874 echo "configure: warning: Can't read kmem" 1>&2
9875 ac_cv_make_tickadj=no
9877 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
9878 echo "configure: warning: Can't read kmem but no PRESET_TICK. No tickadj." 1>&2
9879 ac_cv_make_tickadj=no
9881 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
9882 echo "configure: warning: Can't read kmem but no PRESET_TICKADJ. No tickadj." 1>&2
9883 ac_cv_make_tickadj=no
9885 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
9887 yesnono) # Read KMEM, no presets. Cool.
9889 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
9890 echo "configure: warning: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." 1>&2
9892 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
9894 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
9896 *) # Generally bogus.
9897 { echo "configure: error: This shouldn't happen." 1>&2; exit 1; }
9903 # tickadj is pretty useless on newer versions of ReliantUNIX
9905 ac_cv_make_tickadj=no
9908 # DLM says tickadj is a no-no starting with solaris2.5
9910 *-*-solaris2.0-4*) ;;
9911 *) ac_cv_make_tickadj=no ;;
9917 echo $ac_n "checking if we want and can make the tickadj utility""... $ac_c" 1>&6
9918 echo "configure:9919: checking if we want and can make the tickadj utility" >&5
9919 if eval "test \"`echo '$''{'ac_cv_make_tickadj'+set}'`\" = set"; then
9920 echo $ac_n "(cached) $ac_c" 1>&6
9922 ac_cv_make_tickadj=yes
9925 echo "$ac_t""$ac_cv_make_tickadj" 1>&6
9926 case "$ac_cv_make_tickadj" in
9928 MAKE_TICKADJ=tickadj
9933 echo $ac_n "checking if we want and can make the ntptime utility""... $ac_c" 1>&6
9934 echo "configure:9935: checking if we want and can make the ntptime utility" >&5
9935 if eval "test \"`echo '$''{'ac_cv_make_ntptime'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9939 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
9949 ac_cv_make_ntptime=$ans
9952 echo "$ac_t""$ac_cv_make_ntptime" 1>&6
9953 case "$ac_cv_make_ntptime" in
9955 MAKE_NTPTIME=ntptime
9959 echo $ac_n "checking if we want UDP wildcard delivery""... $ac_c" 1>&6
9960 echo "configure:9961: checking if we want UDP wildcard delivery" >&5
9961 if eval "test \"`echo '$''{'ac_cv_var_udp_wildcard_delivery'+set}'`\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9964 # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
9965 if test "${enable_udp_wildcard+set}" = set; then
9966 enableval="$enable_udp_wildcard"
10016 ac_cv_var_udp_wildcard_delivery=$ans
10019 echo "$ac_t""$ac_cv_var_udp_wildcard_delivery" 1>&6
10020 case "$ac_cv_var_udp_wildcard_delivery" in
10021 yes) cat >> confdefs.h <<\EOF
10022 #define UDP_WILDCARD_DELIVERY 1
10030 *) case "$target" in
10032 LDFLAGS="$LDFLAGS -r"
10038 echo $ac_n "checking if we should always slew the time""... $ac_c" 1>&6
10039 echo "configure:10040: checking if we should always slew the time" >&5
10040 if eval "test \"`echo '$''{'ac_cv_var_slew_always'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10043 # Check whether --enable-slew-always or --disable-slew-always was given.
10044 if test "${enable_slew_always+set}" = set; then
10045 enableval="$enable_slew_always"
10058 *-*-openvms*) # HMS: won't be found
10067 ac_cv_var_slew_always=$ans
10070 echo "$ac_t""$ac_cv_var_slew_always" 1>&6
10071 case "$ac_cv_var_slew_always" in
10072 yes) cat >> confdefs.h <<\EOF
10073 #define SLEWALWAYS 1
10078 echo $ac_n "checking if we should step and slew the time""... $ac_c" 1>&6
10079 echo "configure:10080: checking if we should step and slew the time" >&5
10080 if eval "test \"`echo '$''{'ac_cv_var_step_slew'+set}'`\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10083 # Check whether --enable-step-slew or --disable-step-slew was given.
10084 if test "${enable_step_slew+set}" = set; then
10085 enableval="$enable_step_slew"
10098 *-*-solaris2.[012]*)
10101 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
10110 ac_cv_var_step_slew=$ans
10113 echo "$ac_t""$ac_cv_var_step_slew" 1>&6
10114 case "$ac_cv_var_step_slew" in
10115 yes) cat >> confdefs.h <<\EOF
10116 #define STEP_SLEW 1
10121 echo $ac_n "checking if ntpdate should step the time""... $ac_c" 1>&6
10122 echo "configure:10123: checking if ntpdate should step the time" >&5
10123 if eval "test \"`echo '$''{'ac_cv_var_ntpdate_step'+set}'`\" = set"; then
10124 echo $ac_n "(cached) $ac_c" 1>&6
10126 # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
10127 if test "${enable_ntpdate_step+set}" = set; then
10128 enableval="$enable_ntpdate_step"
10141 ac_cv_var_ntpdate_step=$ans
10144 echo "$ac_t""$ac_cv_var_ntpdate_step" 1>&6
10145 case "$ac_cv_var_ntpdate_step" in
10146 yes) cat >> confdefs.h <<\EOF
10147 #define FORCE_NTPDATE_STEP 1
10152 echo $ac_n "checking if we should sync TODR clock every hour""... $ac_c" 1>&6
10153 echo "configure:10154: checking if we should sync TODR clock every hour" >&5
10154 if eval "test \"`echo '$''{'ac_cv_var_sync_todr'+set}'`\" = set"; then
10155 echo $ac_n "(cached) $ac_c" 1>&6
10157 # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
10158 if test "${enable_hourly_todr_sync+set}" = set; then
10159 enableval="$enable_hourly_todr_sync"
10166 *-*-openvms*) # HMS: won't be found
10174 ac_cv_var_sync_todr=$ans
10177 echo "$ac_t""$ac_cv_var_sync_todr" 1>&6
10178 case "$ac_cv_var_sync_todr" in
10179 yes) cat >> confdefs.h <<\EOF
10180 #define DOSYNCTODR 1
10185 echo $ac_n "checking if we should avoid kernel FLL bug""... $ac_c" 1>&6
10186 echo "configure:10187: checking if we should avoid kernel FLL bug" >&5
10187 if eval "test \"`echo '$''{'ac_cv_var_kernel_fll_bug'+set}'`\" = set"; then
10188 echo $ac_n "(cached) $ac_c" 1>&6
10190 # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
10191 if test "${enable_kernel_fll_bug+set}" = set; then
10192 enableval="$enable_kernel_fll_bug"
10200 case "`uname -v`" in
10214 ac_cv_var_kernel_fll_bug=$ans
10217 echo "$ac_t""$ac_cv_var_kernel_fll_bug" 1>&6
10218 case "$ac_cv_var_kernel_fll_bug" in
10219 yes) cat >> confdefs.h <<\EOF
10220 #define KERNEL_FLL_BUG 1
10228 *) case "$target" in
10230 LDFLAGS="$LDFLAGS -r"
10236 # This is necessary so that .o files in LIBOBJS are also built via
10237 # the ANSI2KNR-filtering rules.
10238 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
10241 cat > confcache <<\EOF
10242 # This file is a shell script that caches the results of configure
10243 # tests run on this system so they can be shared between configure
10244 # scripts and configure runs. It is not useful on other systems.
10245 # If it contains results you don't want to keep, you may remove or edit it.
10247 # By default, configure uses ./config.cache as the cache file,
10248 # creating it if it does not exist already. You can give configure
10249 # the --cache-file=FILE option to use a different cache file; that is
10250 # what configure does when it calls configure scripts in
10251 # subdirectories, so they share the cache.
10252 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10253 # config.status only pays attention to the cache file if you give it the
10254 # --recheck option to rerun configure.
10257 # The following way of writing the cache mishandles newlines in values,
10258 # but we know of no workaround that is simple, portable, and efficient.
10259 # So, don't put newlines in cache variables' values.
10260 # Ultrix sh set writes to stderr and can't be redirected directly,
10261 # and sets the high bit in the cache file unless we assign to the vars.
10263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10265 # `set' does not quote correctly, so add quotes (double-quote substitution
10266 # turns \\\\ into \\, and sed turns \\ into \).
10268 -e "s/'/'\\\\''/g" \
10269 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10272 # `set' quotes correctly as required by POSIX, so do not add quotes.
10273 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10276 if cmp -s $cache_file confcache; then
10279 if test -w $cache_file; then
10280 echo "updating cache $cache_file"
10281 cat confcache > $cache_file
10283 echo "not updating unwritable cache $cache_file"
10288 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10290 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10291 # Let make expand exec_prefix.
10292 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10294 # Any assignment to VPATH causes Sun make to only execute
10295 # the first set of double-colon rules, so remove it if not needed.
10296 # If there is a colon in the path, we need to keep it.
10297 if test "x$srcdir" = x.; then
10298 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10301 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10303 DEFS=-DHAVE_CONFIG_H
10305 # Without the "./", some shells look in PATH for config.status.
10306 : ${CONFIG_STATUS=./config.status}
10308 echo creating $CONFIG_STATUS
10309 rm -f $CONFIG_STATUS
10310 cat > $CONFIG_STATUS <<EOF
10312 # Generated automatically by configure.
10313 # Run this file to recreate the current configuration.
10314 # This directory was configured as follows,
10315 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10317 # $0 $ac_configure_args
10319 # Compiler output produced by configure, useful for debugging
10320 # configure, is in ./config.log if it exists.
10322 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10325 case "\$ac_option" in
10326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10327 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10328 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10329 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10330 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10332 -help | --help | --hel | --he | --h)
10333 echo "\$ac_cs_usage"; exit 0 ;;
10334 *) echo "\$ac_cs_usage"; exit 1 ;;
10338 ac_given_srcdir=$srcdir
10339 ac_given_INSTALL="$INSTALL"
10341 trap 'rm -fr `echo "Makefile adjtimed/Makefile clockstuff/Makefile \
10342 include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \
10343 libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile \
10344 ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile \
10345 scripts/Makefile scripts/mkver scripts/ntpver util/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10347 cat >> $CONFIG_STATUS <<EOF
10349 # Protect against being on the right side of a sed subst in config.status.
10350 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10351 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10355 s%@CFLAGS@%$CFLAGS%g
10356 s%@CPPFLAGS@%$CPPFLAGS%g
10357 s%@CXXFLAGS@%$CXXFLAGS%g
10358 s%@FFLAGS@%$FFLAGS%g
10360 s%@LDFLAGS@%$LDFLAGS%g
10362 s%@exec_prefix@%$exec_prefix%g
10363 s%@prefix@%$prefix%g
10364 s%@program_transform_name@%$program_transform_name%g
10365 s%@bindir@%$bindir%g
10366 s%@sbindir@%$sbindir%g
10367 s%@libexecdir@%$libexecdir%g
10368 s%@datadir@%$datadir%g
10369 s%@sysconfdir@%$sysconfdir%g
10370 s%@sharedstatedir@%$sharedstatedir%g
10371 s%@localstatedir@%$localstatedir%g
10372 s%@libdir@%$libdir%g
10373 s%@includedir@%$includedir%g
10374 s%@oldincludedir@%$oldincludedir%g
10375 s%@infodir@%$infodir%g
10376 s%@mandir@%$mandir%g
10378 s%@host_alias@%$host_alias%g
10379 s%@host_cpu@%$host_cpu%g
10380 s%@host_vendor@%$host_vendor%g
10381 s%@host_os@%$host_os%g
10382 s%@target@%$target%g
10383 s%@target_alias@%$target_alias%g
10384 s%@target_cpu@%$target_cpu%g
10385 s%@target_vendor@%$target_vendor%g
10386 s%@target_os@%$target_os%g
10388 s%@build_alias@%$build_alias%g
10389 s%@build_cpu@%$build_cpu%g
10390 s%@build_vendor@%$build_vendor%g
10391 s%@build_os@%$build_os%g
10392 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10393 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10394 s%@INSTALL_DATA@%$INSTALL_DATA%g
10395 s%@PACKAGE@%$PACKAGE%g
10396 s%@VERSION@%$VERSION%g
10397 s%@ACLOCAL@%$ACLOCAL%g
10398 s%@AUTOCONF@%$AUTOCONF%g
10399 s%@AUTOMAKE@%$AUTOMAKE%g
10400 s%@AUTOHEADER@%$AUTOHEADER%g
10401 s%@MAKEINFO@%$MAKEINFO%g
10403 s%@install_sh@%$install_sh%g
10405 s%@SET_MAKE@%$SET_MAKE%g
10407 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
10408 s%@DEPDIR@%$DEPDIR%g
10411 s%@CCDEPMODE@%$CCDEPMODE%g
10413 s%@RANLIB@%$RANLIB%g
10414 s%@PATH_SH@%$PATH_SH%g
10416 s%@ANSI2KNR@%$ANSI2KNR%g
10417 s%@LIBOBJS@%$LIBOBJS%g
10418 s%@LIBPARSE@%$LIBPARSE%g
10419 s%@MAKE_LIBPARSE@%$MAKE_LIBPARSE%g
10420 s%@MAKE_LIBPARSE_KERNEL@%$MAKE_LIBPARSE_KERNEL%g
10421 s%@MAKE_CHECK_Y2K@%$MAKE_CHECK_Y2K%g
10422 s%@RSAREF@%$RSAREF%g
10423 s%@LIBRSAREF@%$LIBRSAREF%g
10424 s%@MAKE_LIBRSAREF@%$MAKE_LIBRSAREF%g
10425 s%@TESTDCF@%$TESTDCF%g
10427 s%@MAKE_PARSEKMODULE@%$MAKE_PARSEKMODULE%g
10428 s%@PROPDELAY@%$PROPDELAY%g
10429 s%@CHUTEST@%$CHUTEST%g
10430 s%@CLKTEST@%$CLKTEST%g
10431 s%@MAKE_ADJTIMED@%$MAKE_ADJTIMED%g
10432 s%@MAKE_TICKADJ@%$MAKE_TICKADJ%g
10433 s%@MAKE_NTPTIME@%$MAKE_NTPTIME%g
10438 cat >> $CONFIG_STATUS <<\EOF
10440 # Split the substitutions into bite-sized pieces for seds with
10441 # small command number limits, like on Digital OSF/1 and HP-UX.
10442 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10443 ac_file=1 # Number of current file.
10444 ac_beg=1 # First line for current file.
10445 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10448 while $ac_more_lines; do
10449 if test $ac_beg -gt 1; then
10450 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10452 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10454 if test ! -s conftest.s$ac_file; then
10455 ac_more_lines=false
10456 rm -f conftest.s$ac_file
10458 if test -z "$ac_sed_cmds"; then
10459 ac_sed_cmds="sed -f conftest.s$ac_file"
10461 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10463 ac_file=`expr $ac_file + 1`
10465 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10468 if test -z "$ac_sed_cmds"; then
10473 cat >> $CONFIG_STATUS <<EOF
10475 CONFIG_FILES=\${CONFIG_FILES-"Makefile adjtimed/Makefile clockstuff/Makefile \
10476 include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \
10477 libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile \
10478 ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile \
10479 scripts/Makefile scripts/mkver scripts/ntpver util/Makefile"}
10481 cat >> $CONFIG_STATUS <<\EOF
10482 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10483 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10485 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10486 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10487 *) ac_file_in="${ac_file}.in" ;;
10490 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10492 # Remove last slash and all that follows it. Not all systems have dirname.
10493 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10494 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10495 # The file is in a subdirectory.
10496 test ! -d "$ac_dir" && mkdir "$ac_dir"
10497 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10498 # A "../" for each directory in $ac_dir_suffix.
10499 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10501 ac_dir_suffix= ac_dots=
10504 case "$ac_given_srcdir" in
10506 if test -z "$ac_dots"; then top_srcdir=.
10507 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10508 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10509 *) # Relative path.
10510 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10511 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10514 case "$ac_given_INSTALL" in
10515 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10516 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10519 echo creating "$ac_file"
10521 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10523 *Makefile*) ac_comsub="1i\\
10524 # $configure_input" ;;
10528 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10530 s%@configure_input@%$configure_input%g
10531 s%@srcdir@%$srcdir%g
10532 s%@top_srcdir@%$top_srcdir%g
10533 s%@INSTALL@%$INSTALL%g
10534 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10538 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10539 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10541 # ac_d sets the value in "#define NAME VALUE" lines.
10542 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10543 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10546 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10547 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10548 ac_uB='\([ ]\)%\1#\2define\3'
10551 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10552 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10553 ac_eB='$%\1#\2define\3'
10557 if test "${CONFIG_HEADERS+set}" != set; then
10559 cat >> $CONFIG_STATUS <<EOF
10560 CONFIG_HEADERS="config.h"
10562 cat >> $CONFIG_STATUS <<\EOF
10564 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10567 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10568 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10569 *) ac_file_in="${ac_file}.in" ;;
10572 echo creating $ac_file
10574 rm -f conftest.frag conftest.in conftest.out
10575 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10576 cat $ac_file_inputs > conftest.in
10580 # Transform confdefs.h into a sed script conftest.vals that substitutes
10581 # the proper values into config.h.in to produce config.h. And first:
10582 # Protect against being on the right side of a sed subst in config.status.
10583 # Protect against being in an unquoted here document in config.status.
10584 rm -f conftest.vals
10585 cat > conftest.hdr <<\EOF
10588 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10592 sed -n -f conftest.hdr confdefs.h > conftest.vals
10595 # This sed command replaces #undef with comments. This is necessary, for
10596 # example, in the case of _POSIX_SOURCE, which is predefined and required
10597 # on some systems where configure will not decide to define it.
10598 cat >> conftest.vals <<\EOF
10599 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10602 # Break up conftest.vals because some shells have a limit on
10603 # the size of here documents, and old seds have small limits too.
10605 rm -f conftest.tail
10608 ac_lines=`grep -c . conftest.vals`
10609 # grep -c gives empty output for an empty file on some AIX systems.
10610 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10611 # Write a limited-size here document to conftest.frag.
10612 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10613 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10615 sed -f conftest.frag conftest.in > conftest.out
10617 mv conftest.out conftest.in
10618 ' >> $CONFIG_STATUS
10619 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10620 rm -f conftest.vals
10621 mv conftest.tail conftest.vals
10623 rm -f conftest.vals
10625 cat >> $CONFIG_STATUS <<\EOF
10626 rm -f conftest.frag conftest.h
10627 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10628 cat conftest.in >> conftest.h
10630 if cmp -s $ac_file conftest.h 2>/dev/null; then
10631 echo "$ac_file is unchanged"
10634 # Remove last slash and all that follows it. Not all systems have dirname.
10635 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10636 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10637 # The file is in a subdirectory.
10638 test ! -d "$ac_dir" && mkdir "$ac_dir"
10641 mv conftest.h $ac_file
10646 cat >> $CONFIG_STATUS <<EOF
10649 ac_aux_dir="$ac_aux_dir"
10652 cat >> $CONFIG_STATUS <<\EOF
10653 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
10655 test x"$AMDEP" != x"" ||
10656 for mf in $CONFIG_FILES; do
10658 Makefile) dirpart=.;;
10659 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
10662 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10663 # Extract the definition of DEP_FILES from the Makefile without
10665 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10666 test -z "$DEPDIR" && continue
10667 # When using ansi2knr, U may be empty or an underscore; expand it
10668 U=`sed -n -e '/^U = / s///p' < "$mf"`
10669 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10670 # We invoke sed twice because it is the simplest approach to
10671 # changing $(DEPDIR) to its actual value in the expansion.
10672 for file in `sed -n -e '
10673 /^DEP_FILES = .*\\\\$/ {
10682 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10683 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10684 # Make sure the directory exists.
10685 test -f "$dirpart/$file" && continue
10686 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
10687 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
10688 # echo "creating $dirpart/$file"
10689 echo '# dummy' > "$dirpart/$file"
10693 chmod +x scripts/ntpver scripts/mkver
10696 chmod +x $CONFIG_STATUS
10697 rm -fr confdefs* $ac_clean_files
10698 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10700 #test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])