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