3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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 --enable-debugging + include debugging code"
17 --enable-dst-minutes=60 + minutes per DST adjustment"
19 --enable-md5 + include support for MD5 keys"
21 --enable-BANCOMM - Datum/Bancomm bc635/VME interface"
23 --enable-GPSVME - TrueTime GPS receiver/VME interface"
25 --enable-SHM - SHM clock attached thru shared memory"
27 --enable-all-clocks + include all suitable non-PARSE clocks:"
29 --enable-ACTS + ACTS modem service"
31 --enable-ARBITER + Arbiter 1088A/B GPS receiver"
33 --enable-ARCRON-MSF + Arcron MSF receiver"
35 --enable-AS2201 + Austron 2200A/2201A GPS receiver"
37 --enable-ATOM + PPS interface"
39 --enable-CHU + CHU modem/decoder"
41 --enable-AUDIO-CHU s - CHU audio/decoder"
43 --enable-DATUM s Datum Programmable Time System"
45 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver"
47 --enable-HPGPS + HP 58503A GPS receiver"
49 --enable-IRIG s Sun IRIG audio decoder"
51 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver"
53 --enable-LOCAL-CLOCK + local clock reference"
55 --enable-MSFEES + EES M201 MSF receiver"
57 --enable-MX4200 s Magnavox MX4200 GPS receiver"
59 --enable-NMEA + NMEA GPS receiver"
61 --enable-ONCORE + Motorola VP/UT Oncore GPS receiver"
63 --enable-PALISADE + Palisade clock"
65 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver"
67 --enable-JUPITER s Rockwell Jupiter GPS receiver"
69 --enable-PTBACTS s PTB modem service"
71 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface"
73 --enable-TRAK + TRAK 8810 GPS receiver"
75 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver"
77 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock"
79 --enable-TRUETIME s Kinemetrics/TrueTime receivers"
81 --enable-WWVB + Spectracom 8170/Netclock/2 WWVB receiver"
83 --enable-ULINK + Ultralink WWVB receiver"
85 --enable-USNO s USNO modem service"
87 --enable-parse-clocks - include all suitable PARSE clocks:"
89 --enable-COMPUTIME s Diem Computime Radio Clock"
91 --enable-DCF7000 s ELV/DCF7000 clock"
93 --enable-HOPF6021 s HOPF 6021 clock"
95 --enable-MEINBERG s Meinberg clocks"
97 --enable-RAWDCF s DCF77 raw time code"
99 --enable-RCC8000 s RCC 8000 clock"
101 --enable-SCHMID s Schmid DCF77 clock"
103 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol"
105 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol"
107 --enable-WHARTON s WHARTON 400A Series clock"
109 --enable-VARITEXT s VARITEXT clock"
111 --enable-kmem s read /dev/kmem for tick and/or tickadj"
113 --enable-accurate-adjtime
114 s the adjtime() call is accurate"
116 --enable-tick=VALUE s force a value for 'tick'"
118 --enable-tickadj=VALUE s force a value for 'tickadj'"
120 --enable-udp-wildcard s use UDP wildcard delivery"
122 --enable-slew-always s always slew the time"
124 --enable-step-slew s step and slew the time"
126 --enable-ntpdate-step s if ntpdate should step the time"
128 --enable-hourly-todr-sync
129 s if we should sync TODR hourly"
131 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug"
133 # Initialize some variables set by options.
134 # The variables have the same names as the options, with
135 # dashes changed to underlines.
137 cache_file=./config.cache
146 program_transform_name=s,x,x,
154 bindir='${exec_prefix}/bin'
155 sbindir='${exec_prefix}/sbin'
156 libexecdir='${exec_prefix}/libexec'
157 datadir='${prefix}/share'
158 sysconfdir='${prefix}/etc'
159 sharedstatedir='${prefix}/com'
160 localstatedir='${prefix}/var'
161 libdir='${exec_prefix}/lib'
162 includedir='${prefix}/include'
163 oldincludedir='/usr/include'
164 infodir='${prefix}/info'
165 mandir='${prefix}/man'
167 # Initialize some other variables.
170 SHELL=${CONFIG_SHELL-/bin/sh}
171 # Maximum number of lines to put in a shell here document.
178 # If the previous option needs an argument, assign it.
179 if test -n "$ac_prev"; then
180 eval "$ac_prev=\$ac_option"
186 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
190 # Accept the important Cygnus configure options, so we can diagnose typos.
194 -bindir | --bindir | --bindi | --bind | --bin | --bi)
196 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
197 bindir="$ac_optarg" ;;
199 -build | --build | --buil | --bui | --bu)
201 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
202 build="$ac_optarg" ;;
204 -cache-file | --cache-file | --cache-fil | --cache-fi \
205 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
206 ac_prev=cache_file ;;
207 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
208 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
209 cache_file="$ac_optarg" ;;
211 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
213 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
215 datadir="$ac_optarg" ;;
217 -disable-* | --disable-*)
218 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
219 # Reject names that are not valid shell variable names.
220 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
221 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
223 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
224 eval "enable_${ac_feature}=no" ;;
226 -enable-* | --enable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}='$ac_optarg'" ;;
239 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
240 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
241 | --exec | --exe | --ex)
242 ac_prev=exec_prefix ;;
243 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
244 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
245 | --exec=* | --exe=* | --ex=*)
246 exec_prefix="$ac_optarg" ;;
248 -gas | --gas | --ga | --g)
249 # Obsolete; use --with-gas.
252 -help | --help | --hel | --he)
253 # Omit some internal or obsolete options to make the list less imposing.
254 # This message is too long to be a string in the A/UX 3.1 sh.
256 Usage: configure [options] [host]
257 Options: [defaults in brackets after descriptions]
259 --cache-file=FILE cache test results in FILE
260 --help print this message
261 --no-create do not create output files
262 --quiet, --silent do not print \`checking...' messages
263 --version print the version of autoconf that created configure
264 Directory and file names:
265 --prefix=PREFIX install architecture-independent files in PREFIX
267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
269 --bindir=DIR user executables in DIR [EPREFIX/bin]
270 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
271 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
272 --datadir=DIR read-only architecture-independent data in DIR
274 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
275 --sharedstatedir=DIR modifiable architecture-independent data in DIR
277 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
278 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
279 --includedir=DIR C header files in DIR [PREFIX/include]
280 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
281 --infodir=DIR info documentation in DIR [PREFIX/info]
282 --mandir=DIR man documentation in DIR [PREFIX/man]
283 --srcdir=DIR find the sources in DIR [configure dir or ..]
284 --program-prefix=PREFIX prepend PREFIX to installed program names
285 --program-suffix=SUFFIX append SUFFIX to installed program names
286 --program-transform-name=PROGRAM
287 run sed PROGRAM on installed program names
291 --build=BUILD configure for building on BUILD [BUILD=HOST]
292 --host=HOST configure for HOST [guessed]
293 --target=TARGET configure for TARGET [TARGET=HOST]
294 Features and packages:
295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
297 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
298 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
299 --x-includes=DIR X include files are in DIR
300 --x-libraries=DIR X library files are in DIR
302 if test -n "$ac_help"; then
303 echo "--enable and --with options recognized:$ac_help"
307 -host | --host | --hos | --ho)
309 -host=* | --host=* | --hos=* | --ho=*)
312 -includedir | --includedir | --includedi | --included | --include \
313 | --includ | --inclu | --incl | --inc)
314 ac_prev=includedir ;;
315 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
316 | --includ=* | --inclu=* | --incl=* | --inc=*)
317 includedir="$ac_optarg" ;;
319 -infodir | --infodir | --infodi | --infod | --info | --inf)
321 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
322 infodir="$ac_optarg" ;;
324 -libdir | --libdir | --libdi | --libd)
326 -libdir=* | --libdir=* | --libdi=* | --libd=*)
327 libdir="$ac_optarg" ;;
329 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
330 | --libexe | --libex | --libe)
331 ac_prev=libexecdir ;;
332 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
333 | --libexe=* | --libex=* | --libe=*)
334 libexecdir="$ac_optarg" ;;
336 -localstatedir | --localstatedir | --localstatedi | --localstated \
337 | --localstate | --localstat | --localsta | --localst \
338 | --locals | --local | --loca | --loc | --lo)
339 ac_prev=localstatedir ;;
340 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
341 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
342 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
343 localstatedir="$ac_optarg" ;;
345 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
347 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
348 mandir="$ac_optarg" ;;
351 # Obsolete; use --without-fp.
354 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
358 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
359 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
362 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
363 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
364 | --oldin | --oldi | --old | --ol | --o)
365 ac_prev=oldincludedir ;;
366 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
367 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
368 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
369 oldincludedir="$ac_optarg" ;;
371 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
373 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
374 prefix="$ac_optarg" ;;
376 -program-prefix | --program-prefix | --program-prefi | --program-pref \
377 | --program-pre | --program-pr | --program-p)
378 ac_prev=program_prefix ;;
379 -program-prefix=* | --program-prefix=* | --program-prefi=* \
380 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
381 program_prefix="$ac_optarg" ;;
383 -program-suffix | --program-suffix | --program-suffi | --program-suff \
384 | --program-suf | --program-su | --program-s)
385 ac_prev=program_suffix ;;
386 -program-suffix=* | --program-suffix=* | --program-suffi=* \
387 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
388 program_suffix="$ac_optarg" ;;
390 -program-transform-name | --program-transform-name \
391 | --program-transform-nam | --program-transform-na \
392 | --program-transform-n | --program-transform- \
393 | --program-transform | --program-transfor \
394 | --program-transfo | --program-transf \
395 | --program-trans | --program-tran \
396 | --progr-tra | --program-tr | --program-t)
397 ac_prev=program_transform_name ;;
398 -program-transform-name=* | --program-transform-name=* \
399 | --program-transform-nam=* | --program-transform-na=* \
400 | --program-transform-n=* | --program-transform-=* \
401 | --program-transform=* | --program-transfor=* \
402 | --program-transfo=* | --program-transf=* \
403 | --program-trans=* | --program-tran=* \
404 | --progr-tra=* | --program-tr=* | --program-t=*)
405 program_transform_name="$ac_optarg" ;;
407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
408 | -silent | --silent | --silen | --sile | --sil)
411 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
413 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
415 sbindir="$ac_optarg" ;;
417 -sharedstatedir | --sharedstatedir | --sharedstatedi \
418 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
419 | --sharedst | --shareds | --shared | --share | --shar \
421 ac_prev=sharedstatedir ;;
422 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
423 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
424 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
426 sharedstatedir="$ac_optarg" ;;
428 -site | --site | --sit)
430 -site=* | --site=* | --sit=*)
433 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
435 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
436 srcdir="$ac_optarg" ;;
438 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
439 | --syscon | --sysco | --sysc | --sys | --sy)
440 ac_prev=sysconfdir ;;
441 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
442 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
443 sysconfdir="$ac_optarg" ;;
445 -target | --target | --targe | --targ | --tar | --ta | --t)
447 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
448 target="$ac_optarg" ;;
450 -v | -verbose | --verbose | --verbos | --verbo | --verb)
453 -version | --version | --versio | --versi | --vers)
454 echo "configure generated by autoconf version 2.14.1"
458 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
459 # Reject names that are not valid shell variable names.
460 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
461 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
463 ac_package=`echo $ac_package| sed 's/-/_/g'`
468 eval "with_${ac_package}='$ac_optarg'" ;;
470 -without-* | --without-*)
471 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 eval "with_${ac_package}=no" ;;
480 # Obsolete; use --with-x.
483 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
484 | --x-incl | --x-inc | --x-in | --x-i)
485 ac_prev=x_includes ;;
486 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
487 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
488 x_includes="$ac_optarg" ;;
490 -x-libraries | --x-libraries | --x-librarie | --x-librari \
491 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
492 ac_prev=x_libraries ;;
493 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
494 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
495 x_libraries="$ac_optarg" ;;
497 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
501 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
502 echo "configure: warning: $ac_option: invalid host type" 1>&2
504 if test "x$nonopt" != xNONE; then
505 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
513 if test -n "$ac_prev"; then
514 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
517 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
519 # File descriptor usage:
522 # 2 errors and warnings
523 # 3 some systems may open it to /dev/tty
524 # 4 used on the Kubota Titan
525 # 6 checking for... messages and results
526 # 5 compiler messages saved in config.log
527 if test "$silent" = yes; then
535 This file contains any messages produced by compilers while
536 running configure, to aid debugging if configure makes a mistake.
539 # Strip out --no-create and --no-recursion so they do not pile up.
540 # Also quote any args containing shell metacharacters.
545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
546 | --no-cr | --no-c) ;;
547 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
548 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
549 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
550 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
551 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
556 # Only set these to C if already set. These must not be set unconditionally
557 # because not all systems understand e.g. LANG=C (notably SCO).
558 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
559 # Non-C LC_CTYPE values break the ctype check.
560 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
561 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
562 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
563 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
565 # confdefs.h avoids OS command line length limits that DEFS can exceed.
566 rm -rf conftest* confdefs.h
567 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
570 # A filename unique to this package, relative to the directory that
571 # configure is in, which we can look for to find out if srcdir is correct.
572 ac_unique_file=ntpd/ntp_refclock.c
574 # Find the source files, if location was not specified.
575 if test -z "$srcdir"; then
576 ac_srcdir_defaulted=yes
577 # Try the directory containing this script, then its parent.
579 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
580 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
582 if test ! -r $srcdir/$ac_unique_file; then
586 ac_srcdir_defaulted=no
588 if test ! -r $srcdir/$ac_unique_file; then
589 if test "$ac_srcdir_defaulted" = yes; then
590 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
592 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
595 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
597 # Prefer explicitly selected file to automatically selected ones.
598 if test -z "$CONFIG_SITE"; then
599 if test "x$prefix" != xNONE; then
600 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
602 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
605 for ac_site_file in $CONFIG_SITE; do
606 if test -r "$ac_site_file"; then
607 echo "loading site script $ac_site_file"
612 if test -r "$cache_file"; then
613 echo "loading cache $cache_file"
614 test -f "$cache_file" && . $cache_file
616 echo "creating cache $cache_file"
621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
622 ac_cpp='$CPP $CPPFLAGS'
623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
625 cross_compiling=$ac_cv_prog_cc_cross
629 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
630 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
631 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
638 ac_n= ac_c='\c' ac_t=
643 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
644 if test -f $ac_dir/install-sh; then
646 ac_install_sh="$ac_aux_dir/install-sh -c"
648 elif test -f $ac_dir/install.sh; then
650 ac_install_sh="$ac_aux_dir/install.sh -c"
654 if test -z "$ac_aux_dir"; then
655 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
657 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
658 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
659 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
662 echo $ac_n "checking host system type""... $ac_c" 1>&6
663 echo "configure:664: checking host system type" >&5
664 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
666 # Make sure we can run config.sub.
667 if $ac_config_sub sun4 >/dev/null 2>&1; then :
668 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
671 ac_cv_host_alias=$host
672 case "$ac_cv_host_alias" in
676 if ac_cv_host_alias=`$ac_config_guess`; then :
677 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
679 *) ac_cv_host_alias=$nonopt ;;
683 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
684 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
685 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
686 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo $ac_n "(cached) $ac_c" 1>&6
691 echo "$ac_t""$ac_cv_host" 1>&6
694 host_alias=$ac_cv_host_alias
695 host_cpu=$ac_cv_host_cpu
696 host_vendor=$ac_cv_host_vendor
697 host_os=$ac_cv_host_os
703 echo $ac_n "checking target system type""... $ac_c" 1>&6
704 echo "configure:705: checking target system type" >&5
705 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
707 # Make sure we can run config.sub.
708 if $ac_config_sub sun4 >/dev/null 2>&1; then :
709 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
712 ac_cv_target_alias=$target
713 case "$ac_cv_target_alias" in
717 ac_cv_target_alias=$host_alias ;;
719 *) ac_cv_target_alias=$nonopt ;;
723 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
724 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo $ac_n "(cached) $ac_c" 1>&6
731 echo "$ac_t""$ac_cv_target" 1>&6
734 target_alias=$ac_cv_target_alias
735 target_cpu=$ac_cv_target_cpu
736 target_vendor=$ac_cv_target_vendor
737 target_os=$ac_cv_target_os
743 echo $ac_n "checking build system type""... $ac_c" 1>&6
744 echo "configure:745: checking build system type" >&5
745 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
747 # Make sure we can run config.sub.
748 if $ac_config_sub sun4 >/dev/null 2>&1; then :
749 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
752 ac_cv_build_alias=$build
753 case "$ac_cv_build_alias" in
757 ac_cv_build_alias=$host_alias ;;
759 *) ac_cv_build_alias=$nonopt ;;
763 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
764 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
768 echo $ac_n "(cached) $ac_c" 1>&6
771 echo "$ac_t""$ac_cv_build" 1>&6
774 build_alias=$ac_cv_build_alias
775 build_cpu=$ac_cv_build_cpu
776 build_vendor=$ac_cv_build_vendor
777 build_os=$ac_cv_build_os
783 # Do some error checking and defaulting for the host and target type.
785 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
788 # 1. You are not allowed to specify --host, --target, and nonopt at the
790 # 2. Host defaults to nonopt.
791 # 3. If nonopt is not specified, then host defaults to the current host,
792 # as determined by config.guess.
793 # 4. Target and build default to nonopt.
794 # 5. If nonopt is not specified, then target and build default to host.
796 # The aliases save the names the user supplied, while $host etc.
797 # will get canonicalized.
798 case $host---$target---$nonopt in
799 NONE---*---* | *---NONE---* | *---*---NONE) ;;
800 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
803 test "$host_alias" != "$target_alias" &&
804 test "$program_prefix$program_suffix$program_transform_name" = \
806 program_prefix=${target_alias}-
808 cat >> confdefs.h <<EOF
809 #define STR_SYSTEM "$target"
815 if test "$program_transform_name" = s,x,x,; then
816 program_transform_name=
818 # Double any \ or $. echo might interpret backslashes.
819 cat <<\EOF_SED > conftestsed
820 s,\\,\\\\,g; s,\$,$$,g
822 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
825 test "$program_prefix" != NONE &&
826 program_transform_name="s,^,${program_prefix},;$program_transform_name"
827 # Use a double $ so make ignores it.
828 test "$program_suffix" != NONE &&
829 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
831 # sed with no file args requires a program.
832 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
834 # Find a good install program. We prefer a C program (faster),
835 # so one script is as good as another. But avoid the broken or
836 # incompatible versions:
837 # SysV /etc/install, /usr/sbin/install
838 # SunOS /usr/etc/install
841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
844 # ./install, which can be erroneously created by make from ./install.sh.
845 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
846 echo "configure:847: checking for a BSD compatible install" >&5
847 if test -z "$INSTALL"; then
848 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
852 for ac_dir in $PATH; do
853 # Account for people who put trailing slashes in PATH elements.
855 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
857 # OSF1 and SCO ODT 3.0 have their own names for install.
858 # Don't use installbsd from OSF since it installs stuff as root
860 for ac_prog in ginstall scoinst install; do
861 if test -f $ac_dir/$ac_prog; then
862 if test $ac_prog = install &&
863 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
864 # AIX install. It has an incompatible calling convention.
866 elif test $ac_prog = install &&
867 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
868 # program-specific install script used by HP pwplus--don't use.
871 ac_cv_path_install="$ac_dir/$ac_prog -c"
882 if test "${ac_cv_path_install+set}" = set; then
883 INSTALL="$ac_cv_path_install"
885 # As a last resort, use the slow shell script. We don't cache a
886 # path for INSTALL within a source directory, because that will
887 # break other packages using the cache if that directory is
888 # removed, or if the path is relative.
889 INSTALL="$ac_install_sh"
892 echo "$ac_t""$INSTALL" 1>&6
894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
895 # It thinks the first close brace ends the variable substitution.
896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
902 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
903 echo "configure:904: checking whether build environment is sane" >&5
906 echo timestamp > conftestfile
907 # Do `set' in a subshell so we don't clobber the current shell's
908 # arguments. Must try -L first in case configure is actually a
909 # symlink; some systems play weird games with the mod time of symlinks
910 # (eg FreeBSD returns the mod time of the symlink's containing
913 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
914 if test "$*" = "X"; then
916 set X `ls -t $srcdir/configure conftestfile`
918 if test "$*" != "X $srcdir/configure conftestfile" \
919 && test "$*" != "X conftestfile $srcdir/configure"; then
921 # If neither matched, then we have a broken ls. This can happen
922 # if, for instance, CONFIG_SHELL is bash and it inherits a
923 # broken ls alias from the environment. This has actually
924 # happened. Such a system could not be considered "sane".
925 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
926 alias in your environment" 1>&2; exit 1; }
929 test "$2" = conftestfile
935 { echo "configure: error: newly created file is older than distributed files!
936 Check your system clock" 1>&2; exit 1; }
939 echo "$ac_t""yes" 1>&6
940 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
941 echo "configure:942: checking whether ${MAKE-make} sets \${MAKE}" >&5
942 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
943 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
946 cat > conftestmake <<\EOF
948 @echo 'ac_maketemp="${MAKE}"'
950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
951 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
952 if test -n "$ac_maketemp"; then
953 eval ac_cv_prog_make_${ac_make}_set=yes
955 eval ac_cv_prog_make_${ac_make}_set=no
959 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
960 echo "$ac_t""yes" 1>&6
963 echo "$ac_t""no" 1>&6
964 SET_MAKE="MAKE=${MAKE-make}"
973 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
974 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
976 cat >> confdefs.h <<EOF
977 #define PACKAGE "$PACKAGE"
980 cat >> confdefs.h <<EOF
981 #define VERSION "$VERSION"
986 missing_dir=`cd $ac_aux_dir && pwd`
987 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
988 echo "configure:989: checking for working aclocal" >&5
989 # Run test in a subshell; some versions of sh will print an error if
990 # an executable is not found, even if stderr is redirected.
991 # Redirect stdin to placate older versions of autoconf. Sigh.
992 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
994 echo "$ac_t""found" 1>&6
996 ACLOCAL="$missing_dir/missing aclocal"
997 echo "$ac_t""missing" 1>&6
1000 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1001 echo "configure:1002: checking for working autoconf" >&5
1002 # Run test in a subshell; some versions of sh will print an error if
1003 # an executable is not found, even if stderr is redirected.
1004 # Redirect stdin to placate older versions of autoconf. Sigh.
1005 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1007 echo "$ac_t""found" 1>&6
1009 AUTOCONF="$missing_dir/missing autoconf"
1010 echo "$ac_t""missing" 1>&6
1013 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1014 echo "configure:1015: checking for working automake" >&5
1015 # Run test in a subshell; some versions of sh will print an error if
1016 # an executable is not found, even if stderr is redirected.
1017 # Redirect stdin to placate older versions of autoconf. Sigh.
1018 if (automake --version) < /dev/null > /dev/null 2>&1; then
1020 echo "$ac_t""found" 1>&6
1022 AUTOMAKE="$missing_dir/missing automake"
1023 echo "$ac_t""missing" 1>&6
1026 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1027 echo "configure:1028: checking for working autoheader" >&5
1028 # Run test in a subshell; some versions of sh will print an error if
1029 # an executable is not found, even if stderr is redirected.
1030 # Redirect stdin to placate older versions of autoconf. Sigh.
1031 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1032 AUTOHEADER=autoheader
1033 echo "$ac_t""found" 1>&6
1035 AUTOHEADER="$missing_dir/missing autoheader"
1036 echo "$ac_t""missing" 1>&6
1039 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1040 echo "configure:1041: checking for working makeinfo" >&5
1041 # Run test in a subshell; some versions of sh will print an error if
1042 # an executable is not found, even if stderr is redirected.
1043 # Redirect stdin to placate older versions of autoconf. Sigh.
1044 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1046 echo "$ac_t""found" 1>&6
1048 MAKEINFO="$missing_dir/missing makeinfo"
1049 echo "$ac_t""missing" 1>&6
1052 for ac_prog in gnutar gtar tar
1054 # Extract the first word of "$ac_prog", so it can be a program name with args.
1055 set dummy $ac_prog; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 if test -n "$AMTAR"; then
1062 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1066 for ac_dir in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir=.
1068 if test -f $ac_dir/$ac_word; then
1069 ac_cv_prog_AMTAR="$ac_prog"
1076 AMTAR="$ac_cv_prog_AMTAR"
1077 if test -n "$AMTAR"; then
1078 echo "$ac_t""$AMTAR" 1>&6
1080 echo "$ac_t""no" 1>&6
1083 test -n "$AMTAR" && break
1087 if test -n "$AMTAR"; then
1088 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1096 ac_cv_var_oncore_ok=no
1100 # Extract the first word of "gcc", so it can be a program name with args.
1101 set dummy gcc; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$CC"; then
1108 ac_cv_prog_CC="$CC" # Let the user override the test.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1123 if test -n "$CC"; then
1124 echo "$ac_t""$CC" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 if test -z "$CC"; then
1130 # Extract the first word of "cc", so it can be a program name with args.
1131 set dummy cc; ac_word=$2
1132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1133 echo "configure:1134: checking for $ac_word" >&5
1134 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 if test -n "$CC"; then
1138 ac_cv_prog_CC="$CC" # Let the user override the test.
1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1143 for ac_dir in $ac_dummy; do
1144 test -z "$ac_dir" && ac_dir=.
1145 if test -f $ac_dir/$ac_word; then
1146 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1147 ac_prog_rejected=yes
1155 if test $ac_prog_rejected = yes; then
1156 # We found a bogon in the path, so make sure we never use it.
1157 set dummy $ac_cv_prog_CC
1159 if test $# -gt 0; then
1160 # We chose a different compiler from the bogus one.
1161 # However, it has the same basename, so the bogon will be chosen
1162 # first if we set CC to just the basename; use the full file name.
1164 set dummy "$ac_dir/$ac_word" "$@"
1172 if test -n "$CC"; then
1173 echo "$ac_t""$CC" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 if test -z "$CC"; then
1179 case "`uname -s`" in
1180 *win32* | *WIN32* | *CYGWIN*)
1181 # Extract the first word of "cl", so it can be a program name with args.
1182 set dummy cl; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 if test -n "$CC"; then
1189 ac_cv_prog_CC="$CC" # Let the user override the test.
1191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1193 for ac_dir in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir=.
1195 if test -f $ac_dir/$ac_word; then
1204 if test -n "$CC"; then
1205 echo "$ac_t""$CC" 1>&6
1207 echo "$ac_t""no" 1>&6
1212 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1215 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
1219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1220 ac_cpp='$CPP $CPPFLAGS'
1221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1223 cross_compiling=$ac_cv_prog_cc_cross
1225 cat > conftest.$ac_ext << EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1233 ac_cv_prog_cc_works=yes
1234 # If we can't run a trivial program, we are probably using a cross compiler.
1235 if (./conftest; exit) 2>/dev/null; then
1236 ac_cv_prog_cc_cross=no
1238 ac_cv_prog_cc_cross=yes
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1243 ac_cv_prog_cc_works=no
1247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1248 ac_cpp='$CPP $CPPFLAGS'
1249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1251 cross_compiling=$ac_cv_prog_cc_cross
1253 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1254 if test $ac_cv_prog_cc_works = no; then
1255 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1257 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
1259 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1260 cross_compiling=$ac_cv_prog_cc_cross
1262 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether we are using GNU C" >&5
1264 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 cat > conftest.c <<EOF
1272 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1279 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1281 if test $ac_cv_prog_gcc = yes; then
1287 ac_test_CFLAGS="${CFLAGS+set}"
1288 ac_save_CFLAGS="$CFLAGS"
1290 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1291 echo "configure:1292: checking whether ${CC-cc} accepts -g" >&5
1292 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 echo 'void f(){}' > conftest.c
1296 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1305 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1306 if test "$ac_test_CFLAGS" = set; then
1307 CFLAGS="$ac_save_CFLAGS"
1308 elif test $ac_cv_prog_cc_g = yes; then
1309 if test "$GCC" = yes; then
1315 if test "$GCC" = yes; then
1322 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1323 echo "configure:1324: checking how to run the C preprocessor" >&5
1324 # On Suns, sometimes $CPP names a directory.
1325 if test -n "$CPP" && test -d "$CPP"; then
1328 if test -z "$CPP"; then
1329 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 # This must be in double quotes, not single quotes, because CPP may get
1333 # substituted into the Makefile and "${CC-cc}" will confuse make.
1335 # On the NeXT, cc -E runs the code through the compiler's parser,
1336 # not just through cpp.
1337 cat > conftest.$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1344 { (eval echo configure:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1346 if test -z "$ac_err"; then
1350 echo "configure: failed program was:" >&5
1351 cat conftest.$ac_ext >&5
1353 CPP="${CC-cc} -E -traditional-cpp"
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1361 { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1363 if test -z "$ac_err"; then
1367 echo "configure: failed program was:" >&5
1368 cat conftest.$ac_ext >&5
1370 CPP="${CC-cc} -nologo -E"
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1378 { (eval echo configure:1379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1380 if test -z "$ac_err"; then
1384 echo "configure: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1394 ac_cv_prog_CPP="$CPP"
1396 CPP="$ac_cv_prog_CPP"
1398 ac_cv_prog_CPP="$CPP"
1400 echo "$ac_t""$CPP" 1>&6
1405 CFLAGS="$CFLAGS -DSYS_CYGWIN32"
1410 CFLAGS="$CFLAGS -Wc,+Abi-socket"
1418 *) case "$target" in
1420 # Quick and dirty sanity check
1421 case "$VX_KERNEL" in
1422 '') { echo "configure: error: Please follow the directions in html/vxworks.html!" 1>&2; exit 1; }
1425 CFLAGS="$CFLAGS -DSYS_VXWORKS"
1431 for ac_prog in mawk gawk nawk awk
1433 # Extract the first word of "$ac_prog", so it can be a program name with args.
1434 set dummy $ac_prog; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5
1437 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 if test -n "$AWK"; then
1441 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1445 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f $ac_dir/$ac_word; then
1448 ac_cv_prog_AWK="$ac_prog"
1455 AWK="$ac_cv_prog_AWK"
1456 if test -n "$AWK"; then
1457 echo "$ac_t""$AWK" 1>&6
1459 echo "$ac_t""no" 1>&6
1462 test -n "$AWK" && break
1465 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1466 echo "configure:1467: checking whether ${MAKE-make} sets \${MAKE}" >&5
1467 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1468 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftestmake <<\EOF
1473 @echo 'ac_maketemp="${MAKE}"'
1475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1476 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1477 if test -n "$ac_maketemp"; then
1478 eval ac_cv_prog_make_${ac_make}_set=yes
1480 eval ac_cv_prog_make_${ac_make}_set=no
1484 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1488 echo "$ac_t""no" 1>&6
1489 SET_MAKE="MAKE=${MAKE-make}"
1497 CFLAGS="$CFLAGS -Wall"
1498 # CFLAGS="$CFLAGS -Wtraditional"
1499 CFLAGS="$CFLAGS -Wshadow"
1500 # CFLAGS="$CFLAGS -Wwrite-strings"
1501 CFLAGS="$CFLAGS -Wconversion"
1502 CFLAGS="$CFLAGS -Wpointer-arith"
1503 CFLAGS="$CFLAGS -Wcast-qual"
1504 # CFLAGS="$CFLAGS -Wcast-align"
1505 CFLAGS="$CFLAGS -Wstrict-prototypes"
1507 echo $ac_n "checking whether ${CC-cc} -pipe works""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether ${CC-cc} -pipe works" >&5
1509 if eval "test \"\${ac_cv_prog_cc_pipe+set}\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 echo 'void f(){}' > conftest.c
1513 if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`" -a -s conftest.o; then
1514 ac_cv_prog_cc_pipe=yes
1516 ac_cv_prog_cc_pipe=no
1522 echo "$ac_t""$ac_cv_prog_cc_pipe" 1>&6
1524 case "$ac_cv_prog_cc_pipe" in
1526 CFLAGS="$CFLAGS -pipe"
1532 ac_busted_vpath_in_make=no
1535 *-*-irix6.1*) # 64 bit only
1537 *-*-irix6*) # 6.2 (and later?)
1538 ac_busted_vpath_in_make=yes
1539 # don't pass -n32 to gcc, it cannot handle and doesn't need it
1540 if test "$GCC" != yes; then
1544 *) case "$iCFLAGS" in
1545 '') CFLAGS="-O2 -g3 -n32" ;;
1546 *) CFLAGS="$CFLAGS -n32" ;;
1553 *) LDFLAGS="$LDFLAGS -n32" ;;
1558 CFLAGS="$CFLAGS -posix" ;;
1560 ac_busted_vpath_in_make=yes
1564 case "$ac_busted_vpath_in_make$srcdir" in
1567 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
1569 { echo "configure: error: building outside of the main directory requires GNU make" 1>&2; exit 1; }
1577 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1578 echo "configure:1579: checking whether ln -s works" >&5
1579 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1583 if ln -s X conftestdata 2>/dev/null
1586 ac_cv_prog_LN_S="ln -s"
1591 LN_S="$ac_cv_prog_LN_S"
1592 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1593 echo "$ac_t""yes" 1>&6
1595 echo "$ac_t""no" 1>&6
1598 if test $ac_cv_prog_gcc = yes; then
1599 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1600 echo "configure:1601: checking whether ${CC-cc} needs -traditional" >&5
1601 if eval "test \"\${ac_cv_prog_gcc_traditional+set}\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 ac_pattern="Autoconf.*'x'"
1605 cat > conftest.$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1612 egrep "$ac_pattern" >/dev/null 2>&1; then
1614 ac_cv_prog_gcc_traditional=yes
1617 ac_cv_prog_gcc_traditional=no
1622 if test $ac_cv_prog_gcc_traditional = no; then
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1630 egrep "$ac_pattern" >/dev/null 2>&1; then
1632 ac_cv_prog_gcc_traditional=yes
1639 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1640 if test $ac_cv_prog_gcc_traditional = yes; then
1641 CC="$CC -traditional"
1645 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1646 echo "configure:1647: checking for AIX" >&5
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1656 egrep "yes" >/dev/null 2>&1; then
1658 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1659 #define _ALL_SOURCE 1
1664 echo "$ac_t""no" 1>&6
1669 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1670 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1671 echo "configure:1672: checking for minix/config.h" >&5
1672 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 cat > conftest.$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1678 #include <minix/config.h>
1680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681 { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1683 if test -z "$ac_err"; then
1685 eval "ac_cv_header_$ac_safe=yes"
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 eval "ac_cv_header_$ac_safe=no"
1695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1696 echo "$ac_t""yes" 1>&6
1699 echo "$ac_t""no" 1>&6
1703 if test "$MINIX" = yes; then
1704 cat >> confdefs.h <<\EOF
1705 #define _POSIX_SOURCE 1
1708 cat >> confdefs.h <<\EOF
1709 #define _POSIX_1_SOURCE 2
1712 cat >> confdefs.h <<\EOF
1718 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1719 echo "configure:1720: checking for POSIXized ISC" >&5
1720 if test -d /etc/conf/kconfig.d &&
1721 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1723 echo "$ac_t""yes" 1>&6
1724 ISC=yes # If later tests want to check for ISC.
1725 cat >> confdefs.h <<\EOF
1726 #define _POSIX_SOURCE 1
1729 if test "$GCC" = yes; then
1735 echo "$ac_t""no" 1>&6
1739 # Extract the first word of "ranlib", so it can be a program name with args.
1740 set dummy ranlib; ac_word=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 if test -n "$RANLIB"; then
1747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1751 for ac_dir in $ac_dummy; do
1752 test -z "$ac_dir" && ac_dir=.
1753 if test -f $ac_dir/$ac_word; then
1754 ac_cv_prog_RANLIB="ranlib"
1759 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1762 RANLIB="$ac_cv_prog_RANLIB"
1763 if test -n "$RANLIB"; then
1764 echo "$ac_t""$RANLIB" 1>&6
1766 echo "$ac_t""no" 1>&6
1769 # Extract the first word of "sh", so it can be a program name with args.
1770 set dummy sh; ac_word=$2
1771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_word" >&5
1773 if eval "test \"\${ac_cv_path_PATH_SH+set}\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1778 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
1781 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a dos path.
1784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1786 for ac_dir in $ac_dummy; do
1787 test -z "$ac_dir" && ac_dir=.
1788 if test -f $ac_dir/$ac_word; then
1789 ac_cv_path_PATH_SH="$ac_dir/$ac_word"
1797 PATH_SH="$ac_cv_path_PATH_SH"
1798 if test -n "$PATH_SH"; then
1799 echo "$ac_t""$PATH_SH" 1>&6
1801 echo "$ac_t""no" 1>&6
1807 ac_link="$ac_link $VX_KERNEL"
1811 # Find a good install program. We prefer a C program (faster),
1812 # so one script is as good as another. But avoid the broken or
1813 # incompatible versions:
1814 # SysV /etc/install, /usr/sbin/install
1815 # SunOS /usr/etc/install
1816 # IRIX /sbin/install
1818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1821 # ./install, which can be erroneously created by make from ./install.sh.
1822 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1823 echo "configure:1824: checking for a BSD compatible install" >&5
1824 if test -z "$INSTALL"; then
1825 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1829 for ac_dir in $PATH; do
1830 # Account for people who put trailing slashes in PATH elements.
1832 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1834 # OSF1 and SCO ODT 3.0 have their own names for install.
1835 # Don't use installbsd from OSF since it installs stuff as root
1837 for ac_prog in ginstall scoinst install; do
1838 if test -f $ac_dir/$ac_prog; then
1839 if test $ac_prog = install &&
1840 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1841 # AIX install. It has an incompatible calling convention.
1843 elif test $ac_prog = install &&
1844 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1845 # program-specific install script used by HP pwplus--don't use.
1848 ac_cv_path_install="$ac_dir/$ac_prog -c"
1859 if test "${ac_cv_path_install+set}" = set; then
1860 INSTALL="$ac_cv_path_install"
1862 # As a last resort, use the slow shell script. We don't cache a
1863 # path for INSTALL within a source directory, because that will
1864 # break other packages using the cache if that directory is
1865 # removed, or if the path is relative.
1866 INSTALL="$ac_install_sh"
1869 echo "$ac_t""$INSTALL" 1>&6
1871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1872 # It thinks the first close brace ends the variable substitution.
1873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1882 echo $ac_n "checking for main in -ladvapi32""... $ac_c" 1>&6
1883 echo "configure:1884: checking for main in -ladvapi32" >&5
1884 ac_lib_var=`echo advapi32'_'main | sed 'y%./+-%__p_%'`
1885 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 ac_save_LIBS="$LIBS"
1889 LIBS="-ladvapi32 $LIBS"
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1898 if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1900 eval "ac_cv_lib_$ac_lib_var=yes"
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 eval "ac_cv_lib_$ac_lib_var=no"
1908 LIBS="$ac_save_LIBS"
1911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1912 echo "$ac_t""yes" 1>&6
1913 ac_tr_lib=HAVE_LIB`echo advapi32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1915 cat >> confdefs.h <<EOF
1916 #define $ac_tr_lib 1
1919 LIBS="-ladvapi32 $LIBS"
1922 echo "$ac_t""no" 1>&6
1927 echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6
1928 echo "configure:1929: checking for nlist in -lelf" >&5
1929 ac_lib_var=`echo elf'_'nlist | sed 'y%./+-%__p_%'`
1930 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 ac_save_LIBS="$LIBS"
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 /* Override any gcc2 internal prototype to avoid an error. */
1939 /* We use char because int might match the return type of a gcc2
1940 builtin and then its argument prototype would still apply. */
1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1949 eval "ac_cv_lib_$ac_lib_var=yes"
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 eval "ac_cv_lib_$ac_lib_var=no"
1957 LIBS="$ac_save_LIBS"
1960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1961 echo "$ac_t""yes" 1>&6
1962 ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1964 cat >> confdefs.h <<EOF
1965 #define $ac_tr_lib 1
1971 echo "$ac_t""no" 1>&6
1974 echo $ac_n "checking for main in -lkvm""... $ac_c" 1>&6
1975 echo "configure:1976: checking for main in -lkvm" >&5
1976 ac_lib_var=`echo kvm'_'main | sed 'y%./+-%__p_%'`
1977 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 ac_save_LIBS="$LIBS"
1982 cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1990 if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1992 eval "ac_cv_lib_$ac_lib_var=yes"
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1997 eval "ac_cv_lib_$ac_lib_var=no"
2000 LIBS="$ac_save_LIBS"
2003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2004 echo "$ac_t""yes" 1>&6
2005 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2006 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2007 cat >> confdefs.h <<EOF
2008 #define $ac_tr_lib 1
2014 echo "$ac_t""no" 1>&6
2016 echo $ac_n "checking for nlist in -lld""... $ac_c" 1>&6
2017 echo "configure:2018: checking for nlist in -lld" >&5
2018 ac_lib_var=`echo ld'_'nlist | sed 'y%./+-%__p_%'`
2019 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 ac_save_LIBS="$LIBS"
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027 /* Override any gcc2 internal prototype to avoid an error. */
2028 /* We use char because int might match the return type of a gcc2
2029 builtin and then its argument prototype would still apply. */
2036 if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2038 eval "ac_cv_lib_$ac_lib_var=yes"
2040 echo "configure: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2043 eval "ac_cv_lib_$ac_lib_var=no"
2046 LIBS="$ac_save_LIBS"
2049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2051 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2052 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2053 cat >> confdefs.h <<EOF
2054 #define $ac_tr_lib 1
2060 echo "$ac_t""no" 1>&6
2063 echo $ac_n "checking for nlist in -lmld""... $ac_c" 1>&6
2064 echo "configure:2065: checking for nlist in -lmld" >&5
2065 ac_lib_var=`echo mld'_'nlist | sed 'y%./+-%__p_%'`
2066 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 ac_save_LIBS="$LIBS"
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 /* Override any gcc2 internal prototype to avoid an error. */
2075 /* We use char because int might match the return type of a gcc2
2076 builtin and then its argument prototype would still apply. */
2083 if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2085 eval "ac_cv_lib_$ac_lib_var=yes"
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2090 eval "ac_cv_lib_$ac_lib_var=no"
2093 LIBS="$ac_save_LIBS"
2096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 ac_tr_lib=HAVE_LIB`echo mld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2100 cat >> confdefs.h <<EOF
2101 #define $ac_tr_lib 1
2107 echo "$ac_t""no" 1>&6
2110 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
2111 echo "configure:2112: checking for gethostent" >&5
2112 if eval "test \"\${ac_cv_func_gethostent+set}\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char gethostent(); below. */
2121 /* Override any gcc2 internal prototype to avoid an error. */
2122 /* We use char because int might match the return type of a gcc2
2123 builtin and then its argument prototype would still apply. */
2129 /* The GNU C library defines this for functions which it implements
2130 to always fail with ENOSYS. Some functions are actually named
2131 something starting with __ and the normal name is an alias. */
2132 #if defined (__stub_gethostent) || defined (__stub___gethostent)
2140 if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142 eval "ac_cv_func_gethostent=yes"
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 eval "ac_cv_func_gethostent=no"
2152 if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
2153 echo "$ac_t""yes" 1>&6
2156 echo "$ac_t""no" 1>&6
2157 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
2158 echo "configure:2159: checking for gethostent in -lnsl" >&5
2159 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
2160 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 ac_save_LIBS="$LIBS"
2164 LIBS="-lnsl -lsocket $LIBS"
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 /* Override any gcc2 internal prototype to avoid an error. */
2169 /* We use char because int might match the return type of a gcc2
2170 builtin and then its argument prototype would still apply. */
2177 if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2179 eval "ac_cv_lib_$ac_lib_var=yes"
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 eval "ac_cv_lib_$ac_lib_var=no"
2187 LIBS="$ac_save_LIBS"
2190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2191 echo "$ac_t""yes" 1>&6
2192 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2194 cat >> confdefs.h <<EOF
2195 #define $ac_tr_lib 1
2201 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking for openlog""... $ac_c" 1>&6
2207 echo "configure:2208: checking for openlog" >&5
2208 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2214 /* System header to define __stub macros and hopefully few prototypes,
2215 which can conflict with char openlog(); below. */
2217 /* Override any gcc2 internal prototype to avoid an error. */
2218 /* We use char because int might match the return type of a gcc2
2219 builtin and then its argument prototype would still apply. */
2225 /* The GNU C library defines this for functions which it implements
2226 to always fail with ENOSYS. Some functions are actually named
2227 something starting with __ and the normal name is an alias. */
2228 #if defined (__stub_openlog) || defined (__stub___openlog)
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2238 eval "ac_cv_func_openlog=yes"
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2243 eval "ac_cv_func_openlog=no"
2248 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2252 echo "$ac_t""no" 1>&6
2253 echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6
2254 echo "configure:2255: checking for openlog in -lgen" >&5
2255 ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'`
2256 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 ac_save_LIBS="$LIBS"
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 /* Override any gcc2 internal prototype to avoid an error. */
2265 /* We use char because int might match the return type of a gcc2
2266 builtin and then its argument prototype would still apply. */
2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2275 eval "ac_cv_lib_$ac_lib_var=yes"
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2280 eval "ac_cv_lib_$ac_lib_var=no"
2283 LIBS="$ac_save_LIBS"
2286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2287 echo "$ac_t""yes" 1>&6
2288 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/^a-zA-Z0-9_/_/g' \
2289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2290 cat >> confdefs.h <<EOF
2291 #define $ac_tr_lib 1
2297 echo "$ac_t""no" 1>&6
2303 echo $ac_n "checking for sched_setscheduler in -lrt""... $ac_c" 1>&6
2304 echo "configure:2305: checking for sched_setscheduler in -lrt" >&5
2305 ac_lib_var=`echo rt'_'sched_setscheduler | sed 'y%./+-%__p_%'`
2306 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 ac_save_LIBS="$LIBS"
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 /* Override any gcc2 internal prototype to avoid an error. */
2315 /* We use char because int might match the return type of a gcc2
2316 builtin and then its argument prototype would still apply. */
2317 char sched_setscheduler();
2320 sched_setscheduler()
2323 if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325 eval "ac_cv_lib_$ac_lib_var=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2330 eval "ac_cv_lib_$ac_lib_var=no"
2333 LIBS="$ac_save_LIBS"
2336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2340 cat >> confdefs.h <<EOF
2341 #define $ac_tr_lib 1
2347 echo "$ac_t""no" 1>&6
2348 echo $ac_n "checking for sched_setscheduler in -lposix4""... $ac_c" 1>&6
2349 echo "configure:2350: checking for sched_setscheduler in -lposix4" >&5
2350 ac_lib_var=`echo posix4'_'sched_setscheduler | sed 'y%./+-%__p_%'`
2351 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 ac_save_LIBS="$LIBS"
2355 LIBS="-lposix4 $LIBS"
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* Override any gcc2 internal prototype to avoid an error. */
2360 /* We use char because int might match the return type of a gcc2
2361 builtin and then its argument prototype would still apply. */
2362 char sched_setscheduler();
2365 sched_setscheduler()
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2370 eval "ac_cv_lib_$ac_lib_var=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 eval "ac_cv_lib_$ac_lib_var=no"
2378 LIBS="$ac_save_LIBS"
2381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2382 echo "$ac_t""yes" 1>&6
2383 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/^a-zA-Z0-9_/_/g' \
2384 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2385 cat >> confdefs.h <<EOF
2386 #define $ac_tr_lib 1
2389 LIBS="-lposix4 $LIBS"
2392 echo "$ac_t""no" 1>&6
2397 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
2398 echo "configure:2399: checking for setsockopt" >&5
2399 if eval "test \"\${ac_cv_func_setsockopt+set}\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 /* System header to define __stub macros and hopefully few prototypes,
2406 which can conflict with char setsockopt(); below. */
2408 /* Override any gcc2 internal prototype to avoid an error. */
2409 /* We use char because int might match the return type of a gcc2
2410 builtin and then its argument prototype would still apply. */
2416 /* The GNU C library defines this for functions which it implements
2417 to always fail with ENOSYS. Some functions are actually named
2418 something starting with __ and the normal name is an alias. */
2419 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
2427 if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2429 eval "ac_cv_func_setsockopt=yes"
2431 echo "configure: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2434 eval "ac_cv_func_setsockopt=no"
2439 if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
2440 echo "$ac_t""yes" 1>&6
2443 echo "$ac_t""no" 1>&6
2444 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
2445 echo "configure:2446: checking for setsockopt in -lsocket" >&5
2446 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
2447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_save_LIBS="$LIBS"
2451 LIBS="-lsocket $LIBS"
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 /* Override any gcc2 internal prototype to avoid an error. */
2456 /* We use char because int might match the return type of a gcc2
2457 builtin and then its argument prototype would still apply. */
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466 eval "ac_cv_lib_$ac_lib_var=yes"
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 eval "ac_cv_lib_$ac_lib_var=no"
2474 LIBS="$ac_save_LIBS"
2477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2481 cat >> confdefs.h <<EOF
2482 #define $ac_tr_lib 1
2485 LIBS="-lsocket $LIBS"
2488 echo "$ac_t""no" 1>&6
2494 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2495 echo "configure:2496: checking for ANSI C header files" >&5
2496 if eval "test \"\${ac_cv_header_stdc+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"
2507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2508 { (eval echo configure:2509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2510 if test -z "$ac_err"; then
2512 ac_cv_header_stdc=yes
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2518 ac_cv_header_stdc=no
2522 if test $ac_cv_header_stdc = yes; then
2523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2530 egrep "memchr" >/dev/null 2>&1; then
2534 ac_cv_header_stdc=no
2540 if test $ac_cv_header_stdc = yes; then
2541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2548 egrep "free" >/dev/null 2>&1; then
2552 ac_cv_header_stdc=no
2558 if test $ac_cv_header_stdc = yes; then
2559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2560 if test "$cross_compiling" = yes; then
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2567 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2568 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2570 int main () { int i; for (i = 0; i < 256; i++)
2571 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2575 if { (eval echo configure:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2582 ac_cv_header_stdc=no
2590 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2591 if test $ac_cv_header_stdc = yes; then
2592 cat >> confdefs.h <<\EOF
2593 #define STDC_HEADERS 1
2598 for ac_hdr in bstring.h errno.h fcntl.h memory.h netdb.h poll.h resolv.h
2600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2602 echo "configure:2603: checking for $ac_hdr" >&5
2603 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612 { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2614 if test -z "$ac_err"; then
2616 eval "ac_cv_header_$ac_safe=yes"
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2622 eval "ac_cv_header_$ac_safe=no"
2626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2627 echo "$ac_t""yes" 1>&6
2628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2629 cat >> confdefs.h <<EOF
2630 #define $ac_tr_hdr 1
2634 echo "$ac_t""no" 1>&6
2638 for ac_hdr in sched.h sgtty.h stdlib.h string.h termio.h termios.h
2640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2642 echo "configure:2643: checking for $ac_hdr" >&5
2643 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2652 { (eval echo configure:2653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2654 if test -z "$ac_err"; then
2656 eval "ac_cv_header_$ac_safe=yes"
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 eval "ac_cv_header_$ac_safe=no"
2666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2667 echo "$ac_t""yes" 1>&6
2668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2669 cat >> confdefs.h <<EOF
2670 #define $ac_tr_hdr 1
2674 echo "$ac_t""no" 1>&6
2678 for ac_hdr in timepps.h timex.h unistd.h utmp.h utmpx.h
2680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_hdr" >&5
2683 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2692 { (eval echo configure:2693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2694 if test -z "$ac_err"; then
2696 eval "ac_cv_header_$ac_safe=yes"
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2702 eval "ac_cv_header_$ac_safe=no"
2706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2707 echo "$ac_t""yes" 1>&6
2708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2709 cat >> confdefs.h <<EOF
2710 #define $ac_tr_hdr 1
2714 echo "$ac_t""no" 1>&6
2718 for ac_hdr in arpa/nameser.h net/if.h netinet/in.h netinet/ip.h
2720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2722 echo "configure:2723: checking for $ac_hdr" >&5
2723 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2732 { (eval echo configure:2733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2734 if test -z "$ac_err"; then
2736 eval "ac_cv_header_$ac_safe=yes"
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2742 eval "ac_cv_header_$ac_safe=no"
2746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2747 echo "$ac_t""yes" 1>&6
2748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2749 cat >> confdefs.h <<EOF
2750 #define $ac_tr_hdr 1
2754 echo "$ac_t""no" 1>&6
2758 for ac_hdr in netinfo/ni.h
2760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2762 echo "configure:2763: checking for $ac_hdr" >&5
2763 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2772 { (eval echo configure:2773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2774 if test -z "$ac_err"; then
2776 eval "ac_cv_header_$ac_safe=yes"
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 eval "ac_cv_header_$ac_safe=no"
2786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2789 cat >> confdefs.h <<EOF
2790 #define $ac_tr_hdr 1
2792 cat >> confdefs.h <<\EOF
2793 #define HAVE_NETINFO 1
2797 echo "$ac_t""no" 1>&6
2801 for ac_hdr in sun/audioio.h sys/audioio.h
2803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_hdr" >&5
2806 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2809 cat > conftest.$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2815 { (eval echo configure:2816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2817 if test -z "$ac_err"; then
2819 eval "ac_cv_header_$ac_safe=yes"
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2825 eval "ac_cv_header_$ac_safe=no"
2829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2832 cat >> confdefs.h <<EOF
2833 #define $ac_tr_hdr 1
2837 echo "$ac_t""no" 1>&6
2841 for ac_hdr in sys/clkdefs.h sys/file.h
2843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_hdr" >&5
2846 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2855 { (eval echo configure:2856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2857 if test -z "$ac_err"; then
2859 eval "ac_cv_header_$ac_safe=yes"
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2865 eval "ac_cv_header_$ac_safe=no"
2869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2870 echo "$ac_t""yes" 1>&6
2871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2872 cat >> confdefs.h <<EOF
2873 #define $ac_tr_hdr 1
2877 echo "$ac_t""no" 1>&6
2883 *) for ac_hdr in sys/ioctl.h
2885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2887 echo "configure:2888: checking for $ac_hdr" >&5
2888 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2897 { (eval echo configure:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2899 if test -z "$ac_err"; then
2901 eval "ac_cv_header_$ac_safe=yes"
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 eval "ac_cv_header_$ac_safe=no"
2911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2912 echo "$ac_t""yes" 1>&6
2913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2914 cat >> confdefs.h <<EOF
2915 #define $ac_tr_hdr 1
2919 echo "$ac_t""no" 1>&6
2925 for ac_hdr in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
2927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2929 echo "configure:2930: checking for $ac_hdr" >&5
2930 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2939 { (eval echo configure:2940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2941 if test -z "$ac_err"; then
2943 eval "ac_cv_header_$ac_safe=yes"
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2949 eval "ac_cv_header_$ac_safe=no"
2953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2954 echo "$ac_t""yes" 1>&6
2955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2956 cat >> confdefs.h <<EOF
2957 #define $ac_tr_hdr 1
2961 echo "$ac_t""no" 1>&6
2965 for ac_hdr in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
2967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2969 echo "configure:2970: checking for $ac_hdr" >&5
2970 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 cat > conftest.$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2979 { (eval echo configure:2980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2981 if test -z "$ac_err"; then
2983 eval "ac_cv_header_$ac_safe=yes"
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2989 eval "ac_cv_header_$ac_safe=no"
2993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2994 echo "$ac_t""yes" 1>&6
2995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2996 cat >> confdefs.h <<EOF
2997 #define $ac_tr_hdr 1
3001 echo "$ac_t""no" 1>&6
3007 for ac_hdr in sys/sio.h
3009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_hdr" >&5
3012 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3021 { (eval echo configure:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3023 if test -z "$ac_err"; then
3025 eval "ac_cv_header_$ac_safe=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 eval "ac_cv_header_$ac_safe=no"
3035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3036 echo "$ac_t""yes" 1>&6
3037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3038 cat >> confdefs.h <<EOF
3039 #define $ac_tr_hdr 1
3043 echo "$ac_t""no" 1>&6
3049 for ac_hdr in sys/syssgi.h
3051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3053 echo "configure:3054: checking for $ac_hdr" >&5
3054 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3063 { (eval echo configure:3064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3065 if test -z "$ac_err"; then
3067 eval "ac_cv_header_$ac_safe=yes"
3070 echo "configure: failed program was:" >&5
3071 cat conftest.$ac_ext >&5
3073 eval "ac_cv_header_$ac_safe=no"
3077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3078 echo "$ac_t""yes" 1>&6
3079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3080 cat >> confdefs.h <<EOF
3081 #define $ac_tr_hdr 1
3085 echo "$ac_t""no" 1>&6
3091 for ac_hdr in sys/select.h
3093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3095 echo "configure:3096: checking for $ac_hdr" >&5
3096 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3105 { (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3107 if test -z "$ac_err"; then
3109 eval "ac_cv_header_$ac_safe=yes"
3112 echo "configure: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3115 eval "ac_cv_header_$ac_safe=no"
3119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3120 echo "$ac_t""yes" 1>&6
3121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3122 cat >> confdefs.h <<EOF
3123 #define $ac_tr_hdr 1
3127 echo "$ac_t""no" 1>&6
3133 for ac_hdr in sys/sockio.h sys/stat.h sys/stream.h sys/stropts.h
3135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_hdr" >&5
3138 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3147 { (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3149 if test -z "$ac_err"; then
3151 eval "ac_cv_header_$ac_safe=yes"
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3157 eval "ac_cv_header_$ac_safe=no"
3161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3164 cat >> confdefs.h <<EOF
3165 #define $ac_tr_hdr 1
3169 echo "$ac_t""no" 1>&6
3173 for ac_hdr in sys/sysctl.h sys/termios.h sys/time.h
3175 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3177 echo "configure:3178: checking for $ac_hdr" >&5
3178 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3187 { (eval echo configure:3188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3189 if test -z "$ac_err"; then
3191 eval "ac_cv_header_$ac_safe=yes"
3194 echo "configure: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3197 eval "ac_cv_header_$ac_safe=no"
3201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3202 echo "$ac_t""yes" 1>&6
3203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3204 cat >> confdefs.h <<EOF
3205 #define $ac_tr_hdr 1
3209 echo "$ac_t""no" 1>&6
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <sys/timepps.h>
3217 #ifdef PPS_API_VERS_1
3222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 egrep "yes" >/dev/null 2>&1; then
3225 for ac_hdr in sys/timepps.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 \"\${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
3268 for ac_hdr in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
3270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3272 echo "configure:3273: checking for $ac_hdr" >&5
3273 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3282 { (eval echo configure:3283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3284 if test -z "$ac_err"; then
3286 eval "ac_cv_header_$ac_safe=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_header_$ac_safe=no"
3296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3297 echo "$ac_t""yes" 1>&6
3298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3299 cat >> confdefs.h <<EOF
3300 #define $ac_tr_hdr 1
3304 echo "$ac_t""no" 1>&6
3308 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3309 echo "configure:3310: checking whether time.h and sys/time.h may both be included" >&5
3310 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3317 #include <sys/time.h>
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3325 ac_cv_header_time=yes
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 ac_cv_header_time=no
3335 echo "$ac_t""$ac_cv_header_time" 1>&6
3336 if test $ac_cv_header_time = yes; then
3337 cat >> confdefs.h <<\EOF
3338 #define TIME_WITH_SYS_TIME 1
3345 for ac_hdr in /sys/sync/queue.h /sys/sync/sema.h
3347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3349 echo "configure:3350: checking for $ac_hdr" >&5
3350 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3359 { (eval echo configure:3360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3361 if test -z "$ac_err"; then
3363 eval "ac_cv_header_$ac_safe=yes"
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3369 eval "ac_cv_header_$ac_safe=no"
3373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3376 cat >> confdefs.h <<EOF
3377 #define $ac_tr_hdr 1
3381 echo "$ac_t""no" 1>&6
3387 for ac_hdr in machine/inline.h sys/pcl720.h sys/i8253.h
3389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3391 echo "configure:3392: checking for $ac_hdr" >&5
3392 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3401 { (eval echo configure:3402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3403 if test -z "$ac_err"; then
3405 eval "ac_cv_header_$ac_safe=yes"
3408 echo "configure: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3411 eval "ac_cv_header_$ac_safe=no"
3415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3418 cat >> confdefs.h <<EOF
3419 #define $ac_tr_hdr 1
3423 echo "$ac_t""no" 1>&6
3430 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
3431 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
3432 echo "configure:3433: checking for nlist.h" >&5
3433 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3442 { (eval echo configure:3443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3444 if test -z "$ac_err"; then
3446 eval "ac_cv_header_$ac_safe=yes"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3452 eval "ac_cv_header_$ac_safe=no"
3456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3457 echo "$ac_t""yes" 1>&6
3458 cat >> confdefs.h <<\EOF
3459 #define NLIST_STRUCT 1
3462 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
3463 echo "configure:3464: checking for n_un in struct nlist" >&5
3464 if eval "test \"\${ac_cv_struct_nlist_n_un+set}\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3472 struct nlist n; n.n_un.n_name = 0;
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 ac_cv_struct_nlist_n_un=yes
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3482 ac_cv_struct_nlist_n_un=no
3487 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
3488 if test $ac_cv_struct_nlist_n_un = yes; then
3489 cat >> confdefs.h <<\EOF
3490 #define NLIST_NAME_UNION 1
3496 echo "$ac_t""no" 1>&6
3499 echo $ac_n "checking for basic volatile support""... $ac_c" 1>&6
3500 echo "configure:3501: checking for basic volatile support" >&5
3501 if eval "test \"\${ac_cv_c_volatile+set}\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 ac_cv_c_volatile=yes
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3526 echo "$ac_t""$ac_cv_c_volatile" 1>&6
3527 case "$ac_cv_c_volatile" in
3530 *) cat >> confdefs.h <<\EOF
3539 # Assume that solaris2 is Ansi C...
3545 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3546 echo "configure:3547: checking for ${CC-cc} option to accept ANSI C" >&5
3547 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 am_cv_prog_cc_stdc=no
3552 # Don't try gcc -ansi; that turns off useful extensions and
3553 # breaks some systems' header files.
3554 # AIX -qlanglvl=ansi
3555 # Ultrix and OSF/1 -std1
3556 # HP-UX 10.20 and later -Ae
3557 # HP-UX older versions -Aa -D_HPUX_SOURCE
3558 # SVR4 -Xc -D__EXTENSIONS__
3559 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3561 CC="$ac_save_CC $ac_arg"
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3567 #include <sys/types.h>
3568 #include <sys/stat.h>
3569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570 struct buf { int x; };
3571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572 static char *e (p, i)
3578 static char *f (char * (*g) (char **, int), char **p, ...)
3583 s = g (p, va_arg (v,int));
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 am_cv_prog_cc_stdc="$ac_arg"; break
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3613 if test -z "$am_cv_prog_cc_stdc"; then
3614 echo "$ac_t""none needed" 1>&6
3616 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3618 case "x$am_cv_prog_cc_stdc" in
3620 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3625 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3626 echo "configure:3627: checking for function prototypes" >&5
3627 if test "$am_cv_prog_cc_stdc" != no; then
3628 echo "$ac_t""yes" 1>&6
3629 cat >> confdefs.h <<\EOF
3630 #define PROTOTYPES 1
3635 echo "$ac_t""no" 1>&6
3636 U=_ ANSI2KNR=./ansi2knr
3637 # Ensure some checks needed by ansi2knr itself.
3638 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3639 echo "configure:3640: checking for ANSI C header files" >&5
3640 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3652 { (eval echo configure:3653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3654 if test -z "$ac_err"; then
3656 ac_cv_header_stdc=yes
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3662 ac_cv_header_stdc=no
3666 if test $ac_cv_header_stdc = yes; then
3667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 egrep "memchr" >/dev/null 2>&1; then
3678 ac_cv_header_stdc=no
3684 if test $ac_cv_header_stdc = yes; then
3685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 egrep "free" >/dev/null 2>&1; then
3696 ac_cv_header_stdc=no
3702 if test $ac_cv_header_stdc = yes; then
3703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3704 if test "$cross_compiling" = yes; then
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3711 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3712 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3714 int main () { int i; for (i = 0; i < 256; i++)
3715 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3719 if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3723 echo "configure: failed program was:" >&5
3724 cat conftest.$ac_ext >&5
3726 ac_cv_header_stdc=no
3734 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3735 if test $ac_cv_header_stdc = yes; then
3736 cat >> confdefs.h <<\EOF
3737 #define STDC_HEADERS 1
3742 for ac_hdr in string.h
3744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3746 echo "configure:3747: checking for $ac_hdr" >&5
3747 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3756 { (eval echo configure:3757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3758 if test -z "$ac_err"; then
3760 eval "ac_cv_header_$ac_safe=yes"
3763 echo "configure: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3766 eval "ac_cv_header_$ac_safe=no"
3770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3771 echo "$ac_t""yes" 1>&6
3772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3773 cat >> confdefs.h <<EOF
3774 #define $ac_tr_hdr 1
3778 echo "$ac_t""no" 1>&6
3786 echo $ac_n "checking if C compiler permits function prototypes""... $ac_c" 1>&6
3787 echo "configure:3788: checking if C compiler permits function prototypes" >&5
3788 if eval "test \"\${ac_cv_have_prototypes+set}\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3795 extern int foo (short);
3796 int foo(short i) { return i; }
3802 if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 ac_cv_have_prototypes=yes
3806 echo "configure: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3809 ac_cv_have_prototypes=no
3815 echo "$ac_t""$ac_cv_have_prototypes" 1>&6
3816 if test "$ac_cv_have_prototypes" = yes; then
3817 cat >> confdefs.h <<\EOF
3818 #define HAVE_PROTOTYPES 1
3823 echo $ac_n "checking for working const""... $ac_c" 1>&6
3824 echo "configure:3825: checking for working const" >&5
3825 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3834 /* Ultrix mips cc rejects this. */
3835 typedef int charset[2]; const charset x;
3836 /* SunOS 4.1.1 cc rejects this. */
3837 char const *const *ccp;
3839 /* NEC SVR4.0.2 mips cc rejects this. */
3840 struct point {int x, y;};
3841 static struct point const zero = {0,0};
3842 /* AIX XL C 1.02.0.0 rejects this.
3843 It does not let you subtract one const X* pointer from another in an arm
3844 of an if-expression whose if-part is not a constant expression */
3845 const char *g = "string";
3846 ccp = &g + (g ? g-g : 0);
3847 /* HPUX 7.0 cc rejects these. */
3850 ccp = (char const *const *) p;
3851 { /* SCO 3.2v4 cc rejects this. */
3853 char const *s = 0 ? (char *) 0 : (char const *) 0;
3857 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3859 const int *foo = &x[0];
3862 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3863 typedef const int *iptr;
3867 { /* AIX XL C 1.02.0.0 rejects this saying
3868 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3869 struct s { int j; const int *ap[3]; };
3870 struct s *b; b->j = 5;
3872 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3878 if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3890 echo "$ac_t""$ac_cv_c_const" 1>&6
3891 if test $ac_cv_c_const = no; then
3892 cat >> confdefs.h <<\EOF
3900 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3901 echo "configure:3902: checking whether byte ordering is bigendian" >&5
3902 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3905 ac_cv_c_bigendian=unknown
3906 # See if sys/param.h defines the BYTE_ORDER macro.
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 #include <sys/types.h>
3911 #include <sys/param.h>
3914 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3919 if { (eval echo configure:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3921 # It does; now see whether it defined to BIG_ENDIAN or not.
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include <sys/types.h>
3926 #include <sys/param.h>
3929 #if BYTE_ORDER != BIG_ENDIAN
3934 if { (eval echo configure:3935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3936 ac_cv_c_bigendian=yes
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3941 ac_cv_c_bigendian=no
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3949 if test $ac_cv_c_bigendian = unknown; then
3950 if test "$cross_compiling" = yes; then
3951 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3957 /* Are we little or big endian? From Harbison&Steele. */
3961 char c[sizeof (long)];
3964 exit (u.c[sizeof (long) - 1] == 1);
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3969 ac_cv_c_bigendian=no
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 ac_cv_c_bigendian=yes
3982 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3983 if test $ac_cv_c_bigendian = yes; then
3984 cat >> confdefs.h <<\EOF
3985 #define WORDS_BIGENDIAN 1
3991 *) case "$target" in
3996 cat >> confdefs.h <<\EOF
3997 #define WORDS_BIGENDIAN 1
4001 *) { echo "configure: error: Cross-compiling needs explicit byte order" 1>&2; exit 1; }
4006 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4007 echo "configure:4008: checking return type of signal handlers" >&5
4008 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 #include <sys/types.h>
4020 extern "C" void (*signal (int, void (*)(int)))(int);
4022 void (*signal ()) ();
4029 if { (eval echo configure:4030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4031 ac_cv_type_signal=void
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4036 ac_cv_type_signal=int
4041 echo "$ac_t""$ac_cv_type_signal" 1>&6
4042 cat >> confdefs.h <<EOF
4043 #define RETSIGTYPE $ac_cv_type_signal
4047 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4048 echo "configure:4049: checking for off_t" >&5
4049 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 #include <sys/types.h>
4061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4062 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4064 eval "ac_cv_type_off_t=yes"
4067 eval "ac_cv_type_off_t=no"
4072 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4075 echo "$ac_t""no" 1>&6
4076 cat >> confdefs.h <<EOF
4082 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4083 echo "configure:4084: checking for size_t" >&5
4084 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 #include <sys/types.h>
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4099 eval "ac_cv_type_size_t=yes"
4102 eval "ac_cv_type_size_t=no"
4107 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4110 echo "$ac_t""no" 1>&6
4111 cat >> confdefs.h <<EOF
4112 #define size_t unsigned
4117 echo $ac_n "checking for time_t""... $ac_c" 1>&6
4118 echo "configure:4119: checking for time_t" >&5
4119 if eval "test \"\${ac_cv_type_time_t+set}\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 #include <sys/types.h>
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4134 eval "ac_cv_type_time_t=yes"
4137 eval "ac_cv_type_time_t=no"
4142 if eval "test \"`echo '$ac_cv_type_'time_t`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4145 echo "$ac_t""no" 1>&6
4146 cat >> confdefs.h <<EOF
4152 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4153 echo "configure:4154: checking whether struct tm is in sys/time.h or time.h" >&5
4154 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 #include <sys/types.h>
4163 struct tm *tp; tp->tm_sec;
4166 if { (eval echo configure:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 ac_cv_struct_tm=time.h
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4173 ac_cv_struct_tm=sys/time.h
4178 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4179 if test $ac_cv_struct_tm = sys/time.h; then
4180 cat >> confdefs.h <<\EOF
4181 #define TM_IN_SYS_TIME 1
4187 echo $ac_n "checking for a fallback value for HZ""... $ac_c" 1>&6
4188 echo "configure:4189: checking for a fallback value for HZ" >&5
4189 if eval "test \"\${ac_cv_var_default_hz+set}\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 ac_cv_var_default_hz=100
4194 alpha*-dec-osf4*|alpha*-dec-osf5*)
4195 ac_cv_var_default_hz=1024
4198 ac_cv_var_default_hz=256
4203 echo "$ac_t""$ac_cv_var_default_hz" 1>&6
4204 cat >> confdefs.h <<EOF
4205 #define DEFAULT_HZ $ac_cv_var_default_hz
4209 echo $ac_n "checking if we need to override the system's value for HZ""... $ac_c" 1>&6
4210 echo "configure:4211: checking if we need to override the system's value for HZ" >&5
4211 if eval "test \"\${ac_cv_var_override_hz+set}\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 ac_cv_var_override_hz=no
4216 alpha*-dec-osf4*|alpha*-dec-osf5*)
4217 ac_cv_var_override_hz=yes
4220 ac_cv_var_override_hz=yes
4223 ac_cv_var_override_hz=yes
4226 ac_cv_var_override_hz=yes
4231 echo "$ac_t""$ac_cv_var_override_hz" 1>&6
4232 case "$ac_cv_var_override_hz" in
4234 cat >> confdefs.h <<\EOF
4235 #define OVERRIDE_HZ 1
4243 echo $ac_n "checking struct sigaction for sa_sigaction""... $ac_c" 1>&6
4244 echo "configure:4245: checking struct sigaction for sa_sigaction" >&5
4245 if eval "test \"\${ac_cv_struct_sigaction_has_sa_sigaction+set}\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4254 struct sigaction act; act.sa_sigaction = 0;
4257 if { (eval echo configure:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4259 ac_cv_struct_sigaction_has_sa_sigaction=yes
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 ac_cv_struct_sigaction_has_sa_sigaction=no
4272 echo "$ac_t""$ac_cv_struct_sigaction_has_sa_sigaction" 1>&6
4273 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
4274 cat >> confdefs.h <<\EOF
4275 #define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
4280 echo $ac_n "checking for struct ppsclockev""... $ac_c" 1>&6
4281 echo "configure:4282: checking for struct ppsclockev" >&5
4282 if eval "test \"\${ac_cv_struct_ppsclockev+set}\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4289 #include <sys/types.h>
4290 #ifdef HAVE_SYS_TERMIOS_H
4291 # include <sys/termios.h>
4293 #ifdef HAVE_SYS_TIME_H
4294 # include <sys/time.h>
4296 #ifdef HAVE_SYS_PPSCLOCK_H
4297 # include <sys/ppsclock.h>
4301 extern struct ppsclockev *pce;
4305 if { (eval echo configure:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4307 ac_cv_struct_ppsclockev=yes
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 ac_cv_struct_ppsclockev=no
4318 echo "$ac_t""$ac_cv_struct_ppsclockev" 1>&6
4319 if test $ac_cv_struct_ppsclockev = yes; then
4320 cat >> confdefs.h <<\EOF
4321 #define HAVE_STRUCT_PPSCLOCKEV 1
4326 echo $ac_n "checking struct sockaddr for sa_len""... $ac_c" 1>&6
4327 echo "configure:4328: checking struct sockaddr for sa_len" >&5
4328 if eval "test \"\${ac_cv_struct_sockaddr_has_sa_len+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 #include <sys/socket.h>
4339 extern struct sockaddr *ps;
4343 if { (eval echo configure:4344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4345 ac_cv_struct_sockaddr_has_sa_len=yes
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 ac_cv_struct_sockaddr_has_sa_len=no
4356 echo "$ac_t""$ac_cv_struct_sockaddr_has_sa_len" 1>&6
4357 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
4358 cat >> confdefs.h <<\EOF
4359 #define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
4364 echo $ac_n "checking struct clockinfo for hz""... $ac_c" 1>&6
4365 echo "configure:4366: checking struct clockinfo for hz" >&5
4366 if eval "test \"\${ac_cv_struct_clockinfo_has_hz+set}\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4373 #include <sys/time.h>
4376 extern struct clockinfo *pc;
4380 if { (eval echo configure:4381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4382 ac_cv_struct_clockinfo_has_hz=yes
4384 echo "configure: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4387 ac_cv_struct_clockinfo_has_hz=no
4393 echo "$ac_t""$ac_cv_struct_clockinfo_has_hz" 1>&6
4394 if test $ac_cv_struct_clockinfo_has_hz = yes; then
4395 cat >> confdefs.h <<\EOF
4396 #define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
4401 echo $ac_n "checking struct clockinfo for tickadj""... $ac_c" 1>&6
4402 echo "configure:4403: checking struct clockinfo for tickadj" >&5
4403 if eval "test \"\${ac_cv_struct_clockinfo_has_tickadj+set}\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4410 #include <sys/time.h>
4413 extern struct clockinfo *pc;
4417 if { (eval echo configure:4418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4419 ac_cv_struct_clockinfo_has_tickadj=yes
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 ac_cv_struct_clockinfo_has_tickadj=no
4430 echo "$ac_t""$ac_cv_struct_clockinfo_has_tickadj" 1>&6
4431 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
4432 cat >> confdefs.h <<\EOF
4433 #define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
4438 echo $ac_n "checking for struct ntptimeval""... $ac_c" 1>&6
4439 echo "configure:4440: checking for struct ntptimeval" >&5
4440 if eval "test \"\${ac_cv_struct_ntptimeval+set}\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4447 #include <sys/time.h>
4448 #include <sys/timex.h>
4450 struct ntptimeval n;
4453 if { (eval echo configure:4454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4455 ac_cv_struct_ntptimeval=yes
4457 echo "configure: failed program was:" >&5
4458 cat conftest.$ac_ext >&5
4460 ac_cv_struct_ntptimeval=no
4465 echo "$ac_t""$ac_cv_struct_ntptimeval" 1>&6
4466 if test $ac_cv_struct_ntptimeval = yes; then
4467 cat >> confdefs.h <<\EOF
4468 #define HAVE_STRUCT_NTPTIMEVAL 1
4473 echo $ac_n "checking struct ntptimeval for time.tv_nsec""... $ac_c" 1>&6
4474 echo "configure:4475: checking struct ntptimeval for time.tv_nsec" >&5
4475 if eval "test \"\${ac_cv_struct_ntptimeval_tv_nsec+set}\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4482 #ifdef HAVE_SYS_TIME_H
4483 #include <sys/time.h>
4489 #ifdef HAVE_SYS_TIMEX_H
4490 #include <sys/timex.h>
4492 # ifdef HAVE_TIMEX_H
4498 extern struct ntptimeval *ntv;
4499 return ntv->time.tv_nsec;
4502 if { (eval echo configure:4503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4504 ac_cv_struct_ntptimeval_tv_nsec=yes
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4509 ac_cv_struct_ntptimeval_tv_nsec=no
4515 echo "$ac_t""$ac_cv_struct_ntptimeval_tv_nsec" 1>&6
4516 if test "$ac_cv_struct_ntptimeval_tv_nsec" = "yes"; then
4517 cat >> confdefs.h <<\EOF
4518 #define HAVE_TV_NSEC_IN_NTPTIMEVAL 1
4523 echo $ac_n "checking for struct timespec in struct ntptimeval""... $ac_c" 1>&6
4524 echo "configure:4525: checking for struct timespec in struct ntptimeval" >&5
4525 if eval "test \"\${ac_cv_struct_ntptimeval_timespec+set}\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531 #include <sys/time.h>
4532 #include <sys/timex.h>
4534 struct ntptimeval n; n.time.tv_nsec = 0;
4537 if { (eval echo configure:4538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4539 ac_cv_struct_ntptimeval_timespec=yes
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 ac_cv_struct_ntptimeval_timespec=no
4549 echo "$ac_t""$ac_cv_struct_ntptimeval_timespec" 1>&6
4550 if test $ac_cv_struct_ntptimeval_timespec = yes; then
4551 cat >> confdefs.h <<\EOF
4552 #define TIMESPEC_IN_NTPTIMEVAL 1
4557 echo $ac_n "checking for inline""... $ac_c" 1>&6
4558 echo "configure:4559: checking for inline" >&5
4559 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4563 for ac_kw in inline __inline__ __inline; do
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4572 if { (eval echo configure:4573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4574 ac_cv_c_inline=$ac_kw; break
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4584 echo "$ac_t""$ac_cv_c_inline" 1>&6
4585 case "$ac_cv_c_inline" in
4587 no) cat >> confdefs.h <<\EOF
4591 *) cat >> confdefs.h <<EOF
4592 #define inline $ac_cv_c_inline
4597 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4598 echo "configure:4599: checking whether char is unsigned" >&5
4599 if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4602 if test "$GCC" = yes; then
4603 # GCC predefines this symbol on systems where it applies.
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #ifdef __CHAR_UNSIGNED__
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 egrep "yes" >/dev/null 2>&1; then
4615 ac_cv_c_char_unsigned=yes
4618 ac_cv_c_char_unsigned=no
4623 if test "$cross_compiling" = yes; then
4624 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4626 cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4630 #if !defined(__STDC__) || __STDC__ != 1
4634 volatile char c = 255; exit(c < 0);
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4639 ac_cv_c_char_unsigned=yes
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4644 ac_cv_c_char_unsigned=no
4652 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4653 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4654 cat >> confdefs.h <<\EOF
4655 #define __CHAR_UNSIGNED__ 1
4661 echo $ac_n "checking size of signed char""... $ac_c" 1>&6
4662 echo "configure:4663: checking size of signed char" >&5
4663 if eval "test \"\${ac_cv_sizeof_signed_char+set}\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 if test "$cross_compiling" = yes; then
4667 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4675 FILE *f=fopen("conftestval", "w");
4677 fprintf(f, "%d\n", sizeof(signed char));
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4683 ac_cv_sizeof_signed_char=`cat conftestval`
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 ac_cv_sizeof_signed_char=0
4694 echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6
4695 cat >> confdefs.h <<EOF
4696 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
4701 *) case "$target" in
4703 echo $ac_n "checking size of signed char""... $ac_c" 1>&6
4704 echo "configure:4705: checking size of signed char" >&5
4705 if eval "test \"\${ac_cv_sizeof_signed_char+set}\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 if test "$cross_compiling" = yes; then
4709 ac_cv_sizeof_signed_char=1
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4717 FILE *f=fopen("conftestval", "w");
4719 fprintf(f, "%d\n", sizeof(signed char));
4723 if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4725 ac_cv_sizeof_signed_char=`cat conftestval`
4727 echo "configure: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4730 ac_cv_sizeof_signed_char=0
4736 echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6
4737 cat >> confdefs.h <<EOF
4738 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
4743 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" 1>&2; exit 1; }
4751 echo $ac_n "checking size of int""... $ac_c" 1>&6
4752 echo "configure:4753: checking size of int" >&5
4753 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 if test "$cross_compiling" = yes; then
4757 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4765 FILE *f=fopen("conftestval", "w");
4767 fprintf(f, "%d\n", sizeof(int));
4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4773 ac_cv_sizeof_int=`cat conftestval`
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4784 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4785 cat >> confdefs.h <<EOF
4786 #define SIZEOF_INT $ac_cv_sizeof_int
4791 *) case "$target" in
4793 echo $ac_n "checking size of int""... $ac_c" 1>&6
4794 echo "configure:4795: checking size of int" >&5
4795 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 if test "$cross_compiling" = yes; then
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4807 FILE *f=fopen("conftestval", "w");
4809 fprintf(f, "%d\n", sizeof(int));
4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4815 ac_cv_sizeof_int=`cat conftestval`
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4826 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4827 cat >> confdefs.h <<EOF
4828 #define SIZEOF_INT $ac_cv_sizeof_int
4833 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_INT" 1>&2; exit 1; }
4841 echo $ac_n "checking size of long""... $ac_c" 1>&6
4842 echo "configure:4843: checking size of long" >&5
4843 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 if test "$cross_compiling" = yes; then
4847 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4855 FILE *f=fopen("conftestval", "w");
4857 fprintf(f, "%d\n", sizeof(long));
4861 if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4863 ac_cv_sizeof_long=`cat conftestval`
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4874 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4875 cat >> confdefs.h <<EOF
4876 #define SIZEOF_LONG $ac_cv_sizeof_long
4881 *) case "$target" in
4883 echo $ac_n "checking size of long""... $ac_c" 1>&6
4884 echo "configure:4885: checking size of long" >&5
4885 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 if test "$cross_compiling" = yes; then
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4897 FILE *f=fopen("conftestval", "w");
4899 fprintf(f, "%d\n", sizeof(long));
4903 if { (eval echo configure:4904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4905 ac_cv_sizeof_long=`cat conftestval`
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4916 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4917 cat >> confdefs.h <<EOF
4918 #define SIZEOF_LONG $ac_cv_sizeof_long
4923 *) { echo "configure: error: Cross-compiling needs explicit SIZEOF_LONG" 1>&2; exit 1; }
4929 echo $ac_n "checking for s_char""... $ac_c" 1>&6
4930 echo "configure:4931: checking for s_char" >&5
4931 if eval "test \"\${ac_cv_type_s_char+set}\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 #include <sys/types.h>
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 egrep "(^|[^a-zA-Z_0-9])s_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4946 eval "ac_cv_type_s_char=yes"
4949 eval "ac_cv_type_s_char=no"
4954 if eval "test \"`echo '$ac_cv_type_'s_char`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4957 echo "$ac_t""no" 1>&6
4958 cat >> confdefs.h <<EOF
4959 #define s_char signed char
4964 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
4966 # We have a typedef for s_char. Might as well believe it...
4969 # We have signed chars, can't say 'signed char', no s_char typedef.
4970 cat >> confdefs.h <<\EOF
4971 #define NEED_S_CHAR_TYPEDEF 1
4976 # We have signed chars, can say 'signed char', no s_char typedef.
4977 cat >> confdefs.h <<\EOF
4978 #define NEED_S_CHAR_TYPEDEF 1
4983 # We have unsigned chars, can't say 'signed char', no s_char typedef.
4984 { echo "configure: error: No way to specify a signed character!" 1>&2; exit 1; }
4987 # We have unsigned chars, can say 'signed char', no s_char typedef.
4988 cat >> confdefs.h <<\EOF
4989 #define NEED_S_CHAR_TYPEDEF 1
4994 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4995 echo "configure:4996: checking for uid_t in sys/types.h" >&5
4996 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 #include <sys/types.h>
5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005 egrep "uid_t" >/dev/null 2>&1; then
5007 ac_cv_type_uid_t=yes
5016 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5017 if test $ac_cv_type_uid_t = no; then
5018 cat >> confdefs.h <<\EOF
5022 cat >> confdefs.h <<\EOF
5031 for ac_func in __adjtimex __ntp_gettime
5033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5034 echo "configure:5035: checking for $ac_func" >&5
5035 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 /* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char $ac_func(); below. */
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5052 /* The GNU C library defines this for functions which it implements
5053 to always fail with ENOSYS. Some functions are actually named
5054 something starting with __ and the normal name is an alias. */
5055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 eval "ac_cv_func_$ac_func=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_func_$ac_func=no"
5075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5078 cat >> confdefs.h <<EOF
5079 #define $ac_tr_func 1
5083 echo "$ac_t""no" 1>&6
5091 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
5092 # (returning ENOSYS). I didn't check 4.2. If, in the future,
5093 # IBM pulls its thumbs out long enough to implement clock_settime,
5094 # this conditional will need to change. Maybe use AC_TRY_RUN
5095 # instead to try to set the time to itself and check errno.
5097 *) for ac_func in clock_settime
5099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_func" >&5
5101 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5107 /* System header to define __stub macros and hopefully few prototypes,
5108 which can conflict with char $ac_func(); below. */
5110 /* Override any gcc2 internal prototype to avoid an error. */
5111 /* We use char because int might match the return type of a gcc2
5112 builtin and then its argument prototype would still apply. */
5118 /* The GNU C library defines this for functions which it implements
5119 to always fail with ENOSYS. Some functions are actually named
5120 something starting with __ and the normal name is an alias. */
5121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5129 if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5131 eval "ac_cv_func_$ac_func=yes"
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5136 eval "ac_cv_func_$ac_func=no"
5141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5142 echo "$ac_t""yes" 1>&6
5143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5144 cat >> confdefs.h <<EOF
5145 #define $ac_tr_func 1
5149 echo "$ac_t""no" 1>&6
5155 for ac_func in daemon getbootfile getdtablesize getrusage
5157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5158 echo "configure:5159: checking for $ac_func" >&5
5159 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5162 cat > conftest.$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5165 /* System header to define __stub macros and hopefully few prototypes,
5166 which can conflict with char $ac_func(); below. */
5168 /* Override any gcc2 internal prototype to avoid an error. */
5169 /* We use char because int might match the return type of a gcc2
5170 builtin and then its argument prototype would still apply. */
5176 /* The GNU C library defines this for functions which it implements
5177 to always fail with ENOSYS. Some functions are actually named
5178 something starting with __ and the normal name is an alias. */
5179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5189 eval "ac_cv_func_$ac_func=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5194 eval "ac_cv_func_$ac_func=no"
5199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5200 echo "$ac_t""yes" 1>&6
5201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5202 cat >> confdefs.h <<EOF
5203 #define $ac_tr_func 1
5207 echo "$ac_t""no" 1>&6
5211 for ac_func in gettimeofday
5213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5214 echo "configure:5215: checking for $ac_func" >&5
5215 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 /* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char $ac_func(); below. */
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5232 /* The GNU C library defines this for functions which it implements
5233 to always fail with ENOSYS. Some functions are actually named
5234 something starting with __ and the normal name is an alias. */
5235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245 eval "ac_cv_func_$ac_func=yes"
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5250 eval "ac_cv_func_$ac_func=no"
5255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5256 echo "$ac_t""yes" 1>&6
5257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5258 cat >> confdefs.h <<EOF
5259 #define $ac_tr_func 1
5263 echo "$ac_t""no" 1>&6
5270 *) for ac_func in getuid
5272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5273 echo "configure:5274: checking for $ac_func" >&5
5274 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280 /* System header to define __stub macros and hopefully few prototypes,
5281 which can conflict with char $ac_func(); below. */
5283 /* Override any gcc2 internal prototype to avoid an error. */
5284 /* We use char because int might match the return type of a gcc2
5285 builtin and then its argument prototype would still apply. */
5291 /* The GNU C library defines this for functions which it implements
5292 to always fail with ENOSYS. Some functions are actually named
5293 something starting with __ and the normal name is an alias. */
5294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 eval "ac_cv_func_$ac_func=yes"
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5309 eval "ac_cv_func_$ac_func=no"
5314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5317 cat >> confdefs.h <<EOF
5318 #define $ac_tr_func 1
5322 echo "$ac_t""no" 1>&6
5328 for ac_func in K_open kvm_open memcpy memmove memset
5330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_func" >&5
5332 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char $ac_func(); below. */
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5349 /* The GNU C library defines this for functions which it implements
5350 to always fail with ENOSYS. Some functions are actually named
5351 something starting with __ and the normal name is an alias. */
5352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 eval "ac_cv_func_$ac_func=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_func_$ac_func=no"
5372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5375 cat >> confdefs.h <<EOF
5376 #define $ac_tr_func 1
5380 echo "$ac_t""no" 1>&6
5386 # Just stubs. Idiots.
5388 *) for ac_func in mkstemp
5390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5391 echo "configure:5392: checking for $ac_func" >&5
5392 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 /* System header to define __stub macros and hopefully few prototypes,
5399 which can conflict with char $ac_func(); below. */
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5409 /* The GNU C library defines this for functions which it implements
5410 to always fail with ENOSYS. Some functions are actually named
5411 something starting with __ and the normal name is an alias. */
5412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422 eval "ac_cv_func_$ac_func=yes"
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5427 eval "ac_cv_func_$ac_func=no"
5432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5433 echo "$ac_t""yes" 1>&6
5434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5435 cat >> confdefs.h <<EOF
5436 #define $ac_tr_func 1
5440 echo "$ac_t""no" 1>&6
5446 for ac_func in mktime
5448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5449 echo "configure:5450: checking for $ac_func" >&5
5450 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5456 /* System header to define __stub macros and hopefully few prototypes,
5457 which can conflict with char $ac_func(); below. */
5459 /* Override any gcc2 internal prototype to avoid an error. */
5460 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5467 /* The GNU C library defines this for functions which it implements
5468 to always fail with ENOSYS. Some functions are actually named
5469 something starting with __ and the normal name is an alias. */
5470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5480 eval "ac_cv_func_$ac_func=yes"
5482 echo "configure: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5485 eval "ac_cv_func_$ac_func=no"
5490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5491 echo "$ac_t""yes" 1>&6
5492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5493 cat >> confdefs.h <<EOF
5494 #define $ac_tr_func 1
5498 echo "$ac_t""no" 1>&6
5499 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5506 # Just a stub. Idiots.
5509 # Just stubs in Irix. Idiots.
5512 # Just stubs. Idiots.
5514 alpha*-dec-osf4*|alpha*-dec-osf5*)
5515 # mlockall is there, as a #define calling memlk via <sys/mman.h>
5516 # Not easy to test for - cheat.
5517 for ac_func in memlk
5519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_func" >&5
5521 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 /* System header to define __stub macros and hopefully few prototypes,
5528 which can conflict with char $ac_func(); below. */
5530 /* Override any gcc2 internal prototype to avoid an error. */
5531 /* We use char because int might match the return type of a gcc2
5532 builtin and then its argument prototype would still apply. */
5538 /* The GNU C library defines this for functions which it implements
5539 to always fail with ENOSYS. Some functions are actually named
5540 something starting with __ and the normal name is an alias. */
5541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5549 if { (eval echo configure:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551 eval "ac_cv_func_$ac_func=yes"
5553 echo "configure: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5556 eval "ac_cv_func_$ac_func=no"
5561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5562 echo "$ac_t""yes" 1>&6
5563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5564 cat >> confdefs.h <<EOF
5565 #define $ac_tr_func 1
5567 ac_cv_func_mlockall='yes'
5569 echo "$ac_t""no" 1>&6
5573 for ac_func in mlockall
5575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_func" >&5
5577 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 /* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char $ac_func(); below. */
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5607 eval "ac_cv_func_$ac_func=yes"
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5612 eval "ac_cv_func_$ac_func=no"
5617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5620 cat >> confdefs.h <<EOF
5621 #define $ac_tr_func 1
5625 echo "$ac_t""no" 1>&6
5630 *) for ac_func in mlockall
5632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5633 echo "configure:5634: checking for $ac_func" >&5
5634 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5637 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5640 /* System header to define __stub macros and hopefully few prototypes,
5641 which can conflict with char $ac_func(); below. */
5643 /* Override any gcc2 internal prototype to avoid an error. */
5644 /* We use char because int might match the return type of a gcc2
5645 builtin and then its argument prototype would still apply. */
5651 /* The GNU C library defines this for functions which it implements
5652 to always fail with ENOSYS. Some functions are actually named
5653 something starting with __ and the normal name is an alias. */
5654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5664 eval "ac_cv_func_$ac_func=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 eval "ac_cv_func_$ac_func=no"
5674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5677 cat >> confdefs.h <<EOF
5678 #define $ac_tr_func 1
5682 echo "$ac_t""no" 1>&6
5688 for ac_func in nice nlist
5690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5691 echo "configure:5692: checking for $ac_func" >&5
5692 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698 /* System header to define __stub macros and hopefully few prototypes,
5699 which can conflict with char $ac_func(); below. */
5701 /* Override any gcc2 internal prototype to avoid an error. */
5702 /* We use char because int might match the return type of a gcc2
5703 builtin and then its argument prototype would still apply. */
5709 /* The GNU C library defines this for functions which it implements
5710 to always fail with ENOSYS. Some functions are actually named
5711 something starting with __ and the normal name is an alias. */
5712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5722 eval "ac_cv_func_$ac_func=yes"
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5727 eval "ac_cv_func_$ac_func=no"
5732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5735 cat >> confdefs.h <<EOF
5736 #define $ac_tr_func 1
5740 echo "$ac_t""no" 1>&6
5748 *) for ac_func in ntp_adjtime ntp_gettime
5750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5751 echo "configure:5752: checking for $ac_func" >&5
5752 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char $ac_func(); below. */
5761 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5769 /* The GNU C library defines this for functions which it implements
5770 to always fail with ENOSYS. Some functions are actually named
5771 something starting with __ and the normal name is an alias. */
5772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5780 if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5782 eval "ac_cv_func_$ac_func=yes"
5784 echo "configure: failed program was:" >&5
5785 cat conftest.$ac_ext >&5
5787 eval "ac_cv_func_$ac_func=no"
5792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5793 echo "$ac_t""yes" 1>&6
5794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5795 cat >> confdefs.h <<EOF
5796 #define $ac_tr_func 1
5800 echo "$ac_t""no" 1>&6
5806 for ac_func in plock pututline pututxline rtprio
5808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5809 echo "configure:5810: checking for $ac_func" >&5
5810 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char $ac_func(); below. */
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5827 /* The GNU C library defines this for functions which it implements
5828 to always fail with ENOSYS. Some functions are actually named
5829 something starting with __ and the normal name is an alias. */
5830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5840 eval "ac_cv_func_$ac_func=yes"
5842 echo "configure: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5845 eval "ac_cv_func_$ac_func=no"
5850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5851 echo "$ac_t""yes" 1>&6
5852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5853 cat >> confdefs.h <<EOF
5854 #define $ac_tr_func 1
5858 echo "$ac_t""no" 1>&6
5862 for ac_func in random srandom mrand48 srand48
5864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5865 echo "configure:5866: checking for $ac_func" >&5
5866 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5872 /* System header to define __stub macros and hopefully few prototypes,
5873 which can conflict with char $ac_func(); below. */
5875 /* Override any gcc2 internal prototype to avoid an error. */
5876 /* We use char because int might match the return type of a gcc2
5877 builtin and then its argument prototype would still apply. */
5883 /* The GNU C library defines this for functions which it implements
5884 to always fail with ENOSYS. Some functions are actually named
5885 something starting with __ and the normal name is an alias. */
5886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5896 eval "ac_cv_func_$ac_func=yes"
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5901 eval "ac_cv_func_$ac_func=no"
5906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5909 cat >> confdefs.h <<EOF
5910 #define $ac_tr_func 1
5914 echo "$ac_t""no" 1>&6
5920 # Just a stub in AIX 4. Idiots.
5923 # Just stubs in solaris2.5. Idiots.
5925 *) for ac_func in sched_setscheduler
5927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5928 echo "configure:5929: checking for $ac_func" >&5
5929 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 /* System header to define __stub macros and hopefully few prototypes,
5936 which can conflict with char $ac_func(); below. */
5938 /* Override any gcc2 internal prototype to avoid an error. */
5939 /* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 eval "ac_cv_func_$ac_func=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 eval "ac_cv_func_$ac_func=no"
5969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5972 cat >> confdefs.h <<EOF
5973 #define $ac_tr_func 1
5977 echo "$ac_t""no" 1>&6
5983 for ac_func in setlinebuf
5985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5986 echo "configure:5987: checking for $ac_func" >&5
5987 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 /* System header to define __stub macros and hopefully few prototypes,
5994 which can conflict with char $ac_func(); below. */
5996 /* Override any gcc2 internal prototype to avoid an error. */
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
6004 /* The GNU C library defines this for functions which it implements
6005 to always fail with ENOSYS. Some functions are actually named
6006 something starting with __ and the normal name is an alias. */
6007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 eval "ac_cv_func_$ac_func=yes"
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 eval "ac_cv_func_$ac_func=no"
6027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6028 echo "$ac_t""yes" 1>&6
6029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6030 cat >> confdefs.h <<EOF
6031 #define $ac_tr_func 1
6035 echo "$ac_t""no" 1>&6
6039 for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction
6041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6042 echo "configure:6043: checking for $ac_func" >&5
6043 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 cat > conftest.$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6049 /* System header to define __stub macros and hopefully few prototypes,
6050 which can conflict with char $ac_func(); below. */
6052 /* Override any gcc2 internal prototype to avoid an error. */
6053 /* We use char because int might match the return type of a gcc2
6054 builtin and then its argument prototype would still apply. */
6060 /* The GNU C library defines this for functions which it implements
6061 to always fail with ENOSYS. Some functions are actually named
6062 something starting with __ and the normal name is an alias. */
6063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6073 eval "ac_cv_func_$ac_func=yes"
6075 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6078 eval "ac_cv_func_$ac_func=no"
6083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6084 echo "$ac_t""yes" 1>&6
6085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6086 cat >> confdefs.h <<EOF
6087 #define $ac_tr_func 1
6091 echo "$ac_t""no" 1>&6
6095 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
6097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6098 echo "configure:6099: checking for $ac_func" >&5
6099 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6100 echo $ac_n "(cached) $ac_c" 1>&6
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 /* System header to define __stub macros and hopefully few prototypes,
6106 which can conflict with char $ac_func(); below. */
6108 /* Override any gcc2 internal prototype to avoid an error. */
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6116 /* The GNU C library defines this for functions which it implements
6117 to always fail with ENOSYS. Some functions are actually named
6118 something starting with __ and the normal name is an alias. */
6119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6127 if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6129 eval "ac_cv_func_$ac_func=yes"
6131 echo "configure: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6134 eval "ac_cv_func_$ac_func=no"
6139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6140 echo "$ac_t""yes" 1>&6
6141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6142 cat >> confdefs.h <<EOF
6143 #define $ac_tr_func 1
6147 echo "$ac_t""no" 1>&6
6151 for ac_func in strerror
6153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_func" >&5
6155 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6161 /* System header to define __stub macros and hopefully few prototypes,
6162 which can conflict with char $ac_func(); below. */
6164 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6172 /* The GNU C library defines this for functions which it implements
6173 to always fail with ENOSYS. Some functions are actually named
6174 something starting with __ and the normal name is an alias. */
6175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6183 if { (eval echo configure:6184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6185 eval "ac_cv_func_$ac_func=yes"
6187 echo "configure: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6190 eval "ac_cv_func_$ac_func=no"
6195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6198 cat >> confdefs.h <<EOF
6199 #define $ac_tr_func 1
6203 echo "$ac_t""no" 1>&6
6204 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
6211 # Just stubs. Idiots.
6214 # Just stubs. Idiots.
6217 # Just stubs. Idiots.
6219 *) for ac_func in timer_create timer_settime
6221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6222 echo "configure:6223: checking for $ac_func" >&5
6223 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6224 echo $ac_n "(cached) $ac_c" 1>&6
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6229 /* System header to define __stub macros and hopefully few prototypes,
6230 which can conflict with char $ac_func(); below. */
6232 /* Override any gcc2 internal prototype to avoid an error. */
6233 /* We use char because int might match the return type of a gcc2
6234 builtin and then its argument prototype would still apply. */
6240 /* The GNU C library defines this for functions which it implements
6241 to always fail with ENOSYS. Some functions are actually named
6242 something starting with __ and the normal name is an alias. */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6253 eval "ac_cv_func_$ac_func=yes"
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6258 eval "ac_cv_func_$ac_func=no"
6263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6264 echo "$ac_t""yes" 1>&6
6265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6266 cat >> confdefs.h <<EOF
6267 #define $ac_tr_func 1
6271 echo "$ac_t""no" 1>&6
6281 *) for ac_func in umask
6283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6284 echo "configure:6285: checking for $ac_func" >&5
6285 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6291 /* System header to define __stub macros and hopefully few prototypes,
6292 which can conflict with char $ac_func(); below. */
6294 /* Override any gcc2 internal prototype to avoid an error. */
6295 /* We use char because int might match the return type of a gcc2
6296 builtin and then its argument prototype would still apply. */
6302 /* The GNU C library defines this for functions which it implements
6303 to always fail with ENOSYS. Some functions are actually named
6304 something starting with __ and the normal name is an alias. */
6305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6313 if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6315 eval "ac_cv_func_$ac_func=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_func_$ac_func=no"
6325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6328 cat >> confdefs.h <<EOF
6329 #define $ac_tr_func 1
6333 echo "$ac_t""no" 1>&6
6339 for ac_func in uname updwtmp updwtmpx vsprintf
6341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6342 echo "configure:6343: checking for $ac_func" >&5
6343 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func(); below. */
6352 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6360 /* The GNU C library defines this for functions which it implements
6361 to always fail with ENOSYS. Some functions are actually named
6362 something starting with __ and the normal name is an alias. */
6363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6371 if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6373 eval "ac_cv_func_$ac_func=yes"
6375 echo "configure: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6378 eval "ac_cv_func_$ac_func=no"
6383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6386 cat >> confdefs.h <<EOF
6387 #define $ac_tr_func 1
6391 echo "$ac_t""no" 1>&6
6396 echo $ac_n "checking number of arguments to gettimeofday()""... $ac_c" 1>&6
6397 echo "configure:6398: checking number of arguments to gettimeofday()" >&5
6398 if eval "test \"\${ac_cv_func_Xettimeofday_nargs+set}\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 #include <sys/time.h>
6407 gettimeofday((struct timeval*)0,(struct timezone*)0);
6408 settimeofday((struct timeval*)0,(struct timezone*)0);
6412 if { (eval echo configure:6413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6414 ac_cv_func_Xettimeofday_nargs=2
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6419 ac_cv_func_Xettimeofday_nargs=1
6425 echo "$ac_t""$ac_cv_func_Xettimeofday_nargs" 1>&6
6426 if test $ac_cv_func_Xettimeofday_nargs = 1; then
6427 cat >> confdefs.h <<\EOF
6428 #define SYSV_TIMEOFDAY 1
6433 echo $ac_n "checking number of arguments taken by setpgrp()""... $ac_c" 1>&6
6434 echo "configure:6435: checking number of arguments taken by setpgrp()" >&5
6435 if eval "test \"\${ac_cv_func_setpgrp_nargs+set}\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6442 #ifdef HAVE_SYS_TYPES_H
6443 # include <sys/types.h>
6445 #ifdef HAVE_UNISTD_H
6446 # include <unistd.h>
6453 if { (eval echo configure:6454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6455 ac_cv_func_setpgrp_nargs=2
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6460 ac_cv_func_setpgrp_nargs=0
6466 echo "$ac_t""$ac_cv_func_setpgrp_nargs" 1>&6
6467 if test $ac_cv_func_setpgrp_nargs = 0; then
6468 cat >> confdefs.h <<\EOF
6469 #define HAVE_SETPGRP_0 1
6475 CFLAGS="$CFLAGS -I$srcdir/include"
6477 echo $ac_n "checking argument pointer type of qsort()'s compare function and base""... $ac_c" 1>&6
6478 echo "configure:6479: checking argument pointer type of qsort()'s compare function and base" >&5
6479 if eval "test \"\${ac_cv_func_qsort_argtype+set}\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6486 #include "l_stdlib.h"
6488 #ifdef HAVE_PROTOTYPES
6495 extern sortfunc P((const void *, const void *));
6498 const void *b; { return 0; }
6502 qsort(base, 2, sizeof(char *), sortfunc);
6506 if { (eval echo configure:6507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6508 ac_cv_func_qsort_argtype=void
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 ac_cv_func_qsort_argtype=char
6519 echo "$ac_t""$ac_cv_func_qsort_argtype" 1>&6
6520 case "$ac_cv_func_qsort_argtype" in
6522 cat >> confdefs.h <<\EOF
6523 #define QSORT_USES_VOID_P 1
6531 echo $ac_n "checking if we need to declare 'errno'""... $ac_c" 1>&6
6532 echo "configure:6533: checking if we need to declare 'errno'" >&5
6533 if eval "test \"\${ac_cv_decl_errno+set}\" = set"; then
6534 echo $ac_n "(cached) $ac_c" 1>&6
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6546 if { (eval echo configure:6547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 ac_cv_decl_errno=yes
6558 echo "$ac_t""$ac_cv_decl_errno" 1>&6
6559 case "$ac_cv_decl_errno" in
6560 yes) cat >> confdefs.h <<\EOF
6561 #define DECL_ERRNO 1
6566 echo $ac_n "checking if we may declare 'h_errno'""... $ac_c" 1>&6
6567 echo "configure:6568: checking if we may declare 'h_errno'" >&5
6568 if eval "test \"\${ac_cv_decl_h_errno+set}\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6574 #include <sys/types.h>
6575 #ifdef HAVE_NETINET_IN_H
6576 #include <netinet/in.h>
6578 #ifdef HAVE_ARPA_NAMESER_H
6579 #include <arpa/nameser.h>
6584 #ifdef HAVE_RESOLV_H
6591 if { (eval echo configure:6592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6593 ac_cv_decl_h_errno=yes
6595 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5
6598 ac_cv_decl_h_errno=no
6603 echo "$ac_t""$ac_cv_decl_h_errno" 1>&6
6604 case "$ac_cv_decl_h_errno" in
6605 yes) cat >> confdefs.h <<\EOF
6606 #define DECL_H_ERRNO 1
6611 echo $ac_n "checking if declaring 'char *sys_errlist' is ok""... $ac_c" 1>&6
6612 echo "configure:6613: checking if declaring 'char *sys_errlist' is ok" >&5
6613 if eval "test \"\${ac_cv_decl_sys_errlist+set}\" = set"; then
6614 echo $ac_n "(cached) $ac_c" 1>&6
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6624 extern char *sys_errlist[];
6628 if { (eval echo configure:6629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6630 ac_cv_decl_sys_errlist=yes
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 ac_cv_decl_sys_errlist=no
6640 echo "$ac_t""$ac_cv_decl_sys_errlist" 1>&6
6641 case "$ac_cv_decl_sys_errlist" in
6642 yes) cat >> confdefs.h <<\EOF
6643 #define CHAR_SYS_ERRLIST 1
6648 echo $ac_n "checking if declaring 'syscall()' is ok""... $ac_c" 1>&6
6649 echo "configure:6650: checking if declaring 'syscall()' is ok" >&5
6650 if eval "test \"\${ac_cv_decl_syscall+set}\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure"
6655 #include "confdefs.h"
6657 #ifdef HAVE_SYS_TYPES_H
6658 # include <sys/types.h>
6660 #ifdef HAVE_UNISTD_H
6661 # include <unistd.h>
6663 #ifdef HAVE_PROTOTYPES
6670 extern int syscall P((int, ...));
6673 if { (eval echo configure:6674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6675 ac_cv_decl_syscall=yes
6677 echo "configure: failed program was:" >&5
6678 cat conftest.$ac_ext >&5
6680 ac_cv_decl_syscall=no
6685 echo "$ac_t""$ac_cv_decl_syscall" 1>&6
6686 case "$ac_cv_decl_syscall" in
6687 yes) cat >> confdefs.h <<\EOF
6688 #define DECL_SYSCALL 1
6695 cat >> confdefs.h <<\EOF
6696 #define DECL_PLOCK_0 1
6699 cat >> confdefs.h <<\EOF
6700 #define DECL_STIME_0 1
6705 cat >> confdefs.h <<\EOF
6706 #define DECL_ADJTIME_0 1
6709 cat >> confdefs.h <<\EOF
6710 #define DECL_BZERO_0 1
6713 cat >> confdefs.h <<\EOF
6714 #define DECL_IOCTL_0 1
6717 cat >> confdefs.h <<\EOF
6718 #define DECL_IPC_0 1
6721 cat >> confdefs.h <<\EOF
6722 #define DECL_MEMMOVE_0 1
6725 cat >> confdefs.h <<\EOF
6726 #define DECL_MKTEMP_0 1
6729 cat >> confdefs.h <<\EOF
6730 #define DECL_RENAME_0 1
6733 cat >> confdefs.h <<\EOF
6734 #define DECL_SELECT_0 1
6737 cat >> confdefs.h <<\EOF
6738 #define DECL_SETITIMER_0 1
6741 cat >> confdefs.h <<\EOF
6742 #define DECL_SETPRIORITY_0 1
6745 cat >> confdefs.h <<\EOF
6746 #define DECL_STDIO_0 1
6749 cat >> confdefs.h <<\EOF
6750 #define DECL_STRTOL_0 1
6753 cat >> confdefs.h <<\EOF
6754 #define DECL_SYSLOG_0 1
6757 cat >> confdefs.h <<\EOF
6758 #define DECL_TIME_0 1
6761 cat >> confdefs.h <<\EOF
6762 #define DECL_TIMEOFDAY_0 1
6765 cat >> confdefs.h <<\EOF
6766 #define DECL_TOLOWER_0 1
6771 cat >> confdefs.h <<\EOF
6772 #define DECL_MKSTEMP_0 1
6775 cat >> confdefs.h <<\EOF
6776 #define DECL_SETPRIORITY_1 1
6781 cat >> confdefs.h <<\EOF
6782 #define DECL_TIMEOFDAY_0 1
6789 cat >> confdefs.h <<\EOF
6790 #define DECL_ADJTIME_0 1
6793 cat >> confdefs.h <<\EOF
6794 #define DECL_BCOPY_0 1
6797 cat >> confdefs.h <<\EOF
6798 #define DECL_BZERO_0 1
6801 cat >> confdefs.h <<\EOF
6802 #define DECL_IOCTL_0 1
6805 cat >> confdefs.h <<\EOF
6806 #define DECL_IPC_0 1
6809 cat >> confdefs.h <<\EOF
6810 #define DECL_MEMMOVE_0 1
6813 cat >> confdefs.h <<\EOF
6814 #define DECL_MKTEMP_0 1
6817 cat >> confdefs.h <<\EOF
6818 #define DECL_MKSTEMP_0 1
6821 cat >> confdefs.h <<\EOF
6822 #define DECL_MRAND48_0 1
6825 cat >> confdefs.h <<\EOF
6826 #define DECL_RENAME_0 1
6829 cat >> confdefs.h <<\EOF
6830 #define DECL_SELECT_0 1
6833 cat >> confdefs.h <<\EOF
6834 #define DECL_SETITIMER_0 1
6837 cat >> confdefs.h <<\EOF
6838 #define DECL_SETPRIORITY_0 1
6841 cat >> confdefs.h <<\EOF
6842 #define DECL_SIGVEC_0 1
6845 cat >> confdefs.h <<\EOF
6846 #define DECL_SRAND48_0 1
6849 case "`basename $ac_cv_prog_CC`" in
6851 *) cat >> confdefs.h <<\EOF
6852 #define DECL_STDIO_0 1
6857 cat >> confdefs.h <<\EOF
6858 #define DECL_STRTOL_0 1
6861 cat >> confdefs.h <<\EOF
6862 #define DECL_SYSLOG_0 1
6865 cat >> confdefs.h <<\EOF
6866 #define DECL_TIME_0 1
6869 cat >> confdefs.h <<\EOF
6870 #define DECL_TIMEOFDAY_0 1
6873 cat >> confdefs.h <<\EOF
6874 #define DECL_TOLOWER_0 1
6877 cat >> confdefs.h <<\EOF
6878 #define DECL_TOUPPER_0 1
6883 cat >> confdefs.h <<\EOF
6884 #define DECL_ADJTIME_0 1
6887 cat >> confdefs.h <<\EOF
6888 #define DECL_BZERO_0 1
6891 cat >> confdefs.h <<\EOF
6892 #define DECL_CFSETISPEED_0 1
6895 cat >> confdefs.h <<\EOF
6896 #define DECL_IOCTL_0 1
6899 cat >> confdefs.h <<\EOF
6900 #define DECL_IPC_0 1
6903 cat >> confdefs.h <<\EOF
6904 #define DECL_MKTEMP_0 1
6907 cat >> confdefs.h <<\EOF
6908 #define DECL_MRAND48_0 1
6911 cat >> confdefs.h <<\EOF
6912 #define DECL_NLIST_0 1
6915 cat >> confdefs.h <<\EOF
6916 #define DECL_PLOCK_0 1
6919 cat >> confdefs.h <<\EOF
6920 #define DECL_SELECT_0 1
6923 cat >> confdefs.h <<\EOF
6924 #define DECL_SETITIMER_0 1
6927 cat >> confdefs.h <<\EOF
6928 #define DECL_SETPRIORITY_0 1
6931 cat >> confdefs.h <<\EOF
6932 #define DECL_SRAND48_0 1
6935 cat >> confdefs.h <<\EOF
6936 #define DECL_STIME_0 1
6939 cat >> confdefs.h <<\EOF
6940 #define DECL_SYSLOG_0 1
6943 cat >> confdefs.h <<\EOF
6944 #define DECL_TIMEOFDAY_0 1
6952 cat >> confdefs.h <<\EOF
6953 #define TERMIOS_NEEDS__SVID3 1
6959 echo $ac_n "checking if we should use a streams device for ifconfig""... $ac_c" 1>&6
6960 echo "configure:6961: checking if we should use a streams device for ifconfig" >&5
6961 if eval "test \"\${ac_cv_var_use_streams_device_for_ifconfig+set}\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6964 ac_cv_var_use_streams_device_for_ifconfig=no
6967 echo "$ac_t""$ac_cv_var_use_streams_device_for_ifconfig" 1>&6
6969 echo $ac_n "checking if we need extra room for SO_RCVBUF""... $ac_c" 1>&6
6970 echo "configure:6971: checking if we need extra room for SO_RCVBUF" >&5
6971 if eval "test \"\${ac_cv_var_rcvbuf_slop+set}\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6980 ac_cv_var_rcvbuf_slop=$ans
6983 echo "$ac_t""$ac_cv_var_rcvbuf_slop" 1>&6
6984 case "$ac_cv_var_rcvbuf_slop" in
6985 yes) cat >> confdefs.h <<\EOF
6986 #define NEED_RCVBUF_SLOP 1
6991 echo $ac_n "checking if we will open the broadcast socket""... $ac_c" 1>&6
6992 echo "configure:6993: checking if we will open the broadcast socket" >&5
6993 if eval "test \"\${ac_cv_var_open_bcast_socket+set}\" = set"; then
6994 echo $ac_n "(cached) $ac_c" 1>&6
7005 ac_cv_var_open_bcast_socket=$ans
7008 echo "$ac_t""$ac_cv_var_open_bcast_socket" 1>&6
7009 case "$ac_cv_var_open_bcast_socket" in
7010 yes) cat >> confdefs.h <<\EOF
7011 #define OPEN_BCAST_SOCKET 1
7016 echo $ac_n "checking if we want the HPUX version of FindConfig()""... $ac_c" 1>&6
7017 echo "configure:7018: checking if we want the HPUX version of FindConfig()" >&5
7018 if eval "test \"\${ac_cv_var_hpux_findconfig+set}\" = set"; then
7019 echo $ac_n "(cached) $ac_c" 1>&6
7027 ac_cv_var_hpux_findconfig=$ans
7030 echo "$ac_t""$ac_cv_var_hpux_findconfig" 1>&6
7031 case "$ac_cv_var_hpux_findconfig" in
7032 yes) cat >> confdefs.h <<\EOF
7033 #define NEED_HPUX_FINDCONFIG 1
7038 echo $ac_n "checking if process groups are set with -pid""... $ac_c" 1>&6
7039 echo "configure:7040: checking if process groups are set with -pid" >&5
7040 if eval "test \"\${ac_cv_arg_setpgrp_negpid+set}\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7063 ac_cv_arg_setpgrp_negpid=$ans
7066 echo "$ac_t""$ac_cv_arg_setpgrp_negpid" 1>&6
7067 case "$ac_cv_arg_setpgrp_negpid" in
7068 yes) cat >> confdefs.h <<\EOF
7069 #define UDP_BACKWARDS_SETOWN 1
7074 echo $ac_n "checking if we need a ctty for F_SETOWN""... $ac_c" 1>&6
7075 echo "configure:7076: checking if we need a ctty for F_SETOWN" >&5
7076 if eval "test \"\${ac_cv_func_ctty_for_f_setown+set}\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7095 ac_cv_func_ctty_for_f_setown=$ans
7098 echo "$ac_t""$ac_cv_func_ctty_for_f_setown" 1>&6
7099 case "$ac_cv_func_ctty_for_f_setown" in
7100 yes) cat >> confdefs.h <<\EOF
7101 #define USE_FSETOWNCTTY 1
7107 echo $ac_n "checking if we'll use clock_settime or settimeofday or stime""... $ac_c" 1>&6
7108 echo "configure:7109: checking if we'll use clock_settime or settimeofday or stime" >&5
7109 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
7112 ans='clock_settime()'
7115 ntp_warning='But clock_settime() would be better (if we had it)'
7116 ans='settimeofday()'
7119 ntp_warning='Which is the worst of the three'
7124 $target) ntp_warning='Which leaves us with nothing to use!'
7129 echo "$ac_t""$ans" 1>&6
7130 case "$ntp_warning" in
7132 *) echo "configure: warning: *** $ntp_warning ***" 1>&2
7136 echo $ac_n "checking if we have a losing syscall()""... $ac_c" 1>&6
7137 echo "configure:7138: checking if we have a losing syscall()" >&5
7138 if eval "test \"\${ac_cv_var_syscall_bug+set}\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7148 ac_cv_var_syscall_bug=$ans
7151 echo "$ac_t""$ac_cv_var_syscall_bug" 1>&6
7152 case "$ac_cv_var_syscall_bug" in
7153 yes) cat >> confdefs.h <<\EOF
7154 #define SYSCALL_BUG 1
7159 echo $ac_n "checking for Streams/TLI""... $ac_c" 1>&6
7160 echo "configure:7161: checking for Streams/TLI" >&5
7161 if eval "test \"\${ac_cv_var_streams_tli+set}\" = set"; then
7162 echo $ac_n "(cached) $ac_c" 1>&6
7164 case "$ac_cv_header_sys_stropts_h" in
7167 # There must be a better way...
7175 ac_cv_var_streams_tli=$ans
7178 echo "$ac_t""$ac_cv_var_streams_tli" 1>&6
7179 case "$ac_cv_var_streams_tli" in
7181 cat >> confdefs.h <<\EOF
7182 #define STREAMS_TLI 1
7188 echo $ac_n "checking for SIGIO""... $ac_c" 1>&6
7189 echo "configure:7190: checking for SIGIO" >&5
7190 if eval "test \"\${ac_cv_hdr_def_sigio+set}\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7193 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 egrep "yes" >/dev/null 2>&1; then
7205 ac_cv_hdr_def_sigio=yes
7208 ac_cv_hdr_def_sigio=no
7214 echo "$ac_t""$ac_cv_hdr_def_sigio" 1>&6
7216 echo $ac_n "checking if we want to use signalled IO""... $ac_c" 1>&6
7217 echo "configure:7218: checking if we want to use signalled IO" >&5
7218 if eval "test \"\${ac_cv_var_signalled_io+set}\" = set"; then
7219 echo $ac_n "(cached) $ac_c" 1>&6
7222 case "$ac_cv_hdr_def_sigio" in
7226 alpha*-dec-osf4*|alpha*-dec-osf5*)
7256 ac_cv_var_signalled_io=$ans
7259 echo "$ac_t""$ac_cv_var_signalled_io" 1>&6
7260 case "$ac_cv_var_signalled_io" in
7261 yes) cat >> confdefs.h <<\EOF
7262 #define HAVE_SIGNALED_IO 1
7267 echo $ac_n "checking for SIGPOLL""... $ac_c" 1>&6
7268 echo "configure:7269: checking for SIGPOLL" >&5
7269 if eval "test \"\${ac_cv_hdr_def_sigpoll+set}\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7272 cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282 egrep "yes" >/dev/null 2>&1; then
7284 ac_cv_hdr_def_sigpoll=yes
7287 ac_cv_hdr_def_sigpoll=no
7293 echo "$ac_t""$ac_cv_hdr_def_sigpoll" 1>&6
7295 echo $ac_n "checking for SIGSYS""... $ac_c" 1>&6
7296 echo "configure:7297: checking for SIGSYS" >&5
7297 if eval "test \"\${ac_cv_hdr_def_sigsys+set}\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7310 egrep "yes" >/dev/null 2>&1; then
7312 ac_cv_hdr_def_sigsys=yes
7315 ac_cv_hdr_def_sigsys=no
7321 echo "$ac_t""$ac_cv_hdr_def_sigsys" 1>&6
7323 echo $ac_n "checking if we can use SIGPOLL for UDP I/O""... $ac_c" 1>&6
7324 echo "configure:7325: checking if we can use SIGPOLL for UDP I/O" >&5
7325 if eval "test \"\${ac_cv_var_use_udp_sigpoll+set}\" = set"; then
7326 echo $ac_n "(cached) $ac_c" 1>&6
7329 case "$ac_cv_hdr_def_sigpoll" in
7367 ac_cv_var_use_udp_sigpoll=$ans
7370 echo "$ac_t""$ac_cv_var_use_udp_sigpoll" 1>&6
7371 case "$ac_cv_var_use_udp_sigpoll" in
7372 yes) cat >> confdefs.h <<\EOF
7373 #define USE_UDP_SIGPOLL 1
7378 echo $ac_n "checking if we can use SIGPOLL for TTY I/O""... $ac_c" 1>&6
7379 echo "configure:7380: checking if we can use SIGPOLL for TTY I/O" >&5
7380 if eval "test \"\${ac_cv_var_use_tty_sigpoll+set}\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7384 case "$ac_cv_hdr_def_sigpoll" in
7422 ac_cv_var_use_tty_sigpoll=$ans
7425 echo "$ac_t""$ac_cv_var_use_tty_sigpoll" 1>&6
7426 case "$ac_cv_var_use_tty_sigpoll" in
7427 yes) cat >> confdefs.h <<\EOF
7428 #define USE_TTY_SIGPOLL 1
7433 case "$ac_cv_header_sys_sio_h" in
7435 echo $ac_n "checking sys/sio.h for TIOCDCDTIMESTAMP""... $ac_c" 1>&6
7436 echo "configure:7437: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
7437 if eval "test \"\${ac_cv_hdr_def_tiocdcdtimestamp+set}\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7440 cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7443 #include <sys/sio.h>
7444 #ifdef TIOCDCDTIMESTAMP
7449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7450 egrep "yes" >/dev/null 2>&1; then
7452 ac_cv_hdr_def_tiocdcdtimestamp=yes
7455 ac_cv_hdr_def_tiocdcdtimestamp=no
7461 echo "$ac_t""$ac_cv_hdr_def_tiocdcdtimestamp" 1>&6
7465 echo $ac_n "checking if nlist() values might require extra indirection""... $ac_c" 1>&6
7466 echo "configure:7467: checking if nlist() values might require extra indirection" >&5
7467 if eval "test \"\${ac_cv_var_nlist_extra_indirection+set}\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7476 ac_cv_var_nlist_extra_indirection=$ans
7479 echo "$ac_t""$ac_cv_var_nlist_extra_indirection" 1>&6
7480 case "$ac_cv_var_nlist_extra_indirection" in
7481 yes) cat >> confdefs.h <<\EOF
7482 #define NLIST_EXTRA_INDIRECTION 1
7487 echo $ac_n "checking for a minimum recommended value of tickadj""... $ac_c" 1>&6
7488 echo "configure:7489: checking for a minimum recommended value of tickadj" >&5
7489 if eval "test \"\${ac_cv_var_min_rec_tickadj+set}\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7498 ac_cv_var_min_rec_tickadj=$ans
7501 echo "$ac_t""$ac_cv_var_min_rec_tickadj" 1>&6
7502 case "$ac_cv_var_min_rec_tickadj" in
7504 *) cat >> confdefs.h <<EOF
7505 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
7510 echo $ac_n "checking if the TTY code permits PARENB and IGNPAR""... $ac_c" 1>&6
7511 echo "configure:7512: checking if the TTY code permits PARENB and IGNPAR" >&5
7512 if eval "test \"\${ac_cv_var_no_parenb_ignpar+set}\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7524 ac_cv_var_no_parenb_ignpar=$ans
7527 echo "$ac_t""$ac_cv_var_no_parenb_ignpar" 1>&6
7528 case "$ac_cv_var_no_parenb_ignpar" in
7529 yes) cat >> confdefs.h <<\EOF
7530 #define NO_PARENB_IGNPAR 1
7535 echo $ac_n "checking if we're including debugging code""... $ac_c" 1>&6
7536 echo "configure:7537: checking if we're including debugging code" >&5
7537 # Check whether --enable-debugging or --disable-debugging was given.
7538 if test "${enable_debugging+set}" = set; then
7539 enableval="$enable_debugging"
7545 if test "$ntp_ok" = "yes"; then
7546 cat >> confdefs.h <<\EOF
7551 echo "$ac_t""$ntp_ok" 1>&6
7553 echo $ac_n "checking for a the number of minutes in a DST adjustment""... $ac_c" 1>&6
7554 echo "configure:7555: checking for a the number of minutes in a DST adjustment" >&5
7555 # Check whether --enable-dst_minutes or --disable-dst_minutes was given.
7556 if test "${enable_dst_minutes+set}" = set; then
7557 enableval="$enable_dst_minutes"
7563 cat >> confdefs.h <<EOF
7564 #define DSTMINUTES $ans
7567 echo "$ac_t""$ans" 1>&6
7569 echo $ac_n "checking if we have the tty_clk line discipline/streams module""... $ac_c" 1>&6
7570 echo "configure:7571: checking if we have the tty_clk line discipline/streams module" >&5
7571 if eval "test \"\${ac_cv_var_tty_clk+set}\" = set"; then
7572 echo $ac_n "(cached) $ac_c" 1>&6
7574 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
7575 *yes*) ac_cv_var_tty_clk=yes ;;
7579 echo "$ac_t""$ac_cv_var_tty_clk" 1>&6
7580 case "$ac_cv_var_tty_clk" in
7581 yes) cat >> confdefs.h <<\EOF
7587 echo $ac_n "checking for the ppsclock streams module""... $ac_c" 1>&6
7588 echo "configure:7589: checking for the ppsclock streams module" >&5
7589 if eval "test \"\${ac_cv_var_ppsclock+set}\" = set"; then
7590 echo $ac_n "(cached) $ac_c" 1>&6
7592 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
7595 echo "$ac_t""$ac_cv_var_ppsclock" 1>&6
7596 case "$ac_cv_var_ppsclock" in
7597 yes) cat >> confdefs.h <<\EOF
7603 echo $ac_n "checking for kernel multicast support""... $ac_c" 1>&6
7604 echo "configure:7605: checking for kernel multicast support" >&5
7605 if eval "test \"\${ac_cv_var_mcast+set}\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7610 i386-sequent-sysv4) ;;
7611 *) cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7614 #include <netinet/in.h>
7615 #ifdef IP_ADD_MEMBERSHIP
7620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621 egrep "yes" >/dev/null 2>&1; then
7630 echo "$ac_t""$ac_cv_var_mcast" 1>&6
7631 case "$ac_cv_var_mcast" in
7632 yes) cat >> confdefs.h <<\EOF
7638 echo $ac_n "checking availability of ntp_{adj,get}time()""... $ac_c" 1>&6
7639 echo "configure:7640: checking availability of ntp_{adj,get}time()" >&5
7640 if eval "test \"\${ac_cv_var_ntp_syscalls+set}\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 ac_cv_var_ntp_syscalls=no
7644 case "$ac_cv_func___adjtimex" in
7646 ac_cv_var_ntp_syscalls=libc
7648 *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
7650 ac_cv_var_ntp_syscalls=libc
7652 *) cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 #include <sys/syscall.h>
7656 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
7661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7662 egrep "yes" >/dev/null 2>&1; then
7664 ac_cv_var_ntp_syscalls=kernel
7674 echo "$ac_t""$ac_cv_var_ntp_syscalls" 1>&6
7675 case "$ac_cv_var_ntp_syscalls" in
7677 cat >> confdefs.h <<\EOF
7678 #define NTP_SYSCALLS_LIBC 1
7683 cat >> confdefs.h <<\EOF
7684 #define NTP_SYSCALLS_STD 1
7692 echo $ac_n "checking if sys/timex.h has STA_FLL""... $ac_c" 1>&6
7693 echo "configure:7694: checking if sys/timex.h has STA_FLL" >&5
7694 if eval "test \"\${ac_cv_var_sta_fll+set}\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7700 #include <sys/timex.h>
7706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 egrep "yes" >/dev/null 2>&1; then
7709 ac_cv_var_sta_fll=yes
7712 ac_cv_var_sta_fll=no
7718 echo "$ac_t""$ac_cv_var_sta_fll" 1>&6
7720 echo $ac_n "checking if we have kernel PLL support""... $ac_c" 1>&6
7721 echo "configure:7722: checking if we have kernel PLL support" >&5
7722 if eval "test \"\${ac_cv_var_kernel_pll+set}\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7725 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
7727 ac_cv_var_kernel_pll=no
7729 *) ac_cv_var_kernel_pll=yes
7734 echo "$ac_t""$ac_cv_var_kernel_pll" 1>&6
7735 case "$ac_cv_var_kernel_pll" in
7737 cat >> confdefs.h <<\EOF
7738 #define KERNEL_PLL 1
7744 echo $ac_n "checking if SIOCGIFCONF returns buffer size in the buffer""... $ac_c" 1>&6
7745 echo "configure:7746: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
7746 if eval "test \"\${ac_cv_var_size_returned_in_buffer+set}\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7761 ac_cv_var_size_returned_in_buffer=$ans
7764 echo "$ac_t""$ac_cv_var_size_returned_in_buffer" 1>&6
7765 case "$ac_cv_var_size_returned_in_buffer" in
7766 yes) cat >> confdefs.h <<\EOF
7767 #define SIZE_RETURNED_IN_BUFFER 1
7773 echo $ac_n "checking if we want to use MD5 authentication""... $ac_c" 1>&6
7774 echo "configure:7775: checking if we want to use MD5 authentication" >&5
7775 if eval "test \"\${ac_cv_var_use_md5+set}\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 # Check whether --enable-md5 or --disable-md5 was given.
7779 if test "${enable_md5+set}" = set; then
7780 enableval="$enable_md5"
7786 ac_cv_var_use_md5=$ans
7789 echo "$ac_t""$ac_cv_var_use_md5" 1>&6
7790 case "$ac_cv_var_use_md5" in
7791 yes) cat >> confdefs.h <<\EOF
7797 # Check for ioctls TIOCGPPSEV
7798 echo $ac_n "checking ioctl TIOCGPPSEV""... $ac_c" 1>&6
7799 echo "configure:7800: checking ioctl TIOCGPPSEV" >&5
7800 if test "$ac_cv_header_termios_h" = "yes"; then
7801 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 #include <termios.h>
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 egrep "yes" >/dev/null 2>&1; then
7824 if test "$ntp_ok" = "yes"; then
7825 cat >> confdefs.h <<\EOF
7826 #define HAVE_TIOCGPPSEV 1
7829 ac_cv_var_oncore_ok=yes
7831 echo "$ac_t""$ntp_ok" 1>&6
7833 # Check for ioctls TIOCSPPS
7834 echo $ac_n "checking ioctl TIOCSPPS""... $ac_c" 1>&6
7835 echo "configure:7836: checking ioctl TIOCSPPS" >&5
7836 if test "$ac_cv_header_termios_h" = "yes"; then
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 #include <termios.h>
7846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7847 egrep "yes" >/dev/null 2>&1; then
7860 if test "$ntp_ok" = "yes"; then
7861 cat >> confdefs.h <<\EOF
7862 #define HAVE_TIOCSPPS 1
7866 echo "$ac_t""$ntp_ok" 1>&6
7868 # Check for ioctls CIOGETEV
7869 echo $ac_n "checking ioctl CIOGETEV""... $ac_c" 1>&6
7870 echo "configure:7871: checking ioctl CIOGETEV" >&5
7871 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7875 #include <sys/ppsclock.h>
7881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7882 egrep "yes" >/dev/null 2>&1; then
7895 if test "$ntp_ok" = "yes"; then
7896 ac_cv_var_oncore_ok=yes
7897 cat >> confdefs.h <<\EOF
7898 #define HAVE_CIOGETEV 1
7902 echo "$ac_t""$ntp_ok" 1>&6
7904 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
7905 # there is NO way that I can tell to tell if a given OS is using timespec or
7906 # timeval so just set it here for the one case that is KNOWN to use timespec.
7908 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
7910 cat >> confdefs.h <<\EOF
7911 #define HAVE_PPSAPI 1
7914 ac_cv_var_oncore_ok=yes
7915 cat >> confdefs.h <<\EOF
7916 #define HAVE_TIMESPEC 1
7922 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
7923 ac_safe=`echo "linux/serial.h" | sed 'y%./+-%__p_%'`
7924 echo $ac_n "checking for linux/serial.h""... $ac_c" 1>&6
7925 echo "configure:7926: checking for linux/serial.h" >&5
7926 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7929 cat > conftest.$ac_ext <<EOF
7930 #line 7931 "configure"
7931 #include "confdefs.h"
7932 #include <linux/serial.h>
7934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7935 { (eval echo configure:7936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7937 if test -z "$ac_err"; then
7939 eval "ac_cv_header_$ac_safe=yes"
7942 echo "configure: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7945 eval "ac_cv_header_$ac_safe=no"
7949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7950 echo "$ac_t""yes" 1>&6
7953 echo "$ac_t""no" 1>&6
7956 echo $ac_n "checking ioctl TIOCGSERIAL""... $ac_c" 1>&6
7957 echo "configure:7958: checking ioctl TIOCGSERIAL" >&5
7958 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
7960 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure"
7962 #include "confdefs.h"
7963 #include <sys/time.h>
7966 #include <sys/ppsclock.h>
7967 #include <linux/serial.h>
7971 #ifdef ASYNC_PPS_CD_POS
7972 #ifdef ASYNC_PPS_CD_NEG
7982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7983 egrep "yes" >/dev/null 2>&1; then
7995 if test "$ntp_ok" = "yes"; then
7996 cat >> confdefs.h <<\EOF
7997 #define HAVE_TIO_SERIAL_STUFF 1
8001 echo "$ac_t""$ntp_ok" 1>&6
8006 # HPUX only, and by explicit request
8007 echo $ac_n "checking Datum/Bancomm bc635/VME interface""... $ac_c" 1>&6
8008 echo "configure:8009: checking Datum/Bancomm bc635/VME interface" >&5
8009 # Check whether --enable-BANCOMM or --disable-BANCOMM was given.
8010 if test "${enable_BANCOMM+set}" = set; then
8011 enableval="$enable_BANCOMM"
8017 if test "$ntp_ok" = "yes"; then
8019 cat >> confdefs.h <<\EOF
8020 #define CLOCK_BANC 1
8024 echo "$ac_t""$ntp_ok" 1>&6
8025 case "$ntp_ok$target" in
8027 yes*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8030 #HPUX only, and only by explicit request
8031 echo $ac_n "checking TrueTime GPS receiver/VME interface""... $ac_c" 1>&6
8032 echo "configure:8033: checking TrueTime GPS receiver/VME interface" >&5
8033 # Check whether --enable-GPSVME or --disable-GPSVME was given.
8034 if test "${enable_GPSVME+set}" = set; then
8035 enableval="$enable_GPSVME"
8041 if test "$ntp_ok" = "yes"; then
8043 cat >> confdefs.h <<\EOF
8044 #define CLOCK_GPSVME 1
8048 echo "$ac_t""$ntp_ok" 1>&6
8049 case "$ntp_ok$target" in
8051 yes*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8054 echo $ac_n "checking for PCL720 clock support""... $ac_c" 1>&6
8055 echo "configure:8056: checking for PCL720 clock support" >&5
8056 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
8058 cat >> confdefs.h <<\EOF
8059 #define CLOCK_PPS720 1
8068 echo "$ac_t""$ans" 1>&6
8070 echo $ac_n "checking for SHM clock attached thru shared memory""... $ac_c" 1>&6
8071 echo "configure:8072: checking for SHM clock attached thru shared memory" >&5
8072 # Check whether --enable-SHM or --disable-SHM was given.
8073 if test "${enable_SHM+set}" = set; then
8074 enableval="$enable_SHM"
8080 if test "$ntp_ok" = "yes"; then
8082 cat >> confdefs.h <<\EOF
8087 echo "$ac_t""$ntp_ok" 1>&6
8089 echo $ac_n "checking for default inclusion of all suitable non-PARSE clocks""... $ac_c" 1>&6
8090 echo "configure:8091: checking for default inclusion of all suitable non-PARSE clocks" >&5
8091 # Check whether --enable-all-clocks or --disable-all-clocks was given.
8092 if test "${enable_all_clocks+set}" = set; then
8093 enableval="$enable_all_clocks"
8099 echo "$ac_t""$ntp_eac" 1>&6
8101 echo $ac_n "checking if we have support for PARSE clocks""... $ac_c" 1>&6
8102 echo "configure:8103: checking if we have support for PARSE clocks" >&5
8103 case "$ac_cv_header_termio_h$ac_cv_header_termios_h" in
8110 echo "$ac_t""$ntp_canparse" 1>&6
8112 # Requires modem control
8113 echo $ac_n "checking ACTS modem service""... $ac_c" 1>&6
8114 echo "configure:8115: checking ACTS modem service" >&5
8115 # Check whether --enable-ACTS or --disable-ACTS was given.
8116 if test "${enable_ACTS+set}" = set; then
8117 enableval="$enable_ACTS"
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 #include <termios.h>
8124 #ifdef HAVE_SYS_IOCTL_H
8125 #include <sys/ioctl.h>
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 egrep "yes" >/dev/null 2>&1; then
8144 if test "$ntp_ok" = "yes"; then
8146 cat >> confdefs.h <<\EOF
8147 #define CLOCK_ACTS 1
8151 echo "$ac_t""$ntp_ok" 1>&6
8153 echo $ac_n "checking Arbiter 1088A/B GPS receiver""... $ac_c" 1>&6
8154 echo "configure:8155: checking Arbiter 1088A/B GPS receiver" >&5
8155 # Check whether --enable-ARBITER or --disable-ARBITER was given.
8156 if test "${enable_ARBITER+set}" = set; then
8157 enableval="$enable_ARBITER"
8163 if test "$ntp_ok" = "yes"; then
8165 cat >> confdefs.h <<\EOF
8166 #define CLOCK_ARBITER 1
8170 echo "$ac_t""$ntp_ok" 1>&6
8172 echo $ac_n "checking Arcron MSF receiver""... $ac_c" 1>&6
8173 echo "configure:8174: checking Arcron MSF receiver" >&5
8174 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
8175 if test "${enable_ARCRON_MSF+set}" = set; then
8176 enableval="$enable_ARCRON_MSF"
8182 if test "$ntp_ok" = "yes"; then
8184 cat >> confdefs.h <<\EOF
8185 #define CLOCK_ARCRON_MSF 1
8189 echo "$ac_t""$ntp_ok" 1>&6
8191 echo $ac_n "checking Austron 2200A/2201A GPS receiver""... $ac_c" 1>&6
8192 echo "configure:8193: checking Austron 2200A/2201A GPS receiver" >&5
8193 # Check whether --enable-AS2201 or --disable-AS2201 was given.
8194 if test "${enable_AS2201+set}" = set; then
8195 enableval="$enable_AS2201"
8201 if test "$ntp_ok" = "yes"; then
8203 cat >> confdefs.h <<\EOF
8204 #define CLOCK_AS2201 1
8208 echo "$ac_t""$ntp_ok" 1>&6
8210 echo $ac_n "checking PPS interface""... $ac_c" 1>&6
8211 echo "configure:8212: checking PPS interface" >&5
8212 # Check whether --enable-ATOM or --disable-ATOM was given.
8213 if test "${enable_ATOM+set}" = set; then
8214 enableval="$enable_ATOM"
8220 if test "$ntp_ok" = "yes"; then
8222 cat >> confdefs.h <<\EOF
8223 #define CLOCK_ATOM 1
8227 echo "$ac_t""$ntp_ok" 1>&6
8229 echo $ac_n "checking CHU modem/decoder""... $ac_c" 1>&6
8230 echo "configure:8231: checking CHU modem/decoder" >&5
8231 # Check whether --enable-CHU or --disable-CHU was given.
8232 if test "${enable_CHU+set}" = set; then
8233 enableval="$enable_CHU"
8239 if test "$ntp_ok" = "yes"; then
8241 cat >> confdefs.h <<\EOF
8246 echo "$ac_t""$ntp_ok" 1>&6
8247 ac_refclock_chu=$ntp_ok
8249 echo $ac_n "checking CHU audio/decoder""... $ac_c" 1>&6
8250 echo "configure:8251: checking CHU audio/decoder" >&5
8251 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
8252 if test "${enable_AUDIO_CHU+set}" = set; then
8253 enableval="$enable_AUDIO_CHU"
8259 if test "$ntp_ok" = "yes"; then
8260 cat >> confdefs.h <<\EOF
8265 echo "$ac_t""$ntp_ok" 1>&6
8266 case "$ntp_ok$ac_refclock_chu$target" in
8267 yesyes*-*-sunos*) ;;
8268 yesyes*-*-solaris*) ;;
8269 yes*) echo "configure: warning: *** But the expected answer is...no ***" 1>&2 ;;
8273 echo $ac_n "checking Datum Programmable Time System""... $ac_c" 1>&6
8274 echo "configure:8275: checking Datum Programmable Time System" >&5
8275 # Check whether --enable-DATUM or --disable-DATUM was given.
8276 if test "${enable_DATUM+set}" = set; then
8277 enableval="$enable_DATUM"
8280 case "$ac_cv_header_termios_h" in
8289 if test "$ntp_ok" = "yes"; then
8291 cat >> confdefs.h <<\EOF
8292 #define CLOCK_DATUM 1
8296 echo "$ac_t""$ntp_ok" 1>&6
8298 # Requires modem control
8299 echo $ac_n "checking Heath GC-1000 WWV/WWVH receiver""... $ac_c" 1>&6
8300 echo "configure:8301: checking Heath GC-1000 WWV/WWVH receiver" >&5
8301 # Check whether --enable-HEATH or --disable-HEATH was given.
8302 if test "${enable_HEATH+set}" = set; then
8303 enableval="$enable_HEATH"
8306 cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 #include <termios.h>
8310 #ifdef HAVE_SYS_IOCTL_H
8311 #include <sys/ioctl.h>
8318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8319 egrep "yes" >/dev/null 2>&1; then
8330 if test "$ntp_ok" = "yes"; then
8332 cat >> confdefs.h <<\EOF
8333 #define CLOCK_HEATH 1
8337 echo "$ac_t""$ntp_ok" 1>&6
8339 echo $ac_n "checking HP 58503A GPS receiver""... $ac_c" 1>&6
8340 echo "configure:8341: checking HP 58503A GPS receiver" >&5
8341 # Check whether --enable-HPGPS or --disable-HPGPS was given.
8342 if test "${enable_HPGPS+set}" = set; then
8343 enableval="$enable_HPGPS"
8349 if test "$ntp_ok" = "yes"; then
8351 cat >> confdefs.h <<\EOF
8352 #define CLOCK_HPGPS 1
8356 echo "$ac_t""$ntp_ok" 1>&6
8358 echo $ac_n "checking Sun IRIG audio decoder""... $ac_c" 1>&6
8359 echo "configure:8360: checking Sun IRIG audio decoder" >&5
8360 # Check whether --enable-IRIG or --disable-IRIG was given.
8361 if test "${enable_IRIG+set}" = set; then
8362 enableval="$enable_IRIG"
8365 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in
8374 if test "$ntp_ok" = "yes"; then
8376 cat >> confdefs.h <<\EOF
8377 #define CLOCK_IRIG 1
8381 echo "$ac_t""$ntp_ok" 1>&6
8382 case "$ntp_ok$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in
8383 yesnono) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8386 echo $ac_n "checking Leitch CSD 5300 Master Clock System Driver""... $ac_c" 1>&6
8387 echo "configure:8388: checking Leitch CSD 5300 Master Clock System Driver" >&5
8388 # Check whether --enable-LEITCH or --disable-LEITCH was given.
8389 if test "${enable_LEITCH+set}" = set; then
8390 enableval="$enable_LEITCH"
8396 if test "$ntp_ok" = "yes"; then
8398 cat >> confdefs.h <<\EOF
8399 #define CLOCK_LEITCH 1
8403 echo "$ac_t""$ntp_ok" 1>&6
8405 echo $ac_n "checking local clock reference""... $ac_c" 1>&6
8406 echo "configure:8407: checking local clock reference" >&5
8407 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
8408 if test "${enable_LOCAL_CLOCK+set}" = set; then
8409 enableval="$enable_LOCAL_CLOCK"
8415 if test "$ntp_ok" = "yes"; then
8417 cat >> confdefs.h <<\EOF
8418 #define CLOCK_LOCAL 1
8422 echo "$ac_t""$ntp_ok" 1>&6
8424 echo $ac_n "checking EES M201 MSF receiver""... $ac_c" 1>&6
8425 echo "configure:8426: checking EES M201 MSF receiver" >&5
8426 # Check whether --enable-MSFEES or --disable-MSFEES was given.
8427 if test "${enable_MSFEES+set}" = set; then
8428 enableval="$enable_MSFEES"
8434 if test "$ntp_ok" = "yes"; then
8436 cat >> confdefs.h <<\EOF
8437 #define CLOCK_MSFEES 1
8441 echo "$ac_t""$ntp_ok" 1>&6
8444 echo $ac_n "checking Magnavox MX4200 GPS receiver""... $ac_c" 1>&6
8445 echo "configure:8446: checking Magnavox MX4200 GPS receiver" >&5
8446 # Check whether --enable-MX4200 or --disable-MX4200 was given.
8447 if test "${enable_MX4200+set}" = set; then
8448 enableval="$enable_MX4200"
8451 case "$ac_cv_var_ppsclock" in
8452 yes) ntp_ok=$ntp_eac
8459 if test "$ntp_ok" = "yes"; then
8461 cat >> confdefs.h <<\EOF
8462 #define CLOCK_MX4200 1
8466 echo "$ac_t""$ntp_ok" 1>&6
8467 case "$ntp_ok$target" in
8468 yes*-*-ultrix*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8471 echo $ac_n "checking NMEA GPS receiver""... $ac_c" 1>&6
8472 echo "configure:8473: checking NMEA GPS receiver" >&5
8473 # Check whether --enable-NMEA or --disable-NMEA was given.
8474 if test "${enable_NMEA+set}" = set; then
8475 enableval="$enable_NMEA"
8481 if test "$ntp_ok" = "yes"; then
8483 cat >> confdefs.h <<\EOF
8484 #define CLOCK_NMEA 1
8488 echo "$ac_t""$ntp_ok" 1>&6
8490 echo $ac_n "checking for ONCORE Motorola VP/UT Oncore GPS""... $ac_c" 1>&6
8491 echo "configure:8492: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
8492 # Check whether --enable-ONCORE or --disable-ONCORE was given.
8493 if test "${enable_ONCORE+set}" = set; then
8494 enableval="$enable_ONCORE"
8500 case "$ac_cv_var_oncore_ok" in
8503 if test "$ntp_ok" = "yes"; then
8505 cat >> confdefs.h <<\EOF
8506 #define CLOCK_ONCORE 1
8510 echo "$ac_t""$ntp_ok" 1>&6
8512 echo $ac_n "checking for Palisade clock""... $ac_c" 1>&6
8513 echo "configure:8514: checking for Palisade clock" >&5
8514 # Check whether --enable-PALISADE or --disable-PALISADE was given.
8515 if test "${enable_PALISADE+set}" = set; then
8516 enableval="$enable_PALISADE"
8519 case "$ac_cv_header_termios_h" in
8529 if test "$ntp_ok" = "yes"; then
8531 cat >> confdefs.h <<\EOF
8532 #define CLOCK_PALISADE 1
8536 echo "$ac_t""$ntp_ok" 1>&6
8538 echo $ac_n "checking PST/Traconex 1020 WWV/WWVH receiver""... $ac_c" 1>&6
8539 echo "configure:8540: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
8540 # Check whether --enable-PST or --disable-PST was given.
8541 if test "${enable_PST+set}" = set; then
8542 enableval="$enable_PST"
8548 if test "$ntp_ok" = "yes"; then
8550 cat >> confdefs.h <<\EOF
8555 echo "$ac_t""$ntp_ok" 1>&6
8558 echo $ac_n "checking Rockwell Jupiter GPS receiver""... $ac_c" 1>&6
8559 echo "configure:8560: checking Rockwell Jupiter GPS receiver" >&5
8560 # Check whether --enable-JUPITER or --disable-JUPITER was given.
8561 if test "${enable_JUPITER+set}" = set; then
8562 enableval="$enable_JUPITER"
8565 case "$ac_cv_var_ppsclock" in
8566 # yes) ntp_ok=$ntp_eac
8573 if test "$ntp_ok" = "yes"; then
8575 cat >> confdefs.h <<\EOF
8576 #define CLOCK_JUPITER 1
8580 echo "$ac_t""$ntp_ok" 1>&6
8581 case "$ntp_ok$target" in
8582 yes*-*-ultrix*) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8585 # Requires modem control
8586 echo $ac_n "checking PTB modem service""... $ac_c" 1>&6
8587 echo "configure:8588: checking PTB modem service" >&5
8588 # Check whether --enable-PTBACTS or --disable-PTBACTS was given.
8589 if test "${enable_PTBACTS+set}" = set; then
8590 enableval="$enable_PTBACTS"
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 #include <termios.h>
8597 #ifdef HAVE_SYS_IOCTL_H
8598 #include <sys/ioctl.h>
8605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8606 egrep "yes" >/dev/null 2>&1; then
8617 if test "$ntp_ok" = "yes"; then
8619 cat >> confdefs.h <<\EOF
8620 #define CLOCK_PTBACTS 1
8624 echo "$ac_t""$ntp_ok" 1>&6
8626 echo $ac_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface""... $ac_c" 1>&6
8627 echo "configure:8628: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
8628 # Check whether --enable-TPRO or --disable-TPRO was given.
8629 if test "${enable_TPRO+set}" = set; then
8630 enableval="$enable_TPRO"
8633 case "$ac_cv_header_sys_tpro_h" in
8642 if test "$ntp_ok" = "yes"; then
8644 cat >> confdefs.h <<\EOF
8645 #define CLOCK_TPRO 1
8649 echo "$ac_t""$ntp_ok" 1>&6
8650 case "$ntp_ok$ac_cv_header_sys_tpro" in
8651 yesno) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8654 echo $ac_n "checking TRAK 8810 GPS receiver""... $ac_c" 1>&6
8655 echo "configure:8656: checking TRAK 8810 GPS receiver" >&5
8656 # Check whether --enable-TRAK or --disable-TRAK was given.
8657 if test "${enable_TRAK+set}" = set; then
8658 enableval="$enable_TRAK"
8664 if test "$ntp_ok" = "yes"; then
8666 cat >> confdefs.h <<\EOF
8667 #define CLOCK_TRAK 1
8671 echo "$ac_t""$ntp_ok" 1>&6
8673 echo $ac_n "checking Chrono-log K-series WWVB receiver""... $ac_c" 1>&6
8674 echo "configure:8675: checking Chrono-log K-series WWVB receiver" >&5
8675 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
8676 if test "${enable_CHRONOLOG+set}" = set; then
8677 enableval="$enable_CHRONOLOG"
8683 if test "$ntp_ok" = "yes"; then
8685 cat >> confdefs.h <<\EOF
8686 #define CLOCK_CHRONOLOG 1
8690 echo "$ac_t""$ntp_ok" 1>&6
8692 echo $ac_n "checking Dumb generic hh:mm:ss local clock""... $ac_c" 1>&6
8693 echo "configure:8694: checking Dumb generic hh:mm:ss local clock" >&5
8694 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
8695 if test "${enable_DUMBCLOCK+set}" = set; then
8696 enableval="$enable_DUMBCLOCK"
8702 if test "$ntp_ok" = "yes"; then
8704 cat >> confdefs.h <<\EOF
8705 #define CLOCK_DUMBCLOCK 1
8709 echo "$ac_t""$ntp_ok" 1>&6
8711 # Not on a vax-dec-bsd
8712 echo $ac_n "checking Kinemetrics/TrueTime receivers""... $ac_c" 1>&6
8713 echo "configure:8714: checking Kinemetrics/TrueTime receivers" >&5
8714 # Check whether --enable-TRUETIME or --disable-TRUETIME was given.
8715 if test "${enable_TRUETIME+set}" = set; then
8716 enableval="$enable_TRUETIME"
8729 if test "$ntp_ok" = "yes"; then
8731 cat >> confdefs.h <<\EOF
8732 #define CLOCK_TRUETIME 1
8736 echo "$ac_t""$ntp_ok" 1>&6
8737 case "$ntp_ok$target" in
8738 yesvax-dec-bsd) echo "configure: warning: *** But the expected answer is... no ***" 1>&2 ;;
8741 echo $ac_n "checking Spectracom 8170/Netclock/2 WWVB receiver""... $ac_c" 1>&6
8742 echo "configure:8743: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
8743 # Check whether --enable-WWVB or --disable-WWVB was given.
8744 if test "${enable_WWVB+set}" = set; then
8745 enableval="$enable_WWVB"
8751 if test "$ntp_ok" = "yes"; then
8753 cat >> confdefs.h <<\EOF
8754 #define CLOCK_WWVB 1
8758 echo "$ac_t""$ntp_ok" 1>&6
8760 echo $ac_n "checking Ultralink M320 WWVB receiver""... $ac_c" 1>&6
8761 echo "configure:8762: checking Ultralink M320 WWVB receiver" >&5
8762 # Check whether --enable-ULINK or --disable-ULINK was given.
8763 if test "${enable_ULINK+set}" = set; then
8764 enableval="$enable_ULINK"
8770 if test "$ntp_ok" = "yes"; then
8772 cat >> confdefs.h <<\EOF
8773 #define CLOCK_ULINK 1
8777 echo "$ac_t""$ntp_ok" 1>&6
8779 # Requires modem control
8780 echo $ac_n "checking USNO modem service""... $ac_c" 1>&6
8781 echo "configure:8782: checking USNO modem service" >&5
8782 # Check whether --enable-USNO or --disable-USNO was given.
8783 if test "${enable_USNO+set}" = set; then
8784 enableval="$enable_USNO"
8787 cat > conftest.$ac_ext <<EOF
8788 #line 8789 "configure"
8789 #include "confdefs.h"
8790 #include <termios.h>
8791 #ifdef HAVE_SYS_IOCTL_H
8792 #include <sys/ioctl.h>
8799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8800 egrep "yes" >/dev/null 2>&1; then
8811 if test "$ntp_ok" = "yes"; then
8813 cat >> confdefs.h <<\EOF
8814 #define CLOCK_USNO 1
8818 echo "$ac_t""$ntp_ok" 1>&6
8820 echo $ac_n "checking for default inclusion of all suitable PARSE clocks""... $ac_c" 1>&6
8821 echo "configure:8822: checking for default inclusion of all suitable PARSE clocks" >&5
8822 # Check whether --enable-parse-clocks or --disable-parse-clocks was given.
8823 if test "${enable_parse_clocks+set}" = set; then
8824 enableval="$enable_parse_clocks"
8828 yes) ntp_eapc=$ntp_canparse ;;
8834 echo "$ac_t""$ntp_eapc" 1>&6
8836 case "$ntp_eac$ntp_eapc$ntp_canparse" in
8838 { echo "configure: error: "--enable-parse-clocks" requires "--enable-all-clocks"." 1>&2; exit 1; }
8841 { echo "configure: error: You said "--enable-parse-clocks" but PARSE isn't supported on this platform!" 1>&2; exit 1; }
8850 echo $ac_n "checking Diem Computime Radio Clock""... $ac_c" 1>&6
8851 echo "configure:8852: checking Diem Computime Radio Clock" >&5
8852 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
8853 if test "${enable_COMPUTIME+set}" = set; then
8854 enableval="$enable_COMPUTIME"
8860 if test "$ntp_ok" = "yes"; then
8863 cat >> confdefs.h <<\EOF
8864 #define CLOCK_COMPUTIME 1
8868 echo "$ac_t""$ntp_ok" 1>&6
8869 case "$ntp_ok$ntp_canparse" in
8871 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
8875 echo $ac_n "checking ELV/DCF7000 clock""... $ac_c" 1>&6
8876 echo "configure:8877: checking ELV/DCF7000 clock" >&5
8877 # Check whether --enable-DCF7000 or --disable-DCF7000 was given.
8878 if test "${enable_DCF7000+set}" = set; then
8879 enableval="$enable_DCF7000"
8885 if test "$ntp_ok" = "yes"; then
8888 cat >> confdefs.h <<\EOF
8889 #define CLOCK_DCF7000 1
8893 echo "$ac_t""$ntp_ok" 1>&6
8894 case "$ntp_ok$ntp_canparse" in
8896 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
8900 echo $ac_n "checking HOPF 6021 clock""... $ac_c" 1>&6
8901 echo "configure:8902: checking HOPF 6021 clock" >&5
8902 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
8903 if test "${enable_HOPF6021+set}" = set; then
8904 enableval="$enable_HOPF6021"
8910 if test "$ntp_ok" = "yes"; then
8913 cat >> confdefs.h <<\EOF
8914 #define CLOCK_HOPF6021 1
8918 echo "$ac_t""$ntp_ok" 1>&6
8919 case "$ntp_ok$ntp_canparse" in
8921 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
8925 echo $ac_n "checking Meinberg clocks""... $ac_c" 1>&6
8926 echo "configure:8927: checking Meinberg clocks" >&5
8927 # Check whether --enable-MEINBERG or --disable-MEINBERG was given.
8928 if test "${enable_MEINBERG+set}" = set; then
8929 enableval="$enable_MEINBERG"
8935 if test "$ntp_ok" = "yes"; then
8938 cat >> confdefs.h <<\EOF
8939 #define CLOCK_MEINBERG 1
8943 echo "$ac_t""$ntp_ok" 1>&6
8944 case "$ntp_ok$ntp_canparse" in
8946 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
8950 echo $ac_n "checking DCF77 raw time code""... $ac_c" 1>&6
8951 echo "configure:8952: checking DCF77 raw time code" >&5
8952 # Check whether --enable-RAWDCF or --disable-RAWDCF was given.
8953 if test "${enable_RAWDCF+set}" = set; then
8954 enableval="$enable_RAWDCF"
8960 if test "$ntp_ok" = "yes"; then
8965 cat >> confdefs.h <<\EOF
8966 #define CLOCK_RAWDCF 1
8970 echo "$ac_t""$ntp_ok" 1>&6
8971 case "$ntp_ok$ntp_canparse" in
8973 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
8977 case "$ntp_rawdcf" in
8979 echo $ac_n "checking if we must enable parity for RAWDCF""... $ac_c" 1>&6
8980 echo "configure:8981: checking if we must enable parity for RAWDCF" >&5
8981 if eval "test \"\${ac_cv_var_rawdcf_parity+set}\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8990 ac_cv_var_rawdcf_parity=$ans
8993 echo "$ac_t""$ac_cv_var_rawdcf_parity" 1>&6
8994 case "$ac_cv_var_rawdcf_parity" in
8995 yes) cat >> confdefs.h <<\EOF
8996 #define RAWDCF_NO_IGNPAR 1
9002 *) # HMS: Is this a good idea?
9003 ac_cv_var_rawdcf_parity=no
9007 echo $ac_n "checking RCC 8000 clock""... $ac_c" 1>&6
9008 echo "configure:9009: checking RCC 8000 clock" >&5
9009 # Check whether --enable-RCC8000 or --disable-RCC8000 was given.
9010 if test "${enable_RCC8000+set}" = set; then
9011 enableval="$enable_RCC8000"
9017 if test "$ntp_ok" = "yes"; then
9020 cat >> confdefs.h <<\EOF
9021 #define CLOCK_RCC8000 1
9025 echo "$ac_t""$ntp_ok" 1>&6
9026 case "$ntp_ok$ntp_canparse" in
9028 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9032 echo $ac_n "checking Schmid DCF77 clock""... $ac_c" 1>&6
9033 echo "configure:9034: checking Schmid DCF77 clock" >&5
9034 # Check whether --enable-SCHMID or --disable-SCHMID was given.
9035 if test "${enable_SCHMID+set}" = set; then
9036 enableval="$enable_SCHMID"
9042 if test "$ntp_ok" = "yes"; then
9045 cat >> confdefs.h <<\EOF
9046 #define CLOCK_SCHMID 1
9050 echo "$ac_t""$ntp_ok" 1>&6
9051 case "$ntp_ok$ntp_canparse" in
9053 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9057 echo $ac_n "checking Trimble GPS receiver/TAIP protocol""... $ac_c" 1>&6
9058 echo "configure:9059: checking Trimble GPS receiver/TAIP protocol" >&5
9059 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
9060 if test "${enable_TRIMTAIP+set}" = set; then
9061 enableval="$enable_TRIMTAIP"
9067 if test "$ntp_ok" = "yes"; then
9070 cat >> confdefs.h <<\EOF
9071 #define CLOCK_TRIMTAIP 1
9075 echo "$ac_t""$ntp_ok" 1>&6
9076 case "$ntp_ok$ntp_canparse" in
9078 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9082 echo $ac_n "checking Trimble GPS receiver/TSIP protocol""... $ac_c" 1>&6
9083 echo "configure:9084: checking Trimble GPS receiver/TSIP protocol" >&5
9084 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
9085 if test "${enable_TRIMTSIP+set}" = set; then
9086 enableval="$enable_TRIMTSIP"
9092 if test "$ntp_ok" = "yes"; then
9095 cat >> confdefs.h <<\EOF
9096 #define CLOCK_TRIMTSIP 1
9100 echo "$ac_t""$ntp_ok" 1>&6
9101 case "$ntp_ok$ntp_canparse" in
9103 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9107 echo $ac_n "checking WHARTON 400A Series clock""... $ac_c" 1>&6
9108 echo "configure:9109: checking WHARTON 400A Series clock" >&5
9109 # Check whether --enable-WHARTON or --disable-WHARTON was given.
9110 if test "${enable_WHARTON+set}" = set; then
9111 enableval="$enable_WHARTON"
9117 if test "$ntp_ok" = "yes"; then
9120 cat >> confdefs.h <<\EOF
9121 #define CLOCK_WHARTON_400A 1
9125 echo "$ac_t""$ntp_ok" 1>&6
9126 case "$ntp_ok$ntp_canparse" in
9128 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9132 echo $ac_n "checking VARITEXT clock""... $ac_c" 1>&6
9133 echo "configure:9134: checking VARITEXT clock" >&5
9134 # Check whether --enable-VARITEXT or --disable-VARITEXT was given.
9135 if test "${enable_VARITEXT+set}" = set; then
9136 enableval="$enable_VARITEXT"
9142 if test "$ntp_ok" = "yes"; then
9145 cat >> confdefs.h <<\EOF
9146 #define CLOCK_VARITEXT 1
9150 echo "$ac_t""$ntp_ok" 1>&6
9151 case "$ntp_ok$ntp_canparse" in
9153 { echo "configure: error: That's a parse clock and this system doesn't support it!" 1>&2; exit 1; }
9160 echo $ac_n "checking if we need to make and use the parse libraries""... $ac_c" 1>&6
9161 echo "configure:9162: checking if we need to make and use the parse libraries" >&5
9163 case "$ntp_libparse" in
9166 cat >> confdefs.h <<\EOF
9167 #define CLOCK_PARSE 1
9170 LIBPARSE=../libparse/libparse.a
9171 MAKE_LIBPARSE=libparse.a
9172 MAKE_CHECK_Y2K=check_y2k
9173 cat >> confdefs.h <<\EOF
9174 #define PPS_SAMPLE 1
9177 cat >> confdefs.h <<\EOF
9178 #define CLOCK_ATOM 1
9183 echo "$ac_t""$ans" 1>&6
9188 echo $ac_n "checking if we need to make and use the RSAREF library""... $ac_c" 1>&6
9189 echo "configure:9190: checking if we need to make and use the RSAREF library" >&5
9191 if test -f $srcdir/rsaref2/source/rsa.c
9194 LIBRSAREF=../librsaref/librsaref.a
9195 MAKE_LIBRSAREF=librsaref.a
9196 cat >> confdefs.h <<\EOF
9201 echo "$ac_t""$ans" 1>&6
9206 echo $ac_n "checking if we can make dcf parse utilities""... $ac_c" 1>&6
9207 echo "configure:9208: checking if we can make dcf parse utilities" >&5
9209 if test "$ntp_parseutil" = "yes"; then
9211 *-*-sunos4*|*-*-solaris2*|*-*-linux*)
9218 echo "$ac_t""$ans" 1>&6
9221 echo $ac_n "checking if we can build kernel streams modules for parse""... $ac_c" 1>&6
9222 echo "configure:9223: checking if we can build kernel streams modules for parse" >&5
9224 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
9228 case "$ac_cv_var_kernel_pll" in
9230 cat >> confdefs.h <<\EOF
9237 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
9241 MAKE_PARSEKMODULE=parse
9246 echo "$ac_t""$ans" 1>&6
9248 echo $ac_n "checking if we need basic refclock support""... $ac_c" 1>&6
9249 echo "configure:9250: checking if we need basic refclock support" >&5
9250 if test "$ntp_refclock" = "yes"; then
9251 cat >> confdefs.h <<\EOF
9256 echo "$ac_t""$ntp_refclock" 1>&6
9260 echo $ac_n "checking if we want HP-UX adjtimed support""... $ac_c" 1>&6
9261 echo "configure:9262: checking if we want HP-UX adjtimed support" >&5
9269 if test "$ans" = "yes"; then
9270 MAKE_ADJTIMED=adjtimed
9271 cat >> confdefs.h <<\EOF
9272 #define NEED_HPUX_ADJTIME 1
9276 echo "$ac_t""$ans" 1>&6
9278 echo $ac_n "checking if we can read kmem""... $ac_c" 1>&6
9279 echo "configure:9280: checking if we can read kmem" >&5
9280 if eval "test \"\${ac_cv_var_can_kmem+set}\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9283 # Check whether --enable-kmem or --disable-kmem was given.
9284 if test "${enable_kmem+set}" = set; then
9285 enableval="$enable_kmem"
9288 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
9299 *-*-domainos) # Won't be found...
9318 ac_cv_var_can_kmem=$ans
9321 echo "$ac_t""$ac_cv_var_can_kmem" 1>&6
9323 case "$ac_cv_var_can_kmem" in
9325 *) cat >> confdefs.h <<\EOF
9331 echo $ac_n "checking if adjtime is accurate""... $ac_c" 1>&6
9332 echo "configure:9333: checking if adjtime is accurate" >&5
9333 if eval "test \"\${ac_cv_var_adjtime_is_accurate+set}\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9336 # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
9337 if test "${enable_accurate_adjtime+set}" = set; then
9338 enableval="$enable_accurate_adjtime"
9348 mips-sgi-irix[456]*)
9372 ac_cv_var_adjtime_is_accurate=$ans
9375 echo "$ac_t""$ac_cv_var_adjtime_is_accurate" 1>&6
9376 case "$ac_cv_var_adjtime_is_accurate" in
9377 yes) cat >> confdefs.h <<\EOF
9378 #define ADJTIME_IS_ACCURATE 1
9383 echo $ac_n "checking the name of 'tick' in the kernel""... $ac_c" 1>&6
9384 echo "configure:9385: checking the name of 'tick' in the kernel" >&5
9385 if eval "test \"\${ac_cv_var_nlist_tick+set}\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9390 m68*-hp-hpux*) # HP9000/300?
9415 ac_cv_var_nlist_tick=$ans
9418 echo "$ac_t""$ac_cv_var_nlist_tick" 1>&6
9419 case "$ac_cv_var_nlist_tick" in
9420 ''|no) ;; # HMS: I think we can only get 'no' here...
9421 *) cat >> confdefs.h <<EOF
9422 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
9427 echo $ac_n "checking for the units of 'tick'""... $ac_c" 1>&6
9428 echo "configure:9429: checking for the units of 'tick'" >&5
9429 if eval "test \"\${ac_cv_var_tick_nano+set}\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9438 ac_cv_var_tick_nano=$ans
9441 echo "$ac_t""$ac_cv_var_tick_nano" 1>&6
9442 case "$ac_cv_var_tick_nano" in
9444 cat >> confdefs.h <<\EOF
9451 echo $ac_n "checking the name of 'tickadj' in the kernel""... $ac_c" 1>&6
9452 echo "configure:9453: checking the name of 'tickadj' in the kernel" >&5
9453 if eval "test \"\${ac_cv_var_nlist_tickadj+set}\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9458 m68*-hp-hpux*) # HP9000/300?
9486 ans=no # hrestime_adj
9492 ac_cv_var_nlist_tickadj=$ans
9495 echo "$ac_t""$ac_cv_var_nlist_tickadj" 1>&6
9496 case "$ac_cv_var_nlist_tickadj" in
9497 ''|no) ;; # HMS: I think we can only get 'no' here...
9498 *) cat >> confdefs.h <<EOF
9499 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
9504 echo $ac_n "checking for the units of 'tickadj'""... $ac_c" 1>&6
9505 echo "configure:9506: checking for the units of 'tickadj'" >&5
9506 if eval "test \"\${ac_cv_var_tickadj_nano+set}\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9515 ac_cv_var_tickadj_nano=$ans
9518 echo "$ac_t""$ac_cv_var_tickadj_nano" 1>&6
9519 case "$ac_cv_var_tickadj_nano" in
9521 cat >> confdefs.h <<\EOF
9522 #define TICKADJ_NANO 1
9528 echo $ac_n "checking half-heartedly for 'dosynctodr' in the kernel""... $ac_c" 1>&6
9529 echo "configure:9530: checking half-heartedly for 'dosynctodr' in the kernel" >&5
9530 if eval "test \"\${ac_cv_var_nlist_dosynctodr+set}\" = set"; then
9531 echo $ac_n "(cached) $ac_c" 1>&6
9568 ac_cv_var_nlist_dosynctodr=$ans
9571 echo "$ac_t""$ac_cv_var_nlist_dosynctodr" 1>&6
9572 case "$ac_cv_var_nlist_dosynctodr" in
9574 *) cat >> confdefs.h <<EOF
9575 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
9581 echo $ac_n "checking half-heartedly for 'noprintf' in the kernel""... $ac_c" 1>&6
9582 echo "configure:9583: checking half-heartedly for 'noprintf' in the kernel" >&5
9583 if eval "test \"\${ac_cv_var_nlist_noprintf+set}\" = set"; then
9584 echo $ac_n "(cached) $ac_c" 1>&6
9615 ac_cv_var_nlist_noprintf=$ans
9618 echo "$ac_t""$ac_cv_var_nlist_noprintf" 1>&6
9619 case "$ac_cv_var_nlist_noprintf" in
9621 *) cat >> confdefs.h <<EOF
9622 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
9631 echo $ac_n "checking for a default value for 'tick'""... $ac_c" 1>&6
9632 echo "configure:9633: checking for a default value for 'tick'" >&5
9633 if eval "test \"\${ac_cv_var_tick+set}\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9636 # Check whether --enable-tick or --disable-tick was given.
9637 if test "${enable_tick+set}" = set; then
9638 enableval="$enable_tick"
9666 echo "$ac_t""$ac_cv_var_tick" 1>&6
9667 case "$ac_cv_var_tick" in
9668 ''|no) ;; # HMS: I think we can only get 'no' here...
9669 *) cat >> confdefs.h <<EOF
9670 #define PRESET_TICK $ac_cv_var_tick
9675 echo $ac_n "checking for a default value for 'tickadj'""... $ac_c" 1>&6
9676 echo "configure:9677: checking for a default value for 'tickadj'" >&5
9677 if eval "test \"\${ac_cv_var_tickadj+set}\" = set"; then
9678 echo $ac_n "(cached) $ac_c" 1>&6
9680 # Check whether --enable-tickadj or --disable-tickadj was given.
9681 if test "${enable_tickadj+set}" = set; then
9682 enableval="$enable_tickadj"
9688 case "$ac_cv_var_adjtime_is_accurate" in
9689 yes) ans='tick/16' ;;
9699 case "$ac_cv_var_can_kmem" in
9703 *-*-domainos) # Skippy: won't be found...
9704 case "$ac_cv_var_can_kmem" in
9709 case "$ac_cv_var_adjtime_is_accurate" in
9710 yes) ans='tick/16' ;;
9720 case "$ac_cv_var_adjtime_is_accurate" in
9732 ac_cv_var_tickadj=$ans
9735 echo "$ac_t""$ac_cv_var_tickadj" 1>&6
9736 case "$ac_cv_var_tickadj" in
9737 ''|no) ;; # HMS: I think we can only get 'no' here...
9738 *) cat >> confdefs.h <<EOF
9739 #define PRESET_TICKADJ $ac_cv_var_tickadj
9744 # Newer versions of ReliantUNIX round adjtime() values down to
9745 # 1/100s (system tick). Sigh ...
9746 # Unfortunately, there is no easy way to know if particular release
9747 # has this "feature" or any obvious way to test for it.
9749 mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9750 #define RELIANTUNIX_CLOCK 1
9756 *-*-sco3.2v5*) cat >> confdefs.h <<\EOF
9757 #define SCO5_CLOCK 1
9762 ac_cv_make_tickadj=yes
9763 case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
9764 nonono) # Don't read KMEM, no presets. Bogus.
9765 echo "configure: warning: Can't read kmem" 1>&2
9766 ac_cv_make_tickadj=no
9768 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
9769 echo "configure: warning: Can't read kmem but no PRESET_TICK. No tickadj." 1>&2
9770 ac_cv_make_tickadj=no
9772 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
9773 echo "configure: warning: Can't read kmem but no PRESET_TICKADJ. No tickadj." 1>&2
9774 ac_cv_make_tickadj=no
9776 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
9778 yesnono) # Read KMEM, no presets. Cool.
9780 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
9781 echo "configure: warning: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." 1>&2
9783 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
9785 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
9787 *) # Generally bogus.
9788 { echo "configure: error: This shouldn't happen." 1>&2; exit 1; }
9794 # tickadj is pretty useless on newer versions of ReliantUNIX
9796 ac_cv_make_tickadj=no
9799 # DLM says tickadj is a no-no starting with solaris2.5
9801 *-*-solaris2.0-4*) ;;
9802 *) ac_cv_make_tickadj=no ;;
9808 echo $ac_n "checking if we want and can make the tickadj utility""... $ac_c" 1>&6
9809 echo "configure:9810: checking if we want and can make the tickadj utility" >&5
9810 if eval "test \"\${ac_cv_make_tickadj+set}\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9813 ac_cv_make_tickadj=yes
9816 echo "$ac_t""$ac_cv_make_tickadj" 1>&6
9817 case "$ac_cv_make_tickadj" in
9819 MAKE_TICKADJ=tickadj
9824 echo $ac_n "checking if we want and can make the ntptime utility""... $ac_c" 1>&6
9825 echo "configure:9826: checking if we want and can make the ntptime utility" >&5
9826 if eval "test \"\${ac_cv_make_ntptime+set}\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9830 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
9840 ac_cv_make_ntptime=$ans
9843 echo "$ac_t""$ac_cv_make_ntptime" 1>&6
9844 case "$ac_cv_make_ntptime" in
9846 MAKE_NTPTIME=ntptime
9850 echo $ac_n "checking if we want UDP wildcard delivery""... $ac_c" 1>&6
9851 echo "configure:9852: checking if we want UDP wildcard delivery" >&5
9852 if eval "test \"\${ac_cv_var_udp_wildcard_delivery+set}\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9855 # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
9856 if test "${enable_udp_wildcard+set}" = set; then
9857 enableval="$enable_udp_wildcard"
9907 ac_cv_var_udp_wildcard_delivery=$ans
9910 echo "$ac_t""$ac_cv_var_udp_wildcard_delivery" 1>&6
9911 case "$ac_cv_var_udp_wildcard_delivery" in
9912 yes) cat >> confdefs.h <<\EOF
9913 #define UDP_WILDCARD_DELIVERY 1
9921 *) case "$target" in
9923 LDFLAGS="$LDFLAGS -r"
9929 echo $ac_n "checking if we should always slew the time""... $ac_c" 1>&6
9930 echo "configure:9931: checking if we should always slew the time" >&5
9931 if eval "test \"\${ac_cv_var_slew_always+set}\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9934 # Check whether --enable-slew-always or --disable-slew-always was given.
9935 if test "${enable_slew_always+set}" = set; then
9936 enableval="$enable_slew_always"
9949 *-*-openvms*) # HMS: won't be found
9958 ac_cv_var_slew_always=$ans
9961 echo "$ac_t""$ac_cv_var_slew_always" 1>&6
9962 case "$ac_cv_var_slew_always" in
9963 yes) cat >> confdefs.h <<\EOF
9964 #define SLEWALWAYS 1
9969 echo $ac_n "checking if we should step and slew the time""... $ac_c" 1>&6
9970 echo "configure:9971: checking if we should step and slew the time" >&5
9971 if eval "test \"\${ac_cv_var_step_slew+set}\" = set"; then
9972 echo $ac_n "(cached) $ac_c" 1>&6
9974 # Check whether --enable-step-slew or --disable-step-slew was given.
9975 if test "${enable_step_slew+set}" = set; then
9976 enableval="$enable_step_slew"
9989 *-*-solaris2.[012]*)
9992 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
10001 ac_cv_var_step_slew=$ans
10004 echo "$ac_t""$ac_cv_var_step_slew" 1>&6
10005 case "$ac_cv_var_step_slew" in
10006 yes) cat >> confdefs.h <<\EOF
10007 #define STEP_SLEW 1
10012 echo $ac_n "checking if ntpdate should step the time""... $ac_c" 1>&6
10013 echo "configure:10014: checking if ntpdate should step the time" >&5
10014 if eval "test \"\${ac_cv_var_ntpdate_step+set}\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10017 # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
10018 if test "${enable_ntpdate_step+set}" = set; then
10019 enableval="$enable_ntpdate_step"
10032 ac_cv_var_ntpdate_step=$ans
10035 echo "$ac_t""$ac_cv_var_ntpdate_step" 1>&6
10036 case "$ac_cv_var_ntpdate_step" in
10037 yes) cat >> confdefs.h <<\EOF
10038 #define FORCE_NTPDATE_STEP 1
10043 echo $ac_n "checking if we should sync TODR clock every hour""... $ac_c" 1>&6
10044 echo "configure:10045: checking if we should sync TODR clock every hour" >&5
10045 if eval "test \"\${ac_cv_var_sync_todr+set}\" = set"; then
10046 echo $ac_n "(cached) $ac_c" 1>&6
10048 # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
10049 if test "${enable_hourly_todr_sync+set}" = set; then
10050 enableval="$enable_hourly_todr_sync"
10057 *-*-openvms*) # HMS: won't be found
10065 ac_cv_var_sync_todr=$ans
10068 echo "$ac_t""$ac_cv_var_sync_todr" 1>&6
10069 case "$ac_cv_var_sync_todr" in
10070 yes) cat >> confdefs.h <<\EOF
10071 #define DOSYNCTODR 1
10076 echo $ac_n "checking if we should avoid kernel FLL bug""... $ac_c" 1>&6
10077 echo "configure:10078: checking if we should avoid kernel FLL bug" >&5
10078 if eval "test \"\${ac_cv_var_kernel_fll_bug+set}\" = set"; then
10079 echo $ac_n "(cached) $ac_c" 1>&6
10081 # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
10082 if test "${enable_kernel_fll_bug+set}" = set; then
10083 enableval="$enable_kernel_fll_bug"
10091 case "`uname -v`" in
10105 ac_cv_var_kernel_fll_bug=$ans
10108 echo "$ac_t""$ac_cv_var_kernel_fll_bug" 1>&6
10109 case "$ac_cv_var_kernel_fll_bug" in
10110 yes) cat >> confdefs.h <<\EOF
10111 #define KERNEL_FLL_BUG 1
10119 *) case "$target" in
10121 LDFLAGS="$LDFLAGS -r"
10127 # This is necessary so that .o files in LIBOBJS are also built via
10128 # the ANSI2KNR-filtering rules.
10129 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
10132 cat > confcache <<\EOF
10133 # This file is a shell script that caches the results of configure
10134 # tests run on this system so they can be shared between configure
10135 # scripts and configure runs. It is not useful on other systems.
10136 # If it contains results you don't want to keep, you may remove or edit it.
10138 # By default, configure uses ./config.cache as the cache file,
10139 # creating it if it does not exist already. You can give configure
10140 # the --cache-file=FILE option to use a different cache file; that is
10141 # what configure does when it calls configure scripts in
10142 # subdirectories, so they share the cache.
10143 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10144 # config.status only pays attention to the cache file if you give it the
10145 # --recheck option to rerun configure.
10148 # The following way of writing the cache mishandles newlines in values,
10149 # but we know of no workaround that is simple, portable, and efficient.
10150 # So, don't put newlines in cache variables' values.
10151 # Ultrix sh set writes to stderr and can't be redirected directly,
10152 # and sets the high bit in the cache file unless we assign to the vars.
10154 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10156 # `set' does not quote correctly, so add quotes (double-quote substitution
10157 # turns \\\\ into \\, and sed turns \\ into \).
10159 -e "s/'/'\\\\''/g" \
10160 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10163 # `set' quotes correctly as required by POSIX, so do not add quotes.
10164 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10167 if cmp -s $cache_file confcache; then
10170 if test -w $cache_file; then
10171 echo "updating cache $cache_file"
10172 cat confcache > $cache_file
10174 echo "not updating unwritable cache $cache_file"
10179 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10181 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10182 # Let make expand exec_prefix.
10183 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10185 # Any assignment to VPATH causes Sun make to only execute
10186 # the first set of double-colon rules, so remove it if not needed.
10187 # If there is a colon in the path, we need to keep it.
10188 if test "x$srcdir" = x.; then
10189 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10192 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10194 DEFS=-DHAVE_CONFIG_H
10196 # Without the "./", some shells look in PATH for config.status.
10197 : ${CONFIG_STATUS=./config.status}
10199 echo creating $CONFIG_STATUS
10200 rm -f $CONFIG_STATUS
10201 cat > $CONFIG_STATUS <<EOF
10203 # Generated automatically by configure.
10204 # Run this file to recreate the current configuration.
10205 # This directory was configured as follows,
10206 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10208 # $0 $ac_configure_args
10210 # Compiler output produced by configure, useful for debugging
10211 # configure, is in ./config.log if it exists.
10213 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10216 case "\$ac_option" in
10217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10218 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10219 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10220 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10221 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
10223 -help | --help | --hel | --he | --h)
10224 echo "\$ac_cs_usage"; exit 0 ;;
10225 *) echo "\$ac_cs_usage"; exit 1 ;;
10229 ac_given_srcdir=$srcdir
10230 ac_given_INSTALL="$INSTALL"
10232 trap 'rm -fr `echo "Makefile adjtimed/Makefile clockstuff/Makefile \
10233 include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \
10234 libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile \
10235 ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile \
10236 scripts/Makefile scripts/mkver scripts/ntpver util/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10238 cat >> $CONFIG_STATUS <<EOF
10240 # Protect against being on the right side of a sed subst in config.status.
10241 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10242 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10246 s%@CFLAGS@%$CFLAGS%g
10247 s%@CPPFLAGS@%$CPPFLAGS%g
10248 s%@CXXFLAGS@%$CXXFLAGS%g
10249 s%@FFLAGS@%$FFLAGS%g
10251 s%@LDFLAGS@%$LDFLAGS%g
10253 s%@exec_prefix@%$exec_prefix%g
10254 s%@prefix@%$prefix%g
10255 s%@program_transform_name@%$program_transform_name%g
10256 s%@bindir@%$bindir%g
10257 s%@sbindir@%$sbindir%g
10258 s%@libexecdir@%$libexecdir%g
10259 s%@datadir@%$datadir%g
10260 s%@sysconfdir@%$sysconfdir%g
10261 s%@sharedstatedir@%$sharedstatedir%g
10262 s%@localstatedir@%$localstatedir%g
10263 s%@libdir@%$libdir%g
10264 s%@includedir@%$includedir%g
10265 s%@oldincludedir@%$oldincludedir%g
10266 s%@infodir@%$infodir%g
10267 s%@mandir@%$mandir%g
10269 s%@host_alias@%$host_alias%g
10270 s%@host_cpu@%$host_cpu%g
10271 s%@host_vendor@%$host_vendor%g
10272 s%@host_os@%$host_os%g
10273 s%@target@%$target%g
10274 s%@target_alias@%$target_alias%g
10275 s%@target_cpu@%$target_cpu%g
10276 s%@target_vendor@%$target_vendor%g
10277 s%@target_os@%$target_os%g
10279 s%@build_alias@%$build_alias%g
10280 s%@build_cpu@%$build_cpu%g
10281 s%@build_vendor@%$build_vendor%g
10282 s%@build_os@%$build_os%g
10283 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10284 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10285 s%@INSTALL_DATA@%$INSTALL_DATA%g
10286 s%@PACKAGE@%$PACKAGE%g
10287 s%@VERSION@%$VERSION%g
10288 s%@ACLOCAL@%$ACLOCAL%g
10289 s%@AUTOCONF@%$AUTOCONF%g
10290 s%@AUTOMAKE@%$AUTOMAKE%g
10291 s%@AUTOHEADER@%$AUTOHEADER%g
10292 s%@MAKEINFO@%$MAKEINFO%g
10294 s%@AMTARFLAGS@%$AMTARFLAGS%g
10295 s%@SET_MAKE@%$SET_MAKE%g
10300 s%@RANLIB@%$RANLIB%g
10301 s%@PATH_SH@%$PATH_SH%g
10303 s%@ANSI2KNR@%$ANSI2KNR%g
10304 s%@LIBOBJS@%$LIBOBJS%g
10305 s%@LIBPARSE@%$LIBPARSE%g
10306 s%@MAKE_LIBPARSE@%$MAKE_LIBPARSE%g
10307 s%@MAKE_LIBPARSE_KERNEL@%$MAKE_LIBPARSE_KERNEL%g
10308 s%@MAKE_CHECK_Y2K@%$MAKE_CHECK_Y2K%g
10309 s%@RSAREF@%$RSAREF%g
10310 s%@LIBRSAREF@%$LIBRSAREF%g
10311 s%@MAKE_LIBRSAREF@%$MAKE_LIBRSAREF%g
10312 s%@TESTDCF@%$TESTDCF%g
10314 s%@MAKE_PARSEKMODULE@%$MAKE_PARSEKMODULE%g
10315 s%@PROPDELAY@%$PROPDELAY%g
10316 s%@CHUTEST@%$CHUTEST%g
10317 s%@CLKTEST@%$CLKTEST%g
10318 s%@MAKE_ADJTIMED@%$MAKE_ADJTIMED%g
10319 s%@MAKE_TICKADJ@%$MAKE_TICKADJ%g
10320 s%@MAKE_NTPTIME@%$MAKE_NTPTIME%g
10325 cat >> $CONFIG_STATUS <<\EOF
10327 # Split the substitutions into bite-sized pieces for seds with
10328 # small command number limits, like on Digital OSF/1 and HP-UX.
10329 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10330 ac_file=1 # Number of current file.
10331 ac_beg=1 # First line for current file.
10332 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10335 while $ac_more_lines; do
10336 if test $ac_beg -gt 1; then
10337 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10339 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10341 if test ! -s conftest.s$ac_file; then
10342 ac_more_lines=false
10343 rm -f conftest.s$ac_file
10345 if test -z "$ac_sed_cmds"; then
10346 ac_sed_cmds="sed -f conftest.s$ac_file"
10348 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10350 ac_file=`expr $ac_file + 1`
10352 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10355 if test -z "$ac_sed_cmds"; then
10360 cat >> $CONFIG_STATUS <<EOF
10362 CONFIG_FILES=\${CONFIG_FILES-"Makefile adjtimed/Makefile clockstuff/Makefile \
10363 include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \
10364 libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile \
10365 ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile \
10366 scripts/Makefile scripts/mkver scripts/ntpver util/Makefile"}
10368 cat >> $CONFIG_STATUS <<\EOF
10369 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10370 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10372 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10373 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10374 *) ac_file_in="${ac_file}.in" ;;
10377 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10379 # Remove last slash and all that follows it. Not all systems have dirname.
10380 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10381 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10382 # The file is in a subdirectory.
10383 test ! -d "$ac_dir" && mkdir "$ac_dir"
10384 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10385 # A "../" for each directory in $ac_dir_suffix.
10386 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10388 ac_dir_suffix= ac_dots=
10391 case "$ac_given_srcdir" in
10393 if test -z "$ac_dots"; then top_srcdir=.
10394 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10395 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10396 *) # Relative path.
10397 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10398 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10401 case "$ac_given_INSTALL" in
10402 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10403 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10406 echo creating "$ac_file"
10408 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10410 *Makefile*) ac_comsub="1i\\
10411 # $configure_input" ;;
10415 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10417 s%@configure_input@%$configure_input%g
10418 s%@srcdir@%$srcdir%g
10419 s%@top_srcdir@%$top_srcdir%g
10420 s%@INSTALL@%$INSTALL%g
10421 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10425 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10426 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10428 # ac_d sets the value in "#define NAME VALUE" lines.
10429 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10430 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10433 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10434 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10435 ac_uB='\([ ]\)%\1#\2define\3'
10438 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10439 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10440 ac_eB='$%\1#\2define\3'
10444 if test "${CONFIG_HEADERS+set}" != set; then
10446 cat >> $CONFIG_STATUS <<EOF
10447 CONFIG_HEADERS="config.h"
10449 cat >> $CONFIG_STATUS <<\EOF
10451 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10452 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10454 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10455 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10456 *) ac_file_in="${ac_file}.in" ;;
10459 echo creating $ac_file
10461 rm -f conftest.frag conftest.in conftest.out
10462 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10463 cat $ac_file_inputs > conftest.in
10467 # Transform confdefs.h into a sed script conftest.vals that substitutes
10468 # the proper values into config.h.in to produce config.h. And first:
10469 # Protect against being on the right side of a sed subst in config.status.
10470 # Protect against being in an unquoted here document in config.status.
10471 rm -f conftest.vals
10472 cat > conftest.hdr <<\EOF
10475 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10479 sed -n -f conftest.hdr confdefs.h > conftest.vals
10482 # This sed command replaces #undef with comments. This is necessary, for
10483 # example, in the case of _POSIX_SOURCE, which is predefined and required
10484 # on some systems where configure will not decide to define it.
10485 cat >> conftest.vals <<\EOF
10486 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10489 # Break up conftest.vals because some shells have a limit on
10490 # the size of here documents, and old seds have small limits too.
10492 rm -f conftest.tail
10495 ac_lines=`grep -c . conftest.vals`
10496 # grep -c gives empty output for an empty file on some AIX systems.
10497 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10498 # Write a limited-size here document to conftest.frag.
10499 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10500 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10502 sed -f conftest.frag conftest.in > conftest.out
10504 mv conftest.out conftest.in
10505 ' >> $CONFIG_STATUS
10506 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10507 rm -f conftest.vals
10508 mv conftest.tail conftest.vals
10510 rm -f conftest.vals
10512 cat >> $CONFIG_STATUS <<\EOF
10513 rm -f conftest.frag conftest.h
10514 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10515 cat conftest.in >> conftest.h
10517 if cmp -s $ac_file conftest.h 2>/dev/null; then
10518 echo "$ac_file is unchanged"
10521 # Remove last slash and all that follows it. Not all systems have dirname.
10522 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10523 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10524 # The file is in a subdirectory.
10525 test ! -d "$ac_dir" && mkdir "$ac_dir"
10528 mv conftest.h $ac_file
10533 cat >> $CONFIG_STATUS <<EOF
10537 cat >> $CONFIG_STATUS <<\EOF
10538 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
10539 chmod +x scripts/ntpver scripts/mkver
10542 chmod +x $CONFIG_STATUS
10543 rm -fr confdefs* $ac_clean_files
10544 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
10546 #test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])